/**
* @vue/shared v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5d6f4e01-3a17-4ce8-982c-b062ae5251d7",t._sentryDebugIdIdentifier="sentry-dbid-5d6f4e01-3a17-4ce8-982c-b062ae5251d7")}catch{}})();function wf(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const wn={},Uh=[],As=()=>{},tne=()=>!1,Gv=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),uD=t=>t.startsWith("onUpdate:"),rr=Object.assign,dD=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},nne=Object.prototype.hasOwnProperty,Bn=(t,e)=>nne.call(t,e),Tt=Array.isArray,Vh=t=>eg(t)==="[object Map]",Sf=t=>eg(t)==="[object Set]",pM=t=>eg(t)==="[object Date]",rne=t=>eg(t)==="[object RegExp]",jt=t=>typeof t=="function",Un=t=>typeof t=="string",fa=t=>typeof t=="symbol",er=t=>t!==null&&typeof t=="object",fD=t=>(er(t)||jt(t))&&jt(t.then)&&jt(t.catch),c9=Object.prototype.toString,eg=t=>c9.call(t),ine=t=>eg(t).slice(8,-1),Tw=t=>eg(t)==="[object Object]",hD=t=>Un(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Yh=wf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_w=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},one=/-(\w)/g,Ci=_w(t=>t.replace(one,(e,n)=>n?n.toUpperCase():"")),sne=/\B([A-Z])/g,ro=_w(t=>t.replace(sne,"-$1").toLowerCase()),qv=_w(t=>t.charAt(0).toUpperCase()+t.slice(1)),ym=_w(t=>t?`on${qv(t)}`:""),Qi=(t,e)=>!Object.is(t,e),Xh=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},u9=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},$x=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ox=t=>{const e=Un(t)?Number(t):NaN;return isNaN(e)?t:e};let gM;const Kv=()=>gM||(gM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ane="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",lne=wf(ane);function Ei(t){if(Tt(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=Un(r)?fne(r):Ei(r);if(i)for(const o in i)e[o]=i[o]}return e}else if(Un(t)||er(t))return t}const cne=/;(?![^(]*\))/g,une=/:([^]+)/,dne=/\/\*[^]*?\*\//g;function fne(t){const e={};return t.replace(dne,"").split(cne).forEach(n=>{if(n){const r=n.split(une);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function hne(t){let e="";if(!t||Un(t))return e;for(const n in t){const r=t[n];if(Un(r)||typeof r=="number"){const i=n.startsWith("--")?n:ro(n);e+=`${i}:${r};`}}return e}function $r(t){let e="";if(Un(t))e=t;else if(Tt(t))for(let n=0;n<t.length;n++){const r=$r(t[n]);r&&(e+=r+" ")}else if(er(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function d9(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Un(e)&&(t.class=$r(e)),n&&(t.style=Ei(n)),t}const f9="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pne=wf(f9),mM=wf(f9+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function pD(t){return!!t||t===""}const gne=wf("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),mne=wf("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function vne(t){if(t==null)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"}const bne=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function yne(t,e){return t.replace(bne,n=>e?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function xne(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Tu(t[r],e[r]);return n}function Tu(t,e){if(t===e)return!0;let n=pM(t),r=pM(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=fa(t),r=fa(e),n||r)return t===e;if(n=Tt(t),r=Tt(e),n||r)return n&&r?xne(t,e):!1;if(n=er(t),r=er(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const s in t){const a=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(a&&!l||!a&&l||!Tu(t[s],e[s]))return!1}}return String(t)===String(e)}function Dw(t,e){return t.findIndex(n=>Tu(n,e))}const h9=t=>!!(t&&t.__v_isRef===!0),Fl=t=>Un(t)?t:t==null?"":Tt(t)||er(t)&&(t.toString===c9||!jt(t.toString))?h9(t)?Fl(t.value):JSON.stringify(t,p9,2):String(t),p9=(t,e)=>h9(e)?p9(t,e.value):Vh(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[_E(r,o)+" =>"]=i,n),{})}:Sf(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>_E(n))}:fa(e)?_E(e):er(e)&&!Tt(e)&&!Tw(e)?String(e):e,_E=(t,e="")=>{var n;return fa(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ji;class gD{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ji,!e&&Ji&&(this.index=(Ji.scopes||(Ji.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=Ji;try{return Ji=this,e()}finally{Ji=n}}}on(){Ji=this}off(){Ji=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function $w(t){return new gD(t)}function Ow(){return Ji}function mD(t,e=!1){Ji&&Ji.cleanups.push(t)}let ar;const DE=new WeakSet;class cv{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ji&&Ji.active&&Ji.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,DE.has(this)&&(DE.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m9(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,vM(this),v9(this);const e=ar,n=la;ar=this,la=!0;try{return this.fn()}finally{b9(this),ar=e,la=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)yD(e);this.deps=this.depsTail=void 0,vM(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?DE.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){sk(this)&&this.run()}get dirty(){return sk(this)}}let g9=0,xm,wm;function m9(t,e=!1){if(t.flags|=8,e){t.next=wm,wm=t;return}t.next=xm,xm=t}function vD(){g9++}function bD(){if(--g9>0)return;if(wm){let e=wm;for(wm=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;xm;){let e=xm;for(xm=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function v9(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function b9(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),yD(r),wne(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function sk(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(y9(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function y9(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===uv))return;t.globalVersion=uv;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!sk(t)){t.flags&=-3;return}const n=ar,r=la;ar=t,la=!0;try{v9(t);const i=t.fn(t._value);(e.version===0||Qi(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{ar=n,la=r,b9(t),t.flags&=-3}}function yD(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)yD(o,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function wne(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function Sne(t,e){t.effect instanceof cv&&(t=t.effect.fn);const n=new cv(t);e&&rr(n,e);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function Cne(t){t.effect.stop()}let la=!0;const x9=[];function cc(){x9.push(la),la=!1}function uc(){const t=x9.pop();la=t===void 0?!0:t}function vM(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ar;ar=void 0;try{e()}finally{ar=n}}}let uv=0;class Ene{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Iw{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!ar||!la||ar===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ar)n=this.activeLink=new Ene(ar,this),ar.deps?(n.prevDep=ar.depsTail,ar.depsTail.nextDep=n,ar.depsTail=n):ar.deps=ar.depsTail=n,w9(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ar.depsTail,n.nextDep=void 0,ar.depsTail.nextDep=n,ar.depsTail=n,ar.deps===n&&(ar.deps=r)}return n}trigger(e){this.version++,uv++,this.notify(e)}notify(e){vD();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{bD()}}}function w9(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)w9(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Ix=new WeakMap,Pd=Symbol(""),ak=Symbol(""),dv=Symbol("");function Pi(t,e,n){if(la&&ar){let r=Ix.get(t);r||Ix.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new Iw),i.map=r,i.key=n),i.track()}}function Il(t,e,n,r,i,o){const s=Ix.get(t);if(!s){uv++;return}const a=l=>{l&&l.trigger()};if(vD(),e==="clear")s.forEach(a);else{const l=Tt(t),d=l&&hD(n);if(l&&n==="length"){const h=Number(r);s.forEach((p,y)=>{(y==="length"||y===dv||!fa(y)&&y>=h)&&a(p)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),d&&a(s.get(dv)),e){case"add":l?d&&a(s.get("length")):(a(s.get(Pd)),Vh(t)&&a(s.get(ak)));break;case"delete":l||(a(s.get(Pd)),Vh(t)&&a(s.get(ak)));break;case"set":Vh(t)&&a(s.get(Pd));break}}bD()}function Ane(t,e){const n=Ix.get(t);return n&&n.get(e)}function eh(t){const e=Rt(t);return e===t?e:(Pi(e,"iterate",dv),es(t)?e:e.map(Ni))}function Rw(t){return Pi(t=Rt(t),"iterate",dv),t}const kne={__proto__:null,[Symbol.iterator](){return $E(this,Symbol.iterator,Ni)},concat(...t){return eh(this).concat(...t.map(e=>Tt(e)?eh(e):e))},entries(){return $E(this,"entries",t=>(t[1]=Ni(t[1]),t))},every(t,e){return gl(this,"every",t,e,void 0,arguments)},filter(t,e){return gl(this,"filter",t,e,n=>n.map(Ni),arguments)},find(t,e){return gl(this,"find",t,e,Ni,arguments)},findIndex(t,e){return gl(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return gl(this,"findLast",t,e,Ni,arguments)},findLastIndex(t,e){return gl(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return gl(this,"forEach",t,e,void 0,arguments)},includes(...t){return OE(this,"includes",t)},indexOf(...t){return OE(this,"indexOf",t)},join(t){return eh(this).join(t)},lastIndexOf(...t){return OE(this,"lastIndexOf",t)},map(t,e){return gl(this,"map",t,e,void 0,arguments)},pop(){return Ig(this,"pop")},push(...t){return Ig(this,"push",t)},reduce(t,...e){return bM(this,"reduce",t,e)},reduceRight(t,...e){return bM(this,"reduceRight",t,e)},shift(){return Ig(this,"shift")},some(t,e){return gl(this,"some",t,e,void 0,arguments)},splice(...t){return Ig(this,"splice",t)},toReversed(){return eh(this).toReversed()},toSorted(t){return eh(this).toSorted(t)},toSpliced(...t){return eh(this).toSpliced(...t)},unshift(...t){return Ig(this,"unshift",t)},values(){return $E(this,"values",Ni)}};function $E(t,e,n){const r=Rw(t),i=r[e]();return r!==t&&!es(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const Tne=Array.prototype;function gl(t,e,n,r,i,o){const s=Rw(t),a=s!==t&&!es(t),l=s[e];if(l!==Tne[e]){const p=l.apply(t,o);return a?Ni(p):p}let d=n;s!==t&&(a?d=function(p,y){return n.call(this,Ni(p),y,t)}:n.length>2&&(d=function(p,y){return n.call(this,p,y,t)}));const h=l.call(s,d,r);return a&&i?i(h):h}function bM(t,e,n,r){const i=Rw(t);let o=n;return i!==t&&(es(t)?n.length>3&&(o=function(s,a,l){return n.call(this,s,a,l,t)}):o=function(s,a,l){return n.call(this,s,Ni(a),l,t)}),i[e](o,...r)}function OE(t,e,n){const r=Rt(t);Pi(r,"iterate",dv);const i=r[e](...n);return(i===-1||i===!1)&&Nw(n[0])?(n[0]=Rt(n[0]),r[e](...n)):i}function Ig(t,e,n=[]){cc(),vD();const r=Rt(t)[e].apply(t,n);return bD(),uc(),r}const _ne=wf("__proto__,__v_isRef,__isVue"),S9=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(fa));function Dne(t){fa(t)||(t=String(t));const e=Rt(this);return Pi(e,"has",t),e.hasOwnProperty(t)}class C9{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?D9:_9:o?T9:k9).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=Tt(e);if(!i){let l;if(s&&(l=kne[n]))return l;if(n==="hasOwnProperty")return Dne}const a=Reflect.get(e,n,fn(e)?e:r);return(fa(n)?S9.has(n):_ne(n))||(i||Pi(e,"get",n),o)?a:fn(a)?s&&hD(n)?a:a.value:er(a)?i?Jv(a):lo(a):a}}class E9 extends C9{constructor(e=!1){super(!1,e)}set(e,n,r,i){let o=e[n];if(!this._isShallow){const l=ec(o);if(!es(r)&&!ec(r)&&(o=Rt(o),r=Rt(r)),!Tt(e)&&fn(o)&&!fn(r))return l?!1:(o.value=r,!0)}const s=Tt(e)&&hD(n)?Number(n)<e.length:Bn(e,n),a=Reflect.set(e,n,r,fn(e)?e:i);return e===Rt(i)&&(s?Qi(r,o)&&Il(e,"set",n,r):Il(e,"add",n,r)),a}deleteProperty(e,n){const r=Bn(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&Il(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!fa(n)||!S9.has(n))&&Pi(e,"has",n),r}ownKeys(e){return Pi(e,"iterate",Tt(e)?"length":Pd),Reflect.ownKeys(e)}}class A9 extends C9{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const $ne=new E9,One=new A9,Ine=new E9(!0),Rne=new A9(!0),lk=t=>t,kb=t=>Reflect.getPrototypeOf(t);function Mne(t,e,n){return function(...r){const i=this.__v_raw,o=Rt(i),s=Vh(o),a=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,d=i[t](...r),h=n?lk:e?ck:Ni;return!e&&Pi(o,"iterate",l?ak:Pd),{next(){const{value:p,done:y}=d.next();return y?{value:p,done:y}:{value:a?[h(p[0]),h(p[1])]:h(p),done:y}},[Symbol.iterator](){return this}}}}function Tb(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Pne(t,e){const n={get(i){const o=this.__v_raw,s=Rt(o),a=Rt(i);t||(Qi(i,a)&&Pi(s,"get",i),Pi(s,"get",a));const{has:l}=kb(s),d=e?lk:t?ck:Ni;if(l.call(s,i))return d(o.get(i));if(l.call(s,a))return d(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!t&&Pi(Rt(i),"iterate",Pd),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,s=Rt(o),a=Rt(i);return t||(Qi(i,a)&&Pi(s,"has",i),Pi(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,l=Rt(a),d=e?lk:t?ck:Ni;return!t&&Pi(l,"iterate",Pd),a.forEach((h,p)=>i.call(o,d(h),d(p),s))}};return rr(n,t?{add:Tb("add"),set:Tb("set"),delete:Tb("delete"),clear:Tb("clear")}:{add(i){!e&&!es(i)&&!ec(i)&&(i=Rt(i));const o=Rt(this);return kb(o).has.call(o,i)||(o.add(i),Il(o,"add",i,i)),this},set(i,o){!e&&!es(o)&&!ec(o)&&(o=Rt(o));const s=Rt(this),{has:a,get:l}=kb(s);let d=a.call(s,i);d||(i=Rt(i),d=a.call(s,i));const h=l.call(s,i);return s.set(i,o),d?Qi(o,h)&&Il(s,"set",i,o):Il(s,"add",i,o),this},delete(i){const o=Rt(this),{has:s,get:a}=kb(o);let l=s.call(o,i);l||(i=Rt(i),l=s.call(o,i)),a&&a.call(o,i);const d=o.delete(i);return l&&Il(o,"delete",i,void 0),d},clear(){const i=Rt(this),o=i.size!==0,s=i.clear();return o&&Il(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Mne(i,t,e)}),n}function Mw(t,e){const n=Pne(t,e);return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Bn(n,i)&&i in r?n:r,i,o)}const Nne={get:Mw(!1,!1)},Lne={get:Mw(!1,!0)},Fne={get:Mw(!0,!1)},Bne={get:Mw(!0,!0)},k9=new WeakMap,T9=new WeakMap,_9=new WeakMap,D9=new WeakMap;function zne(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hne(t){return t.__v_skip||!Object.isExtensible(t)?0:zne(ine(t))}function lo(t){return ec(t)?t:Pw(t,!1,$ne,Nne,k9)}function $9(t){return Pw(t,!1,Ine,Lne,T9)}function Jv(t){return Pw(t,!0,One,Fne,_9)}function jne(t){return Pw(t,!0,Rne,Bne,D9)}function Pw(t,e,n,r,i){if(!er(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=Hne(t);if(s===0)return t;const a=new Proxy(t,s===2?r:n);return i.set(t,a),a}function $o(t){return ec(t)?$o(t.__v_raw):!!(t&&t.__v_isReactive)}function ec(t){return!!(t&&t.__v_isReadonly)}function es(t){return!!(t&&t.__v_isShallow)}function Nw(t){return t?!!t.__v_raw:!1}function Rt(t){const e=t&&t.__v_raw;return e?Rt(e):t}function lp(t){return!Bn(t,"__v_skip")&&Object.isExtensible(t)&&u9(t,"__v_skip",!0),t}const Ni=t=>er(t)?lo(t):t,ck=t=>er(t)?Jv(t):t;function fn(t){return t?t.__v_isRef===!0:!1}function ct(t){return O9(t,!1)}function ca(t){return O9(t,!0)}function O9(t,e){return fn(t)?t:new Wne(t,e)}class Wne{constructor(e,n){this.dep=new Iw,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Rt(e),this._value=n?e:Ni(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||es(e)||ec(e);e=r?e:Rt(e),Qi(e,n)&&(this._rawValue=e,this._value=r?e:Ni(e),this.dep.trigger())}}function Une(t){t.dep&&t.dep.trigger()}function kt(t){return fn(t)?t.value:t}function Vne(t){return jt(t)?t():kt(t)}const Yne={get:(t,e,n)=>e==="__v_raw"?t:kt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return fn(i)&&!fn(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function xD(t){return $o(t)?t:new Proxy(t,Yne)}class Xne{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Iw,{get:r,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function I9(t){return new Xne(t)}function wD(t){const e=Tt(t)?new Array(t.length):{};for(const n in t)e[n]=M9(t,n);return e}class Gne{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Ane(Rt(this._object),this._key)}}class qne{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function R9(t,e,n){return fn(t)?t:jt(t)?new qne(t):er(t)&&arguments.length>1?M9(t,e,n):ct(t)}function M9(t,e,n){const r=t[e];return fn(r)?r:new Gne(t,e,n)}class Kne{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Iw(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=uv-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ar!==this)return m9(this,!0),!0}get value(){const e=this.dep.track();return y9(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Jne(t,e,n=!1){let r,i;return jt(t)?r=t:(r=t.get,i=t.set),new Kne(r,i,n)}const Zne={GET:"get",HAS:"has",ITERATE:"iterate"},Qne={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},_b={},Rx=new WeakMap;let Uc;function ere(){return Uc}function P9(t,e=!1,n=Uc){if(n){let r=Rx.get(n);r||Rx.set(n,r=[]),r.push(t)}}function tre(t,e,n=wn){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:l}=n,d=M=>i?M:es(M)||i===!1||i===0?Rl(M,1):Rl(M);let h,p,y,w,C=!1,k=!1;if(fn(t)?(p=()=>t.value,C=es(t)):$o(t)?(p=()=>d(t),C=!0):Tt(t)?(k=!0,C=t.some(M=>$o(M)||es(M)),p=()=>t.map(M=>{if(fn(M))return M.value;if($o(M))return d(M);if(jt(M))return l?l(M,2):M()})):jt(t)?e?p=l?()=>l(t,2):t:p=()=>{if(y){cc();try{y()}finally{uc()}}const M=Uc;Uc=h;try{return l?l(t,3,[w]):t(w)}finally{Uc=M}}:p=As,e&&i){const M=p,F=i===!0?1/0:i;p=()=>Rl(M(),F)}const D=Ow(),I=()=>{h.stop(),D&&dD(D.effects,h)};if(o&&e){const M=e;e=(...F)=>{M(...F),I()}}let _=k?new Array(t.length).fill(_b):_b;const L=M=>{if(!(!(h.flags&1)||!h.dirty&&!M))if(e){const F=h.run();if(i||C||(k?F.some((H,G)=>Qi(H,_[G])):Qi(F,_))){y&&y();const H=Uc;Uc=h;try{const G=[F,_===_b?void 0:k&&_[0]===_b?[]:_,w];l?l(e,3,G):e(...G),_=F}finally{Uc=H}}}else h.run()};return a&&a(L),h=new cv(p),h.scheduler=s?()=>s(L,!1):L,w=M=>P9(M,!1,h),y=h.onStop=()=>{const M=Rx.get(h);if(M){if(l)l(M,4);else for(const F of M)F();Rx.delete(h)}},e?r?L(!0):_=h.run():s?s(L.bind(null,!0),!0):h.run(),I.pause=h.pause.bind(h),I.resume=h.resume.bind(h),I.stop=I,I}function Rl(t,e=1/0,n){if(e<=0||!er(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,fn(t))Rl(t.value,e,n);else if(Tt(t))for(let r=0;r<t.length;r++)Rl(t[r],e,n);else if(Sf(t)||Vh(t))t.forEach(r=>{Rl(r,e,n)});else if(Tw(t)){for(const r in t)Rl(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Rl(t[r],e,n)}return t}/**
* @vue/runtime-core v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Nd=[];function nre(t){Nd.push(t)}function rre(){Nd.pop()}let IE=!1;function Lc(t,...e){if(IE)return;IE=!0,cc();const n=Nd.length?Nd[Nd.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=ire();if(r)Cf(r,n,11,[t+e.map(o=>{var s,a;return(a=(s=o.toString)==null?void 0:s.call(o))!=null?a:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${HB(n,o.type)}>`).join(`
`),i]);else{const o=[`[Vue warn]: ${t}`,...e];i.length&&o.push(`
`,...ore(i)),console.warn(...o)}uc(),IE=!1}function ire(){let t=Nd[Nd.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function ore(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
`],...sre(n))}),e}function sre({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,i=` at <${HB(t.component,t.type,r)}`,o=">"+n;return t.props?[i,...are(t.props),o]:[i+o]}function are(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...N9(r,t[r]))}),n.length>3&&e.push(" ..."),e}function N9(t,e,n){return Un(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:fn(e)?(e=N9(t,Rt(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):jt(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Rt(e),n?e:[`${t}=`,e])}function lre(t,e){}const cre={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ure={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update",[16]:"app unmount cleanup function"};function Cf(t,e,n,r){try{return r?t(...r):t()}catch(i){Ef(i,e,n)}}function Os(t,e,n,r){if(jt(t)){const i=Cf(t,e,n,r);return i&&fD(i)&&i.catch(o=>{Ef(o,e,n)}),i}if(Tt(t)){const i=[];for(let o=0;o<t.length;o++)i.push(Os(t[o],e,n,r));return i}}function Ef(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||wn;if(e){let a=e.parent;const l=e.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let p=0;p<h.length;p++)if(h[p](t,l,d)===!1)return}a=a.parent}if(o){cc(),Cf(o,null,10,[t,l,d]),uc();return}}dre(t,n,i,r,s)}function dre(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const eo=[];let _a=-1;const Gh=[];let Vc=null,gh=0;const L9=Promise.resolve();let Mx=null;function Ir(t){const e=Mx||L9;return t?e.then(this?t.bind(this):t):e}function fre(t){let e=_a+1,n=eo.length;for(;e<n;){const r=e+n>>>1,i=eo[r],o=fv(i);o<t||o===t&&i.flags&2?e=r+1:n=r}return e}function SD(t){if(!(t.flags&1)){const e=fv(t),n=eo[eo.length-1];!n||!(t.flags&2)&&e>=fv(n)?eo.push(t):eo.splice(fre(e),0,t),t.flags|=1,F9()}}function F9(){Mx||(Mx=L9.then(B9))}function Px(t){Tt(t)?Gh.push(...t):Vc&&t.id===-1?Vc.splice(gh+1,0,t):t.flags&1||(Gh.push(t),t.flags|=1),F9()}function yM(t,e,n=_a+1){for(;n<eo.length;n++){const r=eo[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;eo.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Nx(t){if(Gh.length){const e=[...new Set(Gh)].sort((n,r)=>fv(n)-fv(r));if(Gh.length=0,Vc){Vc.push(...e);return}for(Vc=e,gh=0;gh<Vc.length;gh++){const n=Vc[gh];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Vc=null,gh=0}}const fv=t=>t.id==null?t.flags&2?-1:1/0:t.id;function B9(t){const e=As;try{for(_a=0;_a<eo.length;_a++){const n=eo[_a];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Cf(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;_a<eo.length;_a++){const n=eo[_a];n&&(n.flags&=-2)}_a=-1,eo.length=0,Nx(),Mx=null,(eo.length||Gh.length)&&B9()}}let mh,Db=[];function z9(t,e){var n,r;mh=t,mh?(mh.enabled=!0,Db.forEach(({event:i,args:o})=>mh.emit(i,...o)),Db=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{z9(o,e)}),setTimeout(()=>{mh||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Db=[])},3e3)):Db=[]}let Zr=null,Lw=null;function hv(t){const e=Zr;return Zr=t,Lw=t&&t.type.__scopeId||null,e}function H9(t){Lw=t}function j9(){Lw=null}const W9=t=>ji;function ji(t,e=Zr,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&bk(-1);const o=hv(e);let s;try{s=t(...i)}finally{hv(o),r._d&&bk(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function oa(t,e){if(Zr===null)return t;const n=t0(Zr),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,l=wn]=e[i];o&&(jt(o)&&(o={mounted:o,updated:o}),o.deep&&Rl(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return t}function Oa(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(cc(),Os(l,n,8,[t.el,a,t,e]),uc())}}const U9=Symbol("_vte"),V9=t=>t.__isTeleport,Sm=t=>t&&(t.disabled||t.disabled===""),hre=t=>t&&(t.defer||t.defer===""),xM=t=>typeof SVGElement<"u"&&t instanceof SVGElement,wM=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,uk=(t,e)=>{const n=t&&t.to;return Un(n)?e?e(n):null:n},pre={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,l,d){const{mc:h,pc:p,pbc:y,o:{insert:w,querySelector:C,createText:k,createComment:D}}=d,I=Sm(e.props);let{shapeFlag:_,children:L,dynamicChildren:M}=e;if(t==null){const F=e.el=k(""),H=e.anchor=k("");w(F,n,r),w(H,n,r);const G=(Z,te)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=Z),h(L,Z,te,i,o,s,a,l))},X=()=>{const Z=e.target=uk(e.props,C),te=Y9(Z,e,k,w);Z&&(s!=="svg"&&xM(Z)?s="svg":s!=="mathml"&&wM(Z)&&(s="mathml"),I||(G(Z,te),Yy(e,!1)))};I&&(G(n,H),Yy(e,!0)),hre(e.props)?oi(X,o):X()}else{e.el=t.el,e.targetStart=t.targetStart;const F=e.anchor=t.anchor,H=e.target=t.target,G=e.targetAnchor=t.targetAnchor,X=Sm(t.props),Z=X?n:H,te=X?F:G;if(s==="svg"||xM(H)?s="svg":(s==="mathml"||wM(H))&&(s="mathml"),M?(y(t.dynamicChildren,M,Z,i,o,s,a),RD(t,e,!0)):l||p(t,e,Z,te,i,o,s,a,!1),I)X?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):$b(e,n,F,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ae=e.target=uk(e.props,C);ae&&$b(e,ae,null,d,0)}else X&&$b(e,H,G,d,1);Yy(e,I)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:d,targetAnchor:h,target:p,props:y}=t;if(p&&(i(d),i(h)),o&&i(l),s&16){const w=o||!Sm(y);for(let C=0;C<a.length;C++){const k=a[C];r(k,e,n,w,!!k.dynamicChildren)}}},move:$b,hydrate:gre};function $b(t,e,n,{o:{insert:r},m:i},o=2){o===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:l,children:d,props:h}=t,p=o===2;if(p&&r(s,e,n),(!p||Sm(h))&&l&16)for(let y=0;y<d.length;y++)i(d[y],e,n,2);p&&r(a,e,n)}function gre(t,e,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:d,createText:h}},p){const y=e.target=uk(e.props,l);if(y){const w=Sm(e.props),C=y._lpa||y.firstChild;if(e.shapeFlag&16)if(w)e.anchor=p(s(t),e,a(t),n,r,i,o),e.targetStart=C,e.targetAnchor=C&&s(C);else{e.anchor=s(t);let k=C;for(;k;){if(k&&k.nodeType===8){if(k.data==="teleport start anchor")e.targetStart=k;else if(k.data==="teleport anchor"){e.targetAnchor=k,y._lpa=e.targetAnchor&&s(e.targetAnchor);break}}k=s(k)}e.targetAnchor||Y9(y,e,h,d),p(C&&s(C),e,y,n,r,i,o)}Yy(e,w)}return e.anchor&&s(e.anchor)}const mre=pre;function Yy(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Y9(t,e,n,r){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[U9]=o,t&&(r(i,t),r(o,t)),o}const Yc=Symbol("_leaveCb"),Ob=Symbol("_enterCb");function CD(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Rr(()=>{t.isMounted=!0}),tg(()=>{t.isUnmounting=!0}),t}const vs=[Function,Array],ED={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vs,onEnter:vs,onAfterEnter:vs,onEnterCancelled:vs,onBeforeLeave:vs,onLeave:vs,onAfterLeave:vs,onLeaveCancelled:vs,onBeforeAppear:vs,onAppear:vs,onAfterAppear:vs,onAppearCancelled:vs},X9=t=>{const e=t.subTree;return e.component?X9(e.component):e},vre={name:"BaseTransition",props:ED,setup(t,{slots:e}){const n=ci(),r=CD();return()=>{const i=e.default&&Fw(e.default(),!0);if(!i||!i.length)return;const o=G9(i),s=Rt(t),{mode:a}=s;if(r.isLeaving)return RE(o);const l=SM(o);if(!l)return RE(o);let d=cp(l,s,r,n,y=>d=y);l.type!==jr&&tc(l,d);const h=n.subTree,p=h&&SM(h);if(p&&p.type!==jr&&!ea(l,p)&&X9(n).type!==jr){const y=cp(p,s,r,n);if(tc(p,y),a==="out-in"&&l.type!==jr)return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete y.afterLeave},RE(o);a==="in-out"&&l.type!==jr&&(y.delayLeave=(w,C,k)=>{const D=K9(r,p);D[String(p.key)]=p,w[Yc]=()=>{C(),w[Yc]=void 0,delete d.delayedLeave},d.delayedLeave=k})}return o}}};function G9(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==jr){e=n;break}}return e}const q9=vre;function K9(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function cp(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:y,onLeave:w,onAfterLeave:C,onLeaveCancelled:k,onBeforeAppear:D,onAppear:I,onAfterAppear:_,onAppearCancelled:L}=e,M=String(t.key),F=K9(n,t),H=(Z,te)=>{Z&&Os(Z,r,9,te)},G=(Z,te)=>{const ae=te[1];H(Z,te),Tt(Z)?Z.every(ye=>ye.length<=1)&&ae():Z.length<=1&&ae()},X={mode:s,persisted:a,beforeEnter(Z){let te=l;if(!n.isMounted)if(o)te=D||l;else return;Z[Yc]&&Z[Yc](!0);const ae=F[M];ae&&ea(t,ae)&&ae.el[Yc]&&ae.el[Yc](),H(te,[Z])},enter(Z){let te=d,ae=h,ye=p;if(!n.isMounted)if(o)te=I||d,ae=_||h,ye=L||p;else return;let ve=!1;const se=Z[Ob]=J=>{ve||(ve=!0,J?H(ye,[Z]):H(ae,[Z]),X.delayedLeave&&X.delayedLeave(),Z[Ob]=void 0)};te?G(te,[Z,se]):se()},leave(Z,te){const ae=String(t.key);if(Z[Ob]&&Z[Ob](!0),n.isUnmounting)return te();H(y,[Z]);let ye=!1;const ve=Z[Yc]=se=>{ye||(ye=!0,te(),se?H(k,[Z]):H(C,[Z]),Z[Yc]=void 0,F[ae]===t&&delete F[ae])};F[ae]=t,w?G(w,[Z,ve]):ve()},clone(Z){const te=cp(Z,e,n,r,i);return i&&i(te),te}};return X}function RE(t){if(Zv(t))return t=ha(t),t.children=null,t}function SM(t){if(!Zv(t))return V9(t.type)&&t.children?G9(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&jt(n.default))return n.default()}}function tc(t,e){t.shapeFlag&6&&t.component?(t.transition=e,tc(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Fw(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Gn?(s.patchFlag&128&&i++,r=r.concat(Fw(s.children,e,a))):(e||s.type!==jr)&&r.push(a!=null?ha(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Jn(t,e){return jt(t)?(()=>rr({name:t.name},e,{setup:t}))():t}function bre(){const t=ci();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function AD(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function yre(t){const e=ci(),n=ca(null);if(e){const i=e.refs===wn?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Lx(t,e,n,r,i=!1){if(Tt(t)){t.forEach((C,k)=>Lx(C,e&&(Tt(e)?e[k]:e),n,r,i));return}if(bu(r)&&!i)return;const o=r.shapeFlag&4?t0(r.component):r.el,s=i?null:o,{i:a,r:l}=t,d=e&&e.r,h=a.refs===wn?a.refs={}:a.refs,p=a.setupState,y=Rt(p),w=p===wn?()=>!1:C=>Bn(y,C);if(d!=null&&d!==l&&(Un(d)?(h[d]=null,w(d)&&(p[d]=null)):fn(d)&&(d.value=null)),jt(l))Cf(l,a,12,[s,h]);else{const C=Un(l),k=fn(l);if(C||k){const D=()=>{if(t.f){const I=C?w(l)?p[l]:h[l]:l.value;i?Tt(I)&&dD(I,o):Tt(I)?I.includes(o)||I.push(o):C?(h[l]=[o],w(l)&&(p[l]=h[l])):(l.value=[o],t.k&&(h[t.k]=l.value))}else C?(h[l]=s,w(l)&&(p[l]=s)):k&&(l.value=s,t.k&&(h[t.k]=s))};s?(D.id=-1,oi(D,n)):D()}}}let CM=!1;const ld=()=>{CM||(console.error("Hydration completed but contains mismatches."),CM=!0)},xre=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",wre=t=>t.namespaceURI.includes("MathML"),Ib=t=>{if(t.nodeType===1){if(xre(t))return"svg";if(wre(t))return"mathml"}},Ed=t=>t.nodeType===8;function Sre(t){const{mt:e,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:d}}=t,h=(L,M)=>{if(!M.hasChildNodes()){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Lc("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,L,M),Nx(),M._vnode=L;return}p(M.firstChild,L,null,null,null),Nx(),M._vnode=L},p=(L,M,F,H,G,X=!1)=>{X=X||!!M.dynamicChildren;const Z=Ed(L)&&L.data==="[",te=()=>k(L,M,F,H,G,Z),{type:ae,ref:ye,shapeFlag:ve,patchFlag:se}=M;let J=L.nodeType;M.el=L,se===-2&&(X=!1,M.dynamicChildren=null);let B=null;switch(ae){case Wl:J!==3?M.children===""?(l(M.el=i(""),s(L),L),B=L):B=te():(L.data!==M.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Lc("Hydration text mismatch in",L.parentNode,`
  - rendered on server: ${JSON.stringify(L.data)}
  - expected on client: ${JSON.stringify(M.children)}`),ld(),L.data=M.children),B=o(L));break;case jr:_(L)?(B=o(L),I(M.el=L.content.firstChild,L,F)):J!==8||Z?B=te():B=o(L);break;case Fd:if(Z&&(L=o(L),J=L.nodeType),J===1||J===3){B=L;const V=!M.children.length;for(let q=0;q<M.staticCount;q++)V&&(M.children+=B.nodeType===1?B.outerHTML:B.data),q===M.staticCount-1&&(M.anchor=B),B=o(B);return Z?o(B):B}else te();break;case Gn:Z?B=C(L,M,F,H,G,X):B=te();break;default:if(ve&1)(J!==1||M.type.toLowerCase()!==L.tagName.toLowerCase())&&!_(L)?B=te():B=y(L,M,F,H,G,X);else if(ve&6){M.slotScopeIds=G;const V=s(L);if(Z?B=D(L):Ed(L)&&L.data==="teleport start"?B=D(L,L.data,"teleport end"):B=o(L),e(M,V,null,F,H,Ib(V),X),bu(M)){let q;Z?(q=Nt(Gn),q.anchor=B?B.previousSibling:V.lastChild):q=L.nodeType===3?LD(""):Nt("div"),q.el=L,M.component.subTree=q}}else ve&64?J!==8?B=te():B=M.type.hydrate(L,M,F,H,G,X,t,w):ve&128?B=M.type.hydrate(L,M,F,H,Ib(s(L)),G,X,t,p):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Lc("Invalid HostVNode type:",ae,`(${typeof ae})`)}return ye!=null&&Lx(ye,null,H,M),B},y=(L,M,F,H,G,X)=>{X=X||!!M.dynamicChildren;const{type:Z,props:te,patchFlag:ae,shapeFlag:ye,dirs:ve,transition:se}=M,J=Z==="input"||Z==="option";if(J||ae!==-1){ve&&Oa(M,null,F,"created");let B=!1;if(_(L)){B=SB(null,se)&&F&&F.vnode.props&&F.vnode.props.appear;const q=L.content.firstChild;B&&se.beforeEnter(q),I(q,L,F),M.el=L=q}if(ye&16&&!(te&&(te.innerHTML||te.textContent))){let q=w(L.firstChild,M,L,F,H,G,X),ce=!1;for(;q;){sm(L,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!ce&&(Lc("Hydration children mismatch on",L,`
Server rendered element contains more child nodes than client vdom.`),ce=!0),ld());const fe=q;q=q.nextSibling,a(fe)}}else if(ye&8){let q=M.children;q[0]===`
`&&(L.tagName==="PRE"||L.tagName==="TEXTAREA")&&(q=q.slice(1)),L.textContent!==q&&(sm(L,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Lc("Hydration text content mismatch on",L,`
  - rendered on server: ${L.textContent}
  - expected on client: ${M.children}`),ld()),L.textContent=M.children)}if(te){if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||J||!X||ae&48){const q=L.tagName.includes("-");for(const ce in te)__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!(ve&&ve.some(fe=>fe.dir.created))&&Cre(L,ce,te[ce],M,F)&&ld(),(J&&(ce.endsWith("value")||ce==="indeterminate")||Gv(ce)&&!Yh(ce)||ce[0]==="."||q)&&r(L,ce,null,te[ce],void 0,F)}else if(te.onClick)r(L,"onClick",null,te.onClick,void 0,F);else if(ae&4&&$o(te.style))for(const q in te.style)te.style[q]}let V;(V=te&&te.onVnodeBeforeMount)&&To(V,F,M),ve&&Oa(M,null,F,"beforeMount"),((V=te&&te.onVnodeMounted)||ve||B)&&IB(()=>{V&&To(V,F,M),B&&se.enter(L),ve&&Oa(M,null,F,"mounted")},H)}return L.nextSibling},w=(L,M,F,H,G,X,Z)=>{Z=Z||!!M.dynamicChildren;const te=M.children,ae=te.length;let ye=!1;for(let ve=0;ve<ae;ve++){const se=Z?te[ve]:te[ve]=_o(te[ve]),J=se.type===Wl;L?(J&&!Z&&ve+1<ae&&_o(te[ve+1]).type===Wl&&(l(i(L.data.slice(se.children.length)),F,o(L)),L.data=se.children),L=p(L,se,H,G,X,Z)):J&&!se.children?l(se.el=i(""),F):(sm(F,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!ye&&(Lc("Hydration children mismatch on",F,`
Server rendered element contains fewer child nodes than client vdom.`),ye=!0),ld()),n(null,se,F,null,H,G,Ib(F),X))}return L},C=(L,M,F,H,G,X)=>{const{slotScopeIds:Z}=M;Z&&(G=G?G.concat(Z):Z);const te=s(L),ae=w(o(L),M,te,F,H,G,X);return ae&&Ed(ae)&&ae.data==="]"?o(M.anchor=ae):(ld(),l(M.anchor=d("]"),te,ae),ae)},k=(L,M,F,H,G,X)=>{if(sm(L.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Lc(`Hydration node mismatch:
- rendered on server:`,L,L.nodeType===3?"(text)":Ed(L)&&L.data==="["?"(start of fragment)":"",`
- expected on client:`,M.type),ld()),M.el=null,X){const ae=D(L);for(;;){const ye=o(L);if(ye&&ye!==ae)a(ye);else break}}const Z=o(L),te=s(L);return a(L),n(null,M,te,Z,F,H,Ib(te),G),Z},D=(L,M="[",F="]")=>{let H=0;for(;L;)if(L=o(L),L&&Ed(L)&&(L.data===M&&H++,L.data===F)){if(H===0)return o(L);H--}return L},I=(L,M,F)=>{const H=M.parentNode;H&&H.replaceChild(L,M);let G=F;for(;G;)G.vnode.el===M&&(G.vnode.el=G.subTree.el=L),G=G.parent},_=L=>L.nodeType===1&&L.tagName==="TEMPLATE";return[h,p]}function Cre(t,e,n,r,i){let o,s,a,l;if(e==="class")a=t.getAttribute("class"),l=$r(n),Ere(EM(a||""),EM(l))||(o=2,s="class");else if(e==="style"){a=t.getAttribute("style")||"",l=Un(n)?n:hne(Ei(n));const d=AM(a),h=AM(l);if(r.dirs)for(const{dir:p,value:y}of r.dirs)p.name==="show"&&!y&&h.set("display","none");i&&J9(i,r,h),Are(d,h)||(o=3,s="style")}else(t instanceof SVGElement&&mne(e)||t instanceof HTMLElement&&(mM(e)||gne(e)))&&(mM(e)?(a=t.hasAttribute(e),l=pD(n)):n==null?(a=t.hasAttribute(e),l=!1):(t.hasAttribute(e)?a=t.getAttribute(e):e==="value"&&t.tagName==="TEXTAREA"?a=t.value:a=!1,l=vne(n)?String(n):!1),a!==l&&(o=4,s=e));if(o!=null&&!sm(t,o)){const d=y=>y===!1?"(not rendered)":`${s}="${y}"`,h=`Hydration ${Z9[o]} mismatch on`,p=`
  - rendered on server: ${d(a)}
  - expected on client: ${d(l)}
  Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
  You should fix the source of the mismatch.`;return Lc(h,t,p),!0}return!1}function EM(t){return new Set(t.trim().split(/\s+/))}function Ere(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function AM(t){const e=new Map;for(const n of t.split(";")){let[r,i]=n.split(":");r=r.trim(),i=i&&i.trim(),r&&i&&e.set(r,i)}return e}function Are(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t)if(r!==e.get(n))return!1;return!0}function J9(t,e,n){const r=t.subTree;if(t.getCssVars&&(e===r||r&&r.type===Gn&&r.children.includes(e))){const i=t.getCssVars();for(const o in i)n.set(`--${yne(o,!1)}`,String(i[o]))}e===r&&t.parent&&J9(t.parent,t.vnode,n)}const kM="data-allow-mismatch",Z9={[0]:"text",[1]:"children",[2]:"class",[3]:"style",[4]:"attribute"};function sm(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(kM);)t=t.parentElement;const n=t&&t.getAttribute(kM);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:n.split(",").includes(Z9[e])}}const kre=Kv().requestIdleCallback||(t=>setTimeout(t,1)),Tre=Kv().cancelIdleCallback||(t=>clearTimeout(t)),_re=(t=1e4)=>e=>{const n=kre(e,{timeout:t});return()=>Tre(n)};function Dre(t){const{top:e,left:n,bottom:r,right:i}=t.getBoundingClientRect(),{innerHeight:o,innerWidth:s}=window;return(e>0&&e<o||r>0&&r<o)&&(n>0&&n<s||i>0&&i<s)}const $re=t=>(e,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),e();break}},t);return n(i=>{if(i instanceof Element){if(Dre(i))return e(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},Ore=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},Ire=(t=[])=>(e,n)=>{Un(t)&&(t=[t]);let r=!1;const i=s=>{r||(r=!0,o(),e(),s.target.dispatchEvent(new s.constructor(s.type,s)))},o=()=>{n(s=>{for(const a of t)s.removeEventListener(a,i)})};return n(s=>{for(const a of t)s.addEventListener(a,i,{once:!0})}),o};function Rre(t,e){if(Ed(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Ed(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const bu=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Mre(t){jt(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:l}=t;let d=null,h,p=0;const y=()=>(p++,d=null,w()),w=()=>{let C;return d||(C=d=e().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),l)return new Promise((D,I)=>{l(k,()=>D(y()),()=>I(k),p+1)});throw k}).then(k=>C!==d&&d?d:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),h=k,k)))};return Jn({name:"AsyncComponentWrapper",__asyncLoader:w,__asyncHydrate(C,k,D){const I=o?()=>{const _=o(D,L=>Rre(C,L));_&&(k.bum||(k.bum=[])).push(_)}:D;h?I():w().then(()=>!k.isUnmounted&&I())},get __asyncResolved(){return h},setup(){const C=Jr;if(AD(C),h)return()=>ME(h,C);const k=L=>{d=null,Ef(L,C,13,!r)};if(a&&C.suspense||dp)return w().then(L=>()=>ME(L,C)).catch(L=>(k(L),()=>r?Nt(r,{error:L}):null));const D=ct(!1),I=ct(),_=ct(!!i);return i&&setTimeout(()=>{_.value=!1},i),s!=null&&setTimeout(()=>{if(!D.value&&!I.value){const L=new Error(`Async component timed out after ${s}ms.`);k(L),I.value=L}},s),w().then(()=>{D.value=!0,C.parent&&Zv(C.parent.vnode)&&C.parent.update()}).catch(L=>{k(L),I.value=L}),()=>{if(D.value&&h)return ME(h,C);if(I.value&&r)return Nt(r,{error:I.value});if(n&&!_.value)return Nt(n)}}})}function ME(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=Nt(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const Zv=t=>t.type.__isKeepAlive,Pre={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=ci(),r=n.ctx;if(!r.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:d,um:h,o:{createElement:p}}}=r,y=p("div");r.activate=(_,L,M,F,H)=>{const G=_.component;d(_,L,M,0,a),l(G.vnode,_,L,M,G,a,F,_.slotScopeIds,H),oi(()=>{G.isDeactivated=!1,G.a&&Xh(G.a);const X=_.props&&_.props.onVnodeMounted;X&&To(X,G.parent,_)},a)},r.deactivate=_=>{const L=_.component;Bx(L.m),Bx(L.a),d(_,y,null,1,a),oi(()=>{L.da&&Xh(L.da);const M=_.props&&_.props.onVnodeUnmounted;M&&To(M,L.parent,_),L.isDeactivated=!0},a)};function w(_){PE(_),h(_,n,a,!0)}function C(_){i.forEach((L,M)=>{const F=Wx(L.type);F&&!_(F)&&k(M)})}function k(_){const L=i.get(_);L&&(!s||!ea(L,s))?w(L):s&&PE(s),i.delete(_),o.delete(_)}en(()=>[t.include,t.exclude],([_,L])=>{_&&C(M=>am(_,M)),L&&C(M=>!am(L,M))},{flush:"post",deep:!0});let D=null;const I=()=>{D!=null&&(zx(n.subTree.type)?oi(()=>{i.set(D,Rb(n.subTree))},n.subTree.suspense):i.set(D,Rb(n.subTree)))};return Rr(I),Hw(I),tg(()=>{i.forEach(_=>{const{subTree:L,suspense:M}=n,F=Rb(L);if(_.type===F.type&&_.key===F.key){PE(F);const H=F.component.da;H&&oi(H,M);return}w(_)})}),()=>{if(D=null,!e.default)return s=null;const _=e.default(),L=_[0];if(_.length>1)return s=null,_;if(!Ya(L)||!(L.shapeFlag&4)&&!(L.shapeFlag&128))return s=null,L;let M=Rb(L);if(M.type===jr)return s=null,M;const F=M.type,H=Wx(bu(M)?M.type.__asyncResolved||{}:F),{include:G,exclude:X,max:Z}=t;if(G&&(!H||!am(G,H))||X&&H&&am(X,H))return M.shapeFlag&=-257,s=M,L;const te=M.key==null?F:M.key,ae=i.get(te);return M.el&&(M=ha(M),L.shapeFlag&128&&(L.ssContent=M)),D=te,ae?(M.el=ae.el,M.component=ae.component,M.transition&&tc(M,M.transition),M.shapeFlag|=512,o.delete(te),o.add(te)):(o.add(te),Z&&o.size>parseInt(Z,10)&&k(o.values().next().value)),M.shapeFlag|=256,s=M,zx(L.type)?L:M}}},Nre=Pre;function am(t,e){return Tt(t)?t.some(n=>am(n,e)):Un(t)?t.split(",").includes(e):rne(t)?(t.lastIndex=0,t.test(e)):!1}function kD(t,e){Q9(t,"a",e)}function TD(t,e){Q9(t,"da",e)}function Q9(t,e,n=Jr){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Bw(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Zv(i.parent.vnode)&&Lre(r,e,n,i),i=i.parent}}function Lre(t,e,n,r){const i=Bw(e,t,r,!0);as(()=>{dD(r[e],i)},n)}function PE(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Rb(t){return t.shapeFlag&128?t.ssContent:t}function Bw(t,e,n=Jr,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{cc();const a=ef(n),l=Os(e,n,t,s);return a(),uc(),l});return r?i.unshift(o):i.push(o),o}}const dc=t=>(e,n=Jr)=>{(!dp||t==="sp")&&Bw(t,(...r)=>e(...r),n)},zw=dc("bm"),Rr=dc("m"),eB=dc("bu"),Hw=dc("u"),tg=dc("bum"),as=dc("um"),tB=dc("sp"),nB=dc("rtg"),rB=dc("rtc");function iB(t,e=Jr){Bw("ec",t,e)}const _D="components",Fre="directives";function Lr(t,e){return DD(_D,t,!0,e)||t}const oB=Symbol.for("v-ndc");function up(t){return Un(t)?DD(_D,t,!1)||t:t||oB}function sB(t){return DD(Fre,t)}function DD(t,e,n=!0,r=!1){const i=Zr||Jr;if(i){const o=i.type;if(t===_D){const a=Wx(o,!1);if(a&&(a===e||a===Ci(e)||a===qv(Ci(e))))return o}const s=TM(i[t]||o[t],e)||TM(i.appContext[t],e);return!s&&r?o:s}}function TM(t,e){return t&&(t[e]||t[Ci(e)]||t[qv(Ci(e))])}function pv(t,e,n,r){let i;const o=n&&n[r],s=Tt(t);if(s||Un(t)){const a=s&&$o(t);let l=!1;a&&(l=!es(t),t=Rw(t)),i=new Array(t.length);for(let d=0,h=t.length;d<h;d++)i[d]=e(l?Ni(t[d]):t[d],d,void 0,o&&o[d])}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o&&o[a])}else if(er(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,o&&o[l]));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,d=a.length;l<d;l++){const h=a[l];i[l]=e(t[h],h,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function Bre(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(Tt(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return t}function Yr(t,e,n={},r,i){if(Zr.ce||Zr.parent&&bu(Zr.parent)&&Zr.parent.ce)return e!=="default"&&(n.name=e),Et(),kn(Gn,null,[Nt("slot",n,r&&r())],64);let o=t[e];o&&o._c&&(o._d=!1),Et();const s=o&&$D(o(n)),a=n.key||s&&s.key,l=kn(Gn,{key:(a&&!fa(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function $D(t){return t.some(e=>Ya(e)?!(e.type===jr||e.type===Gn&&!$D(e.children)):!0)?t:null}function zre(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:ym(r)]=t[r];return n}const dk=t=>t?LB(t)?t0(t):dk(t.parent):null,Cm=rr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>dk(t.parent),$root:t=>dk(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>OD(t),$forceUpdate:t=>t.f||(t.f=()=>{SD(t.update)}),$nextTick:t=>t.n||(t.n=Ir.bind(t.proxy)),$watch:t=>mie.bind(t)}),NE=(t,e)=>t!==wn&&!t.__isScriptSetup&&Bn(t,e),fk={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;let d;if(e[0]!=="$"){const w=s[e];if(w!==void 0)switch(w){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(NE(r,e))return s[e]=1,r[e];if(i!==wn&&Bn(i,e))return s[e]=2,i[e];if((d=t.propsOptions[0])&&Bn(d,e))return s[e]=3,o[e];if(n!==wn&&Bn(n,e))return s[e]=4,n[e];pk&&(s[e]=0)}}const h=Cm[e];let p,y;if(h)return e==="$attrs"&&Pi(t.attrs,"get",""),h(t);if((p=a.__cssModules)&&(p=p[e]))return p;if(n!==wn&&Bn(n,e))return s[e]=4,n[e];if(y=l.config.globalProperties,Bn(y,e))return y[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return NE(i,e)?(i[e]=n,!0):r!==wn&&Bn(r,e)?(r[e]=n,!0):Bn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||t!==wn&&Bn(t,s)||NE(e,s)||(a=o[0])&&Bn(a,s)||Bn(r,s)||Bn(Cm,s)||Bn(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Bn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},Hre=rr({},fk,{get(t,e){if(e!==Symbol.unscopables)return fk.get(t,e,t)},has(t,e){return e[0]!=="_"&&!lne(e)}});function jre(){return null}function Wre(){return null}function Ure(t){}function Vre(t){}function Yre(){return null}function Xre(){}function Gre(t,e){return null}function qre(){return aB().slots}function Kre(){return aB().attrs}function aB(){const t=ci();return t.setupContext||(t.setupContext=zB(t))}function gv(t){return Tt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Jre(t,e){const n=gv(t);for(const r in e){if(r.startsWith("__skip"))continue;let i=n[r];i?Tt(i)||jt(i)?i=n[r]={type:i,default:e[r]}:i.default=e[r]:i===null&&(i=n[r]={default:e[r]}),i&&e[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function hk(t,e){return!t||!e?t||e:Tt(t)&&Tt(e)?t.concat(e):rr({},gv(t),gv(e))}function Zre(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function Qre(t){const e=ci();let n=t();return xk(),fD(n)&&(n=n.catch(r=>{throw ef(e),r})),[n,()=>ef(e)]}let pk=!0;function eie(t){const e=OD(t),n=t.proxy,r=t.ctx;pk=!1,e.beforeCreate&&_M(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:d,created:h,beforeMount:p,mounted:y,beforeUpdate:w,updated:C,activated:k,deactivated:D,beforeDestroy:I,beforeUnmount:_,destroyed:L,unmounted:M,render:F,renderTracked:H,renderTriggered:G,errorCaptured:X,serverPrefetch:Z,expose:te,inheritAttrs:ae,components:ye,directives:ve,filters:se}=e;if(d&&tie(d,r,null),s)for(const V in s){const q=s[V];jt(q)&&(r[V]=q.bind(n))}if(i){const V=i.call(n,n);er(V)&&(t.data=lo(V))}if(pk=!0,o)for(const V in o){const q=o[V],ce=jt(q)?q.bind(n,n):jt(q.get)?q.get.bind(n,n):As,fe=!jt(q)&&jt(q.set)?q.set.bind(n):As,Ae=lt({get:ce,set:fe});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:Se=>Ae.value=Se})}if(a)for(const V in a)lB(a[V],r,n,V);if(l){const V=jt(l)?l.call(n):l;Reflect.ownKeys(V).forEach(q=>{so(q,V[q])})}h&&_M(h,t,"c");function B(V,q){Tt(q)?q.forEach(ce=>V(ce.bind(n))):q&&V(q.bind(n))}if(B(zw,p),B(Rr,y),B(eB,w),B(Hw,C),B(kD,k),B(TD,D),B(iB,X),B(rB,H),B(nB,G),B(tg,_),B(as,M),B(tB,Z),Tt(te))if(te.length){const V=t.exposed||(t.exposed={});te.forEach(q=>{Object.defineProperty(V,q,{get:()=>n[q],set:ce=>n[q]=ce})})}else t.exposed||(t.exposed={});F&&t.render===As&&(t.render=F),ae!=null&&(t.inheritAttrs=ae),ye&&(t.components=ye),ve&&(t.directives=ve),Z&&AD(t)}function tie(t,e,n=As){Tt(t)&&(t=gk(t));for(const r in t){const i=t[r];let o;er(i)?"default"in i?o=gr(i.from||r,i.default,!0):o=gr(i.from||r):o=gr(i),fn(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function _M(t,e,n){Os(Tt(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function lB(t,e,n,r){let i=r.includes(".")?TB(n,r):()=>n[r];if(Un(t)){const o=e[t];jt(o)&&en(i,o)}else if(jt(t))en(i,t.bind(n));else if(er(t))if(Tt(t))t.forEach(o=>lB(o,e,n,r));else{const o=jt(t.handler)?t.handler.bind(n):e[t.handler];jt(o)&&en(i,o,t)}}function OD(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(d=>Fx(l,d,s,!0)),Fx(l,e,s)),er(e)&&o.set(e,l),l}function Fx(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Fx(t,o,n,!0),i&&i.forEach(s=>Fx(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=nie[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const nie={data:DM,props:$M,emits:$M,methods:lm,computed:lm,beforeCreate:Xi,created:Xi,beforeMount:Xi,mounted:Xi,beforeUpdate:Xi,updated:Xi,beforeDestroy:Xi,beforeUnmount:Xi,destroyed:Xi,unmounted:Xi,activated:Xi,deactivated:Xi,errorCaptured:Xi,serverPrefetch:Xi,components:lm,directives:lm,watch:iie,provide:DM,inject:rie};function DM(t,e){return e?t?function(){return rr(jt(t)?t.call(this,this):t,jt(e)?e.call(this,this):e)}:e:t}function rie(t,e){return lm(gk(t),gk(e))}function gk(t){if(Tt(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Xi(t,e){return t?[...new Set([].concat(t,e))]:e}function lm(t,e){return t?rr(Object.create(null),t,e):e}function $M(t,e){return t?Tt(t)&&Tt(e)?[...new Set([...t,...e])]:rr(Object.create(null),gv(t),gv(e??{})):e}function iie(t,e){if(!t)return e;if(!e)return t;const n=rr(Object.create(null),t);for(const r in e)n[r]=Xi(t[r],e[r]);return n}function cB(){return{app:null,config:{isNativeTag:tne,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let oie=0;function sie(t,e){return function(r,i=null){jt(r)||(r=rr({},r)),i!=null&&!er(i)&&(i=null);const o=cB(),s=new WeakSet,a=[];let l=!1;const d=o.app={_uid:oie++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:BD,get config(){return o.config},set config(h){},use(h,...p){return s.has(h)||(h&&jt(h.install)?(s.add(h),h.install(d,...p)):jt(h)&&(s.add(h),h(d,...p))),d},mixin(h){return o.mixins.includes(h)||o.mixins.push(h),d},component(h,p){return p?(o.components[h]=p,d):o.components[h]},directive(h,p){return p?(o.directives[h]=p,d):o.directives[h]},mount(h,p,y){if(!l){const w=d._ceVNode||Nt(r,i);return w.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),p&&e?e(w,h):t(w,h,y),l=!0,d._container=h,h.__vue_app__=d,t0(w.component)}},onUnmount(h){a.push(h)},unmount(){l&&(Os(a,d._instance,16),t(null,d._container),delete d._container.__vue_app__)},provide(h,p){return o.provides[h]=p,d},runWithContext(h){const p=Ld;Ld=d;try{return h()}finally{Ld=p}}};return d}}let Ld=null;function so(t,e){if(Jr){let n=Jr.provides;const r=Jr.parent&&Jr.parent.provides;r===n&&(n=Jr.provides=Object.create(r)),n[t]=e}}function gr(t,e,n=!1){const r=Jr||Zr;if(r||Ld){const i=Ld?Ld._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&jt(e)?e.call(r&&r.proxy):e}}function aie(){return!!(Jr||Zr||Ld)}const uB={},dB=()=>Object.create(uB),fB=t=>Object.getPrototypeOf(t)===uB;function lie(t,e,n,r=!1){const i={},o=dB();t.propsDefaults=Object.create(null),hB(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:$9(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function cie(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=Rt(i),[l]=t.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=t.vnode.dynamicProps;for(let p=0;p<h.length;p++){let y=h[p];if(jw(t.emitsOptions,y))continue;const w=e[y];if(l)if(Bn(o,y))w!==o[y]&&(o[y]=w,d=!0);else{const C=Ci(y);i[C]=mk(l,a,C,w,t,!1)}else w!==o[y]&&(o[y]=w,d=!0)}}}else{hB(t,e,i,o)&&(d=!0);let h;for(const p in a)(!e||!Bn(e,p)&&((h=ro(p))===p||!Bn(e,h)))&&(l?n&&(n[p]!==void 0||n[h]!==void 0)&&(i[p]=mk(l,a,p,void 0,t,!0)):delete i[p]);if(o!==a)for(const p in o)(!e||!Bn(e,p))&&(delete o[p],d=!0)}d&&Il(t.attrs,"set","")}function hB(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let l in e){if(Yh(l))continue;const d=e[l];let h;i&&Bn(i,h=Ci(l))?!o||!o.includes(h)?n[h]=d:(a||(a={}))[h]=d:jw(t.emitsOptions,l)||(!(l in r)||d!==r[l])&&(r[l]=d,s=!0)}if(o){const l=Rt(n),d=a||wn;for(let h=0;h<o.length;h++){const p=o[h];n[p]=mk(i,l,p,d[p],t,!Bn(d,p))}}return s}function mk(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=Bn(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&jt(l)){const{propsDefaults:d}=i;if(n in d)r=d[n];else{const h=ef(i);r=d[n]=l.call(null,e),h()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===ro(n))&&(r=!0))}return r}const uie=new WeakMap;function pB(t,e,n=!1){const r=n?uie:e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let l=!1;if(!jt(t)){const h=p=>{l=!0;const[y,w]=pB(p,e,!0);rr(s,y),w&&a.push(...w)};!n&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!o&&!l)return er(t)&&r.set(t,Uh),Uh;if(Tt(o))for(let h=0;h<o.length;h++){const p=Ci(o[h]);OM(p)&&(s[p]=wn)}else if(o)for(const h in o){const p=Ci(h);if(OM(p)){const y=o[h],w=s[p]=Tt(y)||jt(y)?{type:y}:rr({},y),C=w.type;let k=!1,D=!0;if(Tt(C))for(let I=0;I<C.length;++I){const _=C[I],L=jt(_)&&_.name;if(L==="Boolean"){k=!0;break}else L==="String"&&(D=!1)}else k=jt(C)&&C.name==="Boolean";w[0]=k,w[1]=D,(k||Bn(w,"default"))&&a.push(p)}}const d=[s,a];return er(t)&&r.set(t,d),d}function OM(t){return t[0]!=="$"&&!Yh(t)}const gB=t=>t[0]==="_"||t==="$stable",ID=t=>Tt(t)?t.map(_o):[_o(t)],die=(t,e,n)=>{if(e._n)return e;const r=ji((...i)=>ID(e(...i)),n);return r._c=!1,r},mB=(t,e,n)=>{const r=t._ctx;for(const i in t){if(gB(i))continue;const o=t[i];if(jt(o))e[i]=die(i,o,r);else if(o!=null){const s=ID(o);e[i]=()=>s}}},vB=(t,e)=>{const n=ID(e);t.slots.default=()=>n},bB=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},fie=(t,e,n)=>{const r=t.slots=dB();if(t.vnode.shapeFlag&32){const i=e._;i?(bB(r,e,n),n&&u9(r,"_",i,!0)):mB(e,r)}else e&&vB(t,e)},hie=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=wn;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:bB(i,e,n):(o=!e.$stable,mB(e,i)),s=e}else e&&(vB(t,e),s={default:1});if(o)for(const a in i)!gB(a)&&s[a]==null&&delete i[a]};function pie(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Kv().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const oi=IB;function yB(t){return wB(t)}function xB(t){return wB(t,Sre)}function wB(t,e){pie();const n=Kv();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:d,setElementText:h,parentNode:p,nextSibling:y,setScopeId:w=As,insertStaticContent:C}=t,k=(K,ee,be,$e=null,Ie=null,He=null,rt=void 0,ze=null,We=!!ee.dynamicChildren)=>{if(K===ee)return;K&&!ea(K,ee)&&($e=we(K),Se(K,Ie,He,!0),K=null),ee.patchFlag===-2&&(We=!1,ee.dynamicChildren=null);const{type:xe,ref:Re,shapeFlag:Ve}=ee;switch(xe){case Wl:D(K,ee,be,$e);break;case jr:I(K,ee,be,$e);break;case Fd:K==null&&_(ee,be,$e,rt);break;case Gn:ye(K,ee,be,$e,Ie,He,rt,ze,We);break;default:Ve&1?F(K,ee,be,$e,Ie,He,rt,ze,We):Ve&6?ve(K,ee,be,$e,Ie,He,rt,ze,We):(Ve&64||Ve&128)&&xe.process(K,ee,be,$e,Ie,He,rt,ze,We,Ue)}Re!=null&&Ie&&Lx(Re,K&&K.ref,He,ee||K,!ee)},D=(K,ee,be,$e)=>{if(K==null)r(ee.el=a(ee.children),be,$e);else{const Ie=ee.el=K.el;ee.children!==K.children&&d(Ie,ee.children)}},I=(K,ee,be,$e)=>{K==null?r(ee.el=l(ee.children||""),be,$e):ee.el=K.el},_=(K,ee,be,$e)=>{[K.el,K.anchor]=C(K.children,ee,be,$e,K.el,K.anchor)},L=({el:K,anchor:ee},be,$e)=>{let Ie;for(;K&&K!==ee;)Ie=y(K),r(K,be,$e),K=Ie;r(ee,be,$e)},M=({el:K,anchor:ee})=>{let be;for(;K&&K!==ee;)be=y(K),i(K),K=be;i(ee)},F=(K,ee,be,$e,Ie,He,rt,ze,We)=>{ee.type==="svg"?rt="svg":ee.type==="math"&&(rt="mathml"),K==null?H(ee,be,$e,Ie,He,rt,ze,We):Z(K,ee,Ie,He,rt,ze,We)},H=(K,ee,be,$e,Ie,He,rt,ze)=>{let We,xe;const{props:Re,shapeFlag:Ve,transition:it,dirs:xt}=K;if(We=K.el=s(K.type,He,Re&&Re.is,Re),Ve&8?h(We,K.children):Ve&16&&X(K.children,We,null,$e,Ie,LE(K,He),rt,ze),xt&&Oa(K,null,$e,"created"),G(We,K,K.scopeId,rt,$e),Re){for(const It in Re)It!=="value"&&!Yh(It)&&o(We,It,null,Re[It],He,$e);"value"in Re&&o(We,"value",null,Re.value,He),(xe=Re.onVnodeBeforeMount)&&To(xe,$e,K)}xt&&Oa(K,null,$e,"beforeMount");const At=SB(Ie,it);At&&it.beforeEnter(We),r(We,ee,be),((xe=Re&&Re.onVnodeMounted)||At||xt)&&oi(()=>{xe&&To(xe,$e,K),At&&it.enter(We),xt&&Oa(K,null,$e,"mounted")},Ie)},G=(K,ee,be,$e,Ie)=>{if(be&&w(K,be),$e)for(let He=0;He<$e.length;He++)w(K,$e[He]);if(Ie){let He=Ie.subTree;if(ee===He||zx(He.type)&&(He.ssContent===ee||He.ssFallback===ee)){const rt=Ie.vnode;G(K,rt,rt.scopeId,rt.slotScopeIds,Ie.parent)}}},X=(K,ee,be,$e,Ie,He,rt,ze,We=0)=>{for(let xe=We;xe<K.length;xe++){const Re=K[xe]=ze?Xc(K[xe]):_o(K[xe]);k(null,Re,ee,be,$e,Ie,He,rt,ze)}},Z=(K,ee,be,$e,Ie,He,rt)=>{const ze=ee.el=K.el;let{patchFlag:We,dynamicChildren:xe,dirs:Re}=ee;We|=K.patchFlag&16;const Ve=K.props||wn,it=ee.props||wn;let xt;if(be&&cd(be,!1),(xt=it.onVnodeBeforeUpdate)&&To(xt,be,ee,K),Re&&Oa(ee,K,be,"beforeUpdate"),be&&cd(be,!0),(Ve.innerHTML&&it.innerHTML==null||Ve.textContent&&it.textContent==null)&&h(ze,""),xe?te(K.dynamicChildren,xe,ze,be,$e,LE(ee,Ie),He):rt||q(K,ee,ze,null,be,$e,LE(ee,Ie),He,!1),We>0){if(We&16)ae(ze,Ve,it,be,Ie);else if(We&2&&Ve.class!==it.class&&o(ze,"class",null,it.class,Ie),We&4&&o(ze,"style",Ve.style,it.style,Ie),We&8){const At=ee.dynamicProps;for(let It=0;It<At.length;It++){const Oe=At[It],Ne=Ve[Oe],Fe=it[Oe];(Fe!==Ne||Oe==="value")&&o(ze,Oe,Ne,Fe,Ie,be)}}We&1&&K.children!==ee.children&&h(ze,ee.children)}else!rt&&xe==null&&ae(ze,Ve,it,be,Ie);((xt=it.onVnodeUpdated)||Re)&&oi(()=>{xt&&To(xt,be,ee,K),Re&&Oa(ee,K,be,"updated")},$e)},te=(K,ee,be,$e,Ie,He,rt)=>{for(let ze=0;ze<ee.length;ze++){const We=K[ze],xe=ee[ze],Re=We.el&&(We.type===Gn||!ea(We,xe)||We.shapeFlag&70)?p(We.el):be;k(We,xe,Re,null,$e,Ie,He,rt,!0)}},ae=(K,ee,be,$e,Ie)=>{if(ee!==be){if(ee!==wn)for(const He in ee)!Yh(He)&&!(He in be)&&o(K,He,ee[He],null,Ie,$e);for(const He in be){if(Yh(He))continue;const rt=be[He],ze=ee[He];rt!==ze&&He!=="value"&&o(K,He,ze,rt,Ie,$e)}"value"in be&&o(K,"value",ee.value,be.value,Ie)}},ye=(K,ee,be,$e,Ie,He,rt,ze,We)=>{const xe=ee.el=K?K.el:a(""),Re=ee.anchor=K?K.anchor:a("");let{patchFlag:Ve,dynamicChildren:it,slotScopeIds:xt}=ee;xt&&(ze=ze?ze.concat(xt):xt),K==null?(r(xe,be,$e),r(Re,be,$e),X(ee.children||[],be,Re,Ie,He,rt,ze,We)):Ve>0&&Ve&64&&it&&K.dynamicChildren?(te(K.dynamicChildren,it,be,Ie,He,rt,ze),(ee.key!=null||Ie&&ee===Ie.subTree)&&RD(K,ee,!0)):q(K,ee,be,Re,Ie,He,rt,ze,We)},ve=(K,ee,be,$e,Ie,He,rt,ze,We)=>{ee.slotScopeIds=ze,K==null?ee.shapeFlag&512?Ie.ctx.activate(ee,be,$e,rt,We):se(ee,be,$e,Ie,He,rt,We):J(K,ee,We)},se=(K,ee,be,$e,Ie,He,rt)=>{const ze=K.component=NB(K,$e,Ie);if(Zv(K)&&(ze.ctx.renderer=Ue),FB(ze,!1,rt),ze.asyncDep){if(Ie&&Ie.registerDep(ze,B,rt),!K.el){const We=ze.subTree=Nt(jr);I(null,We,ee,be)}}else B(ze,K,ee,be,Ie,He,rt)},J=(K,ee,be)=>{const $e=ee.component=K.component;if(wie(K,ee,be))if($e.asyncDep&&!$e.asyncResolved){V($e,ee,be);return}else $e.next=ee,$e.update();else ee.el=K.el,$e.vnode=ee},B=(K,ee,be,$e,Ie,He,rt)=>{const ze=()=>{if(K.isMounted){let{next:Ve,bu:it,u:xt,parent:At,vnode:It}=K;{const ht=CB(K);if(ht){Ve&&(Ve.el=It.el,V(K,Ve,rt)),ht.asyncDep.then(()=>{K.isUnmounted||ze()});return}}let Oe=Ve,Ne;cd(K,!1),Ve?(Ve.el=It.el,V(K,Ve,rt)):Ve=It,it&&Xh(it),(Ne=Ve.props&&Ve.props.onVnodeBeforeUpdate)&&To(Ne,At,Ve,It),cd(K,!0);const Fe=Xy(K),Qe=K.subTree;K.subTree=Fe,k(Qe,Fe,p(Qe.el),we(Qe),K,Ie,He),Ve.el=Fe.el,Oe===null&&PD(K,Fe.el),xt&&oi(xt,Ie),(Ne=Ve.props&&Ve.props.onVnodeUpdated)&&oi(()=>To(Ne,At,Ve,It),Ie)}else{let Ve;const{el:it,props:xt}=ee,{bm:At,m:It,parent:Oe,root:Ne,type:Fe}=K,Qe=bu(ee);if(cd(K,!1),At&&Xh(At),!Qe&&(Ve=xt&&xt.onVnodeBeforeMount)&&To(Ve,Oe,ee),cd(K,!0),it&&qe){const ht=()=>{K.subTree=Xy(K),qe(it,K.subTree,K,Ie,null)};Qe&&Fe.__asyncHydrate?Fe.__asyncHydrate(it,K,ht):ht()}else{Ne.ce&&Ne.ce._injectChildStyle(Fe);const ht=K.subTree=Xy(K);k(null,ht,be,$e,K,Ie,He),ee.el=ht.el}if(It&&oi(It,Ie),!Qe&&(Ve=xt&&xt.onVnodeMounted)){const ht=ee;oi(()=>To(Ve,Oe,ht),Ie)}(ee.shapeFlag&256||Oe&&bu(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&K.a&&oi(K.a,Ie),K.isMounted=!0,ee=be=$e=null}};K.scope.on();const We=K.effect=new cv(ze);K.scope.off();const xe=K.update=We.run.bind(We),Re=K.job=We.runIfDirty.bind(We);Re.i=K,Re.id=K.uid,We.scheduler=()=>SD(Re),cd(K,!0),xe()},V=(K,ee,be)=>{ee.component=K;const $e=K.vnode.props;K.vnode=ee,K.next=null,cie(K,ee.props,$e,be),hie(K,ee.children,be),cc(),yM(K),uc()},q=(K,ee,be,$e,Ie,He,rt,ze,We=!1)=>{const xe=K&&K.children,Re=K?K.shapeFlag:0,Ve=ee.children,{patchFlag:it,shapeFlag:xt}=ee;if(it>0){if(it&128){fe(xe,Ve,be,$e,Ie,He,rt,ze,We);return}else if(it&256){ce(xe,Ve,be,$e,Ie,He,rt,ze,We);return}}xt&8?(Re&16&&de(xe,Ie,He),Ve!==xe&&h(be,Ve)):Re&16?xt&16?fe(xe,Ve,be,$e,Ie,He,rt,ze,We):de(xe,Ie,He,!0):(Re&8&&h(be,""),xt&16&&X(Ve,be,$e,Ie,He,rt,ze,We))},ce=(K,ee,be,$e,Ie,He,rt,ze,We)=>{K=K||Uh,ee=ee||Uh;const xe=K.length,Re=ee.length,Ve=Math.min(xe,Re);let it;for(it=0;it<Ve;it++){const xt=ee[it]=We?Xc(ee[it]):_o(ee[it]);k(K[it],xt,be,null,Ie,He,rt,ze,We)}xe>Re?de(K,Ie,He,!0,!1,Ve):X(ee,be,$e,Ie,He,rt,ze,We,Ve)},fe=(K,ee,be,$e,Ie,He,rt,ze,We)=>{let xe=0;const Re=ee.length;let Ve=K.length-1,it=Re-1;for(;xe<=Ve&&xe<=it;){const xt=K[xe],At=ee[xe]=We?Xc(ee[xe]):_o(ee[xe]);if(ea(xt,At))k(xt,At,be,null,Ie,He,rt,ze,We);else break;xe++}for(;xe<=Ve&&xe<=it;){const xt=K[Ve],At=ee[it]=We?Xc(ee[it]):_o(ee[it]);if(ea(xt,At))k(xt,At,be,null,Ie,He,rt,ze,We);else break;Ve--,it--}if(xe>Ve){if(xe<=it){const xt=it+1,At=xt<Re?ee[xt].el:$e;for(;xe<=it;)k(null,ee[xe]=We?Xc(ee[xe]):_o(ee[xe]),be,At,Ie,He,rt,ze,We),xe++}}else if(xe>it)for(;xe<=Ve;)Se(K[xe],Ie,He,!0),xe++;else{const xt=xe,At=xe,It=new Map;for(xe=At;xe<=it;xe++){const ot=ee[xe]=We?Xc(ee[xe]):_o(ee[xe]);ot.key!=null&&It.set(ot.key,xe)}let Oe,Ne=0;const Fe=it-At+1;let Qe=!1,ht=0;const Me=new Array(Fe);for(xe=0;xe<Fe;xe++)Me[xe]=0;for(xe=xt;xe<=Ve;xe++){const ot=K[xe];if(Ne>=Fe){Se(ot,Ie,He,!0);continue}let mt;if(ot.key!=null)mt=It.get(ot.key);else for(Oe=At;Oe<=it;Oe++)if(Me[Oe-At]===0&&ea(ot,ee[Oe])){mt=Oe;break}mt===void 0?Se(ot,Ie,He,!0):(Me[mt-At]=xe+1,mt>=ht?ht=mt:Qe=!0,k(ot,ee[mt],be,null,Ie,He,rt,ze,We),Ne++)}const Je=Qe?gie(Me):Uh;for(Oe=Je.length-1,xe=Fe-1;xe>=0;xe--){const ot=At+xe,mt=ee[ot],dt=ot+1<Re?ee[ot+1].el:$e;Me[xe]===0?k(null,mt,be,dt,Ie,He,rt,ze,We):Qe&&(Oe<0||xe!==Je[Oe]?Ae(mt,be,dt,2):Oe--)}}},Ae=(K,ee,be,$e,Ie=null)=>{const{el:He,type:rt,transition:ze,children:We,shapeFlag:xe}=K;if(xe&6){Ae(K.component.subTree,ee,be,$e);return}if(xe&128){K.suspense.move(ee,be,$e);return}if(xe&64){rt.move(K,ee,be,Ue);return}if(rt===Gn){r(He,ee,be);for(let Ve=0;Ve<We.length;Ve++)Ae(We[Ve],ee,be,$e);r(K.anchor,ee,be);return}if(rt===Fd){L(K,ee,be);return}if($e!==2&&xe&1&&ze)if($e===0)ze.beforeEnter(He),r(He,ee,be),oi(()=>ze.enter(He),Ie);else{const{leave:Ve,delayLeave:it,afterLeave:xt}=ze,At=()=>r(He,ee,be),It=()=>{Ve(He,()=>{At(),xt&&xt()})};it?it(He,At,It):It()}else r(He,ee,be)},Se=(K,ee,be,$e=!1,Ie=!1)=>{const{type:He,props:rt,ref:ze,children:We,dynamicChildren:xe,shapeFlag:Re,patchFlag:Ve,dirs:it,cacheIndex:xt}=K;if(Ve===-2&&(Ie=!1),ze!=null&&Lx(ze,null,be,K,!0),xt!=null&&(ee.renderCache[xt]=void 0),Re&256){ee.ctx.deactivate(K);return}const At=Re&1&&it,It=!bu(K);let Oe;if(It&&(Oe=rt&&rt.onVnodeBeforeUnmount)&&To(Oe,ee,K),Re&6)Q(K.component,be,$e);else{if(Re&128){K.suspense.unmount(be,$e);return}At&&Oa(K,null,ee,"beforeUnmount"),Re&64?K.type.remove(K,ee,be,Ue,$e):xe&&!xe.hasOnce&&(He!==Gn||Ve>0&&Ve&64)?de(xe,ee,be,!1,!0):(He===Gn&&Ve&384||!Ie&&Re&16)&&de(We,ee,be),$e&&_e(K)}(It&&(Oe=rt&&rt.onVnodeUnmounted)||At)&&oi(()=>{Oe&&To(Oe,ee,K),At&&Oa(K,null,ee,"unmounted")},be)},_e=K=>{const{type:ee,el:be,anchor:$e,transition:Ie}=K;if(ee===Gn){Be(be,$e);return}if(ee===Fd){M(K);return}const He=()=>{i(be),Ie&&!Ie.persisted&&Ie.afterLeave&&Ie.afterLeave()};if(K.shapeFlag&1&&Ie&&!Ie.persisted){const{leave:rt,delayLeave:ze}=Ie,We=()=>rt(be,He);ze?ze(K.el,He,We):We()}else He()},Be=(K,ee)=>{let be;for(;K!==ee;)be=y(K),i(K),K=be;i(ee)},Q=(K,ee,be)=>{const{bum:$e,scope:Ie,job:He,subTree:rt,um:ze,m:We,a:xe}=K;Bx(We),Bx(xe),$e&&Xh($e),Ie.stop(),He&&(He.flags|=8,Se(rt,K,ee,be)),ze&&oi(ze,ee),oi(()=>{K.isUnmounted=!0},ee),ee&&ee.pendingBranch&&!ee.isUnmounted&&K.asyncDep&&!K.asyncResolved&&K.suspenseId===ee.pendingId&&(ee.deps--,ee.deps===0&&ee.resolve())},de=(K,ee,be,$e=!1,Ie=!1,He=0)=>{for(let rt=He;rt<K.length;rt++)Se(K[rt],ee,be,$e,Ie)},we=K=>{if(K.shapeFlag&6)return we(K.component.subTree);if(K.shapeFlag&128)return K.suspense.next();const ee=y(K.anchor||K.el),be=ee&&ee[U9];return be?y(be):ee};let Ce=!1;const je=(K,ee,be)=>{K==null?ee._vnode&&Se(ee._vnode,null,null,!0):k(ee._vnode||null,K,ee,null,null,null,be),ee._vnode=K,Ce||(Ce=!0,yM(),Nx(),Ce=!1)},Ue={p:k,um:Se,m:Ae,r:_e,mt:se,mc:X,pc:q,pbc:te,n:we,o:t};let Xe,qe;return e&&([Xe,qe]=e(Ue)),{render:je,hydrate:Xe,createApp:sie(je,Xe)}}function LE({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function cd({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function SB(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function RD(t,e,n=!1){const r=t.children,i=e.children;if(Tt(r)&&Tt(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Xc(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&RD(s,a)),a.type===Wl&&(a.el=s.el)}}function gie(t){const e=t.slice(),n=[0];let r,i,o,s,a;const l=t.length;for(r=0;r<l;r++){const d=t[r];if(d!==0){if(i=n[n.length-1],t[i]<d){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<d?o=a+1:s=a;d<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function CB(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:CB(e)}function Bx(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const EB=Symbol.for("v-scx"),AB=()=>gr(EB);function Af(t,e){return Qv(t,null,e)}function MD(t,e){return Qv(t,null,{flush:"post"})}function kB(t,e){return Qv(t,null,{flush:"sync"})}function en(t,e,n){return Qv(t,e,n)}function Qv(t,e,n=wn){const{immediate:r,deep:i,flush:o,once:s}=n,a=rr({},n),l=e&&r||!e&&o!=="post";let d;if(dp){if(o==="sync"){const w=AB();d=w.__watcherHandles||(w.__watcherHandles=[])}else if(!l){const w=()=>{};return w.stop=As,w.resume=As,w.pause=As,w}}const h=Jr;a.call=(w,C,k)=>Os(w,h,C,k);let p=!1;o==="post"?a.scheduler=w=>{oi(w,h&&h.suspense)}:o!=="sync"&&(p=!0,a.scheduler=(w,C)=>{C?w():SD(w)}),a.augmentJob=w=>{e&&(w.flags|=4),p&&(w.flags|=2,h&&(w.id=h.uid,w.i=h))};const y=tre(t,e,a);return dp&&(d?d.push(y):l&&y()),y}function mie(t,e,n){const r=this.proxy,i=Un(t)?t.includes(".")?TB(r,t):()=>r[t]:t.bind(r,r);let o;jt(e)?o=e:(o=e.handler,n=e);const s=ef(this),a=Qv(i,o.bind(r),n);return s(),a}function TB(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function _B(t,e,n=wn){const r=ci(),i=Ci(e),o=ro(e),s=DB(t,i),a=I9((l,d)=>{let h,p=wn,y;return kB(()=>{const w=t[i];Qi(h,w)&&(h=w,d())}),{get(){return l(),n.get?n.get(h):h},set(w){const C=n.set?n.set(w):w;if(!Qi(C,h)&&!(p!==wn&&Qi(w,p)))return;const k=r.vnode.props;k&&(e in k||i in k||o in k)&&(`onUpdate:${e}`in k||`onUpdate:${i}`in k||`onUpdate:${o}`in k)||(h=w,d()),r.emit(`update:${e}`,C),Qi(w,C)&&Qi(w,p)&&!Qi(C,y)&&d(),p=w,y=C}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||wn:a,done:!1}:{done:!0}}}},a}const DB=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ci(e)}Modifiers`]||t[`${ro(e)}Modifiers`];function vie(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||wn;let i=n;const o=e.startsWith("update:"),s=o&&DB(r,e.slice(7));s&&(s.trim&&(i=n.map(h=>Un(h)?h.trim():h)),s.number&&(i=n.map($x)));let a,l=r[a=ym(e)]||r[a=ym(Ci(e))];!l&&o&&(l=r[a=ym(ro(e))]),l&&Os(l,t,6,i);const d=r[a+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Os(d,t,6,i)}}function $B(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!jt(t)){const l=d=>{const h=$B(d,e,!0);h&&(a=!0,rr(s,h))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(er(t)&&r.set(t,null),null):(Tt(o)?o.forEach(l=>s[l]=null):rr(s,o),er(t)&&r.set(t,s),s)}function jw(t,e){return!t||!Gv(e)?!1:(e=e.slice(2).replace(/Once$/,""),Bn(t,e[0].toLowerCase()+e.slice(1))||Bn(t,ro(e))||Bn(t,e))}function Xy(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:d,renderCache:h,props:p,data:y,setupState:w,ctx:C,inheritAttrs:k}=t,D=hv(t);let I,_;try{if(n.shapeFlag&4){const M=i||r,F=M;I=_o(d.call(F,M,h,p,w,y,C)),_=a}else{const M=e;I=_o(M.length>1?M(p,{attrs:a,slots:s,emit:l}):M(p,null)),_=e.props?a:yie(a)}}catch(M){Em.length=0,Ef(M,t,1),I=Nt(jr)}let L=I;if(_&&k!==!1){const M=Object.keys(_),{shapeFlag:F}=L;M.length&&F&7&&(o&&M.some(uD)&&(_=xie(_,o)),L=ha(L,_,!1,!0))}return n.dirs&&(L=ha(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&tc(L,n.transition),I=L,hv(D),I}function bie(t,e=!0){let n;for(let r=0;r<t.length;r++){const i=t[r];if(Ya(i)){if(i.type!==jr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const yie=t=>{let e;for(const n in t)(n==="class"||n==="style"||Gv(n))&&((e||(e={}))[n]=t[n]);return e},xie=(t,e)=>{const n={};for(const r in t)(!uD(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function wie(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,d=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?IM(r,s,d):!!s;if(l&8){const h=e.dynamicProps;for(let p=0;p<h.length;p++){const y=h[p];if(s[y]!==r[y]&&!jw(d,y))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?IM(r,s,d):!0:!!s;return!1}function IM(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!jw(n,o))return!0}return!1}function PD({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const zx=t=>t.__isSuspense;let vk=0;const Sie={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,o,s,a,l,d){if(t==null)Eie(e,n,r,i,o,s,a,l,d);else{if(o&&o.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}Aie(t,e,n,r,i,s,a,l,d)}},hydrate:kie,normalize:Tie},Cie=Sie;function mv(t,e){const n=t.props&&t.props[e];jt(n)&&n()}function Eie(t,e,n,r,i,o,s,a,l){const{p:d,o:{createElement:h}}=l,p=h("div"),y=t.suspense=OB(t,i,r,e,p,n,o,s,a,l);d(null,y.pendingBranch=t.ssContent,p,null,r,y,o,s),y.deps>0?(mv(t,"onPending"),mv(t,"onFallback"),d(null,t.ssFallback,e,n,r,null,o,s),qh(y,t.ssFallback)):y.resolve(!1,!0)}function Aie(t,e,n,r,i,o,s,a,{p:l,um:d,o:{createElement:h}}){const p=e.suspense=t.suspense;p.vnode=e,e.el=t.el;const y=e.ssContent,w=e.ssFallback,{activeBranch:C,pendingBranch:k,isInFallback:D,isHydrating:I}=p;if(k)p.pendingBranch=y,ea(y,k)?(l(k,y,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0?p.resolve():D&&(I||(l(C,w,n,r,i,null,o,s,a),qh(p,w)))):(p.pendingId=vk++,I?(p.isHydrating=!1,p.activeBranch=k):d(k,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),D?(l(null,y,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0?p.resolve():(l(C,w,n,r,i,null,o,s,a),qh(p,w))):C&&ea(y,C)?(l(C,y,n,r,i,p,o,s,a),p.resolve(!0)):(l(null,y,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0&&p.resolve()));else if(C&&ea(y,C))l(C,y,n,r,i,p,o,s,a),qh(p,y);else if(mv(e,"onPending"),p.pendingBranch=y,y.shapeFlag&512?p.pendingId=y.component.suspenseId:p.pendingId=vk++,l(null,y,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0)p.resolve();else{const{timeout:_,pendingId:L}=p;_>0?setTimeout(()=>{p.pendingId===L&&p.fallback(w)},_):_===0&&p.fallback(w)}}function OB(t,e,n,r,i,o,s,a,l,d,h=!1){const{p,m:y,um:w,n:C,o:{parentNode:k,remove:D}}=d;let I;const _=_ie(t);_&&e&&e.pendingBranch&&(I=e.pendingId,e.deps++);const L=t.props?Ox(t.props.timeout):void 0,M=o,F={vnode:t,parent:e,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:vk++,timeout:typeof L=="number"?L:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(H=!1,G=!1){const{vnode:X,activeBranch:Z,pendingBranch:te,pendingId:ae,effects:ye,parentComponent:ve,container:se}=F;let J=!1;F.isHydrating?F.isHydrating=!1:H||(J=Z&&te.transition&&te.transition.mode==="out-in",J&&(Z.transition.afterLeave=()=>{ae===F.pendingId&&(y(te,se,o===M?C(Z):o,0),Px(ye))}),Z&&(k(Z.el)===se&&(o=C(Z)),w(Z,ve,F,!0)),J||y(te,se,o,0)),qh(F,te),F.pendingBranch=null,F.isInFallback=!1;let B=F.parent,V=!1;for(;B;){if(B.pendingBranch){B.effects.push(...ye),V=!0;break}B=B.parent}!V&&!J&&Px(ye),F.effects=[],_&&e&&e.pendingBranch&&I===e.pendingId&&(e.deps--,e.deps===0&&!G&&e.resolve()),mv(X,"onResolve")},fallback(H){if(!F.pendingBranch)return;const{vnode:G,activeBranch:X,parentComponent:Z,container:te,namespace:ae}=F;mv(G,"onFallback");const ye=C(X),ve=()=>{F.isInFallback&&(p(null,H,te,ye,Z,null,ae,a,l),qh(F,H))},se=H.transition&&H.transition.mode==="out-in";se&&(X.transition.afterLeave=ve),F.isInFallback=!0,w(X,Z,null,!0),se||ve()},move(H,G,X){F.activeBranch&&y(F.activeBranch,H,G,X),F.container=H},next(){return F.activeBranch&&C(F.activeBranch)},registerDep(H,G,X){const Z=!!F.pendingBranch;Z&&F.deps++;const te=H.vnode.el;H.asyncDep.catch(ae=>{Ef(ae,H,0)}).then(ae=>{if(H.isUnmounted||F.isUnmounted||F.pendingId!==H.suspenseId)return;H.asyncResolved=!0;const{vnode:ye}=H;wk(H,ae,!1),te&&(ye.el=te);const ve=!te&&H.subTree.el;G(H,ye,k(te||H.subTree.el),te?null:C(H.subTree),F,s,X),ve&&D(ve),PD(H,ye.el),Z&&--F.deps===0&&F.resolve()})},unmount(H,G){F.isUnmounted=!0,F.activeBranch&&w(F.activeBranch,n,H,G),F.pendingBranch&&w(F.pendingBranch,n,H,G)}};return F}function kie(t,e,n,r,i,o,s,a,l){const d=e.suspense=OB(e,r,n,t.parentNode,document.createElement("div"),null,i,o,s,a,!0),h=l(t,d.pendingBranch=e.ssContent,n,d,o,s);return d.deps===0&&d.resolve(!1,!0),h}function Tie(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=RM(r?n.default:n),t.ssFallback=r?RM(n.fallback):Nt(jr)}function RM(t){let e;if(jt(t)){const n=Qd&&t._c;n&&(t._d=!1,Et()),t=t(),n&&(t._d=!0,e=zi,RB())}return Tt(t)&&(t=bie(t)),t=_o(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function IB(t,e){e&&e.pendingBranch?Tt(t)?e.effects.push(...t):e.effects.push(t):Px(t)}function qh(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,PD(r,i))}function _ie(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Gn=Symbol.for("v-fgt"),Wl=Symbol.for("v-txt"),jr=Symbol.for("v-cmt"),Fd=Symbol.for("v-stc"),Em=[];let zi=null;function Et(t=!1){Em.push(zi=t?null:[])}function RB(){Em.pop(),zi=Em[Em.length-1]||null}let Qd=1;function bk(t){Qd+=t,t<0&&zi&&(zi.hasOnce=!0)}function MB(t){return t.dynamicChildren=Qd>0?zi||Uh:null,RB(),Qd>0&&zi&&zi.push(t),t}function Mn(t,e,n,r,i,o){return MB(Lt(t,e,n,r,i,o,!0))}function kn(t,e,n,r,i){return MB(Nt(t,e,n,r,i,!0))}function Ya(t){return t?t.__v_isVNode===!0:!1}function ea(t,e){return t.type===e.type&&t.key===e.key}function Die(t){}const PB=({key:t})=>t??null,Gy=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Un(t)||fn(t)||jt(t)?{i:Zr,r:t,k:e,f:!!n}:t:null);function Lt(t,e=null,n=null,r=0,i=null,o=t===Gn?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&PB(e),ref:e&&Gy(e),scopeId:Lw,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Zr};return a?(FD(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=Un(n)?8:16),Qd>0&&!s&&zi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&zi.push(l),l}const Nt=$ie;function $ie(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===oB)&&(t=jr),Ya(t)){const a=ha(t,e,!0);return n&&FD(a,n),Qd>0&&!o&&zi&&(a.shapeFlag&6?zi[zi.indexOf(t)]=a:zi.push(a)),a.patchFlag=-2,a}if(zie(t)&&(t=t.__vccOpts),e){e=ND(e);let{class:a,style:l}=e;a&&!Un(a)&&(e.class=$r(a)),er(l)&&(Nw(l)&&!Tt(l)&&(l=rr({},l)),e.style=Ei(l))}const s=Un(t)?1:zx(t)?128:V9(t)?64:er(t)?4:jt(t)?2:0;return Lt(t,e,n,r,i,s,o,!0)}function ND(t){return t?Nw(t)||fB(t)?rr({},t):t:null}function ha(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=t,d=e?e0(i||{},e):i,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&PB(d),ref:e&&e.ref?n&&o?Tt(o)?o.concat(Gy(e)):[o,Gy(e)]:Gy(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Gn?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ha(t.ssContent),ssFallback:t.ssFallback&&ha(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&tc(h,l.clone(h)),h}function LD(t=" ",e=0){return Nt(Wl,null,t,e)}function Oie(t,e){const n=Nt(Fd,null,t);return n.staticCount=e,n}function fr(t="",e=!1){return e?(Et(),kn(jr,null,t)):Nt(jr,null,t)}function _o(t){return t==null||typeof t=="boolean"?Nt(jr):Tt(t)?Nt(Gn,null,t.slice()):Ya(t)?Xc(t):Nt(Wl,null,String(t))}function Xc(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ha(t)}function FD(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Tt(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),FD(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!fB(e)?e._ctx=Zr:i===3&&Zr&&(Zr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else jt(e)?(e={default:e,_ctx:Zr},n=32):(e=String(e),r&64?(n=16,e=[LD(e)]):n=8);t.children=e,t.shapeFlag|=n}function e0(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=$r([e.class,r.class]));else if(i==="style")e.style=Ei([e.style,r.style]);else if(Gv(i)){const o=e[i],s=r[i];s&&o!==s&&!(Tt(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function To(t,e,n,r=null){Os(t,e,7,[n,r])}const Iie=cB();let Rie=0;function NB(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||Iie,o={uid:Rie++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new gD(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:pB(r,i),emitsOptions:$B(r,i),emit:null,emitted:null,propsDefaults:wn,inheritAttrs:r.inheritAttrs,ctx:wn,data:wn,props:wn,attrs:wn,slots:wn,refs:wn,setupState:wn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=vie.bind(null,o),t.ce&&t.ce(o),o}let Jr=null;const ci=()=>Jr||Zr;let Hx,yk;{const t=Kv(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Hx=e("__VUE_INSTANCE_SETTERS__",n=>Jr=n),yk=e("__VUE_SSR_SETTERS__",n=>dp=n)}const ef=t=>{const e=Jr;return Hx(t),t.scope.on(),()=>{t.scope.off(),Hx(e)}},xk=()=>{Jr&&Jr.scope.off(),Hx(null)};function LB(t){return t.vnode.shapeFlag&4}let dp=!1;function FB(t,e=!1,n=!1){e&&yk(e);const{props:r,children:i}=t.vnode,o=LB(t);lie(t,r,o,e),fie(t,i,n);const s=o?Mie(t,e):void 0;return e&&yk(!1),s}function Mie(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,fk);const{setup:r}=n;if(r){cc();const i=t.setupContext=r.length>1?zB(t):null,o=ef(t),s=Cf(r,t,0,[t.props,i]),a=fD(s);if(uc(),o(),(a||t.sp)&&!bu(t)&&AD(t),a){if(s.then(xk,xk),e)return s.then(l=>{wk(t,l,e)}).catch(l=>{Ef(l,t,0)});t.asyncDep=s}else wk(t,s,e)}else BB(t,e)}function wk(t,e,n){jt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:er(e)&&(t.setupState=xD(e)),BB(t,n)}let jx,Sk;function Pie(t){jx=t,Sk=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Hre))}}const Nie=()=>!jx;function BB(t,e,n){const r=t.type;if(!t.render){if(!e&&jx&&!r.render){const i=r.template||OD(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,d=rr(rr({isCustomElement:o,delimiters:a},s),l);r.render=jx(i,d)}}t.render=r.render||As,Sk&&Sk(t)}{const i=ef(t);cc();try{eie(t)}finally{uc(),i()}}}const Lie={get(t,e){return Pi(t,"get",""),t[e]}};function zB(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Lie),slots:t.slots,emit:t.emit,expose:e}}function t0(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(xD(lp(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Cm)return Cm[n](t)},has(e,n){return n in e||n in Cm}})):t.proxy}const Fie=/(?:^|[-_])(\w)/g,Bie=t=>t.replace(Fie,e=>e.toUpperCase()).replace(/[-_]/g,"");function Wx(t,e=!0){return jt(t)?t.displayName||t.name:t.name||e&&t.__name}function HB(t,e,n=!1){let r=Wx(e);if(!r&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&t&&t.parent){const i=o=>{for(const s in o)if(o[s]===e)return s};r=i(t.components||t.parent.type.components)||i(t.appContext.components)}return r?Bie(r):n?"App":"Anonymous"}function zie(t){return jt(t)&&"__vccOpts"in t}const lt=(t,e)=>Jne(t,e,dp);function Qr(t,e,n){const r=arguments.length;return r===2?er(e)&&!Tt(e)?Ya(e)?Nt(t,null,[e]):Nt(t,e):Nt(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ya(n)&&(n=[n]),Nt(t,e,n))}function Hie(){}function jie(t,e,n,r){const i=n[r];if(i&&jB(i,t))return i;const o=e();return o.memo=t.slice(),o.cacheIndex=r,n[r]=o}function jB(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(Qi(n[r],e[r]))return!1;return Qd>0&&zi&&zi.push(t),!0}const BD="3.5.12",Wie=As,Uie=ure,Vie=mh,Yie=z9,Xie={createComponentInstance:NB,setupComponent:FB,renderComponentRoot:Xy,setCurrentRenderingInstance:hv,isVNode:Ya,normalizeVNode:_o,getComponentPublicInstance:t0,ensureValidVNode:$D,pushWarningContext:nre,popWarningContext:rre},Gie=Xie,qie=null,Kie=null,Jie=null;/**
* @vue/runtime-dom v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ck;const MM=typeof window<"u"&&window.trustedTypes;if(MM)try{Ck=MM.createPolicy("vue",{createHTML:t=>t})}catch{}const WB=Ck?t=>Ck.createHTML(t):t=>t,Zie="http://www.w3.org/2000/svg",Qie="http://www.w3.org/1998/Math/MathML",Cl=typeof document<"u"?document:null,PM=Cl&&Cl.createElement("template"),eoe={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?Cl.createElementNS(Zie,t):e==="mathml"?Cl.createElementNS(Qie,t):n?Cl.createElement(t,{is:n}):Cl.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>Cl.createTextNode(t),createComment:t=>Cl.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Cl.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{PM.innerHTML=WB(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=PM.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Ic="transition",Rg="animation",fp=Symbol("_vtc"),UB={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},VB=rr({},ED,UB),toe=t=>(t.displayName="Transition",t.props=VB,t),noe=toe((t,{slots:e})=>Qr(q9,YB(t),e)),ud=(t,e=[])=>{Tt(t)?t.forEach(n=>n(...e)):t&&t(...e)},NM=t=>t?Tt(t)?t.some(e=>e.length>1):t.length>1:!1;function YB(t){const e={};for(const ye in t)ye in UB||(e[ye]=t[ye]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:d=s,appearToClass:h=a,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=t,C=roe(i),k=C&&C[0],D=C&&C[1],{onBeforeEnter:I,onEnter:_,onEnterCancelled:L,onLeave:M,onLeaveCancelled:F,onBeforeAppear:H=I,onAppear:G=_,onAppearCancelled:X=L}=e,Z=(ye,ve,se)=>{Fc(ye,ve?h:a),Fc(ye,ve?d:s),se&&se()},te=(ye,ve)=>{ye._isLeaving=!1,Fc(ye,p),Fc(ye,w),Fc(ye,y),ve&&ve()},ae=ye=>(ve,se)=>{const J=ye?G:_,B=()=>Z(ve,ye,se);ud(J,[ve,B]),LM(()=>{Fc(ve,ye?l:o),wl(ve,ye?h:a),NM(J)||FM(ve,r,k,B)})};return rr(e,{onBeforeEnter(ye){ud(I,[ye]),wl(ye,o),wl(ye,s)},onBeforeAppear(ye){ud(H,[ye]),wl(ye,l),wl(ye,d)},onEnter:ae(!1),onAppear:ae(!0),onLeave(ye,ve){ye._isLeaving=!0;const se=()=>te(ye,ve);wl(ye,p),wl(ye,y),GB(),LM(()=>{ye._isLeaving&&(Fc(ye,p),wl(ye,w),NM(M)||FM(ye,r,D,se))}),ud(M,[ye,se])},onEnterCancelled(ye){Z(ye,!1),ud(L,[ye])},onAppearCancelled(ye){Z(ye,!0),ud(X,[ye])},onLeaveCancelled(ye){te(ye),ud(F,[ye])}})}function roe(t){if(t==null)return null;if(er(t))return[FE(t.enter),FE(t.leave)];{const e=FE(t);return[e,e]}}function FE(t){return Ox(t)}function wl(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[fp]||(t[fp]=new Set)).add(e)}function Fc(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[fp];n&&(n.delete(e),n.size||(t[fp]=void 0))}function LM(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ioe=0;function FM(t,e,n,r){const i=t._endId=++ioe,o=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=XB(t,e);if(!s)return r();const d=s+"end";let h=0;const p=()=>{t.removeEventListener(d,y),o()},y=w=>{w.target===t&&++h>=l&&p()};setTimeout(()=>{h<l&&p()},a+1),t.addEventListener(d,y)}function XB(t,e){const n=window.getComputedStyle(t),r=C=>(n[C]||"").split(", "),i=r(`${Ic}Delay`),o=r(`${Ic}Duration`),s=BM(i,o),a=r(`${Rg}Delay`),l=r(`${Rg}Duration`),d=BM(a,l);let h=null,p=0,y=0;e===Ic?s>0&&(h=Ic,p=s,y=o.length):e===Rg?d>0&&(h=Rg,p=d,y=l.length):(p=Math.max(s,d),h=p>0?s>d?Ic:Rg:null,y=h?h===Ic?o.length:l.length:0);const w=h===Ic&&/\b(transform|all)(,|$)/.test(r(`${Ic}Property`).toString());return{type:h,timeout:p,propCount:y,hasTransform:w}}function BM(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>zM(n)+zM(t[r])))}function zM(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function GB(){return document.body.offsetHeight}function ooe(t,e,n){const r=t[fp];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Ux=Symbol("_vod"),qB=Symbol("_vsh"),hu={beforeMount(t,{value:e},{transition:n}){t[Ux]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Mg(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Mg(t,!0),r.enter(t)):r.leave(t,()=>{Mg(t,!1)}):Mg(t,e))},beforeUnmount(t,{value:e}){Mg(t,e)}};function Mg(t,e){t.style.display=e?t[Ux]:"none",t[qB]=!e}function soe(){hu.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const KB=Symbol("");function aoe(t){const e=ci();if(!e)return;const n=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>Vx(o,i))},r=()=>{const i=t(e.proxy);e.ce?Vx(e.ce,i):Ek(e.subTree,i),n(i)};zw(()=>{MD(r)}),Rr(()=>{const i=new MutationObserver(r);i.observe(e.subTree.el.parentNode,{childList:!0}),as(()=>i.disconnect())})}function Ek(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ek(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Vx(t.el,e);else if(t.type===Gn)t.children.forEach(n=>Ek(n,e));else if(t.type===Fd){let{el:n,anchor:r}=t;for(;n&&(Vx(n,e),n!==r);)n=n.nextSibling}}function Vx(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const i in e)n.setProperty(`--${i}`,e[i]),r+=`--${i}: ${e[i]};`;n[KB]=r}}const loe=/(^|;)\s*display\s*:/;function coe(t,e,n){const r=t.style,i=Un(n);let o=!1;if(n&&!i){if(e)if(Un(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&qy(r,a,"")}else for(const s in e)n[s]==null&&qy(r,s,"");for(const s in n)s==="display"&&(o=!0),qy(r,s,n[s])}else if(i){if(e!==n){const s=r[KB];s&&(n+=";"+s),r.cssText=n,o=loe.test(n)}}else e&&t.removeAttribute("style");Ux in t&&(t[Ux]=o?r.display:"",t[qB]&&(r.display="none"))}const HM=/\s*!important$/;function qy(t,e,n){if(Tt(n))n.forEach(r=>qy(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=uoe(t,e);HM.test(n)?t.setProperty(ro(r),n.replace(HM,""),"important"):t[r]=n}}const jM=["Webkit","Moz","ms"],BE={};function uoe(t,e){const n=BE[e];if(n)return n;let r=Ci(e);if(r!=="filter"&&r in t)return BE[e]=r;r=qv(r);for(let i=0;i<jM.length;i++){const o=jM[i]+r;if(o in t)return BE[e]=o}return e}const WM="http://www.w3.org/1999/xlink";function UM(t,e,n,r,i,o=pne(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(WM,e.slice(6,e.length)):t.setAttributeNS(WM,e,n):n==null||o&&!pD(n)?t.removeAttribute(e):t.setAttribute(e,o?"":fa(n)?String(n):n)}function VM(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?WB(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=pD(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function Ml(t,e,n,r){t.addEventListener(e,n,r)}function doe(t,e,n,r){t.removeEventListener(e,n,r)}const YM=Symbol("_vei");function foe(t,e,n,r,i=null){const o=t[YM]||(t[YM]={}),s=o[e];if(r&&s)s.value=r;else{const[a,l]=hoe(e);if(r){const d=o[e]=moe(r,i);Ml(t,a,d,l)}else s&&(doe(t,a,s,l),o[e]=void 0)}}const XM=/(?:Once|Passive|Capture)$/;function hoe(t){let e;if(XM.test(t)){e={};let r;for(;r=t.match(XM);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):ro(t.slice(2)),e]}let zE=0;const poe=Promise.resolve(),goe=()=>zE||(poe.then(()=>zE=0),zE=Date.now());function moe(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Os(voe(r,n.value),e,5,[r])};return n.value=t,n.attached=goe(),n}function voe(t,e){if(Tt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const GM=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,boe=(t,e,n,r,i,o)=>{const s=i==="svg";e==="class"?ooe(t,r,s):e==="style"?coe(t,n,r):Gv(e)?uD(e)||foe(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):yoe(t,e,r,s))?(VM(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&UM(t,e,r,s,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Un(r))?VM(t,Ci(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),UM(t,e,r,s))};function yoe(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&GM(e)&&jt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return GM(e)&&Un(n)?!1:e in t}const qM={};/*! #__NO_SIDE_EFFECTS__ */function JB(t,e,n){const r=Jn(t,e);Tw(r)&&rr(r,e);class i extends Ww{constructor(s){super(r,s,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const xoe=(t,e)=>JB(t,e,l7),woe=typeof HTMLElement<"u"?HTMLElement:class{};class Ww extends woe{constructor(e,n={},r=gp){super(),this._def=e,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==gp?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof Ww){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,Ir(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:s}=r;let a;if(o&&!Tt(o))for(const l in o){const d=o[l];(d===Number||d&&d.type===Number)&&(l in this._props&&(this._props[l]=Ox(this._props[l])),(a||(a=Object.create(null)))[Ci(l)]=!0)}this._numberProps=a,i&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>e(this._def=r,!0)):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Bn(this,r)||Object.defineProperty(this,r,{get:()=>kt(n[r])})}_resolveProps(e){const{props:n}=e,r=Tt(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(Ci))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let r=n?this.getAttribute(e):qM;const i=Ci(e);n&&this._numberProps&&this._numberProps[i]&&(r=Ox(r)),this._setProp(i,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,i=!1){n!==this._props[e]&&(n===qM?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ro(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ro(e),n+""):n||this.removeAttribute(ro(e))))}_update(){a7(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=Nt(this._def,rr(e,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,s)=>{this.dispatchEvent(new CustomEvent(o,Tw(s[0])?rr({detail:s},s[0]):{detail:s}))};r.emit=(o,...s)=>{i(o,s),ro(o)!==o&&i(ro(o),s)},this._setParent()}),n}_applyStyles(e,n){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=e.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=e[i],this.shadowRoot.prepend(o)}}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(e[r]||(e[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<e.length;r++){const i=e[r],o=i.getAttribute("name")||"default",s=this._slots[o],a=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const d=n+"-s",h=document.createTreeWalker(l,1);l.setAttribute(d,"");let p;for(;p=h.nextNode();)p.setAttribute(d,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function ZB(t){const e=ci(),n=e&&e.ce;return n||null}function Soe(){const t=ZB();return t&&t.shadowRoot}function Coe(t="$style"){{const e=ci();if(!e)return wn;const n=e.type.__cssModules;if(!n)return wn;const r=n[t];return r||wn}}const QB=new WeakMap,e7=new WeakMap,Yx=Symbol("_moveCb"),KM=Symbol("_enterCb"),Eoe=t=>(delete t.props.mode,t),Aoe=Eoe({name:"TransitionGroup",props:rr({},VB,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=ci(),r=CD();let i,o;return Hw(()=>{if(!i.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!$oe(i[0].el,n.vnode.el,s))return;i.forEach(Toe),i.forEach(_oe);const a=i.filter(Doe);GB(),a.forEach(l=>{const d=l.el,h=d.style;wl(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[Yx]=y=>{y&&y.target!==d||(!y||/transform$/.test(y.propertyName))&&(d.removeEventListener("transitionend",p),d[Yx]=null,Fc(d,s))};d.addEventListener("transitionend",p)})}),()=>{const s=Rt(t),a=YB(s);let l=s.tag||Gn;if(i=[],o)for(let d=0;d<o.length;d++){const h=o[d];h.el&&h.el instanceof Element&&(i.push(h),tc(h,cp(h,a,r,n)),QB.set(h,h.el.getBoundingClientRect()))}o=e.default?Fw(e.default()):[];for(let d=0;d<o.length;d++){const h=o[d];h.key!=null&&tc(h,cp(h,a,r,n))}return Nt(l,null,o)}}}),koe=Aoe;function Toe(t){const e=t.el;e[Yx]&&e[Yx](),e[KM]&&e[KM]()}function _oe(t){e7.set(t,t.el.getBoundingClientRect())}function Doe(t){const e=QB.get(t),n=e7.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",t}}function $oe(t,e,n){const r=t.cloneNode(),i=t[fp];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:s}=XB(r);return o.removeChild(r),s}const _u=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Tt(e)?n=>Xh(e,n):e};function Ooe(t){t.target.composing=!0}function JM(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ks=Symbol("_assign"),hp={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[ks]=_u(i);const o=r||i.props&&i.props.type==="number";Ml(t,e?"change":"input",s=>{if(s.target.composing)return;let a=t.value;n&&(a=a.trim()),o&&(a=$x(a)),t[ks](a)}),n&&Ml(t,"change",()=>{t.value=t.value.trim()}),e||(Ml(t,"compositionstart",Ooe),Ml(t,"compositionend",JM),Ml(t,"change",JM))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(t[ks]=_u(s),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?$x(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},zD={deep:!0,created(t,e,n){t[ks]=_u(n),Ml(t,"change",()=>{const r=t._modelValue,i=pp(t),o=t.checked,s=t[ks];if(Tt(r)){const a=Dw(r,i),l=a!==-1;if(o&&!l)s(r.concat(i));else if(!o&&l){const d=[...r];d.splice(a,1),s(d)}}else if(Sf(r)){const a=new Set(r);o?a.add(i):a.delete(i),s(a)}else s(n7(t,o))})},mounted:ZM,beforeUpdate(t,e,n){t[ks]=_u(n),ZM(t,e,n)}};function ZM(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(Tt(e))i=Dw(e,r.props.value)>-1;else if(Sf(e))i=e.has(r.props.value);else{if(e===n)return;i=Tu(e,n7(t,!0))}t.checked!==i&&(t.checked=i)}const HD={created(t,{value:e},n){t.checked=Tu(e,n.props.value),t[ks]=_u(n),Ml(t,"change",()=>{t[ks](pp(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[ks]=_u(r),e!==n&&(t.checked=Tu(e,r.props.value))}},t7={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Sf(e);Ml(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?$x(pp(s)):pp(s));t[ks](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,Ir(()=>{t._assigning=!1})}),t[ks]=_u(r)},mounted(t,{value:e}){QM(t,e)},beforeUpdate(t,e,n){t[ks]=_u(n)},updated(t,{value:e}){t._assigning||QM(t,e)}};function QM(t,e){const n=t.multiple,r=Tt(e);if(!(n&&!r&&!Sf(e))){for(let i=0,o=t.options.length;i<o;i++){const s=t.options[i],a=pp(s);if(n)if(r){const l=typeof a;l==="string"||l==="number"?s.selected=e.some(d=>String(d)===String(a)):s.selected=Dw(e,a)>-1}else s.selected=e.has(a);else if(Tu(pp(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function pp(t){return"_value"in t?t._value:t.value}function n7(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const jD={created(t,e,n){Mb(t,e,n,null,"created")},mounted(t,e,n){Mb(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Mb(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Mb(t,e,n,r,"updated")}};function r7(t,e){switch(t){case"SELECT":return t7;case"TEXTAREA":return hp;default:switch(e){case"checkbox":return zD;case"radio":return HD;default:return hp}}}function Mb(t,e,n,r,i){const s=r7(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}function Ioe(){hp.getSSRProps=({value:t})=>({value:t}),HD.getSSRProps=({value:t},e)=>{if(e.props&&Tu(e.props.value,t))return{checked:!0}},zD.getSSRProps=({value:t},e)=>{if(Tt(t)){if(e.props&&Dw(t,e.props.value)>-1)return{checked:!0}}else if(Sf(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},jD.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=r7(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const Roe=["ctrl","shift","alt","meta"],Moe={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Roe.some(n=>t[`${n}Key`]&&!e.includes(n))},WD=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=Moe[e[s]];if(a&&a(i,e))return}return t(i,...o)})},Poe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ad=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=ro(i.key);if(e.some(s=>s===o||Poe[s]===o))return t(i)})},i7=rr({patchProp:boe},eoe);let Am,eP=!1;function o7(){return Am||(Am=yB(i7))}function s7(){return Am=eP?Am:xB(i7),eP=!0,Am}const a7=(...t)=>{o7().render(...t)},Noe=(...t)=>{s7().hydrate(...t)},gp=(...t)=>{const e=o7().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=u7(r);if(!i)return;const o=e._component;!jt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,c7(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e},l7=(...t)=>{const e=s7().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=u7(r);if(i)return n(i,!0,c7(i))},e};function c7(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function u7(t){return Un(t)?document.querySelector(t):t}let tP=!1;const Loe=()=>{tP||(tP=!0,Ioe(),soe())};/**
* vue v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Foe=()=>{},Boe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:q9,BaseTransitionPropsValidators:ED,Comment:jr,DeprecationTypes:Jie,EffectScope:gD,ErrorCodes:cre,ErrorTypeStrings:Uie,Fragment:Gn,KeepAlive:Nre,ReactiveEffect:cv,Static:Fd,Suspense:Cie,Teleport:mre,Text:Wl,TrackOpTypes:Zne,Transition:noe,TransitionGroup:koe,TriggerOpTypes:Qne,VueElement:Ww,assertNumber:lre,callWithAsyncErrorHandling:Os,callWithErrorHandling:Cf,camelize:Ci,capitalize:qv,cloneVNode:ha,compatUtils:Kie,compile:Foe,computed:lt,createApp:gp,createBlock:kn,createCommentVNode:fr,createElementBlock:Mn,createElementVNode:Lt,createHydrationRenderer:xB,createPropsRestProxy:Zre,createRenderer:yB,createSSRApp:l7,createSlots:Bre,createStaticVNode:Oie,createTextVNode:LD,createVNode:Nt,customRef:I9,defineAsyncComponent:Mre,defineComponent:Jn,defineCustomElement:JB,defineEmits:Wre,defineExpose:Ure,defineModel:Xre,defineOptions:Vre,defineProps:jre,defineSSRCustomElement:xoe,defineSlots:Yre,devtools:Vie,effect:Sne,effectScope:$w,getCurrentInstance:ci,getCurrentScope:Ow,getCurrentWatcher:ere,getTransitionRawChildren:Fw,guardReactiveProps:ND,h:Qr,handleError:Ef,hasInjectionContext:aie,hydrate:Noe,hydrateOnIdle:_re,hydrateOnInteraction:Ire,hydrateOnMediaQuery:Ore,hydrateOnVisible:$re,initCustomFormatter:Hie,initDirectivesForSSR:Loe,inject:gr,isMemoSame:jB,isProxy:Nw,isReactive:$o,isReadonly:ec,isRef:fn,isRuntimeOnly:Nie,isShallow:es,isVNode:Ya,markRaw:lp,mergeDefaults:Jre,mergeModels:hk,mergeProps:e0,nextTick:Ir,normalizeClass:$r,normalizeProps:d9,normalizeStyle:Ei,onActivated:kD,onBeforeMount:zw,onBeforeUnmount:tg,onBeforeUpdate:eB,onDeactivated:TD,onErrorCaptured:iB,onMounted:Rr,onRenderTracked:rB,onRenderTriggered:nB,onScopeDispose:mD,onServerPrefetch:tB,onUnmounted:as,onUpdated:Hw,onWatcherCleanup:P9,openBlock:Et,popScopeId:j9,provide:so,proxyRefs:xD,pushScopeId:H9,queuePostFlushCb:Px,reactive:lo,readonly:Jv,ref:ct,registerRuntimeCompiler:Pie,render:a7,renderList:pv,renderSlot:Yr,resolveComponent:Lr,resolveDirective:sB,resolveDynamicComponent:up,resolveFilter:qie,resolveTransitionHooks:cp,setBlockTracking:bk,setDevtoolsHook:Yie,setTransitionHooks:tc,shallowReactive:$9,shallowReadonly:jne,shallowRef:ca,ssrContextKey:EB,ssrUtils:Gie,stop:Cne,toDisplayString:Fl,toHandlerKey:ym,toHandlers:zre,toRaw:Rt,toRef:R9,toRefs:wD,toValue:Vne,transformVNodeArgs:Die,triggerRef:Une,unref:kt,useAttrs:Kre,useCssModule:Coe,useCssVars:aoe,useHost:ZB,useId:bre,useModel:_B,useSSRContext:AB,useShadowRoot:Soe,useSlots:qre,useTemplateRef:yre,useTransitionState:CD,vModelCheckbox:zD,vModelDynamic:jD,vModelRadio:HD,vModelSelect:t7,vModelText:hp,vShow:hu,version:BD,warn:Wie,watch:en,watchEffect:Af,watchPostEffect:MD,watchSyncEffect:kB,withAsyncContext:Qre,withCtx:ji,withDefaults:Gre,withDirectives:oa,withKeys:Ad,withMemo:jie,withModifiers:WD,withScopeId:W9},Symbol.toStringTag,{value:"Module"}));var zoe=!1;/*!
  * pinia v2.0.33
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */let d7;const Uw=t=>d7=t,f7=Symbol();function Ak(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var km;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(km||(km={}));function _wt(){const t=$w(!0),e=t.run(()=>ct({}));let n=[],r=[];const i=lp({install(o){Uw(i),i._a=o,o.provide(f7,i),o.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(o){return!this._a&&!zoe?r.push(o):n.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const h7=()=>{};function nP(t,e,n,r=h7){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),r())};return!n&&Ow()&&mD(i),i}function th(t,...e){t.slice().forEach(n=>{n(...e)})}function kk(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];Ak(i)&&Ak(r)&&t.hasOwnProperty(n)&&!fn(r)&&!$o(r)?t[n]=kk(i,r):t[n]=r}return t}const Hoe=Symbol();function joe(t){return!Ak(t)||!t.hasOwnProperty(Hoe)}const{assign:Bc}=Object;function Woe(t){return!!(fn(t)&&t.effect)}function Uoe(t,e,n,r){const{state:i,actions:o,getters:s}=e,a=n.state.value[t];let l;function d(){a||(n.state.value[t]=i?i():{});const h=wD(n.state.value[t]);return Bc(h,o,Object.keys(s||{}).reduce((p,y)=>(p[y]=lp(lt(()=>{Uw(n);const w=n._s.get(t);return s[y].call(w,w)})),p),{}))}return l=p7(t,d,e,n,r,!0),l}function p7(t,e,n={},r,i,o){let s;const a=Bc({actions:{}},n),l={deep:!0};let d,h,p=lp([]),y=lp([]),w;const C=r.state.value[t];!o&&!C&&(r.state.value[t]={}),ct({});let k;function D(G){let X;d=h=!1,typeof G=="function"?(G(r.state.value[t]),X={type:km.patchFunction,storeId:t,events:w}):(kk(r.state.value[t],G),X={type:km.patchObject,payload:G,storeId:t,events:w});const Z=k=Symbol();Ir().then(()=>{k===Z&&(d=!0)}),h=!0,th(p,X,r.state.value[t])}const I=o?function(){const{state:X}=n,Z=X?X():{};this.$patch(te=>{Bc(te,Z)})}:h7;function _(){s.stop(),p=[],y=[],r._s.delete(t)}function L(G,X){return function(){Uw(r);const Z=Array.from(arguments),te=[],ae=[];function ye(J){te.push(J)}function ve(J){ae.push(J)}th(y,{args:Z,name:G,store:F,after:ye,onError:ve});let se;try{se=X.apply(this&&this.$id===t?this:F,Z)}catch(J){throw th(ae,J),J}return se instanceof Promise?se.then(J=>(th(te,J),J)).catch(J=>(th(ae,J),Promise.reject(J))):(th(te,se),se)}}const M={_p:r,$id:t,$onAction:nP.bind(null,y),$patch:D,$reset:I,$subscribe(G,X={}){const Z=nP(p,G,X.detached,()=>te()),te=s.run(()=>en(()=>r.state.value[t],ae=>{(X.flush==="sync"?h:d)&&G({storeId:t,type:km.direct,events:w},ae)},Bc({},l,X)));return Z},$dispose:_},F=lo(M);r._s.set(t,F);const H=r._e.run(()=>(s=$w(),s.run(()=>e())));for(const G in H){const X=H[G];if(fn(X)&&!Woe(X)||$o(X))o||(C&&joe(X)&&(fn(X)?X.value=C[G]:kk(X,C[G])),r.state.value[t][G]=X);else if(typeof X=="function"){const Z=L(G,X);H[G]=Z,a.actions[G]=X}}return Bc(F,H),Bc(Rt(F),H),Object.defineProperty(F,"$state",{get:()=>r.state.value[t],set:G=>{D(X=>{Bc(X,G)})}}),r._p.forEach(G=>{Bc(F,s.run(()=>G({store:F,app:r._a,pinia:r,options:a})))}),C&&o&&n.hydrate&&n.hydrate(F.$state,C),d=!0,h=!0,F}function Dwt(t,e,n){let r,i;const o=typeof e=="function";typeof t=="string"?(r=t,i=o?n:e):(i=t,r=t.id);function s(a,l){const d=ci();return a=a||d&&gr(f7,null),a&&Uw(a),a=d7,a._s.has(r)||(o?p7(r,e,i,a):Uoe(r,i,a)),a._s.get(r)}return s.$id=r,s}function $wt(t){{t=Rt(t);const e={};for(const n in t){const r=t[n];(fn(r)||$o(r))&&(e[n]=R9(t,n))}return e}}/*!
  * vue-router v4.1.6
  * (c) 2022 Eduardo San Martin Morote
  * @license MIT
  */const vh=typeof window<"u";function Voe(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Xn=Object.assign;function HE(t,e){const n={};for(const r in e){const i=e[r];n[r]=pa(i)?i.map(t):t(i)}return n}const Tm=()=>{},pa=Array.isArray,Yoe=/\/$/,Xoe=t=>t.replace(Yoe,"");function jE(t,e,n="/"){let r,i={},o="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=e.slice(0,l),o=e.slice(l+1,a>-1?a:e.length),i=t(o)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=Joe(r??e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:s}}function Goe(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function rP(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function qoe(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&mp(e.matched[r],n.matched[i])&&g7(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function mp(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function g7(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Koe(t[n],e[n]))return!1;return!0}function Koe(t,e){return pa(t)?iP(t,e):pa(e)?iP(e,t):t===e}function iP(t,e){return pa(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Joe(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var vv;(function(t){t.pop="pop",t.push="push"})(vv||(vv={}));var _m;(function(t){t.back="back",t.forward="forward",t.unknown=""})(_m||(_m={}));function Zoe(t){if(!t)if(vh){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Xoe(t)}const Qoe=/^[^#]+#/;function ese(t,e){return t.replace(Qoe,"#")+e}function tse(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Vw=()=>({left:window.pageXOffset,top:window.pageYOffset});function nse(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=tse(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function oP(t,e){return(history.state?history.state.position-e:-1)+t}const Tk=new Map;function rse(t,e){Tk.set(t,e)}function ise(t){const e=Tk.get(t);return Tk.delete(t),e}let ose=()=>location.protocol+"//"+location.host;function m7(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let a=i.includes(t.slice(o))?t.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),rP(l,"")}return rP(n,t)+r+i}function sse(t,e,n,r){let i=[],o=[],s=null;const a=({state:y})=>{const w=m7(t,location),C=n.value,k=e.value;let D=0;if(y){if(n.value=w,e.value=y,s&&s===C){s=null;return}D=k?y.position-k.position:0}else r(w);i.forEach(I=>{I(n.value,C,{delta:D,type:vv.pop,direction:D?D>0?_m.forward:_m.back:_m.unknown})})};function l(){s=n.value}function d(y){i.push(y);const w=()=>{const C=i.indexOf(y);C>-1&&i.splice(C,1)};return o.push(w),w}function h(){const{history:y}=window;y.state&&y.replaceState(Xn({},y.state,{scroll:Vw()}),"")}function p(){for(const y of o)y();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",h),{pauseListeners:l,listen:d,destroy:p}}function sP(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Vw():null}}function ase(t){const{history:e,location:n}=window,r={value:m7(t,n)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,d,h){const p=t.indexOf("#"),y=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+l:ose()+t+l;try{e[h?"replaceState":"pushState"](d,"",y),i.value=d}catch(w){console.error(w),n[h?"replace":"assign"](y)}}function s(l,d){const h=Xn({},e.state,sP(i.value.back,l,i.value.forward,!0),d,{position:i.value.position});o(l,h,!0),r.value=l}function a(l,d){const h=Xn({},i.value,e.state,{forward:l,scroll:Vw()});o(h.current,h,!0);const p=Xn({},sP(r.value,l,null),{position:h.position+1},d);o(l,p,!1),r.value=l}return{location:r,state:i,push:a,replace:s}}function Owt(t){t=Zoe(t);const e=ase(t),n=sse(t,e.state,e.location,e.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Xn({location:"",base:t,go:r,createHref:ese.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function lse(t){return typeof t=="string"||t&&typeof t=="object"}function v7(t){return typeof t=="string"||typeof t=="symbol"}const Rc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},b7=Symbol("");var aP;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(aP||(aP={}));function vp(t,e){return Xn(new Error,{type:t,[b7]:!0},e)}function ml(t,e){return t instanceof Error&&b7 in t&&(e==null||!!(t.type&e))}const lP="[^/]+?",cse={sensitive:!1,strict:!1,start:!0,end:!0},use=/[.+*?^${}()[\]/\\]/g;function dse(t,e){const n=Xn({},cse,e),r=[];let i=n.start?"^":"";const o=[];for(const d of t){const h=d.length?[]:[90];n.strict&&!d.length&&(i+="/");for(let p=0;p<d.length;p++){const y=d[p];let w=40+(n.sensitive?.25:0);if(y.type===0)p||(i+="/"),i+=y.value.replace(use,"\\$&"),w+=40;else if(y.type===1){const{value:C,repeatable:k,optional:D,regexp:I}=y;o.push({name:C,repeatable:k,optional:D});const _=I||lP;if(_!==lP){w+=10;try{new RegExp(`(${_})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${C}" (${_}): `+M.message)}}let L=k?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;p||(L=D&&d.length<2?`(?:/${L})`:"/"+L),D&&(L+="?"),i+=L,w+=20,D&&(w+=-8),k&&(w+=-20),_===".*"&&(w+=-50)}h.push(w)}r.push(h)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(d){const h=d.match(s),p={};if(!h)return null;for(let y=1;y<h.length;y++){const w=h[y]||"",C=o[y-1];p[C.name]=w&&C.repeatable?w.split("/"):w}return p}function l(d){let h="",p=!1;for(const y of t){(!p||!h.endsWith("/"))&&(h+="/"),p=!1;for(const w of y)if(w.type===0)h+=w.value;else if(w.type===1){const{value:C,repeatable:k,optional:D}=w,I=C in d?d[C]:"";if(pa(I)&&!k)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const _=pa(I)?I.join("/"):I;if(!_)if(D)y.length<2&&(h.endsWith("/")?h=h.slice(0,-1):p=!0);else throw new Error(`Missing required param "${C}"`);h+=_}}return h||"/"}return{re:s,score:r,keys:o,parse:a,stringify:l}}function fse(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function hse(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const o=fse(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(cP(r))return 1;if(cP(i))return-1}return i.length-r.length}function cP(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const pse={type:0,value:""},gse=/[a-zA-Z0-9_]/;function mse(t){if(!t)return[[]];if(t==="/")return[[pse]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(w){throw new Error(`ERR (${n})/"${d}": ${w}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,l,d="",h="";function p(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:h,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),d="")}function y(){d+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(d&&p(),s()):l===":"?(p(),n=1):y();break;case 4:y(),n=r;break;case 1:l==="("?n=2:gse.test(l)?y():(p(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+l:n=3:h+=l;break;case 3:p(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,h="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${d}"`),p(),s(),i}function vse(t,e,n){const r=dse(mse(t.path),n),i=Xn(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function bse(t,e){const n=[],r=new Map;e=fP({strict:!1,end:!0,sensitive:!1},e);function i(h){return r.get(h)}function o(h,p,y){const w=!y,C=yse(h);C.aliasOf=y&&y.record;const k=fP(e,h),D=[C];if("alias"in h){const L=typeof h.alias=="string"?[h.alias]:h.alias;for(const M of L)D.push(Xn({},C,{components:y?y.record.components:C.components,path:M,aliasOf:y?y.record:C}))}let I,_;for(const L of D){const{path:M}=L;if(p&&M[0]!=="/"){const F=p.record.path,H=F[F.length-1]==="/"?"":"/";L.path=p.record.path+(M&&H+M)}if(I=vse(L,p,k),y?y.alias.push(I):(_=_||I,_!==I&&_.alias.push(I),w&&h.name&&!dP(I)&&s(h.name)),C.children){const F=C.children;for(let H=0;H<F.length;H++)o(F[H],I,y&&y.children[H])}y=y||I,(I.record.components&&Object.keys(I.record.components).length||I.record.name||I.record.redirect)&&l(I)}return _?()=>{s(_)}:Tm}function s(h){if(v7(h)){const p=r.get(h);p&&(r.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&r.delete(h.record.name),h.children.forEach(s),h.alias.forEach(s))}}function a(){return n}function l(h){let p=0;for(;p<n.length&&hse(h,n[p])>=0&&(h.record.path!==n[p].record.path||!y7(h,n[p]));)p++;n.splice(p,0,h),h.record.name&&!dP(h)&&r.set(h.record.name,h)}function d(h,p){let y,w={},C,k;if("name"in h&&h.name){if(y=r.get(h.name),!y)throw vp(1,{location:h});k=y.record.name,w=Xn(uP(p.params,y.keys.filter(_=>!_.optional).map(_=>_.name)),h.params&&uP(h.params,y.keys.map(_=>_.name))),C=y.stringify(w)}else if("path"in h)C=h.path,y=n.find(_=>_.re.test(C)),y&&(w=y.parse(C),k=y.record.name);else{if(y=p.name?r.get(p.name):n.find(_=>_.re.test(p.path)),!y)throw vp(1,{location:h,currentLocation:p});k=y.record.name,w=Xn({},p.params,h.params),C=y.stringify(w)}const D=[];let I=y;for(;I;)D.unshift(I.record),I=I.parent;return{name:k,path:C,params:w,matched:D,meta:wse(D)}}return t.forEach(h=>o(h)),{addRoute:o,resolve:d,removeRoute:s,getRoutes:a,getRecordMatcher:i}}function uP(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function yse(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:xse(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function xse(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function dP(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function wse(t){return t.reduce((e,n)=>Xn(e,n.meta),{})}function fP(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function y7(t,e){return e.children.some(n=>n===t||y7(t,n))}const x7=/#/g,Sse=/&/g,Cse=/\//g,Ese=/=/g,Ase=/\?/g,w7=/\+/g,kse=/%5B/g,Tse=/%5D/g,S7=/%5E/g,_se=/%60/g,C7=/%7B/g,Dse=/%7C/g,E7=/%7D/g,$se=/%20/g;function UD(t){return encodeURI(""+t).replace(Dse,"|").replace(kse,"[").replace(Tse,"]")}function Ose(t){return UD(t).replace(C7,"{").replace(E7,"}").replace(S7,"^")}function _k(t){return UD(t).replace(w7,"%2B").replace($se,"+").replace(x7,"%23").replace(Sse,"%26").replace(_se,"`").replace(C7,"{").replace(E7,"}").replace(S7,"^")}function Ise(t){return _k(t).replace(Ese,"%3D")}function Rse(t){return UD(t).replace(x7,"%23").replace(Ase,"%3F")}function Mse(t){return t==null?"":Rse(t).replace(Cse,"%2F")}function Xx(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Pse(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(w7," "),s=o.indexOf("="),a=Xx(s<0?o:o.slice(0,s)),l=s<0?null:Xx(o.slice(s+1));if(a in e){let d=e[a];pa(d)||(d=e[a]=[d]),d.push(l)}else e[a]=l}return e}function hP(t){let e="";for(let n in t){const r=t[n];if(n=Ise(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(pa(r)?r.map(o=>o&&_k(o)):[r&&_k(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function Nse(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=pa(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const VD=Symbol(""),pP=Symbol(""),Yw=Symbol(""),YD=Symbol(""),Dk=Symbol("");function Pg(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function A7(t,e,n){const r=()=>{t[e].delete(n)};as(r),TD(r),kD(()=>{t[e].add(n)}),t[e].add(n)}function Iwt(t){const e=gr(VD,{}).value;e&&A7(e,"leaveGuards",t)}function Rwt(t){const e=gr(VD,{}).value;e&&A7(e,"updateGuards",t)}function Gc(t,e,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,a)=>{const l=p=>{p===!1?a(vp(4,{from:n,to:e})):p instanceof Error?a(p):lse(p)?a(vp(2,{from:e,to:p})):(o&&r.enterCallbacks[i]===o&&typeof p=="function"&&o.push(p),s())},d=t.call(r&&r.instances[i],e,n,l);let h=Promise.resolve(d);t.length<3&&(h=h.then(l)),h.catch(p=>a(p))})}function WE(t,e,n,r){const i=[];for(const o of t)for(const s in o.components){let a=o.components[s];if(!(e!=="beforeRouteEnter"&&!o.instances[s]))if(Lse(a)){const d=(a.__vccOpts||a)[e];d&&i.push(Gc(d,n,r,o,s))}else{let l=a();i.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const h=Voe(d)?d.default:d;o.components[s]=h;const y=(h.__vccOpts||h)[e];return y&&Gc(y,n,r,o,s)()}))}}return i}function Lse(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function gP(t){const e=gr(Yw),n=gr(YD),r=lt(()=>e.resolve(kt(t.to))),i=lt(()=>{const{matched:l}=r.value,{length:d}=l,h=l[d-1],p=n.matched;if(!h||!p.length)return-1;const y=p.findIndex(mp.bind(null,h));if(y>-1)return y;const w=mP(l[d-2]);return d>1&&mP(h)===w&&p[p.length-1].path!==w?p.findIndex(mp.bind(null,l[d-2])):y}),o=lt(()=>i.value>-1&&Hse(n.params,r.value.params)),s=lt(()=>i.value>-1&&i.value===n.matched.length-1&&g7(n.params,r.value.params));function a(l={}){return zse(l)?e[kt(t.replace)?"replace":"push"](kt(t.to)).catch(Tm):Promise.resolve()}return{route:r,href:lt(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}const Fse=Jn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:gP,setup(t,{slots:e}){const n=lo(gP(t)),{options:r}=gr(Yw),i=lt(()=>({[vP(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[vP(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&e.default(n);return t.custom?o:Qr("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Bse=Fse;function zse(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Hse(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!pa(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function mP(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const vP=(t,e,n)=>t??e??n,jse=Jn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=gr(Dk),i=lt(()=>t.route||r.value),o=gr(pP,0),s=lt(()=>{let d=kt(o);const{matched:h}=i.value;let p;for(;(p=h[d])&&!p.components;)d++;return d}),a=lt(()=>i.value.matched[s.value]);so(pP,lt(()=>s.value+1)),so(VD,a),so(Dk,i);const l=ct();return en(()=>[l.value,a.value,t.name],([d,h,p],[y,w,C])=>{h&&(h.instances[p]=d,w&&w!==h&&d&&d===y&&(h.leaveGuards.size||(h.leaveGuards=w.leaveGuards),h.updateGuards.size||(h.updateGuards=w.updateGuards))),d&&h&&(!w||!mp(h,w)||!y)&&(h.enterCallbacks[p]||[]).forEach(k=>k(d))},{flush:"post"}),()=>{const d=i.value,h=t.name,p=a.value,y=p&&p.components[h];if(!y)return bP(n.default,{Component:y,route:d});const w=p.props[h],C=w?w===!0?d.params:typeof w=="function"?w(d):w:null,D=Qr(y,Xn({},C,e,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(p.instances[h]=null)},ref:l}));return bP(n.default,{Component:D,route:d})||D}}});function bP(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Wse=jse;function Mwt(t){const e=bse(t.routes,t),n=t.parseQuery||Pse,r=t.stringifyQuery||hP,i=t.history,o=Pg(),s=Pg(),a=Pg(),l=ca(Rc);let d=Rc;vh&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=HE.bind(null,Q=>""+Q),p=HE.bind(null,Mse),y=HE.bind(null,Xx);function w(Q,de){let we,Ce;return v7(Q)?(we=e.getRecordMatcher(Q),Ce=de):Ce=Q,e.addRoute(Ce,we)}function C(Q){const de=e.getRecordMatcher(Q);de&&e.removeRoute(de)}function k(){return e.getRoutes().map(Q=>Q.record)}function D(Q){return!!e.getRecordMatcher(Q)}function I(Q,de){if(de=Xn({},de||l.value),typeof Q=="string"){const qe=jE(n,Q,de.path),K=e.resolve({path:qe.path},de),ee=i.createHref(qe.fullPath);return Xn(qe,K,{params:y(K.params),hash:Xx(qe.hash),redirectedFrom:void 0,href:ee})}let we;if("path"in Q)we=Xn({},Q,{path:jE(n,Q.path,de.path).path});else{const qe=Xn({},Q.params);for(const K in qe)qe[K]==null&&delete qe[K];we=Xn({},Q,{params:p(Q.params)}),de.params=p(de.params)}const Ce=e.resolve(we,de),je=Q.hash||"";Ce.params=h(y(Ce.params));const Ue=Goe(r,Xn({},Q,{hash:Ose(je),path:Ce.path})),Xe=i.createHref(Ue);return Xn({fullPath:Ue,hash:je,query:r===hP?Nse(Q.query):Q.query||{}},Ce,{redirectedFrom:void 0,href:Xe})}function _(Q){return typeof Q=="string"?jE(n,Q,l.value.path):Xn({},Q)}function L(Q,de){if(d!==Q)return vp(8,{from:de,to:Q})}function M(Q){return G(Q)}function F(Q){return M(Xn(_(Q),{replace:!0}))}function H(Q){const de=Q.matched[Q.matched.length-1];if(de&&de.redirect){const{redirect:we}=de;let Ce=typeof we=="function"?we(Q):we;return typeof Ce=="string"&&(Ce=Ce.includes("?")||Ce.includes("#")?Ce=_(Ce):{path:Ce},Ce.params={}),Xn({query:Q.query,hash:Q.hash,params:"path"in Ce?{}:Q.params},Ce)}}function G(Q,de){const we=d=I(Q),Ce=l.value,je=Q.state,Ue=Q.force,Xe=Q.replace===!0,qe=H(we);if(qe)return G(Xn(_(qe),{state:typeof qe=="object"?Xn({},je,qe.state):je,force:Ue,replace:Xe}),de||we);const K=we;K.redirectedFrom=de;let ee;return!Ue&&qoe(r,Ce,we)&&(ee=vp(16,{to:K,from:Ce}),fe(Ce,Ce,!0,!1)),(ee?Promise.resolve(ee):Z(K,Ce)).catch(be=>ml(be)?ml(be,2)?be:ce(be):V(be,K,Ce)).then(be=>{if(be){if(ml(be,2))return G(Xn({replace:Xe},_(be.to),{state:typeof be.to=="object"?Xn({},je,be.to.state):je,force:Ue}),de||K)}else be=ae(K,Ce,!0,Xe,je);return te(K,Ce,be),be})}function X(Q,de){const we=L(Q,de);return we?Promise.reject(we):Promise.resolve()}function Z(Q,de){let we;const[Ce,je,Ue]=Use(Q,de);we=WE(Ce.reverse(),"beforeRouteLeave",Q,de);for(const qe of Ce)qe.leaveGuards.forEach(K=>{we.push(Gc(K,Q,de))});const Xe=X.bind(null,Q,de);return we.push(Xe),nh(we).then(()=>{we=[];for(const qe of o.list())we.push(Gc(qe,Q,de));return we.push(Xe),nh(we)}).then(()=>{we=WE(je,"beforeRouteUpdate",Q,de);for(const qe of je)qe.updateGuards.forEach(K=>{we.push(Gc(K,Q,de))});return we.push(Xe),nh(we)}).then(()=>{we=[];for(const qe of Q.matched)if(qe.beforeEnter&&!de.matched.includes(qe))if(pa(qe.beforeEnter))for(const K of qe.beforeEnter)we.push(Gc(K,Q,de));else we.push(Gc(qe.beforeEnter,Q,de));return we.push(Xe),nh(we)}).then(()=>(Q.matched.forEach(qe=>qe.enterCallbacks={}),we=WE(Ue,"beforeRouteEnter",Q,de),we.push(Xe),nh(we))).then(()=>{we=[];for(const qe of s.list())we.push(Gc(qe,Q,de));return we.push(Xe),nh(we)}).catch(qe=>ml(qe,8)?qe:Promise.reject(qe))}function te(Q,de,we){for(const Ce of a.list())Ce(Q,de,we)}function ae(Q,de,we,Ce,je){const Ue=L(Q,de);if(Ue)return Ue;const Xe=de===Rc,qe=vh?history.state:{};we&&(Ce||Xe?i.replace(Q.fullPath,Xn({scroll:Xe&&qe&&qe.scroll},je)):i.push(Q.fullPath,je)),l.value=Q,fe(Q,de,we,Xe),ce()}let ye;function ve(){ye||(ye=i.listen((Q,de,we)=>{if(!Be.listening)return;const Ce=I(Q),je=H(Ce);if(je){G(Xn(je,{replace:!0}),Ce).catch(Tm);return}d=Ce;const Ue=l.value;vh&&rse(oP(Ue.fullPath,we.delta),Vw()),Z(Ce,Ue).catch(Xe=>ml(Xe,12)?Xe:ml(Xe,2)?(G(Xe.to,Ce).then(qe=>{ml(qe,20)&&!we.delta&&we.type===vv.pop&&i.go(-1,!1)}).catch(Tm),Promise.reject()):(we.delta&&i.go(-we.delta,!1),V(Xe,Ce,Ue))).then(Xe=>{Xe=Xe||ae(Ce,Ue,!1),Xe&&(we.delta&&!ml(Xe,8)?i.go(-we.delta,!1):we.type===vv.pop&&ml(Xe,20)&&i.go(-1,!1)),te(Ce,Ue,Xe)}).catch(Tm)}))}let se=Pg(),J=Pg(),B;function V(Q,de,we){ce(Q);const Ce=J.list();return Ce.length?Ce.forEach(je=>je(Q,de,we)):console.error(Q),Promise.reject(Q)}function q(){return B&&l.value!==Rc?Promise.resolve():new Promise((Q,de)=>{se.add([Q,de])})}function ce(Q){return B||(B=!Q,ve(),se.list().forEach(([de,we])=>Q?we(Q):de()),se.reset()),Q}function fe(Q,de,we,Ce){const{scrollBehavior:je}=t;if(!vh||!je)return Promise.resolve();const Ue=!we&&ise(oP(Q.fullPath,0))||(Ce||!we)&&history.state&&history.state.scroll||null;return Ir().then(()=>je(Q,de,Ue)).then(Xe=>Xe&&nse(Xe)).catch(Xe=>V(Xe,Q,de))}const Ae=Q=>i.go(Q);let Se;const _e=new Set,Be={currentRoute:l,listening:!0,addRoute:w,removeRoute:C,hasRoute:D,getRoutes:k,resolve:I,options:t,push:M,replace:F,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:J.add,isReady:q,install(Q){const de=this;Q.component("RouterLink",Bse),Q.component("RouterView",Wse),Q.config.globalProperties.$router=de,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>kt(l)}),vh&&!Se&&l.value===Rc&&(Se=!0,M(i.location).catch(je=>{}));const we={};for(const je in Rc)we[je]=lt(()=>l.value[je]);Q.provide(Yw,de),Q.provide(YD,lo(we)),Q.provide(Dk,l);const Ce=Q.unmount;_e.add(Q),Q.unmount=function(){_e.delete(Q),_e.size<1&&(d=Rc,ye&&ye(),ye=null,l.value=Rc,Se=!1,B=!1),Ce()}}};return Be}function nh(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function Use(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;s<o;s++){const a=e.matched[s];a&&(t.matched.find(d=>mp(d,a))?r.push(a):n.push(a));const l=t.matched[s];l&&(e.matched.find(d=>mp(d,l))||i.push(l))}return[n,r,i]}function Pwt(){return gr(Yw)}function Nwt(){return gr(YD)}var yP;const bp=typeof window<"u",Vse=t=>typeof t=="function",k7=t=>typeof t=="string",Du=()=>{},Yse=bp&&((yP=window==null?void 0:window.navigator)==null?void 0:yP.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function oo(t){return typeof t=="function"?t():kt(t)}function T7(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}function Xse(t,e={}){let n,r,i=Du;const o=a=>{clearTimeout(a),i(),i=Du};return a=>{const l=oo(t),d=oo(e.maxWait);return n&&o(n),l<=0||d!==void 0&&d<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((h,p)=>{i=e.rejectOnCancel?p:h,d&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,h(a())},d)),n=setTimeout(()=>{r&&o(r),r=null,h(a())},l)})}}function Gse(t,e=!0,n=!0,r=!1){let i=0,o,s=!0,a=Du,l;const d=()=>{o&&(clearTimeout(o),o=void 0,a(),a=Du)};return p=>{const y=oo(t),w=Date.now()-i,C=()=>l=p();return d(),y<=0?(i=Date.now(),C()):(w>y&&(n||!s)?(i=Date.now(),C()):e&&(l=new Promise((k,D)=>{a=r?D:k,o=setTimeout(()=>{i=Date.now(),s=!0,k(C()),d()},Math.max(0,y-w))})),!n&&!o&&(o=setTimeout(()=>s=!0,y)),s=!1,l)}}function qse(t){return t}function yp(t){return Ow()?(mD(t),!0):!1}function Kse(t,e=200,n={}){return T7(Xse(e,n),t)}function Jse(t,e=200,n=!1,r=!0,i=!1){return T7(Gse(e,n,r,i),t)}function Zse(t){return typeof t=="function"?lt(t):ct(t)}function _7(t,e=!0){ci()?Rr(t):e?t():Ir(t)}const Qse=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,eae=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g,tae=(t,e,n,r)=>{let i=t<12?"AM":"PM";return r&&(i=i.split("").reduce((o,s)=>o+=`${s}.`,"")),n?i.toLowerCase():i},nae=(t,e,n={})=>{var r;const i=t.getFullYear(),o=t.getMonth(),s=t.getDate(),a=t.getHours(),l=t.getMinutes(),d=t.getSeconds(),h=t.getMilliseconds(),p=t.getDay(),y=(r=n.customMeridiem)!=null?r:tae,w={YY:()=>String(i).slice(-2),YYYY:()=>i,M:()=>o+1,MM:()=>`${o+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(s),DD:()=>`${s}`.padStart(2,"0"),H:()=>String(a),HH:()=>`${a}`.padStart(2,"0"),h:()=>`${a%12||12}`.padStart(1,"0"),hh:()=>`${a%12||12}`.padStart(2,"0"),m:()=>String(l),mm:()=>`${l}`.padStart(2,"0"),s:()=>String(d),ss:()=>`${d}`.padStart(2,"0"),SSS:()=>`${h}`.padStart(3,"0"),d:()=>p,dd:()=>t.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>y(a,l),AA:()=>y(a,l,!1,!0),a:()=>y(a,l,!0),aa:()=>y(a,l,!0,!0)};return e.replace(eae,(C,k)=>k||w[C]())},rae=t=>{if(t===null)return new Date(NaN);if(t===void 0)return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){const e=t.match(Qse);if(e){const n=e[2]-1||0,r=(e[7]||"0").substring(0,3);return new Date(e[1],n,e[3]||1,e[4]||0,e[5]||0,e[6]||0,r)}}return new Date(t)};function Lwt(t,e="HH:mm:ss",n={}){return lt(()=>nae(rae(oo(t)),oo(e),n))}function iae(t,e=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const s=ct(!1);function a(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,a()}function d(){const h=oo(e);h<=0||(s.value=!0,i&&t(),a(),o=setInterval(t,h))}if(r&&bp&&d(),fn(e)||Vse(e)){const h=en(e,()=>{s.value&&bp&&d()});yp(h)}return yp(l),{isActive:s,pause:l,resume:d}}function Fwt(t,e,n={}){const{immediate:r=!0}=n,i=ct(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function l(...d){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...d)},oo(e))}return r&&(i.value=!0,bp&&l()),yp(a),{isPending:Jv(i),start:l,stop:a}}function Bl(t){var e;const n=oo(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ng=bp?window:void 0,oae=bp?window.document:void 0;function Bd(...t){let e,n,r,i;if(k7(t[0])||Array.isArray(t[0])?([n,r,i]=t,e=ng):[e,n,r,i]=t,!e)return Du;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(h=>h()),o.length=0},a=(h,p,y,w)=>(h.addEventListener(p,y,w),()=>h.removeEventListener(p,y,w)),l=en(()=>[Bl(e),oo(i)],([h,p])=>{s(),h&&o.push(...n.flatMap(y=>r.map(w=>a(h,y,w,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),s()};return yp(d),d}let xP=!1;function Bwt(t,e,n={}){const{window:r=ng,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return;Yse&&!xP&&(xP=!0,Array.from(r.document.body.children).forEach(y=>y.addEventListener("click",Du)));let a=!0;const l=y=>i.some(w=>{if(typeof w=="string")return Array.from(r.document.querySelectorAll(w)).some(C=>C===y.target||y.composedPath().includes(C));{const C=Bl(w);return C&&(y.target===C||y.composedPath().includes(C))}}),h=[Bd(r,"click",y=>{const w=Bl(t);if(!(!w||w===y.target||y.composedPath().includes(w))){if(y.detail===0&&(a=!l(y)),!a){a=!0;return}e(y)}},{passive:!0,capture:o}),Bd(r,"pointerdown",y=>{const w=Bl(t);w&&(a=!y.composedPath().includes(w)&&!l(y))},{passive:!0}),s&&Bd(r,"blur",y=>{var w;const C=Bl(t);((w=r.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(C!=null&&C.contains(r.document.activeElement))&&e(y)})].filter(Boolean);return()=>h.forEach(y=>y())}function sae(t,e=!1){const n=ct(),r=()=>n.value=Boolean(t());return r(),_7(r,e),n}const $k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ok="__vueuse_ssr_handlers__";$k[Ok]=$k[Ok]||{};$k[Ok];var wP=Object.getOwnPropertySymbols,aae=Object.prototype.hasOwnProperty,lae=Object.prototype.propertyIsEnumerable,cae=(t,e)=>{var n={};for(var r in t)aae.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wP)for(var r of wP(t))e.indexOf(r)<0&&lae.call(t,r)&&(n[r]=t[r]);return n};function uae(t,e,n={}){const r=n,{window:i=ng}=r,o=cae(r,["window"]);let s;const a=sae(()=>i&&"ResizeObserver"in i),l=()=>{s&&(s.disconnect(),s=void 0)},d=en(()=>Bl(t),p=>{l(),a.value&&i&&p&&(s=new ResizeObserver(e),s.observe(p,o))},{immediate:!0,flush:"post"}),h=()=>{l(),d()};return yp(h),{isSupported:a,stop:h}}function dae(t,e={}){const{immediate:n=!0,window:r=ng}=e,i=ct(!1);let o=0,s=null;function a(h){if(!i.value||!r)return;const p=h-o;t({delta:p,timestamp:h}),o=h,s=r.requestAnimationFrame(a)}function l(){!i.value&&r&&(i.value=!0,s=r.requestAnimationFrame(a))}function d(){i.value=!1,s!=null&&r&&(r.cancelAnimationFrame(s),s=null)}return n&&l(),yp(d),{isActive:Jv(i),pause:d,resume:l}}function fae(t,e={width:0,height:0},n={}){const{window:r=ng,box:i="content-box"}=n,o=lt(()=>{var l,d;return(d=(l=Bl(t))==null?void 0:l.namespaceURI)==null?void 0:d.includes("svg")}),s=ct(e.width),a=ct(e.height);return uae(t,([l])=>{const d=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&o.value){const h=Bl(t);if(h){const p=r.getComputedStyle(h);s.value=parseFloat(p.width),a.value=parseFloat(p.height)}}else if(d){const h=Array.isArray(d)?d:[d];s.value=h.reduce((p,{inlineSize:y})=>p+y,0),a.value=h.reduce((p,{blockSize:y})=>p+y,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},n),en(()=>Bl(t),l=>{s.value=l?e.width:0,a.value=l?e.height:0}),{width:s,height:a}}function zwt(t=null,e={}){const{baseUrl:n="",rel:r="icon",document:i=oae}=e,o=Zse(t),s=a=>{i==null||i.head.querySelectorAll(`link[rel*="${r}"]`).forEach(l=>l.href=`${n}${a}`)};return en(o,(a,l)=>{k7(a)&&a!==l&&s(a)},{immediate:!0}),o}const SP=1;function hae(t,e={}){const{throttle:n=0,idle:r=200,onStop:i=Du,onScroll:o=Du,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto"}=e,d=ct(0),h=ct(0),p=lt({get(){return d.value},set(M){w(M,void 0)}}),y=lt({get(){return h.value},set(M){w(void 0,M)}});function w(M,F){var H,G,X;const Z=oo(t);Z&&((X=Z instanceof Document?document.body:Z)==null||X.scrollTo({top:(H=oo(F))!=null?H:y.value,left:(G=oo(M))!=null?G:p.value,behavior:oo(l)}))}const C=ct(!1),k=lo({left:!0,right:!1,top:!0,bottom:!1}),D=lo({left:!1,right:!1,top:!1,bottom:!1}),I=M=>{C.value&&(C.value=!1,D.left=!1,D.right=!1,D.top=!1,D.bottom=!1,i(M))},_=Kse(I,n+r),L=M=>{const F=M.target===document?M.target.documentElement:M.target,H=F.scrollLeft;D.left=H<d.value,D.right=H>h.value,k.left=H<=0+(s.left||0),k.right=H+F.clientWidth>=F.scrollWidth-(s.right||0)-SP,d.value=H;let G=F.scrollTop;M.target===document&&!G&&(G=document.body.scrollTop),D.top=G<h.value,D.bottom=G>h.value,k.top=G<=0+(s.top||0),k.bottom=G+F.clientHeight>=F.scrollHeight-(s.bottom||0)-SP,h.value=G,C.value=!0,_(M),o(M)};return Bd(t,"scroll",n?Jse(L,n,!0,!1):L,a),Bd(t,"scrollend",I,a),{x:p,y,isScrolling:C,arrivedState:k,directions:D}}var pae=Object.defineProperty,gae=Object.defineProperties,mae=Object.getOwnPropertyDescriptors,CP=Object.getOwnPropertySymbols,vae=Object.prototype.hasOwnProperty,bae=Object.prototype.propertyIsEnumerable,EP=(t,e,n)=>e in t?pae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,AP=(t,e)=>{for(var n in e||(e={}))vae.call(e,n)&&EP(t,n,e[n]);if(CP)for(var n of CP(e))bae.call(e,n)&&EP(t,n,e[n]);return t},yae=(t,e)=>gae(t,mae(e));function Hwt(t,e,n={}){var r,i;const o=(r=n.direction)!=null?r:"bottom",s=lo(hae(t,yae(AP({},n),{offset:AP({[o]:(i=n.distance)!=null?i:0},n.offset)})));en(()=>s.arrivedState[o],async a=>{var l,d;if(a){const h=oo(t),p={height:(l=h==null?void 0:h.scrollHeight)!=null?l:0,width:(d=h==null?void 0:h.scrollWidth)!=null?d:0};await e(s),n.preserveScrollPosition&&h&&Ir(()=>{h.scrollTo({top:h.scrollHeight-p.height,left:h.scrollWidth-p.width})})}})}var xae=Object.defineProperty,kP=Object.getOwnPropertySymbols,wae=Object.prototype.hasOwnProperty,Sae=Object.prototype.propertyIsEnumerable,TP=(t,e,n)=>e in t?xae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cae=(t,e)=>{for(var n in e||(e={}))wae.call(e,n)&&TP(t,n,e[n]);if(kP)for(var n of kP(e))Sae.call(e,n)&&TP(t,n,e[n]);return t};function Eae(t={}){const{controls:e=!1,interval:n="requestAnimationFrame"}=t,r=ct(new Date),i=()=>r.value=new Date,o=n==="requestAnimationFrame"?dae(i,{immediate:!0}):iae(i,n,{immediate:!0});return e?Cae({now:r},o):r}var _P;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(_P||(_P={}));var Aae=Object.defineProperty,Gx=Object.getOwnPropertySymbols,D7=Object.prototype.hasOwnProperty,$7=Object.prototype.propertyIsEnumerable,DP=(t,e,n)=>e in t?Aae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kae=(t,e)=>{for(var n in e||(e={}))D7.call(e,n)&&DP(t,n,e[n]);if(Gx)for(var n of Gx(e))$7.call(e,n)&&DP(t,n,e[n]);return t},Tae=(t,e)=>{var n={};for(var r in t)D7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Gx)for(var r of Gx(t))e.indexOf(r)<0&&$7.call(t,r)&&(n[r]=t[r]);return n};const _ae=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:1/0,value:31536e6,name:"year"}],Dae={justNow:"just now",past:t=>t.match(/\d/)?`${t} ago`:t,future:t=>t.match(/\d/)?`in ${t}`:t,month:(t,e)=>t===1?e?"last month":"next month":`${t} month${t>1?"s":""}`,year:(t,e)=>t===1?e?"last year":"next year":`${t} year${t>1?"s":""}`,day:(t,e)=>t===1?e?"yesterday":"tomorrow":`${t} day${t>1?"s":""}`,week:(t,e)=>t===1?e?"last week":"next week":`${t} week${t>1?"s":""}`,hour:t=>`${t} hour${t>1?"s":""}`,minute:t=>`${t} minute${t>1?"s":""}`,second:t=>`${t} second${t>1?"s":""}`,invalid:""},$ae=t=>t.toISOString().slice(0,10);function jwt(t,e={}){const{controls:n=!1,updateInterval:r=3e4}=e,i=Eae({interval:r,controls:!0}),{now:o}=i,s=Tae(i,["now"]),a=lt(()=>Oae(new Date(oo(t)),e,kt(o.value)));return n?kae({timeAgo:a},s):a}function Oae(t,e={},n=Date.now()){var r;const{max:i,messages:o=Dae,fullDateFormatter:s=$ae,units:a=_ae,showSecond:l=!1,rounding:d="round"}=e,h=typeof d=="number"?D=>+D.toFixed(d):Math[d],p=+n-+t,y=Math.abs(p);function w(D,I){return h(Math.abs(D)/I.value)}function C(D,I){const _=w(D,I),L=D>0,M=k(I.name,_,L);return k(L?"past":"future",M,L)}function k(D,I,_){const L=o[D];return typeof L=="function"?L(I,_):L.replace("{0}",I.toString())}if(y<6e4&&!l)return o.justNow;if(typeof i=="number"&&y>i)return s(new Date(t));if(typeof i=="string"){const D=(r=a.find(I=>I.name===i))==null?void 0:r.max;if(D&&y>D)return s(new Date(t))}for(const[D,I]of a.entries()){if(w(p,I)<=0&&a[D-1])return C(p,a[D-1]);if(y<I.max)return C(p,I)}return o.invalid}var Iae=Object.defineProperty,$P=Object.getOwnPropertySymbols,Rae=Object.prototype.hasOwnProperty,Mae=Object.prototype.propertyIsEnumerable,OP=(t,e,n)=>e in t?Iae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pae=(t,e)=>{for(var n in e||(e={}))Rae.call(e,n)&&OP(t,n,e[n]);if($P)for(var n of $P(e))Mae.call(e,n)&&OP(t,n,e[n]);return t};const Nae={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Pae({linear:qse},Nae);function Wwt(t,e){const{containerStyle:n,wrapperProps:r,scrollTo:i,calculateRange:o,currentList:s,containerRef:a}="itemHeight"in e?Bae(e,t):Fae(e,t);return{list:s,scrollTo:i,containerProps:{ref:a,onScroll:()=>{o()},style:n},wrapperProps:r}}function O7(t){const e=ct(null),n=fae(e),r=ct([]),i=ca(t);return{state:ct({start:0,end:10}),source:i,currentList:r,size:n,containerRef:e}}function I7(t,e,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:i=0}=t.value;let o=0,s=0;for(let a=i;a<e.value.length;a++){const l=n(a);if(o+=l,s=a,o>r)break}return s-i}}function R7(t,e){return n=>{if(typeof e=="number")return Math.floor(n/e)+1;let r=0,i=0;for(let o=0;o<t.value.length;o++){const s=e(o);if(r+=s,r>=n){i=o;break}}return i+1}}function M7(t,e,n,r,{containerRef:i,state:o,currentList:s,source:a}){return()=>{const l=i.value;if(l){const d=n(t==="vertical"?l.scrollTop:l.scrollLeft),h=r(t==="vertical"?l.clientHeight:l.clientWidth),p=d-e,y=d+h+e;o.value={start:p<0?0:p,end:y>a.value.length?a.value.length:y},s.value=a.value.slice(o.value.start,o.value.end).map((w,C)=>({data:w,index:C+o.value.start}))}}}function P7(t,e){return n=>typeof t=="number"?n*t:e.value.slice(0,n).reduce((i,o,s)=>i+t(s),0)}function N7(t,e,n){en([t.width,t.height,e],()=>{n()})}function L7(t,e){return lt(()=>typeof t=="number"?e.value.length*t:e.value.reduce((n,r,i)=>n+t(i),0))}const Lae={horizontal:"scrollLeft",vertical:"scrollTop"};function F7(t,e,n,r){return i=>{r.value&&(r.value[Lae[t]]=n(i),e())}}function Fae(t,e){const n=O7(e),{state:r,source:i,currentList:o,size:s,containerRef:a}=n,l={overflowX:"auto"},{itemWidth:d,overscan:h=5}=t,p=I7(r,i,d),y=R7(i,d),w=M7("horizontal",h,y,p,n),C=P7(d,i),k=lt(()=>C(r.value.start)),D=L7(d,i);N7(s,e,w);const I=F7("horizontal",w,C,a),_=lt(()=>({style:{height:"100%",width:`${D.value-k.value}px`,marginLeft:`${k.value}px`,display:"flex"}}));return{scrollTo:I,calculateRange:w,wrapperProps:_,containerStyle:l,currentList:o,containerRef:a}}function Bae(t,e){const n=O7(e),{state:r,source:i,currentList:o,size:s,containerRef:a}=n,l={overflowY:"auto"},{itemHeight:d,overscan:h=5}=t,p=I7(r,i,d),y=R7(i,d),w=M7("vertical",h,y,p,n),C=P7(d,i),k=lt(()=>C(r.value.start)),D=L7(d,i);N7(s,e,w);const I=F7("vertical",w,C,a),_=lt(()=>({style:{width:"100%",height:`${D.value-k.value}px`,marginTop:`${k.value}px`}}));return{calculateRange:w,scrollTo:I,containerStyle:l,wrapperProps:_,currentList:o,containerRef:a}}function Uwt(t={}){const{window:e=ng,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:o=!0}=t,s=ct(n),a=ct(r),l=()=>{e&&(o?(s.value=e.innerWidth,a.value=e.innerHeight):(s.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))};return l(),_7(l),Bd("resize",l,{passive:!0}),i&&Bd("orientationchange",l,{passive:!0}),{width:s,height:a}}/*! js-cookie v3.0.1 | MIT */function Pb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var zae={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ik(t,e){function n(i,o,s){if(!(typeof document>"u")){s=Pb({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),d=l.slice(1).join("=");try{var h=decodeURIComponent(l[0]);if(s[h]=t.read(d,h),i===h)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Pb({},o,{expires:-1}))},withAttributes:function(i){return Ik(this.converter,Pb({},this.attributes,i))},withConverter:function(i){return Ik(Pb({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Vwt=Ik(zae,{path:"/"});function Rk(t,e={},n){for(const r in t){const i=t[r],o=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?Rk(i,e,o):typeof i=="function"&&(e[o]=i)}return e}const Hae={run:t=>t()},jae=()=>Hae,B7=typeof console.createTask<"u"?console.createTask:jae;function Wae(t,e){const n=e.shift(),r=B7(n);return t.reduce((i,o)=>i.then(()=>r.run(()=>o(...e))),Promise.resolve())}function Uae(t,e){const n=e.shift(),r=B7(n);return Promise.all(t.map(i=>r.run(()=>i(...e))))}function UE(t,e){for(const n of[...t])n(e)}class Vae{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const i=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!r.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,i=(...o)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...o));return r=this.hook(e,i),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const i of r)this.hook(e,i)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Rk(e),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(e){const n=Rk(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(Wae,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(Uae,e,...n)}callHookWith(e,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&UE(this._before,i);const o=e(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&i&&UE(this._after,i)}):(this._after&&i&&UE(this._after,i),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Yae(){return new Vae}function Xae(t){return Array.isArray(t)?t:[t]}const z7=["title","script","style","noscript"],H7=["base","meta","link","style","script","noscript"],Gae=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],qae=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Kae=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent"];function j7(t){let e=9;for(let n=0;n<t.length;)e=Math.imul(e^t.charCodeAt(n++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Mk(t){return j7(`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,n])=>`${e}:${String(n)}`).join(",")}`)}function Jae(t){let e=9;for(const n of t)for(let r=0;r<n.length;)e=Math.imul(e^n.charCodeAt(r++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function W7(t,e){const{props:n,tag:r}=t;if(qae.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const i=["id"];r==="meta"&&i.push("name","property","http-equiv");for(const o of i)if(typeof n[o]<"u"){const s=String(n[o]);return e&&!e(s)?!1:`${r}:${o}:${s}`}return!1}function IP(t,e){return t==null?e||null:typeof t=="function"?t(e):t}function Nb(t,e=!1,n){const{tag:r,$el:i}=t;i&&(Object.entries(r.props).forEach(([o,s])=>{s=String(s);const a=`attr:${o}`;if(o==="class"){if(!s)return;for(const l of s.split(" ")){const d=`${a}:${l}`;n&&n(t,d,()=>i.classList.remove(l)),i.classList.contains(l)||i.classList.add(l)}return}n&&!o.startsWith("data-h-")&&n(t,a,()=>i.removeAttribute(o)),(e||i.getAttribute(o)!==s)&&i.setAttribute(o,s)}),z7.includes(r.tag)&&(r.textContent&&r.textContent!==i.textContent?i.textContent=r.textContent:r.innerHTML&&r.innerHTML!==i.innerHTML&&(i.innerHTML=r.innerHTML)))}let Ng=!1;async function Zae(t,e={}){var y,w;const n={shouldRender:!0};if(await t.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const r=e.document||t.resolvedOptions.document||window.document,i=(await t.resolveTags()).map(a);if(t.resolvedOptions.experimentalHashHydration&&(Ng=Ng||t._hash||!1,Ng)){const C=Jae(i.map(k=>k.tag._h));if(Ng===C)return;Ng=C}const o=t._popSideEffectQueue();t.headEntries().map(C=>C._sde).forEach(C=>{Object.entries(C).forEach(([k,D])=>{o[k]=D})});const s=(C,k,D)=>{k=`${C.renderId}:${k}`,C.entry&&(C.entry._sde[k]=D),delete o[k]};function a(C){const k=t.headEntries().find(I=>I._i===C._e),D={renderId:C._d||Mk(C),$el:null,shouldRender:!0,tag:C,entry:k,markSideEffect:(I,_)=>s(D,I,_)};return D}const l=[],d={body:[],head:[]},h=C=>{t._elMap[C.renderId]=C.$el,l.push(C),s(C,"el",()=>{var k;(k=C.$el)==null||k.remove(),delete t._elMap[C.renderId]})};for(const C of i){if(await t.hooks.callHook("dom:beforeRenderTag",C),!C.shouldRender)continue;const{tag:k}=C;if(k.tag==="title"){r.title=k.textContent||"",l.push(C);continue}if(k.tag==="htmlAttrs"||k.tag==="bodyAttrs"){C.$el=r[k.tag==="htmlAttrs"?"documentElement":"body"],Nb(C,!1,s),l.push(C);continue}if(C.$el=t._elMap[C.renderId],!C.$el&&k.key&&(C.$el=r.querySelector(`${(y=k.tagPosition)!=null&&y.startsWith("body")?"body":"head"} > ${k.tag}[data-h-${k._h}]`)),C.$el){C.tag._d&&Nb(C),h(C);continue}d[(w=k.tagPosition)!=null&&w.startsWith("body")?"body":"head"].push(C)}const p={bodyClose:void 0,bodyOpen:void 0,head:void 0};Object.entries(d).forEach(([C,k])=>{var I;if(!k.length)return;const D=(I=r==null?void 0:r[C])==null?void 0:I.children;if(D){for(const _ of[...D].reverse()){const L=_.tagName.toLowerCase();if(!H7.includes(L))continue;const M=_.getAttributeNames().reduce((X,Z)=>({...X,[Z]:_.getAttribute(Z)}),{}),F={tag:L,props:M};_.innerHTML&&(F.innerHTML=_.innerHTML);const H=Mk(F);let G=k.findIndex(X=>(X==null?void 0:X.renderId)===H);if(G===-1){const X=W7(F);G=k.findIndex(Z=>(Z==null?void 0:Z.tag._d)&&Z.tag._d===X)}if(G!==-1){const X=k[G];X.$el=_,Nb(X),h(X),delete k[G]}}k.forEach(_=>{const L=_.tag.tagPosition||"head";p[L]=p[L]||r.createDocumentFragment(),_.$el||(_.$el=r.createElement(_.tag.tag),Nb(_,!0)),p[L].appendChild(_.$el),h(_)})}}),p.head&&r.head.appendChild(p.head),p.bodyOpen&&r.body.insertBefore(p.bodyOpen,r.body.firstChild),p.bodyClose&&r.body.appendChild(p.bodyClose);for(const C of l)await t.hooks.callHook("dom:renderTag",C);Object.values(o).forEach(C=>C())}let VE=null;async function Qae(t,e={}){function n(){return VE=null,Zae(t,e)}const r=e.delayFn||(i=>setTimeout(i,10));return VE=VE||new Promise(i=>r(()=>i(n())))}function ele(t){return{hooks:{"entries:updated":function(e){if(typeof(t==null?void 0:t.document)>"u"&&typeof window>"u")return;let n=t==null?void 0:t.delayFn;!n&&typeof requestAnimationFrame<"u"&&(n=requestAnimationFrame),Qae(e,{document:(t==null?void 0:t.document)||window.document,delayFn:n})}}}}function tle(t){var e;return((e=t==null?void 0:t.head.querySelector('meta[name="unhead:ssr"]'))==null?void 0:e.getAttribute("content"))||!1}const RP={critical:2,high:9,low:12,base:-1,title:1,meta:10};function MP(t){if(typeof t.tagPriority=="number")return t.tagPriority;if(t.tag==="meta"){if(t.props.charset)return-2;if(t.props["http-equiv"]==="content-security-policy")return 0}const e=t.tagPriority||t.tag;return e in RP?RP[e]:10}const nle=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}];function rle(){return{hooks:{"tags:resolve":t=>{const e=n=>{var r;return(r=t.tags.find(i=>i._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of nle)for(const i of t.tags.filter(o=>typeof o.tagPriority=="string"&&o.tagPriority.startsWith(n))){const o=e(i.tagPriority.replace(n,""));typeof o<"u"&&(i._p=o+r)}t.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>MP(n)-MP(r))}}}}function ile(){return{hooks:{"tags:resolve":t=>{const{tags:e}=t;let n=e.findIndex(i=>i.tag==="titleTemplate");const r=e.findIndex(i=>i.tag==="title");if(r!==-1&&n!==-1){const i=IP(e[n].textContent,e[r].textContent);i!==null?e[r].textContent=i||e[r].textContent:delete e[r]}else if(n!==-1){const i=IP(e[n].textContent);i!==null&&(e[n].textContent=i,e[n].tag="title",n=-1)}n!==-1&&delete e[n],t.tags=e.filter(Boolean)}}}}function ole(){return{hooks:{"tag:normalise":function({tag:t}){typeof t.props.body<"u"&&(t.tagPosition="bodyClose",delete t.props.body)}}}}const sle=["link","style","script","noscript"];function ale(){return{hooks:{"tag:normalise":({tag:t,resolvedOptions:e})=>{e.experimentalHashHydration===!0&&(t._h=Mk(t)),t.key&&sle.includes(t.tag)&&(t._h=j7(t.key),t.props[`data-h-${t._h}`]="")}}}}const PP=["script","link","bodyAttrs"];function lle(){const t=(e,n)=>{const r={},i={};Object.entries(n.props).forEach(([s,a])=>{s.startsWith("on")&&typeof a=="function"?i[s]=a:r[s]=a});let o;return e==="dom"&&n.tag==="script"&&typeof r.src=="string"&&typeof i.onload<"u"&&(o=r.src,delete r.src),{props:r,eventHandlers:i,delayedSrc:o}};return{hooks:{"ssr:render":function(e){e.tags=e.tags.map(n=>(!PP.includes(n.tag)||!Object.entries(n.props).find(([r,i])=>r.startsWith("on")&&typeof i=="function")||(n.props=t("ssr",n).props),n))},"dom:beforeRenderTag":function(e){if(!PP.includes(e.tag.tag)||!Object.entries(e.tag.props).find(([o,s])=>o.startsWith("on")&&typeof s=="function"))return;const{props:n,eventHandlers:r,delayedSrc:i}=t("dom",e.tag);Object.keys(r).length&&(e.tag.props=n,e.tag._eventHandlers=r,e.tag._delayedSrc=i)},"dom:renderTag":function(e){const n=e.$el;if(!e.tag._eventHandlers||!n)return;const r=e.tag.tag==="bodyAttrs"&&typeof window<"u"?window:n;Object.entries(e.tag._eventHandlers).forEach(([i,o])=>{const s=`${e.tag._d||e.tag._p}:${i}`,a=i.slice(2).toLowerCase(),l=`data-h-${a}`;if(e.markSideEffect(s,()=>{}),n.hasAttribute(l))return;const d=o;n.setAttribute(l,""),r.addEventListener(a,d),e.entry&&(e.entry._sde[s]=()=>{r.removeEventListener(a,d),n.removeAttribute(l)})}),e.tag._delayedSrc&&n.setAttribute("src",e.tag._delayedSrc)}}}}const cle=["templateParams","htmlAttrs","bodyAttrs"];function ule(){return{hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(r=>{t.props[r]&&(t.key=t.props[r],delete t.props[r])});const n=W7(t)||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":function(t){const e={};t.tags.forEach(r=>{const i=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,o=e[i];if(o){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&cle.includes(r.tag)&&(a="merge"),a==="merge"){const l=o.props;["class","style"].forEach(d=>{r.props[d]&&l[d]&&(d==="style"&&!l[d].endsWith(";")&&(l[d]+=";"),r.props[d]=`${l[d]} ${r.props[d]}`)}),e[i].props={...l,...r.props};return}else if(r._e===o._e){o._duped=o._duped||[],r._d=`${o._d}:${o._duped.length+1}`,o._duped.push(r);return}}const s=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(H7.includes(r.tag)&&s===0){delete e[i];return}e[i]=r});const n=[];Object.values(e).forEach(r=>{const i=r._duped;delete r._duped,n.push(r),i&&n.push(...i)}),t.tags=n}}}}function Lb(t,e){function n(o){if(["s","pageTitle"].includes(o))return e.pageTitle;let s;return o.includes(".")?s=o.split(".").reduce((a,l)=>a&&a[l]||void 0,e):s=e[o],typeof s<"u"?s||"":!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const s=n(o.slice(1));typeof s=="string"&&(t=t.replaceAll(new RegExp(`\\${o}(\\W|$)`,"g"),`${s}$1`).trim())}),e.separator&&(t.endsWith(e.separator)&&(t=t.slice(0,-e.separator.length).trim()),t.startsWith(e.separator)&&(t=t.slice(e.separator.length).trim()),t=t.replace(new RegExp(`\\${e.separator}\\s*\\${e.separator}`,"g"),e.separator)),t}function dle(){return{hooks:{"tags:resolve":t=>{var o;const{tags:e}=t,n=(o=e.find(s=>s.tag==="title"))==null?void 0:o.textContent,r=e.findIndex(s=>s.tag==="templateParams"),i=r!==-1?e[r].props:{};i.pageTitle=i.pageTitle||n||"";for(const s of e)if(["titleTemplate","title"].includes(s.tag)&&typeof s.textContent=="string")s.textContent=Lb(s.textContent,i);else if(s.tag==="meta"&&typeof s.props.content=="string")s.props.content=Lb(s.props.content,i);else if(s.tag==="link"&&typeof s.props.href=="string")s.props.href=Lb(s.props.href,i);else if(s.tag==="script"&&["application/json","application/ld+json"].includes(s.props.type)&&typeof s.innerHTML=="string")try{s.innerHTML=JSON.stringify(JSON.parse(s.innerHTML),(a,l)=>typeof l=="string"?Lb(l,i):l)}catch{}t.tags=e.filter(s=>s.tag!=="templateParams")}}}}const U7=typeof window<"u";let V7;function fle(t){return V7=t}function hle(){return V7}function Ywt(t,e={}){var r;const n=hle();if(n){const i=U7||((r=n.resolvedOptions)==null?void 0:r.document);return e.mode==="server"&&i||e.mode==="client"&&!i?void 0:n.push(t,e)}}async function ple(t,e){const n={tag:t,props:{}};return t==="templateParams"?(n.props=e,n):["title","titleTemplate"].includes(t)?(n.textContent=e instanceof Promise?await e:e,n):typeof e=="string"?["script","noscript","style"].includes(t)?(t==="script"&&(/^(https?:)?\/\//.test(e)||e.startsWith("/"))?n.props.src=e:n.innerHTML=e,n):!1:(n.props=await mle(t,{...e}),n.props.children&&(n.props.innerHTML=n.props.children),delete n.props.children,Object.keys(n.props).filter(r=>Kae.includes(r)).forEach(r=>{(!["innerHTML","textContent"].includes(r)||z7.includes(n.tag))&&(n[r]=n.props[r]),delete n.props[r]}),["innerHTML","textContent"].forEach(r=>{if(n.tag==="script"&&typeof n[r]=="string"&&["application/ld+json","application/json"].includes(n.props.type))try{n[r]=JSON.parse(n[r])}catch{n[r]=""}typeof n[r]=="object"&&(n[r]=JSON.stringify(n[r]))}),n.props.class&&(n.props.class=gle(n.props.class)),n.props.content&&Array.isArray(n.props.content)?n.props.content.map(r=>({...n,props:{...n.props,content:r}})):n)}function gle(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(e=>t[e])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(e=>e.trim()).filter(Boolean).join(" ")}async function mle(t,e){for(const n of Object.keys(e)){const r=n.startsWith("data-");e[n]instanceof Promise&&(e[n]=await e[n]),String(e[n])==="true"?e[n]=r?"true":"":String(e[n])==="false"&&(r?e[n]="false":delete e[n])}return e}const vle=10;async function ble(t){const e=[];return Object.entries(t.resolvedInput).filter(([n,r])=>typeof r<"u"&&Gae.includes(n)).forEach(([n,r])=>{const i=Xae(r);e.push(...i.map(o=>ple(n,o)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((n,r)=>(n._e=t._i,n._p=(t._i<<vle)+r,n))}function yle(){return[ule(),rle(),dle(),ile(),ale(),lle(),ole()]}function xle(t={}){return[ele({document:t==null?void 0:t.document,delayFn:t==null?void 0:t.domDelayFn})]}function wle(t={}){const e=Sle({...t,plugins:[...xle(t),...(t==null?void 0:t.plugins)||[]]});return t.experimentalHashHydration&&e.resolvedOptions.document&&(e._hash=tle(e.resolvedOptions.document)),fle(e),e}function Sle(t={}){let e=[],n={},r=0;const i=Yae();t!=null&&t.hooks&&i.addHooks(t.hooks),t.plugins=[...yle(),...(t==null?void 0:t.plugins)||[]],t.plugins.forEach(a=>a.hooks&&i.addHooks(a.hooks)),t.document=t.document||(U7?document:void 0);const o=()=>i.callHook("entries:updated",s),s={resolvedOptions:t,headEntries(){return e},get hooks(){return i},use(a){a.hooks&&i.addHooks(a.hooks)},push(a,l){const d={_i:r++,input:a,_sde:{}};return l!=null&&l.mode&&(d._m=l==null?void 0:l.mode),l!=null&&l.transform&&(d._t=l==null?void 0:l.transform),e.push(d),o(),{dispose(){e=e.filter(h=>h._i!==d._i?!0:(n={...n,...h._sde||{}},h._sde={},o(),!1))},patch(h){e=e.map(p=>(p._i===d._i&&(d.input=p.input=h,o()),p))}}},async resolveTags(){const a={tags:[],entries:[...e]};await i.callHook("entries:resolve",a);for(const l of a.entries){const d=l._t||(h=>h);if(l.resolvedInput=d(l.resolvedInput||l.input),l.resolvedInput)for(const h of await ble(l)){const p={tag:h,entry:l,resolvedOptions:s.resolvedOptions};await i.callHook("tag:normalise",p),a.tags.push(p.tag)}}return await i.callHook("tags:resolve",a),a.tags},_popSideEffectQueue(){const a={...n};return n={},a},_elMap:{}};return s.hooks.callHook("init",s),s}function Y7(t,e){return function(){return t.apply(e,arguments)}}const{toString:X7}=Object.prototype,{getPrototypeOf:XD}=Object,GD=(t=>e=>{const n=X7.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fc=t=>(t=t.toLowerCase(),e=>GD(e)===t),Xw=t=>e=>typeof e===t,{isArray:rg}=Array,bv=Xw("undefined");function Cle(t){return t!==null&&!bv(t)&&t.constructor!==null&&!bv(t.constructor)&&$u(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const G7=fc("ArrayBuffer");function Ele(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&G7(t.buffer),e}const Ale=Xw("string"),$u=Xw("function"),q7=Xw("number"),qD=t=>t!==null&&typeof t=="object",kle=t=>t===!0||t===!1,Ky=t=>{if(GD(t)!=="object")return!1;const e=XD(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Tle=fc("Date"),_le=fc("File"),Dle=fc("Blob"),$le=fc("FileList"),Ole=t=>qD(t)&&$u(t.pipe),Ile=t=>{const e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||X7.call(t)===e||$u(t.toString)&&t.toString()===e)},Rle=fc("URLSearchParams"),Mle=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function n0(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),rg(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function K7(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const J7=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Z7=t=>!bv(t)&&t!==J7;function Pk(){const{caseless:t}=Z7(this)&&this||{},e={},n=(r,i)=>{const o=t&&K7(e,i)||i;Ky(e[o])&&Ky(r)?e[o]=Pk(e[o],r):Ky(r)?e[o]=Pk({},r):rg(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&n0(arguments[r],n);return e}const Ple=(t,e,n,{allOwnKeys:r}={})=>(n0(e,(i,o)=>{n&&$u(i)?t[o]=Y7(i,n):t[o]=i},{allOwnKeys:r}),t),Nle=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Lle=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Fle=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&XD(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ble=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},zle=t=>{if(!t)return null;if(rg(t))return t;let e=t.length;if(!q7(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Hle=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&XD(Uint8Array)),jle=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},Wle=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Ule=fc("HTMLFormElement"),Vle=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),NP=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yle=fc("RegExp"),Q7=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};n0(n,(i,o)=>{e(i,o,t)!==!1&&(r[o]=i)}),Object.defineProperties(t,r)},Xle=t=>{Q7(t,(e,n)=>{if($u(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if($u(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Gle=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return rg(t)?r(t):r(String(t).split(e)),n},qle=()=>{},Kle=(t,e)=>(t=+t,Number.isFinite(t)?t:e),YE="abcdefghijklmnopqrstuvwxyz",LP="0123456789",ez={DIGIT:LP,ALPHA:YE,ALPHA_DIGIT:YE+YE.toUpperCase()+LP},Jle=(t=16,e=ez.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Zle(t){return!!(t&&$u(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Qle=t=>{const e=new Array(10),n=(r,i)=>{if(qD(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=rg(r)?[]:{};return n0(r,(s,a)=>{const l=n(s,i+1);!bv(l)&&(o[a]=l)}),e[i]=void 0,o}}return r};return n(t,0)},et={isArray:rg,isArrayBuffer:G7,isBuffer:Cle,isFormData:Ile,isArrayBufferView:Ele,isString:Ale,isNumber:q7,isBoolean:kle,isObject:qD,isPlainObject:Ky,isUndefined:bv,isDate:Tle,isFile:_le,isBlob:Dle,isRegExp:Yle,isFunction:$u,isStream:Ole,isURLSearchParams:Rle,isTypedArray:Hle,isFileList:$le,forEach:n0,merge:Pk,extend:Ple,trim:Mle,stripBOM:Nle,inherits:Lle,toFlatObject:Fle,kindOf:GD,kindOfTest:fc,endsWith:Ble,toArray:zle,forEachEntry:jle,matchAll:Wle,isHTMLForm:Ule,hasOwnProperty:NP,hasOwnProp:NP,reduceDescriptors:Q7,freezeMethods:Xle,toObjectSet:Gle,toCamelCase:Vle,noop:qle,toFiniteNumber:Kle,findKey:K7,global:J7,isContextDefined:Z7,ALPHABET:ez,generateString:Jle,isSpecCompliantForm:Zle,toJSONObject:Qle};function _n(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}et.inherits(_n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tz=_n.prototype,nz={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{nz[t]={value:t}});Object.defineProperties(_n,nz);Object.defineProperty(tz,"isAxiosError",{value:!0});_n.from=(t,e,n,r,i,o)=>{const s=Object.create(tz);return et.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),_n.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const ece=null;function Nk(t){return et.isPlainObject(t)||et.isArray(t)}function rz(t){return et.endsWith(t,"[]")?t.slice(0,-2):t}function FP(t,e,n){return t?t.concat(e).map(function(i,o){return i=rz(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function tce(t){return et.isArray(t)&&!t.some(Nk)}const nce=et.toFlatObject(et,{},null,function(e){return/^is[A-Z]/.test(e)});function Gw(t,e,n){if(!et.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=et.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,D){return!et.isUndefined(D[k])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&et.isSpecCompliantForm(e);if(!et.isFunction(i))throw new TypeError("visitor must be a function");function d(C){if(C===null)return"";if(et.isDate(C))return C.toISOString();if(!l&&et.isBlob(C))throw new _n("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(C)||et.isTypedArray(C)?l&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,k,D){let I=C;if(C&&!D&&typeof C=="object"){if(et.endsWith(k,"{}"))k=r?k:k.slice(0,-2),C=JSON.stringify(C);else if(et.isArray(C)&&tce(C)||(et.isFileList(C)||et.endsWith(k,"[]"))&&(I=et.toArray(C)))return k=rz(k),I.forEach(function(L,M){!(et.isUndefined(L)||L===null)&&e.append(s===!0?FP([k],M,o):s===null?k:k+"[]",d(L))}),!1}return Nk(C)?!0:(e.append(FP(D,k,o),d(C)),!1)}const p=[],y=Object.assign(nce,{defaultVisitor:h,convertValue:d,isVisitable:Nk});function w(C,k){if(!et.isUndefined(C)){if(p.indexOf(C)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(C),et.forEach(C,function(I,_){(!(et.isUndefined(I)||I===null)&&i.call(e,I,et.isString(_)?_.trim():_,k,y))===!0&&w(I,k?k.concat(_):[_])}),p.pop()}}if(!et.isObject(t))throw new TypeError("data must be an object");return w(t),e}function BP(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function KD(t,e){this._pairs=[],t&&Gw(t,this,e)}const iz=KD.prototype;iz.append=function(e,n){this._pairs.push([e,n])};iz.toString=function(e){const n=e?function(r){return e.call(this,r,BP)}:BP;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function rce(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oz(t,e,n){if(!e)return t;const r=n&&n.encode||rce,i=n&&n.serialize;let o;if(i?o=i(e,n):o=et.isURLSearchParams(e)?e.toString():new KD(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ice{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){et.forEach(this.handlers,function(r){r!==null&&e(r)})}}const zP=ice,sz={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oce=typeof URLSearchParams<"u"?URLSearchParams:KD,sce=typeof FormData<"u"?FormData:null,ace=typeof Blob<"u"?Blob:null,lce=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),cce=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Fa={isBrowser:!0,classes:{URLSearchParams:oce,FormData:sce,Blob:ace},isStandardBrowserEnv:lce,isStandardBrowserWebWorkerEnv:cce,protocols:["http","https","file","blob","url","data"]};function uce(t,e){return Gw(t,new Fa.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Fa.isNode&&et.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function dce(t){return et.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function fce(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function az(t){function e(n,r,i,o){let s=n[o++];const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&et.isArray(i)?i.length:s,l?(et.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!et.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&et.isArray(i[s])&&(i[s]=fce(i[s])),!a)}if(et.isFormData(t)&&et.isFunction(t.entries)){const n={};return et.forEachEntry(t,(r,i)=>{e(dce(r),i,n,0)}),n}return null}const hce={"Content-Type":void 0};function pce(t,e,n){if(et.isString(t))try{return(e||JSON.parse)(t),et.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const qw={transitional:sz,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=et.isObject(e);if(o&&et.isHTMLForm(e)&&(e=new FormData(e)),et.isFormData(e))return i&&i?JSON.stringify(az(e)):e;if(et.isArrayBuffer(e)||et.isBuffer(e)||et.isStream(e)||et.isFile(e)||et.isBlob(e))return e;if(et.isArrayBufferView(e))return e.buffer;if(et.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uce(e,this.formSerializer).toString();if((a=et.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gw(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),pce(e)):e}],transformResponse:[function(e){const n=this.transitional||qw.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&et.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?_n.from(a,_n.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fa.classes.FormData,Blob:Fa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};et.forEach(["delete","get","head"],function(e){qw.headers[e]={}});et.forEach(["post","put","patch"],function(e){qw.headers[e]=et.merge(hce)});const JD=qw,gce=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mce=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&gce[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},HP=Symbol("internals");function Lg(t){return t&&String(t).trim().toLowerCase()}function Jy(t){return t===!1||t==null?t:et.isArray(t)?t.map(Jy):String(t)}function vce(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}function bce(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function XE(t,e,n,r,i){if(et.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!et.isString(e)){if(et.isString(r))return e.indexOf(r)!==-1;if(et.isRegExp(r))return r.test(e)}}function yce(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function xce(t,e){const n=et.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}class Kw{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,l,d){const h=Lg(l);if(!h)throw new Error("header name must be a non-empty string");const p=et.findKey(i,h);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||l]=Jy(a))}const s=(a,l)=>et.forEach(a,(d,h)=>o(d,h,l));return et.isPlainObject(e)||e instanceof this.constructor?s(e,n):et.isString(e)&&(e=e.trim())&&!bce(e)?s(mce(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=Lg(e),e){const r=et.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return vce(i);if(et.isFunction(n))return n.call(this,i,r);if(et.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Lg(e),e){const r=et.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||XE(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=Lg(s),s){const a=et.findKey(r,s);a&&(!n||XE(r,r[a],a,n))&&(delete r[a],i=!0)}}return et.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||XE(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return et.forEach(this,(i,o)=>{const s=et.findKey(r,o);if(s){n[s]=Jy(i),delete n[o];return}const a=e?yce(o):String(o).trim();a!==o&&delete n[o],n[a]=Jy(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return et.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&et.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[HP]=this[HP]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Lg(s);r[a]||(xce(i,s),r[a]=!0)}return et.isArray(e)?e.forEach(o):o(e),this}}Kw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);et.freezeMethods(Kw.prototype);et.freezeMethods(Kw);const Ul=Kw;function GE(t,e){const n=this||JD,r=e||n,i=Ul.from(r.headers);let o=r.data;return et.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function lz(t){return!!(t&&t.__CANCEL__)}function r0(t,e,n){_n.call(this,t??"canceled",_n.ERR_CANCELED,e,n),this.name="CanceledError"}et.inherits(r0,_n,{__CANCEL__:!0});function wce(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new _n("Request failed with status code "+n.status,[_n.ERR_BAD_REQUEST,_n.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Sce=Fa.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),et.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),et.isString(o)&&l.push("path="+o),et.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Cce(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ece(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function cz(t,e){return t&&!Cce(e)?Ece(t,e):e}const Ace=Fa.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=et.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function kce(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Tce(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),h=r[o];s||(s=d),n[i]=l,r[i]=d;let p=o,y=0;for(;p!==i;)y+=n[p++],p=p%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),d-s<e)return;const w=h&&d-h;return w?Math.round(y*1e3/w):void 0}}function jP(t,e){let n=0;const r=Tce(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),d=o<=s;n=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&d?(s-o)/l:void 0,event:i};h[e?"download":"upload"]=!0,t(h)}}const _ce=typeof XMLHttpRequest<"u",Dce=_ce&&function(t){return new Promise(function(n,r){let i=t.data;const o=Ul.from(t.headers).normalize(),s=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}et.isFormData(i)&&(Fa.isStandardBrowserEnv||Fa.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let d=new XMLHttpRequest;if(t.auth){const w=t.auth.username||"",C=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(w+":"+C))}const h=cz(t.baseURL,t.url);d.open(t.method.toUpperCase(),oz(h,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function p(){if(!d)return;const w=Ul.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:w,config:t,request:d};wce(function(I){n(I),l()},function(I){r(I),l()},k),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new _n("Request aborted",_n.ECONNABORTED,t,d)),d=null)},d.onerror=function(){r(new _n("Network Error",_n.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let C=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const k=t.transitional||sz;t.timeoutErrorMessage&&(C=t.timeoutErrorMessage),r(new _n(C,k.clarifyTimeoutError?_n.ETIMEDOUT:_n.ECONNABORTED,t,d)),d=null},Fa.isStandardBrowserEnv){const w=(t.withCredentials||Ace(h))&&t.xsrfCookieName&&Sce.read(t.xsrfCookieName);w&&o.set(t.xsrfHeaderName,w)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&et.forEach(o.toJSON(),function(C,k){d.setRequestHeader(k,C)}),et.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",jP(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",jP(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=w=>{d&&(r(!w||w.type?new r0(null,t,d):w),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const y=kce(h);if(y&&Fa.protocols.indexOf(y)===-1){r(new _n("Unsupported protocol "+y+":",_n.ERR_BAD_REQUEST,t));return}d.send(i||null)})},Zy={http:ece,xhr:Dce};et.forEach(Zy,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const $ce={getAdapter:t=>{t=et.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let i=0;i<e&&(n=t[i],!(r=et.isString(n)?Zy[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new _n(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(et.hasOwnProp(Zy,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!et.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Zy};function qE(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new r0(null,t)}function WP(t){return qE(t),t.headers=Ul.from(t.headers),t.data=GE.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),$ce.getAdapter(t.adapter||JD.adapter)(t).then(function(r){return qE(t),r.data=GE.call(t,t.transformResponse,r),r.headers=Ul.from(r.headers),r},function(r){return lz(r)||(qE(t),r&&r.response&&(r.response.data=GE.call(t,t.transformResponse,r.response),r.response.headers=Ul.from(r.response.headers))),Promise.reject(r)})}const UP=t=>t instanceof Ul?t.toJSON():t;function xp(t,e){e=e||{};const n={};function r(d,h,p){return et.isPlainObject(d)&&et.isPlainObject(h)?et.merge.call({caseless:p},d,h):et.isPlainObject(h)?et.merge({},h):et.isArray(h)?h.slice():h}function i(d,h,p){if(et.isUndefined(h)){if(!et.isUndefined(d))return r(void 0,d,p)}else return r(d,h,p)}function o(d,h){if(!et.isUndefined(h))return r(void 0,h)}function s(d,h){if(et.isUndefined(h)){if(!et.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function a(d,h,p){if(p in e)return r(d,h);if(p in t)return r(void 0,d)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(d,h)=>i(UP(d),UP(h),!0)};return et.forEach(Object.keys(t).concat(Object.keys(e)),function(h){const p=l[h]||i,y=p(t[h],e[h],h);et.isUndefined(y)&&p!==a||(n[h]=y)}),n}const uz="1.3.4",ZD={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ZD[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const VP={};ZD.transitional=function(e,n,r){function i(o,s){return"[Axios v"+uz+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new _n(i(s," has been removed"+(n?" in "+n:"")),_n.ERR_DEPRECATED);return n&&!VP[s]&&(VP[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function Oce(t,e,n){if(typeof t!="object")throw new _n("options must be an object",_n.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],l=a===void 0||s(a,o,t);if(l!==!0)throw new _n("option "+o+" must be "+l,_n.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _n("Unknown option "+o,_n.ERR_BAD_OPTION)}}const Lk={assertOptions:Oce,validators:ZD},Mc=Lk.validators;class qx{constructor(e){this.defaults=e,this.interceptors={request:new zP,response:new zP}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=xp(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Lk.assertOptions(r,{silentJSONParsing:Mc.transitional(Mc.boolean),forcedJSONParsing:Mc.transitional(Mc.boolean),clarifyTimeoutError:Mc.transitional(Mc.boolean)},!1),i!==void 0&&Lk.assertOptions(i,{encode:Mc.function,serialize:Mc.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&et.merge(o.common,o[n.method]),s&&et.forEach(["delete","get","head","post","put","patch","common"],C=>{delete o[C]}),n.headers=Ul.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(l=l&&k.synchronous,a.unshift(k.fulfilled,k.rejected))});const d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});let h,p=0,y;if(!l){const C=[WP.bind(this),void 0];for(C.unshift.apply(C,a),C.push.apply(C,d),y=C.length,h=Promise.resolve(n);p<y;)h=h.then(C[p++],C[p++]);return h}y=a.length;let w=n;for(p=0;p<y;){const C=a[p++],k=a[p++];try{w=C(w)}catch(D){k.call(this,D);break}}try{h=WP.call(this,w)}catch(C){return Promise.reject(C)}for(p=0,y=d.length;p<y;)h=h.then(d[p++],d[p++]);return h}getUri(e){e=xp(this.defaults,e);const n=cz(e.baseURL,e.url);return oz(n,e.params,e.paramsSerializer)}}et.forEach(["delete","get","head","options"],function(e){qx.prototype[e]=function(n,r){return this.request(xp(r||{},{method:e,url:n,data:(r||{}).data}))}});et.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(xp(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}qx.prototype[e]=n(),qx.prototype[e+"Form"]=n(!0)});const Qy=qx;class QD{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new r0(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new QD(function(i){e=i}),cancel:e}}}const Ice=QD;function Rce(t){return function(n){return t.apply(null,n)}}function Mce(t){return et.isObject(t)&&t.isAxiosError===!0}const Fk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fk).forEach(([t,e])=>{Fk[e]=t});const Pce=Fk;function dz(t){const e=new Qy(t),n=Y7(Qy.prototype.request,e);return et.extend(n,Qy.prototype,e,{allOwnKeys:!0}),et.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return dz(xp(t,i))},n}const ei=dz(JD);ei.Axios=Qy;ei.CanceledError=r0;ei.CancelToken=Ice;ei.isCancel=lz;ei.VERSION=uz;ei.toFormData=Gw;ei.AxiosError=_n;ei.Cancel=ei.CanceledError;ei.all=function(e){return Promise.all(e)};ei.spread=Rce;ei.isAxiosError=Mce;ei.mergeConfig=xp;ei.AxiosHeaders=Ul;ei.formToJSON=t=>az(et.isHTMLForm(t)?new FormData(t):t);ei.HttpStatusCode=Pce;ei.default=ei;const Xwt=ei,Xa=Object.create(null);Xa.open="0";Xa.close="1";Xa.ping="2";Xa.pong="3";Xa.message="4";Xa.upgrade="5";Xa.noop="6";const ex=Object.create(null);Object.keys(Xa).forEach(t=>{ex[Xa[t]]=t});const Nce={type:"error",data:"parser error"},Lce=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Fce=typeof ArrayBuffer=="function",Bce=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,fz=({type:t,data:e},n,r)=>Lce&&e instanceof Blob?n?r(e):YP(e,r):Fce&&(e instanceof ArrayBuffer||Bce(e))?n?r(e):YP(new Blob([e]),r):r(Xa[t]+(e||"")),YP=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)},XP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<XP.length;t++)cm[XP.charCodeAt(t)]=t;const zce=t=>{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),h=new Uint8Array(d);for(r=0;r<n;r+=4)o=cm[t.charCodeAt(r)],s=cm[t.charCodeAt(r+1)],a=cm[t.charCodeAt(r+2)],l=cm[t.charCodeAt(r+3)],h[i++]=o<<2|s>>4,h[i++]=(s&15)<<4|a>>2,h[i++]=(a&3)<<6|l&63;return d},Hce=typeof ArrayBuffer=="function",hz=(t,e)=>{if(typeof t!="string")return{type:"message",data:pz(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:jce(t.substring(1),e)}:ex[n]?t.length>1?{type:ex[n],data:t.substring(1)}:{type:ex[n]}:Nce},jce=(t,e)=>{if(Hce){const n=zce(t);return pz(n,e)}else return{base64:!0,data:t}},pz=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}},gz=String.fromCharCode(30),Wce=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{fz(o,!1,a=>{r[s]=a,++i===n&&e(r.join(gz))})})},Uce=(t,e)=>{const n=t.split(gz),r=[];for(let i=0;i<n.length;i++){const o=hz(n[i],e);if(r.push(o),o.type==="error")break}return r},mz=4;function Wr(t){if(t)return Vce(t)}function Vce(t){for(var e in Wr.prototype)t[e]=Wr.prototype[e];return t}Wr.prototype.on=Wr.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Wr.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};Wr.prototype.off=Wr.prototype.removeListener=Wr.prototype.removeAllListeners=Wr.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+t],this};Wr.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this};Wr.prototype.emitReserved=Wr.prototype.emit;Wr.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Wr.prototype.hasListeners=function(t){return!!this.listeners(t).length};const ws=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function vz(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const Yce=ws.setTimeout,Xce=ws.clearTimeout;function Jw(t,e){e.useNativeTimers?(t.setTimeoutFn=Yce.bind(ws),t.clearTimeoutFn=Xce.bind(ws)):(t.setTimeoutFn=ws.setTimeout.bind(ws),t.clearTimeoutFn=ws.clearTimeout.bind(ws))}const Gce=1.33;function qce(t){return typeof t=="string"?Kce(t):Math.ceil((t.byteLength||t.size)*Gce)}function Kce(t){let e=0,n=0;for(let r=0,i=t.length;r<i;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}class Jce extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class bz extends Wr{constructor(e){super(),this.writable=!1,Jw(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new Jce(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=hz(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}const yz="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Bk=64,Zce={};let GP=0,Fb=0,qP;function KP(t){let e="";do e=yz[t%Bk]+e,t=Math.floor(t/Bk);while(t>0);return e}function xz(){const t=KP(+new Date);return t!==qP?(GP=0,qP=t):t+"."+KP(GP++)}for(;Fb<Bk;Fb++)Zce[yz[Fb]]=Fb;function wz(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function Qce(t){let e={},n=t.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}let Sz=!1;try{Sz=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const eue=Sz;function Cz(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||eue))return new XMLHttpRequest}catch{}if(!e)try{return new ws[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function tue(){}const nue=function(){return new Cz({xdomain:!1}).responseType!=null}();class rue extends bz{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==r}const n=e&&e.forceBase64;this.supportsBinary=nue&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Uce(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Wce(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=xz()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const i=wz(e),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Kh(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}let Kh=class tx extends Wr{constructor(e,n){super(),Jw(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const e=vz(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const n=this.xhr=new Cz(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=tx.requestsCount++,tx.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=tue,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete tx.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Kh.requestsCount=0;Kh.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",JP);else if(typeof addEventListener=="function"){const t="onpagehide"in ws?"pagehide":"unload";addEventListener(t,JP,!1)}}function JP(){for(let t in Kh.requests)Kh.requests.hasOwnProperty(t)&&Kh.requests[t].abort()}const Ez=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Bb=ws.WebSocket||ws.MozWebSocket,ZP=!0,iue="arraybuffer",QP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";let oue=class extends bz{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=QP?{}:vz(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=ZP&&!QP?n?new Bb(e,n):new Bb(e):new Bb(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||iue,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;fz(r,this.supportsBinary,o=>{const s={};try{ZP&&this.ws.send(o)}catch{}i&&Ez(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=xz()),this.supportsBinary||(e.b64=1);const i=wz(e),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!Bb}};const sue={websocket:oue,polling:rue},aue=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zk(t){const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=aue.exec(t||""),o={},s=14;for(;s--;)o[lue[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=cue(o,o.path),o.queryKey=uue(o,o.query),o}function cue(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function uue(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let Az=class bh extends Wr{constructor(e,n={}){super(),this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=zk(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=zk(n.host).host),Jw(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Qce(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=mz,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[e],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new sue[e](r)}open(){let e;if(this.opts.rememberUpgrade&&bh.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;bh.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!r)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;bh.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=n.name,this.emitReserved("upgradeError",y)}}))};function o(){r||(r=!0,h(),n.close(),n=null)}const s=p=>{const y=new Error("probe error: "+p);y.transport=n.name,o(),this.emitReserved("upgradeError",y)};function a(){s("transport closed")}function l(){s("socket closed")}function d(p){n&&p.name!==n.name&&o()}const h=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",d)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",d),n.open()}onOpen(){if(this.readyState="open",bh.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=qce(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){bh.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}};Az.protocol=mz;function due(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=zk(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const fue=typeof ArrayBuffer=="function",hue=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,kz=Object.prototype.toString,pue=typeof Blob=="function"||typeof Blob<"u"&&kz.call(Blob)==="[object BlobConstructor]",gue=typeof File=="function"||typeof File<"u"&&kz.call(File)==="[object FileConstructor]";function e$(t){return fue&&(t instanceof ArrayBuffer||hue(t))||pue&&t instanceof Blob||gue&&t instanceof File}function nx(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(nx(t[n]))return!0;return!1}if(e$(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return nx(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&nx(t[n]))return!0;return!1}function mue(t){const e=[],n=t.data,r=t;return r.data=Hk(n,e),r.attachments=e.length,{packet:r,buffers:e}}function Hk(t,e){if(!t)return t;if(e$(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=Hk(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=Hk(t[r],e));return n}return t}function vue(t,e){return t.data=jk(t.data,e),delete t.attachments,t}function jk(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=jk(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=jk(t[n],e));return t}const bue=5;var xn;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(xn||(xn={}));class yue{constructor(e){this.replacer=e}encode(e){return(e.type===xn.EVENT||e.type===xn.ACK)&&nx(e)?this.encodeAsBinary({type:e.type===xn.EVENT?xn.BINARY_EVENT:xn.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===xn.BINARY_EVENT||e.type===xn.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=mue(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class t$ extends Wr{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const r=n.type===xn.BINARY_EVENT;r||n.type===xn.BINARY_ACK?(n.type=r?xn.EVENT:xn.ACK,this.reconstructor=new xue(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(e$(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const r={type:Number(e.charAt(0))};if(xn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===xn.BINARY_EVENT||r.type===xn.BINARY_ACK){const o=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const s=e.substring(o,n);if(s!=Number(s)||e.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(e.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(o,n)}else r.nsp="/";const i=e.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=e.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===e.length)break}r.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){const o=this.tryParse(e.substr(n));if(t$.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case xn.CONNECT:return typeof n=="object";case xn.DISCONNECT:return n===void 0;case xn.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case xn.EVENT:case xn.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case xn.ACK:case xn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xue{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=vue(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const wue=Object.freeze(Object.defineProperty({__proto__:null,Decoder:t$,Encoder:yue,get PacketType(){return xn},protocol:bue},Symbol.toStringTag,{value:"Module"}));function Ks(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const Sue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Tz extends Wr{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Ks(e,"open",this.onopen.bind(this)),Ks(e,"packet",this.onpacket.bind(this)),Ks(e,"error",this.onerror.bind(this)),Ks(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(Sue.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:xn.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===e&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(e,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:xn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case xn.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case xn.EVENT:case xn.BINARY_EVENT:this.onevent(e);break;case xn.ACK:case xn.BINARY_ACK:this.onack(e);break;case xn.DISCONNECT:this.ondisconnect();break;case xn.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:xn.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,e.data)}}}function ig(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}ig.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};ig.prototype.reset=function(){this.attempts=0};ig.prototype.setMin=function(t){this.ms=t};ig.prototype.setMax=function(t){this.max=t};ig.prototype.setJitter=function(t){this.jitter=t};class Wk extends Wr{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Jw(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ig({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||wue;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Az(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ks(n,"open",function(){r.onopen(),e&&e()}),o=Ks(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),e?e(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&i();const a=this.setTimeoutFn(()=>{i(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Ks(e,"ping",this.onping.bind(this)),Ks(e,"data",this.ondata.bind(this)),Ks(e,"error",this.onerror.bind(this)),Ks(e,"close",this.onclose.bind(this)),Ks(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Ez(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Tz(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Fg={};function KE(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=due(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Fg[i]&&o in Fg[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new Wk(r,e):(Fg[i]||(Fg[i]=new Wk(r,e)),l=Fg[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(KE,{Manager:Wk,Socket:Tz,io:KE,connect:KE});const _z=Object.prototype.toString;function n$(t){switch(_z.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return tf(t,Error)}}function og(t,e){return _z.call(t)===`[object ${e}]`}function Dz(t){return og(t,"ErrorEvent")}function eN(t){return og(t,"DOMError")}function Cue(t){return og(t,"DOMException")}function Vl(t){return og(t,"String")}function r$(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function i$(t){return t===null||r$(t)||typeof t!="object"&&typeof t!="function"}function wp(t){return og(t,"Object")}function Zw(t){return typeof Event<"u"&&tf(t,Event)}function Eue(t){return typeof Element<"u"&&tf(t,Element)}function Aue(t){return og(t,"RegExp")}function Qw(t){return Boolean(t&&t.then&&typeof t.then=="function")}function kue(t){return wp(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function tf(t,e){try{return t instanceof e}catch{return!1}}function $z(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Jh(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function tN(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{$z(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Tue(t,e,n=!1){return Vl(t)?Aue(e)?e.test(t):Vl(e)?n?t===e:t.includes(e):!1:!1}function i0(t,e=[],n=!1){return e.some(r=>Tue(t,r,n))}function _ue(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!tf(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Due(Uk(t,e,i,s.originalException,r,o.exception.values,a,0),n))}function Uk(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(tf(r[i],Error)){nN(s,a);const d=t(e,r[i]),h=l.length;rN(d,i,h,a),l=Uk(t,e,n,r[i],i,[d,...l],d,h)}return Array.isArray(r.errors)&&r.errors.forEach((d,h)=>{if(tf(d,Error)){nN(s,a);const p=t(e,d),y=l.length;rN(p,`errors[${h}]`,y,a),l=Uk(t,e,n,d,i,[p,...l],p,y)}}),l}function nN(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function rN(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Due(t,e){return t.map(n=>(n.value&&(n.value=Jh(n.value,e)),n))}function Oz(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const Yl="8.34.0",En=globalThis;function eS(t,e,n){const r=n||En,i=r.__SENTRY__=r.__SENTRY__||{},o=i[Yl]=i[Yl]||{};return o[t]||(o[t]=e())}const o$=En,$ue=80;function tS(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",l=a.length;let d;const h=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||$ue;for(;n&&o++<r&&(d=Oue(n,h),!(d==="html"||o>1&&s+i.length*l+d.length>=p));)i.push(d),s+=d.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Oue(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(o$.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=e&&e.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&Vl(s)){const a=s.split(/\s+/);for(const l of a)r.push(`.${l}`)}}const o=["aria-label","type","name","title","alt"];for(const s of o){const a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Iz(){try{return o$.document.location.href}catch{return""}}function Iue(t){if(!o$.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}const o0=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Rue="Sentry Logger ",Vk=["debug","info","warn","error","log","assert","trace"],Kx={};function hc(t){if(!("console"in En))return t();const e=En.console,n={},r=Object.keys(Kx);r.forEach(i=>{const o=Kx[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function Mue(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return o0?Vk.forEach(n=>{e[n]=(...r)=>{t&&hc(()=>{En.console[n](`${Rue}[${n}]:`,...r)})}}):Vk.forEach(n=>{e[n]=()=>{}}),e}const Ot=eS("logger",Mue),Pue=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nue(t){return t==="http"||t==="https"}function s0(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=t;return`${a}://${l}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function Lue(t){const e=Pue.exec(t);if(!e){hc(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,i="",o="",s="",a=""]=e.slice(1);let l="",d=a;const h=d.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),d=h.pop()),d){const p=d.match(/^\d+/);p&&(d=p[0])}return Rz({host:o,pass:i,path:l,projectId:d,port:s,protocol:n,publicKey:r})}function Rz(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Fue(t){if(!o0)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(Ot.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Nue(r)?e&&isNaN(parseInt(e,10))?(Ot.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Ot.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ot.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Bue(t){const e=typeof t=="string"?Lue(t):Rz(t);if(!(!e||!Fue(e)))return e}class Pa extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Do(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);typeof i=="function"&&Mz(i,r),t[e]=i}function Is(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{o0&&Ot.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Mz(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Is(t,"__sentry_original__",e)}catch{}}function s$(t){return t.__sentry_original__}function zue(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function Pz(t){if(n$(t))return{message:t.message,name:t.name,stack:t.stack,...oN(t)};if(Zw(t)){const e={type:t.type,target:iN(t.target),currentTarget:iN(t.currentTarget),...oN(t)};return typeof CustomEvent<"u"&&tf(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function iN(t){try{return Eue(t)?tS(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function oN(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function Hue(t,e=40){const n=Object.keys(Pz(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return Jh(r,e);for(let i=n.length;i>0;i--){const o=n.slice(0,i).join(", ");if(!(o.length>e))return i===n.length?o:Jh(o,e)}return""}function xi(t){return Yk(t,new Map)}function Yk(t,e){if(jue(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const i of Object.getOwnPropertyNames(t))typeof t[i]<"u"&&(r[i]=Yk(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(i=>{r.push(Yk(i,e))}),r}return t}function jue(t){if(!wp(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const Nz=50,nf="?",sN=/\(error: (.*)\)/,aN=/captureMessage|captureException/;function Lz(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const o=[],s=n.split(`
`);for(let a=r;a<s.length;a++){const l=s[a];if(l.length>1024)continue;const d=sN.test(l)?l.replace(sN,"$1"):l;if(!d.match(/\S*Error: /)){for(const h of e){const p=h(d);if(p){o.push(p);break}}if(o.length>=Nz+i)break}}return Uue(o.slice(i))}}function Wue(t){return Array.isArray(t)?Lz(...t):t}function Uue(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(zb(e).function||"")&&e.pop(),e.reverse(),aN.test(zb(e).function||"")&&(e.pop(),aN.test(zb(e).function||"")&&e.pop()),e.slice(0,Nz).map(n=>({...n,filename:n.filename||zb(e).filename,function:n.function||nf}))}function zb(t){return t[t.length-1]||{}}const JE="<anonymous>";function nc(t){try{return!t||typeof t!="function"?JE:t.name||JE}catch{return JE}}function lN(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const rx={},cN={};function kf(t,e){rx[t]=rx[t]||[],rx[t].push(e)}function Tf(t,e){cN[t]||(e(),cN[t]=!0)}function ua(t,e){const n=t&&rx[t];if(n)for(const r of n)try{r(e)}catch(i){o0&&Ot.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${nc(r)}
Error:`,i)}}function Vue(t){const e="console";kf(e,t),Tf(e,Yue)}function Yue(){"console"in En&&Vk.forEach(function(t){t in En.console&&Do(En.console,t,function(e){return Kx[t]=e,function(...n){ua("console",{args:n,level:t});const i=Kx[t];i&&i.apply(En.console,n)}})})}const Xk=En;function Fz(){if(!("fetch"in Xk))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Gk(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Xue(){if(typeof EdgeRuntime=="string")return!0;if(!Fz())return!1;if(Gk(Xk.fetch))return!0;let t=!1;const e=Xk.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Gk(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){o0&&Ot.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}const Bz=1e3;function a0(){return Date.now()/Bz}function Gue(){const{performance:t}=En;if(!t||!t.now)return a0;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/Bz}const Ts=Gue(),que=(()=>{const{performance:t}=En;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,l=typeof s=="number"?Math.abs(s+n-r):e,d=l<e;return o||d?i<=l?t.timeOrigin:s:r})();function Kue(t,e){const n="fetch";kf(n,t),Tf(n,()=>Jue(void 0,e))}function Jue(t,e=!1){e&&!Xue()||Do(En,"fetch",function(n){return function(...r){const{method:i,url:o}=Zue(r),s={args:r,fetchData:{method:i,url:o},startTimestamp:Ts()*1e3};t||ua("fetch",{...s});const a=new Error().stack;return n.apply(En,r).then(async l=>(t?t(l):ua("fetch",{...s,endTimestamp:Ts()*1e3,response:l}),l),l=>{throw ua("fetch",{...s,endTimestamp:Ts()*1e3,error:l}),n$(l)&&l.stack===void 0&&(l.stack=a,Is(l,"framesToPop",1)),l})}})}function qk(t,e){return!!t&&typeof t=="object"&&!!t[e]}function uN(t){return typeof t=="string"?t:t?qk(t,"url")?t.url:t.toString?t.toString():"":""}function Zue(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:uN(n),method:qk(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:uN(e),method:qk(e,"method")?String(e.method).toUpperCase():"GET"}}let Hb=null;function Que(t){const e="error";kf(e,t),Tf(e,ede)}function ede(){Hb=En.onerror,En.onerror=function(t,e,n,r,i){return ua("error",{column:r,error:i,line:n,msg:t,url:e}),Hb&&!Hb.__SENTRY_LOADER__?Hb.apply(this,arguments):!1},En.onerror.__SENTRY_INSTRUMENTED__=!0}let jb=null;function tde(t){const e="unhandledrejection";kf(e,t),Tf(e,nde)}function nde(){jb=En.onunhandledrejection,En.onunhandledrejection=function(t){return ua("unhandledrejection",t),jb&&!jb.__SENTRY_LOADER__?jb.apply(this,arguments):!0},En.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function rde(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ide(){return"npm"}function ode(){return!rde()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function dN(){return typeof window<"u"&&(!ode()||sde())}function sde(){return En.process!==void 0&&En.process.type==="renderer"}function ade(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let o=0;o<e.length;o++)if(e[o]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let o=0;o<e.length;o++)if(e[o]===i){e.splice(o,1);break}}return[n,r]}function Ai(){const t=En,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function zz(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function qc(t){const{message:e,event_id:n}=t;if(e)return e;const r=zz(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Kk(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function yv(t,e){const n=zz(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const o={...i&&i.data,...e.data};n.mechanism.data=o}}function fN(t){if(t&&t.__sentry_captured__)return!0;try{Is(t,"__sentry_captured__",!0)}catch{}return!1}function a$(t){return Array.isArray(t)?t:[t]}function Ia(t,e=100,n=1/0){try{return Jk("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Hz(t,e=3,n=100*1024){const r=Ia(t,e);return dde(r)>n?Hz(t,e-1,n):r}function Jk(t,e,n=1/0,r=1/0,i=ade()){const[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=lde(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const d=e;if(d&&typeof d.toJSON=="function")try{const w=d.toJSON();return Jk("",w,l-1,r,i)}catch{}const h=Array.isArray(e)?[]:{};let p=0;const y=Pz(e);for(const w in y){if(!Object.prototype.hasOwnProperty.call(y,w))continue;if(p>=r){h[w]="[MaxProperties ~]";break}const C=y[w];h[w]=Jk(w,C,l-1,r,i),p++}return s(e),h}function lde(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if($z(e))return"[VueViewModel]";if(kue(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${nc(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=cde(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function cde(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function ude(t){return~-encodeURI(t).split(/%..|./).length}function dde(t){return ude(JSON.stringify(t))}var El;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(El||(El={}));function rc(t){return new Ss(e=>{e(t)})}function Jx(t){return new Ss((e,n)=>{n(t)})}class Ss{constructor(e){Ss.prototype.__init.call(this),Ss.prototype.__init2.call(this),Ss.prototype.__init3.call(this),Ss.prototype.__init4.call(this),this._state=El.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new Ss((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new Ss((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=e=>{this._setResult(El.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(El.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===El.PENDING){if(Qw(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===El.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===El.RESOLVED&&n[1](this._value),this._state===El.REJECTED&&n[2](this._value),n[0]=!0)})}}}function fde(t){const e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return Jx(new Pa("Not adding Promise because buffer limit was reached."));const a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Ss((a,l)=>{let d=e.length;if(!d)return a(!0);const h=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(p=>{rc(p).then(()=>{--d||(clearTimeout(h),a(!0))},l)})})}return{$:e,add:i,drain:o}}function ZE(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const hde=["fatal","error","warning","log","info","debug"];function jz(t){return t==="warn"?"warning":hde.includes(t)?t:"log"}const pde="sentry-",gde=/^sentry-/;function mde(t){const e=vde(t);if(!e)return;const n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(gde)){const s=i.slice(pde.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function vde(t){if(!(!t||!Vl(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=hN(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):hN(t)}function hN(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function _f(t,e=[]){return[t,e]}function bde(t,e){const[n,r]=t;return[n,[...r,e]]}function pN(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function Zk(t){return En.__SENTRY__&&En.__SENTRY__.encodePolyfill?En.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function yde(t){const[e,n]=t;let r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[Zk(r),o]:r.push(typeof o=="string"?Zk(o):o)}for(const o of n){const[s,a]=o;if(i(`
${JSON.stringify(s)}
`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(Ia(a))}i(l)}}return typeof r=="string"?r:xde(r)}function xde(t){const e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function wde(t){return[{type:"span"},t]}function Sde(t){const e=typeof t.data=="string"?Zk(t.data):t.data;return[xi({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const Cde={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function gN(t){return Cde[t]}function l$(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Wz(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:s0(r)},...i&&{trace:xi({...i})}}}function Ede(t,e,n){const r=[{type:"client_report"},{timestamp:n||a0(),discarded_events:t}];return _f(e?{dsn:e}:{},[r])}const Ade=60*1e3;function kde(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Ade:r-e}function Tde(t,e){return t[e]||t.all||0}function Uz(t,e,n=Date.now()){return Tde(t,e)>n}function Vz(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[l,d,,,h]=a.split(":",5),p=parseInt(l,10),y=(isNaN(p)?60:p)*1e3;if(!d)i.all=r+y;else for(const w of d.split(";"))w==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(i[w]=r+y):i[w]=r+y}else s?i.all=r+kde(s,r):e===429&&(i.all=r+60*1e3);return i}function _de(t,e){return t??e()}function zd(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}function mN(){return{traceId:Ai(),spanId:Ai().substring(16)}}const Wb=En;function Dde(){const t=Wb.chrome,e=t&&t.app&&t.app.runtime,n="history"in Wb&&!!Wb.history.pushState&&!!Wb.history.replaceState;return!e&&n}const dn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function sg(){return c$(En),En}function c$(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Yl,e[Yl]=e[Yl]||{}}function $de(t){const e=Ts(),n={sid:Ai(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ide(n)};return t&&Sp(n,t),n}function Sp(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ts(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Ai()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ode(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),Sp(t,n)}function Ide(t){return xi({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const Qk="_sentrySpan";function eT(t,e){e?Is(t,Qk,e):delete t[Qk]}function Zx(t){return t[Qk]}const Rde=100;class u${constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=mN()}clone(){const e=new u$;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,eT(e,Zx(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Sp(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,[r,i]=n instanceof Ou?[n.getScopeData(),n.getRequestSession()]:wp(n)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:d,fingerprint:h=[],propagationContext:p}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),d&&(this._level=d),h.length&&(this._fingerprint=h),p&&(this._propagationContext=p),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,eT(this,void 0),this._attachments=[],this._propagationContext=mN(),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Rde;if(r<=0)return this;const i={timestamp:a0(),...e},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Zx(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:Ai();if(!this._client)return Ot.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureMessage(e,n,r){const i=r&&r.event_id?r.event_id:Ai();if(!this._client)return Ot.warn("No client configured on scope - will not capture message!"),i;const o=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:i},this),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:Ai();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Ot.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Ou=u$;function Mde(){return eS("defaultCurrentScope",()=>new Ou)}function Pde(){return eS("defaultIsolationScope",()=>new Ou)}class Nde{constructor(e,n){let r;e?r=e:r=new Ou;let i;n?i=n:i=new Ou,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(i){throw this._popScope(),i}return Qw(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Cp(){const t=sg(),e=c$(t);return e.stack=e.stack||new Nde(Mde(),Pde())}function Lde(t){return Cp().withScope(t)}function Fde(t,e){const n=Cp();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function vN(t){return Cp().withScope(()=>t(Cp().getIsolationScope()))}function Bde(){return{withIsolationScope:vN,withScope:Lde,withSetScope:Fde,withSetIsolationScope:(t,e)=>vN(e),getCurrentScope:()=>Cp().getScope(),getIsolationScope:()=>Cp().getIsolationScope()}}function l0(t){const e=c$(t);return e.acs?e.acs:Bde()}function co(){const t=sg();return l0(t).getCurrentScope()}function pc(){const t=sg();return l0(t).getIsolationScope()}function zde(){return eS("globalScope",()=>new Ou)}function d$(...t){const e=sg(),n=l0(e);if(t.length===2){const[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function Kn(){return co().getClient()}const Hde="_sentryMetrics";function tT(t){const e=t[Hde];if(!e)return;const n={};for(const[,[r,i]]of e)(n[r]||(n[r]=[])).push(xi(i));return n}const nS="sentry.source",Yz="sentry.sample_rate",nT="sentry.op",xv="sentry.origin",jde="sentry.measurement_unit",Wde="sentry.measurement_value",Ude="sentry.profile_id",Vde="sentry.exclusive_time",Yde=0,Xde=1,Xz=0,Gz=1;function Gde(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a}=No(t);return xi({parent_span_id:o,span_id:e,trace_id:n,data:r,op:i,status:s,origin:a})}function qde(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=No(t);return xi({parent_span_id:r,span_id:e,trace_id:n})}function Zh(t){return typeof t=="number"?bN(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?bN(t.getTime()):Ts()}function bN(t){return t>9999999999?t/1e3:t}function No(t){if(Jde(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(Kde(t)){const{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:l}=t;return xi({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Zh(i),timestamp:Zh(s)||void 0,status:qz(l),op:r[nT],origin:r[xv],_metrics_summary:tT(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function Kde(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Jde(t){return typeof t.getSpanJSON=="function"}function c0(t){const{traceFlags:e}=t.spanContext();return e===Gz}function qz(t){if(!(!t||t.code===Yde))return t.code===Xde?"ok":t.message||"unknown_error"}const Dm="_sentryChildSpans",rT="_sentryRootSpan";function Kz(t,e){const n=t[rT]||t;Is(e,rT,n),t[Dm]?t[Dm].add(e):Is(t,Dm,new Set([e]))}function Zde(t){const e=new Set;function n(r){if(!e.has(r)&&c0(r)){e.add(r);const i=r[Dm]?Array.from(r[Dm]):[];for(const o of i)n(o)}}return n(t),Array.from(e)}function Xl(t){return t[rT]||t}function Qx(){const t=sg(),e=l0(t);return e.getActiveSpan?e.getActiveSpan():Zx(co())}const Jz="_sentryScope",Zz="_sentryIsolationScope";function Qde(t,e,n){t&&(Is(t,Zz,n),Is(t,Jz,e))}function yN(t){return{scope:t[Jz],isolationScope:t[Zz]}}function rS(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Kn(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class f${constructor(e={}){this._traceId=e.traceId||Ai(),this._spanId=e.spanId||Ai().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Xz}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}}const h$="production",Qz="_frozenDsc";function xN(t,e){Is(t,Qz,e)}function eH(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=xi({environment:n.environment||h$,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function u0(t){const e=Kn();if(!e)return{};const n=eH(No(t).trace_id||"",e),r=Xl(t),i=r[Qz];if(i)return i;const o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&mde(s);if(a)return a;const l=No(r),d=l.data||{},h=d[Yz];h!=null&&(n.sample_rate=`${h}`);const p=d[nS],y=l.description;return p!=="url"&&y&&(n.transaction=y),rS()&&(n.sampled=String(c0(r))),e.emit("createDsc",n,r),n}function efe(t){if(!dn)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=No(t),{spanId:i}=t.spanContext(),o=c0(t),s=Xl(t),a=s===t,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,d=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&d.push(`parent ID: ${r}`),!a){const{op:h,description:p}=No(s);d.push(`root ID: ${s.spanContext().spanId}`),h&&d.push(`root op: ${h}`),p&&d.push(`root description: ${p}`)}Ot.log(`${l}
  ${d.join(`
  `)}`)}function tfe(t){if(!dn)return;const{description:e="< unknown name >",op:n="< unknown op >"}=No(t),{spanId:r}=t.spanContext(),o=Xl(t)===t,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${e}" with ID ${r}`;Ot.log(s)}function e1(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){dn&&Ot.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}function nfe(t,e){if(!rS(t))return[!1];let n;typeof t.tracesSampler=="function"?n=t.tracesSampler(e):e.parentSampled!==void 0?n=e.parentSampled:typeof t.tracesSampleRate<"u"?n=t.tracesSampleRate:n=1;const r=e1(n);return r===void 0?(dn&&Ot.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(dn&&Ot.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(dn&&Ot.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r])}function rfe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function ife(t,e,n,r){const i=l$(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:s0(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return _f(o,[s])}function ofe(t,e,n,r){const i=l$(n),o=t.type&&t.type!=="replay_event"?t.type:"event";rfe(t,n&&n.sdk);const s=Wz(t,i,r,e);return delete t.sdkProcessingMetadata,_f(s,[[{type:o},t]])}function sfe(t,e){function n(h){return!!h.trace_id&&!!h.public_key}const r=u0(t[0]),i=e&&e.getDsn(),o=e&&e.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&i&&{dsn:s0(i)}},a=e&&e.getOptions().beforeSendSpan,l=a?h=>a(No(h)):h=>No(h),d=[];for(const h of t){const p=l(h);p&&d.push(wde(p))}return _f(s,d)}function wN(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},i=r[jde],o=r[Wde];typeof i=="string"&&typeof o=="number"&&(e[n.name]={value:o,unit:i})}),e}const SN=1e3;class p${constructor(e={}){this._traceId=e.traceId||Ai(),this._spanId=e.spanId||Ai().substring(16),this._startTime=e.startTimestamp||Ts(),this._attributes={},this.setAttributes({[xv]:"manual",[nT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,n){}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?Gz:Xz}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=Zh(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=Zh(e),tfe(this),this._onSpanEnded())}getSpanJSON(){return xi({data:this._attributes,description:this._name,op:this._attributes[nT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:qz(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xv],_metrics_summary:tT(this),profile_id:this._attributes[Ude],exclusive_time:this._attributes[Vde],measurements:wN(this._events),is_segment:this._isStandaloneSpan&&Xl(this)===this||void 0,segment_id:this._isStandaloneSpan?Xl(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){dn&&Ot.log("[Tracing] Adding an event to span:",e);const i=CN(n)?n:r||Ts(),o=CN(n)?{}:n||{},s={name:e,time:Zh(i),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Kn();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===Xl(this)))return;if(this._isStandaloneSpan){this._sampled?lfe(sfe([this],e)):(dn&&Ot.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(yN(this).scope||co()).captureEvent(r)}_convertSpanToTransaction(){if(!EN(No(this)))return;this._name||(dn&&Ot.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=yN(this),i=(e||co()).getClient()||Kn();if(this._sampled!==!0){dn&&Ot.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const s=Zde(this).filter(p=>p!==this&&!afe(p)).map(p=>No(p)).filter(EN),a=this._attributes[nS],l={contexts:{trace:Gde(this)},spans:s.length>SN?s.sort((p,y)=>p.start_timestamp-y.start_timestamp).slice(0,SN):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,...xi({dynamicSamplingContext:u0(this)})},_metrics_summary:tT(this),...a&&{transaction_info:{source:a}}},d=wN(this._events);return d&&Object.keys(d).length&&(dn&&Ot.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),l.measurements=d),l}}function CN(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function EN(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function afe(t){return t instanceof p$&&t.isStandaloneSpan()}function lfe(t){const e=Kn();if(!e)return;const n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}const r=e.getTransport();r&&r.send(t).then(null,i=>{dn&&Ot.error("Error while sending span:",i)})}const tH="__SENTRY_SUPPRESS_TRACING__";function AN(t){const e=nH();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=dfe(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?s=>d$(t.scope,s):i!==void 0?s=>cfe(i,s):s=>s())(()=>{const s=co(),a=hfe(s);return t.onlyIfParent&&!a?new f$:ufe({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}function cfe(t,e){const n=nH();return n.withActiveSpan?n.withActiveSpan(t,e):d$(r=>(eT(r,t||void 0),e(r)))}function ufe({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!rS())return new f$;const i=pc();let o;if(t&&!n)o=ffe(t,r,e),Kz(t,o);else if(t){const s=u0(t),{traceId:a,spanId:l}=t.spanContext(),d=c0(t);o=kN({traceId:a,parentSpanId:l,...e},r,d),xN(o,s)}else{const{traceId:s,dsc:a,parentSpanId:l,sampled:d}={...i.getPropagationContext(),...r.getPropagationContext()};o=kN({traceId:s,parentSpanId:l,...e},r,d),a&&xN(o,a)}return efe(o),Qde(o,r,i),o}function dfe(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const r={...n};return r.startTimestamp=Zh(t.startTime),delete r.startTime,r}return n}function nH(){const t=sg();return l0(t)}function kN(t,e,n){const r=Kn(),i=r&&r.getOptions()||{},{name:o="",attributes:s}=t,[a,l]=e.getScopeData().sdkProcessingMetadata[tH]?[!1]:nfe(i,{name:o,parentSampled:n,attributes:s,transactionContext:{name:o,parentSampled:n}}),d=new p$({...t,attributes:{[nS]:"custom",...t.attributes},sampled:a});return l!==void 0&&d.setAttribute(Yz,l),r&&r.emit("spanStart",d),d}function ffe(t,e,n){const{spanId:r,traceId:i}=t.spanContext(),o=e.getScopeData().sdkProcessingMetadata[tH]?!1:c0(t),s=o?new p$({...n,parentSpanId:r,traceId:i,sampled:o}):new f$({traceId:i});Kz(t,s);const a=Kn();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function hfe(t){const e=Zx(t);if(!e)return;const n=Kn();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Xl(e):e}function iT(t,e,n,r=0){return new Ss((i,o)=>{const s=t[r];if(e===null||typeof s!="function")i(e);else{const a=s({...e},n);dn&&s.id&&a===null&&Ot.log(`Event processor "${s.id}" dropped event`),Qw(a)?a.then(l=>iT(t,l,n,r+1).then(i)).then(null,o):iT(t,a,n,r+1).then(i).then(null,o)}})}function pfe(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;gfe(t,e),r&&bfe(t,r),yfe(t,n),mfe(t,i),vfe(t,o)}function TN(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:d,eventProcessors:h,attachments:p,propagationContext:y,transactionName:w,span:C}=e;Bg(t,"extra",n),Bg(t,"tags",r),Bg(t,"user",i),Bg(t,"contexts",o),Bg(t,"sdkProcessingMetadata",a),s&&(t.level=s),w&&(t.transactionName=w),C&&(t.span=C),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...y}}function Bg(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function gfe(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,l=xi(n);l&&Object.keys(l).length&&(t.extra={...l,...t.extra});const d=xi(r);d&&Object.keys(d).length&&(t.tags={...d,...t.tags});const h=xi(i);h&&Object.keys(h).length&&(t.user={...h,...t.user});const p=xi(o);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function mfe(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function vfe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function bfe(t,e){t.contexts={trace:qde(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:u0(e),...t.sdkProcessingMetadata};const n=Xl(e),r=No(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function yfe(t,e){t.fingerprint=t.fingerprint?a$(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function rH(t,e,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,l={...e,event_id:e.event_id||n.event_id||Ai(),timestamp:e.timestamp||a0()},d=n.integrations||t.integrations.map(D=>D.name);xfe(l,t),Cfe(l,d),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&wfe(l,t.stackParser);const h=Afe(r,n.captureContext);n.mechanism&&yv(l,n.mechanism);const p=i?i.getEventProcessors():[],y=zde().getScopeData();if(o){const D=o.getScopeData();TN(y,D)}if(h){const D=h.getScopeData();TN(y,D)}const w=[...n.attachments||[],...y.attachments];w.length&&(n.attachments=w),pfe(l,y);const C=[...p,...y.eventProcessors];return iT(C,l,n).then(D=>(D&&Sfe(D),typeof s=="number"&&s>0?Efe(D,s,a):D))}function xfe(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:h$),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=Jh(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Jh(s.value,o));const a=t.request;a&&a.url&&(a.url=Jh(a.url,o))}const _N=new WeakMap;function wfe(t,e){const n=En._sentryDebugIds;if(!n)return;let r;const i=_N.get(e);i?r=i:(r=new Map,_N.set(e,r));const o=Object.entries(n).reduce((s,[a,l])=>{let d;const h=r.get(a);h?d=h:(d=e(a),r.set(a,d));for(let p=d.length-1;p>=0;p--){const y=d[p];if(y.filename){s[y.filename]=l;break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function Sfe(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function Cfe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Efe(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:Ia(i.data,e,n)}}))},...t.user&&{user:Ia(t.user,e,n)},...t.contexts&&{contexts:Ia(t.contexts,e,n)},...t.extra&&{extra:Ia(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Ia(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>({...i,...i.data&&{data:Ia(i.data,e,n)}}))),r}function Afe(t,e){if(!e)return t;const n=t?t.clone():new Ou;return n.update(e),n}function kfe(t){if(t)return Tfe(t)?{captureContext:t}:Dfe(t)?{captureContext:t}:t}function Tfe(t){return t instanceof Ou||typeof t=="function"}const _fe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Dfe(t){return Object.keys(t).some(e=>_fe.includes(e))}function g$(t,e){return co().captureException(t,kfe(e))}function qwt(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return co().captureMessage(t,n,r)}function iH(t,e){return co().captureEvent(t,e)}function $fe(t,e){pc().setContext(t,e)}function Ofe(t){pc().addEventProcessor(t)}function DN(t){const e=Kn(),n=pc(),r=co(),{release:i,environment:o=h$}=e&&e.getOptions()||{},{userAgent:s}=En.navigator||{},a=$de({release:i,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession();return l&&l.status==="ok"&&Sp(l,{status:"exited"}),oH(),n.setSession(a),r.setSession(a),a}function oH(){const t=pc(),e=co(),n=e.getSession()||t.getSession();n&&Ode(n),sH(),t.setSession(),e.setSession()}function sH(){const t=pc(),e=co(),n=Kn(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function $N(t=!1){if(t){oH();return}sH()}const Ife="7";function Rfe(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Mfe(t){return`${Rfe(t)}${t.projectId}/envelope/`}function Pfe(t,e){return zue({sentry_key:t.publicKey,sentry_version:Ife,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Nfe(t,e,n){return e||`${Mfe(t)}?${Pfe(t,n)}`}const ON=[];function Lfe(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function Ffe(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=a$(n(e)):r=e;const i=Lfe(r),o=i.findIndex(s=>s.name==="Debug");if(o>-1){const[s]=i.splice(o,1);i.push(s)}return i}function Bfe(t,e){const n={};return e.forEach(r=>{r&&aH(t,r,n)}),n}function IN(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function aH(t,e,n){if(n[e.name]){dn&&Ot.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,ON.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),ON.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}dn&&Ot.log(`Integration installed: ${e.name}`)}const RN="Not capturing exception because it's already been captured.";class zfe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Bue(e.dsn):dn&&Ot.warn("No DSN provided, client will not send events."),this._dsn){const n=Nfe(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){const i=Ai();if(fN(e))return dn&&Ot.log(RN),i;const o={event_id:i,...n};return this._process(this.eventFromException(e,o).then(s=>this._captureEvent(s,o,r))),o.event_id}captureMessage(e,n,r,i){const o={event_id:Ai(),...r},s=r$(e)?e:String(e),a=i$(e)?this.eventFromMessage(s,n,o):this.eventFromException(e,o);return this._process(a.then(l=>this._captureEvent(l,o,i))),o.event_id}captureEvent(e,n,r){const i=Ai();if(n&&n.originalException&&fN(n.originalException))return dn&&Ot.log(RN),i;const o={event_id:i,...n},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,a||r)),o.event_id}captureSession(e){typeof e.release!="string"?dn&&Ot.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Sp(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i))):rc(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];aH(this,e,this._integrations),n||IN(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=ofe(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=bde(r,Sde(o));const i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){const n=ife(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,o=`${e}:${n}`;dn&&Ot.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}on(e,n){const r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(i=>i(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(dn&&Ot.error("Error while sending event:",n),n)):(dn&&Ot.error("Transport disabled"),rc({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Bfe(this,e),IN(this,e)}_updateSessionFromEvent(e,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const d=l.mechanism;if(d&&d.handled===!1){r=!0;break}}}const s=e.status==="ok";(s&&e.errors===0||s&&r)&&(Sp(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Ss(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,e&&r>=e&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i=pc()){const o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),rH(o,e,n,r,this,i).then(a=>{if(a===null)return a;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&l){const{traceId:h,spanId:p,parentSpanId:y,dsc:w}=l;a.contexts={trace:xi({trace_id:h,span_id:p,parent_span_id:y}),...a.contexts};const C=w||eH(h,this);a.sdkProcessingMetadata={dynamicSamplingContext:C,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(i=>i.event_id,i=>{if(dn){const o=i;o.logLevel==="log"?Ot.log(o.message):Ot.warn(o)}})}_processEvent(e,n,r){const i=this.getOptions(),{sampleRate:o}=i,s=cH(e),a=lH(e),l=e.type||"error",d=`before send for type \`${l}\``,h=typeof o>"u"?void 0:e1(o);if(a&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Jx(new Pa(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p=l==="replay_event"?"replay":l,w=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,w).then(C=>{if(C===null)throw this.recordDroppedEvent("event_processor",p,e),new Pa("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return C;const D=jfe(this,i,C,n);return Hfe(D,d)}).then(C=>{if(C===null){if(this.recordDroppedEvent("before_send",p,e),s){const _=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",_)}throw new Pa(`${d} returned \`null\`, will not send event.`,"log")}const k=r&&r.getSession();if(!s&&k&&this._updateSessionFromEvent(k,C),s){const I=C.sdkProcessingMetadata&&C.sdkProcessingMetadata.spanCountBeforeProcessing||0,_=C.spans?C.spans.length:0,L=I-_;L>0&&this.recordDroppedEvent("before_send","span",L)}const D=C.transaction_info;if(s&&D&&C.transaction!==e.transaction){const I="custom";C.transaction_info={...D,source:I}}return this.sendEvent(C,n),C}).then(null,C=>{throw C instanceof Pa?C:(this.captureException(C,{data:{__sentry__:!0},originalException:C}),new Pa(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${C}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){dn&&Ot.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){dn&&Ot.log("No outcomes to send");return}if(!this._dsn){dn&&Ot.log("No dsn provided, will not send outcomes");return}dn&&Ot.log("Sending outcomes:",e);const n=Ede(e,this._options.tunnel&&s0(this._dsn));this.sendEnvelope(n)}}function Hfe(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Qw(t))return t.then(r=>{if(!wp(r)&&r!==null)throw new Pa(n);return r},r=>{throw new Pa(`${e} rejected with ${r}`)});if(!wp(t)&&t!==null)throw new Pa(n);return t}function jfe(t,e,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e;if(lH(n)&&i)return i(n,r);if(cH(n)){if(n.spans&&s){const a=[];for(const l of n.spans){const d=s(l);d?a.push(d):t.recordDroppedEvent("before_send","span")}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function lH(t){return t.type===void 0}function cH(t){return t.type==="transaction"}function Wfe(t,e){e.debug===!0&&(dn?Ot.enable():hc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),co().update(e.initialScope);const r=new t(e);return Ufe(r),r.init(),r}function Ufe(t){co().setClient(t)}const Vfe=64;function Yfe(t,e,n=fde(t.bufferSize||Vfe)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(pN(s,(p,y)=>{const w=gN(y);if(Uz(r,w)){const C=MN(p,y);t.recordDroppedEvent("ratelimit_backoff",w,C)}else a.push(p)}),a.length===0)return rc({});const l=_f(s[0],a),d=p=>{pN(l,(y,w)=>{const C=MN(y,w);t.recordDroppedEvent(p,gN(w),C)})},h=()=>e({body:yde(l)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&dn&&Ot.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=Vz(r,p),p),p=>{throw d("network_error"),p});return n.add(h).then(p=>p,p=>{if(p instanceof Pa)return dn&&Ot.error("Skipped sending event because buffer is full."),d("queue_overflow"),rc({});throw p})}return{send:o,flush:i}}function MN(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function Xfe(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return qfe(t,n)||Gfe(t,r)}function Gfe(t,e){return e?PN(t)===PN(e):!1}function qfe(t,e){return e?t.includes(e.host):!1}function PN(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function Kfe(t,e,n=[e],r="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Yl})),version:Yl}),t._metadata=i}const Jfe=100;function Iu(t,e){const n=Kn(),r=pc();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Jfe}=n.getOptions();if(o<=0)return;const a={timestamp:a0(),...t},l=i?hc(()=>i(a,e)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,o))}let NN;const Zfe="FunctionToString",LN=new WeakMap,Qfe=()=>({name:Zfe,setupOnce(){NN=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=s$(this),n=LN.has(Kn())&&e!==void 0?e:this;return NN.apply(n,t)}}catch{}},setup(t){LN.set(t,!0)}}),ehe=Qfe,the=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],nhe="InboundFilters",rhe=(t={})=>({name:nhe,processEvent(e,n,r){const i=r.getOptions(),o=ohe(t,i);return she(e,o)?null:e}}),ihe=rhe;function ohe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:the],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function she(t,e){return e.ignoreInternal&&fhe(t)?(dn&&Ot.warn(`Event dropped due to being internal Sentry Error.
Event: ${qc(t)}`),!0):ahe(t,e.ignoreErrors)?(dn&&Ot.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${qc(t)}`),!0):phe(t)?(dn&&Ot.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${qc(t)}`),!0):lhe(t,e.ignoreTransactions)?(dn&&Ot.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${qc(t)}`),!0):che(t,e.denyUrls)?(dn&&Ot.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${qc(t)}.
Url: ${t1(t)}`),!0):uhe(t,e.allowUrls)?!1:(dn&&Ot.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${qc(t)}.
Url: ${t1(t)}`),!0)}function ahe(t,e){return t.type||!e||!e.length?!1:dhe(t).some(n=>i0(n,e))}function lhe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?i0(n,e):!1}function che(t,e){if(!e||!e.length)return!1;const n=t1(t);return n?i0(n,e):!1}function uhe(t,e){if(!e||!e.length)return!0;const n=t1(t);return n?i0(n,e):!0}function dhe(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}function fhe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function hhe(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function t1(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?hhe(e):null}catch{return dn&&Ot.error(`Cannot extract url for event ${qc(t)}`),null}}function phe(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}const ghe="Dedupe",mhe=()=>{let t;return{name:ghe,processEvent(e){if(e.type)return e;try{if(bhe(e,t))return dn&&Ot.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},vhe=mhe;function bhe(t,e){return e?!!(yhe(t,e)||xhe(t,e)):!1}function yhe(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!dH(t,e)||!uH(t,e))}function xhe(t,e){const n=FN(e),r=FN(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!dH(t,e)||!uH(t,e))}function uH(t,e){let n=lN(t),r=lN(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function dH(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function FN(t){return t.exception&&t.exception.values&&t.exception.values[0]}const nr=En;let oT=0;function fH(){return oT>0}function whe(){oT++,setTimeout(()=>{oT--})}function Ep(t,e={},n){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(s$(t))return t}catch{return t}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(s=>Ep(s,e));return t.apply(this,o)}catch(o){throw whe(),d$(s=>{s.addEventProcessor(a=>(e.mechanism&&(Kk(a,void 0,void 0),yv(a,e.mechanism)),a.extra={...a.extra,arguments:i},a)),g$(o)}),o}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Mz(r,t),Is(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}const d0=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function m$(t,e){const n=v$(t,e),r={type:khe(e),value:The(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function She(t,e,n,r){const i=Kn(),o=i&&i.getOptions().normalizeDepth,s=Ihe(e),a={__serialized__:Hz(e,o)};if(s)return{exception:{values:[m$(t,s)]},extra:a};const l={exception:{values:[{type:Zw(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:$he(e,{isUnhandledRejection:r})}]},extra:a};if(n){const d=v$(t,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function QE(t,e){return{exception:{values:[m$(t,e)]}}}function v$(t,e){const n=e.stacktrace||e.stack||"",r=Ehe(e),i=Ahe(e);try{return t(n,r,i)}catch{}return[]}const Che=/Minified React error #\d+;/i;function Ehe(t){return t&&Che.test(t.message)?1:0}function Ahe(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function hH(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function khe(t){const e=t&&t.name;return!e&&hH(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function The(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:hH(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function _he(t,e,n,r){const i=n&&n.syntheticException||void 0,o=b$(t,e,i,r);return yv(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),rc(o)}function Dhe(t,e,n="info",r,i){const o=r&&r.syntheticException||void 0,s=sT(t,e,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),rc(s)}function b$(t,e,n,r,i){let o;if(Dz(e)&&e.error)return QE(t,e.error);if(eN(e)||Cue(e)){const s=e;if("stack"in e)o=QE(t,e);else{const a=s.name||(eN(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=sT(t,l,n,r),Kk(o,l)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return n$(e)?QE(t,e):wp(e)||Zw(e)?(o=She(t,e,n,i),yv(o,{synthetic:!0}),o):(o=sT(t,e,n,r),Kk(o,`${e}`,void 0),yv(o,{synthetic:!0}),o)}function sT(t,e,n,r){const i={};if(r&&n){const o=v$(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}if(r$(e)){const{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function $he(t,{isUnhandledRejection:e}){const n=Hue(t),r=e?"promise rejection":"exception";return Dz(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Zw(t)?`Event \`${Ohe(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ohe(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Ihe(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}function Rhe(t,{metadata:e,tunnel:n,dsn:r}){const i={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:s0(r)}},o=Mhe(t);return _f(i,[o])}function Mhe(t){return[{type:"user_report"},t]}class Phe extends zfe{constructor(e){const n={parentSpanIsAlwaysRootSpan:!0,...e},r=nr.SENTRY_SDK_SOURCE||ide();Kfe(n,"browser",["browser"],r),super(n),n.sendClientReports&&nr.document&&nr.document.addEventListener("visibilitychange",()=>{nr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return _he(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Dhe(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){d0&&Ot.warn("SDK not enabled, will not capture user feedback.");return}const n=Rhe(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}}const pH=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nhe=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",f0=(t,e,n,r)=>{let i,o;return s=>{e.value>=0&&(s||r)&&(o=e.value-(i||0),(o||i===void 0)&&(i=e.value,e.delta=o,e.rating=Nhe(e.value,n),t(e)))}},Nn=En,Lhe=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,gH=()=>Nn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],y$=()=>{const t=gH();return t&&t.activationStart||0},h0=(t,e)=>{const n=gH();let r="navigate";return n&&(Nn.document&&Nn.document.prerendering||y$()>0?r="prerender":Nn.document&&Nn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:Lhe(),navigationType:r}},Df=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{e(i.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},iS=t=>{const e=n=>{(n.type==="pagehide"||Nn.document&&Nn.document.visibilityState==="hidden")&&t(n)};Nn.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},x$=t=>{let e=!1;return n=>{e||(t(n),e=!0)}};let wv=-1;const Fhe=()=>{wv=Nn.document.visibilityState==="hidden"&&!Nn.document.prerendering?0:1/0},n1=t=>{Nn.document.visibilityState==="hidden"&&wv>-1&&(wv=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("visibilitychange",n1,!0),removeEventListener("prerenderingchange",n1,!0))},Bhe=()=>{addEventListener("visibilitychange",n1,!0),addEventListener("prerenderingchange",n1,!0)},w$=()=>(Nn.document&&wv<0&&(Fhe(),Bhe()),{get firstHiddenTime(){return wv}}),oS=t=>{Nn.document&&Nn.document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},zhe=[1800,3e3],Hhe=(t,e={})=>{oS(()=>{const n=w$(),r=h0("FCP");let i;const s=Df("paint",a=>{a.forEach(l=>{l.name==="first-contentful-paint"&&(s.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-y$(),0),r.entries.push(l),i(!0)))})});s&&(i=f0(t,r,zhe,e.reportAllChanges))})},jhe=[.1,.25],Whe=(t,e={})=>{Hhe(x$(()=>{const n=h0("CLS",0);let r,i=0,o=[];const s=l=>{l.forEach(d=>{if(!d.hadRecentInput){const h=o[0],p=o[o.length-1];i&&h&&p&&d.startTime-p.startTime<1e3&&d.startTime-h.startTime<5e3?(i+=d.value,o.push(d)):(i=d.value,o=[d])}}),i>n.value&&(n.value=i,n.entries=o,r())},a=Df("layout-shift",s);a&&(r=f0(t,n,jhe,e.reportAllChanges),iS(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},Uhe=[100,300],Vhe=(t,e={})=>{oS(()=>{const n=w$(),r=h0("FID");let i;const o=l=>{l.startTime<n.firstHiddenTime&&(r.value=l.processingStart-l.startTime,r.entries.push(l),i(!0))},s=l=>{l.forEach(o)},a=Df("first-input",s);i=f0(t,r,Uhe,e.reportAllChanges),a&&iS(x$(()=>{s(a.takeRecords()),a.disconnect()}))})};let mH=0,eA=1/0,Ub=0;const Yhe=t=>{t.forEach(e=>{e.interactionId&&(eA=Math.min(eA,e.interactionId),Ub=Math.max(Ub,e.interactionId),mH=Ub?(Ub-eA)/7+1:0)})};let aT;const Xhe=()=>aT?mH:performance.interactionCount||0,Ghe=()=>{"interactionCount"in performance||aT||(aT=Df("event",Yhe,{type:"event",buffered:!0,durationThreshold:0}))},qhe=[200,500],Khe=0,vH=()=>Xhe()-Khe,BN=10,_l=[],tA={},zN=t=>{const e=_l[_l.length-1],n=tA[t.interactionId];if(n||_l.length<BN||e&&t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const r={id:t.interactionId,latency:t.duration,entries:[t]};tA[r.id]=r,_l.push(r)}_l.sort((r,i)=>i.latency-r.latency),_l.splice(BN).forEach(r=>{delete tA[r.id]})}},Jhe=()=>{const t=Math.min(_l.length-1,Math.floor(vH()/50));return _l[t]},Zhe=(t,e={})=>{oS(()=>{Ghe();const n=h0("INP");let r;const i=s=>{s.forEach(l=>{l.interactionId&&zN(l),l.entryType==="first-input"&&!_l.some(h=>h.entries.some(p=>l.duration===p.duration&&l.startTime===p.startTime))&&zN(l)});const a=Jhe();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},o=Df("event",i,{durationThreshold:e.durationThreshold!=null?e.durationThreshold:40});r=f0(t,n,qhe,e.reportAllChanges),o&&("PerformanceEventTiming"in Nn&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),iS(()=>{i(o.takeRecords()),n.value<0&&vH()>0&&(n.value=0,n.entries=[]),r(!0)}))})},Qhe=[2500,4e3],HN={},epe=(t,e={})=>{oS(()=>{const n=w$(),r=h0("LCP");let i;const o=a=>{const l=a[a.length-1];l&&l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-y$(),0),r.entries=[l],i())},s=Df("largest-contentful-paint",o);if(s){i=f0(t,r,Qhe,e.reportAllChanges);const a=x$(()=>{HN[r.id]||(o(s.takeRecords()),s.disconnect(),HN[r.id]=!0,i(!0))});["keydown","click"].forEach(l=>{Nn.document&&addEventListener(l,()=>setTimeout(a,0),!0)}),iS(a)}})},$m={},r1={};let bH,yH,xH,wH;function tpe(t,e=!1){return sS("cls",t,spe,bH,e)}function npe(t,e=!1){return sS("lcp",t,lpe,xH,e)}function rpe(t){return sS("fid",t,ape,yH)}function ipe(t){return sS("inp",t,cpe,wH)}function ope(t,e){return SH(t,e),r1[t]||(upe(t),r1[t]=!0),CH(t,e)}function p0(t,e){const n=$m[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(i){pH&&Ot.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${nc(r)}
Error:`,i)}}function spe(){return Whe(t=>{p0("cls",{metric:t}),bH=t},{reportAllChanges:!0})}function ape(){return Vhe(t=>{p0("fid",{metric:t}),yH=t})}function lpe(){return epe(t=>{p0("lcp",{metric:t}),xH=t},{reportAllChanges:!0})}function cpe(){return Zhe(t=>{p0("inp",{metric:t}),wH=t})}function sS(t,e,n,r,i=!1){SH(t,e);let o;return r1[t]||(o=n(),r1[t]=!0),r&&e({metric:r}),CH(t,e,i?o:void 0)}function upe(t){const e={};t==="event"&&(e.durationThreshold=0),Df(t,n=>{p0(t,{entries:n})},e)}function SH(t,e){$m[t]=$m[t]||[],$m[t].push(e)}function CH(t,e,n){return()=>{n&&n();const r=$m[t];if(!r)return;const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}const dpe=1e3;let jN,lT,cT;function EH(t){const e="dom";kf(e,t),Tf(e,fpe)}function fpe(){if(!Nn.document)return;const t=ua.bind(null,"dom"),e=WN(t,!0);Nn.document.addEventListener("click",e,!1),Nn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=Nn[n]&&Nn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Do(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,d=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},h=d[o]=d[o]||{refCount:0};if(!h.handler){const p=WN(t);h.handler=p,i.call(this,o,p,a)}h.refCount++}catch{}return i.call(this,o,s,a)}}),Do(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,d=l.__sentry_instrumentation_handlers__||{},h=d[o];h&&(h.refCount--,h.refCount<=0&&(i.call(this,o,h.handler,a),h.handler=void 0,delete d[o]),Object.keys(d).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function hpe(t){if(t.type!==lT)return!1;try{if(!t.target||t.target._sentryId!==cT)return!1}catch{}return!0}function ppe(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function WN(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=gpe(n);if(ppe(n.type,r))return;Is(n,"_sentryCaptured",!0),r&&!r._sentryId&&Is(r,"_sentryId",Ai());const i=n.type==="keypress"?"input":n.type;hpe(n)||(t({event:n,name:i,global:e}),lT=n.type,cT=r?r._sentryId:void 0),clearTimeout(jN),jN=Nn.setTimeout(()=>{cT=void 0,lT=void 0},dpe)}}function gpe(t){try{return t.target}catch{return null}}let Vb;function S$(t){const e="history";kf(e,t),Tf(e,mpe)}function mpe(){if(!Dde())return;const t=Nn.onpopstate;Nn.onpopstate=function(...n){const r=Nn.location.href,i=Vb;if(Vb=r,ua("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=Vb,s=String(i);Vb=s,ua("history",{from:o,to:s})}return n.apply(this,r)}}Do(Nn.history,"pushState",e),Do(Nn.history,"replaceState",e)}const ix={};function AH(t){const e=ix[t];if(e)return e;let n=Nn[t];if(Gk(n))return ix[t]=n.bind(Nn);const r=Nn.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const o=i.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){pH&&Ot.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(ix[t]=n.bind(Nn))}function UN(t){ix[t]=void 0}function Ap(...t){return AH("setTimeout")(...t)}const kh="__sentry_xhr_v3__";function vpe(t){const e="xhr";kf(e,t),Tf(e,bpe)}function bpe(){if(!Nn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const i=Ts()*1e3,o=Vl(r[0])?r[0].toUpperCase():void 0,s=ype(r[1]);if(!o||!s)return e.apply(n,r);n[kh]={method:o,url:s,request_headers:{}},o==="POST"&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const l=n[kh];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:Ts()*1e3,startTimestamp:i,xhr:n};ua("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,h){return a(),l.apply(d,h)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,h){const[p,y]=h,w=d[kh];return w&&Vl(p)&&Vl(y)&&(w.request_headers[p.toLowerCase()]=y),l.apply(d,h)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const i=n[kh];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const o={startTimestamp:Ts()*1e3,xhr:n};return ua("xhr",o),e.apply(n,r)}})}function ype(t){if(Vl(t))return t;try{return t.toString()}catch{}}function xpe(t,e=AH("fetch")){let n=0,r=0;function i(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return UN("fetch"),Jx("No fetch implementation available");try{return e(t.url,a).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return UN("fetch"),n-=s,r--,Jx(l)}}return Yfe(t,i)}const wpe=30,Spe=50;function uT(t,e,n,r){const i={filename:t,function:e==="<anonymous>"?nf:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Cpe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Epe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ape=/\((\S*)(?::(\d+))(?::(\d+))\)/,kpe=t=>{const e=Cpe.exec(t);if(e){const[,r,i,o]=e;return uT(r,nf,+i,+o)}const n=Epe.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=Ape.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[i,o]=kH(n[1]||nf,n[2]);return uT(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Tpe=[wpe,kpe],_pe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Dpe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$pe=t=>{const e=_pe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=Dpe.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||nf;return[i,r]=kH(i,r),uT(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Ope=[Spe,$pe],Ipe=[Tpe,Ope],Rpe=Lz(...Ipe),kH=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:nf,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Yb=1024,Mpe="Breadcrumbs",Ppe=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Mpe,setup(n){e.console&&Vue(Bpe(n)),e.dom&&EH(Fpe(n,e.dom)),e.xhr&&vpe(zpe(n)),e.fetch&&Kue(Hpe(n)),e.history&&S$(jpe(n)),e.sentry&&n.on("beforeSendEvent",Lpe(n))}}},Npe=Ppe;function Lpe(t){return function(n){Kn()===t&&Iu({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:qc(n)},{event:n})}}function Fpe(t,e){return function(r){if(Kn()!==t)return;let i,o,s=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>Yb&&(d0&&Ot.warn(`\`dom.maxStringLength\` cannot exceed ${Yb}, but a value of ${a} was configured. Sentry will use ${Yb} instead.`),a=Yb),typeof s=="string"&&(s=[s]);try{const d=r.event,h=Wpe(d)?d.target:d;i=tS(h,{keyAttrs:s,maxStringLength:a}),o=Iue(h)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};o&&(l.data={"ui.component_name":o}),Iu(l,{event:r.event,name:r.name,global:r.global})}}function Bpe(t){return function(n){if(Kn()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:jz(n.level),message:tN(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${tN(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Iu(r,{input:n.args,level:n.level})}}function zpe(t){return function(n){if(Kn()!==t)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[kh];if(!r||!i||!o)return;const{method:s,url:a,status_code:l,body:d}=o,h={method:s,url:a,status_code:l},p={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},y=Oz(l);Iu({category:"xhr",data:h,type:"http",level:y},p)}}function Hpe(t){return function(n){if(Kn()!==t)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};Iu({category:"fetch",data:o,level:"error",type:"http"},s)}else{const o=n.response,s={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},l=Oz(s.status_code);Iu({category:"fetch",data:s,type:"http",level:l},a)}}}function jpe(t){return function(n){if(Kn()!==t)return;let r=n.from,i=n.to;const o=ZE(nr.location.href);let s=r?ZE(r):void 0;const a=ZE(i);(!s||!s.path)&&(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),Iu({category:"navigation",data:{from:r,to:i}})}}function Wpe(t){return!!t&&!!t.target}const Upe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vpe="BrowserApiErrors",Ype=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Vpe,setupOnce(){e.setTimeout&&Do(nr,"setTimeout",VN),e.setInterval&&Do(nr,"setInterval",VN),e.requestAnimationFrame&&Do(nr,"requestAnimationFrame",Gpe),e.XMLHttpRequest&&"XMLHttpRequest"in nr&&Do(XMLHttpRequest.prototype,"send",qpe);const n=e.eventTarget;n&&(Array.isArray(n)?n:Upe).forEach(Kpe)}}},Xpe=Ype;function VN(t){return function(...e){const n=e[0];return e[0]=Ep(n,{mechanism:{data:{function:nc(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Gpe(t){return function(e){return t.apply(this,[Ep(e,{mechanism:{data:{function:"requestAnimationFrame",handler:nc(t)},handled:!1,type:"instrument"}})])}}function qpe(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Do(n,i,function(o){const s={mechanism:{data:{function:i,handler:nc(o)},handled:!1,type:"instrument"}},a=s$(o);return a&&(s.mechanism.data.handler=nc(a)),Ep(o,s)})}),t.apply(this,e)}}function Kpe(t){const e=nr,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Do(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Ep(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:nc(o),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Ep(o,{mechanism:{data:{function:"addEventListener",handler:nc(o),target:t},handled:!1,type:"instrument"}}),s])}}),Do(n,"removeEventListener",function(r){return function(i,o,s){const a=o;try{const l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,a,s)}}))}const Jpe="GlobalHandlers",Zpe=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Jpe,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(ege(n),YN("onerror")),e.onunhandledrejection&&(tge(n),YN("onunhandledrejection"))}}},Qpe=Zpe;function ege(t){Que(e=>{const{stackParser:n,attachStacktrace:r}=TH();if(Kn()!==t||fH())return;const{msg:i,url:o,line:s,column:a,error:l}=e,d=ige(b$(n,l||i,void 0,r,!1),o,s,a);d.level="error",iH(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function tge(t){tde(e=>{const{stackParser:n,attachStacktrace:r}=TH();if(Kn()!==t||fH())return;const i=nge(e),o=i$(i)?rge(i):b$(n,i,void 0,r,!0);o.level="error",iH(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function nge(t){if(i$(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function rge(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function ige(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],d=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(n,10))?void 0:n,p=Vl(e)&&e.length>0?e:Iz();return l.length===0&&l.push({colno:d,filename:p,function:nf,in_app:!0,lineno:h}),t}function YN(t){d0&&Ot.log(`Global Handler attached: ${t}`)}function TH(){const t=Kn();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const oge=()=>({name:"HttpContext",preprocessEvent(t){if(!nr.navigator&&!nr.location&&!nr.document)return;const e=t.request&&t.request.url||nr.location&&nr.location.href,{referrer:n}=nr.document||{},{userAgent:r}=nr.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};t.request=o}}),sge="cause",age=5,lge="LinkedErrors",cge=(t={})=>{const e=t.limit||age,n=t.key||sge;return{name:lge,preprocessEvent(r,i,o){const s=o.getOptions();_ue(m$,s.stackParser,s.maxValueLength,n,e,r,i)}}},uge=cge;function _H(t){return[ihe(),ehe(),Xpe(),Npe(),Qpe(),uge(),vhe(),oge()]}function dge(t={}){const e={defaultIntegrations:_H(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:nr.SENTRY_RELEASE&&nr.SENTRY_RELEASE.id?nr.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function fge(){const t=typeof nr.window<"u"&&nr;if(!t)return!1;const e=t.chrome?"chrome":"browser",n=t[e],r=n&&n.runtime&&n.runtime.id,i=nr.location&&nr.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!r&&nr===nr.top&&o.some(l=>i.startsWith(`${l}//`)),a=typeof t.nw<"u";return!!r&&!s&&!a}function hge(t={}){const e=dge(t);if(fge()){hc(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}d0&&(Fz()||Ot.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...e,stackParser:Wue(e.stackParser||Rpe),integrations:Ffe(e),transport:e.transport||xpe},r=Wfe(Phe,n);return e.autoSessionTracking&&pge(),r}function pge(){if(typeof nr.document>"u"){d0&&Ot.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}DN({ignoreDuration:!0}),$N(),S$(({from:t,to:e})=>{t!==void 0&&t!==e&&(DN({ignoreDuration:!0}),$N())})}const lr=En,C$="sentryReplaySession",gge="replay_event",E$="Unable to send Replay",mge=3e5,vge=9e5,bge=5e3,yge=5500,xge=6e4,wge=5e3,Sge=3,XN=15e4,Xb=5e3,Cge=3e3,Ege=300,A$=2e7,Age=4999,kge=15e3,GN=36e5;function dT(t,e){return t??e()}function Sv(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}var qr;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(qr||(qr={}));function Tge(t){return t.nodeType===t.ELEMENT_NODE}function Om(t){const e=Sv([t,"optionalAccess",n=>n.host]);return Boolean(Sv([e,"optionalAccess",n=>n.shadowRoot])===t)}function Im(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function _ge(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Dge(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function i1(t){try{const e=t.rules||t.cssRules;return e?_ge(Array.from(e,DH).join("")):null}catch{return null}}function DH(t){let e;if(Oge(t))try{e=i1(t.styleSheet)||Dge(t)}catch{}else if(Ige(t)&&t.selectorText.includes(":"))return $ge(t.cssText);return e||t.cssText}function $ge(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function Oge(t){return"styleSheet"in t}function Ige(t){return"selectorText"in t}class $H{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const n=Sv([this,"access",r=>r.getMeta,"call",r=>r(e),"optionalAccess",r=>r.id]);return dT(n,()=>-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Rge(){return new $H}function aS({maskInputOptions:t,tagName:e,type:n}){return e==="OPTION"&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||n==="password"||e==="INPUT"&&!n&&t.text)}function Cv({isMasked:t,element:e,value:n,maskInputFn:r}){let i=n||"";return t?(r&&(i=r(i,e)),"*".repeat(i.length)):i}function kp(t){return t.toLowerCase()}function fT(t){return t.toUpperCase()}const qN="__rrweb_original__";function Mge(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let i=0;i<t.height;i+=n){const o=e.getImageData,s=qN in o?o[qN]:o;if(new Uint32Array(s.call(e,r,i,Math.min(n,t.width-r),Math.min(n,t.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function k$(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?kp(e):null}function o1(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}function OH(t,e){let n;try{n=new URL(t,dT(e,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r);return dT(Sv([i,"optionalAccess",o=>o[1]]),()=>null)}const KN={};function IH(t){const e=KN[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(i)}catch{}return KN[t]=r.bind(window)}function hT(...t){return IH("setTimeout")(...t)}function RH(...t){return IH("clearTimeout")(...t)}let Pge=1;const Nge=new RegExp("[^a-z0-9-_:]"),Ev=-2;function T$(){return Pge++}function Lge(t){if(t instanceof HTMLFormElement)return"form";const e=kp(t.tagName);return Nge.test(e)?"div":e}function Fge(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let rh,JN;const Bge=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,zge=/^(?:[a-z+]+:)?\/\//i,Hge=/^www\..*/i,jge=/^(data:)([^,]*),(.*)/i;function s1(t,e){return(t||"").replace(Bge,(n,r,i,o,s,a)=>{const l=i||s||a,d=r||o||"";if(!l)return n;if(zge.test(l)||Hge.test(l))return`url(${d}${l}${d})`;if(jge.test(l))return`url(${d}${l}${d})`;if(l[0]==="/")return`url(${d}${Fge(e)+l}${d})`;const h=e.split("/"),p=l.split("/");h.pop();for(const y of p)y!=="."&&(y===".."?h.pop():h.push(y));return`url(${d}${h.join("/")}${d})`})}const Wge=/^[^ \t\n\r\u000c]+/,Uge=/^[, \t\n\r\u000c]+/;function Vge(t,e){if(e.trim()==="")return e;let n=0;function r(o){let s;const a=o.exec(e.substring(n));return a?(s=a[0],n+=s.length,s):""}const i=[];for(;r(Uge),!(n>=e.length);){let o=r(Wge);if(o.slice(-1)===",")o=Th(t,o.substring(0,o.length-1)),i.push(o);else{let s="";o=Th(t,o);let a=!1;for(;;){const l=e.charAt(n);if(l===""){i.push((o+s).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,i.push((o+s).trim());break}else l==="("&&(a=!0);s+=l,n+=1}}}return i.join(", ")}const ZN=new WeakMap;function Th(t,e){return!e||e.trim()===""?e:lS(t,e)}function Yge(t){return Boolean(t.tagName==="svg"||t.ownerSVGElement)}function lS(t,e){let n=ZN.get(t);if(n||(n=t.createElement("a"),ZN.set(t,n)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return n.setAttribute("href",e),n.href}function MH(t,e,n,r,i,o){return r&&(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(e==="table"||e==="td"||e==="th")?Th(t,r):n==="srcset"?Vge(t,r):n==="style"?s1(r,lS(t)):e==="object"&&n==="data"?Th(t,r):typeof o=="function"?o(n,r,i):r)}function PH(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function Xge(t,e,n,r){try{if(r&&t.matches(r))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let i=t.classList.length;i--;){const o=t.classList[i];if(e.test(o))return!0}if(n)return t.matches(n)}catch{}return!1}function Gge(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function Dd(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Dd(t.parentNode,e,n,r+1)}function _h(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(Gge(r,t))return!0}return!!(e&&r.matches(e))}catch{return!1}}}function Tp(t,e,n,r,i,o){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const d=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let a=-1,l=-1;if(o){if(l=Dd(s,_h(r,i)),l<0)return!0;a=Dd(s,_h(e,n),l>=0?l:1/0)}else{if(a=Dd(s,_h(e,n)),a<0)return!1;l=Dd(s,_h(r,i),a>=0?a:1/0)}return a>=0?l>=0?a<=l:!0:l>=0?!1:!!o}catch{}return!!o}function qge(t,e,n){const r=t.contentWindow;if(!r)return;let i=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=hT(()=>{i||(e(),i=!0)},n);t.addEventListener("load",()=>{RH(a),i=!0,e()});return}const s="about:blank";if(r.location.href!==s||t.src===s||t.src==="")return hT(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Kge(t,e,n){let r=!1,i;try{i=t.sheet}catch{return}if(i)return;const o=hT(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{RH(o),r=!0,e()})}function Jge(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:y,inlineStylesheet:w,maskInputOptions:C={},maskTextFn:k,maskInputFn:D,dataURLOptions:I={},inlineImages:_,recordCanvas:L,keepIframeSrcFn:M,newlyAddedElement:F=!1}=e,H=Zge(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:qr.Document,childNodes:[],compatMode:t.compatMode}:{type:qr.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:qr.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:H};case t.ELEMENT_NODE:return eme(t,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:w,maskAttributeFn:l,maskInputOptions:C,maskInputFn:D,dataURLOptions:I,inlineImages:_,recordCanvas:L,keepIframeSrcFn:M,newlyAddedElement:F,rootId:H,maskAllText:a,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:y});case t.TEXT_NODE:return Qge(t,{doc:n,maskAllText:a,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:y,maskTextFn:k,maskInputOptions:C,maskInputFn:D,rootId:H});case t.CDATA_SECTION_NODE:return{type:qr.CDATA,textContent:"",rootId:H};case t.COMMENT_NODE:return{type:qr.Comment,textContent:t.textContent||"",rootId:H};default:return!1}}function Zge(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function Qge(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:d,rootId:h}=e,p=t.parentNode&&t.parentNode.tagName;let y=t.textContent;const w=p==="STYLE"?!0:void 0,C=p==="SCRIPT"?!0:void 0,k=p==="TEXTAREA"?!0:void 0;if(w&&y){try{t.nextSibling||t.previousSibling||Sv([t,"access",I=>I.parentNode,"access",I=>I.sheet,"optionalAccess",I=>I.cssRules])&&(y=i1(t.parentNode.sheet))}catch(I){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${I}`,t)}y=s1(y,lS(e.doc))}C&&(y="SCRIPT_PLACEHOLDER");const D=Tp(t,r,o,i,s,n);if(!w&&!C&&!k&&y&&D&&(y=a?a(y,t.parentElement):y.replace(/[\S]/g,"*")),k&&y&&(l.textarea||D)&&(y=d?d(y,t.parentNode):y.replace(/[\S]/g,"*")),p==="OPTION"&&y){const I=aS({type:null,tagName:p,maskInputOptions:l});y=Cv({isMasked:Tp(t,r,o,i,s,I),element:t,value:y,maskInputFn:d})}return{type:qr.Text,textContent:y||"",isStyle:w,rootId:h}}function eme(t,e){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:l,maskInputFn:d,dataURLOptions:h={},inlineImages:p,recordCanvas:y,keepIframeSrcFn:w,newlyAddedElement:C=!1,rootId:k,maskAllText:D,maskTextClass:I,unmaskTextClass:_,maskTextSelector:L,unmaskTextSelector:M}=e,F=Xge(t,r,i,o),H=Lge(t);let G={};const X=t.attributes.length;for(let te=0;te<X;te++){const ae=t.attributes[te];ae.name&&!PH(H,ae.name,ae.value)&&(G[ae.name]=MH(n,H,kp(ae.name),ae.value,t,l))}if(H==="link"&&s){const te=Array.from(n.styleSheets).find(ye=>ye.href===t.href);let ae=null;te&&(ae=i1(te)),ae&&(delete G.rel,delete G.href,G._cssText=s1(ae,te.href))}if(H==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const te=i1(t.sheet);te&&(G._cssText=s1(te,lS(n)))}if(H==="input"||H==="textarea"||H==="select"||H==="option"){const te=t,ae=k$(te),ye=o1(te,fT(H),ae),ve=te.checked;if(ae!=="submit"&&ae!=="button"&&ye){const se=Tp(te,I,L,_,M,aS({type:ae,tagName:fT(H),maskInputOptions:a}));G.value=Cv({isMasked:se,element:te,value:ye,maskInputFn:d})}ve&&(G.checked=ve)}if(H==="option"&&(t.selected&&!a.select?G.selected=!0:delete G.selected),H==="canvas"&&y){if(t.__context==="2d")Mge(t)||(G.rr_dataURL=t.toDataURL(h.type,h.quality));else if(!("__context"in t)){const te=t.toDataURL(h.type,h.quality),ae=n.createElement("canvas");ae.width=t.width,ae.height=t.height;const ye=ae.toDataURL(h.type,h.quality);te!==ye&&(G.rr_dataURL=te)}}if(H==="img"&&p){rh||(rh=n.createElement("canvas"),JN=rh.getContext("2d"));const te=t,ae=te.currentSrc||te.getAttribute("src")||"<unknown-src>",ye=te.crossOrigin,ve=()=>{te.removeEventListener("load",ve);try{rh.width=te.naturalWidth,rh.height=te.naturalHeight,JN.drawImage(te,0,0),G.rr_dataURL=rh.toDataURL(h.type,h.quality)}catch(se){if(te.crossOrigin!=="anonymous"){te.crossOrigin="anonymous",te.complete&&te.naturalWidth!==0?ve():te.addEventListener("load",ve);return}else console.warn(`Cannot inline img src=${ae}! Error: ${se}`)}te.crossOrigin==="anonymous"&&(ye?G.crossOrigin=ye:te.removeAttribute("crossorigin"))};te.complete&&te.naturalWidth!==0?ve():te.addEventListener("load",ve)}if((H==="audio"||H==="video")&&(G.rr_mediaState=t.paused?"paused":"played",G.rr_mediaCurrentTime=t.currentTime),C||(t.scrollLeft&&(G.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(G.rr_scrollTop=t.scrollTop)),F){const{width:te,height:ae}=t.getBoundingClientRect();G={class:G.class,rr_width:`${te}px`,rr_height:`${ae}px`}}H==="iframe"&&!w(G.src)&&(!F&&!t.contentDocument&&(G.rr_src=G.src),delete G.src);let Z;try{customElements.get(H)&&(Z=!0)}catch{}return{type:qr.Element,tagName:H,attributes:G,childNodes:[],isSVG:Yge(t)||void 0,needBlock:F,rootId:k,isCustom:Z}}function or(t){return t==null?"":t.toLowerCase()}function tme(t,e){if(e.comment&&t.type===qr.Comment)return!0;if(t.type===qr.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&OH(t.attributes.href)==="js"))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(or(t.attributes.name).match(/^msapplication-tile(image|color)$/)||or(t.attributes.name)==="application-name"||or(t.attributes.rel)==="icon"||or(t.attributes.rel)==="apple-touch-icon"||or(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&or(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(or(t.attributes.property).match(/^(og|twitter|fb):/)||or(t.attributes.name).match(/^(og|twitter):/)||or(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(or(t.attributes.name)==="robots"||or(t.attributes.name)==="googlebot"||or(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(or(t.attributes.name)==="author"||or(t.attributes.name)==="generator"||or(t.attributes.name)==="framework"||or(t.attributes.name)==="publisher"||or(t.attributes.name)==="progid"||or(t.attributes.property).match(/^article:/)||or(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(or(t.attributes.name)==="google-site-verification"||or(t.attributes.name)==="yandex-verification"||or(t.attributes.name)==="csrf-token"||or(t.attributes.name)==="p:domain_verify"||or(t.attributes.name)==="verify-v1"||or(t.attributes.name)==="verification"||or(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Dh(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,skipChild:y=!1,inlineStylesheet:w=!0,maskInputOptions:C={},maskAttributeFn:k,maskTextFn:D,maskInputFn:I,slimDOMOptions:_,dataURLOptions:L={},inlineImages:M=!1,recordCanvas:F=!1,onSerialize:H,onIframeLoad:G,iframeLoadTimeout:X=5e3,onStylesheetLoad:Z,stylesheetLoadTimeout:te=5e3,keepIframeSrcFn:ae=()=>!1,newlyAddedElement:ye=!1}=e;let{preserveWhiteSpace:ve=!0}=e;const se=Jge(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:w,maskInputOptions:C,maskAttributeFn:k,maskTextFn:D,maskInputFn:I,dataURLOptions:L,inlineImages:M,recordCanvas:F,keepIframeSrcFn:ae,newlyAddedElement:ye});if(!se)return console.warn(t,"not serialized"),null;let J;r.hasNode(t)?J=r.getId(t):tme(se,_)||!ve&&se.type===qr.Text&&!se.isStyle&&!se.textContent.replace(/^\s+|\s+$/gm,"").length?J=Ev:J=T$();const B=Object.assign(se,{id:J});if(r.add(t,B),J===Ev)return null;H&&H(t);let V=!y;if(B.type===qr.Element){V=V&&!B.needBlock,delete B.needBlock;const q=t.shadowRoot;q&&Im(q)&&(B.isShadowHost=!0)}if((B.type===qr.Document||B.type===qr.Element)&&V){_.headWhitespace&&B.type===qr.Element&&B.tagName==="head"&&(ve=!1);const q={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,skipChild:y,inlineStylesheet:w,maskInputOptions:C,maskAttributeFn:k,maskTextFn:D,maskInputFn:I,slimDOMOptions:_,dataURLOptions:L,inlineImages:M,recordCanvas:F,preserveWhiteSpace:ve,onSerialize:H,onIframeLoad:G,iframeLoadTimeout:X,onStylesheetLoad:Z,stylesheetLoadTimeout:te,keepIframeSrcFn:ae};for(const ce of Array.from(t.childNodes)){const fe=Dh(ce,q);fe&&B.childNodes.push(fe)}if(Tge(t)&&t.shadowRoot)for(const ce of Array.from(t.shadowRoot.childNodes)){const fe=Dh(ce,q);fe&&(Im(t.shadowRoot)&&(fe.isShadow=!0),B.childNodes.push(fe))}}return t.parentNode&&Om(t.parentNode)&&Im(t.parentNode)&&(B.isShadow=!0),B.type===qr.Element&&B.tagName==="iframe"&&qge(t,()=>{const q=t.contentDocument;if(q&&G){const ce=Dh(q,{doc:q,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:w,maskInputOptions:C,maskAttributeFn:k,maskTextFn:D,maskInputFn:I,slimDOMOptions:_,dataURLOptions:L,inlineImages:M,recordCanvas:F,preserveWhiteSpace:ve,onSerialize:H,onIframeLoad:G,iframeLoadTimeout:X,onStylesheetLoad:Z,stylesheetLoadTimeout:te,keepIframeSrcFn:ae});ce&&G(t,ce)}},X),B.type===qr.Element&&B.tagName==="link"&&typeof B.attributes.rel=="string"&&(B.attributes.rel==="stylesheet"||B.attributes.rel==="preload"&&typeof B.attributes.href=="string"&&OH(B.attributes.href)==="css")&&Kge(t,()=>{if(Z){const q=Dh(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:w,maskInputOptions:C,maskAttributeFn:k,maskTextFn:D,maskInputFn:I,slimDOMOptions:_,dataURLOptions:L,inlineImages:M,recordCanvas:F,preserveWhiteSpace:ve,onSerialize:H,onIframeLoad:G,iframeLoadTimeout:X,onStylesheetLoad:Z,stylesheetLoadTimeout:te,keepIframeSrcFn:ae});q&&Z(t,q)}},te),B}function nme(t,e){const{mirror:n=new $H,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,inlineImages:y=!1,recordCanvas:w=!1,maskAllInputs:C=!1,maskAttributeFn:k,maskTextFn:D,maskInputFn:I,slimDOM:_=!1,dataURLOptions:L,preserveWhiteSpace:M,onSerialize:F,onIframeLoad:H,iframeLoadTimeout:G,onStylesheetLoad:X,stylesheetLoadTimeout:Z,keepIframeSrcFn:te=()=>!1}=e||{};return Dh(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:C===!1?{}:C,maskAttributeFn:k,maskTextFn:D,maskInputFn:I,slimDOMOptions:_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:_==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:_===!1?{}:_,dataURLOptions:L,inlineImages:y,recordCanvas:w,preserveWhiteSpace:M,onSerialize:F,onIframeLoad:H,iframeLoadTimeout:G,onStylesheetLoad:X,stylesheetLoadTimeout:Z,keepIframeSrcFn:te,newlyAddedElement:!1})}function Kc(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}function io(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const yh=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let QN={map:{},getId(){return console.error(yh),-1},getNode(){return console.error(yh),null},removeNodeFromMap(){console.error(yh)},has(){return console.error(yh),!1},reset(){console.error(yh)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(QN=new Proxy(QN,{get(t,e,n){return e==="map"&&console.error(yh),Reflect.get(t,e,n)}}));function Av(t,e,n={}){let r=null,i=0;return function(...o){const s=Date.now();!i&&n.leading===!1&&(i=s);const a=e-(s-i),l=this;a<=0||a>e?(r&&(cme(r),r=null),i=s,t.apply(l,o)):!r&&n.trailing!==!1&&(r=cS(()=>{i=n.leading===!1?0:Date.now(),r=null,t.apply(l,o)},a))}}function NH(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(s){cS(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>NH(t,e,o||{},!0)}function _$(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}let a1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(a1=()=>new Date().getTime());function LH(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:Kc([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Kc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Kc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:Kc([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Kc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Kc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function FH(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function BH(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zH(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Go(t,e,n,r,i){if(!t)return!1;const o=zH(t);if(!o)return!1;const s=_h(e,n);if(!i){const d=r&&o.matches(r);return s(o)&&!d}const a=Dd(o,s);let l=-1;return a<0?!1:(r&&(l=Dd(o,_h(null,r))),a>-1&&l<0?!0:a<l)}function rme(t,e){return e.getId(t)!==-1}function nA(t,e){return e.getId(t)===Ev}function HH(t,e){if(Om(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?HH(t.parentNode,e):!0:!0}function pT(t){return Boolean(t.changedTouches)}function ime(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let n=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function jH(t,e){return Boolean(t.nodeName==="IFRAME"&&e.getMeta(t))}function WH(t,e){return Boolean(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function gT(t){return Boolean(Kc([t,"optionalAccess",e=>e.shadowRoot]))}class ome{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return _de(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function UH(t){let e=null;return Kc([t,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function sme(t){let e=t,n;for(;n=UH(e);)e=n;return e}function ame(t){const e=t.ownerDocument;if(!e)return!1;const n=sme(t);return e.contains(n)}function VH(t){const e=t.ownerDocument;return e?e.contains(t)||ame(t):!1}const eL={};function D$(t){const e=eL[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(i)}catch{}return eL[t]=r.bind(window)}function lme(...t){return D$("requestAnimationFrame")(...t)}function cS(...t){return D$("setTimeout")(...t)}function cme(...t){return D$("clearTimeout")(...t)}var cn=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(cn||{}),Jt=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Jt||{}),qi=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(qi||{}),Sl=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Sl||{});function ume(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}function tL(t){return"__ln"in t}class dme{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=ume([n,"optionalAccess",i=>i.next])||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&tL(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&tL(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const nL=(t,e)=>`${t}@${e}`;class fme{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new dme,i=l=>{let d=l,h=Ev;for(;h===Ev;)d=d&&d.nextSibling,h=d&&this.mirror.getId(d);return h},o=l=>{if(!l.parentNode||!VH(l))return;const d=Om(l.parentNode)?this.mirror.getId(UH(l)):this.mirror.getId(l.parentNode),h=i(l);if(d===-1||h===-1)return r.addNode(l);const p=Dh(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:y=>{jH(y,this.mirror)&&!Go(y,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(y),WH(y,this.mirror)&&this.stylesheetManager.trackLinkElement(y),gT(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(y,w)=>{Go(y,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(y,w),y.contentWindow&&this.canvasManager.addWindow(y.contentWindow),this.shadowDomManager.observeAttachShadow(y))},onStylesheetLoad:(y,w)=>{this.stylesheetManager.attachLinkElement(y,w)}});p&&(e.push({parentId:d,nextId:h,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)rL(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||o(l);for(const l of this.addedSet)!iL(this.droppedSet,l)&&!rL(this.removes,l,this.mirror)||iL(this.movedSet,l)?o(l):this.droppedSet.add(l);let s=null;for(;r.length;){let l=null;if(s){const d=this.mirror.getId(s.value.parentNode),h=i(s.value);d!==-1&&h!==-1&&(l=s)}if(!l){let d=r.tail;for(;d;){const h=d;if(d=d.previous,h){const p=this.mirror.getId(h.value.parentNode);if(i(h.value)===-1)continue;if(p!==-1){l=h;break}else{const w=h.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const C=w.parentNode.host;if(this.mirror.getId(C)!==-1){l=h;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}s=l.previous,r.removeNode(l.value),o(l.value)}const a={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:d}=l;if(typeof d.style=="string"){const h=JSON.stringify(l.styleDiff),p=JSON.stringify(l._unchangedStyles);h.length<d.style.length&&(h+p).split("var(").length===d.style.split("var(").length&&(d.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:d}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:e};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!nA(e.target,this.mirror))switch(e.type){case"characterData":{const n=e.target.textContent;!Go(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:Tp(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,zH(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,i=e.target.getAttribute(r);if(r==="value"){const s=k$(n),a=n.tagName;i=o1(n,a,s);const l=aS({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),d=Tp(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=Cv({isMasked:d,element:n,value:i,maskInputFn:this.maskInputFn})}if(Go(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;let o=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!n.contentDocument)r="rr_src";else return;if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!PH(n.tagName,r)&&(o.attributes[r]=MH(this.doc,kp(n.tagName),kp(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue);for(const a of Array.from(n.style)){const l=n.style.getPropertyValue(a),d=n.style.getPropertyPriority(a);l!==s.style.getPropertyValue(a)||d!==s.style.getPropertyPriority(a)?d===""?o.styleDiff[a]=l:o.styleDiff[a]=[l,d]:o._unchangedStyles[a]=[l,d]}for(const a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}case"childList":{if(Go(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=Om(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Go(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||nA(n,this.mirror)||!rme(n,this.mirror)||(this.addedSet.has(n)?(mT(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||HH(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[nL(r,i)]?mT(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:Om(e.target)&&Im(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(nA(e,this.mirror))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[nL(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Go(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(r=>this.genAdds(r)),gT(e)&&e.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function mT(t,e){t.delete(e),e.childNodes.forEach(n=>mT(t,n))}function rL(t,e,n){return t.length===0?!1:hme(t,e,n)}function hme(t,e,n){let r=e.parentNode;for(;r;){const i=n.getId(r);if(t.some(o=>o.id===i))return!0;r=r.parentNode}return!1}function iL(t,e){return t.size===0?!1:YH(t,e)}function YH(t,e){const{parentNode:n}=e;return n?t.has(n)?!0:YH(t,n):!1}let Rm;function pme(t){Rm=t}function gme(){Rm=void 0}const An=t=>Rm?(...n)=>{try{return t(...n)}catch(r){if(Rm&&Rm(r)===!0)return()=>{};throw r}}:t;function Zs(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}const $h=[];function g0(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function XH(t,e){const n=new fme;$h.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const i=Zs([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(An(s=>{t.onMutation&&t.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function mme({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,o=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let s=[],a;const l=Av(An(p=>{const y=Date.now()-a;t(s.map(w=>(w.timeOffset-=y,w)),p),s=[],a=null}),o),d=An(Av(An(p=>{const y=g0(p),{clientX:w,clientY:C}=pT(p)?p.changedTouches[0]:p;a||(a=a1()),s.push({x:w,y:C,id:r.getId(y),timeOffset:a1()-a}),l(typeof DragEvent<"u"&&p instanceof DragEvent?Jt.Drag:p instanceof MouseEvent?Jt.MouseMove:Jt.TouchMove)}),i,{trailing:!1})),h=[io("mousemove",d,n),io("touchmove",d,n),io("drag",d,n)];return An(()=>{h.forEach(p=>p())})}function vme({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[];let d=null;const h=p=>y=>{const w=g0(y);if(Go(w,r,i,o,!0))return;let C=null,k=p;if("pointerType"in y){switch(y.pointerType){case"mouse":C=Sl.Mouse;break;case"touch":C=Sl.Touch;break;case"pen":C=Sl.Pen;break}C===Sl.Touch?qi[p]===qi.MouseDown?k="TouchStart":qi[p]===qi.MouseUp&&(k="TouchEnd"):Sl.Pen}else pT(y)&&(C=Sl.Touch);C!==null?(d=C,(k.startsWith("Touch")&&C===Sl.Touch||k.startsWith("Mouse")&&C===Sl.Mouse)&&(C=null)):qi[p]===qi.Click&&(C=d,d=null);const D=pT(y)?y.changedTouches[0]:y;if(!D)return;const I=n.getId(w),{clientX:_,clientY:L}=D;An(t)({type:qi[k],id:I,x:_,y:L,...C!==null&&{pointerType:C}})};return Object.keys(qi).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&a[p]!==!1).forEach(p=>{let y=kp(p);const w=h(p);if(window.PointerEvent)switch(qi[p]){case qi.MouseDown:case qi.MouseUp:y=y.replace("mouse","pointer");break;case qi.TouchStart:case qi.TouchEnd:return}l.push(io(y,w,e))}),An(()=>{l.forEach(p=>p())})}function GH({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){const a=An(Av(An(l=>{const d=g0(l);if(!d||Go(d,r,i,o,!0))return;const h=n.getId(d);if(d===e&&e.defaultView){const p=LH(e.defaultView);t({id:h,x:p.left,y:p.top})}else t({id:h,x:d.scrollLeft,y:d.scrollTop})}),s.scroll||100));return io("scroll",a,e)}function bme({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const i=An(Av(An(()=>{const o=FH(),s=BH();(n!==o||r!==s)&&(t({width:Number(s),height:Number(o)}),n=o,r=s)}),200));return io("resize",i,e)}const yme=["INPUT","TEXTAREA","SELECT"],oL=new WeakMap;function xme({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:d,sampling:h,userTriggeredOnInput:p,maskTextClass:y,unmaskTextClass:w,maskTextSelector:C,unmaskTextSelector:k}){function D(G){let X=g0(G);const Z=G.isTrusted,te=X&&fT(X.tagName);if(te==="OPTION"&&(X=X.parentElement),!X||!te||yme.indexOf(te)<0||Go(X,r,i,o,!0))return;const ae=X;if(ae.classList.contains(s)||a&&ae.matches(a))return;const ye=k$(X);let ve=o1(ae,te,ye),se=!1;const J=aS({maskInputOptions:l,tagName:te,type:ye}),B=Tp(X,y,C,w,k,J);(ye==="radio"||ye==="checkbox")&&(se=X.checked),ve=Cv({isMasked:B,element:X,value:ve,maskInputFn:d}),I(X,p?{text:ve,isChecked:se,userTriggered:Z}:{text:ve,isChecked:se});const V=X.name;ye==="radio"&&V&&se&&e.querySelectorAll(`input[type="radio"][name="${V}"]`).forEach(q=>{if(q!==X){const ce=Cv({isMasked:B,element:q,value:o1(q,te,ye),maskInputFn:d});I(q,p?{text:ce,isChecked:!se,userTriggered:!1}:{text:ce,isChecked:!se})}})}function I(G,X){const Z=oL.get(G);if(!Z||Z.text!==X.text||Z.isChecked!==X.isChecked){oL.set(G,X);const te=n.getId(G);An(t)({...X,id:te})}}const L=(h.input==="last"?["change"]:["input","change"]).map(G=>io(G,An(D),e)),M=e.defaultView;if(!M)return()=>{L.forEach(G=>G())};const F=M.Object.getOwnPropertyDescriptor(M.HTMLInputElement.prototype,"value"),H=[[M.HTMLInputElement.prototype,"value"],[M.HTMLInputElement.prototype,"checked"],[M.HTMLSelectElement.prototype,"value"],[M.HTMLTextAreaElement.prototype,"value"],[M.HTMLSelectElement.prototype,"selectedIndex"],[M.HTMLOptionElement.prototype,"selected"]];return F&&F.set&&L.push(...H.map(G=>NH(G[0],G[1],{set(){An(D)({target:this,isTrusted:!1})}},!1,M))),An(()=>{L.forEach(G=>G())})}function l1(t){const e=[];function n(r,i){if(Gb("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Gb("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Gb("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Gb("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(t,e)}function Jc(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function wme({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:An((h,p,y)=>{const[w,C]=y,{id:k,styleId:D}=Jc(p,e,n.styleMirror);return(k&&k!==-1||D&&D!==-1)&&t({id:k,styleId:D,adds:[{rule:w,index:C}]}),h.apply(p,y)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:An((h,p,y)=>{const[w]=y,{id:C,styleId:k}=Jc(p,e,n.styleMirror);return(C&&C!==-1||k&&k!==-1)&&t({id:C,styleId:k,removes:[{index:w}]}),h.apply(p,y)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:An((h,p,y)=>{const[w]=y,{id:C,styleId:k}=Jc(p,e,n.styleMirror);return(C&&C!==-1||k&&k!==-1)&&t({id:C,styleId:k,replace:w}),h.apply(p,y)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:An((h,p,y)=>{const[w]=y,{id:C,styleId:k}=Jc(p,e,n.styleMirror);return(C&&C!==-1||k&&k!==-1)&&t({id:C,styleId:k,replaceSync:w}),h.apply(p,y)})}));const l={};qb("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(qb("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),qb("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),qb("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(l).forEach(([h,p])=>{d[h]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[h].insertRule,{apply:An((y,w,C)=>{const[k,D]=C,{id:I,styleId:_}=Jc(w.parentStyleSheet,e,n.styleMirror);return(I&&I!==-1||_&&_!==-1)&&t({id:I,styleId:_,adds:[{rule:k,index:[...l1(w),D||0]}]}),y.apply(w,C)})}),p.prototype.deleteRule=new Proxy(d[h].deleteRule,{apply:An((y,w,C)=>{const[k]=C,{id:D,styleId:I}=Jc(w.parentStyleSheet,e,n.styleMirror);return(D&&D!==-1||I&&I!==-1)&&t({id:D,styleId:I,removes:[{index:[...l1(w),k]}]}),y.apply(w,C)})})}),An(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([h,p])=>{p.prototype.insertRule=d[h].insertRule,p.prototype.deleteRule=d[h].deleteRule})})}function qH({mirror:t,stylesheetManager:e},n){let r=null;n.nodeName==="#document"?r=t.getId(n):r=t.getId(n.host);const i=n.nodeName==="#document"?Zs([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):Zs([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),o=Zs([i,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(Zs([i,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Zs([o,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const a=Zs([o,"access",l=>l.set,"optionalAccess",l=>l.call,"call",l=>l(this,s)]);if(r!==null&&r!==-1)try{e.adoptStyleSheets(s,r)}catch{}return a}}),An(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function Sme({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:An((a,l,d)=>{const[h,p,y]=d;if(n.has(h))return o.apply(l,[h,p,y]);const{id:w,styleId:C}=Jc(Zs([l,"access",k=>k.parentRule,"optionalAccess",k=>k.parentStyleSheet]),e,r.styleMirror);return(w&&w!==-1||C&&C!==-1)&&t({id:w,styleId:C,set:{property:h,value:p,priority:y},index:l1(l.parentRule)}),a.apply(l,d)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:An((a,l,d)=>{const[h]=d;if(n.has(h))return s.apply(l,[h]);const{id:p,styleId:y}=Jc(Zs([l,"access",w=>w.parentRule,"optionalAccess",w=>w.parentStyleSheet]),e,r.styleMirror);return(p&&p!==-1||y&&y!==-1)&&t({id:p,styleId:y,remove:{property:h},index:l1(l.parentRule)}),a.apply(l,d)})}),An(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}function Cme({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=An(d=>Av(An(h=>{const p=g0(h);if(!p||Go(p,e,n,r,!0))return;const{currentTime:y,volume:w,muted:C,playbackRate:k}=p;t({type:d,id:i.getId(p),currentTime:y,volume:w,muted:C,playbackRate:k})}),o.media||500)),l=[io("play",a(0),s),io("pause",a(1),s),io("seeked",a(2),s),io("volumechange",a(3),s),io("ratechange",a(4),s)];return An(()=>{l.forEach(d=>d())})}function Eme({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(l,d,h){const p=new o(l,d,h);return i.set(p,{family:l,buffer:typeof d!="string",descriptors:h,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};const s=_$(e.fonts,"add",function(a){return function(l){return cS(An(()=>{const d=i.get(l);d&&(t(d),i.delete(l))}),0),a.apply(this,[l])}});return r.push(()=>{n.FontFace=o}),r.push(s),An(()=>{r.forEach(a=>a())})}function Ame(t){const{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=t;let a=!0;const l=An(()=>{const d=e.getSelection();if(!d||a&&Zs([d,"optionalAccess",y=>y.isCollapsed]))return;a=d.isCollapsed||!1;const h=[],p=d.rangeCount||0;for(let y=0;y<p;y++){const w=d.getRangeAt(y),{startContainer:C,startOffset:k,endContainer:D,endOffset:I}=w;Go(C,r,i,o,!0)||Go(D,r,i,o,!0)||h.push({start:n.getId(C),startOffset:k,end:n.getId(D),endOffset:I})}s({ranges:h})});return l(),io("selectionchange",l)}function kme({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:_$(n.customElements,"define",function(i){return function(o,s,a){try{e({define:{name:o}})}catch{}return i.apply(this,[o,s,a])}})}function Tme(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=XH(t,t.doc));const i=mme(t),o=vme(t),s=GH(t),a=bme(t,{win:n}),l=xme(t),d=Cme(t);let h=()=>{},p=()=>{},y=()=>{},w=()=>{};t.recordDOM&&(h=wme(t,{win:n}),p=qH(t,t.doc),y=Sme(t,{win:n}),t.collectFonts&&(w=Eme(t)));const C=Ame(t),k=kme(t),D=[];for(const I of t.plugins)D.push(I.observer(I.callback,n,I.options));return An(()=>{$h.forEach(I=>I.reset()),Zs([r,"optionalAccess",I=>I.disconnect,"call",I=>I()]),i(),o(),s(),a(),l(),d(),h(),p(),y(),w(),C(),k(),D.forEach(I=>I())})}function Gb(t){return typeof window[t]<"u"}function qb(t){return Boolean(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class vT{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,n,r,i){const o=r||this.getIdToRemoteIdMap(e),s=i||this.getRemoteIdToIdMap(e);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),s.set(a,n)),a}getIds(e,n){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return n.map(o=>this.getId(e,o,r,i))}getRemoteId(e,n,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const o=i.get(n);return o||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}function sL(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}class _me{constructor(){this.crossOriginIframeMirror=new vT(T$),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Dme{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new vT(T$),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vT(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),sL([this,"access",r=>r.loadListener,"optionalCall",r=>r(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const o=this.transformCrossOriginEvent(i,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(e,n){switch(n.type){case cn.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:cn.IncrementalSnapshot,data:{source:Jt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case cn.Meta:case cn.Load:case cn.DomContentLoaded:return!1;case cn.Plugin:return n;case cn.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case cn.IncrementalSnapshot:switch(n.data.source){case Jt.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,e);const i=this.crossOriginIframeRootIdMap.get(e);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,e,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,e,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case Jt.Drag:case Jt.TouchMove:case Jt.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case Jt.ViewportResize:return!1;case Jt.MediaInteraction:case Jt.MouseInteraction:case Jt.Scroll:case Jt.CanvasMutation:case Jt.Input:return this.replaceIds(n.data,e,["id"]),n;case Jt.StyleSheetRule:case Jt.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case Jt.Font:return n;case Jt.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,e,["start","end"])}),n;case Jt.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),sL([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(i=>{this.replaceStyleIds(i,e,["styleId"])})]),n}}return!1}replace(e,n,r,i){for(const o of i)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=e.getIds(r,n[o]):n[o]=e.getId(r,n[o]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==qr.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class $me{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ome{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!Im(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=XH({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(GH({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),cS(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(qH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(_$(e.prototype,"attachShadow",function(i){return function(o){const s=i.call(this,o);return this.shadowRoot&&VH(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class aL{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ime{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ome,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},i=[];for(const o of e){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),i.push({styleId:s,rules:Array.from(o.rules||CSSRule,(a,l)=>({rule:DH(a),index:l}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Rme{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==n)}add(e,n){this.active||(this.active=!0,lme(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let kr,c1;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=zd([t,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Vs=Rge();function Gl(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskAllText:d=!1,maskTextClass:h="rr-mask",unmaskTextClass:p=null,maskTextSelector:y=null,unmaskTextSelector:w=null,inlineStylesheet:C=!0,maskAllInputs:k,maskInputOptions:D,slimDOMOptions:I,maskAttributeFn:_,maskInputFn:L,maskTextFn:M,maxCanvasSize:F=null,packFn:H,sampling:G={},dataURLOptions:X={},mousemoveWait:Z,recordDOM:te=!0,recordCanvas:ae=!1,recordCrossOriginIframes:ye=!1,recordAfter:ve=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:se=!1,collectFonts:J=!1,inlineImages:B=!1,plugins:V,keepIframeSrcFn:q=()=>!1,ignoreCSSAttributes:ce=new Set([]),errorHandler:fe,onMutation:Ae,getCanvasManager:Se}=t;pme(fe);const _e=ye?window.parent===window:!0;let Be=!1;if(!_e)try{window.parent.document&&(Be=!1)}catch{Be=!0}if(_e&&!e)throw new Error("emit function is required");if(!_e&&!Be)return()=>{};Z!==void 0&&G.mousemove===void 0&&(G.mousemove=Z),Vs.reset();const Q=k===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:D!==void 0?D:{},de=I===!0||I==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:I==="all",headMetaDescKeywords:I==="all"}:I||{};ime();let we,Ce=0;const je=ze=>{for(const We of V||[])We.eventProcessor&&(ze=We.eventProcessor(ze));return H&&!Be&&(ze=H(ze)),ze};kr=(ze,We)=>{const xe=ze;if(xe.timestamp=a1(),zd([$h,"access",Re=>Re[0],"optionalAccess",Re=>Re.isFrozen,"call",Re=>Re()])&&xe.type!==cn.FullSnapshot&&!(xe.type===cn.IncrementalSnapshot&&xe.data.source===Jt.Mutation)&&$h.forEach(Re=>Re.unfreeze()),_e)zd([e,"optionalCall",Re=>Re(je(xe),We)]);else if(Be){const Re={type:"rrweb",event:je(xe),origin:window.location.origin,isCheckout:We};window.parent.postMessage(Re,"*")}if(xe.type===cn.FullSnapshot)we=xe,Ce=0;else if(xe.type===cn.IncrementalSnapshot){if(xe.data.source===Jt.Mutation&&xe.data.isAttachIframe)return;Ce++;const Re=r&&Ce>=r,Ve=n&&we&&xe.timestamp-we.timestamp>n;(Re||Ve)&&rt(!0)}};const Ue=ze=>{kr({type:cn.IncrementalSnapshot,data:{source:Jt.Mutation,...ze}})},Xe=ze=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.Scroll,...ze}}),qe=ze=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.CanvasMutation,...ze}}),K=ze=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.AdoptedStyleSheet,...ze}}),ee=new Ime({mutationCb:Ue,adoptedStyleSheetCb:K}),be=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new _me:new Dme({mirror:Vs,mutationCb:Ue,stylesheetManager:ee,recordCrossOriginIframes:ye,wrappedEmit:kr});for(const ze of V||[])ze.getMirror&&ze.getMirror({nodeMirror:Vs,crossOriginIframeMirror:be.crossOriginIframeMirror,crossOriginIframeStyleMirror:be.crossOriginIframeStyleMirror});const $e=new Rme,Ie=Pme(Se,{mirror:Vs,win:window,mutationCb:ze=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.CanvasMutation,...ze}}),recordCanvas:ae,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:F,sampling:G.canvas,dataURLOptions:X,errorHandler:fe}),He=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new $me:new Ome({mutationCb:Ue,scrollCb:Xe,bypassOptions:{onMutation:Ae,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:y,unmaskTextSelector:w,inlineStylesheet:C,maskInputOptions:Q,dataURLOptions:X,maskAttributeFn:_,maskTextFn:M,maskInputFn:L,recordCanvas:ae,inlineImages:B,sampling:G,slimDOMOptions:de,iframeManager:be,stylesheetManager:ee,canvasManager:Ie,keepIframeSrcFn:q,processedNodeManager:$e},mirror:Vs}),rt=(ze=!1)=>{if(!te)return;kr({type:cn.Meta,data:{href:window.location.href,width:BH(),height:FH()}},ze),ee.reset(),He.init(),$h.forEach(xe=>xe.lock());const We=nme(document,{mirror:Vs,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:y,unmaskTextSelector:w,inlineStylesheet:C,maskAllInputs:Q,maskAttributeFn:_,maskInputFn:L,maskTextFn:M,slimDOM:de,dataURLOptions:X,recordCanvas:ae,inlineImages:B,onSerialize:xe=>{jH(xe,Vs)&&be.addIframe(xe),WH(xe,Vs)&&ee.trackLinkElement(xe),gT(xe)&&He.addShadowRoot(xe.shadowRoot,document)},onIframeLoad:(xe,Re)=>{be.attachIframe(xe,Re),xe.contentWindow&&Ie.addWindow(xe.contentWindow),He.observeAttachShadow(xe)},onStylesheetLoad:(xe,Re)=>{ee.attachLinkElement(xe,Re)},keepIframeSrcFn:q});if(!We)return console.warn("Failed to snapshot the document");kr({type:cn.FullSnapshot,data:{node:We,initialOffset:LH(window)}}),$h.forEach(xe=>xe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ee.adoptStyleSheets(document.adoptedStyleSheets,Vs.getId(document))};c1=rt;try{const ze=[],We=Re=>An(Tme)({onMutation:Ae,mutationCb:Ue,mousemoveCb:(Ve,it)=>kr({type:cn.IncrementalSnapshot,data:{source:it,positions:Ve}}),mouseInteractionCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.MouseInteraction,...Ve}}),scrollCb:Xe,viewportResizeCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.ViewportResize,...Ve}}),inputCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.Input,...Ve}}),mediaInteractionCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.MediaInteraction,...Ve}}),styleSheetRuleCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.StyleSheetRule,...Ve}}),styleDeclarationCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.StyleDeclaration,...Ve}}),canvasMutationCb:qe,fontCb:Ve=>kr({type:cn.IncrementalSnapshot,data:{source:Jt.Font,...Ve}}),selectionCb:Ve=>{kr({type:cn.IncrementalSnapshot,data:{source:Jt.Selection,...Ve}})},customElementCb:Ve=>{kr({type:cn.IncrementalSnapshot,data:{source:Jt.CustomElement,...Ve}})},blockClass:i,ignoreClass:a,ignoreSelector:l,maskAllText:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:y,unmaskTextSelector:w,maskInputOptions:Q,inlineStylesheet:C,sampling:G,recordDOM:te,recordCanvas:ae,inlineImages:B,userTriggeredOnInput:se,collectFonts:J,doc:Re,maskAttributeFn:_,maskInputFn:L,maskTextFn:M,keepIframeSrcFn:q,blockSelector:o,unblockSelector:s,slimDOMOptions:de,dataURLOptions:X,mirror:Vs,iframeManager:be,stylesheetManager:ee,shadowDomManager:He,processedNodeManager:$e,canvasManager:Ie,ignoreCSSAttributes:ce,plugins:zd([V,"optionalAccess",Ve=>Ve.filter,"call",Ve=>Ve(it=>it.observer),"optionalAccess",Ve=>Ve.map,"call",Ve=>Ve(it=>({observer:it.observer,options:it.options,callback:xt=>kr({type:cn.Plugin,data:{plugin:it.name,payload:xt}})}))])||[]},{});be.addLoadListener(Re=>{try{ze.push(We(Re.contentDocument))}catch(Ve){console.warn(Ve)}});const xe=()=>{rt(),ze.push(We(document))};return document.readyState==="interactive"||document.readyState==="complete"?xe():(ze.push(io("DOMContentLoaded",()=>{kr({type:cn.DomContentLoaded,data:{}}),ve==="DOMContentLoaded"&&xe()})),ze.push(io("load",()=>{kr({type:cn.Load,data:{}}),ve==="load"&&xe()},window))),()=>{ze.forEach(Re=>Re()),$e.destroy(),c1=void 0,gme()}}catch(ze){console.warn(ze)}}function Mme(t){if(!c1)throw new Error("please take full snapshot after start recording");c1(t)}Gl.mirror=Vs;Gl.takeFullSnapshot=Mme;function Pme(t,e){try{return t?t(e):new aL}catch{return console.warn("Unable to initialize CanvasManager"),new aL}}const qt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,lL=["info","warn","error","log"],ox="[Replay] ";function rA(t,e="info"){Iu({category:"console",data:{logger:"replay"},level:e,message:`${ox}${t}`},{level:e})}function Nme(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{t=r.captureExceptions,e=r.traceInternals}};return qt?(lL.forEach(r=>{n[r]=(...i)=>{Ot[r](ox,...i),e&&rA(i.join(""),jz(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Ot.error(ox,r),t?g$(r):e&&rA(r,"error")},n.infoTick=(...r)=>{Ot.info(ox,...r),e&&setTimeout(()=>rA(r[0]),0)}):lL.forEach(r=>{n[r]=()=>{}}),n}const Kt=Nme(),Lme=3,Fme=5;function $$(t){return t>9999999999?t:t*1e3}function iA(t){return t>9999999999?t/1e3:t}function m0(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:cn.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ia(e,10,1e3)}}),e.category==="console")))}const Bme="button,a";function KH(t){return t.closest(Bme)||t}function JH(t){const e=ZH(t);return!e||!(e instanceof Element)?e:KH(e)}function ZH(t){return zme(t)?t.target:t}function zme(t){return typeof t=="object"&&!!t&&"target"in t}let Zc;function Hme(t){return Zc||(Zc=[],jme()),Zc.push(t),()=>{const e=Zc?Zc.indexOf(t):-1;e>-1&&Zc.splice(e,1)}}function jme(){Do(lr,"open",function(t){return function(...e){if(Zc)try{Zc.forEach(n=>n())}catch{}return t.apply(lr,e)}})}const Wme=new Set([Jt.Mutation,Jt.StyleSheetRule,Jt.StyleDeclaration,Jt.AdoptedStyleSheet,Jt.CanvasMutation,Jt.Selection,Jt.MediaInteraction]);function Ume(t,e,n){t.handleClick(e,n)}class Vme{constructor(e,n,r=m0){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=Hme(()=>{this._lastMutation=cL()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(Xme(n,this._ignoreSelector)||!Gme(e))return;const r={timestamp:iA(e.timestamp),clickBreadcrumb:e,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=iA(e)}registerScroll(e=Date.now()){this._lastScroll=iA(e)}registerClick(e){const n=KH(e);this._handleMultiClick(n)}_handleMultiClick(e){this._getClicks(e).forEach(n=>{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=cL();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&e.push(r)});for(const r of e){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!i,{clickCount:s,clickBreadcrumb:a}=e;if(o){const l=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,d=l<this._timeout*1e3?"mutation":"timeout",h={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:lr.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:d,clickCount:s||1}};this._addBreadcrumbEvent(n,h);return}if(s>1){const l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:lr.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ap(()=>this._checkClicks(),1e3)}}const Yme=["A","BUTTON","INPUT"];function Xme(t,e){return!!(!Yme.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function Gme(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function cL(){return Date.now()/1e3}function qme(t,e){try{if(!Kme(e))return;const{source:n}=e.data;if(Wme.has(n)&&t.registerMutation(e.timestamp),n===Jt.Scroll&&t.registerScroll(e.timestamp),Jme(e)){const{type:r,id:i}=e.data,o=Gl.mirror.getNode(i);o instanceof HTMLElement&&r===qi.Click&&t.registerClick(o)}}catch{}}function Kme(t){return t.type===Lme}function Jme(t){return t.data.source===Jt.MouseInteraction}function Ba(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var u1;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(u1||(u1={}));const Zme=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Qme(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Zme.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const eve=t=>e=>{if(!t.isEnabled())return;const n=tve(e);if(!n)return;const r=e.name==="click",i=r?e.event:void 0;r&&t.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Ume(t.clickDetector,n,JH(e.event)),m0(t,n)};function QH(t,e){const n=Gl.mirror.getId(t),r=n&&Gl.mirror.getNode(n),i=r&&Gl.mirror.getMeta(r),o=i&&rve(i)?i:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(s=>s.type===u1.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:Qme(o.attributes)}}:{}}}function tve(t){const{target:e,message:n}=nve(t);return Ba({category:`ui.${t.name}`,...QH(e,n)})}function nve(t){const e=t.name==="click";let n,r=null;try{r=e?JH(t.event):ZH(t.event),n=tS(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function rve(t){return t.type===u1.Element}function ive(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=ove(e);n&&m0(t,n)}function ove(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=t;if(!s||sve(s)||!o)return null;const a=e||r||i,l=o.length===1;if(!a&&l)return null;const d=tS(s,{maxStringLength:200})||"<unknown>",h=QH(s,d);return Ba({category:"ui.keyDown",message:d,data:{...h.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}function sve(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const ave={resource:fve,paint:uve,navigation:dve};function Kb(t,e){return({metric:n})=>void e.replayPerformanceEntries.push(t(n))}function lve(t){return t.map(cve).filter(Boolean)}function cve(t){const e=ave[t.entryType];return e?e(t):null}function _p(t){return((que||lr.performance.timeOrigin)+t)/1e3}function uve(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=_p(i);return{type:n,name:r,start:o,end:o+e,data:void 0}}function dve(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:d,loadEventStart:h,loadEventEnd:p,redirectCount:y,startTime:w,transferSize:C,type:k}=t;return i===0?null:{type:`${e}.${k}`,start:_p(w),end:_p(o),name:n,data:{size:C,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:d,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:h,loadEventEnd:p,domComplete:o,redirectCount:y}}}function fve(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:d}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:_p(o),end:_p(i),name:r,data:{size:d,statusCode:l,decodedBodySize:s,encodedBodySize:a}}}function hve(t){const e=t.entries[t.entries.length-1],n=e&&e.element?[e.element]:void 0;return uS(t,"largest-contentful-paint",n)}function pve(t){return t.sources!==void 0}function gve(t){const e=[],n=[];for(const r of t.entries)if(pve(r)){const i=[];for(const o of r.sources)if(o.node){n.push(o.node);const s=Gl.mirror.getId(o.node);s&&i.push(s)}e.push({value:r.value,nodeIds:i.length?i:void 0})}return uS(t,"cumulative-layout-shift",n,e)}function mve(t){const e=t.entries[t.entries.length-1],n=e&&e.target?[e.target]:void 0;return uS(t,"first-input-delay",n)}function vve(t){const e=t.entries[t.entries.length-1],n=e&&e.target?[e.target]:void 0;return uS(t,"interaction-to-next-paint",n)}function uS(t,e,n,r){const i=t.value,o=t.rating,s=_p(i);return{type:"web-vital",name:e,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map(a=>Gl.mirror.getId(a)):void 0,attributions:r}}}function bve(t){function e(i){t.performanceEntries.includes(i)||t.performanceEntries.push(i)}function n({entries:i}){i.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(ope(i,n))}),r.push(npe(Kb(hve,t)),tpe(Kb(gve,t)),rpe(Kb(mve,t)),ipe(Kb(vve,t))),()=>{r.forEach(i=>i())}}const yve='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function xve(){const t=new Blob([yve]);return URL.createObjectURL(t)}class O$ extends Error{constructor(){super(`Event buffer exceeded maximum size of ${A$}.`)}}class ej{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const n=JSON.stringify(e).length;if(this._totalSize+=n,this._totalSize>A$)throw new O$;this.events.push(e)}finish(){return new Promise(e=>{const n=this.events;this.clear(),e(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(n=>n.timestamp).sort()[0];return e?$$(e):null}}class wve{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){qt&&Kt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((i,o)=>{const s=({data:a})=>{const l=a;if(l.method===e&&l.id===r){if(this._worker.removeEventListener("message",s),!l.success){qt&&Kt.error("Error in compression worker: ",l.response),o(new Error("Error in compression worker"));return}i(l.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class Sve{constructor(e){this._worker=new wve(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const n=$$(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>A$?Promise.reject(new O$):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{qt&&Kt.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Cve{constructor(e){this._fallback=new ej,this._compression=new Sve(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){qt&&Kt.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:n}=this._fallback,r=[];for(const i of e)r.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(i){qt&&Kt.exception(i,"Failed to add events when switching buffers.")}}}function Eve({useCompression:t,workerUrl:e}){if(t&&window.Worker){const n=Ave(e);if(n)return n}return qt&&Kt.info("Using simple buffer"),new ej}function Ave(t){try{const e=t||kve();if(!e)return;qt&&Kt.info(`Using compression worker${t?` from ${t}`:""}`);const n=new Worker(e);return new Cve(n)}catch(e){qt&&Kt.exception(e,"Failed to create compression worker")}}function kve(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?xve():""}function I$(){try{return"sessionStorage"in lr&&!!lr.sessionStorage}catch{return!1}}function Tve(t){_ve(),t.session=void 0}function _ve(){if(I$())try{lr.sessionStorage.removeItem(C$)}catch{}}function tj(t){return t===void 0?!1:Math.random()<t}function nj(t){const e=Date.now(),n=t.id||Ai(),r=t.started||e,i=t.lastActivity||e,o=t.segmentId||0,s=t.sampled,a=t.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:s,previousSessionId:a}}function R$(t){if(I$())try{lr.sessionStorage.setItem(C$,JSON.stringify(t))}catch{}}function Dve(t,e){return tj(t)?"session":e?"buffer":!1}function uL({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const i=Dve(t,e),o=nj({sampled:i,previousSessionId:r});return n&&R$(o),o}function $ve(){if(!I$())return null;try{const t=lr.sessionStorage.getItem(C$);if(!t)return null;const e=JSON.parse(t);return qt&&Kt.infoTick("Loading existing session"),nj(e)}catch{return null}}function bT(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function rj(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return bT(t.started,e,r)||bT(t.lastActivity,n,r)}function ij(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!rj(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function oA({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const i=r.stickySession&&$ve();return i?ij(i,{sessionIdleExpire:t,maxReplayDuration:e})?(qt&&Kt.infoTick("Session in sessionStorage is expired, creating new one..."),uL(r,{previousSessionId:i.id})):i:(qt&&Kt.infoTick("Creating new session"),uL(r,{previousSessionId:n}))}function Ove(t){return t.type===cn.Custom}function M$(t,e,n){return sj(t,e)?(oj(t,e,n),!0):!1}function Ive(t,e,n){return sj(t,e)?oj(t,e,n):Promise.resolve(null)}async function oj(t,e,n){if(!t.eventBuffer)return null;try{n&&t.recordingMode==="buffer"&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);const r=t.getOptions(),i=Rve(e,r.beforeAddRecordingEvent);return i?await t.eventBuffer.addEvent(i):void 0}catch(r){const i=r&&r instanceof O$?"addEventSizeExceeded":"addEvent";t.handleException(r),await t.stop({reason:i});const o=Kn();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}function sj(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=$$(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(qt&&Kt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Rve(t,e){try{if(typeof e=="function"&&Ove(t))return e(t)}catch(n){return qt&&Kt.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function P$(t){return!t.type}function yT(t){return t.type==="transaction"}function Mve(t){return t.type==="replay_event"}function dL(t){return t.type==="feedback"}function Pve(t){return(e,n)=>{if(!t.isEnabled()||!P$(e)&&!yT(e))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(yT(e)){Nve(t,e);return}Lve(t,e)}}}function Nve(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function Lve(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();typeof r=="function"&&!r(e)||Ap(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(i){t.handleException(i)}})}function Fve(t){return e=>{!t.isEnabled()||!P$(e)||Bve(t,e)}}function Bve(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Ba({category:"replay.hydrate-error",data:{url:Iz()}});m0(t,r)}}function zve(t){const e=Kn();e&&e.on("beforeAddBreadcrumb",n=>Hve(t,n))}function Hve(t,e){if(!t.isEnabled()||!aj(e))return;const n=jve(e);n&&m0(t,n)}function jve(t){return!aj(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:t.category==="console"?Wve(t):Ba(t)}function Wve(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return Ba(t);let n=!1;const r=e.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Xb?(n=!0,`${i.slice(0,Xb)}…`):i;if(typeof i=="object")try{const o=Ia(i,7);return JSON.stringify(o).length>Xb?(n=!0,`${JSON.stringify(o,null,2).slice(0,Xb)}…`):o}catch{}return i});return Ba({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function aj(t){return!!t.category}function Uve(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function Vve(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:cn.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function Yve(t,e){return t.recordingMode!=="buffer"||e.message===E$||!e.exception||e.type?!1:tj(t.getOptions().errorSampleRate)}function Xve(t){return Object.assign((e,n)=>!t.isEnabled()||t.isPaused()?e:Mve(e)?(delete e.breadcrumbs,e):!P$(e)&&!yT(e)&&!dL(e)||!t.checkAndHandleExpiredSession()?e:dL(e)?(t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),Vve(t,e),e):Uve(e,n)&&!t.getOptions()._experiments.captureExceptions?(qt&&Kt.log("Ignoring error from rrweb internals",e),null):((Yve(t,e)||t.recordingMode==="session")&&(e.tags={...e.tags,replayId:t.getSessionId()}),e),{id:"Replay"})}function dS(t,e){return e.map(({type:n,start:r,end:i,name:o,data:s})=>{const a=t.throttledAddEvent({type:cn.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function Gve(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function qve(t){return e=>{if(!t.isEnabled())return;const n=Gve(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(dS(t,[n]),!1)))}}function Kve(t,e){return qt&&t.getOptions()._experiments.traceInternals?!1:Xfe(e,Kn())}function lj(t,e){t.isEnabled()&&e!==null&&(Kve(t,e.name)||t.addUpdate(()=>(dS(t,[e]),!0)))}function fS(t){if(!t)return;const e=new TextEncoder;try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=fj(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function cj(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function uj(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[fj(t)];if(!t)return[void 0]}catch(e){return qt&&Kt.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return qt&&Kt.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function d1(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function dj(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:l}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:xi({method:o,statusCode:s,request:a,response:l})}}function kv(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function yu(t,e,n){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:i,warnings:o}=Jve(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function xT(t,e){return Object.entries(t).reduce((n,[r,i])=>{const o=r.toLowerCase();return e.includes(o)&&t[r]&&(n[o]=i),n},{})}function fj(t){return new URLSearchParams(t).toString()}function Jve(t){if(!t||typeof t!="string")return{body:t};const e=t.length>XN,n=Zve(t);if(e){const r=t.slice(0,XN);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function Zve(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function f1(t,e){const n=Qve(t);return i0(n,e)}function Qve(t,e=lr.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(lr.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function e0e(t,e,n){try{const r=await n0e(t,e,n),i=dj("resource.fetch",r);lj(n.replay,i)}catch(r){qt&&Kt.exception(r,"Failed to capture fetch breadcrumb")}}function t0e(t,e){const{input:n,response:r}=e,i=n?hj(n):void 0,o=fS(i),s=r?cj(r.headers.get("content-length")):void 0;o!==void 0&&(t.data.request_body_size=o),s!==void 0&&(t.data.response_body_size=s)}async function n0e(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=e,{url:s,method:a,status_code:l=0,request_body_size:d,response_body_size:h}=t.data,p=f1(s,n.networkDetailAllowUrls)&&!f1(s,n.networkDetailDenyUrls),y=p?r0e(n,e.input,d):kv(d),w=await i0e(p,n,e.response,h);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:l,request:y,response:w}}function r0e({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=n?a0e(n,e):{};if(!t)return yu(i,r,void 0);const o=hj(n),[s,a]=uj(o),l=yu(i,r,s);return a?d1(l,a):l}async function i0e(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,i){if(!t&&i!==void 0)return kv(i);const o=r?pj(r.headers,n):{};if(!r||!e&&i!==void 0)return yu(o,i,void 0);const[s,a]=await s0e(r),l=o0e(s,{networkCaptureBodies:e,responseBodySize:i,captureDetails:t,headers:o});return a?d1(l,a):l}function o0e(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:i}){try{const o=t&&t.length&&n===void 0?fS(t):n;return r?e?yu(i,o,t):yu(i,o,void 0):kv(o)}catch(o){return qt&&Kt.exception(o,"Failed to serialize response body"),yu(i,n,void 0)}}async function s0e(t){const e=l0e(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await c0e(e)]}catch(n){return qt&&Kt.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function hj(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function pj(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}function a0e(t,e){return t.length===1&&typeof t[0]!="string"?fL(t[0],e):t.length===2?fL(t[1],e):{}}function fL(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?pj(n,e):Array.isArray(n)?{}:xT(n,e):{}}function l0e(t){try{return t.clone()}catch(e){qt&&Kt.exception(e,"Failed to clone response body")}}function c0e(t){return new Promise((e,n)=>{const r=Ap(()=>n(new Error("Timeout while trying to read response body")),500);u0e(t).then(i=>e(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function u0e(t){return await t.text()}async function d0e(t,e,n){try{const r=h0e(t,e,n),i=dj("resource.xhr",r);lj(n.replay,i)}catch(r){qt&&Kt.exception(r,"Failed to capture xhr breadcrumb")}}function f0e(t,e){const{xhr:n,input:r}=e;if(!n)return;const i=fS(r),o=n.getResponseHeader("content-length")?cj(n.getResponseHeader("content-length")):v0e(n.response,n.responseType);i!==void 0&&(t.data.request_body_size=i),o!==void 0&&(t.data.response_body_size=o)}function h0e(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=e,{url:l,method:d,status_code:h=0,request_body_size:p,response_body_size:y}=t.data;if(!l)return null;if(!a||!f1(l,n.networkDetailAllowUrls)||f1(l,n.networkDetailDenyUrls)){const H=kv(p),G=kv(y);return{startTimestamp:i,endTimestamp:o,url:l,method:d,statusCode:h,request:H,response:G}}const w=a[kh],C=w?xT(w.request_headers,n.networkRequestHeaders):{},k=xT(p0e(a),n.networkResponseHeaders),[D,I]=n.networkCaptureBodies?uj(s):[void 0],[_,L]=n.networkCaptureBodies?g0e(a):[void 0],M=yu(C,p,D),F=yu(k,y,_);return{startTimestamp:i,endTimestamp:o,url:l,method:d,statusCode:h,request:I?d1(M,I):M,response:L?d1(F,L):F}}function p0e(t){const e=t.getAllResponseHeaders();return e?e.split(`\r
`).reduce((n,r)=>{const[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}function g0e(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return m0e(t.response,t.responseType)}catch(n){e.push(n)}return qt&&Kt.warn("Failed to get xhr response body",...e),[void 0]}function m0e(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return qt&&Kt.exception(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return qt&&Kt.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function v0e(t,e){try{const n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return fS(n)}catch{return}}function b0e(t){const e=Kn();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};e&&e.on("beforeAddBreadcrumb",(l,d)=>y0e(a,l,d))}catch{}}function y0e(t,e,n){if(e.data)try{x0e(e)&&S0e(n)&&(f0e(e,n),d0e(e,n,t)),w0e(e)&&C0e(n)&&(t0e(e,n),e0e(e,n,t))}catch(r){qt&&Kt.exception(r,"Error when enriching network breadcrumb")}}function x0e(t){return t.category==="xhr"}function w0e(t){return t.category==="fetch"}function S0e(t){return t&&t.xhr}function C0e(t){return t&&t.response}function E0e(t){const e=Kn();EH(eve(t)),S$(qve(t)),zve(t),b0e(t);const n=Xve(t);Ofe(n),e&&(e.on("beforeSendEvent",Fve(t)),e.on("afterSendEvent",Pve(t)),e.on("createDsc",r=>{const i=t.getSessionId();i&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(r.replay_id=i)}),e.on("spanStart",r=>{t.lastActiveSpan=r}),e.on("spanEnd",r=>{t.lastActiveSpan=r}),e.on("beforeSendFeedback",(r,i)=>{const o=t.getSessionId();i&&i.includeReplay&&t.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}async function A0e(t){try{return Promise.all(dS(t,[k0e(lr.performance.memory)]))}catch{return[]}}function k0e(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function T0e(t,e,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return l(),r=t(),r}function l(){i!==void 0&&clearTimeout(i),o!==void 0&&clearTimeout(o),i=o=void 0}function d(){return i!==void 0||o!==void 0?a():r}function h(){return i&&clearTimeout(i),i=Ap(a,e),s&&o===void 0&&(o=Ap(a,s)),r}return h.cancel=l,h.flush=d,h}function _0e(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){qt&&Kt.warn("Received replay event after session expired.");return}const i=r||!e;e=!0,t.clickDetector&&qme(t.clickDetector,n),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&i&&t.setInitialState(),!M$(t,n,i))return!0;if(!i)return!1;const o=t.session;if($0e(t,i),o&&o.previousSessionId)return!0;if(t.recordingMode==="buffer"&&o&&t.eventBuffer){const s=t.eventBuffer.getEarliestTimestamp();s&&(qt&&Kt.info(`Updating session start time to earliest event in buffer to ${new Date(s)}`),o.started=s,t.getOptions().stickySession&&R$(o))}return t.recordingMode==="session"&&t.flush(),!0})}}function D0e(t){const e=t.getOptions();return{type:cn.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function $0e(t,e){!e||!t.session||t.session.segmentId!==0||M$(t,D0e(t),!1)}function O0e(){const t=co().getPropagationContext().dsc;t&&delete t.replay_id;const e=Qx();if(e){const n=u0(e);delete n.replay_id}}function I0e(t,e,n,r){return _f(Wz(t,l$(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function R0e({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}
`;if(typeof t=="string")n=`${r}${t}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+t.length),n.set(o),n.set(t,o.length)}return n}async function M0e({client:t,scope:e,replayId:n,event:r}){const i=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,o={event_id:n,integrations:i};t.emit("preprocessEvent",r,o);const s=await rH(t.getOptions(),r,o,e,t,pc());if(!s)return null;s.platform=s.platform||"javascript";const a=t.getSdkMetadata(),{name:l,version:d}=a&&a.sdk||{};return s.sdk={...s.sdk,name:l||"sentry.javascript.unknown",version:d||"0.0.0"},s}async function P0e({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=R0e({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:l,traceIds:d,initialTimestamp:h}=r,p=Kn(),y=co(),w=p&&p.getTransport(),C=p&&p.getDsn();if(!p||!w||!C||!o.sampled)return rc({});const k={type:gge,replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:l,trace_ids:d,urls:a,replay_id:e,segment_id:n,replay_type:o.sampled},D=await M0e({scope:y,client:p,replayId:e,event:k});if(!D)return p.recordDroppedEvent("event_processor","replay",k),qt&&Kt.info("An event processor returned `null`, will not send event."),rc({});delete D.sdkProcessingMetadata;const I=I0e(D,s,C,p.getOptions().tunnel);let _;try{_=await w.send(I)}catch(M){const F=new Error(E$);try{F.cause=M}catch{}throw F}if(typeof _.statusCode=="number"&&(_.statusCode<200||_.statusCode>=300))throw new gj(_.statusCode);const L=Vz({},_);if(Uz(L,"replay"))throw new N$(L);return _}class gj extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class N$ extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function mj(t,e={count:0,interval:wge}){const{recordingData:n,onError:r}=t;if(n.length)try{return await P0e(t),!0}catch(i){if(i instanceof gj||i instanceof N$)throw i;if($fe("Replays",{_retryCount:e.count}),r&&r(i),e.count>=Sge){const o=new Error(`${E$} - max retries exceeded`);try{o.cause=i}catch{}throw o}return e.interval*=++e.count,new Promise((o,s)=>{Ap(async()=>{try{await mj(t,e),o(!0)}catch(a){s(a)}},e.interval)})}}const vj="__THROTTLED",N0e="__SKIPPED";function L0e(t,e,n){const r=new Map,i=a=>{const l=a-n;r.forEach((d,h)=>{h<l&&r.delete(h)})},o=()=>[...r.values()].reduce((a,l)=>a+l,0);let s=!1;return(...a)=>{const l=Math.floor(Date.now()/1e3);if(i(l),o()>=e){const h=s;return s=!0,h?N0e:vj}s=!1;const d=r.get(l)||0;return r.set(l,d+1),t(...a)}}class Qc{constructor({options:e,recordingOptions:n}){Qc.prototype.__init.call(this),Qc.prototype.__init2.call(this),Qc.prototype.__init3.call(this),Qc.prototype.__init4.call(this),Qc.prototype.__init5.call(this),Qc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:mge,sessionIdleExpire:vge},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=e,this._debouncedFlush=T0e(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=L0e((s,a)=>Ive(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(Cge,r),timeout:r,scrollTimeout:Ege,ignoreSelector:i?i.join(","):""}:void 0;if(o&&(this.clickDetector=new Vme(this,o)),qt){const s=e._experiments;Kt.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){qt&&Kt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(e),!this.session){qt&&Kt.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",qt&&Kt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){qt&&Kt.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){qt&&Kt.info("Buffering is in progress, call `flush()` to save the replay");return}qt&&Kt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=oA({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled){qt&&Kt.info("Buffering is in progress, call `flush()` to save the replay");return}qt&&Kt.infoTick("Starting replay in buffer mode");const e=oA({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Gl({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:xge}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:_0e(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{qt&&Kt.info(`Stopping Replay${n?` triggered by ${n}`:""}`),O0e(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Tve(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),qt&&Kt.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),qt&&Kt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();qt&&Kt.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!e||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const n=e();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&bT(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${lr.location.pathname}${lr.location.hash}${lr.location.search}`,n=`${lr.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===vj){const i=Ba({category:"replay.throttled"});this.addUpdate(()=>!M$(this,{type:Fme,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||Qx(),n=e&&Xl(e),i=(n&&No(n).data||{})[nS];if(!(!n||!i||!["route","custom"].includes(i)))return No(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Eve({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=oA({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return ij(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{lr.document.addEventListener("visibilitychange",this._handleVisibilityChange),lr.addEventListener("blur",this._handleWindowBlur),lr.addEventListener("focus",this._handleWindowFocus),lr.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(E0e(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=bve(this)}_removeListeners(){try{lr.document.removeEventListener("visibilitychange",this._handleVisibilityChange),lr.removeEventListener("blur",this._handleWindowBlur),lr.removeEventListener("focus",this._handleWindowFocus),lr.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{lr.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ba({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ba({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{ive(this,e)}}_doChangeToBackgroundTasks(e){!this.session||rj(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){qt&&Kt.info("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:cn.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=lve(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(dS(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:n}=this;if(!e||!n||this._requiresManualStart||e.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){qt&&Kt.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await A0e(this),!!this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await mj({replayId:e,recordingData:o,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Kn();if(r){const i=n instanceof N$?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){qt&&Kt.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){qt&&Kt.info(`Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&qt&&Kt.info("Flushing initial segment without checkout.");const l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&R$(this.session)}__init6(){this._onMutationHandler=e=>{const n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>i||o){const s=Ba({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(s)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function zg(t,e){return[...t,...e].join(",")}function F0e({mask:t,unmask:e,block:n,unblock:r,ignore:i}){const o=['base[href="/"]'],s=zg(t,[".sentry-mask","[data-sentry-mask]"]),a=zg(e,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:zg(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:zg(r,[]),ignoreSelector:zg(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function B0e({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?o:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const hL='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',z0e=["content-length","content-type","accept"];let pL=!1;const Kwt=t=>new hS(t);class hS{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=bge,flushMaxDelay:n=yge,minReplayDuration:r=Age,maxReplayDuration:i=GN,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:l={},maskAllText:d=!0,maskAllInputs:h=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:y=750,mutationLimit:w=1e4,slowClickTimeout:C=7e3,slowClickIgnoreSelectors:k=[],networkDetailAllowUrls:D=[],networkDetailDenyUrls:I=[],networkCaptureBodies:_=!0,networkRequestHeaders:L=[],networkResponseHeaders:M=[],mask:F=[],maskAttributes:H=["title","placeholder"],unmask:G=[],block:X=[],unblock:Z=[],ignore:te=[],maskFn:ae,beforeAddRecordingEvent:ye,beforeErrorSampling:ve}={}){this.name=hS.id;const se=F0e({mask:F,unmask:G,block:X,unblock:Z,ignore:te});if(this._recordingOptions={maskAllInputs:h,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:ae,maskInputFn:ae,maskAttributeFn:(J,B,V)=>B0e({maskAttributes:H,maskAllText:d,privacyOptions:se,key:J,value:B,el:V}),...se,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:J=>{try{J.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,kge),maxReplayDuration:Math.min(i,GN),stickySession:o,useCompression:s,workerUrl:a,blockAllMedia:p,maskAllInputs:h,maskAllText:d,mutationBreadcrumbLimit:y,mutationLimit:w,slowClickTimeout:C,slowClickIgnoreSelectors:k,networkDetailAllowUrls:D,networkDetailDenyUrls:I,networkCaptureBodies:_,networkRequestHeaders:gL(L),networkResponseHeaders:gL(M),beforeAddRecordingEvent:ye,beforeErrorSampling:ve,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${hL}`:hL),this._isInitialized&&dN())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return pL}set _isInitialized(e){pL=e}afterAllSetup(e){!dN()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const n=H0e(this._initialOptions,e);this._replay=new Qc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const n=e.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}hS.__initStatic();function H0e(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...xi(t)},i=e1(n.replaysSessionSampleRate),o=e1(n.replaysOnErrorSampleRate);return i==null&&o==null&&hc(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),o!=null&&(r.errorSampleRate=o),r}function gL(t){return[...z0e,...t.map(e=>e.toLowerCase())]}var mL;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(mL||(mL={}));function j0e(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function wT(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:wT(t.parentNode,e,n,r+1)}function vL(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(j0e(r,t))return!0}return!!(e&&r.matches(e))}catch{return!1}}}const xh=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let bL={map:{},getId(){return console.error(xh),-1},getNode(){return console.error(xh),null},removeNodeFromMap(){console.error(xh)},has(){return console.error(xh),!1},reset(){console.error(xh)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(bL=new Proxy(bL,{get(t,e,n){return e==="map"&&console.error(xh),Reflect.get(t,e,n)}}));function L$(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(s){yj(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>L$(t,e,o||{},!0)}function F$(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function W0e(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function pS(t,e,n,r,i){if(!t)return!1;const o=W0e(t);if(!o)return!1;const s=vL(e,n);if(!i){const d=r&&o.matches(r);return s(o)&&!d}const a=wT(o,s);let l=-1;return a<0?!1:(r&&(l=wT(o,vL(null,r))),a>-1&&l<0?!0:a<l)}const yL={};function bj(t){const e=yL[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(i)}catch{}return yL[t]=r.bind(window)}function dd(...t){return bj("requestAnimationFrame")(...t)}function yj(...t){return bj("setTimeout")(...t)}var Dp=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Dp||{});let sx;function U0e(t){sx=t}const sA=t=>sx?(...n)=>{try{return t(...n)}catch(r){if(sx&&sx(r)===!0)return()=>{};throw r}}:t;var Oh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V0e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Jb=0;Jb<Oh.length;Jb++)V0e[Oh.charCodeAt(Jb)]=Jb;var Y0e=function(t){var e=new Uint8Array(t),n,r=e.length,i="";for(n=0;n<r;n+=3)i+=Oh[e[n]>>2],i+=Oh[(e[n]&3)<<4|e[n+1]>>4],i+=Oh[(e[n+1]&15)<<2|e[n+2]>>6],i+=Oh[e[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const xL=new Map;function X0e(t,e){let n=xL.get(t);return n||(n=new Map,xL.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const xj=(t,e,n)=>{if(!t||!(Sj(t,e)||typeof t=="object"))return;const r=t.constructor.name,i=X0e(n,r);let o=i.indexOf(t);return o===-1&&(o=i.length,i.push(t)),o};function ax(t,e,n){if(t instanceof Array)return t.map(r=>ax(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,i=Y0e(t);return{rr_type:r,base64:i}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[ax(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:i}=t;return{rr_type:r,src:i}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",i=t.toDataURL();return{rr_type:r,src:i}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[ax(t.data,e,n),t.width,t.height]};if(Sj(t,e)||typeof t=="object"){const r=t.constructor.name,i=xj(t,e,n);return{rr_type:r,index:i}}}}return t}const wj=(t,e,n)=>t.map(r=>ax(r,e,n)),Sj=(t,e)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function");return Boolean(r.find(i=>t instanceof e[i]))};function G0e(t,e,n,r,i){const o=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof e.CanvasRenderingContext2D.prototype[a]!="function")continue;const l=F$(e.CanvasRenderingContext2D.prototype,a,function(d){return function(...h){return pS(this.canvas,n,r,i,!0)||yj(()=>{const p=wj(h,e,this);t(this.canvas,{type:Dp["2D"],property:a,args:p})},0),d.apply(this,h)}});o.push(l)}catch{const d=L$(e.CanvasRenderingContext2D.prototype,a,{set(h){t(this.canvas,{type:Dp["2D"],property:a,args:[h],setter:!0})}});o.push(d)}return()=>{o.forEach(a=>a())}}function q0e(t){return t==="experimental-webgl"?"webgl":t}function wL(t,e,n,r,i){const o=[];try{const s=F$(t.HTMLCanvasElement.prototype,"getContext",function(a){return function(l,...d){if(!pS(this,e,n,r,!0)){const h=q0e(l);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(d[0]&&typeof d[0]=="object"){const p=d[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else d.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[l,...d])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function SL(t,e,n,r,i,o,s,a){const l=[],d=Object.getOwnPropertyNames(t);for(const h of d)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof t[h]!="function")continue;const p=F$(t,h,function(y){return function(...w){const C=y.apply(this,w);if(xj(C,a,this),"tagName"in this.canvas&&!pS(this.canvas,r,i,o,!0)){const k=wj(w,a,this),D={type:e,property:h,args:k};n(this.canvas,D)}return C}});l.push(p)}catch{const y=L$(t,h,{set(w){n(this.canvas,{type:e,property:h,args:[w],setter:!0})}});l.push(y)}return l}function K0e(t,e,n,r,i,o){const s=[];return s.push(...SL(e.WebGLRenderingContext.prototype,Dp.WebGL,t,n,r,i,o,e)),typeof e.WebGL2RenderingContext<"u"&&s.push(...SL(e.WebGL2RenderingContext.prototype,Dp.WebGL2,t,n,r,i,o,e)),()=>{s.forEach(a=>a())}}var J0e='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function Z0e(){const t=new Blob([J0e]);return URL.createObjectURL(t)}class Q0e{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,zd([this,"access",e=>e.worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this.worker=null,this.snapshotInProgressMap=new Map,(this.options.recordCanvas&&typeof this.options.sampling=="number"||this.options.enableManualSnapshot)&&(this.worker=this.initFPSWorker())}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(p,y)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(p)||this.pendingCanvasMutations.set(p,[]),this.pendingCanvasMutations.get(p).push(y)};const{sampling:n="all",win:r,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:a,recordCanvas:l,dataURLOptions:d,errorHandler:h}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,h&&U0e(h),(l&&typeof n=="number"||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!e.enableManualSnapshot&&sA(()=>{l&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),l&&typeof n=="number"&&this.initCanvasFPSObserver(n,i,o,s,a,{dataURLOptions:d})})()}addWindow(e){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}sA(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(e,r,i,o),s&&typeof n=="number"){const l=wL(e,r,i,o,!0);this.restoreHandlers.push(()=>{l()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const e=new Worker(Z0e());return e.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:l}=r;this.mutationCb({id:i,type:Dp["2D"],commands:[{property:"clearRect",args:[0,0,a,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,l]}]})},e}initCanvasFPSObserver(e,n,r,i,o,s){const a=this.takeSnapshot(!1,e,n,r,i,o,s.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(e,n,r,i){const o=wL(e,n,r,i,!1),s=G0e(this.processMutation.bind(this),e,n,r,i),a=K0e(this.processMutation.bind(this),e,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}snapshot(e){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,e);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(e,n,r,i,o,s,a,l){const d=1e3/n;let h=0,p;const y=C=>{if(C)return[C];const k=[],D=I=>{I.querySelectorAll("canvas").forEach(_=>{pS(_,r,i,o,!0)||k.push(_)})};for(const I of this.windows){const _=I.deref();_&&D(_.document)}for(const I of this.shadowDoms){const _=I.deref();_&&D(_)}return k},w=C=>{if(this.windows.length){if(h&&C-h<d){p=dd(w);return}h=C,y(l).forEach(k=>{if(!this.mirror.hasNode(k))return;const D=this.mirror.getId(k);if(!this.snapshotInProgressMap.get(D)&&!(!k.width||!k.height)){if(this.snapshotInProgressMap.set(D,!0),!e&&["webgl","webgl2"].includes(k.__context)){const I=k.getContext(k.__context);zd([I,"optionalAccess",_=>_.getContextAttributes,"call",_=>_(),"optionalAccess",_=>_.preserveDrawingBuffer])===!1&&I.clear(I.COLOR_BUFFER_BIT)}createImageBitmap(k).then(I=>{zd([this,"access",_=>_.worker,"optionalAccess",_=>_.postMessage,"call",_=>_({id:D,bitmap:I,width:k.width,height:k.height,dataURLOptions:a,maxCanvasSize:s},[I])])}).catch(I=>{sA(()=>{throw I})()})}}),e||(p=dd(w))}};return p=dd(w),p}startPendingCanvasMutationFlusher(){dd(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,dd(e)};dd(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),dd(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const i=r.map(s=>{const{type:a,...l}=s;return l}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(e)}}const CL={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},ebe="ReplayCanvas",Zb=1280,tbe=(t={})=>{const[e,n]=t.maxCanvasSize||[],r={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,Zb):Zb,n?Math.min(n,Zb):Zb]};let i;const o=new Promise(s=>i=s);return{name:ebe,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:l}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:d=>{const h=new Q0e({...d,enableManualSnapshot:a,maxCanvasSize:l,errorHandler:p=>{try{typeof p=="object"&&(p.__rrweb__=!0)}catch{}}});return i(h),h},...CL[s||"medium"]||CL.medium}},async snapshot(s){(await o).snapshot(s)}}},Jwt=tbe,Cj=["activate","mount","update"],Ej=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,nbe=/(?:^|[-_])(\w)/g,rbe=t=>t.replace(nbe,e=>e.toUpperCase()).replace(/[-_]/g,""),ibe="<Root>",aA="<Anonymous>",obe=(t,e)=>t.repeat(e),Mm=(t,e)=>{if(!t)return aA;if(t.$root===t)return ibe;if(!t.$options)return aA;const n=t.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const o=i.match(/([^/\\]+)\.vue$/);o&&(r=o[1])}return(r?`<${rbe(r)}>`:aA)+(i&&e!==!1?` at ${i}`:"")},sbe=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;for(;t;){if(e.length>0){const i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}else n>0&&(e[e.length-1]=[i,n],n=0)}e.push(t),t=t.$parent}return`

found in

${e.map((i,o)=>`${(o===0?"---> ":obe(" ",5+o*2))+(Array.isArray(i)?`${Mm(i[0])}... (${i[1]} recursive calls)`:Mm(i))}`).join(`
`)}`}return`

(found in ${Mm(t)})`},abe=(t,e)=>{const{errorHandler:n,warnHandler:r,silent:i}=t.config;t.config.errorHandler=(o,s,a)=>{const l=Mm(s,!1),d=s?sbe(s):"",h={componentName:l,lifecycleHook:a,trace:d};if(e.attachProps&&s&&(s.$options&&s.$options.propsData?h.propsData=s.$options.propsData:s.$props&&(h.propsData=s.$props)),setTimeout(()=>{g$(o,{captureContext:{contexts:{vue:h}},mechanism:{handled:!1}})}),typeof n=="function"&&t.config.errorHandler&&n.call(t,o,s,a),e.logErrors){const p=typeof console<"u",y=`Error in ${a}: "${o&&o.toString()}"`;r?r.call(null,y,s,d):p&&!i&&hc(()=>{console.error(`[Vue warn]: ${y}${d}`)})}}},EL="ui.vue",lbe={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function cbe(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(e),t.$root.$_sentryRootSpan=void 0)},n)}function ube(t,e){function n(i){return i.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return t.some(i=>n(e)===n(i))}const dbe=t=>{const e=(t.hooks||[]).concat(Cj).filter((r,i,o)=>o.indexOf(r)===i),n={};for(const r of e){const i=lbe[r];if(!i){Ej&&Ot.warn(`Unknown hook: ${r}`);continue}for(const o of i)n[o]=function(){const s=this.$root===this;s&&Qx()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||AN({name:"Application Render",op:`${EL}.render`,attributes:{[xv]:"auto.ui.vue"}}));const a=Mm(this,!1),l=Array.isArray(t.trackComponents)?ube(t.trackComponents,a):t.trackComponents;if(!(!s&&!l))if(this.$_sentrySpans=this.$_sentrySpans||{},o==i[0]){if(this.$root&&this.$root.$_sentryRootSpan||Qx()){const h=this.$_sentrySpans[r];h&&h.end(),this.$_sentrySpans[r]=AN({name:`Vue ${a}`,op:`${EL}.${r}`,attributes:{[xv]:"auto.ui.vue"},onlyIfParent:!0})}}else{const d=this.$_sentrySpans[r];if(!d)return;d.end(),cbe(this,Ts(),t.timeout)}}}return n},fbe=En,hbe={Vue:fbe.Vue,attachProps:!0,logErrors:!0,attachErrorHandler:!0,hooks:Cj,timeout:2e3,trackComponents:!1},pbe="Vue",gbe=(t={})=>({name:pbe,setup(e){vbe(e,t)}}),mbe=gbe;function vbe(t,e){const n={...hbe,...t.getOptions(),...e};if(!n.Vue&&!n.app){hc(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?a$(n.app).forEach(i=>AL(i,n)):n.Vue&&AL(n.Vue,n)}const AL=(t,e)=>{if(Ej){const n=t;(n._instance&&n._instance.isMounted)===!0&&hc(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")})}e.attachErrorHandler&&abe(t,e),rS(e)&&t.mixin(dbe({...e,...e.tracingOptions}))};function Zwt(t={}){const e={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Yl}],version:Yl}},defaultIntegrations:[..._H(),mbe()],...t};return hge(e)}var lu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function B$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Bu(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(e,i);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var ST={},bbe={get exports(){return ST},set exports(t){ST=t}};(function(t,e){(function(n,r){t.exports=r()})(lu,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",d="day",h="week",p="month",y="quarter",w="year",C="date",k="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(se){var J=["th","st","nd","rd"],B=se%100;return"["+se+(J[(B-20)%10]||J[B]||J[0])+"]"}},L=function(se,J,B){var V=String(se);return!V||V.length>=J?se:""+Array(J+1-V.length).join(B)+se},M={s:L,z:function(se){var J=-se.utcOffset(),B=Math.abs(J),V=Math.floor(B/60),q=B%60;return(J<=0?"+":"-")+L(V,2,"0")+":"+L(q,2,"0")},m:function se(J,B){if(J.date()<B.date())return-se(B,J);var V=12*(B.year()-J.year())+(B.month()-J.month()),q=J.clone().add(V,p),ce=B-q<0,fe=J.clone().add(V+(ce?-1:1),p);return+(-(V+(B-q)/(ce?q-fe:fe-q))||0)},a:function(se){return se<0?Math.ceil(se)||0:Math.floor(se)},p:function(se){return{M:p,y:w,w:h,d,D:C,h:l,m:a,s,ms:o,Q:y}[se]||String(se||"").toLowerCase().replace(/s$/,"")},u:function(se){return se===void 0}},F="en",H={};H[F]=_;var G="$isDayjsObject",X=function(se){return se instanceof ye||!(!se||!se[G])},Z=function se(J,B,V){var q;if(!J)return F;if(typeof J=="string"){var ce=J.toLowerCase();H[ce]&&(q=ce),B&&(H[ce]=B,q=ce);var fe=J.split("-");if(!q&&fe.length>1)return se(fe[0])}else{var Ae=J.name;H[Ae]=J,q=Ae}return!V&&q&&(F=q),q||!V&&F},te=function(se,J){if(X(se))return se.clone();var B=typeof J=="object"?J:{};return B.date=se,B.args=arguments,new ye(B)},ae=M;ae.l=Z,ae.i=X,ae.w=function(se,J){return te(se,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var ye=function(){function se(B){this.$L=Z(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[G]=!0}var J=se.prototype;return J.parse=function(B){this.$d=function(V){var q=V.date,ce=V.utc;if(q===null)return new Date(NaN);if(ae.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var fe=q.match(D);if(fe){var Ae=fe[2]-1||0,Se=(fe[7]||"0").substring(0,3);return ce?new Date(Date.UTC(fe[1],Ae,fe[3]||1,fe[4]||0,fe[5]||0,fe[6]||0,Se)):new Date(fe[1],Ae,fe[3]||1,fe[4]||0,fe[5]||0,fe[6]||0,Se)}}return new Date(q)}(B),this.init()},J.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},J.$utils=function(){return ae},J.isValid=function(){return this.$d.toString()!==k},J.isSame=function(B,V){var q=te(B);return this.startOf(V)<=q&&q<=this.endOf(V)},J.isAfter=function(B,V){return te(B)<this.startOf(V)},J.isBefore=function(B,V){return this.endOf(V)<te(B)},J.$g=function(B,V,q){return ae.u(B)?this[V]:this.set(q,B)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(B,V){var q=this,ce=!!ae.u(V)||V,fe=ae.p(B),Ae=function(je,Ue){var Xe=ae.w(q.$u?Date.UTC(q.$y,Ue,je):new Date(q.$y,Ue,je),q);return ce?Xe:Xe.endOf(d)},Se=function(je,Ue){return ae.w(q.toDate()[je].apply(q.toDate("s"),(ce?[0,0,0,0]:[23,59,59,999]).slice(Ue)),q)},_e=this.$W,Be=this.$M,Q=this.$D,de="set"+(this.$u?"UTC":"");switch(fe){case w:return ce?Ae(1,0):Ae(31,11);case p:return ce?Ae(1,Be):Ae(0,Be+1);case h:var we=this.$locale().weekStart||0,Ce=(_e<we?_e+7:_e)-we;return Ae(ce?Q-Ce:Q+(6-Ce),Be);case d:case C:return Se(de+"Hours",0);case l:return Se(de+"Minutes",1);case a:return Se(de+"Seconds",2);case s:return Se(de+"Milliseconds",3);default:return this.clone()}},J.endOf=function(B){return this.startOf(B,!1)},J.$set=function(B,V){var q,ce=ae.p(B),fe="set"+(this.$u?"UTC":""),Ae=(q={},q[d]=fe+"Date",q[C]=fe+"Date",q[p]=fe+"Month",q[w]=fe+"FullYear",q[l]=fe+"Hours",q[a]=fe+"Minutes",q[s]=fe+"Seconds",q[o]=fe+"Milliseconds",q)[ce],Se=ce===d?this.$D+(V-this.$W):V;if(ce===p||ce===w){var _e=this.clone().set(C,1);_e.$d[Ae](Se),_e.init(),this.$d=_e.set(C,Math.min(this.$D,_e.daysInMonth())).$d}else Ae&&this.$d[Ae](Se);return this.init(),this},J.set=function(B,V){return this.clone().$set(B,V)},J.get=function(B){return this[ae.p(B)]()},J.add=function(B,V){var q,ce=this;B=Number(B);var fe=ae.p(V),Ae=function(Be){var Q=te(ce);return ae.w(Q.date(Q.date()+Math.round(Be*B)),ce)};if(fe===p)return this.set(p,this.$M+B);if(fe===w)return this.set(w,this.$y+B);if(fe===d)return Ae(1);if(fe===h)return Ae(7);var Se=(q={},q[a]=r,q[l]=i,q[s]=n,q)[fe]||1,_e=this.$d.getTime()+B*Se;return ae.w(_e,this)},J.subtract=function(B,V){return this.add(-1*B,V)},J.format=function(B){var V=this,q=this.$locale();if(!this.isValid())return q.invalidDate||k;var ce=B||"YYYY-MM-DDTHH:mm:ssZ",fe=ae.z(this),Ae=this.$H,Se=this.$m,_e=this.$M,Be=q.weekdays,Q=q.months,de=q.meridiem,we=function(Ue,Xe,qe,K){return Ue&&(Ue[Xe]||Ue(V,ce))||qe[Xe].slice(0,K)},Ce=function(Ue){return ae.s(Ae%12||12,Ue,"0")},je=de||function(Ue,Xe,qe){var K=Ue<12?"AM":"PM";return qe?K.toLowerCase():K};return ce.replace(I,function(Ue,Xe){return Xe||function(qe){switch(qe){case"YY":return String(V.$y).slice(-2);case"YYYY":return ae.s(V.$y,4,"0");case"M":return _e+1;case"MM":return ae.s(_e+1,2,"0");case"MMM":return we(q.monthsShort,_e,Q,3);case"MMMM":return we(Q,_e);case"D":return V.$D;case"DD":return ae.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return we(q.weekdaysMin,V.$W,Be,2);case"ddd":return we(q.weekdaysShort,V.$W,Be,3);case"dddd":return Be[V.$W];case"H":return String(Ae);case"HH":return ae.s(Ae,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return je(Ae,Se,!0);case"A":return je(Ae,Se,!1);case"m":return String(Se);case"mm":return ae.s(Se,2,"0");case"s":return String(V.$s);case"ss":return ae.s(V.$s,2,"0");case"SSS":return ae.s(V.$ms,3,"0");case"Z":return fe}return null}(Ue)||fe.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(B,V,q){var ce,fe=this,Ae=ae.p(V),Se=te(B),_e=(Se.utcOffset()-this.utcOffset())*r,Be=this-Se,Q=function(){return ae.m(fe,Se)};switch(Ae){case w:ce=Q()/12;break;case p:ce=Q();break;case y:ce=Q()/3;break;case h:ce=(Be-_e)/6048e5;break;case d:ce=(Be-_e)/864e5;break;case l:ce=Be/i;break;case a:ce=Be/r;break;case s:ce=Be/n;break;default:ce=Be}return q?ce:ae.a(ce)},J.daysInMonth=function(){return this.endOf(p).$D},J.$locale=function(){return H[this.$L]},J.locale=function(B,V){if(!B)return this.$L;var q=this.clone(),ce=Z(B,V,!0);return ce&&(q.$L=ce),q},J.clone=function(){return ae.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},se}(),ve=ye.prototype;return te.prototype=ve,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",d],["$M",p],["$y",w],["$D",C]].forEach(function(se){ve[se[1]]=function(J){return this.$g(J,se[0],se[1])}}),te.extend=function(se,J){return se.$i||(se(J,ye,te),se.$i=!0),te},te.locale=Z,te.isDayjs=X,te.unix=function(se){return te(1e3*se)},te.en=H[F],te.Ls=H,te.p={},te})})(bbe);const Qwt=ST;let Qb;const ybe=new Uint8Array(16);function xbe(){if(!Qb&&(Qb=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qb(ybe)}const pi=[];for(let t=0;t<256;++t)pi.push((t+256).toString(16).slice(1));function wbe(t,e=0){return(pi[t[e+0]]+pi[t[e+1]]+pi[t[e+2]]+pi[t[e+3]]+"-"+pi[t[e+4]]+pi[t[e+5]]+"-"+pi[t[e+6]]+pi[t[e+7]]+"-"+pi[t[e+8]]+pi[t[e+9]]+"-"+pi[t[e+10]]+pi[t[e+11]]+pi[t[e+12]]+pi[t[e+13]]+pi[t[e+14]]+pi[t[e+15]]).toLowerCase()}const Sbe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kL={randomUUID:Sbe};function eSt(t,e,n){if(kL.randomUUID&&!e&&!t)return kL.randomUUID();t=t||{};const r=t.random||(t.rng||xbe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=r[i];return e}return wbe(r)}var CT={},Cbe={get exports(){return CT},set exports(t){CT=t}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,y=2,w=4,C=1,k=2,D=1,I=2,_=4,L=8,M=16,F=32,H=64,G=128,X=256,Z=512,te=30,ae="...",ye=800,ve=16,se=1,J=2,B=3,V=1/0,q=9007199254740991,ce=17976931348623157e292,fe=0/0,Ae=4294967295,Se=Ae-1,_e=Ae>>>1,Be=[["ary",G],["bind",D],["bindKey",I],["curry",L],["curryRight",M],["flip",Z],["partial",F],["partialRight",H],["rearg",X]],Q="[object Arguments]",de="[object Array]",we="[object AsyncFunction]",Ce="[object Boolean]",je="[object Date]",Ue="[object DOMException]",Xe="[object Error]",qe="[object Function]",K="[object GeneratorFunction]",ee="[object Map]",be="[object Number]",$e="[object Null]",Ie="[object Object]",He="[object Promise]",rt="[object Proxy]",ze="[object RegExp]",We="[object Set]",xe="[object String]",Re="[object Symbol]",Ve="[object Undefined]",it="[object WeakMap]",xt="[object WeakSet]",At="[object ArrayBuffer]",It="[object DataView]",Oe="[object Float32Array]",Ne="[object Float64Array]",Fe="[object Int8Array]",Qe="[object Int16Array]",ht="[object Int32Array]",Me="[object Uint8Array]",Je="[object Uint8ClampedArray]",ot="[object Uint16Array]",mt="[object Uint32Array]",dt=/\b__p \+= '';/g,pt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mt=/&(?:amp|lt|gt|quot|#39);/g,Bt=/[&<>"']/g,vn=RegExp(Mt.source),ui=RegExp(Bt.source),bo=/<%-([\s\S]+?)%>/g,_i=/<%([\s\S]+?)%>/g,Ff=/<%=([\s\S]+?)%>/g,Ju=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xc=/^\w*$/,mC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zu=/[\\^$.*+?()[\]{}|]/g,ol=RegExp(Zu.source),wc=/^\s+/,vC=/\s/,bC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yC=/\{\n\/\* \[wrapped with (.+)\] \*/,xC=/,? & /,wC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,L0=/[()=,{}\[\]\/\s]/,F0=/\\(\\)?/g,mg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B0=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^\[object .+?Constructor\]$/,f=/^0o[0-7]+$/i,g=/^(?:0|[1-9]\d*)$/,v=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b=/($^)/,x=/['\n\r\u2028\u2029\\]/g,E="\\ud800-\\udfff",T="\\u0300-\\u036f",$="\\ufe20-\\ufe2f",R="\\u20d0-\\u20ff",N=T+$+R,z="\\u2700-\\u27bf",U="a-z\\xdf-\\xf6\\xf8-\\xff",Y="\\xac\\xb1\\xd7\\xf7",ne="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",le="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",A="A-Z\\xc0-\\xd6\\xd8-\\xde",P="\\ufe0e\\ufe0f",W=Y+ne+le+he,oe="['’]",pe="["+E+"]",ge="["+W+"]",ke="["+N+"]",De="\\d+",Ge="["+z+"]",Ze="["+U+"]",st="[^"+E+W+De+z+U+A+"]",ft="\\ud83c[\\udffb-\\udfff]",Wt="(?:"+ke+"|"+ft+")",nn="[^"+E+"]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",bn="[\\ud800-\\udbff][\\udc00-\\udfff]",ur="["+A+"]",mr="\\u200d",Fr="(?:"+Ze+"|"+st+")",Sc="(?:"+ur+"|"+st+")",Sa="(?:"+oe+"(?:d|ll|m|re|s|t|ve))?",Bf="(?:"+oe+"(?:D|LL|M|RE|S|T|VE))?",zf=Wt+"?",di="["+P+"]?",ti="(?:"+mr+"(?:"+[nn,on,bn].join("|")+")"+di+zf+")*",z0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sR=di+zf+ti,lq="(?:"+[Ge,on,bn].join("|")+")"+sR,cq="(?:"+[nn+ke+"?",ke,on,bn,pe].join("|")+")",uq=RegExp(oe,"g"),dq=RegExp(ke,"g"),SC=RegExp(ft+"(?="+ft+")|"+cq+sR,"g"),fq=RegExp([ur+"?"+Ze+"+"+Sa+"(?="+[ge,ur,"$"].join("|")+")",Sc+"+"+Bf+"(?="+[ge,ur+Fr,"$"].join("|")+")",ur+"?"+Fr+"+"+Sa,ur+"+"+Bf,aq,z0,De,lq].join("|"),"g"),hq=RegExp("["+mr+E+N+P+"]"),pq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mq=-1,dr={};dr[Oe]=dr[Ne]=dr[Fe]=dr[Qe]=dr[ht]=dr[Me]=dr[Je]=dr[ot]=dr[mt]=!0,dr[Q]=dr[de]=dr[At]=dr[Ce]=dr[It]=dr[je]=dr[Xe]=dr[qe]=dr[ee]=dr[be]=dr[Ie]=dr[ze]=dr[We]=dr[xe]=dr[it]=!1;var ir={};ir[Q]=ir[de]=ir[At]=ir[It]=ir[Ce]=ir[je]=ir[Oe]=ir[Ne]=ir[Fe]=ir[Qe]=ir[ht]=ir[ee]=ir[be]=ir[Ie]=ir[ze]=ir[We]=ir[xe]=ir[Re]=ir[Me]=ir[Je]=ir[ot]=ir[mt]=!0,ir[Xe]=ir[qe]=ir[it]=!1;var vq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},bq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yq={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xq={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wq=parseFloat,Sq=parseInt,aR=typeof lu=="object"&&lu&&lu.Object===Object&&lu,Cq=typeof self=="object"&&self&&self.Object===Object&&self,fi=aR||Cq||Function("return this")(),CC=e&&!e.nodeType&&e,Qu=CC&&!0&&t&&!t.nodeType&&t,lR=Qu&&Qu.exports===CC,EC=lR&&aR.process,cs=function(){try{var Pe=Qu&&Qu.require&&Qu.require("util").types;return Pe||EC&&EC.binding&&EC.binding("util")}catch{}}(),cR=cs&&cs.isArrayBuffer,uR=cs&&cs.isDate,dR=cs&&cs.isMap,fR=cs&&cs.isRegExp,hR=cs&&cs.isSet,pR=cs&&cs.isTypedArray;function Bo(Pe,Ke,Ye){switch(Ye.length){case 0:return Pe.call(Ke);case 1:return Pe.call(Ke,Ye[0]);case 2:return Pe.call(Ke,Ye[0],Ye[1]);case 3:return Pe.call(Ke,Ye[0],Ye[1],Ye[2])}return Pe.apply(Ke,Ye)}function Eq(Pe,Ke,Ye,St){for(var Zt=-1,Fn=Pe==null?0:Pe.length;++Zt<Fn;){var Xr=Pe[Zt];Ke(St,Xr,Ye(Xr),Pe)}return St}function us(Pe,Ke){for(var Ye=-1,St=Pe==null?0:Pe.length;++Ye<St&&Ke(Pe[Ye],Ye,Pe)!==!1;);return Pe}function Aq(Pe,Ke){for(var Ye=Pe==null?0:Pe.length;Ye--&&Ke(Pe[Ye],Ye,Pe)!==!1;);return Pe}function gR(Pe,Ke){for(var Ye=-1,St=Pe==null?0:Pe.length;++Ye<St;)if(!Ke(Pe[Ye],Ye,Pe))return!1;return!0}function Cc(Pe,Ke){for(var Ye=-1,St=Pe==null?0:Pe.length,Zt=0,Fn=[];++Ye<St;){var Xr=Pe[Ye];Ke(Xr,Ye,Pe)&&(Fn[Zt++]=Xr)}return Fn}function H0(Pe,Ke){var Ye=Pe==null?0:Pe.length;return!!Ye&&Hf(Pe,Ke,0)>-1}function AC(Pe,Ke,Ye){for(var St=-1,Zt=Pe==null?0:Pe.length;++St<Zt;)if(Ye(Ke,Pe[St]))return!0;return!1}function vr(Pe,Ke){for(var Ye=-1,St=Pe==null?0:Pe.length,Zt=Array(St);++Ye<St;)Zt[Ye]=Ke(Pe[Ye],Ye,Pe);return Zt}function Ec(Pe,Ke){for(var Ye=-1,St=Ke.length,Zt=Pe.length;++Ye<St;)Pe[Zt+Ye]=Ke[Ye];return Pe}function kC(Pe,Ke,Ye,St){var Zt=-1,Fn=Pe==null?0:Pe.length;for(St&&Fn&&(Ye=Pe[++Zt]);++Zt<Fn;)Ye=Ke(Ye,Pe[Zt],Zt,Pe);return Ye}function kq(Pe,Ke,Ye,St){var Zt=Pe==null?0:Pe.length;for(St&&Zt&&(Ye=Pe[--Zt]);Zt--;)Ye=Ke(Ye,Pe[Zt],Zt,Pe);return Ye}function TC(Pe,Ke){for(var Ye=-1,St=Pe==null?0:Pe.length;++Ye<St;)if(Ke(Pe[Ye],Ye,Pe))return!0;return!1}var Tq=_C("length");function _q(Pe){return Pe.split("")}function Dq(Pe){return Pe.match(wC)||[]}function mR(Pe,Ke,Ye){var St;return Ye(Pe,function(Zt,Fn,Xr){if(Ke(Zt,Fn,Xr))return St=Fn,!1}),St}function j0(Pe,Ke,Ye,St){for(var Zt=Pe.length,Fn=Ye+(St?1:-1);St?Fn--:++Fn<Zt;)if(Ke(Pe[Fn],Fn,Pe))return Fn;return-1}function Hf(Pe,Ke,Ye){return Ke===Ke?Hq(Pe,Ke,Ye):j0(Pe,vR,Ye)}function $q(Pe,Ke,Ye,St){for(var Zt=Ye-1,Fn=Pe.length;++Zt<Fn;)if(St(Pe[Zt],Ke))return Zt;return-1}function vR(Pe){return Pe!==Pe}function bR(Pe,Ke){var Ye=Pe==null?0:Pe.length;return Ye?$C(Pe,Ke)/Ye:fe}function _C(Pe){return function(Ke){return Ke==null?n:Ke[Pe]}}function DC(Pe){return function(Ke){return Pe==null?n:Pe[Ke]}}function yR(Pe,Ke,Ye,St,Zt){return Zt(Pe,function(Fn,Xr,tr){Ye=St?(St=!1,Fn):Ke(Ye,Fn,Xr,tr)}),Ye}function Oq(Pe,Ke){var Ye=Pe.length;for(Pe.sort(Ke);Ye--;)Pe[Ye]=Pe[Ye].value;return Pe}function $C(Pe,Ke){for(var Ye,St=-1,Zt=Pe.length;++St<Zt;){var Fn=Ke(Pe[St]);Fn!==n&&(Ye=Ye===n?Fn:Ye+Fn)}return Ye}function OC(Pe,Ke){for(var Ye=-1,St=Array(Pe);++Ye<Pe;)St[Ye]=Ke(Ye);return St}function Iq(Pe,Ke){return vr(Ke,function(Ye){return[Ye,Pe[Ye]]})}function xR(Pe){return Pe&&Pe.slice(0,ER(Pe)+1).replace(wc,"")}function zo(Pe){return function(Ke){return Pe(Ke)}}function IC(Pe,Ke){return vr(Ke,function(Ye){return Pe[Ye]})}function vg(Pe,Ke){return Pe.has(Ke)}function wR(Pe,Ke){for(var Ye=-1,St=Pe.length;++Ye<St&&Hf(Ke,Pe[Ye],0)>-1;);return Ye}function SR(Pe,Ke){for(var Ye=Pe.length;Ye--&&Hf(Ke,Pe[Ye],0)>-1;);return Ye}function Rq(Pe,Ke){for(var Ye=Pe.length,St=0;Ye--;)Pe[Ye]===Ke&&++St;return St}var Mq=DC(vq),Pq=DC(bq);function Nq(Pe){return"\\"+xq[Pe]}function Lq(Pe,Ke){return Pe==null?n:Pe[Ke]}function jf(Pe){return hq.test(Pe)}function Fq(Pe){return pq.test(Pe)}function Bq(Pe){for(var Ke,Ye=[];!(Ke=Pe.next()).done;)Ye.push(Ke.value);return Ye}function RC(Pe){var Ke=-1,Ye=Array(Pe.size);return Pe.forEach(function(St,Zt){Ye[++Ke]=[Zt,St]}),Ye}function CR(Pe,Ke){return function(Ye){return Pe(Ke(Ye))}}function Ac(Pe,Ke){for(var Ye=-1,St=Pe.length,Zt=0,Fn=[];++Ye<St;){var Xr=Pe[Ye];(Xr===Ke||Xr===h)&&(Pe[Ye]=h,Fn[Zt++]=Ye)}return Fn}function W0(Pe){var Ke=-1,Ye=Array(Pe.size);return Pe.forEach(function(St){Ye[++Ke]=St}),Ye}function zq(Pe){var Ke=-1,Ye=Array(Pe.size);return Pe.forEach(function(St){Ye[++Ke]=[St,St]}),Ye}function Hq(Pe,Ke,Ye){for(var St=Ye-1,Zt=Pe.length;++St<Zt;)if(Pe[St]===Ke)return St;return-1}function jq(Pe,Ke,Ye){for(var St=Ye+1;St--;)if(Pe[St]===Ke)return St;return St}function Wf(Pe){return jf(Pe)?Uq(Pe):Tq(Pe)}function Bs(Pe){return jf(Pe)?Vq(Pe):_q(Pe)}function ER(Pe){for(var Ke=Pe.length;Ke--&&vC.test(Pe.charAt(Ke)););return Ke}var Wq=DC(yq);function Uq(Pe){for(var Ke=SC.lastIndex=0;SC.test(Pe);)++Ke;return Ke}function Vq(Pe){return Pe.match(SC)||[]}function Yq(Pe){return Pe.match(fq)||[]}var Xq=function Pe(Ke){Ke=Ke==null?fi:Uf.defaults(fi.Object(),Ke,Uf.pick(fi,gq));var Ye=Ke.Array,St=Ke.Date,Zt=Ke.Error,Fn=Ke.Function,Xr=Ke.Math,tr=Ke.Object,MC=Ke.RegExp,Gq=Ke.String,ds=Ke.TypeError,U0=Ye.prototype,qq=Fn.prototype,Vf=tr.prototype,V0=Ke["__core-js_shared__"],Y0=qq.toString,Vn=Vf.hasOwnProperty,Kq=0,AR=function(){var m=/[^.]+$/.exec(V0&&V0.keys&&V0.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),X0=Vf.toString,Jq=Y0.call(tr),Zq=fi._,Qq=MC("^"+Y0.call(Vn).replace(Zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G0=lR?Ke.Buffer:n,kc=Ke.Symbol,q0=Ke.Uint8Array,kR=G0?G0.allocUnsafe:n,K0=CR(tr.getPrototypeOf,tr),TR=tr.create,_R=Vf.propertyIsEnumerable,J0=U0.splice,DR=kc?kc.isConcatSpreadable:n,bg=kc?kc.iterator:n,ed=kc?kc.toStringTag:n,Z0=function(){try{var m=od(tr,"defineProperty");return m({},"",{}),m}catch{}}(),eK=Ke.clearTimeout!==fi.clearTimeout&&Ke.clearTimeout,tK=St&&St.now!==fi.Date.now&&St.now,nK=Ke.setTimeout!==fi.setTimeout&&Ke.setTimeout,Q0=Xr.ceil,eb=Xr.floor,PC=tr.getOwnPropertySymbols,rK=G0?G0.isBuffer:n,$R=Ke.isFinite,iK=U0.join,oK=CR(tr.keys,tr),Gr=Xr.max,Di=Xr.min,sK=St.now,aK=Ke.parseInt,OR=Xr.random,lK=U0.reverse,NC=od(Ke,"DataView"),yg=od(Ke,"Map"),LC=od(Ke,"Promise"),Yf=od(Ke,"Set"),xg=od(Ke,"WeakMap"),wg=od(tr,"create"),tb=xg&&new xg,Xf={},cK=sd(NC),uK=sd(yg),dK=sd(LC),fK=sd(Yf),hK=sd(xg),nb=kc?kc.prototype:n,Sg=nb?nb.valueOf:n,IR=nb?nb.toString:n;function ue(m){if(Ar(m)&&!tn(m)&&!(m instanceof gn)){if(m instanceof fs)return m;if(Vn.call(m,"__wrapped__"))return R3(m)}return new fs(m)}var Gf=function(){function m(){}return function(S){if(!xr(S))return{};if(TR)return TR(S);m.prototype=S;var O=new m;return m.prototype=n,O}}();function rb(){}function fs(m,S){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!S,this.__index__=0,this.__values__=n}ue.templateSettings={escape:bo,evaluate:_i,interpolate:Ff,variable:"",imports:{_:ue}},ue.prototype=rb.prototype,ue.prototype.constructor=ue,fs.prototype=Gf(rb.prototype),fs.prototype.constructor=fs;function gn(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ae,this.__views__=[]}function pK(){var m=new gn(this.__wrapped__);return m.__actions__=yo(this.__actions__),m.__dir__=this.__dir__,m.__filtered__=this.__filtered__,m.__iteratees__=yo(this.__iteratees__),m.__takeCount__=this.__takeCount__,m.__views__=yo(this.__views__),m}function gK(){if(this.__filtered__){var m=new gn(this);m.__dir__=-1,m.__filtered__=!0}else m=this.clone(),m.__dir__*=-1;return m}function mK(){var m=this.__wrapped__.value(),S=this.__dir__,O=tn(m),j=S<0,ie=O?m.length:0,me=_J(0,ie,this.__views__),Ee=me.start,Te=me.end,Le=Te-Ee,tt=j?Te:Ee-1,nt=this.__iteratees__,at=nt.length,yt=0,$t=Di(Le,this.__takeCount__);if(!O||!j&&ie==Le&&$t==Le)return n3(m,this.__actions__);var Ut=[];e:for(;Le--&&yt<$t;){tt+=S;for(var an=-1,Vt=m[tt];++an<at;){var hn=nt[an],yn=hn.iteratee,Wo=hn.type,Vi=yn(Vt);if(Wo==J)Vt=Vi;else if(!Vi){if(Wo==se)continue e;break e}}Ut[yt++]=Vt}return Ut}gn.prototype=Gf(rb.prototype),gn.prototype.constructor=gn;function td(m){var S=-1,O=m==null?0:m.length;for(this.clear();++S<O;){var j=m[S];this.set(j[0],j[1])}}function vK(){this.__data__=wg?wg(null):{},this.size=0}function bK(m){var S=this.has(m)&&delete this.__data__[m];return this.size-=S?1:0,S}function yK(m){var S=this.__data__;if(wg){var O=S[m];return O===l?n:O}return Vn.call(S,m)?S[m]:n}function xK(m){var S=this.__data__;return wg?S[m]!==n:Vn.call(S,m)}function wK(m,S){var O=this.__data__;return this.size+=this.has(m)?0:1,O[m]=wg&&S===n?l:S,this}td.prototype.clear=vK,td.prototype.delete=bK,td.prototype.get=yK,td.prototype.has=xK,td.prototype.set=wK;function sl(m){var S=-1,O=m==null?0:m.length;for(this.clear();++S<O;){var j=m[S];this.set(j[0],j[1])}}function SK(){this.__data__=[],this.size=0}function CK(m){var S=this.__data__,O=ib(S,m);if(O<0)return!1;var j=S.length-1;return O==j?S.pop():J0.call(S,O,1),--this.size,!0}function EK(m){var S=this.__data__,O=ib(S,m);return O<0?n:S[O][1]}function AK(m){return ib(this.__data__,m)>-1}function kK(m,S){var O=this.__data__,j=ib(O,m);return j<0?(++this.size,O.push([m,S])):O[j][1]=S,this}sl.prototype.clear=SK,sl.prototype.delete=CK,sl.prototype.get=EK,sl.prototype.has=AK,sl.prototype.set=kK;function al(m){var S=-1,O=m==null?0:m.length;for(this.clear();++S<O;){var j=m[S];this.set(j[0],j[1])}}function TK(){this.size=0,this.__data__={hash:new td,map:new(yg||sl),string:new td}}function _K(m){var S=mb(this,m).delete(m);return this.size-=S?1:0,S}function DK(m){return mb(this,m).get(m)}function $K(m){return mb(this,m).has(m)}function OK(m,S){var O=mb(this,m),j=O.size;return O.set(m,S),this.size+=O.size==j?0:1,this}al.prototype.clear=TK,al.prototype.delete=_K,al.prototype.get=DK,al.prototype.has=$K,al.prototype.set=OK;function nd(m){var S=-1,O=m==null?0:m.length;for(this.__data__=new al;++S<O;)this.add(m[S])}function IK(m){return this.__data__.set(m,l),this}function RK(m){return this.__data__.has(m)}nd.prototype.add=nd.prototype.push=IK,nd.prototype.has=RK;function zs(m){var S=this.__data__=new sl(m);this.size=S.size}function MK(){this.__data__=new sl,this.size=0}function PK(m){var S=this.__data__,O=S.delete(m);return this.size=S.size,O}function NK(m){return this.__data__.get(m)}function LK(m){return this.__data__.has(m)}function FK(m,S){var O=this.__data__;if(O instanceof sl){var j=O.__data__;if(!yg||j.length<i-1)return j.push([m,S]),this.size=++O.size,this;O=this.__data__=new al(j)}return O.set(m,S),this.size=O.size,this}zs.prototype.clear=MK,zs.prototype.delete=PK,zs.prototype.get=NK,zs.prototype.has=LK,zs.prototype.set=FK;function RR(m,S){var O=tn(m),j=!O&&ad(m),ie=!O&&!j&&Oc(m),me=!O&&!j&&!ie&&Zf(m),Ee=O||j||ie||me,Te=Ee?OC(m.length,Gq):[],Le=Te.length;for(var tt in m)(S||Vn.call(m,tt))&&!(Ee&&(tt=="length"||ie&&(tt=="offset"||tt=="parent")||me&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||dl(tt,Le)))&&Te.push(tt);return Te}function MR(m){var S=m.length;return S?m[GC(0,S-1)]:n}function BK(m,S){return vb(yo(m),rd(S,0,m.length))}function zK(m){return vb(yo(m))}function FC(m,S,O){(O!==n&&!Hs(m[S],O)||O===n&&!(S in m))&&ll(m,S,O)}function Cg(m,S,O){var j=m[S];(!(Vn.call(m,S)&&Hs(j,O))||O===n&&!(S in m))&&ll(m,S,O)}function ib(m,S){for(var O=m.length;O--;)if(Hs(m[O][0],S))return O;return-1}function HK(m,S,O,j){return Tc(m,function(ie,me,Ee){S(j,ie,O(ie),Ee)}),j}function PR(m,S){return m&&Ea(S,ni(S),m)}function jK(m,S){return m&&Ea(S,wo(S),m)}function ll(m,S,O){S=="__proto__"&&Z0?Z0(m,S,{configurable:!0,enumerable:!0,value:O,writable:!0}):m[S]=O}function BC(m,S){for(var O=-1,j=S.length,ie=Ye(j),me=m==null;++O<j;)ie[O]=me?n:yE(m,S[O]);return ie}function rd(m,S,O){return m===m&&(O!==n&&(m=m<=O?m:O),S!==n&&(m=m>=S?m:S)),m}function hs(m,S,O,j,ie,me){var Ee,Te=S&p,Le=S&y,tt=S&w;if(O&&(Ee=ie?O(m,j,ie,me):O(m)),Ee!==n)return Ee;if(!xr(m))return m;var nt=tn(m);if(nt){if(Ee=$J(m),!Te)return yo(m,Ee)}else{var at=$i(m),yt=at==qe||at==K;if(Oc(m))return o3(m,Te);if(at==Ie||at==Q||yt&&!ie){if(Ee=Le||yt?{}:E3(m),!Te)return Le?yJ(m,jK(Ee,m)):bJ(m,PR(Ee,m))}else{if(!ir[at])return ie?m:{};Ee=OJ(m,at,Te)}}me||(me=new zs);var $t=me.get(m);if($t)return $t;me.set(m,Ee),Q3(m)?m.forEach(function(Vt){Ee.add(hs(Vt,S,O,Vt,m,me))}):J3(m)&&m.forEach(function(Vt,hn){Ee.set(hn,hs(Vt,S,O,hn,m,me))});var Ut=tt?Le?oE:iE:Le?wo:ni,an=nt?n:Ut(m);return us(an||m,function(Vt,hn){an&&(hn=Vt,Vt=m[hn]),Cg(Ee,hn,hs(Vt,S,O,hn,m,me))}),Ee}function WK(m){var S=ni(m);return function(O){return NR(O,m,S)}}function NR(m,S,O){var j=O.length;if(m==null)return!j;for(m=tr(m);j--;){var ie=O[j],me=S[ie],Ee=m[ie];if(Ee===n&&!(ie in m)||!me(Ee))return!1}return!0}function LR(m,S,O){if(typeof m!="function")throw new ds(s);return $g(function(){m.apply(n,O)},S)}function Eg(m,S,O,j){var ie=-1,me=H0,Ee=!0,Te=m.length,Le=[],tt=S.length;if(!Te)return Le;O&&(S=vr(S,zo(O))),j?(me=AC,Ee=!1):S.length>=i&&(me=vg,Ee=!1,S=new nd(S));e:for(;++ie<Te;){var nt=m[ie],at=O==null?nt:O(nt);if(nt=j||nt!==0?nt:0,Ee&&at===at){for(var yt=tt;yt--;)if(S[yt]===at)continue e;Le.push(nt)}else me(S,at,j)||Le.push(nt)}return Le}var Tc=u3(Ca),FR=u3(HC,!0);function UK(m,S){var O=!0;return Tc(m,function(j,ie,me){return O=!!S(j,ie,me),O}),O}function ob(m,S,O){for(var j=-1,ie=m.length;++j<ie;){var me=m[j],Ee=S(me);if(Ee!=null&&(Te===n?Ee===Ee&&!jo(Ee):O(Ee,Te)))var Te=Ee,Le=me}return Le}function VK(m,S,O,j){var ie=m.length;for(O=sn(O),O<0&&(O=-O>ie?0:ie+O),j=j===n||j>ie?ie:sn(j),j<0&&(j+=ie),j=O>j?0:tM(j);O<j;)m[O++]=S;return m}function BR(m,S){var O=[];return Tc(m,function(j,ie,me){S(j,ie,me)&&O.push(j)}),O}function hi(m,S,O,j,ie){var me=-1,Ee=m.length;for(O||(O=RJ),ie||(ie=[]);++me<Ee;){var Te=m[me];S>0&&O(Te)?S>1?hi(Te,S-1,O,j,ie):Ec(ie,Te):j||(ie[ie.length]=Te)}return ie}var zC=d3(),zR=d3(!0);function Ca(m,S){return m&&zC(m,S,ni)}function HC(m,S){return m&&zR(m,S,ni)}function sb(m,S){return Cc(S,function(O){return fl(m[O])})}function id(m,S){S=Dc(S,m);for(var O=0,j=S.length;m!=null&&O<j;)m=m[Aa(S[O++])];return O&&O==j?m:n}function HR(m,S,O){var j=S(m);return tn(m)?j:Ec(j,O(m))}function Wi(m){return m==null?m===n?Ve:$e:ed&&ed in tr(m)?TJ(m):zJ(m)}function jC(m,S){return m>S}function YK(m,S){return m!=null&&Vn.call(m,S)}function XK(m,S){return m!=null&&S in tr(m)}function GK(m,S,O){return m>=Di(S,O)&&m<Gr(S,O)}function WC(m,S,O){for(var j=O?AC:H0,ie=m[0].length,me=m.length,Ee=me,Te=Ye(me),Le=1/0,tt=[];Ee--;){var nt=m[Ee];Ee&&S&&(nt=vr(nt,zo(S))),Le=Di(nt.length,Le),Te[Ee]=!O&&(S||ie>=120&&nt.length>=120)?new nd(Ee&&nt):n}nt=m[0];var at=-1,yt=Te[0];e:for(;++at<ie&&tt.length<Le;){var $t=nt[at],Ut=S?S($t):$t;if($t=O||$t!==0?$t:0,!(yt?vg(yt,Ut):j(tt,Ut,O))){for(Ee=me;--Ee;){var an=Te[Ee];if(!(an?vg(an,Ut):j(m[Ee],Ut,O)))continue e}yt&&yt.push(Ut),tt.push($t)}}return tt}function qK(m,S,O,j){return Ca(m,function(ie,me,Ee){S(j,O(ie),me,Ee)}),j}function Ag(m,S,O){S=Dc(S,m),m=_3(m,S);var j=m==null?m:m[Aa(gs(S))];return j==null?n:Bo(j,m,O)}function jR(m){return Ar(m)&&Wi(m)==Q}function KK(m){return Ar(m)&&Wi(m)==At}function JK(m){return Ar(m)&&Wi(m)==je}function kg(m,S,O,j,ie){return m===S?!0:m==null||S==null||!Ar(m)&&!Ar(S)?m!==m&&S!==S:ZK(m,S,O,j,kg,ie)}function ZK(m,S,O,j,ie,me){var Ee=tn(m),Te=tn(S),Le=Ee?de:$i(m),tt=Te?de:$i(S);Le=Le==Q?Ie:Le,tt=tt==Q?Ie:tt;var nt=Le==Ie,at=tt==Ie,yt=Le==tt;if(yt&&Oc(m)){if(!Oc(S))return!1;Ee=!0,nt=!1}if(yt&&!nt)return me||(me=new zs),Ee||Zf(m)?w3(m,S,O,j,ie,me):AJ(m,S,Le,O,j,ie,me);if(!(O&C)){var $t=nt&&Vn.call(m,"__wrapped__"),Ut=at&&Vn.call(S,"__wrapped__");if($t||Ut){var an=$t?m.value():m,Vt=Ut?S.value():S;return me||(me=new zs),ie(an,Vt,O,j,me)}}return yt?(me||(me=new zs),kJ(m,S,O,j,ie,me)):!1}function QK(m){return Ar(m)&&$i(m)==ee}function UC(m,S,O,j){var ie=O.length,me=ie,Ee=!j;if(m==null)return!me;for(m=tr(m);ie--;){var Te=O[ie];if(Ee&&Te[2]?Te[1]!==m[Te[0]]:!(Te[0]in m))return!1}for(;++ie<me;){Te=O[ie];var Le=Te[0],tt=m[Le],nt=Te[1];if(Ee&&Te[2]){if(tt===n&&!(Le in m))return!1}else{var at=new zs;if(j)var yt=j(tt,nt,Le,m,S,at);if(!(yt===n?kg(nt,tt,C|k,j,at):yt))return!1}}return!0}function WR(m){if(!xr(m)||PJ(m))return!1;var S=fl(m)?Qq:u;return S.test(sd(m))}function eJ(m){return Ar(m)&&Wi(m)==ze}function tJ(m){return Ar(m)&&$i(m)==We}function nJ(m){return Ar(m)&&Cb(m.length)&&!!dr[Wi(m)]}function UR(m){return typeof m=="function"?m:m==null?So:typeof m=="object"?tn(m)?XR(m[0],m[1]):YR(m):fM(m)}function VC(m){if(!Dg(m))return oK(m);var S=[];for(var O in tr(m))Vn.call(m,O)&&O!="constructor"&&S.push(O);return S}function rJ(m){if(!xr(m))return BJ(m);var S=Dg(m),O=[];for(var j in m)j=="constructor"&&(S||!Vn.call(m,j))||O.push(j);return O}function YC(m,S){return m<S}function VR(m,S){var O=-1,j=xo(m)?Ye(m.length):[];return Tc(m,function(ie,me,Ee){j[++O]=S(ie,me,Ee)}),j}function YR(m){var S=aE(m);return S.length==1&&S[0][2]?k3(S[0][0],S[0][1]):function(O){return O===m||UC(O,m,S)}}function XR(m,S){return cE(m)&&A3(S)?k3(Aa(m),S):function(O){var j=yE(O,m);return j===n&&j===S?xE(O,m):kg(S,j,C|k)}}function ab(m,S,O,j,ie){m!==S&&zC(S,function(me,Ee){if(ie||(ie=new zs),xr(me))iJ(m,S,Ee,O,ab,j,ie);else{var Te=j?j(dE(m,Ee),me,Ee+"",m,S,ie):n;Te===n&&(Te=me),FC(m,Ee,Te)}},wo)}function iJ(m,S,O,j,ie,me,Ee){var Te=dE(m,O),Le=dE(S,O),tt=Ee.get(Le);if(tt){FC(m,O,tt);return}var nt=me?me(Te,Le,O+"",m,S,Ee):n,at=nt===n;if(at){var yt=tn(Le),$t=!yt&&Oc(Le),Ut=!yt&&!$t&&Zf(Le);nt=Le,yt||$t||Ut?tn(Te)?nt=Te:Mr(Te)?nt=yo(Te):$t?(at=!1,nt=o3(Le,!0)):Ut?(at=!1,nt=s3(Le,!0)):nt=[]:Og(Le)||ad(Le)?(nt=Te,ad(Te)?nt=nM(Te):(!xr(Te)||fl(Te))&&(nt=E3(Le))):at=!1}at&&(Ee.set(Le,nt),ie(nt,Le,j,me,Ee),Ee.delete(Le)),FC(m,O,nt)}function GR(m,S){var O=m.length;if(O)return S+=S<0?O:0,dl(S,O)?m[S]:n}function qR(m,S,O){S.length?S=vr(S,function(me){return tn(me)?function(Ee){return id(Ee,me.length===1?me[0]:me)}:me}):S=[So];var j=-1;S=vr(S,zo(zt()));var ie=VR(m,function(me,Ee,Te){var Le=vr(S,function(tt){return tt(me)});return{criteria:Le,index:++j,value:me}});return Oq(ie,function(me,Ee){return vJ(me,Ee,O)})}function oJ(m,S){return KR(m,S,function(O,j){return xE(m,j)})}function KR(m,S,O){for(var j=-1,ie=S.length,me={};++j<ie;){var Ee=S[j],Te=id(m,Ee);O(Te,Ee)&&Tg(me,Dc(Ee,m),Te)}return me}function sJ(m){return function(S){return id(S,m)}}function XC(m,S,O,j){var ie=j?$q:Hf,me=-1,Ee=S.length,Te=m;for(m===S&&(S=yo(S)),O&&(Te=vr(m,zo(O)));++me<Ee;)for(var Le=0,tt=S[me],nt=O?O(tt):tt;(Le=ie(Te,nt,Le,j))>-1;)Te!==m&&J0.call(Te,Le,1),J0.call(m,Le,1);return m}function JR(m,S){for(var O=m?S.length:0,j=O-1;O--;){var ie=S[O];if(O==j||ie!==me){var me=ie;dl(ie)?J0.call(m,ie,1):JC(m,ie)}}return m}function GC(m,S){return m+eb(OR()*(S-m+1))}function aJ(m,S,O,j){for(var ie=-1,me=Gr(Q0((S-m)/(O||1)),0),Ee=Ye(me);me--;)Ee[j?me:++ie]=m,m+=O;return Ee}function qC(m,S){var O="";if(!m||S<1||S>q)return O;do S%2&&(O+=m),S=eb(S/2),S&&(m+=m);while(S);return O}function ln(m,S){return fE(T3(m,S,So),m+"")}function lJ(m){return MR(Qf(m))}function cJ(m,S){var O=Qf(m);return vb(O,rd(S,0,O.length))}function Tg(m,S,O,j){if(!xr(m))return m;S=Dc(S,m);for(var ie=-1,me=S.length,Ee=me-1,Te=m;Te!=null&&++ie<me;){var Le=Aa(S[ie]),tt=O;if(Le==="__proto__"||Le==="constructor"||Le==="prototype")return m;if(ie!=Ee){var nt=Te[Le];tt=j?j(nt,Le,Te):n,tt===n&&(tt=xr(nt)?nt:dl(S[ie+1])?[]:{})}Cg(Te,Le,tt),Te=Te[Le]}return m}var ZR=tb?function(m,S){return tb.set(m,S),m}:So,uJ=Z0?function(m,S){return Z0(m,"toString",{configurable:!0,enumerable:!1,value:SE(S),writable:!0})}:So;function dJ(m){return vb(Qf(m))}function ps(m,S,O){var j=-1,ie=m.length;S<0&&(S=-S>ie?0:ie+S),O=O>ie?ie:O,O<0&&(O+=ie),ie=S>O?0:O-S>>>0,S>>>=0;for(var me=Ye(ie);++j<ie;)me[j]=m[j+S];return me}function fJ(m,S){var O;return Tc(m,function(j,ie,me){return O=S(j,ie,me),!O}),!!O}function lb(m,S,O){var j=0,ie=m==null?j:m.length;if(typeof S=="number"&&S===S&&ie<=_e){for(;j<ie;){var me=j+ie>>>1,Ee=m[me];Ee!==null&&!jo(Ee)&&(O?Ee<=S:Ee<S)?j=me+1:ie=me}return ie}return KC(m,S,So,O)}function KC(m,S,O,j){var ie=0,me=m==null?0:m.length;if(me===0)return 0;S=O(S);for(var Ee=S!==S,Te=S===null,Le=jo(S),tt=S===n;ie<me;){var nt=eb((ie+me)/2),at=O(m[nt]),yt=at!==n,$t=at===null,Ut=at===at,an=jo(at);if(Ee)var Vt=j||Ut;else tt?Vt=Ut&&(j||yt):Te?Vt=Ut&&yt&&(j||!$t):Le?Vt=Ut&&yt&&!$t&&(j||!an):$t||an?Vt=!1:Vt=j?at<=S:at<S;Vt?ie=nt+1:me=nt}return Di(me,Se)}function QR(m,S){for(var O=-1,j=m.length,ie=0,me=[];++O<j;){var Ee=m[O],Te=S?S(Ee):Ee;if(!O||!Hs(Te,Le)){var Le=Te;me[ie++]=Ee===0?0:Ee}}return me}function e3(m){return typeof m=="number"?m:jo(m)?fe:+m}function Ho(m){if(typeof m=="string")return m;if(tn(m))return vr(m,Ho)+"";if(jo(m))return IR?IR.call(m):"";var S=m+"";return S=="0"&&1/m==-V?"-0":S}function _c(m,S,O){var j=-1,ie=H0,me=m.length,Ee=!0,Te=[],Le=Te;if(O)Ee=!1,ie=AC;else if(me>=i){var tt=S?null:CJ(m);if(tt)return W0(tt);Ee=!1,ie=vg,Le=new nd}else Le=S?[]:Te;e:for(;++j<me;){var nt=m[j],at=S?S(nt):nt;if(nt=O||nt!==0?nt:0,Ee&&at===at){for(var yt=Le.length;yt--;)if(Le[yt]===at)continue e;S&&Le.push(at),Te.push(nt)}else ie(Le,at,O)||(Le!==Te&&Le.push(at),Te.push(nt))}return Te}function JC(m,S){return S=Dc(S,m),m=_3(m,S),m==null||delete m[Aa(gs(S))]}function t3(m,S,O,j){return Tg(m,S,O(id(m,S)),j)}function cb(m,S,O,j){for(var ie=m.length,me=j?ie:-1;(j?me--:++me<ie)&&S(m[me],me,m););return O?ps(m,j?0:me,j?me+1:ie):ps(m,j?me+1:0,j?ie:me)}function n3(m,S){var O=m;return O instanceof gn&&(O=O.value()),kC(S,function(j,ie){return ie.func.apply(ie.thisArg,Ec([j],ie.args))},O)}function ZC(m,S,O){var j=m.length;if(j<2)return j?_c(m[0]):[];for(var ie=-1,me=Ye(j);++ie<j;)for(var Ee=m[ie],Te=-1;++Te<j;)Te!=ie&&(me[ie]=Eg(me[ie]||Ee,m[Te],S,O));return _c(hi(me,1),S,O)}function r3(m,S,O){for(var j=-1,ie=m.length,me=S.length,Ee={};++j<ie;){var Te=j<me?S[j]:n;O(Ee,m[j],Te)}return Ee}function QC(m){return Mr(m)?m:[]}function eE(m){return typeof m=="function"?m:So}function Dc(m,S){return tn(m)?m:cE(m,S)?[m]:I3(Wn(m))}var hJ=ln;function $c(m,S,O){var j=m.length;return O=O===n?j:O,!S&&O>=j?m:ps(m,S,O)}var i3=eK||function(m){return fi.clearTimeout(m)};function o3(m,S){if(S)return m.slice();var O=m.length,j=kR?kR(O):new m.constructor(O);return m.copy(j),j}function tE(m){var S=new m.constructor(m.byteLength);return new q0(S).set(new q0(m)),S}function pJ(m,S){var O=S?tE(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.byteLength)}function gJ(m){var S=new m.constructor(m.source,B0.exec(m));return S.lastIndex=m.lastIndex,S}function mJ(m){return Sg?tr(Sg.call(m)):{}}function s3(m,S){var O=S?tE(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.length)}function a3(m,S){if(m!==S){var O=m!==n,j=m===null,ie=m===m,me=jo(m),Ee=S!==n,Te=S===null,Le=S===S,tt=jo(S);if(!Te&&!tt&&!me&&m>S||me&&Ee&&Le&&!Te&&!tt||j&&Ee&&Le||!O&&Le||!ie)return 1;if(!j&&!me&&!tt&&m<S||tt&&O&&ie&&!j&&!me||Te&&O&&ie||!Ee&&ie||!Le)return-1}return 0}function vJ(m,S,O){for(var j=-1,ie=m.criteria,me=S.criteria,Ee=ie.length,Te=O.length;++j<Ee;){var Le=a3(ie[j],me[j]);if(Le){if(j>=Te)return Le;var tt=O[j];return Le*(tt=="desc"?-1:1)}}return m.index-S.index}function l3(m,S,O,j){for(var ie=-1,me=m.length,Ee=O.length,Te=-1,Le=S.length,tt=Gr(me-Ee,0),nt=Ye(Le+tt),at=!j;++Te<Le;)nt[Te]=S[Te];for(;++ie<Ee;)(at||ie<me)&&(nt[O[ie]]=m[ie]);for(;tt--;)nt[Te++]=m[ie++];return nt}function c3(m,S,O,j){for(var ie=-1,me=m.length,Ee=-1,Te=O.length,Le=-1,tt=S.length,nt=Gr(me-Te,0),at=Ye(nt+tt),yt=!j;++ie<nt;)at[ie]=m[ie];for(var $t=ie;++Le<tt;)at[$t+Le]=S[Le];for(;++Ee<Te;)(yt||ie<me)&&(at[$t+O[Ee]]=m[ie++]);return at}function yo(m,S){var O=-1,j=m.length;for(S||(S=Ye(j));++O<j;)S[O]=m[O];return S}function Ea(m,S,O,j){var ie=!O;O||(O={});for(var me=-1,Ee=S.length;++me<Ee;){var Te=S[me],Le=j?j(O[Te],m[Te],Te,O,m):n;Le===n&&(Le=m[Te]),ie?ll(O,Te,Le):Cg(O,Te,Le)}return O}function bJ(m,S){return Ea(m,lE(m),S)}function yJ(m,S){return Ea(m,S3(m),S)}function ub(m,S){return function(O,j){var ie=tn(O)?Eq:HK,me=S?S():{};return ie(O,m,zt(j,2),me)}}function qf(m){return ln(function(S,O){var j=-1,ie=O.length,me=ie>1?O[ie-1]:n,Ee=ie>2?O[2]:n;for(me=m.length>3&&typeof me=="function"?(ie--,me):n,Ee&&Ui(O[0],O[1],Ee)&&(me=ie<3?n:me,ie=1),S=tr(S);++j<ie;){var Te=O[j];Te&&m(S,Te,j,me)}return S})}function u3(m,S){return function(O,j){if(O==null)return O;if(!xo(O))return m(O,j);for(var ie=O.length,me=S?ie:-1,Ee=tr(O);(S?me--:++me<ie)&&j(Ee[me],me,Ee)!==!1;);return O}}function d3(m){return function(S,O,j){for(var ie=-1,me=tr(S),Ee=j(S),Te=Ee.length;Te--;){var Le=Ee[m?Te:++ie];if(O(me[Le],Le,me)===!1)break}return S}}function xJ(m,S,O){var j=S&D,ie=_g(m);function me(){var Ee=this&&this!==fi&&this instanceof me?ie:m;return Ee.apply(j?O:this,arguments)}return me}function f3(m){return function(S){S=Wn(S);var O=jf(S)?Bs(S):n,j=O?O[0]:S.charAt(0),ie=O?$c(O,1).join(""):S.slice(1);return j[m]()+ie}}function Kf(m){return function(S){return kC(uM(cM(S).replace(uq,"")),m,"")}}function _g(m){return function(){var S=arguments;switch(S.length){case 0:return new m;case 1:return new m(S[0]);case 2:return new m(S[0],S[1]);case 3:return new m(S[0],S[1],S[2]);case 4:return new m(S[0],S[1],S[2],S[3]);case 5:return new m(S[0],S[1],S[2],S[3],S[4]);case 6:return new m(S[0],S[1],S[2],S[3],S[4],S[5]);case 7:return new m(S[0],S[1],S[2],S[3],S[4],S[5],S[6])}var O=Gf(m.prototype),j=m.apply(O,S);return xr(j)?j:O}}function wJ(m,S,O){var j=_g(m);function ie(){for(var me=arguments.length,Ee=Ye(me),Te=me,Le=Jf(ie);Te--;)Ee[Te]=arguments[Te];var tt=me<3&&Ee[0]!==Le&&Ee[me-1]!==Le?[]:Ac(Ee,Le);if(me-=tt.length,me<O)return v3(m,S,db,ie.placeholder,n,Ee,tt,n,n,O-me);var nt=this&&this!==fi&&this instanceof ie?j:m;return Bo(nt,this,Ee)}return ie}function h3(m){return function(S,O,j){var ie=tr(S);if(!xo(S)){var me=zt(O,3);S=ni(S),O=function(Te){return me(ie[Te],Te,ie)}}var Ee=m(S,O,j);return Ee>-1?ie[me?S[Ee]:Ee]:n}}function p3(m){return ul(function(S){var O=S.length,j=O,ie=fs.prototype.thru;for(m&&S.reverse();j--;){var me=S[j];if(typeof me!="function")throw new ds(s);if(ie&&!Ee&&gb(me)=="wrapper")var Ee=new fs([],!0)}for(j=Ee?j:O;++j<O;){me=S[j];var Te=gb(me),Le=Te=="wrapper"?sE(me):n;Le&&uE(Le[0])&&Le[1]==(G|L|F|X)&&!Le[4].length&&Le[9]==1?Ee=Ee[gb(Le[0])].apply(Ee,Le[3]):Ee=me.length==1&&uE(me)?Ee[Te]():Ee.thru(me)}return function(){var tt=arguments,nt=tt[0];if(Ee&&tt.length==1&&tn(nt))return Ee.plant(nt).value();for(var at=0,yt=O?S[at].apply(this,tt):nt;++at<O;)yt=S[at].call(this,yt);return yt}})}function db(m,S,O,j,ie,me,Ee,Te,Le,tt){var nt=S&G,at=S&D,yt=S&I,$t=S&(L|M),Ut=S&Z,an=yt?n:_g(m);function Vt(){for(var hn=arguments.length,yn=Ye(hn),Wo=hn;Wo--;)yn[Wo]=arguments[Wo];if($t)var Vi=Jf(Vt),Uo=Rq(yn,Vi);if(j&&(yn=l3(yn,j,ie,$t)),me&&(yn=c3(yn,me,Ee,$t)),hn-=Uo,$t&&hn<tt){var Pr=Ac(yn,Vi);return v3(m,S,db,Vt.placeholder,O,yn,Pr,Te,Le,tt-hn)}var js=at?O:this,pl=yt?js[m]:m;return hn=yn.length,Te?yn=HJ(yn,Te):Ut&&hn>1&&yn.reverse(),nt&&Le<hn&&(yn.length=Le),this&&this!==fi&&this instanceof Vt&&(pl=an||_g(pl)),pl.apply(js,yn)}return Vt}function g3(m,S){return function(O,j){return qK(O,m,S(j),{})}}function fb(m,S){return function(O,j){var ie;if(O===n&&j===n)return S;if(O!==n&&(ie=O),j!==n){if(ie===n)return j;typeof O=="string"||typeof j=="string"?(O=Ho(O),j=Ho(j)):(O=e3(O),j=e3(j)),ie=m(O,j)}return ie}}function nE(m){return ul(function(S){return S=vr(S,zo(zt())),ln(function(O){var j=this;return m(S,function(ie){return Bo(ie,j,O)})})})}function hb(m,S){S=S===n?" ":Ho(S);var O=S.length;if(O<2)return O?qC(S,m):S;var j=qC(S,Q0(m/Wf(S)));return jf(S)?$c(Bs(j),0,m).join(""):j.slice(0,m)}function SJ(m,S,O,j){var ie=S&D,me=_g(m);function Ee(){for(var Te=-1,Le=arguments.length,tt=-1,nt=j.length,at=Ye(nt+Le),yt=this&&this!==fi&&this instanceof Ee?me:m;++tt<nt;)at[tt]=j[tt];for(;Le--;)at[tt++]=arguments[++Te];return Bo(yt,ie?O:this,at)}return Ee}function m3(m){return function(S,O,j){return j&&typeof j!="number"&&Ui(S,O,j)&&(O=j=n),S=hl(S),O===n?(O=S,S=0):O=hl(O),j=j===n?S<O?1:-1:hl(j),aJ(S,O,j,m)}}function pb(m){return function(S,O){return typeof S=="string"&&typeof O=="string"||(S=ms(S),O=ms(O)),m(S,O)}}function v3(m,S,O,j,ie,me,Ee,Te,Le,tt){var nt=S&L,at=nt?Ee:n,yt=nt?n:Ee,$t=nt?me:n,Ut=nt?n:me;S|=nt?F:H,S&=~(nt?H:F),S&_||(S&=~(D|I));var an=[m,S,ie,$t,at,Ut,yt,Te,Le,tt],Vt=O.apply(n,an);return uE(m)&&D3(Vt,an),Vt.placeholder=j,$3(Vt,m,S)}function rE(m){var S=Xr[m];return function(O,j){if(O=ms(O),j=j==null?0:Di(sn(j),292),j&&$R(O)){var ie=(Wn(O)+"e").split("e"),me=S(ie[0]+"e"+(+ie[1]+j));return ie=(Wn(me)+"e").split("e"),+(ie[0]+"e"+(+ie[1]-j))}return S(O)}}var CJ=Yf&&1/W0(new Yf([,-0]))[1]==V?function(m){return new Yf(m)}:AE;function b3(m){return function(S){var O=$i(S);return O==ee?RC(S):O==We?zq(S):Iq(S,m(S))}}function cl(m,S,O,j,ie,me,Ee,Te){var Le=S&I;if(!Le&&typeof m!="function")throw new ds(s);var tt=j?j.length:0;if(tt||(S&=~(F|H),j=ie=n),Ee=Ee===n?Ee:Gr(sn(Ee),0),Te=Te===n?Te:sn(Te),tt-=ie?ie.length:0,S&H){var nt=j,at=ie;j=ie=n}var yt=Le?n:sE(m),$t=[m,S,O,j,ie,nt,at,me,Ee,Te];if(yt&&FJ($t,yt),m=$t[0],S=$t[1],O=$t[2],j=$t[3],ie=$t[4],Te=$t[9]=$t[9]===n?Le?0:m.length:Gr($t[9]-tt,0),!Te&&S&(L|M)&&(S&=~(L|M)),!S||S==D)var Ut=xJ(m,S,O);else S==L||S==M?Ut=wJ(m,S,Te):(S==F||S==(D|F))&&!ie.length?Ut=SJ(m,S,O,j):Ut=db.apply(n,$t);var an=yt?ZR:D3;return $3(an(Ut,$t),m,S)}function y3(m,S,O,j){return m===n||Hs(m,Vf[O])&&!Vn.call(j,O)?S:m}function x3(m,S,O,j,ie,me){return xr(m)&&xr(S)&&(me.set(S,m),ab(m,S,n,x3,me),me.delete(S)),m}function EJ(m){return Og(m)?n:m}function w3(m,S,O,j,ie,me){var Ee=O&C,Te=m.length,Le=S.length;if(Te!=Le&&!(Ee&&Le>Te))return!1;var tt=me.get(m),nt=me.get(S);if(tt&&nt)return tt==S&&nt==m;var at=-1,yt=!0,$t=O&k?new nd:n;for(me.set(m,S),me.set(S,m);++at<Te;){var Ut=m[at],an=S[at];if(j)var Vt=Ee?j(an,Ut,at,S,m,me):j(Ut,an,at,m,S,me);if(Vt!==n){if(Vt)continue;yt=!1;break}if($t){if(!TC(S,function(hn,yn){if(!vg($t,yn)&&(Ut===hn||ie(Ut,hn,O,j,me)))return $t.push(yn)})){yt=!1;break}}else if(!(Ut===an||ie(Ut,an,O,j,me))){yt=!1;break}}return me.delete(m),me.delete(S),yt}function AJ(m,S,O,j,ie,me,Ee){switch(O){case It:if(m.byteLength!=S.byteLength||m.byteOffset!=S.byteOffset)return!1;m=m.buffer,S=S.buffer;case At:return!(m.byteLength!=S.byteLength||!me(new q0(m),new q0(S)));case Ce:case je:case be:return Hs(+m,+S);case Xe:return m.name==S.name&&m.message==S.message;case ze:case xe:return m==S+"";case ee:var Te=RC;case We:var Le=j&C;if(Te||(Te=W0),m.size!=S.size&&!Le)return!1;var tt=Ee.get(m);if(tt)return tt==S;j|=k,Ee.set(m,S);var nt=w3(Te(m),Te(S),j,ie,me,Ee);return Ee.delete(m),nt;case Re:if(Sg)return Sg.call(m)==Sg.call(S)}return!1}function kJ(m,S,O,j,ie,me){var Ee=O&C,Te=iE(m),Le=Te.length,tt=iE(S),nt=tt.length;if(Le!=nt&&!Ee)return!1;for(var at=Le;at--;){var yt=Te[at];if(!(Ee?yt in S:Vn.call(S,yt)))return!1}var $t=me.get(m),Ut=me.get(S);if($t&&Ut)return $t==S&&Ut==m;var an=!0;me.set(m,S),me.set(S,m);for(var Vt=Ee;++at<Le;){yt=Te[at];var hn=m[yt],yn=S[yt];if(j)var Wo=Ee?j(yn,hn,yt,S,m,me):j(hn,yn,yt,m,S,me);if(!(Wo===n?hn===yn||ie(hn,yn,O,j,me):Wo)){an=!1;break}Vt||(Vt=yt=="constructor")}if(an&&!Vt){var Vi=m.constructor,Uo=S.constructor;Vi!=Uo&&"constructor"in m&&"constructor"in S&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof Uo=="function"&&Uo instanceof Uo)&&(an=!1)}return me.delete(m),me.delete(S),an}function ul(m){return fE(T3(m,n,N3),m+"")}function iE(m){return HR(m,ni,lE)}function oE(m){return HR(m,wo,S3)}var sE=tb?function(m){return tb.get(m)}:AE;function gb(m){for(var S=m.name+"",O=Xf[S],j=Vn.call(Xf,S)?O.length:0;j--;){var ie=O[j],me=ie.func;if(me==null||me==m)return ie.name}return S}function Jf(m){var S=Vn.call(ue,"placeholder")?ue:m;return S.placeholder}function zt(){var m=ue.iteratee||CE;return m=m===CE?UR:m,arguments.length?m(arguments[0],arguments[1]):m}function mb(m,S){var O=m.__data__;return MJ(S)?O[typeof S=="string"?"string":"hash"]:O.map}function aE(m){for(var S=ni(m),O=S.length;O--;){var j=S[O],ie=m[j];S[O]=[j,ie,A3(ie)]}return S}function od(m,S){var O=Lq(m,S);return WR(O)?O:n}function TJ(m){var S=Vn.call(m,ed),O=m[ed];try{m[ed]=n;var j=!0}catch{}var ie=X0.call(m);return j&&(S?m[ed]=O:delete m[ed]),ie}var lE=PC?function(m){return m==null?[]:(m=tr(m),Cc(PC(m),function(S){return _R.call(m,S)}))}:kE,S3=PC?function(m){for(var S=[];m;)Ec(S,lE(m)),m=K0(m);return S}:kE,$i=Wi;(NC&&$i(new NC(new ArrayBuffer(1)))!=It||yg&&$i(new yg)!=ee||LC&&$i(LC.resolve())!=He||Yf&&$i(new Yf)!=We||xg&&$i(new xg)!=it)&&($i=function(m){var S=Wi(m),O=S==Ie?m.constructor:n,j=O?sd(O):"";if(j)switch(j){case cK:return It;case uK:return ee;case dK:return He;case fK:return We;case hK:return it}return S});function _J(m,S,O){for(var j=-1,ie=O.length;++j<ie;){var me=O[j],Ee=me.size;switch(me.type){case"drop":m+=Ee;break;case"dropRight":S-=Ee;break;case"take":S=Di(S,m+Ee);break;case"takeRight":m=Gr(m,S-Ee);break}}return{start:m,end:S}}function DJ(m){var S=m.match(yC);return S?S[1].split(xC):[]}function C3(m,S,O){S=Dc(S,m);for(var j=-1,ie=S.length,me=!1;++j<ie;){var Ee=Aa(S[j]);if(!(me=m!=null&&O(m,Ee)))break;m=m[Ee]}return me||++j!=ie?me:(ie=m==null?0:m.length,!!ie&&Cb(ie)&&dl(Ee,ie)&&(tn(m)||ad(m)))}function $J(m){var S=m.length,O=new m.constructor(S);return S&&typeof m[0]=="string"&&Vn.call(m,"index")&&(O.index=m.index,O.input=m.input),O}function E3(m){return typeof m.constructor=="function"&&!Dg(m)?Gf(K0(m)):{}}function OJ(m,S,O){var j=m.constructor;switch(S){case At:return tE(m);case Ce:case je:return new j(+m);case It:return pJ(m,O);case Oe:case Ne:case Fe:case Qe:case ht:case Me:case Je:case ot:case mt:return s3(m,O);case ee:return new j;case be:case xe:return new j(m);case ze:return gJ(m);case We:return new j;case Re:return mJ(m)}}function IJ(m,S){var O=S.length;if(!O)return m;var j=O-1;return S[j]=(O>1?"& ":"")+S[j],S=S.join(O>2?", ":" "),m.replace(bC,`{
/* [wrapped with `+S+`] */
`)}function RJ(m){return tn(m)||ad(m)||!!(DR&&m&&m[DR])}function dl(m,S){var O=typeof m;return S=S??q,!!S&&(O=="number"||O!="symbol"&&g.test(m))&&m>-1&&m%1==0&&m<S}function Ui(m,S,O){if(!xr(O))return!1;var j=typeof S;return(j=="number"?xo(O)&&dl(S,O.length):j=="string"&&S in O)?Hs(O[S],m):!1}function cE(m,S){if(tn(m))return!1;var O=typeof m;return O=="number"||O=="symbol"||O=="boolean"||m==null||jo(m)?!0:xc.test(m)||!Ju.test(m)||S!=null&&m in tr(S)}function MJ(m){var S=typeof m;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?m!=="__proto__":m===null}function uE(m){var S=gb(m),O=ue[S];if(typeof O!="function"||!(S in gn.prototype))return!1;if(m===O)return!0;var j=sE(O);return!!j&&m===j[0]}function PJ(m){return!!AR&&AR in m}var NJ=V0?fl:TE;function Dg(m){var S=m&&m.constructor,O=typeof S=="function"&&S.prototype||Vf;return m===O}function A3(m){return m===m&&!xr(m)}function k3(m,S){return function(O){return O==null?!1:O[m]===S&&(S!==n||m in tr(O))}}function LJ(m){var S=wb(m,function(j){return O.size===d&&O.clear(),j}),O=S.cache;return S}function FJ(m,S){var O=m[1],j=S[1],ie=O|j,me=ie<(D|I|G),Ee=j==G&&O==L||j==G&&O==X&&m[7].length<=S[8]||j==(G|X)&&S[7].length<=S[8]&&O==L;if(!(me||Ee))return m;j&D&&(m[2]=S[2],ie|=O&D?0:_);var Te=S[3];if(Te){var Le=m[3];m[3]=Le?l3(Le,Te,S[4]):Te,m[4]=Le?Ac(m[3],h):S[4]}return Te=S[5],Te&&(Le=m[5],m[5]=Le?c3(Le,Te,S[6]):Te,m[6]=Le?Ac(m[5],h):S[6]),Te=S[7],Te&&(m[7]=Te),j&G&&(m[8]=m[8]==null?S[8]:Di(m[8],S[8])),m[9]==null&&(m[9]=S[9]),m[0]=S[0],m[1]=ie,m}function BJ(m){var S=[];if(m!=null)for(var O in tr(m))S.push(O);return S}function zJ(m){return X0.call(m)}function T3(m,S,O){return S=Gr(S===n?m.length-1:S,0),function(){for(var j=arguments,ie=-1,me=Gr(j.length-S,0),Ee=Ye(me);++ie<me;)Ee[ie]=j[S+ie];ie=-1;for(var Te=Ye(S+1);++ie<S;)Te[ie]=j[ie];return Te[S]=O(Ee),Bo(m,this,Te)}}function _3(m,S){return S.length<2?m:id(m,ps(S,0,-1))}function HJ(m,S){for(var O=m.length,j=Di(S.length,O),ie=yo(m);j--;){var me=S[j];m[j]=dl(me,O)?ie[me]:n}return m}function dE(m,S){if(!(S==="constructor"&&typeof m[S]=="function")&&S!="__proto__")return m[S]}var D3=O3(ZR),$g=nK||function(m,S){return fi.setTimeout(m,S)},fE=O3(uJ);function $3(m,S,O){var j=S+"";return fE(m,IJ(j,jJ(DJ(j),O)))}function O3(m){var S=0,O=0;return function(){var j=sK(),ie=ve-(j-O);if(O=j,ie>0){if(++S>=ye)return arguments[0]}else S=0;return m.apply(n,arguments)}}function vb(m,S){var O=-1,j=m.length,ie=j-1;for(S=S===n?j:S;++O<S;){var me=GC(O,ie),Ee=m[me];m[me]=m[O],m[O]=Ee}return m.length=S,m}var I3=LJ(function(m){var S=[];return m.charCodeAt(0)===46&&S.push(""),m.replace(mC,function(O,j,ie,me){S.push(ie?me.replace(F0,"$1"):j||O)}),S});function Aa(m){if(typeof m=="string"||jo(m))return m;var S=m+"";return S=="0"&&1/m==-V?"-0":S}function sd(m){if(m!=null){try{return Y0.call(m)}catch{}try{return m+""}catch{}}return""}function jJ(m,S){return us(Be,function(O){var j="_."+O[0];S&O[1]&&!H0(m,j)&&m.push(j)}),m.sort()}function R3(m){if(m instanceof gn)return m.clone();var S=new fs(m.__wrapped__,m.__chain__);return S.__actions__=yo(m.__actions__),S.__index__=m.__index__,S.__values__=m.__values__,S}function WJ(m,S,O){(O?Ui(m,S,O):S===n)?S=1:S=Gr(sn(S),0);var j=m==null?0:m.length;if(!j||S<1)return[];for(var ie=0,me=0,Ee=Ye(Q0(j/S));ie<j;)Ee[me++]=ps(m,ie,ie+=S);return Ee}function UJ(m){for(var S=-1,O=m==null?0:m.length,j=0,ie=[];++S<O;){var me=m[S];me&&(ie[j++]=me)}return ie}function VJ(){var m=arguments.length;if(!m)return[];for(var S=Ye(m-1),O=arguments[0],j=m;j--;)S[j-1]=arguments[j];return Ec(tn(O)?yo(O):[O],hi(S,1))}var YJ=ln(function(m,S){return Mr(m)?Eg(m,hi(S,1,Mr,!0)):[]}),XJ=ln(function(m,S){var O=gs(S);return Mr(O)&&(O=n),Mr(m)?Eg(m,hi(S,1,Mr,!0),zt(O,2)):[]}),GJ=ln(function(m,S){var O=gs(S);return Mr(O)&&(O=n),Mr(m)?Eg(m,hi(S,1,Mr,!0),n,O):[]});function qJ(m,S,O){var j=m==null?0:m.length;return j?(S=O||S===n?1:sn(S),ps(m,S<0?0:S,j)):[]}function KJ(m,S,O){var j=m==null?0:m.length;return j?(S=O||S===n?1:sn(S),S=j-S,ps(m,0,S<0?0:S)):[]}function JJ(m,S){return m&&m.length?cb(m,zt(S,3),!0,!0):[]}function ZJ(m,S){return m&&m.length?cb(m,zt(S,3),!0):[]}function QJ(m,S,O,j){var ie=m==null?0:m.length;return ie?(O&&typeof O!="number"&&Ui(m,S,O)&&(O=0,j=ie),VK(m,S,O,j)):[]}function M3(m,S,O){var j=m==null?0:m.length;if(!j)return-1;var ie=O==null?0:sn(O);return ie<0&&(ie=Gr(j+ie,0)),j0(m,zt(S,3),ie)}function P3(m,S,O){var j=m==null?0:m.length;if(!j)return-1;var ie=j-1;return O!==n&&(ie=sn(O),ie=O<0?Gr(j+ie,0):Di(ie,j-1)),j0(m,zt(S,3),ie,!0)}function N3(m){var S=m==null?0:m.length;return S?hi(m,1):[]}function eZ(m){var S=m==null?0:m.length;return S?hi(m,V):[]}function tZ(m,S){var O=m==null?0:m.length;return O?(S=S===n?1:sn(S),hi(m,S)):[]}function nZ(m){for(var S=-1,O=m==null?0:m.length,j={};++S<O;){var ie=m[S];j[ie[0]]=ie[1]}return j}function L3(m){return m&&m.length?m[0]:n}function rZ(m,S,O){var j=m==null?0:m.length;if(!j)return-1;var ie=O==null?0:sn(O);return ie<0&&(ie=Gr(j+ie,0)),Hf(m,S,ie)}function iZ(m){var S=m==null?0:m.length;return S?ps(m,0,-1):[]}var oZ=ln(function(m){var S=vr(m,QC);return S.length&&S[0]===m[0]?WC(S):[]}),sZ=ln(function(m){var S=gs(m),O=vr(m,QC);return S===gs(O)?S=n:O.pop(),O.length&&O[0]===m[0]?WC(O,zt(S,2)):[]}),aZ=ln(function(m){var S=gs(m),O=vr(m,QC);return S=typeof S=="function"?S:n,S&&O.pop(),O.length&&O[0]===m[0]?WC(O,n,S):[]});function lZ(m,S){return m==null?"":iK.call(m,S)}function gs(m){var S=m==null?0:m.length;return S?m[S-1]:n}function cZ(m,S,O){var j=m==null?0:m.length;if(!j)return-1;var ie=j;return O!==n&&(ie=sn(O),ie=ie<0?Gr(j+ie,0):Di(ie,j-1)),S===S?jq(m,S,ie):j0(m,vR,ie,!0)}function uZ(m,S){return m&&m.length?GR(m,sn(S)):n}var dZ=ln(F3);function F3(m,S){return m&&m.length&&S&&S.length?XC(m,S):m}function fZ(m,S,O){return m&&m.length&&S&&S.length?XC(m,S,zt(O,2)):m}function hZ(m,S,O){return m&&m.length&&S&&S.length?XC(m,S,n,O):m}var pZ=ul(function(m,S){var O=m==null?0:m.length,j=BC(m,S);return JR(m,vr(S,function(ie){return dl(ie,O)?+ie:ie}).sort(a3)),j});function gZ(m,S){var O=[];if(!(m&&m.length))return O;var j=-1,ie=[],me=m.length;for(S=zt(S,3);++j<me;){var Ee=m[j];S(Ee,j,m)&&(O.push(Ee),ie.push(j))}return JR(m,ie),O}function hE(m){return m==null?m:lK.call(m)}function mZ(m,S,O){var j=m==null?0:m.length;return j?(O&&typeof O!="number"&&Ui(m,S,O)?(S=0,O=j):(S=S==null?0:sn(S),O=O===n?j:sn(O)),ps(m,S,O)):[]}function vZ(m,S){return lb(m,S)}function bZ(m,S,O){return KC(m,S,zt(O,2))}function yZ(m,S){var O=m==null?0:m.length;if(O){var j=lb(m,S);if(j<O&&Hs(m[j],S))return j}return-1}function xZ(m,S){return lb(m,S,!0)}function wZ(m,S,O){return KC(m,S,zt(O,2),!0)}function SZ(m,S){var O=m==null?0:m.length;if(O){var j=lb(m,S,!0)-1;if(Hs(m[j],S))return j}return-1}function CZ(m){return m&&m.length?QR(m):[]}function EZ(m,S){return m&&m.length?QR(m,zt(S,2)):[]}function AZ(m){var S=m==null?0:m.length;return S?ps(m,1,S):[]}function kZ(m,S,O){return m&&m.length?(S=O||S===n?1:sn(S),ps(m,0,S<0?0:S)):[]}function TZ(m,S,O){var j=m==null?0:m.length;return j?(S=O||S===n?1:sn(S),S=j-S,ps(m,S<0?0:S,j)):[]}function _Z(m,S){return m&&m.length?cb(m,zt(S,3),!1,!0):[]}function DZ(m,S){return m&&m.length?cb(m,zt(S,3)):[]}var $Z=ln(function(m){return _c(hi(m,1,Mr,!0))}),OZ=ln(function(m){var S=gs(m);return Mr(S)&&(S=n),_c(hi(m,1,Mr,!0),zt(S,2))}),IZ=ln(function(m){var S=gs(m);return S=typeof S=="function"?S:n,_c(hi(m,1,Mr,!0),n,S)});function RZ(m){return m&&m.length?_c(m):[]}function MZ(m,S){return m&&m.length?_c(m,zt(S,2)):[]}function PZ(m,S){return S=typeof S=="function"?S:n,m&&m.length?_c(m,n,S):[]}function pE(m){if(!(m&&m.length))return[];var S=0;return m=Cc(m,function(O){if(Mr(O))return S=Gr(O.length,S),!0}),OC(S,function(O){return vr(m,_C(O))})}function B3(m,S){if(!(m&&m.length))return[];var O=pE(m);return S==null?O:vr(O,function(j){return Bo(S,n,j)})}var NZ=ln(function(m,S){return Mr(m)?Eg(m,S):[]}),LZ=ln(function(m){return ZC(Cc(m,Mr))}),FZ=ln(function(m){var S=gs(m);return Mr(S)&&(S=n),ZC(Cc(m,Mr),zt(S,2))}),BZ=ln(function(m){var S=gs(m);return S=typeof S=="function"?S:n,ZC(Cc(m,Mr),n,S)}),zZ=ln(pE);function HZ(m,S){return r3(m||[],S||[],Cg)}function jZ(m,S){return r3(m||[],S||[],Tg)}var WZ=ln(function(m){var S=m.length,O=S>1?m[S-1]:n;return O=typeof O=="function"?(m.pop(),O):n,B3(m,O)});function z3(m){var S=ue(m);return S.__chain__=!0,S}function UZ(m,S){return S(m),m}function bb(m,S){return S(m)}var VZ=ul(function(m){var S=m.length,O=S?m[0]:0,j=this.__wrapped__,ie=function(me){return BC(me,m)};return S>1||this.__actions__.length||!(j instanceof gn)||!dl(O)?this.thru(ie):(j=j.slice(O,+O+(S?1:0)),j.__actions__.push({func:bb,args:[ie],thisArg:n}),new fs(j,this.__chain__).thru(function(me){return S&&!me.length&&me.push(n),me}))});function YZ(){return z3(this)}function XZ(){return new fs(this.value(),this.__chain__)}function GZ(){this.__values__===n&&(this.__values__=eM(this.value()));var m=this.__index__>=this.__values__.length,S=m?n:this.__values__[this.__index__++];return{done:m,value:S}}function qZ(){return this}function KZ(m){for(var S,O=this;O instanceof rb;){var j=R3(O);j.__index__=0,j.__values__=n,S?ie.__wrapped__=j:S=j;var ie=j;O=O.__wrapped__}return ie.__wrapped__=m,S}function JZ(){var m=this.__wrapped__;if(m instanceof gn){var S=m;return this.__actions__.length&&(S=new gn(this)),S=S.reverse(),S.__actions__.push({func:bb,args:[hE],thisArg:n}),new fs(S,this.__chain__)}return this.thru(hE)}function ZZ(){return n3(this.__wrapped__,this.__actions__)}var QZ=ub(function(m,S,O){Vn.call(m,O)?++m[O]:ll(m,O,1)});function eQ(m,S,O){var j=tn(m)?gR:UK;return O&&Ui(m,S,O)&&(S=n),j(m,zt(S,3))}function tQ(m,S){var O=tn(m)?Cc:BR;return O(m,zt(S,3))}var nQ=h3(M3),rQ=h3(P3);function iQ(m,S){return hi(yb(m,S),1)}function oQ(m,S){return hi(yb(m,S),V)}function sQ(m,S,O){return O=O===n?1:sn(O),hi(yb(m,S),O)}function H3(m,S){var O=tn(m)?us:Tc;return O(m,zt(S,3))}function j3(m,S){var O=tn(m)?Aq:FR;return O(m,zt(S,3))}var aQ=ub(function(m,S,O){Vn.call(m,O)?m[O].push(S):ll(m,O,[S])});function lQ(m,S,O,j){m=xo(m)?m:Qf(m),O=O&&!j?sn(O):0;var ie=m.length;return O<0&&(O=Gr(ie+O,0)),Eb(m)?O<=ie&&m.indexOf(S,O)>-1:!!ie&&Hf(m,S,O)>-1}var cQ=ln(function(m,S,O){var j=-1,ie=typeof S=="function",me=xo(m)?Ye(m.length):[];return Tc(m,function(Ee){me[++j]=ie?Bo(S,Ee,O):Ag(Ee,S,O)}),me}),uQ=ub(function(m,S,O){ll(m,O,S)});function yb(m,S){var O=tn(m)?vr:VR;return O(m,zt(S,3))}function dQ(m,S,O,j){return m==null?[]:(tn(S)||(S=S==null?[]:[S]),O=j?n:O,tn(O)||(O=O==null?[]:[O]),qR(m,S,O))}var fQ=ub(function(m,S,O){m[O?0:1].push(S)},function(){return[[],[]]});function hQ(m,S,O){var j=tn(m)?kC:yR,ie=arguments.length<3;return j(m,zt(S,4),O,ie,Tc)}function pQ(m,S,O){var j=tn(m)?kq:yR,ie=arguments.length<3;return j(m,zt(S,4),O,ie,FR)}function gQ(m,S){var O=tn(m)?Cc:BR;return O(m,Sb(zt(S,3)))}function mQ(m){var S=tn(m)?MR:lJ;return S(m)}function vQ(m,S,O){(O?Ui(m,S,O):S===n)?S=1:S=sn(S);var j=tn(m)?BK:cJ;return j(m,S)}function bQ(m){var S=tn(m)?zK:dJ;return S(m)}function yQ(m){if(m==null)return 0;if(xo(m))return Eb(m)?Wf(m):m.length;var S=$i(m);return S==ee||S==We?m.size:VC(m).length}function xQ(m,S,O){var j=tn(m)?TC:fJ;return O&&Ui(m,S,O)&&(S=n),j(m,zt(S,3))}var wQ=ln(function(m,S){if(m==null)return[];var O=S.length;return O>1&&Ui(m,S[0],S[1])?S=[]:O>2&&Ui(S[0],S[1],S[2])&&(S=[S[0]]),qR(m,hi(S,1),[])}),xb=tK||function(){return fi.Date.now()};function SQ(m,S){if(typeof S!="function")throw new ds(s);return m=sn(m),function(){if(--m<1)return S.apply(this,arguments)}}function W3(m,S,O){return S=O?n:S,S=m&&S==null?m.length:S,cl(m,G,n,n,n,n,S)}function U3(m,S){var O;if(typeof S!="function")throw new ds(s);return m=sn(m),function(){return--m>0&&(O=S.apply(this,arguments)),m<=1&&(S=n),O}}var gE=ln(function(m,S,O){var j=D;if(O.length){var ie=Ac(O,Jf(gE));j|=F}return cl(m,j,S,O,ie)}),V3=ln(function(m,S,O){var j=D|I;if(O.length){var ie=Ac(O,Jf(V3));j|=F}return cl(S,j,m,O,ie)});function Y3(m,S,O){S=O?n:S;var j=cl(m,L,n,n,n,n,n,S);return j.placeholder=Y3.placeholder,j}function X3(m,S,O){S=O?n:S;var j=cl(m,M,n,n,n,n,n,S);return j.placeholder=X3.placeholder,j}function G3(m,S,O){var j,ie,me,Ee,Te,Le,tt=0,nt=!1,at=!1,yt=!0;if(typeof m!="function")throw new ds(s);S=ms(S)||0,xr(O)&&(nt=!!O.leading,at="maxWait"in O,me=at?Gr(ms(O.maxWait)||0,S):me,yt="trailing"in O?!!O.trailing:yt);function $t(Pr){var js=j,pl=ie;return j=ie=n,tt=Pr,Ee=m.apply(pl,js),Ee}function Ut(Pr){return tt=Pr,Te=$g(hn,S),nt?$t(Pr):Ee}function an(Pr){var js=Pr-Le,pl=Pr-tt,hM=S-js;return at?Di(hM,me-pl):hM}function Vt(Pr){var js=Pr-Le,pl=Pr-tt;return Le===n||js>=S||js<0||at&&pl>=me}function hn(){var Pr=xb();if(Vt(Pr))return yn(Pr);Te=$g(hn,an(Pr))}function yn(Pr){return Te=n,yt&&j?$t(Pr):(j=ie=n,Ee)}function Wo(){Te!==n&&i3(Te),tt=0,j=Le=ie=Te=n}function Vi(){return Te===n?Ee:yn(xb())}function Uo(){var Pr=xb(),js=Vt(Pr);if(j=arguments,ie=this,Le=Pr,js){if(Te===n)return Ut(Le);if(at)return i3(Te),Te=$g(hn,S),$t(Le)}return Te===n&&(Te=$g(hn,S)),Ee}return Uo.cancel=Wo,Uo.flush=Vi,Uo}var CQ=ln(function(m,S){return LR(m,1,S)}),EQ=ln(function(m,S,O){return LR(m,ms(S)||0,O)});function AQ(m){return cl(m,Z)}function wb(m,S){if(typeof m!="function"||S!=null&&typeof S!="function")throw new ds(s);var O=function(){var j=arguments,ie=S?S.apply(this,j):j[0],me=O.cache;if(me.has(ie))return me.get(ie);var Ee=m.apply(this,j);return O.cache=me.set(ie,Ee)||me,Ee};return O.cache=new(wb.Cache||al),O}wb.Cache=al;function Sb(m){if(typeof m!="function")throw new ds(s);return function(){var S=arguments;switch(S.length){case 0:return!m.call(this);case 1:return!m.call(this,S[0]);case 2:return!m.call(this,S[0],S[1]);case 3:return!m.call(this,S[0],S[1],S[2])}return!m.apply(this,S)}}function kQ(m){return U3(2,m)}var TQ=hJ(function(m,S){S=S.length==1&&tn(S[0])?vr(S[0],zo(zt())):vr(hi(S,1),zo(zt()));var O=S.length;return ln(function(j){for(var ie=-1,me=Di(j.length,O);++ie<me;)j[ie]=S[ie].call(this,j[ie]);return Bo(m,this,j)})}),mE=ln(function(m,S){var O=Ac(S,Jf(mE));return cl(m,F,n,S,O)}),q3=ln(function(m,S){var O=Ac(S,Jf(q3));return cl(m,H,n,S,O)}),_Q=ul(function(m,S){return cl(m,X,n,n,n,S)});function DQ(m,S){if(typeof m!="function")throw new ds(s);return S=S===n?S:sn(S),ln(m,S)}function $Q(m,S){if(typeof m!="function")throw new ds(s);return S=S==null?0:Gr(sn(S),0),ln(function(O){var j=O[S],ie=$c(O,0,S);return j&&Ec(ie,j),Bo(m,this,ie)})}function OQ(m,S,O){var j=!0,ie=!0;if(typeof m!="function")throw new ds(s);return xr(O)&&(j="leading"in O?!!O.leading:j,ie="trailing"in O?!!O.trailing:ie),G3(m,S,{leading:j,maxWait:S,trailing:ie})}function IQ(m){return W3(m,1)}function RQ(m,S){return mE(eE(S),m)}function MQ(){if(!arguments.length)return[];var m=arguments[0];return tn(m)?m:[m]}function PQ(m){return hs(m,w)}function NQ(m,S){return S=typeof S=="function"?S:n,hs(m,w,S)}function LQ(m){return hs(m,p|w)}function FQ(m,S){return S=typeof S=="function"?S:n,hs(m,p|w,S)}function BQ(m,S){return S==null||NR(m,S,ni(S))}function Hs(m,S){return m===S||m!==m&&S!==S}var zQ=pb(jC),HQ=pb(function(m,S){return m>=S}),ad=jR(function(){return arguments}())?jR:function(m){return Ar(m)&&Vn.call(m,"callee")&&!_R.call(m,"callee")},tn=Ye.isArray,jQ=cR?zo(cR):KK;function xo(m){return m!=null&&Cb(m.length)&&!fl(m)}function Mr(m){return Ar(m)&&xo(m)}function WQ(m){return m===!0||m===!1||Ar(m)&&Wi(m)==Ce}var Oc=rK||TE,UQ=uR?zo(uR):JK;function VQ(m){return Ar(m)&&m.nodeType===1&&!Og(m)}function YQ(m){if(m==null)return!0;if(xo(m)&&(tn(m)||typeof m=="string"||typeof m.splice=="function"||Oc(m)||Zf(m)||ad(m)))return!m.length;var S=$i(m);if(S==ee||S==We)return!m.size;if(Dg(m))return!VC(m).length;for(var O in m)if(Vn.call(m,O))return!1;return!0}function XQ(m,S){return kg(m,S)}function GQ(m,S,O){O=typeof O=="function"?O:n;var j=O?O(m,S):n;return j===n?kg(m,S,n,O):!!j}function vE(m){if(!Ar(m))return!1;var S=Wi(m);return S==Xe||S==Ue||typeof m.message=="string"&&typeof m.name=="string"&&!Og(m)}function qQ(m){return typeof m=="number"&&$R(m)}function fl(m){if(!xr(m))return!1;var S=Wi(m);return S==qe||S==K||S==we||S==rt}function K3(m){return typeof m=="number"&&m==sn(m)}function Cb(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function xr(m){var S=typeof m;return m!=null&&(S=="object"||S=="function")}function Ar(m){return m!=null&&typeof m=="object"}var J3=dR?zo(dR):QK;function KQ(m,S){return m===S||UC(m,S,aE(S))}function JQ(m,S,O){return O=typeof O=="function"?O:n,UC(m,S,aE(S),O)}function ZQ(m){return Z3(m)&&m!=+m}function QQ(m){if(NJ(m))throw new Zt(o);return WR(m)}function eee(m){return m===null}function tee(m){return m==null}function Z3(m){return typeof m=="number"||Ar(m)&&Wi(m)==be}function Og(m){if(!Ar(m)||Wi(m)!=Ie)return!1;var S=K0(m);if(S===null)return!0;var O=Vn.call(S,"constructor")&&S.constructor;return typeof O=="function"&&O instanceof O&&Y0.call(O)==Jq}var bE=fR?zo(fR):eJ;function nee(m){return K3(m)&&m>=-q&&m<=q}var Q3=hR?zo(hR):tJ;function Eb(m){return typeof m=="string"||!tn(m)&&Ar(m)&&Wi(m)==xe}function jo(m){return typeof m=="symbol"||Ar(m)&&Wi(m)==Re}var Zf=pR?zo(pR):nJ;function ree(m){return m===n}function iee(m){return Ar(m)&&$i(m)==it}function oee(m){return Ar(m)&&Wi(m)==xt}var see=pb(YC),aee=pb(function(m,S){return m<=S});function eM(m){if(!m)return[];if(xo(m))return Eb(m)?Bs(m):yo(m);if(bg&&m[bg])return Bq(m[bg]());var S=$i(m),O=S==ee?RC:S==We?W0:Qf;return O(m)}function hl(m){if(!m)return m===0?m:0;if(m=ms(m),m===V||m===-V){var S=m<0?-1:1;return S*ce}return m===m?m:0}function sn(m){var S=hl(m),O=S%1;return S===S?O?S-O:S:0}function tM(m){return m?rd(sn(m),0,Ae):0}function ms(m){if(typeof m=="number")return m;if(jo(m))return fe;if(xr(m)){var S=typeof m.valueOf=="function"?m.valueOf():m;m=xr(S)?S+"":S}if(typeof m!="string")return m===0?m:+m;m=xR(m);var O=c.test(m);return O||f.test(m)?Sq(m.slice(2),O?2:8):re.test(m)?fe:+m}function nM(m){return Ea(m,wo(m))}function lee(m){return m?rd(sn(m),-q,q):m===0?m:0}function Wn(m){return m==null?"":Ho(m)}var cee=qf(function(m,S){if(Dg(S)||xo(S)){Ea(S,ni(S),m);return}for(var O in S)Vn.call(S,O)&&Cg(m,O,S[O])}),rM=qf(function(m,S){Ea(S,wo(S),m)}),Ab=qf(function(m,S,O,j){Ea(S,wo(S),m,j)}),uee=qf(function(m,S,O,j){Ea(S,ni(S),m,j)}),dee=ul(BC);function fee(m,S){var O=Gf(m);return S==null?O:PR(O,S)}var hee=ln(function(m,S){m=tr(m);var O=-1,j=S.length,ie=j>2?S[2]:n;for(ie&&Ui(S[0],S[1],ie)&&(j=1);++O<j;)for(var me=S[O],Ee=wo(me),Te=-1,Le=Ee.length;++Te<Le;){var tt=Ee[Te],nt=m[tt];(nt===n||Hs(nt,Vf[tt])&&!Vn.call(m,tt))&&(m[tt]=me[tt])}return m}),pee=ln(function(m){return m.push(n,x3),Bo(iM,n,m)});function gee(m,S){return mR(m,zt(S,3),Ca)}function mee(m,S){return mR(m,zt(S,3),HC)}function vee(m,S){return m==null?m:zC(m,zt(S,3),wo)}function bee(m,S){return m==null?m:zR(m,zt(S,3),wo)}function yee(m,S){return m&&Ca(m,zt(S,3))}function xee(m,S){return m&&HC(m,zt(S,3))}function wee(m){return m==null?[]:sb(m,ni(m))}function See(m){return m==null?[]:sb(m,wo(m))}function yE(m,S,O){var j=m==null?n:id(m,S);return j===n?O:j}function Cee(m,S){return m!=null&&C3(m,S,YK)}function xE(m,S){return m!=null&&C3(m,S,XK)}var Eee=g3(function(m,S,O){S!=null&&typeof S.toString!="function"&&(S=X0.call(S)),m[S]=O},SE(So)),Aee=g3(function(m,S,O){S!=null&&typeof S.toString!="function"&&(S=X0.call(S)),Vn.call(m,S)?m[S].push(O):m[S]=[O]},zt),kee=ln(Ag);function ni(m){return xo(m)?RR(m):VC(m)}function wo(m){return xo(m)?RR(m,!0):rJ(m)}function Tee(m,S){var O={};return S=zt(S,3),Ca(m,function(j,ie,me){ll(O,S(j,ie,me),j)}),O}function _ee(m,S){var O={};return S=zt(S,3),Ca(m,function(j,ie,me){ll(O,ie,S(j,ie,me))}),O}var Dee=qf(function(m,S,O){ab(m,S,O)}),iM=qf(function(m,S,O,j){ab(m,S,O,j)}),$ee=ul(function(m,S){var O={};if(m==null)return O;var j=!1;S=vr(S,function(me){return me=Dc(me,m),j||(j=me.length>1),me}),Ea(m,oE(m),O),j&&(O=hs(O,p|y|w,EJ));for(var ie=S.length;ie--;)JC(O,S[ie]);return O});function Oee(m,S){return oM(m,Sb(zt(S)))}var Iee=ul(function(m,S){return m==null?{}:oJ(m,S)});function oM(m,S){if(m==null)return{};var O=vr(oE(m),function(j){return[j]});return S=zt(S),KR(m,O,function(j,ie){return S(j,ie[0])})}function Ree(m,S,O){S=Dc(S,m);var j=-1,ie=S.length;for(ie||(ie=1,m=n);++j<ie;){var me=m==null?n:m[Aa(S[j])];me===n&&(j=ie,me=O),m=fl(me)?me.call(m):me}return m}function Mee(m,S,O){return m==null?m:Tg(m,S,O)}function Pee(m,S,O,j){return j=typeof j=="function"?j:n,m==null?m:Tg(m,S,O,j)}var sM=b3(ni),aM=b3(wo);function Nee(m,S,O){var j=tn(m),ie=j||Oc(m)||Zf(m);if(S=zt(S,4),O==null){var me=m&&m.constructor;ie?O=j?new me:[]:xr(m)?O=fl(me)?Gf(K0(m)):{}:O={}}return(ie?us:Ca)(m,function(Ee,Te,Le){return S(O,Ee,Te,Le)}),O}function Lee(m,S){return m==null?!0:JC(m,S)}function Fee(m,S,O){return m==null?m:t3(m,S,eE(O))}function Bee(m,S,O,j){return j=typeof j=="function"?j:n,m==null?m:t3(m,S,eE(O),j)}function Qf(m){return m==null?[]:IC(m,ni(m))}function zee(m){return m==null?[]:IC(m,wo(m))}function Hee(m,S,O){return O===n&&(O=S,S=n),O!==n&&(O=ms(O),O=O===O?O:0),S!==n&&(S=ms(S),S=S===S?S:0),rd(ms(m),S,O)}function jee(m,S,O){return S=hl(S),O===n?(O=S,S=0):O=hl(O),m=ms(m),GK(m,S,O)}function Wee(m,S,O){if(O&&typeof O!="boolean"&&Ui(m,S,O)&&(S=O=n),O===n&&(typeof S=="boolean"?(O=S,S=n):typeof m=="boolean"&&(O=m,m=n)),m===n&&S===n?(m=0,S=1):(m=hl(m),S===n?(S=m,m=0):S=hl(S)),m>S){var j=m;m=S,S=j}if(O||m%1||S%1){var ie=OR();return Di(m+ie*(S-m+wq("1e-"+((ie+"").length-1))),S)}return GC(m,S)}var Uee=Kf(function(m,S,O){return S=S.toLowerCase(),m+(O?lM(S):S)});function lM(m){return wE(Wn(m).toLowerCase())}function cM(m){return m=Wn(m),m&&m.replace(v,Mq).replace(dq,"")}function Vee(m,S,O){m=Wn(m),S=Ho(S);var j=m.length;O=O===n?j:rd(sn(O),0,j);var ie=O;return O-=S.length,O>=0&&m.slice(O,ie)==S}function Yee(m){return m=Wn(m),m&&ui.test(m)?m.replace(Bt,Pq):m}function Xee(m){return m=Wn(m),m&&ol.test(m)?m.replace(Zu,"\\$&"):m}var Gee=Kf(function(m,S,O){return m+(O?"-":"")+S.toLowerCase()}),qee=Kf(function(m,S,O){return m+(O?" ":"")+S.toLowerCase()}),Kee=f3("toLowerCase");function Jee(m,S,O){m=Wn(m),S=sn(S);var j=S?Wf(m):0;if(!S||j>=S)return m;var ie=(S-j)/2;return hb(eb(ie),O)+m+hb(Q0(ie),O)}function Zee(m,S,O){m=Wn(m),S=sn(S);var j=S?Wf(m):0;return S&&j<S?m+hb(S-j,O):m}function Qee(m,S,O){m=Wn(m),S=sn(S);var j=S?Wf(m):0;return S&&j<S?hb(S-j,O)+m:m}function ete(m,S,O){return O||S==null?S=0:S&&(S=+S),aK(Wn(m).replace(wc,""),S||0)}function tte(m,S,O){return(O?Ui(m,S,O):S===n)?S=1:S=sn(S),qC(Wn(m),S)}function nte(){var m=arguments,S=Wn(m[0]);return m.length<3?S:S.replace(m[1],m[2])}var rte=Kf(function(m,S,O){return m+(O?"_":"")+S.toLowerCase()});function ite(m,S,O){return O&&typeof O!="number"&&Ui(m,S,O)&&(S=O=n),O=O===n?Ae:O>>>0,O?(m=Wn(m),m&&(typeof S=="string"||S!=null&&!bE(S))&&(S=Ho(S),!S&&jf(m))?$c(Bs(m),0,O):m.split(S,O)):[]}var ote=Kf(function(m,S,O){return m+(O?" ":"")+wE(S)});function ste(m,S,O){return m=Wn(m),O=O==null?0:rd(sn(O),0,m.length),S=Ho(S),m.slice(O,O+S.length)==S}function ate(m,S,O){var j=ue.templateSettings;O&&Ui(m,S,O)&&(S=n),m=Wn(m),S=Ab({},S,j,y3);var ie=Ab({},S.imports,j.imports,y3),me=ni(ie),Ee=IC(ie,me),Te,Le,tt=0,nt=S.interpolate||b,at="__p += '",yt=MC((S.escape||b).source+"|"+nt.source+"|"+(nt===Ff?mg:b).source+"|"+(S.evaluate||b).source+"|$","g"),$t="//# sourceURL="+(Vn.call(S,"sourceURL")?(S.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mq+"]")+`
`;m.replace(yt,function(Vt,hn,yn,Wo,Vi,Uo){return yn||(yn=Wo),at+=m.slice(tt,Uo).replace(x,Nq),hn&&(Te=!0,at+=`' +
__e(`+hn+`) +
'`),Vi&&(Le=!0,at+=`';
`+Vi+`;
__p += '`),yn&&(at+=`' +
((__t = (`+yn+`)) == null ? '' : __t) +
'`),tt=Uo+Vt.length,Vt}),at+=`';
`;var Ut=Vn.call(S,"variable")&&S.variable;if(!Ut)at=`with (obj) {
`+at+`
}
`;else if(L0.test(Ut))throw new Zt(a);at=(Le?at.replace(dt,""):at).replace(pt,"$1").replace(bt,"$1;"),at="function("+(Ut||"obj")+`) {
`+(Ut?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Te?", __e = _.escape":"")+(Le?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+at+`return __p
}`;var an=dM(function(){return Fn(me,$t+"return "+at).apply(n,Ee)});if(an.source=at,vE(an))throw an;return an}function lte(m){return Wn(m).toLowerCase()}function cte(m){return Wn(m).toUpperCase()}function ute(m,S,O){if(m=Wn(m),m&&(O||S===n))return xR(m);if(!m||!(S=Ho(S)))return m;var j=Bs(m),ie=Bs(S),me=wR(j,ie),Ee=SR(j,ie)+1;return $c(j,me,Ee).join("")}function dte(m,S,O){if(m=Wn(m),m&&(O||S===n))return m.slice(0,ER(m)+1);if(!m||!(S=Ho(S)))return m;var j=Bs(m),ie=SR(j,Bs(S))+1;return $c(j,0,ie).join("")}function fte(m,S,O){if(m=Wn(m),m&&(O||S===n))return m.replace(wc,"");if(!m||!(S=Ho(S)))return m;var j=Bs(m),ie=wR(j,Bs(S));return $c(j,ie).join("")}function hte(m,S){var O=te,j=ae;if(xr(S)){var ie="separator"in S?S.separator:ie;O="length"in S?sn(S.length):O,j="omission"in S?Ho(S.omission):j}m=Wn(m);var me=m.length;if(jf(m)){var Ee=Bs(m);me=Ee.length}if(O>=me)return m;var Te=O-Wf(j);if(Te<1)return j;var Le=Ee?$c(Ee,0,Te).join(""):m.slice(0,Te);if(ie===n)return Le+j;if(Ee&&(Te+=Le.length-Te),bE(ie)){if(m.slice(Te).search(ie)){var tt,nt=Le;for(ie.global||(ie=MC(ie.source,Wn(B0.exec(ie))+"g")),ie.lastIndex=0;tt=ie.exec(nt);)var at=tt.index;Le=Le.slice(0,at===n?Te:at)}}else if(m.indexOf(Ho(ie),Te)!=Te){var yt=Le.lastIndexOf(ie);yt>-1&&(Le=Le.slice(0,yt))}return Le+j}function pte(m){return m=Wn(m),m&&vn.test(m)?m.replace(Mt,Wq):m}var gte=Kf(function(m,S,O){return m+(O?" ":"")+S.toUpperCase()}),wE=f3("toUpperCase");function uM(m,S,O){return m=Wn(m),S=O?n:S,S===n?Fq(m)?Yq(m):Dq(m):m.match(S)||[]}var dM=ln(function(m,S){try{return Bo(m,n,S)}catch(O){return vE(O)?O:new Zt(O)}}),mte=ul(function(m,S){return us(S,function(O){O=Aa(O),ll(m,O,gE(m[O],m))}),m});function vte(m){var S=m==null?0:m.length,O=zt();return m=S?vr(m,function(j){if(typeof j[1]!="function")throw new ds(s);return[O(j[0]),j[1]]}):[],ln(function(j){for(var ie=-1;++ie<S;){var me=m[ie];if(Bo(me[0],this,j))return Bo(me[1],this,j)}})}function bte(m){return WK(hs(m,p))}function SE(m){return function(){return m}}function yte(m,S){return m==null||m!==m?S:m}var xte=p3(),wte=p3(!0);function So(m){return m}function CE(m){return UR(typeof m=="function"?m:hs(m,p))}function Ste(m){return YR(hs(m,p))}function Cte(m,S){return XR(m,hs(S,p))}var Ete=ln(function(m,S){return function(O){return Ag(O,m,S)}}),Ate=ln(function(m,S){return function(O){return Ag(m,O,S)}});function EE(m,S,O){var j=ni(S),ie=sb(S,j);O==null&&!(xr(S)&&(ie.length||!j.length))&&(O=S,S=m,m=this,ie=sb(S,ni(S)));var me=!(xr(O)&&"chain"in O)||!!O.chain,Ee=fl(m);return us(ie,function(Te){var Le=S[Te];m[Te]=Le,Ee&&(m.prototype[Te]=function(){var tt=this.__chain__;if(me||tt){var nt=m(this.__wrapped__),at=nt.__actions__=yo(this.__actions__);return at.push({func:Le,args:arguments,thisArg:m}),nt.__chain__=tt,nt}return Le.apply(m,Ec([this.value()],arguments))})}),m}function kte(){return fi._===this&&(fi._=Zq),this}function AE(){}function Tte(m){return m=sn(m),ln(function(S){return GR(S,m)})}var _te=nE(vr),Dte=nE(gR),$te=nE(TC);function fM(m){return cE(m)?_C(Aa(m)):sJ(m)}function Ote(m){return function(S){return m==null?n:id(m,S)}}var Ite=m3(),Rte=m3(!0);function kE(){return[]}function TE(){return!1}function Mte(){return{}}function Pte(){return""}function Nte(){return!0}function Lte(m,S){if(m=sn(m),m<1||m>q)return[];var O=Ae,j=Di(m,Ae);S=zt(S),m-=Ae;for(var ie=OC(j,S);++O<m;)S(O);return ie}function Fte(m){return tn(m)?vr(m,Aa):jo(m)?[m]:yo(I3(Wn(m)))}function Bte(m){var S=++Kq;return Wn(m)+S}var zte=fb(function(m,S){return m+S},0),Hte=rE("ceil"),jte=fb(function(m,S){return m/S},1),Wte=rE("floor");function Ute(m){return m&&m.length?ob(m,So,jC):n}function Vte(m,S){return m&&m.length?ob(m,zt(S,2),jC):n}function Yte(m){return bR(m,So)}function Xte(m,S){return bR(m,zt(S,2))}function Gte(m){return m&&m.length?ob(m,So,YC):n}function qte(m,S){return m&&m.length?ob(m,zt(S,2),YC):n}var Kte=fb(function(m,S){return m*S},1),Jte=rE("round"),Zte=fb(function(m,S){return m-S},0);function Qte(m){return m&&m.length?$C(m,So):0}function ene(m,S){return m&&m.length?$C(m,zt(S,2)):0}return ue.after=SQ,ue.ary=W3,ue.assign=cee,ue.assignIn=rM,ue.assignInWith=Ab,ue.assignWith=uee,ue.at=dee,ue.before=U3,ue.bind=gE,ue.bindAll=mte,ue.bindKey=V3,ue.castArray=MQ,ue.chain=z3,ue.chunk=WJ,ue.compact=UJ,ue.concat=VJ,ue.cond=vte,ue.conforms=bte,ue.constant=SE,ue.countBy=QZ,ue.create=fee,ue.curry=Y3,ue.curryRight=X3,ue.debounce=G3,ue.defaults=hee,ue.defaultsDeep=pee,ue.defer=CQ,ue.delay=EQ,ue.difference=YJ,ue.differenceBy=XJ,ue.differenceWith=GJ,ue.drop=qJ,ue.dropRight=KJ,ue.dropRightWhile=JJ,ue.dropWhile=ZJ,ue.fill=QJ,ue.filter=tQ,ue.flatMap=iQ,ue.flatMapDeep=oQ,ue.flatMapDepth=sQ,ue.flatten=N3,ue.flattenDeep=eZ,ue.flattenDepth=tZ,ue.flip=AQ,ue.flow=xte,ue.flowRight=wte,ue.fromPairs=nZ,ue.functions=wee,ue.functionsIn=See,ue.groupBy=aQ,ue.initial=iZ,ue.intersection=oZ,ue.intersectionBy=sZ,ue.intersectionWith=aZ,ue.invert=Eee,ue.invertBy=Aee,ue.invokeMap=cQ,ue.iteratee=CE,ue.keyBy=uQ,ue.keys=ni,ue.keysIn=wo,ue.map=yb,ue.mapKeys=Tee,ue.mapValues=_ee,ue.matches=Ste,ue.matchesProperty=Cte,ue.memoize=wb,ue.merge=Dee,ue.mergeWith=iM,ue.method=Ete,ue.methodOf=Ate,ue.mixin=EE,ue.negate=Sb,ue.nthArg=Tte,ue.omit=$ee,ue.omitBy=Oee,ue.once=kQ,ue.orderBy=dQ,ue.over=_te,ue.overArgs=TQ,ue.overEvery=Dte,ue.overSome=$te,ue.partial=mE,ue.partialRight=q3,ue.partition=fQ,ue.pick=Iee,ue.pickBy=oM,ue.property=fM,ue.propertyOf=Ote,ue.pull=dZ,ue.pullAll=F3,ue.pullAllBy=fZ,ue.pullAllWith=hZ,ue.pullAt=pZ,ue.range=Ite,ue.rangeRight=Rte,ue.rearg=_Q,ue.reject=gQ,ue.remove=gZ,ue.rest=DQ,ue.reverse=hE,ue.sampleSize=vQ,ue.set=Mee,ue.setWith=Pee,ue.shuffle=bQ,ue.slice=mZ,ue.sortBy=wQ,ue.sortedUniq=CZ,ue.sortedUniqBy=EZ,ue.split=ite,ue.spread=$Q,ue.tail=AZ,ue.take=kZ,ue.takeRight=TZ,ue.takeRightWhile=_Z,ue.takeWhile=DZ,ue.tap=UZ,ue.throttle=OQ,ue.thru=bb,ue.toArray=eM,ue.toPairs=sM,ue.toPairsIn=aM,ue.toPath=Fte,ue.toPlainObject=nM,ue.transform=Nee,ue.unary=IQ,ue.union=$Z,ue.unionBy=OZ,ue.unionWith=IZ,ue.uniq=RZ,ue.uniqBy=MZ,ue.uniqWith=PZ,ue.unset=Lee,ue.unzip=pE,ue.unzipWith=B3,ue.update=Fee,ue.updateWith=Bee,ue.values=Qf,ue.valuesIn=zee,ue.without=NZ,ue.words=uM,ue.wrap=RQ,ue.xor=LZ,ue.xorBy=FZ,ue.xorWith=BZ,ue.zip=zZ,ue.zipObject=HZ,ue.zipObjectDeep=jZ,ue.zipWith=WZ,ue.entries=sM,ue.entriesIn=aM,ue.extend=rM,ue.extendWith=Ab,EE(ue,ue),ue.add=zte,ue.attempt=dM,ue.camelCase=Uee,ue.capitalize=lM,ue.ceil=Hte,ue.clamp=Hee,ue.clone=PQ,ue.cloneDeep=LQ,ue.cloneDeepWith=FQ,ue.cloneWith=NQ,ue.conformsTo=BQ,ue.deburr=cM,ue.defaultTo=yte,ue.divide=jte,ue.endsWith=Vee,ue.eq=Hs,ue.escape=Yee,ue.escapeRegExp=Xee,ue.every=eQ,ue.find=nQ,ue.findIndex=M3,ue.findKey=gee,ue.findLast=rQ,ue.findLastIndex=P3,ue.findLastKey=mee,ue.floor=Wte,ue.forEach=H3,ue.forEachRight=j3,ue.forIn=vee,ue.forInRight=bee,ue.forOwn=yee,ue.forOwnRight=xee,ue.get=yE,ue.gt=zQ,ue.gte=HQ,ue.has=Cee,ue.hasIn=xE,ue.head=L3,ue.identity=So,ue.includes=lQ,ue.indexOf=rZ,ue.inRange=jee,ue.invoke=kee,ue.isArguments=ad,ue.isArray=tn,ue.isArrayBuffer=jQ,ue.isArrayLike=xo,ue.isArrayLikeObject=Mr,ue.isBoolean=WQ,ue.isBuffer=Oc,ue.isDate=UQ,ue.isElement=VQ,ue.isEmpty=YQ,ue.isEqual=XQ,ue.isEqualWith=GQ,ue.isError=vE,ue.isFinite=qQ,ue.isFunction=fl,ue.isInteger=K3,ue.isLength=Cb,ue.isMap=J3,ue.isMatch=KQ,ue.isMatchWith=JQ,ue.isNaN=ZQ,ue.isNative=QQ,ue.isNil=tee,ue.isNull=eee,ue.isNumber=Z3,ue.isObject=xr,ue.isObjectLike=Ar,ue.isPlainObject=Og,ue.isRegExp=bE,ue.isSafeInteger=nee,ue.isSet=Q3,ue.isString=Eb,ue.isSymbol=jo,ue.isTypedArray=Zf,ue.isUndefined=ree,ue.isWeakMap=iee,ue.isWeakSet=oee,ue.join=lZ,ue.kebabCase=Gee,ue.last=gs,ue.lastIndexOf=cZ,ue.lowerCase=qee,ue.lowerFirst=Kee,ue.lt=see,ue.lte=aee,ue.max=Ute,ue.maxBy=Vte,ue.mean=Yte,ue.meanBy=Xte,ue.min=Gte,ue.minBy=qte,ue.stubArray=kE,ue.stubFalse=TE,ue.stubObject=Mte,ue.stubString=Pte,ue.stubTrue=Nte,ue.multiply=Kte,ue.nth=uZ,ue.noConflict=kte,ue.noop=AE,ue.now=xb,ue.pad=Jee,ue.padEnd=Zee,ue.padStart=Qee,ue.parseInt=ete,ue.random=Wee,ue.reduce=hQ,ue.reduceRight=pQ,ue.repeat=tte,ue.replace=nte,ue.result=Ree,ue.round=Jte,ue.runInContext=Pe,ue.sample=mQ,ue.size=yQ,ue.snakeCase=rte,ue.some=xQ,ue.sortedIndex=vZ,ue.sortedIndexBy=bZ,ue.sortedIndexOf=yZ,ue.sortedLastIndex=xZ,ue.sortedLastIndexBy=wZ,ue.sortedLastIndexOf=SZ,ue.startCase=ote,ue.startsWith=ste,ue.subtract=Zte,ue.sum=Qte,ue.sumBy=ene,ue.template=ate,ue.times=Lte,ue.toFinite=hl,ue.toInteger=sn,ue.toLength=tM,ue.toLower=lte,ue.toNumber=ms,ue.toSafeInteger=lee,ue.toString=Wn,ue.toUpper=cte,ue.trim=ute,ue.trimEnd=dte,ue.trimStart=fte,ue.truncate=hte,ue.unescape=pte,ue.uniqueId=Bte,ue.upperCase=gte,ue.upperFirst=wE,ue.each=H3,ue.eachRight=j3,ue.first=L3,EE(ue,function(){var m={};return Ca(ue,function(S,O){Vn.call(ue.prototype,O)||(m[O]=S)}),m}(),{chain:!1}),ue.VERSION=r,us(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){ue[m].placeholder=ue}),us(["drop","take"],function(m,S){gn.prototype[m]=function(O){O=O===n?1:Gr(sn(O),0);var j=this.__filtered__&&!S?new gn(this):this.clone();return j.__filtered__?j.__takeCount__=Di(O,j.__takeCount__):j.__views__.push({size:Di(O,Ae),type:m+(j.__dir__<0?"Right":"")}),j},gn.prototype[m+"Right"]=function(O){return this.reverse()[m](O).reverse()}}),us(["filter","map","takeWhile"],function(m,S){var O=S+1,j=O==se||O==B;gn.prototype[m]=function(ie){var me=this.clone();return me.__iteratees__.push({iteratee:zt(ie,3),type:O}),me.__filtered__=me.__filtered__||j,me}}),us(["head","last"],function(m,S){var O="take"+(S?"Right":"");gn.prototype[m]=function(){return this[O](1).value()[0]}}),us(["initial","tail"],function(m,S){var O="drop"+(S?"":"Right");gn.prototype[m]=function(){return this.__filtered__?new gn(this):this[O](1)}}),gn.prototype.compact=function(){return this.filter(So)},gn.prototype.find=function(m){return this.filter(m).head()},gn.prototype.findLast=function(m){return this.reverse().find(m)},gn.prototype.invokeMap=ln(function(m,S){return typeof m=="function"?new gn(this):this.map(function(O){return Ag(O,m,S)})}),gn.prototype.reject=function(m){return this.filter(Sb(zt(m)))},gn.prototype.slice=function(m,S){m=sn(m);var O=this;return O.__filtered__&&(m>0||S<0)?new gn(O):(m<0?O=O.takeRight(-m):m&&(O=O.drop(m)),S!==n&&(S=sn(S),O=S<0?O.dropRight(-S):O.take(S-m)),O)},gn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},gn.prototype.toArray=function(){return this.take(Ae)},Ca(gn.prototype,function(m,S){var O=/^(?:filter|find|map|reject)|While$/.test(S),j=/^(?:head|last)$/.test(S),ie=ue[j?"take"+(S=="last"?"Right":""):S],me=j||/^find/.test(S);ie&&(ue.prototype[S]=function(){var Ee=this.__wrapped__,Te=j?[1]:arguments,Le=Ee instanceof gn,tt=Te[0],nt=Le||tn(Ee),at=function(hn){var yn=ie.apply(ue,Ec([hn],Te));return j&&yt?yn[0]:yn};nt&&O&&typeof tt=="function"&&tt.length!=1&&(Le=nt=!1);var yt=this.__chain__,$t=!!this.__actions__.length,Ut=me&&!yt,an=Le&&!$t;if(!me&&nt){Ee=an?Ee:new gn(this);var Vt=m.apply(Ee,Te);return Vt.__actions__.push({func:bb,args:[at],thisArg:n}),new fs(Vt,yt)}return Ut&&an?m.apply(this,Te):(Vt=this.thru(at),Ut?j?Vt.value()[0]:Vt.value():Vt)})}),us(["pop","push","shift","sort","splice","unshift"],function(m){var S=U0[m],O=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",j=/^(?:pop|shift)$/.test(m);ue.prototype[m]=function(){var ie=arguments;if(j&&!this.__chain__){var me=this.value();return S.apply(tn(me)?me:[],ie)}return this[O](function(Ee){return S.apply(tn(Ee)?Ee:[],ie)})}}),Ca(gn.prototype,function(m,S){var O=ue[S];if(O){var j=O.name+"";Vn.call(Xf,j)||(Xf[j]=[]),Xf[j].push({name:S,func:O})}}),Xf[db(n,I).name]=[{name:"wrapper",func:n}],gn.prototype.clone=pK,gn.prototype.reverse=gK,gn.prototype.value=mK,ue.prototype.at=VZ,ue.prototype.chain=YZ,ue.prototype.commit=XZ,ue.prototype.next=GZ,ue.prototype.plant=KZ,ue.prototype.reverse=JZ,ue.prototype.toJSON=ue.prototype.valueOf=ue.prototype.value=ZZ,ue.prototype.first=ue.prototype.head,bg&&(ue.prototype[bg]=qZ),ue},Uf=Xq();Qu?((Qu.exports=Uf)._=Uf,CC._=Uf):fi._=Uf}).call(lu)})(Cbe,CT);function tSt(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(i){i(n)}),(r=t.get("*"))&&r.slice().map(function(i){i(e,n)})}}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Aj=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},Ebe=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],s=t[n++],a=t[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const o=t[n++],s=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return e.join("")},kj={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],s=i+1<t.length,a=s?t[i+1]:0,l=i+2<t.length,d=l?t[i+2]:0,h=o>>2,p=(o&3)<<4|a>>4;let y=(a&15)<<2|d>>6,w=d&63;l||(w=64,s||(y=64)),r.push(n[h],n[p],n[y],n[w])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(Aj(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):Ebe(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0;++i;const d=i<t.length?n[t.charAt(i)]:64;++i;const p=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||a==null||d==null||p==null)throw new Abe;const y=o<<2|a>>4;if(r.push(y),d!==64){const w=a<<4&240|d>>2;if(r.push(w),p!==64){const C=d<<6&192|p;r.push(C)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class Abe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const kbe=function(t){const e=Aj(t);return kj.encodeByteArray(e,!0)},Tj=function(t){return kbe(t).replace(/\./g,"")},Tbe=function(t){try{return kj.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _be(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Dbe=()=>_be().__FIREBASE_DEFAULTS__,$be=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t={}.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Obe=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Tbe(t[1]);return e&&JSON.parse(e)},Ibe=()=>{try{return Dbe()||$be()||Obe()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},Rbe=()=>{var t;return(t=Ibe())===null||t===void 0?void 0:t.config};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Mbe{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function _j(){try{return typeof indexedDB=="object"}catch{return!1}}function Dj(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function Pbe(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Nbe="FirebaseError";class ag extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=Nbe,Object.setPrototypeOf(this,ag.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,gS.prototype.create)}}class gS{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],s=o?Lbe(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new ag(i,a,r)}}function Lbe(t,e){return t.replace(Fbe,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const Fbe=/\{\$([^}]+)}/g;function ET(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],s=e[i];if(TL(o)&&TL(s)){if(!ET(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function TL(t){return t!==null&&typeof t=="object"}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function $j(t){return t&&t._delegate?t._delegate:t}class Ru{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const bd="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Bbe{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new Mbe;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Hbe(e))try{this.getOrInitializeService({instanceIdentifier:bd})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=bd){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=bd){return this.instances.has(e)}getOptions(e=bd){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&e(s,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:zbe(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=bd){return this.component?this.component.multipleInstances?e:bd:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function zbe(t){return t===bd?void 0:t}function Hbe(t){return t.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class jbe{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new Bbe(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var hr;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(hr||(hr={}));const Wbe={debug:hr.DEBUG,verbose:hr.VERBOSE,info:hr.INFO,warn:hr.WARN,error:hr.ERROR,silent:hr.SILENT},Ube=hr.INFO,Vbe={[hr.DEBUG]:"log",[hr.VERBOSE]:"log",[hr.INFO]:"info",[hr.WARN]:"warn",[hr.ERROR]:"error"},Ybe=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=Vbe[e];if(i)console[i](`[${r}]  ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Xbe{constructor(e){this.name=e,this._logLevel=Ube,this._logHandler=Ybe,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in hr))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?Wbe[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,hr.DEBUG,...e),this._logHandler(this,hr.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,hr.VERBOSE,...e),this._logHandler(this,hr.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,hr.INFO,...e),this._logHandler(this,hr.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,hr.WARN,...e),this._logHandler(this,hr.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,hr.ERROR,...e),this._logHandler(this,hr.ERROR,...e)}}const Gbe=(t,e)=>e.some(n=>t instanceof n);let _L,DL;function qbe(){return _L||(_L=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Kbe(){return DL||(DL=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Oj=new WeakMap,AT=new WeakMap,Ij=new WeakMap,lA=new WeakMap,z$=new WeakMap;function Jbe(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{n(ql(t.result)),i()},s=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",s)});return e.then(n=>{n instanceof IDBCursor&&Oj.set(n,t)}).catch(()=>{}),z$.set(e,t),e}function Zbe(t){if(AT.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});AT.set(t,e)}let kT={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return AT.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Ij.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ql(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Qbe(t){kT=t(kT)}function eye(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(cA(this),e,...n);return Ij.set(r,e.sort?e.sort():[e]),ql(r)}:Kbe().includes(t)?function(...e){return t.apply(cA(this),e),ql(Oj.get(this))}:function(...e){return ql(t.apply(cA(this),e))}}function tye(t){return typeof t=="function"?eye(t):(t instanceof IDBTransaction&&Zbe(t),Gbe(t,qbe())?new Proxy(t,kT):t)}function ql(t){if(t instanceof IDBRequest)return Jbe(t);if(lA.has(t))return lA.get(t);const e=tye(t);return e!==t&&(lA.set(t,e),z$.set(e,t)),e}const cA=t=>z$.get(t);function mS(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(t,e),a=ql(s);return r&&s.addEventListener("upgradeneeded",l=>{r(ql(s.result),l.oldVersion,l.newVersion,ql(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",()=>i())}).catch(()=>{}),a}function uA(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",()=>e()),ql(n).then(()=>{})}const nye=["get","getKey","getAll","getAllKeys","count"],rye=["put","add","delete","clear"],dA=new Map;function $L(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(dA.get(e))return dA.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=rye.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||nye.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let d=l.store;return r&&(d=d.index(a.shift())),(await Promise.all([d[n](...a),i&&l.done]))[0]};return dA.set(e,o),o}Qbe(t=>({...t,get:(e,n,r)=>$L(e,n)||t.get(e,n,r),has:(e,n)=>!!$L(e,n)||t.has(e,n)}));/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iye{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(oye(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function oye(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const TT="@firebase/app",OL="0.9.8";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const rf=new Xbe("@firebase/app"),sye="@firebase/app-compat",aye="@firebase/analytics-compat",lye="@firebase/analytics",cye="@firebase/app-check-compat",uye="@firebase/app-check",dye="@firebase/auth",fye="@firebase/auth-compat",hye="@firebase/database",pye="@firebase/database-compat",gye="@firebase/functions",mye="@firebase/functions-compat",vye="@firebase/installations",bye="@firebase/installations-compat",yye="@firebase/messaging",xye="@firebase/messaging-compat",wye="@firebase/performance",Sye="@firebase/performance-compat",Cye="@firebase/remote-config",Eye="@firebase/remote-config-compat",Aye="@firebase/storage",kye="@firebase/storage-compat",Tye="@firebase/firestore",_ye="@firebase/firestore-compat",Dye="firebase";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const _T="[DEFAULT]",$ye={[TT]:"fire-core",[sye]:"fire-core-compat",[lye]:"fire-analytics",[aye]:"fire-analytics-compat",[uye]:"fire-app-check",[cye]:"fire-app-check-compat",[dye]:"fire-auth",[fye]:"fire-auth-compat",[hye]:"fire-rtdb",[pye]:"fire-rtdb-compat",[gye]:"fire-fn",[mye]:"fire-fn-compat",[vye]:"fire-iid",[bye]:"fire-iid-compat",[yye]:"fire-fcm",[xye]:"fire-fcm-compat",[wye]:"fire-perf",[Sye]:"fire-perf-compat",[Cye]:"fire-rc",[Eye]:"fire-rc-compat",[Aye]:"fire-gcs",[kye]:"fire-gcs-compat",[Tye]:"fire-fst",[_ye]:"fire-fst-compat","fire-js":"fire-js",[Dye]:"fire-js-all"};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const h1=new Map,DT=new Map;function Oye(t,e){try{t.container.addComponent(e)}catch(n){rf.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function of(t){const e=t.name;if(DT.has(e))return rf.debug(`There were multiple attempts to register component ${e}.`),!1;DT.set(e,t);for(const n of h1.values())Oye(n,t);return!0}function H$(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Iye={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},xu=new gS("app","Firebase",Iye);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Rye{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Ru("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw xu.create("app-deleted",{appName:this._name})}}function Mye(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:_T,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw xu.create("bad-app-name",{appName:String(i)});if(n||(n=Rbe()),!n)throw xu.create("no-options");const o=h1.get(i);if(o){if(ET(n,o.options)&&ET(r,o.config))return o;throw xu.create("duplicate-app",{appName:i})}const s=new jbe(i);for(const l of DT.values())s.addComponent(l);const a=new Rye(n,r,s);return h1.set(i,a),a}function Pye(t=_T){const e=h1.get(t);if(!e&&t===_T)return Mye();if(!e)throw xu.create("no-app",{appName:t});return e}function Hd(t,e,n){var r;let i=(r=$ye[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${e}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),rf.warn(a.join(" "));return}of(new Ru(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Nye="firebase-heartbeat-database",Lye=1,Tv="firebase-heartbeat-store";let fA=null;function Rj(){return fA||(fA=mS(Nye,Lye,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Tv)}}}).catch(t=>{throw xu.create("idb-open",{originalErrorMessage:t.message})})),fA}async function Fye(t){try{return(await Rj()).transaction(Tv).objectStore(Tv).get(Mj(t))}catch(e){if(e instanceof ag)rf.warn(e.message);else{const n=xu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});rf.warn(n.message)}}}async function IL(t,e){try{const r=(await Rj()).transaction(Tv,"readwrite");return await r.objectStore(Tv).put(e,Mj(t)),r.done}catch(n){if(n instanceof ag)rf.warn(n.message);else{const r=xu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});rf.warn(r.message)}}}function Mj(t){return`${t.name}!${t.options.appId}`}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Bye=1024,zye=30*24*60*60*1e3;class Hye{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Wye(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=RL();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const o=new Date(i.date).valueOf();return Date.now()-o<=zye}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=RL(),{heartbeatsToSend:n,unsentEntries:r}=jye(this._heartbeatsCache.heartbeats),i=Tj(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function RL(){return new Date().toISOString().substring(0,10)}function jye(t,e=Bye){const n=[];let r=t.slice();for(const i of t){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),ML(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),ML(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Wye{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return _j()?Dj().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await Fye(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return IL(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return IL(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function ML(t){return Tj(JSON.stringify({version:2,heartbeats:t})).length}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Uye(t){of(new Ru("platform-logger",e=>new iye(e),"PRIVATE")),of(new Ru("heartbeat",e=>new Hye(e),"PRIVATE")),Hd(TT,OL,t),Hd(TT,OL,"esm2017"),Hd("fire-js","")}Uye("");const Pj="@firebase/installations",j$="0.6.4";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Nj=1e4,Lj=`w:${j$}`,Fj="FIS_v2",Vye="https://firebaseinstallations.googleapis.com/v1",Yye=60*60*1e3,Xye="installations",Gye="Installations";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const qye={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["not-registered"]:"Firebase Installation is not registered.",["installation-not-found"]:"Firebase Installation not found.",["request-failed"]:'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',["app-offline"]:"Could not process request. Application offline.",["delete-pending-registration"]:"Can't delete installation while there is a pending registration request."},sf=new gS(Xye,Gye,qye);function Bj(t){return t instanceof ag&&t.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zj({projectId:t}){return`${Vye}/projects/${t}/installations`}function Hj(t){return{token:t.token,requestStatus:2,expiresIn:Jye(t.expiresIn),creationTime:Date.now()}}async function jj(t,e){const r=(await e.json()).error;return sf.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function Wj({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function Kye(t,{refreshToken:e}){const n=Wj(t);return n.append("Authorization",Zye(e)),n}async function Uj(t){const e=await t();return e.status>=500&&e.status<600?t():e}function Jye(t){return Number(t.replace("s","000"))}function Zye(t){return`${Fj} ${t}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Qye({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=zj(t),i=Wj(t),o=e.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={fid:n,authVersion:Fj,appId:t.appId,sdkVersion:Lj},a={method:"POST",headers:i,body:JSON.stringify(s)},l=await Uj(()=>fetch(r,a));if(l.ok){const d=await l.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:Hj(d.authToken)}}else throw await jj("Create Installation",l)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Vj(t){return new Promise(e=>{setTimeout(e,t)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function exe(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const txe=/^[cdef][\w-]{21}$/,$T="";function nxe(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=rxe(t);return txe.test(n)?n:$T}catch{return $T}}function rxe(t){return exe(t).substr(0,22)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function vS(t){return`${t.appName}!${t.appId}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Yj=new Map;function Xj(t,e){const n=vS(t);Gj(n,e),ixe(n,e)}function Gj(t,e){const n=Yj.get(t);if(n)for(const r of n)r(e)}function ixe(t,e){const n=oxe();n&&n.postMessage({key:t,fid:e}),sxe()}let $d=null;function oxe(){return!$d&&"BroadcastChannel"in self&&($d=new BroadcastChannel("[Firebase] FID Change"),$d.onmessage=t=>{Gj(t.data.key,t.data.fid)}),$d}function sxe(){Yj.size===0&&$d&&($d.close(),$d=null)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const axe="firebase-installations-database",lxe=1,af="firebase-installations-store";let hA=null;function W$(){return hA||(hA=mS(axe,lxe,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(af)}}})),hA}async function p1(t,e){const n=vS(t),i=(await W$()).transaction(af,"readwrite"),o=i.objectStore(af),s=await o.get(n);return await o.put(e,n),await i.done,(!s||s.fid!==e.fid)&&Xj(t,e.fid),e}async function qj(t){const e=vS(t),r=(await W$()).transaction(af,"readwrite");await r.objectStore(af).delete(e),await r.done}async function bS(t,e){const n=vS(t),i=(await W$()).transaction(af,"readwrite"),o=i.objectStore(af),s=await o.get(n),a=e(s);return a===void 0?await o.delete(n):await o.put(a,n),await i.done,a&&(!s||s.fid!==a.fid)&&Xj(t,a.fid),a}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function U$(t){let e;const n=await bS(t.appConfig,r=>{const i=cxe(r),o=uxe(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===$T?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function cxe(t){const e=t||{fid:nxe(),registrationStatus:0};return Kj(e)}function uxe(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(sf.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=dxe(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:fxe(t)}:{installationEntry:e}}async function dxe(t,e){try{const n=await Qye(t,e);return p1(t.appConfig,n)}catch(n){throw Bj(n)&&n.customData.serverCode===409?await qj(t.appConfig):await p1(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function fxe(t){let e=await PL(t.appConfig);for(;e.registrationStatus===1;)await Vj(100),e=await PL(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await U$(t);return r||n}return e}function PL(t){return bS(t,e=>{if(!e)throw sf.create("installation-not-found");return Kj(e)})}function Kj(t){return hxe(t)?{fid:t.fid,registrationStatus:0}:t}function hxe(t){return t.registrationStatus===1&&t.registrationTime+Nj<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function pxe({appConfig:t,heartbeatServiceProvider:e},n){const r=gxe(t,n),i=Kye(t,n),o=e.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={installation:{sdkVersion:Lj,appId:t.appId}},a={method:"POST",headers:i,body:JSON.stringify(s)},l=await Uj(()=>fetch(r,a));if(l.ok){const d=await l.json();return Hj(d)}else throw await jj("Generate Auth Token",l)}function gxe(t,{fid:e}){return`${zj(t)}/${e}/authTokens:generate`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function V$(t,e=!1){let n;const r=await bS(t.appConfig,o=>{if(!Jj(o))throw sf.create("not-registered");const s=o.authToken;if(!e&&bxe(s))return o;if(s.requestStatus===1)return n=mxe(t,e),o;{if(!navigator.onLine)throw sf.create("app-offline");const a=xxe(o);return n=vxe(t,a),a}});return n?await n:r.authToken}async function mxe(t,e){let n=await NL(t.appConfig);for(;n.authToken.requestStatus===1;)await Vj(100),n=await NL(t.appConfig);const r=n.authToken;return r.requestStatus===0?V$(t,e):r}function NL(t){return bS(t,e=>{if(!Jj(e))throw sf.create("not-registered");const n=e.authToken;return wxe(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function vxe(t,e){try{const n=await pxe(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await p1(t.appConfig,r),n}catch(n){if(Bj(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await qj(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await p1(t.appConfig,r)}throw n}}function Jj(t){return t!==void 0&&t.registrationStatus===2}function bxe(t){return t.requestStatus===2&&!yxe(t)}function yxe(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+Yye}function xxe(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function wxe(t){return t.requestStatus===1&&t.requestTime+Nj<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Sxe(t){const e=t,{installationEntry:n,registrationPromise:r}=await U$(e);return r?r.catch(console.error):V$(e).catch(console.error),n.fid}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Cxe(t,e=!1){const n=t;return await Exe(n),(await V$(n,e)).token}async function Exe(t){const{registrationPromise:e}=await U$(t);e&&await e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Axe(t){if(!t||!t.options)throw pA("App Configuration");if(!t.name)throw pA("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw pA(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function pA(t){return sf.create("missing-app-config-values",{valueName:t})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Zj="installations",kxe="installations-internal",Txe=t=>{const e=t.getProvider("app").getImmediate(),n=Axe(e),r=H$(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},_xe=t=>{const e=t.getProvider("app").getImmediate(),n=H$(e,Zj).getImmediate();return{getId:()=>Sxe(n),getToken:i=>Cxe(n,i)}};function Dxe(){of(new Ru(Zj,Txe,"PUBLIC")),of(new Ru(kxe,_xe,"PRIVATE"))}Dxe();Hd(Pj,j$);Hd(Pj,j$,"esm2017");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const $xe="/firebase-messaging-sw.js",Oxe="/firebase-cloud-messaging-push-scope",Qj="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ixe="https://fcmregistrations.googleapis.com/v1",eW="google.c.a.c_id",Rxe="google.c.a.c_l",Mxe="google.c.a.ts",Pxe="google.c.a.e";var LL;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(LL||(LL={}));/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */var _v;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(_v||(_v={}));/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Al(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Nxe(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const gA="fcm_token_details_db",Lxe=5,FL="fcm_token_object_Store";async function Fxe(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(gA))return null;let e=null;return(await mS(gA,Lxe,{upgrade:async(r,i,o,s)=>{var a;if(i<2||!r.objectStoreNames.contains(FL))return;const l=s.objectStore(FL),d=await l.index("fcmSenderId").get(t);if(await l.clear(),!!d){if(i===2){const h=d;if(!h.auth||!h.p256dh||!h.endpoint)return;e={token:h.fcmToken,createTime:(a=h.createTime)!==null&&a!==void 0?a:Date.now(),subscriptionOptions:{auth:h.auth,p256dh:h.p256dh,endpoint:h.endpoint,swScope:h.swScope,vapidKey:typeof h.vapidKey=="string"?h.vapidKey:Al(h.vapidKey)}}}else if(i===3){const h=d;e={token:h.fcmToken,createTime:h.createTime,subscriptionOptions:{auth:Al(h.auth),p256dh:Al(h.p256dh),endpoint:h.endpoint,swScope:h.swScope,vapidKey:Al(h.vapidKey)}}}else if(i===4){const h=d;e={token:h.fcmToken,createTime:h.createTime,subscriptionOptions:{auth:Al(h.auth),p256dh:Al(h.p256dh),endpoint:h.endpoint,swScope:h.swScope,vapidKey:Al(h.vapidKey)}}}}}})).close(),await uA(gA),await uA("fcm_vapid_details_db"),await uA("undefined"),Bxe(e)?e:null}function Bxe(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const zxe="firebase-messaging-database",Hxe=1,lf="firebase-messaging-store";let mA=null;function Y$(){return mA||(mA=mS(zxe,Hxe,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(lf)}}})),mA}async function tW(t){const e=G$(t),r=await(await Y$()).transaction(lf).objectStore(lf).get(e);if(r)return r;{const i=await Fxe(t.appConfig.senderId);if(i)return await X$(t,i),i}}async function X$(t,e){const n=G$(t),i=(await Y$()).transaction(lf,"readwrite");return await i.objectStore(lf).put(e,n),await i.done,e}async function jxe(t){const e=G$(t),r=(await Y$()).transaction(lf,"readwrite");await r.objectStore(lf).delete(e),await r.done}function G$({appConfig:t}){return t.appId}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Wxe={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["only-available-in-window"]:"This method is available in a Window context.",["only-available-in-sw"]:"This method is available in a service worker context.",["permission-default"]:"The notification permission was not granted and dismissed instead.",["permission-blocked"]:"The notification permission was not granted and blocked instead.",["unsupported-browser"]:"This browser doesn't support the API's required to use the Firebase SDK.",["indexed-db-unsupported"]:"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)",["failed-service-worker-registration"]:"We are unable to register the default service worker. {$browserErrorMessage}",["token-subscribe-failed"]:"A problem occurred while subscribing the user to FCM: {$errorInfo}",["token-subscribe-no-token"]:"FCM returned no token when subscribing the user to push.",["token-unsubscribe-failed"]:"A problem occurred while unsubscribing the user from FCM: {$errorInfo}",["token-update-failed"]:"A problem occurred while updating the user from FCM: {$errorInfo}",["token-update-no-token"]:"FCM returned no token when updating the user to push.",["use-sw-after-get-token"]:"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",["invalid-sw-registration"]:"The input to useServiceWorker() must be a ServiceWorkerRegistration.",["invalid-bg-handler"]:"The input to setBackgroundMessageHandler() must be a function.",["invalid-vapid-key"]:"The public VAPID key must be a string.",["use-vapid-key-after-get-token"]:"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},ao=new gS("messaging","Messaging",Wxe);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Uxe(t,e){const n=await K$(t),r=rW(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(q$(t.appConfig),i)).json()}catch(s){throw ao.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw ao.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw ao.create("token-subscribe-no-token");return o.token}async function Vxe(t,e){const n=await K$(t),r=rW(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${q$(t.appConfig)}/${e.token}`,i)).json()}catch(s){throw ao.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw ao.create("token-update-failed",{errorInfo:s})}if(!o.token)throw ao.create("token-update-no-token");return o.token}async function nW(t,e){const r={method:"DELETE",headers:await K$(t)};try{const o=await(await fetch(`${q$(t.appConfig)}/${e}`,r)).json();if(o.error){const s=o.error.message;throw ao.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw ao.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function q$({projectId:t}){return`${Ixe}/projects/${t}/registrations`}async function K$({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function rW({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==Qj&&(i.web.applicationPubKey=r),i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Yxe=7*24*60*60*1e3;async function Xxe(t){const e=await Kxe(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:Al(e.getKey("auth")),p256dh:Al(e.getKey("p256dh"))},r=await tW(t.firebaseDependencies);if(r){if(Jxe(r.subscriptionOptions,n))return Date.now()>=r.createTime+Yxe?qxe(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await nW(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return BL(t.firebaseDependencies,n)}else return BL(t.firebaseDependencies,n)}async function Gxe(t){const e=await tW(t.firebaseDependencies);e&&(await nW(t.firebaseDependencies,e.token),await jxe(t.firebaseDependencies));const n=await t.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function qxe(t,e){try{const n=await Vxe(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await X$(t.firebaseDependencies,r),n}catch(n){throw await Gxe(t),n}}async function BL(t,e){const r={token:await Uxe(t,e),createTime:Date.now(),subscriptionOptions:e};return await X$(t,r),r.token}async function Kxe(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Nxe(e)})}function Jxe(t,e){const n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zL(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return Zxe(e,t),Qxe(e,t),e1e(e,t),e}function Zxe(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const r=e.notification.body;r&&(t.notification.body=r);const i=e.notification.image;i&&(t.notification.image=i);const o=e.notification.icon;o&&(t.notification.icon=o)}function Qxe(t,e){e.data&&(t.data=e.data)}function e1e(t,e){var n,r,i,o,s;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const a=(i=(r=e.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=e.notification)===null||o===void 0?void 0:o.click_action;a&&(t.fcmOptions.link=a);const l=(s=e.fcmOptions)===null||s===void 0?void 0:s.analytics_label;l&&(t.fcmOptions.analyticsLabel=l)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function t1e(t){return typeof t=="object"&&!!t&&eW in t}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */iW("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");iW("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function iW(t,e){const n=[];for(let r=0;r<t.length;r++)n.push(t.charAt(r)),r<e.length&&n.push(e.charAt(r));return n.join("")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function n1e(t){if(!t||!t.options)throw vA("App Configuration Object");if(!t.name)throw vA("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw vA(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function vA(t){return ao.create("missing-app-config-values",{valueName:t})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class r1e{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=n1e(e);this.firebaseDependencies={app:e,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function i1e(t){try{t.swRegistration=await navigator.serviceWorker.register($xe,{scope:Oxe}),t.swRegistration.update().catch(()=>{})}catch(e){throw ao.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function o1e(t,e){if(!e&&!t.swRegistration&&await i1e(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw ao.create("invalid-sw-registration");t.swRegistration=e}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function s1e(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=Qj)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function oW(t,e){if(!navigator)throw ao.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw ao.create("permission-blocked");return await s1e(t,e==null?void 0:e.vapidKey),await o1e(t,e==null?void 0:e.serviceWorkerRegistration),Xxe(t)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function a1e(t,e,n){const r=l1e(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[eW],message_name:n[Rxe],message_time:n[Mxe],message_device_time:Math.floor(Date.now()/1e3)})}function l1e(t){switch(t){case _v.NOTIFICATION_CLICKED:return"notification_open";case _v.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function c1e(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===_v.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(zL(n)):t.onMessageHandler.next(zL(n)));const r=n.data;t1e(r)&&r[Pxe]==="1"&&await a1e(t,n.messageType,r)}const HL="@firebase/messaging",jL="0.12.4";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const u1e=t=>{const e=new r1e(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>c1e(e,n)),e},d1e=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:r=>oW(e,r)}};function f1e(){of(new Ru("messaging",u1e,"PUBLIC")),of(new Ru("messaging-internal",d1e,"PRIVATE")),Hd(HL,jL),Hd(HL,jL,"esm2017")}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function h1e(){try{await Dj()}catch{return!1}return typeof window<"u"&&_j()&&Pbe()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function nSt(t=Pye()){return h1e().then(e=>{if(!e)throw ao.create("unsupported-browser")},e=>{throw ao.create("indexed-db-unsupported")}),H$($j(t),"messaging").getImmediate()}async function rSt(t,e){return t=$j(t),oW(t,e)}f1e();function g1(t){return typeof t=="function"}function OT(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function yS(t){return g1(t.$validator)?Object.assign({},t):{$validator:t}}function sW(t){return typeof t=="object"?t.$valid:t}function aW(t){return t.$validator||t}function p1e(t,e){if(!OT(t))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof t}`);if(!OT(e)&&!g1(e))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const n=yS(e);return n.$params=Object.assign({},n.$params||{},t),n}function g1e(t,e){if(!g1(t)&&typeof kt(t)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof t}`);if(!OT(e)&&!g1(e))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const n=yS(e);return n.$message=t,n}function m1e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=yS(t);return Object.assign({},n,{$async:!0,$watchTargets:e})}function v1e(t){return{$validator(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return kt(e).reduce((o,s,a)=>{const l=Object.entries(s).reduce((d,h)=>{let[p,y]=h;const w=t[p]||{},C=Object.entries(w).reduce((k,D)=>{let[I,_]=D;const M=aW(_).call(this,y,s,a,...r),F=sW(M);if(k.$data[I]=M,k.$data.$invalid=!F||!!k.$data.$invalid,k.$data.$error=k.$data.$invalid,!F){let H=_.$message||"";const G=_.$params||{};typeof H=="function"&&(H=H({$pending:!1,$invalid:!F,$params:G,$model:y,$response:M})),k.$errors.push({$property:p,$message:H,$params:G,$response:M,$model:y,$pending:!1,$validator:I})}return{$valid:k.$valid&&F,$data:k.$data,$errors:k.$errors}},{$valid:!0,$data:{},$errors:[]});return d.$data[p]=C.$data,d.$errors[p]=C.$errors,{$valid:d.$valid&&C.$valid,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&l.$valid,$data:o.$data.concat(l.$data),$errors:o.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:e=>{let{$response:n}=e;return n?n.$errors.map(r=>Object.values(r).map(i=>i.map(o=>o.$message)).reduce((i,o)=>i.concat(o),[])):[]}}}const zu=t=>{if(t=kt(t),Array.isArray(t))return!!t.length;if(t==null)return!1;if(t===!1)return!0;if(t instanceof Date)return!isNaN(t.getTime());if(typeof t=="object"){for(let e in t)return!0;return!1}return!!String(t).length},J$=t=>(t=kt(t),Array.isArray(t)?t.length:typeof t=="object"?Object.keys(t).length:String(t).length);function Hu(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r=>(r=kt(r),!zu(r)||e.every(i=>i.test(r)))}var iSt=Object.freeze({__proto__:null,withParams:p1e,withMessage:g1e,withAsync:m1e,forEach:v1e,req:zu,len:J$,regex:Hu,unwrap:kt,unwrapNormalizedValidator:aW,unwrapValidatorResponse:sW,normalizeValidatorObject:yS});Hu(/^[a-zA-Z]*$/);Hu(/^[a-zA-Z0-9]*$/);var b1e=Hu(/^\d*(\.\d+)?$/),oSt={$validator:b1e,$message:"Value must be numeric",$params:{type:"numeric"}};const y1e=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var x1e=Hu(y1e),sSt={$validator:x1e,$message:"Value is not a valid email address",$params:{type:"email"}};function w1e(t){return e=>!zu(e)||J$(e)<=kt(t)}function aSt(t){return{$validator:w1e(t),$message:e=>{let{$params:n}=e;return`The maximum length allowed is ${n.max}`},$params:{max:t,type:"maxLength"}}}function S1e(t){return e=>!zu(e)||J$(e)>=kt(t)}function lSt(t){return{$validator:S1e(t),$message:e=>{let{$params:n}=e;return`This field should be at least ${n.min} characters long`},$params:{min:t,type:"minLength"}}}function C1e(t){return typeof t=="string"&&(t=t.trim()),zu(t)}var cSt={$validator:C1e,$message:"Value is required",$params:{type:"required"}};const WL=(t,e)=>t?zu(typeof e=="string"?e.trim():e):!0;function E1e(t){return function(e,n){if(typeof t!="function")return WL(kt(t),e);const r=t.call(this,e,n);return WL(r,e)}}function uSt(t){return{$validator:E1e(t),$message:"The value is required",$params:{type:"requiredIf",prop:t}}}function A1e(t){return e=>kt(e)===kt(t)}function dSt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:A1e(t),$message:n=>`The value must be equal to the ${e} value`,$params:{equalTo:t,otherName:e,type:"sameAs"}}}const k1e=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;Hu(k1e);function T1e(t){return e=>!zu(e)||(!/\s/.test(e)||e instanceof Date)&&+e>=+kt(t)}function fSt(t){return{$validator:T1e(t),$message:e=>{let{$params:n}=e;return`The minimum value allowed is ${n.min}`},$params:{min:t,type:"minValue"}}}function _1e(t){return e=>!zu(e)||(!/\s/.test(e)||e instanceof Date)&&+e<=+kt(t)}var hSt=t=>({$validator:_1e(t),$message:e=>{let{$params:n}=e;return`The maximum value allowed is ${n.max}`},$params:{max:t,type:"maxValue"}});Hu(/(^[0-9]*$)|(^-[0-9]+$)/);Hu(/^[-]?\d*(\.\d+)?$/);function UL(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(t).reduce((n,r)=>(e.includes(r)||(n[r]=kt(t[r])),n),{})}function m1(t){return typeof t=="function"}function D1e(t){return $o(t)||ec(t)}function lW(t,e,n){let r=t;const i=e.split(".");for(let o=0;o<i.length;o++){if(!r[i[o]])return n;r=r[i[o]]}return r}function bA(t,e,n){return lt(()=>t.some(r=>lW(e,r,{[n]:!1})[n]))}function VL(t,e,n){return lt(()=>t.reduce((r,i)=>{const o=lW(e,i,{[n]:!1})[n]||[];return r.concat(o)},[]))}function cW(t,e,n,r){return t.call(r,kt(e),kt(n),r)}function uW(t){return t.$valid!==void 0?!t.$valid:!t}function $1e(t,e,n,r,i,o,s){let{$lazy:a,$rewardEarly:l}=i,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],h=arguments.length>8?arguments[8]:void 0,p=arguments.length>9?arguments[9]:void 0,y=arguments.length>10?arguments[10]:void 0;const w=ct(!!r.value),C=ct(0);n.value=!1;const k=en([e,r].concat(d,y),()=>{if(a&&!r.value||l&&!p.value&&!n.value)return;let D;try{D=cW(t,e,h,s)}catch(I){D=Promise.reject(I)}C.value++,n.value=!!C.value,w.value=!1,Promise.resolve(D).then(I=>{C.value--,n.value=!!C.value,o.value=I,w.value=uW(I)}).catch(I=>{C.value--,n.value=!!C.value,o.value=I,w.value=!0})},{immediate:!0,deep:typeof e=="object"});return{$invalid:w,$unwatch:k}}function O1e(t,e,n,r,i,o,s,a){let{$lazy:l,$rewardEarly:d}=r;const h=()=>({}),p=lt(()=>{if(l&&!n.value||d&&!a.value)return!1;let y=!0;try{const w=cW(t,e,s,o);i.value=w,y=uW(w)}catch(w){i.value=w}return y});return{$unwatch:h,$invalid:p}}function I1e(t,e,n,r,i,o,s,a,l,d,h){const p=ct(!1),y=t.$params||{},w=ct(null);let C,k;t.$async?{$invalid:C,$unwatch:k}=$1e(t.$validator,e,p,n,r,w,i,t.$watchTargets,l,d,h):{$invalid:C,$unwatch:k}=O1e(t.$validator,e,n,r,w,i,l,d);const D=t.$message;return{$message:m1(D)?lt(()=>D(UL({$pending:p,$invalid:C,$params:UL(y),$model:e,$response:w,$validator:o,$propertyPath:a,$property:s}))):D||"",$params:y,$pending:p,$invalid:C,$response:w,$unwatch:k}}function R1e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=kt(t),n=Object.keys(e),r={},i={},o={};let s=null;return n.forEach(a=>{const l=e[a];switch(!0){case m1(l.$validator):r[a]=l;break;case m1(l):r[a]={$validator:l};break;case a==="$validationGroups":s=l;break;case a.startsWith("$"):o[a]=l;break;default:i[a]=l}}),{rules:r,nestedValidators:i,config:o,validationGroups:s}}function M1e(){}const P1e="__root";function dW(t,e,n){if(n)return e?e(t()):t();try{var r=Promise.resolve(t());return e?r.then(e):r}catch(i){return Promise.reject(i)}}function N1e(t,e){return dW(t,M1e,e)}function L1e(t,e){var n=t();return n&&n.then?n.then(e):e(n)}function F1e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(r){return Promise.reject(r)}}}function B1e(t,e,n,r,i,o,s,a,l){const d=Object.keys(t),h=r.get(i,t),p=ct(!1),y=ct(!1),w=ct(0);if(h){if(!h.$partial)return h;h.$unwatch(),p.value=h.$dirty.value}const C={$dirty:p,$path:i,$touch:()=>{p.value||(p.value=!0)},$reset:()=>{p.value&&(p.value=!1)},$commit:()=>{}};return d.length?(d.forEach(k=>{C[k]=I1e(t[k],e,C.$dirty,o,s,k,n,i,l,y,w)}),C.$externalResults=lt(()=>a.value?[].concat(a.value).map((k,D)=>({$propertyPath:i,$property:n,$validator:"$externalResults",$uid:`${i}-externalResult-${D}`,$message:k,$params:{},$response:null,$pending:!1})):[]),C.$invalid=lt(()=>{const k=d.some(D=>kt(C[D].$invalid));return y.value=k,!!C.$externalResults.value.length||k}),C.$pending=lt(()=>d.some(k=>kt(C[k].$pending))),C.$error=lt(()=>C.$dirty.value?C.$pending.value||C.$invalid.value:!1),C.$silentErrors=lt(()=>d.filter(k=>kt(C[k].$invalid)).map(k=>{const D=C[k];return lo({$propertyPath:i,$property:n,$validator:k,$uid:`${i}-${k}`,$message:D.$message,$params:D.$params,$response:D.$response,$pending:D.$pending})}).concat(C.$externalResults.value)),C.$errors=lt(()=>C.$dirty.value?C.$silentErrors.value:[]),C.$unwatch=()=>d.forEach(k=>{C[k].$unwatch()}),C.$commit=()=>{y.value=!0,w.value=Date.now()},r.set(i,t,C),C):(h&&r.set(i,t,C),C)}function z1e(t,e,n,r,i,o,s){const a=Object.keys(t);return a.length?a.reduce((l,d)=>(l[d]=IT({validations:t[d],state:e,key:d,parentKey:n,resultsCache:r,globalConfig:i,instance:o,externalResults:s}),l),{}):{}}function H1e(t,e,n){const r=lt(()=>[e,n].filter(C=>C).reduce((C,k)=>C.concat(Object.values(kt(k))),[])),i=lt({get(){return t.$dirty.value||(r.value.length?r.value.every(C=>C.$dirty):!1)},set(C){t.$dirty.value=C}}),o=lt(()=>{const C=kt(t.$silentErrors)||[],k=r.value.filter(D=>(kt(D).$silentErrors||[]).length).reduce((D,I)=>D.concat(...I.$silentErrors),[]);return C.concat(k)}),s=lt(()=>{const C=kt(t.$errors)||[],k=r.value.filter(D=>(kt(D).$errors||[]).length).reduce((D,I)=>D.concat(...I.$errors),[]);return C.concat(k)}),a=lt(()=>r.value.some(C=>C.$invalid)||kt(t.$invalid)||!1),l=lt(()=>r.value.some(C=>kt(C.$pending))||kt(t.$pending)||!1),d=lt(()=>r.value.some(C=>C.$dirty)||r.value.some(C=>C.$anyDirty)||i.value),h=lt(()=>i.value?l.value||a.value:!1),p=()=>{t.$touch(),r.value.forEach(C=>{C.$touch()})},y=()=>{t.$commit(),r.value.forEach(C=>{C.$commit()})},w=()=>{t.$reset(),r.value.forEach(C=>{C.$reset()})};return r.value.length&&r.value.every(C=>C.$dirty)&&p(),{$dirty:i,$errors:s,$invalid:a,$anyDirty:d,$error:h,$pending:l,$touch:p,$reset:w,$silentErrors:o,$commit:y}}function IT(t){const e=F1e(function(){return ve(),L1e(function(){if(D.$rewardEarly)return B(),N1e(Ir)},function(){return dW(Ir,function(){return new Promise(fe=>{if(!ye.value)return fe(!Z.value);const Ae=en(ye,()=>{fe(!Z.value),Ae()})})})})});let{validations:n,state:r,key:i,parentKey:o,childResults:s,resultsCache:a,globalConfig:l={},instance:d,externalResults:h}=t;const p=o?`${o}.${i}`:i,{rules:y,nestedValidators:w,config:C,validationGroups:k}=R1e(n),D=Object.assign({},l,C),I=i?lt(()=>{const fe=kt(r);return fe?kt(fe[i]):void 0}):r,_=Object.assign({},kt(h)||{}),L=lt(()=>{const fe=kt(h);return i?fe?kt(fe[i]):void 0:fe}),M=B1e(y,I,i,a,p,D,d,L,r),F=z1e(w,I,p,a,D,d,L),H={};k&&Object.entries(k).forEach(fe=>{let[Ae,Se]=fe;H[Ae]={$invalid:bA(Se,F,"$invalid"),$error:bA(Se,F,"$error"),$pending:bA(Se,F,"$pending"),$errors:VL(Se,F,"$errors"),$silentErrors:VL(Se,F,"$silentErrors")}});const{$dirty:G,$errors:X,$invalid:Z,$anyDirty:te,$error:ae,$pending:ye,$touch:ve,$reset:se,$silentErrors:J,$commit:B}=H1e(M,F,s),V=i?lt({get:()=>kt(I),set:fe=>{G.value=!0;const Ae=kt(r),Se=kt(h);Se&&(Se[i]=_[i]),fn(Ae[i])?Ae[i].value=fe:Ae[i]=fe}}):null;i&&D.$autoDirty&&en(I,()=>{G.value||ve();const fe=kt(h);fe&&(fe[i]=_[i])},{flush:"sync"});function q(fe){return(s.value||{})[fe]}function ce(){fn(h)?h.value=_:Object.keys(_).length===0?Object.keys(h).forEach(fe=>{delete h[fe]}):Object.assign(h,_)}return lo(Object.assign({},M,{$model:V,$dirty:G,$error:ae,$errors:X,$invalid:Z,$anyDirty:te,$pending:ye,$touch:ve,$reset:se,$path:p||P1e,$silentErrors:J,$validate:e,$commit:B},s&&{$getResultsForChild:q,$clearExternalResults:ce,$validationGroups:H},F))}class j1e{constructor(){this.storage=new Map}set(e,n,r){this.storage.set(e,{rules:n,result:r})}checkRulesValidity(e,n,r){const i=Object.keys(r),o=Object.keys(n);return o.length!==i.length||!o.every(a=>i.includes(a))?!1:o.every(a=>n[a].$params?Object.keys(n[a].$params).every(l=>kt(r[a].$params[l])===kt(n[a].$params[l])):!0)}get(e,n){const r=this.storage.get(e);if(!r)return;const{rules:i,result:o}=r,s=this.checkRulesValidity(e,n,i),a=o.$unwatch?o.$unwatch:()=>({});return s?o:{$dirty:o.$dirty,$partial:!0,$unwatch:a}}}const lx={COLLECT_ALL:!0,COLLECT_NONE:!1},YL=Symbol("vuelidate#injectChildResults"),XL=Symbol("vuelidate#removeChildResults");function W1e(t){let{$scope:e,instance:n}=t;const r={},i=ct([]),o=lt(()=>i.value.reduce((h,p)=>(h[p]=kt(r[p]),h),{}));function s(h,p){let{$registerAs:y,$scope:w,$stopPropagation:C}=p;C||e===lx.COLLECT_NONE||w===lx.COLLECT_NONE||e!==lx.COLLECT_ALL&&e!==w||(r[y]=h,i.value.push(y))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],s);function a(h){i.value=i.value.filter(p=>p!==h),delete r[h]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],a);const l=gr(YL,[]);so(YL,n.__vuelidateInjectInstances);const d=gr(XL,[]);return so(XL,n.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:l,removeValidationResultsFromParent:d}}function fW(t){return new Proxy(t,{get(e,n){return typeof e[n]=="object"?fW(e[n]):lt(()=>e[n])}})}let GL=0;function pSt(t,e){var n;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(r=t,t=void 0,e=void 0);let{$registerAs:i,$scope:o=lx.COLLECT_ALL,$stopPropagation:s,$externalResults:a,currentVueInstance:l}=r;const d=l||((n=ci())===null||n===void 0?void 0:n.proxy),h=d?d.$options:{};i||(GL+=1,i=`_vuelidate_${GL}`);const p=ct({}),y=new j1e,{childResults:w,sendValidationResultsToParent:C,removeValidationResultsFromParent:k}=d?W1e({$scope:o,instance:d}):{childResults:ct({})};if(!t&&h.validations){const D=h.validations;e=ct({}),zw(()=>{e.value=d,en(()=>m1(D)?D.call(e.value,new fW(e.value)):D,I=>{p.value=IT({validations:I,state:e,childResults:w,resultsCache:y,globalConfig:r,instance:d,externalResults:a||d.vuelidateExternalResults})},{immediate:!0})}),r=h.validationsConfig||r}else{const D=fn(t)||D1e(t)?t:lo(t||{});en(D,I=>{p.value=IT({validations:I,state:e,childResults:w,resultsCache:y,globalConfig:r,instance:d??{},externalResults:a})},{immediate:!0})}return d&&(C.forEach(D=>D(p,{$registerAs:i,$scope:o,$stopPropagation:s})),tg(()=>k.forEach(D=>D(i)))),lt(()=>Object.assign({},kt(p.value),w.value))}var hW="https://js.stripe.com/v3",U1e=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,qL="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",V1e=function(){for(var e=document.querySelectorAll('script[src^="'.concat(hW,'"]')),n=0;n<e.length;n++){var r=e[n];if(U1e.test(r.src))return r}return null},KL=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(hW).concat(n);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r},Y1e=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.7.0",startTime:n})},Hg=null,ey=null,ty=null,X1e=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},G1e=function(e,n){return function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))}},q1e=function(e){return Hg!==null?Hg:(Hg=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&e&&console.warn(qL),window.Stripe){n(window.Stripe);return}try{var i=V1e();if(i&&e)console.warn(qL);else if(!i)i=KL(e);else if(i&&ty!==null&&ey!==null){var o;i.removeEventListener("load",ty),i.removeEventListener("error",ey),(o=i.parentNode)===null||o===void 0||o.removeChild(i),i=KL(e)}ty=G1e(n,r),ey=X1e(r),i.addEventListener("load",ty),i.addEventListener("error",ey)}catch(s){r(s);return}}),Hg.catch(function(n){return Hg=null,Promise.reject(n)}))},K1e=function(e,n,r){if(e===null)return null;var i=e.apply(void 0,n);return Y1e(i,r),i},jg,pW=!1,gW=function(){return jg||(jg=q1e(null).catch(function(e){return jg=null,Promise.reject(e)}),jg)};Promise.resolve().then(function(){return gW()}).catch(function(t){pW||console.warn(t)});var gSt=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];pW=!0;var i=Date.now();return gW().then(function(o){return K1e(o,n,i)})};function gc(t){return t.split("-")[0]}function Qh(t){return t.split("-")[1]}function v0(t){return["top","bottom"].includes(gc(t))?"x":"y"}function Z$(t){return t==="y"?"height":"width"}function JL(t){let{reference:e,floating:n,placement:r}=t;const i=e.x+e.width/2-n.width/2,o=e.y+e.height/2-n.height/2;let s;switch(gc(r)){case"top":s={x:i,y:e.y-n.height};break;case"bottom":s={x:i,y:e.y+e.height};break;case"right":s={x:e.x+e.width,y:o};break;case"left":s={x:e.x-n.width,y:o};break;default:s={x:e.x,y:e.y}}const a=v0(r),l=Z$(a);switch(Qh(r)){case"start":s[a]=s[a]-(e[l]/2-n[l]/2);break;case"end":s[a]=s[a]+(e[l]/2-n[l]/2);break}return s}const J1e=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n;let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:d}=JL({...a,placement:r}),h=r,p={};for(let y=0;y<o.length;y++){const{name:w,fn:C}=o[y],{x:k,y:D,data:I,reset:_}=await C({x:l,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});if(l=k??l,d=D??d,p={...p,[w]:I??{}},_){typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(a=_.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):_.rects),{x:l,y:d}=JL({...a,placement:h})),y=-1;continue}}return{x:l,y:d,placement:h,strategy:i,middlewareData:p}};function Z1e(t){return{top:0,right:0,bottom:0,left:0,...t}}function mW(t){return typeof t!="number"?Z1e(t):{top:t,right:t,bottom:t,left:t}}function RT(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function xS(t,e){e===void 0&&(e={});const{x:n,y:r,platform:i,rects:o,elements:s,strategy:a}=t,{boundary:l="clippingParents",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:y=0}=e,w=mW(y),k=s[p?h==="floating"?"reference":"floating":h],D=await i.getClippingClientRect({element:await i.isElement(k)?k:k.contextElement||await i.getDocumentElement({element:s.floating}),boundary:l,rootBoundary:d}),I=RT(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h==="floating"?{...o.floating,x:n,y:r}:o.reference,offsetParent:await i.getOffsetParent({element:s.floating}),strategy:a}));return{top:D.top-I.top+w.top,bottom:I.bottom-D.bottom+w.bottom,left:D.left-I.left+w.left,right:I.right-D.right+w.right}}const Q1e=Math.min,yd=Math.max;function MT(t,e,n){return yd(t,Q1e(e,n))}const ewe=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:r=0}=t??{},{x:i,y:o,placement:s,rects:a,platform:l}=e;if(n==null)return{};const d=mW(r),h={x:i,y:o},p=gc(s),y=v0(p),w=Z$(y),C=await l.getDimensions({element:n}),k=y==="y"?"top":"left",D=y==="y"?"bottom":"right",I=a.reference[w]+a.reference[y]-h[y]-a.floating[w],_=h[y]-a.reference[y],L=await l.getOffsetParent({element:n}),M=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,F=I/2-_/2,H=d[k],G=M-C[w]-d[D],X=M/2-C[w]/2+F,Z=MT(H,X,G);return{data:{[y]:Z,centerOffset:X-Z}}}}),twe={left:"right",right:"left",bottom:"top",top:"bottom"};function v1(t){return t.replace(/left|right|bottom|top/g,e=>twe[e])}function vW(t,e){const n=Qh(t)==="start",r=v0(t),i=Z$(r);let o=r==="x"?n?"right":"left":n?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=v1(o)),{main:o,cross:v1(o)}}const nwe={start:"end",end:"start"};function PT(t){return t.replace(/start|end/g,e=>nwe[e])}const rwe=["top","right","bottom","left"],iwe=rwe.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function owe(t,e,n){return(t?[...n.filter(i=>Qh(i)===t),...n.filter(i=>Qh(i)!==t)]:n.filter(i=>gc(i)===i)).filter(i=>t?Qh(i)===t||(e?PT(i)!==i:!1):!0)}const swe=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,i,o,s,a;const{x:l,y:d,rects:h,middlewareData:p,placement:y}=e,{alignment:w=null,allowedPlacements:C=iwe,autoAlignment:k=!0,...D}=t;if((n=p.autoPlacement)!=null&&n.skip)return{};const I=owe(w,k,C),_=await xS(e,D),L=(r=(i=p.autoPlacement)==null?void 0:i.index)!=null?r:0,M=I[L],{main:F,cross:H}=vW(M,h);if(y!==M)return{x:l,y:d,reset:{placement:I[0]}};const G=[_[gc(M)],_[F],_[H]],X=[...(o=(s=p.autoPlacement)==null?void 0:s.overflows)!=null?o:[],{placement:M,overflows:G}],Z=I[L+1];if(Z)return{data:{index:L+1,overflows:X},reset:{placement:Z}};const te=X.slice().sort((ye,ve)=>ye.overflows[0]-ve.overflows[0]),ae=(a=te.find(ye=>{let{overflows:ve}=ye;return ve.every(se=>se<=0)}))==null?void 0:a.placement;return{data:{skip:!0},reset:{placement:ae??te[0].placement}}}}};function awe(t){const e=v1(t);return[PT(t),e,PT(e)]}const lwe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a}=e;if((n=o.flip)!=null&&n.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",flipAlignment:y=!0,...w}=t,C=gc(i),D=h||(C===a||!y?[v1(a)]:awe(a)),I=[a,...D],_=await xS(e,w),L=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(l&&L.push(_[C]),d){const{main:X,cross:Z}=vW(i,s);L.push(_[X],_[Z])}if(M=[...M,{placement:i,overflows:L}],!L.every(X=>X<=0)){var F,H;const X=((F=(H=o.flip)==null?void 0:H.index)!=null?F:0)+1,Z=I[X];if(Z)return{data:{index:X,overflows:M},reset:{placement:Z}};let te="bottom";switch(p){case"bestFit":{var G;const ae=(G=M.slice().sort((ye,ve)=>ye.overflows.filter(se=>se>0).reduce((se,J)=>se+J,0)-ve.overflows.filter(se=>se>0).reduce((se,J)=>se+J,0))[0])==null?void 0:G.placement;ae&&(te=ae);break}case"initialPlacement":te=a;break}return{data:{skip:!0},reset:{placement:te}}}return{}}}};function cwe(t){let{placement:e,rects:n,value:r}=t;const i=gc(e),o=["left","top"].includes(i)?-1:1,s=typeof r=="function"?r({...n,placement:e}):r,{mainAxis:a,crossAxis:l}=typeof s=="number"?{mainAxis:s,crossAxis:0}:{mainAxis:0,crossAxis:0,...s};return v0(i)==="x"?{x:l,y:a*o}:{x:a*o,y:l}}const uwe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:n,y:r,placement:i,rects:o}=e,s=cwe({placement:i,rects:o,value:t});return{x:n+s.x,y:r+s.y,data:s}}}};function dwe(t){return t==="x"?"y":"x"}const fwe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:D=>{let{x:I,y:_}=D;return{x:I,y:_}}},...l}=t,d={x:n,y:r},h=await xS(e,l),p=v0(gc(i)),y=dwe(p);let w=d[p],C=d[y];if(o){const D=p==="y"?"top":"left",I=p==="y"?"bottom":"right",_=w+h[D],L=w-h[I];w=MT(_,w,L)}if(s){const D=y==="y"?"top":"left",I=y==="y"?"bottom":"right",_=C+h[D],L=C-h[I];C=MT(_,C,L)}const k=a.fn({...e,[p]:w,[y]:C});return{...k,data:{x:k.x-n,y:k.y-r}}}}},hwe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n;const{placement:r,rects:i,middlewareData:o}=e,{apply:s,...a}=t;if((n=o.size)!=null&&n.skip)return{};const l=await xS(e,a),d=gc(r),h=Qh(r)==="end";let p,y;d==="top"||d==="bottom"?(p=d,y=h?"left":"right"):(y=d,p=h?"top":"bottom");const w=yd(l.left,0),C=yd(l.right,0),k=yd(l.top,0),D=yd(l.bottom,0),I={height:i.floating.height-(["left","right"].includes(r)?2*(k!==0||D!==0?k+D:yd(l.top,l.bottom)):l[p]),width:i.floating.width-(["top","bottom"].includes(r)?2*(w!==0||C!==0?w+C:yd(l.left,l.right)):l[y])};return s==null||s({...I,...i}),{data:{skip:!0},reset:{rects:!0}}}}};function Q$(t){return(t==null?void 0:t.toString())==="[object Window]"}function ju(t){if(t==null)return window;if(!Q$(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function wS(t){return ju(t).getComputedStyle(t)}function ic(t){return Q$(t)?"":t?(t.nodeName||"").toLowerCase():""}function oc(t){return t instanceof ju(t).HTMLElement}function b1(t){return t instanceof ju(t).Element}function pwe(t){return t instanceof ju(t).Node}function bW(t){const e=ju(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function SS(t){const{overflow:e,overflowX:n,overflowY:r}=wS(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function gwe(t){return["table","td","th"].includes(ic(t))}function yW(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),n=wS(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}const ZL=Math.min,Pm=Math.max,y1=Math.round;function $p(t,e){e===void 0&&(e=!1);const n=t.getBoundingClientRect();let r=1,i=1;return e&&oc(t)&&(r=t.offsetWidth>0&&y1(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&y1(n.height)/t.offsetHeight||1),{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Wu(t){return((pwe(t)?t.ownerDocument:t.document)||window.document).documentElement}function CS(t){return Q$(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xW(t){return $p(Wu(t)).left+CS(t).scrollLeft}function mwe(t){const e=$p(t);return y1(e.width)!==t.offsetWidth||y1(e.height)!==t.offsetHeight}function vwe(t,e,n){const r=oc(e),i=Wu(e),o=$p(t,r&&mwe(e));let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((ic(e)!=="body"||SS(i))&&(s=CS(e)),oc(e)){const l=$p(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else i&&(a.x=xW(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function ES(t){return ic(t)==="html"?t:t.assignedSlot||t.parentNode||(bW(t)?t.host:null)||Wu(t)}function QL(t){return!oc(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function bwe(t){let e=ES(t);for(;oc(e)&&!["html","body"].includes(ic(e));){if(yW(e))return e;e=e.parentNode}return null}function NT(t){const e=ju(t);let n=QL(t);for(;n&&gwe(n)&&getComputedStyle(n).position==="static";)n=QL(n);return n&&(ic(n)==="html"||ic(n)==="body"&&getComputedStyle(n).position==="static"&&!yW(n))?e:n||bwe(t)||e}function e4(t){return{width:t.offsetWidth,height:t.offsetHeight}}function ywe(t){let{rect:e,offsetParent:n,strategy:r}=t;const i=oc(n),o=Wu(n);if(n===o)return e;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&r!=="fixed")&&((ic(n)!=="body"||SS(o))&&(s=CS(n)),oc(n))){const l=$p(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}function xwe(t){const e=ju(t),n=Wu(t),r=e.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,Math.abs(e.innerWidth/r.scale-r.width)<.01&&(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s,y:a}}function wwe(t){var e;const n=Wu(t),r=CS(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Pm(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Pm(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-r.scrollLeft+xW(t);const l=-r.scrollTop;return wS(i||n).direction==="rtl"&&(a+=Pm(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function wW(t){return["html","body","#document"].includes(ic(t))?t.ownerDocument.body:oc(t)&&SS(t)?t:wW(ES(t))}function x1(t,e){var n;e===void 0&&(e=[]);const r=wW(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=ju(r),s=i?[o].concat(o.visualViewport||[],SS(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(x1(ES(s)))}function Swe(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&bW(n)){let r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function Cwe(t){const e=$p(t),n=e.top+t.clientTop,r=e.left+t.clientLeft;return{top:n,left:r,x:r,y:n,right:r+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function t4(t,e){return e==="viewport"?RT(xwe(t)):b1(e)?Cwe(e):RT(wwe(Wu(t)))}function Ewe(t){const e=x1(ES(t)),r=["absolute","fixed"].includes(wS(t).position)&&oc(t)?NT(t):t;return b1(r)?e.filter(i=>b1(i)&&Swe(i,r)&&ic(i)!=="body"):[]}function Awe(t){let{element:e,boundary:n,rootBoundary:r}=t;const o=[...n==="clippingParents"?Ewe(e):[].concat(n),r],s=o[0],a=o.reduce((l,d)=>{const h=t4(e,d);return l.top=Pm(h.top,l.top),l.right=ZL(h.right,l.right),l.bottom=ZL(h.bottom,l.bottom),l.left=Pm(h.left,l.left),l},t4(e,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const kwe={getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:vwe(e,NT(n),r),floating:{...e4(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>ywe(t),getOffsetParent:t=>{let{element:e}=t;return NT(e)},isElement:t=>b1(t),getDocumentElement:t=>{let{element:e}=t;return Wu(e)},getClippingClientRect:t=>Awe(t),getDimensions:t=>{let{element:e}=t;return e4(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},Twe=(t,e,n)=>J1e(t,e,{platform:kwe,...n});var _we=Object.defineProperty,Dwe=Object.defineProperties,$we=Object.getOwnPropertyDescriptors,n4=Object.getOwnPropertySymbols,Owe=Object.prototype.hasOwnProperty,Iwe=Object.prototype.propertyIsEnumerable,r4=(t,e,n)=>e in t?_we(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pl=(t,e)=>{for(var n in e||(e={}))Owe.call(e,n)&&r4(t,n,e[n]);if(n4)for(var n of n4(e))Iwe.call(e,n)&&r4(t,n,e[n]);return t},b0=(t,e)=>Dwe(t,$we(e));function SW(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(typeof e[n]=="object"&&t[n]?SW(t[n],e[n]):t[n]=e[n])}const Kl={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Op(t,e){let n=Kl.themes[t]||{},r;do r=n[e],typeof r>"u"?n.$extend?n=Kl.themes[n.$extend]||{}:(n=null,r=Kl[e]):n=null;while(n);return r}function Rwe(t){const e=[t];let n=Kl.themes[t]||{};do n.$extend&&!n.$resetCss?(e.push(n.$extend),n=Kl.themes[n.$extend]||{}):n=null;while(n);return e.map(r=>`v-popper--theme-${r}`)}function i4(t){const e=[t];let n=Kl.themes[t]||{};do n.$extend?(e.push(n.$extend),n=Kl.themes[n.$extend]||{}):n=null;while(n);return e}let cf=!1;if(typeof window<"u"){cf=!1;try{const t=Object.defineProperty({},"passive",{get(){cf=!0}});window.addEventListener("test",null,t)}catch{}}let CW=!1;typeof window<"u"&&typeof navigator<"u"&&(CW=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const EW=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),o4={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},s4={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function a4(t,e){const n=t.indexOf(e);n!==-1&&t.splice(n,1)}function yA(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const qo=[];let fd=null;const l4={};function c4(t){let e=l4[t];return e||(e=l4[t]=[]),e}let LT=function(){};typeof window<"u"&&(LT=window.Element);function Tn(t){return function(e){return Op(e.theme,t)}}const xA="__floating-vue__popper";var AW=()=>Jn({name:"VPopper",provide(){return{[xA]:{parentPopper:this}}},inject:{[xA]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Tn("disabled")},positioningDisabled:{type:Boolean,default:Tn("positioningDisabled")},placement:{type:String,default:Tn("placement"),validator:t=>EW.includes(t)},delay:{type:[String,Number,Object],default:Tn("delay")},distance:{type:[Number,String],default:Tn("distance")},skidding:{type:[Number,String],default:Tn("skidding")},triggers:{type:Array,default:Tn("triggers")},showTriggers:{type:[Array,Function],default:Tn("showTriggers")},hideTriggers:{type:[Array,Function],default:Tn("hideTriggers")},popperTriggers:{type:Array,default:Tn("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Tn("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Tn("popperHideTriggers")},container:{type:[String,Object,LT,Boolean],default:Tn("container")},boundary:{type:[String,LT],default:Tn("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:Tn("strategy")},autoHide:{type:[Boolean,Function],default:Tn("autoHide")},handleResize:{type:Boolean,default:Tn("handleResize")},instantMove:{type:Boolean,default:Tn("instantMove")},eagerMount:{type:Boolean,default:Tn("eagerMount")},popperClass:{type:[String,Array,Object],default:Tn("popperClass")},computeTransformOrigin:{type:Boolean,default:Tn("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Tn("autoMinSize")},autoSize:{type:[Boolean,String],default:Tn("autoSize")},autoMaxSize:{type:Boolean,default:Tn("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Tn("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Tn("preventOverflow")},overflowPadding:{type:[Number,String],default:Tn("overflowPadding")},arrowPadding:{type:[Number,String],default:Tn("arrowPadding")},arrowOverflow:{type:Boolean,default:Tn("arrowOverflow")},flip:{type:Boolean,default:Tn("flip")},shift:{type:Boolean,default:Tn("shift")},shiftCrossAxis:{type:Boolean,default:Tn("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Tn("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:b0(Pl({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[xA])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,e;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:Pl(Pl({shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((t,e)=>(t[e]="$_refreshListeners",t),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,e)=>(t[e]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:e=!1,force:n=!1}={}){var r,i;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:e=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t,e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(e=(t=this.referenceNode)==null?void 0:t.call(this))!=null?e:this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(uwe({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?e.middleware.push(swe({alignment:(t=this.placement.split("-")[1])!=null?t:""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fwe({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&e.middleware.push(lwe({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ewe({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:s})=>{let a;const{centerOffset:l}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?a=Math.abs(l)>o.reference.width/2:a=Math.abs(l)>o.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let d,h;return s.startsWith("top")||s.startsWith("bottom")?d=o.reference.width:h=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=h!=null?`${h}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(hwe({boundary:this.boundary,padding:this.overflowPadding,apply:({width:i,height:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const r=await Twe(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:Pl(Pl({},r.middlewareData.arrow),r.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),fd&&this.instantMove&&fd.instantMove&&fd!==this.parentPopper){fd.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(fd=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await yA(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...x1(this.$_referenceNode),...x1(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),i=e.x+e.width/2-(r.left+n.offsetLeft),o=e.y+e.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let n=0;n<qo.length;n++)e=qo[n],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}qo.push(this),document.body.classList.add("v-popper--some-open");for(const e of i4(this.theme))c4(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await yA(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,a4(qo,this),qo.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of i4(this.theme)){const r=c4(n);a4(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}fd===this&&(fd=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=Op(this.theme,"disposeTimeout");e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await yA(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,o4,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],o4,this.popperTriggers,this.popperShowTriggers,t);const e=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,s4,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],s4,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(t,e,n){this.$_events.push({targetNodes:t,eventType:e,handler:n}),t.forEach(r=>r.addEventListener(e,n,cf?{passive:!0}:void 0))},$_registerTriggerListeners(t,e,n,r,i){let o=n;r!=null&&(o=typeof r=="function"?r(o):r),o.forEach(s=>{const a=e[s];a&&this.$_registerEventListeners(t,a,i)})},$_removeEventListeners(t){const e=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:i,handler:o}=n;!t||t===i?r.forEach(s=>s.removeEventListener(i,o)):e.push(n)}),this.$_events=e},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const n of this.$_targetNodes){const r=n.getAttribute(t);r&&(n.removeAttribute(t),n.setAttribute(e,r))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const n in t){const r=t[n];r==null?e.removeAttribute(n):e.setAttribute(n,r)}},$_updateParentShownChildren(t){let e=this.parentPopper;for(;e;)t?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.$_pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(Nm>=t.left&&Nm<=t.right&&Lm>=t.top&&Lm<=t.bottom){const e=this.$_popperNode.getBoundingClientRect(),n=Nm-zc,r=Lm-Hc,o=e.left+e.width/2-zc+(e.top+e.height/2)-Hc+e.width+e.height,s=zc+n*o,a=Hc+r*o;return ny(zc,Hc,s,a,e.left,e.top,e.left,e.bottom)||ny(zc,Hc,s,a,e.left,e.top,e.right,e.top)||ny(zc,Hc,s,a,e.right,e.top,e.right,e.bottom)||ny(zc,Hc,s,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(CW?(document.addEventListener("touchstart",u4,cf?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Pwe,cf?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",u4,!0),window.addEventListener("click",Mwe,!0)),window.addEventListener("resize",Fwe));function u4(t){for(let e=0;e<qo.length;e++){const n=qo[e];try{const r=n.popperNode();n.$_mouseDownContains=r.contains(t.target)}catch{}}}function Mwe(t){kW(t)}function Pwe(t){kW(t,!0)}function kW(t,e=!1){const n={};for(let r=qo.length-1;r>=0;r--){const i=qo[r];try{const o=i.$_containsGlobalTarget=Nwe(i,t);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&d4(i,o,t)){if(i.$_handleGlobalClose(t,e),!t.closeAllPopover&&t.closePopover&&o){let a=i.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let s=i.parentPopper;for(;s&&d4(s,s.$_containsGlobalTarget,t);){s.$_handleGlobalClose(t,e);s=s.parentPopper}}})}catch{}}}function Nwe(t,e){const n=t.popperNode();return t.$_mouseDownContains||n.contains(e.target)}function d4(t,e,n){return n.closeAllPopover||n.closePopover&&e||Lwe(t,n)&&!e}function Lwe(t,e){if(typeof t.autoHide=="function"){const n=t.autoHide(e);return t.lastAutoHide=n,n}return t.autoHide}function Fwe(t){for(let e=0;e<qo.length;e++)qo[e].$_computePosition(t)}function mSt(){for(let t=0;t<qo.length;t++)qo[t].hide()}let zc=0,Hc=0,Nm=0,Lm=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{zc=Nm,Hc=Lm,Nm=t.clientX,Lm=t.clientY},cf?{passive:!0}:void 0);function ny(t,e,n,r,i,o,s,a){const l=((s-i)*(e-o)-(a-o)*(t-i))/((a-o)*(n-t)-(s-i)*(r-e)),d=((n-t)*(e-o)-(r-e)*(t-i))/((a-o)*(n-t)-(s-i)*(r-e));return l>=0&&l<=1&&d>=0&&d<=1}var AS=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const Bwe={extends:AW()};function zwe(t,e,n,r,i,o){return Et(),Mn("div",{ref:"reference",class:$r(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Yr(t.$slots,"default",d9(ND(t.slotData)))],2)}var Hwe=AS(Bwe,[["render",zwe]]);function jwe(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let cx;function FT(){FT.init||(FT.init=!0,cx=jwe()!==-1)}var kS={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){FT(),Ir(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",cx&&this.$el.appendChild(t),t.data="about:blank",cx||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!cx&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Wwe=W9();H9("data-v-b329ee4c");const Uwe={class:"resize-observer",tabindex:"-1"};j9();const Vwe=Wwe((t,e,n,r,i,o)=>(Et(),kn("div",Uwe)));kS.render=Vwe;kS.__scopeId="data-v-b329ee4c";kS.__file="src/components/ResizeObserver.vue";var TW=(t="theme")=>({computed:{themeClass(){return Rwe(this[t])}}});const Ywe=Jn({name:"VPopperContent",components:{ResizeObserver:kS},mixins:[TW()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),Xwe=["id","aria-hidden","tabindex","data-popper-placement"],Gwe={ref:"inner",class:"v-popper__inner"},qwe=Lt("div",{class:"v-popper__arrow-outer"},null,-1),Kwe=Lt("div",{class:"v-popper__arrow-inner"},null,-1),Jwe=[qwe,Kwe];function Zwe(t,e,n,r,i,o){const s=Lr("ResizeObserver");return Et(),Mn("div",{id:t.popperId,ref:"popover",class:$r(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:Ei(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:e[2]||(e[2]=Ad(a=>t.autoHide&&t.$emit("hide"),["esc"]))},[Lt("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=a=>t.autoHide&&t.$emit("hide"))}),Lt("div",{class:"v-popper__wrapper",style:Ei(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[Lt("div",Gwe,[t.mounted?(Et(),Mn(Gn,{key:0},[Lt("div",null,[Yr(t.$slots,"default")]),t.handleResize?(Et(),kn(s,{key:0,onNotify:e[1]||(e[1]=a=>t.$emit("resize",a))})):fr("",!0)],64)):fr("",!0)],512),Lt("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ei(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},Jwe,4)],4)],46,Xwe)}var _W=AS(Ywe,[["render",Zwe]]),DW={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};const Qwe=Jn({name:"VPopperWrapper",components:{Popper:Hwe,PopperContent:_W},mixins:[DW,TW("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function eSe(t,e,n,r,i,o){const s=Lr("PopperContent"),a=Lr("Popper");return Et(),kn(a,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:$r([t.themeClass])},{default:ji(({popperId:l,isShown:d,shouldMountContent:h,skipTransition:p,autoHide:y,show:w,hide:C,handleResize:k,onResize:D,classes:I,result:_})=>[Yr(t.$slots,"default",{shown:d,show:w,hide:C}),Nt(s,{ref:"popperContent","popper-id":l,theme:t.finalTheme,shown:d,mounted:h,"skip-transition":p,"auto-hide":y,"handle-resize":k,classes:I,result:_,onHide:C,onResize:D},{default:ji(()=>[Yr(t.$slots,"popper",{shown:d,hide:C})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var eO=AS(Qwe,[["render",eSe]]);const tSe=Jn(b0(Pl({},eO),{name:"VDropdown",vPopperTheme:"dropdown"})),nSe=Jn(b0(Pl({},eO),{name:"VMenu",vPopperTheme:"menu"})),rSe=Jn(b0(Pl({},eO),{name:"VTooltip",vPopperTheme:"tooltip"})),iSe=Jn({name:"VTooltipDirective",components:{Popper:AW(),PopperContent:_W},mixins:[DW],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Op(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Op(t.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(e,r)):this.onResult(e,n)}},onResult(t,e){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),oSe=["innerHTML"],sSe=["textContent"];function aSe(t,e,n,r,i,o){const s=Lr("PopperContent"),a=Lr("Popper");return Et(),kn(a,e0({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:ji(({popperId:l,isShown:d,shouldMountContent:h,skipTransition:p,autoHide:y,hide:w,handleResize:C,onResize:k,classes:D,result:I})=>[Nt(s,{ref:"popperContent",class:$r({"v-popper--tooltip-loading":t.loading}),"popper-id":l,theme:t.theme,shown:d,mounted:h,"skip-transition":p,"auto-hide":y,"handle-resize":C,classes:D,result:I,onHide:w,onResize:k},{default:ji(()=>[t.html?(Et(),Mn("div",{key:0,innerHTML:t.finalContent},null,8,oSe)):(Et(),Mn("div",{key:1,textContent:Fl(t.finalContent)},null,8,sSe))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var lSe=AS(iSe,[["render",aSe]]);const $W="v-popper--has-tooltip";function cSe(t,e){let n=t.placement;if(!n&&e)for(const r of EW)e[r]&&(n=r);return n||(n=Op(t.theme||"tooltip","placement")),n}function OW(t,e,n){let r;const i=typeof e;return i==="string"?r={content:e}:e&&i==="object"?r=e:r={content:!1},r.placement=cSe(r,n),r.targetNodes=()=>[t],r.referenceNode=()=>t,r}let wA,Dv,uSe=0;function dSe(){if(wA)return;Dv=ct([]),wA=gp({name:"VTooltipDirectiveApp",setup(){return{directives:Dv}},render(){return this.directives.map(e=>Qr(lSe,b0(Pl({},e.options),{shown:e.shown||e.options.shown,key:e.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),wA.mount(t)}function fSe(t,e,n){dSe();const r=ct(OW(t,e,n)),i=ct(!1),o={id:uSe++,options:r,shown:i};return Dv.value.push(o),t.classList&&t.classList.add($W),t.$_popper={options:r,item:o,show(){i.value=!0},hide(){i.value=!1}}}function IW(t){if(t.$_popper){const e=Dv.value.indexOf(t.$_popper.item);e!==-1&&Dv.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove($W)}function f4(t,{value:e,modifiers:n}){const r=OW(t,e,n);if(!r.content||Op(r.theme||"tooltip","disabled"))IW(t);else{let i;t.$_popper?(i=t.$_popper,i.options.value=r):i=fSe(t,e,n),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?i.show():i.hide())}}var hSe={beforeMount:f4,updated:f4,beforeUnmount(t){IW(t)}};function h4(t){t.addEventListener("click",RW),t.addEventListener("touchstart",MW,cf?{passive:!0}:!1)}function p4(t){t.removeEventListener("click",RW),t.removeEventListener("touchstart",MW),t.removeEventListener("touchend",PW),t.removeEventListener("touchcancel",NW)}function RW(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function MW(t){if(t.changedTouches.length===1){const e=t.currentTarget;e.$_vclosepopover_touch=!0;const n=t.changedTouches[0];e.$_vclosepopover_touchPoint=n,e.addEventListener("touchend",PW),e.addEventListener("touchcancel",NW)}}function PW(t){const e=t.currentTarget;if(e.$_vclosepopover_touch=!1,t.changedTouches.length===1){const n=t.changedTouches[0],r=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function NW(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}var pSe={beforeMount(t,{value:e,modifiers:n}){t.$_closePopoverModifiers=n,(typeof e>"u"||e)&&h4(t)},updated(t,{value:e,oldValue:n,modifiers:r}){t.$_closePopoverModifiers=r,e!==n&&(typeof e>"u"||e?h4(t):p4(t))},beforeUnmount(t){p4(t)}};function gSe(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,SW(Kl,e),t.directive("tooltip",hSe),t.directive("close-popper",pSe),t.component("VTooltip",rSe),t.component("VDropdown",tSe),t.component("VMenu",nSe))}const vSt={version:"2.0.0-beta.20",install:gSe,options:Kl};function ts(t,e,...n){if(t in e){let i=e[t];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ts),r}var $v=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))($v||{}),mSe=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(mSe||{});function ls({visible:t=!0,features:e=0,ourProps:n,theirProps:r,...i}){var o;let s=FW(r,n),a=Object.assign(i,{props:s});if(t||e&2&&s.static)return SA(a);if(e&1){let l=(o=s.unmount)==null||o?0:1;return ts(l,{[0](){return null},[1](){return SA({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return SA(a)}function SA({props:t,attrs:e,slots:n,slot:r,name:i}){var o,s;let{as:a,...l}=TS(t,["unmount","static"]),d=(o=n.default)==null?void 0:o.call(n,r),h={};if(r){let p=!1,y=[];for(let[w,C]of Object.entries(r))typeof C=="boolean"&&(p=!0),C===!0&&y.push(w);p&&(h["data-headlessui-state"]=y.join(" "))}if(a==="template"){if(d=LW(d??[]),Object.keys(l).length>0||Object.keys(e).length>0){let[p,...y]=d??[];if(!vSe(p)||y.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(l).concat(Object.keys(e)).map(k=>k.trim()).filter((k,D,I)=>I.indexOf(k)===D).sort((k,D)=>k.localeCompare(D)).map(k=>`  - ${k}`).join(`
`),"","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(k=>`  - ${k}`).join(`
`)].join(`
`));let w=FW((s=p.props)!=null?s:{},l),C=ha(p,w);for(let k in w)k.startsWith("on")&&(C.props||(C.props={}),C.props[k]=w[k]);return C}return Array.isArray(d)&&d.length===1?d[0]:d}return Qr(a,Object.assign({},l,h),{default:()=>d})}function LW(t){return t.flatMap(e=>e.type===Gn?LW(e.children):[e])}function FW(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let r of t)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):e[i]=r[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(e,{[r](i,...o){let s=n[r];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return e}function tO(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function TS(t,e=[]){let n=Object.assign({},t);for(let r of e)r in n&&delete n[r];return n}function vSe(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}let bSe=0;function ySe(){return++bSe}function mc(){return ySe()}var zn=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(zn||{});function xSe(t){throw new Error("Unexpected object: "+t)}var to=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(to||{});function wSe(t,e){let n=e.resolveItems();if(n.length<=0)return null;let r=e.resolveActiveIndex(),i=r??-1,o=(()=>{switch(t.focus){case 0:return n.findIndex(s=>!e.resolveDisabled(s));case 1:{let s=n.slice().reverse().findIndex((a,l,d)=>i!==-1&&d.length-l-1>=i?!1:!e.resolveDisabled(a));return s===-1?s:n.length-1-s}case 2:return n.findIndex((s,a)=>a<=i?!1:!e.resolveDisabled(s));case 3:{let s=n.slice().reverse().findIndex(a=>!e.resolveDisabled(a));return s===-1?s:n.length-1-s}case 4:return n.findIndex(s=>e.resolveId(s)===t.id);case 5:return null;default:xSe(t)}})();return o===-1?r:o}function Pn(t){var e;return t==null||t.value==null?null:(e=t.value.$el)!=null?e:t.value}let BW=Symbol("Context");var sc=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(sc||{});function zW(){return gr(BW,null)}function HW(t){so(BW,t)}function g4(t,e){if(t)return t;let n=e??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function nO(t,e){let n=ct(g4(t.value.type,t.value.as));return Rr(()=>{n.value=g4(t.value.type,t.value.as)}),Af(()=>{var r;n.value||Pn(e)&&Pn(e)instanceof HTMLButtonElement&&!((r=Pn(e))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var SSe=Object.defineProperty,CSe=(t,e,n)=>e in t?SSe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m4=(t,e,n)=>(CSe(t,typeof e!="symbol"?e+"":e,n),n);let ESe=class{constructor(){m4(this,"current",this.detect()),m4(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"}},rO=new ESe;function Fm(t){if(rO.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let e=Pn(t);if(e)return e.ownerDocument}return document}function ASe({container:t,accept:e,walk:n,enabled:r}){Af(()=>{let i=t.value;if(!i||r!==void 0&&!r.value)return;let o=Fm(t);if(!o)return;let s=Object.assign(l=>e(l),{acceptNode:e}),a=o.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,s,!1);for(;a.nextNode();)n(a.currentNode)})}let BT=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var um=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(um||{}),zT=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(zT||{}),kSe=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(kSe||{});function TSe(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(BT)).sort((e,n)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var iO=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(iO||{});function jW(t,e=0){var n;return t===((n=Fm(t))==null?void 0:n.body)?!1:ts(e,{[0](){return t.matches(BT)},[1](){let r=t;for(;r!==null;){if(r.matches(BT))return!0;r=r.parentElement}return!1}})}var _Se=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(_Se||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let DSe=["textarea","input"].join(",");function $Se(t){var e,n;return(n=(e=t==null?void 0:t.matches)==null?void 0:e.call(t,DSe))!=null?n:!1}function oO(t,e=n=>n){return t.slice().sort((n,r)=>{let i=e(n),o=e(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function v4(t,e,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o;let s=(o=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t==null?void 0:t.ownerDocument)!=null?o:document,a=Array.isArray(t)?n?oO(t):t:TSe(t);i.length>0&&a.length>1&&(a=a.filter(C=>!i.includes(C))),r=r??s.activeElement;let l=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,a.indexOf(r))-1;if(e&4)return Math.max(0,a.indexOf(r))+1;if(e&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=e&32?{preventScroll:!0}:{},p=0,y=a.length,w;do{if(p>=y||p+y<=0)return 0;let C=d+p;if(e&16)C=(C+y)%y;else{if(C<0)return 3;if(C>=y)return 1}w=a[C],w==null||w.focus(h),p+=l}while(w!==s.activeElement);return e&6&&$Se(w)&&w.select(),2}function b4(t,e,n){rO.isServer||Af(r=>{document.addEventListener(t,e,n),r(()=>document.removeEventListener(t,e,n))})}function OSe(t,e,n){rO.isServer||Af(r=>{window.addEventListener(t,e,n),r(()=>window.removeEventListener(t,e,n))})}function ISe(t,e,n=lt(()=>!0)){function r(o,s){if(!n.value||o.defaultPrevented)return;let a=s(o);if(a===null||!a.getRootNode().contains(a))return;let l=function d(h){return typeof h=="function"?d(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let d of l){if(d===null)continue;let h=d instanceof HTMLElement?d:Pn(d);if(h!=null&&h.contains(a)||o.composed&&o.composedPath().includes(h))return}return!jW(a,iO.Loose)&&a.tabIndex!==-1&&o.preventDefault(),e(o,a)}let i=ct(null);b4("mousedown",o=>{var s,a;n.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),b4("click",o=>{i.value&&(r(o,()=>i.value),i.value=null)},!0),OSe("blur",o=>r(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var _S=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(_S||{});let sO=Jn({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:e,attrs:n}){return()=>{let{features:r,...i}=t,o={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ls({ourProps:o,theirProps:i,slot:{},attrs:n,slots:e,name:"Hidden"})}}});function aO(t={},e=null,n=[]){for(let[r,i]of Object.entries(t))UW(n,WW(e,r),i);return n}function WW(t,e){return t?t+"["+e+"]":e}function UW(t,e,n){if(Array.isArray(n))for(let[r,i]of n.entries())UW(t,WW(e,r.toString()),i);else n instanceof Date?t.push([e,n.toISOString()]):typeof n=="boolean"?t.push([e,n?"1":"0"]):typeof n=="string"?t.push([e,n]):typeof n=="number"?t.push([e,`${n}`]):n==null?t.push([e,""]):aO(n,e,t)}function VW(t){var e;let n=(e=t==null?void 0:t.form)!=null?e:t.closest("form");if(n){for(let r of n.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}function lO(t,e,n){let r=ct(n==null?void 0:n.value),i=lt(()=>t.value!==void 0);return[lt(()=>i.value?t.value:r.value),function(o){return i.value||(r.value=o),e==null?void 0:e(o)}]}function y4(t){return[t.screenX,t.screenY]}function RSe(){let t=ct([-1,-1]);return{wasMoved(e){let n=y4(e);return t.value[0]===n[0]&&t.value[1]===n[1]?!1:(t.value=n,!0)},update(e){t.value=y4(e)}}}let MSe=Symbol("DescriptionContext");function cO({slot:t=ct({}),name:e="Description",props:n={}}={}){let r=ct([]);function i(o){return r.value.push(o),()=>{let s=r.value.indexOf(o);s!==-1&&r.value.splice(s,1)}}return so(MSe,{register:i,slot:t,name:e,props:n}),lt(()=>r.value.length>0?r.value.join(" "):void 0)}var PSe=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(PSe||{});let YW=Symbol("DisclosureContext");function uO(t){let e=gr(YW,null);if(e===null){let n=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,uO),n}return e}let XW=Symbol("DisclosurePanelContext");function NSe(){return gr(XW,null)}let ySt=Jn({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(t,{slots:e,attrs:n}){let r=ct(t.defaultOpen?0:1),i=ct(null),o=ct(null),s={buttonId:ct(null),panelId:ct(null),disclosureState:r,panel:i,button:o,toggleDisclosure(){r.value=ts(r.value,{[0]:1,[1]:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(a){s.closeDisclosure();let l=(()=>a?a instanceof HTMLElement?a:a.value instanceof HTMLElement?Pn(a):Pn(s.button):Pn(s.button))();l==null||l.focus()}};return so(YW,s),HW(lt(()=>ts(r.value,{[0]:sc.Open,[1]:sc.Closed}))),()=>{let{defaultOpen:a,...l}=t,d={open:r.value===0,close:s.close};return ls({theirProps:l,ourProps:{},slot:d,slots:e,attrs:n,name:"Disclosure"})}}}),xSt=Jn({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-disclosure-button-${mc()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=uO("DisclosureButton");Rr(()=>{i.buttonId.value=t.id}),as(()=>{i.buttonId.value=null});let o=NSe(),s=lt(()=>o===null?!1:o.value===i.panelId.value),a=ct(null);r({el:a,$el:a}),s.value||Af(()=>{i.button.value=a.value});let l=nO(lt(()=>({as:t.as,type:e.type})),a);function d(){var y;t.disabled||(s.value?(i.toggleDisclosure(),(y=Pn(i.button))==null||y.focus()):i.toggleDisclosure())}function h(y){var w;if(!t.disabled)if(s.value)switch(y.key){case zn.Space:case zn.Enter:y.preventDefault(),y.stopPropagation(),i.toggleDisclosure(),(w=Pn(i.button))==null||w.focus();break}else switch(y.key){case zn.Space:case zn.Enter:y.preventDefault(),y.stopPropagation(),i.toggleDisclosure();break}}function p(y){switch(y.key){case zn.Space:y.preventDefault();break}}return()=>{let y={open:i.disclosureState.value===0},{id:w,...C}=t,k=s.value?{ref:a,type:l.value,onClick:d,onKeydown:h}:{id:w,ref:a,type:l.value,"aria-expanded":t.disabled?void 0:i.disclosureState.value===0,"aria-controls":Pn(i.panel)?i.panelId.value:void 0,disabled:t.disabled?!0:void 0,onClick:d,onKeydown:h,onKeyup:p};return ls({ourProps:k,theirProps:C,slot:y,attrs:e,slots:n,name:"DisclosureButton"})}}}),wSt=Jn({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-disclosure-panel-${mc()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=uO("DisclosurePanel");Rr(()=>{i.panelId.value=t.id}),as(()=>{i.panelId.value=null}),r({el:i.panel,$el:i.panel}),so(XW,i.panelId);let o=zW(),s=lt(()=>o!==null?(o.value&sc.Open)===sc.Open:i.disclosureState.value===0);return()=>{let a={open:i.disclosureState.value===0,close:i.close},{id:l,...d}=t,h={id:l,ref:i.panel};return ls({ourProps:h,theirProps:d,slot:a,attrs:e,slots:n,features:$v.RenderStrategy|$v.Static,visible:s.value,name:"DisclosurePanel"})}}}),x4=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function w4(t){var e,n;let r=(e=t.innerText)!=null?e:"",i=t.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return x4.test(s)&&(s=s.replace(x4,"")),s}function LSe(t){let e=t.getAttribute("aria-label");if(typeof e=="string")return e.trim();let n=t.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():w4(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return w4(t).trim()}function FSe(t){let e=ct(""),n=ct("");return()=>{let r=Pn(t);if(!r)return"";let i=r.innerText;if(e.value===i)return n.value;let o=LSe(r).trim().toLowerCase();return e.value=i,n.value=o,o}}function BSe(t,e){return t===e}var zSe=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(zSe||{}),HSe=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(HSe||{}),jSe=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(jSe||{});function WSe(t){requestAnimationFrame(()=>requestAnimationFrame(t))}let GW=Symbol("ListboxContext");function DS(t){let e=gr(GW,null);if(e===null){let n=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,DS),n}return e}let SSt=Jn({name:"Listbox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>BSe},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:e,attrs:n,emit:r}){let i=ct(1),o=ct(null),s=ct(null),a=ct(null),l=ct([]),d=ct(""),h=ct(null),p=ct(1);function y(_=L=>L){let L=h.value!==null?l.value[h.value]:null,M=oO(_(l.value.slice()),H=>Pn(H.dataRef.domRef)),F=L?M.indexOf(L):null;return F===-1&&(F=null),{options:M,activeOptionIndex:F}}let w=lt(()=>t.multiple?1:0),[C,k]=lO(lt(()=>t.modelValue===void 0?ts(w.value,{[1]:[],[0]:void 0}):t.modelValue),_=>r("update:modelValue",_),lt(()=>t.defaultValue)),D={listboxState:i,value:C,mode:w,compare(_,L){if(typeof t.by=="string"){let M=t.by;return(_==null?void 0:_[M])===(L==null?void 0:L[M])}return t.by(_,L)},orientation:lt(()=>t.horizontal?"horizontal":"vertical"),labelRef:o,buttonRef:s,optionsRef:a,disabled:lt(()=>t.disabled),options:l,searchQuery:d,activeOptionIndex:h,activationTrigger:p,closeListbox(){t.disabled||i.value!==1&&(i.value=1,h.value=null)},openListbox(){t.disabled||i.value!==0&&(i.value=0)},goToOption(_,L,M){if(t.disabled||i.value===1)return;let F=y(),H=wSe(_===to.Specific?{focus:to.Specific,id:L}:{focus:_},{resolveItems:()=>F.options,resolveActiveIndex:()=>F.activeOptionIndex,resolveId:G=>G.id,resolveDisabled:G=>G.dataRef.disabled});d.value="",h.value=H,p.value=M??1,l.value=F.options},search(_){if(t.disabled||i.value===1)return;let L=d.value!==""?0:1;d.value+=_.toLowerCase();let M=(h.value!==null?l.value.slice(h.value+L).concat(l.value.slice(0,h.value+L)):l.value).find(H=>H.dataRef.textValue.startsWith(d.value)&&!H.dataRef.disabled),F=M?l.value.indexOf(M):-1;F===-1||F===h.value||(h.value=F,p.value=1)},clearSearch(){t.disabled||i.value!==1&&d.value!==""&&(d.value="")},registerOption(_,L){let M=y(F=>[...F,{id:_,dataRef:L}]);l.value=M.options,h.value=M.activeOptionIndex},unregisterOption(_){let L=y(M=>{let F=M.findIndex(H=>H.id===_);return F!==-1&&M.splice(F,1),M});l.value=L.options,h.value=L.activeOptionIndex,p.value=1},select(_){t.disabled||k(ts(w.value,{[0]:()=>_,[1]:()=>{let L=Rt(D.value.value).slice(),M=Rt(_),F=L.findIndex(H=>D.compare(M,Rt(H)));return F===-1?L.push(M):L.splice(F,1),L}}))}};ISe([s,a],(_,L)=>{var M;D.closeListbox(),jW(L,iO.Loose)||(_.preventDefault(),(M=Pn(s))==null||M.focus())},lt(()=>i.value===0)),so(GW,D),HW(lt(()=>ts(i.value,{[0]:sc.Open,[1]:sc.Closed})));let I=lt(()=>{var _;return(_=Pn(s))==null?void 0:_.closest("form")});return Rr(()=>{en([I],()=>{if(!I.value||t.defaultValue===void 0)return;function _(){D.select(t.defaultValue)}return I.value.addEventListener("reset",_),()=>{var L;(L=I.value)==null||L.removeEventListener("reset",_)}},{immediate:!0})}),()=>{let{name:_,modelValue:L,disabled:M,form:F,...H}=t,G={open:i.value===0,disabled:M,value:C.value};return Qr(Gn,[..._!=null&&C.value!=null?aO({[_]:C.value}).map(([X,Z])=>Qr(sO,tO({features:_S.Hidden,key:X,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:F,name:X,value:Z}))):[],ls({ourProps:{},theirProps:{...n,...TS(H,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:G,slots:e,attrs:n,name:"Listbox"})])}}}),CSt=Jn({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-listbox-button-${mc()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=DS("ListboxButton");r({el:i.buttonRef,$el:i.buttonRef});function o(d){switch(d.key){case zn.Space:case zn.Enter:case zn.ArrowDown:d.preventDefault(),i.openListbox(),Ir(()=>{var h;(h=Pn(i.optionsRef))==null||h.focus({preventScroll:!0}),i.value.value||i.goToOption(to.First)});break;case zn.ArrowUp:d.preventDefault(),i.openListbox(),Ir(()=>{var h;(h=Pn(i.optionsRef))==null||h.focus({preventScroll:!0}),i.value.value||i.goToOption(to.Last)});break}}function s(d){switch(d.key){case zn.Space:d.preventDefault();break}}function a(d){i.disabled.value||(i.listboxState.value===0?(i.closeListbox(),Ir(()=>{var h;return(h=Pn(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(d.preventDefault(),i.openListbox(),WSe(()=>{var h;return(h=Pn(i.optionsRef))==null?void 0:h.focus({preventScroll:!0})})))}let l=nO(lt(()=>({as:t.as,type:e.type})),i.buttonRef);return()=>{var d,h;let p={open:i.listboxState.value===0,disabled:i.disabled.value,value:i.value.value},{id:y,...w}=t,C={ref:i.buttonRef,id:y,type:l.value,"aria-haspopup":"listbox","aria-controls":(d=Pn(i.optionsRef))==null?void 0:d.id,"aria-expanded":i.disabled.value?void 0:i.listboxState.value===0,"aria-labelledby":i.labelRef.value?[(h=Pn(i.labelRef))==null?void 0:h.id,y].join(" "):void 0,disabled:i.disabled.value===!0?!0:void 0,onKeydown:o,onKeyup:s,onClick:a};return ls({ourProps:C,theirProps:w,slot:p,attrs:e,slots:n,name:"ListboxButton"})}}}),ESt=Jn({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-listbox-options-${mc()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=DS("ListboxOptions"),o=ct(null);r({el:i.optionsRef,$el:i.optionsRef});function s(d){switch(o.value&&clearTimeout(o.value),d.key){case zn.Space:if(i.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),i.search(d.key);case zn.Enter:if(d.preventDefault(),d.stopPropagation(),i.activeOptionIndex.value!==null){let h=i.options.value[i.activeOptionIndex.value];i.select(h.dataRef.value)}i.mode.value===0&&(i.closeListbox(),Ir(()=>{var h;return(h=Pn(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})}));break;case ts(i.orientation.value,{vertical:zn.ArrowDown,horizontal:zn.ArrowRight}):return d.preventDefault(),d.stopPropagation(),i.goToOption(to.Next);case ts(i.orientation.value,{vertical:zn.ArrowUp,horizontal:zn.ArrowLeft}):return d.preventDefault(),d.stopPropagation(),i.goToOption(to.Previous);case zn.Home:case zn.PageUp:return d.preventDefault(),d.stopPropagation(),i.goToOption(to.First);case zn.End:case zn.PageDown:return d.preventDefault(),d.stopPropagation(),i.goToOption(to.Last);case zn.Escape:d.preventDefault(),d.stopPropagation(),i.closeListbox(),Ir(()=>{var h;return(h=Pn(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case zn.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(i.search(d.key),o.value=setTimeout(()=>i.clearSearch(),350));break}}let a=zW(),l=lt(()=>a!==null?(a.value&sc.Open)===sc.Open:i.listboxState.value===0);return()=>{var d,h,p,y;let w={open:i.listboxState.value===0},{id:C,...k}=t,D={"aria-activedescendant":i.activeOptionIndex.value===null||(d=i.options.value[i.activeOptionIndex.value])==null?void 0:d.id,"aria-multiselectable":i.mode.value===1?!0:void 0,"aria-labelledby":(y=(h=Pn(i.labelRef))==null?void 0:h.id)!=null?y:(p=Pn(i.buttonRef))==null?void 0:p.id,"aria-orientation":i.orientation.value,id:C,onKeydown:s,role:"listbox",tabIndex:0,ref:i.optionsRef};return ls({ourProps:D,theirProps:k,slot:w,attrs:e,slots:n,features:$v.RenderStrategy|$v.Static,visible:l.value,name:"ListboxOptions"})}}}),ASt=Jn({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-listbox.option-${mc()}`}},setup(t,{slots:e,attrs:n,expose:r}){let i=DS("ListboxOption"),o=ct(null);r({el:o,$el:o});let s=lt(()=>i.activeOptionIndex.value!==null?i.options.value[i.activeOptionIndex.value].id===t.id:!1),a=lt(()=>ts(i.mode.value,{[0]:()=>i.compare(Rt(i.value.value),Rt(t.value)),[1]:()=>Rt(i.value.value).some(I=>i.compare(Rt(I),Rt(t.value)))})),l=lt(()=>ts(i.mode.value,{[1]:()=>{var I;let _=Rt(i.value.value);return((I=i.options.value.find(L=>_.some(M=>i.compare(Rt(M),Rt(L.dataRef.value)))))==null?void 0:I.id)===t.id},[0]:()=>a.value})),d=FSe(o),h=lt(()=>({disabled:t.disabled,value:t.value,get textValue(){return d()},domRef:o}));Rr(()=>i.registerOption(t.id,h)),as(()=>i.unregisterOption(t.id)),Rr(()=>{en([i.listboxState,a],()=>{i.listboxState.value===0&&a.value&&ts(i.mode.value,{[1]:()=>{l.value&&i.goToOption(to.Specific,t.id)},[0]:()=>{i.goToOption(to.Specific,t.id)}})},{immediate:!0})}),Af(()=>{i.listboxState.value===0&&s.value&&i.activationTrigger.value!==0&&Ir(()=>{var I,_;return(_=(I=Pn(o))==null?void 0:I.scrollIntoView)==null?void 0:_.call(I,{block:"nearest"})})});function p(I){if(t.disabled)return I.preventDefault();i.select(t.value),i.mode.value===0&&(i.closeListbox(),Ir(()=>{var _;return(_=Pn(i.buttonRef))==null?void 0:_.focus({preventScroll:!0})}))}function y(){if(t.disabled)return i.goToOption(to.Nothing);i.goToOption(to.Specific,t.id)}let w=RSe();function C(I){w.update(I)}function k(I){w.wasMoved(I)&&(t.disabled||s.value||i.goToOption(to.Specific,t.id,0))}function D(I){w.wasMoved(I)&&(t.disabled||s.value&&i.goToOption(to.Nothing))}return()=>{let{disabled:I}=t,_={active:s.value,selected:a.value,disabled:I},{id:L,value:M,disabled:F,...H}=t,G={id:L,ref:o,role:"option",tabIndex:I===!0?void 0:-1,"aria-disabled":I===!0?!0:void 0,"aria-selected":a.value,disabled:void 0,onClick:p,onFocus:y,onPointerenter:C,onMouseenter:C,onPointermove:k,onMousemove:k,onPointerleave:D,onMouseleave:D};return ls({ourProps:G,theirProps:H,slot:_,attrs:n,slots:e,name:"ListboxOption"})}}}),qW=Symbol("LabelContext");function KW(){let t=gr(qW,null);if(t===null){let e=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,KW),e}return t}function dO({slot:t={},name:e="Label",props:n={}}={}){let r=ct([]);function i(o){return r.value.push(o),()=>{let s=r.value.indexOf(o);s!==-1&&r.value.splice(s,1)}}return so(qW,{register:i,slot:t,name:e,props:n}),lt(()=>r.value.length>0?r.value.join(" "):void 0)}let JW=Jn({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-label-${mc()}`}},setup(t,{slots:e,attrs:n}){let r=KW();return Rr(()=>as(r.register(t.id))),()=>{let{name:i="Label",slot:o={},props:s={}}=r,{id:a,passive:l,...d}=t,h={...Object.entries(s).reduce((p,[y,w])=>Object.assign(p,{[y]:kt(w)}),{}),id:a};return l&&(delete h.onClick,delete h.htmlFor,delete d.onClick),ls({ourProps:h,theirProps:d,slot:o,attrs:n,slots:e,name:i})}}});function USe(t,e){return t===e}let ZW=Symbol("RadioGroupContext");function QW(t){let e=gr(ZW,null);if(e===null){let n=new Error(`<${t} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,QW),n}return e}let kSt=Jn({name:"RadioGroup",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>USe},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:()=>`headlessui-radiogroup-${mc()}`}},inheritAttrs:!1,setup(t,{emit:e,attrs:n,slots:r,expose:i}){let o=ct(null),s=ct([]),a=dO({name:"RadioGroupLabel"}),l=cO({name:"RadioGroupDescription"});i({el:o,$el:o});let[d,h]=lO(lt(()=>t.modelValue),C=>e("update:modelValue",C),lt(()=>t.defaultValue)),p={options:s,value:d,disabled:lt(()=>t.disabled),firstOption:lt(()=>s.value.find(C=>!C.propsRef.disabled)),containsCheckedOption:lt(()=>s.value.some(C=>p.compare(Rt(C.propsRef.value),Rt(t.modelValue)))),compare(C,k){if(typeof t.by=="string"){let D=t.by;return(C==null?void 0:C[D])===(k==null?void 0:k[D])}return t.by(C,k)},change(C){var k;if(t.disabled||p.compare(Rt(d.value),Rt(C)))return!1;let D=(k=s.value.find(I=>p.compare(Rt(I.propsRef.value),Rt(C))))==null?void 0:k.propsRef;return D!=null&&D.disabled?!1:(h(C),!0)},registerOption(C){s.value.push(C),s.value=oO(s.value,k=>k.element)},unregisterOption(C){let k=s.value.findIndex(D=>D.id===C);k!==-1&&s.value.splice(k,1)}};so(ZW,p),ASe({container:lt(()=>Pn(o)),accept(C){return C.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:C.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(C){C.setAttribute("role","none")}});function y(C){if(!o.value||!o.value.contains(C.target))return;let k=s.value.filter(D=>D.propsRef.disabled===!1).map(D=>D.element);switch(C.key){case zn.Enter:VW(C.currentTarget);break;case zn.ArrowLeft:case zn.ArrowUp:if(C.preventDefault(),C.stopPropagation(),v4(k,um.Previous|um.WrapAround)===zT.Success){let D=s.value.find(I=>{var _;return I.element===((_=Fm(o))==null?void 0:_.activeElement)});D&&p.change(D.propsRef.value)}break;case zn.ArrowRight:case zn.ArrowDown:if(C.preventDefault(),C.stopPropagation(),v4(k,um.Next|um.WrapAround)===zT.Success){let D=s.value.find(I=>{var _;return I.element===((_=Fm(I.element))==null?void 0:_.activeElement)});D&&p.change(D.propsRef.value)}break;case zn.Space:{C.preventDefault(),C.stopPropagation();let D=s.value.find(I=>{var _;return I.element===((_=Fm(I.element))==null?void 0:_.activeElement)});D&&p.change(D.propsRef.value)}break}}let w=lt(()=>{var C;return(C=Pn(o))==null?void 0:C.closest("form")});return Rr(()=>{en([w],()=>{if(!w.value||t.defaultValue===void 0)return;function C(){p.change(t.defaultValue)}return w.value.addEventListener("reset",C),()=>{var k;(k=w.value)==null||k.removeEventListener("reset",C)}},{immediate:!0})}),()=>{let{disabled:C,name:k,id:D,form:I,..._}=t,L={ref:o,id:D,role:"radiogroup","aria-labelledby":a.value,"aria-describedby":l.value,onKeydown:y};return Qr(Gn,[...k!=null&&d.value!=null?aO({[k]:d.value}).map(([M,F])=>Qr(sO,tO({features:_S.Hidden,key:M,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:I,name:M,value:F}))):[],ls({ourProps:L,theirProps:{...n,...TS(_,["modelValue","defaultValue","by"])},slot:{},attrs:n,slots:r,name:"RadioGroup"})])}}});var VSe=(t=>(t[t.Empty=1]="Empty",t[t.Active=2]="Active",t))(VSe||{});let TSt=Jn({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-radiogroup-option-${mc()}`}},setup(t,{attrs:e,slots:n,expose:r}){let i=QW("RadioGroupOption"),o=dO({name:"RadioGroupLabel"}),s=cO({name:"RadioGroupDescription"}),a=ct(null),l=lt(()=>({value:t.value,disabled:t.disabled})),d=ct(1);r({el:a,$el:a});let h=lt(()=>Pn(a));Rr(()=>i.registerOption({id:t.id,element:h,propsRef:l})),as(()=>i.unregisterOption(t.id));let p=lt(()=>{var _;return((_=i.firstOption.value)==null?void 0:_.id)===t.id}),y=lt(()=>i.disabled.value||t.disabled),w=lt(()=>i.compare(Rt(i.value.value),Rt(t.value))),C=lt(()=>y.value?-1:w.value||!i.containsCheckedOption.value&&p.value?0:-1);function k(){var _;i.change(t.value)&&(d.value|=2,(_=Pn(a))==null||_.focus())}function D(){d.value|=2}function I(){d.value&=-3}return()=>{let{id:_,value:L,disabled:M,...F}=t,H={checked:w.value,disabled:y.value,active:Boolean(d.value&2)},G={id:_,ref:a,role:"radio","aria-checked":w.value?"true":"false","aria-labelledby":o.value,"aria-describedby":s.value,"aria-disabled":y.value?!0:void 0,tabIndex:C.value,onClick:y.value?void 0:k,onFocus:y.value?void 0:D,onBlur:y.value?void 0:I};return ls({ourProps:G,theirProps:F,slot:H,attrs:e,slots:n,name:"RadioGroupOption"})}}}),_St=JW,eU=Symbol("GroupContext"),DSt=Jn({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:e,attrs:n}){let r=ct(null),i=dO({name:"SwitchLabel",props:{htmlFor:lt(()=>{var s;return(s=r.value)==null?void 0:s.id}),onClick(s){r.value&&(s.currentTarget.tagName==="LABEL"&&s.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),o=cO({name:"SwitchDescription"});return so(eU,{switchRef:r,labelledby:i,describedby:o}),()=>ls({theirProps:t,ourProps:{},slot:{},slots:e,attrs:n,name:"SwitchGroup"})}}),$St=Jn({name:"Switch",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:()=>`headlessui-switch-${mc()}`}},inheritAttrs:!1,setup(t,{emit:e,attrs:n,slots:r,expose:i}){let o=gr(eU,null),[s,a]=lO(lt(()=>t.modelValue),D=>e("update:modelValue",D),lt(()=>t.defaultChecked));function l(){a(!s.value)}let d=ct(null),h=o===null?d:o.switchRef,p=nO(lt(()=>({as:t.as,type:n.type})),h);i({el:h,$el:h});function y(D){D.preventDefault(),l()}function w(D){D.key===zn.Space?(D.preventDefault(),l()):D.key===zn.Enter&&VW(D.currentTarget)}function C(D){D.preventDefault()}let k=lt(()=>{var D,I;return(I=(D=Pn(h))==null?void 0:D.closest)==null?void 0:I.call(D,"form")});return Rr(()=>{en([k],()=>{if(!k.value||t.defaultChecked===void 0)return;function D(){a(t.defaultChecked)}return k.value.addEventListener("reset",D),()=>{var I;(I=k.value)==null||I.removeEventListener("reset",D)}},{immediate:!0})}),()=>{let{id:D,name:I,value:_,form:L,...M}=t,F={checked:s.value},H={id:D,ref:h,role:"switch",type:p.value,tabIndex:0,"aria-checked":s.value,"aria-labelledby":o==null?void 0:o.labelledby.value,"aria-describedby":o==null?void 0:o.describedby.value,onClick:y,onKeyup:w,onKeypress:C};return Qr(Gn,[I!=null&&s.value!=null?Qr(sO,tO({features:_S.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:s.value,form:L,name:I,value:_})):null,ls({ourProps:H,theirProps:{...n,...TS(M,["modelValue","defaultChecked"])},slot:F,attrs:n,slots:r,name:"Switch"})])}}}),OSt=JW;/*!
  * vue-tippy v6.5.0
  * (c) 2024 
  * @license MIT
  */var Oo="top",Rs="bottom",Ms="right",Io="left",fO="auto",y0=[Oo,Rs,Ms,Io],Ip="start",Ov="end",YSe="clippingParents",tU="viewport",Wg="popper",XSe="reference",S4=y0.reduce(function(t,e){return t.concat([e+"-"+Ip,e+"-"+Ov])},[]),nU=[].concat(y0,[fO]).reduce(function(t,e){return t.concat([e,e+"-"+Ip,e+"-"+Ov])},[]),GSe="beforeRead",qSe="read",KSe="afterRead",JSe="beforeMain",ZSe="main",QSe="afterMain",eCe="beforeWrite",tCe="write",nCe="afterWrite",rCe=[GSe,qSe,KSe,JSe,ZSe,QSe,eCe,tCe,nCe];function Ga(t){return t?(t.nodeName||"").toLowerCase():null}function ba(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Rp(t){var e=ba(t).Element;return t instanceof e||t instanceof Element}function _s(t){var e=ba(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function rU(t){if(typeof ShadowRoot>"u")return!1;var e=ba(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function iCe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!_s(o)||!Ga(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 oCe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.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]:n[r]),a=s.reduce(function(l,d){return l[d]="",l},{});!_s(i)||!Ga(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var iU={name:"applyStyles",enabled:!0,phase:"write",fn:iCe,effect:oCe,requires:["computeStyles"]};function Ua(t){return t.split("-")[0]}var jd=Math.max,w1=Math.min,Mp=Math.round;function Pp(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(_s(t)&&e){var o=t.offsetHeight,s=t.offsetWidth;s>0&&(r=Mp(n.width)/s||1),o>0&&(i=Mp(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function hO(t){var e=Pp(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function oU(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&rU(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qa(t){return ba(t).getComputedStyle(t)}function sCe(t){return["table","td","th"].indexOf(Ga(t))>=0}function Uu(t){return((Rp(t)?t.ownerDocument:t.document)||window.document).documentElement}function $S(t){return Ga(t)==="html"?t:t.assignedSlot||t.parentNode||(rU(t)?t.host:null)||Uu(t)}function C4(t){return!_s(t)||qa(t).position==="fixed"?null:t.offsetParent}function aCe(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&_s(t)){var r=qa(t);if(r.position==="fixed")return null}for(var i=$S(t);_s(i)&&["html","body"].indexOf(Ga(i))<0;){var o=qa(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 x0(t){for(var e=ba(t),n=C4(t);n&&sCe(n)&&qa(n).position==="static";)n=C4(n);return n&&(Ga(n)==="html"||Ga(n)==="body"&&qa(n).position==="static")?e:n||aCe(t)||e}function pO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Bm(t,e,n){return jd(t,w1(e,n))}function lCe(t,e,n){var r=Bm(t,e,n);return r>n?n:r}function sU(){return{top:0,right:0,bottom:0,left:0}}function aU(t){return Object.assign({},sU(),t)}function lU(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var cCe=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,aU(typeof e!="number"?e:lU(e,y0))};function uCe(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ua(n.placement),l=pO(a),d=[Io,Ms].indexOf(a)>=0,h=d?"height":"width";if(!(!o||!s)){var p=cCe(i.padding,n),y=hO(o),w=l==="y"?Oo:Io,C=l==="y"?Rs:Ms,k=n.rects.reference[h]+n.rects.reference[l]-s[l]-n.rects.popper[h],D=s[l]-n.rects.reference[l],I=x0(o),_=I?l==="y"?I.clientHeight||0:I.clientWidth||0:0,L=k/2-D/2,M=p[w],F=_-y[h]-p[C],H=_/2-y[h]/2+L,G=Bm(M,H,F),X=l;n.modifiersData[r]=(e={},e[X]=G,e.centerOffset=G-H,e)}}function dCe(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||oU(e.elements.popper,i)&&(e.elements.arrow=i))}var fCe={name:"arrow",enabled:!0,phase:"main",fn:uCe,effect:dCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Np(t){return t.split("-")[1]}var hCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pCe(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:Mp(e*i)/i||0,y:Mp(n*i)/i||0}}function E4(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,h=t.roundOffsets,p=t.isFixed,y=h===!0?pCe(s):typeof h=="function"?h(s):s,w=y.x,C=w===void 0?0:w,k=y.y,D=k===void 0?0:k,I=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),L=Io,M=Oo,F=window;if(d){var H=x0(n),G="clientHeight",X="clientWidth";if(H===ba(n)&&(H=Uu(n),qa(H).position!=="static"&&a==="absolute"&&(G="scrollHeight",X="scrollWidth")),H=H,i===Oo||(i===Io||i===Ms)&&o===Ov){M=Rs;var Z=p&&F.visualViewport?F.visualViewport.height:H[G];D-=Z-r.height,D*=l?1:-1}if(i===Io||(i===Oo||i===Rs)&&o===Ov){L=Ms;var te=p&&F.visualViewport?F.visualViewport.width:H[X];C-=te-r.width,C*=l?1:-1}}var ae=Object.assign({position:a},d&&hCe);if(l){var ye;return Object.assign({},ae,(ye={},ye[M]=_?"0":"",ye[L]=I?"0":"",ye.transform=(F.devicePixelRatio||1)<=1?"translate("+C+"px, "+D+"px)":"translate3d("+C+"px, "+D+"px, 0)",ye))}return Object.assign({},ae,(e={},e[M]=_?D+"px":"",e[L]=I?C+"px":"",e.transform="",e))}function gCe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,d={placement:Ua(e.placement),variation:Np(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,E4(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,E4(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var mCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gCe,data:{}},ry={passive:!0};function vCe(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=ba(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",n.update,ry)}),a&&l.addEventListener("resize",n.update,ry),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",n.update,ry)}),a&&l.removeEventListener("resize",n.update,ry)}}var bCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vCe,data:{}},yCe={left:"right",right:"left",bottom:"top",top:"bottom"};function ux(t){return t.replace(/left|right|bottom|top/g,function(e){return yCe[e]})}var xCe={start:"end",end:"start"};function A4(t){return t.replace(/start|end/g,function(e){return xCe[e]})}function gO(t){var e=ba(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function mO(t){return Pp(Uu(t)).left+gO(t).scrollLeft}function wCe(t){var e=ba(t),n=Uu(t),r=e.visualViewport,i=n.clientWidth,o=n.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+mO(t),y:a}}function SCe(t){var e,n=Uu(t),r=gO(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=jd(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=jd(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+mO(t),l=-r.scrollTop;return qa(i||n).direction==="rtl"&&(a+=jd(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function vO(t){var e=qa(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function cU(t){return["html","body","#document"].indexOf(Ga(t))>=0?t.ownerDocument.body:_s(t)&&vO(t)?t:cU($S(t))}function zm(t,e){var n;e===void 0&&(e=[]);var r=cU(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=ba(r),s=i?[o].concat(o.visualViewport||[],vO(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(zm($S(s)))}function HT(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function CCe(t){var e=Pp(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function k4(t,e){return e===tU?HT(wCe(t)):Rp(e)?CCe(e):HT(SCe(Uu(t)))}function ECe(t){var e=zm($S(t)),n=["absolute","fixed"].indexOf(qa(t).position)>=0,r=n&&_s(t)?x0(t):t;return Rp(r)?e.filter(function(i){return Rp(i)&&oU(i,r)&&Ga(i)!=="body"&&(n?qa(i).position!=="static":!0)}):[]}function ACe(t,e,n){var r=e==="clippingParents"?ECe(t):[].concat(e),i=[].concat(r,[n]),o=i[0],s=i.reduce(function(a,l){var d=k4(t,l);return a.top=jd(d.top,a.top),a.right=w1(d.right,a.right),a.bottom=w1(d.bottom,a.bottom),a.left=jd(d.left,a.left),a},k4(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function uU(t){var e=t.reference,n=t.element,r=t.placement,i=r?Ua(r):null,o=r?Np(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Oo:l={x:s,y:e.y-n.height};break;case Rs:l={x:s,y:e.y+e.height};break;case Ms:l={x:e.x+e.width,y:a};break;case Io:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var d=i?pO(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case Ip:l[d]=l[d]-(e[h]/2-n[h]/2);break;case Ov:l[d]=l[d]+(e[h]/2-n[h]/2);break}}return l}function Iv(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.boundary,s=o===void 0?YSe:o,a=n.rootBoundary,l=a===void 0?tU:a,d=n.elementContext,h=d===void 0?Wg:d,p=n.altBoundary,y=p===void 0?!1:p,w=n.padding,C=w===void 0?0:w,k=aU(typeof C!="number"?C:lU(C,y0)),D=h===Wg?XSe:Wg,I=t.rects.popper,_=t.elements[y?D:h],L=ACe(Rp(_)?_:_.contextElement||Uu(t.elements.popper),s,l),M=Pp(t.elements.reference),F=uU({reference:M,element:I,strategy:"absolute",placement:i}),H=HT(Object.assign({},I,F)),G=h===Wg?H:M,X={top:L.top-G.top+k.top,bottom:G.bottom-L.bottom+k.bottom,left:L.left-G.left+k.left,right:G.right-L.right+k.right},Z=t.modifiersData.offset;if(h===Wg&&Z){var te=Z[i];Object.keys(X).forEach(function(ae){var ye=[Ms,Rs].indexOf(ae)>=0?1:-1,ve=[Oo,Rs].indexOf(ae)>=0?"y":"x";X[ae]+=te[ve]*ye})}return X}function kCe(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,d=l===void 0?nU:l,h=Np(r),p=h?a?S4:S4.filter(function(C){return Np(C)===h}):y0,y=p.filter(function(C){return d.indexOf(C)>=0});y.length===0&&(y=p);var w=y.reduce(function(C,k){return C[k]=Iv(t,{placement:k,boundary:i,rootBoundary:o,padding:s})[Ua(k)],C},{});return Object.keys(w).sort(function(C,k){return w[C]-w[k]})}function TCe(t){if(Ua(t)===fO)return[];var e=ux(t);return[A4(t),e,A4(e)]}function _Ce(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,d=n.padding,h=n.boundary,p=n.rootBoundary,y=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,k=n.allowedAutoPlacements,D=e.options.placement,I=Ua(D),_=I===D,L=l||(_||!C?[ux(D)]:TCe(D)),M=[D].concat(L).reduce(function(Be,Q){return Be.concat(Ua(Q)===fO?kCe(e,{placement:Q,boundary:h,rootBoundary:p,padding:d,flipVariations:C,allowedAutoPlacements:k}):Q)},[]),F=e.rects.reference,H=e.rects.popper,G=new Map,X=!0,Z=M[0],te=0;te<M.length;te++){var ae=M[te],ye=Ua(ae),ve=Np(ae)===Ip,se=[Oo,Rs].indexOf(ye)>=0,J=se?"width":"height",B=Iv(e,{placement:ae,boundary:h,rootBoundary:p,altBoundary:y,padding:d}),V=se?ve?Ms:Io:ve?Rs:Oo;F[J]>H[J]&&(V=ux(V));var q=ux(V),ce=[];if(o&&ce.push(B[ye]<=0),a&&ce.push(B[V]<=0,B[q]<=0),ce.every(function(Be){return Be})){Z=ae,X=!1;break}G.set(ae,ce)}if(X)for(var fe=C?3:1,Ae=function(Q){var de=M.find(function(we){var Ce=G.get(we);if(Ce)return Ce.slice(0,Q).every(function(je){return je})});if(de)return Z=de,"break"},Se=fe;Se>0;Se--){var _e=Ae(Se);if(_e==="break")break}e.placement!==Z&&(e.modifiersData[r]._skip=!0,e.placement=Z,e.reset=!0)}}var DCe={name:"flip",enabled:!0,phase:"main",fn:_Ce,requiresIfExists:["offset"],data:{_skip:!1}};function T4(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function _4(t){return[Oo,Ms,Rs,Io].some(function(e){return t[e]>=0})}function $Ce(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Iv(e,{elementContext:"reference"}),a=Iv(e,{altBoundary:!0}),l=T4(s,r),d=T4(a,i,o),h=_4(l),p=_4(d);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}var OCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$Ce};function ICe(t,e,n){var r=Ua(t),i=[Io,Oo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Io,Ms].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function RCe(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=nU.reduce(function(h,p){return h[p]=ICe(p,e.rects,o),h},{}),a=s[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=s}var MCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RCe};function PCe(t){var e=t.state,n=t.name;e.modifiersData[n]=uU({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var NCe={name:"popperOffsets",enabled:!0,phase:"read",fn:PCe,data:{}};function LCe(t){return t==="x"?"y":"x"}function FCe(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,y=n.tether,w=y===void 0?!0:y,C=n.tetherOffset,k=C===void 0?0:C,D=Iv(e,{boundary:l,rootBoundary:d,padding:p,altBoundary:h}),I=Ua(e.placement),_=Np(e.placement),L=!_,M=pO(I),F=LCe(M),H=e.modifiersData.popperOffsets,G=e.rects.reference,X=e.rects.popper,Z=typeof k=="function"?k(Object.assign({},e.rects,{placement:e.placement})):k,te=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),ae=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ye={x:0,y:0};if(H){if(o){var ve,se=M==="y"?Oo:Io,J=M==="y"?Rs:Ms,B=M==="y"?"height":"width",V=H[M],q=V+D[se],ce=V-D[J],fe=w?-X[B]/2:0,Ae=_===Ip?G[B]:X[B],Se=_===Ip?-X[B]:-G[B],_e=e.elements.arrow,Be=w&&_e?hO(_e):{width:0,height:0},Q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:sU(),de=Q[se],we=Q[J],Ce=Bm(0,G[B],Be[B]),je=L?G[B]/2-fe-Ce-de-te.mainAxis:Ae-Ce-de-te.mainAxis,Ue=L?-G[B]/2+fe+Ce+we+te.mainAxis:Se+Ce+we+te.mainAxis,Xe=e.elements.arrow&&x0(e.elements.arrow),qe=Xe?M==="y"?Xe.clientTop||0:Xe.clientLeft||0:0,K=(ve=ae==null?void 0:ae[M])!=null?ve:0,ee=V+je-K-qe,be=V+Ue-K,$e=Bm(w?w1(q,ee):q,V,w?jd(ce,be):ce);H[M]=$e,ye[M]=$e-V}if(a){var Ie,He=M==="x"?Oo:Io,rt=M==="x"?Rs:Ms,ze=H[F],We=F==="y"?"height":"width",xe=ze+D[He],Re=ze-D[rt],Ve=[Oo,Io].indexOf(I)!==-1,it=(Ie=ae==null?void 0:ae[F])!=null?Ie:0,xt=Ve?xe:ze-G[We]-X[We]-it+te.altAxis,At=Ve?ze+G[We]+X[We]-it-te.altAxis:Re,It=w&&Ve?lCe(xt,ze,At):Bm(w?xt:xe,ze,w?At:Re);H[F]=It,ye[F]=It-ze}e.modifiersData[r]=ye}}var BCe={name:"preventOverflow",enabled:!0,phase:"main",fn:FCe,requiresIfExists:["offset"]};function zCe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function HCe(t){return t===ba(t)||!_s(t)?gO(t):zCe(t)}function jCe(t){var e=t.getBoundingClientRect(),n=Mp(e.width)/t.offsetWidth||1,r=Mp(e.height)/t.offsetHeight||1;return n!==1||r!==1}function WCe(t,e,n){n===void 0&&(n=!1);var r=_s(e),i=_s(e)&&jCe(e),o=Uu(e),s=Pp(t,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ga(e)!=="body"||vO(o))&&(a=HCe(e)),_s(e)?(l=Pp(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=mO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function UCe(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function VCe(t){var e=UCe(t);return rCe.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function YCe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function XCe(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var D4={placement:"bottom",modifiers:[],strategy:"absolute"};function $4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function GCe(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?D4:i;return function(a,l,d){d===void 0&&(d=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},D4,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],y=!1,w={state:h,setOptions:function(I){var _=typeof I=="function"?I(h.options):I;k(),h.options=Object.assign({},o,h.options,_),h.scrollParents={reference:Rp(a)?zm(a):a.contextElement?zm(a.contextElement):[],popper:zm(l)};var L=VCe(XCe([].concat(r,h.options.modifiers)));return h.orderedModifiers=L.filter(function(M){return M.enabled}),C(),w.update()},forceUpdate:function(){if(!y){var I=h.elements,_=I.reference,L=I.popper;if($4(_,L)){h.rects={reference:WCe(_,x0(L),h.options.strategy==="fixed"),popper:hO(L)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(te){return h.modifiersData[te.name]=Object.assign({},te.data)});for(var M=0;M<h.orderedModifiers.length;M++){if(h.reset===!0){h.reset=!1,M=-1;continue}var F=h.orderedModifiers[M],H=F.fn,G=F.options,X=G===void 0?{}:G,Z=F.name;typeof H=="function"&&(h=H({state:h,options:X,name:Z,instance:w})||h)}}}},update:YCe(function(){return new Promise(function(D){w.forceUpdate(),D(h)})}),destroy:function(){k(),y=!0}};if(!$4(a,l))return w;w.setOptions(d).then(function(D){!y&&d.onFirstUpdate&&d.onFirstUpdate(D)});function C(){h.orderedModifiers.forEach(function(D){var I=D.name,_=D.options,L=_===void 0?{}:_,M=D.effect;if(typeof M=="function"){var F=M({state:h,name:I,instance:w,options:L}),H=function(){};p.push(F||H)}})}function k(){p.forEach(function(D){return D()}),p=[]}return w}}var qCe=[bCe,NCe,mCe,iU,MCe,DCe,BCe,fCe,OCe],KCe=GCe({defaultModifiers:qCe}),JCe="tippy-box",dU="tippy-content",fU="tippy-backdrop",hU="tippy-arrow",pU="tippy-svg-arrow",xd={passive:!0,capture:!0},gU=function(){return document.body};function CA(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function bO(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function mU(t,e){return typeof t=="function"?t.apply(void 0,e):t}function O4(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function ZCe(t){return t.split(/\s+/).filter(Boolean)}function wh(t){return[].concat(t)}function I4(t,e){t.indexOf(e)===-1&&t.push(e)}function QCe(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function vU(t){return t.split("-")[0]}function Lp(t){return[].slice.call(t)}function R4(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function ep(){return document.createElement("div")}function OS(t){return["Element","Fragment"].some(function(e){return bO(t,e)})}function eEe(t){return bO(t,"NodeList")}function yO(t){return bO(t,"MouseEvent")}function tEe(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function nEe(t){return OS(t)?[t]:eEe(t)?Lp(t):Array.isArray(t)?t:Lp(document.querySelectorAll(t))}function EA(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Rv(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function bU(t){var e,n=wh(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function rEe(t,e){var n=e.clientX,r=e.clientY;return t.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,l=a.interactiveBorder,d=vU(s.placement),h=s.modifiersData.offset;if(!h)return!0;var p=d==="bottom"?h.top.y:0,y=d==="top"?h.bottom.y:0,w=d==="right"?h.left.x:0,C=d==="left"?h.right.x:0,k=o.top-r+p>l,D=r-o.bottom-y>l,I=o.left-n+w>l,_=n-o.right-C>l;return k||D||I||_})}function AA(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[r](i,n)})}function M4(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ra={isTouch:!1},P4=0;function iEe(){Ra.isTouch||(Ra.isTouch=!0,window.performance&&document.addEventListener("mousemove",yU))}function yU(){var t=performance.now();t-P4<20&&(Ra.isTouch=!1,document.removeEventListener("mousemove",yU)),P4=t}function oEe(){var t=document.activeElement;if(tEe(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function sEe(){document.addEventListener("touchstart",iEe,xd),window.addEventListener("blur",oEe)}var aEe=typeof window<"u"&&typeof document<"u",lEe=aEe?!!window.msCrypto:!1,cEe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},uEe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},sa=Object.assign({appendTo:gU,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},cEe,uEe),dEe=Object.keys(sa),fEe=function(e){var n=Object.keys(e);n.forEach(function(r){sa[r]=e[r]})};function xU(t){var e=t.plugins||[],n=e.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var a;r[o]=t[o]!==void 0?t[o]:(a=sa[o])!=null?a:s}return r},{});return Object.assign({},t,n)}function hEe(t,e){var n=e?Object.keys(xU(Object.assign({},sa,{plugins:e}))):dEe,r=n.reduce(function(i,o){var s=(t.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 N4(t,e){var n=Object.assign({},e,{content:mU(e.content,[t])},e.ignoreAttributes?{}:hEe(t,e.plugins));return n.aria=Object.assign({},sa.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var pEe=function(){return"innerHTML"};function jT(t,e){t[pEe()]=e}function L4(t){var e=ep();return t===!0?e.className=hU:(e.className=pU,OS(t)?e.appendChild(t):jT(e,t)),e}function F4(t,e){OS(e.content)?(jT(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?jT(t,e.content):t.textContent=e.content)}function S1(t){var e=t.firstElementChild,n=Lp(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(dU)}),arrow:n.find(function(r){return r.classList.contains(hU)||r.classList.contains(pU)}),backdrop:n.find(function(r){return r.classList.contains(fU)})}}function wU(t){var e=ep(),n=ep();n.className=JCe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ep();r.className=dU,r.setAttribute("data-state","hidden"),F4(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props);function i(o,s){var a=S1(e),l=a.box,d=a.content,h=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&F4(d,t.props),s.arrow?h?o.arrow!==s.arrow&&(l.removeChild(h),l.appendChild(L4(s.arrow))):l.appendChild(L4(s.arrow)):h&&l.removeChild(h)}return{popper:e,onUpdate:i}}wU.$$tippy=!0;var gEe=1,iy=[],kA=[];function mEe(t,e){var n=N4(t,Object.assign({},sa,xU(R4(e)))),r,i,o,s=!1,a=!1,l=!1,d=!1,h,p,y,w=[],C=O4(ee,n.interactiveDebounce),k,D=gEe++,I=null,_=QCe(n.plugins),L={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},M={id:D,reference:t,popper:ep(),popperInstance:I,props:n,state:L,plugins:_,clearDelayTimeouts:xt,setProps:At,setContent:It,show:Oe,hide:Ne,hideWithInteractivity:Fe,enable:Ve,disable:it,unmount:Qe,destroy:ht};if(!n.render)return M;var F=n.render(M),H=F.popper,G=F.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+M.id,M.popper=H,t._tippy=M,H._tippy=M;var X=_.map(function(Me){return Me.fn(M)}),Z=t.hasAttribute("aria-expanded");return Xe(),fe(),V(),q("onCreate",[M]),n.showOnCreate&&xe(),H.addEventListener("mouseenter",function(){M.props.interactive&&M.state.isVisible&&M.clearDelayTimeouts()}),H.addEventListener("mouseleave",function(){M.props.interactive&&M.props.trigger.indexOf("mouseenter")>=0&&se().addEventListener("mousemove",C)}),M;function te(){var Me=M.props.touch;return Array.isArray(Me)?Me:[Me,0]}function ae(){return te()[0]==="hold"}function ye(){var Me;return!!((Me=M.props.render)!=null&&Me.$$tippy)}function ve(){return k||t}function se(){var Me=ve().parentNode;return Me?bU(Me):document}function J(){return S1(H)}function B(Me){return M.state.isMounted&&!M.state.isVisible||Ra.isTouch||h&&h.type==="focus"?0:CA(M.props.delay,Me?0:1,sa.delay)}function V(Me){Me===void 0&&(Me=!1),H.style.pointerEvents=M.props.interactive&&!Me?"":"none",H.style.zIndex=""+M.props.zIndex}function q(Me,Je,ot){if(ot===void 0&&(ot=!0),X.forEach(function(dt){dt[Me]&&dt[Me].apply(dt,Je)}),ot){var mt;(mt=M.props)[Me].apply(mt,Je)}}function ce(){var Me=M.props.aria;if(Me.content){var Je="aria-"+Me.content,ot=H.id,mt=wh(M.props.triggerTarget||t);mt.forEach(function(dt){var pt=dt.getAttribute(Je);if(M.state.isVisible)dt.setAttribute(Je,pt?pt+" "+ot:ot);else{var bt=pt&&pt.replace(ot,"").trim();bt?dt.setAttribute(Je,bt):dt.removeAttribute(Je)}})}}function fe(){if(!(Z||!M.props.aria.expanded)){var Me=wh(M.props.triggerTarget||t);Me.forEach(function(Je){M.props.interactive?Je.setAttribute("aria-expanded",M.state.isVisible&&Je===ve()?"true":"false"):Je.removeAttribute("aria-expanded")})}}function Ae(){se().removeEventListener("mousemove",C),iy=iy.filter(function(Me){return Me!==C})}function Se(Me){if(!(Ra.isTouch&&(l||Me.type==="mousedown"))){var Je=Me.composedPath&&Me.composedPath()[0]||Me.target;if(!(M.props.interactive&&M4(H,Je))){if(wh(M.props.triggerTarget||t).some(function(ot){return M4(ot,Je)})){if(Ra.isTouch||M.state.isVisible&&M.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[M,Me]);M.props.hideOnClick===!0&&(M.clearDelayTimeouts(),M.hide(),a=!0,setTimeout(function(){a=!1}),M.state.isMounted||de())}}}function _e(){l=!0}function Be(){l=!1}function Q(){var Me=se();Me.addEventListener("mousedown",Se,!0),Me.addEventListener("touchend",Se,xd),Me.addEventListener("touchstart",Be,xd),Me.addEventListener("touchmove",_e,xd)}function de(){var Me=se();Me.removeEventListener("mousedown",Se,!0),Me.removeEventListener("touchend",Se,xd),Me.removeEventListener("touchstart",Be,xd),Me.removeEventListener("touchmove",_e,xd)}function we(Me,Je){je(Me,function(){!M.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&Je()})}function Ce(Me,Je){je(Me,Je)}function je(Me,Je){var ot=J().box;function mt(dt){dt.target===ot&&(AA(ot,"remove",mt),Je())}if(Me===0)return Je();AA(ot,"remove",p),AA(ot,"add",mt),p=mt}function Ue(Me,Je,ot){ot===void 0&&(ot=!1);var mt=wh(M.props.triggerTarget||t);mt.forEach(function(dt){dt.addEventListener(Me,Je,ot),w.push({node:dt,eventType:Me,handler:Je,options:ot})})}function Xe(){ae()&&(Ue("touchstart",K,{passive:!0}),Ue("touchend",be,{passive:!0})),ZCe(M.props.trigger).forEach(function(Me){if(Me!=="manual")switch(Ue(Me,K),Me){case"mouseenter":Ue("mouseleave",be);break;case"focus":Ue(lEe?"focusout":"blur",$e);break;case"focusin":Ue("focusout",$e);break}})}function qe(){w.forEach(function(Me){var Je=Me.node,ot=Me.eventType,mt=Me.handler,dt=Me.options;Je.removeEventListener(ot,mt,dt)}),w=[]}function K(Me){var Je,ot=!1;if(!(!M.state.isEnabled||Ie(Me)||a)){var mt=((Je=h)==null?void 0:Je.type)==="focus";h=Me,k=Me.currentTarget,fe(),!M.state.isVisible&&yO(Me)&&iy.forEach(function(dt){return dt(Me)}),Me.type==="click"&&(M.props.trigger.indexOf("mouseenter")<0||s)&&M.props.hideOnClick!==!1&&M.state.isVisible?ot=!0:xe(Me),Me.type==="click"&&(s=!ot),ot&&!mt&&Re(Me)}}function ee(Me){var Je=Me.target,ot=ve().contains(Je)||H.contains(Je);if(!(Me.type==="mousemove"&&ot)){var mt=We().concat(H).map(function(dt){var pt,bt=dt._tippy,Mt=(pt=bt.popperInstance)==null?void 0:pt.state;return Mt?{popperRect:dt.getBoundingClientRect(),popperState:Mt,props:n}:null}).filter(Boolean);rEe(mt,Me)&&(Ae(),Re(Me))}}function be(Me){var Je=Ie(Me)||M.props.trigger.indexOf("click")>=0&&s;if(!Je){if(M.props.interactive){M.hideWithInteractivity(Me);return}Re(Me)}}function $e(Me){M.props.trigger.indexOf("focusin")<0&&Me.target!==ve()||M.props.interactive&&Me.relatedTarget&&H.contains(Me.relatedTarget)||Re(Me)}function Ie(Me){return Ra.isTouch?ae()!==Me.type.indexOf("touch")>=0:!1}function He(){rt();var Me=M.props,Je=Me.popperOptions,ot=Me.placement,mt=Me.offset,dt=Me.getReferenceClientRect,pt=Me.moveTransition,bt=ye()?S1(H).arrow:null,Mt=dt?{getBoundingClientRect:dt,contextElement:dt.contextElement||ve()}:t,Bt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(bo){var _i=bo.state;if(ye()){var Ff=J(),Ju=Ff.box;["placement","reference-hidden","escaped"].forEach(function(xc){xc==="placement"?Ju.setAttribute("data-placement",_i.placement):_i.attributes.popper["data-popper-"+xc]?Ju.setAttribute("data-"+xc,""):Ju.removeAttribute("data-"+xc)}),_i.attributes.popper={}}}},vn=[{name:"offset",options:{offset:mt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!pt}},Bt];ye()&&bt&&vn.push({name:"arrow",options:{element:bt,padding:3}}),vn.push.apply(vn,(Je==null?void 0:Je.modifiers)||[]),M.popperInstance=KCe(Mt,H,Object.assign({},Je,{placement:ot,onFirstUpdate:y,modifiers:vn}))}function rt(){M.popperInstance&&(M.popperInstance.destroy(),M.popperInstance=null)}function ze(){var Me=M.props.appendTo,Je,ot=ve();M.props.interactive&&Me===gU||Me==="parent"?Je=ot.parentNode:Je=mU(Me,[ot]),Je.contains(H)||Je.appendChild(H),M.state.isMounted=!0,He()}function We(){return Lp(H.querySelectorAll("[data-tippy-root]"))}function xe(Me){M.clearDelayTimeouts(),Me&&q("onTrigger",[M,Me]),Q();var Je=B(!0),ot=te(),mt=ot[0],dt=ot[1];Ra.isTouch&&mt==="hold"&&dt&&(Je=dt),Je?r=setTimeout(function(){M.show()},Je):M.show()}function Re(Me){if(M.clearDelayTimeouts(),q("onUntrigger",[M,Me]),!M.state.isVisible){de();return}if(!(M.props.trigger.indexOf("mouseenter")>=0&&M.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Me.type)>=0&&s)){var Je=B(!1);Je?i=setTimeout(function(){M.state.isVisible&&M.hide()},Je):o=requestAnimationFrame(function(){M.hide()})}}function Ve(){M.state.isEnabled=!0}function it(){M.hide(),M.state.isEnabled=!1}function xt(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function At(Me){if(!M.state.isDestroyed){q("onBeforeUpdate",[M,Me]),qe();var Je=M.props,ot=N4(t,Object.assign({},Je,R4(Me),{ignoreAttributes:!0}));M.props=ot,Xe(),Je.interactiveDebounce!==ot.interactiveDebounce&&(Ae(),C=O4(ee,ot.interactiveDebounce)),Je.triggerTarget&&!ot.triggerTarget?wh(Je.triggerTarget).forEach(function(mt){mt.removeAttribute("aria-expanded")}):ot.triggerTarget&&t.removeAttribute("aria-expanded"),fe(),V(),G&&G(Je,ot),M.popperInstance&&(He(),We().forEach(function(mt){requestAnimationFrame(mt._tippy.popperInstance.forceUpdate)})),q("onAfterUpdate",[M,Me])}}function It(Me){M.setProps({content:Me})}function Oe(){var Me=M.state.isVisible,Je=M.state.isDestroyed,ot=!M.state.isEnabled,mt=Ra.isTouch&&!M.props.touch,dt=CA(M.props.duration,0,sa.duration);if(!(Me||Je||ot||mt)&&!ve().hasAttribute("disabled")&&(q("onShow",[M],!1),M.props.onShow(M)!==!1)){if(M.state.isVisible=!0,ye()&&(H.style.visibility="visible"),V(),Q(),M.state.isMounted||(H.style.transition="none"),ye()){var pt=J(),bt=pt.box,Mt=pt.content;EA([bt,Mt],0)}y=function(){var vn;if(!(!M.state.isVisible||d)){if(d=!0,H.offsetHeight,H.style.transition=M.props.moveTransition,ye()&&M.props.animation){var ui=J(),bo=ui.box,_i=ui.content;EA([bo,_i],dt),Rv([bo,_i],"visible")}ce(),fe(),I4(kA,M),(vn=M.popperInstance)==null||vn.forceUpdate(),q("onMount",[M]),M.props.animation&&ye()&&Ce(dt,function(){M.state.isShown=!0,q("onShown",[M])})}},ze()}}function Ne(){var Me=!M.state.isVisible,Je=M.state.isDestroyed,ot=!M.state.isEnabled,mt=CA(M.props.duration,1,sa.duration);if(!(Me||Je||ot)&&(q("onHide",[M],!1),M.props.onHide(M)!==!1)){if(M.state.isVisible=!1,M.state.isShown=!1,d=!1,s=!1,ye()&&(H.style.visibility="hidden"),Ae(),de(),V(!0),ye()){var dt=J(),pt=dt.box,bt=dt.content;M.props.animation&&(EA([pt,bt],mt),Rv([pt,bt],"hidden"))}ce(),fe(),M.props.animation?ye()&&we(mt,M.unmount):M.unmount()}}function Fe(Me){se().addEventListener("mousemove",C),I4(iy,C),C(Me)}function Qe(){M.state.isVisible&&M.hide(),M.state.isMounted&&(rt(),We().forEach(function(Me){Me._tippy.unmount()}),H.parentNode&&H.parentNode.removeChild(H),kA=kA.filter(function(Me){return Me!==M}),M.state.isMounted=!1,q("onHidden",[M]))}function ht(){M.state.isDestroyed||(M.clearDelayTimeouts(),M.unmount(),qe(),delete t._tippy,M.state.isDestroyed=!0,q("onDestroy",[M]))}}function Pt(t,e){e===void 0&&(e={});var n=sa.plugins.concat(e.plugins||[]);sEe();var r=Object.assign({},e,{plugins:n}),i=nEe(t),o=i.reduce(function(s,a){var l=a&&mEe(a,r);return l&&s.push(l),s},[]);return OS(t)?o[0]:o}Pt.defaultProps=sa;Pt.setDefaultProps=fEe;Pt.currentInput=Ra;Object.assign({},iU,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var vEe={name:"animateFill",defaultValue:!1,fn:function(e){var n;if(!((n=e.props.render)!=null&&n.$$tippy))return{};var r=S1(e.popper),i=r.box,o=r.content,s=e.props.animateFill?bEe():null;return{onCreate:function(){s&&(i.insertBefore(s,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var l=i.style.transitionDuration,d=Number(l.replace("ms",""));o.style.transitionDelay=Math.round(d/10)+"ms",s.style.transitionDuration=l,Rv([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&Rv([s],"hidden")}}}};function bEe(){var t=ep();return t.className=fU,Rv([t],"hidden"),t}var WT={clientX:0,clientY:0},oy=[];function SU(t){var e=t.clientX,n=t.clientY;WT={clientX:e,clientY:n}}function yEe(t){t.addEventListener("mousemove",SU)}function xEe(t){t.removeEventListener("mousemove",SU)}var wEe={name:"followCursor",defaultValue:!1,fn:function(e){var n=e.reference,r=bU(e.props.triggerTarget||n),i=!1,o=!1,s=!0,a=e.props;function l(){return e.props.followCursor==="initial"&&e.state.isVisible}function d(){r.addEventListener("mousemove",y)}function h(){r.removeEventListener("mousemove",y)}function p(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function y(k){var D=k.target?n.contains(k.target):!0,I=e.props.followCursor,_=k.clientX,L=k.clientY,M=n.getBoundingClientRect(),F=_-M.left,H=L-M.top;(D||!e.props.interactive)&&e.setProps({getReferenceClientRect:function(){var X=n.getBoundingClientRect(),Z=_,te=L;I==="initial"&&(Z=X.left+F,te=X.top+H);var ae=I==="horizontal"?X.top:te,ye=I==="vertical"?X.right:Z,ve=I==="horizontal"?X.bottom:te,se=I==="vertical"?X.left:Z;return{width:ye-se,height:ve-ae,top:ae,right:ye,bottom:ve,left:se}}})}function w(){e.props.followCursor&&(oy.push({instance:e,doc:r}),yEe(r))}function C(){oy=oy.filter(function(k){return k.instance!==e}),oy.filter(function(k){return k.doc===r}).length===0&&xEe(r)}return{onCreate:w,onDestroy:C,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(D,I){var _=I.followCursor;i||_!==void 0&&a.followCursor!==_&&(C(),_?(w(),e.state.isMounted&&!o&&!l()&&d()):(h(),p()))},onMount:function(){e.props.followCursor&&!o&&(s&&(y(WT),s=!1),l()||d())},onTrigger:function(D,I){yO(I)&&(WT={clientX:I.clientX,clientY:I.clientY}),o=I.type==="focus"},onHidden:function(){e.props.followCursor&&(p(),h(),s=!0)}}}};function SEe(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((((n=t.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(r){var i=r.name;return i!==e.name}),[e])})}}var CEe={name:"inlinePositioning",defaultValue:!1,fn:function(e){var n=e.reference;function r(){return!!e.props.inlinePositioning}var i,o=-1,s=!1,a=[],l={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(w){var C=w.state;r()&&(a.indexOf(C.placement)!==-1&&(a=[]),i!==C.placement&&a.indexOf(C.placement)===-1&&(a.push(C.placement),e.setProps({getReferenceClientRect:function(){return d(C.placement)}})),i=C.placement)}};function d(y){return EEe(vU(y),n.getBoundingClientRect(),Lp(n.getClientRects()),o)}function h(y){s=!0,e.setProps(y),s=!1}function p(){s||h(SEe(e.props,l))}return{onCreate:p,onAfterUpdate:p,onTrigger:function(w,C){if(yO(C)){var k=Lp(e.reference.getClientRects()),D=k.find(function(_){return _.left-2<=C.clientX&&_.right+2>=C.clientX&&_.top-2<=C.clientY&&_.bottom+2>=C.clientY}),I=k.indexOf(D);o=I>-1?I:o}},onHidden:function(){o=-1}}}};function EEe(t,e,n,r){if(n.length<2||t===null)return e;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":{var i=n[0],o=n[n.length-1],s=t==="top",a=i.top,l=o.bottom,d=s?i.left:o.left,h=s?i.right:o.right,p=h-d,y=l-a;return{top:a,bottom:l,left:d,right:h,width:p,height:y}}case"left":case"right":{var w=Math.min.apply(Math,n.map(function(H){return H.left})),C=Math.max.apply(Math,n.map(function(H){return H.right})),k=n.filter(function(H){return t==="left"?H.left===w:H.right===C}),D=k[0].top,I=k[k.length-1].bottom,_=w,L=C,M=L-_,F=I-D;return{top:D,bottom:I,left:_,right:L,width:M,height:F}}default:return e}}var AEe={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,r=e.popper;function i(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function o(d){return e.props.sticky===!0||e.props.sticky===d}var s=null,a=null;function l(){var d=o("reference")?i().getBoundingClientRect():null,h=o("popper")?r.getBoundingClientRect():null;(d&&B4(s,d)||h&&B4(a,h))&&e.popperInstance&&e.popperInstance.update(),s=d,a=h,e.state.isMounted&&requestAnimationFrame(l)}return{onMount:function(){e.props.sticky&&l()}}}};function B4(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}Pt.setDefaultProps({render:wU});Pt.setDefaultProps({onShow:t=>{if(!t.props.content)return!1}});function kEe(t,e={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const r=ci(),i=ct(),o=ct({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=ca();let a=null;const l=()=>a||(a=document.createDocumentFragment(),a),d=G=>{let X,Z=fn(G)?G.value:G;return Ya(Z)?(s.value||(s.value=gp({name:n.appName,setup:()=>()=>fn(G)?G.value:G}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(l())),X=()=>l()):typeof Z=="object"?(s.value||(s.value=gp({name:n.appName,setup:()=>()=>Qr(fn(G)?G.value:G)}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(l())),X=()=>l()):X=Z,X},h=G=>{let X={};return fn(G)?X=G.value||{}:$o(G)?X={...G}:X={...G},X.content&&(X.content=d(X.content)),X.triggerTarget&&(X.triggerTarget=fn(X.triggerTarget)?X.triggerTarget.value:X.triggerTarget),(!X.plugins||!Array.isArray(X.plugins))&&(X.plugins=[]),X.plugins=X.plugins.filter(Z=>Z.name!=="vueTippyReactiveState"),X.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){o.value.isEnabled=!0},onMount(){o.value.isMounted=!0},onShow(){o.value.isMounted=!0,o.value.isVisible=!0},onShown(){o.value.isShown=!0},onHide(){o.value.isMounted=!1,o.value.isVisible=!1},onHidden(){o.value.isShown=!1},onUnmounted(){o.value.isMounted=!1},onDestroy(){o.value.isDestroyed=!0}})}),X},p=()=>{i.value&&i.value.setProps(h(e))},y=()=>{!i.value||!e.content||i.value.setContent(d(e.content))},w=G=>{var X;(X=i.value)===null||X===void 0||X.setContent(d(G))},C=G=>{var X;(X=i.value)===null||X===void 0||X.setProps(h(G))},k=()=>{var G;i.value&&(i.value.destroy(),i.value=void 0),a=null,(G=s.value)===null||G===void 0||G.unmount(),s.value=void 0},D=()=>{var G;(G=i.value)===null||G===void 0||G.show()},I=()=>{var G;(G=i.value)===null||G===void 0||G.hide()},_=()=>{var G;(G=i.value)===null||G===void 0||G.disable(),o.value.isEnabled=!1},L=()=>{var G;(G=i.value)===null||G===void 0||G.enable(),o.value.isEnabled=!0},M=()=>{var G;(G=i.value)===null||G===void 0||G.unmount()},F=()=>{if(!t)return;let G=fn(t)?t.value:t;typeof G=="function"&&(G=G()),G&&(i.value=Pt(G,h(e)),G.$tippy=H)},H={tippy:i,refresh:p,refreshContent:y,setContent:w,setProps:C,destroy:k,hide:I,show:D,disable:_,enable:L,unmount:M,mount:F,state:o};return n.mount&&(r?r.isMounted?F():Rr(F):F()),r&&as(()=>{k()}),fn(e)||$o(e)?en(e,p,{immediate:!1}):fn(e.content)&&en(e.content,y,{immediate:!1}),H}function TEe(t){return typeof t=="function"?t():kt(t)}function _Ee(t){var e,n;const r=TEe(t);return(n=(e=r)===null||e===void 0?void 0:e.$el)!==null&&n!==void 0?n:r}const ISt=Jn({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>Pt.defaultProps.appendTo},aria:{default:()=>Pt.defaultProps.aria},delay:{default:()=>Pt.defaultProps.delay},duration:{default:()=>Pt.defaultProps.duration},getReferenceClientRect:{default:()=>Pt.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Pt.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Pt.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Pt.defaultProps.interactive},interactiveBorder:{default:()=>Pt.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Pt.defaultProps.interactiveDebounce},moveTransition:{default:()=>Pt.defaultProps.moveTransition},offset:{default:()=>Pt.defaultProps.offset},onAfterUpdate:{default:()=>Pt.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Pt.defaultProps.onBeforeUpdate},onCreate:{default:()=>Pt.defaultProps.onCreate},onDestroy:{default:()=>Pt.defaultProps.onDestroy},onHidden:{default:()=>Pt.defaultProps.onHidden},onHide:{default:()=>Pt.defaultProps.onHide},onMount:{default:()=>Pt.defaultProps.onMount},onShow:{default:()=>Pt.defaultProps.onShow},onShown:{default:()=>Pt.defaultProps.onShown},onTrigger:{default:()=>Pt.defaultProps.onTrigger},onUntrigger:{default:()=>Pt.defaultProps.onUntrigger},onClickOutside:{default:()=>Pt.defaultProps.onClickOutside},placement:{default:()=>Pt.defaultProps.placement},plugins:{default:()=>Pt.defaultProps.plugins},popperOptions:{default:()=>Pt.defaultProps.popperOptions},render:{default:()=>Pt.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Pt.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Pt.defaultProps.touch},trigger:{default:()=>Pt.defaultProps.trigger},triggerTarget:{default:()=>Pt.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Pt.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Pt.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Pt.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Pt.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Pt.defaultProps.allowHTML},animation:{default:()=>Pt.defaultProps.animation},arrow:{default:()=>Pt.defaultProps.arrow},content:{default:()=>Pt.defaultProps.content},inertia:{default:()=>Pt.defaultProps.inertia},maxWidth:{default:()=>Pt.defaultProps.maxWidth},role:{default:()=>Pt.defaultProps.role},theme:{default:()=>Pt.defaultProps.theme},zIndex:{default:()=>Pt.defaultProps.zIndex}},emits:["state"],setup(t,{slots:e,emit:n,expose:r}){const i=ct(),o=ct(),s=ct(),a=ct(!1),l=()=>{let w={...t};for(const C of["to","tag","contentTag","contentClass"])w.hasOwnProperty(C)&&delete w[C];return w};let d=()=>_Ee(i);t.to&&(typeof Element<"u"&&t.to instanceof Element?d=()=>t.to:t.to==="parent"?d=()=>{let w=i.value;return w||(w=i.value=o.value.parentElement),w}:(typeof t.to=="string"||t.to instanceof String)&&(d=()=>document.querySelector(t.to)));const h=kEe(d,l());let p=e.content;!p&&t.to==="parent"&&(p=e.default),Rr(()=>{a.value=!0,Ir(()=>{p&&h.setContent(()=>s.value)})}),en(h.state,()=>{n("state",kt(h.state))},{immediate:!0,deep:!0}),en(()=>t,()=>{h.setProps(l()),p&&h.setContent(()=>s.value)},{deep:!0});let y=lo({elem:i,contentElem:s,mounted:a,...h});return r(y),()=>{const w=(typeof t.contentTag=="string",t.contentTag),C=p?Qr(w,{ref:s,style:{display:a.value?"inherit":"none"},class:t.contentClass},p(y)):null;if(t.to==="parent"){const I=[];if(!i.value){const _=Qr("span",{ref:o,"data-v-tippy":"",style:{display:"none"}});I.push(_)}return C&&I.push(C),I}const k=e.default?e.default(y):[];if(!t.tag){const I=Qr(k[0],{ref:i,"data-v-tippy":""});return C?[I,C]:I}const D=(typeof t.tag=="string",t.tag);return Qr(D,{ref:i,"data-v-tippy":""},C?[k,C]:k)}}}),DEe=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let z4={};Object.keys(Pt.defaultProps).forEach(t=>{DEe.includes(t)?z4[t]={type:Boolean,default:function(){return Pt.defaultProps[t]}}:z4[t]={default:function(){return Pt.defaultProps[t]}}});const $Ee=Pt.setDefaultProps;$Ee({ignoreAttributes:!0,plugins:[AEe,CEe,wEe,vEe]});const CU=function(){return document.ontouchstart!==null?"click":"touchstart"},C1="__vue_click_away__",EU=function(t,e,n){AU(t);let r=n.context,i=e.value,o=!1;setTimeout(function(){o=!0},0),t[C1]=function(s){if((!t||!t.contains(s.target))&&i&&o&&typeof i=="function")return i.call(r,s)},document.addEventListener(CU(),t[C1],!1)},AU=function(t){document.removeEventListener(CU(),t[C1],!1),delete t[C1]},OEe=function(t,e,n){e.value!==e.oldValue&&EU(t,e,n)},RSt={install:function(t){t.directive("click-away",IEe)}},IEe={mounted:EU,updated:OEe,unmounted:AU};/*!
  * shared v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const UT=typeof window<"u",REe=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Vu=t=>REe?Symbol(t):t,MEe=(t,e,n)=>PEe({l:t,k:e,s:n}),PEe=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),si=t=>typeof t=="number"&&isFinite(t),NEe=t=>wO(t)==="[object Date]",E1=t=>wO(t)==="[object RegExp]",IS=t=>$n(t)&&Object.keys(t).length===0;function LEe(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Hi=Object.assign;function H4(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const FEe=Object.prototype.hasOwnProperty;function xO(t,e){return FEe.call(t,e)}const Ur=Array.isArray,vi=t=>typeof t=="function",Dt=t=>typeof t=="string",Nr=t=>typeof t=="boolean",cr=t=>t!==null&&typeof t=="object",kU=Object.prototype.toString,wO=t=>kU.call(t),$n=t=>wO(t)==="[object Object]",BEe=t=>t==null?"":Ur(t)||$n(t)&&t.toString===kU?JSON.stringify(t,null,2):String(t);/*!
  * message-compiler v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const In={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function RS(t,e,n={}){const{domain:r,messages:i,args:o}=n,s=t,a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=r,a}function zEe(t){throw t}function HEe(t,e,n){return{line:t,column:e,offset:n}}function VT(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const vl=" ",jEe="\r",Ki=`
`,WEe=String.fromCharCode(8232),UEe=String.fromCharCode(8233);function VEe(t){const e=t;let n=0,r=1,i=1,o=0;const s=G=>e[G]===jEe&&e[G+1]===Ki,a=G=>e[G]===Ki,l=G=>e[G]===UEe,d=G=>e[G]===WEe,h=G=>s(G)||a(G)||l(G)||d(G),p=()=>n,y=()=>r,w=()=>i,C=()=>o,k=G=>s(G)||l(G)||d(G)?Ki:e[G],D=()=>k(n),I=()=>k(n+o);function _(){return o=0,h(n)&&(r++,i=0),s(n)&&n++,n++,i++,e[n]}function L(){return s(n+o)&&o++,o++,e[n+o]}function M(){n=0,r=1,i=1,o=0}function F(G=0){o=G}function H(){const G=n+o;for(;G!==n;)_();o=0}return{index:p,line:y,column:w,peekOffset:C,charAt:k,currentChar:D,currentPeek:I,next:_,peek:L,reset:M,resetPeek:F,skipToPeek:H}}const Pc=void 0,j4="'",YEe="tokenizer";function XEe(t,e={}){const n=e.location!==!1,r=VEe(t),i=()=>r.index(),o=()=>HEe(r.line(),r.column(),r.index()),s=o(),a=i(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>l,{onError:h}=e;function p(K,ee,be,...$e){const Ie=d();if(ee.column+=be,ee.offset+=be,h){const He=VT(Ie.startLoc,ee),rt=RS(K,He,{domain:YEe,args:$e});h(rt)}}function y(K,ee,be){K.endLoc=o(),K.currentType=ee;const $e={type:ee};return n&&($e.loc=VT(K.startLoc,K.endLoc)),be!=null&&($e.value=be),$e}const w=K=>y(K,14);function C(K,ee){return K.currentChar()===ee?(K.next(),ee):(p(In.EXPECTED_TOKEN,o(),0,ee),"")}function k(K){let ee="";for(;K.currentPeek()===vl||K.currentPeek()===Ki;)ee+=K.currentPeek(),K.peek();return ee}function D(K){const ee=k(K);return K.skipToPeek(),ee}function I(K){if(K===Pc)return!1;const ee=K.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee===95}function _(K){if(K===Pc)return!1;const ee=K.charCodeAt(0);return ee>=48&&ee<=57}function L(K,ee){const{currentType:be}=ee;if(be!==2)return!1;k(K);const $e=I(K.currentPeek());return K.resetPeek(),$e}function M(K,ee){const{currentType:be}=ee;if(be!==2)return!1;k(K);const $e=K.currentPeek()==="-"?K.peek():K.currentPeek(),Ie=_($e);return K.resetPeek(),Ie}function F(K,ee){const{currentType:be}=ee;if(be!==2)return!1;k(K);const $e=K.currentPeek()===j4;return K.resetPeek(),$e}function H(K,ee){const{currentType:be}=ee;if(be!==8)return!1;k(K);const $e=K.currentPeek()===".";return K.resetPeek(),$e}function G(K,ee){const{currentType:be}=ee;if(be!==9)return!1;k(K);const $e=I(K.currentPeek());return K.resetPeek(),$e}function X(K,ee){const{currentType:be}=ee;if(!(be===8||be===12))return!1;k(K);const $e=K.currentPeek()===":";return K.resetPeek(),$e}function Z(K,ee){const{currentType:be}=ee;if(be!==10)return!1;const $e=()=>{const He=K.currentPeek();return He==="{"?I(K.peek()):He==="@"||He==="%"||He==="|"||He===":"||He==="."||He===vl||!He?!1:He===Ki?(K.peek(),$e()):I(He)},Ie=$e();return K.resetPeek(),Ie}function te(K){k(K);const ee=K.currentPeek()==="|";return K.resetPeek(),ee}function ae(K){const ee=k(K),be=K.currentPeek()==="%"&&K.peek()==="{";return K.resetPeek(),{isModulo:be,hasSpace:ee.length>0}}function ye(K,ee=!0){const be=(Ie=!1,He="",rt=!1)=>{const ze=K.currentPeek();return ze==="{"?He==="%"?!1:Ie:ze==="@"||!ze?He==="%"?!0:Ie:ze==="%"?(K.peek(),be(Ie,"%",!0)):ze==="|"?He==="%"||rt?!0:!(He===vl||He===Ki):ze===vl?(K.peek(),be(!0,vl,rt)):ze===Ki?(K.peek(),be(!0,Ki,rt)):!0},$e=be();return ee&&K.resetPeek(),$e}function ve(K,ee){const be=K.currentChar();return be===Pc?Pc:ee(be)?(K.next(),be):null}function se(K){return ve(K,be=>{const $e=be.charCodeAt(0);return $e>=97&&$e<=122||$e>=65&&$e<=90||$e>=48&&$e<=57||$e===95||$e===36})}function J(K){return ve(K,be=>{const $e=be.charCodeAt(0);return $e>=48&&$e<=57})}function B(K){return ve(K,be=>{const $e=be.charCodeAt(0);return $e>=48&&$e<=57||$e>=65&&$e<=70||$e>=97&&$e<=102})}function V(K){let ee="",be="";for(;ee=J(K);)be+=ee;return be}function q(K){D(K);const ee=K.currentChar();return ee!=="%"&&p(In.EXPECTED_TOKEN,o(),0,ee),K.next(),"%"}function ce(K){let ee="";for(;;){const be=K.currentChar();if(be==="{"||be==="}"||be==="@"||be==="|"||!be)break;if(be==="%")if(ye(K))ee+=be,K.next();else break;else if(be===vl||be===Ki)if(ye(K))ee+=be,K.next();else{if(te(K))break;ee+=be,K.next()}else ee+=be,K.next()}return ee}function fe(K){D(K);let ee="",be="";for(;ee=se(K);)be+=ee;return K.currentChar()===Pc&&p(In.UNTERMINATED_CLOSING_BRACE,o(),0),be}function Ae(K){D(K);let ee="";return K.currentChar()==="-"?(K.next(),ee+=`-${V(K)}`):ee+=V(K),K.currentChar()===Pc&&p(In.UNTERMINATED_CLOSING_BRACE,o(),0),ee}function Se(K){D(K),C(K,"'");let ee="",be="";const $e=He=>He!==j4&&He!==Ki;for(;ee=ve(K,$e);)ee==="\\"?be+=_e(K):be+=ee;const Ie=K.currentChar();return Ie===Ki||Ie===Pc?(p(In.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),Ie===Ki&&(K.next(),C(K,"'")),be):(C(K,"'"),be)}function _e(K){const ee=K.currentChar();switch(ee){case"\\":case"'":return K.next(),`\\${ee}`;case"u":return Be(K,ee,4);case"U":return Be(K,ee,6);default:return p(In.UNKNOWN_ESCAPE_SEQUENCE,o(),0,ee),""}}function Be(K,ee,be){C(K,ee);let $e="";for(let Ie=0;Ie<be;Ie++){const He=B(K);if(!He){p(In.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${ee}${$e}${K.currentChar()}`);break}$e+=He}return`\\${ee}${$e}`}function Q(K){D(K);let ee="",be="";const $e=Ie=>Ie!=="{"&&Ie!=="}"&&Ie!==vl&&Ie!==Ki;for(;ee=ve(K,$e);)be+=ee;return be}function de(K){let ee="",be="";for(;ee=se(K);)be+=ee;return be}function we(K){const ee=(be=!1,$e)=>{const Ie=K.currentChar();return Ie==="{"||Ie==="%"||Ie==="@"||Ie==="|"||!Ie||Ie===vl?$e:Ie===Ki?($e+=Ie,K.next(),ee(be,$e)):($e+=Ie,K.next(),ee(!0,$e))};return ee(!1,"")}function Ce(K){D(K);const ee=C(K,"|");return D(K),ee}function je(K,ee){let be=null;switch(K.currentChar()){case"{":return ee.braceNest>=1&&p(In.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),K.next(),be=y(ee,2,"{"),D(K),ee.braceNest++,be;case"}":return ee.braceNest>0&&ee.currentType===2&&p(In.EMPTY_PLACEHOLDER,o(),0),K.next(),be=y(ee,3,"}"),ee.braceNest--,ee.braceNest>0&&D(K),ee.inLinked&&ee.braceNest===0&&(ee.inLinked=!1),be;case"@":return ee.braceNest>0&&p(In.UNTERMINATED_CLOSING_BRACE,o(),0),be=Ue(K,ee)||w(ee),ee.braceNest=0,be;default:let Ie=!0,He=!0,rt=!0;if(te(K))return ee.braceNest>0&&p(In.UNTERMINATED_CLOSING_BRACE,o(),0),be=y(ee,1,Ce(K)),ee.braceNest=0,ee.inLinked=!1,be;if(ee.braceNest>0&&(ee.currentType===5||ee.currentType===6||ee.currentType===7))return p(In.UNTERMINATED_CLOSING_BRACE,o(),0),ee.braceNest=0,Xe(K,ee);if(Ie=L(K,ee))return be=y(ee,5,fe(K)),D(K),be;if(He=M(K,ee))return be=y(ee,6,Ae(K)),D(K),be;if(rt=F(K,ee))return be=y(ee,7,Se(K)),D(K),be;if(!Ie&&!He&&!rt)return be=y(ee,13,Q(K)),p(In.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,be.value),D(K),be;break}return be}function Ue(K,ee){const{currentType:be}=ee;let $e=null;const Ie=K.currentChar();switch((be===8||be===9||be===12||be===10)&&(Ie===Ki||Ie===vl)&&p(In.INVALID_LINKED_FORMAT,o(),0),Ie){case"@":return K.next(),$e=y(ee,8,"@"),ee.inLinked=!0,$e;case".":return D(K),K.next(),y(ee,9,".");case":":return D(K),K.next(),y(ee,10,":");default:return te(K)?($e=y(ee,1,Ce(K)),ee.braceNest=0,ee.inLinked=!1,$e):H(K,ee)||X(K,ee)?(D(K),Ue(K,ee)):G(K,ee)?(D(K),y(ee,12,de(K))):Z(K,ee)?(D(K),Ie==="{"?je(K,ee)||$e:y(ee,11,we(K))):(be===8&&p(In.INVALID_LINKED_FORMAT,o(),0),ee.braceNest=0,ee.inLinked=!1,Xe(K,ee))}}function Xe(K,ee){let be={type:14};if(ee.braceNest>0)return je(K,ee)||w(ee);if(ee.inLinked)return Ue(K,ee)||w(ee);switch(K.currentChar()){case"{":return je(K,ee)||w(ee);case"}":return p(In.UNBALANCED_CLOSING_BRACE,o(),0),K.next(),y(ee,3,"}");case"@":return Ue(K,ee)||w(ee);default:if(te(K))return be=y(ee,1,Ce(K)),ee.braceNest=0,ee.inLinked=!1,be;const{isModulo:Ie,hasSpace:He}=ae(K);if(Ie)return He?y(ee,0,ce(K)):y(ee,4,q(K));if(ye(K))return y(ee,0,ce(K));break}return be}function qe(){const{currentType:K,offset:ee,startLoc:be,endLoc:$e}=l;return l.lastType=K,l.lastOffset=ee,l.lastStartLoc=be,l.lastEndLoc=$e,l.offset=i(),l.startLoc=o(),r.currentChar()===Pc?y(l,14):Xe(r,l)}return{nextToken:qe,currentOffset:i,currentPosition:o,context:d}}const GEe="parser",qEe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function KEe(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function JEe(t={}){const e=t.location!==!1,{onError:n}=t;function r(I,_,L,M,...F){const H=I.currentPosition();if(H.offset+=M,H.column+=M,n){const G=VT(L,H),X=RS(_,G,{domain:GEe,args:F});n(X)}}function i(I,_,L){const M={type:I,start:_,end:_};return e&&(M.loc={start:L,end:L}),M}function o(I,_,L,M){I.end=_,M&&(I.type=M),e&&I.loc&&(I.loc.end=L)}function s(I,_){const L=I.context(),M=i(3,L.offset,L.startLoc);return M.value=_,o(M,I.currentOffset(),I.currentPosition()),M}function a(I,_){const L=I.context(),{lastOffset:M,lastStartLoc:F}=L,H=i(5,M,F);return H.index=parseInt(_,10),I.nextToken(),o(H,I.currentOffset(),I.currentPosition()),H}function l(I,_){const L=I.context(),{lastOffset:M,lastStartLoc:F}=L,H=i(4,M,F);return H.key=_,I.nextToken(),o(H,I.currentOffset(),I.currentPosition()),H}function d(I,_){const L=I.context(),{lastOffset:M,lastStartLoc:F}=L,H=i(9,M,F);return H.value=_.replace(qEe,KEe),I.nextToken(),o(H,I.currentOffset(),I.currentPosition()),H}function h(I){const _=I.nextToken(),L=I.context(),{lastOffset:M,lastStartLoc:F}=L,H=i(8,M,F);return _.type!==12?(r(I,In.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),H.value="",o(H,M,F),{nextConsumeToken:_,node:H}):(_.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,ka(_)),H.value=_.value||"",o(H,I.currentOffset(),I.currentPosition()),{node:H})}function p(I,_){const L=I.context(),M=i(7,L.offset,L.startLoc);return M.value=_,o(M,I.currentOffset(),I.currentPosition()),M}function y(I){const _=I.context(),L=i(6,_.offset,_.startLoc);let M=I.nextToken();if(M.type===9){const F=h(I);L.modifier=F.node,M=F.nextConsumeToken||I.nextToken()}switch(M.type!==10&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(M)),M=I.nextToken(),M.type===2&&(M=I.nextToken()),M.type){case 11:M.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(M)),L.key=p(I,M.value||"");break;case 5:M.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(M)),L.key=l(I,M.value||"");break;case 6:M.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(M)),L.key=a(I,M.value||"");break;case 7:M.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(M)),L.key=d(I,M.value||"");break;default:r(I,In.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const F=I.context(),H=i(7,F.offset,F.startLoc);return H.value="",o(H,F.offset,F.startLoc),L.key=H,o(L,F.offset,F.startLoc),{nextConsumeToken:M,node:L}}return o(L,I.currentOffset(),I.currentPosition()),{node:L}}function w(I){const _=I.context(),L=_.currentType===1?I.currentOffset():_.offset,M=_.currentType===1?_.endLoc:_.startLoc,F=i(2,L,M);F.items=[];let H=null;do{const Z=H||I.nextToken();switch(H=null,Z.type){case 0:Z.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(Z)),F.items.push(s(I,Z.value||""));break;case 6:Z.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(Z)),F.items.push(a(I,Z.value||""));break;case 5:Z.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(Z)),F.items.push(l(I,Z.value||""));break;case 7:Z.value==null&&r(I,In.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ka(Z)),F.items.push(d(I,Z.value||""));break;case 8:const te=y(I);F.items.push(te.node),H=te.nextConsumeToken||null;break}}while(_.currentType!==14&&_.currentType!==1);const G=_.currentType===1?_.lastOffset:I.currentOffset(),X=_.currentType===1?_.lastEndLoc:I.currentPosition();return o(F,G,X),F}function C(I,_,L,M){const F=I.context();let H=M.items.length===0;const G=i(1,_,L);G.cases=[],G.cases.push(M);do{const X=w(I);H||(H=X.items.length===0),G.cases.push(X)}while(F.currentType!==14);return H&&r(I,In.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),o(G,I.currentOffset(),I.currentPosition()),G}function k(I){const _=I.context(),{offset:L,startLoc:M}=_,F=w(I);return _.currentType===14?F:C(I,L,M,F)}function D(I){const _=XEe(I,Hi({},t)),L=_.context(),M=i(0,L.offset,L.startLoc);return e&&M.loc&&(M.loc.source=I),M.body=k(_),L.currentType!==14&&r(_,In.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,I[L.offset]||""),o(M,_.currentOffset(),_.currentPosition()),M}return{parse:D}}function ka(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function ZEe(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function W4(t,e){for(let n=0;n<t.length;n++)SO(t[n],e)}function SO(t,e){switch(t.type){case 1:W4(t.cases,e),e.helper("plural");break;case 2:W4(t.items,e);break;case 6:SO(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function QEe(t,e={}){const n=ZEe(t);n.helper("normalize"),t.body&&SO(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function eAe(t,e){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=e,s={source:t.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0},a=()=>s;function l(k,D){s.code+=k}function d(k,D=!0){const I=D?i:"";l(o?I+"  ".repeat(k):I)}function h(k=!0){const D=++s.indentLevel;k&&d(D)}function p(k=!0){const D=--s.indentLevel;k&&d(D)}function y(){d(s.indentLevel)}return{context:a,push:l,indent:h,deindent:p,newline:y,helper:k=>`_${k}`,needIndent:()=>s.needIndent}}function tAe(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Fp(t,e.key),e.modifier?(t.push(", "),Fp(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function nAe(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const i=e.items.length;for(let o=0;o<i&&(Fp(t,e.items[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}function rAe(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const i=e.cases.length;for(let o=0;o<i&&(Fp(t,e.cases[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}}function iAe(t,e){e.body?Fp(t,e.body):t.push("null")}function Fp(t,e){const{helper:n}=t;switch(e.type){case 0:iAe(t,e);break;case 1:rAe(t,e);break;case 2:nAe(t,e);break;case 6:tAe(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const oAe=(t,e={})=>{const n=Dt(e.mode)?e.mode:"normal",r=Dt(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
`,s=e.needIndent?e.needIndent:n!=="arrow",a=t.helpers||[],l=eAe(t,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${a.map(p=>`${p}: _${p}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Fp(l,t),l.deindent(s),l.push("}");const{code:d,map:h}=l.context();return{ast:t,code:d,map:h?h.toJSON():void 0}};function sAe(t,e={}){const n=Hi({},e),i=JEe(n).parse(t);return QEe(i,n),oAe(i,n)}/*!
  * core-base v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Yu=[];Yu[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Yu[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Yu[2]={w:[2],i:[3,0],[0]:[3,0]};Yu[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Yu[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Yu[5]={["'"]:[4,0],o:8,l:[5,0]};Yu[6]={['"']:[4,0],o:8,l:[6,0]};const aAe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function lAe(t){return aAe.test(t)}function cAe(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function uAe(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function dAe(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:lAe(e)?cAe(e):"*"+e}function fAe(t){const e=[];let n=-1,r=0,i=0,o,s,a,l,d,h,p;const y=[];y[0]=()=>{s===void 0?s=a:s+=a},y[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},y[2]=()=>{y[0](),i++},y[3]=()=>{if(i>0)i--,r=4,y[0]();else{if(i=0,s===void 0||(s=dAe(s),s===!1))return!1;y[1]()}};function w(){const C=t[n+1];if(r===5&&C==="'"||r===6&&C==='"')return n++,a="\\"+C,y[0](),!0}for(;r!==null;)if(n++,o=t[n],!(o==="\\"&&w())){if(l=uAe(o),p=Yu[r],d=p[l]||p.l||8,d===8||(r=d[0],d[1]!==void 0&&(h=y[d[1]],h&&(a=o,h()===!1))))return;if(r===7)return e}}const U4=new Map;function hAe(t,e){return cr(t)?t[e]:null}function pAe(t,e){if(!cr(t))return null;let n=U4.get(e);if(n||(n=fAe(e),n&&U4.set(e,n)),!n)return null;const r=n.length;let i=t,o=0;for(;o<r;){const s=i[n[o]];if(s===void 0)return null;i=s,o++}return i}const gAe=t=>t,mAe=t=>"",vAe="text",bAe=t=>t.length===0?"":t.join(""),yAe=BEe;function V4(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function xAe(t){const e=si(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(si(t.named.count)||si(t.named.n))?si(t.named.count)?t.named.count:si(t.named.n)?t.named.n:e:e}function wAe(t,e){e.count||(e.count=t),e.n||(e.n=t)}function SAe(t={}){const e=t.locale,n=xAe(t),r=cr(t.pluralRules)&&Dt(e)&&vi(t.pluralRules[e])?t.pluralRules[e]:V4,i=cr(t.pluralRules)&&Dt(e)&&vi(t.pluralRules[e])?V4:void 0,o=I=>I[r(n,I.length,i)],s=t.list||[],a=I=>s[I],l=t.named||{};si(t.pluralIndex)&&wAe(n,l);const d=I=>l[I];function h(I){const _=vi(t.messages)?t.messages(I):cr(t.messages)?t.messages[I]:!1;return _||(t.parent?t.parent.message(I):mAe)}const p=I=>t.modifiers?t.modifiers[I]:gAe,y=$n(t.processor)&&vi(t.processor.normalize)?t.processor.normalize:bAe,w=$n(t.processor)&&vi(t.processor.interpolate)?t.processor.interpolate:yAe,C=$n(t.processor)&&Dt(t.processor.type)?t.processor.type:vAe,D={list:a,named:d,plural:o,linked:(I,..._)=>{const[L,M]=_;let F="text",H="";_.length===1?cr(L)?(H=L.modifier||H,F=L.type||F):Dt(L)&&(H=L||H):_.length===2&&(Dt(L)&&(H=L||H),Dt(M)&&(F=M||F));let G=h(I)(D);return F==="vnode"&&Ur(G)&&H&&(G=G[0]),H?p(H)(G,F):G},message:h,type:C,interpolate:w,normalize:y};return D}function CAe(t,e,n){return[...new Set([n,...Ur(e)?e:cr(e)?Object.keys(e):Dt(e)?[e]:[n]])]}function TU(t,e,n){const r=Dt(n)?n:CO,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;Ur(s);)s=Y4(o,s,e);const a=Ur(e)||!$n(e)?e:e.default?e.default:null;s=Dt(a)?[a]:a,Ur(s)&&Y4(o,s,!1),i.__localeChainCache.set(r,o)}return o}function Y4(t,e,n){let r=!0;for(let i=0;i<e.length&&Nr(r);i++){const o=e[i];Dt(o)&&(r=EAe(t,e[i],n))}return r}function EAe(t,e,n){let r;const i=e.split("-");do{const o=i.join("-");r=AAe(t,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function AAe(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const i=e.replace(/!/g,"");t.push(i),(Ur(n)||$n(n))&&n[i]&&(r=n[i])}return r}const kAe="9.2.2",MS=-1,CO="en-US",X4="",G4=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function TAe(){return{upper:(t,e)=>e==="text"&&Dt(t)?t.toUpperCase():e==="vnode"&&cr(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Dt(t)?t.toLowerCase():e==="vnode"&&cr(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Dt(t)?G4(t):e==="vnode"&&cr(t)&&"__v_isVNode"in t?G4(t.children):t}}let _U;function _Ae(t){_U=t}let DU;function DAe(t){DU=t}let $U;function $Ae(t){$U=t}let q4=0;function OAe(t={}){const e=Dt(t.version)?t.version:kAe,n=Dt(t.locale)?t.locale:CO,r=Ur(t.fallbackLocale)||$n(t.fallbackLocale)||Dt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,i=$n(t.messages)?t.messages:{[n]:{}},o=$n(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},s=$n(t.numberFormats)?t.numberFormats:{[n]:{}},a=Hi({},t.modifiers||{},TAe()),l=t.pluralRules||{},d=vi(t.missing)?t.missing:null,h=Nr(t.missingWarn)||E1(t.missingWarn)?t.missingWarn:!0,p=Nr(t.fallbackWarn)||E1(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,w=!!t.unresolving,C=vi(t.postTranslation)?t.postTranslation:null,k=$n(t.processor)?t.processor:null,D=Nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,I=!!t.escapeParameter,_=vi(t.messageCompiler)?t.messageCompiler:_U,L=vi(t.messageResolver)?t.messageResolver:DU||hAe,M=vi(t.localeFallbacker)?t.localeFallbacker:$U||CAe,F=cr(t.fallbackContext)?t.fallbackContext:void 0,H=vi(t.onWarn)?t.onWarn:LEe,G=t,X=cr(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,Z=cr(G.__numberFormatters)?G.__numberFormatters:new Map,te=cr(G.__meta)?G.__meta:{};q4++;const ae={version:e,cid:q4,locale:n,fallbackLocale:r,messages:i,modifiers:a,pluralRules:l,missing:d,missingWarn:h,fallbackWarn:p,fallbackFormat:y,unresolving:w,postTranslation:C,processor:k,warnHtmlMessage:D,escapeParameter:I,messageCompiler:_,messageResolver:L,localeFallbacker:M,fallbackContext:F,onWarn:H,__meta:te};return ae.datetimeFormats=o,ae.numberFormats=s,ae.__datetimeFormatters=X,ae.__numberFormatters=Z,ae}function EO(t,e,n,r,i){const{missing:o,onWarn:s}=t;if(o!==null){const a=o(t,n,e,i);return Dt(a)?a:e}else return e}function Ug(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const IAe=t=>t;let K4=Object.create(null);function RAe(t,e={}){{const r=(e.onCacheKey||IAe)(t),i=K4[r];if(i)return i;let o=!1;const s=e.onError||zEe;e.onError=d=>{o=!0,s(d)};const{code:a}=sAe(t,e),l=new Function(`return ${a}`)();return o?l:K4[r]=l}}let OU=In.__EXTEND_POINT__;const TA=()=>++OU,Ih={INVALID_ARGUMENT:OU,INVALID_DATE_ARGUMENT:TA(),INVALID_ISO_DATE_ARGUMENT:TA(),__EXTEND_POINT__:TA()};function Rh(t){return RS(t,null,void 0)}const J4=()=>"",Wd=t=>vi(t);function Z4(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:a}=t,[l,d]=YT(...e),h=Nr(d.missingWarn)?d.missingWarn:t.missingWarn,p=Nr(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,y=Nr(d.escapeParameter)?d.escapeParameter:t.escapeParameter,w=!!d.resolvedMessage,C=Dt(d.default)||Nr(d.default)?Nr(d.default)?o?l:()=>l:d.default:n?o?l:()=>l:"",k=n||C!=="",D=Dt(d.locale)?d.locale:t.locale;y&&MAe(d);let[I,_,L]=w?[l,D,a[D]||{}]:IU(t,l,D,s,p,h),M=I,F=l;if(!w&&!(Dt(M)||Wd(M))&&k&&(M=C,F=M),!w&&(!(Dt(M)||Wd(M))||!Dt(_)))return i?MS:l;let H=!1;const G=()=>{H=!0},X=Wd(M)?M:RU(t,l,_,M,F,G);if(H)return M;const Z=LAe(t,_,L,d),te=SAe(Z),ae=PAe(t,X,te);return r?r(ae,l):ae}function MAe(t){Ur(t.list)?t.list=t.list.map(e=>Dt(e)?H4(e):e):cr(t.named)&&Object.keys(t.named).forEach(e=>{Dt(t.named[e])&&(t.named[e]=H4(t.named[e]))})}function IU(t,e,n,r,i,o){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:d}=t,h=d(t,r,n);let p={},y,w=null;const C="translate";for(let k=0;k<h.length&&(y=h[k],p=s[y]||{},(w=l(p,e))===null&&(w=p[e]),!(Dt(w)||vi(w)));k++){const D=EO(t,e,y,o,C);D!==e&&(w=D)}return[w,y,p]}function RU(t,e,n,r,i,o){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Wd(r)){const d=r;return d.locale=d.locale||n,d.key=d.key||e,d}if(s==null){const d=()=>r;return d.locale=n,d.key=e,d}const l=s(r,NAe(t,n,i,r,a,o));return l.locale=n,l.key=e,l.source=r,l}function PAe(t,e,n){return e(n)}function YT(...t){const[e,n,r]=t,i={};if(!Dt(e)&&!si(e)&&!Wd(e))throw Rh(Ih.INVALID_ARGUMENT);const o=si(e)?String(e):(Wd(e),e);return si(n)?i.plural=n:Dt(n)?i.default=n:$n(n)&&!IS(n)?i.named=n:Ur(n)&&(i.list=n),si(r)?i.plural=r:Dt(r)?i.default=r:$n(r)&&Hi(i,r),[o,i]}function NAe(t,e,n,r,i,o){return{warnHtmlMessage:i,onError:s=>{throw o&&o(s),s},onCacheKey:s=>MEe(e,n,s)}}function LAe(t,e,n,r){const{modifiers:i,pluralRules:o,messageResolver:s,fallbackLocale:a,fallbackWarn:l,missingWarn:d,fallbackContext:h}=t,y={locale:e,modifiers:i,pluralRules:o,messages:w=>{let C=s(n,w);if(C==null&&h){const[,,k]=IU(h,w,e,a,l,d);C=s(k,w)}if(Dt(C)){let k=!1;const I=RU(t,w,e,C,w,()=>{k=!0});return k?J4:I}else return Wd(C)?C:J4}};return t.processor&&(y.processor=t.processor),r.list&&(y.list=r.list),r.named&&(y.named=r.named),si(r.plural)&&(y.pluralIndex=r.plural),y}function Q4(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=t,{__datetimeFormatters:a}=t,[l,d,h,p]=XT(...e),y=Nr(h.missingWarn)?h.missingWarn:t.missingWarn;Nr(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const w=!!h.part,C=Dt(h.locale)?h.locale:t.locale,k=s(t,i,C);if(!Dt(l)||l==="")return new Intl.DateTimeFormat(C,p).format(d);let D={},I,_=null;const L="datetime format";for(let H=0;H<k.length&&(I=k[H],D=n[I]||{},_=D[l],!$n(_));H++)EO(t,l,I,y,L);if(!$n(_)||!Dt(I))return r?MS:l;let M=`${I}__${l}`;IS(p)||(M=`${M}__${JSON.stringify(p)}`);let F=a.get(M);return F||(F=new Intl.DateTimeFormat(I,Hi({},_,p)),a.set(M,F)),w?F.formatToParts(d):F.format(d)}const MU=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function XT(...t){const[e,n,r,i]=t,o={};let s={},a;if(Dt(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Rh(Ih.INVALID_ISO_DATE_ARGUMENT);const d=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(d);try{a.toISOString()}catch{throw Rh(Ih.INVALID_ISO_DATE_ARGUMENT)}}else if(NEe(e)){if(isNaN(e.getTime()))throw Rh(Ih.INVALID_DATE_ARGUMENT);a=e}else if(si(e))a=e;else throw Rh(Ih.INVALID_ARGUMENT);return Dt(n)?o.key=n:$n(n)&&Object.keys(n).forEach(l=>{MU.includes(l)?s[l]=n[l]:o[l]=n[l]}),Dt(r)?o.locale=r:$n(r)&&(s=r),$n(i)&&(s=i),[o.key||"",a,o,s]}function eF(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function tF(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=t,{__numberFormatters:a}=t,[l,d,h,p]=GT(...e),y=Nr(h.missingWarn)?h.missingWarn:t.missingWarn;Nr(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const w=!!h.part,C=Dt(h.locale)?h.locale:t.locale,k=s(t,i,C);if(!Dt(l)||l==="")return new Intl.NumberFormat(C,p).format(d);let D={},I,_=null;const L="number format";for(let H=0;H<k.length&&(I=k[H],D=n[I]||{},_=D[l],!$n(_));H++)EO(t,l,I,y,L);if(!$n(_)||!Dt(I))return r?MS:l;let M=`${I}__${l}`;IS(p)||(M=`${M}__${JSON.stringify(p)}`);let F=a.get(M);return F||(F=new Intl.NumberFormat(I,Hi({},_,p)),a.set(M,F)),w?F.formatToParts(d):F.format(d)}const PU=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function GT(...t){const[e,n,r,i]=t,o={};let s={};if(!si(e))throw Rh(Ih.INVALID_ARGUMENT);const a=e;return Dt(n)?o.key=n:$n(n)&&Object.keys(n).forEach(l=>{PU.includes(l)?s[l]=n[l]:o[l]=n[l]}),Dt(r)?o.locale=r:$n(r)&&(s=r),$n(i)&&(s=i),[o.key||"",a,o,s]}function nF(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}/*!
  * vue-i18n v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const FAe="9.2.2";let NU=In.__EXTEND_POINT__;const Co=()=>++NU,ns={UNEXPECTED_RETURN_TYPE:NU,INVALID_ARGUMENT:Co(),MUST_BE_CALL_SETUP_TOP:Co(),NOT_INSLALLED:Co(),NOT_AVAILABLE_IN_LEGACY_MODE:Co(),REQUIRED_VALUE:Co(),INVALID_VALUE:Co(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Co(),NOT_INSLALLED_WITH_PROVIDE:Co(),UNEXPECTED_ERROR:Co(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Co(),BRIDGE_SUPPORT_VUE_2_ONLY:Co(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Co(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Co(),__EXTEND_POINT__:Co()};function Ps(t,...e){return RS(t,null,void 0)}const qT=Vu("__transrateVNode"),KT=Vu("__datetimeParts"),JT=Vu("__numberParts"),BAe=Vu("__setPluralRules");Vu("__intlifyMeta");const zAe=Vu("__injectWithOption");function ZT(t){if(!cr(t))return t;for(const e in t)if(xO(t,e))if(!e.includes("."))cr(t[e])&&ZT(t[e]);else{const n=e.split("."),r=n.length-1;let i=t;for(let o=0;o<r;o++)n[o]in i||(i[n[o]]={}),i=i[n[o]];i[n[r]]=t[e],delete t[e],cr(i[n[r]])&&ZT(i[n[r]])}return t}function LU(t,e){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=e,s=$n(n)?n:Ur(r)?{}:{[t]:{}};if(Ur(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:d}=a;l?(s[l]=s[l]||{},Hm(d,s[l])):Hm(d,s)}else Dt(a)&&Hm(JSON.parse(a),s)}),i==null&&o)for(const a in s)xO(s,a)&&ZT(s[a]);return s}const sy=t=>!cr(t)||Ur(t);function Hm(t,e){if(sy(t)||sy(e))throw Ps(ns.INVALID_VALUE);for(const n in t)xO(t,n)&&(sy(t[n])||sy(e[n])?e[n]=t[n]:Hm(t[n],e[n]))}function HAe(t){return t.type}function jAe(t,e,n){let r=cr(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=LU(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,r[o])});{if(cr(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(cr(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function rF(t){return Nt(Wl,null,t,0)}let iF=0;function oF(t){return(e,n,r,i)=>t(n,r,ci()||void 0,i)}function FU(t={},e){const{__root:n}=t,r=n===void 0;let i=Nr(t.inheritLocale)?t.inheritLocale:!0;const o=ct(n&&i?n.locale.value:Dt(t.locale)?t.locale:CO),s=ct(n&&i?n.fallbackLocale.value:Dt(t.fallbackLocale)||Ur(t.fallbackLocale)||$n(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o.value),a=ct(LU(o.value,t)),l=ct($n(t.datetimeFormats)?t.datetimeFormats:{[o.value]:{}}),d=ct($n(t.numberFormats)?t.numberFormats:{[o.value]:{}});let h=n?n.missingWarn:Nr(t.missingWarn)||E1(t.missingWarn)?t.missingWarn:!0,p=n?n.fallbackWarn:Nr(t.fallbackWarn)||E1(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:Nr(t.fallbackRoot)?t.fallbackRoot:!0,w=!!t.fallbackFormat,C=vi(t.missing)?t.missing:null,k=vi(t.missing)?oF(t.missing):null,D=vi(t.postTranslation)?t.postTranslation:null,I=n?n.warnHtmlMessage:Nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const L=n?n.modifiers:$n(t.modifiers)?t.modifiers:{};let M=t.pluralRules||n&&n.pluralRules,F;F=(()=>{const xe={version:FAe,locale:o.value,fallbackLocale:s.value,messages:a.value,modifiers:L,pluralRules:M,missing:k===null?void 0:k,missingWarn:h,fallbackWarn:p,fallbackFormat:w,unresolving:!0,postTranslation:D===null?void 0:D,warnHtmlMessage:I,escapeParameter:_,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return xe.datetimeFormats=l.value,xe.numberFormats=d.value,xe.__datetimeFormatters=$n(F)?F.__datetimeFormatters:void 0,xe.__numberFormatters=$n(F)?F.__numberFormatters:void 0,OAe(xe)})(),Ug(F,o.value,s.value);function G(){return[o.value,s.value,a.value,l.value,d.value]}const X=lt({get:()=>o.value,set:xe=>{o.value=xe,F.locale=o.value}}),Z=lt({get:()=>s.value,set:xe=>{s.value=xe,F.fallbackLocale=s.value,Ug(F,o.value,xe)}}),te=lt(()=>a.value),ae=lt(()=>l.value),ye=lt(()=>d.value);function ve(){return vi(D)?D:null}function se(xe){D=xe,F.postTranslation=xe}function J(){return C}function B(xe){xe!==null&&(k=oF(xe)),C=xe,F.missing=k}const V=(xe,Re,Ve,it,xt,At)=>{G();let It;if(It=xe(F),si(It)&&It===MS){const[Oe,Ne]=Re();return n&&y?it(n):xt(Oe)}else{if(At(It))return It;throw Ps(ns.UNEXPECTED_RETURN_TYPE)}};function q(...xe){return V(Re=>Reflect.apply(Z4,null,[Re,...xe]),()=>YT(...xe),"translate",Re=>Reflect.apply(Re.t,Re,[...xe]),Re=>Re,Re=>Dt(Re))}function ce(...xe){const[Re,Ve,it]=xe;if(it&&!cr(it))throw Ps(ns.INVALID_ARGUMENT);return q(Re,Ve,Hi({resolvedMessage:!0},it||{}))}function fe(...xe){return V(Re=>Reflect.apply(Q4,null,[Re,...xe]),()=>XT(...xe),"datetime format",Re=>Reflect.apply(Re.d,Re,[...xe]),()=>X4,Re=>Dt(Re))}function Ae(...xe){return V(Re=>Reflect.apply(tF,null,[Re,...xe]),()=>GT(...xe),"number format",Re=>Reflect.apply(Re.n,Re,[...xe]),()=>X4,Re=>Dt(Re))}function Se(xe){return xe.map(Re=>Dt(Re)||si(Re)||Nr(Re)?rF(String(Re)):Re)}const Be={normalize:Se,interpolate:xe=>xe,type:"vnode"};function Q(...xe){return V(Re=>{let Ve;const it=Re;try{it.processor=Be,Ve=Reflect.apply(Z4,null,[it,...xe])}finally{it.processor=null}return Ve},()=>YT(...xe),"translate",Re=>Re[qT](...xe),Re=>[rF(Re)],Re=>Ur(Re))}function de(...xe){return V(Re=>Reflect.apply(tF,null,[Re,...xe]),()=>GT(...xe),"number format",Re=>Re[JT](...xe),()=>[],Re=>Dt(Re)||Ur(Re))}function we(...xe){return V(Re=>Reflect.apply(Q4,null,[Re,...xe]),()=>XT(...xe),"datetime format",Re=>Re[KT](...xe),()=>[],Re=>Dt(Re)||Ur(Re))}function Ce(xe){M=xe,F.pluralRules=M}function je(xe,Re){const Ve=Dt(Re)?Re:o.value,it=qe(Ve);return F.messageResolver(it,xe)!==null}function Ue(xe){let Re=null;const Ve=TU(F,s.value,o.value);for(let it=0;it<Ve.length;it++){const xt=a.value[Ve[it]]||{},At=F.messageResolver(xt,xe);if(At!=null){Re=At;break}}return Re}function Xe(xe){const Re=Ue(xe);return Re??(n?n.tm(xe)||{}:{})}function qe(xe){return a.value[xe]||{}}function K(xe,Re){a.value[xe]=Re,F.messages=a.value}function ee(xe,Re){a.value[xe]=a.value[xe]||{},Hm(Re,a.value[xe]),F.messages=a.value}function be(xe){return l.value[xe]||{}}function $e(xe,Re){l.value[xe]=Re,F.datetimeFormats=l.value,eF(F,xe,Re)}function Ie(xe,Re){l.value[xe]=Hi(l.value[xe]||{},Re),F.datetimeFormats=l.value,eF(F,xe,Re)}function He(xe){return d.value[xe]||{}}function rt(xe,Re){d.value[xe]=Re,F.numberFormats=d.value,nF(F,xe,Re)}function ze(xe,Re){d.value[xe]=Hi(d.value[xe]||{},Re),F.numberFormats=d.value,nF(F,xe,Re)}iF++,n&&UT&&(en(n.locale,xe=>{i&&(o.value=xe,F.locale=xe,Ug(F,o.value,s.value))}),en(n.fallbackLocale,xe=>{i&&(s.value=xe,F.fallbackLocale=xe,Ug(F,o.value,s.value))}));const We={id:iF,locale:X,fallbackLocale:Z,get inheritLocale(){return i},set inheritLocale(xe){i=xe,xe&&n&&(o.value=n.locale.value,s.value=n.fallbackLocale.value,Ug(F,o.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:te,get modifiers(){return L},get pluralRules(){return M||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(xe){h=xe,F.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(xe){p=xe,F.fallbackWarn=p},get fallbackRoot(){return y},set fallbackRoot(xe){y=xe},get fallbackFormat(){return w},set fallbackFormat(xe){w=xe,F.fallbackFormat=w},get warnHtmlMessage(){return I},set warnHtmlMessage(xe){I=xe,F.warnHtmlMessage=xe},get escapeParameter(){return _},set escapeParameter(xe){_=xe,F.escapeParameter=xe},t:q,getLocaleMessage:qe,setLocaleMessage:K,mergeLocaleMessage:ee,getPostTranslationHandler:ve,setPostTranslationHandler:se,getMissingHandler:J,setMissingHandler:B,[BAe]:Ce};return We.datetimeFormats=ae,We.numberFormats=ye,We.rt=ce,We.te=je,We.tm=Xe,We.d=fe,We.n=Ae,We.getDateTimeFormat=be,We.setDateTimeFormat=$e,We.mergeDateTimeFormat=Ie,We.getNumberFormat=He,We.setNumberFormat=rt,We.mergeNumberFormat=ze,We[zAe]=t.__injectWithOption,We[qT]=Q,We[KT]=we,We[JT]=de,We}const AO={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function WAe({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,i)=>r=[...r,...Ur(i.children)?i.children:[i]],[]):e.reduce((n,r)=>{const i=t[r];return i&&(n[r]=i()),n},{})}function BU(t){return Gn}const sF={name:"i18n-t",props:Hi({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>si(t)||!isNaN(t)}},AO),setup(t,e){const{slots:n,attrs:r}=e,i=t.i18n||kO({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(p=>p!=="_"),s={};t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=Dt(t.plural)?+t.plural:t.plural);const a=WAe(e,o),l=i[qT](t.keypath,a,s),d=Hi({},r),h=Dt(t.tag)||cr(t.tag)?t.tag:BU();return Qr(h,d,l)}}};function UAe(t){return Ur(t)&&!Dt(t[0])}function zU(t,e,n,r){const{slots:i,attrs:o}=e;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),Dt(t.format)?s.key=t.format:cr(t.format)&&(Dt(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((y,w)=>n.includes(w)?Hi({},y,{[w]:t.format[w]}):y,{}));const l=r(t.value,s,a);let d=[s.key];Ur(l)?d=l.map((y,w)=>{const C=i[y.type],k=C?C({[y.type]:y.value,index:w,parts:l}):[y.value];return UAe(k)&&(k[0].key=`${y.type}-${w}`),k}):Dt(l)&&(d=[l]);const h=Hi({},o),p=Dt(t.tag)||cr(t.tag)?t.tag:BU();return Qr(p,h,d)}}const aF={name:"i18n-n",props:Hi({value:{type:Number,required:!0},format:{type:[String,Object]}},AO),setup(t,e){const n=t.i18n||kO({useScope:"parent",__useComponent:!0});return zU(t,e,PU,(...r)=>n[JT](...r))}},lF={name:"i18n-d",props:Hi({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},AO),setup(t,e){const n=t.i18n||kO({useScope:"parent",__useComponent:!0});return zU(t,e,MU,(...r)=>n[KT](...r))}};function VAe(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function YAe(t){const e=s=>{const{instance:a,modifiers:l,value:d}=s;if(!a||!a.$)throw Ps(ns.UNEXPECTED_ERROR);const h=VAe(t,a.$),p=cF(d);return[Reflect.apply(h.t,h,[...uF(p)]),h]};return{created:(s,a)=>{const[l,d]=e(a);UT&&t.global===d&&(s.__i18nWatcher=en(d.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=d,s.textContent=l},unmounted:s=>{UT&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const l=s.__composer,d=cF(a);s.textContent=Reflect.apply(l.t,l,[...uF(d)])}},getSSRProps:s=>{const[a]=e(s);return{textContent:a}}}}function cF(t){if(Dt(t))return{path:t};if($n(t)){if(!("path"in t))throw Ps(ns.REQUIRED_VALUE,"path");return t}else throw Ps(ns.INVALID_VALUE)}function uF(t){const{path:e,locale:n,args:r,choice:i,plural:o}=t,s={},a=r||{};return Dt(n)&&(s.locale=n),si(i)&&(s.plural=i),si(o)&&(s.plural=o),[e,a,s]}function XAe(t,e,...n){const r=$n(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Nr(r.globalInstall)?r.globalInstall:!0)&&(t.component(i?"i18n":sF.name,sF),t.component(aF.name,aF),t.component(lF.name,lF)),t.directive("t",YAe(e))}const GAe=Vu("global-vue-i18n");function MSt(t={},e){const n=Nr(t.globalInjection)?t.globalInjection:!0,r=!0,i=new Map,[o,s]=qAe(t),a=Vu("");function l(p){return i.get(p)||null}function d(p,y){i.set(p,y)}function h(p){i.delete(p)}{const p={get mode(){return"composition"},get allowComposition(){return r},async install(y,...w){y.__VUE_I18N_SYMBOL__=a,y.provide(y.__VUE_I18N_SYMBOL__,p),n&&r2e(y,p.global),XAe(y,p,...w);const C=y.unmount;y.unmount=()=>{p.dispose(),C()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:d,__deleteInstance:h};return p}}function kO(t={}){const e=ci();if(e==null)throw Ps(ns.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ps(ns.NOT_INSLALLED);const n=KAe(e),r=ZAe(n),i=HAe(e),o=JAe(t,i);if(o==="global")return jAe(r,t,i),r;if(o==="parent"){let l=QAe(n,e,t.__useComponent);return l==null&&(l=r),l}const s=n;let a=s.__getInstance(e);if(a==null){const l=Hi({},t);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),a=FU(l),e2e(s,e),s.__setInstance(e,a)}return a}function qAe(t,e,n){const r=$w();{const i=r.run(()=>FU(t));if(i==null)throw Ps(ns.UNEXPECTED_ERROR);return[r,i]}}function KAe(t){{const e=gr(t.isCE?GAe:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ps(t.isCE?ns.NOT_INSLALLED_WITH_PROVIDE:ns.UNEXPECTED_ERROR);return e}}function JAe(t,e){return IS(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function ZAe(t){return t.mode==="composition"?t.global:t.global.__composer}function QAe(t,e,n=!1){let r=null;const i=e.root;let o=e.parent;for(;o!=null;){const s=t;if(t.mode==="composition"&&(r=s.__getInstance(o)),r!=null||i===o)break;o=o.parent}return r}function e2e(t,e,n){Rr(()=>{},e),as(()=>{t.__deleteInstance(e)},e)}const t2e=["locale","fallbackLocale","availableLocales"],n2e=["t","rt","d","n","tm"];function r2e(t,e){const n=Object.create(null);t2e.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i)throw Ps(ns.UNEXPECTED_ERROR);const o=fn(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,o)}),t.config.globalProperties.$i18n=n,n2e.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i||!i.value)throw Ps(ns.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,i)})}_Ae(RAe);DAe(pAe);$Ae(TU);function uf(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function po(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function dx(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dx=function(n){return typeof n}:dx=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dx(t)}function tl(t){po(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||dx(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function i2e(t,e){po(2,arguments);var n=tl(t).getTime(),r=uf(e);return new Date(n+r)}var o2e={};function PS(){return o2e}function s2e(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function fx(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fx=function(n){return typeof n}:fx=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fx(t)}function a2e(t){return po(1,arguments),t instanceof Date||fx(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function l2e(t){if(po(1,arguments),!a2e(t)&&typeof t!="number")return!1;var e=tl(t);return!isNaN(Number(e))}function c2e(t,e){po(2,arguments);var n=uf(e);return i2e(t,-n)}var u2e=864e5;function d2e(t){po(1,arguments);var e=tl(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/u2e)+1}function A1(t){po(1,arguments);var e=1,n=tl(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function HU(t){po(1,arguments);var e=tl(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=A1(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=A1(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function f2e(t){po(1,arguments);var e=HU(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=A1(n);return r}var h2e=6048e5;function p2e(t){po(1,arguments);var e=tl(t),n=A1(e).getTime()-f2e(e).getTime();return Math.round(n/h2e)+1}function k1(t,e){var n,r,i,o,s,a,l,d;po(1,arguments);var h=PS(),p=uf((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=tl(t),w=y.getUTCDay(),C=(w<p?7:0)+w-p;return y.setUTCDate(y.getUTCDate()-C),y.setUTCHours(0,0,0,0),y}function jU(t,e){var n,r,i,o,s,a,l,d;po(1,arguments);var h=tl(t),p=h.getUTCFullYear(),y=PS(),w=uf((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:y.firstWeekContainsDate)!==null&&r!==void 0?r:(l=y.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=new Date(0);C.setUTCFullYear(p+1,0,w),C.setUTCHours(0,0,0,0);var k=k1(C,e),D=new Date(0);D.setUTCFullYear(p,0,w),D.setUTCHours(0,0,0,0);var I=k1(D,e);return h.getTime()>=k.getTime()?p+1:h.getTime()>=I.getTime()?p:p-1}function g2e(t,e){var n,r,i,o,s,a,l,d;po(1,arguments);var h=PS(),p=uf((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=jU(t,e),w=new Date(0);w.setUTCFullYear(y,0,p),w.setUTCHours(0,0,0,0);var C=k1(w,e);return C}var m2e=6048e5;function v2e(t,e){po(1,arguments);var n=tl(t),r=k1(n,e).getTime()-g2e(n,e).getTime();return Math.round(r/m2e)+1}function Yn(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var b2e={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return Yn(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):Yn(r+1,2)},d:function(e,n){return Yn(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return Yn(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Yn(e.getUTCHours(),n.length)},m:function(e,n){return Yn(e.getUTCMinutes(),n.length)},s:function(e,n){return Yn(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Yn(o,n.length)}};const Nc=b2e;var ih={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},y2e={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Nc.y(e,n)},Y:function(e,n,r,i){var o=jU(e,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Yn(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Yn(s,n.length)},R:function(e,n){var r=HU(e);return Yn(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return Yn(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Yn(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Yn(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return Nc.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Yn(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var o=v2e(e,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Yn(o,n.length)},I:function(e,n,r){var i=p2e(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Yn(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Nc.d(e,n)},D:function(e,n,r){var i=d2e(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Yn(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Yn(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Yn(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Yn(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),o;switch(i===12?o=ih.noon:i===0?o=ih.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),o;switch(i>=17?o=ih.evening:i>=12?o=ih.afternoon:i>=4?o=ih.morning:o=ih.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Nc.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Nc.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Yn(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Yn(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Nc.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Nc.s(e,n)},S:function(e,n){return Nc.S(e,n)},X:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return fF(s);case"XXXX":case"XX":return wd(s);case"XXXXX":case"XXX":default:return wd(s,":")}},x:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"x":return fF(s);case"xxxx":case"xx":return wd(s);case"xxxxx":case"xxx":default:return wd(s,":")}},O:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+dF(s,":");case"OOOO":default:return"GMT"+wd(s,":")}},z:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+dF(s,":");case"zzzz":default:return"GMT"+wd(s,":")}},t:function(e,n,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return Yn(s,n.length)},T:function(e,n,r,i){var o=i._originalDate||e,s=o.getTime();return Yn(s,n.length)}};function dF(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=e||"";return n+String(i)+s+Yn(o,2)}function fF(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Yn(Math.abs(t)/60,2)}return wd(t,e)}function wd(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=Yn(Math.floor(i/60),2),s=Yn(i%60,2);return r+o+n+s}const x2e=y2e;var hF=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},WU=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},w2e=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return hF(e,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",hF(i,n)).replace("{{time}}",WU(o,n))},S2e={p:WU,P:w2e};const C2e=S2e;var E2e=["D","DD"],A2e=["YY","YYYY"];function k2e(t){return E2e.indexOf(t)!==-1}function T2e(t){return A2e.indexOf(t)!==-1}function pF(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var _2e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},D2e=function(e,n,r){var i,o=_2e[e];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const $2e=D2e;function _A(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var O2e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},I2e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},R2e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M2e={date:_A({formats:O2e,defaultWidth:"full"}),time:_A({formats:I2e,defaultWidth:"full"}),dateTime:_A({formats:R2e,defaultWidth:"full"})};const P2e=M2e;var N2e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L2e=function(e,n,r,i){return N2e[e]};const F2e=L2e;function Vg(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}var d=t.argumentCallback?t.argumentCallback(e):e;return i[d]}}var B2e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},z2e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H2e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},j2e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},W2e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},U2e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},V2e=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Y2e={ordinalNumber:V2e,era:Vg({values:B2e,defaultWidth:"wide"}),quarter:Vg({values:z2e,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Vg({values:H2e,defaultWidth:"wide"}),day:Vg({values:j2e,defaultWidth:"wide"}),dayPeriod:Vg({values:W2e,defaultWidth:"wide",formattingValues:U2e,defaultFormattingWidth:"wide"})};const X2e=Y2e;function Yg(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?q2e(a,function(p){return p.test(s)}):G2e(a,function(p){return p.test(s)}),d;d=t.valueCallback?t.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;var h=e.slice(s.length);return{value:d,rest:h}}}function G2e(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function q2e(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function K2e(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var J2e=/^(\d+)(th|st|nd|rd)?/i,Z2e=/\d+/i,Q2e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eke={any:[/^b/i,/^(a|c)/i]},tke={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nke={any:[/1/i,/2/i,/3/i,/4/i]},rke={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ike={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oke={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ske={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ake={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lke={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cke={ordinalNumber:K2e({matchPattern:J2e,parsePattern:Z2e,valueCallback:function(e){return parseInt(e,10)}}),era:Yg({matchPatterns:Q2e,defaultMatchWidth:"wide",parsePatterns:eke,defaultParseWidth:"any"}),quarter:Yg({matchPatterns:tke,defaultMatchWidth:"wide",parsePatterns:nke,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Yg({matchPatterns:rke,defaultMatchWidth:"wide",parsePatterns:ike,defaultParseWidth:"any"}),day:Yg({matchPatterns:oke,defaultMatchWidth:"wide",parsePatterns:ske,defaultParseWidth:"any"}),dayPeriod:Yg({matchPatterns:ake,defaultMatchWidth:"any",parsePatterns:lke,defaultParseWidth:"any"})};const uke=cke;var dke={code:"en-US",formatDistance:$2e,formatLong:P2e,formatRelative:F2e,localize:X2e,match:uke,options:{weekStartsOn:0,firstWeekContainsDate:1}};const fke=dke;var hke=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pke=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gke=/^'([^]*?)'?$/,mke=/''/g,vke=/[a-zA-Z]/;function PSt(t,e,n){var r,i,o,s,a,l,d,h,p,y,w,C,k,D,I,_,L,M;po(2,arguments);var F=String(e),H=PS(),G=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:H.locale)!==null&&r!==void 0?r:fke,X=uf((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(d=n.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:H.firstWeekContainsDate)!==null&&s!==void 0?s:(p=H.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=uf((w=(C=(k=(D=n==null?void 0:n.weekStartsOn)!==null&&D!==void 0?D:n==null||(I=n.locale)===null||I===void 0||(_=I.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&k!==void 0?k:H.weekStartsOn)!==null&&C!==void 0?C:(L=H.locale)===null||L===void 0||(M=L.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&w!==void 0?w:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!G.localize)throw new RangeError("locale must contain localize property");if(!G.formatLong)throw new RangeError("locale must contain formatLong property");var te=tl(t);if(!l2e(te))throw new RangeError("Invalid time value");var ae=s2e(te),ye=c2e(te,ae),ve={firstWeekContainsDate:X,weekStartsOn:Z,locale:G,_originalDate:te},se=F.match(pke).map(function(J){var B=J[0];if(B==="p"||B==="P"){var V=C2e[B];return V(J,G.formatLong)}return J}).join("").match(hke).map(function(J){if(J==="''")return"'";var B=J[0];if(B==="'")return bke(J);var V=x2e[B];if(V)return!(n!=null&&n.useAdditionalWeekYearTokens)&&T2e(J)&&pF(J,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&k2e(J)&&pF(J,e,String(t)),V(ye,J,G.localize,ve);if(B.match(vke))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return J}).join("");return se}function bke(t){var e=t.match(gke);return e?e[1].replace(mke,"'"):t}const yke="";function lg(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}const cg=function(t,e){const{componentPrefix:n=yke}=e||{};t.component(`${n}${this.name}`,this)},DA={};var w0={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":`url(${wke(this.white,this.grey,this.size)})`}}}};function xke(t,e,n){if(typeof document>"u")return null;const r=document.createElement("canvas");r.width=r.height=n*2;const i=r.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,r.width,r.height),i.fillStyle=e,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null}function wke(t,e,n){const r=`${t},${e},${n}`;if(DA[r])return DA[r];const i=xke(t,e,n);return DA[r]=i,i}function Ske(t,e,n,r,i,o){return Et(),Mn("div",{class:"vc-checkerboard",style:Ei(o.bgStyle)},null,4)}var Cke=".vc-checkerboard{background-size:contain;bottom:0;left:0;position:absolute;right:0;top:0}";lg(Cke);w0.render=Ske;w0.__file="src/components/checkboard/checkboard.vue";w0.install=cg;var NS={name:"Alpha",components:{Checkboard:w0},props:{value:Object,onChange:Function},computed:{colors(){return this.value},gradientColor(){const{rgba:t}=this.colors,e=[t.r,t.g,t.b].join(",");return`linear-gradient(to right, rgba(${e}, 0) 0%, rgba(${e}, 1) 100%)`}},methods:{handleChange(t,e){!e&&t.preventDefault();const{container:n}=this.$refs;if(!n)return;const r=n.clientWidth,i=n.getBoundingClientRect().left+window.pageXOffset,s=(t.pageX||(t.touches?t.touches[0].pageX:0))-i;let a;s<0?a=0:s>r?a=1:a=Math.round(s*100/r)/100,this.colors.a!==a&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a,source:"rgba"})},handleMouseDown(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const Eke={class:"vc-alpha"},Ake={class:"vc-alpha-checkboard-wrap"},kke=Lt("div",{class:"vc-alpha-picker"},null,-1),Tke=[kke];function _ke(t,e,n,r,i,o){const s=Lr("Checkboard");return Et(),Mn("div",Eke,[Lt("div",Ake,[Nt(s)]),Lt("div",{class:"vc-alpha-gradient",style:Ei({background:o.gradientColor})},null,4),Lt("div",{ref:"container",class:"vc-alpha-container",onMousedown:e[0]||(e[0]=(...a)=>o.handleMouseDown&&o.handleMouseDown(...a)),onTouchmove:e[1]||(e[1]=(...a)=>o.handleChange&&o.handleChange(...a)),onTouchstart:e[2]||(e[2]=(...a)=>o.handleChange&&o.handleChange(...a))},[Lt("div",{class:"vc-alpha-pointer",style:Ei({left:`${o.colors.a*100}%`})},Tke,4)],544)])}var Dke=".vc-alpha,.vc-alpha-checkboard-wrap{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-container{cursor:pointer;height:100%;margin:0 3px;position:relative;z-index:2}.vc-alpha-pointer{position:absolute;z-index:2}.vc-alpha-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";lg(Dke);NS.render=_ke;NS.__file="src/components/alpha/alpha.vue";NS.install=cg;function ki(t,e){$ke(t)&&(t="100%");var n=Oke(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function ay(t){return Math.min(1,Math.max(0,t))}function $ke(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Oke(t){return typeof t=="string"&&t.indexOf("%")!==-1}function UU(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ly(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Od(t){return t.length===1?"0"+t:String(t)}function Ike(t,e,n){return{r:ki(t,255)*255,g:ki(e,255)*255,b:ki(n,255)*255}}function gF(t,e,n){t=ki(t,255),e=ki(e,255),n=ki(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,s=0,a=(r+i)/2;if(r===i)s=0,o=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s,l:a}}function $A(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Rke(t,e,n){var r,i,o;if(t=ki(t,360),e=ki(e,100),n=ki(n,100),e===0)i=n,o=n,r=n;else{var s=n<.5?n*(1+e):n+e-n*e,a=2*n-s;r=$A(a,s,t+1/3),i=$A(a,s,t),o=$A(a,s,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function mF(t,e,n){t=ki(t,255),e=ki(e,255),n=ki(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,s=r,a=r-i,l=r===0?0:a/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/a+(e<n?6:0);break;case e:o=(n-t)/a+2;break;case n:o=(t-e)/a+4;break}o/=6}return{h:o,s:l,v:s}}function Mke(t,e,n){t=ki(t,360)*6,e=ki(e,100),n=ki(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6,d=[n,s,o,o,a,n][l],h=[a,n,n,s,o,o][l],p=[o,o,a,n,n,s][l];return{r:d*255,g:h*255,b:p*255}}function vF(t,e,n,r){var i=[Od(Math.round(t).toString(16)),Od(Math.round(e).toString(16)),Od(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Pke(t,e,n,r,i){var o=[Od(Math.round(t).toString(16)),Od(Math.round(e).toString(16)),Od(Math.round(n).toString(16)),Od(Nke(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Nke(t){return Math.round(parseFloat(t)*255).toString(16)}function bF(t){return Vo(t)/255}function Vo(t){return parseInt(t,16)}function Lke(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var QT={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Fke(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof t=="string"&&(t=Hke(t)),typeof t=="object"&&(bl(t.r)&&bl(t.g)&&bl(t.b)?(e=Ike(t.r,t.g,t.b),s=!0,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):bl(t.h)&&bl(t.s)&&bl(t.v)?(r=ly(t.s),i=ly(t.v),e=Mke(t.h,r,i),s=!0,a="hsv"):bl(t.h)&&bl(t.s)&&bl(t.l)&&(r=ly(t.s),o=ly(t.l),e=Rke(t.h,r,o),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=UU(n),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var Bke="[-\\+]?\\d+%?",zke="[-\\+]?\\d*\\.\\d+%?",pu="(?:".concat(zke,")|(?:").concat(Bke,")"),OA="[\\s|\\(]+(".concat(pu,")[,|\\s]+(").concat(pu,")[,|\\s]+(").concat(pu,")\\s*\\)?"),IA="[\\s|\\(]+(".concat(pu,")[,|\\s]+(").concat(pu,")[,|\\s]+(").concat(pu,")[,|\\s]+(").concat(pu,")\\s*\\)?"),Ys={CSS_UNIT:new RegExp(pu),rgb:new RegExp("rgb"+OA),rgba:new RegExp("rgba"+IA),hsl:new RegExp("hsl"+OA),hsla:new RegExp("hsla"+IA),hsv:new RegExp("hsv"+OA),hsva:new RegExp("hsva"+IA),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Hke(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(QT[t])t=QT[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ys.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ys.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ys.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Ys.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ys.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Ys.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ys.hex8.exec(t),n?{r:Vo(n[1]),g:Vo(n[2]),b:Vo(n[3]),a:bF(n[4]),format:e?"name":"hex8"}:(n=Ys.hex6.exec(t),n?{r:Vo(n[1]),g:Vo(n[2]),b:Vo(n[3]),format:e?"name":"hex"}:(n=Ys.hex4.exec(t),n?{r:Vo(n[1]+n[1]),g:Vo(n[2]+n[2]),b:Vo(n[3]+n[3]),a:bF(n[4]+n[4]),format:e?"name":"hex8"}:(n=Ys.hex3.exec(t),n?{r:Vo(n[1]+n[1]),g:Vo(n[2]+n[2]),b:Vo(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function bl(t){return Boolean(Ys.CSS_UNIT.exec(String(t)))}var jke=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=Lke(e)),this.originalInput=e;var i=Fke(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,o=e.r/255,s=e.g/255,a=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=UU(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=mF(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=mF(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=gF(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=gF(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),vF(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),Pke(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(ki(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(ki(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+vF(this.r,this.g,this.b,!1),n=0,r=Object.entries(QT);n<r.length;n++){var i=r[n],o=i[0],s=i[1];if(e===s)return o}return!1},t.prototype.toString=function(e){var n=Boolean(e);e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=ay(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=ay(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=ay(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=ay(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(s)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/e;e--;)s.push(new t({h:r,s:i,v:o})),o=(o+a)%1;return s},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,s=1;s<e;s++)i.push(new t({h:(r+s*o)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function eu(...t){return new jke(...t)}function RA(t,e){const n=t&&t.a;let r;t&&t.hsl?r=eu(t.hsl):t&&t.hex&&t.hex.length>0?r=eu(t.hex):t&&t.hsv?r=eu(t.hsv):t&&t.rgba?r=eu(t.rgba):t&&t.rgb?r=eu(t.rgb):r=eu(t),r&&(r._a===void 0||r._a===null)&&r.setAlpha(n||r.getAlpha());const i=r.toHsl(),o=r.toHsv();return i.s===0&&(o.h=i.h=t.h||t.hsl&&t.hsl.h||e||0),{hsl:i,hex:r.toHexString().toUpperCase(),hex8:r.toHex8String().toUpperCase(),rgba:r.toRgb(),hsv:o,oldHue:t.h||e||i.h,source:t.source,a:r.getAlpha()}}var Wke={model:{prop:"modelValue",event:"update:modelValue"},props:["modelValue"],data(){return{val:RA(this.modelValue)}},computed:{colors:{get(){return this.val},set(t){this.val=t,this.$emit("update:modelValue",t)}}},watch:{modelValue(t){this.val=RA(t)}},methods:{colorChange(t,e){this.oldHue=this.colors.hsl.h,this.colors=RA(t,e||this.oldHue)},isValidHex(t){return eu(t).isValid},simpleCheckForValidColor(t){const e=["r","g","b","a","h","s","l","v"];let n=0,r=0;for(let i=0;i<e.length;i++){const o=e[i];t[o]&&(n++,isNaN(t[o])||r++)}if(n===r)return t},paletteUpperCase(t){return t.map(e=>e.toUpperCase())},isTransparent(t){return eu(t).getAlpha()===0}}},LS={name:"EditableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(t){if(this.max!==void 0&&+t>this.max)this.$refs.input.value=this.max;else return t}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(t){this.handleChange(t.target.value)},handleChange(t){const e={};e[this.label]=t,e.hex===void 0&&e["#"]===void 0?this.$emit("change",e):t.length>5&&this.$emit("change",e)},handleKeyDown(t){let{val:e}=this;const n=Number(e);if(n){const r=this.arrowOffset||1;t.keyCode===38&&(e=n+r,this.handleChange(e),t.preventDefault()),t.keyCode===40&&(e=n-r,this.handleChange(e),t.preventDefault())}}}};const Uke={class:"vc-editable-input"},Vke=["aria-labelledby"],Yke=["id","for"],Xke={class:"vc-input__desc"};function Gke(t,e,n,r,i,o){return Et(),Mn("div",Uke,[oa(Lt("input",{ref:"input","onUpdate:modelValue":e[0]||(e[0]=s=>o.val=s),"aria-labelledby":o.labelId,class:"vc-input__input",onKeydown:e[1]||(e[1]=(...s)=>o.handleKeyDown&&o.handleKeyDown(...s)),onInput:e[2]||(e[2]=(...s)=>o.update&&o.update(...s))},null,40,Vke),[[hp,o.val]]),Lt("span",{id:o.labelId,for:n.label,class:"vc-input__label"},Fl(o.labelSpanText),9,Yke),Lt("span",Xke,Fl(n.desc),1)])}var qke=".vc-editable-input{position:relative}.vc-input__input{border:0;outline:none;padding:0}.vc-input__label{text-transform:capitalize}";lg(qke);LS.render=Gke;LS.__file="src/components/editable-input/editable-input.vue";LS.install=cg;function MA(t,e,n){return e<n?t<e?e:t>n?n:t:t<n?n:t>e?e:t}var FS={name:"Saturation",props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return`${-(this.colors.hsv.v*100)+1+100}%`},pointerLeft(){return`${this.colors.hsv.s*100}%`}},methods:{handleChange(t,e){!e&&t.preventDefault();const{container:n}=this.$refs;if(!n)return;const r=n.clientWidth,i=n.clientHeight,o=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,a=t.pageX||(t.touches?t.touches[0].pageX:0),l=t.pageY||(t.touches?t.touches[0].pageY:0),d=MA(a-o,0,r),h=MA(l-s,0,i),p=d/r,y=MA(-(h/i)+1,0,1);this.onChange({h:this.colors.hsv.h,s:p,v:y,a:this.colors.hsv.a,source:"hsva"})},onChange(t){this.$emit("change",t)},handleMouseDown(t){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(t){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const Kke=Lt("div",{class:"vc-saturation--white"},null,-1),Jke=Lt("div",{class:"vc-saturation--black"},null,-1),Zke=Lt("div",{class:"vc-saturation-circle"},null,-1),Qke=[Zke];function eTe(t,e,n,r,i,o){return Et(),Mn("div",{ref:"container",class:"vc-saturation",style:Ei({background:o.bgColor}),onMousedown:e[0]||(e[0]=(...s)=>o.handleMouseDown&&o.handleMouseDown(...s)),onTouchmove:e[1]||(e[1]=(...s)=>o.handleChange&&o.handleChange(...s)),onTouchstart:e[2]||(e[2]=(...s)=>o.handleChange&&o.handleChange(...s))},[Kke,Jke,Lt("div",{class:"vc-saturation-pointer",style:Ei({top:o.pointerTop,left:o.pointerLeft})},Qke,4)],36)}var tTe=".vc-saturation,.vc-saturation--black,.vc-saturation--white{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}";lg(tTe);FS.render=eTe;FS.__file="src/components/saturation/saturation.vue";FS.install=cg;var BS={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){return this.value},directionClass(){return{"vc-hue--horizontal":this.direction==="horizontal","vc-hue--vertical":this.direction==="vertical"}},pointerTop(){return this.direction==="vertical"?this.colors.hsl.h===0&&this.pullDirection==="right"?0:`${-(this.colors.hsl.h*100/360)+100}%`:0},pointerLeft(){return this.direction==="vertical"?0:this.colors.hsl.h===0&&this.pullDirection==="right"?"100%":`${this.colors.hsl.h*100/360}%`}},watch:{value:{handler(t,e){const{h:n}=t.hsl;n!==0&&n-this.oldHue>0&&(this.pullDirection="right"),n!==0&&n-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=n},deep:!0,immediate:!0}},methods:{handleChange(t,e){!e&&t.preventDefault();const{container:n}=this.$refs;if(!n)return;const r=n.clientWidth,i=n.clientHeight,o=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,a=t.pageX||(t.touches?t.touches[0].pageX:0),l=t.pageY||(t.touches?t.touches[0].pageY:0),d=a-o,h=l-s;let p,y;this.direction==="vertical"?(h<0?p=360:h>i?p=0:(y=-(h*100/i)+100,p=360*y/100),this.colors.hsl.h!==p&&this.$emit("change",{h:p,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(d<0?p=0:d>r?p=360:(y=d*100/r,p=360*y/100),this.colors.hsl.h!==p&&this.$emit("change",{h:p,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(t){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const nTe=["aria-valuenow"],rTe=Lt("div",{class:"vc-hue-picker"},null,-1),iTe=[rTe];function oTe(t,e,n,r,i,o){return Et(),Mn("div",{class:$r(["vc-hue",[o.directionClass]])},[Lt("div",{ref:"container",class:"vc-hue-container",role:"slider","aria-valuenow":o.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",onMousedown:e[0]||(e[0]=(...s)=>o.handleMouseDown&&o.handleMouseDown(...s)),onTouchmove:e[1]||(e[1]=(...s)=>o.handleChange&&o.handleChange(...s)),onTouchstart:e[2]||(e[2]=(...s)=>o.handleChange&&o.handleChange(...s))},[Lt("div",{class:"vc-hue-pointer",style:Ei({top:o.pointerTop,left:o.pointerLeft}),role:"presentation"},iTe,4)],40,nTe)],2)}var sTe=".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";lg(sTe);BS.render=oTe;BS.__file="src/components/hue/hue.vue";BS.install=cg;var TO={name:"Chrome",components:{Saturation:FS,Hue:BS,Alpha:NS,EdIn:LS,Checkboard:w0},mixins:[Wke],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},data(){return{fieldsIndex:0,highlight:!1}},computed:{hsl(){const{h:t,s:e,l:n}=this.colors.hsl;return{h:t.toFixed(),s:`${(e*100).toFixed()}%`,l:`${(n*100).toFixed()}%`}},activeColor(){const{rgba:t}=this.colors;return`rgba(${[t.r,t.g,t.b,t.a].join(",")})`},hasAlpha(){return this.colors.a<1}},methods:{childChange(t){this.colorChange(t)},inputChange(t){if(t){if(t.hex)this.isValidHex(t.hex)&&this.colorChange({hex:t.hex,source:"hex"});else if(t.r||t.g||t.b||t.a)this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"});else if(t.h||t.s||t.l){const e=t.s?t.s.replace("%","")/100:this.colors.hsl.s,n=t.l?t.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:t.h||this.colors.hsl.h,s:e,l:n,source:"hsl"})}}},toggleViews(){if(this.fieldsIndex>=2){this.fieldsIndex=0;return}this.fieldsIndex++},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}};const aTe={class:"vc-chrome-saturation-wrap"},lTe={class:"vc-chrome-body"},cTe={class:"vc-chrome-controls"},uTe={class:"vc-chrome-color-wrap"},dTe=["aria-label"],fTe={class:"vc-chrome-sliders"},hTe={class:"vc-chrome-hue-wrap"},pTe={key:0,class:"vc-chrome-alpha-wrap"},gTe={key:0,class:"vc-chrome-fields-wrap"},mTe={class:"vc-chrome-fields"},vTe={class:"vc-chrome-field"},bTe={class:"vc-chrome-fields"},yTe={class:"vc-chrome-field"},xTe={class:"vc-chrome-field"},wTe={class:"vc-chrome-field"},STe={key:0,class:"vc-chrome-field"},CTe={class:"vc-chrome-fields"},ETe={class:"vc-chrome-field"},ATe={class:"vc-chrome-field"},kTe={class:"vc-chrome-field"},TTe={key:0,class:"vc-chrome-field"},_Te={class:"vc-chrome-toggle-icon"},DTe=Lt("path",{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1),$Te=[DTe],OTe={class:"vc-chrome-toggle-icon-highlight"};function ITe(t,e,n,r,i,o){const s=Lr("Saturation"),a=Lr("Checkboard"),l=Lr("Hue"),d=Lr("Alpha"),h=Lr("EdIn");return Et(),Mn("div",{role:"application","aria-label":"Chrome color picker",class:$r(["vc-chrome",[n.disableAlpha?"vc-chrome__disable-alpha":""]])},[Lt("div",aTe,[Nt(s,{value:t.colors,onChange:o.childChange},null,8,["value","onChange"])]),Lt("div",lTe,[Lt("div",cTe,[Lt("div",uTe,[Lt("div",{"aria-label":`current color is ${t.colors.hex}`,class:"vc-chrome-active-color",style:Ei({background:o.activeColor})},null,12,dTe),n.disableAlpha?fr("v-if",!0):(Et(),kn(a,{key:0}))]),Lt("div",fTe,[Lt("div",hTe,[Nt(l,{value:t.colors,onChange:o.childChange},null,8,["value","onChange"])]),n.disableAlpha?fr("v-if",!0):(Et(),Mn("div",pTe,[Nt(d,{value:t.colors,onChange:o.childChange},null,8,["value","onChange"])]))])]),n.disableFields?fr("v-if",!0):(Et(),Mn("div",gTe,[oa(Lt("div",mTe,[fr(" hex "),Lt("div",vTe,[o.hasAlpha?fr("v-if",!0):(Et(),kn(h,{key:0,label:"hex",value:t.colors.hex,onChange:o.inputChange},null,8,["value","onChange"])),o.hasAlpha?(Et(),kn(h,{key:1,label:"hex",value:t.colors.hex8,onChange:o.inputChange},null,8,["value","onChange"])):fr("v-if",!0)])],512),[[hu,i.fieldsIndex===0]]),oa(Lt("div",bTe,[fr(" rgba "),Lt("div",yTe,[Nt(h,{label:"r",value:t.colors.rgba.r,onChange:o.inputChange},null,8,["value","onChange"])]),Lt("div",xTe,[Nt(h,{label:"g",value:t.colors.rgba.g,onChange:o.inputChange},null,8,["value","onChange"])]),Lt("div",wTe,[Nt(h,{label:"b",value:t.colors.rgba.b,onChange:o.inputChange},null,8,["value","onChange"])]),n.disableAlpha?fr("v-if",!0):(Et(),Mn("div",STe,[Nt(h,{label:"a",value:t.colors.a,"arrow-offset":.01,max:1,onChange:o.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[hu,i.fieldsIndex===1]]),oa(Lt("div",CTe,[fr(" hsla "),Lt("div",ETe,[Nt(h,{label:"h",value:o.hsl.h,onChange:o.inputChange},null,8,["value","onChange"])]),Lt("div",ATe,[Nt(h,{label:"s",value:o.hsl.s,onChange:o.inputChange},null,8,["value","onChange"])]),Lt("div",kTe,[Nt(h,{label:"l",value:o.hsl.l,onChange:o.inputChange},null,8,["value","onChange"])]),n.disableAlpha?fr("v-if",!0):(Et(),Mn("div",TTe,[Nt(h,{label:"a",value:t.colors.a,"arrow-offset":.01,max:1,onChange:o.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[hu,i.fieldsIndex===2]]),fr(" btn "),Lt("div",{class:"vc-chrome-toggle-btn",role:"button","aria-label":"Change another color definition",onClick:e[3]||(e[3]=(...p)=>o.toggleViews&&o.toggleViews(...p))},[Lt("div",_Te,[(Et(),Mn("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24",onMouseover:e[0]||(e[0]=(...p)=>o.showHighlight&&o.showHighlight(...p)),onMouseenter:e[1]||(e[1]=(...p)=>o.showHighlight&&o.showHighlight(...p)),onMouseout:e[2]||(e[2]=(...p)=>o.hideHighlight&&o.hideHighlight(...p))},$Te,32))]),oa(Lt("div",OTe,null,512),[[hu,i.highlight]])]),fr(" btn ")]))])],2)}var RTe=".vc-chrome{background:#fff;background-color:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;font-family:Menlo;width:225px}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{border-radius:15px;height:30px;overflow:hidden;position:relative;width:30px;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{background-size:auto;border-radius:15px;height:30px;width:30px}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;flex:1;margin-left:-6px}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{position:relative;text-align:right;width:32px}.vc-chrome-toggle-icon{cursor:pointer;margin-right:-4px;margin-top:12px;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{background:#eee;border-radius:4px;height:28px;left:12px;position:absolute;top:10px;width:24px}.vc-chrome-hue-wrap{margin-bottom:8px}.vc-chrome-alpha-wrap,.vc-chrome-hue-wrap{height:10px;position:relative}.vc-chrome-alpha-wrap .vc-alpha-gradient,.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{background-color:#f8f8f8;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:12px;transform:translate(-6px,-2px);width:12px}.vc-chrome-body{background-color:#fff;padding:16px 16px 12px}.vc-chrome-saturation-wrap{border-radius:2px 2px 0 0;overflow:hidden;padding-bottom:55%;position:relative;width:100%}.vc-chrome-saturation-wrap .vc-saturation-circle{height:12px;width:12px}.vc-chrome-fields .vc-input__input{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #dadada;color:#333;font-size:11px;height:21px;text-align:center;width:100%}.vc-chrome-fields .vc-input__label{color:#969696;display:block;font-size:11px;line-height:11px;margin-top:12px;text-align:center;text-transform:uppercase}.vc-chrome__disable-alpha .vc-chrome-active-color{height:18px;width:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-bottom:4px;margin-top:4px}";lg(RTe);TO.render=ITe;TO.__file="src/components/chrome/chrome.vue";TO.install=cg;function cy(t){if(typeof t!="string"||!t)throw new Error("expected a non-empty string, got: "+t)}function PA(t){if(typeof t!="number")throw new Error("expected a number, got: "+t)}const MTe=1,PTe=1,$f="emoji",Bp="keyvalue",_O="favorites",NTe="tokens",VU="tokens",LTe="unicode",YU="count",FTe="group",BTe="order",XU="group-order",e_="eTag",T1="url",yF="skinTone",ug="readonly",DO="readwrite",GU="skinUnicodes",zTe="skinUnicodes",HTe="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",jTe="en";function WTe(t,e){const n=new Set,r=[];for(const i of t){const o=e(i);n.has(o)||(n.add(o),r.push(i))}return r}function xF(t){return WTe(t,e=>e.unicode)}function UTe(t){function e(n,r,i){const o=r?t.createObjectStore(n,{keyPath:r}):t.createObjectStore(n);if(i)for(const[s,[a,l]]of Object.entries(i))o.createIndex(s,a,{multiEntry:l});return o}e(Bp),e($f,LTe,{[VU]:[NTe,!0],[XU]:[[FTe,BTe]],[GU]:[zTe,!0]}),e(_O,void 0,{[YU]:[""]})}const t_={},hx={},_1={};function qU(t,e,n){n.onerror=()=>e(n.error),n.onblocked=()=>e(new Error("IDB blocked")),n.onsuccess=()=>t(n.result)}async function VTe(t){const e=await new Promise((n,r)=>{const i=indexedDB.open(t,MTe);t_[t]=i,i.onupgradeneeded=o=>{o.oldVersion<PTe&&UTe(i.result)},qU(n,r,i)});return e.onclose=()=>$O(t),e}function YTe(t){return hx[t]||(hx[t]=VTe(t)),hx[t]}function vc(t,e,n,r){return new Promise((i,o)=>{const s=t.transaction(e,n,{durability:"relaxed"}),a=typeof e=="string"?s.objectStore(e):e.map(d=>s.objectStore(d));let l;r(a,s,d=>{l=d}),s.oncomplete=()=>i(l),s.onerror=()=>o(s.error)})}function $O(t){const e=t_[t],n=e&&e.result;if(n){n.close();const r=_1[t];if(r)for(const i of r)i()}delete t_[t],delete hx[t],delete _1[t]}function XTe(t){return new Promise((e,n)=>{$O(t);const r=indexedDB.deleteDatabase(t);qU(e,n,r)})}function GTe(t,e){let n=_1[t];n||(n=_1[t]=[]),n.push(e)}const qTe=new Set([":D","XD",":'D","O:)",":X",":P",";P","XP",":L",":Z",":j","8D","XO","8)",":B",":O",":S",":'o","Dx","X(","D:",":C",">0)",":3","</3","<3","\\M/",":E","8#"]);function tp(t){return t.split(/[\s_]+/).map(e=>!e.match(/\w/)||qTe.has(e)?e.toLowerCase():e.replace(/[)(:,]/g,"").replace(/’/g,"'").toLowerCase()).filter(Boolean)}const KTe=2;function KU(t){return t.filter(Boolean).map(e=>e.toLowerCase()).filter(e=>e.length>=KTe)}function JTe(t){return t.map(({annotation:n,emoticon:r,group:i,order:o,shortcodes:s,skins:a,tags:l,emoji:d,version:h})=>{const p=[...new Set(KU([...(s||[]).map(tp).flat(),...l.map(tp).flat(),...tp(n),r]))].sort(),y={annotation:n,group:i,order:o,tags:l,tokens:p,unicode:d,version:h};if(r&&(y.emoticon=r),s&&(y.shortcodes=s),a){y.skinTones=[],y.skinUnicodes=[],y.skinVersions=[];for(const{tone:w,emoji:C,version:k}of a)y.skinTones.push(w),y.skinUnicodes.push(C),y.skinVersions.push(k)}return y})}function JU(t,e,n,r){t[e](n).onsuccess=i=>r&&r(i.target.result)}function df(t,e,n){JU(t,"get",e,n)}function ZU(t,e,n){JU(t,"getAll",e,n)}function OO(t){t.commit&&t.commit()}function ZTe(t,e){let n=t[0];for(let r=1;r<t.length;r++){const i=t[r];e(n)>e(i)&&(n=i)}return n}function QU(t,e){const n=ZTe(t,i=>i.length),r=[];for(const i of n)t.some(o=>o.findIndex(s=>e(s)===e(i))===-1)||r.push(i);return r}async function QTe(t){return!await IO(t,Bp,T1)}async function e_e(t,e,n){const[r,i]=await Promise.all([e_,T1].map(o=>IO(t,Bp,o)));return r===n&&i===e}async function t_e(t,e){return vc(t,$f,ug,(r,i,o)=>{let s;const a=()=>{r.getAll(s&&IDBKeyRange.lowerBound(s,!0),50).onsuccess=l=>{const d=l.target.result;for(const h of d)if(s=h.unicode,e(h))return o(h);if(d.length<50)return o();a()}};a()})}async function eV(t,e,n,r){try{const i=JTe(e);await vc(t,[$f,Bp],DO,([o,s],a)=>{let l,d,h=0;function p(){++h===2&&y()}function y(){if(!(l===r&&d===n)){o.clear();for(const w of i)o.put(w);s.put(r,e_),s.put(n,T1),OO(a)}}df(s,e_,w=>{l=w,p()}),df(s,T1,w=>{d=w,p()})})}finally{}}async function n_e(t,e){return vc(t,$f,ug,(n,r,i)=>{const o=IDBKeyRange.bound([e,0],[e+1,0],!1,!0);ZU(n.index(XU),o,i)})}async function tV(t,e){const n=KU(tp(e));return n.length?vc(t,$f,ug,(r,i,o)=>{const s=[],a=()=>{s.length===n.length&&l()},l=()=>{const d=QU(s,h=>h.unicode);o(d.sort((h,p)=>h.order<p.order?-1:1))};for(let d=0;d<n.length;d++){const h=n[d],p=d===n.length-1?IDBKeyRange.bound(h,h+"￿",!1,!0):IDBKeyRange.only(h);ZU(r.index(VU),p,y=>{s.push(y),a()})}}):[]}async function r_e(t,e){const n=await tV(t,e);return n.length?n.filter(r=>(r.shortcodes||[]).map(o=>o.toLowerCase()).includes(e.toLowerCase()))[0]||null:await t_e(t,i=>(i.shortcodes||[]).includes(e.toLowerCase()))||null}async function i_e(t,e){return vc(t,$f,ug,(n,r,i)=>df(n,e,o=>{if(o)return i(o);df(n.index(GU),e,s=>i(s||null))}))}function IO(t,e,n){return vc(t,e,ug,(r,i,o)=>df(r,n,o))}function o_e(t,e,n,r){return vc(t,e,DO,(i,o)=>{i.put(r,n),OO(o)})}function s_e(t,e){return vc(t,_O,DO,(n,r)=>df(n,e,i=>{n.put((i||0)+1,e),OO(r)}))}function a_e(t,e,n){return n===0?[]:vc(t,[_O,$f],ug,([r,i],o,s)=>{const a=[];r.index(YU).openCursor(void 0,"prev").onsuccess=l=>{const d=l.target.result;if(!d)return s(a);function h(w){if(a.push(w),a.length===n)return s(a);d.continue()}const p=d.primaryKey,y=e.byName(p);if(y)return h(y);df(i,p,w=>{if(w)return h(w);d.continue()})}})}const uy="";function l_e(t,e){const n=new Map;for(const i of t){const o=e(i);for(const s of o){let a=n;for(let d=0;d<s.length;d++){const h=s.charAt(d);let p=a.get(h);p||(p=new Map,a.set(h,p)),a=p}let l=a.get(uy);l||(l=[],a.set(uy,l)),l.push(i)}}return(i,o)=>{let s=n;for(let d=0;d<i.length;d++){const h=i.charAt(d),p=s.get(h);if(p)s=p;else return[]}if(o)return s.get(uy)||[];const a=[],l=[s];for(;l.length;){const h=[...l.shift().entries()].sort((p,y)=>p[0]<y[0]?-1:1);for(const[p,y]of h)p===uy?a.push(...y):l.push(y)}return a}}const c_e=["name","url"];function u_e(t){const e=t&&Array.isArray(t),n=e&&t.length&&(!t[0]||c_e.some(r=>!(r in t[0])));if(!e||n)throw new Error("Custom emojis are in the wrong format")}function wF(t){u_e(t);const e=(y,w)=>y.name.toLowerCase()<w.name.toLowerCase()?-1:1,n=t.sort(e),i=l_e(t,y=>[...new Set((y.shortcodes||[]).map(w=>tp(w)).flat())]),o=y=>i(y,!0),s=y=>i(y,!1),a=y=>{const w=tp(y),C=w.map((k,D)=>(D<w.length-1?o:s)(k));return QU(C,k=>k.name).sort(e)},l=new Map,d=new Map;for(const y of t){d.set(y.name.toLowerCase(),y);for(const w of y.shortcodes||[])l.set(w.toLowerCase(),y)}return{all:n,search:a,byShortcode:y=>l.get(y.toLowerCase()),byName:y=>d.get(y.toLowerCase())}}const d_e=typeof wrappedJSObject<"u";function Xg(t){if(!t)return t;if(d_e&&(t=structuredClone(t)),delete t.tokens,t.skinTones){const e=t.skinTones.length;t.skins=Array(e);for(let n=0;n<e;n++)t.skins[n]={tone:t.skinTones[n],unicode:t.skinUnicodes[n],version:t.skinVersions[n]};delete t.skinTones,delete t.skinUnicodes,delete t.skinVersions}return t}function nV(t){t||console.warn("emoji-picker-element is more efficient if the dataSource server exposes an ETag header.")}const f_e=["annotation","emoji","group","order","tags","version"];function h_e(t){if(!t||!Array.isArray(t)||!t[0]||typeof t[0]!="object"||f_e.some(e=>!(e in t[0])))throw new Error("Emoji data is in the wrong format")}function rV(t,e){if(Math.floor(t.status/100)!==2)throw new Error("Failed to fetch: "+e+":  "+t.status)}async function p_e(t){const e=await fetch(t,{method:"HEAD"});rV(e,t);const n=e.headers.get("etag");return nV(n),n}async function n_(t){const e=await fetch(t);rV(e,t);const n=e.headers.get("etag");nV(n);const r=await e.json();return h_e(r),[n,r]}function g_e(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=-1;++i<r;)e+=String.fromCharCode(n[i]);return e}function m_e(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n),i=-1;++i<e;)r[i]=t.charCodeAt(i);return n}async function iV(t){const e=JSON.stringify(t),n=m_e(e),r=await crypto.subtle.digest("SHA-1",n),i=g_e(r);return btoa(i)}async function v_e(t,e){let n,r=await p_e(e);if(!r){const i=await n_(e);r=i[0],n=i[1],r||(r=await iV(n))}await e_e(t,e,r)||(n||(n=(await n_(e))[1]),await eV(t,n,e,r))}async function b_e(t,e){let[n,r]=await n_(e);n||(n=await iV(r)),await eV(t,r,e,n)}class y_e{constructor({dataSource:e=HTe,locale:n=jTe,customEmoji:r=[]}={}){this.dataSource=e,this.locale=n,this._dbName=`emoji-picker-element-${this.locale}`,this._db=void 0,this._lazyUpdate=void 0,this._custom=wF(r),this._clear=this._clear.bind(this),this._ready=this._init()}async _init(){const e=this._db=await YTe(this._dbName);GTe(this._dbName,this._clear);const n=this.dataSource;await QTe(e)?await b_e(e,n):this._lazyUpdate=v_e(e,n)}async ready(){const e=async()=>(this._ready||(this._ready=this._init()),this._ready);await e(),this._db||await e()}async getEmojiByGroup(e){return PA(e),await this.ready(),xF(await n_e(this._db,e)).map(Xg)}async getEmojiBySearchQuery(e){cy(e),await this.ready();const n=this._custom.search(e),r=xF(await tV(this._db,e)).map(Xg);return[...n,...r]}async getEmojiByShortcode(e){cy(e),await this.ready();const n=this._custom.byShortcode(e);return n||Xg(await r_e(this._db,e))}async getEmojiByUnicodeOrName(e){cy(e),await this.ready();const n=this._custom.byName(e);return n||Xg(await i_e(this._db,e))}async getPreferredSkinTone(){return await this.ready(),await IO(this._db,Bp,yF)||0}async setPreferredSkinTone(e){return PA(e),await this.ready(),o_e(this._db,Bp,yF,e)}async incrementFavoriteEmojiCount(e){return cy(e),await this.ready(),s_e(this._db,e)}async getTopFavoriteEmoji(e){return PA(e),await this.ready(),(await a_e(this._db,this._custom,e)).map(Xg)}set customEmoji(e){this._custom=wF(e)}get customEmoji(){return this._custom.all}async _shutdown(){await this.ready();try{await this._lazyUpdate}catch{}}_clear(){this._db=this._ready=this._lazyUpdate=void 0}async close(){await this._shutdown(),await $O(this._dbName)}async delete(){await this._shutdown(),await XTe(this._dbName)}}const r_=[[-1,"✨","custom"],[0,"😀","smileys-emotion"],[1,"👋","people-body"],[3,"🐱","animals-nature"],[4,"🍎","food-drink"],[5,"🏠️","travel-places"],[6,"⚽","activities"],[7,"📝","objects"],[8,"⛔️","symbols"],[9,"🏁","flags"]].map(([t,e,n])=>({id:t,emoji:e,name:n})),NA=r_.slice(1),x_e=2,SF=6,oV=typeof requestIdleCallback=="function"?requestIdleCallback:setTimeout;function CF(t){return t.unicode.includes("‍")}const w_e={"🫨":15.1,"🫠":14,"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},S_e=1e3,C_e="🖐️",E_e=8,A_e=["😊","😒","❤️","👍️","😍","😂","😭","☺️","😔","😩","😏","💕","🙌","😘"],sV='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',k_e=(t,e)=>t<e?-1:t>e?1:0,EF=(t,e)=>{const n=document.createElement("canvas");n.width=n.height=1;const r=n.getContext("2d");return r.textBaseline="top",r.font=`100px ${sV}`,r.fillStyle=e,r.scale(.01,.01),r.fillText(t,0,0),r.getImageData(0,0,1,1).data},T_e=(t,e)=>{const n=[...t].join(","),r=[...e].join(",");return n===r&&!n.startsWith("0,0,0,")};function __e(t){const e=EF(t,"#000"),n=EF(t,"#fff");return e&&n&&T_e(e,n)}function D_e(){const t=Object.entries(w_e);try{for(const[e,n]of t)if(__e(e))return n}catch{}finally{}return t[0][1]}let LA;const FA=()=>(LA||(LA=new Promise(t=>oV(()=>t(D_e())))),LA),i_=new Map,$_e="️",O_e="\uD83C",I_e="‍",R_e=127995,M_e=57339;function P_e(t,e){if(e===0)return t;const n=t.indexOf(I_e);return n!==-1?t.substring(0,n)+String.fromCodePoint(R_e+e-1)+t.substring(n):(t.endsWith($_e)&&(t=t.substring(0,t.length-1)),t+O_e+String.fromCodePoint(M_e+e-1))}function Ta(t){t.preventDefault(),t.stopPropagation()}function BA(t,e,n){return e+=t?-1:1,e<0?e=n.length-1:e>=n.length&&(e=0),e}function aV(t,e){const n=new Set,r=[];for(const i of t){const o=e(i);n.has(o)||(n.add(o),r.push(i))}return r}function N_e(t,e){const n=r=>{const i={};for(const o of r)typeof o.tone=="number"&&o.version<=e&&(i[o.tone]=o.unicode);return i};return t.map(({unicode:r,skins:i,shortcodes:o,url:s,name:a,category:l,annotation:d})=>({unicode:r,name:a,shortcodes:o,url:s,category:l,annotation:d,id:r||a,skins:i&&n(i)}))}const px=requestAnimationFrame;let L_e=typeof ResizeObserver=="function";function F_e(t,e,n){let r;L_e?(r=new ResizeObserver(i=>n(i[0].contentRect.width)),r.observe(t)):px(()=>n(t.getBoundingClientRect().width)),e.addEventListener("abort",()=>{r&&r.disconnect()})}function AF(t){{const e=document.createRange();return e.selectNode(t.firstChild),e.getBoundingClientRect().width}}let zA;function B_e(t,e,n){for(const r of t){const i=n(r),o=AF(i);typeof zA>"u"&&(zA=AF(e));const s=o/1.8<zA;i_.set(r.unicode,s)}}function z_e(t){return aV(t,e=>e)}function H_e(t){t&&(t.scrollTop=0)}function jm(t,e,n){let r=t.get(e);return r||(r=n(),t.set(e,r)),r}function gx(t){return""+t}function j_e(t){const e=document.createElement("template");return e.innerHTML=t,e}const W_e=new WeakMap,U_e=new WeakMap,V_e=Symbol("un-keyed"),Y_e="replaceChildren"in Element.prototype;function X_e(t,e){Y_e?t.replaceChildren(...e):(t.innerHTML="",t.append(...e))}function G_e(t,e){let n=t.firstChild,r=0;for(;n;){if(e[r]!==n)return!0;n=n.nextSibling,r++}return r!==e.length}function q_e(t,e){const{targetNode:n}=e;let{targetParentNode:r}=e,i=!1;r?i=G_e(r,t):(i=!0,e.targetNode=void 0,e.targetParentNode=r=n.parentNode),i&&X_e(r,t)}function K_e(t,e){for(const n of e){const{targetNode:r,currentExpression:i,binding:{expressionIndex:o,attributeName:s,attributeValuePre:a,attributeValuePost:l}}=n,d=t[o];if(i!==d)if(n.currentExpression=d,s)r.setAttribute(s,a+gx(d)+l);else{let h;Array.isArray(d)?q_e(d,n):d instanceof Element?(h=d,r.replaceWith(h)):r.nodeType===Node.TEXT_NODE?r.nodeValue=gx(d):(h=document.createTextNode(gx(d)),r.replaceWith(h)),h&&(n.targetNode=h)}}}function J_e(t){let e="",n=!1,r=!1,i=-1;const o=new Map,s=[];for(let l=0,d=t.length;l<d;l++){const h=t[l];if(e+=h,l===d-1)break;for(let I=0;I<h.length;I++)switch(h.charAt(I)){case"<":{h.charAt(I+1)==="/"?s.pop():(n=!0,s.push(++i));break}case">":{n=!1,r=!1;break}case"=":{r=!0;break}}const p=s[s.length-1],y=jm(o,p,()=>[]);let w,C,k;if(r){const I=/(\S+)="?([^"=]*)$/.exec(h);w=I[1],C=I[2],k=/^[^">]*/.exec(t[l+1])[0]}const D={attributeName:w,attributeValuePre:C,attributeValuePost:k,expressionIndex:l};y.push(D),e+=!n&&!r?`<!--${y.length-1}-->`:""}return{template:j_e(e),elementsToBindings:o}}function Z_e(t,e){let n=t.firstChild;for(;n;){if(n.nodeType===Node.COMMENT_NODE&&n.nodeValue===gx(e))return n;n=n.nextSibling}}function Q_e(t,e){const n=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let i=t,o=-1;do{const s=e.get(++o);if(s)for(let a=0;a<s.length;a++){const l=s[a],d=l.attributeName?i:Z_e(i,a),h={binding:l,targetNode:d,targetParentNode:void 0,currentExpression:void 0};n.push(h)}}while(i=r.nextNode());return n}function eDe(t){const{template:e,elementsToBindings:n}=jm(W_e,t,()=>J_e(t)),r=e.cloneNode(!0).content.firstElementChild,i=Q_e(r,n);return function(s){return K_e(s,i),r}}function tDe(t){const e=jm(U_e,t,()=>new Map);let n=V_e;function r(o,...s){const a=jm(e,o,()=>new Map);return jm(a,n,()=>eDe(o))(s)}function i(o,s,a){return o.map((l,d)=>{const h=n;n=a(l);try{return s(l,d)}finally{n=h}})}return{map:i,html:r}}function nDe(t,e,n,r,i,o,s,a){const{labelWithSkin:l,titleForEmoji:d,unicodeWithSkin:h}=n,{html:p,map:y}=tDe(e);function w(D,I,_){return y(D,(L,M)=>p`<button role="${I?"option":"menuitem"}" aria-selected="${e.searchMode?M===e.activeSearchItem:""}" aria-label="${l(L,e.currentSkinTone)}" title="${d(L)}" class="emoji ${I&&M===e.activeSearchItem?"active":""}" id="${`${_}-${L.id}`}">${L.unicode?h(L,e.currentSkinTone):p`<img class="custom-emoji" src="${L.url}" alt="" loading="lazy">`}</button>`,L=>`${_}-${L.id}`)}const k=(()=>p`<section data-ref="rootElement" class="picker" aria-label="${e.i18n.regionLabel}" style="${e.pickerStyle}"><div class="pad-top"></div><div class="search-row"><div class="search-wrapper"><input id="search" class="search" type="search" role="combobox" enterkeyhint="search" placeholder="${e.i18n.searchLabel}" autocapitalize="none" autocomplete="off" spellcheck="true" aria-expanded="${!!(e.searchMode&&e.currentEmojis.length)}" aria-controls="search-results" aria-describedby="search-description" aria-autocomplete="list" aria-activedescendant="${e.activeSearchItemId?`emo-${e.activeSearchItemId}`:""}" data-ref="searchElement" data-on-input="onSearchInput" data-on-keydown="onSearchKeydown"><label class="sr-only" for="search">${e.i18n.searchLabel}</label> <span id="search-description" class="sr-only">${e.i18n.searchDescription}</span></div><div class="skintone-button-wrapper ${e.skinTonePickerExpandedAfterAnimation?"expanded":""}"><button id="skintone-button" class="emoji ${e.skinTonePickerExpanded?"hide-focus":""}" aria-label="${e.skinToneButtonLabel}" title="${e.skinToneButtonLabel}" aria-describedby="skintone-description" aria-haspopup="listbox" aria-expanded="${e.skinTonePickerExpanded}" aria-controls="skintone-list" data-on-click="onClickSkinToneButton">${e.skinToneButtonText}</button></div><span id="skintone-description" class="sr-only">${e.i18n.skinToneDescription}</span><div data-ref="skinToneDropdown" id="skintone-list" class="skintone-list hide-focus ${e.skinTonePickerExpanded?"":"hidden no-animate"}" style="transform:translateY(${e.skinTonePickerExpanded?0:"calc(-1 * var(--num-skintones) * var(--total-emoji-size))"})" role="listbox" aria-label="${e.i18n.skinTonesLabel}" aria-activedescendant="skintone-${e.activeSkinTone}" aria-hidden="${!e.skinTonePickerExpanded}" tabIndex="-1" data-on-focusout="onSkinToneOptionsFocusOut" data-on-click="onSkinToneOptionsClick" data-on-keydown="onSkinToneOptionsKeydown" data-on-keyup="onSkinToneOptionsKeyup">${y(e.skinTones,(D,I)=>p`<div id="skintone-${I}" class="emoji ${I===e.activeSkinTone?"active":""}" aria-selected="${I===e.activeSkinTone}" role="option" title="${e.i18n.skinTones[I]}" aria-label="${e.i18n.skinTones[I]}">${D}</div>`,D=>D)}</div></div><div class="nav" role="tablist" style="grid-template-columns:repeat(${e.groups.length},1fr)" aria-label="${e.i18n.categoriesLabel}" data-on-keydown="onNavKeydown" data-on-click="onNavClick">${y(e.groups,D=>p`<button role="tab" class="nav-button" aria-controls="tab-${D.id}" aria-label="${e.i18n.categories[D.name]}" aria-selected="${!e.searchMode&&e.currentGroup.id===D.id}" title="${e.i18n.categories[D.name]}" data-group-id="${D.id}"><div class="nav-emoji emoji">${D.emoji}</div></button>`,D=>D.id)}</div><div class="indicator-wrapper"><div class="indicator" style="transform:translateX(${(e.isRtl?-1:1)*e.currentGroupIndex*100}%)"></div></div><div class="message ${e.message?"":"gone"}" role="alert" aria-live="polite">${e.message}</div><div data-ref="tabpanelElement" class="tabpanel ${!e.databaseLoaded||e.message?"gone":""}" role="${e.searchMode?"region":"tabpanel"}" aria-label="${e.searchMode?e.i18n.searchResultsLabel:e.i18n.categories[e.currentGroup.name]}" id="${e.searchMode?"":`tab-${e.currentGroup.id}`}" tabIndex="0" data-on-click="onEmojiClick"><div data-action="calculateEmojiGridStyle">${y(e.currentEmojisWithCategories,(D,I)=>p`<div><div id="menu-label-${I}" class="category ${e.currentEmojisWithCategories.length===1&&e.currentEmojisWithCategories[0].category===""?"gone":""}" aria-hidden="true">${e.searchMode?e.i18n.searchResultsLabel:D.category?D.category:e.currentEmojisWithCategories.length>1?e.i18n.categories.custom:e.i18n.categories[e.currentGroup.name]}</div><div class="emoji-menu" role="${e.searchMode?"listbox":"menu"}" aria-labelledby="menu-label-${I}" id="${e.searchMode?"search-results":""}">${w(D.emojis,e.searchMode,"emo")}</div></div>`,D=>D.category)}</div></div><div class="favorites emoji-menu ${e.message?"gone":""}" role="menu" aria-label="${e.i18n.favoritesLabel}" style="padding-inline-end:${`${e.scrollbarWidth}px`}" data-on-click="onEmojiClick">${w(e.currentFavorites,!1,"fav")}</div><button data-ref="baselineEmoji" aria-hidden="true" tabindex="-1" class="abs-pos hidden emoji baseline-emoji">😀</button></section>`)();if(a){t.appendChild(k);const D=(I,_)=>{for(const L of t.querySelectorAll(`[${I}]`))_(L,L.getAttribute(I))};for(const I of["click","focusout","input","keydown","keyup"])D(`data-on-${I}`,(_,L)=>{_.addEventListener(I,r[L])});D("data-ref",(I,_)=>{o[_]=I}),D("data-action",(I,_)=>{i[_](I)}),s.addEventListener("abort",()=>{t.removeChild(k)})}}const D1=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function rDe(t){let e=!1,n;const r=new Map,i=new Set;let o;const s=()=>{if(e)return;const d=[...i];i.clear();try{for(const h of d)h()}finally{o=!1,i.size&&(o=!0,D1(s))}},a=new Proxy({},{get(d,h){if(n){let p=r.get(h);p||(p=new Set,r.set(h,p)),p.add(n)}return d[h]},set(d,h,p){d[h]=p;const y=r.get(h);if(y){for(const w of y)i.add(w);o||(o=!0,D1(s))}return!0}}),l=d=>{const h=()=>{const p=n;n=h;try{return d()}finally{n=p}};return h()};return t.addEventListener("abort",()=>{e=!0}),{state:a,createEffect:l}}function HA(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}const jA=[],{assign:dy}=Object;function iDe(t,e){const n={},r=new AbortController,i=r.signal,{state:o,createEffect:s}=rDe(i);dy(o,{skinToneEmoji:void 0,i18n:void 0,database:void 0,customEmoji:void 0,customCategorySorting:void 0,emojiVersion:void 0}),dy(o,e),dy(o,{initialLoad:!0,currentEmojis:[],currentEmojisWithCategories:[],rawSearchText:"",searchText:"",searchMode:!1,activeSearchItem:-1,message:void 0,skinTonePickerExpanded:!1,skinTonePickerExpandedAfterAnimation:!1,currentSkinTone:0,activeSkinTone:0,skinToneButtonText:void 0,pickerStyle:void 0,skinToneButtonLabel:"",skinTones:[],currentFavorites:[],defaultFavoriteEmojis:void 0,numColumns:E_e,isRtl:!1,scrollbarWidth:0,currentGroupIndex:0,groups:NA,databaseLoaded:!1,activeSearchItemId:void 0}),s(()=>{o.currentGroup!==o.groups[o.currentGroupIndex]&&(o.currentGroup=o.groups[o.currentGroupIndex])});const a=Q=>{n.rootElement.getRootNode().getElementById(Q).focus()},l=(Q,de)=>{n.rootElement.dispatchEvent(new CustomEvent(Q,{detail:de,bubbles:!0,composed:!0}))},d=(Q,de)=>Q.id===de.id,h=(Q,de)=>{const{category:we,emojis:Ce}=Q,{category:je,emojis:Ue}=de;return we!==je?!1:HA(Ce,Ue,d)},p=Q=>{HA(o.currentEmojis,Q,d)||(o.currentEmojis=Q)},y=Q=>{o.searchMode!==Q&&(o.searchMode=Q)},w=Q=>{HA(o.currentEmojisWithCategories,Q,h)||(o.currentEmojisWithCategories=Q)},C=(Q,de)=>de&&Q.skins&&Q.skins[de]||Q.unicode,I={labelWithSkin:(Q,de)=>z_e([Q.name||C(Q,de),Q.annotation,...Q.shortcodes||jA].filter(Boolean)).join(", "),titleForEmoji:Q=>Q.annotation||(Q.shortcodes||jA).join(", "),unicodeWithSkin:C},_={onClickSkinToneButton:fe,onEmojiClick:V,onNavClick:se,onNavKeydown:J,onSearchKeydown:ve,onSkinToneOptionsClick:ce,onSkinToneOptionsFocusOut:_e,onSkinToneOptionsKeydown:Ae,onSkinToneOptionsKeyup:Se,onSearchInput:Be},L={calculateEmojiGridStyle:H};let M=!0;s(()=>{nDe(t,o,I,_,L,n,i,M),M=!1}),o.emojiVersion||FA().then(Q=>{Q||(o.message=o.i18n.emojiUnsupportedMessage)}),s(()=>{async function Q(){let de=!1;const we=setTimeout(()=>{de=!0,o.message=o.i18n.loadingMessage},S_e);try{await o.database.ready(),o.databaseLoaded=!0}catch(Ce){console.error(Ce),o.message=o.i18n.networkErrorMessage}finally{clearTimeout(we),de&&(de=!1,o.message="")}}o.database&&Q()}),s(()=>{o.pickerStyle=`
      --num-groups: ${o.groups.length}; 
      --indicator-opacity: ${o.searchMode?0:1}; 
      --num-skintones: ${SF};`}),s(()=>{o.customEmoji&&o.database&&F()}),s(()=>{o.customEmoji&&o.customEmoji.length?o.groups!==r_&&(o.groups=r_):o.groups!==NA&&(o.currentGroupIndex&&o.currentGroupIndex--,o.groups=NA)}),s(()=>{async function Q(){o.databaseLoaded&&(o.currentSkinTone=await o.database.getPreferredSkinTone())}Q()}),s(()=>{o.skinTones=Array(SF).fill().map((Q,de)=>P_e(o.skinToneEmoji,de))}),s(()=>{o.skinToneButtonText=o.skinTones[o.currentSkinTone]}),s(()=>{o.skinToneButtonLabel=o.i18n.skinToneLabel.replace("{skinTone}",o.i18n.skinTones[o.currentSkinTone])}),s(()=>{async function Q(){const{database:de}=o,we=(await Promise.all(A_e.map(Ce=>de.getEmojiByUnicodeOrName(Ce)))).filter(Boolean);o.defaultFavoriteEmojis=we}o.databaseLoaded&&Q()});function F(){o.database.customEmoji=o.customEmoji||jA}s(()=>{async function Q(){F();const{database:de,defaultFavoriteEmojis:we,numColumns:Ce}=o,je=await de.getTopFavoriteEmoji(Ce),Ue=await te(aV([...je,...we],Xe=>Xe.unicode||Xe.name).slice(0,Ce));o.currentFavorites=Ue}o.databaseLoaded&&o.defaultFavoriteEmojis&&Q()});function H(Q){F_e(Q,i,de=>{{const we=getComputedStyle(n.rootElement),Ce=parseInt(we.getPropertyValue("--num-columns"),10),je=we.getPropertyValue("direction")==="rtl",Xe=Q.parentElement.getBoundingClientRect().width-de;o.numColumns=Ce,o.scrollbarWidth=Xe,o.isRtl=je}})}s(()=>{async function Q(){const{searchText:de,currentGroup:we,databaseLoaded:Ce,customEmoji:je}=o;if(!Ce)o.currentEmojis=[],o.searchMode=!1;else if(de.length>=x_e){const Ue=await ye(de);o.searchText===de&&(p(Ue),y(!0))}else{const{id:Ue}=we;if(Ue!==-1||je&&je.length){const Xe=await ae(Ue);o.currentGroup.id===Ue&&(p(Xe),y(!1))}}}Q()}),s(()=>{const{currentEmojis:Q,emojiVersion:de}=o,we=Q.filter(Ce=>Ce.unicode).filter(Ce=>CF(Ce)&&!i_.has(Ce.unicode));if(!de&&we.length)p(Q),px(()=>G(we));else{const Ce=de?Q:Q.filter(X);p(Ce),px(()=>H_e(n.tabpanelElement))}});function G(Q){const de=n.rootElement.getRootNode(),we=Ce=>de.getElementById(`emo-${Ce.id}`);B_e(Q,n.baselineEmoji,we),o.currentEmojis=o.currentEmojis}function X(Q){return!Q.unicode||!CF(Q)||i_.get(Q.unicode)}async function Z(Q){const de=o.emojiVersion||await FA();return Q.filter(({version:we})=>!we||we<=de)}async function te(Q){return N_e(Q,o.emojiVersion||await FA())}async function ae(Q){const de=Q===-1?o.customEmoji:await o.database.getEmojiByGroup(Q);return te(await Z(de))}async function ye(Q){return te(await Z(await o.database.getEmojiBySearchQuery(Q)))}s(()=>{}),s(()=>{function Q(){const{searchMode:we,currentEmojis:Ce}=o;if(we)return[{category:"",emojis:Ce}];const je=new Map;for(const Ue of Ce){const Xe=Ue.category||"";let qe=je.get(Xe);qe||(qe=[],je.set(Xe,qe)),qe.push(Ue)}return[...je.entries()].map(([Ue,Xe])=>({category:Ue,emojis:Xe})).sort((Ue,Xe)=>o.customCategorySorting(Ue.category,Xe.category))}const de=Q();w(de)}),s(()=>{o.activeSearchItemId=o.activeSearchItem!==-1&&o.currentEmojis[o.activeSearchItem].id}),s(()=>{const{rawSearchText:Q}=o;oV(()=>{o.searchText=(Q||"").trim(),o.activeSearchItem=-1})});function ve(Q){if(!o.searchMode||!o.currentEmojis.length)return;const de=we=>{Ta(Q),o.activeSearchItem=BA(we,o.activeSearchItem,o.currentEmojis)};switch(Q.key){case"ArrowDown":return de(!1);case"ArrowUp":return de(!0);case"Enter":if(o.activeSearchItem===-1)o.activeSearchItem=0;else return Ta(Q),B(o.currentEmojis[o.activeSearchItem].id)}}function se(Q){const{target:de}=Q,we=de.closest(".nav-button");if(!we)return;const Ce=parseInt(we.dataset.groupId,10);n.searchElement.value="",o.rawSearchText="",o.searchText="",o.activeSearchItem=-1,o.currentGroupIndex=o.groups.findIndex(je=>je.id===Ce)}function J(Q){const{target:de,key:we}=Q,Ce=je=>{je&&(Ta(Q),je.focus())};switch(we){case"ArrowLeft":return Ce(de.previousElementSibling);case"ArrowRight":return Ce(de.nextElementSibling);case"Home":return Ce(de.parentElement.firstElementChild);case"End":return Ce(de.parentElement.lastElementChild)}}async function B(Q){const de=await o.database.getEmojiByUnicodeOrName(Q),we=[...o.currentEmojis,...o.currentFavorites].find(je=>je.id===Q),Ce=we.unicode&&C(we,o.currentSkinTone);await o.database.incrementFavoriteEmojiCount(Q),l("emoji-click",{emoji:de,skinTone:o.currentSkinTone,...Ce&&{unicode:Ce},...we.name&&{name:we.name}})}async function V(Q){const{target:de}=Q;if(!de.classList.contains("emoji"))return;Ta(Q);const we=de.id.substring(4);B(we)}function q(Q){o.currentSkinTone=Q,o.skinTonePickerExpanded=!1,a("skintone-button"),l("skin-tone-change",{skinTone:Q}),o.database.setPreferredSkinTone(Q)}function ce(Q){const{target:{id:de}}=Q,we=de&&de.match(/^skintone-(\d)/);if(!we)return;Ta(Q);const Ce=parseInt(we[1],10);q(Ce)}function fe(Q){o.skinTonePickerExpanded=!o.skinTonePickerExpanded,o.activeSkinTone=o.currentSkinTone,o.skinTonePickerExpanded&&(Ta(Q),px(()=>a("skintone-list")))}s(()=>{o.skinTonePickerExpanded?n.skinToneDropdown.addEventListener("transitionend",()=>{o.skinTonePickerExpandedAfterAnimation=!0},{once:!0}):o.skinTonePickerExpandedAfterAnimation=!1});function Ae(Q){if(!o.skinTonePickerExpanded)return;const de=async we=>{Ta(Q),o.activeSkinTone=we};switch(Q.key){case"ArrowUp":return de(BA(!0,o.activeSkinTone,o.skinTones));case"ArrowDown":return de(BA(!1,o.activeSkinTone,o.skinTones));case"Home":return de(0);case"End":return de(o.skinTones.length-1);case"Enter":return Ta(Q),q(o.activeSkinTone);case"Escape":return Ta(Q),o.skinTonePickerExpanded=!1,a("skintone-button")}}function Se(Q){if(o.skinTonePickerExpanded)switch(Q.key){case" ":return Ta(Q),q(o.activeSkinTone)}}async function _e(Q){const{relatedTarget:de}=Q;(!de||de.id!=="skintone-list")&&(o.skinTonePickerExpanded=!1)}function Be(Q){o.rawSearchText=Q.target.value}return{$set(Q){dy(o,Q)},$destroy(){r.abort()}}}const oDe="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",sDe="en";var aDe={categoriesLabel:"Categories",emojiUnsupportedMessage:"Your browser does not support color emoji.",favoritesLabel:"Favorites",loadingMessage:"Loading…",networkErrorMessage:"Could not load emoji.",regionLabel:"Emoji picker",searchDescription:"When search results are available, press up or down to select and enter to choose.",searchLabel:"Search",searchResultsLabel:"Search results",skinToneDescription:"When expanded, press up or down to select and enter to choose.",skinToneLabel:"Choose a skin tone (currently {skinTone})",skinTonesLabel:"Skin tones",skinTones:["Default","Light","Medium-Light","Medium","Medium-Dark","Dark"],categories:{custom:"Custom","smileys-emotion":"Smileys and emoticons","people-body":"People and body","animals-nature":"Animals and nature","food-drink":"Food and drink","travel-places":"Travel and places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"}};const lV=["customEmoji","customCategorySorting","database","dataSource","i18n","locale","skinToneEmoji","emojiVersion"],lDe=`:host{--emoji-font-family:${sV}}`;class cV extends HTMLElement{constructor(e){super(),this.attachShadow({mode:"open"});const n=document.createElement("style");n.textContent=":host{--emoji-size:1.375rem;--emoji-padding:0.5rem;--category-emoji-size:var(--emoji-size);--category-emoji-padding:var(--emoji-padding);--indicator-height:3px;--input-border-radius:0.5rem;--input-border-size:1px;--input-font-size:1rem;--input-line-height:1.5;--input-padding:0.25rem;--num-columns:8;--outline-size:2px;--border-size:1px;--skintone-border-radius:1rem;--category-font-size:1rem;display:flex;width:min-content;height:400px}:host,:host(.light){color-scheme:light;--background:#fff;--border-color:#e0e0e0;--indicator-color:#385ac1;--input-border-color:#999;--input-font-color:#111;--input-placeholder-color:#999;--outline-color:#999;--category-font-color:#111;--button-active-background:#e6e6e6;--button-hover-background:#d9d9d9}:host(.dark){color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}@media (prefers-color-scheme:dark){:host{color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}}:host([hidden]){display:none}button{margin:0;padding:0;border:0;background:0 0;box-shadow:none;-webkit-tap-highlight-color:transparent}button::-moz-focus-inner{border:0}input{padding:0;margin:0;line-height:1.15;font-family:inherit}input[type=search]{-webkit-appearance:none}:focus{outline:var(--outline-color) solid var(--outline-size);outline-offset:calc(-1*var(--outline-size))}:host([data-js-focus-visible]) :focus:not([data-focus-visible-added]){outline:0}:focus:not(:focus-visible){outline:0}.hide-focus{outline:0}*{box-sizing:border-box}.picker{contain:content;display:flex;flex-direction:column;background:var(--background);border:var(--border-size) solid var(--border-color);width:100%;height:100%;overflow:hidden;--total-emoji-size:calc(var(--emoji-size) + (2 * var(--emoji-padding)));--total-category-emoji-size:calc(var(--category-emoji-size) + (2 * var(--category-emoji-padding)))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.hidden{opacity:0;pointer-events:none}.abs-pos{position:absolute;left:0;top:0}.gone{display:none!important}.skintone-button-wrapper,.skintone-list{background:var(--background);z-index:3}.skintone-button-wrapper.expanded{z-index:1}.skintone-list{position:absolute;inset-inline-end:0;top:0;z-index:2;overflow:visible;border-bottom:var(--border-size) solid var(--border-color);border-radius:0 0 var(--skintone-border-radius) var(--skintone-border-radius);will-change:transform;transition:transform .2s ease-in-out;transform-origin:center 0}@media (prefers-reduced-motion:reduce){.skintone-list{transition-duration:.001s}}@supports not (inset-inline-end:0){.skintone-list{right:0}}.skintone-list.no-animate{transition:none}.tabpanel{overflow-y:auto;-webkit-overflow-scrolling:touch;will-change:transform;min-height:0;flex:1;contain:content}.emoji-menu{display:grid;grid-template-columns:repeat(var(--num-columns),var(--total-emoji-size));justify-content:space-around;align-items:flex-start;width:100%}.category{padding:var(--emoji-padding);font-size:var(--category-font-size);color:var(--category-font-color)}.custom-emoji,.emoji,button.emoji{height:var(--total-emoji-size);width:var(--total-emoji-size)}.emoji,button.emoji{font-size:var(--emoji-size);display:flex;align-items:center;justify-content:center;border-radius:100%;line-height:1;overflow:hidden;font-family:var(--emoji-font-family);cursor:pointer}@media (hover:hover) and (pointer:fine){.emoji:hover,button.emoji:hover{background:var(--button-hover-background)}}.emoji.active,.emoji:active,button.emoji.active,button.emoji:active{background:var(--button-active-background)}.custom-emoji{padding:var(--emoji-padding);object-fit:contain;pointer-events:none;background-repeat:no-repeat;background-position:center center;background-size:var(--emoji-size) var(--emoji-size)}.nav,.nav-button{align-items:center}.nav{display:grid;justify-content:space-between;contain:content}.nav-button{display:flex;justify-content:center}.nav-emoji{font-size:var(--category-emoji-size);width:var(--total-category-emoji-size);height:var(--total-category-emoji-size)}.indicator-wrapper{display:flex;border-bottom:1px solid var(--border-color)}.indicator{width:calc(100%/var(--num-groups));height:var(--indicator-height);opacity:var(--indicator-opacity);background-color:var(--indicator-color);will-change:transform,opacity;transition:opacity .1s linear,transform .25s ease-in-out}@media (prefers-reduced-motion:reduce){.indicator{will-change:opacity;transition:opacity .1s linear}}.pad-top,input.search{background:var(--background);width:100%}.pad-top{height:var(--emoji-padding);z-index:3}.search-row{display:flex;align-items:center;position:relative;padding-inline-start:var(--emoji-padding);padding-bottom:var(--emoji-padding)}.search-wrapper{flex:1;min-width:0}input.search{padding:var(--input-padding);border-radius:var(--input-border-radius);border:var(--input-border-size) solid var(--input-border-color);color:var(--input-font-color);font-size:var(--input-font-size);line-height:var(--input-line-height)}input.search::placeholder{color:var(--input-placeholder-color)}.favorites{display:flex;flex-direction:row;border-top:var(--border-size) solid var(--border-color);contain:content}.message{padding:var(--emoji-padding)}"+lDe,this.shadowRoot.appendChild(n),this._ctx={locale:sDe,dataSource:oDe,skinToneEmoji:C_e,customCategorySorting:k_e,customEmoji:null,i18n:aDe,emojiVersion:null,...e};for(const r of lV)r!=="database"&&Object.prototype.hasOwnProperty.call(this,r)&&(this._ctx[r]=this[r],delete this[r]);this._dbFlush()}connectedCallback(){this._cmp||(this._cmp=iDe(this.shadowRoot,this._ctx))}disconnectedCallback(){D1(()=>{if(!this.isConnected&&this._cmp){this._cmp.$destroy(),this._cmp=void 0;const{database:e}=this._ctx;e.close().catch(n=>console.error(n))}})}static get observedAttributes(){return["locale","data-source","skin-tone-emoji","emoji-version"]}attributeChangedCallback(e,n,r){this._set(e.replace(/-([a-z])/g,(i,o)=>o.toUpperCase()),e==="emoji-version"?parseFloat(r):r)}_set(e,n){this._ctx[e]=n,this._cmp&&this._cmp.$set({[e]:n}),["locale","dataSource"].includes(e)&&this._dbFlush()}_dbCreate(){const{locale:e,dataSource:n,database:r}=this._ctx;(!r||r.locale!==e||r.dataSource!==n)&&this._set("database",new y_e({locale:e,dataSource:n}))}_dbFlush(){D1(()=>this._dbCreate())}}const uV={};for(const t of lV)uV[t]={get(){return t==="database"&&this._dbCreate(),this._ctx[t]},set(e){if(t==="database")throw new Error("database is read-only");this._set(t,e)}};Object.defineProperties(cV.prototype,uV);customElements.get("emoji-picker")||customElements.define("emoji-picker",cV);var o_={},cDe={get exports(){return o_},set exports(t){o_=t}};const RO=Bu(Boe);/**!
 * Sortable 1.14.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function kF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ka(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kF(Object(n),!0).forEach(function(r){uDe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mx(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mx=function(e){return typeof e}:mx=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mx(t)}function uDe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ns(){return Ns=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ns.apply(this,arguments)}function dDe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function fDe(t,e){if(t==null)return{};var n=dDe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hDe(t){return pDe(t)||gDe(t)||mDe(t)||vDe()}function pDe(t){if(Array.isArray(t))return s_(t)}function gDe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mDe(t,e){if(t){if(typeof t=="string")return s_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s_(t,e)}}function s_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var bDe="1.14.0";function Jl(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var bc=Jl(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),S0=Jl(/Edge/i),TF=Jl(/firefox/i),Wm=Jl(/safari/i)&&!Jl(/chrome/i)&&!Jl(/android/i),dV=Jl(/iP(ad|od|hone)/i),yDe=Jl(/chrome/i)&&Jl(/android/i),fV={capture:!1,passive:!1};function mn(t,e,n){t.addEventListener(e,n,!bc&&fV)}function un(t,e,n){t.removeEventListener(e,n,!bc&&fV)}function $1(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function xDe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Js(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&$1(t,e):$1(t,e))||r&&t===n)return t;if(t===n)break}while(t=xDe(t))}return null}var _F=/\s+/g;function wr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(_F," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(_F," ")}}function _t(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Ud(t,e){var n="";if(typeof t=="string")n=t;else do{var r=_t(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function hV(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Va(){var t=document.scrollingElement;return t||document.documentElement}function yr(t,e,n,r,i){if(!(!t.getBoundingClientRect&&t!==window)){var o,s,a,l,d,h,p;if(t!==window&&t.parentNode&&t!==Va()?(o=t.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,d=o.right,h=o.height,p=o.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!bc))do if(i&&i.getBoundingClientRect&&(_t(i,"transform")!=="none"||n&&_t(i,"position")!=="static")){var y=i.getBoundingClientRect();s-=y.top+parseInt(_t(i,"border-top-width")),a-=y.left+parseInt(_t(i,"border-left-width")),l=s+o.height,d=a+o.width;break}while(i=i.parentNode);if(r&&t!==window){var w=Ud(i||t),C=w&&w.a,k=w&&w.d;w&&(s/=k,a/=C,p/=C,h/=k,l=s+h,d=a+p)}return{top:s,left:a,bottom:l,right:d,width:p,height:h}}}function DF(t,e,n){for(var r=gu(t,!0),i=yr(t)[e];r;){var o=yr(r)[n],s=void 0;if(n==="top"||n==="left"?s=i>=o:s=i<=o,!s)return r;if(r===Va())break;r=gu(r,!1)}return!1}function zp(t,e,n,r){for(var i=0,o=0,s=t.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==Yt.ghost&&(r||s[o]!==Yt.dragged)&&Js(s[o],n.draggable,t,!1)){if(i===e)return s[o];i++}o++}return null}function MO(t,e){for(var n=t.lastElementChild;n&&(n===Yt.ghost||_t(n,"display")==="none"||e&&!$1(n,e));)n=n.previousElementSibling;return n||null}function Dr(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Yt.clone&&(!e||$1(t,e))&&n++;return n}function $F(t){var e=0,n=0,r=Va();if(t)do{var i=Ud(t),o=i.a,s=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*s}while(t!==r&&(t=t.parentNode));return[e,n]}function wDe(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function gu(t,e){if(!t||!t.getBoundingClientRect)return Va();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=_t(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Va();if(r||e)return n;r=!0}}while(n=n.parentNode);return Va()}function SDe(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function WA(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Um;function pV(t,e){return function(){if(!Um){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Um=setTimeout(function(){Um=void 0},e)}}}function CDe(){clearTimeout(Um),Um=void 0}function gV(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function PO(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function OF(t,e){_t(t,"position","absolute"),_t(t,"top",e.top),_t(t,"left",e.left),_t(t,"width",e.width),_t(t,"height",e.height)}function UA(t){_t(t,"position",""),_t(t,"top",""),_t(t,"left",""),_t(t,"width",""),_t(t,"height","")}var Li="Sortable"+new Date().getTime();function EDe(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(_t(i,"display")==="none"||i===Yt.ghost)){t.push({target:i,rect:yr(i)});var o=Ka({},t[t.length-1].rect);if(i.thisAnimationDuration){var s=Ud(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(wDe(t,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var o=!1,s=0;t.forEach(function(a){var l=0,d=a.target,h=d.fromRect,p=yr(d),y=d.prevFromRect,w=d.prevToRect,C=a.rect,k=Ud(d,!0);k&&(p.top-=k.f,p.left-=k.e),d.toRect=p,d.thisAnimationDuration&&WA(y,p)&&!WA(h,p)&&(C.top-p.top)/(C.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(l=kDe(C,y,w,i.options)),WA(p,h)||(d.prevFromRect=h,d.prevToRect=p,l||(l=i.options.animation),i.animate(d,C,p,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(e),o?e=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),t=[]},animate:function(r,i,o,s){if(s){_t(r,"transition",""),_t(r,"transform","");var a=Ud(this.el),l=a&&a.a,d=a&&a.d,h=(i.left-o.left)/(l||1),p=(i.top-o.top)/(d||1);r.animatingX=!!h,r.animatingY=!!p,_t(r,"transform","translate3d("+h+"px,"+p+"px,0)"),this.forRepaintDummy=ADe(r),_t(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),_t(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){_t(r,"transition",""),_t(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function ADe(t){return t.offsetWidth}function kDe(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var oh=[],VA={initializeByDefault:!0},C0={mount:function(e){for(var n in VA)VA.hasOwnProperty(n)&&!(n in e)&&(e[n]=VA[n]);oh.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),oh.push(e)},pluginEvent:function(e,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=e+"Global";oh.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][o]&&n[s.pluginName][o](Ka({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][e]&&n[s.pluginName][e](Ka({sortable:n},r)))})},initializePlugins:function(e,n,r,i){oh.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var d=new a(e,n,e.options);d.sortable=e,d.options=e.options,e[l]=d,Ns(r,d.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var s=this.modifyOption(e,o,e.options[o]);typeof s<"u"&&(e.options[o]=s)}},getEventProperties:function(e,n){var r={};return oh.forEach(function(i){typeof i.eventProperties=="function"&&Ns(r,i.eventProperties.call(n[i.pluginName],e))}),r},modifyOption:function(e,n,r){var i;return oh.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(e[o.pluginName],r))}),i}};function dm(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,a=t.fromEl,l=t.oldIndex,d=t.newIndex,h=t.oldDraggableIndex,p=t.newDraggableIndex,y=t.originalEvent,w=t.putSortable,C=t.extraEventProperties;if(e=e||n&&n[Li],!!e){var k,D=e.options,I="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!bc&&!S0?k=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent(r,!0,!0)),k.to=s||n,k.from=a||n,k.item=i||n,k.clone=o,k.oldIndex=l,k.newIndex=d,k.oldDraggableIndex=h,k.newDraggableIndex=p,k.originalEvent=y,k.pullMode=w?w.lastPutMode:void 0;var _=Ka(Ka({},C),C0.getEventProperties(r,e));for(var L in _)k[L]=_[L];n&&n.dispatchEvent(k),D[I]&&D[I].call(e,k)}}var TDe=["evt"],Eo=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=fDe(r,TDe);C0.pluginEvent.bind(Yt)(e,n,Ka({dragEl:gt,parentEl:Tr,ghostEl:rn,rootEl:br,nextEl:Sd,lastDownEl:vx,cloneEl:_r,cloneHidden:cu,dragStarted:fm,putSortable:gi,activeSortable:Yt.active,originalEvent:i,oldIndex:Mh,oldDraggableIndex:Vm,newIndex:Xo,newDraggableIndex:tu,hideGhostForTarget:yV,unhideGhostForTarget:xV,cloneNowHidden:function(){cu=!0},cloneNowShown:function(){cu=!1},dispatchSortableEvent:function(a){Gi({sortable:n,name:a,originalEvent:i})}},o))};function Gi(t){dm(Ka({putSortable:gi,cloneEl:_r,targetEl:gt,rootEl:br,oldIndex:Mh,oldDraggableIndex:Vm,newIndex:Xo,newDraggableIndex:tu},t))}var gt,Tr,rn,br,Sd,vx,_r,cu,Mh,Xo,Vm,tu,fy,gi,Sh=!1,O1=!1,I1=[],hd,Ws,YA,XA,IF,RF,fm,sh,Ym,Xm=!1,hy=!1,bx,Oi,GA=[],a_=!1,R1=[],zS=typeof document<"u",py=dV,MF=S0||bc?"cssFloat":"float",_De=zS&&!yDe&&!dV&&"draggable"in document.createElement("div"),mV=function(){if(zS){if(bc)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),vV=function(e,n){var r=_t(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=zp(e,0,n),s=zp(e,1,n),a=o&&_t(o),l=s&&_t(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+yr(o).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+yr(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var p=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===p)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=i&&r[MF]==="none"||s&&r[MF]==="none"&&d+h>i)?"vertical":"horizontal"},DDe=function(e,n,r){var i=r?e.left:e.top,o=r?e.right:e.bottom,s=r?e.width:e.height,a=r?n.left:n.top,l=r?n.right:n.bottom,d=r?n.width:n.height;return i===a||o===l||i+s/2===a+d/2},$De=function(e,n){var r;return I1.some(function(i){var o=i[Li].options.emptyInsertThreshold;if(!(!o||MO(i))){var s=yr(i),a=e>=s.left-o&&e<=s.right+o,l=n>=s.top-o&&n<=s.bottom+o;if(a&&l)return r=i}}),r},bV=function(e){function n(o,s){return function(a,l,d,h){var p=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||p))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,d,h),s)(a,l,d,h);var y=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===y||o.join&&o.indexOf(y)>-1}}var r={},i=e.group;(!i||mx(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,e.group=r},yV=function(){!mV&&rn&&_t(rn,"display","none")},xV=function(){!mV&&rn&&_t(rn,"display","")};zS&&document.addEventListener("click",function(t){if(O1)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),O1=!1,!1},!0);var pd=function(e){if(gt){e=e.touches?e.touches[0]:e;var n=$De(e.clientX,e.clientY);if(n){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[Li]._onDragOver(r)}}},ODe=function(e){gt&&gt.parentNode[Li]._isOutsideThisEl(e.target)};function Yt(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ns({},e),t[Li]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return vV(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Yt.supportPointer!==!1&&"PointerEvent"in window&&!Wm,emptyInsertThreshold:5};C0.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);bV(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:_De,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?mn(t,"pointerdown",this._onTapStart):(mn(t,"mousedown",this._onTapStart),mn(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(mn(t,"dragover",this),mn(t,"dragenter",this)),I1.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ns(this,EDe())}Yt.prototype={constructor:Yt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(sh=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,gt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,h=i.filter;if(BDe(r),!gt&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Wm&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Js(l,i.draggable,r,!1),!(l&&l.animated)&&vx!==l)){if(Mh=Dr(l),Vm=Dr(l,i.draggable),typeof h=="function"){if(h.call(this,e,l,this)){Gi({sortable:n,rootEl:d,name:"filter",targetEl:l,toEl:r,fromEl:r}),Eo("filter",n,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Js(d,p.trim(),r,!1),p)return Gi({sortable:n,rootEl:p,name:"filter",targetEl:l,fromEl:r,toEl:r}),Eo("filter",n,{evt:e}),!0}),h)){o&&e.cancelable&&e.preventDefault();return}i.handle&&!Js(d,i.handle,r,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,n,r){var i=this,o=i.el,s=i.options,a=o.ownerDocument,l;if(r&&!gt&&r.parentNode===o){var d=yr(r);if(br=o,gt=r,Tr=gt.parentNode,Sd=gt.nextSibling,vx=r,fy=s.group,Yt.dragged=gt,hd={target:gt,clientX:(n||e).clientX,clientY:(n||e).clientY},IF=hd.clientX-d.left,RF=hd.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,gt.style["will-change"]="all",l=function(){if(Eo("delayEnded",i,{evt:e}),Yt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!TF&&i.nativeDraggable&&(gt.draggable=!0),i._triggerDragStart(e,n),Gi({sortable:i,name:"choose",originalEvent:e}),wr(gt,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){hV(gt,h.trim(),qA)}),mn(a,"dragover",pd),mn(a,"mousemove",pd),mn(a,"touchmove",pd),mn(a,"mouseup",i._onDrop),mn(a,"touchend",i._onDrop),mn(a,"touchcancel",i._onDrop),TF&&this.nativeDraggable&&(this.options.touchStartThreshold=4,gt.draggable=!0),Eo("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(S0||bc))){if(Yt.eventCanceled){this._onDrop();return}mn(a,"mouseup",i._disableDelayedDrag),mn(a,"touchend",i._disableDelayedDrag),mn(a,"touchcancel",i._disableDelayedDrag),mn(a,"mousemove",i._delayedDragTouchMoveHandler),mn(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&mn(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){gt&&qA(gt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;un(e,"mouseup",this._disableDelayedDrag),un(e,"touchend",this._disableDelayedDrag),un(e,"touchcancel",this._disableDelayedDrag),un(e,"mousemove",this._delayedDragTouchMoveHandler),un(e,"touchmove",this._delayedDragTouchMoveHandler),un(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?mn(document,"pointermove",this._onTouchMove):n?mn(document,"touchmove",this._onTouchMove):mn(document,"mousemove",this._onTouchMove):(mn(gt,"dragend",this),mn(br,"dragstart",this._onDragStart));try{document.selection?yx(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Sh=!1,br&&gt){Eo("dragStarted",this,{evt:n}),this.nativeDraggable&&mn(document,"dragover",ODe);var r=this.options;!e&&wr(gt,r.dragClass,!1),wr(gt,r.ghostClass,!0),Yt.active=this,e&&this._appendGhost(),Gi({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ws){this._lastX=Ws.clientX,this._lastY=Ws.clientY,yV();for(var e=document.elementFromPoint(Ws.clientX,Ws.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ws.clientX,Ws.clientY),e!==n);)n=e;if(gt.parentNode[Li]._isOutsideThisEl(e),n)do{if(n[Li]){var r=void 0;if(r=n[Li]._onDragOver({clientX:Ws.clientX,clientY:Ws.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);xV()}},_onTouchMove:function(e){if(hd){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=e.touches?e.touches[0]:e,s=rn&&Ud(rn,!0),a=rn&&s&&s.a,l=rn&&s&&s.d,d=py&&Oi&&$F(Oi),h=(o.clientX-hd.clientX+i.x)/(a||1)+(d?d[0]-GA[0]:0)/(a||1),p=(o.clientY-hd.clientY+i.y)/(l||1)+(d?d[1]-GA[1]:0)/(l||1);if(!Yt.active&&!Sh){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(rn){s?(s.e+=h-(YA||0),s.f+=p-(XA||0)):s={a:1,b:0,c:0,d:1,e:h,f:p};var y="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");_t(rn,"webkitTransform",y),_t(rn,"mozTransform",y),_t(rn,"msTransform",y),_t(rn,"transform",y),YA=h,XA=p,Ws=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!rn){var e=this.options.fallbackOnBody?document.body:br,n=yr(gt,!0,py,!0,e),r=this.options;if(py){for(Oi=e;_t(Oi,"position")==="static"&&_t(Oi,"transform")==="none"&&Oi!==document;)Oi=Oi.parentNode;Oi!==document.body&&Oi!==document.documentElement?(Oi===document&&(Oi=Va()),n.top+=Oi.scrollTop,n.left+=Oi.scrollLeft):Oi=Va(),GA=$F(Oi)}rn=gt.cloneNode(!0),wr(rn,r.ghostClass,!1),wr(rn,r.fallbackClass,!0),wr(rn,r.dragClass,!0),_t(rn,"transition",""),_t(rn,"transform",""),_t(rn,"box-sizing","border-box"),_t(rn,"margin",0),_t(rn,"top",n.top),_t(rn,"left",n.left),_t(rn,"width",n.width),_t(rn,"height",n.height),_t(rn,"opacity","0.8"),_t(rn,"position",py?"absolute":"fixed"),_t(rn,"zIndex","100000"),_t(rn,"pointerEvents","none"),Yt.ghost=rn,e.appendChild(rn),_t(rn,"transform-origin",IF/parseInt(rn.style.width)*100+"% "+RF/parseInt(rn.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,i=e.dataTransfer,o=r.options;if(Eo("dragStart",this,{evt:e}),Yt.eventCanceled){this._onDrop();return}Eo("setupClone",this),Yt.eventCanceled||(_r=PO(gt),_r.draggable=!1,_r.style["will-change"]="",this._hideClone(),wr(_r,this.options.chosenClass,!1),Yt.clone=_r),r.cloneId=yx(function(){Eo("clone",r),!Yt.eventCanceled&&(r.options.removeCloneOnHide||br.insertBefore(_r,gt),r._hideClone(),Gi({sortable:r,name:"clone"}))}),!n&&wr(gt,o.dragClass,!0),n?(O1=!0,r._loopId=setInterval(r._emulateDragOver,50)):(un(document,"mouseup",r._onDrop),un(document,"touchend",r._onDrop),un(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,gt)),mn(document,"drop",r),_t(gt,"transform","translateZ(0)")),Sh=!0,r._dragStartId=yx(r._dragStarted.bind(r,n,e)),mn(document,"selectstart",r),fm=!0,Wm&&_t(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,i,o,s,a=this.options,l=a.group,d=Yt.active,h=fy===l,p=a.sort,y=gi||d,w,C=this,k=!1;if(a_)return;function D(q,ce){Eo(q,C,Ka({evt:e,isOwner:h,axis:w?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:p,fromSortable:y,target:r,completed:_,onMove:function(Ae,Se){return gy(br,n,gt,i,Ae,yr(Ae),e,Se)},changed:L},ce))}function I(){D("dragOverAnimationCapture"),C.captureAnimationState(),C!==y&&y.captureAnimationState()}function _(q){return D("dragOverCompleted",{insertion:q}),q&&(h?d._hideClone():d._showClone(C),C!==y&&(wr(gt,gi?gi.options.ghostClass:d.options.ghostClass,!1),wr(gt,a.ghostClass,!0)),gi!==C&&C!==Yt.active?gi=C:C===Yt.active&&gi&&(gi=null),y===C&&(C._ignoreWhileAnimating=r),C.animateAll(function(){D("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(r===gt&&!gt.animated||r===n&&!r.animated)&&(sh=null),!a.dragoverBubble&&!e.rootEl&&r!==document&&(gt.parentNode[Li]._isOutsideThisEl(e.target),!q&&pd(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),k=!0}function L(){Xo=Dr(gt),tu=Dr(gt,a.draggable),Gi({sortable:C,name:"change",toEl:n,newIndex:Xo,newDraggableIndex:tu,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Js(r,a.draggable,n,!0),D("dragOver"),Yt.eventCanceled)return k;if(gt.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||C._ignoreWhileAnimating===r)return _(!1);if(O1=!1,d&&!a.disabled&&(h?p||(s=Tr!==br):gi===this||(this.lastPutMode=fy.checkPull(this,d,gt,e))&&l.checkPut(this,d,gt,e))){if(w=this._getDirection(e,r)==="vertical",i=yr(gt),D("dragOverValid"),Yt.eventCanceled)return k;if(s)return Tr=br,I(),this._hideClone(),D("revert"),Yt.eventCanceled||(Sd?br.insertBefore(gt,Sd):br.appendChild(gt)),_(!0);var M=MO(n,a.draggable);if(!M||PDe(e,w,this)&&!M.animated){if(M===gt)return _(!1);if(M&&n===e.target&&(r=M),r&&(o=yr(r)),gy(br,n,gt,i,r,o,e,!!r)!==!1)return I(),n.appendChild(gt),Tr=n,L(),_(!0)}else if(M&&MDe(e,w,this)){var F=zp(n,0,a,!0);if(F===gt)return _(!1);if(r=F,o=yr(r),gy(br,n,gt,i,r,o,e,!1)!==!1)return I(),n.insertBefore(gt,F),Tr=n,L(),_(!0)}else if(r.parentNode===n){o=yr(r);var H=0,G,X=gt.parentNode!==n,Z=!DDe(gt.animated&&gt.toRect||i,r.animated&&r.toRect||o,w),te=w?"top":"left",ae=DF(r,"top","top")||DF(gt,"top","top"),ye=ae?ae.scrollTop:void 0;sh!==r&&(G=o[te],Xm=!1,hy=!Z&&a.invertSwap||X),H=NDe(e,r,o,w,Z?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,hy,sh===r);var ve;if(H!==0){var se=Dr(gt);do se-=H,ve=Tr.children[se];while(ve&&(_t(ve,"display")==="none"||ve===rn))}if(H===0||ve===r)return _(!1);sh=r,Ym=H;var J=r.nextElementSibling,B=!1;B=H===1;var V=gy(br,n,gt,i,r,o,e,B);if(V!==!1)return(V===1||V===-1)&&(B=V===1),a_=!0,setTimeout(RDe,30),I(),B&&!J?n.appendChild(gt):r.parentNode.insertBefore(gt,B?J:r),ae&&gV(ae,0,ye-ae.scrollTop),Tr=gt.parentNode,G!==void 0&&!hy&&(bx=Math.abs(G-yr(r)[te])),L(),_(!0)}if(n.contains(gt))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){un(document,"mousemove",this._onTouchMove),un(document,"touchmove",this._onTouchMove),un(document,"pointermove",this._onTouchMove),un(document,"dragover",pd),un(document,"mousemove",pd),un(document,"touchmove",pd)},_offUpEvents:function(){var e=this.el.ownerDocument;un(e,"mouseup",this._onDrop),un(e,"touchend",this._onDrop),un(e,"pointerup",this._onDrop),un(e,"touchcancel",this._onDrop),un(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(Xo=Dr(gt),tu=Dr(gt,r.draggable),Eo("drop",this,{evt:e}),Tr=gt&&gt.parentNode,Xo=Dr(gt),tu=Dr(gt,r.draggable),Yt.eventCanceled){this._nulling();return}Sh=!1,hy=!1,Xm=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),l_(this.cloneId),l_(this._dragStartId),this.nativeDraggable&&(un(document,"drop",this),un(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Wm&&_t(document.body,"user-select",""),_t(gt,"transform",""),e&&(fm&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),rn&&rn.parentNode&&rn.parentNode.removeChild(rn),(br===Tr||gi&&gi.lastPutMode!=="clone")&&_r&&_r.parentNode&&_r.parentNode.removeChild(_r),gt&&(this.nativeDraggable&&un(gt,"dragend",this),qA(gt),gt.style["will-change"]="",fm&&!Sh&&wr(gt,gi?gi.options.ghostClass:this.options.ghostClass,!1),wr(gt,this.options.chosenClass,!1),Gi({sortable:this,name:"unchoose",toEl:Tr,newIndex:null,newDraggableIndex:null,originalEvent:e}),br!==Tr?(Xo>=0&&(Gi({rootEl:Tr,name:"add",toEl:Tr,fromEl:br,originalEvent:e}),Gi({sortable:this,name:"remove",toEl:Tr,originalEvent:e}),Gi({rootEl:Tr,name:"sort",toEl:Tr,fromEl:br,originalEvent:e}),Gi({sortable:this,name:"sort",toEl:Tr,originalEvent:e})),gi&&gi.save()):Xo!==Mh&&Xo>=0&&(Gi({sortable:this,name:"update",toEl:Tr,originalEvent:e}),Gi({sortable:this,name:"sort",toEl:Tr,originalEvent:e})),Yt.active&&((Xo==null||Xo===-1)&&(Xo=Mh,tu=Vm),Gi({sortable:this,name:"end",toEl:Tr,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Eo("nulling",this),br=gt=Tr=rn=Sd=_r=vx=cu=hd=Ws=fm=Xo=tu=Mh=Vm=sh=Ym=gi=fy=Yt.dragged=Yt.ghost=Yt.clone=Yt.active=null,R1.forEach(function(e){e.checked=!0}),R1.length=YA=XA=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":gt&&(this._onDragOver(e),IDe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)n=r[i],Js(n,s.draggable,this.el,!1)&&e.push(n.getAttribute(s.dataIdAttr)||FDe(n));return e},sort:function(e,n){var r={},i=this.el;this.toArray().forEach(function(o,s){var a=i.children[s];Js(a,this.options.draggable,i,!1)&&(r[o]=a)},this),n&&this.captureAnimationState(),e.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Js(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var i=C0.modifyOption(this,e,n);typeof i<"u"?r[e]=i:r[e]=n,e==="group"&&bV(r)},destroy:function(){Eo("destroy",this);var e=this.el;e[Li]=null,un(e,"mousedown",this._onTapStart),un(e,"touchstart",this._onTapStart),un(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(un(e,"dragover",this),un(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),I1.splice(I1.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!cu){if(Eo("hideClone",this),Yt.eventCanceled)return;_t(_r,"display","none"),this.options.removeCloneOnHide&&_r.parentNode&&_r.parentNode.removeChild(_r),cu=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(cu){if(Eo("showClone",this),Yt.eventCanceled)return;gt.parentNode==br&&!this.options.group.revertClone?br.insertBefore(_r,gt):Sd?br.insertBefore(_r,Sd):br.appendChild(_r),this.options.group.revertClone&&this.animate(gt,_r),_t(_r,"display",""),cu=!1}}};function IDe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function gy(t,e,n,r,i,o,s,a){var l,d=t[Li],h=d.options.onMove,p;return window.CustomEvent&&!bc&&!S0?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||yr(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),h&&(p=h.call(d,l,s)),p}function qA(t){t.draggable=!1}function RDe(){a_=!1}function MDe(t,e,n){var r=yr(zp(n.el,0,n.options,!0)),i=10;return e?t.clientX<r.left-i||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-i||t.clientY<r.bottom&&t.clientX<r.left}function PDe(t,e,n){var r=yr(MO(n.el,n.options.draggable)),i=10;return e?t.clientX>r.right+i||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+i}function NDe(t,e,n,r,i,o,s,a){var l=r?t.clientY:t.clientX,d=r?n.height:n.width,h=r?n.top:n.left,p=r?n.bottom:n.right,y=!1;if(!s){if(a&&bx<d*i){if(!Xm&&(Ym===1?l>h+d*o/2:l<p-d*o/2)&&(Xm=!0),Xm)y=!0;else if(Ym===1?l<h+bx:l>p-bx)return-Ym}else if(l>h+d*(1-i)/2&&l<p-d*(1-i)/2)return LDe(e)}return y=y||s,y&&(l<h+d*o/2||l>p-d*o/2)?l>h+d/2?1:-1:0}function LDe(t){return Dr(gt)<Dr(t)?1:-1}function FDe(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function BDe(t){R1.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&R1.push(r)}}function yx(t){return setTimeout(t,0)}function l_(t){return clearTimeout(t)}zS&&mn(document,"touchmove",function(t){(Yt.active||Sh)&&t.cancelable&&t.preventDefault()});Yt.utils={on:mn,off:un,css:_t,find:hV,is:function(e,n){return!!Js(e,n,e,!1)},extend:SDe,throttle:pV,closest:Js,toggleClass:wr,clone:PO,index:Dr,nextTick:yx,cancelNextTick:l_,detectDirection:vV,getChild:zp};Yt.get=function(t){return t[Li]};Yt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Yt.utils=Ka(Ka({},Yt.utils),r.utils)),C0.mount(r)})};Yt.create=function(t,e){return new Yt(t,e)};Yt.version=bDe;var Br=[],hm,c_,u_=!1,KA,JA,M1,pm;function zDe(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?mn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?mn(document,"pointermove",this._handleFallbackAutoScroll):r.touches?mn(document,"touchmove",this._handleFallbackAutoScroll):mn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?un(document,"dragover",this._handleAutoScroll):(un(document,"pointermove",this._handleFallbackAutoScroll),un(document,"touchmove",this._handleFallbackAutoScroll),un(document,"mousemove",this._handleFallbackAutoScroll)),PF(),xx(),CDe()},nulling:function(){M1=c_=hm=u_=pm=KA=JA=null,Br.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,s);if(M1=n,r||this.options.forceAutoScrollFallback||S0||bc||Wm){ZA(n,this.options,a,r);var l=gu(a,!0);u_&&(!pm||o!==KA||s!==JA)&&(pm&&PF(),pm=setInterval(function(){var d=gu(document.elementFromPoint(o,s),!0);d!==l&&(l=d,xx()),ZA(n,i.options,d,r)},10),KA=o,JA=s)}else{if(!this.options.bubbleScroll||gu(a,!0)===Va()){xx();return}ZA(n,this.options,gu(a,!1),!1)}}},Ns(t,{pluginName:"scroll",initializeByDefault:!0})}function xx(){Br.forEach(function(t){clearInterval(t.pid)}),Br=[]}function PF(){clearInterval(pm)}var ZA=pV(function(t,e,n,r){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,a=e.scrollSpeed,l=Va(),d=!1,h;c_!==n&&(c_=n,xx(),hm=e.scroll,h=e.scrollFn,hm===!0&&(hm=gu(n,!0)));var p=0,y=hm;do{var w=y,C=yr(w),k=C.top,D=C.bottom,I=C.left,_=C.right,L=C.width,M=C.height,F=void 0,H=void 0,G=w.scrollWidth,X=w.scrollHeight,Z=_t(w),te=w.scrollLeft,ae=w.scrollTop;w===l?(F=L<G&&(Z.overflowX==="auto"||Z.overflowX==="scroll"||Z.overflowX==="visible"),H=M<X&&(Z.overflowY==="auto"||Z.overflowY==="scroll"||Z.overflowY==="visible")):(F=L<G&&(Z.overflowX==="auto"||Z.overflowX==="scroll"),H=M<X&&(Z.overflowY==="auto"||Z.overflowY==="scroll"));var ye=F&&(Math.abs(_-i)<=s&&te+L<G)-(Math.abs(I-i)<=s&&!!te),ve=H&&(Math.abs(D-o)<=s&&ae+M<X)-(Math.abs(k-o)<=s&&!!ae);if(!Br[p])for(var se=0;se<=p;se++)Br[se]||(Br[se]={});(Br[p].vx!=ye||Br[p].vy!=ve||Br[p].el!==w)&&(Br[p].el=w,Br[p].vx=ye,Br[p].vy=ve,clearInterval(Br[p].pid),(ye!=0||ve!=0)&&(d=!0,Br[p].pid=setInterval(function(){r&&this.layer===0&&Yt.active._onTouchMove(M1);var J=Br[this.layer].vy?Br[this.layer].vy*a:0,B=Br[this.layer].vx?Br[this.layer].vx*a:0;typeof h=="function"&&h.call(Yt.dragged.parentNode[Li],B,J,t,M1,Br[this.layer].el)!=="continue"||gV(Br[this.layer].el,B,J)}.bind({layer:p}),24))),p++}while(e.bubbleScroll&&y!==l&&(y=gu(y,!1)));u_=d}},30),wV=function(e){var n=e.originalEvent,r=e.putSortable,i=e.dragEl,o=e.activeSortable,s=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var d=r||o;a();var h=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,p=document.elementFromPoint(h.clientX,h.clientY);l(),d&&!d.el.contains(p)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function NO(){}NO.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=zp(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:wV};Ns(NO,{pluginName:"revertOnSpill"});function LO(){}LO.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:wV};Ns(LO,{pluginName:"removeOnSpill"});var bs;function HDe(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(n){var r=n.dragEl;bs=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,s=n.activeSortable,a=n.changed,l=n.cancel;if(s.options.swap){var d=this.sortable.el,h=this.options;if(i&&i!==d){var p=bs;o(i)!==!1?(wr(i,h.swapClass,!0),bs=i):bs=null,p&&p!==bs&&wr(p,h.swapClass,!1)}a(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,s=i||this.sortable,a=this.options;bs&&wr(bs,a.swapClass,!1),bs&&(a.swap||i&&i.options.swap)&&o!==bs&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),jDe(o,bs),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){bs=null}},Ns(t,{pluginName:"swap",eventProperties:function(){return{swapItem:bs}}})}function jDe(t,e){var n=t.parentNode,r=e.parentNode,i,o;!n||!r||n.isEqualNode(e)||r.isEqualNode(t)||(i=Dr(t),o=Dr(e),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(e,n.children[i]),r.insertBefore(t,r.children[o]))}var Qt=[],Yo=[],Gg,Us,qg=!1,Ao=!1,ah=!1,sr,Kg,my;function WDe(){function t(e){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));e.options.supportPointer?mn(document,"pointerup",this._deselectMultiDrag):(mn(document,"mouseup",this._deselectMultiDrag),mn(document,"touchend",this._deselectMultiDrag)),mn(document,"keydown",this._checkKeyDown),mn(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var s="";Qt.length&&Us===e?Qt.forEach(function(a,l){s+=(l?", ":"")+a.textContent}):s=o.textContent,i.setData("Text",s)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;sr=r},delayEnded:function(){this.isMultiDrag=~Qt.indexOf(sr)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<Qt.length;o++)Yo.push(PO(Qt[o])),Yo[o].sortableIndex=Qt[o].sortableIndex,Yo[o].draggable=!1,Yo[o].style["will-change"]="",wr(Yo[o],this.options.selectedClass,!1),Qt[o]===sr&&wr(Yo[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Qt.length&&Us===r&&(NF(!0,i),o("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(NF(!1,i),Yo.forEach(function(s){_t(s,"display","")}),r(),my=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Yo.forEach(function(s){_t(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),my=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Us&&Us.multiDrag._deselectMultiDrag(),Qt.forEach(function(r){r.sortableIndex=Dr(r)}),Qt=Qt.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),ah=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Qt.forEach(function(s){s!==sr&&_t(s,"position","absolute")});var o=yr(sr,!1,!0,!0);Qt.forEach(function(s){s!==sr&&OF(s,o)}),Ao=!0,qg=!0}i.animateAll(function(){Ao=!1,qg=!1,r.options.animation&&Qt.forEach(function(s){UA(s)}),r.options.sort&&vy()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;Ao&&~Qt.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,s=n.dragRect;Qt.length>1&&(Qt.forEach(function(a){o.addAnimationState({target:a,rect:Ao?yr(a):s}),UA(a),a.fromRect=s,r.removeAnimationState(a)}),Ao=!1,UDe(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,s=n.activeSortable,a=n.parentEl,l=n.putSortable,d=this.options;if(o){if(i&&s._hideClone(),qg=!1,d.animation&&Qt.length>1&&(Ao||!i&&!s.options.sort&&!l)){var h=yr(sr,!1,!0,!0);Qt.forEach(function(y){y!==sr&&(OF(y,h),a.appendChild(y))}),Ao=!0}if(!i)if(Ao||vy(),Qt.length>1){var p=my;s._showClone(r),s.options.animation&&!my&&p&&Yo.forEach(function(y){s.addAnimationState({target:y,rect:Kg}),y.fromRect=Kg,y.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(Qt.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){Kg=Ns({},r);var s=Ud(sr,!0);Kg.top-=s.f,Kg.left-=s.e}},dragOverAnimationComplete:function(){Ao&&(Ao=!1,vy())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,s=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,d=n.putSortable,h=d||this.sortable;if(r){var p=this.options,y=o.children;if(!ah)if(p.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),wr(sr,p.selectedClass,!~Qt.indexOf(sr)),~Qt.indexOf(sr))Qt.splice(Qt.indexOf(sr),1),Gg=null,dm({sortable:s,rootEl:i,name:"deselect",targetEl:sr,originalEvt:r});else{if(Qt.push(sr),dm({sortable:s,rootEl:i,name:"select",targetEl:sr,originalEvt:r}),r.shiftKey&&Gg&&s.el.contains(Gg)){var w=Dr(Gg),C=Dr(sr);if(~w&&~C&&w!==C){var k,D;for(C>w?(D=w,k=C):(D=C,k=w+1);D<k;D++)~Qt.indexOf(y[D])||(wr(y[D],p.selectedClass,!0),Qt.push(y[D]),dm({sortable:s,rootEl:i,name:"select",targetEl:y[D],originalEvt:r}))}}else Gg=sr;Us=h}if(ah&&this.isMultiDrag){if(Ao=!1,(o[Li].options.sort||o!==i)&&Qt.length>1){var I=yr(sr),_=Dr(sr,":not(."+this.options.selectedClass+")");if(!qg&&p.animation&&(sr.thisAnimationDuration=null),h.captureAnimationState(),!qg&&(p.animation&&(sr.fromRect=I,Qt.forEach(function(M){if(M.thisAnimationDuration=null,M!==sr){var F=Ao?yr(M):I;M.fromRect=F,h.addAnimationState({target:M,rect:F})}})),vy(),Qt.forEach(function(M){y[_]?o.insertBefore(M,y[_]):o.appendChild(M),_++}),l===Dr(sr))){var L=!1;Qt.forEach(function(M){if(M.sortableIndex!==Dr(M)){L=!0;return}}),L&&a("update")}Qt.forEach(function(M){UA(M)}),h.animateAll()}Us=h}(i===o||d&&d.lastPutMode!=="clone")&&Yo.forEach(function(M){M.parentNode&&M.parentNode.removeChild(M)})}},nullingGlobal:function(){this.isMultiDrag=ah=!1,Yo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),un(document,"pointerup",this._deselectMultiDrag),un(document,"mouseup",this._deselectMultiDrag),un(document,"touchend",this._deselectMultiDrag),un(document,"keydown",this._checkKeyDown),un(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ah<"u"&&ah)&&Us===this.sortable&&!(n&&Js(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Qt.length;){var r=Qt[0];wr(r,this.options.selectedClass,!1),Qt.shift(),dm({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ns(t,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[Li];!r||!r.options.multiDrag||~Qt.indexOf(n)||(Us&&Us!==r&&(Us.multiDrag._deselectMultiDrag(),Us=r),wr(n,r.options.selectedClass,!0),Qt.push(n))},deselect:function(n){var r=n.parentNode[Li],i=Qt.indexOf(n);!r||!r.options.multiDrag||!~i||(wr(n,r.options.selectedClass,!1),Qt.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Qt.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var s;Ao&&o!==sr?s=-1:Ao?s=Dr(o,":not(."+n.options.selectedClass+")"):s=Dr(o),i.push({multiDragElement:o,index:s})}),{items:hDe(Qt),clones:[].concat(Yo),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function UDe(t,e){Qt.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function NF(t,e){Yo.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function vy(){Qt.forEach(function(t){t!==sr&&t.parentNode&&t.parentNode.removeChild(t)})}Yt.mount(new zDe);Yt.mount(LO,NO);const VDe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:WDe,Sortable:Yt,Swap:HDe,default:Yt},Symbol.toStringTag,{value:"Module"})),YDe=Bu(VDe);(function(t,e){(function(r,i){t.exports=i(RO,YDe)})(typeof self<"u"?self:lu,function(n,r){return function(i){var o={};function s(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=o,s.d=function(a,l,d){s.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:d})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,l){if(l&1&&(a=s(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var d=Object.create(null);if(s.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var h in a)s.d(d,h,function(p){return a[p]}.bind(null,h));return d},s.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(l,"a",l),l},s.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},s.p="",s(s.s="fb15")}({"00ee":function(i,o,s){var a=s("b622"),l=a("toStringTag"),d={};d[l]="z",i.exports=String(d)==="[object z]"},"0366":function(i,o,s){var a=s("1c0b");i.exports=function(l,d,h){if(a(l),d===void 0)return l;switch(h){case 0:return function(){return l.call(d)};case 1:return function(p){return l.call(d,p)};case 2:return function(p,y){return l.call(d,p,y)};case 3:return function(p,y,w){return l.call(d,p,y,w)}}return function(){return l.apply(d,arguments)}}},"057f":function(i,o,s){var a=s("fc6a"),l=s("241c").f,d={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(y){try{return l(y)}catch{return h.slice()}};i.exports.f=function(w){return h&&d.call(w)=="[object Window]"?p(w):l(a(w))}},"06cf":function(i,o,s){var a=s("83ab"),l=s("d1e7"),d=s("5c6c"),h=s("fc6a"),p=s("c04e"),y=s("5135"),w=s("0cfb"),C=Object.getOwnPropertyDescriptor;o.f=a?C:function(D,I){if(D=h(D),I=p(I,!0),w)try{return C(D,I)}catch{}if(y(D,I))return d(!l.f.call(D,I),D[I])}},"0cfb":function(i,o,s){var a=s("83ab"),l=s("d039"),d=s("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,s){var a=s("23e7"),l=s("d58f").left,d=s("a640"),h=s("ae40"),p=d("reduce"),y=h("reduce",{1:0});a({target:"Array",proto:!0,forced:!p||!y},{reduce:function(C){return l(this,C,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,s){var a=s("c6b6"),l=s("9263");i.exports=function(d,h){var p=d.exec;if(typeof p=="function"){var y=p.call(d,h);if(typeof y!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return y}if(a(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(d,h)}},"159b":function(i,o,s){var a=s("da84"),l=s("fdbc"),d=s("17c2"),h=s("9112");for(var p in l){var y=a[p],w=y&&y.prototype;if(w&&w.forEach!==d)try{h(w,"forEach",d)}catch{w.forEach=d}}},"17c2":function(i,o,s){var a=s("b727").forEach,l=s("a640"),d=s("ae40"),h=l("forEach"),p=d("forEach");i.exports=!h||!p?function(w){return a(this,w,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,s){var a=s("d066");i.exports=a("document","documentElement")},"1c0b":function(i,o){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(i,o,s){var a=s("b622"),l=a("iterator"),d=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){d=!0}};p[l]=function(){return this},Array.from(p,function(){throw 2})}catch{}i.exports=function(y,w){if(!w&&!d)return!1;var C=!1;try{var k={};k[l]=function(){return{next:function(){return{done:C=!0}}}},y(k)}catch{}return C}},"1d80":function(i,o){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(i,o,s){var a=s("d039"),l=s("b622"),d=s("2d00"),h=l("species");i.exports=function(p){return d>=51||!a(function(){var y=[],w=y.constructor={};return w[h]=function(){return{foo:1}},y[p](Boolean).foo!==1})}},"23cb":function(i,o,s){var a=s("a691"),l=Math.max,d=Math.min;i.exports=function(h,p){var y=a(h);return y<0?l(y+p,0):d(y,p)}},"23e7":function(i,o,s){var a=s("da84"),l=s("06cf").f,d=s("9112"),h=s("6eeb"),p=s("ce4e"),y=s("e893"),w=s("94ca");i.exports=function(C,k){var D=C.target,I=C.global,_=C.stat,L,M,F,H,G,X;if(I?M=a:_?M=a[D]||p(D,{}):M=(a[D]||{}).prototype,M)for(F in k){if(G=k[F],C.noTargetGet?(X=l(M,F),H=X&&X.value):H=M[F],L=w(I?F:D+(_?".":"#")+F,C.forced),!L&&H!==void 0){if(typeof G==typeof H)continue;y(G,H)}(C.sham||H&&H.sham)&&d(G,"sham",!0),h(M,F,G,C)}}},"241c":function(i,o,s){var a=s("ca84"),l=s("7839"),d=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(p){return a(p,d)}},"25f0":function(i,o,s){var a=s("6eeb"),l=s("825a"),d=s("d039"),h=s("ad6d"),p="toString",y=RegExp.prototype,w=y[p],C=d(function(){return w.call({source:"a",flags:"b"})!="/a/b"}),k=w.name!=p;(C||k)&&a(RegExp.prototype,p,function(){var I=l(this),_=String(I.source),L=I.flags,M=String(L===void 0&&I instanceof RegExp&&!("flags"in y)?h.call(I):L);return"/"+_+"/"+M},{unsafe:!0})},"2ca0":function(i,o,s){var a=s("23e7"),l=s("06cf").f,d=s("50c4"),h=s("5a34"),p=s("1d80"),y=s("ab13"),w=s("c430"),C="".startsWith,k=Math.min,D=y("startsWith"),I=!w&&!D&&!!function(){var _=l(String.prototype,"startsWith");return _&&!_.writable}();a({target:"String",proto:!0,forced:!I&&!D},{startsWith:function(L){var M=String(p(this));h(L);var F=d(k(arguments.length>1?arguments[1]:void 0,M.length)),H=String(L);return C?C.call(M,H,F):M.slice(F,F+H.length)===H}})},"2d00":function(i,o,s){var a=s("da84"),l=s("342f"),d=a.process,h=d&&d.versions,p=h&&h.v8,y,w;p?(y=p.split("."),w=y[0]+y[1]):l&&(y=l.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=l.match(/Chrome\/(\d+)/),y&&(w=y[1]))),i.exports=w&&+w},"342f":function(i,o,s){var a=s("d066");i.exports=a("navigator","userAgent")||""},"35a1":function(i,o,s){var a=s("f5df"),l=s("3f8c"),d=s("b622"),h=d("iterator");i.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||l[a(p)]}},"37e8":function(i,o,s){var a=s("83ab"),l=s("9bf2"),d=s("825a"),h=s("df75");i.exports=a?Object.defineProperties:function(y,w){d(y);for(var C=h(w),k=C.length,D=0,I;k>D;)l.f(y,I=C[D++],w[I]);return y}},"3bbe":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,s){var a=s("6547").charAt,l=s("69f3"),d=s("7dd0"),h="String Iterator",p=l.set,y=l.getterFor(h);d(String,"String",function(w){p(this,{type:h,string:String(w),index:0})},function(){var C=y(this),k=C.string,D=C.index,I;return D>=k.length?{value:void 0,done:!0}:(I=a(k,D),C.index+=I.length,{value:I,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,s){var a=s("23e7"),l=s("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,s){var a=s("da84");i.exports=a},"44ad":function(i,o,s){var a=s("d039"),l=s("c6b6"),d="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return l(h)=="String"?d.call(h,""):Object(h)}:Object},"44d2":function(i,o,s){var a=s("b622"),l=s("7c73"),d=s("9bf2"),h=a("unscopables"),p=Array.prototype;p[h]==null&&d.f(p,h,{configurable:!0,value:l(null)}),i.exports=function(y){p[h][y]=!0}},"44e7":function(i,o,s){var a=s("861d"),l=s("c6b6"),d=s("b622"),h=d("match");i.exports=function(p){var y;return a(p)&&((y=p[h])!==void 0?!!y:l(p)=="RegExp")}},4930:function(i,o,s){var a=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(i,o,s){var a=s("fc6a"),l=s("50c4"),d=s("23cb"),h=function(p){return function(y,w,C){var k=a(y),D=l(k.length),I=d(C,D),_;if(p&&w!=w){for(;D>I;)if(_=k[I++],_!=_)return!0}else for(;D>I;I++)if((p||I in k)&&k[I]===w)return p||I||0;return!p&&-1}};i.exports={includes:h(!0),indexOf:h(!1)}},"4de4":function(i,o,s){var a=s("23e7"),l=s("b727").filter,d=s("1dde"),h=s("ae40"),p=d("filter"),y=h("filter");a({target:"Array",proto:!0,forced:!p||!y},{filter:function(C){return l(this,C,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,s){var a=s("0366"),l=s("7b0b"),d=s("9bdd"),h=s("e95a"),p=s("50c4"),y=s("8418"),w=s("35a1");i.exports=function(k){var D=l(k),I=typeof this=="function"?this:Array,_=arguments.length,L=_>1?arguments[1]:void 0,M=L!==void 0,F=w(D),H=0,G,X,Z,te,ae,ye;if(M&&(L=a(L,_>2?arguments[2]:void 0,2)),F!=null&&!(I==Array&&h(F)))for(te=F.call(D),ae=te.next,X=new I;!(Z=ae.call(te)).done;H++)ye=M?d(te,L,[Z.value,H],!0):Z.value,y(X,H,ye);else for(G=p(D.length),X=new I(G);G>H;H++)ye=M?L(D[H],H):D[H],y(X,H,ye);return X.length=H,X}},"4fad":function(i,o,s){var a=s("23e7"),l=s("6f53").entries;a({target:"Object",stat:!0},{entries:function(h){return l(h)}})},"50c4":function(i,o,s){var a=s("a691"),l=Math.min;i.exports=function(d){return d>0?l(a(d),9007199254740991):0}},5135:function(i,o){var s={}.hasOwnProperty;i.exports=function(a,l){return s.call(a,l)}},5319:function(i,o,s){var a=s("d784"),l=s("825a"),d=s("7b0b"),h=s("50c4"),p=s("a691"),y=s("1d80"),w=s("8aa5"),C=s("14c3"),k=Math.max,D=Math.min,I=Math.floor,_=/\$([$&'`]|\d\d?|<[^>]*>)/g,L=/\$([$&'`]|\d\d?)/g,M=function(F){return F===void 0?F:String(F)};a("replace",2,function(F,H,G,X){var Z=X.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,te=X.REPLACE_KEEPS_$0,ae=Z?"$":"$0";return[function(se,J){var B=y(this),V=se==null?void 0:se[F];return V!==void 0?V.call(se,B,J):H.call(String(B),se,J)},function(ve,se){if(!Z&&te||typeof se=="string"&&se.indexOf(ae)===-1){var J=G(H,ve,this,se);if(J.done)return J.value}var B=l(ve),V=String(this),q=typeof se=="function";q||(se=String(se));var ce=B.global;if(ce){var fe=B.unicode;B.lastIndex=0}for(var Ae=[];;){var Se=C(B,V);if(Se===null||(Ae.push(Se),!ce))break;var _e=String(Se[0]);_e===""&&(B.lastIndex=w(V,h(B.lastIndex),fe))}for(var Be="",Q=0,de=0;de<Ae.length;de++){Se=Ae[de];for(var we=String(Se[0]),Ce=k(D(p(Se.index),V.length),0),je=[],Ue=1;Ue<Se.length;Ue++)je.push(M(Se[Ue]));var Xe=Se.groups;if(q){var qe=[we].concat(je,Ce,V);Xe!==void 0&&qe.push(Xe);var K=String(se.apply(void 0,qe))}else K=ye(we,V,Ce,je,Xe,se);Ce>=Q&&(Be+=V.slice(Q,Ce)+K,Q=Ce+we.length)}return Be+V.slice(Q)}];function ye(ve,se,J,B,V,q){var ce=J+ve.length,fe=B.length,Ae=L;return V!==void 0&&(V=d(V),Ae=_),H.call(q,Ae,function(Se,_e){var Be;switch(_e.charAt(0)){case"$":return"$";case"&":return ve;case"`":return se.slice(0,J);case"'":return se.slice(ce);case"<":Be=V[_e.slice(1,-1)];break;default:var Q=+_e;if(Q===0)return Se;if(Q>fe){var de=I(Q/10);return de===0?Se:de<=fe?B[de-1]===void 0?_e.charAt(1):B[de-1]+_e.charAt(1):Se}Be=B[Q-1]}return Be===void 0?"":Be})}})},5692:function(i,o,s){var a=s("c430"),l=s("c6cd");(i.exports=function(d,h){return l[d]||(l[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,s){var a=s("d066"),l=s("241c"),d=s("7418"),h=s("825a");i.exports=a("Reflect","ownKeys")||function(y){var w=l.f(h(y)),C=d.f;return C?w.concat(C(y)):w}},"5a34":function(i,o,s){var a=s("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(s,a){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:a}}},"5db7":function(i,o,s){var a=s("23e7"),l=s("a2bf"),d=s("7b0b"),h=s("50c4"),p=s("1c0b"),y=s("65f0");a({target:"Array",proto:!0},{flatMap:function(C){var k=d(this),D=h(k.length),I;return p(C),I=y(k,0),I.length=l(I,k,k,D,0,1,C,arguments.length>1?arguments[1]:void 0),I}})},6547:function(i,o,s){var a=s("a691"),l=s("1d80"),d=function(h){return function(p,y){var w=String(l(p)),C=a(y),k=w.length,D,I;return C<0||C>=k?h?"":void 0:(D=w.charCodeAt(C),D<55296||D>56319||C+1===k||(I=w.charCodeAt(C+1))<56320||I>57343?h?w.charAt(C):D:h?w.slice(C,C+2):(D-55296<<10)+(I-56320)+65536)}};i.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(i,o,s){var a=s("861d"),l=s("e8b5"),d=s("b622"),h=d("species");i.exports=function(p,y){var w;return l(p)&&(w=p.constructor,typeof w=="function"&&(w===Array||l(w.prototype))?w=void 0:a(w)&&(w=w[h],w===null&&(w=void 0))),new(w===void 0?Array:w)(y===0?0:y)}},"69f3":function(i,o,s){var a=s("7f9a"),l=s("da84"),d=s("861d"),h=s("9112"),p=s("5135"),y=s("f772"),w=s("d012"),C=l.WeakMap,k,D,I,_=function(Z){return I(Z)?D(Z):k(Z,{})},L=function(Z){return function(te){var ae;if(!d(te)||(ae=D(te)).type!==Z)throw TypeError("Incompatible receiver, "+Z+" required");return ae}};if(a){var M=new C,F=M.get,H=M.has,G=M.set;k=function(Z,te){return G.call(M,Z,te),te},D=function(Z){return F.call(M,Z)||{}},I=function(Z){return H.call(M,Z)}}else{var X=y("state");w[X]=!0,k=function(Z,te){return h(Z,X,te),te},D=function(Z){return p(Z,X)?Z[X]:{}},I=function(Z){return p(Z,X)}}i.exports={set:k,get:D,has:I,enforce:_,getterFor:L}},"6eeb":function(i,o,s){var a=s("da84"),l=s("9112"),d=s("5135"),h=s("ce4e"),p=s("8925"),y=s("69f3"),w=y.get,C=y.enforce,k=String(String).split("String");(i.exports=function(D,I,_,L){var M=L?!!L.unsafe:!1,F=L?!!L.enumerable:!1,H=L?!!L.noTargetGet:!1;if(typeof _=="function"&&(typeof I=="string"&&!d(_,"name")&&l(_,"name",I),C(_).source=k.join(typeof I=="string"?I:"")),D===a){F?D[I]=_:h(I,_);return}else M?!H&&D[I]&&(F=!0):delete D[I];F?D[I]=_:l(D,I,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&w(this).source||p(this)})},"6f53":function(i,o,s){var a=s("83ab"),l=s("df75"),d=s("fc6a"),h=s("d1e7").f,p=function(y){return function(w){for(var C=d(w),k=l(C),D=k.length,I=0,_=[],L;D>I;)L=k[I++],(!a||h.call(C,L))&&_.push(y?[L,C[L]]:C[L]);return _}};i.exports={entries:p(!0),values:p(!1)}},"73d9":function(i,o,s){var a=s("44d2");a("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,s){var a=s("428f"),l=s("5135"),d=s("e538"),h=s("9bf2").f;i.exports=function(p){var y=a.Symbol||(a.Symbol={});l(y,p)||h(y,p,{value:d.f(p)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,s){var a=s("1d80");i.exports=function(l){return Object(a(l))}},"7c73":function(i,o,s){var a=s("825a"),l=s("37e8"),d=s("7839"),h=s("d012"),p=s("1be4"),y=s("cc12"),w=s("f772"),C=">",k="<",D="prototype",I="script",_=w("IE_PROTO"),L=function(){},M=function(Z){return k+I+C+Z+k+"/"+I+C},F=function(Z){Z.write(M("")),Z.close();var te=Z.parentWindow.Object;return Z=null,te},H=function(){var Z=y("iframe"),te="java"+I+":",ae;return Z.style.display="none",p.appendChild(Z),Z.src=String(te),ae=Z.contentWindow.document,ae.open(),ae.write(M("document.F=Object")),ae.close(),ae.F},G,X=function(){try{G=document.domain&&new ActiveXObject("htmlfile")}catch{}X=G?F(G):H();for(var Z=d.length;Z--;)delete X[D][d[Z]];return X()};h[_]=!0,i.exports=Object.create||function(te,ae){var ye;return te!==null?(L[D]=a(te),ye=new L,L[D]=null,ye[_]=te):ye=X(),ae===void 0?ye:l(ye,ae)}},"7dd0":function(i,o,s){var a=s("23e7"),l=s("9ed3"),d=s("e163"),h=s("d2bb"),p=s("d44e"),y=s("9112"),w=s("6eeb"),C=s("b622"),k=s("c430"),D=s("3f8c"),I=s("ae93"),_=I.IteratorPrototype,L=I.BUGGY_SAFARI_ITERATORS,M=C("iterator"),F="keys",H="values",G="entries",X=function(){return this};i.exports=function(Z,te,ae,ye,ve,se,J){l(ae,te,ye);var B=function(de){if(de===ve&&Ae)return Ae;if(!L&&de in ce)return ce[de];switch(de){case F:return function(){return new ae(this,de)};case H:return function(){return new ae(this,de)};case G:return function(){return new ae(this,de)}}return function(){return new ae(this)}},V=te+" Iterator",q=!1,ce=Z.prototype,fe=ce[M]||ce["@@iterator"]||ve&&ce[ve],Ae=!L&&fe||B(ve),Se=te=="Array"&&ce.entries||fe,_e,Be,Q;if(Se&&(_e=d(Se.call(new Z)),_!==Object.prototype&&_e.next&&(!k&&d(_e)!==_&&(h?h(_e,_):typeof _e[M]!="function"&&y(_e,M,X)),p(_e,V,!0,!0),k&&(D[V]=X))),ve==H&&fe&&fe.name!==H&&(q=!0,Ae=function(){return fe.call(this)}),(!k||J)&&ce[M]!==Ae&&y(ce,M,Ae),D[te]=Ae,ve)if(Be={values:B(H),keys:se?Ae:B(F),entries:B(G)},J)for(Q in Be)(L||q||!(Q in ce))&&w(ce,Q,Be[Q]);else a({target:te,proto:!0,forced:L||q},Be);return Be}},"7f9a":function(i,o,s){var a=s("da84"),l=s("8925"),d=a.WeakMap;i.exports=typeof d=="function"&&/native code/.test(l(d))},"825a":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,s){var a=s("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,s){var a=s("c04e"),l=s("9bf2"),d=s("5c6c");i.exports=function(h,p,y){var w=a(p);w in h?l.f(h,w,d(0,y)):h[w]=y}},"861d":function(i,o){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(i,o,s){var a,l,d;(function(h,p){l=[],a=p,d=typeof a=="function"?a.apply(o,l):a,d!==void 0&&(i.exports=d)})(typeof self<"u"?self:this,function(){function h(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==h&&document.currentScript)return document.currentScript;try{throw new Error}catch(G){var y=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,w=/@([^@]*):(\d+):(\d+)\s*$/ig,C=y.exec(G.stack)||w.exec(G.stack),k=C&&C[1]||!1,D=C&&C[2]||!1,I=document.location.href.replace(document.location.hash,""),_,L,M,F=document.getElementsByTagName("script");k===I&&(_=document.documentElement.outerHTML,L=new RegExp("(?:[^\\n]+?\\n){0,"+(D-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),M=_.replace(L,"$1").trim());for(var H=0;H<F.length;H++)if(F[H].readyState==="interactive"||F[H].src===k||k===I&&F[H].innerHTML&&F[H].innerHTML.trim()===M)return F[H];return null}}return h})},8925:function(i,o,s){var a=s("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(d){return l.call(d)}),i.exports=a.inspectSource},"8aa5":function(i,o,s){var a=s("6547").charAt;i.exports=function(l,d,h){return d+(h?a(l,d).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var s=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+a).toString(36)}},9112:function(i,o,s){var a=s("83ab"),l=s("9bf2"),d=s("5c6c");i.exports=a?function(h,p,y){return l.f(h,p,d(1,y))}:function(h,p,y){return h[p]=y,h}},9263:function(i,o,s){var a=s("ad6d"),l=s("9f7f"),d=RegExp.prototype.exec,h=String.prototype.replace,p=d,y=function(){var D=/a/,I=/b*/g;return d.call(D,"a"),d.call(I,"a"),D.lastIndex!==0||I.lastIndex!==0}(),w=l.UNSUPPORTED_Y||l.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,k=y||C||w;k&&(p=function(I){var _=this,L,M,F,H,G=w&&_.sticky,X=a.call(_),Z=_.source,te=0,ae=I;return G&&(X=X.replace("y",""),X.indexOf("g")===-1&&(X+="g"),ae=String(I).slice(_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&I[_.lastIndex-1]!==`
`)&&(Z="(?: "+Z+")",ae=" "+ae,te++),M=new RegExp("^(?:"+Z+")",X)),C&&(M=new RegExp("^"+Z+"$(?!\\s)",X)),y&&(L=_.lastIndex),F=d.call(G?M:_,ae),G?F?(F.input=F.input.slice(te),F[0]=F[0].slice(te),F.index=_.lastIndex,_.lastIndex+=F[0].length):_.lastIndex=0:y&&F&&(_.lastIndex=_.global?F.index+F[0].length:L),C&&F&&F.length>1&&h.call(F[0],M,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(F[H]=void 0)}),F}),i.exports=p},"94ca":function(i,o,s){var a=s("d039"),l=/#|\.prototype\./,d=function(C,k){var D=p[h(C)];return D==w?!0:D==y?!1:typeof k=="function"?a(k):!!k},h=d.normalize=function(C){return String(C).replace(l,".").toLowerCase()},p=d.data={},y=d.NATIVE="N",w=d.POLYFILL="P";i.exports=d},"99af":function(i,o,s){var a=s("23e7"),l=s("d039"),d=s("e8b5"),h=s("861d"),p=s("7b0b"),y=s("50c4"),w=s("8418"),C=s("65f0"),k=s("1dde"),D=s("b622"),I=s("2d00"),_=D("isConcatSpreadable"),L=9007199254740991,M="Maximum allowed index exceeded",F=I>=51||!l(function(){var Z=[];return Z[_]=!1,Z.concat()[0]!==Z}),H=k("concat"),G=function(Z){if(!h(Z))return!1;var te=Z[_];return te!==void 0?!!te:d(Z)},X=!F||!H;a({target:"Array",proto:!0,forced:X},{concat:function(te){var ae=p(this),ye=C(ae,0),ve=0,se,J,B,V,q;for(se=-1,B=arguments.length;se<B;se++)if(q=se===-1?ae:arguments[se],G(q)){if(V=y(q.length),ve+V>L)throw TypeError(M);for(J=0;J<V;J++,ve++)J in q&&w(ye,ve,q[J])}else{if(ve>=L)throw TypeError(M);w(ye,ve++,q)}return ye.length=ve,ye}})},"9bdd":function(i,o,s){var a=s("825a");i.exports=function(l,d,h,p){try{return p?d(a(h)[0],h[1]):d(h)}catch(w){var y=l.return;throw y!==void 0&&a(y.call(l)),w}}},"9bf2":function(i,o,s){var a=s("83ab"),l=s("0cfb"),d=s("825a"),h=s("c04e"),p=Object.defineProperty;o.f=a?p:function(w,C,k){if(d(w),C=h(C,!0),d(k),l)try{return p(w,C,k)}catch{}if("get"in k||"set"in k)throw TypeError("Accessors not supported");return"value"in k&&(w[C]=k.value),w}},"9ed3":function(i,o,s){var a=s("ae93").IteratorPrototype,l=s("7c73"),d=s("5c6c"),h=s("d44e"),p=s("3f8c"),y=function(){return this};i.exports=function(w,C,k){var D=C+" Iterator";return w.prototype=l(a,{next:d(1,k)}),h(w,D,!1,!0),p[D]=y,w}},"9f7f":function(i,o,s){var a=s("d039");function l(d,h){return RegExp(d,h)}o.UNSUPPORTED_Y=a(function(){var d=l("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var d=l("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},a2bf:function(i,o,s){var a=s("e8b5"),l=s("50c4"),d=s("0366"),h=function(p,y,w,C,k,D,I,_){for(var L=k,M=0,F=I?d(I,_,3):!1,H;M<C;){if(M in w){if(H=F?F(w[M],M,y):w[M],D>0&&a(H))L=h(p,y,H,l(H.length),L,D-1)-1;else{if(L>=9007199254740991)throw TypeError("Exceed the acceptable array length");p[L]=H}L++}M++}return L};i.exports=h},a352:function(i,o){i.exports=r},a434:function(i,o,s){var a=s("23e7"),l=s("23cb"),d=s("a691"),h=s("50c4"),p=s("7b0b"),y=s("65f0"),w=s("8418"),C=s("1dde"),k=s("ae40"),D=C("splice"),I=k("splice",{ACCESSORS:!0,0:0,1:2}),_=Math.max,L=Math.min,M=9007199254740991,F="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!D||!I},{splice:function(G,X){var Z=p(this),te=h(Z.length),ae=l(G,te),ye=arguments.length,ve,se,J,B,V,q;if(ye===0?ve=se=0:ye===1?(ve=0,se=te-ae):(ve=ye-2,se=L(_(d(X),0),te-ae)),te+ve-se>M)throw TypeError(F);for(J=y(Z,se),B=0;B<se;B++)V=ae+B,V in Z&&w(J,B,Z[V]);if(J.length=se,ve<se){for(B=ae;B<te-se;B++)V=B+se,q=B+ve,V in Z?Z[q]=Z[V]:delete Z[q];for(B=te;B>te-se+ve;B--)delete Z[B-1]}else if(ve>se)for(B=te-se;B>ae;B--)V=B+se-1,q=B+ve-1,V in Z?Z[q]=Z[V]:delete Z[q];for(B=0;B<ve;B++)Z[B+ae]=arguments[B+2];return Z.length=te-se+ve,J}})},a4d3:function(i,o,s){var a=s("23e7"),l=s("da84"),d=s("d066"),h=s("c430"),p=s("83ab"),y=s("4930"),w=s("fdbf"),C=s("d039"),k=s("5135"),D=s("e8b5"),I=s("861d"),_=s("825a"),L=s("7b0b"),M=s("fc6a"),F=s("c04e"),H=s("5c6c"),G=s("7c73"),X=s("df75"),Z=s("241c"),te=s("057f"),ae=s("7418"),ye=s("06cf"),ve=s("9bf2"),se=s("d1e7"),J=s("9112"),B=s("6eeb"),V=s("5692"),q=s("f772"),ce=s("d012"),fe=s("90e3"),Ae=s("b622"),Se=s("e538"),_e=s("746f"),Be=s("d44e"),Q=s("69f3"),de=s("b727").forEach,we=q("hidden"),Ce="Symbol",je="prototype",Ue=Ae("toPrimitive"),Xe=Q.set,qe=Q.getterFor(Ce),K=Object[je],ee=l.Symbol,be=d("JSON","stringify"),$e=ye.f,Ie=ve.f,He=te.f,rt=se.f,ze=V("symbols"),We=V("op-symbols"),xe=V("string-to-symbol-registry"),Re=V("symbol-to-string-registry"),Ve=V("wks"),it=l.QObject,xt=!it||!it[je]||!it[je].findChild,At=p&&C(function(){return G(Ie({},"a",{get:function(){return Ie(this,"a",{value:7}).a}})).a!=7})?function(dt,pt,bt){var Mt=$e(K,pt);Mt&&delete K[pt],Ie(dt,pt,bt),Mt&&dt!==K&&Ie(K,pt,Mt)}:Ie,It=function(dt,pt){var bt=ze[dt]=G(ee[je]);return Xe(bt,{type:Ce,tag:dt,description:pt}),p||(bt.description=pt),bt},Oe=w?function(dt){return typeof dt=="symbol"}:function(dt){return Object(dt)instanceof ee},Ne=function(pt,bt,Mt){pt===K&&Ne(We,bt,Mt),_(pt);var Bt=F(bt,!0);return _(Mt),k(ze,Bt)?(Mt.enumerable?(k(pt,we)&&pt[we][Bt]&&(pt[we][Bt]=!1),Mt=G(Mt,{enumerable:H(0,!1)})):(k(pt,we)||Ie(pt,we,H(1,{})),pt[we][Bt]=!0),At(pt,Bt,Mt)):Ie(pt,Bt,Mt)},Fe=function(pt,bt){_(pt);var Mt=M(bt),Bt=X(Mt).concat(ot(Mt));return de(Bt,function(vn){(!p||ht.call(Mt,vn))&&Ne(pt,vn,Mt[vn])}),pt},Qe=function(pt,bt){return bt===void 0?G(pt):Fe(G(pt),bt)},ht=function(pt){var bt=F(pt,!0),Mt=rt.call(this,bt);return this===K&&k(ze,bt)&&!k(We,bt)?!1:Mt||!k(this,bt)||!k(ze,bt)||k(this,we)&&this[we][bt]?Mt:!0},Me=function(pt,bt){var Mt=M(pt),Bt=F(bt,!0);if(!(Mt===K&&k(ze,Bt)&&!k(We,Bt))){var vn=$e(Mt,Bt);return vn&&k(ze,Bt)&&!(k(Mt,we)&&Mt[we][Bt])&&(vn.enumerable=!0),vn}},Je=function(pt){var bt=He(M(pt)),Mt=[];return de(bt,function(Bt){!k(ze,Bt)&&!k(ce,Bt)&&Mt.push(Bt)}),Mt},ot=function(pt){var bt=pt===K,Mt=He(bt?We:M(pt)),Bt=[];return de(Mt,function(vn){k(ze,vn)&&(!bt||k(K,vn))&&Bt.push(ze[vn])}),Bt};if(y||(ee=function(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var pt=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),bt=fe(pt),Mt=function(Bt){this===K&&Mt.call(We,Bt),k(this,we)&&k(this[we],bt)&&(this[we][bt]=!1),At(this,bt,H(1,Bt))};return p&&xt&&At(K,bt,{configurable:!0,set:Mt}),It(bt,pt)},B(ee[je],"toString",function(){return qe(this).tag}),B(ee,"withoutSetter",function(dt){return It(fe(dt),dt)}),se.f=ht,ve.f=Ne,ye.f=Me,Z.f=te.f=Je,ae.f=ot,Se.f=function(dt){return It(Ae(dt),dt)},p&&(Ie(ee[je],"description",{configurable:!0,get:function(){return qe(this).description}}),h||B(K,"propertyIsEnumerable",ht,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ee}),de(X(Ve),function(dt){_e(dt)}),a({target:Ce,stat:!0,forced:!y},{for:function(dt){var pt=String(dt);if(k(xe,pt))return xe[pt];var bt=ee(pt);return xe[pt]=bt,Re[bt]=pt,bt},keyFor:function(pt){if(!Oe(pt))throw TypeError(pt+" is not a symbol");if(k(Re,pt))return Re[pt]},useSetter:function(){xt=!0},useSimple:function(){xt=!1}}),a({target:"Object",stat:!0,forced:!y,sham:!p},{create:Qe,defineProperty:Ne,defineProperties:Fe,getOwnPropertyDescriptor:Me}),a({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Je,getOwnPropertySymbols:ot}),a({target:"Object",stat:!0,forced:C(function(){ae.f(1)})},{getOwnPropertySymbols:function(pt){return ae.f(L(pt))}}),be){var mt=!y||C(function(){var dt=ee();return be([dt])!="[null]"||be({a:dt})!="{}"||be(Object(dt))!="{}"});a({target:"JSON",stat:!0,forced:mt},{stringify:function(pt,bt,Mt){for(var Bt=[pt],vn=1,ui;arguments.length>vn;)Bt.push(arguments[vn++]);if(ui=bt,!(!I(bt)&&pt===void 0||Oe(pt)))return D(bt)||(bt=function(bo,_i){if(typeof ui=="function"&&(_i=ui.call(this,bo,_i)),!Oe(_i))return _i}),Bt[1]=bt,be.apply(null,Bt)}})}ee[je][Ue]||J(ee[je],Ue,ee[je].valueOf),Be(ee,Ce),ce[we]=!0},a630:function(i,o,s){var a=s("23e7"),l=s("4df4"),d=s("1c7e"),h=!d(function(p){Array.from(p)});a({target:"Array",stat:!0,forced:h},{from:l})},a640:function(i,o,s){var a=s("d039");i.exports=function(l,d){var h=[][l];return!!h&&a(function(){h.call(null,d||function(){throw 1},1)})}},a691:function(i,o){var s=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:s)(l)}},ab13:function(i,o,s){var a=s("b622"),l=a("match");i.exports=function(d){var h=/./;try{"/./"[d](h)}catch{try{return h[l]=!1,"/./"[d](h)}catch{}}return!1}},ac1f:function(i,o,s){var a=s("23e7"),l=s("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,s){var a=s("825a");i.exports=function(){var l=a(this),d="";return l.global&&(d+="g"),l.ignoreCase&&(d+="i"),l.multiline&&(d+="m"),l.dotAll&&(d+="s"),l.unicode&&(d+="u"),l.sticky&&(d+="y"),d}},ae40:function(i,o,s){var a=s("83ab"),l=s("d039"),d=s("5135"),h=Object.defineProperty,p={},y=function(w){throw w};i.exports=function(w,C){if(d(p,w))return p[w];C||(C={});var k=[][w],D=d(C,"ACCESSORS")?C.ACCESSORS:!1,I=d(C,0)?C[0]:y,_=d(C,1)?C[1]:void 0;return p[w]=!!k&&!l(function(){if(D&&!a)return!0;var L={length:-1};D?h(L,1,{enumerable:!0,get:y}):L[1]=1,k.call(L,I,_)})}},ae93:function(i,o,s){var a=s("e163"),l=s("9112"),d=s("5135"),h=s("b622"),p=s("c430"),y=h("iterator"),w=!1,C=function(){return this},k,D,I;[].keys&&(I=[].keys(),"next"in I?(D=a(a(I)),D!==Object.prototype&&(k=D)):w=!0),k==null&&(k={}),!p&&!d(k,y)&&l(k,y,C),i.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:w}},b041:function(i,o,s){var a=s("00ee"),l=s("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,s){var a=s("83ab"),l=s("9bf2").f,d=Function.prototype,h=d.toString,p=/^\s*function ([^ (]*)/,y="name";a&&!(y in d)&&l(d,y,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},b622:function(i,o,s){var a=s("da84"),l=s("5692"),d=s("5135"),h=s("90e3"),p=s("4930"),y=s("fdbf"),w=l("wks"),C=a.Symbol,k=y?C:C&&C.withoutSetter||h;i.exports=function(D){return d(w,D)||(p&&d(C,D)?w[D]=C[D]:w[D]=k("Symbol."+D)),w[D]}},b64b:function(i,o,s){var a=s("23e7"),l=s("7b0b"),d=s("df75"),h=s("d039"),p=h(function(){d(1)});a({target:"Object",stat:!0,forced:p},{keys:function(w){return d(l(w))}})},b727:function(i,o,s){var a=s("0366"),l=s("44ad"),d=s("7b0b"),h=s("50c4"),p=s("65f0"),y=[].push,w=function(C){var k=C==1,D=C==2,I=C==3,_=C==4,L=C==6,M=C==5||L;return function(F,H,G,X){for(var Z=d(F),te=l(Z),ae=a(H,G,3),ye=h(te.length),ve=0,se=X||p,J=k?se(F,ye):D?se(F,0):void 0,B,V;ye>ve;ve++)if((M||ve in te)&&(B=te[ve],V=ae(B,ve,Z),C)){if(k)J[ve]=V;else if(V)switch(C){case 3:return!0;case 5:return B;case 6:return ve;case 2:y.call(J,B)}else if(_)return!1}return L?-1:I||_?_:J}};i.exports={forEach:w(0),map:w(1),filter:w(2),some:w(3),every:w(4),find:w(5),findIndex:w(6)}},c04e:function(i,o,s){var a=s("861d");i.exports=function(l,d){if(!a(l))return l;var h,p;if(d&&typeof(h=l.toString)=="function"&&!a(p=h.call(l))||typeof(h=l.valueOf)=="function"&&!a(p=h.call(l))||!d&&typeof(h=l.toString)=="function"&&!a(p=h.call(l)))return p;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var s={}.toString;i.exports=function(a){return s.call(a).slice(8,-1)}},c6cd:function(i,o,s){var a=s("da84"),l=s("ce4e"),d="__core-js_shared__",h=a[d]||l(d,{});i.exports=h},c740:function(i,o,s){var a=s("23e7"),l=s("b727").findIndex,d=s("44d2"),h=s("ae40"),p="findIndex",y=!0,w=h(p);p in[]&&Array(1)[p](function(){y=!1}),a({target:"Array",proto:!0,forced:y||!w},{findIndex:function(k){return l(this,k,arguments.length>1?arguments[1]:void 0)}}),d(p)},c8ba:function(i,o){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s},c975:function(i,o,s){var a=s("23e7"),l=s("4d64").indexOf,d=s("a640"),h=s("ae40"),p=[].indexOf,y=!!p&&1/[1].indexOf(1,-0)<0,w=d("indexOf"),C=h("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:y||!w||!C},{indexOf:function(D){return y?p.apply(this,arguments)||0:l(this,D,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,s){var a=s("5135"),l=s("fc6a"),d=s("4d64").indexOf,h=s("d012");i.exports=function(p,y){var w=l(p),C=0,k=[],D;for(D in w)!a(h,D)&&a(w,D)&&k.push(D);for(;y.length>C;)a(w,D=y[C++])&&(~d(k,D)||k.push(D));return k}},caad:function(i,o,s){var a=s("23e7"),l=s("4d64").includes,d=s("44d2"),h=s("ae40"),p=h("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!p},{includes:function(w){return l(this,w,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(i,o,s){var a=s("da84"),l=s("861d"),d=a.document,h=l(d)&&l(d.createElement);i.exports=function(p){return h?d.createElement(p):{}}},ce4e:function(i,o,s){var a=s("da84"),l=s("9112");i.exports=function(d,h){try{l(a,d,h)}catch{a[d]=h}return h}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(i,o,s){var a=s("428f"),l=s("da84"),d=function(h){return typeof h=="function"?h:void 0};i.exports=function(h,p){return arguments.length<2?d(a[h])||d(l[h]):a[h]&&a[h][p]||l[h]&&l[h][p]}},d1e7:function(i,o,s){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,d=l&&!a.call({1:2},1);o.f=d?function(p){var y=l(this,p);return!!y&&y.enumerable}:a},d28b:function(i,o,s){var a=s("746f");a("iterator")},d2bb:function(i,o,s){var a=s("825a"),l=s("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),d=h instanceof Array}catch{}return function(w,C){return a(w),l(C),d?p.call(w,C):w.__proto__=C,w}}():void 0)},d3b7:function(i,o,s){var a=s("00ee"),l=s("6eeb"),d=s("b041");a||l(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(i,o,s){var a=s("9bf2").f,l=s("5135"),d=s("b622"),h=d("toStringTag");i.exports=function(p,y,w){p&&!l(p=w?p:p.prototype,h)&&a(p,h,{configurable:!0,value:y})}},d58f:function(i,o,s){var a=s("1c0b"),l=s("7b0b"),d=s("44ad"),h=s("50c4"),p=function(y){return function(w,C,k,D){a(C);var I=l(w),_=d(I),L=h(I.length),M=y?L-1:0,F=y?-1:1;if(k<2)for(;;){if(M in _){D=_[M],M+=F;break}if(M+=F,y?M<0:L<=M)throw TypeError("Reduce of empty array with no initial value")}for(;y?M>=0:L>M;M+=F)M in _&&(D=C(D,_[M],M,I));return D}};i.exports={left:p(!1),right:p(!0)}},d784:function(i,o,s){s("ac1f");var a=s("6eeb"),l=s("d039"),d=s("b622"),h=s("9263"),p=s("9112"),y=d("species"),w=!l(function(){var _=/./;return _.exec=function(){var L=[];return L.groups={a:"7"},L},"".replace(_,"$<a>")!=="7"}),C=function(){return"a".replace(/./,"$0")==="$0"}(),k=d("replace"),D=function(){return/./[k]?/./[k]("a","$0")==="":!1}(),I=!l(function(){var _=/(?:)/,L=_.exec;_.exec=function(){return L.apply(this,arguments)};var M="ab".split(_);return M.length!==2||M[0]!=="a"||M[1]!=="b"});i.exports=function(_,L,M,F){var H=d(_),G=!l(function(){var ve={};return ve[H]=function(){return 7},""[_](ve)!=7}),X=G&&!l(function(){var ve=!1,se=/a/;return _==="split"&&(se={},se.constructor={},se.constructor[y]=function(){return se},se.flags="",se[H]=/./[H]),se.exec=function(){return ve=!0,null},se[H](""),!ve});if(!G||!X||_==="replace"&&!(w&&C&&!D)||_==="split"&&!I){var Z=/./[H],te=M(H,""[_],function(ve,se,J,B,V){return se.exec===h?G&&!V?{done:!0,value:Z.call(se,J,B)}:{done:!0,value:ve.call(J,se,B)}:{done:!1}},{REPLACE_KEEPS_$0:C,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:D}),ae=te[0],ye=te[1];a(String.prototype,_,ae),a(RegExp.prototype,H,L==2?function(ve,se){return ye.call(ve,this,se)}:function(ve){return ye.call(ve,this)})}F&&p(RegExp.prototype[H],"sham",!0)}},d81d:function(i,o,s){var a=s("23e7"),l=s("b727").map,d=s("1dde"),h=s("ae40"),p=d("map"),y=h("map");a({target:"Array",proto:!0,forced:!p||!y},{map:function(C){return l(this,C,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,s){(function(a){var l=function(d){return d&&d.Math==Math&&d};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(i,o,s){var a=s("23e7"),l=s("83ab"),d=s("56ef"),h=s("fc6a"),p=s("06cf"),y=s("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(C){for(var k=h(C),D=p.f,I=d(k),_={},L=0,M,F;I.length>L;)F=D(k,M=I[L++]),F!==void 0&&y(_,M,F);return _}})},dbf1:function(i,o,s){(function(a){s.d(o,"a",function(){return d});function l(){return typeof window<"u"?window.console:a.console}var d=l()}).call(this,s("c8ba"))},ddb0:function(i,o,s){var a=s("da84"),l=s("fdbc"),d=s("e260"),h=s("9112"),p=s("b622"),y=p("iterator"),w=p("toStringTag"),C=d.values;for(var k in l){var D=a[k],I=D&&D.prototype;if(I){if(I[y]!==C)try{h(I,y,C)}catch{I[y]=C}if(I[w]||h(I,w,k),l[k]){for(var _ in d)if(I[_]!==d[_])try{h(I,_,d[_])}catch{I[_]=d[_]}}}}},df75:function(i,o,s){var a=s("ca84"),l=s("7839");i.exports=Object.keys||function(h){return a(h,l)}},e01a:function(i,o,s){var a=s("23e7"),l=s("83ab"),d=s("da84"),h=s("5135"),p=s("861d"),y=s("9bf2").f,w=s("e893"),C=d.Symbol;if(l&&typeof C=="function"&&(!("description"in C.prototype)||C().description!==void 0)){var k={},D=function(){var H=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),G=this instanceof D?new C(H):H===void 0?C():C(H);return H===""&&(k[G]=!0),G};w(D,C);var I=D.prototype=C.prototype;I.constructor=D;var _=I.toString,L=String(C("test"))=="Symbol(test)",M=/^Symbol\((.*)\)[^)]+$/;y(I,"description",{configurable:!0,get:function(){var H=p(this)?this.valueOf():this,G=_.call(H);if(h(k,H))return"";var X=L?G.slice(7,-1):G.replace(M,"$1");return X===""?void 0:X}}),a({global:!0,forced:!0},{Symbol:D})}},e163:function(i,o,s){var a=s("5135"),l=s("7b0b"),d=s("f772"),h=s("e177"),p=d("IE_PROTO"),y=Object.prototype;i.exports=h?Object.getPrototypeOf:function(w){return w=l(w),a(w,p)?w[p]:typeof w.constructor=="function"&&w instanceof w.constructor?w.constructor.prototype:w instanceof Object?y:null}},e177:function(i,o,s){var a=s("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,s){var a=s("fc6a"),l=s("44d2"),d=s("3f8c"),h=s("69f3"),p=s("7dd0"),y="Array Iterator",w=h.set,C=h.getterFor(y);i.exports=p(Array,"Array",function(k,D){w(this,{type:y,target:a(k),index:0,kind:D})},function(){var k=C(this),D=k.target,I=k.kind,_=k.index++;return!D||_>=D.length?(k.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:_,done:!1}:I=="values"?{value:D[_],done:!1}:{value:[_,D[_]],done:!1}},"values"),d.Arguments=d.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,s){var a=s("23e7"),l=s("d039"),d=s("fc6a"),h=s("06cf").f,p=s("83ab"),y=l(function(){h(1)}),w=!p||y;a({target:"Object",stat:!0,forced:w,sham:!p},{getOwnPropertyDescriptor:function(k,D){return h(d(k),D)}})},e538:function(i,o,s){var a=s("b622");o.f=a},e893:function(i,o,s){var a=s("5135"),l=s("56ef"),d=s("06cf"),h=s("9bf2");i.exports=function(p,y){for(var w=l(y),C=h.f,k=d.f,D=0;D<w.length;D++){var I=w[D];a(p,I)||C(p,I,k(y,I))}}},e8b5:function(i,o,s){var a=s("c6b6");i.exports=Array.isArray||function(d){return a(d)=="Array"}},e95a:function(i,o,s){var a=s("b622"),l=s("3f8c"),d=a("iterator"),h=Array.prototype;i.exports=function(p){return p!==void 0&&(l.Array===p||h[d]===p)}},f5df:function(i,o,s){var a=s("00ee"),l=s("c6b6"),d=s("b622"),h=d("toStringTag"),p=l(function(){return arguments}())=="Arguments",y=function(w,C){try{return w[C]}catch{}};i.exports=a?l:function(w){var C,k,D;return w===void 0?"Undefined":w===null?"Null":typeof(k=y(C=Object(w),h))=="string"?k:p?l(C):(D=l(C))=="Object"&&typeof C.callee=="function"?"Arguments":D}},f772:function(i,o,s){var a=s("5692"),l=s("90e3"),d=a("keys");i.exports=function(h){return d[h]||(d[h]=l(h))}},fb15:function(i,o,s){if(s.r(o),typeof window<"u"){var a=window.document.currentScript;{var l=s("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var d=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(s.p=d[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function h(Oe,Ne,Fe){return Ne in Oe?Object.defineProperty(Oe,Ne,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):Oe[Ne]=Fe,Oe}function p(Oe,Ne){var Fe=Object.keys(Oe);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(Oe);Ne&&(Qe=Qe.filter(function(ht){return Object.getOwnPropertyDescriptor(Oe,ht).enumerable})),Fe.push.apply(Fe,Qe)}return Fe}function y(Oe){for(var Ne=1;Ne<arguments.length;Ne++){var Fe=arguments[Ne]!=null?arguments[Ne]:{};Ne%2?p(Object(Fe),!0).forEach(function(Qe){h(Oe,Qe,Fe[Qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Oe,Object.getOwnPropertyDescriptors(Fe)):p(Object(Fe)).forEach(function(Qe){Object.defineProperty(Oe,Qe,Object.getOwnPropertyDescriptor(Fe,Qe))})}return Oe}function w(Oe){if(Array.isArray(Oe))return Oe}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function C(Oe,Ne){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(Oe)))){var Fe=[],Qe=!0,ht=!1,Me=void 0;try{for(var Je=Oe[Symbol.iterator](),ot;!(Qe=(ot=Je.next()).done)&&(Fe.push(ot.value),!(Ne&&Fe.length===Ne));Qe=!0);}catch(mt){ht=!0,Me=mt}finally{try{!Qe&&Je.return!=null&&Je.return()}finally{if(ht)throw Me}}return Fe}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function k(Oe,Ne){(Ne==null||Ne>Oe.length)&&(Ne=Oe.length);for(var Fe=0,Qe=new Array(Ne);Fe<Ne;Fe++)Qe[Fe]=Oe[Fe];return Qe}function D(Oe,Ne){if(Oe){if(typeof Oe=="string")return k(Oe,Ne);var Fe=Object.prototype.toString.call(Oe).slice(8,-1);if(Fe==="Object"&&Oe.constructor&&(Fe=Oe.constructor.name),Fe==="Map"||Fe==="Set")return Array.from(Oe);if(Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe))return k(Oe,Ne)}}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(Oe,Ne){return w(Oe)||C(Oe,Ne)||D(Oe,Ne)||I()}function L(Oe){if(Array.isArray(Oe))return k(Oe)}function M(Oe){if(typeof Symbol<"u"&&Symbol.iterator in Object(Oe))return Array.from(Oe)}function F(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(Oe){return L(Oe)||M(Oe)||D(Oe)||F()}var G=s("a352"),X=s.n(G);function Z(Oe){Oe.parentElement!==null&&Oe.parentElement.removeChild(Oe)}function te(Oe,Ne,Fe){var Qe=Fe===0?Oe.children[0]:Oe.children[Fe-1].nextSibling;Oe.insertBefore(Ne,Qe)}var ae=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function ye(Oe){var Ne=Object.create(null);return function(Qe){var ht=Ne[Qe];return ht||(Ne[Qe]=Oe(Qe))}}var ve=/-(\w)/g,se=ye(function(Oe){return Oe.replace(ve,function(Ne,Fe){return Fe.toUpperCase()})});s("5db7"),s("73d9");var J=["Start","Add","Remove","Update","End"],B=["Choose","Unchoose","Sort","Filter","Clone"],V=["Move"],q=[V,J,B].flatMap(function(Oe){return Oe}).map(function(Oe){return"on".concat(Oe)}),ce={manage:V,manageAndEmit:J,emit:B};function fe(Oe){return q.indexOf(Oe)!==-1}s("caad"),s("2ca0");var Ae=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Se(Oe){return Ae.includes(Oe)}function _e(Oe){return["transition-group","TransitionGroup"].includes(Oe)}function Be(Oe){return["id","class","role","style"].includes(Oe)||Oe.startsWith("data-")||Oe.startsWith("aria-")||Oe.startsWith("on")}function Q(Oe){return Oe.reduce(function(Ne,Fe){var Qe=_(Fe,2),ht=Qe[0],Me=Qe[1];return Ne[ht]=Me,Ne},{})}function de(Oe){var Ne=Oe.$attrs,Fe=Oe.componentData,Qe=Fe===void 0?{}:Fe,ht=Q(Object.entries(Ne).filter(function(Me){var Je=_(Me,2),ot=Je[0];return Je[1],Be(ot)}));return y(y({},ht),Qe)}function we(Oe){var Ne=Oe.$attrs,Fe=Oe.callBackBuilder,Qe=Q(Ce(Ne));Object.entries(Fe).forEach(function(Me){var Je=_(Me,2),ot=Je[0],mt=Je[1];ce[ot].forEach(function(dt){Qe["on".concat(dt)]=mt(dt)})});var ht="[data-draggable]".concat(Qe.draggable||"");return y(y({},Qe),{},{draggable:ht})}function Ce(Oe){return Object.entries(Oe).filter(function(Ne){var Fe=_(Ne,2),Qe=Fe[0];return Fe[1],!Be(Qe)}).map(function(Ne){var Fe=_(Ne,2),Qe=Fe[0],ht=Fe[1];return[se(Qe),ht]}).filter(function(Ne){var Fe=_(Ne,2),Qe=Fe[0];return Fe[1],!fe(Qe)})}s("c740");function je(Oe,Ne){if(!(Oe instanceof Ne))throw new TypeError("Cannot call a class as a function")}function Ue(Oe,Ne){for(var Fe=0;Fe<Ne.length;Fe++){var Qe=Ne[Fe];Qe.enumerable=Qe.enumerable||!1,Qe.configurable=!0,"value"in Qe&&(Qe.writable=!0),Object.defineProperty(Oe,Qe.key,Qe)}}function Xe(Oe,Ne,Fe){return Ne&&Ue(Oe.prototype,Ne),Fe&&Ue(Oe,Fe),Oe}var qe=function(Ne){var Fe=Ne.el;return Fe},K=function(Ne,Fe){return Ne.__draggable_context=Fe},ee=function(Ne){return Ne.__draggable_context},be=function(){function Oe(Ne){var Fe=Ne.nodes,Qe=Fe.header,ht=Fe.default,Me=Fe.footer,Je=Ne.root,ot=Ne.realList;je(this,Oe),this.defaultNodes=ht,this.children=[].concat(H(Qe),H(ht),H(Me)),this.externalComponent=Je.externalComponent,this.rootTransition=Je.transition,this.tag=Je.tag,this.realList=ot}return Xe(Oe,[{key:"render",value:function(Fe,Qe){var ht=this.tag,Me=this.children,Je=this._isRootComponent,ot=Je?{default:function(){return Me}}:Me;return Fe(ht,Qe,ot)}},{key:"updated",value:function(){var Fe=this.defaultNodes,Qe=this.realList;Fe.forEach(function(ht,Me){K(qe(ht),{element:Qe[Me],index:Me})})}},{key:"getUnderlyingVm",value:function(Fe){return ee(Fe)}},{key:"getVmIndexFromDomIndex",value:function(Fe,Qe){var ht=this.defaultNodes,Me=ht.length,Je=Qe.children,ot=Je.item(Fe);if(ot===null)return Me;var mt=ee(ot);if(mt)return mt.index;if(Me===0)return 0;var dt=qe(ht[0]),pt=H(Je).findIndex(function(bt){return bt===dt});return Fe<pt?0:Me}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),Oe}(),$e=s("8bbf");function Ie(Oe,Ne){var Fe=Oe[Ne];return Fe?Fe():[]}function He(Oe){var Ne=Oe.$slots,Fe=Oe.realList,Qe=Oe.getKey,ht=Fe||[],Me=["header","footer"].map(function(bt){return Ie(Ne,bt)}),Je=_(Me,2),ot=Je[0],mt=Je[1],dt=Ne.item;if(!dt)throw new Error("draggable element must have an item slot");var pt=ht.flatMap(function(bt,Mt){return dt({element:bt,index:Mt}).map(function(Bt){return Bt.key=Qe(bt),Bt.props=y(y({},Bt.props||{}),{},{"data-draggable":!0}),Bt})});if(pt.length!==ht.length)throw new Error("Item slot must have only one child");return{header:ot,footer:mt,default:pt}}function rt(Oe){var Ne=_e(Oe),Fe=!Se(Oe)&&!Ne;return{transition:Ne,externalComponent:Fe,tag:Fe?Object($e.resolveComponent)(Oe):Ne?$e.TransitionGroup:Oe}}function ze(Oe){var Ne=Oe.$slots,Fe=Oe.tag,Qe=Oe.realList,ht=Oe.getKey,Me=He({$slots:Ne,realList:Qe,getKey:ht}),Je=rt(Fe);return new be({nodes:Me,root:Je,realList:Qe})}function We(Oe,Ne){var Fe=this;Object($e.nextTick)(function(){return Fe.$emit(Oe.toLowerCase(),Ne)})}function xe(Oe){var Ne=this;return function(Fe,Qe){if(Ne.realList!==null)return Ne["onDrag".concat(Oe)](Fe,Qe)}}function Re(Oe){var Ne=this,Fe=xe.call(this,Oe);return function(Qe,ht){Fe.call(Ne,Qe,ht),We.call(Ne,Oe,Qe)}}var Ve=null,it={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(Ne){return Ne}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},xt=["update:modelValue","change"].concat(H([].concat(H(ce.manageAndEmit),H(ce.emit)).map(function(Oe){return Oe.toLowerCase()}))),At=Object($e.defineComponent)({name:"draggable",inheritAttrs:!1,props:it,emits:xt,data:function(){return{error:!1}},render:function(){try{this.error=!1;var Ne=this.$slots,Fe=this.$attrs,Qe=this.tag,ht=this.componentData,Me=this.realList,Je=this.getKey,ot=ze({$slots:Ne,tag:Qe,realList:Me,getKey:Je});this.componentStructure=ot;var mt=de({$attrs:Fe,componentData:ht});return ot.render($e.h,mt)}catch(dt){return this.error=!0,Object($e.h)("pre",{style:{color:"red"}},dt.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&ae.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var Ne=this;if(!this.error){var Fe=this.$attrs,Qe=this.$el,ht=this.componentStructure;ht.updated();var Me=we({$attrs:Fe,callBackBuilder:{manageAndEmit:function(mt){return Re.call(Ne,mt)},emit:function(mt){return We.bind(Ne,mt)},manage:function(mt){return xe.call(Ne,mt)}}}),Je=Qe.nodeType===1?Qe:Qe.parentElement;this._sortable=new X.a(Je,Me),this.targetDomElement=Je,Je.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var Ne=this.list;return Ne||this.modelValue},getKey:function(){var Ne=this.itemKey;return typeof Ne=="function"?Ne:function(Fe){return Fe[Ne]}}},watch:{$attrs:{handler:function(Ne){var Fe=this._sortable;Fe&&Ce(Ne).forEach(function(Qe){var ht=_(Qe,2),Me=ht[0],Je=ht[1];Fe.option(Me,Je)})},deep:!0}},methods:{getUnderlyingVm:function(Ne){return this.componentStructure.getUnderlyingVm(Ne)||null},getUnderlyingPotencialDraggableComponent:function(Ne){return Ne.__draggable_component__},emitChanges:function(Ne){var Fe=this;Object($e.nextTick)(function(){return Fe.$emit("change",Ne)})},alterList:function(Ne){if(this.list){Ne(this.list);return}var Fe=H(this.modelValue);Ne(Fe),this.$emit("update:modelValue",Fe)},spliceList:function(){var Ne=arguments,Fe=function(ht){return ht.splice.apply(ht,H(Ne))};this.alterList(Fe)},updatePosition:function(Ne,Fe){var Qe=function(Me){return Me.splice(Fe,0,Me.splice(Ne,1)[0])};this.alterList(Qe)},getRelatedContextFromMoveEvent:function(Ne){var Fe=Ne.to,Qe=Ne.related,ht=this.getUnderlyingPotencialDraggableComponent(Fe);if(!ht)return{component:ht};var Me=ht.realList,Je={list:Me,component:ht};if(Fe!==Qe&&Me){var ot=ht.getUnderlyingVm(Qe)||{};return y(y({},ot),Je)}return Je},getVmIndexFromDomIndex:function(Ne){return this.componentStructure.getVmIndexFromDomIndex(Ne,this.targetDomElement)},onDragStart:function(Ne){this.context=this.getUnderlyingVm(Ne.item),Ne.item._underlying_vm_=this.clone(this.context.element),Ve=Ne.item},onDragAdd:function(Ne){var Fe=Ne.item._underlying_vm_;if(Fe!==void 0){Z(Ne.item);var Qe=this.getVmIndexFromDomIndex(Ne.newIndex);this.spliceList(Qe,0,Fe);var ht={element:Fe,newIndex:Qe};this.emitChanges({added:ht})}},onDragRemove:function(Ne){if(te(this.$el,Ne.item,Ne.oldIndex),Ne.pullMode==="clone"){Z(Ne.clone);return}var Fe=this.context,Qe=Fe.index,ht=Fe.element;this.spliceList(Qe,1);var Me={element:ht,oldIndex:Qe};this.emitChanges({removed:Me})},onDragUpdate:function(Ne){Z(Ne.item),te(Ne.from,Ne.item,Ne.oldIndex);var Fe=this.context.index,Qe=this.getVmIndexFromDomIndex(Ne.newIndex);this.updatePosition(Fe,Qe);var ht={element:this.context.element,oldIndex:Fe,newIndex:Qe};this.emitChanges({moved:ht})},computeFutureIndex:function(Ne,Fe){if(!Ne.element)return 0;var Qe=H(Fe.to.children).filter(function(ot){return ot.style.display!=="none"}),ht=Qe.indexOf(Fe.related),Me=Ne.component.getVmIndexFromDomIndex(ht),Je=Qe.indexOf(Ve)!==-1;return Je||!Fe.willInsertAfter?Me:Me+1},onDragMove:function(Ne,Fe){var Qe=this.move,ht=this.realList;if(!Qe||!ht)return!0;var Me=this.getRelatedContextFromMoveEvent(Ne),Je=this.computeFutureIndex(Me,Ne),ot=y(y({},this.context),{},{futureIndex:Je}),mt=y(y({},Ne),{},{relatedContext:Me,draggedContext:ot});return Qe(mt,Fe)},onDragEnd:function(){Ve=null}}}),It=At;o.default=It},fb6a:function(i,o,s){var a=s("23e7"),l=s("861d"),d=s("e8b5"),h=s("23cb"),p=s("50c4"),y=s("fc6a"),w=s("8418"),C=s("b622"),k=s("1dde"),D=s("ae40"),I=k("slice"),_=D("slice",{ACCESSORS:!0,0:0,1:2}),L=C("species"),M=[].slice,F=Math.max;a({target:"Array",proto:!0,forced:!I||!_},{slice:function(G,X){var Z=y(this),te=p(Z.length),ae=h(G,te),ye=h(X===void 0?te:X,te),ve,se,J;if(d(Z)&&(ve=Z.constructor,typeof ve=="function"&&(ve===Array||d(ve.prototype))?ve=void 0:l(ve)&&(ve=ve[L],ve===null&&(ve=void 0)),ve===Array||ve===void 0))return M.call(Z,ae,ye);for(se=new(ve===void 0?Array:ve)(F(ye-ae,0)),J=0;ae<ye;ae++,J++)ae in Z&&w(se,J,Z[ae]);return se.length=J,se}})},fc6a:function(i,o,s){var a=s("44ad"),l=s("1d80");i.exports=function(d){return a(l(d))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,s){var a=s("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(cDe);const NSt=B$(o_);var P1=200,ai=function(){};ai.prototype.append=function(e){return e.length?(e=ai.from(e),!this.length&&e||e.length<P1&&this.leafAppend(e)||this.length<P1&&e.leafPrepend(this)||this.appendInner(e)):this};ai.prototype.prepend=function(e){return e.length?ai.from(e).append(this):this};ai.prototype.appendInner=function(e){return new XDe(this,e)};ai.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?ai.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};ai.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};ai.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};ai.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,s){return i.push(e(o,s))},n,r),i};ai.from=function(e){return e instanceof ai?e:e&&e.length?new SV(e):ai.empty};var SV=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,s,a){for(var l=o;l<s;l++)if(i(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,o,s,a){for(var l=o-1;l>=s;l--)if(i(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=P1)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=P1)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(ai);ai.empty=new SV([]);var XDe=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,o,s){var a=this.left.length;if(i<a&&this.left.forEachInner(r,i,Math.min(o,a),s)===!1||o>a&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,o)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,s){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(o,a)-a,s+a)===!1||o<a&&this.left.forEachInvertedInner(r,Math.min(i,a),o,s)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var o=this.left.length;return i<=o?this.left.slice(r,i):r>=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(ai);function mi(t){this.content=t}mi.prototype={constructor:mi,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),o=r.content.slice();return i==-1?o.push(n||t,e):(o[i+1]=e,n&&(o[i]=n)),new mi(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new mi(n)},addToStart:function(t,e){return new mi([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new mi(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),o=r.find(t);return i.splice(o==-1?i.length:o,0,e,n),new mi(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=mi.from(t),t.size?new mi(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=mi.from(t),t.size?new mi(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=mi.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};mi.from=function(t){if(t instanceof mi)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new mi(e)};function CV(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=CV(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function EV(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=t.child(--i),a=e.child(--o),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let d=0,h=Math.min(s.text.length,a.text.length);for(;d<h&&s.text[s.text.length-d-1]==a.text[a.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let d=EV(s.content,a.content,n-1,r-1);if(d)return d}n-=l,r-=l}}class ut{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,o){for(let s=0,a=0;a<n;s++){let l=this.content[s],d=a+l.nodeSize;if(d>e&&r(l,i+a,o||null,s)!==!1&&l.content.size){let h=a+1;l.nodesBetween(Math.max(0,e-h),Math.min(l.content.size,n-h),r,i+h)}a=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(a,l)=>{a.isText?(o+=a.text.slice(Math.max(e,l)-l,n-l),s=!r):a.isLeaf?(i?o+=typeof i=="function"?i(a):i:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),s=!r):!s&&a.isBlock&&(o+=r,s=!0)},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new ut(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let o=0,s=0;s<n;o++){let a=this.content[o],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),r.push(a),i+=a.nodeSize),s=l}return new ut(r,i)}cutByIndex(e,n){return e==n?ut.empty:e==0&&n==this.content.length?this:new ut(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new ut(i,o)}addToStart(e){return new ut([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new ut(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))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 n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return CV(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return EV(this,e,n,r)}findIndex(e,n=-1){if(e==0)return by(0,e);if(e==this.size)return by(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||n>0?by(r+1,s):by(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,n){if(!n)return ut.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ut(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return ut.empty;let n,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)?(n||(n=e.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new ut(n||e,r)}static from(e){if(!e)return ut.empty;if(e instanceof ut)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new ut([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ut.empty=new ut([],0);const QA={index:0,offset:0};function by(t,e){return QA.index=t,QA.offset=e,QA}function N1(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!N1(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!N1(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class Sn{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,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))n||(n=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&N1(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Sn.none;if(e instanceof Sn)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}}Sn.none=[];class Mv extends Error{}class wt{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=kV(this.content,e+this.openStart,n);return r&&new wt(r,this.openStart,this.openEnd)}removeBetween(e,n){return new wt(AV(this.content,e+this.openStart,n+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,n){if(!n)return wt.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new wt(ut.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new wt(e,r,i)}}wt.empty=new wt(ut.empty,0,0);function AV(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:a}=t.findIndex(n);if(i==e||o.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(AV(o.content,e-i-1,n-i-1)))}function kV(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),s=t.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=kV(s.content,e-o-1,n);return a&&t.replaceChild(i,s.copy(a))}function GDe(t,e,n){if(n.openStart>t.depth)throw new Mv("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Mv("Inconsistent open depths");return TV(t,e,n,0)}function TV(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=TV(t,e,n,r+1);return o.copy(o.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,a=s.content;return Yd(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=qDe(n,t);return Yd(o,DV(t,s,a,e,r))}else return Yd(o,L1(t,e,r))}function _V(t,e){if(!e.type.compatibleContent(t.type))throw new Mv("Cannot join "+e.type.name+" onto "+t.type.name)}function d_(t,e,n){let r=t.node(n);return _V(r,e.node(n)),r}function Vd(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Gm(t,e,n,r){let i=(e||t).node(n),o=0,s=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(Vd(t.nodeAfter,r),o++));for(let a=o;a<s;a++)Vd(i.child(a),r);e&&e.depth==n&&e.textOffset&&Vd(e.nodeBefore,r)}function Yd(t,e){return t.type.checkContent(e),t.copy(e)}function DV(t,e,n,r,i){let o=t.depth>i&&d_(t,e,i+1),s=r.depth>i&&d_(n,r,i+1),a=[];return Gm(null,t,i,a),o&&s&&e.index(i)==n.index(i)?(_V(o,s),Vd(Yd(o,DV(t,e,n,r,i+1)),a)):(o&&Vd(Yd(o,L1(t,e,i+1)),a),Gm(e,n,i,a),s&&Vd(Yd(s,L1(n,r,i+1)),a)),Gm(r,null,i,a),new ut(a)}function L1(t,e,n){let r=[];if(Gm(null,t,n,r),t.depth>n){let i=d_(t,e,n+1);Vd(Yd(i,L1(t,e,n+1)),r)}return Gm(e,null,n,r),new ut(r)}function qDe(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(ut.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Hp{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.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,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Sn.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);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 n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.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 n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){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)&&(!n||n(this.node(r))))return new Pv(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 n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(o),d=o-l;if(r.push(s,a,i+l),!d||(s=s.child(a),s.isText))break;o=d-1,i+=l+1}return new Hp(n,r,o)}static resolveCached(e,n){for(let i=0;i<e2.length;i++){let o=e2[i];if(o.pos==n&&o.doc==e)return o}let r=e2[t2]=Hp.resolve(e,n);return t2=(t2+1)%KDe,r}}let e2=[],t2=0,KDe=12;class Pv{constructor(e,n,r){this.$from=e,this.$to=n,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 JDe=Object.create(null);let wu=class f_{constructor(e,n,r,i=Sn.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||ut.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,n,r,i=0){this.content.nodesBetween(e,n,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,n,r,i){return this.content.textBetween(e,n,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,n,r){return this.type==e&&N1(this.attrs,n||e.defaultAttrs||JDe)&&Sn.sameSet(this.marks,r||Sn.none)}copy(e=null){return e==this.content?this:new f_(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new f_(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return wt.empty;let i=this.resolve(e),o=this.resolve(n),s=r?0:i.sharedDepth(n),a=i.start(s),d=i.node(s).content.cut(i.pos-a,o.pos-a);return new wt(d,i.depth-s,o.depth-s)}replace(e,n,r){return GDe(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Hp.resolveCached(this,e)}resolveNoCache(e){return Hp.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,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()+")"),$V(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=ut.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,n);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=Sn.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!Sn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n 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(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=ut.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,i,r)}};wu.prototype.text=void 0;class F1 extends wu{constructor(e,n,r,i){if(super(e,n,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):$V(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new F1(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new F1(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function $V(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Mu{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new ZDe(e,n);if(r.next==null)return Mu.empty;let i=OV(r);r.next&&r.err("Unexpected trailing text");let o=o$e(i$e(i));return s$e(o,r),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let o=n;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:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function o(s,a){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return ut.from(a.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:h,next:p}=s.next[d];if(!(h.isText||h.hasRequiredAttrs())&&i.indexOf(p)==-1){i.push(p);let y=o(p,a.concat(h));if(y)return y}}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 n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=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:l}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),n[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 n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(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(`
`)}}Mu.empty=new Mu(!0);class ZDe{constructor(e,n){this.string=e,this.nodeTypes=n,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 OV(t){let e=[];do e.push(QDe(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function QDe(t){let e=[];do e.push(e$e(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function e$e(t){let e=r$e(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=t$e(t,e);else break;return e}function LF(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function t$e(t,e){let n=LF(t),r=n;return t.eat(",")&&(t.next!="}"?r=LF(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function n$e(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let s=n[o];s.groups.indexOf(e)>-1&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function r$e(t){if(t.eat("(")){let e=OV(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=n$e(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function i$e(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(s,a,l){let d={term:l,to:a};return e[s].push(d),d}function i(s,a){s.forEach(l=>l.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((l,d)=>l.concat(o(d,a)),[]);if(s.type=="seq")for(let l=0;;l++){let d=o(s.exprs[l],a);if(l==s.exprs.length-1)return d;i(d,a=n())}else if(s.type=="star"){let l=n();return r(a,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(o(s.expr,a),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let l=a;for(let d=0;d<s.min;d++){let h=n();i(o(s.expr,l),h),l=h}if(s.max==-1)i(o(s.expr,l),l);else for(let d=s.min;d<s.max;d++){let h=n();r(l,h),i(o(s.expr,l),h),l=h}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function IV(t,e){return e-t}function FF(t,e){let n=[];return r(e),n.sort(IV);function r(i){let o=t[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let s=0;s<o.length;s++){let{term:a,to:l}=o[s];!a&&n.indexOf(l)==-1&&r(l)}}}function o$e(t){let e=Object.create(null);return n(FF(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let d;for(let h=0;h<i.length;h++)i[h][0]==a&&(d=i[h][1]);FF(t,l).forEach(h=>{d||i.push([a,d=[]]),d.indexOf(h)==-1&&d.push(h)})})});let o=e[r.join(",")]=new Mu(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let a=i[s][1].sort(IV);o.next.push({type:i[s][0],next:e[a.join(",")]||n(a)})}return o}}function s$e(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],o=!i.validEnd,s=[];for(let a=0;a<i.next.length;a++){let{type:l,next:d}=i.next[a];s.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(d)==-1&&r.push(d)}o&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function RV(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function MV(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let o=t[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function PV(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new a$e(t[n]);return e}let h_=class NV{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=PV(r.attrs),this.defaultAttrs=RV(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==Mu.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:MV(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new wu(this,this.computeAttrs(e),ut.from(n),Sn.setFrom(r))}createChecked(e=null,n,r){return n=ut.from(n),this.checkContent(n),new wu(this,this.computeAttrs(e),n,Sn.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=ut.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(ut.empty,!0);return o?new wu(this,e,n.append(o),Sn.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.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 n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:Sn.none:e}static compile(e,n){let r=Object.create(null);e.forEach((o,s)=>r[o]=new NV(o,n,s));let i=n.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 a$e{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class E0{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=PV(i.attrs),this.excluded=null;let o=RV(this.attrs);this.instance=o?new Sn(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Sn(this,MV(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new E0(o,i++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class LV{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=mi.from(e.nodes),n.marks=mi.from(e.marks||{}),this.nodes=h_.compile(this.spec.nodes,this),this.marks=E0.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]=Mu.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet=a=="_"?null:a?BF(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==""?[]:BF(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,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof h_){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(n,r,i)}text(e,n){let r=this.nodes.text;return new F1(r,r.defaultAttrs,e,Sn.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return wu.fromJSON(this,e)}markFromJSON(e){return Sn.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function BF(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t.marks[i],s=o;if(o)n.push(o);else for(let a in t.marks){let l=t.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class jp{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.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,n={}){let r=new HF(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new HF(this,n,!0);return r.addAll(e,n.from,n.to),wt.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(u$e(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(e);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(e,n,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)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<o)break}n.splice(s,0,i)}for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=jF(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=jF(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new jp(e,jp.schemaRules(e)))}}const FV={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},l$e={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},BV={ol:!0,ul:!0},B1=1,z1=2,qm=4;function zF(t,e,n){return e!=null?(e?B1:0)|(e==="full"?z1:0):t&&t.whitespace=="pre"?B1|z1:n&~qm}class yy{constructor(e,n,r,i,o,s,a){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=i,this.solid=o,this.options=a,this.content=[],this.activeMarks=Sn.none,this.stashMarks=[],this.match=s||(a&qm?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ut.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);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&B1)){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 n=ut.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(ut.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let i=r[n];(this.type?this.type.allowsMarkType(i.type):f$e(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&&!FV.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class HF{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,o,s=zF(null,n.preserveWhitespace,0)|(r?qm:0);i?o=new yy(i.type,i.attrs,Sn.none,Sn.none,!0,n.topMatch||i.type.contentMatch,s):r?o=new yy(null,null,Sn.none,Sn.none,!0,null,s):o=new yy(e.schema.topNodeType,null,Sn.none,Sn.none,!0,null,s),this.nodes=[o],this.find=n.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,n){let r=e.getAttribute("style");if(!r)return n();let i=this.readStyles(d$e(r));if(!i)return;let[o,s]=i,a=this.top;for(let l=0;l<s.length;l++)this.removePendingMark(s[l],a);for(let l=0;l<o.length;l++)this.addPendingMark(o[l]);n();for(let l=0;l<o.length;l++)this.removePendingMark(o[l],a);for(let l=0;l<s.length;l++)this.addPendingMark(s[l])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&z1||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&B1)r.options&z1?n=n.replace(/\r\n?/g,`
`):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&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))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),i;BV.hasOwnProperty(r)&&this.parser.normalizeLists&&c$e(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,n));if(o?o.ignore:l$e.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,l=this.needsBlock;if(FV.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=l}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(`
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=Sn.none,r=Sn.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))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)o=s;else break}return[n,r]}addElementByRule(e,n,r){let i,o,s;n.node?(o=this.parser.schema.nodes[n.node],o.isLeaf?this.insertNode(o.create(n.attrs))||this.leafFallback(e):i=this.enter(o,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l)}i&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,n,r){let i=n||0;for(let o=n?e.childNodes[n]: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 n,r;for(let i=this.open;i>=0;i--){let o=this.nodes[i],s=o.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=o,!s.length)||o.solid)break}if(!n)return!1;this.sync(r);for(let i=0;i<n.length;i++)this.enterInner(n[i],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let i=0;i<e.marks.length;i++)(!n.type||n.type.allowsMarkType(e.marks[i].type))&&(r=e.marks[i].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let i=this.findPlace(e.create(n));return i&&this.enterInner(e,n,!0,r),i}enterInner(e,n=null,r=!1,i){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let s=zF(e,i,o.options);o.options&qm&&o.content.length==0&&(s|=qm),this.nodes.push(new yy(e,n,o.activeMarks,o.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].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 n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&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)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=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,l)=>{for(;a>=0;a--){let d=n[a];if(d==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}else{let h=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!h||h.name!=d&&h.groups.indexOf(d)==-1)return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=h$e(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){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==n)break}}}function c$e(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&BV.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function u$e(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function d$e(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function jF(t){let e={};for(let n in t)e[n]=t[n];return e}function f$e(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],s=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:d,next:h}=a.edge(l);if(d==e||o.indexOf(h)<0&&s(h))return!0}};if(s(i.contentMatch))return!0}}function h$e(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class za{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=n2(n).createDocumentFragment());let i=r,o=[];return e.forEach(s=>{if(o.length||s.marks.length){let a=0,l=0;for(;a<o.length&&l<s.marks.length;){let d=s.marks[l];if(!this.marks[d.type.name]){l++;continue}if(!d.eq(o[a][0])||d.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)i=o.pop()[1];for(;l<s.marks.length;){let d=s.marks[l++],h=this.serializeMark(d,s.isInline,n);h&&(o.push([d,i]),i.appendChild(h.dom),i=h.contentDOM||h.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:i}=za.renderSpec(n2(n),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,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&za.renderSpec(n2(r),i(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let i=n[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),l=n[1],d=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){d=2;for(let h in l)if(l[h]!=null){let p=h.indexOf(" ");p>0?a.setAttributeNS(h.slice(0,p),h.slice(p+1),l[h]):a.setAttribute(h,l[h])}}for(let h=d;h<n.length;h++){let p=n[h];if(p===0){if(h<n.length-1||h>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:y,contentDOM:w}=za.renderSpec(e,p,r);if(a.appendChild(y),w){if(s)throw new RangeError("Multiple content holes");s=w}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new za(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=WF(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return WF(e.marks)}}function WF(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function n2(t){return t.document||window.document}const p$e=Object.freeze(Object.defineProperty({__proto__:null,ContentMatch:Mu,DOMParser:jp,DOMSerializer:za,Fragment:ut,Mark:Sn,MarkType:E0,Node:wu,NodeRange:Pv,NodeType:h_,ReplaceError:Mv,ResolvedPos:Hp,Schema:LV,Slice:wt},Symbol.toStringTag,{value:"Module"})),zV=65535,HV=Math.pow(2,16);function g$e(t,e){return t+e*HV}function UF(t){return t&zV}function m$e(t){return(t-(t&zV))/HV}const jV=1,WV=2,wx=4,UV=8;class H1{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&UV)>0}get deletedBefore(){return(this.delInfo&(jV|wx))>0}get deletedAfter(){return(this.delInfo&(WV|wx))>0}get deletedAcross(){return(this.delInfo&wx)>0}}class Ko{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Ko.empty)return Ko.empty}recover(e){let n=0,r=UF(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+m$e(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,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 l=this.ranges[a]-(this.inverted?i:0);if(l>e)break;let d=this.ranges[a+o],h=this.ranges[a+s],p=l+d;if(e<=p){let y=d?e==l?-1:e==p?1:n:n,w=l+i+(y<0?0:h);if(r)return w;let C=e==(n<0?l:p)?null:g$e(a/3,e-l),k=e==l?WV:e==p?jV:wx;return(n<0?e!=l:e!=p)&&(k|=UV),new H1(w,k,C)}i+=h-d}return r?e+i:new H1(e+i,0,null)}touches(e,n){let r=0,i=UF(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let d=this.ranges[a+o],h=l+d;if(e<=h&&a==i*3)return!0;r+=this.ranges[a+s]-d}return!1}forEach(e){let n=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),l=s+(this.inverted?0:o),d=this.ranges[i+n],h=this.ranges[i+r];e(a,a+d,l,l+h),o+=h-d}}invert(){return new Ko(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Ko.empty:new Ko(e<0?[0,-e,0]:[0,0,e])}}Ko.empty=new Ko([]);class Xd{constructor(e=[],n,r=0,i=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=i}slice(e=0,n=this.maps.length){return new Xd(this.maps,this.mirror,e,n)}copy(){return new Xd(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let i=e.getMirror(n);this.appendMap(e.maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Xd;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this.maps[o],a=s.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this.maps[l].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new H1(e,i,null)}}const r2=Object.create(null);class go{getMap(){return Ko.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=r2[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in r2)throw new RangeError("Duplicate use of step JSON ID "+e);return r2[e]=n,n.prototype.jsonID=e,n}}class Vr{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Vr(e,null)}static fail(e){return new Vr(null,e)}static fromReplace(e,n,r,i){try{return Vr.ok(e.replace(n,r,i))}catch(o){if(o instanceof Mv)return Vr.fail(o.message);throw o}}}function FO(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let o=t.child(i);o.content.size&&(o=o.copy(FO(o.content,e,o))),o.isInline&&(o=e(o,n,i)),r.push(o)}return ut.fromArray(r)}class zl extends go{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new wt(FO(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Vr.fromReplace(e,this.from,this.to,o)}invert(){return new aa(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new zl(n.pos,r.pos,this.mark)}merge(e){return e instanceof zl&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new zl(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,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new zl(n.from,n.to,e.markFromJSON(n.mark))}}go.jsonID("addMark",zl);class aa extends go{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new wt(FO(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Vr.fromReplace(e,this.from,this.to,r)}invert(){return new zl(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new aa(n.pos,r.pos,this.mark)}merge(e){return e instanceof aa&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new aa(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,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new aa(n.from,n.to,e.markFromJSON(n.mark))}}go.jsonID("removeMark",aa);class Hl extends go{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Vr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Vr.fromReplace(e,this.pos,this.pos+1,new wt(ut.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new Hl(this.pos,n.marks[i]);return new Hl(this.pos,this.mark)}}return new ff(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Hl(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Hl(n.pos,e.markFromJSON(n.mark))}}go.jsonID("addNodeMark",Hl);class ff extends go{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Vr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Vr.fromReplace(e,this.pos,this.pos+1,new wt(ut.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Hl(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ff(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ff(n.pos,e.markFromJSON(n.mark))}}go.jsonID("removeNodeMark",ff);class bi extends go{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&p_(e,this.from,this.to)?Vr.fail("Structure replace would overwrite content"):Vr.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ko([this.from,this.to-this.from,this.slice.size])}invert(e){return new bi(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new bi(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof bi)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?wt.empty:new wt(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new bi(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?wt.empty:new wt(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new bi(e.from,this.to,n,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,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new bi(n.from,n.to,wt.fromJSON(e,n.slice),!!n.structure)}}go.jsonID("replace",bi);class li extends go{constructor(e,n,r,i,o,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=a}apply(e){if(this.structure&&(p_(e,this.from,this.gapFrom)||p_(e,this.gapTo,this.to)))return Vr.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Vr.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Vr.fromReplace(e,this.from,this.to,r):Vr.fail("Content does not fit in gap")}getMap(){return new Ko([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new li(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new li(n.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,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new li(n.from,n.to,n.gapFrom,n.gapTo,wt.fromJSON(e,n.slice),n.insert,!!n.structure)}}go.jsonID("replaceAround",li);function p_(t,e,n){let r=t.resolve(e),i=n-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 v$e(t,e,n,r){let i=[],o=[],s,a;t.doc.nodesBetween(e,n,(l,d,h)=>{if(!l.isInline)return;let p=l.marks;if(!r.isInSet(p)&&h.type.allowsMarkType(r.type)){let y=Math.max(d,e),w=Math.min(d+l.nodeSize,n),C=r.addToSet(p);for(let k=0;k<p.length;k++)p[k].isInSet(C)||(s&&s.to==y&&s.mark.eq(p[k])?s.to=w:i.push(s=new aa(y,w,p[k])));a&&a.to==y?a.to=w:o.push(a=new zl(y,w,r))}}),i.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}function b$e(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof E0){let d=s.marks,h;for(;h=r.isInSet(d);)(l||(l=[])).push(h),d=h.removeFromSet(d)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let d=Math.min(a+s.nodeSize,n);for(let h=0;h<l.length;h++){let p=l[h],y;for(let w=0;w<i.length;w++){let C=i[w];C.step==o-1&&p.eq(i[w].style)&&(y=C)}y?(y.to=d,y.step=o):i.push({style:p,from:Math.max(a,e),to:d,step:o})}}}),i.forEach(s=>t.step(new aa(s.from,s.to,s.style)))}function y$e(t,e,n,r=n.contentMatch){let i=t.doc.nodeAt(e),o=[],s=e+1;for(let a=0;a<i.childCount;a++){let l=i.child(a),d=s+l.nodeSize,h=r.matchType(l.type);if(!h)o.push(new bi(s,d,wt.empty));else{r=h;for(let p=0;p<l.marks.length;p++)n.allowsMarkType(l.marks[p].type)||t.step(new aa(s,d,l.marks[p]));if(l.isText&&!n.spec.code){let p,y=/\r?\n|\r/g,w;for(;p=y.exec(l.text);)w||(w=new wt(ut.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),o.push(new bi(s+p.index,s+p.index+p[0].length,w))}}s=d}if(!r.validEnd){let a=r.fillBefore(ut.empty,!0);t.replace(s,s,new wt(a,0,0))}for(let a=o.length-1;a>=0;a--)t.step(o[a])}function x$e(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function A0(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),o=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&i.canReplace(o,s,n))return r;if(r==0||i.type.spec.isolating||!x$e(i,o,s))break}return null}function w$e(t,e,n){let{$from:r,$to:i,depth:o}=e,s=r.before(o+1),a=i.after(o+1),l=s,d=a,h=ut.empty,p=0;for(let C=o,k=!1;C>n;C--)k||r.index(C)>0?(k=!0,h=ut.from(r.node(C).copy(h)),p++):l--;let y=ut.empty,w=0;for(let C=o,k=!1;C>n;C--)k||i.after(C+1)<i.end(C)?(k=!0,y=ut.from(i.node(C).copy(y)),w++):d++;t.step(new li(l,d,s,a,new wt(h.append(y),p,w),h.size-p,!0))}function BO(t,e,n=null,r=t){let i=S$e(t,e),o=i&&C$e(r,e);return o?i.map(VF).concat({type:e,attrs:n}).concat(o.map(VF)):null}function VF(t){return{type:t,attrs:null}}function S$e(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.contentMatchAt(r).findWrapping(e);if(!o)return null;let s=o.length?o[0]:e;return n.canReplaceWith(r,i,s)?o:null}function C$e(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.child(r),s=e.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;l&&d<i;d++)l=l.matchType(n.child(d).type);return!l||!l.validEnd?null:s}function E$e(t,e,n){let r=ut.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let a=n[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=ut.from(n[s].type.create(n[s].attrs,r))}let i=e.start,o=e.end;t.step(new li(i,o,i,o,new wt(r,0,0),n.length,!0))}function A$e(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(r,i)&&k$e(t.doc,t.mapping.slice(o).map(a),r)){t.clearIncompatible(t.mapping.slice(o).map(a,1),r);let l=t.mapping.slice(o),d=l.map(a,1),h=l.map(a+s.nodeSize,1);return t.step(new li(d,h,d+1,h-1,new wt(ut.from(r.create(i,null,s.marks)),0,0),1,!0)),!1}})}function k$e(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function T$e(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let s=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,s);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new li(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new wt(ut.from(s),0,0),1,!0))}function np(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,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 d=i.depth-1,h=n-2;d>o;d--,h--){let p=i.node(d),y=i.index(d);if(p.type.spec.isolating)return!1;let w=p.content.cutByIndex(y,p.childCount),C=r&&r[h+1];C&&(w=w.replaceChild(0,C.type.create(C.attrs)));let k=r&&r[h]||p;if(!p.canReplace(y+1,p.childCount)||!k.type.validContent(w))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function _$e(t,e,n=1,r){let i=t.doc.resolve(e),o=ut.empty,s=ut.empty;for(let a=i.depth,l=i.depth-n,d=n-1;a>l;a--,d--){o=ut.from(i.node(a).copy(o));let h=r&&r[d];s=ut.from(h?h.type.create(h.attrs,s):i.node(a).copy(s))}t.step(new bi(e,e,new wt(o.append(s),n,n),!0))}function Of(t,e){let n=t.resolve(e),r=n.index();return VV(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function VV(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function zO(t,e,n=-1){let r=t.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):n>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&&VV(o,s)&&r.node(i).canReplace(a,a+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function D$e(t,e,n){let r=new bi(e-n,e+n,wt.empty,!0);t.step(r)}function YV(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))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,n))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,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function HO(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.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,l=r.index(s)+(a>0?1:0),d=r.node(s),h=!1;if(o==1)h=d.canReplace(l,l,i);else{let p=d.contentMatchAt(l).findWrapping(i.firstChild.type);h=p&&d.canReplaceWith(l,l,p[0])}if(h)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function HS(t,e,n=e,r=wt.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return XV(i,o,r)?new bi(e,n,r):new $$e(i,o,r).fit()}function XV(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class $$e{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ut.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=ut.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=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 l=new wt(o,s,a);return e>-1?new li(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new bi(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=i2(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:l,match:d}=this.frontier[a],h,p=null;if(n==1&&(s?d.matchType(s.type)||(p=d.fillBefore(ut.from(s),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:p};if(n==2&&s&&(h=d.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:h};if(o&&d.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=i2(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new wt(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=i2(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new wt(gm(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new wt(gm(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let k=0;k<o.length;k++)this.openFrontierNode(o[k]);let s=this.unplaced,a=r?r.content:s.content,l=s.openStart-e,d=0,h=[],{match:p,type:y}=this.frontier[n];if(i){for(let k=0;k<i.childCount;k++)h.push(i.child(k));p=p.matchFragment(i)}let w=a.size+e-(s.content.size-s.openEnd);for(;d<a.childCount;){let k=a.child(d),D=p.matchType(k.type);if(!D)break;d++,(d>1||l==0||k.content.size)&&(p=D,h.push(GV(k.mark(y.allowedMarks(k.marks)),d==1?l:0,d==a.childCount?w:-1)))}let C=d==a.childCount;C||(w=-1),this.placed=mm(this.placed,n,ut.from(h)),this.frontier[n].match=p,C&&w<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let k=0,D=a;k<w;k++){let I=D.lastChild;this.frontier.push({type:I.type,match:I.contentMatchAt(I.childCount)}),D=I.content}this.unplaced=C?e==0?wt.empty:new wt(gm(s.content,e-1,1),e-1,w<0?s.openEnd:e-1):new wt(gm(s.content,e,d),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!o2(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.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 n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=o2(e,n,i,r,o);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:d}=this.frontier[a],h=o2(e,a,d,l,!0);if(!h||h.childCount)continue e}return{depth:n,fit:s,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=mm(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.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,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=mm(this.placed,this.depth,ut.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(ut.empty,!0);n.childCount&&(this.placed=mm(this.placed,this.frontier.length,n))}}function gm(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(gm(t.firstChild.content,e-1,n)))}function mm(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(mm(t.lastChild.content,e-1,n)))}function i2(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function GV(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,GV(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(ut.empty,!0)))),t.copy(r)}function o2(t,e,n,r,i){let o=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!O$e(n,o.content,s)?a:null}function O$e(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function I$e(t){return t.spec.defining||t.spec.definingForContent}function R$e(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),o=t.doc.resolve(n);if(XV(i,o,r))return t.step(new bi(e,n,r));let s=KV(i,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let y=i.depth,w=i.pos-1;y>0;y--,w--){let C=i.node(y).type.spec;if(C.defining||C.definingAsContext||C.isolating)break;s.indexOf(y)>-1?a=y:i.before(y)==w&&s.splice(1,0,-y)}let l=s.indexOf(a),d=[],h=r.openStart;for(let y=r.content,w=0;;w++){let C=y.firstChild;if(d.push(C),w==r.openStart)break;y=C.content}for(let y=h-1;y>=0;y--){let w=d[y],C=I$e(w.type);if(C&&!w.sameMarkup(i.node(Math.abs(a)-1)))h=y;else if(C||!w.type.isTextblock)break}for(let y=r.openStart;y>=0;y--){let w=(y+h+1)%(r.openStart+1),C=d[w];if(C)for(let k=0;k<s.length;k++){let D=s[(k+l)%s.length],I=!0;D<0&&(I=!1,D=-D);let _=i.node(D-1),L=i.index(D-1);if(_.canReplaceWith(L,L,C.type,C.marks))return t.replace(i.before(D),I?o.after(D):n,new wt(qV(r.content,0,r.openStart,w),w,r.openEnd))}}let p=t.steps.length;for(let y=s.length-1;y>=0&&(t.replace(e,n,r),!(t.steps.length>p));y--){let w=s[y];w<0||(e=i.before(w),n=o.after(w))}}function qV(t,e,n,r,i){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(qV(o.content,e+1,n,r,o)))}if(e>r){let o=i.contentMatchAt(0),s=o.fillBefore(t).append(t);t=s.append(o.matchFragment(s).fillBefore(ut.empty,!0))}return t}function M$e(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=YV(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new wt(ut.from(r),0,0))}function P$e(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),o=KV(r,i);for(let s=0;s<o.length;s++){let a=o[s],l=s==o.length-1;if(l&&a==0||r.node(a).type.contentMatch.validEnd)return t.delete(r.start(a),i.end(a));if(a>0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return t.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&&n>r.end(s)&&i.end(s)-n!=i.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function KV(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(o<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}class Gd extends go{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Vr.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Vr.fromReplace(e,this.pos,this.pos+1,new wt(ut.from(i),0,n.isLeaf?0:1))}getMap(){return Ko.empty}invert(e){return new Gd(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Gd(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Gd(n.pos,n.attr,n.value)}}go.jsonID("attr",Gd);let hf=class extends Error{};hf=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};hf.prototype=Object.create(Error.prototype);hf.prototype.constructor=hf;hf.prototype.name="TransformError";class JV{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Xd}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new hf(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=wt.empty){let i=HS(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new wt(ut.from(r),0,0))}delete(e,n){return this.replace(e,n,wt.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return R$e(this,e,n,r),this}replaceRangeWith(e,n,r){return M$e(this,e,n,r),this}deleteRange(e,n){return P$e(this,e,n),this}lift(e,n){return w$e(this,e,n),this}join(e,n=1){return D$e(this,e,n),this}wrap(e,n){return E$e(this,e,n),this}setBlockType(e,n=e,r,i=null){return A$e(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return T$e(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new Gd(e,n,r)),this}addNodeMark(e,n){return this.step(new Hl(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Sn)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ff(e,n)),this}split(e,n=1,r){return _$e(this,e,n,r),this}addMark(e,n,r){return v$e(this,e,n,r),this}removeMark(e,n,r){return b$e(this,e,n,r),this}clearIncompatible(e,n,r){return y$e(this,e,n,r),this}}const N$e=Object.freeze(Object.defineProperty({__proto__:null,AddMarkStep:zl,AddNodeMarkStep:Hl,AttrStep:Gd,MapResult:H1,Mapping:Xd,RemoveMarkStep:aa,RemoveNodeMarkStep:ff,ReplaceAroundStep:li,ReplaceStep:bi,Step:go,StepMap:Ko,StepResult:Vr,Transform:JV,get TransformError(){return hf},canJoin:Of,canSplit:np,dropPoint:HO,findWrapping:BO,insertPoint:YV,joinPoint:zO,liftTarget:A0,replaceStep:HS},Symbol.toStringTag,{value:"Module"})),s2=Object.create(null);class Cn{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new ZV(e.min(n),e.max(n))]}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 n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=wt.empty){let r=n.content.lastChild,i=null;for(let a=0;a<n.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:l,$to:d}=s[a],h=e.mapping.slice(o);e.replaceRange(h.map(l.pos),h.map(d.pos),a?wt.empty:n),a==0&&GF(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:s,$to:a}=i[o],l=e.mapping.slice(r),d=l.map(s.pos),h=l.map(a.pos);o?e.deleteRange(d,h):(e.replaceRangeWith(d,h,n),GF(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new qn(e):Ch(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let o=e.depth-1;o>=0;o--){let s=n<0?Ch(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):Ch(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Ro(e.node(0))}static atStart(e){return Ch(e,e,0,0,1)||new Ro(e)}static atEnd(e){return Ch(e,e,e.content.size,e.childCount,-1)||new Ro(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=s2[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in s2)throw new RangeError("Duplicate use of selection JSON ID "+e);return s2[e]=n,n.prototype.jsonID=e,n}getBookmark(){return qn.between(this.$anchor,this.$head).getBookmark()}}Cn.prototype.visible=!0;class ZV{constructor(e,n){this.$from=e,this.$to=n}}let YF=!1;function XF(t){!YF&&!t.parent.inlineContent&&(YF=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class qn extends Cn{constructor(e,n=e){XF(e),XF(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Cn.near(r);let i=e.resolve(n.map(this.anchor));return new qn(i.parent.inlineContent?i:r,r)}replace(e,n=wt.empty){if(super.replace(e,n),n==wt.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof qn&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new jS(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new qn(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=Cn.findFrom(n,r,!0)||Cn.findFrom(n,-r,!0);if(o)n=o.$head;else return Cn.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(Cn.findFrom(e,-r,!0)||Cn.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new qn(e,n)}}Cn.jsonID("text",qn);class jS{constructor(e,n){this.anchor=e,this.head=n}map(e){return new jS(e.map(this.anchor),e.map(this.head))}resolve(e){return qn.between(e.resolve(this.anchor),e.resolve(this.head))}}class Xt extends Cn{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=e.resolve(i);return r?Cn.near(o):new Xt(o)}content(){return new wt(ut.from(this.node),0,0)}eq(e){return e instanceof Xt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new jO(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Xt(e.resolve(n.anchor))}static create(e,n){return new Xt(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Xt.prototype.visible=!1;Cn.jsonID("node",Xt);class jO{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new jS(r,r):new jO(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&Xt.isSelectable(r)?new Xt(n):Cn.near(n)}}class Ro extends Cn{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=wt.empty){if(n==wt.empty){e.delete(0,e.doc.content.size);let r=Cn.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ro(e)}map(e){return new Ro(e)}eq(e){return e instanceof Ro}getBookmark(){return L$e}}Cn.jsonID("all",Ro);const L$e={map(){return this},resolve(t){return new Ro(t)}};function Ch(t,e,n,r,i,o=!1){if(e.inlineContent)return qn.create(t,n);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&&Xt.isSelectable(a))return Xt.create(t,n-(i<0?a.nodeSize:0))}else{let l=Ch(t,a,n+i,i<0?a.childCount:0,i,o);if(l)return l}n+=a.nodeSize*i}return null}function GF(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof bi||i instanceof li))return;let o=t.mapping.maps[r],s;o.forEach((a,l,d,h)=>{s==null&&(s=h)}),t.setSelection(Cn.near(t.doc.resolve(s),n))}const qF=1,xy=2,KF=4;class QV extends JV{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|qF)&~xy,this.storedMarks=null,this}get selectionSet(){return(this.updated&qF)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=xy,this}ensureMarks(e){return Sn.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&xy)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~xy,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Sn.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let s=this.doc.resolve(n);o=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),this.selection.empty||this.setSelection(Cn.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,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|=KF,this}get scrolledIntoView(){return(this.updated&KF)>0}}function JF(t,e){return!e||!t?t:t.bind(e)}class vm{constructor(e,n,r){this.name=e,this.init=JF(n.init,r),this.apply=JF(n.apply,r)}}const F$e=[new vm("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new vm("selection",{init(t,e){return t.selection||Cn.atStart(e.doc)},apply(t){return t.selection}}),new vm("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new vm("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class a2{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=F$e.slice(),n&&n.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 vm(r.key,r.spec.state,r))})}}class Ph{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,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){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 n=[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 l=i?i[s].n:0,d=i?i[s].state:this,h=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,d,r);if(h&&r.filterTransaction(h,s)){if(h.setMeta("appendedTransaction",e),!i){i=[];for(let p=0;p<this.config.plugins.length;p++)i.push(p<s?{state:r,n:n.length}:{state:this,n:0})}n.push(h),r=r.applyInner(h),o=!0}i&&(i[s]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Ph(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new QV(this)}static create(e){let n=new a2(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Ph(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new a2(this.schema,e.plugins),r=n.fields,i=new Ph(n);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 n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.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&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new a2(e.schema,e.plugins),o=new Ph(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=wu.fromJSON(e.schema,n.doc);else if(s.name=="selection")o.selection=Cn.fromJSON(o.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],d=l.spec.state;if(l.key==s.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[s.name]=d.fromJSON.call(l,e,n[a],o);return}}o[s.name]=s.init(e,o)}}),o}}function eY(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=eY(i,e,{})),n[r]=i}return n}class If{constructor(e){this.spec=e,this.props={},e.props&&eY(e.props,this,this.props),this.key=e.key?e.key.key:tY("plugin")}getState(e){return e[this.key]}}const l2=Object.create(null);function tY(t){return t in l2?t+"$"+ ++l2[t]:(l2[t]=0,t+"$")}class WO{constructor(e="key"){this.key=tY(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const B$e=Object.freeze(Object.defineProperty({__proto__:null,AllSelection:Ro,EditorState:Ph,NodeSelection:Xt,Plugin:If,PluginKey:WO,Selection:Cn,SelectionRange:ZV,TextSelection:qn,Transaction:QV},Symbol.toStringTag,{value:"Module"})),z$e=500;class ta{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let s=e.tr,a,l,d=[],h=[];return this.items.forEach((p,y)=>{if(!p.step){i||(i=this.remapping(r,y+1),o=i.maps.length),o--,h.push(p);return}if(i){h.push(new Da(p.map));let w=p.step.map(i.slice(o)),C;w&&s.maybeStep(w).doc&&(C=s.mapping.maps[s.mapping.maps.length-1],d.push(new Da(C,void 0,void 0,d.length+h.length))),o--,C&&i.appendMap(C,o)}else s.maybeStep(p.step);if(p.selection)return a=i?p.selection.map(i.slice(o)):p.selection,l=new ta(this.items.slice(0,r).append(h.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,n,r,i){let o=[],s=this.eventCount,a=this.items,l=!i&&a.length?a.get(a.length-1):null;for(let h=0;h<e.steps.length;h++){let p=e.steps[h].invert(e.docs[h]),y=new Da(e.mapping.maps[h],p,n),w;(w=l&&l.merge(y))&&(y=w,h?o.pop():a=a.slice(0,a.length-1)),o.push(y),n&&(s++,n=void 0),i||(l=y)}let d=s-r.depth;return d>j$e&&(a=H$e(a,d),s-=d),new ta(a.append(o),s)}remapping(e,n){let r=new Xd;return this.items.forEach((i,o)=>{let s=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new ta(this.items.append(e.map(n=>new Da(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(y=>{y.selection&&a--},i);let l=n;this.items.forEach(y=>{let w=o.getMirror(--l);if(w==null)return;s=Math.min(s,w);let C=o.maps[w];if(y.step){let k=e.steps[w].invert(e.docs[w]),D=y.selection&&y.selection.map(o.slice(l+1,w));D&&a++,r.push(new Da(C,k,D))}else r.push(new Da(C))},i);let d=[];for(let y=n;y<s;y++)d.push(new Da(o.maps[y]));let h=this.items.slice(0,i).append(d).append(r),p=new ta(h,a);return p.emptyItemCount()>z$e&&(p=p.compress(this.items.length-r.length)),p}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],o=0;return this.items.forEach((s,a)=>{if(a>=e)i.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(n.slice(r)),d=l&&l.getMap();if(r--,d&&n.appendMap(d,r),l){let h=s.selection&&s.selection.map(n.slice(r));h&&o++;let p=new Da(d.invert(),l,h),y,w=i.length-1;(y=i.length&&i[w].merge(p))?i[w]=y:i.push(p)}}else s.map&&r--},this.items.length,0),new ta(ai.from(i.reverse()),o)}}ta.empty=new ta(ai.empty,0);function H$e(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class Da{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Da(n.getMap().invert(),n,this.selection)}}}class nu{constructor(e,n,r,i,o){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const j$e=20;function W$e(t,e,n,r){let i=n.getMeta(Su),o;if(i)return i.historyState;n.getMeta(V$e)&&(t=new nu(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Su))return s.getMeta(Su).redo?new nu(t.done.addTransform(n,void 0,r,Sx(e)),t.undone,ZF(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new nu(t.done,t.undone.addTransform(n,void 0,r,Sx(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!U$e(n,t.prevRanges)),d=s?c2(t.prevRanges,n.mapping):ZF(n.mapping.maps[n.steps.length-1]);return new nu(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,Sx(e)),ta.empty,d,n.time,a??t.prevComposition)}else return(o=n.getMeta("rebased"))?new nu(t.done.rebased(n,o),t.undone.rebased(n,o),c2(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new nu(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),c2(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function U$e(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let o=0;o<e.length;o+=2)r<=e[o+1]&&i>=e[o]&&(n=!0)}),n}function ZF(t){let e=[];return t.forEach((n,r,i,o)=>e.push(i,o)),e}function c2(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),o=e.map(t[r+1],-1);i<=o&&n.push(i,o)}return n}function nY(t,e,n,r){let i=Sx(e),o=Su.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,i);if(!s)return;let a=s.selection.resolve(s.transform.doc),l=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),o,i),d=new nu(r?l:s.remaining,r?s.remaining:l,null,0,-1);n(s.transform.setSelection(a).setMeta(Su,{redo:r,historyState:d}).scrollIntoView())}let u2=!1,QF=null;function Sx(t){let e=t.plugins;if(QF!=e){u2=!1,QF=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){u2=!0;break}}return u2}const Su=new WO("history"),V$e=new WO("closeHistory");function LSt(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new If({key:Su,state:{init(){return new nu(ta.empty,ta.empty,null,0,-1)},apply(e,n,r){return W$e(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?Y$e:r=="historyRedo"?X$e:null;return i?(n.preventDefault(),i(e.state,e.dispatch)):!1}}}})}const Y$e=(t,e)=>{let n=Su.getState(t);return!n||n.done.eventCount==0?!1:(e&&nY(n,t,e,!1),!0)},X$e=(t,e)=>{let n=Su.getState(t);return!n||n.undone.eventCount==0?!1:(e&&nY(n,t,e,!0),!0)};function FSt(t={}){return new If({view(e){return new G$e(e,t)}})}class G$e{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.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:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.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),n=!e.parent.inlineContent,r;if(n){let a=e.nodeBefore,l=e.nodeAfter;if(a||l){let d=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(d){let h=d.getBoundingClientRect(),p=a?h.bottom:h.top;a&&l&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:h.left,right:h.right,top:p-this.width/2,bottom:p+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",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);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 n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!o){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=HO(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)}}var Pu={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},j1={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},q$e=typeof navigator<"u"&&/Mac/.test(navigator.platform),K$e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var yi=0;yi<10;yi++)Pu[48+yi]=Pu[96+yi]=String(yi);for(var yi=1;yi<=24;yi++)Pu[yi+111]="F"+yi;for(var yi=65;yi<=90;yi++)Pu[yi]=String.fromCharCode(yi+32),j1[yi]=String.fromCharCode(yi);for(var d2 in Pu)j1.hasOwnProperty(d2)||(j1[d2]=Pu[d2]);function J$e(t){var e=q$e&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||K$e&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?j1:Pu)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Z$e=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Q$e(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))Z$e?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function eOe(t){let e=Object.create(null);for(let n in t)e[Q$e(n)]=t[n];return e}function f2(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function tOe(t){return new If({props:{handleKeyDown:UO(t)}})}function UO(t){let e=eOe(t);return function(n,r){let i=J$e(r),o,s=e[f2(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let a=e[f2(i,r,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||i.charCodeAt(0)>127)&&(o=Pu[r.keyCode])&&o!=i){let a=e[f2(o,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const nOe=Object.freeze(Object.defineProperty({__proto__:null,keydownHandler:UO,keymap:tOe},Symbol.toStringTag,{value:"Module"})),no=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Nv=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let e8=null;const kl=function(t,e,n){let r=e8||(e8=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},pf=function(t,e,n,r){return n&&(t8(t,e,n,r,-1)||t8(t,e,n,r,1))},rOe=/^(img|br|input|textarea|hr)$/i;function t8(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Na(t))){let o=t.parentNode;if(!o||o.nodeType!=1||VO(t)||rOe.test(t.nodeName)||t.contentEditable=="false")return!1;e=no(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?Na(t):0}else return!1}}function Na(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function iOe(t,e,n){for(let r=e==0,i=e==Na(t);r||i;){if(t==n)return!0;let o=no(t);if(t=t.parentNode,!t)return!1;r=r&&o==0,i=i&&o==Na(t)}}function VO(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const WS=function(t){return t.focusNode&&pf(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function kd(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function oOe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function sOe(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Ja=typeof navigator<"u"?navigator:null,n8=typeof document<"u"?document:null,Xu=Ja&&Ja.userAgent||"",g_=/Edge\/(\d+)/.exec(Xu),rY=/MSIE \d/.exec(Xu),m_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xu),Mo=!!(rY||m_||g_),Cu=rY?document.documentMode:m_?+m_[1]:g_?+g_[1]:0,ga=!Mo&&/gecko\/(\d+)/i.test(Xu);ga&&+(/Firefox\/(\d+)/.exec(Xu)||[0,0])[1];const v_=!Mo&&/Chrome\/(\d+)/.exec(Xu),Fi=!!v_,aOe=v_?+v_[1]:0,uo=!Mo&&!!Ja&&/Apple Computer/.test(Ja.vendor),Wp=uo&&(/Mobile\/\w+/.test(Xu)||!!Ja&&Ja.maxTouchPoints>2),xs=Wp||(Ja?/Mac/.test(Ja.platform):!1),lOe=Ja?/Win/.test(Ja.platform):!1,Qs=/Android \d/.test(Xu),US=!!n8&&"webkitFontSmoothing"in n8.documentElement.style,cOe=US?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function uOe(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function yl(t,e){return typeof t=="number"?t:t[e]}function dOe(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function r8(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Nv(s)){if(s.nodeType!=1)continue;let a=s,l=a==o.body,d=l?uOe(o):dOe(a),h=0,p=0;if(e.top<d.top+yl(r,"top")?p=-(d.top-e.top+yl(i,"top")):e.bottom>d.bottom-yl(r,"bottom")&&(p=e.bottom-e.top>d.bottom-d.top?e.top+yl(i,"top")-d.top:e.bottom-d.bottom+yl(i,"bottom")),e.left<d.left+yl(r,"left")?h=-(d.left-e.left+yl(i,"left")):e.right>d.right-yl(r,"right")&&(h=e.right-d.right+yl(i,"right")),h||p)if(l)o.defaultView.scrollBy(h,p);else{let y=a.scrollLeft,w=a.scrollTop;p&&(a.scrollTop+=p),h&&(a.scrollLeft+=h);let C=a.scrollLeft-y,k=a.scrollTop-w;e={left:e.left-C,top:e.top-k,right:e.right-C,bottom:e.bottom-k}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function fOe(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(o,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:iY(t.dom)}}function iY(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Nv(r));return e}function hOe({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;oY(n,r==0?0:r-e)}function oY(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:o}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=o&&(r.scrollLeft=o)}}let lh=null;function pOe(t){if(t.setActive)return t.setActive();if(lh)return t.focus(lh);let e=iY(t);t.focus(lh==null?{get preventScroll(){return lh={preventScroll:!0},!0}}:void 0),lh||(lh=!1,oY(e,0))}function sY(t,e){let n,r=2e8,i,o=0,s=e.top,a=e.top,l,d;for(let h=t.firstChild,p=0;h;h=h.nextSibling,p++){let y;if(h.nodeType==1)y=h.getClientRects();else if(h.nodeType==3)y=kl(h).getClientRects();else continue;for(let w=0;w<y.length;w++){let C=y[w];if(C.top<=s&&C.bottom>=a){s=Math.max(C.bottom,s),a=Math.min(C.top,a);let k=C.left>e.left?C.left-e.left:C.right<e.left?e.left-C.right:0;if(k<r){n=h,r=k,i=k&&n.nodeType==3?{left:C.right<e.left?C.right:C.left,top:e.top}:e,h.nodeType==1&&k&&(o=p+(e.left>=(C.left+C.right)/2?1:0));continue}}else C.top>e.top&&!l&&C.left<=e.left&&C.right>=e.left&&(l=h,d={left:Math.max(C.left,Math.min(C.right,e.left)),top:C.top});!n&&(e.left>=C.right&&e.top>=C.top||e.left>=C.left&&e.top>=C.bottom)&&(o=p+1)}}return!n&&l&&(n=l,i=d,r=0),n&&n.nodeType==3?gOe(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:sY(n,i)}function gOe(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i<n;i++){r.setEnd(t,i+1),r.setStart(t,i);let o=jc(r,1);if(o.top!=o.bottom&&YO(e,o))return{node:t,offset:i+(e.left>=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function YO(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function mOe(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function vOe(t,e,n){let{node:r,offset:i}=sY(e,n),o=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function bOe(t,e,n,r){let i=-1;for(let o=e,s=!1;o!=t.dom;){let a=t.docView.nearestDesc(o,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent&&!s||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,l.left>r.left||l.top>r.top?i=a.posBefore:(l.right<r.left||l.bottom<r.top)&&(i=a.posAfter)),!a.contentDOM&&i<0&&!a.node.isText)return(a.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?a.posBefore:a.posAfter}o=a.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function aY(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let s=t.childNodes[o];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let d=a[l];if(YO(e,d))return aY(s,e,d)}}if((o=(o+1)%r)==i)break}return t}function yOe(t,e){let n=t.dom.ownerDocument,r,i=0,o=sOe(n,e.left,e.top);o&&({node:r,offset:i}=o);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let d=t.dom.getBoundingClientRect();if(!YO(e,d)||(s=aY(t.dom,e,d),!s))return null}if(uo)for(let d=s;r&&d;d=Nv(d))d.draggable&&(r=void 0);if(s=mOe(s,e),r){if(ga&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let d=r.childNodes[i],h;d.nodeName=="IMG"&&(h=d.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&i++}r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=bOe(t,r,i,e))}a==null&&(a=vOe(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function i8(t){return t.top<t.bottom||t.left<t.right}function jc(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(i8(r))return r}return Array.prototype.find.call(n,i8)||t.getBoundingClientRect()}const xOe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function lY(t,e,n){let{node:r,offset:i,atom:o}=t.docView.domFromPos(e,n<0?-1:1),s=US||ga;if(r.nodeType==3)if(s&&(xOe.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=jc(kl(r,i,i),n);if(ga&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let d=jc(kl(r,i-1,i-1),-1);if(d.top==l.top){let h=jc(kl(r,i,i+1),-1);if(h.top!=l.top)return Jg(h,h.left<d.left)}}return l}else{let l=i,d=i,h=n<0?1:-1;return n<0&&!i?(d++,h=-1):n>=0&&i==r.nodeValue.length?(l--,h=1):n<0?l--:d++,Jg(jc(kl(r,l,d),h),h<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==Na(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return h2(l.getBoundingClientRect(),!1)}if(o==null&&i<Na(r)){let l=r.childNodes[i];if(l.nodeType==1)return h2(l.getBoundingClientRect(),!0)}return h2(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==Na(r))){let l=r.childNodes[i-1],d=l.nodeType==3?kl(l,Na(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(d)return Jg(jc(d,1),!1)}if(o==null&&i<Na(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let d=l?l.nodeType==3?kl(l,0,s?0:1):l.nodeType==1?l:null:null;if(d)return Jg(jc(d,-1),!0)}return Jg(jc(r.nodeType==3?kl(r):r,-n),n>=0)}function Jg(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function h2(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function cY(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function wOe(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return cY(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=lY(t,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=kl(a,0,a.nodeValue.length).getClientRects();else continue;for(let d=0;d<l.length;d++){let h=l[d];if(h.bottom>h.top+1&&(n=="up"?s.top-h.top>(h.bottom-s.top)*2:h.bottom-s.bottom>(s.bottom-h.top)*2))return!1}}return!0})}const SOe=/[\u0590-\u08ac]/;function COe(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=t.domSelection();return!SOe.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:s:cY(t,e,()=>{let{focusNode:l,focusOffset:d,anchorNode:h,anchorOffset:p}=t.domSelectionRange(),y=a.caretBidiLevel;a.modify("move",n,"character");let w=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:C,focusOffset:k}=t.domSelectionRange(),D=C&&!w.contains(C.nodeType==1?C:C.parentNode)||l==C&&d==k;try{a.collapse(h,p),l&&(l!=h||d!=p)&&a.extend&&a.extend(l,d)}catch{}return y!=null&&(a.caretBidiLevel=y),D})}let o8=null,s8=null,a8=!1;function EOe(t,e,n){return o8==e&&s8==n?a8:(o8=e,s8=n,a8=n=="up"||n=="down"?wOe(t,e,n):COe(t,e,n))}const Ds=0,l8=1,Id=2,Za=3;class k0{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ds,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].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 n=0,r=this.posAtStart;;n++){let i=this.children[n];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,n,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[n-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[n];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=n>no(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(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==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,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!n||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 n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],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,n){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 dY){i=e-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof uY&&o.side>=0;r--);if(n<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&n&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?no(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,n):{node:this.contentDOM,offset:o?no(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let s=r,a=0;;a++){let l=this.children[a],d=s+l.size;if(i==-1&&e<=d){let h=s+l.border;if(e>=h&&n<=d-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,h);e=s;for(let p=a;p>0;p--){let y=this.children[p-1];if(y.size&&y.dom.parentNode==this.contentDOM&&!y.emptyChildAt(1)){i=no(y.dom)+1;break}e-=y.size}i==-1&&(i=0)}if(i>-1&&(d>n||a==this.children.length-1)){n=d;for(let h=a+1;h<this.children.length;h++){let p=this.children[h];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){o=no(p.dom);break}n+=p.size}o==-1&&(o=this.contentDOM.childNodes.length);break}s=d}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let o=Math.min(e,n),s=Math.max(e,n);for(let y=0,w=0;y<this.children.length;y++){let C=this.children[y],k=w+C.size;if(o>w&&s<k)return C.setSelection(e-w-C.border,n-w-C.border,r,i);w=k}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),d=r.getSelection(),h=!1;if((ga||uo)&&e==n){let{node:y,offset:w}=a;if(y.nodeType==3){if(h=!!(w&&y.nodeValue[w-1]==`
`),h&&w==y.nodeValue.length)for(let C=y,k;C;C=C.parentNode){if(k=C.nextSibling){k.nodeName=="BR"&&(a=l={node:k.parentNode,offset:no(k)+1});break}let D=C.pmViewDesc;if(D&&D.node&&D.node.isBlock)break}}else{let C=y.childNodes[w-1];h=C&&(C.nodeName=="BR"||C.contentEditable=="false")}}if(ga&&d.focusNode&&d.focusNode!=l.node&&d.focusNode.nodeType==1){let y=d.focusNode.childNodes[d.focusOffset];y&&y.contentEditable=="false"&&(i=!0)}if(!(i||h&&uo)&&pf(a.node,a.offset,d.anchorNode,d.anchorOffset)&&pf(l.node,l.offset,d.focusNode,d.focusOffset))return;let p=!1;if((d.extend||e==n)&&!h){d.collapse(a.node,a.offset);try{e!=n&&d.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let w=a;a=l,l=w}let y=document.createRange();y.setEnd(l.node,l.offset),y.setStart(a.node,a.offset),d.removeAllRanges(),d.addRange(y)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],s=r+o.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let a=r+o.border,l=s-o.border;if(e>=a&&n<=l){this.dirty=e==r||n==s?Id:l8,e==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Za:o.markDirty(e-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Id:Za}r=s}this.dirty=Id}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Id:l8;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class uY extends k0{constructor(e,n,r,i){let o,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==Ds&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class AOe extends k0{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class gf extends k0{constructor(e,n,r,i){super(e,[],r,i),this.mark=n}static create(e,n,r,i){let o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return(!s||!s.dom)&&(s=za.renderSpec(document,n.type.spec.toDOM(n,r))),new gf(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Za||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Za&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Ds){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Ds}}slice(e,n,r){let i=gf.create(this.parent,this.mark,!0,r),o=this.children,s=this.size;n<s&&(o=x_(o,n,s,r)),e>0&&(o=x_(o,0,e,r));for(let a=0;a<o.length;a++)o[a].parent=i;return i.children=o,i}}class Eu extends k0{constructor(e,n,r,i,o,s,a,l,d){super(e,[],o,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=a}static create(e,n,r,i,o,s){let a=o.nodeViews[n.type.name],l,d=a&&a(n,o,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),h=d&&d.dom,p=d&&d.contentDOM;if(n.isText){if(!h)h=document.createTextNode(n.text);else if(h.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else h||({dom:h,contentDOM:p}=za.renderSpec(document,n.type.spec.toDOM(n)));!p&&!n.isText&&h.nodeName!="BR"&&(h.hasAttribute("contenteditable")||(h.contentEditable="false"),n.type.spec.draggable&&(h.draggable=!0));let y=h;return h=pY(h,r,n),d?l=new kOe(e,n,r,i,h,p||null,y,d,o,s+1):n.isText?new VS(e,n,r,i,h,y,o):new Eu(e,n,r,i,h,p||null,y,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>ut.empty)}return e}matchesNode(e,n,r){return this.dirty==Ds&&e.eq(this.node)&&y_(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new _Oe(this,s&&s.node,e);OOe(this.node,this.innerDeco,(d,h,p)=>{d.spec.marks?l.syncToMarks(d.spec.marks,r,e):d.type.side>=0&&!p&&l.syncToMarks(h==this.node.childCount?Sn.none:this.node.child(h).marks,r,e),l.placeWidget(d,e,i)},(d,h,p,y)=>{l.syncToMarks(d.marks,r,e);let w;l.findNodeMatch(d,h,p,y)||a&&e.state.selection.from>i&&e.state.selection.to<i+d.nodeSize&&(w=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(d,h,p,w,e)||l.updateNextNode(d,h,p,e,y,i)||l.addNode(d,h,p,e,i),i+=d.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Id)&&(s&&this.protectLocalComposition(e,s),fY(this.contentDOM,this.children,e),Wp&&IOe(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof qn)||r<n||i>n+this.node.content.size)return null;let o=e.domSelectionRange(),s=ROe(o.focusNode,o.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,l=MOe(this.node.content,a,r-n,i-n);return l<0?null:{node:s,pos:l,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new AOe(this,o,n,i);e.input.compositionNodes.push(s),this.children=x_(this.children,r,r+i.length,e,s)}update(e,n,r,i){return this.dirty==Za||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Ds}updateOuterDeco(e){if(y_(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=hY(this.dom,this.nodeDOM,b_(this.outerDeco,this.node,n),b_(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function c8(t,e,n,r,i){pY(r,e,t);let o=new Eu(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class VS extends Eu{constructor(e,n,r,i,o,s,a){super(e,n,r,i,o,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==Za||this.dirty!=Ds&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ds||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Ds,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new VS(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Za)}get domAtom(){return!1}}class dY extends k0{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Ds&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class kOe extends Eu{constructor(e,n,r,i,o,s,a,l,d,h){super(e,n,r,i,o,s,a,d,h),this.spec=l}update(e,n,r,i){if(this.dirty==Za)return!1;if(this.spec.update){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function fY(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=s.dom;if(a.parentNode==t){for(;a!=r;)r=u8(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(a,r);if(s instanceof gf){let l=r?r.previousSibling:t.lastChild;fY(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=u8(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}const Km=function(t){t&&(this.nodeName=t)};Km.prototype=Object.create(null);const Rd=[new Km];function b_(t,e,n){if(t.length==0)return Rd;let r=n?Rd[0]:new Km,i=[r];for(let o=0;o<t.length;o++){let s=t[o].type.attrs;if(s){s.nodeName&&i.push(r=new Km(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&i.length==1&&i.push(r=new Km(e.isInline?"span":"div")),a=="class"?r.class=(r.class?r.class+" ":"")+l:a=="style"?r.style=(r.style?r.style+";":"")+l:a!="nodeName"&&(r[a]=l))}}}return i}function hY(t,e,n,r){if(n==Rd&&r==Rd)return e;let i=e;for(let o=0;o<r.length;o++){let s=r[o],a=n[o];if(o){let l;a&&a.nodeName==s.nodeName&&i!=t&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),a=Rd[0]),i=l}TOe(i,a||Rd[0],s)}return i}function TOe(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&t.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&t.classList.add(i[o]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function pY(t,e,n){return hY(t,t,Rd,b_(e,n,t.nodeType!=1))}function y_(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function u8(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class _Oe{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=DOe(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let i=0,o=this.stack.length>>1,s=Math.min(o,e.length);for(;i<s&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=Ds,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let d=this.top.children[l];if(d.matchesMark(e[o])&&!this.isLocked(d.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=gf.create(this.top,e[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,r,i){let o=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let d=this.top.children[a];if(d.matchesNode(e,n,r)&&!this.preMatch.matched.has(d)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,n,r,i,o){let s=this.top.children[i];return s.dirty==Za&&s.dom==s.contentDOM&&(s.dirty=Id),s.update(e,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,o,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof Eu){let d=this.preMatch.matched.get(l);if(d!=null&&d!=o)return!1;let h=l.dom,p,y=this.isLocked(h)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Za&&y_(n,l.outerDeco));if(!y&&l.update(e,n,r,i))return this.destroyBetween(this.index,a),l.dom!=h&&(this.changed=!0),this.index++,!0;if(!y&&(p=this.recreateWrapper(l,e,n,r,i,s)))return this.top.children[this.index]=p,p.contentDOM&&(p.dirty=Id,p.updateChildren(i,s+1),p.dirty=Ds),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,o,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let a=Eu.create(this.top,n,r,i,o,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,r,i,o){let s=Eu.create(this.top,e,n,r,i,o);s.contentDOM&&s.updateChildren(i,o+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new uY(this.top,e,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof gf;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof VS)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((uo||Fi)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new dY(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function DOe(t,e){let n=e,r=n.children.length,i=t.childCount,o=new Map,s=[];e:for(;i>0;){let a;for(;;)if(r){let d=n.children[r-1];if(d instanceof gf)n=d,r=d.children.length;else{a=d,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}function $Oe(t,e){return t.type.side-e.type.side}function OOe(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let d=0;d<t.childCount;d++){let h=t.child(d);r(h,i,e.forChild(o,h),d),o+=h.nodeSize}return}let s=0,a=[],l=null;for(let d=0;;){let h,p;for(;s<i.length&&i[s].to==o;){let D=i[s++];D.widget&&(h?(p||(p=[h])).push(D):h=D)}if(h)if(p){p.sort($Oe);for(let D=0;D<p.length;D++)n(p[D],d,!!l)}else n(h,d,!!l);let y,w;if(l)w=-1,y=l,l=null;else if(d<t.childCount)w=d,y=t.child(d++);else break;for(let D=0;D<a.length;D++)a[D].to<=o&&a.splice(D--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let C=o+y.nodeSize;if(y.isText){let D=C;s<i.length&&i[s].from<D&&(D=i[s].from);for(let I=0;I<a.length;I++)a[I].to<D&&(D=a[I].to);D<C&&(l=y.cut(D-o),y=y.cut(0,D-o),C=D,w=-1)}let k=y.isInline&&!y.isLeaf?a.filter(D=>!D.inline):a.slice();r(y,k,e.forChild(o,y),w),o=C}}function IOe(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function ROe(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=Na(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function MOe(t,e,n,r){for(let i=0,o=0;i<t.childCount&&o<=r;){let s=t.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<t.childCount;){let d=t.child(i++);if(o+=d.nodeSize,!d.isText)break;l+=d.text}if(o>=n){let d=a<r?l.lastIndexOf(e,r-a-1):-1;if(d>=0&&d+e.length+a>=n)return a+d;if(n==r&&l.length>=r+e.length-a&&l.slice(r-a,r-a+e.length)==e)return r}}return-1}function x_(t,e,n,r,i){let o=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],d=a,h=a+=l.size;d>=n||h<=e?o.push(l):(d<e&&o.push(l.slice(0,e-d,r)),i&&(o.push(i),i=void 0),h>n&&o.push(l.slice(n-d,l.size,r)))}return o}function XO(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,d;if(WS(n)){for(l=a;i&&!i.node;)i=i.parent;let h=i.node;if(i&&h.isAtom&&Xt.isSelectable(h)&&i.parent&&!(h.isInline&&iOe(n.focusNode,n.focusOffset,i.dom))){let p=i.posBefore;d=new Xt(s==p?a:r.resolve(p))}}else{let h=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(h<0)return null;l=r.resolve(h)}if(!d){let h=e=="pointer"||t.state.selection.head<a.pos&&!o?1:-1;d=GO(t,l,a,h)}return d}function gY(t){return t.editable?t.hasFocus():vY(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Zl(t,e=!1){let n=t.state.selection;if(mY(t,n),!!gY(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Fi){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&pf(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)NOe(t);else{let{anchor:r,head:i}=n,o,s;d8&&!(n instanceof qn)&&(n.$from.parent.inlineContent||(o=f8(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=f8(t,n.to))),t.docView.setSelection(r,i,t.root,e),d8&&(o&&h8(o),s&&h8(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&POe(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const d8=uo||Fi&&aOe<63;function f8(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(uo&&i&&i.contentEditable=="false")return p2(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return p2(i);if(o)return p2(o)}}function p2(t){return t.contentEditable="true",uo&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function h8(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function POe(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!gY(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function NOe(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,no(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!i&&!t.state.selection.visible&&Mo&&Cu<=11&&(r.disabled=!0,r.disabled=!1)}function mY(t,e){if(e instanceof Xt){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(p8(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else p8(t)}function p8(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function GO(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||qn.between(e,n,r)}function g8(t){return t.editable&&!t.hasFocus()?!1:vY(t)}function vY(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function LOe(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return pf(e.node,e.offset,n.anchorNode,n.anchorOffset)}function w_(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&Cn.findFrom(o,e)}function Td(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function m8(t,e,n){let r=t.state.selection;if(r instanceof qn){if(!r.empty||n.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let i=w_(t.state,e);return i&&i instanceof Xt?Td(t,i):!1}else if(!(xs&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,s;if(!o||o.isText)return!1;let a=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?Xt.isSelectable(o)?Td(t,new Xt(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):US?Td(t,new qn(t.state.doc.resolve(e<0?a:a+o.nodeSize))):!1:!1}}else{if(r instanceof Xt&&r.node.isInline)return Td(t,new qn(e>0?r.$to:r.$from));{let i=w_(t.state,e);return i?Td(t,i):!1}}}function W1(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Jm(t,e){if(t.contentEditable=="false")return!0;let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ch(t,e){return e<0?FOe(t):BOe(t)}function FOe(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,s=!1;for(ga&&n.nodeType==1&&r<W1(n)&&Jm(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(Jm(a,-1))i=n,o=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(bY(n))break;{let a=n.previousSibling;for(;a&&Jm(a,-1);)i=n.parentNode,o=no(a),a=a.previousSibling;if(a)n=a,r=W1(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?S_(t,n,r):i&&S_(t,i,o)}function BOe(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=W1(n),o,s;for(;;)if(r<i){if(n.nodeType!=1)break;let a=n.childNodes[r];if(Jm(a,1))o=n,s=++r;else break}else{if(bY(n))break;{let a=n.nextSibling;for(;a&&Jm(a,1);)o=a.parentNode,s=no(a)+1,a=a.nextSibling;if(a)n=a,r=0,i=W1(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}o&&S_(t,o,s)}function bY(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function zOe(t,e){for(;t&&e==t.childNodes.length&&!VO(t);)e=no(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function HOe(t,e){for(;t&&!e&&!VO(t);)e=no(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function S_(t,e,n){if(e.nodeType!=3){let o,s;(s=zOe(e,n))?(e=s,n=0):(o=HOe(e,n))&&(e=o,n=o.nodeValue.length)}let r=t.domSelection();if(WS(r)){let o=document.createRange();o.setEnd(e,n),o.setStart(e,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&Zl(t)},50)}function v8(t,e){let n=t.state.doc.resolve(e);if(!(Fi||lOe)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(e<n.end()){let o=t.coordsAtPos(e+1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function b8(t,e,n){let r=t.state.selection;if(r instanceof qn&&!r.empty||n.indexOf("s")>-1||xs&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=w_(t.state,e);if(s&&s instanceof Xt)return Td(t,s)}if(!i.parent.inlineContent){let s=e<0?i:o,a=r instanceof Ro?Cn.near(s,e):Cn.findFrom(s,e);return a?Td(t,a):!1}return!1}function y8(t,e){if(!(t.state.selection instanceof qn))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let s=t.state.tr;return e<0?s.delete(n.pos-o.nodeSize,n.pos):s.delete(n.pos,n.pos+o.nodeSize),t.dispatch(s),!0}return!1}function x8(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function jOe(t){if(!uo||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;x8(t,r,"true"),setTimeout(()=>x8(t,r,"false"),20)}return!1}function WOe(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function UOe(t,e){let n=e.keyCode,r=WOe(e);if(n==8||xs&&n==72&&r=="c")return y8(t,-1)||ch(t,-1);if(n==46&&!e.shiftKey||xs&&n==68&&r=="c")return y8(t,1)||ch(t,1);if(n==13||n==27)return!0;if(n==37||xs&&n==66&&r=="c"){let i=n==37?v8(t,t.state.selection.from)=="ltr"?-1:1:-1;return m8(t,i,r)||ch(t,i)}else if(n==39||xs&&n==70&&r=="c"){let i=n==39?v8(t,t.state.selection.from)=="ltr"?1:-1:1;return m8(t,i,r)||ch(t,i)}else{if(n==38||xs&&n==80&&r=="c")return b8(t,-1,r)||ch(t,-1);if(n==40||xs&&n==78&&r=="c")return jOe(t)||b8(t,1,r)||ch(t,1);if(r==(xs?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function qO(t,e){t.someProp("transformCopied",w=>{e=w(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let w=r.firstChild;n.push(w.type.name,w.attrs!=w.type.defaultAttrs?w.attrs:null),r=w.content}let s=t.someProp("clipboardSerializer")||za.fromSchema(t.state.schema),a=CY(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let d=l.firstChild,h,p=0;for(;d&&d.nodeType==1&&(h=SY[d.nodeName.toLowerCase()]);){for(let w=h.length-1;w>=0;w--){let C=a.createElement(h[w]);for(;l.firstChild;)C.appendChild(l.firstChild);l.appendChild(C),p++}d=l.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${i} ${o}${p?` -${p}`:""} ${JSON.stringify(n)}`);let y=t.someProp("clipboardTextSerializer",w=>w(e,t))||e.content.textBetween(0,e.content.size,`

`);return{dom:l,text:y}}function KO(t,e,n,r,i){let o=i.parent.type.spec.code,s,a;if(!n&&!e)return null;let l=e&&(r||o||!n);if(l){if(t.someProp("transformPastedText",y=>{e=y(e,o||r,t)}),o)return e?new wt(ut.from(t.state.schema.text(e.replace(/\r\n?/g,`
`))),0,0):wt.empty;let p=t.someProp("clipboardTextParser",y=>y(e,i,r,t));if(p)a=p;else{let y=i.marks(),{schema:w}=t.state,C=za.fromSchema(w);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(k=>{let D=s.appendChild(document.createElement("p"));k&&D.appendChild(C.serializeNode(w.text(k,y)))})}}else t.someProp("transformPastedHTML",p=>{n=p(n,t)}),s=XOe(n),US&&GOe(s);let d=s&&s.querySelector("[data-pm-slice]"),h=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(h&&h[3])for(let p=+h[3];p>0;p--){let y=s.firstChild;for(;y&&y.nodeType!=1;)y=y.nextSibling;if(!y)break;s=y}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||jp.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||h),context:i,ruleFromNode(y){return y.nodeName=="BR"&&!y.nextSibling&&y.parentNode&&!VOe.test(y.parentNode.nodeName)?{ignore:!0}:null}})),h)a=qOe(w8(a,+h[1],+h[2]),h[4]);else if(a=wt.maxOpen(YOe(a.content,i),!0),a.openStart||a.openEnd){let p=0,y=0;for(let w=a.content.firstChild;p<a.openStart&&!w.type.spec.isolating;p++,w=w.firstChild);for(let w=a.content.lastChild;y<a.openEnd&&!w.type.spec.isolating;y++,w=w.lastChild);a=w8(a,p,y)}return t.someProp("transformPasted",p=>{a=p(a,t)}),a}const VOe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function YOe(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,s=[];if(t.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),d;if(!l)return s=null;if(d=s.length&&o.length&&xY(l,o,a,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=wY(s[s.length-1],o.length));let h=yY(a,l);s.push(h),i=i.matchType(h.type),o=l}}),s)return ut.from(s)}return t}function yY(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,ut.from(t));return t}function xY(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let o=xY(t,e,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(ut.from(yY(n,t,i+1))))}}function wY(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,wY(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(ut.empty,!0);return t.copy(n.append(r))}function C_(t,e,n,r,i,o){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(o=0),i<r-1&&(a=C_(a,e,n,r,i+1,o)),i>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(ut.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function w8(t,e,n){return e<t.openStart&&(t=new wt(C_(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new wt(C_(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const SY={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let S8=null;function CY(){return S8||(S8=document.implementation.createHTMLDocument("title"))}function XOe(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=CY().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&SY[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=t,i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function GOe(t){let e=t.querySelectorAll(Fi?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function qOe(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:o,openEnd:s}=t;for(let a=r.length-2;a>=0;a-=2){let l=n.nodes[r[a]];if(!l||l.hasRequiredAttrs())break;i=ut.from(l.create(r[a+1],i)),o++,s++}return new wt(i,o,s)}const fo={},ho={},KOe={touchstart:!0,touchmove:!0};class JOe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ZOe(t){for(let e in fo){let n=fo[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{eIe(t,r)&&!JO(t,r)&&(t.editable||!(r.type in ho))&&n(t,r)},KOe[e]?{passive:!0}:void 0)}uo&&t.dom.addEventListener("input",()=>null),E_(t)}function mu(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function QOe(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function E_(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>JO(t,r))})}function JO(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function eIe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function tIe(t,e){!JO(t,e)&&fo[e.type]&&(t.editable||!(e.type in ho))&&fo[e.type](t,e)}ho.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!AY(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Qs&&Fi&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Wp&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,kd(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||UOe(t,n)?n.preventDefault():mu(t,"key")};ho.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};ho.keypress=(t,e)=>{let n=e;if(AY(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||xs&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof qn)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",o=>o(t,r.$from.pos,r.$to.pos,i))&&t.dispatch(t.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function YS(t){return{left:t.clientX,top:t.clientY}}function nIe(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function ZO(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let s=o.depth+1;s>0;s--)if(t.someProp(e,a=>s>o.depth?a(t,n,o.nodeAfter,o.before(s),i,!0):a(t,n,o.node(s),o.before(s),i,!1)))return!0;return!1}function rp(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function rIe(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Xt.isSelectable(r)?(rp(t,new Xt(n),"pointer"),!0):!1}function iIe(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof Xt&&(r=n.node);let o=t.state.doc.resolve(e);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(Xt.isSelectable(a)){r&&n.$from.depth>0&&s>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(s);break}}return i!=null?(rp(t,Xt.create(t.state.doc,i),"pointer"),!0):!1}function oIe(t,e,n,r,i){return ZO(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?iIe(t,n):rIe(t,n))}function sIe(t,e,n,r){return ZO(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function aIe(t,e,n,r){return ZO(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||lIe(t,n,r)}function lIe(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(rp(t,qn.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(s.inlineContent)rp(t,qn.create(r,a+1,a+1+s.content.size),"pointer");else if(Xt.isSelectable(s))rp(t,Xt.create(r,a),"pointer");else continue;return!0}}function QO(t){return Lv(t)}const EY=xs?"metaKey":"ctrlKey";fo.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=QO(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&&nIe(n,t.input.lastClick)&&!n[EY]&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let s=t.posAtCoords(YS(n));s&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new cIe(t,s,n,!!r)):(o=="doubleClick"?sIe:aIe)(t,s.pos,s.inside,n)?n.preventDefault():mu(t,"pointer"))};class cIe{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[EY],this.allowDefault=r.shiftKey;let o,s;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),s=n.inside;else{let h=e.state.doc.resolve(n.pos);o=h.parent,s=h.depth?h.before():0}const a=i?null:r.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:d}=e.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||d instanceof Xt&&d.from<=s&&d.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ga&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),mu(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Zl(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(YS(e))),this.updateAllowDefault(e),this.allowDefault||!n?mu(this.view,"pointer"):oIe(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||uo&&this.mightDrag&&!this.mightDrag.node.isAtom||Fi&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(rp(this.view,Cn.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):mu(this.view,"pointer")}move(e){this.updateAllowDefault(e),mu(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}fo.touchstart=t=>{t.input.lastTouch=Date.now(),QO(t),mu(t,"pointer")};fo.touchmove=t=>{t.input.lastTouch=Date.now(),mu(t,"pointer")};fo.contextmenu=t=>QO(t);function AY(t,e){return t.composing?!0:uo&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const uIe=Qs?5e3:-1;ho.compositionstart=ho.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Lv(t,!0),t.markCursor=null;else if(Lv(t),ga&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else i=s,o=-1}}t.input.composing=!0}kY(t,uIe)};ho.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,kY(t,20))};function kY(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Lv(t),e))}function TY(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=dIe());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function dIe(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Lv(t,e=!1){if(!(Qs&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),TY(t),e||t.docView&&t.docView.dirty){let n=XO(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function fIe(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Up=Mo&&Cu<15||Wp&&cOe<604;fo.copy=ho.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=Up?null:n.clipboardData,s=r.content(),{dom:a,text:l}=qO(t,s);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):fIe(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function hIe(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function pIe(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Fv(t,r.value,null,i,e):Fv(t,r.textContent,r.innerHTML,i,e)},50)}function Fv(t,e,n,r,i){let o=KO(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||wt.empty)))return!0;if(!o)return!1;let s=hIe(o),a=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(o);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ho.paste=(t,e)=>{let n=e;if(t.composing&&!Qs)return;let r=Up?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Fv(t,r.getData("text/plain"),r.getData("text/html"),i,n)?n.preventDefault():pIe(t,n)};class gIe{constructor(e,n){this.slice=e,this.move=n}}const _Y=xs?"altKey":"ctrlKey";fo.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(YS(n));if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Xt?i.to-1:i.to))){if(r&&r.mightDrag)t.dispatch(t.state.tr.setSelection(Xt.create(t.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&t.dispatch(t.state.tr.setSelection(Xt.create(t.state.doc,d.posBefore)))}}let s=t.state.selection.content(),{dom:a,text:l}=qO(t,s);n.dataTransfer.clearData(),n.dataTransfer.setData(Up?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",Up||n.dataTransfer.setData("text/plain",l),t.dragging=new gIe(s,!n[_Y])};fo.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};ho.dragover=ho.dragenter=(t,e)=>e.preventDefault();ho.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let i=t.posAtCoords(YS(n));if(!i)return;let o=t.state.doc.resolve(i.pos),s=r&&r.slice;s?t.someProp("transformPasted",C=>{s=C(s,t)}):s=KO(t,n.dataTransfer.getData(Up?"Text":"text/plain"),Up?null:n.dataTransfer.getData("text/html"),!1,o);let a=!!(r&&!n[_Y]);if(t.someProp("handleDrop",C=>C(t,n,s||wt.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?HO(t.state.doc,o.pos,s):o.pos;l==null&&(l=o.pos);let d=t.state.tr;a&&d.deleteSelection();let h=d.mapping.map(l),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,y=d.doc;if(p?d.replaceRangeWith(h,h,s.content.firstChild):d.replaceRange(h,h,s),d.doc.eq(y))return;let w=d.doc.resolve(h);if(p&&Xt.isSelectable(s.content.firstChild)&&w.nodeAfter&&w.nodeAfter.sameMarkup(s.content.firstChild))d.setSelection(new Xt(w));else{let C=d.mapping.map(l);d.mapping.maps[d.mapping.maps.length-1].forEach((k,D,I,_)=>C=_),d.setSelection(GO(t,w,d.doc.resolve(C)))}t.focus(),t.dispatch(d.setMeta("uiEvent","drop"))};fo.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Zl(t)},20))};fo.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};fo.beforeinput=(t,e)=>{if(Fi&&Qs&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,kd(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in ho)fo[t]=ho[t];function Bv(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class U1{constructor(e,n){this.toDOM=e,this.spec=n||qd,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:s}=e.mapResult(n.from+i,this.side<0?-1:1);return s?null:new Qo(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof U1&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Bv(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Au{constructor(e,n){this.attrs=e,this.spec=n||qd}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=s?null:new Qo(o,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Au&&Bv(this.attrs,e.attrs)&&Bv(this.spec,e.spec)}static is(e){return e.type instanceof Au}destroy(){}}class eI{constructor(e,n){this.attrs=e,this.spec=n||qd}map(e,n,r,i){let o=e.mapResult(n.from+i,1);if(o.deleted)return null;let s=e.mapResult(n.to+i,-1);return s.deleted||s.pos<=o.pos?null:new Qo(o.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),o;return i==n.from&&!(o=e.child(r)).isText&&i+o.nodeSize==n.to}eq(e){return this==e||e instanceof eI&&Bv(this.attrs,e.attrs)&&Bv(this.spec,e.spec)}destroy(){}}class Qo{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Qo(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Qo(e,e,new U1(n,r))}static inline(e,n,r,i){return new Qo(e,n,new Au(r,i))}static node(e,n,r,i){return new Qo(e,n,new eI(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Au}get widget(){return this.type instanceof U1}}const Eh=[],qd={};class zr{constructor(e,n){this.local=e.length?e:Eh,this.children=n.length?n:Eh}static create(e,n){return n.length?V1(n,e,0,qd):Mi}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,o){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,r,i+a,o)}}map(e,n,r){return this==Mi||e.maps.length==0?this:this.mapInner(e,n,0,0,r||qd)}mapInner(e,n,r,i,o){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,r,i);l&&l.type.valid(n,l)?(s||(s=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?mIe(this.children,s||[],e,n,r,i,o):s?new zr(s.sort(Kd),Eh):Mi}add(e,n){return n.length?this==Mi?zr.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,o=0;e.forEach((a,l)=>{let d=l+r,h;if(h=$Y(n,a,d)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(a,h,d+1):i.splice(o,0,l,l+a.nodeSize,V1(h,a,d+1,qd)),o+=3}});let s=DY(o?OY(n):n,-r);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new zr(s.length?this.local.concat(s).sort(Kd):this.local,i||this.children)}remove(e){return e.length==0||this==Mi?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let s,a=r[o]+n,l=r[o+1]+n;for(let h=0,p;h<e.length;h++)(p=e[h])&&p.from>a&&p.to<l&&(e[h]=null,(s||(s=[])).push(p));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[o+2].removeInner(s,a+1);d!=Mi?r[o+2]=d:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,s;o<e.length;o++)if(s=e[o])for(let a=0;a<i.length;a++)i[a].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(a--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new zr(i,r):Mi}forChild(e,n){if(this==Mi)return this;if(n.isLeaf)return zr.empty;let r,i;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(r=this.children[a+2]);break}let o=e+1,s=o+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof Au){let d=Math.max(o,l.from)-o,h=Math.min(s,l.to)-o;d<h&&(i||(i=[])).push(l.copy(d,h))}}if(i){let a=new zr(i.sort(Kd),Eh);return r?new uu([a,r]):a}return r||Mi}eq(e){if(this==e)return!0;if(!(e instanceof zr)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return tI(this.localsInner(e))}localsInner(e){if(this==Mi)return Eh;if(e.inlineContent||!this.local.some(Au.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Au||n.push(this.local[r]);return n}}zr.empty=new zr([],[]);zr.removeOverlap=tI;const Mi=zr.empty;class uu{constructor(e){this.members=e}map(e,n){const r=this.members.map(i=>i.map(e,n,qd));return uu.from(r)}forChild(e,n){if(n.isLeaf)return zr.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(e,n);o!=Mi&&(o instanceof uu?r=r.concat(o.members):r.push(o))}return uu.from(r)}eq(e){if(!(e instanceof uu)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(e);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let s=0;s<o.length;s++)n.push(o[s])}}return n?tI(r?n:n.sort(Kd)):Eh}static from(e){switch(e.length){case 0:return Mi;case 1:return e[0];default:return new uu(e.every(n=>n instanceof zr)?e:e.reduce((n,r)=>n.concat(r instanceof zr?r:r.members),[]))}}}function mIe(t,e,n,r,i,o,s){let a=t.slice();for(let d=0,h=o;d<n.maps.length;d++){let p=0;n.maps[d].forEach((y,w,C,k)=>{let D=k-C-(w-y);for(let I=0;I<a.length;I+=3){let _=a[I+1];if(_<0||y>_+h-p)continue;let L=a[I]+h-p;w>=L?a[I+1]=y<=L?-2:-1:C>=i&&D&&(a[I]+=D,a[I+1]+=D)}p+=D}),h=n.maps[d].map(h,-1)}let l=!1;for(let d=0;d<a.length;d+=3)if(a[d+1]<0){if(a[d+1]==-2){l=!0,a[d+1]=-1;continue}let h=n.map(t[d]+o),p=h-i;if(p<0||p>=r.content.size){l=!0;continue}let y=n.map(t[d+1]+o,-1),w=y-i,{index:C,offset:k}=r.content.findIndex(p),D=r.maybeChild(C);if(D&&k==p&&k+D.nodeSize==w){let I=a[d+2].mapInner(n,D,h+1,t[d]+o+1,s);I!=Mi?(a[d]=p,a[d+1]=w,a[d+2]=I):(a[d+1]=-2,l=!0)}else l=!0}if(l){let d=vIe(a,t,e,n,i,o,s),h=V1(d,r,0,s);e=h.local;for(let p=0;p<a.length;p+=3)a[p+1]<0&&(a.splice(p,3),p-=3);for(let p=0,y=0;p<h.children.length;p+=3){let w=h.children[p];for(;y<a.length&&a[y]<w;)y+=3;a.splice(y,0,h.children[p],h.children[p+1],h.children[p+2])}}return new zr(e.sort(Kd),a)}function DY(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new Qo(i.from+e,i.to+e,i.type))}return n}function vIe(t,e,n,r,i,o,s){function a(l,d){for(let h=0;h<l.local.length;h++){let p=l.local[h].map(r,i,d);p?n.push(p):s.onRemove&&s.onRemove(l.local[h].spec)}for(let h=0;h<l.children.length;h+=3)a(l.children[h+2],l.children[h]+d+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+o+1);return n}function $Y(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let o=0,s;o<t.length;o++)(s=t[o])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),t[o]=null);return i}function OY(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function V1(t,e,n,r){let i=[],o=!1;e.forEach((a,l)=>{let d=$Y(t,a,l+n);if(d){o=!0;let h=V1(d,a,n+l+1,r);h!=Mi&&i.push(l,l+a.nodeSize,h)}});let s=DY(o?OY(t):t,-n).sort(Kd);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||i.length?new zr(s,i):Mi}function Kd(t,e){return t.from-e.from||t.to-e.to}function tI(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let o=e[i];if(o.from==r.from){o.to!=r.to&&(e==t&&(e=t.slice()),e[i]=o.copy(o.from,r.to),C8(e,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,o.from),C8(e,i,r.copy(o.from,r.to)));break}}}return e}function C8(t,e,n){for(;e<t.length&&Kd(n,t[e])>0;)e++;t.splice(e,0,n)}function g2(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Mi&&e.push(r)}),t.cursorWrapper&&e.push(zr.create(t.state.doc,[t.cursorWrapper.deco])),uu.from(e)}const bIe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},yIe=Mo&&Cu<=11;class xIe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class wIe{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new xIe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);Mo&&Cu<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),yIe&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,bIe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(g8(this.view)){if(this.suppressingSelectionUpdates)return Zl(this.view);if(Mo&&Cu<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&pf(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=Nv(o))n.add(o);for(let o=e.anchorNode;o;o=Nv(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&g8(e)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];if(e.editable)for(let h=0;h<n.length;h++){let p=this.registerMutation(n[h],l);p&&(o=o<0?p.from:Math.min(p.from,o),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(a=!0))}if(ga&&l.length>1){let h=l.filter(p=>p.nodeName=="BR");if(h.length==2){let p=h[0],y=h[1];p.parentNode&&p.parentNode.parentNode==y.parentNode?y.remove():p.remove()}}let d=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&WS(r)&&(d=XO(e))&&d.eq(Cn.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Zl(e),this.currentSelection.set(r),e.scrollToSelection()):(o>-1||i)&&(o>-1&&(e.docView.markDirty(o,s),SIe(e)),this.handleDOMChange(o,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Zl(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let h=0;h<e.addedNodes.length;h++)n.push(e.addedNodes[h]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,o=e.nextSibling;if(Mo&&Cu<=11&&e.addedNodes.length)for(let h=0;h<e.addedNodes.length;h++){let{previousSibling:p,nextSibling:y}=e.addedNodes[h];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(i=p),(!y||Array.prototype.indexOf.call(e.addedNodes,y)<0)&&(o=y)}let s=i&&i.parentNode==e.target?no(i)+1:0,a=r.localPosFromDOM(e.target,s,-1),l=o&&o.parentNode==e.target?no(o):e.target.childNodes.length,d=r.localPosFromDOM(e.target,l,1);return{from:a,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let E8=new WeakMap,A8=!1;function SIe(t){if(!E8.has(t)&&(E8.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ga,A8)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),A8=!0}}function CIe(t){let e;function n(l){l.preventDefault(),l.stopImmediatePropagation(),e=l.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,i=e.startOffset,o=e.endContainer,s=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return pf(a.node,a.offset,o,s)&&([r,i,o,s]=[o,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}}function EIe(t,e,n){let{node:r,fromOffset:i,toOffset:o,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),d,h=l.anchorNode;if(h&&t.dom.contains(h.nodeType==1?h:h.parentNode)&&(d=[{node:h,offset:l.anchorOffset}],WS(l)||d.push({node:l.focusNode,offset:l.focusOffset})),Fi&&t.input.lastKeyCode===8)for(let D=o;D>i;D--){let I=r.childNodes[D-1],_=I.pmViewDesc;if(I.nodeName=="BR"&&!_){o=D;break}if(!_||_.size)break}let p=t.state.doc,y=t.someProp("domParser")||jp.fromSchema(t.state.schema),w=p.resolve(s),C=null,k=y.parse(r,{topNode:w.parent,topMatch:w.parent.contentMatchAt(w.index()),topOpen:!0,from:i,to:o,preserveWhitespace:w.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:AIe,context:w});if(d&&d[0].pos!=null){let D=d[0].pos,I=d[1]&&d[1].pos;I==null&&(I=D),C={anchor:D+s,head:I+s}}return{doc:k,sel:C,from:s,to:a}}function AIe(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(uo&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||uo&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const kIe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function TIe(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let Z=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,te=XO(t,Z);if(te&&!t.state.selection.eq(te)){if(Fi&&Qs&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ye=>ye(t,kd(13,"Enter"))))return;let ae=t.state.tr.setSelection(te);Z=="pointer"?ae.setMeta("pointer",!0):Z=="key"&&ae.scrollIntoView(),o&&ae.setMeta("composition",o),t.dispatch(ae)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,d=EIe(t,e,n),h=t.state.doc,p=h.slice(d.from,d.to),y,w;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(y=t.state.selection.to,w="end"):(y=t.state.selection.from,w="start"),t.input.lastKeyCode=null;let C=$Ie(p.content,d.doc.content,d.from,y,w);if((Wp&&t.input.lastIOSEnter>Date.now()-225||Qs)&&i.some(Z=>Z.nodeType==1&&!kIe.test(Z.nodeName))&&(!C||C.endA>=C.endB)&&t.someProp("handleKeyDown",Z=>Z(t,kd(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!C)if(r&&l instanceof qn&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))C={start:l.from,endA:l.to,endB:l.to};else{if(d.sel){let Z=k8(t,t.state.doc,d.sel);if(Z&&!Z.eq(t.state.selection)){let te=t.state.tr.setSelection(Z);o&&te.setMeta("composition",o),t.dispatch(te)}}return}if(Fi&&t.cursorWrapper&&d.sel&&d.sel.anchor==t.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let Z=C.endB-C.start;d.sel={anchor:d.sel.anchor+Z,head:d.sel.anchor+Z}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&C.start==C.endB&&t.state.selection instanceof qn&&(C.start>t.state.selection.from&&C.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?C.start=t.state.selection.from:C.endA<t.state.selection.to&&C.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(C.endB+=t.state.selection.to-C.endA,C.endA=t.state.selection.to)),Mo&&Cu<=11&&C.endB==C.start+1&&C.endA==C.start&&C.start>d.from&&d.doc.textBetween(C.start-d.from-1,C.start-d.from+1)=="  "&&(C.start--,C.endA--,C.endB--);let k=d.doc.resolveNoCache(C.start-d.from),D=d.doc.resolveNoCache(C.endB-d.from),I=h.resolve(C.start),_=k.sameParent(D)&&k.parent.inlineContent&&I.end()>=C.endA,L;if((Wp&&t.input.lastIOSEnter>Date.now()-225&&(!_||i.some(Z=>Z.nodeName=="DIV"||Z.nodeName=="P"))||!_&&k.pos<d.doc.content.size&&!k.sameParent(D)&&(L=Cn.findFrom(d.doc.resolve(k.pos+1),1,!0))&&L.head==D.pos)&&t.someProp("handleKeyDown",Z=>Z(t,kd(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>C.start&&DIe(h,C.start,C.endA,k,D)&&t.someProp("handleKeyDown",Z=>Z(t,kd(8,"Backspace")))){Qs&&Fi&&t.domObserver.suppressSelectionUpdates();return}Fi&&Qs&&C.endB==C.start&&(t.input.lastAndroidDelete=Date.now()),Qs&&!_&&k.start()!=D.start()&&D.parentOffset==0&&k.depth==D.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==C.endA&&(C.endB-=2,D=d.doc.resolveNoCache(C.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(Z){return Z(t,kd(13,"Enter"))})},20));let M=C.start,F=C.endA,H,G,X;if(_){if(k.pos==D.pos)Mo&&Cu<=11&&k.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Zl(t),20)),H=t.state.tr.delete(M,F),G=h.resolve(C.start).marksAcross(h.resolve(C.endA));else if(C.endA==C.endB&&(X=_Ie(k.parent.content.cut(k.parentOffset,D.parentOffset),I.parent.content.cut(I.parentOffset,C.endA-I.start()))))H=t.state.tr,X.type=="add"?H.addMark(M,F,X.mark):H.removeMark(M,F,X.mark);else if(k.parent.child(k.index()).isText&&k.index()==D.index()-(D.textOffset?0:1)){let Z=k.parent.textBetween(k.parentOffset,D.parentOffset);if(t.someProp("handleTextInput",te=>te(t,M,F,Z)))return;H=t.state.tr.insertText(Z,M,F)}}if(H||(H=t.state.tr.replace(M,F,d.doc.slice(C.start-d.from,C.endB-d.from))),d.sel){let Z=k8(t,H.doc,d.sel);Z&&!(Fi&&Qs&&t.composing&&Z.empty&&(C.start!=C.endB||t.input.lastAndroidDelete<Date.now()-100)&&(Z.head==M||Z.head==H.mapping.map(F)-1)||Mo&&Z.empty&&Z.head==M)&&H.setSelection(Z)}G&&H.ensureMarks(G),o&&H.setMeta("composition",o),t.dispatch(H.scrollIntoView())}function k8(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:GO(t,e.resolve(n.anchor),e.resolve(n.head))}function _Ie(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,s,a,l;for(let h=0;h<r.length;h++)i=r[h].removeFromSet(i);for(let h=0;h<n.length;h++)o=n[h].removeFromSet(o);if(i.length==1&&o.length==0)a=i[0],s="add",l=h=>h.mark(a.addToSet(h.marks));else if(i.length==0&&o.length==1)a=o[0],s="remove",l=h=>h.mark(a.removeFromSet(h.marks));else return null;let d=[];for(let h=0;h<e.childCount;h++)d.push(l(e.child(h)));if(ut.from(d).eq(t))return{mark:a,type:s}}function DIe(t,e,n,r,i){if(!r.parent.isTextblock||n-e<=i.pos-r.pos||m2(r,!0,!1)<i.pos)return!1;let o=t.resolve(e);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=t.resolve(m2(o,!0,!0));return!s.parent.isTextblock||s.pos>n||m2(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function m2(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function $Ie(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(s,a));r-=s+l-o}if(s<o&&t.size<e.size){let l=r<=o&&r>=s?o-r:0;o-=l,a=o+(a-s),s=o}else if(a<o){let l=r<=o&&r>=a?o-r:0;o-=l,s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}const OIe=qO,IIe=KO,RIe=Lv;class MIe{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new JOe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(O8),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=D8(this),_8(this),this.nodeViews=$8(this),this.docView=c8(this.state.doc,T8(this),g2(this),this.dom,this),this.domObserver=new wIe(this,(r,i,o,s)=>TIe(this,r,i,o,s)),this.domObserver.start(),ZOe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&E_(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(O8),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){let r=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(TY(this),o=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let y=$8(this);NIe(y,this.nodeViews)&&(this.nodeViews=y,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&E_(this),this.editable=D8(this),_8(this);let a=g2(this),l=T8(this),d=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=i||!this.docView.matchesNode(e.doc,l,a);(h||!e.selection.eq(r.selection))&&(o=!0);let p=d=="preserve"&&o&&this.dom.style.overflowAnchor==null&&fOe(this);if(o){this.domObserver.stop();let y=h&&(Mo||Fi)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&PIe(r.selection,e.selection);if(h){let w=Fi?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=c8(e.doc,l,a,this.dom,this)),w&&!this.trackWrites&&(y=!0)}y||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&LOe(this))?Zl(this,y):(mY(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():p&&hOe(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Xt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&r8(this,n.getBoundingClientRect(),e)}else r8(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(i=n?n(a):a))return i}let o=this.state.plugins;if(o)for(let s=0;s<o.length;s++){let a=o[s].props[e];if(a!=null&&(i=n?n(a):a))return i}}hasFocus(){if(Mo){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&pOe(this.dom),Zl(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}posAtCoords(e){return yOe(this,e)}coordsAtPos(e,n=1){return lY(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return EOe(this,n||this.state,e)}pasteHTML(e,n){return Fv(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Fv(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(QOe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],g2(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return tIe(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return uo&&this.root.nodeType===11&&oOe(this.dom.ownerDocument)==this.dom?CIe(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function T8(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Qo.node(0,t.state.doc.content.size,e)]}function _8(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Qo.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function D8(t){return!t.someProp("editable",e=>e(t.state)===!1)}function PIe(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function $8(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function NIe(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function O8(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}const LIe=Object.freeze(Object.defineProperty({__proto__:null,Decoration:Qo,DecorationSet:zr,EditorView:MIe,__endComposition:RIe,__parseFromClipboard:IIe,__serializeForClipboard:OIe},Symbol.toStringTag,{value:"Module"}));class Or extends Cn{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Or.valid(r)?new Or(r):Cn.near(r)}content(){return wt.empty}eq(e){return e instanceof Or&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Or(e.resolve(n.pos))}getBookmark(){return new nI(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!FIe(e)||!BIe(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Or.valid(e))return e;let i=e.pos,o=null;for(let s=e.depth;;s--){let a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){o=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;i+=n;let l=e.doc.resolve(i);if(Or.valid(l))return l}for(;;){let s=n>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!Xt.isSelectable(o)){e=e.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=s,i+=n;let a=e.doc.resolve(i);if(Or.valid(a))return a}return null}}}Or.prototype.visible=!1;Or.findFrom=Or.findGapCursorFrom;Cn.jsonID("gapcursor",Or);class nI{constructor(e){this.pos=e}map(e){return new nI(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Or.valid(n)?new Or(n):Cn.near(n)}}function FIe(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-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 BIe(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;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 BSt(){return new If({props:{decorations:WIe,createSelectionBetween(t,e,n){return e.pos==n.pos&&Or.valid(n)?new Or(n):null},handleClick:HIe,handleKeyDown:zIe,handleDOMEvents:{beforeinput:jIe}}})}const zIe=UO({ArrowLeft:wy("horiz",-1),ArrowRight:wy("horiz",1),ArrowUp:wy("vert",-1),ArrowDown:wy("vert",1)});function wy(t,e){const n=t=="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,l=s.empty;if(s instanceof qn){if(!o.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let d=Or.findGapCursorFrom(a,e,l);return d?(i&&i(r.tr.setSelection(new Or(d))),!0):!1}}function HIe(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Or.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Xt.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Or(r))),!0)}function jIe(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Or))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=ut.empty;for(let s=r.length-1;s>=0;s--)i=ut.from(r[s].createAndFill(null,i));let o=t.state.tr.replace(n.pos,n.pos,new wt(i,0,0));return o.setSelection(qn.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function WIe(t){if(!(t.selection instanceof Or))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",zr.create(t.doc,[Qo.widget(t.selection.head,e,{key:"gapcursor"})])}class IY{constructor(e,n){this.match=e,this.match=e,this.handler=typeof n=="string"?UIe(n):n}}function UIe(t){return function(e,n,r,i){let o=t;if(n[1]){let s=n[0].lastIndexOf(n[1]);o+=n[0].slice(s+n[1].length),r+=s;let a=r-i;a>0&&(o=n[0].slice(s-a,s)+o,r=i)}return e.tr.insertText(o,r,i)}}const VIe=500;function zSt({rules:t}){let e=new If({state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return I8(n,r,i,o,t,e)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&I8(n,r.pos,r.pos,"",t,e)})}}},isInputRules:!0});return e}function I8(t,e,n,r,i,o){if(t.composing)return!1;let s=t.state,a=s.doc.resolve(e);if(a.parent.type.spec.code)return!1;let l=a.parent.textBetween(Math.max(0,a.parentOffset-VIe),a.parentOffset,null,"￼")+r;for(let d=0;d<i.length;d++){let h=i[d].match.exec(l),p=h&&i[d].handler(s,h,e-(h[0].length-r.length),n);if(p)return t.dispatch(p.setMeta(o,{transform:p,from:e,to:n,text:r})),!0}return!1}const HSt=(t,e)=>{let n=t.plugins;for(let r=0;r<n.length;r++){let i=n[r],o;if(i.spec.isInputRules&&(o=i.getState(t))){if(e){let s=t.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(o.text){let l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else s.delete(o.from,o.to);e(s)}return!0}}return!1};function jSt(t,e,n=null,r){return new IY(t,(i,o,s,a)=>{let l=n instanceof Function?n(o):n,d=i.tr.delete(s,a),h=d.doc.resolve(s),p=h.blockRange(),y=p&&BO(p,e,l);if(!y)return null;d.wrap(p,y);let w=d.doc.resolve(s-1).nodeBefore;return w&&w.type==e&&Of(d.doc,s-1)&&(!r||r(o,w))&&d.join(s-1),d})}function WSt(t,e,n=null){return new IY(t,(r,i,o,s)=>{let a=r.doc.resolve(o),l=n instanceof Function?n(i):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e)?r.tr.delete(o,s).setBlockType(o,o,e,l):null})}var Ct={};const Gu=Bu(B$e),T0=Bu(p$e),RY=Bu(LIe),YIe=Bu(nOe),XIe=Bu(N$e);var rI=Object.defineProperty,GIe=Object.getOwnPropertyDescriptor,qIe=Object.getOwnPropertyNames,KIe=Object.prototype.hasOwnProperty,JIe=(t,e)=>{for(var n in e)rI(t,n,{get:e[n],enumerable:!0})},ZIe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of qIe(e))!KIe.call(t,i)&&i!==n&&rI(t,i,{get:()=>e[i],enumerable:!(r=GIe(e,i))||r.enumerable});return t},QIe=t=>ZIe(rI({},"__esModule",{value:!0}),t),MY={};JIe(MY,{CellBookmark:()=>sI,CellSelection:()=>Dn,ResizeState:()=>Zm,TableMap:()=>pr,TableView:()=>YY,__clipCells:()=>jY,__insertCells:()=>__,__pastedCells:()=>HY,addColSpan:()=>oI,addColumn:()=>aI,addColumnAfter:()=>FRe,addColumnBefore:()=>LRe,addRow:()=>lI,addRowAfter:()=>HRe,addRowBefore:()=>zRe,cellAround:()=>Rf,colCount:()=>dRe,columnIsHeader:()=>NY,columnResizing:()=>ARe,columnResizingPluginKey:()=>Jo,deleteColumn:()=>BRe,deleteRow:()=>jRe,deleteTable:()=>QRe,findCell:()=>uRe,fixTables:()=>BY,fixTablesKey:()=>LY,goToNextCell:()=>ZRe,handlePaste:()=>WY,inSameTable:()=>XS,isInTable:()=>Fs,mergeCells:()=>URe,moveCellForward:()=>PY,nextCell:()=>iI,pointsAtCell:()=>Y1,removeColSpan:()=>Nu,removeColumn:()=>GY,removeRow:()=>KY,rowIsHeader:()=>qY,selectedRect:()=>ya,selectionCell:()=>_0,setCellAttr:()=>YRe,splitCell:()=>VRe,splitCellWithType:()=>JY,tableEditing:()=>e3e,tableEditingKey:()=>Nl,tableNodeTypes:()=>Ti,tableNodes:()=>aRe,toggleHeader:()=>GS,toggleHeaderCell:()=>KRe,toggleHeaderColumn:()=>qRe,toggleHeaderRow:()=>GRe,updateColumnsOnResize:()=>X1});var eRe=QIe(MY),tRe=Gu,gd=T0,na=Gu,R8=RY,A_,k_;if(typeof WeakMap<"u"){let t=new WeakMap;A_=e=>t.get(e),k_=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;A_=r=>{for(let i=0;i<t.length;i+=2)if(t[i]==r)return t[i+1]},k_=(r,i)=>(n==10&&(n=0),t[n++]=r,t[n++]=i)}var pr=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,i=e/this.width|0;let o=r+1,s=i+1;for(let a=1;o<this.width&&this.map[e+a]==n;a++)o++;for(let a=1;s<this.height&&this.map[e+this.width*a]==n;a++)s++;return{left:r,top:i,right:o,bottom:s}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:i,top:o,bottom:s}=this.findCell(t);return e=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(t,e){const{left:n,right:r,top:i,bottom:o}=this.findCell(t),{left:s,right:a,top:l,bottom:d}=this.findCell(e);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,d)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let i=t.left;i<t.right;i++){const o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,!(i==t.left&&i&&this.map[o-1]==s||r==t.top&&r&&this.map[o-this.width]==s)&&e.push(s))}return e}positionAt(t,e,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==t){let s=e+t*this.width;const a=(t+1)*this.width;for(;s<a&&this.map[s]<i;)s++;return s==a?o-1:this.map[s]}i=o}}static get(t){return A_(t)||k_(t,nRe(t))}};function nRe(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=rRe(t),n=t.childCount,r=[];let i=0,o=null;const s=[];for(let d=0,h=e*n;d<h;d++)r[d]=0;for(let d=0,h=0;d<n;d++){const p=t.child(d);h++;for(let C=0;;C++){for(;i<r.length&&r[i]!=0;)i++;if(C==p.childCount)break;const k=p.child(C),{colspan:D,rowspan:I,colwidth:_}=k.attrs;for(let L=0;L<I;L++){if(L+d>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:h,n:I-L});break}const M=i+L*e;for(let F=0;F<D;F++){r[M+F]==0?r[M+F]=h:(o||(o=[])).push({type:"collision",row:d,pos:h,n:D-F});const H=_&&_[F];if(H){const G=(M+F)%e*2,X=s[G];X==null||X!=H&&s[G+1]==1?(s[G]=H,s[G+1]=1):X==H&&s[G+1]++}}}i+=D,h+=k.nodeSize}const y=(d+1)*e;let w=0;for(;i<y;)r[i++]==0&&w++;w&&(o||(o=[])).push({type:"missing",row:d,n:w}),h++}const a=new pr(e,n,r,o);let l=!1;for(let d=0;!l&&d<s.length;d+=2)s[d]!=null&&s[d+1]<n&&(l=!0);return l&&iRe(a,s,t),a}function rRe(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const i=t.child(r);let o=0;if(n)for(let s=0;s<r;s++){const a=t.child(s);for(let l=0;l<a.childCount;l++){const d=a.child(l);s+d.attrs.rowspan>r&&(o+=d.attrs.colspan)}}for(let s=0;s<i.childCount;s++){const a=i.child(s);o+=a.attrs.colspan,a.attrs.rowspan>1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function iRe(t,e,n){t.problems||(t.problems=[]);const r={};for(let i=0;i<t.map.length;i++){const o=t.map[i];if(r[o])continue;r[o]=!0;const s=n.nodeAt(o);if(!s)throw new RangeError(`No cell with offset ${o} found`);let a=null;const l=s.attrs;for(let d=0;d<l.colspan;d++){const h=(i+d)%t.width,p=e[h*2];p!=null&&(!l.colwidth||l.colwidth[d]!=p)&&((a||(a=oRe(l)))[d]=p)}a&&t.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}function oRe(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}var sRe=Gu;function M8(t,e){if(typeof t=="string")return{};const n=t.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(s=>Number(s)):null,i=Number(t.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(t.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(const s in e){const a=e[s].getFromDOM,l=a&&a(t);l!=null&&(o[s]=l)}return o}function P8(t,e){const n={};t.attrs.colspan!=1&&(n.colspan=t.attrs.colspan),t.attrs.rowspan!=1&&(n.rowspan=t.attrs.rowspan),t.attrs.colwidth&&(n["data-colwidth"]=t.attrs.colwidth.join(","));for(const r in e){const i=e[r].setDOMAttr;i&&i(t.attrs[r],n)}return n}function aRe(t){const e=t.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const r in e)n[r]={default:e[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:t.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:t.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:r=>M8(r,e)}],toDOM(r){return["td",P8(r,e),0]}},table_header:{content:t.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:r=>M8(r,e)}],toDOM(r){return["th",P8(r,e),0]}}}}function Ti(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const r=t.nodes[n],i=r.spec.tableRole;i&&(e[i]=r)}}return e}var Nl=new sRe.PluginKey("selectingCells");function Rf(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function lRe(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function Fs(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function _0(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=Rf(e.$head)||cRe(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function cRe(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function Y1(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function PY(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function XS(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function uRe(t){return pr.get(t.node(-1)).findCell(t.pos-t.start(-1))}function dRe(t){return pr.get(t.node(-1)).colCount(t.pos-t.start(-1))}function iI(t,e,n){const r=t.node(-1),i=pr.get(r),o=t.start(-1),s=i.nextCell(t.pos-o,e,n);return s==null?null:t.node(0).resolve(o+s)}function Nu(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function oI(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(e,0,0)}return r}function NY(t,e,n){const r=Ti(e.type.schema).header_cell;for(let i=0;i<t.height;i++)if(e.nodeAt(t.map[n+i*t.width]).type!=r)return!1;return!0}var Dn=class extends na.Selection{constructor(t,e=t){const n=t.node(-1),r=pr.get(n),i=t.start(-1),o=r.rectBetween(t.pos-i,e.pos-i),s=t.node(0),a=r.cellsInRect(o).filter(d=>d!=e.pos-i);a.unshift(e.pos-i);const l=a.map(d=>{const h=n.nodeAt(d);if(!h)throw RangeError(`No cell with offset ${d} found`);const p=i+d+1;return new na.SelectionRange(s.resolve(p),s.resolve(p+h.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=t,this.$headCell=e}map(t,e){const n=t.resolve(e.map(this.$anchorCell.pos)),r=t.resolve(e.map(this.$headCell.pos));if(Y1(n)&&Y1(r)&&XS(n,r)){const i=this.$anchorCell.node(-1)!=n.node(-1);return i&&this.isRowSelection()?Dn.rowSelection(n,r):i&&this.isColSelection()?Dn.colSelection(n,r):new Dn(n,r)}return na.TextSelection.between(n,r)}content(){const t=this.$anchorCell.node(-1),e=pr.get(t),n=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let a=r.top;a<r.bottom;a++){const l=[];for(let d=a*e.width+r.left,h=r.left;h<r.right;h++,d++){const p=e.map[d];if(i[p])continue;i[p]=!0;const y=e.findCell(p);let w=t.nodeAt(p);if(!w)throw RangeError(`No cell with offset ${p} found`);const C=r.left-y.left,k=y.right-r.right;if(C>0||k>0){let D=w.attrs;if(C>0&&(D=Nu(D,0,C)),k>0&&(D=Nu(D,D.colspan-k,k)),y.left<r.left){if(w=w.type.createAndFill(D),!w)throw RangeError(`Could not create cell with attrs ${JSON.stringify(D)}`)}else w=w.type.create(D,w.content)}if(y.top<r.top||y.bottom>r.bottom){const D={...w.attrs,rowspan:Math.min(y.bottom,r.bottom)-Math.max(y.top,r.top)};y.top<r.top?w=w.type.createAndFill(D):w=w.type.create(D,w.content)}l.push(w)}o.push(t.child(a).copy(gd.Fragment.from(l)))}const s=this.isColSelection()&&this.isRowSelection()?t:o;return new gd.Slice(gd.Fragment.from(s),1,1)}replace(t,e=gd.Slice.empty){const n=t.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){const{$from:s,$to:a}=r[o],l=t.mapping.slice(n);t.replace(l.map(s.pos),l.map(a.pos),o?gd.Slice.empty:e)}const i=na.Selection.findFrom(t.doc.resolve(t.mapping.slice(n).map(this.to)),-1);i&&t.setSelection(i)}replaceWith(t,e){this.replace(t,new gd.Slice(gd.Fragment.from(e),0,0))}forEachCell(t){const e=this.$anchorCell.node(-1),n=pr.get(e),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let o=0;o<i.length;o++)t(e.nodeAt(i[o]),r+i[o])}isColSelection(){const t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(Math.min(t,e)>0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,r=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){const n=t.node(-1),r=pr.get(n),i=t.start(-1),o=r.findCell(t.pos-i),s=r.findCell(e.pos-i),a=t.node(0);return o.top<=s.top?(o.top>0&&(t=a.resolve(i+r.map[o.left])),s.bottom<r.height&&(e=a.resolve(i+r.map[r.width*(r.height-1)+s.right-1]))):(s.top>0&&(e=a.resolve(i+r.map[s.left])),o.bottom<r.height&&(t=a.resolve(i+r.map[r.width*(r.height-1)+o.right-1]))),new Dn(t,e)}isRowSelection(){const t=this.$anchorCell.node(-1),e=pr.get(t),n=this.$anchorCell.start(-1),r=e.colCount(this.$anchorCell.pos-n),i=e.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;const o=r+this.$anchorCell.nodeAfter.attrs.colspan,s=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,s)==e.width}eq(t){return t instanceof Dn&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){const n=t.node(-1),r=pr.get(n),i=t.start(-1),o=r.findCell(t.pos-i),s=r.findCell(e.pos-i),a=t.node(0);return o.left<=s.left?(o.left>0&&(t=a.resolve(i+r.map[o.top*r.width])),s.right<r.width&&(e=a.resolve(i+r.map[r.width*(s.top+1)-1]))):(s.left>0&&(e=a.resolve(i+r.map[s.top*r.width])),o.right<r.width&&(t=a.resolve(i+r.map[r.width*(o.top+1)-1]))),new Dn(t,e)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,e){return new Dn(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){return new Dn(t.resolve(e),t.resolve(n))}getBookmark(){return new sI(this.$anchorCell.pos,this.$headCell.pos)}};Dn.prototype.visible=!1;na.Selection.jsonID("cell",Dn);var sI=class{constructor(t,e){this.anchor=t,this.head=e}map(t){return new sI(t.map(this.anchor),t.map(this.head))}resolve(t){const e=t.resolve(this.anchor),n=t.resolve(this.head);return e.parent.type.spec.tableRole=="row"&&n.parent.type.spec.tableRole=="row"&&e.index()<e.parent.childCount&&n.index()<n.parent.childCount&&XS(e,n)?new Dn(e,n):na.Selection.near(n,1)}};function fRe(t){if(!(t.selection instanceof Dn))return null;const e=[];return t.selection.forEachCell((n,r)=>{e.push(R8.Decoration.node(r,r+n.nodeSize,{class:"selectedCell"}))}),R8.DecorationSet.create(t.doc,e)}function hRe({$from:t,$to:e}){if(t.pos==e.pos||t.pos<t.pos-6)return!1;let n=t.pos,r=e.pos,i=t.depth;for(;i>=0&&!(t.after(i+1)<t.end(i));i--,n++);for(let o=e.depth;o>=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function pRe({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function gRe(t,e,n){const r=(e||t).selection,i=(e||t).doc;let o,s;if(r instanceof na.NodeSelection&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")o=Dn.create(i,r.from);else if(s=="row"){const a=i.resolve(r.from+1);o=Dn.rowSelection(a,a)}else if(!n){const a=pr.get(r.node),l=r.from+1,d=l+a.map[a.width*a.height-1];o=Dn.create(i,l+1,d)}}else r instanceof na.TextSelection&&hRe(r)?o=na.TextSelection.create(i,r.from):r instanceof na.TextSelection&&pRe(r)&&(o=na.TextSelection.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}var mRe=Gu,LY=new mRe.PluginKey("fix-tables");function FY(t,e,n,r){const i=t.childCount,o=e.childCount;e:for(let s=0,a=0;s<o;s++){const l=e.child(s);for(let d=a,h=Math.min(i,s+3);d<h;d++)if(t.child(d)==l){a=d+1,n+=l.nodeSize;continue e}r(l,n),a<i&&t.child(a).sameMarkup(l)?FY(t.child(a),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function BY(t,e){let n;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=vRe(t,i,o,n))};return e?e.doc!=t.doc&&FY(e.doc,t.doc,0,r):t.doc.descendants(r),n}function vRe(t,e,n,r){const i=pr.get(e);if(!i.problems)return r;r||(r=t.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const d=i.problems[l];if(d.type=="collision"){const h=e.nodeAt(d.pos);if(!h)continue;const p=h.attrs;for(let y=0;y<p.rowspan;y++)o[d.row+y]+=d.n;r.setNodeMarkup(r.mapping.map(n+1+d.pos),null,Nu(p,p.colspan-d.n,d.n))}else if(d.type=="missing")o[d.row]+=d.n;else if(d.type=="overlong_rowspan"){const h=e.nodeAt(d.pos);if(!h)continue;r.setNodeMarkup(r.mapping.map(n+1+d.pos),null,{...h.attrs,rowspan:h.attrs.rowspan-d.n})}else if(d.type=="colwidth mismatch"){const h=e.nodeAt(d.pos);if(!h)continue;r.setNodeMarkup(r.mapping.map(n+1+d.pos),null,{...h.attrs,colwidth:d.colwidth})}}let s,a;for(let l=0;l<o.length;l++)o[l]&&(s==null&&(s=l),a=l);for(let l=0,d=n+1;l<i.height;l++){const h=e.child(l),p=d+h.nodeSize,y=o[l];if(y>0){let w="cell";h.firstChild&&(w=h.firstChild.type.spec.tableRole);const C=[];for(let D=0;D<y;D++){const I=Ti(t.schema)[w].createAndFill();I&&C.push(I)}const k=(l==0||s==l-1)&&a==l?d+1:p-1;r.insert(r.mapping.map(k),C)}d=p}return r.setMeta(LY,{fixTables:!0})}var zY=T0,Ah=Gu,bRe=YIe,Lu=T0,yRe=XIe;function HY(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const i=e.child(0),o=i.type.spec.tableRole,s=i.type.schema,a=[];if(o=="row")for(let l=0;l<e.childCount;l++){let d=e.child(l).content;const h=l?0:Math.max(0,n-1),p=l<e.childCount-1?0:Math.max(0,r-1);(h||p)&&(d=T_(Ti(s).row,new Lu.Slice(d,h,p)).content),a.push(d)}else if(o=="cell"||o=="header_cell")a.push(n||r?T_(Ti(s).row,new Lu.Slice(e,n,r)).content:e);else return null;return xRe(s,a)}function xRe(t,e){const n=[];for(let i=0;i<e.length;i++){const o=e[i];for(let s=o.childCount-1;s>=0;s--){const{rowspan:a,colspan:l}=o.child(s).attrs;for(let d=i;d<i+a;d++)n[d]=(n[d]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=e.length&&e.push(Lu.Fragment.empty),n[i]<r){const o=Ti(t).cell.createAndFill(),s=[];for(let a=n[i];a<r;a++)s.push(o);e[i]=e[i].append(Lu.Fragment.from(s))}return{height:e.length,width:r,rows:e}}function T_(t,e){const n=t.createAndFill();return new yRe.Transform(n).replace(0,n.content.size,e).doc}function jY({width:t,height:e,rows:n},r,i){if(t!=r){const o=[],s=[];for(let a=0;a<n.length;a++){const l=n[a],d=[];for(let h=o[a]||0,p=0;h<r;p++){let y=l.child(p%l.childCount);h+y.attrs.colspan>r&&(y=y.type.createChecked(Nu(y.attrs,y.attrs.colspan,h+y.attrs.colspan-r),y.content)),d.push(y),h+=y.attrs.colspan;for(let w=1;w<y.attrs.rowspan;w++)o[a+w]=(o[a+w]||0)+y.attrs.colspan}s.push(Lu.Fragment.from(d))}n=s,t=r}if(e!=i){const o=[];for(let s=0,a=0;s<i;s++,a++){const l=[],d=n[a%e];for(let h=0;h<d.childCount;h++){let p=d.child(h);s+p.attrs.rowspan>i&&(p=p.type.create({...p.attrs,rowspan:Math.max(1,i-p.attrs.rowspan)},p.content)),l.push(p)}o.push(Lu.Fragment.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function wRe(t,e,n,r,i,o,s){const a=t.doc.type.schema,l=Ti(a);let d,h;if(i>e.width)for(let p=0,y=0;p<e.height;p++){const w=n.child(p);y+=w.nodeSize;const C=[];let k;w.lastChild==null||w.lastChild.type==l.cell?k=d||(d=l.cell.createAndFill()):k=h||(h=l.header_cell.createAndFill());for(let D=e.width;D<i;D++)C.push(k);t.insert(t.mapping.slice(s).map(y-1+r),C)}if(o>e.height){const p=[];for(let C=0,k=(e.height-1)*e.width;C<Math.max(e.width,i);C++){const D=C>=e.width?!1:n.nodeAt(e.map[k+C]).type==l.header_cell;p.push(D?h||(h=l.header_cell.createAndFill()):d||(d=l.cell.createAndFill()))}const y=l.row.create(null,Lu.Fragment.from(p)),w=[];for(let C=e.height;C<o;C++)w.push(y);t.insert(t.mapping.slice(s).map(r+n.nodeSize-2),w)}return!!(d||h)}function N8(t,e,n,r,i,o,s,a){if(s==0||s==e.height)return!1;let l=!1;for(let d=i;d<o;d++){const h=s*e.width+d,p=e.map[h];if(e.map[h-e.width]==p){l=!0;const y=n.nodeAt(p),{top:w,left:C}=e.findCell(p);t.setNodeMarkup(t.mapping.slice(a).map(p+r),null,{...y.attrs,rowspan:s-w}),t.insert(t.mapping.slice(a).map(e.positionAt(s,C,n)),y.type.createAndFill({...y.attrs,rowspan:w+y.attrs.rowspan-s})),d+=y.attrs.colspan-1}}return l}function L8(t,e,n,r,i,o,s,a){if(s==0||s==e.width)return!1;let l=!1;for(let d=i;d<o;d++){const h=d*e.width+s,p=e.map[h];if(e.map[h-1]==p){l=!0;const y=n.nodeAt(p),w=e.colCount(p),C=t.mapping.slice(a).map(p+r);t.setNodeMarkup(C,null,Nu(y.attrs,s-w,y.attrs.colspan-(s-w))),t.insert(C+y.nodeSize,y.type.createAndFill(Nu(y.attrs,0,s-w))),d+=y.attrs.rowspan-1}}return l}function __(t,e,n,r,i){let o=n?t.doc.nodeAt(n-1):t.doc;if(!o)throw new Error("No table found");let s=pr.get(o);const{top:a,left:l}=r,d=l+i.width,h=a+i.height,p=t.tr;let y=0;function w(){if(o=n?p.doc.nodeAt(n-1):p.doc,!o)throw new Error("No table found");s=pr.get(o),y=p.mapping.maps.length}wRe(p,s,o,n,d,h,y)&&w(),N8(p,s,o,n,l,d,a,y)&&w(),N8(p,s,o,n,l,d,h,y)&&w(),L8(p,s,o,n,a,h,l,y)&&w(),L8(p,s,o,n,a,h,d,y)&&w();for(let C=a;C<h;C++){const k=s.positionAt(C,l,o),D=s.positionAt(C,d,o);p.replace(p.mapping.slice(y).map(k+n),p.mapping.slice(y).map(D+n),new Lu.Slice(i.rows[C-a],0,0))}w(),p.setSelection(new Dn(p.doc.resolve(n+s.positionAt(a,l,o)),p.doc.resolve(n+s.positionAt(h-1,d-1,o)))),e(p)}var SRe=(0,bRe.keydownHandler)({ArrowLeft:Sy("horiz",-1),ArrowRight:Sy("horiz",1),ArrowUp:Sy("vert",-1),ArrowDown:Sy("vert",1),"Shift-ArrowLeft":Cy("horiz",-1),"Shift-ArrowRight":Cy("horiz",1),"Shift-ArrowUp":Cy("vert",-1),"Shift-ArrowDown":Cy("vert",1),Backspace:Ey,"Mod-Backspace":Ey,Delete:Ey,"Mod-Delete":Ey});function Cx(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function Sy(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Dn)return Cx(n,r,Ah.Selection.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;const s=UY(i,t,e);if(s==null)return!1;if(t=="horiz")return Cx(n,r,Ah.Selection.near(n.doc.resolve(o.head+e),e));{const a=n.doc.resolve(s),l=iI(a,t,e);let d;return l?d=Ah.Selection.near(l,1):e<0?d=Ah.Selection.near(n.doc.resolve(a.before(-1)),-1):d=Ah.Selection.near(n.doc.resolve(a.after(-1)),1),Cx(n,r,d)}}}function Cy(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let s;if(o instanceof Dn)s=o;else{const l=UY(i,t,e);if(l==null)return!1;s=new Dn(n.doc.resolve(l))}const a=iI(s.$headCell,t,e);return a?Cx(n,r,new Dn(s.$anchorCell,a)):!1}}function Ey(t,e){const n=t.selection;if(!(n instanceof Dn))return!1;if(e){const r=t.tr,i=Ti(t.schema).cell.createAndFill().content;n.forEachCell((o,s)=>{o.content.eq(i)||r.replace(r.mapping.map(s+1),r.mapping.map(s+o.nodeSize-1),new zY.Slice(i,0,0))}),r.docChanged&&e(r)}return!0}function CRe(t,e){const n=t.state.doc,r=Rf(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Dn(r))),!0):!1}function WY(t,e,n){if(!Fs(t.state))return!1;let r=HY(n);const i=t.state.selection;if(i instanceof Dn){r||(r={width:1,height:1,rows:[zY.Fragment.from(T_(Ti(t.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),a=pr.get(o).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return r=jY(r,a.right-a.left,a.bottom-a.top),__(t.state,t.dispatch,s,a,r),!0}else if(r){const o=_0(t.state),s=o.start(-1);return __(t.state,t.dispatch,s,pr.get(o.node(-1)).findCell(o.pos-s),r),!0}else return!1}function ERe(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=F8(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof Dn)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=Rf(t.state.selection.$anchor))!=null&&((n=v2(t,e))==null?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,d){let h=v2(t,d);const p=Nl.getState(t.state)==null;if(!h||!XS(l,h))if(p)h=l;else return;const y=new Dn(l,h);if(p||!t.state.selection.eq(y)){const w=t.state.tr.setSelection(y);p&&w.setMeta(Nl,l.pos),t.dispatch(w)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),Nl.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(Nl,-1))}function a(l){const d=l,h=Nl.getState(t.state);let p;if(h!=null)p=t.state.doc.resolve(h);else if(F8(t,d.target)!=r&&(p=v2(t,e),!p))return s();p&&o(p,d)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function UY(t,e,n){if(!(t.state.selection instanceof Ah.TextSelection))return null;const{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const a=r.before(i),l=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(l)?a:null}}return null}function F8(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function v2(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?Rf(t.state.doc.resolve(n.pos)):null}var VY=Gu,b2=RY,YY=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),X1(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,X1(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function X1(t,e,n,r,i,o){var s;let a=0,l=!0,d=e.firstChild;const h=t.firstChild;if(h){for(let p=0,y=0;p<h.childCount;p++){const{colspan:w,colwidth:C}=h.child(p).attrs;for(let k=0;k<w;k++,y++){const D=i==y?o:C&&C[k],I=D?D+"px":"";a+=D||r,D||(l=!1),d?(d.style.width!=I&&(d.style.width=I),d=d.nextSibling):e.appendChild(document.createElement("col")).style.width=I}}for(;d;){const p=d.nextSibling;(s=d.parentNode)==null||s.removeChild(d),d=p}l?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var Jo=new VY.PluginKey("tableColumnResizing");function ARe({handleWidth:t=5,cellMinWidth:e=25,View:n=YY,lastColumnResizable:r=!0}={}){const i=new VY.Plugin({key:Jo,state:{init(o,s){return i.spec.props.nodeViews[Ti(s.schema).table.name]=(a,l)=>new n(a,e,l),new Zm(-1,!1)},apply(o,s){return s.apply(o)}},props:{attributes:o=>{const s=Jo.getState(o);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(o,s)=>{kRe(o,s,t,e,r)},mouseleave:o=>{TRe(o)},mousedown:(o,s)=>{_Re(o,s,e)}},decorations:o=>{const s=Jo.getState(o);if(s&&s.activeHandle>-1)return MRe(o,s.activeHandle)},nodeViews:{}}});return i}var Zm=class{constructor(t,e){this.activeHandle=t,this.dragging=e}apply(t){const e=this,n=t.getMeta(Jo);if(n&&n.setHandle!=null)return new Zm(n.setHandle,!1);if(n&&n.setDragging!==void 0)return new Zm(e.activeHandle,n.setDragging);if(e.activeHandle>-1&&t.docChanged){let r=t.mapping.map(e.activeHandle,-1);return Y1(t.doc.resolve(r))||(r=-1),new Zm(r,e.dragging)}return e}};function kRe(t,e,n,r,i){const o=Jo.getState(t.state);if(o&&!o.dragging){const s=$Re(e.target);let a=-1;if(s){const{left:l,right:d}=s.getBoundingClientRect();e.clientX-l<=n?a=B8(t,e,"left",n):d-e.clientX<=n&&(a=B8(t,e,"right",n))}if(a!=o.activeHandle){if(!i&&a!==-1){const l=t.state.doc.resolve(a),d=l.node(-1),h=pr.get(d),p=l.start(-1);if(h.colCount(l.pos-p)+l.nodeAfter.attrs.colspan-1==h.width-1)return}XY(t,a)}}}function TRe(t){const e=Jo.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&XY(t,-1)}function _Re(t,e,n){const r=Jo.getState(t.state);if(!r||r.activeHandle==-1||r.dragging)return!1;const i=t.state.doc.nodeAt(r.activeHandle),o=DRe(t,r.activeHandle,i.attrs);t.dispatch(t.state.tr.setMeta(Jo,{setDragging:{startX:e.clientX,startWidth:o}}));function s(l){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);const d=Jo.getState(t.state);d!=null&&d.dragging&&(ORe(t,d.activeHandle,z8(d.dragging,l,n)),t.dispatch(t.state.tr.setMeta(Jo,{setDragging:null})))}function a(l){if(!l.which)return s(l);const d=Jo.getState(t.state);if(d&&d.dragging){const h=z8(d.dragging,l,n);IRe(t,d.activeHandle,h,n)}}return window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),e.preventDefault(),!0}function DRe(t,e,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=t.domAtPos(e);let a=o.node.childNodes[o.offset].offsetWidth,l=n;if(r)for(let d=0;d<n;d++)r[d]&&(a-=r[d],l--);return a/l}function $Re(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function B8(t,e,n,r){const i=n=="right"?-r:r,o=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!o)return-1;const{pos:s}=o,a=Rf(t.state.doc.resolve(s));if(!a)return-1;if(n=="right")return a.pos;const l=pr.get(a.node(-1)),d=a.start(-1),h=l.map.indexOf(a.pos-d);return h%l.width==0?-1:d+l.map[h-1]}function z8(t,e,n){const r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function XY(t,e){t.dispatch(t.state.tr.setMeta(Jo,{setHandle:e}))}function ORe(t,e,n){const r=t.state.doc.resolve(e),i=r.node(-1),o=pr.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=t.state.tr;for(let d=0;d<o.height;d++){const h=d*o.width+a;if(d&&o.map[h]==o.map[h-o.width])continue;const p=o.map[h],y=i.nodeAt(p).attrs,w=y.colspan==1?0:a-o.colCount(p);if(y.colwidth&&y.colwidth[w]==n)continue;const C=y.colwidth?y.colwidth.slice():RRe(y.colspan);C[w]=n,l.setNodeMarkup(s+p,null,{...y,colwidth:C})}l.docChanged&&t.dispatch(l)}function IRe(t,e,n,r){const i=t.state.doc.resolve(e),o=i.node(-1),s=i.start(-1),a=pr.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1;let l=t.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&X1(o,l.firstChild,l,r,a,n)}function RRe(t){return Array(t).fill(0)}function MRe(t,e){const n=[],r=t.doc.resolve(e),i=r.node(-1);if(!i)return b2.DecorationSet.empty;const o=pr.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan;for(let l=0;l<o.height;l++){const d=a+l*o.width-1;if((a==o.width||o.map[d]!=o.map[d+1])&&(l==0||o.map[d]!=o.map[d-o.width])){const h=o.map[d],p=s+h+i.nodeAt(h).nodeSize-1,y=document.createElement("div");y.className="column-resize-handle",n.push(b2.Decoration.widget(p,y))}}return b2.DecorationSet.create(t.doc,n)}var PRe=T0,NRe=Gu;function ya(t){const e=t.selection,n=_0(t),r=n.node(-1),i=n.start(-1),o=pr.get(r);return{...e instanceof Dn?o.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function aI(t,{map:e,tableStart:n,table:r},i){let o=i>0?-1:0;NY(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let s=0;s<e.height;s++){const a=s*e.width+i;if(i>0&&i<e.width&&e.map[a-1]==e.map[a]){const l=e.map[a],d=r.nodeAt(l);t.setNodeMarkup(t.mapping.map(n+l),null,oI(d.attrs,i-e.colCount(l))),s+=d.attrs.rowspan-1}else{const l=o==null?Ti(r.type.schema).cell:r.nodeAt(e.map[a+o]).type,d=e.positionAt(s,i,r);t.insert(t.mapping.map(n+d),l.createAndFill())}}return t}function LRe(t,e){if(!Fs(t))return!1;if(e){const n=ya(t);e(aI(t.tr,n,n.left))}return!0}function FRe(t,e){if(!Fs(t))return!1;if(e){const n=ya(t);e(aI(t.tr,n,n.right))}return!0}function GY(t,{map:e,table:n,tableStart:r},i){const o=t.mapping.maps.length;for(let s=0;s<e.height;){const a=s*e.width+i,l=e.map[a],d=n.nodeAt(l),h=d.attrs;if(i>0&&e.map[a-1]==l||i<e.width-1&&e.map[a+1]==l)t.setNodeMarkup(t.mapping.slice(o).map(r+l),null,Nu(h,i-e.colCount(l)));else{const p=t.mapping.slice(o).map(r+l);t.delete(p,p+d.nodeSize)}s+=h.rowspan}}function BRe(t,e){if(!Fs(t))return!1;if(e){const n=ya(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;GY(r,n,i),i!=n.left;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=pr.get(o)}e(r)}return!0}function qY(t,e,n){var r;const i=Ti(e.type.schema).header_cell;for(let o=0;o<t.width;o++)if(((r=e.nodeAt(t.map[o+n*t.width]))==null?void 0:r.type)!=i)return!1;return!0}function lI(t,{map:e,tableStart:n,table:r},i){var o;let s=n;for(let d=0;d<i;d++)s+=r.child(d).nodeSize;const a=[];let l=i>0?-1:0;qY(e,r,i+l)&&(l=i==0||i==e.height?null:0);for(let d=0,h=e.width*i;d<e.width;d++,h++)if(i>0&&i<e.height&&e.map[h]==e.map[h-e.width]){const p=e.map[h],y=r.nodeAt(p).attrs;t.setNodeMarkup(n+p,null,{...y,rowspan:y.rowspan+1}),d+=y.colspan-1}else{const p=l==null?Ti(r.type.schema).cell:(o=r.nodeAt(e.map[h+l*e.width]))==null?void 0:o.type,y=p==null?void 0:p.createAndFill();y&&a.push(y)}return t.insert(s,Ti(r.type.schema).row.create(null,a)),t}function zRe(t,e){if(!Fs(t))return!1;if(e){const n=ya(t);e(lI(t.tr,n,n.top))}return!0}function HRe(t,e){if(!Fs(t))return!1;if(e){const n=ya(t);e(lI(t.tr,n,n.bottom))}return!0}function KY(t,{map:e,table:n,tableStart:r},i){let o=0;for(let l=0;l<i;l++)o+=n.child(l).nodeSize;const s=o+n.child(i).nodeSize,a=t.mapping.maps.length;t.delete(o+r,s+r);for(let l=0,d=i*e.width;l<e.width;l++,d++){const h=e.map[d];if(i>0&&h==e.map[d-e.width]){const p=n.nodeAt(h).attrs;t.setNodeMarkup(t.mapping.slice(a).map(h+r),null,{...p,rowspan:p.rowspan-1}),l+=p.colspan-1}else if(i<e.width&&h==e.map[d+e.width]){const p=n.nodeAt(h),y=p.attrs,w=p.type.create({...y,rowspan:p.attrs.rowspan-1},p.content),C=e.positionAt(i+1,l,n);t.insert(t.mapping.slice(a).map(r+C),w),l+=y.colspan-1}}}function jRe(t,e){if(!Fs(t))return!1;if(e){const n=ya(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;KY(r,n,i),i!=n.top;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=pr.get(n.table)}e(r)}return!0}function H8(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function WRe({width:t,height:e,map:n},r){let i=r.top*t+r.left,o=i,s=(r.bottom-1)*t+r.left,a=i+(r.right-r.left-1);for(let l=r.top;l<r.bottom;l++){if(r.left>0&&n[o]==n[o-1]||r.right<t&&n[a]==n[a+1])return!0;o+=t,a+=t}for(let l=r.left;l<r.right;l++){if(r.top>0&&n[i]==n[i-t]||r.bottom<e&&n[s]==n[s+t])return!0;i++,s++}return!1}function URe(t,e){const n=t.selection;if(!(n instanceof Dn)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=ya(t),{map:i}=r;if(WRe(i,r))return!1;if(e){const o=t.tr,s={};let a=PRe.Fragment.empty,l,d;for(let h=r.top;h<r.bottom;h++)for(let p=r.left;p<r.right;p++){const y=i.map[h*i.width+p],w=r.table.nodeAt(y);if(!(s[y]||!w))if(s[y]=!0,l==null)l=y,d=w;else{H8(w)||(a=a.append(w.content));const C=o.mapping.map(y+r.tableStart);o.delete(C,C+w.nodeSize)}}if(l==null||d==null)return!0;if(o.setNodeMarkup(l+r.tableStart,null,{...oI(d.attrs,d.attrs.colspan,r.right-r.left-d.attrs.colspan),rowspan:r.bottom-r.top}),a.size){const h=l+1+d.content.size,p=H8(d)?l+1:h;o.replaceWith(p+r.tableStart,h+r.tableStart,a)}o.setSelection(new Dn(o.doc.resolve(l+r.tableStart))),e(o)}return!0}function VRe(t,e){const n=Ti(t.schema);return JY(({node:r})=>n[r.type.spec.tableRole])(t,e)}function JY(t){return(e,n)=>{var r;const i=e.selection;let o,s;if(i instanceof Dn){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(o=lRe(i.$from),!o)return!1;s=(r=Rf(i.$from))==null?void 0:r.pos}if(o==null||s==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(n){let a=o.attrs;const l=[],d=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const h=ya(e),p=e.tr;for(let w=0;w<h.right-h.left;w++)l.push(d?{...a,colwidth:d&&d[w]?[d[w]]:null}:a);let y;for(let w=h.top;w<h.bottom;w++){let C=h.map.positionAt(w,h.left,h.table);w==h.top&&(C+=o.nodeSize);for(let k=h.left,D=0;k<h.right;k++,D++)k==h.left&&w==h.top||p.insert(y=p.mapping.map(C+h.tableStart,1),t({node:o,row:w,col:k}).createAndFill(l[D]))}p.setNodeMarkup(s,t({node:o,row:h.top,col:h.left}),l[0]),i instanceof Dn&&p.setSelection(new Dn(p.doc.resolve(i.$anchorCell.pos),y?p.doc.resolve(y):void 0)),n(p)}return!0}}function YRe(t,e){return function(n,r){if(!Fs(n))return!1;const i=_0(n);if(i.nodeAfter.attrs[t]===e)return!1;if(r){const o=n.tr;n.selection instanceof Dn?n.selection.forEachCell((s,a)=>{s.attrs[t]!==e&&o.setNodeMarkup(a,null,{...s.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function XRe(t){return function(e,n){if(!Fs(e))return!1;if(n){const r=Ti(e.schema),i=ya(e),o=e.tr,s=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(l=>i.table.nodeAt(l));for(let l=0;l<s.length;l++)a[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[l],r.cell,a[l].attrs);if(o.steps.length==0)for(let l=0;l<s.length;l++)o.setNodeMarkup(i.tableStart+s[l],r.header_cell,a[l].attrs);n(o)}return!0}}function j8(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let i=0;i<r.length;i++){const o=e.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function GS(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?XRe(t):function(n,r){if(!Fs(n))return!1;if(r){const i=Ti(n.schema),o=ya(n),s=n.tr,a=j8("row",o,i),l=j8("column",o,i),h=(t==="column"?a:t==="row"?l:!1)?1:0,p=t=="column"?{left:0,top:h,right:1,bottom:o.map.height}:t=="row"?{left:h,top:0,right:o.map.width,bottom:1}:o,y=t=="column"?l?i.cell:i.header_cell:t=="row"?a?i.cell:i.header_cell:i.cell;o.map.cellsInRect(p).forEach(w=>{const C=w+o.tableStart,k=s.doc.nodeAt(C);k&&s.setNodeMarkup(C,y,k.attrs)}),r(s)}return!0}}var GRe=GS("row",{useDeprecatedLogic:!0}),qRe=GS("column",{useDeprecatedLogic:!0}),KRe=GS("cell",{useDeprecatedLogic:!0});function JRe(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){const o=t.node(-1).child(r),s=o.lastChild;if(s)return i-1-s.nodeSize;i-=o.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let r=t.indexAfter(-1),i=t.after();r<n.childCount;r++){const o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function ZRe(t){return function(e,n){if(!Fs(e))return!1;const r=JRe(_0(e),t);if(r==null)return!1;if(n){const i=e.doc.resolve(r);n(e.tr.setSelection(NRe.TextSelection.between(i,PY(i))).scrollIntoView())}return!0}}function QRe(t,e){const n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function e3e({allowTableNodeSelection:t=!1}={}){return new tRe.Plugin({key:Nl,state:{init(){return null},apply(e,n){const r=e.getMeta(Nl);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:i,pos:o}=e.mapping.mapResult(n);return i?null:o}},props:{decorations:fRe,handleDOMEvents:{mousedown:ERe},createSelectionBetween(e){return Nl.getState(e.state)!=null?e.state.selection:null},handleTripleClick:CRe,handleKeyDown:SRe,handlePaste:WY},appendTransaction(e,n,r){return gRe(r,BY(r,n),t)}})}Object.defineProperty(Ct,"__esModule",{value:!0});var qu=Gu,zv=T0,Hn=eRe,t3e=function(e){return function(n){var r=dg(e)(n.selection);return r?tX(r.pos)(n):n}},ZY=function(e,n){return function(r){Array.isArray(e)||(e=[e]);for(var i=0,o=e.length;i<o;i++){var s=dg(e[i])(r.selection);if(s){var a=a3e(s.pos,n)(r);if(a!==r)return a}}return r}},n3e=function(e){if(mf(e.selection)){var n=e.selection.$from.pos,r=e.selection.$to.pos;return Cr(e.delete(n,r))}return e},QY=function(e){return function(n){if(mf(n.selection)){var r=n.selection,i=r.$from,o=r.$to;if(e instanceof zv.Fragment&&i.parent.canReplace(i.index(),i.indexAfter(),e)||i.parent.canReplaceWith(i.index(),i.indexAfter(),e.type))return Cr(n.replaceWith(i.pos,o.pos,e).setSelection(new qu.NodeSelection(n.doc.resolve(i.pos))))}return n}},Vp=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(r){var i=qu.Selection.findFrom(r.doc.resolve(e),n,!0);return i?r.setSelection(i):r}},D_=function(e){return e.type&&e.type.spec.selectable},r3e=function(e){return D_(e)&&e.type.isLeaf},y2=function(e,n,r){return r3e(e)?r.setSelection(new qu.NodeSelection(r.doc.resolve(n))):Vp(n)(r)},eX=function(e,n,r){return function(i){var o=typeof n=="number",s=i.selection.$from,a=o?i.doc.resolve(n):mf(i.selection)?i.doc.resolve(s.pos+1):s,l=a.parent;if(mf(i.selection)&&r){var d=i;if(i=QY(e)(i),d!==i)return i}if(c3e(l)){var h=i;if(i=ZY(l.type,e)(i),h!==i){var p=D_(e)?a.before(a.depth):a.pos;return y2(e,p,i)}}if($_(a,e)){i.insert(a.pos,e);var y=o?a.pos:D_(e)?i.selection.$anchor.pos-1:i.selection.$anchor.pos;return Cr(y2(e,y,i))}for(var w=a.depth;w>0;w--){var C=a.after(w),k=i.doc.resolve(C);if($_(k,e))return i.insert(C,e),Cr(y2(e,C,i))}return i}},i3e=function(e,n,r,i){return function(o){var s=dg(e)(o.selection);return s?Cr(o.setNodeMarkup(s.pos,n,Object.assign({},s.node.attrs,r),i)):o}},o3e=function(e){return function(n){if(!mf(n.selection)){var r=dg(e)(n.selection);if(r)return Cr(n.setSelection(qu.NodeSelection.create(n.doc,r.pos)))}return n}},s3e=function(e){var n=sX(e.selection);return typeof n=="number"?tX(n)(e):e},mf=function(e){return e instanceof qu.NodeSelection},D0=function(e,n){return Array.isArray(e)&&e.indexOf(n.type)>-1||n.type===e},Cr=function(e){return Object.assign(Object.create(e),e).setTime(Date.now())},a3e=function(e,n){return function(r){var i=r.doc.nodeAt(e),o=r.doc.resolve(e);if(l3e(o,n)){r=r.replaceWith(e,e+i.nodeSize,n);var s=r.selection.$from.pos-1;return r=Vp(Math.max(s,0),-1)(r),r=Vp(r.selection.$from.start())(r),Cr(r)}return r}},l3e=function(e,n){var r=e.node(e.depth);return r&&r.type.validContent(n instanceof zv.Fragment?n:zv.Fragment.from(n))},tX=function(e){return function(n){var r=n.doc.nodeAt(e);return Cr(n.delete(e,e+r.nodeSize))}},cI=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;var n={};return Object.keys(e.nodes).forEach(function(r){var i=e.nodes[r];i.spec.tableRole&&(n[i.spec.tableRole]=i)}),e.cached.tableNodeTypes=n,n},$_=function(e,n){var r=e.index();return n instanceof zv.Fragment?e.parent.canReplace(r,r,n):n instanceof zv.Node?e.parent.canReplaceWith(r,r,n.type):!1},c3e=function(e){return!e||e.type.name==="paragraph"&&e.nodeSize===2},u3e=function(e){var n=function(i){return i.type.spec.tableRole&&/table/i.test(i.type.spec.tableRole)};return O0(e,n)},W8=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return n?e.createChecked(null,n):e.createAndFill()},uI=function(e){return function(n){for(var r=Hn.TableMap.get(n.$anchorCell.node(-1)),i=n.$anchorCell.start(-1),o=r.cellsInRect(e),s=r.cellsInRect(r.rectBetween(n.$anchorCell.pos-i,n.$headCell.pos-i)),a=0,l=o.length;a<l;a++)if(s.indexOf(o[a])===-1)return!1;return!0}},U8=function(e){return e[0].map(function(n,r){return e.map(function(i){return i[r]})})},dI=function(e){for(var n=Hn.TableMap.get(e),r=[],i=0;i<n.height;i++){for(var o=[],s={},a=0;a<n.width;a++){var l=n.map[i*n.width+a],d=e.nodeAt(l),h=n.findCell(l);if(s[l]||h.top!==i){o.push(null);continue}s[l]=!0,o.push(d)}r.push(o)}return r},fI=function(e,n){for(var r=[],i=Hn.TableMap.get(e),o=0;o<i.height;o++){for(var s=e.child(o),a=[],l=0;l<i.width;l++)if(n[o][l]){var d=i.map[o*i.width+l],h=n[o][l],p=e.nodeAt(d),y=p.type.createChecked(Object.assign({},h.attrs),h.content,h.marks);a.push(y)}r.push(s.type.createChecked(s.attrs,a,s.marks))}var w=e.type.createChecked(e.attrs,r,e.marks);return w},d3e=function(e,n,r,i){var o=U8(dI(e.node));return o=nX(o,n,r,i),o=U8(o),fI(e.node,o)},f3e=function(e,n,r,i){var o=dI(e.node);return o=nX(o,n,r,i),fI(e.node,o)},nX=function(e,n,r,i){var o=n[0]>r[0]?-1:1,s=e.splice(n[0],n.length),a=s.length%2===0?1:0,l=void 0;return i===-1&&o===1?l=r[0]-1:i===1&&o===-1?l=r[r.length-1]-a+1:l=o===-1?r[0]:r[r.length-1]-a,e.splice.apply(e,[l,0].concat(s)),e},rX=function(e,n,r,i){var o=e>n?-1:1,s="Target position is invalid, you can't move the "+i+" "+e+" to "+n+", the target can't be split. You could use tryToFit option.";if(o===1){if(r.slice(0,r.length-1).indexOf(n)!==-1)throw new Error(s)}else if(r.slice(1).indexOf(n)!==-1)throw new Error(s);return!0},$0=function(e){return function(n){var r=n.$from;return O0(r,e)}},O0=function(e,n){for(var r=e.depth;r>0;r--){var i=e.node(r);if(n(i))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:i}}},iX=function(e,n){return function(r){var i=$0(e)(r);if(i)return aX(i.pos,n)}},oX=function(e){return function(n){return!!$0(e)(n)}},dg=function(e){return function(n){return $0(function(r){return D0(e,r)})(n)}},h3e=function(e,n){return O0(e,function(r){return D0(n,r)})},p3e=function(e){return function(n){return oX(function(r){return D0(e,r)})(n)}},g3e=function(e,n){return function(r){return iX(function(i){return D0(e,i)},n)(r)}},m3e=function(e){return function(n){if(mf(n)){var r=n.node,i=n.$from;if(D0(e,r))return{node:r,pos:i.pos,depth:i.depth}}}},sX=function(e){var n=e.$from.nodeBefore,r=qu.Selection.findFrom(e.$from,-1);if(r&&n){var i=dg(n.type)(r);return i?i.pos:r.$from.pos}},aX=function(e,n){var r=n(e),i=r.node.childNodes[r.offset];return r.node.nodeType===Node.TEXT_NODE?r.node.parentNode:!i||i.nodeType===Node.TEXT_NODE?r.node:i},lX=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e)throw new Error('Invalid "node" parameter');var r=[];return e.descendants(function(i,o){if(r.push({node:i,pos:o}),!n)return!1}),r},Mf=function(e,n,r){if(e){if(!n)throw new Error('Invalid "predicate" parameter')}else throw new Error('Invalid "node" parameter');return lX(e,r).filter(function(i){return n(i.node)})},v3e=function(e,n){return Mf(e,function(r){return r.isText},n)},b3e=function(e,n){return Mf(e,function(r){return r.isInline},n)},y3e=function(e,n){return Mf(e,function(r){return r.isBlock},n)},x3e=function(e,n,r){return Mf(e,function(i){return!!n(i.attrs)},r)},cX=function(e,n,r){return Mf(e,function(i){return i.type===n},r)},w3e=function(e,n,r){return Mf(e,function(i){return n.isInSet(i.marks)},r)},S3e=function(e,n){return!!cX(e,n).length};function C3e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var mo=function(e){return $0(function(n){return n.type.spec.tableRole&&n.type.spec.tableRole==="table"})(e)},Pf=function(e){return e instanceof Hn.CellSelection},E3e=function(e){if(Pf(e)){var n=e.$anchorCell.start(-1),r=Hn.TableMap.get(e.$anchorCell.node(-1));return r.rectBetween(e.$anchorCell.pos-n,e.$headCell.pos-n)}},A3e=function(e){return function(n){if(Pf(n)){var r=Hn.TableMap.get(n.$anchorCell.node(-1));return uI({left:e,right:e+1,top:0,bottom:r.height})(n)}return!1}},k3e=function(e){return function(n){if(Pf(n)){var r=Hn.TableMap.get(n.$anchorCell.node(-1));return uI({left:0,right:r.width,top:e,bottom:e+1})(n)}return!1}},hI=function(e){if(Pf(e)){var n=Hn.TableMap.get(e.$anchorCell.node(-1));return uI({left:0,right:n.width,top:0,bottom:n.height})(e)}return!1},du=function(e){return function(n){var r=mo(n);if(r){var i=Hn.TableMap.get(r.node),o=Array.isArray(e)?e:Array.from([e]);return o.reduce(function(s,a){if(a>=0&&a<=i.width-1){var l=i.cellsInRect({left:a,right:a+1,top:0,bottom:i.height});return s.concat(l.map(function(d){var h=r.node.nodeAt(d),p=d+r.start;return{pos:p,start:p+1,node:h}}))}},[])}}},Ll=function(e){return function(n){var r=mo(n);if(r){var i=Hn.TableMap.get(r.node),o=Array.isArray(e)?e:Array.from([e]);return o.reduce(function(s,a){if(a>=0&&a<=i.height-1){var l=i.cellsInRect({left:0,right:i.width,top:a,bottom:a+1});return s.concat(l.map(function(d){var h=r.node.nodeAt(d),p=d+r.start;return{pos:p,start:p+1,node:h}}))}},[])}}},T3e=function(e){var n=mo(e);if(n){var r=Hn.TableMap.get(n.node),i=r.cellsInRect({left:0,right:r.width,top:0,bottom:r.height});return i.map(function(o){var s=n.node.nodeAt(o),a=o+n.start;return{pos:a,start:a+1,node:s}})}},uX=function(e){return function(n,r){return function(i){var o=mo(i.selection),s=e==="row";if(o){var a=Hn.TableMap.get(o.node);if(n>=0&&n<(s?a.height:a.width)){var l=s?0:n,d=s?n:0,h=s?a.width:n+1,p=s?n+1:a.height;if(r){var y=pI(i.selection.$from);if(!y)return i;var w=a.findCell(y.pos-o.start);s?(d=Math.min(d,w.top),p=Math.max(p,w.bottom)):(l=Math.min(l,w.left),h=Math.max(h,w.right))}var C=a.cellsInRect({left:l,top:d,right:s?h:l+1,bottom:s?d+1:p}),k=p-d===1?C:a.cellsInRect({left:s?l:h-1,top:s?p-1:d,right:h,bottom:p}),D=o.start+C[0],I=o.start+k[k.length-1],_=i.doc.resolve(D),L=i.doc.resolve(I);return Cr(i.setSelection(new Hn.CellSelection(L,_)))}}return i}}},_3e=uX("column"),D3e=uX("row"),$3e=function(e){var n=mo(e.selection);if(n){var r=Hn.TableMap.get(n.node),i=r.map;if(i&&i.length){var o=n.start+i[0],s=n.start+i[i.length-1],a=e.doc.resolve(o),l=e.doc.resolve(s);return Cr(e.setSelection(new Hn.CellSelection(l,a)))}}return e},O3e=function(e,n){return function(r){if(e){var i=cI(n).cell.createAndFill(),o=i.content;if(!e.node.content.eq(o))return r.replaceWith(e.pos+1,e.pos+e.node.nodeSize,o),Cr(r)}return r}},I3e=function(e){return function(n){var r=mo(n.selection);if(r){var i=Hn.TableMap.get(r.node);if(e>=0&&e<=i.width)return Cr(Hn.addColumn(n,{map:i,tableStart:r.start,table:r.node},e))}return n}},R3e=function(e,n,r){return function(i){var o={tryToFit:!1,direction:0},s=Object.assign(o,r),a=mo(i.selection);if(!a)return i;var l=I_(e)(i),d=l.indexes,h=I_(n)(i),p=h.indexes;if(d.indexOf(n)>-1)return i;!s.tryToFit&&p.length>1&&rX(e,n,p,"row");var y=f3e(a,d,p,s.direction);return Cr(i).replaceWith(a.pos,a.pos+a.node.nodeSize,y)}},M3e=function(e,n,r){return function(i){var o={tryToFit:!1,direction:0},s=Object.assign(o,r),a=mo(i.selection);if(!a)return i;var l=O_(e)(i),d=l.indexes,h=O_(n)(i),p=h.indexes;if(d.indexOf(n)>-1)return i;!s.tryToFit&&p.length>1&&rX(e,n,p,"column");var y=d3e(a,d,p,s.direction);return Cr(i).replaceWith(a.pos,a.pos+a.node.nodeSize,y)}},P3e=function(e,n){return function(r){var i=mo(r.selection);if(i){var o=Hn.TableMap.get(i.node),s=e-1;if(n&&s>=0)return Cr(dX(s)(r));if(e>=0&&e<=o.height)return Cr(Hn.addRow(r,{map:o,tableStart:i.start,table:i.node},e))}return r}},dX=function(e){return function(n){var r=mo(n.selection);if(r){var i=Hn.TableMap.get(r.node);if(e>=0&&e<=i.height){for(var o=r.node,s=cI(o.type.schema),a=r.start,l=0;l<e+1;l++)a+=o.child(l).nodeSize;var d=o.child(e),h=[],p=0;if(d.forEach(function(k){k.attrs.rowspan===1&&(p+=k.attrs.colspan,h.push(s[k.type.spec.tableRole].createAndFill(k.attrs,k.marks)))}),p<i.width){for(var y=[],w=function(D){var I=W3e(D,function(_,L){var M=_.node.attrs.rowspan,F=D+M;return M>1&&F>e})(n);y.push.apply(y,C3e(I))},C=e;C>=0;C--)w(C);y.length&&y.forEach(function(k){n=pX(k,{rowspan:k.node.attrs.rowspan+1})(n)})}return eX(s.row.create(d.attrs,h),a)(n)}}return n}},fX=function(e){return function(n){var r=mo(n.selection);if(r){var i=Hn.TableMap.get(r.node);if(e===0&&i.width===1)return I0(n);if(e>=0&&e<=i.width)return Hn.removeColumn(n,{map:i,tableStart:r.start,table:r.node},e),Cr(n)}return n}},hX=function(e){return function(n){var r=mo(n.selection);if(r){var i=Hn.TableMap.get(r.node);if(e===0&&i.height===1)return I0(n);if(e>=0&&e<=i.height)return Hn.removeRow(n,{map:i,tableStart:r.start,table:r.node},e),Cr(n)}return n}},I0=function(e){for(var n=e.selection.$from,r=n.depth;r>0;r--){var i=n.node(r);if(i.type.spec.tableRole==="table")return Cr(e.delete(n.before(r),n.after(r)))}return e},N3e=function(e){var n=e.selection;if(hI(n))return I0(e);if(Pf(n)){var r=mo(n);if(r){var i=Hn.TableMap.get(r.node),o=i.rectBetween(n.$anchorCell.pos-r.start,n.$headCell.pos-r.start);if(o.left==0&&o.right==i.width)return!1;for(var s=Object.assign({},o,{map:i,table:r.node,tableStart:r.start}),a=s.right-1;Hn.removeColumn(e,s,a),a!==s.left;a--)s.table=s.tableStart?e.doc.nodeAt(s.tableStart-1):e.doc,s.map=Hn.TableMap.get(s.table);return Cr(e)}}return e},L3e=function(e){var n=e.selection;if(hI(n))return I0(e);if(Pf(n)){var r=mo(n);if(r){var i=Hn.TableMap.get(r.node),o=i.rectBetween(n.$anchorCell.pos-r.start,n.$headCell.pos-r.start);if(o.top==0&&o.bottom==i.height)return!1;for(var s=Object.assign({},o,{map:i,table:r.node,tableStart:r.start}),a=s.bottom-1;Hn.removeRow(e,s,a),a!==s.top;a--)s.table=s.tableStart?e.doc.nodeAt(s.tableStart-1):e.doc,s.map=Hn.TableMap.get(s.table);return Cr(e)}}return e},F3e=function(e){return function(n){var r=gI(e);return r?fX(r.left)(Vp(e.pos)(n)):n}},B3e=function(e){return function(n){var r=gI(e);return r?hX(r.top)(Vp(e.pos)(n)):n}},z3e=function(e,n,r){return function(i){var o=du(e)(i.selection);if(o){for(var s=o.length-1;s>=0;s--)i=n(o[s],i);if(r){var a=i.doc.resolve(i.mapping.map(o[o.length-1].pos));i.setSelection(qu.Selection.near(a))}return Cr(i)}return i}},H3e=function(e,n,r){return function(i){var o=Ll(e)(i.selection);if(o){for(var s=o.length-1;s>=0;s--)i=n(o[s],i);if(r){var a=i.doc.resolve(i.mapping.map(o[o.length-1].pos));i.setSelection(qu.Selection.near(a))}}return i}},pX=function(e,n){return function(r){return e?(r.setNodeMarkup(e.pos,null,Object.assign({},e.node.attrs,n)),Cr(r)):r}},j3e=function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,s=cI(e),a=s.cell,l=s.header_cell,d=s.row,h=s.table,p=[],y=[],w=0;w<r;w++)p.push(W8(a,o)),i&&y.push(W8(l,o));for(var C=[],k=0;k<n;k++)C.push(d.createChecked(null,i&&k===0?y:p));return h.createChecked(null,C)},pI=function(e){var n=function(i){return i.type.spec.tableRole&&/cell/i.test(i.type.spec.tableRole)};return O0(e,n)},gI=function(e){var n=pI(e);if(n){var r=u3e(e),i=Hn.TableMap.get(r.node),o=n.pos-r.start;return i.rectBetween(o,o)}},W3e=function(e,n){return function(r){var i=[],o=Ll(e)(r.selection);if(o)for(var s=o.length-1;s>=0;s--)n(o[s],r)&&i.push(o[s]);return i}},O_=function(e){return function(n){for(var r=e,i=e,o=function(L){var M=du(L)(n.selection);M&&M.forEach(function(F){var H=F.node.attrs.colspan+L-1;H>=r&&(r=L),H>i&&(i=H)})},s=e;s>=0;s--)o(s);for(var a=function(L){var M=du(L)(n.selection);M&&M.forEach(function(F){var H=F.node.attrs.colspan+L-1;F.node.attrs.colspan>1&&H>i&&(i=H)})},s=e;s<=i;s++)a(s);for(var l=[],s=r;s<=i;s++){var d=du(s)(n.selection);d&&d.length&&l.push(s)}r=l[0],i=l[l.length-1];for(var h=du(r)(n.selection),p=Ll(0)(n.selection),y=n.doc.resolve(h[h.length-1].pos),w=void 0,C=i;C>=r;C--){var k=du(C)(n.selection);if(k&&k.length){for(var D=p.length-1;D>=0;D--)if(p[D].pos===k[0].pos){w=k[0];break}if(w)break}}var I=n.doc.resolve(w.pos);return{$anchor:y,$head:I,indexes:l}}},I_=function(e){return function(n){for(var r=e,i=e,o=function(L){var M=Ll(L)(n.selection);M.forEach(function(F){var H=F.node.attrs.rowspan+L-1;H>=r&&(r=L),H>i&&(i=H)})},s=e;s>=0;s--)o(s);for(var a=function(L){var M=Ll(L)(n.selection);M.forEach(function(F){var H=F.node.attrs.rowspan+L-1;F.node.attrs.rowspan>1&&H>i&&(i=H)})},s=e;s<=i;s++)a(s);for(var l=[],s=r;s<=i;s++){var d=Ll(s)(n.selection);d&&d.length&&l.push(s)}r=l[0],i=l[l.length-1];for(var h=Ll(r)(n.selection),p=du(0)(n.selection),y=n.doc.resolve(h[h.length-1].pos),w=void 0,C=i;C>=r;C--){var k=Ll(C)(n.selection);if(k&&k.length){for(var D=p.length-1;D>=0;D--)if(p[D].pos===k[0].pos){w=k[0];break}if(w)break}}var I=n.doc.resolve(w.pos);return{$anchor:y,$head:I,indexes:l}}};Ct.isNodeSelection=mf;Ct.canInsert=$_;Ct.convertTableNodeToArrayOfRows=dI;Ct.convertArrayOfRowsToTableNode=fI;Ct.findParentNode=$0;Ct.findParentNodeClosestToPos=O0;Ct.findParentDomRef=iX;Ct.hasParentNode=oX;Ct.findParentNodeOfType=dg;Ct.findParentNodeOfTypeClosestToPos=h3e;var USt=Ct.hasParentNodeOfType=p3e;Ct.findParentDomRefOfType=g3e;Ct.findSelectedNodeOfType=m3e;Ct.findPositionOfNodeBefore=sX;Ct.findDomRefAtPos=aX;Ct.flatten=lX;Ct.findChildren=Mf;Ct.findTextNodes=v3e;Ct.findInlineNodes=b3e;Ct.findBlockNodes=y3e;Ct.findChildrenByAttr=x3e;Ct.findChildrenByType=cX;Ct.findChildrenByMark=w3e;Ct.contains=S3e;Ct.findTable=mo;Ct.isCellSelection=Pf;Ct.getSelectionRect=E3e;Ct.isColumnSelected=A3e;Ct.isRowSelected=k3e;Ct.isTableSelected=hI;Ct.getCellsInColumn=du;Ct.getCellsInRow=Ll;Ct.getCellsInTable=T3e;Ct.selectColumn=_3e;Ct.selectRow=D3e;Ct.selectTable=$3e;Ct.emptyCell=O3e;Ct.addColumnAt=I3e;Ct.moveRow=R3e;Ct.moveColumn=M3e;Ct.addRowAt=P3e;Ct.cloneRowAt=dX;Ct.removeColumnAt=fX;Ct.removeRowAt=hX;Ct.removeTable=I0;Ct.removeSelectedColumns=N3e;Ct.removeSelectedRows=L3e;Ct.removeColumnClosestToPos=F3e;Ct.removeRowClosestToPos=B3e;Ct.forEachCellInColumn=z3e;Ct.forEachCellInRow=H3e;Ct.setCellAttrs=pX;Ct.createTable=j3e;Ct.findCellClosestToPos=pI;Ct.findCellRectClosestToPos=gI;Ct.getSelectionRangeInColumn=O_;Ct.getSelectionRangeInRow=I_;Ct.removeParentNodeOfType=t3e;Ct.replaceParentNodeOfType=ZY;Ct.removeSelectedNode=n3e;Ct.replaceSelectedNode=QY;Ct.setTextSelection=Vp;var VSt=Ct.safeInsert=eX;Ct.setParentNodeMarkup=i3e;Ct.selectParentNodeOfType=o3e;Ct.removeNodeBefore=s3e;const U3e=["ol",0],V3e=["ul",0],Y3e=["li",0],YSt={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1}}}],toDOM(t){return t.attrs.order==1?U3e:["ol",{start:t.attrs.order},0]}},XSt={parseDOM:[{tag:"ul"}],toDOM(){return V3e}},GSt={parseDOM:[{tag:"li"}],toDOM(){return Y3e},defining:!0};function qSt(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&i.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(i.index(s.depth-1)==0)return!1;let h=n.doc.resolve(s.start-2);l=new Pv(h,h,s.depth),s.endIndex<s.parent.childCount&&(s=new Pv(i,n.doc.resolve(o.end(s.depth)),s.depth)),a=!0}let d=BO(l,t,e,s);return d?(r&&r(X3e(n.tr,s,d,a,t).scrollIntoView()),!0):!1}}function X3e(t,e,n,r,i){let o=ut.empty;for(let h=n.length-1;h>=0;h--)o=ut.from(n[h].type.create(n[h].attrs,o));t.step(new li(e.start-(r?2:0),e.end,e.start,e.end,new wt(o,0,0),n.length,!0));let s=0;for(let h=0;h<n.length;h++)n[h].type==i&&(s=h+1);let a=n.length-s,l=e.start+n.length-(r?2:0),d=e.parent;for(let h=e.startIndex,p=e.endIndex,y=!0;h<p;h++,y=!1)!y&&np(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=d.child(h).nodeSize;return t}function KSt(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?G3e(e,n,t,o):q3e(e,n,o):!0:!1}}function G3e(t,e,n,r){let i=t.tr,o=r.end,s=r.$to.end(r.depth);o<s&&(i.step(new li(o-1,s,o,s,new wt(ut.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Pv(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const a=A0(r);if(a==null)return!1;i.lift(r,a);let l=i.mapping.map(o,-1)-1;return Of(i.doc,l)&&i.join(l),e(i.scrollIntoView()),!0}function q3e(t,e,n){let r=t.tr,i=n.parent;for(let w=n.end,C=n.endIndex-1,k=n.startIndex;C>k;C--)w-=i.child(C).nodeSize,r.delete(w-1,w+1);let o=r.doc.resolve(n.start),s=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==i.childCount,d=o.node(-1),h=o.index(-1);if(!d.canReplace(h+(a?0:1),h+1,s.content.append(l?ut.empty:ut.from(i))))return!1;let p=o.pos,y=p+s.nodeSize;return r.step(new li(p-(a?1:0),y+(l?1:0),p+1,y-1,new wt((a?ut.empty:ut.from(i.copy(ut.empty))).append(l?ut.empty:ut.from(i.copy(ut.empty))),a?0:1,l?0:1),a?0:1)),e(r.scrollIntoView()),!0}function JSt(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,d=>d.childCount>0&&d.firstChild.type==t);if(!o)return!1;let s=o.startIndex;if(s==0)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let d=l.lastChild&&l.lastChild.type==a.type,h=ut.from(d?t.create():null),p=new wt(ut.from(t.create(null,ut.from(a.type.create(null,h)))),d?3:1,0),y=o.start,w=o.end;n(e.tr.step(new li(y-(d?3:1),w,y,w,p,1,!0)).scrollIntoView())}return!0}}const gX=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function K3e(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const J3e=(t,e,n)=>{let r=K3e(t,n);if(!r)return!1;let i=mX(r);if(!i){let s=r.blockRange(),a=s&&A0(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let o=i.nodeBefore;if(!o.type.spec.isolating&&bX(t,i,e))return!0;if(r.parent.content.size==0&&(Yp(o,"end")||Xt.isSelectable(o))){let s=HS(t.doc,r.before(),r.after(),wt.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Yp(o,"end")?Cn.findFrom(a.doc.resolve(a.mapping.map(i.pos,-1)),-1):Xt.create(a.doc,i.pos-o.nodeSize)),e(a.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1};function Yp(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const Z3e=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=mX(r)}let s=o&&o.nodeBefore;return!s||!Xt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Xt.create(t.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function mX(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Q3e(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const eMe=(t,e,n)=>{let r=Q3e(t,n);if(!r)return!1;let i=vX(r);if(!i)return!1;let o=i.nodeAfter;if(bX(t,i,e))return!0;if(r.parent.content.size==0&&(Yp(o,"start")||Xt.isSelectable(o))){let s=HS(t.doc,r.before(),r.after(),wt.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Yp(o,"start")?Cn.findFrom(a.doc.resolve(a.mapping.map(i.pos)),1):Xt.create(a.doc,a.mapping.map(i.pos))),e(a.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},tMe=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;o=vX(r)}let s=o&&o.nodeAfter;return!s||!Xt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Xt.create(t.doc,o.pos)).scrollIntoView()),!0)};function vX(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const ZSt=(t,e)=>{let n=t.selection,r=n instanceof Xt,i;if(r){if(n.node.isTextblock||!Of(t.doc,n.from))return!1;i=n.from}else if(i=zO(t.doc,n.from,-1),i==null)return!1;if(e){let o=t.tr.join(i);r&&o.setSelection(Xt.create(o.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},QSt=(t,e)=>{let n=t.selection,r;if(n instanceof Xt){if(n.node.isTextblock||!Of(t.doc,n.to))return!1;r=n.to}else if(r=zO(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},nMe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
`).scrollIntoView()),!0)};function mI(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const rMe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),s=mI(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(Cn.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},iMe=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof Ro||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=mI(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=t.tr.insert(s,o.createAndFill());a.setSelection(qn.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},oMe=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(np(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&A0(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function sMe(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof Xt&&e.selection.node.isBlock)return!r.parentOffset||!np(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let o=i.parentOffset==i.parent.content.size,s=e.tr;(e.selection instanceof qn||e.selection instanceof Ro)&&s.deleteSelection();let a=r.depth==0?null:mI(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=t&&t(i.parent,o),d=l?[l]:o&&a?[{type:a}]:void 0,h=np(s.doc,s.mapping.map(r.pos),1,d);if(!d&&!h&&np(s.doc,s.mapping.map(r.pos),1,a?[{type:a}]:void 0)&&(a&&(d=[{type:a}]),h=!0),h&&(s.split(s.mapping.map(r.pos),1,d),!o&&!r.parentOffset&&r.parent.type!=a)){let p=s.mapping.map(r.before()),y=s.doc.resolve(p);a&&r.node(-1).canReplaceWith(y.index(),y.index()+1,a)&&s.setNodeMarkup(s.mapping.map(r.before()),a)}n(s.scrollIntoView())}return!0}}const aMe=sMe(),eCt=(t,e)=>{let{$from:n,to:r}=t.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),e&&e(t.tr.setSelection(Xt.create(t.doc,i))),!0)},lMe=(t,e)=>(e&&e(t.tr.setSelection(new Ro(t.doc))),!0);function cMe(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||Of(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function bX(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o,s;if(r.type.spec.isolating||i.type.spec.isolating)return!1;if(cMe(t,e,n))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(o=(s=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&s.matchType(o[0]||i.type).validEnd){if(n){let p=e.pos+i.nodeSize,y=ut.empty;for(let k=o.length-1;k>=0;k--)y=ut.from(o[k].create(null,y));y=ut.from(r.copy(y));let w=t.tr.step(new li(e.pos-1,p,e.pos,p,new wt(y,1,0),o.length,!0)),C=p+2*o.length;Of(w.doc,C)&&w.join(C),n(w.scrollIntoView())}return!0}let l=Cn.findFrom(e,1),d=l&&l.$from.blockRange(l.$to),h=d&&A0(d);if(h!=null&&h>=e.depth)return n&&n(t.tr.lift(d,h).scrollIntoView()),!0;if(a&&Yp(i,"start",!0)&&Yp(r,"end")){let p=r,y=[];for(;y.push(p),!p.isTextblock;)p=p.lastChild;let w=i,C=1;for(;!w.isTextblock;w=w.firstChild)C++;if(p.canReplace(p.childCount,p.childCount,w.content)){if(n){let k=ut.empty;for(let I=y.length-1;I>=0;I--)k=ut.from(y[I].copy(k));let D=t.tr.step(new li(e.pos-y.length,e.pos+i.nodeSize,e.pos+C,e.pos+i.nodeSize-C,new wt(k,y.length,0),0,!0));n(D.scrollIntoView())}return!0}}return!1}function yX(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(qn.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}const uMe=yX(-1),dMe=yX(1);function fMe(t,e,n){for(let r=0;r<e.length;r++){let{$from:i,$to:o}=e[r],s=i.depth==0?t.inlineContent&&t.type.allowsMarkType(n):!1;if(t.nodesBetween(i.pos,o.pos,a=>{if(s)return!1;s=a.inlineContent&&a.type.allowsMarkType(n)}),s)return!0}return!1}function tCt(t,e=null){return function(n,r){let{empty:i,$cursor:o,ranges:s}=n.selection;if(i&&!o||!fMe(n.doc,s,t))return!1;if(r)if(o)t.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(t)):r(n.tr.addStoredMark(t.create(e)));else{let a=!1,l=n.tr;for(let d=0;!a&&d<s.length;d++){let{$from:h,$to:p}=s[d];a=n.doc.rangeHasMark(h.pos,p.pos,t)}for(let d=0;d<s.length;d++){let{$from:h,$to:p}=s[d];if(a)l.removeMark(h.pos,p.pos,t);else{let y=h.pos,w=p.pos,C=h.nodeAfter,k=p.nodeBefore,D=C&&C.isText?/^\s*/.exec(C.text)[0].length:0,I=k&&k.isText?/\s*$/.exec(k.text)[0].length:0;y+D<w&&(y+=D,w-=I),l.addMark(y,w,t.create(e))}}r(l.scrollIntoView())}return!0}}function vI(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}let x2=vI(gX,J3e,Z3e),V8=vI(gX,eMe,tMe);const Dl={Enter:vI(nMe,iMe,oMe,aMe),"Mod-Enter":rMe,Backspace:x2,"Mod-Backspace":x2,"Shift-Backspace":x2,Delete:V8,"Mod-Delete":V8,"Mod-a":lMe},xX={"Ctrl-h":Dl.Backspace,"Alt-Backspace":Dl["Mod-Backspace"],"Ctrl-d":Dl.Delete,"Ctrl-Alt-Backspace":Dl["Mod-Delete"],"Alt-Delete":Dl["Mod-Delete"],"Alt-d":Dl["Mod-Delete"],"Ctrl-a":uMe,"Ctrl-e":dMe};for(let t in Dl)xX[t]=Dl[t];const hMe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":!1,nCt=hMe?xX:Dl;var R_={},pMe={get exports(){return R_},set exports(t){R_=t}},jn={},G1={},gMe={get exports(){return G1},set exports(t){G1=t}};const mMe="Á",vMe="á",bMe="Ă",yMe="ă",xMe="∾",wMe="∿",SMe="∾̳",CMe="Â",EMe="â",AMe="´",kMe="А",TMe="а",_Me="Æ",DMe="æ",$Me="⁡",OMe="𝔄",IMe="𝔞",RMe="À",MMe="à",PMe="ℵ",NMe="ℵ",LMe="Α",FMe="α",BMe="Ā",zMe="ā",HMe="⨿",jMe="&",WMe="&",UMe="⩕",VMe="⩓",YMe="∧",XMe="⩜",GMe="⩘",qMe="⩚",KMe="∠",JMe="⦤",ZMe="∠",QMe="⦨",ePe="⦩",tPe="⦪",nPe="⦫",rPe="⦬",iPe="⦭",oPe="⦮",sPe="⦯",aPe="∡",lPe="∟",cPe="⊾",uPe="⦝",dPe="∢",fPe="Å",hPe="⍼",pPe="Ą",gPe="ą",mPe="𝔸",vPe="𝕒",bPe="⩯",yPe="≈",xPe="⩰",wPe="≊",SPe="≋",CPe="'",EPe="⁡",APe="≈",kPe="≊",TPe="Å",_Pe="å",DPe="𝒜",$Pe="𝒶",OPe="≔",IPe="*",RPe="≈",MPe="≍",PPe="Ã",NPe="ã",LPe="Ä",FPe="ä",BPe="∳",zPe="⨑",HPe="≌",jPe="϶",WPe="‵",UPe="∽",VPe="⋍",YPe="∖",XPe="⫧",GPe="⊽",qPe="⌅",KPe="⌆",JPe="⌅",ZPe="⎵",QPe="⎶",eNe="≌",tNe="Б",nNe="б",rNe="„",iNe="∵",oNe="∵",sNe="∵",aNe="⦰",lNe="϶",cNe="ℬ",uNe="ℬ",dNe="Β",fNe="β",hNe="ℶ",pNe="≬",gNe="𝔅",mNe="𝔟",vNe="⋂",bNe="◯",yNe="⋃",xNe="⨀",wNe="⨁",SNe="⨂",CNe="⨆",ENe="★",ANe="▽",kNe="△",TNe="⨄",_Ne="⋁",DNe="⋀",$Ne="⤍",ONe="⧫",INe="▪",RNe="▴",MNe="▾",PNe="◂",NNe="▸",LNe="␣",FNe="▒",BNe="░",zNe="▓",HNe="█",jNe="=⃥",WNe="≡⃥",UNe="⫭",VNe="⌐",YNe="𝔹",XNe="𝕓",GNe="⊥",qNe="⊥",KNe="⋈",JNe="⧉",ZNe="┐",QNe="╕",eLe="╖",tLe="╗",nLe="┌",rLe="╒",iLe="╓",oLe="╔",sLe="─",aLe="═",lLe="┬",cLe="╤",uLe="╥",dLe="╦",fLe="┴",hLe="╧",pLe="╨",gLe="╩",mLe="⊟",vLe="⊞",bLe="⊠",yLe="┘",xLe="╛",wLe="╜",SLe="╝",CLe="└",ELe="╘",ALe="╙",kLe="╚",TLe="│",_Le="║",DLe="┼",$Le="╪",OLe="╫",ILe="╬",RLe="┤",MLe="╡",PLe="╢",NLe="╣",LLe="├",FLe="╞",BLe="╟",zLe="╠",HLe="‵",jLe="˘",WLe="˘",ULe="¦",VLe="𝒷",YLe="ℬ",XLe="⁏",GLe="∽",qLe="⋍",KLe="⧅",JLe="\\",ZLe="⟈",QLe="•",e4e="•",t4e="≎",n4e="⪮",r4e="≏",i4e="≎",o4e="≏",s4e="Ć",a4e="ć",l4e="⩄",c4e="⩉",u4e="⩋",d4e="∩",f4e="⋒",h4e="⩇",p4e="⩀",g4e="ⅅ",m4e="∩︀",v4e="⁁",b4e="ˇ",y4e="ℭ",x4e="⩍",w4e="Č",S4e="č",C4e="Ç",E4e="ç",A4e="Ĉ",k4e="ĉ",T4e="∰",_4e="⩌",D4e="⩐",$4e="Ċ",O4e="ċ",I4e="¸",R4e="¸",M4e="⦲",P4e="¢",N4e="·",L4e="·",F4e="𝔠",B4e="ℭ",z4e="Ч",H4e="ч",j4e="✓",W4e="✓",U4e="Χ",V4e="χ",Y4e="ˆ",X4e="≗",G4e="↺",q4e="↻",K4e="⊛",J4e="⊚",Z4e="⊝",Q4e="⊙",eFe="®",tFe="Ⓢ",nFe="⊖",rFe="⊕",iFe="⊗",oFe="○",sFe="⧃",aFe="≗",lFe="⨐",cFe="⫯",uFe="⧂",dFe="∲",fFe="”",hFe="’",pFe="♣",gFe="♣",mFe=":",vFe="∷",bFe="⩴",yFe="≔",xFe="≔",wFe=",",SFe="@",CFe="∁",EFe="∘",AFe="∁",kFe="ℂ",TFe="≅",_Fe="⩭",DFe="≡",$Fe="∮",OFe="∯",IFe="∮",RFe="𝕔",MFe="ℂ",PFe="∐",NFe="∐",LFe="©",FFe="©",BFe="℗",zFe="∳",HFe="↵",jFe="✗",WFe="⨯",UFe="𝒞",VFe="𝒸",YFe="⫏",XFe="⫑",GFe="⫐",qFe="⫒",KFe="⋯",JFe="⤸",ZFe="⤵",QFe="⋞",e8e="⋟",t8e="↶",n8e="⤽",r8e="⩈",i8e="⩆",o8e="≍",s8e="∪",a8e="⋓",l8e="⩊",c8e="⊍",u8e="⩅",d8e="∪︀",f8e="↷",h8e="⤼",p8e="⋞",g8e="⋟",m8e="⋎",v8e="⋏",b8e="¤",y8e="↶",x8e="↷",w8e="⋎",S8e="⋏",C8e="∲",E8e="∱",A8e="⌭",k8e="†",T8e="‡",_8e="ℸ",D8e="↓",$8e="↡",O8e="⇓",I8e="‐",R8e="⫤",M8e="⊣",P8e="⤏",N8e="˝",L8e="Ď",F8e="ď",B8e="Д",z8e="д",H8e="‡",j8e="⇊",W8e="ⅅ",U8e="ⅆ",V8e="⤑",Y8e="⩷",X8e="°",G8e="∇",q8e="Δ",K8e="δ",J8e="⦱",Z8e="⥿",Q8e="𝔇",e5e="𝔡",t5e="⥥",n5e="⇃",r5e="⇂",i5e="´",o5e="˙",s5e="˝",a5e="`",l5e="˜",c5e="⋄",u5e="⋄",d5e="⋄",f5e="♦",h5e="♦",p5e="¨",g5e="ⅆ",m5e="ϝ",v5e="⋲",b5e="÷",y5e="÷",x5e="⋇",w5e="⋇",S5e="Ђ",C5e="ђ",E5e="⌞",A5e="⌍",k5e="$",T5e="𝔻",_5e="𝕕",D5e="¨",$5e="˙",O5e="⃜",I5e="≐",R5e="≑",M5e="≐",P5e="∸",N5e="∔",L5e="⊡",F5e="⌆",B5e="∯",z5e="¨",H5e="⇓",j5e="⇐",W5e="⇔",U5e="⫤",V5e="⟸",Y5e="⟺",X5e="⟹",G5e="⇒",q5e="⊨",K5e="⇑",J5e="⇕",Z5e="∥",Q5e="⤓",e6e="↓",t6e="↓",n6e="⇓",r6e="⇵",i6e="̑",o6e="⇊",s6e="⇃",a6e="⇂",l6e="⥐",c6e="⥞",u6e="⥖",d6e="↽",f6e="⥟",h6e="⥗",p6e="⇁",g6e="↧",m6e="⊤",v6e="⤐",b6e="⌟",y6e="⌌",x6e="𝒟",w6e="𝒹",S6e="Ѕ",C6e="ѕ",E6e="⧶",A6e="Đ",k6e="đ",T6e="⋱",_6e="▿",D6e="▾",$6e="⇵",O6e="⥯",I6e="⦦",R6e="Џ",M6e="џ",P6e="⟿",N6e="É",L6e="é",F6e="⩮",B6e="Ě",z6e="ě",H6e="Ê",j6e="ê",W6e="≖",U6e="≕",V6e="Э",Y6e="э",X6e="⩷",G6e="Ė",q6e="ė",K6e="≑",J6e="ⅇ",Z6e="≒",Q6e="𝔈",e9e="𝔢",t9e="⪚",n9e="È",r9e="è",i9e="⪖",o9e="⪘",s9e="⪙",a9e="∈",l9e="⏧",c9e="ℓ",u9e="⪕",d9e="⪗",f9e="Ē",h9e="ē",p9e="∅",g9e="∅",m9e="◻",v9e="∅",b9e="▫",y9e=" ",x9e=" ",w9e=" ",S9e="Ŋ",C9e="ŋ",E9e=" ",A9e="Ę",k9e="ę",T9e="𝔼",_9e="𝕖",D9e="⋕",$9e="⧣",O9e="⩱",I9e="ε",R9e="Ε",M9e="ε",P9e="ϵ",N9e="≖",L9e="≕",F9e="≂",B9e="⪖",z9e="⪕",H9e="⩵",j9e="=",W9e="≂",U9e="≟",V9e="⇌",Y9e="≡",X9e="⩸",G9e="⧥",q9e="⥱",K9e="≓",J9e="ℯ",Z9e="ℰ",Q9e="≐",eBe="⩳",tBe="≂",nBe="Η",rBe="η",iBe="Ð",oBe="ð",sBe="Ë",aBe="ë",lBe="€",cBe="!",uBe="∃",dBe="∃",fBe="ℰ",hBe="ⅇ",pBe="ⅇ",gBe="≒",mBe="Ф",vBe="ф",bBe="♀",yBe="ﬃ",xBe="ﬀ",wBe="ﬄ",SBe="𝔉",CBe="𝔣",EBe="ﬁ",ABe="◼",kBe="▪",TBe="fj",_Be="♭",DBe="ﬂ",$Be="▱",OBe="ƒ",IBe="𝔽",RBe="𝕗",MBe="∀",PBe="∀",NBe="⋔",LBe="⫙",FBe="ℱ",BBe="⨍",zBe="½",HBe="⅓",jBe="¼",WBe="⅕",UBe="⅙",VBe="⅛",YBe="⅔",XBe="⅖",GBe="¾",qBe="⅗",KBe="⅜",JBe="⅘",ZBe="⅚",QBe="⅝",e7e="⅞",t7e="⁄",n7e="⌢",r7e="𝒻",i7e="ℱ",o7e="ǵ",s7e="Γ",a7e="γ",l7e="Ϝ",c7e="ϝ",u7e="⪆",d7e="Ğ",f7e="ğ",h7e="Ģ",p7e="Ĝ",g7e="ĝ",m7e="Г",v7e="г",b7e="Ġ",y7e="ġ",x7e="≥",w7e="≧",S7e="⪌",C7e="⋛",E7e="≥",A7e="≧",k7e="⩾",T7e="⪩",_7e="⩾",D7e="⪀",$7e="⪂",O7e="⪄",I7e="⋛︀",R7e="⪔",M7e="𝔊",P7e="𝔤",N7e="≫",L7e="⋙",F7e="⋙",B7e="ℷ",z7e="Ѓ",H7e="ѓ",j7e="⪥",W7e="≷",U7e="⪒",V7e="⪤",Y7e="⪊",X7e="⪊",G7e="⪈",q7e="≩",K7e="⪈",J7e="≩",Z7e="⋧",Q7e="𝔾",eze="𝕘",tze="`",nze="≥",rze="⋛",ize="≧",oze="⪢",sze="≷",aze="⩾",lze="≳",cze="𝒢",uze="ℊ",dze="≳",fze="⪎",hze="⪐",pze="⪧",gze="⩺",mze=">",vze=">",bze="≫",yze="⋗",xze="⦕",wze="⩼",Sze="⪆",Cze="⥸",Eze="⋗",Aze="⋛",kze="⪌",Tze="≷",_ze="≳",Dze="≩︀",$ze="≩︀",Oze="ˇ",Ize=" ",Rze="½",Mze="ℋ",Pze="Ъ",Nze="ъ",Lze="⥈",Fze="↔",Bze="⇔",zze="↭",Hze="^",jze="ℏ",Wze="Ĥ",Uze="ĥ",Vze="♥",Yze="♥",Xze="…",Gze="⊹",qze="𝔥",Kze="ℌ",Jze="ℋ",Zze="⤥",Qze="⤦",eHe="⇿",tHe="∻",nHe="↩",rHe="↪",iHe="𝕙",oHe="ℍ",sHe="―",aHe="─",lHe="𝒽",cHe="ℋ",uHe="ℏ",dHe="Ħ",fHe="ħ",hHe="≎",pHe="≏",gHe="⁃",mHe="‐",vHe="Í",bHe="í",yHe="⁣",xHe="Î",wHe="î",SHe="И",CHe="и",EHe="İ",AHe="Е",kHe="е",THe="¡",_He="⇔",DHe="𝔦",$He="ℑ",OHe="Ì",IHe="ì",RHe="ⅈ",MHe="⨌",PHe="∭",NHe="⧜",LHe="℩",FHe="Ĳ",BHe="ĳ",zHe="Ī",HHe="ī",jHe="ℑ",WHe="ⅈ",UHe="ℐ",VHe="ℑ",YHe="ı",XHe="ℑ",GHe="⊷",qHe="Ƶ",KHe="⇒",JHe="℅",ZHe="∞",QHe="⧝",eje="ı",tje="⊺",nje="∫",rje="∬",ije="ℤ",oje="∫",sje="⊺",aje="⋂",lje="⨗",cje="⨼",uje="⁣",dje="⁢",fje="Ё",hje="ё",pje="Į",gje="į",mje="𝕀",vje="𝕚",bje="Ι",yje="ι",xje="⨼",wje="¿",Sje="𝒾",Cje="ℐ",Eje="∈",Aje="⋵",kje="⋹",Tje="⋴",_je="⋳",Dje="∈",$je="⁢",Oje="Ĩ",Ije="ĩ",Rje="І",Mje="і",Pje="Ï",Nje="ï",Lje="Ĵ",Fje="ĵ",Bje="Й",zje="й",Hje="𝔍",jje="𝔧",Wje="ȷ",Uje="𝕁",Vje="𝕛",Yje="𝒥",Xje="𝒿",Gje="Ј",qje="ј",Kje="Є",Jje="є",Zje="Κ",Qje="κ",eWe="ϰ",tWe="Ķ",nWe="ķ",rWe="К",iWe="к",oWe="𝔎",sWe="𝔨",aWe="ĸ",lWe="Х",cWe="х",uWe="Ќ",dWe="ќ",fWe="𝕂",hWe="𝕜",pWe="𝒦",gWe="𝓀",mWe="⇚",vWe="Ĺ",bWe="ĺ",yWe="⦴",xWe="ℒ",wWe="Λ",SWe="λ",CWe="⟨",EWe="⟪",AWe="⦑",kWe="⟨",TWe="⪅",_We="ℒ",DWe="«",$We="⇤",OWe="⤟",IWe="←",RWe="↞",MWe="⇐",PWe="⤝",NWe="↩",LWe="↫",FWe="⤹",BWe="⥳",zWe="↢",HWe="⤙",jWe="⤛",WWe="⪫",UWe="⪭",VWe="⪭︀",YWe="⤌",XWe="⤎",GWe="❲",qWe="{",KWe="[",JWe="⦋",ZWe="⦏",QWe="⦍",eUe="Ľ",tUe="ľ",nUe="Ļ",rUe="ļ",iUe="⌈",oUe="{",sUe="Л",aUe="л",lUe="⤶",cUe="“",uUe="„",dUe="⥧",fUe="⥋",hUe="↲",pUe="≤",gUe="≦",mUe="⟨",vUe="⇤",bUe="←",yUe="←",xUe="⇐",wUe="⇆",SUe="↢",CUe="⌈",EUe="⟦",AUe="⥡",kUe="⥙",TUe="⇃",_Ue="⌊",DUe="↽",$Ue="↼",OUe="⇇",IUe="↔",RUe="↔",MUe="⇔",PUe="⇆",NUe="⇋",LUe="↭",FUe="⥎",BUe="↤",zUe="⊣",HUe="⥚",jUe="⋋",WUe="⧏",UUe="⊲",VUe="⊴",YUe="⥑",XUe="⥠",GUe="⥘",qUe="↿",KUe="⥒",JUe="↼",ZUe="⪋",QUe="⋚",eVe="≤",tVe="≦",nVe="⩽",rVe="⪨",iVe="⩽",oVe="⩿",sVe="⪁",aVe="⪃",lVe="⋚︀",cVe="⪓",uVe="⪅",dVe="⋖",fVe="⋚",hVe="⪋",pVe="⋚",gVe="≦",mVe="≶",vVe="≶",bVe="⪡",yVe="≲",xVe="⩽",wVe="≲",SVe="⥼",CVe="⌊",EVe="𝔏",AVe="𝔩",kVe="≶",TVe="⪑",_Ve="⥢",DVe="↽",$Ve="↼",OVe="⥪",IVe="▄",RVe="Љ",MVe="љ",PVe="⇇",NVe="≪",LVe="⋘",FVe="⌞",BVe="⇚",zVe="⥫",HVe="◺",jVe="Ŀ",WVe="ŀ",UVe="⎰",VVe="⎰",YVe="⪉",XVe="⪉",GVe="⪇",qVe="≨",KVe="⪇",JVe="≨",ZVe="⋦",QVe="⟬",eYe="⇽",tYe="⟦",nYe="⟵",rYe="⟵",iYe="⟸",oYe="⟷",sYe="⟷",aYe="⟺",lYe="⟼",cYe="⟶",uYe="⟶",dYe="⟹",fYe="↫",hYe="↬",pYe="⦅",gYe="𝕃",mYe="𝕝",vYe="⨭",bYe="⨴",yYe="∗",xYe="_",wYe="↙",SYe="↘",CYe="◊",EYe="◊",AYe="⧫",kYe="(",TYe="⦓",_Ye="⇆",DYe="⌟",$Ye="⇋",OYe="⥭",IYe="‎",RYe="⊿",MYe="‹",PYe="𝓁",NYe="ℒ",LYe="↰",FYe="↰",BYe="≲",zYe="⪍",HYe="⪏",jYe="[",WYe="‘",UYe="‚",VYe="Ł",YYe="ł",XYe="⪦",GYe="⩹",qYe="<",KYe="<",JYe="≪",ZYe="⋖",QYe="⋋",eXe="⋉",tXe="⥶",nXe="⩻",rXe="◃",iXe="⊴",oXe="◂",sXe="⦖",aXe="⥊",lXe="⥦",cXe="≨︀",uXe="≨︀",dXe="¯",fXe="♂",hXe="✠",pXe="✠",gXe="↦",mXe="↦",vXe="↧",bXe="↤",yXe="↥",xXe="▮",wXe="⨩",SXe="М",CXe="м",EXe="—",AXe="∺",kXe="∡",TXe=" ",_Xe="ℳ",DXe="𝔐",$Xe="𝔪",OXe="℧",IXe="µ",RXe="*",MXe="⫰",PXe="∣",NXe="·",LXe="⊟",FXe="−",BXe="∸",zXe="⨪",HXe="∓",jXe="⫛",WXe="…",UXe="∓",VXe="⊧",YXe="𝕄",XXe="𝕞",GXe="∓",qXe="𝓂",KXe="ℳ",JXe="∾",ZXe="Μ",QXe="μ",eGe="⊸",tGe="⊸",nGe="∇",rGe="Ń",iGe="ń",oGe="∠⃒",sGe="≉",aGe="⩰̸",lGe="≋̸",cGe="ŉ",uGe="≉",dGe="♮",fGe="ℕ",hGe="♮",pGe=" ",gGe="≎̸",mGe="≏̸",vGe="⩃",bGe="Ň",yGe="ň",xGe="Ņ",wGe="ņ",SGe="≇",CGe="⩭̸",EGe="⩂",AGe="Н",kGe="н",TGe="–",_Ge="⤤",DGe="↗",$Ge="⇗",OGe="↗",IGe="≠",RGe="≐̸",MGe="​",PGe="​",NGe="​",LGe="​",FGe="≢",BGe="⤨",zGe="≂̸",HGe="≫",jGe="≪",WGe=`
`,UGe="∄",VGe="∄",YGe="𝔑",XGe="𝔫",GGe="≧̸",qGe="≱",KGe="≱",JGe="≧̸",ZGe="⩾̸",QGe="⩾̸",eqe="⋙̸",tqe="≵",nqe="≫⃒",rqe="≯",iqe="≯",oqe="≫̸",sqe="↮",aqe="⇎",lqe="⫲",cqe="∋",uqe="⋼",dqe="⋺",fqe="∋",hqe="Њ",pqe="њ",gqe="↚",mqe="⇍",vqe="‥",bqe="≦̸",yqe="≰",xqe="↚",wqe="⇍",Sqe="↮",Cqe="⇎",Eqe="≰",Aqe="≦̸",kqe="⩽̸",Tqe="⩽̸",_qe="≮",Dqe="⋘̸",$qe="≴",Oqe="≪⃒",Iqe="≮",Rqe="⋪",Mqe="⋬",Pqe="≪̸",Nqe="∤",Lqe="⁠",Fqe=" ",Bqe="𝕟",zqe="ℕ",Hqe="⫬",jqe="¬",Wqe="≢",Uqe="≭",Vqe="∦",Yqe="∉",Xqe="≠",Gqe="≂̸",qqe="∄",Kqe="≯",Jqe="≱",Zqe="≧̸",Qqe="≫̸",eKe="≹",tKe="⩾̸",nKe="≵",rKe="≎̸",iKe="≏̸",oKe="∉",sKe="⋵̸",aKe="⋹̸",lKe="∉",cKe="⋷",uKe="⋶",dKe="⧏̸",fKe="⋪",hKe="⋬",pKe="≮",gKe="≰",mKe="≸",vKe="≪̸",bKe="⩽̸",yKe="≴",xKe="⪢̸",wKe="⪡̸",SKe="∌",CKe="∌",EKe="⋾",AKe="⋽",kKe="⊀",TKe="⪯̸",_Ke="⋠",DKe="∌",$Ke="⧐̸",OKe="⋫",IKe="⋭",RKe="⊏̸",MKe="⋢",PKe="⊐̸",NKe="⋣",LKe="⊂⃒",FKe="⊈",BKe="⊁",zKe="⪰̸",HKe="⋡",jKe="≿̸",WKe="⊃⃒",UKe="⊉",VKe="≁",YKe="≄",XKe="≇",GKe="≉",qKe="∤",KKe="∦",JKe="∦",ZKe="⫽⃥",QKe="∂̸",eJe="⨔",tJe="⊀",nJe="⋠",rJe="⊀",iJe="⪯̸",oJe="⪯̸",sJe="⤳̸",aJe="↛",lJe="⇏",cJe="↝̸",uJe="↛",dJe="⇏",fJe="⋫",hJe="⋭",pJe="⊁",gJe="⋡",mJe="⪰̸",vJe="𝒩",bJe="𝓃",yJe="∤",xJe="∦",wJe="≁",SJe="≄",CJe="≄",EJe="∤",AJe="∦",kJe="⋢",TJe="⋣",_Je="⊄",DJe="⫅̸",$Je="⊈",OJe="⊂⃒",IJe="⊈",RJe="⫅̸",MJe="⊁",PJe="⪰̸",NJe="⊅",LJe="⫆̸",FJe="⊉",BJe="⊃⃒",zJe="⊉",HJe="⫆̸",jJe="≹",WJe="Ñ",UJe="ñ",VJe="≸",YJe="⋪",XJe="⋬",GJe="⋫",qJe="⋭",KJe="Ν",JJe="ν",ZJe="#",QJe="№",eZe=" ",tZe="≍⃒",nZe="⊬",rZe="⊭",iZe="⊮",oZe="⊯",sZe="≥⃒",aZe=">⃒",lZe="⤄",cZe="⧞",uZe="⤂",dZe="≤⃒",fZe="<⃒",hZe="⊴⃒",pZe="⤃",gZe="⊵⃒",mZe="∼⃒",vZe="⤣",bZe="↖",yZe="⇖",xZe="↖",wZe="⤧",SZe="Ó",CZe="ó",EZe="⊛",AZe="Ô",kZe="ô",TZe="⊚",_Ze="О",DZe="о",$Ze="⊝",OZe="Ő",IZe="ő",RZe="⨸",MZe="⊙",PZe="⦼",NZe="Œ",LZe="œ",FZe="⦿",BZe="𝔒",zZe="𝔬",HZe="˛",jZe="Ò",WZe="ò",UZe="⧁",VZe="⦵",YZe="Ω",XZe="∮",GZe="↺",qZe="⦾",KZe="⦻",JZe="‾",ZZe="⧀",QZe="Ō",eQe="ō",tQe="Ω",nQe="ω",rQe="Ο",iQe="ο",oQe="⦶",sQe="⊖",aQe="𝕆",lQe="𝕠",cQe="⦷",uQe="“",dQe="‘",fQe="⦹",hQe="⊕",pQe="↻",gQe="⩔",mQe="∨",vQe="⩝",bQe="ℴ",yQe="ℴ",xQe="ª",wQe="º",SQe="⊶",CQe="⩖",EQe="⩗",AQe="⩛",kQe="Ⓢ",TQe="𝒪",_Qe="ℴ",DQe="Ø",$Qe="ø",OQe="⊘",IQe="Õ",RQe="õ",MQe="⨶",PQe="⨷",NQe="⊗",LQe="Ö",FQe="ö",BQe="⌽",zQe="‾",HQe="⏞",jQe="⎴",WQe="⏜",UQe="¶",VQe="∥",YQe="∥",XQe="⫳",GQe="⫽",qQe="∂",KQe="∂",JQe="П",ZQe="п",QQe="%",eet=".",tet="‰",net="⊥",ret="‱",iet="𝔓",oet="𝔭",set="Φ",aet="φ",cet="ϕ",uet="ℳ",det="☎",fet="Π",het="π",pet="⋔",get="ϖ",met="ℏ",vet="ℎ",bet="ℏ",yet="⨣",xet="⊞",wet="⨢",Cet="+",Eet="∔",Aet="⨥",ket="⩲",Tet="±",_et="±",Det="⨦",$et="⨧",Oet="±",Iet="ℌ",Ret="⨕",Met="𝕡",Pet="ℙ",Net="£",Let="⪷",Fet="⪻",Bet="≺",zet="≼",Het="⪷",jet="≺",Wet="≼",Uet="≺",Vet="⪯",Yet="≼",Xet="≾",Get="⪯",qet="⪹",Ket="⪵",Jet="⋨",Zet="⪯",Qet="⪳",ett="≾",ttt="′",ntt="″",rtt="ℙ",itt="⪹",ott="⪵",stt="⋨",att="∏",ltt="∏",ctt="⌮",utt="⌒",dtt="⌓",ftt="∝",htt="∝",ptt="∷",gtt="∝",mtt="≾",vtt="⊰",btt="𝒫",ytt="𝓅",xtt="Ψ",wtt="ψ",Stt=" ",Ctt="𝔔",Ett="𝔮",Att="⨌",ktt="𝕢",Ttt="ℚ",_tt="⁗",Dtt="𝒬",$tt="𝓆",Ott="ℍ",Itt="⨖",Rtt="?",Mtt="≟",Ptt='"',Ntt='"',Ltt="⇛",Ftt="∽̱",Btt="Ŕ",ztt="ŕ",Htt="√",jtt="⦳",Wtt="⟩",Utt="⟫",Vtt="⦒",Ytt="⦥",Xtt="⟩",Gtt="»",qtt="⥵",Ktt="⇥",Jtt="⤠",Ztt="⤳",Qtt="→",ent="↠",tnt="⇒",nnt="⤞",rnt="↪",int="↬",ont="⥅",snt="⥴",ant="⤖",lnt="↣",cnt="↝",unt="⤚",dnt="⤜",fnt="∶",hnt="ℚ",pnt="⤍",gnt="⤏",mnt="⤐",vnt="❳",bnt="}",ynt="]",xnt="⦌",wnt="⦎",Snt="⦐",Cnt="Ř",Ent="ř",Ant="Ŗ",knt="ŗ",Tnt="⌉",_nt="}",Dnt="Р",$nt="р",Ont="⤷",Int="⥩",Rnt="”",Mnt="”",Pnt="↳",Nnt="ℜ",Lnt="ℛ",Fnt="ℜ",Bnt="ℝ",znt="ℜ",Hnt="▭",jnt="®",Wnt="®",Unt="∋",Vnt="⇋",Ynt="⥯",Xnt="⥽",Gnt="⌋",qnt="𝔯",Knt="ℜ",Jnt="⥤",Znt="⇁",Qnt="⇀",ert="⥬",trt="Ρ",nrt="ρ",rrt="ϱ",irt="⟩",ort="⇥",srt="→",art="→",lrt="⇒",crt="⇄",urt="↣",drt="⌉",frt="⟧",hrt="⥝",prt="⥕",grt="⇂",mrt="⌋",vrt="⇁",brt="⇀",yrt="⇄",xrt="⇌",wrt="⇉",Srt="↝",Crt="↦",Ert="⊢",Art="⥛",krt="⋌",Trt="⧐",_rt="⊳",Drt="⊵",$rt="⥏",Ort="⥜",Irt="⥔",Rrt="↾",Mrt="⥓",Prt="⇀",Nrt="˚",Lrt="≓",Frt="⇄",Brt="⇌",zrt="‏",Hrt="⎱",jrt="⎱",Wrt="⫮",Urt="⟭",Vrt="⇾",Yrt="⟧",Xrt="⦆",Grt="𝕣",qrt="ℝ",Krt="⨮",Jrt="⨵",Zrt="⥰",Qrt=")",eit="⦔",tit="⨒",nit="⇉",rit="⇛",iit="›",oit="𝓇",sit="ℛ",ait="↱",lit="↱",cit="]",uit="’",dit="’",fit="⋌",hit="⋊",pit="▹",git="⊵",mit="▸",vit="⧎",bit="⧴",yit="⥨",xit="℞",wit="Ś",Sit="ś",Cit="‚",Eit="⪸",Ait="Š",kit="š",Tit="⪼",_it="≻",Dit="≽",$it="⪰",Oit="⪴",Iit="Ş",Rit="ş",Mit="Ŝ",Pit="ŝ",Nit="⪺",Lit="⪶",Fit="⋩",Bit="⨓",zit="≿",Hit="С",jit="с",Wit="⊡",Uit="⋅",Vit="⩦",Yit="⤥",Xit="↘",Git="⇘",qit="↘",Kit="§",Jit=";",Zit="⤩",Qit="∖",eot="∖",tot="✶",not="𝔖",rot="𝔰",iot="⌢",oot="♯",sot="Щ",aot="щ",lot="Ш",cot="ш",uot="↓",dot="←",fot="∣",hot="∥",pot="→",got="↑",mot="­",vot="Σ",bot="σ",yot="ς",xot="ς",wot="∼",Sot="⩪",Cot="≃",Eot="≃",Aot="⪞",kot="⪠",Tot="⪝",_ot="⪟",Dot="≆",$ot="⨤",Oot="⥲",Iot="←",Rot="∘",Mot="∖",Pot="⨳",Not="⧤",Lot="∣",Fot="⌣",Bot="⪪",zot="⪬",Hot="⪬︀",jot="Ь",Wot="ь",Uot="⌿",Vot="⧄",Yot="/",Xot="𝕊",Got="𝕤",qot="♠",Kot="♠",Jot="∥",Zot="⊓",Qot="⊓︀",est="⊔",tst="⊔︀",nst="√",rst="⊏",ist="⊑",ost="⊏",sst="⊑",ast="⊐",lst="⊒",cst="⊐",ust="⊒",dst="□",fst="□",hst="⊓",pst="⊏",gst="⊑",mst="⊐",vst="⊒",bst="⊔",yst="▪",xst="□",wst="▪",Sst="→",Cst="𝒮",Est="𝓈",Ast="∖",kst="⌣",Tst="⋆",_st="⋆",Dst="☆",$st="★",Ost="ϵ",Ist="ϕ",Rst="¯",Mst="⊂",Pst="⋐",Nst="⪽",Lst="⫅",Fst="⊆",Bst="⫃",zst="⫁",Hst="⫋",jst="⊊",Wst="⪿",Ust="⥹",Vst="⊂",Yst="⋐",Xst="⊆",Gst="⫅",qst="⊆",Kst="⊊",Jst="⫋",Zst="⫇",Qst="⫕",eat="⫓",tat="⪸",nat="≻",rat="≽",iat="≻",oat="⪰",sat="≽",aat="≿",lat="⪰",cat="⪺",uat="⪶",dat="⋩",fat="≿",hat="∋",pat="∑",gat="∑",mat="♪",vat="¹",bat="²",yat="³",xat="⊃",wat="⋑",Sat="⪾",Cat="⫘",Eat="⫆",Aat="⊇",kat="⫄",Tat="⊃",_at="⊇",Dat="⟉",$at="⫗",Oat="⥻",Iat="⫂",Rat="⫌",Mat="⊋",Pat="⫀",Nat="⊃",Lat="⋑",Fat="⊇",Bat="⫆",zat="⊋",Hat="⫌",jat="⫈",Wat="⫔",Uat="⫖",Vat="⤦",Yat="↙",Xat="⇙",Gat="↙",qat="⤪",Kat="ß",Jat="	",Zat="⌖",Qat="Τ",elt="τ",tlt="⎴",nlt="Ť",rlt="ť",ilt="Ţ",olt="ţ",slt="Т",alt="т",llt="⃛",clt="⌕",ult="𝔗",dlt="𝔱",flt="∴",hlt="∴",plt="∴",glt="Θ",mlt="θ",vlt="ϑ",blt="ϑ",ylt="≈",xlt="∼",wlt="  ",Slt=" ",Clt=" ",Elt="≈",Alt="∼",klt="Þ",Tlt="þ",_lt="˜",Dlt="∼",$lt="≃",Olt="≅",Ilt="≈",Rlt="⨱",Mlt="⊠",Plt="×",Nlt="⨰",Llt="∭",Flt="⤨",Blt="⌶",zlt="⫱",Hlt="⊤",jlt="𝕋",Wlt="𝕥",Ult="⫚",Vlt="⤩",Ylt="‴",Xlt="™",Glt="™",qlt="▵",Klt="▿",Jlt="◃",Zlt="⊴",Qlt="≜",ect="▹",tct="⊵",nct="◬",rct="≜",ict="⨺",oct="⃛",sct="⨹",act="⧍",lct="⨻",cct="⏢",uct="𝒯",dct="𝓉",fct="Ц",hct="ц",pct="Ћ",gct="ћ",mct="Ŧ",vct="ŧ",bct="≬",yct="↞",xct="↠",wct="Ú",Sct="ú",Cct="↑",Ect="↟",Act="⇑",kct="⥉",Tct="Ў",_ct="ў",Dct="Ŭ",$ct="ŭ",Oct="Û",Ict="û",Rct="У",Mct="у",Pct="⇅",Nct="Ű",Lct="ű",Fct="⥮",Bct="⥾",zct="𝔘",Hct="𝔲",jct="Ù",Wct="ù",Uct="⥣",Vct="↿",Yct="↾",Xct="▀",Gct="⌜",qct="⌜",Kct="⌏",Jct="◸",Zct="Ū",Qct="ū",eut="¨",tut="_",nut="⏟",rut="⎵",iut="⏝",out="⋃",sut="⊎",aut="Ų",lut="ų",cut="𝕌",uut="𝕦",dut="⤒",fut="↑",hut="↑",put="⇑",gut="⇅",mut="↕",vut="↕",but="⇕",yut="⥮",xut="↿",wut="↾",Sut="⊎",Cut="↖",Eut="↗",Aut="υ",kut="ϒ",Tut="ϒ",_ut="Υ",Dut="υ",$ut="↥",Out="⊥",Iut="⇈",Rut="⌝",Mut="⌝",Put="⌎",Nut="Ů",Lut="ů",Fut="◹",But="𝒰",zut="𝓊",Hut="⋰",jut="Ũ",Wut="ũ",Uut="▵",Vut="▴",Yut="⇈",Xut="Ü",Gut="ü",qut="⦧",Kut="⦜",Jut="ϵ",Zut="ϰ",Qut="∅",edt="ϕ",tdt="ϖ",ndt="∝",rdt="↕",idt="⇕",odt="ϱ",sdt="ς",adt="⊊︀",ldt="⫋︀",cdt="⊋︀",udt="⫌︀",ddt="ϑ",fdt="⊲",hdt="⊳",pdt="⫨",gdt="⫫",mdt="⫩",vdt="В",bdt="в",ydt="⊢",xdt="⊨",wdt="⊩",Sdt="⊫",Cdt="⫦",Edt="⊻",Adt="∨",kdt="⋁",Tdt="≚",_dt="⋮",Ddt="|",$dt="‖",Odt="|",Idt="‖",Rdt="∣",Mdt="|",Pdt="❘",Ndt="≀",Ldt=" ",Fdt="𝔙",Bdt="𝔳",zdt="⊲",Hdt="⊂⃒",jdt="⊃⃒",Wdt="𝕍",Udt="𝕧",Vdt="∝",Ydt="⊳",Xdt="𝒱",Gdt="𝓋",qdt="⫋︀",Kdt="⊊︀",Jdt="⫌︀",Zdt="⊋︀",Qdt="⊪",eft="⦚",tft="Ŵ",nft="ŵ",rft="⩟",ift="∧",oft="⋀",sft="≙",aft="℘",lft="𝔚",cft="𝔴",uft="𝕎",dft="𝕨",fft="℘",hft="≀",pft="≀",gft="𝒲",mft="𝓌",vft="⋂",bft="◯",yft="⋃",xft="▽",wft="𝔛",Sft="𝔵",Cft="⟷",Eft="⟺",Aft="Ξ",kft="ξ",Tft="⟵",_ft="⟸",Dft="⟼",$ft="⋻",Oft="⨀",Ift="𝕏",Rft="𝕩",Mft="⨁",Pft="⨂",Nft="⟶",Lft="⟹",Fft="𝒳",Bft="𝓍",zft="⨆",Hft="⨄",jft="△",Wft="⋁",Uft="⋀",Vft="Ý",Yft="ý",Xft="Я",Gft="я",qft="Ŷ",Kft="ŷ",Jft="Ы",Zft="ы",Qft="¥",eht="𝔜",tht="𝔶",nht="Ї",rht="ї",iht="𝕐",oht="𝕪",sht="𝒴",aht="𝓎",lht="Ю",cht="ю",uht="ÿ",dht="Ÿ",fht="Ź",hht="ź",pht="Ž",ght="ž",mht="З",vht="з",bht="Ż",yht="ż",xht="ℨ",wht="​",Sht="Ζ",Cht="ζ",Eht="𝔷",Aht="ℨ",kht="Ж",Tht="ж",_ht="⇝",Dht="𝕫",$ht="ℤ",Oht="𝒵",Iht="𝓏",Rht="‍",Mht="‌",Pht={Aacute:mMe,aacute:vMe,Abreve:bMe,abreve:yMe,ac:xMe,acd:wMe,acE:SMe,Acirc:CMe,acirc:EMe,acute:AMe,Acy:kMe,acy:TMe,AElig:_Me,aelig:DMe,af:$Me,Afr:OMe,afr:IMe,Agrave:RMe,agrave:MMe,alefsym:PMe,aleph:NMe,Alpha:LMe,alpha:FMe,Amacr:BMe,amacr:zMe,amalg:HMe,amp:jMe,AMP:WMe,andand:UMe,And:VMe,and:YMe,andd:XMe,andslope:GMe,andv:qMe,ang:KMe,ange:JMe,angle:ZMe,angmsdaa:QMe,angmsdab:ePe,angmsdac:tPe,angmsdad:nPe,angmsdae:rPe,angmsdaf:iPe,angmsdag:oPe,angmsdah:sPe,angmsd:aPe,angrt:lPe,angrtvb:cPe,angrtvbd:uPe,angsph:dPe,angst:fPe,angzarr:hPe,Aogon:pPe,aogon:gPe,Aopf:mPe,aopf:vPe,apacir:bPe,ap:yPe,apE:xPe,ape:wPe,apid:SPe,apos:CPe,ApplyFunction:EPe,approx:APe,approxeq:kPe,Aring:TPe,aring:_Pe,Ascr:DPe,ascr:$Pe,Assign:OPe,ast:IPe,asymp:RPe,asympeq:MPe,Atilde:PPe,atilde:NPe,Auml:LPe,auml:FPe,awconint:BPe,awint:zPe,backcong:HPe,backepsilon:jPe,backprime:WPe,backsim:UPe,backsimeq:VPe,Backslash:YPe,Barv:XPe,barvee:GPe,barwed:qPe,Barwed:KPe,barwedge:JPe,bbrk:ZPe,bbrktbrk:QPe,bcong:eNe,Bcy:tNe,bcy:nNe,bdquo:rNe,becaus:iNe,because:oNe,Because:sNe,bemptyv:aNe,bepsi:lNe,bernou:cNe,Bernoullis:uNe,Beta:dNe,beta:fNe,beth:hNe,between:pNe,Bfr:gNe,bfr:mNe,bigcap:vNe,bigcirc:bNe,bigcup:yNe,bigodot:xNe,bigoplus:wNe,bigotimes:SNe,bigsqcup:CNe,bigstar:ENe,bigtriangledown:ANe,bigtriangleup:kNe,biguplus:TNe,bigvee:_Ne,bigwedge:DNe,bkarow:$Ne,blacklozenge:ONe,blacksquare:INe,blacktriangle:RNe,blacktriangledown:MNe,blacktriangleleft:PNe,blacktriangleright:NNe,blank:LNe,blk12:FNe,blk14:BNe,blk34:zNe,block:HNe,bne:jNe,bnequiv:WNe,bNot:UNe,bnot:VNe,Bopf:YNe,bopf:XNe,bot:GNe,bottom:qNe,bowtie:KNe,boxbox:JNe,boxdl:ZNe,boxdL:QNe,boxDl:eLe,boxDL:tLe,boxdr:nLe,boxdR:rLe,boxDr:iLe,boxDR:oLe,boxh:sLe,boxH:aLe,boxhd:lLe,boxHd:cLe,boxhD:uLe,boxHD:dLe,boxhu:fLe,boxHu:hLe,boxhU:pLe,boxHU:gLe,boxminus:mLe,boxplus:vLe,boxtimes:bLe,boxul:yLe,boxuL:xLe,boxUl:wLe,boxUL:SLe,boxur:CLe,boxuR:ELe,boxUr:ALe,boxUR:kLe,boxv:TLe,boxV:_Le,boxvh:DLe,boxvH:$Le,boxVh:OLe,boxVH:ILe,boxvl:RLe,boxvL:MLe,boxVl:PLe,boxVL:NLe,boxvr:LLe,boxvR:FLe,boxVr:BLe,boxVR:zLe,bprime:HLe,breve:jLe,Breve:WLe,brvbar:ULe,bscr:VLe,Bscr:YLe,bsemi:XLe,bsim:GLe,bsime:qLe,bsolb:KLe,bsol:JLe,bsolhsub:ZLe,bull:QLe,bullet:e4e,bump:t4e,bumpE:n4e,bumpe:r4e,Bumpeq:i4e,bumpeq:o4e,Cacute:s4e,cacute:a4e,capand:l4e,capbrcup:c4e,capcap:u4e,cap:d4e,Cap:f4e,capcup:h4e,capdot:p4e,CapitalDifferentialD:g4e,caps:m4e,caret:v4e,caron:b4e,Cayleys:y4e,ccaps:x4e,Ccaron:w4e,ccaron:S4e,Ccedil:C4e,ccedil:E4e,Ccirc:A4e,ccirc:k4e,Cconint:T4e,ccups:_4e,ccupssm:D4e,Cdot:$4e,cdot:O4e,cedil:I4e,Cedilla:R4e,cemptyv:M4e,cent:P4e,centerdot:N4e,CenterDot:L4e,cfr:F4e,Cfr:B4e,CHcy:z4e,chcy:H4e,check:j4e,checkmark:W4e,Chi:U4e,chi:V4e,circ:Y4e,circeq:X4e,circlearrowleft:G4e,circlearrowright:q4e,circledast:K4e,circledcirc:J4e,circleddash:Z4e,CircleDot:Q4e,circledR:eFe,circledS:tFe,CircleMinus:nFe,CirclePlus:rFe,CircleTimes:iFe,cir:oFe,cirE:sFe,cire:aFe,cirfnint:lFe,cirmid:cFe,cirscir:uFe,ClockwiseContourIntegral:dFe,CloseCurlyDoubleQuote:fFe,CloseCurlyQuote:hFe,clubs:pFe,clubsuit:gFe,colon:mFe,Colon:vFe,Colone:bFe,colone:yFe,coloneq:xFe,comma:wFe,commat:SFe,comp:CFe,compfn:EFe,complement:AFe,complexes:kFe,cong:TFe,congdot:_Fe,Congruent:DFe,conint:$Fe,Conint:OFe,ContourIntegral:IFe,copf:RFe,Copf:MFe,coprod:PFe,Coproduct:NFe,copy:LFe,COPY:FFe,copysr:BFe,CounterClockwiseContourIntegral:zFe,crarr:HFe,cross:jFe,Cross:WFe,Cscr:UFe,cscr:VFe,csub:YFe,csube:XFe,csup:GFe,csupe:qFe,ctdot:KFe,cudarrl:JFe,cudarrr:ZFe,cuepr:QFe,cuesc:e8e,cularr:t8e,cularrp:n8e,cupbrcap:r8e,cupcap:i8e,CupCap:o8e,cup:s8e,Cup:a8e,cupcup:l8e,cupdot:c8e,cupor:u8e,cups:d8e,curarr:f8e,curarrm:h8e,curlyeqprec:p8e,curlyeqsucc:g8e,curlyvee:m8e,curlywedge:v8e,curren:b8e,curvearrowleft:y8e,curvearrowright:x8e,cuvee:w8e,cuwed:S8e,cwconint:C8e,cwint:E8e,cylcty:A8e,dagger:k8e,Dagger:T8e,daleth:_8e,darr:D8e,Darr:$8e,dArr:O8e,dash:I8e,Dashv:R8e,dashv:M8e,dbkarow:P8e,dblac:N8e,Dcaron:L8e,dcaron:F8e,Dcy:B8e,dcy:z8e,ddagger:H8e,ddarr:j8e,DD:W8e,dd:U8e,DDotrahd:V8e,ddotseq:Y8e,deg:X8e,Del:G8e,Delta:q8e,delta:K8e,demptyv:J8e,dfisht:Z8e,Dfr:Q8e,dfr:e5e,dHar:t5e,dharl:n5e,dharr:r5e,DiacriticalAcute:i5e,DiacriticalDot:o5e,DiacriticalDoubleAcute:s5e,DiacriticalGrave:a5e,DiacriticalTilde:l5e,diam:c5e,diamond:u5e,Diamond:d5e,diamondsuit:f5e,diams:h5e,die:p5e,DifferentialD:g5e,digamma:m5e,disin:v5e,div:b5e,divide:y5e,divideontimes:x5e,divonx:w5e,DJcy:S5e,djcy:C5e,dlcorn:E5e,dlcrop:A5e,dollar:k5e,Dopf:T5e,dopf:_5e,Dot:D5e,dot:$5e,DotDot:O5e,doteq:I5e,doteqdot:R5e,DotEqual:M5e,dotminus:P5e,dotplus:N5e,dotsquare:L5e,doublebarwedge:F5e,DoubleContourIntegral:B5e,DoubleDot:z5e,DoubleDownArrow:H5e,DoubleLeftArrow:j5e,DoubleLeftRightArrow:W5e,DoubleLeftTee:U5e,DoubleLongLeftArrow:V5e,DoubleLongLeftRightArrow:Y5e,DoubleLongRightArrow:X5e,DoubleRightArrow:G5e,DoubleRightTee:q5e,DoubleUpArrow:K5e,DoubleUpDownArrow:J5e,DoubleVerticalBar:Z5e,DownArrowBar:Q5e,downarrow:e6e,DownArrow:t6e,Downarrow:n6e,DownArrowUpArrow:r6e,DownBreve:i6e,downdownarrows:o6e,downharpoonleft:s6e,downharpoonright:a6e,DownLeftRightVector:l6e,DownLeftTeeVector:c6e,DownLeftVectorBar:u6e,DownLeftVector:d6e,DownRightTeeVector:f6e,DownRightVectorBar:h6e,DownRightVector:p6e,DownTeeArrow:g6e,DownTee:m6e,drbkarow:v6e,drcorn:b6e,drcrop:y6e,Dscr:x6e,dscr:w6e,DScy:S6e,dscy:C6e,dsol:E6e,Dstrok:A6e,dstrok:k6e,dtdot:T6e,dtri:_6e,dtrif:D6e,duarr:$6e,duhar:O6e,dwangle:I6e,DZcy:R6e,dzcy:M6e,dzigrarr:P6e,Eacute:N6e,eacute:L6e,easter:F6e,Ecaron:B6e,ecaron:z6e,Ecirc:H6e,ecirc:j6e,ecir:W6e,ecolon:U6e,Ecy:V6e,ecy:Y6e,eDDot:X6e,Edot:G6e,edot:q6e,eDot:K6e,ee:J6e,efDot:Z6e,Efr:Q6e,efr:e9e,eg:t9e,Egrave:n9e,egrave:r9e,egs:i9e,egsdot:o9e,el:s9e,Element:a9e,elinters:l9e,ell:c9e,els:u9e,elsdot:d9e,Emacr:f9e,emacr:h9e,empty:p9e,emptyset:g9e,EmptySmallSquare:m9e,emptyv:v9e,EmptyVerySmallSquare:b9e,emsp13:y9e,emsp14:x9e,emsp:w9e,ENG:S9e,eng:C9e,ensp:E9e,Eogon:A9e,eogon:k9e,Eopf:T9e,eopf:_9e,epar:D9e,eparsl:$9e,eplus:O9e,epsi:I9e,Epsilon:R9e,epsilon:M9e,epsiv:P9e,eqcirc:N9e,eqcolon:L9e,eqsim:F9e,eqslantgtr:B9e,eqslantless:z9e,Equal:H9e,equals:j9e,EqualTilde:W9e,equest:U9e,Equilibrium:V9e,equiv:Y9e,equivDD:X9e,eqvparsl:G9e,erarr:q9e,erDot:K9e,escr:J9e,Escr:Z9e,esdot:Q9e,Esim:eBe,esim:tBe,Eta:nBe,eta:rBe,ETH:iBe,eth:oBe,Euml:sBe,euml:aBe,euro:lBe,excl:cBe,exist:uBe,Exists:dBe,expectation:fBe,exponentiale:hBe,ExponentialE:pBe,fallingdotseq:gBe,Fcy:mBe,fcy:vBe,female:bBe,ffilig:yBe,fflig:xBe,ffllig:wBe,Ffr:SBe,ffr:CBe,filig:EBe,FilledSmallSquare:ABe,FilledVerySmallSquare:kBe,fjlig:TBe,flat:_Be,fllig:DBe,fltns:$Be,fnof:OBe,Fopf:IBe,fopf:RBe,forall:MBe,ForAll:PBe,fork:NBe,forkv:LBe,Fouriertrf:FBe,fpartint:BBe,frac12:zBe,frac13:HBe,frac14:jBe,frac15:WBe,frac16:UBe,frac18:VBe,frac23:YBe,frac25:XBe,frac34:GBe,frac35:qBe,frac38:KBe,frac45:JBe,frac56:ZBe,frac58:QBe,frac78:e7e,frasl:t7e,frown:n7e,fscr:r7e,Fscr:i7e,gacute:o7e,Gamma:s7e,gamma:a7e,Gammad:l7e,gammad:c7e,gap:u7e,Gbreve:d7e,gbreve:f7e,Gcedil:h7e,Gcirc:p7e,gcirc:g7e,Gcy:m7e,gcy:v7e,Gdot:b7e,gdot:y7e,ge:x7e,gE:w7e,gEl:S7e,gel:C7e,geq:E7e,geqq:A7e,geqslant:k7e,gescc:T7e,ges:_7e,gesdot:D7e,gesdoto:$7e,gesdotol:O7e,gesl:I7e,gesles:R7e,Gfr:M7e,gfr:P7e,gg:N7e,Gg:L7e,ggg:F7e,gimel:B7e,GJcy:z7e,gjcy:H7e,gla:j7e,gl:W7e,glE:U7e,glj:V7e,gnap:Y7e,gnapprox:X7e,gne:G7e,gnE:q7e,gneq:K7e,gneqq:J7e,gnsim:Z7e,Gopf:Q7e,gopf:eze,grave:tze,GreaterEqual:nze,GreaterEqualLess:rze,GreaterFullEqual:ize,GreaterGreater:oze,GreaterLess:sze,GreaterSlantEqual:aze,GreaterTilde:lze,Gscr:cze,gscr:uze,gsim:dze,gsime:fze,gsiml:hze,gtcc:pze,gtcir:gze,gt:mze,GT:vze,Gt:bze,gtdot:yze,gtlPar:xze,gtquest:wze,gtrapprox:Sze,gtrarr:Cze,gtrdot:Eze,gtreqless:Aze,gtreqqless:kze,gtrless:Tze,gtrsim:_ze,gvertneqq:Dze,gvnE:$ze,Hacek:Oze,hairsp:Ize,half:Rze,hamilt:Mze,HARDcy:Pze,hardcy:Nze,harrcir:Lze,harr:Fze,hArr:Bze,harrw:zze,Hat:Hze,hbar:jze,Hcirc:Wze,hcirc:Uze,hearts:Vze,heartsuit:Yze,hellip:Xze,hercon:Gze,hfr:qze,Hfr:Kze,HilbertSpace:Jze,hksearow:Zze,hkswarow:Qze,hoarr:eHe,homtht:tHe,hookleftarrow:nHe,hookrightarrow:rHe,hopf:iHe,Hopf:oHe,horbar:sHe,HorizontalLine:aHe,hscr:lHe,Hscr:cHe,hslash:uHe,Hstrok:dHe,hstrok:fHe,HumpDownHump:hHe,HumpEqual:pHe,hybull:gHe,hyphen:mHe,Iacute:vHe,iacute:bHe,ic:yHe,Icirc:xHe,icirc:wHe,Icy:SHe,icy:CHe,Idot:EHe,IEcy:AHe,iecy:kHe,iexcl:THe,iff:_He,ifr:DHe,Ifr:$He,Igrave:OHe,igrave:IHe,ii:RHe,iiiint:MHe,iiint:PHe,iinfin:NHe,iiota:LHe,IJlig:FHe,ijlig:BHe,Imacr:zHe,imacr:HHe,image:jHe,ImaginaryI:WHe,imagline:UHe,imagpart:VHe,imath:YHe,Im:XHe,imof:GHe,imped:qHe,Implies:KHe,incare:JHe,in:"∈",infin:ZHe,infintie:QHe,inodot:eje,intcal:tje,int:nje,Int:rje,integers:ije,Integral:oje,intercal:sje,Intersection:aje,intlarhk:lje,intprod:cje,InvisibleComma:uje,InvisibleTimes:dje,IOcy:fje,iocy:hje,Iogon:pje,iogon:gje,Iopf:mje,iopf:vje,Iota:bje,iota:yje,iprod:xje,iquest:wje,iscr:Sje,Iscr:Cje,isin:Eje,isindot:Aje,isinE:kje,isins:Tje,isinsv:_je,isinv:Dje,it:$je,Itilde:Oje,itilde:Ije,Iukcy:Rje,iukcy:Mje,Iuml:Pje,iuml:Nje,Jcirc:Lje,jcirc:Fje,Jcy:Bje,jcy:zje,Jfr:Hje,jfr:jje,jmath:Wje,Jopf:Uje,jopf:Vje,Jscr:Yje,jscr:Xje,Jsercy:Gje,jsercy:qje,Jukcy:Kje,jukcy:Jje,Kappa:Zje,kappa:Qje,kappav:eWe,Kcedil:tWe,kcedil:nWe,Kcy:rWe,kcy:iWe,Kfr:oWe,kfr:sWe,kgreen:aWe,KHcy:lWe,khcy:cWe,KJcy:uWe,kjcy:dWe,Kopf:fWe,kopf:hWe,Kscr:pWe,kscr:gWe,lAarr:mWe,Lacute:vWe,lacute:bWe,laemptyv:yWe,lagran:xWe,Lambda:wWe,lambda:SWe,lang:CWe,Lang:EWe,langd:AWe,langle:kWe,lap:TWe,Laplacetrf:_We,laquo:DWe,larrb:$We,larrbfs:OWe,larr:IWe,Larr:RWe,lArr:MWe,larrfs:PWe,larrhk:NWe,larrlp:LWe,larrpl:FWe,larrsim:BWe,larrtl:zWe,latail:HWe,lAtail:jWe,lat:WWe,late:UWe,lates:VWe,lbarr:YWe,lBarr:XWe,lbbrk:GWe,lbrace:qWe,lbrack:KWe,lbrke:JWe,lbrksld:ZWe,lbrkslu:QWe,Lcaron:eUe,lcaron:tUe,Lcedil:nUe,lcedil:rUe,lceil:iUe,lcub:oUe,Lcy:sUe,lcy:aUe,ldca:lUe,ldquo:cUe,ldquor:uUe,ldrdhar:dUe,ldrushar:fUe,ldsh:hUe,le:pUe,lE:gUe,LeftAngleBracket:mUe,LeftArrowBar:vUe,leftarrow:bUe,LeftArrow:yUe,Leftarrow:xUe,LeftArrowRightArrow:wUe,leftarrowtail:SUe,LeftCeiling:CUe,LeftDoubleBracket:EUe,LeftDownTeeVector:AUe,LeftDownVectorBar:kUe,LeftDownVector:TUe,LeftFloor:_Ue,leftharpoondown:DUe,leftharpoonup:$Ue,leftleftarrows:OUe,leftrightarrow:IUe,LeftRightArrow:RUe,Leftrightarrow:MUe,leftrightarrows:PUe,leftrightharpoons:NUe,leftrightsquigarrow:LUe,LeftRightVector:FUe,LeftTeeArrow:BUe,LeftTee:zUe,LeftTeeVector:HUe,leftthreetimes:jUe,LeftTriangleBar:WUe,LeftTriangle:UUe,LeftTriangleEqual:VUe,LeftUpDownVector:YUe,LeftUpTeeVector:XUe,LeftUpVectorBar:GUe,LeftUpVector:qUe,LeftVectorBar:KUe,LeftVector:JUe,lEg:ZUe,leg:QUe,leq:eVe,leqq:tVe,leqslant:nVe,lescc:rVe,les:iVe,lesdot:oVe,lesdoto:sVe,lesdotor:aVe,lesg:lVe,lesges:cVe,lessapprox:uVe,lessdot:dVe,lesseqgtr:fVe,lesseqqgtr:hVe,LessEqualGreater:pVe,LessFullEqual:gVe,LessGreater:mVe,lessgtr:vVe,LessLess:bVe,lesssim:yVe,LessSlantEqual:xVe,LessTilde:wVe,lfisht:SVe,lfloor:CVe,Lfr:EVe,lfr:AVe,lg:kVe,lgE:TVe,lHar:_Ve,lhard:DVe,lharu:$Ve,lharul:OVe,lhblk:IVe,LJcy:RVe,ljcy:MVe,llarr:PVe,ll:NVe,Ll:LVe,llcorner:FVe,Lleftarrow:BVe,llhard:zVe,lltri:HVe,Lmidot:jVe,lmidot:WVe,lmoustache:UVe,lmoust:VVe,lnap:YVe,lnapprox:XVe,lne:GVe,lnE:qVe,lneq:KVe,lneqq:JVe,lnsim:ZVe,loang:QVe,loarr:eYe,lobrk:tYe,longleftarrow:nYe,LongLeftArrow:rYe,Longleftarrow:iYe,longleftrightarrow:oYe,LongLeftRightArrow:sYe,Longleftrightarrow:aYe,longmapsto:lYe,longrightarrow:cYe,LongRightArrow:uYe,Longrightarrow:dYe,looparrowleft:fYe,looparrowright:hYe,lopar:pYe,Lopf:gYe,lopf:mYe,loplus:vYe,lotimes:bYe,lowast:yYe,lowbar:xYe,LowerLeftArrow:wYe,LowerRightArrow:SYe,loz:CYe,lozenge:EYe,lozf:AYe,lpar:kYe,lparlt:TYe,lrarr:_Ye,lrcorner:DYe,lrhar:$Ye,lrhard:OYe,lrm:IYe,lrtri:RYe,lsaquo:MYe,lscr:PYe,Lscr:NYe,lsh:LYe,Lsh:FYe,lsim:BYe,lsime:zYe,lsimg:HYe,lsqb:jYe,lsquo:WYe,lsquor:UYe,Lstrok:VYe,lstrok:YYe,ltcc:XYe,ltcir:GYe,lt:qYe,LT:KYe,Lt:JYe,ltdot:ZYe,lthree:QYe,ltimes:eXe,ltlarr:tXe,ltquest:nXe,ltri:rXe,ltrie:iXe,ltrif:oXe,ltrPar:sXe,lurdshar:aXe,luruhar:lXe,lvertneqq:cXe,lvnE:uXe,macr:dXe,male:fXe,malt:hXe,maltese:pXe,Map:"⤅",map:gXe,mapsto:mXe,mapstodown:vXe,mapstoleft:bXe,mapstoup:yXe,marker:xXe,mcomma:wXe,Mcy:SXe,mcy:CXe,mdash:EXe,mDDot:AXe,measuredangle:kXe,MediumSpace:TXe,Mellintrf:_Xe,Mfr:DXe,mfr:$Xe,mho:OXe,micro:IXe,midast:RXe,midcir:MXe,mid:PXe,middot:NXe,minusb:LXe,minus:FXe,minusd:BXe,minusdu:zXe,MinusPlus:HXe,mlcp:jXe,mldr:WXe,mnplus:UXe,models:VXe,Mopf:YXe,mopf:XXe,mp:GXe,mscr:qXe,Mscr:KXe,mstpos:JXe,Mu:ZXe,mu:QXe,multimap:eGe,mumap:tGe,nabla:nGe,Nacute:rGe,nacute:iGe,nang:oGe,nap:sGe,napE:aGe,napid:lGe,napos:cGe,napprox:uGe,natural:dGe,naturals:fGe,natur:hGe,nbsp:pGe,nbump:gGe,nbumpe:mGe,ncap:vGe,Ncaron:bGe,ncaron:yGe,Ncedil:xGe,ncedil:wGe,ncong:SGe,ncongdot:CGe,ncup:EGe,Ncy:AGe,ncy:kGe,ndash:TGe,nearhk:_Ge,nearr:DGe,neArr:$Ge,nearrow:OGe,ne:IGe,nedot:RGe,NegativeMediumSpace:MGe,NegativeThickSpace:PGe,NegativeThinSpace:NGe,NegativeVeryThinSpace:LGe,nequiv:FGe,nesear:BGe,nesim:zGe,NestedGreaterGreater:HGe,NestedLessLess:jGe,NewLine:WGe,nexist:UGe,nexists:VGe,Nfr:YGe,nfr:XGe,ngE:GGe,nge:qGe,ngeq:KGe,ngeqq:JGe,ngeqslant:ZGe,nges:QGe,nGg:eqe,ngsim:tqe,nGt:nqe,ngt:rqe,ngtr:iqe,nGtv:oqe,nharr:sqe,nhArr:aqe,nhpar:lqe,ni:cqe,nis:uqe,nisd:dqe,niv:fqe,NJcy:hqe,njcy:pqe,nlarr:gqe,nlArr:mqe,nldr:vqe,nlE:bqe,nle:yqe,nleftarrow:xqe,nLeftarrow:wqe,nleftrightarrow:Sqe,nLeftrightarrow:Cqe,nleq:Eqe,nleqq:Aqe,nleqslant:kqe,nles:Tqe,nless:_qe,nLl:Dqe,nlsim:$qe,nLt:Oqe,nlt:Iqe,nltri:Rqe,nltrie:Mqe,nLtv:Pqe,nmid:Nqe,NoBreak:Lqe,NonBreakingSpace:Fqe,nopf:Bqe,Nopf:zqe,Not:Hqe,not:jqe,NotCongruent:Wqe,NotCupCap:Uqe,NotDoubleVerticalBar:Vqe,NotElement:Yqe,NotEqual:Xqe,NotEqualTilde:Gqe,NotExists:qqe,NotGreater:Kqe,NotGreaterEqual:Jqe,NotGreaterFullEqual:Zqe,NotGreaterGreater:Qqe,NotGreaterLess:eKe,NotGreaterSlantEqual:tKe,NotGreaterTilde:nKe,NotHumpDownHump:rKe,NotHumpEqual:iKe,notin:oKe,notindot:sKe,notinE:aKe,notinva:lKe,notinvb:cKe,notinvc:uKe,NotLeftTriangleBar:dKe,NotLeftTriangle:fKe,NotLeftTriangleEqual:hKe,NotLess:pKe,NotLessEqual:gKe,NotLessGreater:mKe,NotLessLess:vKe,NotLessSlantEqual:bKe,NotLessTilde:yKe,NotNestedGreaterGreater:xKe,NotNestedLessLess:wKe,notni:SKe,notniva:CKe,notnivb:EKe,notnivc:AKe,NotPrecedes:kKe,NotPrecedesEqual:TKe,NotPrecedesSlantEqual:_Ke,NotReverseElement:DKe,NotRightTriangleBar:$Ke,NotRightTriangle:OKe,NotRightTriangleEqual:IKe,NotSquareSubset:RKe,NotSquareSubsetEqual:MKe,NotSquareSuperset:PKe,NotSquareSupersetEqual:NKe,NotSubset:LKe,NotSubsetEqual:FKe,NotSucceeds:BKe,NotSucceedsEqual:zKe,NotSucceedsSlantEqual:HKe,NotSucceedsTilde:jKe,NotSuperset:WKe,NotSupersetEqual:UKe,NotTilde:VKe,NotTildeEqual:YKe,NotTildeFullEqual:XKe,NotTildeTilde:GKe,NotVerticalBar:qKe,nparallel:KKe,npar:JKe,nparsl:ZKe,npart:QKe,npolint:eJe,npr:tJe,nprcue:nJe,nprec:rJe,npreceq:iJe,npre:oJe,nrarrc:sJe,nrarr:aJe,nrArr:lJe,nrarrw:cJe,nrightarrow:uJe,nRightarrow:dJe,nrtri:fJe,nrtrie:hJe,nsc:pJe,nsccue:gJe,nsce:mJe,Nscr:vJe,nscr:bJe,nshortmid:yJe,nshortparallel:xJe,nsim:wJe,nsime:SJe,nsimeq:CJe,nsmid:EJe,nspar:AJe,nsqsube:kJe,nsqsupe:TJe,nsub:_Je,nsubE:DJe,nsube:$Je,nsubset:OJe,nsubseteq:IJe,nsubseteqq:RJe,nsucc:MJe,nsucceq:PJe,nsup:NJe,nsupE:LJe,nsupe:FJe,nsupset:BJe,nsupseteq:zJe,nsupseteqq:HJe,ntgl:jJe,Ntilde:WJe,ntilde:UJe,ntlg:VJe,ntriangleleft:YJe,ntrianglelefteq:XJe,ntriangleright:GJe,ntrianglerighteq:qJe,Nu:KJe,nu:JJe,num:ZJe,numero:QJe,numsp:eZe,nvap:tZe,nvdash:nZe,nvDash:rZe,nVdash:iZe,nVDash:oZe,nvge:sZe,nvgt:aZe,nvHarr:lZe,nvinfin:cZe,nvlArr:uZe,nvle:dZe,nvlt:fZe,nvltrie:hZe,nvrArr:pZe,nvrtrie:gZe,nvsim:mZe,nwarhk:vZe,nwarr:bZe,nwArr:yZe,nwarrow:xZe,nwnear:wZe,Oacute:SZe,oacute:CZe,oast:EZe,Ocirc:AZe,ocirc:kZe,ocir:TZe,Ocy:_Ze,ocy:DZe,odash:$Ze,Odblac:OZe,odblac:IZe,odiv:RZe,odot:MZe,odsold:PZe,OElig:NZe,oelig:LZe,ofcir:FZe,Ofr:BZe,ofr:zZe,ogon:HZe,Ograve:jZe,ograve:WZe,ogt:UZe,ohbar:VZe,ohm:YZe,oint:XZe,olarr:GZe,olcir:qZe,olcross:KZe,oline:JZe,olt:ZZe,Omacr:QZe,omacr:eQe,Omega:tQe,omega:nQe,Omicron:rQe,omicron:iQe,omid:oQe,ominus:sQe,Oopf:aQe,oopf:lQe,opar:cQe,OpenCurlyDoubleQuote:uQe,OpenCurlyQuote:dQe,operp:fQe,oplus:hQe,orarr:pQe,Or:gQe,or:mQe,ord:vQe,order:bQe,orderof:yQe,ordf:xQe,ordm:wQe,origof:SQe,oror:CQe,orslope:EQe,orv:AQe,oS:kQe,Oscr:TQe,oscr:_Qe,Oslash:DQe,oslash:$Qe,osol:OQe,Otilde:IQe,otilde:RQe,otimesas:MQe,Otimes:PQe,otimes:NQe,Ouml:LQe,ouml:FQe,ovbar:BQe,OverBar:zQe,OverBrace:HQe,OverBracket:jQe,OverParenthesis:WQe,para:UQe,parallel:VQe,par:YQe,parsim:XQe,parsl:GQe,part:qQe,PartialD:KQe,Pcy:JQe,pcy:ZQe,percnt:QQe,period:eet,permil:tet,perp:net,pertenk:ret,Pfr:iet,pfr:oet,Phi:set,phi:aet,phiv:cet,phmmat:uet,phone:det,Pi:fet,pi:het,pitchfork:pet,piv:get,planck:met,planckh:vet,plankv:bet,plusacir:yet,plusb:xet,pluscir:wet,plus:Cet,plusdo:Eet,plusdu:Aet,pluse:ket,PlusMinus:Tet,plusmn:_et,plussim:Det,plustwo:$et,pm:Oet,Poincareplane:Iet,pointint:Ret,popf:Met,Popf:Pet,pound:Net,prap:Let,Pr:Fet,pr:Bet,prcue:zet,precapprox:Het,prec:jet,preccurlyeq:Wet,Precedes:Uet,PrecedesEqual:Vet,PrecedesSlantEqual:Yet,PrecedesTilde:Xet,preceq:Get,precnapprox:qet,precneqq:Ket,precnsim:Jet,pre:Zet,prE:Qet,precsim:ett,prime:ttt,Prime:ntt,primes:rtt,prnap:itt,prnE:ott,prnsim:stt,prod:att,Product:ltt,profalar:ctt,profline:utt,profsurf:dtt,prop:ftt,Proportional:htt,Proportion:ptt,propto:gtt,prsim:mtt,prurel:vtt,Pscr:btt,pscr:ytt,Psi:xtt,psi:wtt,puncsp:Stt,Qfr:Ctt,qfr:Ett,qint:Att,qopf:ktt,Qopf:Ttt,qprime:_tt,Qscr:Dtt,qscr:$tt,quaternions:Ott,quatint:Itt,quest:Rtt,questeq:Mtt,quot:Ptt,QUOT:Ntt,rAarr:Ltt,race:Ftt,Racute:Btt,racute:ztt,radic:Htt,raemptyv:jtt,rang:Wtt,Rang:Utt,rangd:Vtt,range:Ytt,rangle:Xtt,raquo:Gtt,rarrap:qtt,rarrb:Ktt,rarrbfs:Jtt,rarrc:Ztt,rarr:Qtt,Rarr:ent,rArr:tnt,rarrfs:nnt,rarrhk:rnt,rarrlp:int,rarrpl:ont,rarrsim:snt,Rarrtl:ant,rarrtl:lnt,rarrw:cnt,ratail:unt,rAtail:dnt,ratio:fnt,rationals:hnt,rbarr:pnt,rBarr:gnt,RBarr:mnt,rbbrk:vnt,rbrace:bnt,rbrack:ynt,rbrke:xnt,rbrksld:wnt,rbrkslu:Snt,Rcaron:Cnt,rcaron:Ent,Rcedil:Ant,rcedil:knt,rceil:Tnt,rcub:_nt,Rcy:Dnt,rcy:$nt,rdca:Ont,rdldhar:Int,rdquo:Rnt,rdquor:Mnt,rdsh:Pnt,real:Nnt,realine:Lnt,realpart:Fnt,reals:Bnt,Re:znt,rect:Hnt,reg:jnt,REG:Wnt,ReverseElement:Unt,ReverseEquilibrium:Vnt,ReverseUpEquilibrium:Ynt,rfisht:Xnt,rfloor:Gnt,rfr:qnt,Rfr:Knt,rHar:Jnt,rhard:Znt,rharu:Qnt,rharul:ert,Rho:trt,rho:nrt,rhov:rrt,RightAngleBracket:irt,RightArrowBar:ort,rightarrow:srt,RightArrow:art,Rightarrow:lrt,RightArrowLeftArrow:crt,rightarrowtail:urt,RightCeiling:drt,RightDoubleBracket:frt,RightDownTeeVector:hrt,RightDownVectorBar:prt,RightDownVector:grt,RightFloor:mrt,rightharpoondown:vrt,rightharpoonup:brt,rightleftarrows:yrt,rightleftharpoons:xrt,rightrightarrows:wrt,rightsquigarrow:Srt,RightTeeArrow:Crt,RightTee:Ert,RightTeeVector:Art,rightthreetimes:krt,RightTriangleBar:Trt,RightTriangle:_rt,RightTriangleEqual:Drt,RightUpDownVector:$rt,RightUpTeeVector:Ort,RightUpVectorBar:Irt,RightUpVector:Rrt,RightVectorBar:Mrt,RightVector:Prt,ring:Nrt,risingdotseq:Lrt,rlarr:Frt,rlhar:Brt,rlm:zrt,rmoustache:Hrt,rmoust:jrt,rnmid:Wrt,roang:Urt,roarr:Vrt,robrk:Yrt,ropar:Xrt,ropf:Grt,Ropf:qrt,roplus:Krt,rotimes:Jrt,RoundImplies:Zrt,rpar:Qrt,rpargt:eit,rppolint:tit,rrarr:nit,Rrightarrow:rit,rsaquo:iit,rscr:oit,Rscr:sit,rsh:ait,Rsh:lit,rsqb:cit,rsquo:uit,rsquor:dit,rthree:fit,rtimes:hit,rtri:pit,rtrie:git,rtrif:mit,rtriltri:vit,RuleDelayed:bit,ruluhar:yit,rx:xit,Sacute:wit,sacute:Sit,sbquo:Cit,scap:Eit,Scaron:Ait,scaron:kit,Sc:Tit,sc:_it,sccue:Dit,sce:$it,scE:Oit,Scedil:Iit,scedil:Rit,Scirc:Mit,scirc:Pit,scnap:Nit,scnE:Lit,scnsim:Fit,scpolint:Bit,scsim:zit,Scy:Hit,scy:jit,sdotb:Wit,sdot:Uit,sdote:Vit,searhk:Yit,searr:Xit,seArr:Git,searrow:qit,sect:Kit,semi:Jit,seswar:Zit,setminus:Qit,setmn:eot,sext:tot,Sfr:not,sfr:rot,sfrown:iot,sharp:oot,SHCHcy:sot,shchcy:aot,SHcy:lot,shcy:cot,ShortDownArrow:uot,ShortLeftArrow:dot,shortmid:fot,shortparallel:hot,ShortRightArrow:pot,ShortUpArrow:got,shy:mot,Sigma:vot,sigma:bot,sigmaf:yot,sigmav:xot,sim:wot,simdot:Sot,sime:Cot,simeq:Eot,simg:Aot,simgE:kot,siml:Tot,simlE:_ot,simne:Dot,simplus:$ot,simrarr:Oot,slarr:Iot,SmallCircle:Rot,smallsetminus:Mot,smashp:Pot,smeparsl:Not,smid:Lot,smile:Fot,smt:Bot,smte:zot,smtes:Hot,SOFTcy:jot,softcy:Wot,solbar:Uot,solb:Vot,sol:Yot,Sopf:Xot,sopf:Got,spades:qot,spadesuit:Kot,spar:Jot,sqcap:Zot,sqcaps:Qot,sqcup:est,sqcups:tst,Sqrt:nst,sqsub:rst,sqsube:ist,sqsubset:ost,sqsubseteq:sst,sqsup:ast,sqsupe:lst,sqsupset:cst,sqsupseteq:ust,square:dst,Square:fst,SquareIntersection:hst,SquareSubset:pst,SquareSubsetEqual:gst,SquareSuperset:mst,SquareSupersetEqual:vst,SquareUnion:bst,squarf:yst,squ:xst,squf:wst,srarr:Sst,Sscr:Cst,sscr:Est,ssetmn:Ast,ssmile:kst,sstarf:Tst,Star:_st,star:Dst,starf:$st,straightepsilon:Ost,straightphi:Ist,strns:Rst,sub:Mst,Sub:Pst,subdot:Nst,subE:Lst,sube:Fst,subedot:Bst,submult:zst,subnE:Hst,subne:jst,subplus:Wst,subrarr:Ust,subset:Vst,Subset:Yst,subseteq:Xst,subseteqq:Gst,SubsetEqual:qst,subsetneq:Kst,subsetneqq:Jst,subsim:Zst,subsub:Qst,subsup:eat,succapprox:tat,succ:nat,succcurlyeq:rat,Succeeds:iat,SucceedsEqual:oat,SucceedsSlantEqual:sat,SucceedsTilde:aat,succeq:lat,succnapprox:cat,succneqq:uat,succnsim:dat,succsim:fat,SuchThat:hat,sum:pat,Sum:gat,sung:mat,sup1:vat,sup2:bat,sup3:yat,sup:xat,Sup:wat,supdot:Sat,supdsub:Cat,supE:Eat,supe:Aat,supedot:kat,Superset:Tat,SupersetEqual:_at,suphsol:Dat,suphsub:$at,suplarr:Oat,supmult:Iat,supnE:Rat,supne:Mat,supplus:Pat,supset:Nat,Supset:Lat,supseteq:Fat,supseteqq:Bat,supsetneq:zat,supsetneqq:Hat,supsim:jat,supsub:Wat,supsup:Uat,swarhk:Vat,swarr:Yat,swArr:Xat,swarrow:Gat,swnwar:qat,szlig:Kat,Tab:Jat,target:Zat,Tau:Qat,tau:elt,tbrk:tlt,Tcaron:nlt,tcaron:rlt,Tcedil:ilt,tcedil:olt,Tcy:slt,tcy:alt,tdot:llt,telrec:clt,Tfr:ult,tfr:dlt,there4:flt,therefore:hlt,Therefore:plt,Theta:glt,theta:mlt,thetasym:vlt,thetav:blt,thickapprox:ylt,thicksim:xlt,ThickSpace:wlt,ThinSpace:Slt,thinsp:Clt,thkap:Elt,thksim:Alt,THORN:klt,thorn:Tlt,tilde:_lt,Tilde:Dlt,TildeEqual:$lt,TildeFullEqual:Olt,TildeTilde:Ilt,timesbar:Rlt,timesb:Mlt,times:Plt,timesd:Nlt,tint:Llt,toea:Flt,topbot:Blt,topcir:zlt,top:Hlt,Topf:jlt,topf:Wlt,topfork:Ult,tosa:Vlt,tprime:Ylt,trade:Xlt,TRADE:Glt,triangle:qlt,triangledown:Klt,triangleleft:Jlt,trianglelefteq:Zlt,triangleq:Qlt,triangleright:ect,trianglerighteq:tct,tridot:nct,trie:rct,triminus:ict,TripleDot:oct,triplus:sct,trisb:act,tritime:lct,trpezium:cct,Tscr:uct,tscr:dct,TScy:fct,tscy:hct,TSHcy:pct,tshcy:gct,Tstrok:mct,tstrok:vct,twixt:bct,twoheadleftarrow:yct,twoheadrightarrow:xct,Uacute:wct,uacute:Sct,uarr:Cct,Uarr:Ect,uArr:Act,Uarrocir:kct,Ubrcy:Tct,ubrcy:_ct,Ubreve:Dct,ubreve:$ct,Ucirc:Oct,ucirc:Ict,Ucy:Rct,ucy:Mct,udarr:Pct,Udblac:Nct,udblac:Lct,udhar:Fct,ufisht:Bct,Ufr:zct,ufr:Hct,Ugrave:jct,ugrave:Wct,uHar:Uct,uharl:Vct,uharr:Yct,uhblk:Xct,ulcorn:Gct,ulcorner:qct,ulcrop:Kct,ultri:Jct,Umacr:Zct,umacr:Qct,uml:eut,UnderBar:tut,UnderBrace:nut,UnderBracket:rut,UnderParenthesis:iut,Union:out,UnionPlus:sut,Uogon:aut,uogon:lut,Uopf:cut,uopf:uut,UpArrowBar:dut,uparrow:fut,UpArrow:hut,Uparrow:put,UpArrowDownArrow:gut,updownarrow:mut,UpDownArrow:vut,Updownarrow:but,UpEquilibrium:yut,upharpoonleft:xut,upharpoonright:wut,uplus:Sut,UpperLeftArrow:Cut,UpperRightArrow:Eut,upsi:Aut,Upsi:kut,upsih:Tut,Upsilon:_ut,upsilon:Dut,UpTeeArrow:$ut,UpTee:Out,upuparrows:Iut,urcorn:Rut,urcorner:Mut,urcrop:Put,Uring:Nut,uring:Lut,urtri:Fut,Uscr:But,uscr:zut,utdot:Hut,Utilde:jut,utilde:Wut,utri:Uut,utrif:Vut,uuarr:Yut,Uuml:Xut,uuml:Gut,uwangle:qut,vangrt:Kut,varepsilon:Jut,varkappa:Zut,varnothing:Qut,varphi:edt,varpi:tdt,varpropto:ndt,varr:rdt,vArr:idt,varrho:odt,varsigma:sdt,varsubsetneq:adt,varsubsetneqq:ldt,varsupsetneq:cdt,varsupsetneqq:udt,vartheta:ddt,vartriangleleft:fdt,vartriangleright:hdt,vBar:pdt,Vbar:gdt,vBarv:mdt,Vcy:vdt,vcy:bdt,vdash:ydt,vDash:xdt,Vdash:wdt,VDash:Sdt,Vdashl:Cdt,veebar:Edt,vee:Adt,Vee:kdt,veeeq:Tdt,vellip:_dt,verbar:Ddt,Verbar:$dt,vert:Odt,Vert:Idt,VerticalBar:Rdt,VerticalLine:Mdt,VerticalSeparator:Pdt,VerticalTilde:Ndt,VeryThinSpace:Ldt,Vfr:Fdt,vfr:Bdt,vltri:zdt,vnsub:Hdt,vnsup:jdt,Vopf:Wdt,vopf:Udt,vprop:Vdt,vrtri:Ydt,Vscr:Xdt,vscr:Gdt,vsubnE:qdt,vsubne:Kdt,vsupnE:Jdt,vsupne:Zdt,Vvdash:Qdt,vzigzag:eft,Wcirc:tft,wcirc:nft,wedbar:rft,wedge:ift,Wedge:oft,wedgeq:sft,weierp:aft,Wfr:lft,wfr:cft,Wopf:uft,wopf:dft,wp:fft,wr:hft,wreath:pft,Wscr:gft,wscr:mft,xcap:vft,xcirc:bft,xcup:yft,xdtri:xft,Xfr:wft,xfr:Sft,xharr:Cft,xhArr:Eft,Xi:Aft,xi:kft,xlarr:Tft,xlArr:_ft,xmap:Dft,xnis:$ft,xodot:Oft,Xopf:Ift,xopf:Rft,xoplus:Mft,xotime:Pft,xrarr:Nft,xrArr:Lft,Xscr:Fft,xscr:Bft,xsqcup:zft,xuplus:Hft,xutri:jft,xvee:Wft,xwedge:Uft,Yacute:Vft,yacute:Yft,YAcy:Xft,yacy:Gft,Ycirc:qft,ycirc:Kft,Ycy:Jft,ycy:Zft,yen:Qft,Yfr:eht,yfr:tht,YIcy:nht,yicy:rht,Yopf:iht,yopf:oht,Yscr:sht,yscr:aht,YUcy:lht,yucy:cht,yuml:uht,Yuml:dht,Zacute:fht,zacute:hht,Zcaron:pht,zcaron:ght,Zcy:mht,zcy:vht,Zdot:bht,zdot:yht,zeetrf:xht,ZeroWidthSpace:wht,Zeta:Sht,zeta:Cht,zfr:Eht,Zfr:Aht,ZHcy:kht,zhcy:Tht,zigrarr:_ht,zopf:Dht,Zopf:$ht,Zscr:Oht,zscr:Iht,zwj:Rht,zwnj:Mht};(function(t){t.exports=Pht})(gMe);var bI=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,fg={},Y8={};function Nht(t){var e,n,r=Y8[t];if(r)return r;for(r=Y8[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function qS(t,e,n){var r,i,o,s,a,l="";for(typeof e!="string"&&(n=e,e=qS.defaultChars),typeof n>"u"&&(n=!0),a=Nht(e),r=0,i=t.length;r<i;r++){if(o=t.charCodeAt(r),n&&o===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){l+=t.slice(r,r+3),r+=2;continue}if(o<128){l+=a[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(s=t.charCodeAt(r+1),s>=56320&&s<=57343)){l+=encodeURIComponent(t[r]+t[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(t[r])}return l}qS.defaultChars=";/?:@&=+$,-_.!~*'()#";qS.componentChars="-_.!~*'()";var Lht=qS,X8={};function Fht(t){var e,n,r=X8[t];if(r)return r;for(r=X8[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function KS(t,e){var n;return typeof e!="string"&&(e=KS.defaultChars),n=Fht(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var i,o,s,a,l,d,h,p="";for(i=0,o=r.length;i<o;i+=3){if(s=parseInt(r.slice(i+1,i+3),16),s<128){p+=n[s];continue}if((s&224)===192&&i+3<o&&(a=parseInt(r.slice(i+4,i+6),16),(a&192)===128)){h=s<<6&1984|a&63,h<128?p+="��":p+=String.fromCharCode(h),i+=3;continue}if((s&240)===224&&i+6<o&&(a=parseInt(r.slice(i+4,i+6),16),l=parseInt(r.slice(i+7,i+9),16),(a&192)===128&&(l&192)===128)){h=s<<12&61440|a<<6&4032|l&63,h<2048||h>=55296&&h<=57343?p+="���":p+=String.fromCharCode(h),i+=6;continue}if((s&248)===240&&i+9<o&&(a=parseInt(r.slice(i+4,i+6),16),l=parseInt(r.slice(i+7,i+9),16),d=parseInt(r.slice(i+10,i+12),16),(a&192)===128&&(l&192)===128&&(d&192)===128)){h=s<<18&1835008|a<<12&258048|l<<6&4032|d&63,h<65536||h>1114111?p+="����":(h-=65536,p+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),i+=9;continue}p+="�"}return p})}KS.defaultChars=";/?:@&=+$,#";KS.componentChars="";var Bht=KS,zht=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function q1(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Hht=/^([a-z0-9.+-]+:)/i,jht=/:[0-9]*$/,Wht=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Uht=["<",">",'"',"`"," ","\r",`
`,"	"],Vht=["{","}","|","\\","^","`"].concat(Uht),Yht=["'"].concat(Vht),G8=["%","/","?",";","#"].concat(Yht),q8=["/","?","#"],Xht=255,K8=/^[+a-z0-9A-Z_-]{0,63}$/,Ght=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,J8={javascript:!0,"javascript:":!0},Z8={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function qht(t,e){if(t&&t instanceof q1)return t;var n=new q1;return n.parse(t,e),n}q1.prototype.parse=function(t,e){var n,r,i,o,s,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=Wht.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var d=Hht.exec(a);if(d&&(d=d[0],i=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(d&&J8[d])&&(a=a.substr(2),this.slashes=!0)),!J8[d]&&(s||d&&!Z8[d])){var h=-1;for(n=0;n<q8.length;n++)o=a.indexOf(q8[n]),o!==-1&&(h===-1||o<h)&&(h=o);var p,y;for(h===-1?y=a.lastIndexOf("@"):y=a.lastIndexOf("@",h),y!==-1&&(p=a.slice(0,y),a=a.slice(y+1),this.auth=p),h=-1,n=0;n<G8.length;n++)o=a.indexOf(G8[n]),o!==-1&&(h===-1||o<h)&&(h=o);h===-1&&(h=a.length),a[h-1]===":"&&h--;var w=a.slice(0,h);a=a.slice(h),this.parseHost(w),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var k=this.hostname.split(/\./);for(n=0,r=k.length;n<r;n++){var D=k[n];if(D&&!D.match(K8)){for(var I="",_=0,L=D.length;_<L;_++)D.charCodeAt(_)>127?I+="x":I+=D[_];if(!I.match(K8)){var M=k.slice(0,n),F=k.slice(n+1),H=D.match(Ght);H&&(M.push(H[1]),F.unshift(H[2])),F.length&&(a=F.join(".")+a),this.hostname=M.join(".");break}}}}this.hostname.length>Xht&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var G=a.indexOf("#");G!==-1&&(this.hash=a.substr(G),a=a.slice(0,G));var X=a.indexOf("?");return X!==-1&&(this.search=a.substr(X),a=a.slice(0,X)),a&&(this.pathname=a),Z8[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};q1.prototype.parseHost=function(t){var e=jht.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Kht=qht;fg.encode=Lht;fg.decode=Bht;fg.format=zht;fg.parse=Kht;var md={},w2,Q8;function wX(){return Q8||(Q8=1,w2=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),w2}var S2,e5;function SX(){return e5||(e5=1,S2=/[\0-\x1F\x7F-\x9F]/),S2}var C2,t5;function Jht(){return t5||(t5=1,C2=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),C2}var E2,n5;function CX(){return n5||(n5=1,E2=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),E2}var r5;function Zht(){return r5||(r5=1,md.Any=wX(),md.Cc=SX(),md.Cf=Jht(),md.P=bI,md.Z=CX()),md}(function(t){function e(se){return Object.prototype.toString.call(se)}function n(se){return e(se)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(se,J){return r.call(se,J)}function o(se){var J=Array.prototype.slice.call(arguments,1);return J.forEach(function(B){if(B){if(typeof B!="object")throw new TypeError(B+"must be object");Object.keys(B).forEach(function(V){se[V]=B[V]})}}),se}function s(se,J,B){return[].concat(se.slice(0,J),B,se.slice(J+1))}function a(se){return!(se>=55296&&se<=57343||se>=64976&&se<=65007||(se&65535)===65535||(se&65535)===65534||se>=0&&se<=8||se===11||se>=14&&se<=31||se>=127&&se<=159||se>1114111)}function l(se){if(se>65535){se-=65536;var J=55296+(se>>10),B=56320+(se&1023);return String.fromCharCode(J,B)}return String.fromCharCode(se)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,h=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(d.source+"|"+h.source,"gi"),y=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,w=G1;function C(se,J){var B=0;return i(w,J)?w[J]:J.charCodeAt(0)===35&&y.test(J)&&(B=J[1].toLowerCase()==="x"?parseInt(J.slice(2),16):parseInt(J.slice(1),10),a(B))?l(B):se}function k(se){return se.indexOf("\\")<0?se:se.replace(d,"$1")}function D(se){return se.indexOf("\\")<0&&se.indexOf("&")<0?se:se.replace(p,function(J,B,V){return B||C(J,V)})}var I=/[&<>"]/,_=/[&<>"]/g,L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function M(se){return L[se]}function F(se){return I.test(se)?se.replace(_,M):se}var H=/[.?*+^$[\]\\(){}|-]/g;function G(se){return se.replace(H,"\\$&")}function X(se){switch(se){case 9:case 32:return!0}return!1}function Z(se){if(se>=8192&&se<=8202)return!0;switch(se){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var te=bI;function ae(se){return te.test(se)}function ye(se){switch(se){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ve(se){return se=se.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(se=se.replace(/ẞ/g,"ß")),se.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=fg,t.lib.ucmicro=Zht(),t.assign=o,t.isString=n,t.has=i,t.unescapeMd=k,t.unescapeAll=D,t.isValidEntityCode=a,t.fromCodePoint=l,t.escapeHtml=F,t.arrayReplaceAt=s,t.isSpace=X,t.isWhiteSpace=Z,t.isMdAsciiPunct=ye,t.isPunctChar=ae,t.escapeRE=G,t.normalizeReference=ve})(jn);var JS={},Qht=function(e,n,r){var i,o,s,a,l=-1,d=e.posMax,h=e.pos;for(e.pos=n+1,i=1;e.pos<d;){if(s=e.src.charCodeAt(e.pos),s===93&&(i--,i===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),s===91){if(a===e.pos-1)i++;else if(r)return e.pos=h,-1}}return o&&(l=e.pos),e.pos=h,l},i5=jn.unescapeAll,ept=function(e,n,r){var i,o,s=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(i=e.charCodeAt(n),i===10||i===60)return l;if(i===62)return l.pos=n+1,l.str=i5(e.slice(a+1,n)),l.ok=!0,l;if(i===92&&n+1<r){n+=2;continue}n++}return l}for(o=0;n<r&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(o++,o>32))return l;if(i===41){if(o===0)break;o--}n++}return a===n||o!==0||(l.str=i5(e.slice(a,n)),l.lines=s,l.pos=n,l.ok=!0),l},tpt=jn.unescapeAll,npt=function(e,n,r){var i,o,s=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(n>=r||(o=e.charCodeAt(n),o!==34&&o!==39&&o!==40))return l;for(n++,o===40&&(o=41);n<r;){if(i=e.charCodeAt(n),i===o)return l.pos=n+1,l.lines=s,l.str=tpt(e.slice(a+1,n)),l.ok=!0,l;if(i===40&&o===41)return l;i===10?s++:i===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&s++),n++}return l};JS.parseLinkLabel=Qht;JS.parseLinkDestination=ept;JS.parseLinkTitle=npt;var rpt=jn.assign,ipt=jn.unescapeAll,vf=jn.escapeHtml,nl={};nl.code_inline=function(t,e,n,r,i){var o=t[e];return"<code"+i.renderAttrs(o)+">"+vf(t[e].content)+"</code>"};nl.code_block=function(t,e,n,r,i){var o=t[e];return"<pre"+i.renderAttrs(o)+"><code>"+vf(t[e].content)+`</code></pre>
`};nl.fence=function(t,e,n,r,i){var o=t[e],s=o.info?ipt(o.info).trim():"",a="",l="",d,h,p,y,w;return s&&(p=s.split(/(\s+)/g),a=p[0],l=p.slice(2).join("")),n.highlight?d=n.highlight(o.content,a,l)||vf(o.content):d=vf(o.content),d.indexOf("<pre")===0?d+`
`:s?(h=o.attrIndex("class"),y=o.attrs?o.attrs.slice():[],h<0?y.push(["class",n.langPrefix+a]):(y[h]=y[h].slice(),y[h][1]+=" "+n.langPrefix+a),w={attrs:y},"<pre><code"+i.renderAttrs(w)+">"+d+`</code></pre>
`):"<pre><code"+i.renderAttrs(o)+">"+d+`</code></pre>
`};nl.image=function(t,e,n,r,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)};nl.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
`:`<br>
`};nl.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};nl.text=function(t,e){return vf(t[e].content)};nl.html_block=function(t,e){return t[e].content};nl.html_inline=function(t,e){return t[e].content};function hg(){this.rules=rpt({},nl)}hg.prototype.renderAttrs=function(e){var n,r,i;if(!e.attrs)return"";for(i="",n=0,r=e.attrs.length;n<r;n++)i+=" "+vf(e.attrs[n][0])+'="'+vf(e.attrs[n][1])+'"';return i};hg.prototype.renderToken=function(e,n,r){var i,o="",s=!1,a=e[n];return a.hidden?"":(a.block&&a.nesting!==-1&&n&&e[n-1].hidden&&(o+=`
`),o+=(a.nesting===-1?"</":"<")+a.tag,o+=this.renderAttrs(a),a.nesting===0&&r.xhtmlOut&&(o+=" /"),a.block&&(s=!0,a.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===a.tag)&&(s=!1))),o+=s?`>
`:">",o)};hg.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,s=0,a=t.length;s<a;s++)r=t[s].type,typeof o[r]<"u"?i+=o[r](t,s,e,n,this):i+=this.renderToken(t,s,e);return i};hg.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)t[i].type==="text"?r+=t[i].content:t[i].type==="image"?r+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(r+=`
`);return r};hg.prototype.render=function(t,e,n){var r,i,o,s="",a=this.rules;for(r=0,i=t.length;r<i;r++)o=t[r].type,o==="inline"?s+=this.renderInline(t[r].children,e,n):typeof a[o]<"u"?s+=a[t[r].type](t,r,e,n,this):s+=this.renderToken(t,r,e,n);return s};var opt=hg;function xa(){this.__rules__=[],this.__cache__=null}xa.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};xa.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};xa.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null};xa.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};xa.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};xa.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};xa.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};xa.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};xa.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};xa.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var yI=xa,spt=/\r\n?|\n/g,apt=/\0/g,lpt=function(e){var n;n=e.src.replace(spt,`
`),n=n.replace(apt,"�"),e.src=n},cpt=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},upt=function(e){var n=e.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},dpt=jn.arrayReplaceAt;function fpt(t){return/^<a[>\s]/i.test(t)}function hpt(t){return/^<\/a\s*>/i.test(t)}var ppt=function(e){var n,r,i,o,s,a,l,d,h,p,y,w,C,k,D,I,_=e.tokens,L;if(e.md.options.linkify){for(r=0,i=_.length;r<i;r++)if(!(_[r].type!=="inline"||!e.md.linkify.pretest(_[r].content)))for(o=_[r].children,C=0,n=o.length-1;n>=0;n--){if(a=o[n],a.type==="link_close"){for(n--;o[n].level!==a.level&&o[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(fpt(a.content)&&C>0&&C--,hpt(a.content)&&C++),!(C>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(h=a.content,L=e.md.linkify.match(h),l=[],w=a.level,y=0,L.length>0&&L[0].index===0&&n>0&&o[n-1].type==="text_special"&&(L=L.slice(1)),d=0;d<L.length;d++)k=L[d].url,D=e.md.normalizeLink(k),e.md.validateLink(D)&&(I=L[d].text,L[d].schema?L[d].schema==="mailto:"&&!/^mailto:/i.test(I)?I=e.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=e.md.normalizeLinkText(I):I=e.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,""),p=L[d].index,p>y&&(s=new e.Token("text","",0),s.content=h.slice(y,p),s.level=w,l.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",D]],s.level=w++,s.markup="linkify",s.info="auto",l.push(s),s=new e.Token("text","",0),s.content=I,s.level=w,l.push(s),s=new e.Token("link_close","a",-1),s.level=--w,s.markup="linkify",s.info="auto",l.push(s),y=L[d].lastIndex);y<h.length&&(s=new e.Token("text","",0),s.content=h.slice(y),s.level=w,l.push(s)),_[r].children=o=dpt(o,n,l)}}}},EX=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,gpt=/\((c|tm|r)\)/i,mpt=/\((c|tm|r)\)/ig,vpt={c:"©",r:"®",tm:"™"};function bpt(t,e){return vpt[e.toLowerCase()]}function ypt(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(mpt,bpt)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function xpt(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&EX.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var wpt=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(gpt.test(e.tokens[n].content)&&ypt(e.tokens[n].children),EX.test(e.tokens[n].content)&&xpt(e.tokens[n].children))},o5=jn.isWhiteSpace,s5=jn.isPunctChar,a5=jn.isMdAsciiPunct,Spt=/['"]/,l5=/['"]/g,c5="’";function Ay(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Cpt(t,e){var n,r,i,o,s,a,l,d,h,p,y,w,C,k,D,I,_,L,M,F,H;for(M=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,_=M.length-1;_>=0&&!(M[_].level<=l);_--);if(M.length=_+1,r.type!=="text")continue;i=r.content,s=0,a=i.length;e:for(;s<a&&(l5.lastIndex=s,o=l5.exec(i),!!o);){if(D=I=!0,s=o.index+1,L=o[0]==="'",h=32,o.index-1>=0)h=i.charCodeAt(o.index-1);else for(_=n-1;_>=0&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_--)if(t[_].content){h=t[_].content.charCodeAt(t[_].content.length-1);break}if(p=32,s<a)p=i.charCodeAt(s);else for(_=n+1;_<t.length&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_++)if(t[_].content){p=t[_].content.charCodeAt(0);break}if(y=a5(h)||s5(String.fromCharCode(h)),w=a5(p)||s5(String.fromCharCode(p)),C=o5(h),k=o5(p),k?D=!1:w&&(C||y||(D=!1)),C?I=!1:y&&(k||w||(I=!1)),p===34&&o[0]==='"'&&h>=48&&h<=57&&(I=D=!1),D&&I&&(D=y,I=w),!D&&!I){L&&(r.content=Ay(r.content,o.index,c5));continue}if(I){for(_=M.length-1;_>=0&&(d=M[_],!(M[_].level<l));_--)if(d.single===L&&M[_].level===l){d=M[_],L?(F=e.md.options.quotes[2],H=e.md.options.quotes[3]):(F=e.md.options.quotes[0],H=e.md.options.quotes[1]),r.content=Ay(r.content,o.index,H),t[d.token].content=Ay(t[d.token].content,d.pos,F),s+=H.length-1,d.token===n&&(s+=F.length-1),i=r.content,a=i.length,M.length=_;continue e}}D?M.push({token:n,pos:o.index,single:L,level:l}):I&&L&&(r.content=Ay(r.content,o.index,c5))}}}var Ept=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Spt.test(e.tokens[n].content)||Cpt(e.tokens[n].children,e)},Apt=function(e){var n,r,i,o,s,a,l=e.tokens;for(n=0,r=l.length;n<r;n++)if(l[n].type==="inline"){for(i=l[n].children,s=i.length,o=0;o<s;o++)i[o].type==="text_special"&&(i[o].type="text");for(o=a=0;o<s;o++)i[o].type==="text"&&o+1<s&&i[o+1].type==="text"?i[o+1].content=i[o].content+i[o+1].content:(o!==a&&(i[a]=i[o]),a++);o!==a&&(i.length=a)}};function pg(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}pg.prototype.attrIndex=function(e){var n,r,i;if(!this.attrs)return-1;for(n=this.attrs,r=0,i=n.length;r<i;r++)if(n[r][0]===e)return r;return-1};pg.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};pg.prototype.attrSet=function(e,n){var r=this.attrIndex(e),i=[e,n];r<0?this.attrPush(i):this.attrs[r]=i};pg.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r};pg.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var xI=pg,kpt=xI;function AX(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}AX.prototype.Token=kpt;var Tpt=AX,_pt=yI,A2=[["normalize",lpt],["block",cpt],["inline",upt],["linkify",ppt],["replacements",wpt],["smartquotes",Ept],["text_join",Apt]];function wI(){this.ruler=new _pt;for(var t=0;t<A2.length;t++)this.ruler.push(A2[t][0],A2[t][1])}wI.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)};wI.prototype.State=Tpt;var Dpt=wI,k2=jn.isSpace;function T2(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function u5(t){var e=[],n=0,r=t.length,i,o=!1,s=0,a="";for(i=t.charCodeAt(n);n<r;)i===124&&(o?(a+=t.substring(s,n-1),s=n):(e.push(a+t.substring(s,n)),a="",s=n+1)),o=i===92,n++,i=t.charCodeAt(n);return e.push(a+t.substring(s)),e}var $pt=function(e,n,r,i){var o,s,a,l,d,h,p,y,w,C,k,D,I,_,L,M,F,H;if(n+2>r||(h=n+1,e.sCount[h]<e.blkIndent)||e.sCount[h]-e.blkIndent>=4||(a=e.bMarks[h]+e.tShift[h],a>=e.eMarks[h])||(F=e.src.charCodeAt(a++),F!==124&&F!==45&&F!==58)||a>=e.eMarks[h]||(H=e.src.charCodeAt(a++),H!==124&&H!==45&&H!==58&&!k2(H))||F===45&&k2(H))return!1;for(;a<e.eMarks[h];){if(o=e.src.charCodeAt(a),o!==124&&o!==45&&o!==58&&!k2(o))return!1;a++}for(s=T2(e,n+1),p=s.split("|"),C=[],l=0;l<p.length;l++){if(k=p[l].trim(),!k){if(l===0||l===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?C.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?C.push("left"):C.push("")}if(s=T2(e,n).trim(),s.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=u5(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),y=p.length,y===0||y!==C.length))return!1;if(i)return!0;for(_=e.parentType,e.parentType="table",M=e.md.block.ruler.getRules("blockquote"),w=e.push("table_open","table",1),w.map=D=[n,0],w=e.push("thead_open","thead",1),w.map=[n,n+1],w=e.push("tr_open","tr",1),w.map=[n,n+1],l=0;l<p.length;l++)w=e.push("th_open","th",1),C[l]&&(w.attrs=[["style","text-align:"+C[l]]]),w=e.push("inline","",0),w.content=p[l].trim(),w.children=[],w=e.push("th_close","th",-1);for(w=e.push("tr_close","tr",-1),w=e.push("thead_close","thead",-1),h=n+2;h<r&&!(e.sCount[h]<e.blkIndent);h++){for(L=!1,l=0,d=M.length;l<d;l++)if(M[l](e,h,r,!0)){L=!0;break}if(L||(s=T2(e,h).trim(),!s)||e.sCount[h]-e.blkIndent>=4)break;for(p=u5(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),h===n+2&&(w=e.push("tbody_open","tbody",1),w.map=I=[n+2,0]),w=e.push("tr_open","tr",1),w.map=[h,h+1],l=0;l<y;l++)w=e.push("td_open","td",1),C[l]&&(w.attrs=[["style","text-align:"+C[l]]]),w=e.push("inline","",0),w.content=p[l]?p[l].trim():"",w.children=[],w=e.push("td_close","td",-1);w=e.push("tr_close","tr",-1)}return I&&(w=e.push("tbody_close","tbody",-1),I[1]=h),w=e.push("table_close","table",-1),D[1]=h,e.parentType=_,e.line=h,!0},Opt=function(e,n,r){var i,o,s;if(e.sCount[n]-e.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,o=i;continue}break}return e.line=o,s=e.push("code_block","code",0),s.content=e.getLines(n,o,4+e.blkIndent,!1)+`
`,s.map=[n,e.line],!0},Ipt=function(e,n,r,i){var o,s,a,l,d,h,p,y=!1,w=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||w+3>C||(o=e.src.charCodeAt(w),o!==126&&o!==96)||(d=w,w=e.skipChars(w,o),s=w-d,s<3)||(p=e.src.slice(d,w),a=e.src.slice(w,C),o===96&&a.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=n;l++,!(l>=r||(w=d=e.bMarks[l]+e.tShift[l],C=e.eMarks[l],w<C&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(w)===o&&!(e.sCount[l]-e.blkIndent>=4)&&(w=e.skipChars(w,o),!(w-d<s)&&(w=e.skipSpaces(w),!(w<C)))){y=!0;break}return s=e.sCount[n],e.line=l+(y?1:0),h=e.push("fence","code",0),h.info=a,h.content=e.getLines(n+1,l,s,!0),h.markup=p,h.map=[n,e.line],!0},d5=jn.isSpace,Rpt=function(e,n,r,i){var o,s,a,l,d,h,p,y,w,C,k,D,I,_,L,M,F,H,G,X,Z=e.lineMax,te=e.bMarks[n]+e.tShift[n],ae=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(te++)!==62)return!1;if(i)return!0;for(l=w=e.sCount[n]+1,e.src.charCodeAt(te)===32?(te++,l++,w++,o=!1,M=!0):e.src.charCodeAt(te)===9?(M=!0,(e.bsCount[n]+w)%4===3?(te++,l++,w++,o=!1):o=!0):M=!1,C=[e.bMarks[n]],e.bMarks[n]=te;te<ae&&(s=e.src.charCodeAt(te),d5(s));){s===9?w+=4-(w+e.bsCount[n]+(o?1:0))%4:w++;te++}for(k=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(M?1:0),h=te>=ae,_=[e.sCount[n]],e.sCount[n]=w-l,L=[e.tShift[n]],e.tShift[n]=te-e.bMarks[n],H=e.md.block.ruler.getRules("blockquote"),I=e.parentType,e.parentType="blockquote",y=n+1;y<r&&(X=e.sCount[y]<e.blkIndent,te=e.bMarks[y]+e.tShift[y],ae=e.eMarks[y],!(te>=ae));y++){if(e.src.charCodeAt(te++)===62&&!X){for(l=w=e.sCount[y]+1,e.src.charCodeAt(te)===32?(te++,l++,w++,o=!1,M=!0):e.src.charCodeAt(te)===9?(M=!0,(e.bsCount[y]+w)%4===3?(te++,l++,w++,o=!1):o=!0):M=!1,C.push(e.bMarks[y]),e.bMarks[y]=te;te<ae&&(s=e.src.charCodeAt(te),d5(s));){s===9?w+=4-(w+e.bsCount[y]+(o?1:0))%4:w++;te++}h=te>=ae,k.push(e.bsCount[y]),e.bsCount[y]=e.sCount[y]+1+(M?1:0),_.push(e.sCount[y]),e.sCount[y]=w-l,L.push(e.tShift[y]),e.tShift[y]=te-e.bMarks[y];continue}if(h)break;for(F=!1,a=0,d=H.length;a<d;a++)if(H[a](e,y,r,!0)){F=!0;break}if(F){e.lineMax=y,e.blkIndent!==0&&(C.push(e.bMarks[y]),k.push(e.bsCount[y]),L.push(e.tShift[y]),_.push(e.sCount[y]),e.sCount[y]-=e.blkIndent);break}C.push(e.bMarks[y]),k.push(e.bsCount[y]),L.push(e.tShift[y]),_.push(e.sCount[y]),e.sCount[y]=-1}for(D=e.blkIndent,e.blkIndent=0,G=e.push("blockquote_open","blockquote",1),G.markup=">",G.map=p=[n,0],e.md.block.tokenize(e,n,y),G=e.push("blockquote_close","blockquote",-1),G.markup=">",e.lineMax=Z,e.parentType=I,p[1]=e.line,a=0;a<L.length;a++)e.bMarks[a+n]=C[a],e.tShift[a+n]=L[a],e.sCount[a+n]=_[a],e.bsCount[a+n]=k[a];return e.blkIndent=D,!0},Mpt=jn.isSpace,Ppt=function(e,n,r,i){var o,s,a,l,d=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(d++),o!==42&&o!==45&&o!==95))return!1;for(s=1;d<h;){if(a=e.src.charCodeAt(d++),a!==o&&!Mpt(a))return!1;a===o&&s++}return s<3?!1:(i||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(s+1).join(String.fromCharCode(o))),!0)},kX=jn.isSpace;function f5(t,e){var n,r,i,o;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=t.src.charCodeAt(r),!kX(o))?-1:r}function h5(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,o=t.eMarks[e];if(i+1>=o||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=t.src.charCodeAt(i),!kX(n))?-1:i}function Npt(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Lpt=function(e,n,r,i){var o,s,a,l,d,h,p,y,w,C,k,D,I,_,L,M,F,H,G,X,Z,te,ae,ye,ve,se,J,B,V=!1,q=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(V=!0),(ae=h5(e,n))>=0){if(p=!0,ve=e.bMarks[n]+e.tShift[n],I=Number(e.src.slice(ve,ae-1)),V&&I!==1)return!1}else if((ae=f5(e,n))>=0)p=!1;else return!1;if(V&&e.skipSpaces(ae)>=e.eMarks[n])return!1;if(D=e.src.charCodeAt(ae-1),i)return!0;for(k=e.tokens.length,p?(B=e.push("ordered_list_open","ol",1),I!==1&&(B.attrs=[["start",I]])):B=e.push("bullet_list_open","ul",1),B.map=C=[n,0],B.markup=String.fromCharCode(D),L=n,ye=!1,J=e.md.block.ruler.getRules("list"),H=e.parentType,e.parentType="list";L<r;){for(te=ae,_=e.eMarks[L],h=M=e.sCount[L]+ae-(e.bMarks[n]+e.tShift[n]);te<_;){if(o=e.src.charCodeAt(te),o===9)M+=4-(M+e.bsCount[L])%4;else if(o===32)M++;else break;te++}if(s=te,s>=_?d=1:d=M-h,d>4&&(d=1),l=h+d,B=e.push("list_item_open","li",1),B.markup=String.fromCharCode(D),B.map=y=[n,0],p&&(B.info=e.src.slice(ve,ae-1)),Z=e.tight,X=e.tShift[n],G=e.sCount[n],F=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[n]=s-e.bMarks[n],e.sCount[n]=M,s>=_&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||ye)&&(q=!1),ye=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=F,e.tShift[n]=X,e.sCount[n]=G,e.tight=Z,B=e.push("list_item_close","li",-1),B.markup=String.fromCharCode(D),L=n=e.line,y[1]=L,s=e.bMarks[n],L>=r||e.sCount[L]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(se=!1,a=0,w=J.length;a<w;a++)if(J[a](e,L,r,!0)){se=!0;break}if(se)break;if(p){if(ae=h5(e,L),ae<0)break;ve=e.bMarks[L]+e.tShift[L]}else if(ae=f5(e,L),ae<0)break;if(D!==e.src.charCodeAt(ae-1))break}return p?B=e.push("ordered_list_close","ol",-1):B=e.push("bullet_list_close","ul",-1),B.markup=String.fromCharCode(D),C[1]=L,e.line=L,e.parentType=H,q&&Npt(e,k),!0},Fpt=jn.normalizeReference,ky=jn.isSpace,Bpt=function(e,n,r,i){var o,s,a,l,d,h,p,y,w,C,k,D,I,_,L,M,F=0,H=e.bMarks[n]+e.tShift[n],G=e.eMarks[n],X=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(H)!==91)return!1;for(;++H<G;)if(e.src.charCodeAt(H)===93&&e.src.charCodeAt(H-1)!==92){if(H+1===G||e.src.charCodeAt(H+1)!==58)return!1;break}for(l=e.lineMax,L=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";X<l&&!e.isEmpty(X);X++)if(!(e.sCount[X]-e.blkIndent>3)&&!(e.sCount[X]<0)){for(_=!1,h=0,p=L.length;h<p;h++)if(L[h](e,X,l,!0)){_=!0;break}if(_)break}for(I=e.getLines(n,X,e.blkIndent,!1).trim(),G=I.length,H=1;H<G;H++){if(o=I.charCodeAt(H),o===91)return!1;if(o===93){w=H;break}else o===10?F++:o===92&&(H++,H<G&&I.charCodeAt(H)===10&&F++)}if(w<0||I.charCodeAt(w+1)!==58)return!1;for(H=w+2;H<G;H++)if(o=I.charCodeAt(H),o===10)F++;else if(!ky(o))break;if(k=e.md.helpers.parseLinkDestination(I,H,G),!k.ok||(d=e.md.normalizeLink(k.str),!e.md.validateLink(d)))return!1;for(H=k.pos,F+=k.lines,s=H,a=F,D=H;H<G;H++)if(o=I.charCodeAt(H),o===10)F++;else if(!ky(o))break;for(k=e.md.helpers.parseLinkTitle(I,H,G),H<G&&D!==H&&k.ok?(M=k.str,H=k.pos,F+=k.lines):(M="",H=s,F=a);H<G&&(o=I.charCodeAt(H),!!ky(o));)H++;if(H<G&&I.charCodeAt(H)!==10&&M)for(M="",H=s,F=a;H<G&&(o=I.charCodeAt(H),!!ky(o));)H++;return H<G&&I.charCodeAt(H)!==10||(y=Fpt(I.slice(1,w)),!y)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:M,href:d}),e.parentType=C,e.line=n+F+1),!0)},zpt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ZS={},Hpt="[a-zA-Z_:][a-zA-Z0-9:._-]*",jpt="[^\"'=<>`\\x00-\\x20]+",Wpt="'[^']*'",Upt='"[^"]*"',Vpt="(?:"+jpt+"|"+Wpt+"|"+Upt+")",Ypt="(?:\\s+"+Hpt+"(?:\\s*=\\s*"+Vpt+")?)",TX="<[A-Za-z][A-Za-z0-9\\-]*"+Ypt+"*\\s*\\/?>",_X="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Xpt="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Gpt="<[?][\\s\\S]*?[?]>",qpt="<![A-Z]+\\s+[^>]*>",Kpt="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Jpt=new RegExp("^(?:"+TX+"|"+_X+"|"+Xpt+"|"+Gpt+"|"+qpt+"|"+Kpt+")"),Zpt=new RegExp("^(?:"+TX+"|"+_X+")");ZS.HTML_TAG_RE=Jpt;ZS.HTML_OPEN_CLOSE_TAG_RE=Zpt;var Qpt=zpt,egt=ZS.HTML_OPEN_CLOSE_TAG_RE,uh=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Qpt.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(egt.source+"\\s*$"),/^$/,!1]],tgt=function(e,n,r,i){var o,s,a,l,d=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(l=e.src.slice(d,h),o=0;o<uh.length&&!uh[o][0].test(l);o++);if(o===uh.length)return!1;if(i)return uh[o][2];if(s=n+1,!uh[o][1].test(l)){for(;s<r&&!(e.sCount[s]<e.blkIndent);s++)if(d=e.bMarks[s]+e.tShift[s],h=e.eMarks[s],l=e.src.slice(d,h),uh[o][1].test(l)){l.length!==0&&s++;break}}return e.line=s,a=e.push("html_block","",0),a.map=[n,s],a.content=e.getLines(n,s,e.blkIndent,!0),!0},p5=jn.isSpace,ngt=function(e,n,r,i){var o,s,a,l,d=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(d),o!==35||d>=h))return!1;for(s=1,o=e.src.charCodeAt(++d);o===35&&d<h&&s<=6;)s++,o=e.src.charCodeAt(++d);return s>6||d<h&&!p5(o)?!1:(i||(h=e.skipSpacesBack(h,d),a=e.skipCharsBack(h,35,d),a>d&&p5(e.src.charCodeAt(a-1))&&(h=a),e.line=n+1,l=e.push("heading_open","h"+String(s),1),l.markup="########".slice(0,s),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(d,h).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(s),-1),l.markup="########".slice(0,s)),!0)},rgt=function(e,n,r){var i,o,s,a,l,d,h,p,y,w=n+1,C,k=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";w<r&&!e.isEmpty(w);w++)if(!(e.sCount[w]-e.blkIndent>3)){if(e.sCount[w]>=e.blkIndent&&(d=e.bMarks[w]+e.tShift[w],h=e.eMarks[w],d<h&&(y=e.src.charCodeAt(d),(y===45||y===61)&&(d=e.skipChars(d,y),d=e.skipSpaces(d),d>=h)))){p=y===61?1:2;break}if(!(e.sCount[w]<0)){for(o=!1,s=0,a=k.length;s<a;s++)if(k[s](e,w,r,!0)){o=!0;break}if(o)break}}return p?(i=e.getLines(n,w,e.blkIndent,!1).trim(),e.line=w+1,l=e.push("heading_open","h"+String(p),1),l.markup=String.fromCharCode(y),l.map=[n,e.line],l=e.push("inline","",0),l.content=i,l.map=[n,e.line-1],l.children=[],l=e.push("heading_close","h"+String(p),-1),l.markup=String.fromCharCode(y),e.parentType=C,!0):!1},igt=function(e,n){var r,i,o,s,a,l,d=n+1,h=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(l=e.parentType,e.parentType="paragraph";d<p&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(i=!1,o=0,s=h.length;o<s;o++)if(h[o](e,d,p,!0)){i=!0;break}if(i)break}return r=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,a=e.push("paragraph_open","p",1),a.map=[n,e.line],a=e.push("inline","",0),a.content=r,a.map=[n,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=l,!0},DX=xI,QS=jn.isSpace;function rl(t,e,n,r){var i,o,s,a,l,d,h,p;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,p=!1,s=a=d=h=0,l=o.length;a<l;a++){if(i=o.charCodeAt(a),!p)if(QS(i)){d++,i===9?h+=4-h%4:h++;continue}else p=!0;(i===10||a===l-1)&&(i!==10&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(d),this.sCount.push(h),this.bsCount.push(0),p=!1,d=0,h=0,s=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}rl.prototype.push=function(t,e,n){var r=new DX(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};rl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};rl.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};rl.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!QS(n));e++);return e};rl.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!QS(this.src.charCodeAt(--e)))return e+1;return e};rl.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e};rl.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e};rl.prototype.getLines=function(e,n,r,i){var o,s,a,l,d,h,p,y=e;if(e>=n)return"";for(h=new Array(n-e),o=0;y<n;y++,o++){for(s=0,p=l=this.bMarks[y],y+1<n||i?d=this.eMarks[y]+1:d=this.eMarks[y];l<d&&s<r;){if(a=this.src.charCodeAt(l),QS(a))a===9?s+=4-(s+this.bsCount[y])%4:s++;else if(l-p<this.tShift[y])s++;else break;l++}s>r?h[o]=new Array(s-r+1).join(" ")+this.src.slice(l,d):h[o]=this.src.slice(l,d)}return h.join("")};rl.prototype.Token=DX;var ogt=rl,sgt=yI,Ty=[["table",$pt,["paragraph","reference"]],["code",Opt],["fence",Ipt,["paragraph","reference","blockquote","list"]],["blockquote",Rpt,["paragraph","reference","blockquote","list"]],["hr",Ppt,["paragraph","reference","blockquote","list"]],["list",Lpt,["paragraph","reference","blockquote"]],["reference",Bpt],["html_block",tgt,["paragraph","reference","blockquote"]],["heading",ngt,["paragraph","reference","blockquote"]],["lheading",rgt],["paragraph",igt]];function eC(){this.ruler=new sgt;for(var t=0;t<Ty.length;t++)this.ruler.push(Ty[t][0],Ty[t][1],{alt:(Ty[t][2]||[]).slice()})}eC.prototype.tokenize=function(t,e,n){for(var r,i,o=this.ruler.getRules(""),s=o.length,a=e,l=!1,d=t.md.options.maxNesting;a<n&&(t.line=a=t.skipEmptyLines(a),!(a>=n||t.sCount[a]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(i=0;i<s&&(r=o[i](t,a,n,!1),!r);i++);t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),a=t.line,a<n&&t.isEmpty(a)&&(l=!0,a++,t.line=a)}};eC.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))};eC.prototype.State=ogt;var agt=eC;function lgt(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var cgt=function(e,n){for(var r=e.pos;r<e.posMax&&!lgt(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},ugt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,dgt=function(e,n){var r,i,o,s,a,l,d,h;return!e.md.options.linkify||e.linkLevel>0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(o=e.pending.match(ugt),!o)||(s=o[1],a=e.md.linkify.matchAtStart(e.src.slice(r-s.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),d=e.md.normalizeLink(l),!e.md.validateLink(d))?!1:(n||(e.pending=e.pending.slice(0,-s.length),h=e.push("link_open","a",1),h.attrs=[["href",d]],h.markup="linkify",h.info="auto",h=e.push("text","",0),h.content=e.md.normalizeLinkText(l),h=e.push("link_close","a",-1),h.markup="linkify",h.info="auto"),e.pos+=l.length-s.length,!0)},fgt=jn.isSpace,hgt=function(e,n){var r,i,o,s=e.pos;if(e.src.charCodeAt(s)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(o=r-1;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s<i&&fgt(e.src.charCodeAt(s));)s++;return e.pos=s,!0},pgt=jn.isSpace,SI=[];for(var g5=0;g5<256;g5++)SI.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){SI[t.charCodeAt(0)]=1});var ggt=function(e,n){var r,i,o,s,a,l=e.pos,d=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=d))return!1;if(r=e.src.charCodeAt(l),r===10){for(n||e.push("hardbreak","br",0),l++;l<d&&(r=e.src.charCodeAt(l),!!pgt(r));)l++;return e.pos=l,!0}return s=e.src[l],r>=55296&&r<=56319&&l+1<d&&(i=e.src.charCodeAt(l+1),i>=56320&&i<=57343&&(s+=e.src[l+1],l++)),o="\\"+s,n||(a=e.push("text_special","",0),r<256&&SI[r]!==0?a.content=s:a.content=o,a.markup=o,a.info="escape"),e.pos=l+1,!0},mgt=function(e,n){var r,i,o,s,a,l,d,h,p=e.pos,y=e.src.charCodeAt(p);if(y!==96)return!1;for(r=p,p++,i=e.posMax;p<i&&e.src.charCodeAt(p)===96;)p++;if(o=e.src.slice(r,p),d=o.length,e.backticksScanned&&(e.backticks[d]||0)<=r)return n||(e.pending+=o),e.pos+=d,!0;for(a=l=p;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<i&&e.src.charCodeAt(l)===96;)l++;if(h=l-a,h===d)return n||(s=e.push("code_inline","code",0),s.markup=o,s.content=e.src.slice(p,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[h]=a}return e.backticksScanned=!0,n||(e.pending+=o),e.pos+=d,!0},tC={};tC.tokenize=function(e,n){var r,i,o,s,a,l=e.pos,d=e.src.charCodeAt(l);if(n||d!==126||(i=e.scanDelims(e.pos,!0),s=i.length,a=String.fromCharCode(d),s<2))return!1;for(s%2&&(o=e.push("text","",0),o.content=a,s--),r=0;r<s;r+=2)o=e.push("text","",0),o.content=a+a,e.delimiters.push({marker:d,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function m5(t,e){var n,r,i,o,s,a=[],l=e.length;for(n=0;n<l;n++)i=e[n],i.marker===126&&i.end!==-1&&(o=e[i.end],s=t.tokens[i.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[o.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[o.token-1].type==="text"&&t.tokens[o.token-1].content==="~"&&a.push(o.token-1));for(;a.length;){for(n=a.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(s=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=s)}}tC.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(m5(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&m5(e,r[n].delimiters)};var nC={};nC.tokenize=function(e,n){var r,i,o,s=e.pos,a=e.src.charCodeAt(s);if(n||a!==95&&a!==42)return!1;for(i=e.scanDelims(e.pos,a===42),r=0;r<i.length;r++)o=e.push("text","",0),o.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function v5(t,e){var n,r,i,o,s,a,l=e.length;for(n=l-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],a=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),o=t.tokens[r.token],o.type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",o=t.tokens[i.token],o.type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}nC.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(v5(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&v5(e,r[n].delimiters)};var vgt=jn.normalizeReference,_2=jn.isSpace,bgt=function(e,n){var r,i,o,s,a,l,d,h,p,y="",w="",C=e.pos,k=e.posMax,D=e.pos,I=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,s=e.md.helpers.parseLinkLabel(e,e.pos,!0),s<0))return!1;if(l=s+1,l<k&&e.src.charCodeAt(l)===40){for(I=!1,l++;l<k&&(i=e.src.charCodeAt(l),!(!_2(i)&&i!==10));l++);if(l>=k)return!1;if(D=l,d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),d.ok){for(y=e.md.normalizeLink(d.str),e.md.validateLink(y)?l=d.pos:y="",D=l;l<k&&(i=e.src.charCodeAt(l),!(!_2(i)&&i!==10));l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<k&&D!==l&&d.ok)for(w=d.str,l=d.pos;l<k&&(i=e.src.charCodeAt(l),!(!_2(i)&&i!==10));l++);}(l>=k||e.src.charCodeAt(l)!==41)&&(I=!0),l++}if(I){if(typeof e.env.references>"u")return!1;if(l<k&&e.src.charCodeAt(l)===91?(D=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?o=e.src.slice(D,l++):l=s+1):l=s+1,o||(o=e.src.slice(a,s)),h=e.env.references[vgt(o)],!h)return e.pos=C,!1;y=h.href,w=h.title}return n||(e.pos=a,e.posMax=s,p=e.push("link_open","a",1),p.attrs=r=[["href",y]],w&&r.push(["title",w]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,p=e.push("link_close","a",-1)),e.pos=l,e.posMax=k,!0},ygt=jn.normalizeReference,D2=jn.isSpace,xgt=function(e,n){var r,i,o,s,a,l,d,h,p,y,w,C,k,D="",I=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d<_&&e.src.charCodeAt(d)===40){for(d++;d<_&&(i=e.src.charCodeAt(d),!(!D2(i)&&i!==10));d++);if(d>=_)return!1;for(k=d,p=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),p.ok&&(D=e.md.normalizeLink(p.str),e.md.validateLink(D)?d=p.pos:D=""),k=d;d<_&&(i=e.src.charCodeAt(d),!(!D2(i)&&i!==10));d++);if(p=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<_&&k!==d&&p.ok)for(y=p.str,d=p.pos;d<_&&(i=e.src.charCodeAt(d),!(!D2(i)&&i!==10));d++);else y="";if(d>=_||e.src.charCodeAt(d)!==41)return e.pos=I,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d<_&&e.src.charCodeAt(d)===91?(k=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?s=e.src.slice(k,d++):d=a+1):d=a+1,s||(s=e.src.slice(l,a)),h=e.env.references[ygt(s)],!h)return e.pos=I,!1;D=h.href,y=h.title}return n||(o=e.src.slice(l,a),e.md.inline.parse(o,e.md,e.env,C=[]),w=e.push("image","img",0),w.attrs=r=[["src",D],["alt",""]],w.children=C,w.content=o,y&&r.push(["title",y])),e.pos=d,e.posMax=_,!0},wgt=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Sgt=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Cgt=function(e,n){var r,i,o,s,a,l,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++d>=l||(s=e.src.charCodeAt(d),s===60))return!1;if(s===62)break}return r=e.src.slice(a+1,d),Sgt.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):wgt.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):!1},Egt=ZS.HTML_TAG_RE;function Agt(t){return/^<a[>\s]/i.test(t)}function kgt(t){return/^<\/a\s*>/i.test(t)}function Tgt(t){var e=t|32;return e>=97&&e<=122}var _gt=function(e,n){var r,i,o,s,a=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(a)!==60||a+2>=o)||(r=e.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!Tgt(r))||(i=e.src.slice(a).match(Egt),!i)?!1:(n||(s=e.push("html_inline","",0),s.content=e.src.slice(a,a+i[0].length),Agt(s.content)&&e.linkLevel++,kgt(s.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},b5=G1,Dgt=jn.has,$gt=jn.isValidEntityCode,y5=jn.fromCodePoint,Ogt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Igt=/^&([a-z][a-z0-9]{1,31});/i,Rgt=function(e,n){var r,i,o,s,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(r=e.src.charCodeAt(a+1),r===35){if(o=e.src.slice(a).match(Ogt),o)return n||(i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0),s.content=$gt(i)?y5(i):y5(65533),s.markup=o[0],s.info="entity"),e.pos+=o[0].length,!0}else if(o=e.src.slice(a).match(Igt),o&&Dgt(b5,o[1]))return n||(s=e.push("text_special","",0),s.content=b5[o[1]],s.markup=o[0],s.info="entity"),e.pos+=o[0].length,!0;return!1};function x5(t,e){var n,r,i,o,s,a,l,d,h={},p=e.length;if(p){var y=0,w=-2,C=[];for(n=0;n<p;n++)if(i=e[n],C.push(0),(e[y].marker!==i.marker||w!==i.token-1)&&(y=n),w=i.token,i.length=i.length||0,!!i.close){for(h.hasOwnProperty(i.marker)||(h[i.marker]=[-1,-1,-1,-1,-1,-1]),s=h[i.marker][(i.open?3:0)+i.length%3],r=y-C[y]-1,a=r;r>s;r-=C[r]+1)if(o=e[r],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){d=r>0&&!e[r-1].open?C[r-1]+1:0,C[n]=n-r+d,C[r]=d,i.open=!1,o.end=n,o.close=!1,a=-1,w=-2;break}a!==-1&&(h[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}}var Mgt=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(x5(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&x5(e,r[n].delimiters)},Pgt=function(e){var n,r,i=0,o=e.tokens,s=e.tokens.length;for(n=r=0;n<s;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<s&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)},CI=xI,w5=jn.isWhiteSpace,S5=jn.isPunctChar,C5=jn.isMdAsciiPunct;function R0(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}R0.prototype.pushPending=function(){var t=new CI("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};R0.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new CI(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};R0.prototype.scanDelims=function(t,e){var n=t,r,i,o,s,a,l,d,h,p,y=!0,w=!0,C=this.posMax,k=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===k;)n++;return o=n-t,i=n<C?this.src.charCodeAt(n):32,d=C5(r)||S5(String.fromCharCode(r)),p=C5(i)||S5(String.fromCharCode(i)),l=w5(r),h=w5(i),h?y=!1:p&&(l||d||(y=!1)),l?w=!1:d&&(h||p||(w=!1)),e?(s=y,a=w):(s=y&&(!w||d),a=w&&(!y||p)),{can_open:s,can_close:a,length:o}};R0.prototype.Token=CI;var Ngt=R0,E5=yI,$2=[["text",cgt],["linkify",dgt],["newline",hgt],["escape",ggt],["backticks",mgt],["strikethrough",tC.tokenize],["emphasis",nC.tokenize],["link",bgt],["image",xgt],["autolink",Cgt],["html_inline",_gt],["entity",Rgt]],O2=[["balance_pairs",Mgt],["strikethrough",tC.postProcess],["emphasis",nC.postProcess],["fragments_join",Pgt]];function M0(){var t;for(this.ruler=new E5,t=0;t<$2.length;t++)this.ruler.push($2[t][0],$2[t][1]);for(this.ruler2=new E5,t=0;t<O2.length;t++)this.ruler2.push(O2[t][0],O2[t][1])}M0.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,s=t.md.options.maxNesting,a=t.cache;if(typeof a[r]<"u"){t.pos=a[r];return}if(t.level<s)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,a[r]=t.pos};M0.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,s=t.md.options.maxNesting;t.pos<o;){if(t.level<s)for(n=0;n<i&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};M0.prototype.parse=function(t,e,n,r){var i,o,s,a=new this.State(t,e,n,r);for(this.tokenize(a),o=this.ruler2.getRules(""),s=o.length,i=0;i<s;i++)o[i](a)};M0.prototype.State=Ngt;var Lgt=M0,I2,A5;function Fgt(){return A5||(A5=1,I2=function(t){var e={};t=t||{},e.src_Any=wX().source,e.src_Cc=SX().source,e.src_Z=CX().source,e.src_P=bI.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><｜]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+e.src_ZPCc+"))((?![$+<=>^`|｜])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+e.src_ZPCc+"))((?![$+<=>^`|｜])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),I2}function M_(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function rC(t){return Object.prototype.toString.call(t)}function Bgt(t){return rC(t)==="[object String]"}function zgt(t){return rC(t)==="[object Object]"}function Hgt(t){return rC(t)==="[object RegExp]"}function k5(t){return rC(t)==="[object Function]"}function jgt(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var $X={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Wgt(t){return Object.keys(t||{}).reduce(function(e,n){return e||$X.hasOwnProperty(n)},!1)}var Ugt={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Vgt="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ygt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Xgt(t){t.__index__=-1,t.__text_cache__=""}function Ggt(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function T5(){return function(t,e){e.normalize(t)}}function K1(t){var e=t.re=Fgt()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Vgt),n.push(e.src_xn),e.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(t.__schemas__).forEach(function(a){var l=t.__schemas__[a];if(l!==null){var d={validate:null,link:null};if(t.__compiled__[a]=d,zgt(l)){Hgt(l.validate)?d.validate=Ggt(l.validate):k5(l.validate)?d.validate=l.validate:o(a,l),k5(l.normalize)?d.normalize=l.normalize:l.normalize?o(a,l):d.normalize=T5();return}if(Bgt(l)){i.push(a);return}o(a,l)}}),i.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:T5()};var s=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(jgt).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Xgt(t)}function qgt(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function P_(t,e){var n=new qgt(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function rs(t,e){if(!(this instanceof rs))return new rs(t,e);e||Wgt(t)&&(e=t,t={}),this.__opts__=M_({},$X,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=M_({},Ugt,t),this.__compiled__={},this.__tlds__=Ygt,this.__tlds_replaced__=!1,this.re={},K1(this)}rs.prototype.add=function(e,n){return this.__schemas__[e]=n,K1(this),this};rs.prototype.set=function(e){return this.__opts__=M_(this.__opts__,e),this};rs.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,i,o,s,a,l,d,h;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=e.indexOf("@"),h>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};rs.prototype.pretest=function(e){return this.re.pretest.test(e)};rs.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};rs.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(P_(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)r.push(P_(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};rs.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,P_(this,0)):null};rs.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),K1(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,K1(this),this)};rs.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};rs.prototype.onCompile=function(){};var Kgt=rs;const ip=2147483647,Ha=36,EI=1,Hv=26,Jgt=38,Zgt=700,OX=72,IX=128,RX="-",Qgt=/^xn--/,emt=/[^\0-\x7F]/,tmt=/[\x2E\u3002\uFF0E\uFF61]/g,nmt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},R2=Ha-EI,ja=Math.floor,M2=String.fromCharCode;function ru(t){throw new RangeError(nmt[t])}function rmt(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function MX(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(tmt,".");const i=t.split("."),o=rmt(i,e).join(".");return r+o}function AI(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const PX=t=>String.fromCodePoint(...t),imt=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Ha},_5=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},NX=function(t,e,n){let r=0;for(t=n?ja(t/Zgt):t>>1,t+=ja(t/e);t>R2*Hv>>1;r+=Ha)t=ja(t/R2);return ja(r+(R2+1)*t/(t+Jgt))},kI=function(t){const e=[],n=t.length;let r=0,i=IX,o=OX,s=t.lastIndexOf(RX);s<0&&(s=0);for(let a=0;a<s;++a)t.charCodeAt(a)>=128&&ru("not-basic"),e.push(t.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const l=r;for(let h=1,p=Ha;;p+=Ha){a>=n&&ru("invalid-input");const y=imt(t.charCodeAt(a++));y>=Ha&&ru("invalid-input"),y>ja((ip-r)/h)&&ru("overflow"),r+=y*h;const w=p<=o?EI:p>=o+Hv?Hv:p-o;if(y<w)break;const C=Ha-w;h>ja(ip/C)&&ru("overflow"),h*=C}const d=e.length+1;o=NX(r-l,d,l==0),ja(r/d)>ip-i&&ru("overflow"),i+=ja(r/d),r%=d,e.splice(r++,0,i)}return String.fromCodePoint(...e)},TI=function(t){const e=[];t=AI(t);const n=t.length;let r=IX,i=0,o=OX;for(const l of t)l<128&&e.push(M2(l));const s=e.length;let a=s;for(s&&e.push(RX);a<n;){let l=ip;for(const h of t)h>=r&&h<l&&(l=h);const d=a+1;l-r>ja((ip-i)/d)&&ru("overflow"),i+=(l-r)*d,r=l;for(const h of t)if(h<r&&++i>ip&&ru("overflow"),h===r){let p=i;for(let y=Ha;;y+=Ha){const w=y<=o?EI:y>=o+Hv?Hv:y-o;if(p<w)break;const C=p-w,k=Ha-w;e.push(M2(_5(w+C%k,0))),p=ja(C/k)}e.push(M2(_5(p,0))),o=NX(i,d,a===s),i=0,++a}++i,++r}return e.join("")},LX=function(t){return MX(t,function(e){return Qgt.test(e)?kI(e.slice(4).toLowerCase()):e})},FX=function(t){return MX(t,function(e){return emt.test(e)?"xn--"+TI(e):e})},omt={version:"2.1.0",ucs2:{decode:AI,encode:PX},decode:kI,encode:TI,toASCII:FX,toUnicode:LX},smt=Object.freeze(Object.defineProperty({__proto__:null,decode:kI,default:omt,encode:TI,toASCII:FX,toUnicode:LX,ucs2decode:AI,ucs2encode:PX},Symbol.toStringTag,{value:"Module"})),amt=Bu(smt);var lmt={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cmt={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},umt={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Qm=jn,dmt=JS,fmt=opt,hmt=Dpt,pmt=agt,gmt=Lgt,mmt=Kgt,Md=fg,BX=amt,vmt={default:lmt,zero:cmt,commonmark:umt},bmt=/^(vbscript|javascript|file|data):/,ymt=/^data:image\/(gif|png|jpeg|webp);/;function xmt(t){var e=t.trim().toLowerCase();return bmt.test(e)?!!ymt.test(e):!0}var zX=["http:","https:","mailto:"];function wmt(t){var e=Md.parse(t,!0);if(e.hostname&&(!e.protocol||zX.indexOf(e.protocol)>=0))try{e.hostname=BX.toASCII(e.hostname)}catch{}return Md.encode(Md.format(e))}function Smt(t){var e=Md.parse(t,!0);if(e.hostname&&(!e.protocol||zX.indexOf(e.protocol)>=0))try{e.hostname=BX.toUnicode(e.hostname)}catch{}return Md.decode(Md.format(e),Md.decode.defaultChars+"%")}function Ls(t,e){if(!(this instanceof Ls))return new Ls(t,e);e||Qm.isString(t)||(e=t||{},t="default"),this.inline=new gmt,this.block=new pmt,this.core=new hmt,this.renderer=new fmt,this.linkify=new mmt,this.validateLink=xmt,this.normalizeLink=wmt,this.normalizeLinkText=Smt,this.utils=Qm,this.helpers=Qm.assign({},dmt),this.options={},this.configure(t),e&&this.set(e)}Ls.prototype.set=function(t){return Qm.assign(this.options,t),this};Ls.prototype.configure=function(t){var e=this,n;if(Qm.isString(t)&&(n=t,t=vmt[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this};Ls.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Ls.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Ls.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Ls.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Ls.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Ls.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Ls.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Cmt=Ls;(function(t){t.exports=Cmt})(pMe);const Emt=B$(R_),Amt=new LV({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(t){return["h"+t.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:t=>({params:t.getAttribute("data-params")||""})}],toDOM(t){return["pre",t.attrs.params?{"data-params":t.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1,tight:t.hasAttribute("data-tight")}}}],toDOM(t){return["ol",{start:t.attrs.order==1?null:t.attrs.order,"data-tight":t.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:t=>({tight:t.hasAttribute("data-tight")})}],toDOM(t){return["ul",{"data-tight":t.attrs.tight?"true":null},0]}},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(t){return{src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")}}}],toDOM(t){return["img",t.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>t.type.name=="em"}],toDOM(){return["em"]}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name=="strong"},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(t){return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM(t){return["a",t.attrs]}},code:{parseDOM:[{tag:"code"}],toDOM(){return["code"]}}}});function kmt(t,e){if(t.isText&&e.isText&&Sn.sameSet(t.marks,e.marks))return t.withText(t.text+e.text)}class Tmt{constructor(e,n){this.schema=e,this.tokenHandlers=n,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:Sn.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let n=this.top(),r=n.content,i=r[r.length-1],o=this.schema.text(e,n.marks),s;i&&(s=kmt(i,o))?r[r.length-1]=s:r.push(o)}openMark(e){let n=this.top();n.marks=e.addToSet(n.marks)}closeMark(e){let n=this.top();n.marks=e.removeFromSet(n.marks)}parseTokens(e){for(let n=0;n<e.length;n++){let r=e[n],i=this.tokenHandlers[r.type];if(!i)throw new Error("Token type `"+r.type+"` not supported by Markdown parser");i(this,r,e,n)}}addNode(e,n,r){let i=this.top(),o=e.createAndFill(n,r,i?i.marks:[]);return o?(this.push(o),o):null}openNode(e,n){this.stack.push({type:e,attrs:n,content:[],marks:Sn.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function Zg(t,e,n,r){return t.getAttrs?t.getAttrs(e,n,r):t.attrs instanceof Function?t.attrs(e):t.attrs}function P2(t,e){return t.noCloseToken||e=="code_inline"||e=="code_block"||e=="fence"}function D5(t){return t[t.length-1]==`
`?t.slice(0,t.length-1):t}function N2(){}function _mt(t,e){let n=Object.create(null);for(let r in e){let i=e[r];if(i.block){let o=t.nodeType(i.block);P2(i,r)?n[r]=(s,a,l,d)=>{s.openNode(o,Zg(i,a,l,d)),s.addText(D5(a.content)),s.closeNode()}:(n[r+"_open"]=(s,a,l,d)=>s.openNode(o,Zg(i,a,l,d)),n[r+"_close"]=s=>s.closeNode())}else if(i.node){let o=t.nodeType(i.node);n[r]=(s,a,l,d)=>s.addNode(o,Zg(i,a,l,d))}else if(i.mark){let o=t.marks[i.mark];P2(i,r)?n[r]=(s,a,l,d)=>{s.openMark(o.create(Zg(i,a,l,d))),s.addText(D5(a.content)),s.closeMark(o)}:(n[r+"_open"]=(s,a,l,d)=>s.openMark(o.create(Zg(i,a,l,d))),n[r+"_close"]=s=>s.closeMark(o))}else if(i.ignore)P2(i,r)?n[r]=N2:(n[r+"_open"]=N2,n[r+"_close"]=N2);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return n.text=(r,i)=>r.addText(i.content),n.inline=(r,i)=>r.parseTokens(i.children),n.softbreak=n.softbreak||(r=>r.addText(" ")),n}class Dmt{constructor(e,n,r){this.schema=e,this.tokenizer=n,this.tokens=r,this.tokenHandlers=_mt(e,r)}parse(e,n={}){let r=new Tmt(this.schema,this.tokenHandlers),i;r.parseTokens(this.tokenizer.parse(e,n));do i=r.closeNode();while(r.stack.length);return i||this.schema.topNodeType.createAndFill()}}function $5(t,e){for(;++e<t.length;)if(t[e].type!="list_item_open")return t[e].hidden;return!1}new Dmt(Amt,Emt("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(t,e,n)=>({tight:$5(e,n)})},ordered_list:{block:"ordered_list",getAttrs:(t,e,n)=>({order:+t.attrGet("start")||1,tight:$5(e,n)})},heading:{block:"heading",getAttrs:t=>({level:+t.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:t=>({params:t.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:t=>({src:t.attrGet("src"),title:t.attrGet("title")||null,alt:t.children[0]&&t.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:t=>({href:t.attrGet("href"),title:t.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});class rCt{constructor(e,n,r={}){this.nodes=e,this.marks=n,this.options=r}serialize(e,n={}){n=Object.assign({},this.options,n);let r=new $mt(this.nodes,this.marks,n);return r.renderContent(e),r.out}}class $mt{constructor(e,n,r){this.nodes=e,this.marks=n,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,typeof this.options.tightLists>"u"&&(this.options.tightLists=!1),typeof this.options.hardBreakNodeName>"u"&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+=`
`),e>1){let n=this.delim,r=/\s+$/.exec(n);r&&(n=n.slice(0,n.length-r[0].length));for(let i=1;i<e;i++)this.out+=n+`
`}this.closed=null}}wrapBlock(e,n,r,i){let o=this.delim;this.write(n??e),this.delim+=e,i(),this.delim=o,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+=`
`)}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,n=!0){let r=e.split(`
`);for(let i=0;i<r.length;i++)this.write(),!n&&r[i][0]=="["&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=n?this.esc(r[i],this.atBlockStart):r[i],i!=r.length-1&&(this.out+=`
`)}render(e,n,r){if(typeof n=="number")throw new Error("!");if(!this.nodes[e.type.name])throw new Error("Token type `"+e.type.name+"` not supported by Markdown renderer");this.nodes[e.type.name](this,e,n,r)}renderContent(e){e.forEach((n,r,i)=>this.render(n,e,i))}renderInline(e){this.atBlockStart=!0;let n=[],r="",i=(o,s,a)=>{let l=o?o.marks:[];o&&o.type.name===this.options.hardBreakNodeName&&(l=l.filter(C=>{if(a+1==e.childCount)return!1;let k=e.child(a+1);return C.isInSet(k.marks)&&(!k.isText||/\S/.test(k.text))}));let d=r;if(r="",o&&o.isText&&l.some(C=>{let k=this.marks[C.type.name];return k&&k.expelEnclosingWhitespace&&!C.isInSet(n)})){let[C,k,D]=/^(\s*)(.*)$/m.exec(o.text);k&&(d+=k,o=D?o.withText(D):null,o||(l=n))}if(o&&o.isText&&l.some(C=>{let k=this.marks[C.type.name];return k&&k.expelEnclosingWhitespace&&(a==e.childCount-1||!C.isInSet(e.child(a+1).marks))})){let[C,k,D]=/^(.*?)(\s*)$/m.exec(o.text);D&&(r=D,o=k?o.withText(k):null,o||(l=n))}let h=l.length?l[l.length-1]:null,p=h&&this.marks[h.type.name].escape===!1,y=l.length-(p?1:0);e:for(let C=0;C<y;C++){let k=l[C];if(!this.marks[k.type.name].mixable)break;for(let D=0;D<n.length;D++){let I=n[D];if(!this.marks[I.type.name].mixable)break;if(k.eq(I)){C>D?l=l.slice(0,D).concat(k).concat(l.slice(D,C)).concat(l.slice(C+1,y)):D>C&&(l=l.slice(0,C).concat(l.slice(C+1,D)).concat(k).concat(l.slice(D,y)));continue e}}}let w=0;for(;w<Math.min(n.length,y)&&l[w].eq(n[w]);)++w;for(;w<n.length;)this.text(this.markString(n.pop(),!1,e,a),!1);if(d&&this.text(d),o){for(;n.length<y;){let C=l[n.length];n.push(C),this.text(this.markString(C,!0,e,a),!1),this.atBlockStart=!1}p&&o.isText?this.text(this.markString(h,!0,e,a)+o.text+this.markString(h,!1,e,a+1),!1):this.render(o,e,a),this.atBlockStart=!1}o!=null&&o.isText&&o.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,n,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let i=typeof e.attrs.tight<"u"?e.attrs.tight:this.options.tightLists,o=this.inTightList;this.inTightList=i,e.forEach((s,a,l)=>{l&&i&&this.flushClose(1),this.wrapBlock(n,r(l),e,()=>this.render(s,e,l))}),this.inTightList=o}esc(e,n=!1){return e=e.replace(/[`*\\~\[\]_]/g,(r,i)=>r=="_"&&i>0&&i+1<e.length&&e[i-1].match(/\w/)&&e[i+1].match(/\w/)?r:"\\"+r),n&&(e=e.replace(/^[\-*+>]/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let n=e.indexOf('"')==-1?'""':e.indexOf("'")==-1?"''":"()";return n[0]+e+n[1]}repeat(e,n){let r="";for(let i=0;i<n;i++)r+=e;return r}markString(e,n,r,i){let o=this.marks[e.type.name],s=n?o.open:o.close;return typeof s=="string"?s:s(this,e,r,i)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}}const Omt=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (République démocratique du Congo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],Imt=Omt.map(([t,e,n,r=0,i=null])=>({name:t,iso2:e.toUpperCase(),dialCode:n,priority:r,areaCodes:i}));function Rmt(){return fetch("https://ip2c.org/s").then(t=>t.text()).then(t=>{const e=(t||"").toString();if(!e||e[0]!=="1")throw new Error("unable to fetch the country");return e.substr(2,2)})}function Mmt(t,e){if(t.setSelectionRange)t.focus(),t.setSelectionRange(e,e);else if("createTextRange"in t&&typeof t.createTextRange=="function"){const n=t.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select()}}const Pmt=[{name:"allCountries",type:Array,default:Imt,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone),  <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],Nmt=[...Pmt].reduce((t,e)=>{if(e.name.includes(".")){const[n,r]=e.name.split(".");t[n]?Object.assign(t[n],{[r]:e.default}):Object.assign(t,{[n]:{[r]:e.default}})}else Object.assign(t,{[e.name]:e.default});return t},{}),O5={options:{...Nmt}};function Yi(t){const e=O5.options[t];return typeof e>"u"?O5.options[t]:e}function Qg(t){return t==null?void 0:t.toLowerCase()}function em(t){return t==null?void 0:t.toUpperCase()}const Lmt={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Fmt(t,e){var n=Array.prototype.slice.call(e);return n.push(Lmt),t.apply(this,n)}function N_(t){return N_=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},N_(t)}function I5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bmt(t,e,n){return e&&I5(t.prototype,e),n&&I5(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function zmt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hmt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jv(t,e)}function jmt(t){var e=jX();return function(){var n=Wv(t),r;if(e){var i=Wv(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Wmt(this,r)}}function Wmt(t,e){if(e&&(N_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HX(t)}function HX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L_(t){var e=typeof Map=="function"?new Map:void 0;return L_=function(n){if(n===null||!Umt(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return Ex(n,arguments,Wv(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),jv(r,n)},L_(t)}function Ex(t,e,n){return jX()?Ex=Reflect.construct:Ex=function(r,i,o){var s=[null];s.push.apply(s,i);var a=Function.bind.apply(r,s),l=new a;return o&&jv(l,o.prototype),l},Ex.apply(null,arguments)}function jX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Umt(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function jv(t,e){return jv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},jv(t,e)}function Wv(t){return Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wv(t)}var $l=function(t){Hmt(n,t);var e=jmt(n);function n(r){var i;return zmt(this,n),i=e.call(this,r),Object.setPrototypeOf(HX(i),n.prototype),i.name=i.constructor.name,i}return Bmt(n)}(L_(Error)),_I=2,Vmt=17,Ymt=3,ma="0-9０-９٠-٩۰-۹",Xmt="-‐-―−ー－",Gmt="／/",qmt="．.",Kmt="  ­​⁠　",Jmt="()（）［］\\[\\]",Zmt="~⁓∼～",J1="".concat(Xmt).concat(Gmt).concat(qmt).concat(Kmt).concat(Jmt).concat(Zmt),DI="+＋";function R5(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(r[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var Qmt={}.constructor;function Ax(t){return t!=null&&t.constructor===Qmt}function F_(t){return F_=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},F_(t)}function iC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oC(t,e,n){return e&&M5(t.prototype,e),n&&M5(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var evt="1.2.0",tvt="1.7.35",P5=" ext. ",nvt=/^\d+$/,vo=function(){function t(e){iC(this,t),svt(e),this.metadata=e,WX.call(this,e)}return oC(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!=="001"})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var n=this.countryCallingCodes()[e];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,n){if(e&&nvt.test(e)&&(n=e,e=null),e&&e!=="001"){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new N5(this.getCountryMetadata(e),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new N5(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var n=this.countryCallingCodes()[e];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(e){var n=this.getCountryCodesForCallingCode(e);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(e){var n=this.getCountryCodeForCallingCode(e);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var i=this.countryCallingCodes()[e];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),t}(),N5=function(){function t(e,n){iC(this,t),this.globalMetadataObject=n,this.metadata=e,WX.call(this,n.metadata)}return oC(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(r){return new rvt(r,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&L5(this.types(),e))return new ovt(L5(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?P5:this.metadata[13]||P5}}]),t}(),rvt=function(){function t(e,n){iC(this,t),this._format=e,this.metadata=n}return oC(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!ivt.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),ivt=/^\(?\$1\)?$/,ovt=function(){function t(e,n){iC(this,t),this.type=e,this.metadata=n}return oC(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function L5(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function svt(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ax(t)||!Ax(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Ax(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+avt(t)+": "+t,"."))}var avt=function(t){return F_(t)};function $I(t,e){if(e=new vo(e),e.hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function lvt(t,e){return e.countries.hasOwnProperty(t)}function WX(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?R5(e,evt)===-1?this.v2=!0:R5(e,tvt)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var cvt=";ext=",dh=function(t){return"([".concat(ma,"]{1,").concat(t,"})")};function UX(t){var e="20",n="15",r="9",i="6",o="[  \\t,]*",s="[:\\.．]?[  \\t,-]*",a="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|доб|anexo)",d="(?:[xｘ#＃~～]|int|ｉｎｔ)",h="[- ]+",p="[  \\t]*",y="(?:,{2}|;)",w=cvt+dh(e),C=o+l+s+dh(e)+a,k=o+d+s+dh(r)+a,D=h+dh(i)+"#",I=p+y+s+dh(n)+a,_=p+"(?:,)+"+s+dh(r)+a;return w+"|"+C+"|"+k+"|"+D+"|"+I+"|"+_}var uvt="["+ma+"]{"+_I+"}",dvt="["+DI+"]{0,1}(?:["+J1+"]*["+ma+"]){3,}["+J1+ma+"]*",fvt=new RegExp("^["+DI+"]{0,1}(?:["+J1+"]*["+ma+"]){1,2}$","i"),hvt=dvt+"(?:"+UX()+")?",pvt=new RegExp("^"+uvt+"$|^"+hvt+"$","i");function gvt(t){return t.length>=_I&&pvt.test(t)}function mvt(t){return fvt.test(t)}var F5=new RegExp("(?:"+UX()+")$","i");function vvt(t){var e=t.search(F5);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(F5),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}var bvt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function yvt(t){return bvt[t]}function xvt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=wvt(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wvt(t,e){if(t){if(typeof t=="string")return B5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B5(t,e)}}function B5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function z5(t){for(var e="",n=xvt(t.split("")),r;!(r=n()).done;){var i=r.value;e+=Svt(i,e)||""}return e}function Svt(t,e){return t==="+"?e?void 0:"+":yvt(t)}function Cvt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Evt(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Evt(t,e){if(t){if(typeof t=="string")return H5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H5(t,e)}}function H5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Avt(t,e){for(var n=t.slice(),r=Cvt(e),i;!(i=r()).done;){var o=i.value;t.indexOf(o)<0&&n.push(o)}return n.sort(function(s,a){return s-a})}function OI(t,e){return VX(t,void 0,e)}function VX(t,e,n){var r=n.type(e),i=r&&r.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";if(e==="FIXED_LINE_OR_MOBILE"){if(!n.type("FIXED_LINE"))return VX(t,"MOBILE",n);var o=n.type("MOBILE");o&&(i=Avt(i,o.possibleLengths()))}else if(e&&!r)return"INVALID_LENGTH";var s=t.length,a=i[0];return a===s?"IS_POSSIBLE":a>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function kvt(t,e,n){if(e===void 0&&(e={}),n=new vo(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return YX(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function YX(t,e){switch(OI(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function ac(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function Tvt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=_vt(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _vt(t,e){if(t){if(typeof t=="string")return j5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j5(t,e)}}function j5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Dvt=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function II(t,e,n){if(e=e||{},!(!t.country&&!t.countryCallingCode)){n=new vo(n),n.selectNumberingPlan(t.country,t.countryCallingCode);var r=e.v2?t.nationalNumber:t.phone;if(ac(r,n.nationalNumberPattern())){if(L2(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||L2(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=Tvt(Dvt),o;!(o=i()).done;){var s=o.value;if(L2(r,s,n))return s}}}}function L2(t,e,n){return e=n.type(e),!e||!e.pattern()||e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0?!1:ac(t,e.pattern())}function $vt(t,e,n){if(e=e||{},n=new vo(n),n.selectNumberingPlan(t.country,t.countryCallingCode),n.hasTypes())return II(t,e,n.metadata)!==void 0;var r=e.v2?t.nationalNumber:t.phone;return ac(r,n.nationalNumberPattern())}function Ovt(t,e,n){var r=new vo(n),i=r.getCountryCodesForCallingCode(t);return i?i.filter(function(o){return Ivt(e,o,n)}):[]}function Ivt(t,e,n){var r=new vo(n);return r.selectNumberingPlan(e),r.numberingPlan.possibleLengths().indexOf(t.length)>=0}function Rvt(t){return t.replace(new RegExp("[".concat(J1,"]+"),"g")," ").trim()}var Mvt=/(\$\d)/;function Pvt(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(Mvt,e.nationalPrefixFormattingRule()):e.format());return r?Rvt(o):o}var Nvt=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Lvt(t,e,n){var r=new vo(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Nvt.test(r.IDDPrefix()))return r.IDDPrefix()}function Fvt(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function Bvt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=zvt(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zvt(t,e){if(t){if(typeof t=="string")return W5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W5(t,e)}}function W5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function U5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function V5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U5(Object(n),!0).forEach(function(r){Hvt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hvt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y5={formatExtension:function(t,e,n){return"".concat(t).concat(n.ext()).concat(e)}};function jvt(t,e,n,r){if(n?n=V5(V5({},Y5),n):n=Y5,r=new vo(r),t.country&&t.country!=="001"){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.country(t.country)}else if(t.countryCallingCode)r.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var i=r.countryCallingCode(),o=n.v2?t.nationalNumber:t.phone,s;switch(e){case"NATIONAL":return o?(s=Z1(o,t.carrierCode,"NATIONAL",r,n),F2(s,t.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return o?(s=Z1(o,null,"INTERNATIONAL",r,n),s="+".concat(i," ").concat(s),F2(s,t.ext,r,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(o);case"RFC3966":return Fvt({number:"+".concat(i).concat(o),ext:t.ext});case"IDD":if(!n.fromCountry)return;var a=Uvt(o,t.carrierCode,i,n.fromCountry,r);return F2(a,t.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function Z1(t,e,n,r,i){var o=Wvt(r.formats(),t);return o?Pvt(t,o,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:e,metadata:r}):t}function Wvt(t,e){for(var n=Bvt(t),r;!(r=n()).done;){var i=r.value;if(i.leadingDigitsPatterns().length>0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(o)!==0)continue}if(ac(e,i.pattern()))return i}}function F2(t,e,n,r){return e?r(t,e,n):t}function Uvt(t,e,n,r,i){var o=$I(r,i.metadata);if(o===n){var s=Z1(t,e,"NATIONAL",i);return n==="1"?n+" "+s:s}var a=Lvt(r,void 0,i.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Z1(t,null,"INTERNATIONAL",i))}function X5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function G5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X5(Object(n),!0).forEach(function(r){Vvt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Vvt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yvt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xvt(t,e,n){return e&&q5(t.prototype,e),n&&q5(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Gvt=function(){function t(e,n,r){if(Yvt(this,t),!e)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var i=Kvt(e,r),o=i.country,s=i.countryCallingCode;this.country=o,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Xvt(t,[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Ovt(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return kvt(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return $vt(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var e=new vo(this.getMetadata());return e.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return II(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,n){return jvt(this,e,n?G5(G5({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}]),t}(),qvt=function(t){return/^[A-Z]{2}$/.test(t)};function Kvt(t,e){var n,r,i=new vo(e);return qvt(t)?(n=t,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=t,{country:n,countryCallingCode:r}}var Jvt=new RegExp("(["+ma+"])");function Zvt(t,e,n,r){if(e){var i=new vo(r);i.selectNumberingPlan(e,n);var o=new RegExp(i.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var s=t.match(Jvt);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return t}}}function Qvt(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,o,s=r.length-1,a=s>0&&r[s];if(e.nationalPrefixTransformRule()&&a)i=t.replace(n,e.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var l=r[0];i=t.slice(l.length),a&&(o=r[1])}var d;if(a){var h=t.indexOf(r[1]),p=t.slice(0,h);p===e.numberingPlan.nationalPrefix()&&(d=e.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:o}}}return{nationalNumber:t}}function B_(t,e){var n=Qvt(t,e),r=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!e0t(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!t0t(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:r}}function e0t(t,e,n){return!(ac(t,n.nationalNumberPattern())&&!ac(e,n.nationalNumberPattern()))}function t0t(t,e){switch(OI(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function n0t(t,e,n,r){var i=e?$I(e,r):n;if(t.indexOf(i)===0){r=new vo(r),r.selectNumberingPlan(e,n);var o=t.slice(i.length),s=B_(o,r),a=s.nationalNumber,l=B_(t,r),d=l.nationalNumber;if(!ac(d,r.nationalNumberPattern())&&ac(a,r.nationalNumberPattern())||OI(d,r)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:t}}function r0t(t,e,n,r){if(!t)return{};var i;if(t[0]!=="+"){var o=Zvt(t,e,n,r);if(o&&o!==t)i=!0,t="+"+o;else{if(e||n){var s=n0t(t,e,n,r),a=s.countryCallingCode,l=s.number;if(a)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:a,number:l}}return{number:t}}}if(t[1]==="0")return{};r=new vo(r);for(var d=2;d-1<=Ymt&&d<=t.length;){var h=t.slice(1,d);if(r.hasCallingCode(h))return r.selectNumberingPlan(h),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:t.slice(d)};d++}return{}}function i0t(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=o0t(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0t(t,e){if(t){if(typeof t=="string")return K5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K5(t,e)}}function K5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s0t(t,e){var n=e.countries,r=e.defaultCountry,i=e.metadata;i=new vo(i);for(var o=[],s=i0t(n),a;!(a=s()).done;){var l=a.value;if(i.country(l),i.leadingDigits()){if(t&&t.search(i.leadingDigits())===0)return l}else if(II({phone:t,country:l},void 0,i.metadata))if(r){if(l===r)return l;o.push(l)}else return l}if(o.length>0)return o[0]}function a0t(t,e){var n=e.nationalNumber,r=e.defaultCountry,i=e.metadata,o=i.getCountryCodesForCallingCode(t);if(o)return o.length===1?o[0]:s0t(n,{countries:o,defaultCountry:r,metadata:i.metadata})}var XX="+",l0t="[\\-\\.\\(\\)]?",J5="(["+ma+"]|"+l0t+")",c0t="^\\"+XX+J5+"*["+ma+"]"+J5+"*$",u0t=new RegExp(c0t,"g"),z_=ma,d0t="["+z_+"]+((\\-)*["+z_+"])*",f0t="a-zA-Z",h0t="["+f0t+"]+((\\-)*["+z_+"])*",p0t="^("+d0t+"\\.)*"+h0t+"\\.?$",g0t=new RegExp(p0t,"g"),Z5="tel:",H_=";phone-context=",m0t=";isub=";function v0t(t){var e=t.indexOf(H_);if(e<0)return null;var n=e+H_.length;if(n>=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function b0t(t){return t===null?!0:t.length===0?!1:u0t.test(t)||g0t.test(t)}function y0t(t,e){var n=e.extractFormattedPhoneNumber,r=v0t(t);if(!b0t(r))throw new $l("NOT_A_NUMBER");var i;if(r===null)i=n(t)||"";else{i="",r.charAt(0)===XX&&(i+=r);var o=t.indexOf(Z5),s;o>=0?s=o+Z5.length:s=0;var a=t.indexOf(H_);i+=t.substring(s,a)}var l=i.indexOf(m0t);if(l>0&&(i=i.substring(0,l)),i!=="")return i}var x0t=250,w0t=new RegExp("["+DI+ma+"]"),S0t=new RegExp("[^"+ma+"#]+$");function C0t(t,e,n){if(e=e||{},n=new vo(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new $l("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=A0t(t,e.v2,e.extract),i=r.number,o=r.ext,s=r.error;if(!i){if(e.v2)throw s==="TOO_SHORT"?new $l("TOO_SHORT"):new $l("NOT_A_NUMBER");return{}}var a=T0t(i,e.defaultCountry,e.defaultCallingCode,n),l=a.country,d=a.nationalNumber,h=a.countryCallingCode,p=a.countryCallingCodeSource,y=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new $l("INVALID_COUNTRY");return{}}if(!d||d.length<_I){if(e.v2)throw new $l("TOO_SHORT");return{}}if(d.length>Vmt){if(e.v2)throw new $l("TOO_LONG");return{}}if(e.v2){var w=new Gvt(h,d,n.metadata);return l&&(w.country=l),y&&(w.carrierCode=y),o&&(w.ext=o),w.__countryCallingCodeSource=p,w}var C=(e.extended?n.hasSelectedNumberingPlan():l)?ac(d,n.nationalNumberPattern()):!1;return e.extended?{country:l,countryCallingCode:h,carrierCode:y,valid:C,possible:C?!0:!!(e.extended===!0&&n.possibleLengths()&&YX(d,n)),phone:d,ext:o}:C?k0t(l,d,o):{}}function E0t(t,e,n){if(t){if(t.length>x0t){if(n)throw new $l("TOO_LONG");return}if(e===!1)return t;var r=t.search(w0t);if(!(r<0))return t.slice(r).replace(S0t,"")}}function A0t(t,e,n){var r=y0t(t,{extractFormattedPhoneNumber:function(o){return E0t(o,n,e)}});if(!r)return{};if(!gvt(r))return mvt(r)?{error:"TOO_SHORT"}:{};var i=vvt(r);return i.ext?i:{number:r}}function k0t(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function T0t(t,e,n,r){var i=r0t(z5(t),e,n,r.metadata),o=i.countryCallingCodeSource,s=i.countryCallingCode,a=i.number,l;if(s)r.selectNumberingPlan(s);else if(a&&(e||n))r.selectNumberingPlan(e,n),e&&(l=e),s=n||$I(e,r.metadata);else return{};if(!a)return{countryCallingCodeSource:o,countryCallingCode:s};var d=B_(z5(a),r),h=d.nationalNumber,p=d.carrierCode,y=a0t(s,{nationalNumber:h,defaultCountry:e,metadata:r});return y&&(l=y,y==="001"||r.country(l)),{country:l,countryCallingCode:s,countryCallingCodeSource:o,nationalNumber:h,carrierCode:p}}function Q5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function e6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q5(Object(n),!0).forEach(function(r){_0t(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _0t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D0t(t,e,n){return C0t(t,e6(e6({},e),{},{v2:!0}),n)}function t6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $0t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t6(Object(n),!0).forEach(function(r){O0t(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function O0t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I0t(t,e){return N0t(t)||P0t(t,e)||M0t(t,e)||R0t()}function R0t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M0t(t,e){if(t){if(typeof t=="string")return n6(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n6(t,e)}}function n6(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P0t(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function N0t(t){if(Array.isArray(t))return t}function L0t(t){var e=Array.prototype.slice.call(t),n=I0t(e,4),r=n[0],i=n[1],o=n[2],s=n[3],a,l,d;if(typeof r=="string")a=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")s?(l=o,d=s):(l=void 0,d=o),i&&(l=$0t({defaultCountry:i},l));else if(Ax(i))o?(l=i,d=o):d=i;else throw new Error("Invalid second argument: ".concat(i));return{text:a,options:l,metadata:d}}function r6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function i6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?r6(Object(n),!0).forEach(function(r){F0t(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function F0t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B0t(t,e,n){e&&e.defaultCountry&&!lvt(e.defaultCountry,n)&&(e=i6(i6({},e),{},{defaultCountry:void 0}));try{return D0t(t,e,n)}catch(r){if(!(r instanceof $l))throw r}}function z0t(){var t=L0t(arguments),e=t.text,n=t.options,r=t.metadata;return B0t(e,n,r)}function B2(){return Fmt(z0t,arguments)}const H0t={beforeMount(t,e,n){if(typeof e.value!="function"){const r=n.context.name;let i=`[Vue-click-outside:] provided expression ${e.expression} is not a function, but has to be`;r&&(i+=`Found in component ${r}`),console.warn(i)}t.clickOutsideEvent=function(r){const i=r.composedPath?r.composedPath():r.path;t===r.target||t.contains(r.target)||i.includes(t)||e.value(r,t)},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.body.removeEventListener("click",t.clickOutsideEvent)}},j0t=["aria-expanded","tabindex"],W0t={class:"vti__selection"},U0t={key:1,class:"vti__country-code"},V0t={class:"vti__dropdown-arrow"},Y0t={key:0,class:"vti__search_box_container"},X0t=["placeholder"],G0t=["onClick","onMousemove","aria-selected"],q0t={key:1},K0t=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],iCt=Jn({name:"VueTelInput",directives:{clickOutside:H0t},__name:"vue-tel-input",props:hk({allCountries:{type:Array,default:()=>Yi("allCountries")},autoFormat:{type:Boolean,default:()=>Yi("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>Yi("customValidate")},defaultCountry:{type:[String,Number],default:()=>Yi("defaultCountry")},disabled:{type:Boolean,default:()=>Yi("disabled")},autoDefaultCountry:{type:Boolean,default:()=>Yi("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>Yi("dropdownOptions")},ignoredCountries:{type:Array,default:()=>Yi("ignoredCountries")},inputOptions:{type:Object,default:()=>Yi("inputOptions")},invalidMsg:{type:String,default:()=>Yi("invalidMsg")},mode:{type:String,default:()=>Yi("mode")},onlyCountries:{type:Array,default:()=>Yi("onlyCountries")},preferredCountries:{type:Array,default:()=>Yi("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>Yi("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>Yi("styleClasses")}},{modelValue:{type:String},modelModifiers:{}}),emits:hk(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=ca(),i=ca(),o=ca(),s=n,a=t,l=_B(t,"modelValue");en(l,(Se,_e)=>{G()?d.phone=Se??"":Ir(()=>{d.phone=_e??"",Z()})});const d=lo({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:a.inputOptions.placeholder,searchQuery:""});en(()=>d.open,Se=>{Se?(Ae(),s("open")):s("close")});const h=lt(()=>a.onlyCountries.length?a.allCountries.filter(({iso2:Se})=>a.onlyCountries.some(_e=>em(_e)===Se)):a.ignoredCountries.length?a.allCountries.filter(({iso2:Se})=>!a.ignoredCountries.includes(em(Se))&&!a.ignoredCountries.includes(Qg(Se))):a.allCountries),p=lt(()=>_(d.activeCountryCode));en(p,(Se,_e)=>{if(!Se&&_e!=null&&_e.iso2){d.activeCountryCode=_e.iso2;return}Se!=null&&Se.iso2&&s("country-changed",Se)});const y=lt(()=>{var Se;const _e=Qg(a.mode);return _e==="auto"?(Se=d.phone)!=null&&Se.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(_e)?_e:(console.error('Invalid value of prop "mode"'),"international")}),w=lt(()=>{const Se=[...I(a.preferredCountries).map(Be=>({...Be,preferred:!0})),...h.value];if(!a.dropdownOptions.showSearchBox)return Se;const _e=d.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return Se.filter(Be=>new RegExp(_e,"i").test(Be.name)||new RegExp(_e,"i").test(Be.iso2)||new RegExp(_e,"i").test(Be.dialCode))}),C=lt(()=>{var Se;const _e=d.phone.startsWith("+")?B2(d.phone):B2(d.phone,d.activeCountryCode),Be={country:_e==null?void 0:_e.country,countryCode:_e==null?void 0:_e.country,formatted:d.phone,valid:_e==null?void 0:_e.isValid(),possible:(Se=_e==null?void 0:_e.isPossible)==null?void 0:Se.call(_e),nationalNumber:_e==null?void 0:_e.nationalNumber};return Be.valid&&(Be.formatted=_e==null?void 0:_e.format(em(y.value))),_e!=null&&_e.country&&(a.ignoredCountries.length||a.onlyCountries.length)&&!_(_e.country)&&(Be.valid=!1,Be.possible=!1,_e.country=null),_e?{...Be,..._e}:Be});en(()=>C.value.countryCode,Se=>{Se&&(d.activeCountryCode=Se)}),en(()=>C.value.valid,()=>{s("validate",C.value)}),en(()=>C.value.formatted,Se=>{!a.autoFormat||a.customValidate||(te(Se),Ir(()=>{Se&&!l.value&&(d.phone=Se)}))}),en(()=>a.inputOptions.placeholder,k),Rr(()=>{l.value&&(d.phone=l.value.trim()),H(),D().then(()=>{var Se;!d.phone&&(Se=a.inputOptions)!=null&&Se.showDialCode&&d.activeCountryCode&&(d.phone=`+${d.activeCountryCode}`),s("validate",C.value)}).catch(console.error).then(()=>{d.finishMounted=!0})});function k(){d.parsedPlaceholder=a.inputOptions.placeholder}function D(){return new Promise(Se=>{var _e;if(((_e=d.phone)==null?void 0:_e[0])==="+"){Se();return}if(a.defaultCountry){if(typeof a.defaultCountry=="string"){F(a.defaultCountry),Se();return}if(typeof a.defaultCountry=="number"){const Q=L(a.defaultCountry);if(Q){F(Q.iso2),Se();return}}}const Be=a.preferredCountries[0]||h.value[0];a.autoDefaultCountry?Rmt().then(Q=>{F(Q||d.activeCountryCode)}).catch(Q=>{console.warn(Q),F(Be)}).then(()=>{Se()}):(F(Be),Se())})}function I(Se=[]){return Se.map(_).filter(Boolean)}function _(Se=""){return h.value.find(_e=>_e.iso2===em(Se))}function L(Se){return h.value.find(_e=>Number(_e.dialCode)===Se)}function M(Se,_e){const Be=d.selectedIndex===Se,Q=Se===a.preferredCountries.length-1,de=a.preferredCountries.some(we=>em(we)===_e);return{highlighted:Be,"last-preferred":Q,preferred:de}}function F(Se){var _e,Be,Q;let de=Se;if(typeof de=="string"&&(de=_(de)),!!de){if(((_e=d.phone)==null?void 0:_e[0])==="+"&&de.iso2&&C.value.nationalNumber){d.activeCountryCode=de.iso2,d.phone=((Be=B2(C.value.nationalNumber,de.iso2))==null?void 0:Be.formatInternational())??"";return}if((Q=a.inputOptions)!=null&&Q.showDialCode&&de){d.phone=`+${de.dialCode}`,d.activeCountryCode=de.iso2;return}d.activeCountryCode=de.iso2,te(d.phone)}}function H(){const Se=d.phone;if(a.validCharactersOnly){const _e=d.phone.match(/[()\-+0-9\s]*/g);d.phone=_e.join("")}if(a.customValidate&&a.customValidate instanceof RegExp){const _e=d.phone.match(a.customValidate);d.phone=_e.join("")}Se!==d.phone&&te(d.phone)}function G(){return a.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(d.phone)?!1:a.customValidate?X():!0}function X(){return a.customValidate instanceof RegExp?a.customValidate.test(d.phone):!1}function Z(){var Se;(Se=o.value)==null||Se.setCustomValidity(C.value.valid?"":a.invalidMsg),te(d.phone)}function te(Se){l.value=Se,s("on-input",Se,C.value,o.value)}function ae(Se){s("blur",Se)}function ye(Se){Mmt(o.value,d.phone.length),s("focus",Se)}function ve(Se){s("enter",Se)}function se(Se){s("space",Se)}function J(){var Se;(Se=o.value)==null||Se.focus()}function B(){var Se;(Se=o.value)==null||Se.blur()}function V(){a.disabled||a.dropdownOptions.disabled||(d.searchQuery="",d.open=!d.open)}function q(){d.open=!1}function ce(Se){if(Se.keyCode===40){Se.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=0:d.selectedIndex=Math.min(w.value.length-1,d.selectedIndex+1);const _e=i.value.children[d.selectedIndex];_e.focus(),_e.offsetTop+_e.clientHeight>i.value.scrollTop+i.value.clientHeight&&(i.value.scrollTop=_e.offsetTop-i.value.clientHeight+_e.clientHeight)}else if(Se.keyCode===38){Se.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=w.value.length-1:d.selectedIndex=Math.max(0,d.selectedIndex-1);const _e=i.value.children[d.selectedIndex];_e.focus(),_e.offsetTop<i.value.scrollTop&&(i.value.scrollTop=_e.offsetTop)}else if(Se.keyCode===13)d.selectedIndex!==null&&F(w.value[d.selectedIndex]),d.open=!d.open;else if(d.open){d.typeToFindInput+=Se.key,clearTimeout(d.typeToFindTimer),d.typeToFindTimer=setTimeout(()=>{d.typeToFindInput=""},700);const _e=w.value.slice(a.preferredCountries.length).findIndex(Be=>Qg(Be.name).startsWith(d.typeToFindInput));if(_e>=0){d.selectedIndex=a.preferredCountries.length+_e;const Be=i.value.children[d.selectedIndex],Q=Be.offsetTop<i.value.scrollTop,de=Be.offsetTop+Be.clientHeight>i.value.scrollTop+i.value.clientHeight;(Q||de)&&(i.value.scrollTop=Be.offsetTop-i.value.clientHeight/2)}}}function fe(){d.selectedIndex=w.value.map(Se=>Se.iso2).indexOf(d.activeCountryCode),d.open=!1}function Ae(){window.innerHeight-r.value.getBoundingClientRect().bottom>200?d.dropdownOpenDirection="below":d.dropdownOpenDirection="above"}return e({focus:J,blur:B}),(Se,_e)=>{const Be=sB("click-outside");return Et(),Mn("div",{ref_key:"refRoot",ref:r,class:$r(["vue-tel-input",t.styleClasses,{disabled:t.disabled}])},[oa((Et(),Mn("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":d.open,role:"button",class:$r(["vti__dropdown",{open:d.open,disabled:t.dropdownOptions.disabled}]),tabindex:t.dropdownOptions.tabindex,onKeydown:[ce,Ad(V,["space"]),Ad(fe,["esc"]),Ad(fe,["tab"])],onClick:V},[Lt("span",W0t,[t.dropdownOptions.showFlags?(Et(),Mn("span",{key:0,class:$r(["vti__flag",kt(Qg)(d.activeCountryCode)])},null,2)):fr("",!0),t.dropdownOptions.showDialCodeInSelection?(Et(),Mn("span",U0t," +"+Fl(p.value&&p.value.dialCode),1)):fr("",!0),Yr(Se.$slots,"arrow-icon",{open:d.open},()=>[Lt("span",V0t,Fl(d.open?"▲":"▼"),1)])]),d.open?(Et(),Mn("ul",{key:0,ref_key:"refList",ref:i,class:$r(["vti__dropdown-list",d.dropdownOpenDirection]),role:"listbox"},[t.dropdownOptions.showSearchBox?(Et(),Mn("div",Y0t,[Yr(Se.$slots,"search-icon"),oa(Lt("input",{class:$r(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:t.dropdownOptions.searchBoxPlaceholder||(w.value.length?w.value[0].name:""),type:"text","onUpdate:modelValue":_e[0]||(_e[0]=Q=>d.searchQuery=Q),onClick:_e[1]||(_e[1]=WD(()=>{},["stop"]))},null,8,X0t),[[hp,d.searchQuery]])])):fr("",!0),(Et(!0),Mn(Gn,null,pv(w.value,(Q,de)=>(Et(),Mn("li",{role:"option",class:$r(["vti__dropdown-item",M(de,Q.iso2)]),key:Q.iso2+(Q.preferred?"-preferred":""),tabindex:"-1",onClick:we=>F(Q),onMousemove:we=>d.selectedIndex=de,"aria-selected":d.activeCountryCode===Q.iso2&&!Q.preferred},[t.dropdownOptions.showFlags?(Et(),Mn("span",{key:0,class:$r(["vti__flag",kt(Qg)(Q.iso2)])},null,2)):fr("",!0),Lt("strong",null,Fl(Q.name),1),t.dropdownOptions.showDialCodeInList?(Et(),Mn("span",q0t," +"+Fl(Q.dialCode),1)):fr("",!0)],42,G0t))),128))],2)):fr("",!0)],42,j0t)),[[Be,q]]),oa(Lt("input",{"onUpdate:modelValue":_e[2]||(_e[2]=Q=>d.phone=Q),ref_key:"refInput",ref:o,type:t.inputOptions.type,autocomplete:t.inputOptions.autocomplete,autofocus:t.inputOptions.autofocus,class:$r(["vti__input","vti__phone",t.inputOptions.styleClasses]),disabled:t.disabled,id:t.inputOptions.id,maxlength:t.inputOptions.maxlength,name:t.inputOptions.name,placeholder:d.parsedPlaceholder,readonly:t.inputOptions.readonly,required:t.inputOptions.required,tabindex:t.inputOptions.tabindex,value:l.value,"aria-describedby":t.inputOptions["aria-describedby"],onBlur:ae,onFocus:ye,onInput:Z,onKeyup:[Ad(ve,["enter"]),Ad(se,["space"])]},null,42,K0t),[[jD,d.phone]]),Yr(Se.$slots,"icon-right")],2)}}});var j_={},J0t={get exports(){return j_},set exports(t){j_=t}};/*!
 Name: vue-upload-component 
Component URI: https://github.com/lian-yue/vue-upload-component#readme 
Version: 3.1.7 
Author: LianYue 
License: Apache-2.0 
Description: Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter 
 */(function(t,e){(function(n,r){t.exports=r(RO)})(lu,function(n){function r(J){return a(J)||s(J)||o(J)||i()}function i(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(J,B){if(J){if(typeof J=="string")return l(J,B);var V=Object.prototype.toString.call(J).slice(8,-1);if(V==="Object"&&J.constructor&&(V=J.constructor.name),V==="Map"||V==="Set")return Array.from(J);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return l(J,B)}}function s(J){if(typeof Symbol<"u"&&J[Symbol.iterator]!=null||J["@@iterator"]!=null)return Array.from(J)}function a(J){if(Array.isArray(J))return l(J)}function l(J,B){(B==null||B>J.length)&&(B=J.length);for(var V=0,q=new Array(B);V<B;V++)q[V]=J[V];return q}function d(J,B){var V=Object.keys(J);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(J);B&&(q=q.filter(function(ce){return Object.getOwnPropertyDescriptor(J,ce).enumerable})),V.push.apply(V,q)}return V}function h(J){for(var B=1;B<arguments.length;B++){var V=arguments[B]!=null?arguments[B]:{};B%2?d(Object(V),!0).forEach(function(q){p(J,q,V[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(V)):d(Object(V)).forEach(function(q){Object.defineProperty(J,q,Object.getOwnPropertyDescriptor(V,q))})}return J}function p(J,B,V){return B in J?Object.defineProperty(J,B,{value:V,enumerable:!0,configurable:!0,writable:!0}):J[B]=V,J}function y(J){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},y(J)}function w(J,B){var V=Object.keys(J);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(J);B&&(q=q.filter(function(ce){return Object.getOwnPropertyDescriptor(J,ce).enumerable})),V.push.apply(V,q)}return V}function C(J){for(var B=1;B<arguments.length;B++){var V=arguments[B]!=null?arguments[B]:{};B%2?w(Object(V),!0).forEach(function(q){_(J,q,V[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(V)):w(Object(V)).forEach(function(q){Object.defineProperty(J,q,Object.getOwnPropertyDescriptor(V,q))})}return J}function k(J,B){if(!(J instanceof B))throw new TypeError("Cannot call a class as a function")}function D(J,B){for(var V=0;V<B.length;V++){var q=B[V];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(J,q.key,q)}}function I(J,B,V){return B&&D(J.prototype,B),V&&D(J,V),Object.defineProperty(J,"prototype",{writable:!1}),J}function _(J,B,V){return B in J?Object.defineProperty(J,B,{value:V,enumerable:!0,configurable:!0,writable:!0}):J[B]=V,J}var L=function(B){var V=new XMLHttpRequest;return V.open(B.method||"GET",B.url),V.responseType="json",B.headers&&Object.keys(B.headers).forEach(function(q){V.setRequestHeader(q,B.headers[q])}),V},M=function(B,V){return new Promise(function(q,ce){B.onload=function(){if(B.status>=200&&B.status<300){var fe;try{fe=JSON.parse(B.response)}catch{fe=B.response}q(fe)}else ce(B.response)},B.onerror=function(){return ce(B.response)},B.send(JSON.stringify(V))})},F=function(B,V){var q=new FormData;for(var ce in V)q.append(ce,V[ce]);return new Promise(function(fe,Ae){B.onload=function(){if(B.status>=200&&B.status<300){var Se;try{Se=JSON.parse(B.response)}catch{Se=B.response}fe(Se)}else Ae(B.response)},B.onerror=function(){return Ae(B.response)},B.send(q)})};function H(J){var B=L(J);return M(B,J.body)}var G=function(){function J(B,V){k(this,J),this.file=B,this.options=V,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return I(J,[{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var V=this,q=this.chunksUploaded.length/this.chunks.length*100,ce=this.chunksUploading.reduce(function(fe,Ae){return fe+(Ae.progress|0)/V.chunks.length},0);return Math.min(q+ce,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter(function(V){return!V.active&&!V.uploaded})}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter(function(V){return!!V.xhr&&!!V.active})}},{key:"chunksUploaded",get:function(){return this.chunks.filter(function(V){return!!V.uploaded})}},{key:"createChunks",value:function(){this.chunks=[];for(var V=0,q=this.chunkSize;V<this.fileSize;)this.chunks.push({blob:this.file.file.slice(V,q),startOffset:V,active:!1,retries:this.maxRetries}),V=q,q=V+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach(function(V){V.xhr.abort(),V.active=!1}),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var V=this;return this.promise=new Promise(function(q,ce){V.resolve=q,V.reject=ce}),this.start(),this.promise}},{key:"start",value:function(){var V=this;H({method:"POST",headers:C(C({},this.headers),{},{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then(function(q){if(q.status!=="success")return V.file.response=q,V.reject("server");V.sessionId=q.data.session_id,V.chunkSize=q.data.end_offset,V.createChunks(),V.startChunking()}).catch(function(q){V.file.response=q,V.reject("server")})}},{key:"startChunking",value:function(){for(var V=0;V<this.maxActiveChunks;V++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(this.chunksUploading.length===0)return this.finish()}}},{key:"uploadChunk",value:function(V){var q=this;V.progress=0,V.active=!0,this.updateFileProgress(),V.xhr=L({method:"POST",headers:this.headers,url:this.action}),V.xhr.upload.addEventListener("progress",function(ce){ce.lengthComputable&&(V.progress=Math.round(ce.loaded/ce.total*100))},!1),F(V.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:V.startOffset,chunk:V.blob})).then(function(ce){if(V.active=!1,ce.status==="success")V.uploaded=!0;else if(V.retries--<=0)return q.stopChunks(),q.reject("upload");q.uploadNextChunk()}).catch(function(){if(V.active=!1,V.retries--<=0)return q.stopChunks(),q.reject("upload");q.uploadNextChunk()})}},{key:"finish",value:function(){var V=this;this.updateFileProgress(),this.stopSpeedCalc(),H({method:"POST",headers:C(C({},this.headers),{},{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then(function(q){if(V.file.response=q,q.status!=="success")return V.reject("server");V.resolve(q)}).catch(function(q){V.file.response=q,V.reject("server")})}},{key:"startSpeedCalc",value:function(){var V=this;this.file.speed=0;var q=0;this.speedInterval||(this.speedInterval=window.setInterval(function(){var ce=V.progress/100*V.fileSize;V.file.speed=ce-q,q=ce},1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}}]),J}(),X={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:G},Z=n.defineComponent({props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{default:!1},multiple:{type:Boolean,default:!1},maximum:{type:Number},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},createDirectory:{type:Boolean,default:!1},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},timeout:{type:Number,default:0},drop:{type:[Boolean,String,HTMLElement],default:function(){return!1}},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{type:[RegExp,String,Array],default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return X}}},emits:["update:modelValue","input-filter","input-file"],data:function(){return{files:this.modelValue,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1,maps:{},dropElement:null,dropTimeout:null,reload:!1}},mounted:function(){var B=this,V=document.createElement("input");if(V.type="file",V.multiple=!0,window.FormData&&V.files?((typeof V.webkitdirectory=="boolean"||typeof V.directory=="boolean")&&(this.features.directory=!0),this.features.html5&&typeof V.ondrop<"u"&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var q=0;q<this.files.length;q++){var ce=this.files[q];this.maps[ce.id]=ce}this.$nextTick(function(){B.$parent?(B.$parent.$forceUpdate(),B.$parent.$nextTick(function(){B.watchDrop(B.drop)})):B.watchDrop(B.drop)})},beforeUnmount:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1),this.watchActive(!1)},computed:{uploaded:function(){for(var B,V=0;V<this.files.length;V++)if(B=this.files[V],B.fileObject&&!B.error&&!B.success)return!1;return!0},chunkOptions:function(){return Object.assign(X,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]},forId:function(){return this.inputId||this.name},iMaximum:function(){return this.maximum===void 0?this.multiple?0:1:this.maximum},iExtensions:function(){if(this.extensions){if(this.extensions instanceof RegExp)return this.extensions;if(this.extensions.length){var B=[];return typeof this.extensions=="string"?B=this.extensions.split(","):B=this.extensions,B=B.map(function(V){return V.trim()}).filter(function(V){return V}),new RegExp("\\.("+B.join("|").replace(/\./g,"\\.")+")$","i")}}},iDirectory:function(){if(this.directory&&this.features.directory)return!0}},watch:{active:function(B){this.watchActive(B)},dropActive:function(B){this.watchDropActive(B),this.$parent&&this.$parent.$forceUpdate()},drop:function(B){this.watchDrop(B)},modelValue:function(B){if(this.files!==B){this.files=B;var V=this.maps;this.maps={};for(var q=0;q<this.files.length;q++){var ce=this.files[q];this.maps[ce.id]=ce}for(var fe in this.maps){var Ae=this.maps[fe],Se=V[fe];Ae!==Se&&this.emitFile(Ae,Se)}for(var _e in V)this.maps[_e]||this.emitFile(void 0,V[_e])}}},methods:{newId:function(){return Math.random().toString(36).substr(2)},clear:function(){if(this.files.length){var B=this.files;this.files=[],this.maps={},this.emitInput();for(var V=0;V<B.length;V++)this.emitFile(void 0,B[V])}return!0},get:function(B){return B?y(B)==="object"?this.maps[B.id||""]||!1:this.maps[B]||!1:!1},add:function(B,V){var q;B instanceof Array?q=B:q=[B],V===void 0&&(V=this.addIndex);for(var ce=[],fe=0;fe<q.length;fe++){var Ae=q[fe];this.features.html5&&Ae instanceof Blob&&(Ae={id:"",file:Ae,size:Ae.size,name:Ae.webkitRelativePath||Ae.relativePath||Ae.name||"unknown",type:Ae.type}),Ae=Ae;var Se=!1;if(Ae.fileObject===!1||(Ae.fileObject||typeof Element<"u"&&Ae.el instanceof HTMLInputElement||typeof Blob<"u"&&Ae.file instanceof Blob)&&(Se=!0),Se&&(Ae=h(h({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},Ae),{},{response:{},progress:"0.00",speed:0}),Ae.data=h(h({},this.data),Ae.data?Ae.data:{}),Ae.headers=h(h({},this.headers),Ae.headers?Ae.headers:{})),Ae.id||(Ae.id=this.newId()),!this.emitFilter(Ae,void 0)&&(this.iMaximum>1&&ce.length+this.files.length>=this.iMaximum||(ce.push(Ae),this.iMaximum===1)))break}if(ce.length){this.iMaximum===1&&this.clear();var _e;if(V===!0||V===0)_e=ce.concat(this.files);else if(V){var Be;_e=this.files.concat([]),(Be=_e).splice.apply(Be,[V,0].concat(r(ce)))}else _e=this.files.concat(ce);this.files=_e;var Q=0;V===!0||V===0?Q=0:V?V>=0?V+ce.length>this.files.length?Q=this.files.length-ce.length:Q=V:(Q=this.files.length-ce.length+V,Q<0&&(Q=0)):Q=this.files.length-ce.length,ce=this.files.slice(Q,Q+ce.length);for(var de=0;de<ce.length;de++){var we=ce[de];this.maps[we.id]=we}this.emitInput();for(var Ce=0;Ce<ce.length;Ce++)this.emitFile(ce[Ce],void 0);return B instanceof Array?ce:ce[0]}},addInputFile:function(B){var V=this,q=[];this.iMaximum;var ce=B.webkitEntries||B.entries||void 0;if(ce!=null&&ce.length)return this.getFileSystemEntry(ce).then(function(_e){return V.add(_e)});if(B.files)for(var fe=0;fe<B.files.length;fe++){var Ae=B.files[fe];q.push({id:"",size:Ae.size,name:Ae.webkitRelativePath||Ae.relativePath||Ae.name,type:Ae.type,file:Ae})}else{var Se=B.value.replace(/\\/g,"/").split("/");(!Se||!Se.length)&&(Se=[B.value]),delete B.__vuex__,q.push({id:"",name:Se[Se.length-1],el:B})}return Promise.resolve(this.add(q))},addDataTransfer:function(B){var V,q=this;if(B!=null&&(V=B.items)!==null&&V!==void 0&&V.length){for(var ce=[],fe=0;fe<B.items.length;fe++){var Ae=B.items[fe],Se=void 0;Ae.getAsEntry?Se=Ae.getAsEntry()||Ae.getAsFile():Ae.webkitGetAsEntry?Se=Ae.webkitGetAsEntry()||Ae.getAsFile():Se=Ae.getAsFile(),Se&&ce.push(Se)}return this.getFileSystemEntry(ce).then(function(de){return q.add(de)})}var _e=this.iMaximum,Be=[];if(B.files.length){for(var Q=0;Q<B.files.length&&(Be.push(B.files[Q]),!(_e>0&&Be.length>=_e));Q++);return Promise.resolve(this.add(Be))}return Promise.resolve([])},getFileSystemEntry:function(B){var V=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(ce){var fe=V.iMaximum;if(!B){ce([]);return}if(B instanceof Array){var Ae=[],Se=function Ce(je){var Ue=B[je];if(!Ue||fe>0&&Ae.length>=fe)return ce(Ae);V.getFileSystemEntry(Ue,q).then(function(Xe){Ae.push.apply(Ae,r(Xe)),Ce(je+1)})};Se(0);return}if(B instanceof Blob){ce([{id:"",size:B.size,name:q+B.name,type:B.type,file:B}]);return}if(B.isFile){var _e=B;_e.file(function(Ce){ce([{id:"",size:Ce.size,name:q+Ce.name,type:Ce.type,file:Ce}])});return}if(B.isDirectory&&V.dropDirectory){var Be=B,Q=[];V.createDirectory&&Q.push({id:"",name:q+Be.name,size:0,type:"text/directory",file:new File([],q+Be.name,{type:"text/directory"})});var de=Be.createReader(),we=function Ce(){de.readEntries(function(je){var Ue=function Xe(qe){if(!je[qe]&&qe===0||fe>0&&Q.length>=fe)return ce(Q);if(!je[qe])return Ce();V.getFileSystemEntry(je[qe],q+Be.name+"/").then(function(K){Q.push.apply(Q,r(K)),Xe(qe+1)})};Ue(0)})};we();return}ce([])})},replace:function(B,V){var q=this.get(B),ce=this.get(V);if(!q||!ce||q===ce)return!1;var fe=this.files.concat([]),Ae=fe.indexOf(q),Se=fe.indexOf(ce);return Ae===-1||Se===-1?!1:(fe[Ae]=ce,fe[Se]=q,this.files=fe,this.emitInput(),!0)},remove:function(B){var V=this.get(B);if(V){if(this.emitFilter(void 0,V))return!1;var q=this.files.concat([]),ce=q.indexOf(V);if(ce===-1)return console.error("remove",V),!1;q.splice(ce,1),this.files=q,delete this.maps[V.id],this.emitInput(),this.emitFile(void 0,V)}return V},update:function(B,V){var q=this.get(B);if(q){var ce=h(h({},q),V);if(q.fileObject&&q.active&&!ce.active&&!ce.error&&!ce.success&&(ce.error="abort"),this.emitFilter(ce,q))return!1;var fe=this.files.concat([]),Ae=fe.indexOf(q);return Ae===-1?(console.error("update",q),!1):(fe.splice(Ae,1,ce),this.files=fe,ce=this.files[Ae],delete this.maps[q.id],this.maps[ce.id]=ce,this.emitInput(),this.emitFile(ce,q),ce)}return!1},emitFilter:function(B,V){var q=!1;return this.$emit("input-filter",B,V,function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return q=ce,q}),q},emitFile:function(B,V){var q,ce=this;this.$emit("input-file",B,V),(q=B)!==null&&q!==void 0&&q.fileObject&&B.active&&(!V||!V.active)?(this.uploading++,this.$nextTick(function(){setTimeout(function(){B&&ce.upload(B).then(function(){var fe;B&&(B=ce.get(B)||void 0),(fe=B)!==null&&fe!==void 0&&fe.fileObject&&ce.update(B,{active:!1,success:!B.error})}).catch(function(fe){B&&ce.update(B,{active:!1,success:!1,error:fe.code||fe.error||fe.message||fe})})},Math.ceil(Math.random()*50+50))})):(!B||!B.fileObject||!B.active)&&V&&V.fileObject&&V.active&&this.uploading--,this.active&&(Boolean(B)!==Boolean(V)||B.active!==V.active)&&this.watchActive(!0)},emitInput:function(){this.$emit("update:modelValue",this.files)},upload:function(B){var V=this.get(B);if(!V)return Promise.reject(new Error("not_exists"));if(!V.fileObject)return Promise.reject(new Error("file_object"));if(V.error)return V.error instanceof Error?Promise.reject(V.error):Promise.reject(new Error(V.error));if(V.success)return Promise.resolve(V);if(V.name&&this.iExtensions&&V.type!=="text/directory"&&V.name.search(this.iExtensions)===-1)return Promise.reject(new Error("extension"));if(this.size>0&&V.size!==void 0&&V.size>=0&&V.size>this.size&&V.type!=="text/directory")return Promise.reject(new Error("size"));if(this.customAction)return this.customAction(V,this);if(this.features.html5){if(this.shouldUseChunkUpload(V))return this.uploadChunk(V);if(V.putAction)return this.uploadPut(V);if(V.postAction)return this.uploadHtml5(V)}return V.postAction?this.uploadHtml4(V):Promise.reject(new Error("No action configured"))},shouldUseChunkUpload:function(B){return this.chunkEnabled&&!!this.chunkOptions.handler&&B.size&&B.size>this.chunkOptions.minSize},uploadChunk:function(B){var V=this.chunkOptions.handler;return B.chunk=new V(B,this.chunkOptions),B.chunk.upload().then(function(q){return B})},uploadPut:function(B){var V=[],q;for(var ce in B.data)q=B.data[ce],q!=null&&V.push(encodeURIComponent(ce)+"="+encodeURIComponent(q));var fe=B.putAction||"",Ae=V.length?(fe.indexOf("?")===-1?"?":"&")+V.join("&"):"",Se=new XMLHttpRequest;return Se.open("PUT",fe+Ae),this.uploadXhr(Se,B,B.file)},uploadHtml5:function(B){var V=new window.FormData,q;for(var ce in B.data)q=B.data[ce],q&&y(q)==="object"&&typeof q.toString!="function"?q instanceof File?V.append(ce,q,q.name):V.append(ce,JSON.stringify(q)):q!=null&&V.append(ce,q);V.append(this.name,B.file,B.name||B.file.name||B.file.filename);var fe=new XMLHttpRequest;return fe.open("POST",B.postAction||""),this.uploadXhr(fe,B,V)},uploadXhr:function(B,V,q){var ce=this,fe=V,Ae=0,Se=0;B.upload.onprogress=function(Be){if(fe&&(fe=ce.get(fe),!(!Be.lengthComputable||!fe||!fe.fileObject||!fe.active))){var Q=Math.round(Date.now()/1e3);Q!==Ae&&(Ae=Q,fe=ce.update(fe,{progress:(Be.loaded/Be.total*100).toFixed(2),speed:Be.loaded-Se}),Se=Be.loaded)}};var _e=window.setInterval(function(){if(fe&&(fe=ce.get(fe))){var Be;if((Be=fe)!==null&&Be!==void 0&&Be.fileObject&&!fe.success&&!fe.error&&fe.active)return}_e&&(clearInterval(_e),_e=void 0);try{B.abort(),B.timeout=1}catch{}},100);return new Promise(function(Be,Q){if(!fe){Q(new Error("not_exists"));return}var de,we=function(Ue){if(!de){if(de=!0,_e&&(clearInterval(_e),_e=void 0),!fe)return Q(new Error("not_exists"));if(fe=ce.get(fe),!fe)return Q(new Error("not_exists"));if(!fe.fileObject)return Q(new Error("file_object"));if(fe.error)return fe.error instanceof Error?Q(fe.error):Q(new Error(fe.error));if(!fe.active)return Q(new Error("abort"));if(fe.success)return Be(fe);var Xe={};switch(Ue.type){case"timeout":case"abort":Xe.error=Ue.type;break;case"error":B.status?B.status>=500?Xe.error="server":B.status>=400&&(Xe.error="denied"):Xe.error="network";break;default:B.status>=500?Xe.error="server":B.status>=400?Xe.error="denied":Xe.progress="100.00"}if(B.responseText){var qe=B.getResponseHeader("Content-Type");qe&&qe.indexOf("/json")!==-1?Xe.response=JSON.parse(B.responseText):Xe.response=B.responseText}return fe=ce.update(fe,Xe),fe?fe.error?fe.error instanceof Error?Q(fe.error):Q(new Error(fe.error)):Be(fe):Q(new Error("abort"))}};B.onload=we,B.onerror=we,B.onabort=we,B.ontimeout=we,fe.timeout&&(B.timeout=fe.timeout);for(var Ce in fe.headers)B.setRequestHeader(Ce,fe.headers[Ce]);fe=ce.update(fe,{xhr:B}),fe&&B.send(q)})},uploadHtml4:function(B){var V=this,q=B;if(!q)return Promise.reject(new Error("not_exists"));var ce=function(we){we.keyCode===27&&we.preventDefault()},fe=document.createElement("iframe");fe.id="upload-iframe-"+q.id,fe.name="upload-iframe-"+q.id,fe.src="about:blank",fe.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var Ae=document.createElement("form");Ae.setAttribute("action",q.postAction||""),Ae.name="upload-form-"+q.id,Ae.setAttribute("method","POST"),Ae.setAttribute("target","upload-iframe-"+q.id),Ae.setAttribute("enctype","multipart/form-data");for(var Se in q.data){var _e=q.data[Se];if(_e&&y(_e)==="object"&&typeof _e.toString!="function"&&(_e=JSON.stringify(_e)),_e!=null){var Be=document.createElement("input");Be.type="hidden",Be.name=Se,Be.value=_e,Ae.appendChild(Be)}}Ae.appendChild(q.el),document.body.appendChild(fe).appendChild(Ae);var Q=function(){var we,Ce;try{fe.contentWindow&&(Ce=fe.contentWindow.document)}catch{}if(!Ce)try{Ce=fe.contentDocument?fe.contentDocument:fe.document}catch{Ce=fe.document}return(we=Ce)!==null&&we!==void 0&&we.body?Ce.body.innerHTML:null};return new Promise(function(de,we){setTimeout(function(){if(!q){we(new Error("not_exists"));return}if(q=V.update(q,{iframe:fe}),!q)return we(new Error("not_exists"));var Ce=window.setInterval(function(){q&&(q=V.get(q))&&q.fileObject&&!q.success&&!q.error&&q.active||(Ce&&(clearInterval(Ce),Ce=void 0),fe.onabort({type:q?"abort":"not_exists"}))},100),je,Ue=function(qe){var K;if(!je){if(je=!0,Ce&&(clearInterval(Ce),Ce=void 0),document.body.removeEventListener("keydown",ce),!q)return we(new Error("not_exists"));if(q=V.get(q),!q)return we(new Error("not_exists"));if(!q.fileObject)return we(new Error("file_object"));if(q.error)return q.error instanceof Error?we(q.error):we(new Error(q.error));if(!q.active)return we(new Error("abort"));if(q.success)return de(q);var ee=Q(),be={};if(typeof qe=="string")return we(new Error(qe));switch(qe.type){case"abort":be.error="abort";break;case"error":q.error?be.error=q.error:ee===null?be.error="network":be.error="denied";break;default:q.error?be.error=q.error:ee===null?be.error="network":be.progress="100.00"}if(ee!==null){if(ee&&ee.substr(0,1)==="{"&&ee.substr(ee.length-1,1)==="}")try{ee=JSON.parse(ee)}catch{}be.response=ee}return q=V.update(q,be),q?(K=q)!==null&&K!==void 0&&K.error?q.error instanceof Error?we(q.error):we(new Error(q.error)):de(q):we(new Error("not_exists"))}};fe.onload=Ue,fe.onerror=Ue,fe.onabort=Ue,document.body.addEventListener("keydown",ce),Ae.submit()},50)}).then(function(de){var we;return fe==null||(we=fe.parentNode)===null||we===void 0||we.removeChild(fe),de}).catch(function(de){var we;return fe==null||(we=fe.parentNode)===null||we===void 0||we.removeChild(fe),de})},watchActive:function(B){for(var V,q=0;V=this.files[q];)if(q++,V.fileObject)if(B&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;!V.active&&!V.error&&!V.success&&this.update(V,{active:!0})}else V.active&&this.update(V,{active:!1});this.uploading===0&&(this.active=!1)},watchDrop:function(B){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(this.features.drop&&B!==V){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDocumentDragenter,!1),document.removeEventListener("dragleave",this.onDocumentDragleave,!1),document.removeEventListener("dragover",this.onDocumentDragover,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch{}var q=null;if(B)if(typeof B=="string")q=document.querySelector(B)||this.$root.$el.querySelector(B);else if(B===!0){var ce;if(q=this.$parent.$el,!q||((ce=q)===null||ce===void 0?void 0:ce.nodeType)===8){var fe;q=this.$root.$el,(!q||((fe=q)===null||fe===void 0?void 0:fe.nodeType)===8)&&(q=document.body)}}else q=B;this.dropElement=q,this.dropElement&&(document.addEventListener("dragenter",this.onDocumentDragenter,!1),document.addEventListener("dragleave",this.onDocumentDragleave,!1),document.addEventListener("dragover",this.onDocumentDragover,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},watchDropActive:function(B,V){B!==V&&(this.dropTimeout&&(clearTimeout(this.dropTimeout),this.dropTimeout=null),B&&(this.dropTimeout=setTimeout(this.onDocumentDrop,1e3)))},onDocumentDragenter:function(B){var V,q;if(!this.dropActive&&B.dataTransfer){var ce=B.dataTransfer;ce!=null&&(V=ce.files)!==null&&V!==void 0&&V.length?this.dropActive=!0:ce.types?ce.types.indexOf&&ce.types.indexOf("Files")!==-1?this.dropActive=!0:(q=ce.types)!==null&&q!==void 0&&q.contains&&ce.types.contains("Files")&&(this.dropActive=!0):this.dropActive=!0,this.dropActive&&this.watchDropActive(!0)}},onDocumentDragleave:function(B){this.dropActive&&(B.target===B.explicitOriginalTarget||!B.fromElement&&(B.clientX<=0||B.clientY<=0||B.clientX>=window.innerWidth||B.clientY>=window.innerHeight))&&(this.dropActive=!1,this.watchDropActive(!1))},onDocumentDragover:function(){this.watchDropActive(!0)},onDocumentDrop:function(){this.dropActive=!1,this.watchDropActive(!1)},onDragover:function(B){B.preventDefault()},onDrop:function(B){B.preventDefault(),B.dataTransfer&&this.addDataTransfer(B.dataTransfer)},inputOnChange:async function(B){var V=this;if(!(B.target instanceof HTMLInputElement))return Promise.reject(new Error("not HTMLInputElement"));B.target;var q=function(fe){return V.reload=!0,V.$nextTick(function(){V.reload=!1}),fe};return this.addInputFile(B.target).then(q).catch(q)}}}),te=["for"],ae=["name","id","accept","capture","disabled","webkitdirectory","allowdirs","directory","multiple"];function ye(J,B,V,q,ce,fe){return n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(J.className)},[n.renderSlot(J.$slots,"default"),n.createElementVNode("label",{for:J.forId},null,8,te),J.reload?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("input",{key:0,ref:"input",type:"file",name:J.name,id:J.forId,accept:J.accept,capture:J.capture,disabled:J.disabled,webkitdirectory:J.iDirectory,allowdirs:J.iDirectory,directory:J.iDirectory,multiple:J.multiple&&J.features.html5,onChange:B[0]||(B[0]=function(){return J.inputOnChange&&J.inputOnChange.apply(J,arguments)})},null,40,ae))],2)}function ve(J,B){B===void 0&&(B={});var V=B.insertAt;if(!(!J||typeof document>"u")){var q=document.head||document.getElementsByTagName("head")[0],ce=document.createElement("style");ce.type="text/css",V==="top"&&q.firstChild?q.insertBefore(ce,q.firstChild):q.appendChild(ce),ce.styleSheet?ce.styleSheet.cssText=J:ce.appendChild(document.createTextNode(J))}}var se=`
.file-uploads {
  overflow: hidden;
  position: relative;
  text-align: center;
  display: inline-block;
}
.file-uploads.file-uploads-html4 input,
.file-uploads.file-uploads-html5 label {
  /* background fix ie  click */
  background: #fff;
  opacity: 0;
  font-size: 20em;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}
.file-uploads.file-uploads-html5 input,
.file-uploads.file-uploads-html4 label {
  /* background fix ie  click */
  background: rgba(255, 255, 255, 0);
  overflow: hidden;
  position: fixed;
  width: 1px;
  height: 1px;
  z-index: -1;
  opacity: 0;
}
`;return ve(se),Z.render=ye,Z})})(J0t);const oCt=j_;function o6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function On(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o6(Object(n),!0).forEach(function(r){Cs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z0t(t,e){if(t==null)return{};var n,r,i=function(s,a){if(s==null)return{};var l,d,h={},p=Object.keys(s);for(d=0;d<p.length;d++)l=p[d],a.indexOf(l)>=0||(h[l]=s[l]);return h}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function bf(t){return function(e){if(Array.isArray(e))return z2(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return z2(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z2(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s6,Q0t,_y,Kr=(s6=function(t){/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="object")if(o.toString===Object.prototype.toString)for(var l in o)e.call(o,l)&&o[l]&&r.push(l);else r.push(o.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},s6(_y={path:Q0t,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&_y.path)}},_y.exports),_y.exports),wa=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var i=t;return r&&(i+="__"+r),i+(n?Object.keys(n).reduce(function(o,s){var a=n[s];return a&&(o+=" "+(typeof a=="boolean"?i+"--"+s:i+"--"+s+"_"+a)),o},""):"")}};function W_(t,e,n){var r,i,o,s,a;function l(){var h=Date.now()-s;h<e&&h>=0?r=setTimeout(l,e-h):(r=null,n||(a=t.apply(o,i),o=i=null))}e==null&&(e=100);var d=function(){o=this,i=arguments,s=Date.now();var h=n&&!r;return r||(r=setTimeout(l,e)),h&&(a=t.apply(o,i),o=i=null),a};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}W_.debounce=W_;var U_=W_,Ft=function(){return Ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ft.apply(this,arguments)};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function GX(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function qX(t){return/^blob:/.test(t)}function a6(t){return qX(t)||function(e){return/^data:/.test(e)}(t)}function fh(t){return!!(t&&t.constructor&&t.call&&t.apply)}function ii(t){return t===void 0}function kx(t){return typeof t=="object"&&t!==null}function V_(t,e,n){var r={};return kx(t)?(Object.keys(e).forEach(function(i){ii(t[i])?r[i]=e[i]:kx(e[i])?kx(t[i])?r[i]=V_(t[i],e[i],n[i]):r[i]=t[i]?e[i]:n[i]:e[i]===!0||e[i]===!1?r[i]=Boolean(t[i]):r[i]=t[i]}),r):t?e:n}function Dy(t){var e=Number(t);return Number.isNaN(e)?t:e}function l6(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!KX(t)}function KX(t){return t!=t}function JX(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var ev=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},ebt=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},RI=function(t){this.type="move",this.directions=t},tbt=function(){function t(e,n,r,i,o){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=i,this.element=n,this.anchor=o}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,i=e.position;if(n){var o=n.getBoundingClientRect(),s=o.left,a=o.top;return{left:i.left-s-r.left,top:i.top-a-r.top}}return{left:0,top:0}},t}(),MI={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=bf(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}},{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,r=e.right,i=e.bottom,o=e.top;this.anchor={left:t.clientX-n,top:t.clientY-o,bottom:i-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=bf(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new tbt(t,r,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};MI.render=function(t,e,n,r,i,o){return Et(),kn("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)}),onMouseover:e[3]||(e[3]=function(){return o.onMouseOver&&o.onMouseOver.apply(o,arguments)}),onMouseleave:e[4]||(e[4]=function(){return o.onMouseLeave&&o.onMouseLeave.apply(o,arguments)})},[Yr(t.$slots,"default")],34)};var H2=wa("vue-handler-wrapper"),ZX={name:"HandlerWrapper",components:{DraggableElement:MI},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=GX(this.horizontalPosition,this.verticalPosition);t=H2((Cs(e={},n.classname,!0),Cs(e,"disabled",this.disabled),e))}else t=H2({disabled:this.disabled});return{root:t,draggable:H2("draggable")}}},emits:["leave","enter","drag","drag-end"]};ZX.render=function(t,e,n,r,i,o){var s=Lr("DraggableElement");return Et(),kn("div",{class:o.classes.root},[Nt(s,{class:o.classes.draggable,onDrag:e[1]||(e[1]=function(a){return t.$emit("drag",a)}),onDragEnd:e[2]||(e[2]=function(a){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(a){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(a){return t.$emit("enter")})},{default:ji(function(){return[Yr(t.$slots,"default")]}),_:3},8,["class"])],2)};var nbt=wa("vue-line-wrapper"),QX={name:"LineWrapper",components:{DraggableElement:MI},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return nbt((Cs(t={},this.position,!0),Cs(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};QX.render=function(t,e,n,r,i,o){var s=Lr("DraggableElement");return Et(),kn(s,{class:o.classname,onDrag:e[1]||(e[1]=function(a){return t.$emit("drag",a)}),onDragEnd:e[2]||(e[2]=function(a){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(a){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(a){return t.$emit("enter")})},{default:ji(function(){return[Yr(t.$slots,"default")]}),_:3},8,["class"])};var La=["left","right","top","bottom"],rbt=["left","right"],ibt=["top","bottom"],obt=["left","top"],sbt=["fill-area","fit-area","stencil","none"],c6={left:0,top:0,width:0,height:0};function u6(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Qa(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function Xp(t,e){return{left:t.left-e.left,top:t.top-e.top}}function wi(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function Uv(t,e){var n={left:0,top:0,right:0,bottom:0};return La.forEach(function(r){var i=e[r],o=Qa(t)[r];n[r]=i!==void 0&&o!==void 0?r==="left"||r==="top"?Math.max(0,i-o):Math.max(0,o-i):0}),n}function Ma(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function sC(t){return{left:-t.left,top:-t.top}}function Po(t,e){return Ft(Ft({},t),{left:t.left+e.left,top:t.top+e.top})}function $s(t,e,n,r){if(e!==1){if(n){var i=wi(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-i.left)*(r||1-e),top:t.top+t.height*(1-e)/2+(n.top-i.top)*(r||1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function Rn(t){return t.width/t.height}function Gp(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function qp(t,e){var n={left:0,top:0},r=Uv(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function j2(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function eG(t,e){var n=Rn(t),r=Rn(e);return e.width<1/0&&e.height<1/0?n>r?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function tG(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function fu(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function aC(t,e){var n=Uv(Si(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,Gp(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,Gp(t,e)):1}function Si(t,e,n){n===void 0&&(n=!1);var r=qp(t,e);return Po(t,n?sC(r):r)}function Y_(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function abt(t,e){return Ft(Ft({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function nG(t,e,n){n===void 0&&(n=!0);var r={};return La.forEach(function(i){var o=t[i],s=e[i];o!==void 0&&s!==void 0?r[i]=i==="left"||i==="top"?n?Math.max(o,s):Math.min(o,s):n?Math.min(o,s):Math.max(o,s):s!==void 0?r[i]=s:o!==void 0&&(r[i]=o)}),r}function lC(t,e){return nG(t,e,!0)}function d6(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,i=t.sizeRestrictions;return Boolean((e.correctRatio||Rn(e)>=n.minimum&&Rn(e)<=n.maximum)&&e.height<=i.maxHeight&&e.width<=i.maxWidth&&e.width&&e.height&&(r||e.height>=i.minHeight&&e.width>=i.minWidth))}function f6(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function jl(t){var e=t.width,n=t.height,r=t.sizeRestrictions,i={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},o={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function s(d,h){return h===void 0&&(h=!1),d.reduce(function(p,y){return d6({size:y,aspectRatio:i,sizeRestrictions:r,ignoreMinimum:h})&&(!p||f6(y,{width:e,height:n})<f6(p,{width:e,height:n}))?y:p},null)}var a=[];i&&[i.minimum,i.maximum].forEach(function(d){d&&a.push({width:o.width,height:o.width/d,correctRatio:!0},{width:o.height*d,height:o.height,correctRatio:!0})}),d6({size:o,aspectRatio:i,sizeRestrictions:r})&&a.push(o);var l=s(a)||s(a,!0);return l&&{width:l.width,height:l.height}}function X_(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,i=r===void 0?{}:r,o=Po(n,e.directions);return Po(o,qp(o,i))}function lbt(t){var e=t.coordinates,n=t.transform,r=t.imageSize,i=t.sizeRestrictions,o=t.positionRestrictions,s=t.aspectRatio,a=t.visibleArea,l=function(h,p){return X_({coordinates:h,positionRestrictions:o,event:new RI({left:p.left-h.left,top:p.top-h.top})})},d=Ft({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var p={};ii((p=typeof h=="function"?h({coordinates:d,imageSize:r,visibleArea:a}):h).width)&&ii(p.height)||(d=function(y,w){var C=Ft(Ft(Ft({},y),jl({width:w.width,height:w.height,sizeRestrictions:i,aspectRatio:s})),{left:0,top:0});return l(C,{left:y.left,top:y.top})}(d,Ft(Ft({},d),p))),ii(p.left)&&ii(p.top)||(d=l(d,Ft(Ft({},d),p)))}),d}function cbt(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,i=t.visibleArea;t.aspectRatio;var o=t.stencilSize,s=t.sizeRestrictions,a=t.positionRestrictions;t.stencilReference;var l,d,h,p=Ft({},r),y=Ft({},i),w=Ft({},o);l=Rn(w),d=Rn(p),h===void 0&&(h=.001),(l===0||d===0?Math.abs(d-l)<h:Math.abs(d/l)<1+h&&Math.abs(d/l)>1-h)||(p=Ft(Ft({},p),jl({sizeRestrictions:s,width:p.width,height:p.height,aspectRatio:{minimum:Rn(w),maximum:Rn(w)}})));var C=aC(y=$s(y,p.width*n.width/(y.width*w.width)),e({visibleArea:y,type:"resize"}));return C!==1&&(y=$s(y,C),p=$s(p,C)),y=Si(y=Po(y,Xp(wi(p),wi(y))),e({visibleArea:y,type:"move"})),{coordinates:p=Si(p,lC(Qa(y),a)),visibleArea:y}}function ubt(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,i=t.coordinates,o=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var s=t.positionRestrictions;t.stencilReference;var a=Ft({},i),l=Ft({},o);if(i&&o&&e.type!=="manipulateImage"){var d={width:0,height:0};l.width,r.width,Rn(r)>Rn(a)?(d.height=.8*r.height,d.width=d.height*Rn(a)):(d.width=.8*r.width,d.height=d.width*Rn(a));var h=aC(l=$s(l,a.width*r.width/(l.width*d.width)),n({visibleArea:l,type:"resize"}));l=$s(l,h),h!==1&&(d.height/=h,d.width/=h),l=Si(l=Po(l,Xp(wi(a),wi(l))),n({visibleArea:l,type:"move"})),a=Si(a,lC(Qa(l),s))}return{coordinates:a,visibleArea:l}}function dbt(t){var e=t.event,n=t.coordinates,r=t.visibleArea,i=t.getAreaRestrictions,o=Ft({},r),s=Ft({},n);if(e.type==="setCoordinates"){var a=Math.max(0,s.width-o.width),l=Math.max(0,s.height-o.height);a>l?o=$s(o,Math.min(s.width/o.width,Gp(o,i({visibleArea:o,type:"resize"})))):l>a&&(o=$s(o,Math.min(s.height/o.height,Gp(o,i({visibleArea:o,type:"resize"}))))),o=Si(o=Po(o,sC(qp(s,Qa(o)))),i({visibleArea:o,type:"move"}))}return{visibleArea:o,coordinates:s}}function fbt(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,i=n||e;return{left:(n?n.left:0)+i.width/2-r.width/2,top:(n?n.top:0)+i.height/2-r.height/2}}function hbt(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,i=t.sizeRestrictions,o=n||e,s=Math.min(r.maximum||1/0,Math.max(r.minimum||0,Rn(o))),a=o.width<o.height?{width:.8*o.width,height:.8*o.width/s}:{height:.8*o.height,width:.8*o.height*s};return jl(Ft(Ft({},a),{aspectRatio:r,sizeRestrictions:i}))}function pbt(t){var e,n,r=t.imageSize,i=t.visibleArea,o=t.boundaries,s=t.aspectRatio,a=t.sizeRestrictions,l=t.stencilSize,d=i||r;return Rn(d)>Rn(o)?n=(e=l.height*d.height/o.height)*Rn(l):e=(n=l.width*d.width/o.width)/Rn(l),jl({width:n,height:e,aspectRatio:s,sizeRestrictions:a})}function gbt(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,i=Rn(t.boundaries);if(n){var o={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},s=eG({width:Rn(o)>i?o.width:o.height*i,height:Rn(o)>i?o.width/i:o.height},Y_(e())),a={left:n.left+n.width/2-s.width/2,top:n.top+n.height/2-s.height/2,width:s.width,height:s.height},l=Uv(n,Qa(Ft({left:0,top:0},r))),d={};return!l.left&&!l.right&&a.width<=r.width&&(d.left=0,d.right=r.width),!l.top&&!l.bottom&&a.height<=r.height&&(d.top=0,d.bottom=r.height),Si(a,d)}var h=Rn(r);return s={height:h>i?r.height:r.width/i,width:h>i?r.height*i:r.width},{left:r.width/2-s.width/2,top:r.height/2-s.height/2,width:s.width,height:s.height}}function $y(t,e){return nG(t,Qa(e))}function mbt(t){var e=t.event,n=t.coordinates,r=t.visibleArea,i=t.sizeRestrictions,o=t.getAreaRestrictions,s=t.positionRestrictions,a=t.adjustStencil,l=e.scale,d=e.move,h=Ft({},r),p=Ft({},n),y=1,w=1,C=l.factor&&Math.abs(l.factor-1)>.001;h=Po(h,{left:d.left||0,top:d.top||0});var k={stencil:{minimum:Math.max(i.minWidth?i.minWidth/p.width:0,i.minHeight?i.minHeight/p.height:0),maximum:Math.min(i.maxWidth?i.maxWidth/p.width:1/0,i.maxHeight?i.maxHeight/p.height:1/0,Gp(p,s))},area:{maximum:Gp(h,o({visibleArea:h,type:"resize"}))}};l.factor&&C&&(l.factor<1?(w=Math.max(l.factor,k.stencil.minimum))>1&&(w=1):l.factor>1&&(w=Math.min(l.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(w=1)),w&&(h=$s(h,w,l.center));var D=n.left-r.left,I=r.width+r.left-(n.width+n.left),_=n.top-r.top,L=r.height+r.top-(n.height+n.top);return h=Si(h=Po(h,qp(h,{left:s.left!==void 0?s.left-D*w:void 0,top:s.top!==void 0?s.top-_*w:void 0,bottom:s.bottom!==void 0?s.bottom+L*w:void 0,right:s.right!==void 0?s.right+I*w:void 0})),o({visibleArea:h,type:"move"})),p.width=p.width*w,p.height=p.height*w,p.left=h.left+D*w,p.top=h.top+_*w,p=Si(p,lC(Qa(h),s)),l.factor&&C&&a&&(l.factor>1?y=Math.min(k.area.maximum,l.factor)/w:l.factor<1&&(y=Math.max(p.height/h.height,p.width/h.width,l.factor/w)),y!==1&&(h=Po(h=Si(h=$s(h,y,l.factor>1?l.center:wi(p)),o({visibleArea:h,type:"move"})),sC(qp(p,Qa(h)))))),{coordinates:p,visibleArea:h}}function vbt(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,i=t.visibleArea,o=t.sizeRestrictions,s=t.positionRestrictions,a=t.imageSize,l=t.previousImageSize,d=t.angle,h=Ft({},r),p=Ft({},i),y=fu(wi(Ft({left:0,top:0},l)),d);return(h=Ft(Ft({},jl({sizeRestrictions:o,aspectRatio:e,width:h.width,height:h.height})),fu(wi(h),d))).left-=y.left-a.width/2+h.width/2,h.top-=y.top-a.height/2+h.height/2,p=$s(p,aC(p,n({visibleArea:p,type:"resize"}))),{coordinates:h=Si(h,s),visibleArea:p=Si(p=Po(p,Xp(wi(h),wi(r))),n({visibleArea:p,type:"move"}))}}function bbt(t){var e=t.flip,n=t.previousFlip,r=t.rotate;t.aspectRatio;var i=t.getAreaRestrictions,o=t.coordinates,s=t.visibleArea,a=t.imageSize,l=Ft({},o),d=Ft({},s),h=n.horizontal!==e.horizontal,p=n.vertical!==e.vertical;if(h||p){var y=fu({left:a.width/2,top:a.height/2},-r),w=fu(wi(l),-r),C=fu({left:h?y.left-(w.left-y.left):w.left,top:p?y.top-(w.top-y.top):w.top},r);l=Po(l,Xp(C,wi(l))),w=fu(wi(d),-r),d=Si(d=Po(d,Xp(C=fu({left:h?y.left-(w.left-y.left):w.left,top:p?y.top-(w.top-y.top):w.top},r),wi(d))),i({visibleArea:d,type:"move"}))}return{coordinates:l,visibleArea:d}}function h6(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,i=r===void 0?{}:r,o=t.sizeRestrictions,s=t.preserveRatio,a=t.compensate,l=Ft({},e),d=Ma(n,l).width,h=Ma(n,l).height;d<0&&(l.left<0&&l.right<0?(l.left=-(n.width-o.minWidth)/(l.left/l.right),l.right=-(n.width-o.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-o.minWidth):l.right<0&&(l.right=-(n.width-o.minWidth))),h<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-o.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-o.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-o.minHeight):l.bottom<0&&(l.bottom=-(n.height-o.minHeight)));var p=Uv(Ma(n,l),i);a&&(p.left&&p.left>0&&p.right===0?(l.right+=p.left,l.left-=p.left):p.right&&p.right>0&&p.left===0&&(l.left+=p.right,l.right-=p.right),p.top&&p.top>0&&p.bottom===0?(l.bottom+=p.top,l.top-=p.top):p.bottom&&p.bottom>0&&p.top===0&&(l.top+=p.bottom,l.bottom-=p.bottom),p=Uv(Ma(n,l),i));var y={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(La.forEach(function(k){var D=p[k];D&&l[k]&&(y[k]=Math.max(0,1-D/l[k]))}),s){var w=Math.min.apply(null,La.map(function(k){return y[k]}));w!==1/0&&La.forEach(function(k){l[k]*=w})}else La.forEach(function(k){y[k]!==1/0&&(l[k]*=y[k])});if(d=Ma(n,l).width,h=Ma(n,l).height,l.right+l.left&&(d>o.maxWidth?y.width=(o.maxWidth-n.width)/(l.right+l.left):d<o.minWidth&&(y.width=(o.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(h>o.maxHeight?y.height=(o.maxHeight-n.height)/(l.bottom+l.top):h<o.minHeight&&(y.height=(o.minHeight-n.height)/(l.bottom+l.top))),s){var C=Math.min(y.width,y.height);C!==1/0&&La.forEach(function(k){l[k]*=C})}else y.width!==1/0&&rbt.forEach(function(k){l[k]*=y.width}),y.height!==1/0&&ibt.forEach(function(k){l[k]*=y.height});return l}function Oy(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var ybt=wa("vue-simple-handler"),xbt=wa("vue-simple-handler-wrapper"),PI={name:"SimpleHandler",components:{HandlerWrapper:ZX},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(Cs(t={},this.horizontalPosition,Boolean(this.horizontalPosition)),Cs(t,this.verticalPosition,Boolean(this.verticalPosition)),Cs(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),Boolean(this.verticalPosition&&this.horizontalPosition)),Cs(t,"hover",this.hover),t);return{default:Kr(ybt(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:Kr(xbt(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};PI.render=function(t,e,n,r,i,o){var s=Lr("HandlerWrapper");return Et(),kn(s,{class:o.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:o.onDrag,onDragEnd:o.onDragEnd,onEnter:o.onEnter,onLeave:o.onLeave},{default:ji(function(){return[Nt("div",{class:o.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var wbt=wa("vue-simple-line"),Sbt=wa("vue-simple-line-wrapper"),NI={name:"SimpleLine",components:{LineWrapper:QX},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Kr(wbt(Cs({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Kr(Sbt(Cs({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};NI.render=function(t,e,n,r,i,o){var s=Lr("LineWrapper");return Et(),kn(s,{class:o.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:o.onDrag,onDragEnd:o.onDragEnd,onEnter:o.onEnter,onLeave:o.onLeave},{default:ji(function(){return[Nt("div",{class:o.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var W2=wa("vue-bounding-box"),Cbt=["east","west",null],Ebt=["south","north",null],rG={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return PI}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return NI}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Cbt.forEach(function(e){Ebt.forEach(function(n){if(e!==n){var r=GX(e,n),i=r.name,o=r.classname;t.push({name:i,classname:o,verticalDirection:n,horizontalDirection:e})}})}),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,r=this.linesWrappersClasses;return{root:W2(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:Kr(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:Kr(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})}),e},handlerNodes:function(){var t=this,e=[],n=this.width,r=this.height;return this.points.forEach(function(i){if(t.handlers[i.name]){var o={name:i.name,component:t.handlersComponent,class:Kr(t.classes.handlers.default,t.classes.handlers[i.name]),wrapperClass:Kr(t.classes.handlersWrappers.default,t.classes.handlersWrappers[i.name]),hoverClass:t.classes.handlers.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!t.resizable};if(n&&r){var s=i.horizontalDirection,a=i.verticalDirection,l=s==="east"?n:s==="west"?0:n/2,d=a==="south"?r:a==="north"?0:r/2;o.wrapperClass=W2("handler"),o.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(d,"px)")},t.transitions&&t.transitions.enabled&&(o.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else o.wrapperClass=W2("handler",Cs({},i.classname,!0));e.push(o)}}),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var r,i=t.shift(),o=i.left,s=i.top,a={left:0,right:0,top:0,bottom:0};e==="west"?a.left-=o:e==="east"&&(a.right+=o),n==="north"?a.top-=s:n==="south"&&(a.bottom+=s),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new ebt(a,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};rG.render=function(t,e,n,r,i,o){return Et(),kn("div",{ref:"box",class:o.classes.root,style:o.style},[Yr(t.$slots,"default"),Nt("div",null,[(Et(!0),kn(Gn,null,pv(o.lineNodes,function(s){return Et(),kn(up(s.component),{key:s.name,"default-class":s.class,"hover-class":s.hoverClass,"wrapper-class":s.wrapperClass,position:s.name,disabled:s.disabled,onDrag:function(a){return o.onHandlerDrag(a,s.horizontalDirection,s.verticalDirection)},onDragEnd:e[1]||(e[1]=function(a){return o.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(Et(!0),kn(Gn,null,pv(o.handlerNodes,function(s){return Et(),kn("div",{key:s.name,style:s.wrapperStyle,class:s.wrapperClass},[(Et(),kn(up(s.component),{"default-class":s.class,"hover-class":s.hoverClass,"wrapper-class":s.wrapperClass,"horizontal-position":s.horizontalDirection,"vertical-position":s.verticalDirection,disabled:s.disabled,onDrag:function(a){return o.onHandlerDrag(a,s.horizontalDirection,s.verticalDirection)},onDragEnd:e[2]||(e[2]=function(a){return o.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Abt=wa("vue-draggable-area"),iG={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Abt()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=bf(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):JX({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=bf(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),i=r.left,o=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new RI({left:n[0].clientX-(i+this.anchor.x),top:n[0].clientY-(o+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};iG.render=function(t,e,n,r,i,o){return Et(),kn("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)})},[Yr(t.$slots,"default")],544)};function U2(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t==null?void 0:t.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t==null?void 0:t.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function kbt(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var d=atob(l),h=d.length,p=new ArrayBuffer(h),y=new Uint8Array(p),w=0;w<h;w++)y[w]=d.charCodeAt(w);return p}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(l){e(l.target.result)},o=t,s=function(l){r.readAsArrayBuffer(l)},(a=new XMLHttpRequest).open("GET",o,!0),a.responseType="blob",a.onload=function(){this.status!=200&&this.status!==0||s(this.response)},a.send()}else{var i=new XMLHttpRequest;i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===0?e(i.response):n("Warning: could not load an image to parse its orientation"),i=null)},i.onprogress=function(){i.getResponseHeader("content-type")!=="image/jpeg"&&i.abort()},i.withCredentials=!1,i.open("GET",t,!0),i.responseType="arraybuffer",i.send(null)}else n("Error: the image is empty")}catch(l){n(l)}var o,s,a})}function oG(t){var e=t.rotate,n=t.flip,r=t.scaleX,i=t.scaleY,o="";return o+=" rotate("+e+"deg) ",o+=" scaleX("+r*(n.horizontal?-1:1)+") ",o+=" scaleY("+i*(n.vertical?-1:1)+") "}function Tbt(t){try{var e,n=new DataView(t),r=void 0,i=void 0,o=void 0,s=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var a=n.byteLength,l=2;l+1<a;){if(n.getUint8(l)===255&&n.getUint8(l+1)===225){o=l;break}l++}if(o&&(r=o+10,function(w,C,k){var D,I="";for(D=C,k+=C;D<k;D++)I+=String.fromCharCode(w.getUint8(D));return I}(n,o+4,4)==="Exif")){var d=n.getUint16(r);if(((i=d===18761)||d===19789)&&n.getUint16(r+2,i)===42){var h=n.getUint32(r+4,i);h>=8&&(s=r+h)}}if(s){for(var p=n.getUint16(s,i),y=0;y<p;y++)if(l=s+12*y+2,n.getUint16(l,i)===274){l+=8,e=n.getUint16(l,i),n.setUint16(l,1,i);break}}return e}catch{return null}}function p6(t,e){var n=e.getBoundingClientRect(),r=n.left,i=n.top,o={left:0,top:0},s=0;return t.forEach(function(a){o.left+=(a.clientX-r)/t.length,o.top+=(a.clientY-i)/t.length}),t.forEach(function(a){s+=JX({x:o.left,y:o.top},{x:a.clientX-r,y:a.clientY-i})}),{centerMass:o,spread:s,count:t.length}}var sG={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=U_(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new ev({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=p6(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new ev({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),r=n.left,i=n.top,o=n.bottom,s=n.right;this.touches=bf(t.touches).filter(function(a){return a.clientX>r&&a.clientX<s&&a.clientY>i&&a.clientY<o}),this.oldGeometricProperties=p6(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=bf(t.touches).filter(function(r){return!r.identifier||e.touches.find(function(i){return i.identifier===r.identifier})});this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top,i=1+this.wheelResize.ratio*(s=t.deltaY||t.detail||t.wheelDelta,(a=+s)==0||KX(a)?a:a>0?1:-1),o={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new ev({},{factor:i,center:o})),this.touches.length||this.debouncedProcessEnd()}var s,a}},emits:["resize","move","transform-end"]};sG.render=function(t,e,n,r,i,o){return Et(),kn("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)}),onWheel:e[3]||(e[3]=function(){return o.onWheel&&o.onWheel.apply(o,arguments)})},[Yr(t.$slots,"default")],544)};var G_={components:{TransformableImage:sG},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};G_.render=function(t,e,n,r,i,o){var s=Lr("transformable-image");return Et(),kn(s,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(a){return t.$emit("move",a)}),onResize:e[2]||(e[2]=function(a){return t.$emit("resize",a)})},{default:ji(function(){return[Yr(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Iy=wa("vue-preview"),aG={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Iy({fill:this.fill}),wrapper:Iy("wrapper"),imageWrapper:Iy("image-wrapper"),image:Kr(Iy("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=On(On({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,i=tG({width:n,height:r},e.rotate),o={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},s={rotate:{left:(n-i.width)*e.scaleX/2,top:(r-i.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return o.transform=`translate(
				`.concat(-this.coordinates.left/t-s.rotate.left-s.scale.left,"px,").concat(-this.coordinates.top/t-s.rotate.top-s.scale.top,"px) ")+oG(e),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){t.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};aG.render=function(t,e,n,r,i,o){return Et(),kn("div",{ref:"root",class:o.classes.root,style:o.style},[Nt("div",{ref:"wrapper",class:o.classes.wrapper,style:o.wrapperStyle},[oa(Nt("img",{ref:"image",src:n.image&&n.image.src,class:o.classes.image,style:o.imageStyle},null,14,["src"]),[[hu,n.image&&n.image.src]])],6)],6)};var lG={components:{Preview:aG},inheritAttrs:!1};lG.render=function(t,e,n,r,i,o){var s=Lr("preview");return Et(),kn(s,e0(t.$attrs,{fill:!0}),null,16)};var V2=wa("vue-rectangle-stencil"),cG={name:"RectangleStencil",components:{StencilPreview:lG,BoundingBox:rG,DraggableArea:iG},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return PI}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return NI}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Kr(V2({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Kr(V2("preview"),this.previewClass),boundingBox:Kr(V2("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,i=t.top,o={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(i,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};cG.render=function(t,e,n,r,i,o){var s=Lr("stencil-preview"),a=Lr("draggable-area"),l=Lr("bounding-box");return Et(),kn("div",{class:o.classes.stencil,style:o.style},[Nt(l,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:o.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:o.onResize,onResizeEnd:o.onResizeEnd},{default:ji(function(){return[Nt(a,{movable:n.movable,onMove:o.onMove,onMoveEnd:o.onMoveEnd},{default:ji(function(){return[Nt(s,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:o.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var _bt=["transitions"],xl=wa("vue-advanced-cropper"),Dbt={name:"Cropper",components:{BackgroundWrapper:G_},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return cG}},backgroundWrapperComponent:{type:[Object,String],default:function(){return G_}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return sbt.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,r=t.aspectRatio,i=t.positionRestrictions,o=t.sizeRestrictions,s=Ft(Ft({},n),{right:n.left+n.width,bottom:n.top+n.height}),a=e.params||{},l=Ft({},e.directions),d=a.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};o.widthFrozen&&(l.left=0,l.right=0),o.heightFrozen&&(l.top=0,l.bottom=0),La.forEach(function(M){d[M]||(l[M]=0)});var h=Ma(s,l=h6({coordinates:s,directions:l,sizeRestrictions:o,positionRestrictions:i})).width,p=Ma(s,l).height,y=a.preserveRatio?Rn(s):j2(h/p,r);if(y){var w=a.respectDirection;if(w||(w=s.width>=s.height||y===1?"width":"height"),w==="width"){var C=h/y-s.height;if(d.top&&d.bottom){var k=l.top,D=l.bottom;l.bottom=Oy(C,D,k),l.top=Oy(C,k,D)}else d.bottom?l.bottom=C:d.top?l.top=C:d.right?l.right=0:d.left&&(l.left=0)}else if(w==="height"){var I=s.width-p*y;if(d.left&&d.right){var _=l.left,L=l.right;l.left=-Oy(I,_,L),l.right=-Oy(I,L,_)}else d.left?l.left=-I:d.right?l.right=-I:d.top?l.top=0:d.bottom&&(l.bottom=0)}l=h6({directions:l,coordinates:s,sizeRestrictions:o,positionRestrictions:i,preserveRatio:!0,compensate:a.compensate})}return h=Ma(s,l).width,p=Ma(s,l).height,(y=a.preserveRatio?Rn(s):j2(h/p,r))&&Math.abs(y-h/p)>.001&&La.forEach(function(M){d[M]||(l[M]=0)}),X_({event:new RI({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:i})}},moveAlgorithm:{type:Function,default:X_},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=Rn(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,i=t.sizeRestrictions,o=t.positionRestrictions,s=Ft(Ft({},n),jl({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,i.minHeight),minWidth:Math.min(e.width,i.minWidth)}}));return s=Si(s=Po(s,Xp(wi(n),wi(s))),lC(Qa(e),o))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,i=t.coordinates,o=Ft({},e);o.height=o.width/Rn(n),o.top+=(e.height-o.height)/2,(i.height-o.height>0||i.width-o.width>0)&&(o=$s(o,Math.max(i.height/o.height,i.width/o.width)));var s=sC(qp(i,Qa(o=$s(o,aC(o,r({visibleArea:o,type:"resize"}))))));return o.width<i.width&&(s.left=0),o.height<i.height&&(s.top=0),o=Si(o=Po(o,s),r({visibleArea:o,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,i=t.imageRestriction,o=t.type,s={};return i==="fill-area"?s={left:0,top:0,right:r.width,bottom:r.height}:i==="fit-area"&&(Rn(n)>Rn(r)?(s={top:0,bottom:r.height},e&&o==="move"&&(e.width>r.width?(s.left=-(e.width-r.width)/2,s.right=r.width-s.left):(s.left=0,s.right=r.width))):(s={left:0,right:r.width},e&&o==="move"&&(e.height>r.height?(s.top=-(e.height-r.height)/2,s.bottom=r.height-s.top):(s.top=0,s.bottom=r.height)))),s}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:On({},c6)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return Boolean(this.visibleArea&&this.imageLoaded)},settings:function(){var t=V_(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:V_(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:ii(this.minWidth)?0:Dy(this.minWidth),minHeight:ii(this.minHeight)?0:Dy(this.minHeight),maxWidth:ii(this.maxWidth)?1/0:Dy(this.maxWidth),maxHeight:ii(this.maxHeight)?1/0:Dy(this.maxHeight)});if(t=function(r){var i=r.areaRestrictions,o=r.sizeRestrictions;r.imageSize;var s=r.boundaries,a=r.positionRestrictions;r.imageRestriction;var l=Ft(Ft({},o),{minWidth:o.minWidth!==void 0?o.minWidth:0,minHeight:o.minHeight!==void 0?o.minHeight:0,maxWidth:o.maxWidth!==void 0?o.maxWidth:1/0,maxHeight:o.maxHeight!==void 0?o.maxHeight:1/0});a.left!==void 0&&a.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,a.right-a.left)),a.bottom!==void 0&&a.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,a.bottom-a.top));var d=Y_(i),h=eG(s,d);return d.width<1/0&&(!l.maxWidth||l.maxWidth>h.width)&&(l.maxWidth=Math.min(l.maxWidth,h.width)),d.height<1/0&&(!l.maxHeight||l.maxHeight>h.height)&&(l.maxHeight=Math.min(l.maxHeight,h.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Y_(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:xl(),image:Kr(xl("image"),this.imageClass),stencil:xl("stencil"),boundaries:Kr(xl("boundaries"),this.boundariesClass),stretcher:Kr(xl("stretcher")),background:Kr(xl("background"),this.backgroundClass),foreground:Kr(xl("foreground"),this.foregroundClass),imageWrapper:Kr(xl("image-wrapper")),cropperWrapper:Kr(xl("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,i=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(i-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},r=On(On({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),i={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+oG(r)};return this.transitionsOptions.enabled&&(i.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),i}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick(function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(n){return t[n]!==e[n]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=U_(this.update,this.debounce),this.debouncedDisableTransitions=U_(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(On({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:On({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?On({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?On({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,i=r===void 0||r;this.onManipulateImage(new ev({},{factor:1/t,center:e}),{normalize:!1,transitions:i})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,i=r===void 0||r;this.onManipulateImage(new ev({left:t||0,top:e||0}),{normalize:!1,transitions:i})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,i=r===void 0||r,o=n.transitions,s=o===void 0||o;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(s&&e.enableTransitions(),e.coordinates=e.applyTransform(t),i&&e.runAutoZoom("setCoordinates"),s&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t})},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){t.onChange()}):this.resetVisibleArea().then(function(){t.onChange()})},reset:function(){var t=this;return this.resetVisibleArea().then(function(){t.onChange(!1)})},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){t(),e.awaiting=!1}))},prepareResult:function(t){return this.roundResult?function(e){var n=e.coordinates,r=e.sizeRestrictions,i=e.positionRestrictions,o={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return o.width>r.maxWidth?o.width=Math.floor(n.width):o.width<r.minWidth&&(o.width=Math.ceil(n.width)),o.height>r.maxHeight?o.height=Math.floor(n.height):o.height<r.minHeight&&(o.height=Math.ceil(n.height)),Si(o,i)}(On(On({},this.getPublicProperties()),{},{positionRestrictions:$y(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var i=this.autoZoomAlgorithm;i||(i=this.stencilSize?cbt:this.autoZoom?ubt:dbt);var o=i({event:{type:t,params:r},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return On(On({},o),{},{changed:!u6(o.visibleArea,e)||!u6(o.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,i=Z0t(e,_bt),o=this.processAutoZoom(t,this.visibleArea,this.coordinates,i),s=o.visibleArea,a=o.coordinates,l=o.changed;r&&l&&this.enableTransitions(),this.visibleArea=s,this.coordinates=a,r&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,i=e.coefficient;if(n.type==="manipulateImage")return Ft(Ft({},n),{move:{left:n.move&&n.move.left?i*n.move.left:0,top:n.move&&n.move.top?i*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*i+r.left,top:n.scale.center.top*i+r.top}:null}});if(n.type==="resize"){var o=Ft(Ft({},n),{directions:Ft({},n.directions)});return La.forEach(function(a){o.directions[a]*=i}),o}if(n.type==="move"){var s=Ft(Ft({},n),{directions:Ft({},n.directions)});return obt.forEach(function(a){s.directions[a]*=i}),s}return n}(On(On({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(a,l,d){var h=d.rotate,p=d.flip,y={width:l.naturalWidth,height:l.naturalHeight},w=tG(y,h),C=a.getContext("2d");a.height=w.height,a.width=w.width,C.save();var k=fu(wi(Ft({left:0,top:0},y)),h);return C.translate(-(k.left-w.width/2),-(k.top-w.height/2)),C.rotate(h*Math.PI/180),C.translate(p.horizontal?y.width:0,p.vertical?y.height:0),C.scale(p.horizontal?-1:1,p.vertical?-1:1),C.drawImage(l,0,0,y.width,y.height),C.restore(),a}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=On({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),i=function(a){return a.find(function(l){return d=l,!Number.isNaN(parseFloat(d))&&isFinite(d);var d})},o=jl({sizeRestrictions:{minWidth:i([r.width,r.minWidth])||0,minHeight:i([r.height,r.minHeight])||0,maxWidth:i([r.width,r.maxWidth])||1/0,maxHeight:i([r.height,r.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(r.maxArea&&o.width*o.height>r.maxArea){var s=Math.sqrt(r.maxArea/(o.width*o.height));o={width:Math.round(s*o.width),height:Math.round(s*o.height)}}return function(a,l,d,h,p){a.width=h?h.width:d.width,a.height=h?h.height:d.height;var y=a.getContext("2d");y.clearRect(0,0,a.width,a.height),p&&(p.imageSmoothingEnabled&&(y.imageSmoothingEnabled=p.imageSmoothingEnabled),p.imageSmoothingQuality&&(y.imageSmoothingQuality=p.imageSmoothingQuality),p.fillColor&&(y.fillStyle=p.fillColor,y.fillRect(0,0,a.width,a.height),y.save()));var w=d.left<0?-d.left:0,C=d.top<0?-d.top:0;y.drawImage(l,d.left+w,d.top+C,d.width,d.height,w*(a.width/d.width),C*(a.height/d.height),a.width,a.height)}(t,n,this.coordinates,o,r),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?abt(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?$y(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return lbt({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?pbt:hbt);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=fh(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,i=this.defaultPosition||fbt,o=[r,function(s){var a=s.coordinates;return On({},fh(i)?i({coordinates:a,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&o.push.apply(o,bf(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(o,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout(function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var r={cropper:n,imageSize:t.imageSize};if(fh(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(i){var o=i.cropper,s=i.imageSize,a=o.clientHeight,l=o.clientWidth,d=a,h=s.width*a/s.height;return h>l&&(h=l,d=s.height*l/s.width),{width:h,height:d}}(r):t.boundaries=function(i){var o=i.cropper;return{width:o.clientWidth,height:o.clientHeight}}(r),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=On(On({},this.defaultImageTransforms),{},{flip:On({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,i,o,s,a=t.defaultVisibleArea||gbt;t.visibleArea=fh(a)?a({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,r=e.boundaries,i=e.getAreaRestrictions,o=Ft({},n),s=Rn(r),o.width/o.height!==s&&(o.height=o.width/s),Si(o,i({visibleArea:o,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")}).catch(function(){t.visibleArea=null})},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then(function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")}).catch(function(){t.visibleArea=null})},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(i){if(a6(i))return!1;var o=window.location,s=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(i)||[],a={protocol:s[1]||"",host:s[2]||"",port:s[3]||""},l=function(d){return d.port||((d.protocol||o.protocol)==="http"?80:433)};return!(!a.protocol&&!a.host&&!a.port||Boolean(a.protocol&&a.protocol==o.protocol&&a.host&&a.host==o.host&&a.host&&l(a)==l(o)))}(this.src)){var n=ii(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise(function(i){kbt(t).then(function(o){var s=Tbt(o);i(o?{source:t,arrayBuffer:o,orientation:s}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(o){console.warn(o),i({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){r.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){t.$emit("ready"),t.onChange(!1)}))},onParseImage:function(t){var e=this,n=t.source,r=t.arrayBuffer,i=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&i&&i>1?qX(n)||!a6(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(o){for(var s=[],a=new Uint8Array(o);a.length>0;){var l=a.subarray(0,8192);s.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),a=a.subarray(8192)}return"data:image/jpeg;base64,"+btoa(s.join(""))}(r):this.imageAttributes.src=n,fh(this.defaultTransforms)?this.appliedImageTransforms=U2(this.defaultTransforms()):kx(this.defaultTransforms)?this.appliedImageTransforms=U2(this.defaultTransforms):this.appliedImageTransforms=function(o){var s=U2({});if(o)switch(o){case 2:s.flip.horizontal=!0;break;case 3:s.rotate=-180;break;case 4:s.flip.vertical=!0;break;case 5:s.rotate=90,s.flip.vertical=!0;break;case 6:s.rotate=90;break;case 7:s.rotate=90,s.flip.horizontal=!0;break;case 8:s.rotate=-90}return s}(i),this.defaultImageTransforms=On(On({},this.appliedImageTransforms),{},{flip:On({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var o=e.$refs.image;o&&o.complete&&(function(s){return Boolean(s.naturalWidth)}(o)?e.onSuccessLoadImage():e.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(On(On({},e.getPublicProperties()),{},{positionRestrictions:$y(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()})},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var n=e.sizeRestrictions,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(On(On({},e.getPublicProperties()),{},{positionRestrictions:$y(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,r),minHeight:Math.max(n.minHeight,r)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,r=n!==void 0&&n,i=e.normalize,o=i===void 0||i;r&&this.enableTransitions();var s=mbt(On(On({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),a=s.visibleArea,l=s.coordinates;this.visibleArea=a,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),r&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,i=r.aspectRatio,o=r.minAspectRatio,s=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var a=this.$refs.stencil.aspectRatios();e=a.minimum,n=a.maximum}if(ii(e)&&(e=ii(i)?o:i),ii(n)&&(n=ii(i)?s:i),!t&&(ii(e)||ii(n))){var l=this.getStencilSize(),d=l?Rn(l):null;ii(e)&&(e=l6(d)?d:void 0),ii(n)&&(n=l6(d)?d:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,r=t.aspectRatio,j2(Rn(i=fh(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(i=jl({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:i.width,height:i.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(i.width>e.width||i.height>e.height)&&(i=jl({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:i.width,height:i.height,aspectRatio:{minimum:Rn(i),maximum:Rn(i)}})),i;var t,e,n,r,i},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return On({},c6)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,i=r===void 0||r;if(!this.transitionsActive){i&&this.enableTransitions();var o=On({},this.imageTransforms.flip),s=bbt({flip:{horizontal:t?!o.horizontal:o.horizontal,vertical:e?!o.vertical:o.vertical},previousFlip:o,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,l=s.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=a,this.coordinates=l,this.onChange(),i&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var i=On({},this.imageSize);this.appliedImageTransforms.rotate+=t;var o=vbt({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:i,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),s=o.visibleArea,a=o.coordinates,l=this.processAutoZoom("rotateImage",s,a);s=l.visibleArea,a=l.coordinates,this.visibleArea=s,this.coordinates=a,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},$bt={key:0,ref:"canvas",style:{display:"none"}},Obt={key:1,ref:"sourceCanvas",style:{display:"none"}};Dbt.render=function(t,e,n,r,i,o){return Et(),kn("div",{ref:"cropper",class:o.classes.cropper},[Nt("div",{ref:"stretcher",class:o.classes.stretcher},null,2),Nt("div",{class:o.classes.boundaries,style:o.boundariesStyle},[(Et(),kn(up(n.backgroundWrapperComponent),{class:o.classes.cropperWrapper,"wheel-resize":o.settings.resizeImage.wheel,"touch-resize":o.settings.resizeImage.touch,"touch-move":o.settings.moveImage.touch,"mouse-move":o.settings.moveImage.mouse,onMove:o.onManipulateImage,onResize:o.onManipulateImage},{default:ji(function(){return[Nt("div",{class:o.classes.background,style:o.boundariesStyle},null,6),Nt("div",{class:o.classes.imageWrapper},[Nt("img",{ref:"image",crossorigin:i.imageAttributes.crossOrigin,src:i.imageAttributes.src,class:o.classes.image,style:o.imageStyle,onMousedown:e[1]||(e[1]=WD(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),Nt("div",{class:o.classes.foreground,style:o.boundariesStyle},null,6),oa((Et(),kn(up(n.stencilComponent),e0({ref:"stencil",image:o.image,coordinates:i.coordinates,"stencil-coordinates":o.stencilCoordinates,transitions:o.transitionsOptions},n.stencilProps,{onResize:o.onResize,onResizeEnd:o.onResizeEnd,onMove:o.onMove,onMoveEnd:o.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[hu,i.imageLoaded]]),n.canvas?(Et(),kn("canvas",$bt,null,512)):fr("",!0),n.canvas?(Et(),kn("canvas",Obt,null,512)):fr("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};/*!
 * OverlayScrollbars
 * Version: 2.3.1
 *
 * Copyright (c) Rene Haas | KingSora.
 * https://github.com/KingSora
 *
 * Released under the MIT license.
 */function Ln(t,e){if(uC(t))for(let n=0;n<t.length&&e(t[n],n,t)!==!1;n++);else t&&Ln(Object.keys(t),n=>e(t[n],n,t));return t}function Bi(t,e){const n=Ku(e);if(is(e)||n){let i=n?"":{};if(t){const o=window.getComputedStyle(t,null);i=n?b6(t,o,e):e.reduce((s,a)=>(s[a]=b6(t,o,a),s),i)}return i}t&&Ln(ss(e),i=>Xbt(t,i,e[i]))}const ra=(t,e)=>{const{o:n,u:r,_:i}=t;let o=n,s;const a=(h,p)=>{const y=o,w=h,C=p||(r?!r(y,w):y!==w);return(C||i)&&(o=w,s=y),[o,C,s]};return[e?h=>a(e(o,s),h):a,h=>[o,!!h,s]]},P0=()=>typeof window<"u",uG=P0()&&Node.ELEMENT_NODE,{toString:Ibt,hasOwnProperty:Y2}=Object.prototype,yc=t=>t===void 0,cC=t=>t===null,Rbt=t=>yc(t)||cC(t)?`${t}`:Ibt.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),ku=t=>typeof t=="number",Ku=t=>typeof t=="string",LI=t=>typeof t=="boolean",va=t=>typeof t=="function",is=t=>Array.isArray(t),Vv=t=>typeof t=="object"&&!is(t)&&!cC(t),uC=t=>{const e=!!t&&t.length,n=ku(e)&&e>-1&&e%1==0;return is(t)||!va(t)&&n?e>0&&Vv(t)?e-1 in t:!0:!1},q_=t=>{if(!t||!Vv(t)||Rbt(t)!=="object")return!1;let e;const n="constructor",r=t[n],i=r&&r.prototype,o=Y2.call(t,n),s=i&&Y2.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(e in t);return yc(e)||Y2.call(t,e)},tv=t=>{const e=HTMLElement;return t?e?t instanceof e:t.nodeType===uG:!1},dC=t=>{const e=Element;return t?e?t instanceof e:t.nodeType===uG:!1},fC=(t,e,n)=>t.indexOf(e,n),Qn=(t,e,n)=>(!n&&!Ku(e)&&uC(e)?Array.prototype.push.apply(t,e):t.push(e),t),yf=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach(r=>{Qn(n,r)}):Ln(t,r=>{Qn(n,r)}),n)},FI=t=>!!t&&t.length===0,il=(t,e,n)=>{Ln(t,i=>i&&i.apply(void 0,e||[])),!n&&(t.length=0)},hC=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ss=t=>t?Object.keys(t):[],Sr=(t,e,n,r,i,o,s)=>{const a=[e,n,r,i,o,s];return(typeof t!="object"||cC(t))&&!va(t)&&(t={}),Ln(a,l=>{Ln(ss(l),d=>{const h=l[d];if(t===h)return!0;const p=is(h);if(h&&q_(h)){const y=t[d];let w=y;p&&!is(y)?w=[]:!p&&!q_(y)&&(w={}),t[d]=Sr(w,h)}else t[d]=p?h.slice():h})}),t},BI=t=>{for(const e in t)return!1;return!0},dG=(t,e,n,r)=>{if(yc(r))return n?n[t]:e;n&&(Ku(r)||ku(r))&&(n[t]=r)},Zi=(t,e,n)=>{if(yc(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},fG=(t,e)=>new Set((Zi(t,e)||"").split(" ")),ko=(t,e)=>{t&&t.removeAttribute(e)},Jd=(t,e,n,r)=>{if(n){const i=fG(t,e);i[r?"add":"delete"](n);const o=yf(i).join(" ").trim();Zi(t,e,o)}},Mbt=(t,e,n)=>fG(t,e).has(n),da=(t,e)=>dG("scrollLeft",0,t,e),Ql=(t,e)=>dG("scrollTop",0,t,e),K_=P0()&&Element.prototype,hG=(t,e)=>{const n=[],r=e?dC(e)&&e:document;return r?Qn(n,r.querySelectorAll(t)):n},Pbt=(t,e)=>{const n=e?dC(e)&&e:document;return n?n.querySelector(t):null},Q1=(t,e)=>dC(t)?(K_.matches||K_.msMatchesSelector).call(t,e):!1,zI=t=>t?yf(t.childNodes):[],lc=t=>t&&t.parentElement,Nh=(t,e)=>{if(dC(t)){const n=K_.closest;if(n)return n.call(t,e);do{if(Q1(t,e))return t;t=lc(t)}while(t)}},Nbt=(t,e,n)=>{const r=Nh(t,e),i=t&&Pbt(n,r),o=Nh(i,e)===r;return r&&i?r===t||i===t||o&&Nh(Nh(t,n),e)!==r:!1},HI=(t,e,n)=>{if(n&&t){let r=e,i;uC(n)?(i=document.createDocumentFragment(),Ln(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,e&&(r?r!==e&&(r=r.nextSibling):r=t.firstChild),t.insertBefore(i,r||null)}},Es=(t,e)=>{HI(t,null,e)},Lbt=(t,e)=>{HI(lc(t),t,e)},g6=(t,e)=>{HI(lc(t),t&&t.nextSibling,e)},el=t=>{if(uC(t))Ln(yf(t),e=>el(e));else if(t){const e=lc(t);e&&e.removeChild(t)}},Zd=t=>{const e=document.createElement("div");return t&&Zi(e,"class",t),e},pG=t=>{const e=Zd();return e.innerHTML=t.trim(),Ln(zI(e),n=>el(n))},J_=t=>t.charAt(0).toUpperCase()+t.slice(1),Fbt=()=>Zd().style,Bbt=["-webkit-","-moz-","-o-","-ms-"],zbt=["WebKit","Moz","O","MS","webkit","moz","o","ms"],X2={},G2={},Hbt=t=>{let e=G2[t];if(hC(G2,t))return e;const n=J_(t),r=Fbt();return Ln(Bbt,i=>{const o=i.replace(/-/g,"");return!(e=[t,i+t,o+n,J_(o)+n].find(a=>r[a]!==void 0))}),G2[t]=e||""},gg=t=>{if(P0()){let e=X2[t]||window[t];return hC(X2,t)||(Ln(zbt,n=>(e=e||window[n+J_(t)],!e)),X2[t]=e),e}},jbt=gg("MutationObserver"),m6=gg("IntersectionObserver"),Lh=gg("ResizeObserver"),gG=gg("cancelAnimationFrame"),mG=gg("requestAnimationFrame"),Z_=gg("ScrollTimeline"),ew=P0()&&window.setTimeout,Q_=P0()&&window.clearTimeout,Wbt=/[^\x20\t\r\n\f]+/g,vG=(t,e,n)=>{const r=t&&t.classList;let i,o=0,s=!1;if(r&&e&&Ku(e)){const a=e.match(Wbt)||[];for(s=a.length>0;i=a[o++];)s=!!n(r,i)&&s}return s},jI=(t,e)=>{vG(t,e,(n,r)=>n.remove(r))},Fu=(t,e)=>(vG(t,e,(n,r)=>n.add(r)),jI.bind(0,t,e)),pC=(t,e,n,r)=>{if(t&&e){let i=!0;return Ln(n,o=>{const s=r?r(t[o]):t[o],a=r?r(e[o]):e[o];s!==a&&(i=!1)}),i}return!1},bG=(t,e)=>pC(t,e,["w","h"]),yG=(t,e)=>pC(t,e,["x","y"]),Ubt=(t,e)=>pC(t,e,["t","r","b","l"]),v6=(t,e,n)=>pC(t,e,["width","height"],n&&(r=>Math.round(r))),Zo=()=>{},Cd=t=>{let e;const n=t?ew:mG,r=t?Q_:gG;return[i=>{r(e),e=n(i,va(t)?t():t)},()=>r(e)]},WI=(t,e)=>{let n,r,i,o=Zo;const{g:s,v:a,p:l}=e||{},d=function(C){o(),Q_(n),n=r=void 0,o=Zo,t.apply(this,C)},h=w=>l&&r?l(r,w):w,p=()=>{o!==Zo&&d(h(i)||i)},y=function(){const C=yf(arguments),k=va(s)?s():s;if(ku(k)&&k>=0){const I=va(a)?a():a,_=ku(I)&&I>=0,L=k>0?ew:mG,M=k>0?Q_:gG,H=h(C)||C,G=d.bind(0,H);o();const X=L(G,k);o=()=>M(X),_&&!n&&(n=ew(p,I)),r=i=H}else d(C)};return y.m=p,y},Vbt={opacity:1,zIndex:1},Ry=(t,e)=>{const n=t||"",r=e?parseFloat(n):parseInt(n,10);return r===r?r:0},Ybt=(t,e)=>!Vbt[t]&&ku(e)?`${e}px`:e,b6=(t,e,n)=>String((e!=null?e[n]||e.getPropertyValue(n):t.style[n])||""),Xbt=(t,e,n)=>{try{const{style:r}=t;yc(r[e])?r.setProperty(e,n):r[e]=Ybt(e,n)}catch{}},Kp=t=>Bi(t,"direction")==="rtl",y6=(t,e,n)=>{const r=e?`${e}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,l=`${r}left${i}`,d=Bi(t,[o,s,a,l]);return{t:Ry(d[o],!0),r:Ry(d[s],!0),b:Ry(d[a],!0),l:Ry(d[l],!0)}},Jp=(t,e)=>`translate${is(t)?`(${t[0]},${t[1]})`:`${e?"X":"Y"}(${t})`}`,{round:x6}=Math,UI={w:0,h:0},Yv=t=>t?{w:t.offsetWidth,h:t.offsetHeight}:UI,Tx=t=>t?{w:t.clientWidth,h:t.clientHeight}:UI,tw=t=>t?{w:t.scrollWidth,h:t.scrollHeight}:UI,nw=t=>{const e=parseFloat(Bi(t,"height"))||0,n=parseFloat(Bi(t,"width"))||0;return{w:n-x6(n),h:e-x6(e)}},Wa=t=>t.getBoundingClientRect(),Fh=t=>!!(t&&(t.height||t.width));let My;const Gbt=()=>{if(yc(My)){My=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){My=!0}}))}catch{}}return My},xG=t=>t.split(" "),qbt=(t,e,n,r)=>{Ln(xG(e),i=>{t.removeEventListener(i,n,r)})},Hr=(t,e,n,r)=>{var i;const o=Gbt(),s=(i=o&&r&&r.S)!=null?i:o,a=r&&r.$||!1,l=r&&r.C||!1,d=[],h=o?{passive:s,capture:a}:a;return Ln(xG(e),p=>{const y=l?w=>{t.removeEventListener(p,y,a),n&&n(w)}:n;Qn(d,qbt.bind(null,t,p,y,a)),t.addEventListener(p,y,h)}),il.bind(0,d)},wG=t=>t.stopPropagation(),SG=t=>t.preventDefault(),Kbt={x:0,y:0},q2=t=>{const e=t?Wa(t):0;return e?{x:e.left+window.pageYOffset,y:e.top+window.pageXOffset}:Kbt},w6=(t,e)=>{Ln(is(e)?e:[e],t)},VI=t=>{const e=new Map,n=(o,s)=>{if(o){const a=e.get(o);w6(l=>{a&&a[l?"delete":"clear"](l)},s)}else e.forEach(a=>{a.clear()}),e.clear()},r=(o,s)=>{if(Ku(o)){const d=e.get(o)||new Set;return e.set(o,d),w6(h=>{va(h)&&d.add(h)},s),n.bind(0,o,s)}LI(s)&&s&&n();const a=ss(o),l=[];return Ln(a,d=>{const h=o[d];h&&Qn(l,r(d,h))}),il.bind(0,l)},i=(o,s)=>{const a=e.get(o);Ln(yf(a),l=>{s&&!FI(s)?l.apply(0,s):l()})};return r(t||{}),[r,n,i]},S6=t=>JSON.stringify(t,(e,n)=>{if(va(n))throw new Error;return n}),Jbt={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},CG=(t,e)=>{const n={},r=ss(e).concat(ss(t));return Ln(r,i=>{const o=t[i],s=e[i];if(Vv(o)&&Vv(s))Sr(n[i]={},CG(o,s)),BI(n[i])&&delete n[i];else if(hC(e,i)&&s!==o){let a=!0;if(is(o)||is(s))try{S6(o)===S6(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},N0="data-overlayscrollbars",EG="os-environment",AG=`${EG}-flexbox-glue`,Zbt=`${AG}-max`,kG="os-scrollbar-hidden",K2=`${N0}-initialize`,ia=N0,TG=`${ia}-overflow-x`,_G=`${ia}-overflow-y`,op="overflowVisible",Qbt="scrollbarHidden",C6="scrollbarPressed",rw="updating",iu=`${N0}-viewport`,J2="arrange",DG="scrollbarHidden",sp=op,eD=`${N0}-padding`,eyt=sp,E6=`${N0}-content`,YI="os-size-observer",tyt=`${YI}-appear`,nyt=`${YI}-listener`,ryt="os-trinsic-observer",iyt="os-no-css-vars",oyt="os-theme-none",Lo="os-scrollbar",syt=`${Lo}-rtl`,ayt=`${Lo}-horizontal`,lyt=`${Lo}-vertical`,$G=`${Lo}-track`,XI=`${Lo}-handle`,cyt=`${Lo}-visible`,uyt=`${Lo}-cornerless`,A6=`${Lo}-transitionless`,k6=`${Lo}-interaction`,T6=`${Lo}-unusable`,tD=`${Lo}-auto-hide`,_6=`${tD}-hidden`,D6=`${Lo}-wheel`,dyt=`${$G}-interactive`,fyt=`${XI}-interactive`,OG={},xf=()=>OG,hyt=t=>{const e=[];return Ln(is(t)?t:[t],n=>{const r=ss(n);Ln(r,i=>{Qn(e,OG[i]=n[i])})}),e},pyt="__osOptionsValidationPlugin",gyt="__osSizeObserverPlugin",GI="__osScrollbarsHidingPlugin",myt="__osClickScrollPlugin";let Z2;const $6=(t,e,n,r)=>{Es(t,e);const i=Tx(e),o=Yv(e),s=nw(n);return r&&el(e),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},vyt=t=>{let e=!1;const n=Fu(t,kG);try{e=Bi(t,Hbt("scrollbar-width"))==="none"||window.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),e},byt=(t,e)=>{const n="hidden";Bi(t,{overflowX:n,overflowY:n,direction:"rtl"}),da(t,0);const r=q2(t),i=q2(e);da(t,-999);const o=q2(e);return{i:r.x===i.x,n:i.x!==o.x}},yyt=(t,e)=>{const n=Fu(t,AG),r=Wa(t),i=Wa(e),o=v6(i,r,!0),s=Fu(t,Zbt),a=Wa(t),l=Wa(e),d=v6(l,a,!0);return n(),s(),o&&d},xyt=()=>{const{body:t}=document,n=pG(`<div class="${EG}"><div></div></div>`)[0],r=n.firstChild,[i,,o]=VI(),[s,a]=ra({o:$6(t,n,r),u:yG},$6.bind(0,t,n,r,!0)),[l]=a(),d=vyt(n),h={x:l.x===0,y:l.y===0},p={elements:{host:null,padding:!d,viewport:_=>d&&_===_.ownerDocument.body&&_,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},y=Sr({},Jbt),w=Sr.bind(0,{},y),C=Sr.bind(0,{},p),k={k:l,I:h,A:d,H:Bi(n,"zIndex")==="-1",B:!!Z_,V:byt(n,r),Y:yyt(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:C,F:_=>Sr(p,_)&&C(),G:w,X:_=>Sr(y,_)&&w(),U:Sr({},p),W:Sr({},y)},D=window.addEventListener,I=WI(_=>o(_?"z":"r"),{g:33,v:99});if(ko(n,"style"),el(n),D("resize",I.bind(0,!1)),!d&&(!h.x||!h.y)){let _;D("resize",()=>{const L=xf()[GI];_=_||L&&L.R(),_&&_(k,s,I.bind(0,!0))})}return k},Fo=()=>(Z2||(Z2=xyt()),Z2),qI=(t,e)=>va(e)?e.apply(0,t):e,wyt=(t,e,n,r)=>{const i=yc(r)?n:r;return qI(t,i)||e.apply(0,t)},IG=(t,e,n,r)=>{const i=yc(r)?n:r,o=qI(t,i);return!!o&&(tv(o)?o:e.apply(0,t))},Syt=(t,e,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=Fo(),{nativeScrollbarsOverlaid:a,body:l}=e,d=r??a,h=yc(i)?l:i,p=(o.x||o.y)&&d,y=t&&(cC(h)?!s:h);return!!p||!!y},KI=new WeakMap,Cyt=(t,e)=>{KI.set(t,e)},Eyt=t=>{KI.delete(t)},RG=t=>KI.get(t),O6=(t,e)=>t?e.split(".").reduce((n,r)=>n&&hC(n,r)?n[r]:void 0,t):void 0,nD=(t,e,n)=>r=>[O6(t,r),n||O6(e,r)!==void 0],MG=t=>{let e=t;return[()=>e,n=>{e=Sr({},e,n)}]},Py="tabindex",Ny=Zd.bind(0,""),Q2=t=>{Es(lc(t),zI(t)),el(t)},Ayt=t=>{const e=Fo(),{q:n,A:r}=e,i=xf()[GI],o=i&&i.T,{elements:s}=n(),{host:a,padding:l,viewport:d,content:h}=s,p=tv(t),y=p?{}:t,{elements:w}=y,{host:C,padding:k,viewport:D,content:I}=w||{},_=p?t:y.target,L=Q1(_,"textarea"),M=_.ownerDocument,F=M.documentElement,H=_===M.body,G=M.defaultView,X=wyt.bind(0,[_]),Z=IG.bind(0,[_]),te=qI.bind(0,[_]),ae=X.bind(0,Ny,d),ye=Z.bind(0,Ny,h),ve=ae(D),se=ve===_,J=se&&H,B=!se&&ye(I),V=!se&&tv(ve)&&ve===B,q=V&&!!te(h),ce=q?ae():ve,fe=q?B:ye(),Se=J?F:V?ce:ve,_e=L?X(Ny,a,C):_,Be=J?Se:_e,Q=V?fe:B,de=M.activeElement,we=!se&&G.top===G&&de===_,Ce={Z:_,J:Be,K:Se,tt:!se&&Z(Ny,l,k),nt:Q,ot:!se&&!r&&o&&o(e),st:J?F:Se,et:J?M:Se,ct:G,rt:M,lt:L,it:H,ut:p,ft:se,dt:V,_t:(xe,Re)=>Mbt(Se,se?ia:iu,se?Re:xe),ht:(xe,Re,Ve)=>Jd(Se,se?ia:iu,se?Re:xe,Ve)},je=ss(Ce).reduce((xe,Re)=>{const Ve=Ce[Re];return Qn(xe,Ve&&tv(Ve)&&!lc(Ve)?Ve:!1)},[]),Ue=xe=>xe?fC(je,xe)>-1:null,{Z:Xe,J:qe,tt:K,K:ee,nt:be,ot:$e}=Ce,Ie=[()=>{ko(qe,ia),ko(qe,K2),ko(Xe,K2),H&&(ko(F,ia),ko(F,K2))}],He=L&&Ue(qe);let rt=L?Xe:zI([be,ee,K,qe,Xe].find(xe=>Ue(xe)===!1));const ze=J?Xe:be||ee;return[Ce,()=>{Zi(qe,ia,se?"viewport":"host"),Zi(K,eD,""),Zi(be,E6,""),se||Zi(ee,iu,"");const xe=H&&!se?Fu(lc(_),kG):Zo;if(He&&(g6(Xe,qe),Qn(Ie,()=>{g6(qe,Xe),el(qe)})),Es(ze,rt),Es(qe,K),Es(K||qe,!se&&ee),Es(ee,be),Qn(Ie,()=>{xe(),ko(K,eD),ko(be,E6),ko(ee,TG),ko(ee,_G),ko(ee,iu),Ue(be)&&Q2(be),Ue(ee)&&Q2(ee),Ue(K)&&Q2(K)}),r&&!se&&(Jd(ee,iu,DG,!0),Qn(Ie,ko.bind(0,ee,iu))),$e&&(Lbt(ee,$e),Qn(Ie,el.bind(0,$e))),we){const Re=Zi(ee,Py);Zi(ee,Py,"-1"),ee.focus();const Ve=()=>Re?Zi(ee,Py,Re):ko(ee,Py),it=Hr(M,"pointerdown keydown",()=>{Ve(),it()});Qn(Ie,[Ve,it])}else de&&de.focus&&de.focus();rt=0},il.bind(0,Ie)]},kyt=(t,e)=>{const{nt:n}=t,[r]=e;return i=>{const{Y:o}=Fo(),{gt:s}=r(),{vt:a}=i,l=(n||!o)&&a;return l&&Bi(n,{height:s?"":"100%"}),{wt:l,bt:l}}},Tyt=(t,e)=>{const[n,r]=e,{J:i,tt:o,K:s,ft:a}=t,[l,d]=ra({u:Ubt,o:y6()},y6.bind(0,i,"padding",""));return(h,p,y)=>{let[w,C]=d(y);const{A:k,Y:D}=Fo(),{yt:I}=n(),{wt:_,bt:L,St:M}=h,[F,H]=p("paddingAbsolute");(_||C||!D&&L)&&([w,C]=l(y));const X=!a&&(H||M||C);if(X){const Z=!F||!o&&!k,te=w.r+w.l,ae=w.t+w.b,ye={marginRight:Z&&!I?-te:0,marginBottom:Z?-ae:0,marginLeft:Z&&I?-te:0,top:Z?-w.t:0,right:Z?I?-w.r:"auto":0,left:Z?I?"auto":-w.l:0,width:Z?`calc(100% + ${te}px)`:""},ve={paddingTop:Z?w.t:0,paddingRight:Z?w.r:0,paddingBottom:Z?w.b:0,paddingLeft:Z?w.l:0};Bi(o||s,ye),Bi(s,ve),r({tt:w,$t:!Z,P:o?ve:Sr({},ye,ve)})}return{xt:X}}},{max:rD}=Math,ou=rD.bind(0,0),PG="visible",I6="hidden",_yt=42,Ly={u:bG,o:{w:0,h:0}},Dyt={u:yG,o:{x:I6,y:I6}},$yt=(t,e)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:ou(t.w-e.w),h:ou(t.h-e.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},Fy=t=>t.indexOf(PG)===0,Oyt=(t,e)=>{const[n,r]=e,{J:i,tt:o,K:s,ot:a,ft:l,ht:d,it:h,ct:p}=t,{k:y,Y:w,A:C,I:k}=Fo(),D=xf()[GI],I=!l&&!C&&(k.x||k.y),_=h&&l,[L,M]=ra(Ly,nw.bind(0,s)),[F,H]=ra(Ly,tw.bind(0,s)),[G,X]=ra(Ly),[Z,te]=ra(Ly),[ae]=ra(Dyt),ye=(q,ce)=>{if(Bi(s,{height:""}),ce){const{$t:fe,tt:Ae}=n(),{Ct:Se,M:_e}=q,Be=nw(i),Q=Tx(i),de=Bi(s,"boxSizing")==="content-box",we=fe||de?Ae.b+Ae.t:0,Ce=!(k.x&&de);Bi(s,{height:Q.h+Be.h+(Se.x&&Ce?_e.x:0)-we})}},ve=(q,ce)=>{const fe=!C&&!q?_yt:0,Ae=(Ue,Xe,qe)=>{const K=Bi(s,Ue),be=(ce?ce[Ue]:K)==="scroll";return[K,be,be&&!C?Xe?fe:qe:0,Xe&&!!fe]},[Se,_e,Be,Q]=Ae("overflowX",k.x,y.x),[de,we,Ce,je]=Ae("overflowY",k.y,y.y);return{Ot:{x:Se,y:de},Ct:{x:_e,y:we},M:{x:Be,y:Ce},D:{x:Q,y:je}}},se=(q,ce,fe,Ae)=>{const Se=(we,Ce)=>{const je=Fy(we),Ue=Ce&&je&&we.replace(`${PG}-`,"")||"";return[Ce&&!je?we:"",Fy(Ue)?"hidden":Ue]},[_e,Be]=Se(fe.x,ce.x),[Q,de]=Se(fe.y,ce.y);return Ae.overflowX=Be&&Q?Be:_e,Ae.overflowY=de&&_e?de:Q,ve(q,Ae)},J=(q,ce,fe,Ae)=>{const{M:Se,D:_e}=q,{x:Be,y:Q}=_e,{x:de,y:we}=Se,{P:Ce}=n(),je=ce?"marginLeft":"marginRight",Ue=ce?"paddingLeft":"paddingRight",Xe=Ce[je],qe=Ce.marginBottom,K=Ce[Ue],ee=Ce.paddingBottom;Ae.width=`calc(100% + ${we+Xe*-1}px)`,Ae[je]=-we+Xe,Ae.marginBottom=-de+qe,fe&&(Ae[Ue]=K+(Q?we:0),Ae.paddingBottom=ee+(Be?de:0))},[B,V]=D?D.L(I,w,s,a,n,ve,J):[()=>I,()=>[Zo]];return(q,ce,fe)=>{const{wt:Ae,Tt:Se,bt:_e,xt:Be,vt:Q,St:de}=q,{gt:we,yt:Ce}=n(),[je,Ue]=ce("showNativeOverlaidScrollbars"),[Xe,qe]=ce("overflow"),K=je&&k.x&&k.y,ee=!l&&!w&&(Ae||_e||Se||Ue||Q),be=Fy(Xe.x),$e=Fy(Xe.y),Ie=be||$e;let He=M(fe),rt=H(fe),ze=X(fe),We=te(fe),xe;if(Ue&&C&&d(DG,Qbt,!K),ee&&(xe=ve(K),ye(xe,we)),Ae||Be||_e||de||Ue){Ie&&d(sp,op,!1);const[Je,ot]=V(K,Ce,xe),[mt,dt]=He=L(fe),[pt,bt]=rt=F(fe),Mt=Tx(s);let Bt=pt,vn=Mt;Je(),(bt||dt||Ue)&&ot&&!K&&B(ot,pt,mt,Ce)&&(vn=Tx(s),Bt=tw(s));const ui={w:ou(rD(pt.w,Bt.w)+mt.w),h:ou(rD(pt.h,Bt.h)+mt.h)},bo={w:ou((_?p.innerWidth:vn.w+ou(Mt.w-pt.w))+mt.w),h:ou((_?p.innerHeight+mt.h:vn.h+ou(Mt.h-pt.h))+mt.h)};We=Z(bo),ze=G($yt(ui,bo),fe)}const[Re,Ve]=We,[it,xt]=ze,[At,It]=rt,[Oe,Ne]=He,Fe={x:it.w>0,y:it.h>0},Qe=be&&$e&&(Fe.x||Fe.y)||be&&Fe.x&&!Fe.y||$e&&Fe.y&&!Fe.x;if(Be||de||Ne||It||Ve||xt||qe||Ue||ee){const Je={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},ot=se(K,Fe,Xe,Je),mt=B(ot,At,Oe,Ce);l||J(ot,Ce,mt,Je),ee&&ye(ot,we),l?(Zi(i,TG,Je.overflowX),Zi(i,_G,Je.overflowY)):Bi(s,Je)}Jd(i,ia,op,Qe),Jd(o,eD,eyt,Qe),l||Jd(s,iu,sp,Ie);const[ht,Me]=ae(ve(K).Ot);return r({Ot:ht,zt:{x:Re.w,y:Re.h},Et:{x:it.w,y:it.h},At:Fe}),{It:Me,Ht:Ve,Lt:xt}}},R6=(t,e,n)=>{const r={},i=e||{},o=ss(t).concat(ss(i));return Ln(o,s=>{const a=t[s],l=i[s];r[s]=!!(n||a||l)}),r},Iyt=(t,e)=>{const{Z:n,K:r,ht:i,ft:o}=t,{A:s,I:a,Y:l}=Fo(),d=!s&&(a.x||a.y),h=[kyt(t,e),Tyt(t,e),Oyt(t,e)];return(p,y,w)=>{const C=R6(Sr({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},y),{},w),k=d||!l,D=k&&da(r),I=k&&Ql(r);i("",rw,!0);let _=C;return Ln(h,L=>{_=R6(_,L(_,p,!!w)||{},w)}),da(r,D),Ql(r,I),i("",rw),o||(da(n,0),Ql(n,0)),_}},Ryt=(t,e,n)=>{let r,i=!1;const o=()=>{i=!0},s=a=>{if(n){const l=n.reduce((d,h)=>{if(h){const[p,y]=h,w=y&&p&&(a?a(p):hG(p,t));w&&w.length&&y&&Ku(y)&&Qn(d,[w,y.trim()],!0)}return d},[]);Ln(l,d=>Ln(d[0],h=>{const p=d[1],y=r.get(h)||[];if(t.contains(h)){const C=Hr(h,p,k=>{i?(C(),r.delete(h)):e(k)});r.set(h,Qn(y,C))}else il(y),r.delete(h)}))}};return n&&(r=new WeakMap,s()),[o,s]},M6=(t,e,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:a,kt:l,Bt:d,Vt:h}=r||{},p=WI(()=>i&&n(!0),{g:33,v:99}),[y,w]=Ryt(t,p,a),C=o||[],k=s||[],D=C.concat(k),I=(L,M)=>{const F=d||Zo,H=h||Zo,G=new Set,X=new Set;let Z=!1,te=!1;if(Ln(L,ae=>{const{attributeName:ye,target:ve,type:se,oldValue:J,addedNodes:B,removedNodes:V}=ae,q=se==="attributes",ce=se==="childList",fe=t===ve,Ae=q&&Ku(ye)?Zi(ve,ye):0,Se=Ae!==0&&J!==Ae,_e=fC(k,ye)>-1&&Se;if(e&&(ce||!fe)){const Be=!q,Q=q&&Se,de=Q&&l&&Q1(ve,l),Ce=(de?!F(ve,ye,J,Ae):Be||Q)&&!H(ae,!!de,t,r);Ln(B,je=>G.add(je)),Ln(V,je=>G.add(je)),te=te||Ce}!e&&fe&&Se&&!F(ve,ye,J,Ae)&&(X.add(ye),Z=Z||_e)}),G.size>0&&w(ae=>yf(G).reduce((ye,ve)=>(Qn(ye,hG(ae,ve)),Q1(ve,ae)?Qn(ye,ve):ye),[])),e)return!M&&te&&n(!1),[!1];if(X.size>0||Z){const ae=[yf(X),Z];return!M&&n.apply(0,ae),ae}},_=new jbt(L=>I(L));return _.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:D,subtree:e,childList:e,characterData:e}),i=!0,[()=>{i&&(y(),_.disconnect(),i=!1)},()=>{if(i){p.m();const L=_.takeRecords();return!FI(L)&&I(L,!0)}}]},By=3333333,NG=(t,e,n)=>{const{Yt:r,Pt:i}=n||{},o=xf()[gyt],{V:s}=Fo(),l=pG(`<div class="${YI}"><div class="${nyt}"></div></div>`)[0],d=l.firstChild,h=Kp.bind(0,t),[p]=ra({o:!1,_:!0,u:(C,k)=>!(!C||!Fh(C)&&Fh(k))}),y=C=>{const k=is(C)&&C.length>0&&Vv(C[0]),D=!k&&LI(C[0]);let I=!1,_=!1,L=!0;if(k){const[M,,F]=p(C.pop().contentRect),H=Fh(M),G=Fh(F);I=!F&&!!G||!H,_=!G&&H,L=!I}else D?[,L]=C:_=C===!0;if(r&&L){const M=D?C[0]:Kp(l);da(l,M?s.n?-By:s.i?0:By:By),Ql(l,By)}I||e({wt:!D,jt:D?C:void 0,Pt:!!_})},w=[];return[()=>{il(w),el(l)},()=>{let C=i&&y;if(Lh){const k=new Lh(y);k.observe(d),Qn(w,()=>{k.disconnect()})}else if(o){const[k,D]=o.O(d,y,i);C=k,Qn(w,D)}if(r){const[k]=ra({o:void 0},h);Qn(w,Hr(l,"scroll",D=>{const I=k(),[_,L,M]=I;L&&(jI(d,"ltr rtl"),Fu(d,_?"rtl":"ltr"),y([!!_,L,M])),wG(D)}))}C&&(Fu(l,tyt),Qn(w,Hr(l,"animationstart",C,{C:!!Lh}))),(Lh||o)&&Es(t,l)}]},Myt=t=>t.h===0||t.isIntersecting||t.intersectionRatio>0,Pyt=(t,e)=>{let n;const r=Zd(ryt),i=[],[o]=ra({o:!1}),s=(l,d)=>{if(l){const h=o(Myt(l)),[,p]=h;return p&&!d&&e(h)&&[h]}},a=(l,d)=>l&&l.length>0&&s(l.pop(),d);return[()=>{il(i),el(r)},()=>{if(m6)n=new m6(l=>a(l),{root:t}),n.observe(r),Qn(i,()=>{n.disconnect()});else{const l=()=>{const p=Yv(r);s(p)},[d,h]=NG(r,l);Qn(i,d),h(),l()}Es(t,r)},()=>n&&a(n.takeRecords(),!0)]},P6=`[${ia}]`,Nyt=`[${iu}]`,ek=["tabindex"],N6=["wrap","cols","rows"],tk=["id","class","style","open"],Lyt=(t,e,n)=>{let r,i,o;const{J:s,K:a,nt:l,lt:d,ft:h,_t:p,ht:y}=t,{Y:w}=Fo(),[C]=ra({u:bG,o:{w:0,h:0}},()=>{const J=p(sp,op),B=p(J2,""),V=B&&da(a),q=B&&Ql(a);y(sp,op),y(J2,""),y("",rw,!0);const ce=tw(l),fe=tw(a),Ae=nw(a);return y(sp,op,J),y(J2,"",B),y("",rw),da(a,V),Ql(a,q),{w:fe.w+ce.w+Ae.w,h:fe.h+ce.h+Ae.h}}),k=d?N6:tk.concat(N6),D=WI(n,{g:()=>r,v:()=>i,p(J,B){const[V]=J,[q]=B;return[ss(V).concat(ss(q)).reduce((ce,fe)=>(ce[fe]=V[fe]||q[fe],ce),{})]}}),I=J=>{Ln(J||ek,B=>{if(fC(ek,B)>-1){const V=Zi(s,B);Ku(V)?Zi(a,B,V):ko(a,B)}})},_=(J,B)=>{const[V,q]=J,ce={vt:q};return e({gt:V}),!B&&n(ce),ce},L=({wt:J,jt:B,Pt:V})=>{const q=!J||V?n:D;let ce=!1;if(B){const[fe,Ae]=B;ce=Ae,e({yt:fe})}q({wt:J,Pt:V,St:ce})},M=(J,B)=>{const[,V]=C(),q={bt:V};return V&&!B&&(J?n:D)(q),q},F=(J,B,V)=>{const q={Tt:B};return B?!V&&D(q):h||I(J),q},[H,G,X]=l||!w?Pyt(s,_):[Zo,Zo,Zo],[Z,te]=h?[Zo,Zo]:NG(s,L,{Pt:!0,Yt:!0}),[ae,ye]=M6(s,!1,F,{Dt:tk,Mt:tk.concat(ek)});let ve;const se=h&&Lh&&new Lh(J=>{const B=J[J.length-1].contentRect,V=Fh(B),ce=!Fh(ve)&&V;L({wt:!0,Pt:ce}),ve=B});return[()=>{H(),Z(),o&&o[0](),se&&se.disconnect(),ae()},()=>{se&&se.observe(s),I(),te(),G()},()=>{const J={},B=ye(),V=X(),q=o&&o[1]();return B&&Sr(J,F.apply(0,Qn(B,!0))),V&&Sr(J,_.apply(0,Qn(V,!0))),q&&Sr(J,M.apply(0,Qn(q,!0))),J},J=>{const[B]=J("update.ignoreMutation"),[V,q]=J("update.attributes"),[ce,fe]=J("update.elementEvents"),[Ae,Se]=J("update.debounce"),_e=fe||q,Be=Q=>va(B)&&B(Q);if(_e&&(o&&(o[1](),o[0]()),o=M6(l||a,!0,M,{Mt:k.concat(V||[]),Rt:ce,kt:P6,Vt:(Q,de)=>{const{target:we,attributeName:Ce}=Q;return(!de&&Ce&&!h?Nbt(we,P6,Nyt):!1)||!!Nh(we,`.${Lo}`)||!!Be(Q)}})),Se)if(D.m(),is(Ae)){const Q=Ae[0],de=Ae[1];r=ku(Q)&&Q,i=ku(de)&&de}else ku(Ae)?(r=Ae,i=!1):(r=!1,i=!1)}]},L6={x:0,y:0},Fyt=t=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:L6,Et:L6,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Kp(t.J)}),Byt=(t,e)=>{const n=nD(e,{}),[r,i,o]=VI(),[s,a,l]=Ayt(t),d=MG(Fyt(s)),[h,p]=d,y=Iyt(s,d),w=(L,M,F)=>{const G=ss(L).some(X=>!!L[X])||!BI(M)||F;return G&&o("u",[L,M,F]),G},[C,k,D,I]=Lyt(s,p,L=>w(y(n,L),{},!1)),_=h.bind(0);return _.Nt=L=>r("u",L),_.qt=()=>{const{Z:L,K:M,rt:F,it:H}=s,G=H?F.documentElement:L,X=da(G),Z=Ql(G);k(),a(),da(M,X),Ql(M,Z)},_.Ft=s,[(L,M)=>{const F=nD(e,L,M);return I(F),w(y(F,D(),M),L,!!M)},_,()=>{i(),C(),l()}]},{round:F6}=Math,zyt=t=>{const{width:e,height:n}=Wa(t),{w:r,h:i}=Yv(t);return{x:F6(e)/r||1,y:F6(n)/i||1}},Hyt=(t,e,n)=>{const r=e.scrollbars,{button:i,isPrimary:o,pointerType:s}=t,{pointers:a}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(a||[]).includes(s)},B6="pointerup pointerleave pointercancel lostpointercapture",jyt=(t,e)=>Hr(t,"mousedown",Hr.bind(0,e,"click",wG,{C:!0,$:!0}),{$:!0}),Wyt=(t,e,n,r,i,o,s)=>{const{V:a}=Fo(),{Gt:l,Xt:d,Ut:h}=r,p=`scroll${s?"Left":"Top"}`,y=`client${s?"X":"Y"}`,w=s?"width":"height",C=s?"left":"top",k=s?"w":"h",D=s?"x":"y",I=(_,L)=>M=>{const{Et:F}=o(),H=Yv(d)[k]-Yv(l)[k],X=L*M/H*F[D],te=Kp(h)&&s?a.n||a.i?1:-1:1;i[p]=_+X*te};return Hr(d,"pointerdown",_=>{const L=Nh(_.target,`.${XI}`)===l,M=L?l:d;if(Jd(e,ia,C6,!0),Hyt(_,t,L)){const F=!L&&_.shiftKey,H=()=>Wa(l),G=()=>Wa(d),X=(ce,fe)=>(ce||H())[C]-(fe||G())[C],Z=I(i[p]||0,1/zyt(i)[D]),te=_[y],ae=H(),ye=G(),ve=ae[w],se=X(ae,ye)+ve/2,J=te-ye[C],B=L?0:J-se,V=ce=>{il(q),M.releasePointerCapture(ce.pointerId)},q=[Jd.bind(0,e,ia,C6),Hr(n,B6,V),Hr(n,"selectstart",ce=>SG(ce),{S:!1}),Hr(d,B6,V),Hr(d,"pointermove",ce=>{const fe=ce[y]-te;(L||F)&&Z(B+fe)})];if(F)Z(B);else if(!L){const ce=xf()[myt];ce&&Qn(q,ce.O(Z,X,B,ve,J))}M.setPointerCapture(_.pointerId)}})},Uyt=(t,e)=>(n,r,i,o,s,a,l)=>{const{Ut:d}=n,[h,p]=Cd(333),y=!!s.scrollBy;let w=!0;return il.bind(0,[Hr(d,"pointerenter",()=>{r(k6,!0)}),Hr(d,"pointerleave pointercancel",()=>{r(k6)}),Hr(d,"wheel",C=>{const{deltaX:k,deltaY:D,deltaMode:I}=C;y&&w&&I===0&&lc(d)===o&&s.scrollBy({left:k,top:D,behavior:"smooth"}),w=!1,r(D6,!0),h(()=>{w=!0,r(D6)}),SG(C)},{S:!1,$:!0}),jyt(d,i),Wyt(t,o,i,n,s,e,l),p])},{min:iw,max:iD,round:Vyt}=Math,LG=(t,e,n,r)=>{if(r){const a=n?"x":"y",{Et:l,zt:d}=r,h=d[a],p=l[a];return iD(0,iw(1,h/(h+p)))}const i=n?"width":"height",o=Wa(t)[i],s=Wa(e)[i];return iD(0,iw(1,o/s))},Yyt=(t,e,n,r,i,o)=>{const{V:s}=Fo(),a=o?"x":"y",l=o?"Left":"Top",{Et:d}=r,h=Vyt(d[a]),p=iw(h,iD(0,n[`scroll${l}`])),y=o&&i,w=s.i?p:h-p,k=iw(1,(y?w:p)/h),D=LG(t,e,o);return 1/D*(1-D)*k},FG=(t,e,n,r)=>t.animate(n,{timeline:e,composite:r}),Xyt=(t,e)=>({transform:[Jp("0%",e),Jp(e&&t?"100%":"-100%",e)],[e?t?"right":"left":"top"]:["0%","100%"]}),Gyt=t=>`${Math.max(0,t-.5)}px`,z6=(t,e,n,r)=>FG(t,e,{transform:[Jp("0px",r),Jp(Gyt(n),r)]},"add"),H6=(t,e)=>Z_?new Z_({source:t,axis:e}):null,qyt=(t,e,n)=>{const{q:r,H:i}=Fo(),{scrollbars:o}=r(),{slot:s}=o,{rt:a,Z:l,J:d,K:h,ut:p,st:y,it:w,ft:C}=e,{scrollbars:k}=p?{}:t,{slot:D}=k||{},I=new Map,_=H6(y,"x"),L=H6(y,"y"),M=IG([l,d,h],()=>C&&w?l:d,s,D),F=Q=>C&&!w&&lc(Q)===h,H=Q=>{I.forEach((de,we)=>{(Q?fC(is(Q)?Q:[Q],we)>-1:!0)&&((de||[]).forEach(je=>{je.cancel()}),I.delete(we))})},G=(Q,de,we)=>{const Ce=we?Fu:jI;Ln(Q,je=>{Ce(je.Ut,de)})},X=(Q,de)=>{Ln(Q,we=>{const[Ce,je]=de(we);Bi(Ce,je)})},Z=(Q,de,we)=>{X(Q,Ce=>{const{Gt:je,Xt:Ue}=Ce;return[je,{[we?"width":"height"]:`${(LG(je,Ue,we,de)*100).toFixed(3)}%`}]})},te=(Q,de,we)=>{!L&&!L&&X(Q,Ce=>{const{Gt:je,Xt:Ue,Ut:Xe}=Ce,qe=Yyt(je,Ue,y,de,Kp(Xe),we);return[je,{transform:qe===qe?Jp(`${(qe*100).toFixed(3)}%`,we):""}]})},ae=Q=>{const{Ut:de}=Q,we=F(de)&&de;return[we,{transform:we?Jp([`${da(y)}px`,`${Ql(y)}px`]):""}]},ye=[],ve=[],se=[],J=(Q,de,we)=>{const Ce=LI(we),je=Ce?we:!0,Ue=Ce?!we:!0;je&&G(ve,Q,de),Ue&&G(se,Q,de)},B=Q=>{Z(ve,Q,!0),Z(se,Q)},V=Q=>{te(ve,Q,!0),te(se,Q)},q=()=>{const Q=(de,{Ut:we,Gt:Ce})=>{H(Ce),I.set(Ce,[FG(Ce,de?_:L,Xyt(de&&Kp(we),de))])};ve.forEach(Q.bind(0,!0)),se.forEach(Q.bind(0,!1))},ce=()=>{!L&&!L&&(C&&X(ve,ae),C&&X(se,ae))},fe=({Et:Q})=>{se.concat(ve).forEach(({Ut:de})=>{H(de),F(de)&&I.set(de,[z6(de,_,Q.x,!0),z6(de,L,Q.y)])})},Ae=Q=>{const de=Q?ayt:lyt,we=Q?ve:se,Ce=FI(we)?A6:"",je=Zd(`${Lo} ${de} ${Ce}`),Ue=Zd($G),Xe=Zd(XI),qe={Ut:je,Xt:Ue,Gt:Xe};return i||Fu(je,iyt),Es(je,Ue),Es(Ue,Xe),Qn(we,qe),Qn(ye,[el.bind(0,je),H,n(qe,J,a,d,y,Q?_:L,Q)]),qe},Se=Ae.bind(0,!0),_e=Ae.bind(0,!1),Be=()=>{Es(M,ve[0].Ut),Es(M,se[0].Ut),ew(()=>{J(A6)},300)};return Se(),_e(),[{Wt:B,Zt:V,Jt:q,Kt:fe,Qt:ce,tn:J,nn:{B:_,sn:ve,en:Se,cn:X.bind(0,ve)},rn:{B:L,sn:se,en:_e,cn:X.bind(0,se)}},Be,il.bind(0,ye)]},nk=t=>t.pointerType==="mouse",Kyt=(t,e,n,r)=>{let i,o,s,a,l,d=Zo,h=0;const p=MG({}),[y]=p,[w,C]=Cd(),[k,D]=Cd(),[I,_]=Cd(100),[L,M]=Cd(100),[F,H]=Cd(100),[G,X]=Cd(()=>h),[Z,te,ae]=qyt(t,n.Ft,Uyt(e,n)),{J:ye,et:ve,it:se}=n.Ft,{tn:J,Wt:B,Zt:V,Jt:q,Kt:ce,Qt:fe}=Z,Ae=de=>{J(tD,de,!0),J(tD,de,!1)},Se=(de,we)=>{if(X(),de)J(_6);else{const Ce=()=>J(_6,!0);h>0&&!we?G(Ce):Ce()}},_e=de=>{nk(de)&&(a=o,a&&Se(!0))},Be=[_,X,M,H,D,C,ae,Hr(ye,"pointerover",_e,{C:!0}),Hr(ye,"pointerenter",_e),Hr(ye,"pointerleave",de=>{nk(de)&&(a=!1,o&&Se(!1))}),Hr(ye,"pointermove",de=>{nk(de)&&i&&w(()=>{_(),Se(!0),L(()=>{i&&Se(!1)})})}),Hr(ve,"scroll",de=>{k(()=>{V(n()),s&&Se(!0),I(()=>{s&&!a&&Se(!1)})}),r(de),fe()})],Q=y.bind(0);return Q.Ft=Z,Q.qt=te,[(de,we,Ce)=>{const{Ht:je,Lt:Ue,It:Xe,St:qe,Pt:K}=Ce,{I:ee}=Fo(),be=nD(e,de,we),$e=n(),{Et:Ie,Ot:He,yt:rt,At:ze}=$e,[We,xe]=be("showNativeOverlaidScrollbars"),[Re,Ve]=be("scrollbars.theme"),[it,xt]=be("scrollbars.visibility"),[At,It]=be("scrollbars.autoHide"),[Oe,Ne]=be("scrollbars.autoHideSuspend"),[Fe]=be("scrollbars.autoHideDelay"),[Qe,ht]=be("scrollbars.dragScroll"),[Me,Je]=be("scrollbars.clickScroll"),ot=K&&!we,mt=ze.x||ze.y,dt=je||Ue||qe,pt=Xe||xt,bt=We&&ee.x&&ee.y,Mt=(Bt,vn)=>{const ui=it==="visible"||it==="auto"&&Bt==="scroll";return J(cyt,ui,vn),ui};if(h=Fe,ot&&(Oe&&mt?(Ae(!1),d(),F(()=>{d=Hr(ve,"scroll",Ae.bind(0,!0),{C:!0})})):Ae(!0)),xe&&J(oyt,bt),Ve&&(J(l),J(Re,!0),l=Re),Ne&&!Oe&&Ae(!0),It&&(i=At==="move",o=At==="leave",s=At!=="never",Se(!s,!0)),ht&&J(fyt,Qe),Je&&J(dyt,Me),pt){const Bt=Mt(He.x,!0),vn=Mt(He.y,!1);J(uyt,!(Bt&&vn))}dt&&(B($e),V($e),q($e),ce($e),fe(),J(T6,!Ie.x,!0),J(T6,!Ie.y,!1),J(syt,rt&&!se))},Q,()=>{il(Be),d()}]},BG=(t,e,n)=>{va(t)&&t(e||void 0,n||void 0)},vu=(t,e,n)=>{const{G:r,q:i,j:o,N:s}=Fo(),a=xf(),l=tv(t),d=l?t:t.target,h=RG(d);if(e&&!h){let p=!1;const y=ve=>{const se=xf()[pyt],J=se&&se.O;return J?J(ve,!0):ve},w=Sr({},r(),y(e)),[C,k,D]=VI(n),[I,_,L]=Byt(t,w),[M,F,H]=Kyt(t,w,_,ve=>D("scroll",[ye,ve])),G=(ve,se)=>I(ve,!!se),X=G.bind(0,{},!0),Z=o(X),te=s(X),ae=ve=>{Eyt(d),Z(),te(),H(),L(),p=!0,D("destroyed",[ye,!!ve]),k()},ye={options(ve,se){if(ve){const J=se?r():{},B=CG(w,Sr(J,y(ve)));BI(B)||(Sr(w,B),G(B))}return Sr({},w)},on:C,off:(ve,se)=>{ve&&se&&k(ve,se)},state(){const{zt:ve,Et:se,Ot:J,At:B,tt:V,$t:q,yt:ce}=_();return Sr({},{overflowEdge:ve,overflowAmount:se,overflowStyle:J,hasOverflow:B,padding:V,paddingAbsolute:q,directionRTL:ce,destroyed:p})},elements(){const{Z:ve,J:se,tt:J,K:B,nt:V,st:q,et:ce}=_.Ft,{nn:fe,rn:Ae}=F.Ft,Se=Be=>{const{Gt:Q,Xt:de,Ut:we}=Be;return{scrollbar:we,track:de,handle:Q}},_e=Be=>{const{sn:Q,en:de}=Be,we=Se(Q[0]);return Sr({},we,{clone:()=>{const Ce=Se(de());return M({},!0,{}),Ce}})};return Sr({},{target:ve,host:se,padding:J||B,viewport:B,content:V||B,scrollOffsetElement:q,scrollEventElement:ce,scrollbarHorizontal:_e(fe),scrollbarVertical:_e(Ae)})},update:ve=>G({},ve),destroy:ae.bind(0)};return _.Nt((ve,se,J)=>{M(se,J,ve)}),Cyt(d,ye),Ln(ss(a),ve=>BG(a[ve],0,ye)),Syt(_.Ft.it,i().cancel,!l&&t.cancel)?(ae(!0),ye):(_.qt(),F.qt(),D("initialized",[ye]),_.Nt((ve,se,J)=>{const{wt:B,St:V,vt:q,Ht:ce,Lt:fe,It:Ae,bt:Se,Tt:_e}=ve;D("updated",[ye,{updateHints:{sizeChanged:B,directionChanged:V,heightIntrinsicChanged:q,overflowEdgeChanged:ce,overflowAmountChanged:fe,overflowStyleChanged:Ae,contentMutation:Se,hostMutation:_e},changedOptions:se,force:J}])}),ye.update(!0),ye)}return h};vu.plugin=t=>{Ln(hyt(t),e=>BG(e,vu))};vu.valid=t=>{const e=t&&t.elements,n=va(e)&&e();return q_(n)&&!!RG(n.target)};vu.env=()=>{const{k:t,I:e,A:n,V:r,Y:i,H:o,B:s,U:a,W:l,q:d,F:h,G:p,X:y}=Fo();return Sr({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:a,staticDefaultOptions:l,getDefaultInitialization:d,setDefaultInitialization:h,getDefaultOptions:p,setDefaultOptions:y})};const Jyt=()=>{if(typeof window>"u"){const d=()=>{};return[d,d]}let t,e;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:o,l=()=>{a(t),o(e)};return[(d,h)=>{l(),t=s(r?()=>{l(),e=i(d)}:d,typeof h=="object"?h:{timeout:2233})},l]},Zyt=t=>{let e=null,n,r,i;const o=ca(t||{}),[s,a]=Jyt();return en(()=>{var l;return kt((l=o.value)==null?void 0:l.defer)},l=>{i=l},{deep:!0,immediate:!0}),en(()=>{var l;return kt((l=o.value)==null?void 0:l.options)},l=>{n=l,vu.valid(e)&&e.options(n||{},!0)},{deep:!0,immediate:!0}),en(()=>{var l;return kt((l=o.value)==null?void 0:l.events)},l=>{r=l,vu.valid(e)&&e.on(r||{},!0)},{deep:!0,immediate:!0}),as(()=>{a(),e==null||e.destroy()}),[l=>{if(vu.valid(e))return e;const d=()=>e=vu(l,n||{},r||{});i?s(d,i):d()},()=>e]},sCt=Jn({props:{element:{type:String,default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(t,{expose:e,emit:n}){const r=t,i={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:o,options:s,events:a,defer:l}=wD(r),d=ca(null),h=ca(null),p=ct(),y=ct(!1),[w,C]=Zyt({options:s,events:p,defer:l});return e({osInstance:C,getElement:()=>d.value}),Rr(()=>{y.value=!0}),MD(k=>{const{value:D}=d,{value:I}=h;y.value&&D&&I&&(w({target:D,elements:{viewport:I,content:I}}),k(()=>{var _;return(_=C())==null?void 0:_.destroy()}))}),en(()=>kt(a),k=>{const D=k||{};p.value=Object.keys(i).reduce((I,_)=>{const L=D[_];return I[_]=[(...M)=>n(i[_],...M),...(Array.isArray(L)?L:[L]).filter(Boolean)],I},{})},{deep:!0,immediate:!0}),(k,D)=>(Et(),kn(up(kt(o)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:d},{default:ji(()=>[y.value?(Et(),Mn("div",{key:0,ref_key:"slotRef",ref:h,"data-overlayscrollbars-contents":""},[Yr(k.$slots,"default")],512)):Yr(k.$slots,"default",{key:1})]),_:3},512))}});function ap(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;e<arguments.length;e++)zG(t,arguments[e]);return t}function zG(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)zG(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const nv="http://www.w3.org/2000/svg",Qyt="http://www.w3.org/1999/xlink",oD="ProseMirror-icon";function ext(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return e}function txt(t,e){let n=(t.nodeType==9?t:t.ownerDocument)||document,r=n.createElement("div");if(r.className=oD,e.path){let{path:i,width:o,height:s}=e,a="pm-icon-"+ext(i).toString(16);n.getElementById(a)||nxt(t,a,e);let l=r.appendChild(n.createElementNS(nv,"svg"));l.style.width=o/s+"em",l.appendChild(n.createElementNS(nv,"use")).setAttributeNS(Qyt,"href",/([^#]*)/.exec(n.location.toString())[1]+"#"+a)}else if(e.dom)r.appendChild(e.dom.cloneNode(!0));else{let{text:i,css:o}=e;r.appendChild(n.createElement("span")).textContent=i||"",o&&(r.firstChild.style.cssText=o)}return r}function nxt(t,e,n){let[r,i]=t.nodeType==9?[t,t.body]:[t.ownerDocument||document,t],o=r.getElementById(oD+"-collection");o||(o=r.createElementNS(nv,"svg"),o.id=oD+"-collection",o.style.display="none",i.insertBefore(o,i.firstChild));let s=r.createElementNS(nv,"symbol");s.id=e,s.setAttribute("viewBox","0 0 "+n.width+" "+n.height),s.appendChild(r.createElementNS(nv,"path")).setAttribute("d",n.path),o.appendChild(s)}const rv="ProseMirror-menu";class aCt{constructor(e){this.spec=e}render(e){let n=this.spec,r=n.render?n.render(e):n.icon?txt(e.root,n.icon):n.label?ap("div",null,j6(e,n.label)):null;if(!r)throw new RangeError("MenuItem without icon or label property");if(n.title){const o=typeof n.title=="function"?n.title(e.state):n.title;r.setAttribute("title",j6(e,o))}n.class&&r.classList.add(n.class),n.css&&(r.style.cssText+=n.css),r.addEventListener("mousedown",o=>{o.preventDefault(),r.classList.contains(rv+"-disabled")||n.run(e.state,e.dispatch,e,o)});function i(o){if(n.select){let a=n.select(o);if(r.style.display=a?"":"none",!a)return!1}let s=!0;if(n.enable&&(s=n.enable(o)||!1,W6(r,rv+"-disabled",!s)),n.active){let a=s&&n.active(o)||!1;W6(r,rv+"-active",a)}return!0}return{dom:r,update:i}}}function j6(t,e){return t._props.translate?t._props.translate(e):e}function rxt(t,e){return n=>{let r=!1;for(let i=0;i<t.length;i++){let o=t[i](n);e[i].style.display=o?"":"none",o&&(r=!0)}return r}}function ixt(t,e){let n=document.createDocumentFragment(),r=[],i=[];for(let s=0;s<e.length;s++){let a=e[s],l=[],d=[];for(let h=0;h<a.length;h++){let{dom:p,update:y}=a[h].render(t),w=ap("span",{class:rv+"item"},p);n.appendChild(w),d.push(w),l.push(y)}l.length&&(r.push(rxt(l,d)),s<e.length-1&&i.push(n.appendChild(oxt())))}function o(s){let a=!1,l=!1;for(let d=0;d<r.length;d++){let h=r[d](s);d&&(i[d-1].style.display=l&&h?"":"none"),l=h,h&&(a=!0)}return a}return{dom:n,update:o}}function oxt(){return ap("span",{class:rv+"separator"})}function W6(t,e,n){n?t.classList.add(e):t.classList.remove(e)}const zy="ProseMirror-menubar";function sxt(){if(typeof navigator>"u")return!1;let t=navigator.userAgent;return!/Edge\/\d/.test(t)&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t)}function lCt(t){return new If({view(e){return new axt(e,t)}})}class axt{constructor(e,n){this.editorView=e,this.options=n,this.spacer=null,this.maxHeight=0,this.widthForMaxHeight=0,this.floating=!1,this.scrollHandler=null,this.wrapper=ap("div",{class:zy+"-wrapper"}),this.menu=this.wrapper.appendChild(ap("div",{class:zy})),this.menu.className=zy,e.dom.parentNode&&e.dom.parentNode.replaceChild(this.wrapper,e.dom),this.wrapper.appendChild(e.dom);let{dom:r,update:i}=ixt(this.editorView,this.options.content);if(this.contentUpdate=i,this.menu.appendChild(r),this.update(),n.floating&&!sxt()){this.updateFloat();let o=uxt(this.wrapper);this.scrollHandler=s=>{let a=this.editorView.root;(a.body||a).contains(this.wrapper)?this.updateFloat(s.target.getBoundingClientRect?s.target:void 0):o.forEach(l=>l.removeEventListener("scroll",this.scrollHandler))},o.forEach(s=>s.addEventListener("scroll",this.scrollHandler))}}update(){this.contentUpdate(this.editorView.state),this.floating?this.updateScrollCursor():(this.menu.offsetWidth!=this.widthForMaxHeight&&(this.widthForMaxHeight=this.menu.offsetWidth,this.maxHeight=0),this.menu.offsetHeight>this.maxHeight&&(this.maxHeight=this.menu.offsetHeight,this.menu.style.minHeight=this.maxHeight+"px"))}updateScrollCursor(){let e=this.editorView.root.getSelection();if(!e.focusNode)return;let n=e.getRangeAt(0).getClientRects(),r=n[lxt(e)?0:n.length-1];if(!r)return;let i=this.menu.getBoundingClientRect();if(r.top<i.bottom&&r.bottom>i.top){let o=cxt(this.wrapper);o&&(o.scrollTop-=i.bottom-r.top)}}updateFloat(e){let n=this.wrapper,r=n.getBoundingClientRect(),i=e?Math.max(0,e.getBoundingClientRect().top):0;if(this.floating)if(r.top>=i||r.bottom<this.menu.offsetHeight+10)this.floating=!1,this.menu.style.position=this.menu.style.left=this.menu.style.top=this.menu.style.width="",this.menu.style.display="",this.spacer.parentNode.removeChild(this.spacer),this.spacer=null;else{let o=(n.offsetWidth-n.clientWidth)/2;this.menu.style.left=r.left+o+"px",this.menu.style.display=r.top>(this.editorView.dom.ownerDocument.defaultView||window).innerHeight?"none":"",e&&(this.menu.style.top=i+"px")}else if(r.top<i&&r.bottom>=this.menu.offsetHeight+10){this.floating=!0;let o=this.menu.getBoundingClientRect();this.menu.style.left=o.left+"px",this.menu.style.width=o.width+"px",e&&(this.menu.style.top=i+"px"),this.menu.style.position="fixed",this.spacer=ap("div",{class:zy+"-spacer",style:`height: ${o.height}px`}),n.insertBefore(this.spacer,this.menu)}}destroy(){this.wrapper.parentNode&&this.wrapper.parentNode.replaceChild(this.editorView.dom,this.wrapper)}}function lxt(t){return t.anchorNode==t.focusNode?t.anchorOffset>t.focusOffset:t.anchorNode.compareDocumentPosition(t.focusNode)==Node.DOCUMENT_POSITION_FOLLOWING}function cxt(t){for(let e=t.parentNode;e;e=e.parentNode)if(e.scrollHeight>e.clientHeight)return e}function uxt(t){let e=[t.ownerDocument.defaultView||window];for(let n=t.parentNode;n;n=n.parentNode)e.push(n);return e}function dxt(t){return typeof t=="function"?t():kt(t)}function sD(t,e=""){if(t instanceof Promise)return t;const n=dxt(t);return!t||!n?n:Array.isArray(n)?n.map(r=>sD(r,e)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,i])=>r==="titleTemplate"||r.startsWith("on")?[r,kt(i)]:[r,sD(i,r)])):n}const fxt=BD.startsWith("3"),hxt="usehead";function pxt(t){return{install(n){fxt&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(hxt,t))}}.install}function cCt(t={}){const e=wle({...t,domDelayFn:n=>setTimeout(()=>Ir(()=>n()),10),plugins:[gxt(),...(t==null?void 0:t.plugins)||[]]});return e.install=pxt(e),e}function gxt(){return{hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=sD(e.input)}}}}function mxt(t){return typeof t=="object"&&t!==null}function U6(t,e){return t=mxt(t)?t:Object.create(null),new Proxy(t,{get(n,r,i){return r==="key"?Reflect.get(n,r,i):Reflect.get(n,r,i)||Reflect.get(e,r,i)}})}function vxt(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function bxt(t,e,n){return e.slice(0,-1).reduce((r,i)=>/^(__proto__)$/.test(i)?{}:r[i]=r[i]||{},t)[e[e.length-1]]=n,t}function yxt(t,e){return e.reduce((n,r)=>{const i=r.split(".");return bxt(n,i,vxt(t,i))},{})}function V6(t,{storage:e,serializer:n,key:r,debug:i}){try{const o=e==null?void 0:e.getItem(r);o&&t.$patch(n==null?void 0:n.deserialize(o))}catch(o){i&&console.error(o)}}function Y6(t,{storage:e,serializer:n,key:r,paths:i,debug:o}){try{const s=Array.isArray(i)?yxt(t,i):t;e.setItem(r,n.serialize(s))}catch(s){o&&console.error(s)}}function xxt(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:i}=e;if(!r)return;const o=(Array.isArray(r)?r.map(s=>U6(s,t)):[U6(r,t)]).map(({storage:s=localStorage,beforeRestore:a=null,afterRestore:l=null,serializer:d={serialize:JSON.stringify,deserialize:JSON.parse},key:h=i.$id,paths:p=null,debug:y=!1})=>{var w;return{storage:s,beforeRestore:a,afterRestore:l,serializer:d,key:((w=t.key)!=null?w:C=>C)(h),paths:p,debug:y}});i.$persist=()=>{o.forEach(s=>{Y6(i.$state,s)})},i.$hydrate=({runHooks:s=!0}={})=>{o.forEach(a=>{const{beforeRestore:l,afterRestore:d}=a;s&&(l==null||l(e)),V6(i,a),s&&(d==null||d(e))})},o.forEach(s=>{const{beforeRestore:a,afterRestore:l}=s;a==null||a(e),V6(i,s),l==null||l(e),i.$subscribe((d,h)=>{Y6(h,s)},{detached:!0})})}}var uCt=xxt();const wxt="vue-svg-inline-plugin",Sxt="2.2.3",Cxt="Vue plugin for inline replacement of SVG images with actual content of SVG files.",Ext="src/index.js",Axt="src/index.d.ts",kxt="dist/vue-svg-inline-plugin.min.js",Txt="dist/vue-svg-inline-plugin.min.js",_xt=["index.js","dist/*.js","src/*.{js,d.ts}"],Dxt={example:"examples"},$xt={build:"npm run remove && npm run build:modern && npm run build:default","build:default":"npm run remove:default && npx cross-env IMPORT_POLYFILLS=1 npm run webpack","build:modern":"npm run remove:modern && npm run webpack",remove:"npm run remove:default && npm run remove:modern","remove:default":"npx rimraf dist/vue-svg-inline-plugin.min.js","remove:modern":"npx rimraf dist/vue-svg-inline-plugin-modern.min.js",webpack:"npx webpack --progress --color",test:'echo "Error: no test specified" && exit 1'},Oxt={type:"git",url:"git+https://github.com/oliverfindl/vue-svg-inline-plugin.git"},Ixt=["vue","vuejs","plugin","vue-plugin","svg","inline","sprites","symbols","vue-svg-inline-plugin"],Rxt="Oliver Findl",Mxt="MIT",Pxt={url:"https://github.com/oliverfindl/vue-svg-inline-plugin/issues"},Nxt="https://github.com/oliverfindl/vue-svg-inline-plugin#readme",Lxt={"core-js":"^3.25.2","intersection-observer":"^0.12.2","whatwg-fetch":"^3.6.2"},Fxt={"@babel/core":"^7.19.1","@babel/eslint-parser":"^7.19.1","@babel/preset-env":"^7.19.1","babel-loader":"^8.2.5","babel-plugin-remove-template-literals-whitespace":"^1.0.4","cross-env":"^7.0.3",eslint:"^8.23.1","eslint-plugin-vue":"^9.5.1","eslint-webpack-plugin":"^3.2.0",rimraf:"^3.0.2","terser-webpack-plugin":"^5.3.6",webpack:"^5.74.0","webpack-bundle-analyzer":"^4.6.1","webpack-cli":"^4.10.0"},HG={name:wxt,version:Sxt,description:Cxt,main:Ext,types:Axt,unpkg:kxt,jsdelivr:Txt,files:_xt,directories:Dxt,scripts:$xt,repository:Oxt,keywords:Ixt,author:Rxt,license:Mxt,bugs:Pxt,homepage:Nxt,dependencies:Lxt,devDependencies:Fxt};/**
 * @author Oliver Findl
 * @version 2.2.3
 * @license MIT
 */const Gt=HG.name,Bxt=HG.version;typeof IMPORT_POLYFILLS<"u"&&IMPORT_POLYFILLS&&require("./polyfills");const X6={directive:{name:"v-svg-inline",spriteModifierName:"sprite"},attributes:{clone:["viewbox"],merge:["class","style"],add:[{name:"focusable",value:!1},{name:"role",value:"presentation"},{name:"tabindex",value:-1}],data:[],remove:["alt","src","data-src"]},cache:{version:Bxt,persistent:!0,removeRevisions:!0},intersectionObserverOptions:{},axios:null,xhtml:!1},Hy="observer",bm="container",hh=`${Gt}-flags`,jG=`${Gt}-sprite`,G6=`${jG}-${bm}`,q6=/.+\.svg(?:[?#].*)?$/i,rk=/<svg(\s+[^>]+)?>([\s\S]+)<\/svg>/i,jy=/\s*([^\s=]+)[\s=]+(?:"([^"]*)"|'([^']*)')?\s*/g,ik=/^[a-z](?:[a-z0-9-:]*[a-z0-9])?$/i,zxt=/^v-/i,ph=/\s+/g,Hxt=/[\n\t]+/g,jxt=new Set([200,304]),Wxt=(t=null,e={})=>{const n="string",r="function",i="object";if(!t)throw new Error(`[${Gt}] Required argument is missing! [VueOrApp]`);if(![r,i].includes(typeof t))throw new TypeError(`[${Gt}] Required argument is not valid! [VueOrApp]`);if(!t.directive)throw new Error(`[${Gt}] Required method is missing! [VueOrApp.directive]`);if(typeof t.directive!==r)throw new TypeError(`[${Gt}] Required method is not valid! [VueOrApp.directive]`);if(!t.version)throw new Error(`[${Gt}] Required property is missing! [VueOrApp.version]`);if(typeof t.version!==n)throw new TypeError(`[${Gt}] Required property is not valid! [VueOrApp.version]`);if(t.version.startsWith("1."))throw new Error(`[${Gt}] Vue@1 is not supported!`);["directive","attributes","cache","intersectionObserverOptions"].forEach(X=>e[X]=Object.assign({},X6[X],e[X]||{})),e=Object.assign({},X6,e);for(const X in e.directive)if(e.directive[X]=e.directive[X].toString().trim().toLowerCase(),!e.directive[X]||X==="name"&&!ik.test(e.directive[X]))throw new TypeError(`[${Gt}] Option is not valid! [options.directives.${X}="${e.directives[X]}"]`);e.directive.name=e.directive.name.replace(zxt,"");for(const X in e.attributes){if(!Array.isArray(e.attributes[X]))throw new TypeError(`[${Gt}] Option is not valid! [options.attributes.${X}=${JSON.stringify(e.attributes[X])}]`);e.attributes[X]=X==="add"?e.attributes[X].map(Z=>({name:Z.name.toString().trim().toLowerCase(),value:Z.value.toString().trim()})):e.attributes[X].map(Z=>Z.toString().trim().toLowerCase()),e.attributes[X]=new Set(e.attributes[X])}for(const X in e.cache)e.cache[X]=X==="version"?e.cache[X].toString().trim().toLowerCase():!!e.cache[X];e.xhtml=!!e.xhtml;const o=t.version.startsWith("3.");e._fetch="fetch"in window&&typeof fetch===r,e._axios="axios"in window&&typeof axios===r;const s=(X=null)=>!!X&&typeof X===r&&"get"in X&&typeof X.get===r;let a=!1;if(e.axios=((a=s(e.axios))?e.axios:null)||(e._axios&&"create"in axios&&typeof axios.create===r?axios.create():null),e._axios=a||s(e.axios),!e._fetch&&!e._axios)throw new Error(`[${Gt}] Feature is not supported by browser! [fetch || axios]`);e._observer="IntersectionObserver"in window,e._observer||console.error(`[${Gt}] Feature is not supported by browser! Disabling lazy processing of image nodes. [IntersectionObserver]`),e._storage="localStorage"in window,!e._storage&&e.cache.persistent&&console.error(`[${Gt}] Feature is not supported by browser! Disabling persistent cache of SVG files. [localStorage]`);const l=`${Gt}:${e.cache.version}`;e._storage&&e.cache.removeRevisions&&Object.entries(localStorage).map(X=>X.shift()).filter(X=>X.startsWith(`${Gt}:`)&&!X.endsWith(`:${e.cache.version}`)).forEach(X=>localStorage.removeItem(X));const d=e._storage&&e.cache.persistent?new Map(JSON.parse(localStorage.getItem(l)||"[]")):new Map,h=new Set,p=new Map,y=()=>{if(!e._observer)throw new Error(`[${Gt}] Feature is not supported by browser! [IntersectionObserver]`);if(p.has(Hy))throw new Error(`[${Gt}] Can not create image node intersection observer, intersection observer already exists!`);const X=new IntersectionObserver((Z,te)=>{for(const ae of Z){if(!ae.isIntersecting)continue;const ye=ae.target;H(ye),te.unobserve(ye)}},e.intersectionObserverOptions);return p.set(Hy,X),X},w=()=>p.has(Hy)?p.get(Hy):y(),C=()=>{if(p.has(bm))throw new Error(`[${Gt}] Can not create SVG symbol container node, container node already exists!`);let X=D(`<svg xmlns="http://www.w3.org/2000/svg" id="${G6}" style="display: none !important;"></svg>`);return document.body.appendChild(X),p.set(bm,X=document.getElementById(G6)),X},k=()=>p.has(bm)?p.get(bm):C(),D=(X="")=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [string]`);if(X=X.toString().trim(),!X.startsWith("<")||!X.endsWith(">"))throw new TypeError(`[${Gt}] Argument is not valid! [string="${X}"]`);return X=X.replace(Hxt,""),document.createRange().createContextualFragment(X)},I=(X=null,Z=null)=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [node]`);if(!Z)throw new Error(`[${Gt}] Required argument is missing! [newNode]`);if(!X.parentNode)throw new Error(`[${Gt}] Required property is missing! [node.parentNode]`);X.parentNode.replaceChild(Z,X)},_=(X="")=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [string]`);X=X.toString().trim();const Z=new Map;jy.lastIndex=0;let te;for(;te=jy.exec(X);){te.index===jy.lastIndex&&jy.lastIndex++;const ae=(te[1]||"").trim().toLowerCase();if(!ae||ae.startsWith("<")||ae.endsWith(">"))continue;if(!ik.test(ae))throw new TypeError(`[${Gt}] Attribute name is not valid! [attribute="${ae}"]`);const ye=(te[2]||te[3]||"").trim();Z.set(ae,ye||(e.xhtml?ae:""))}return Z},L=(X=null)=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [namedNodeAttributeMap]`);if(!(X instanceof NamedNodeMap))throw new TypeError(`[${Gt}] Argument is not valid! [namedNodeAttributeMap]`);return new Map([...X].map(({name:te,value:ae})=>{if(te=(te||"").trim().toLowerCase(),!ik.test(te))throw new TypeError(`[${Gt}] Attribute name is not valid! [attribute="${te}"]`);return ae=(ae||"").trim(),[te,ae||(e.xhtml?te:"")]}))},M=(X="")=>{if(!e._fetch&&!e._axios)throw new Error(`[${Gt}] Feature is not supported by browser! [fetch || axios]`);if(!X)throw new Error(`[${Gt}] Required argument is missing! [path]`);if(X=X.toString().trim(),!q6.test(X))throw new TypeError(`[${Gt}] Argument is not valid! [path="${X}"]`);return new Promise((Z,te)=>{const ae={path:X};if(d.has(ae.path))return ae.content=d.get(ae.path),Z(ae);(e._axios?e.axios.get:fetch)(ae.path).then(ye=>{if(!jxt.has(ye.status|0))throw new Error(`Wrong response status! [response.status=${ye.status}]`);return e._axios?ye.data.toString():ye.text()}).then(ye=>(ae.content=ye.trim(),d.set(ae.path,ae.content),e._storage&&e.cache.persistent&&localStorage.setItem(l,JSON.stringify([...d])),Z(ae))).catch(te)})},F=(X=null,Z=null)=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [file]`);if(!Z)throw new Error(`[${Gt}] Required argument is missing! [node]`);if(!X.path)throw new Error(`[${Gt}] Required property is missing! [file.path]`);if(X.path=X.path.toString().trim(),!q6.test(X.path))throw new TypeError(`[${Gt}] Argument property is not valid! [file.path="${X.path}"]`);if(!X.content)throw new Error(`[${Gt}] Required property is missing! [file.content]`);if(X.content=X.content.toString().trim(),!rk.test(X.content))throw new TypeError(`[${Gt}] Argument property is not valid! [file.content="${X.content}"]`);if(!Z.outerHTML)throw new Error(`[${Gt}] Required property is missing! [node.outerHTML]`);return Z[hh].has("sprite")&&(X.content=X.content.replace(rk,(te,ae,ye)=>{const ve=h.has(X.path),se=`${jG}-${ve?[...h].indexOf(X.path):h.size}`;if(!ve){const J=D(`
						<svg xmlns="http://www.w3.org/2000/svg">
							<symbol id="${se}"${ae}>
								${ye}
							</symbol>
						</svg>
					`);k().appendChild(J.firstChild.firstChild),h.add(X.path)}return`
					<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"${e.attributes.clone.size&&(ae=_(ae))?` ${[...e.attributes.clone].filter(J=>!!J&&ae.has(J)).map(J=>`${J}="${ae.get(J)}"`).join(" ")}`:""}>
						<use xlink:href="#${se}" href="#${se}"></use>
					</svg>
				`})),X.content.replace(rk,(te,ae,ye)=>{const ve=_(ae),se=L(Z.attributes);ae=new Map([...ve,...se]);const J=new Set(["class"]);for(const B of e.attributes.merge){const V=ve.has(B)?ve.get(B).split(ph).filter(fe=>!!fe):[],q=se.has(B)?se.get(B).split(ph).filter(fe=>!!fe):[];if(e.xhtml&&!V.length&&!q.length)continue;const ce=[...V,...q];ae.set(B,(J.has(B)?[...new Set(ce)]:ce).join(" ").trim())}for(const B of e.attributes.add){let V=B.value.split(ph).filter(q=>!!q);if(ae.has(B.name)){if(!e.attributes.merge.has(B.name))throw new Error(`[${Gt}] Can not add attribute, attribute already exists. [${B.name}]`);const q=ae.get(B.name).split(ph).filter(ce=>!!ce);if(e.xhtml&&!V.length&&!q.length)continue;V=[...q,...V]}ae.set(B.name,(J.has(B.name)?[...new Set(V)]:V).join(" ").trim())}for(const B of e.attributes.data){if(!ae.has(B))continue;let V=ae.get(B).split(ph).filter(ce=>!!ce);const q=`data-${B}`;if(ae.has(q)){if(!e.attributes.merge.has(q))throw new Error(`[${Gt}] Can not transform attribute to data-attribute, data-attribute already exists. [${B}]`);const ce=ae.get(q).split(ph).filter(fe=>!!fe);if(e.xhtml&&!V.length&&!ce.length)continue;V=[...ce,...V]}ae.set(q,(J.has(B)?[...new Set(V)]:V).join(" ").trim()),e.attributes.remove.has(B)||e.attributes.remove.add(B)}for(const B of e.attributes.remove)ae.has(B)&&ae.delete(B);return`
				<svg${ae.size?` ${[...ae.keys()].filter(B=>!!B).map(B=>`${B}="${ae.get(B)}"`).join(" ")}`:""}>
					${ye}
				</svg>
			`})},H=(X=null)=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [node]`);if(!X.dataset.src&&!X.src)throw new Error(`[${Gt}] Required property is missing! [node.data-src || node.src]`);X.dataset.src&&(X.dataset.src=X.dataset.src.toString().trim()),X.src&&(X.src=X.src.toString().trim()),M(X.dataset.src||X.src).then(Z=>{const te=F(Z,X),ae=D(te);I(X,ae)}).catch(Z=>console.error(`[${Gt}] ${Z.toString()}`))},G=(X=null,Z=null,te=null)=>{if(!X)throw new Error(`[${Gt}] Required argument is missing! [node]`);if(X.tagName!=="IMG")throw new Error(`[${Gt}] Required argument is not valid! [node]`);if(!te)throw new Error(`[${Gt}] Required argument is missing! [vnode]`);if(X[hh]||(X[hh]=new Set),X[hh].has("processed"))return;X[hh].add("processed");const ae=o?te.dirs:te.data.directives;if(ae.length>1)throw new Error(`[${Gt}] Node has more than 1 directive! [${o?"vnode.dirs":"vnode.data.directives"}]`);ae[0].modifiers[e.directive.spriteModifierName]&&X[hh].add("sprite"),!e._observer&&X.dataset.src&&(X.src=X.dataset.src,delete X.dataset.src),X.dataset.src?w().observe(X):H(X)};t.directive(e.directive.name,o?{beforeMount:G}:{bind:G})},dCt={install:Wxt};function JI(t){this.j={},this.jr=[],this.jd=null,this.t=t}JI.prototype={accepts:function(){return!!this.t},tt:function(e,n){if(n&&n.j)return this.j[e]=n,n;var r=n,i=this.j[e];if(i)return r&&(i.t=r),i;i=Zn();var o=ow(this,e);return o?(Object.assign(i.j,o.j),i.jr.append(o.jr),i.jr=o.jd,i.t=r||o.t):i.t=r,this.j[e]=i,i}};var Zn=function(){return new JI},Ht=function(e){return new JI(e)},vt=function(e,n,r){e.j[n]||(e.j[n]=r)},ri=function(e,n,r){e.jr.push([n,r])},ow=function(e,n){var r=e.j[n];if(r)return r;for(var i=0;i<e.jr.length;i++){var o=e.jr[i][0],s=e.jr[i][1];if(o.test(n))return s}return e.jd},pn=function(e,n,r){for(var i=0;i<n.length;i++)vt(e,n[i],r)},Uxt=function(e,n){for(var r=0;r<n.length;r++){var i=n[r][0],o=n[r][1];vt(e,i,o)}},vd=function(e,n,r,i){for(var o=0,s=n.length,a;o<s&&(a=e.j[n[o]]);)e=a,o++;if(o>=s)return[];for(;o<s-1;)a=i(),vt(e,n[o],a),e=a,o++;vt(e,n[s-1],r)},Xs="DOMAIN",Tl="LOCALHOST",$a="TLD",ys="NUM",Zp="PROTOCOL",ZI="MAILTO",WG="WS",QI="NL",Bh="OPENBRACE",iv="OPENBRACKET",ov="OPENANGLEBRACKET",sv="OPENPAREN",_d="CLOSEBRACE",zh="CLOSEBRACKET",Hh="CLOSEANGLEBRACKET",jh="CLOSEPAREN",sw="AMPERSAND",aw="APOSTROPHE",lw="ASTERISK",Wh="AT",cw="BACKSLASH",uw="BACKTICK",dw="CARET",av="COLON",eR="COMMA",fw="DOLLAR",su="DOT",hw="EQUALS",tR="EXCLAMATION",pw="HYPHEN",gw="PERCENT",mw="PIPE",vw="PLUS",bw="POUND",yw="QUERY",nR="QUOTE",rR="SEMI",Ol="SLASH",xw="TILDE",ww="UNDERSCORE",Sw="SYM",Vxt=Object.freeze({__proto__:null,DOMAIN:Xs,LOCALHOST:Tl,TLD:$a,NUM:ys,PROTOCOL:Zp,MAILTO:ZI,WS:WG,NL:QI,OPENBRACE:Bh,OPENBRACKET:iv,OPENANGLEBRACKET:ov,OPENPAREN:sv,CLOSEBRACE:_d,CLOSEBRACKET:zh,CLOSEANGLEBRACKET:Hh,CLOSEPAREN:jh,AMPERSAND:sw,APOSTROPHE:aw,ASTERISK:lw,AT:Wh,BACKSLASH:cw,BACKTICK:uw,CARET:dw,COLON:av,COMMA:eR,DOLLAR:fw,DOT:su,EQUALS:hw,EXCLAMATION:tR,HYPHEN:pw,PERCENT:gw,PIPE:mw,PLUS:vw,POUND:bw,QUERY:yw,QUOTE:nR,SEMI:rR,SLASH:Ol,TILDE:xw,UNDERSCORE:ww,SYM:Sw}),K6="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),tm=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,nm=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,rm=/\uFE0F/,im=/\d/,J6=/\s/;function Yxt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=Zn(),n=Ht(ys),r=Ht(Xs),i=Zn(),o=Ht(WG),s=[[im,r],[tm,r],[nm,r],[rm,r]],a=function(){var M=Ht(Xs);return M.j={"-":i},M.jr=[].concat(s),M},l=function(M){var F=a();return F.t=M,F};Uxt(e,[["'",Ht(aw)],["{",Ht(Bh)],["[",Ht(iv)],["<",Ht(ov)],["(",Ht(sv)],["}",Ht(_d)],["]",Ht(zh)],[">",Ht(Hh)],[")",Ht(jh)],["&",Ht(sw)],["*",Ht(lw)],["@",Ht(Wh)],["`",Ht(uw)],["^",Ht(dw)],[":",Ht(av)],[",",Ht(eR)],["$",Ht(fw)],[".",Ht(su)],["=",Ht(hw)],["!",Ht(tR)],["-",Ht(pw)],["%",Ht(gw)],["|",Ht(mw)],["+",Ht(vw)],["#",Ht(bw)],["?",Ht(yw)],['"',Ht(nR)],["/",Ht(Ol)],[";",Ht(rR)],["~",Ht(xw)],["_",Ht(ww)],["\\",Ht(cw)]]),vt(e,`
`,Ht(QI)),ri(e,J6,o),vt(o,`
`,Zn()),ri(o,J6,o);for(var d=0;d<K6.length;d++)vd(e,K6[d],l($a),a);var h=a(),p=a(),y=a(),w=a();vd(e,"file",h,a),vd(e,"ftp",p,a),vd(e,"http",y,a),vd(e,"mailto",w,a);var C=a(),k=Ht(Zp),D=Ht(ZI);vt(p,"s",C),vt(p,":",k),vt(y,"s",C),vt(y,":",k),vt(h,":",k),vt(C,":",k),vt(w,":",D);for(var I=a(),_=0;_<t.length;_++)vd(e,t[_],I,a);return vt(I,":",k),vd(e,"localhost",l(Tl),a),ri(e,im,n),ri(e,tm,r),ri(e,nm,r),ri(e,rm,r),ri(n,im,n),ri(n,tm,r),ri(n,nm,r),ri(n,rm,r),vt(n,"-",i),vt(r,"-",i),vt(i,"-",i),ri(r,im,r),ri(r,tm,r),ri(r,nm,r),ri(r,rm,r),ri(i,im,r),ri(i,tm,r),ri(i,nm,r),ri(i,rm,r),e.jd=Ht(Sw),e}function Xxt(t,e){for(var n=Gxt(e.replace(/[A-Z]/g,function(w){return w.toLowerCase()})),r=n.length,i=[],o=0,s=0;s<r;){for(var a=t,l=null,d=0,h=null,p=-1,y=-1;s<r&&(l=ow(a,n[s]));)a=l,a.accepts()?(p=0,y=0,h=a):p>=0&&(p+=n[s].length,y++),d+=n[s].length,o+=n[s].length,s++;o-=p,s-=y,d-=p,i.push({t:h.t,v:e.substr(o-d,d),s:o-d,e:o})}return i}function Gxt(t){for(var e=[],n=t.length,r=0;r<n;){var i=t.charCodeAt(r),o=void 0,s=i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function _x(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_x=function(e){return typeof e}:_x=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_x(t)}var Ri={defaultProtocol:"http",events:null,format:Z6,formatHref:Z6,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function UG(t){t=t||{},this.defaultProtocol="defaultProtocol"in t?t.defaultProtocol:Ri.defaultProtocol,this.events="events"in t?t.events:Ri.events,this.format="format"in t?t.format:Ri.format,this.formatHref="formatHref"in t?t.formatHref:Ri.formatHref,this.nl2br="nl2br"in t?t.nl2br:Ri.nl2br,this.tagName="tagName"in t?t.tagName:Ri.tagName,this.target="target"in t?t.target:Ri.target,this.rel="rel"in t?t.rel:Ri.rel,this.validate="validate"in t?t.validate:Ri.validate,this.truncate="truncate"in t?t.truncate:Ri.truncate,this.className="className"in t?t.className:Ri.className,this.attributes=t.attributes||Ri.attributes,this.ignoreTags=[];for(var e=("ignoreTags"in t)?t.ignoreTags:Ri.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}UG.prototype={resolve:function(e){var n=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",n,e),tagName:this.get("tagName",n,e),className:this.get("className",n,e),target:this.get("target",n,e),rel:this.get("rel",n,e),events:this.getObject("events",n,e),attributes:this.getObject("attributes",n,e),truncate:this.get("truncate",n,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,n,r){var i=this[e];if(!i)return i;var o;switch(_x(i)){case"function":return i(n,r.t);case"object":return o=r.t in i?i[r.t]:Ri[e],typeof o=="function"?o(n,r.t):o}return i},getObject:function(e,n,r){var i=this[e];return typeof i=="function"?i(n,r.t):i}};function Z6(t){return t}function qxt(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Object.create(t.prototype);for(var i in n)r[i]=n[i];return r.constructor=e,e.prototype=r,e}function Cw(){}Cw.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ri.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}}};function Nf(t,e){function n(r,i){this.t=t,this.v=r,this.tk=i}return qxt(Cw,n,e),n}var VG=Nf("email",{isLink:!0}),aD=Nf("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),lD=Nf("text"),YG=Nf("nl"),Wc=Nf("url",{isLink:!0,toHref:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ri.defaultProtocol,n=this.tk,r=!1,i=!1,o=[],s=0;n[s].t===Zp;)r=!0,o.push(n[s].v),s++;for(;n[s].t===Ol;)i=!0,o.push(n[s].v),s++;for(;s<n.length;s++)o.push(n[s].v);return o=o.join(""),r||i||(o="".concat(e,"://").concat(o)),o},hasProtocol:function(){return this.tk[0].t===Zp}}),Kxt=Object.freeze({__proto__:null,MultiToken:Cw,Base:Cw,createTokenClass:Nf,MailtoEmail:VG,Email:aD,Text:lD,Nl:YG,Url:Wc});function Jxt(){var t=Zn(),e=Zn(),n=Zn(),r=Zn(),i=Zn(),o=Zn(),s=Zn(),a=Ht(Wc),l=Zn(),d=Ht(Wc),h=Ht(Wc),p=Zn(),y=Zn(),w=Zn(),C=Zn(),k=Zn(),D=Ht(Wc),I=Ht(Wc),_=Ht(Wc),L=Ht(Wc),M=Zn(),F=Zn(),H=Zn(),G=Zn(),X=Zn(),Z=Zn(),te=Ht(aD),ae=Zn(),ye=Ht(aD),ve=Ht(VG),se=Zn(),J=Zn(),B=Zn(),V=Zn(),q=Ht(YG);vt(t,QI,q),vt(t,Zp,e),vt(t,ZI,n),vt(e,Ol,r),vt(r,Ol,i),vt(t,$a,o),vt(t,Xs,o),vt(t,Tl,a),vt(t,ys,o),vt(i,$a,h),vt(i,Xs,h),vt(i,ys,h),vt(i,Tl,h),vt(o,su,s),vt(X,su,Z),vt(s,$a,a),vt(s,Xs,o),vt(s,ys,o),vt(s,Tl,o),vt(Z,$a,te),vt(Z,Xs,X),vt(Z,ys,X),vt(Z,Tl,X),vt(a,su,s),vt(te,su,Z),vt(a,av,l),vt(a,Ol,h),vt(l,ys,d),vt(d,Ol,h),vt(te,av,ae),vt(ae,ys,ye);var ce=[sw,lw,Wh,cw,uw,dw,fw,Xs,hw,pw,Tl,ys,gw,mw,vw,bw,Zp,Ol,Sw,xw,$a,ww],fe=[aw,Hh,_d,zh,jh,av,eR,su,tR,ov,Bh,iv,sv,yw,nR,rR];vt(h,Bh,y),vt(h,iv,w),vt(h,ov,C),vt(h,sv,k),vt(p,Bh,y),vt(p,iv,w),vt(p,ov,C),vt(p,sv,k),vt(y,_d,h),vt(w,zh,h),vt(C,Hh,h),vt(k,jh,h),vt(D,_d,h),vt(I,zh,h),vt(_,Hh,h),vt(L,jh,h),vt(M,_d,h),vt(F,zh,h),vt(H,Hh,h),vt(G,jh,h),pn(y,ce,D),pn(w,ce,I),pn(C,ce,_),pn(k,ce,L),pn(y,fe,M),pn(w,fe,F),pn(C,fe,H),pn(k,fe,G),pn(D,ce,D),pn(I,ce,I),pn(_,ce,_),pn(L,ce,L),pn(D,fe,D),pn(I,fe,I),pn(_,fe,_),pn(L,fe,L),pn(M,ce,D),pn(F,ce,I),pn(H,ce,_),pn(G,ce,L),pn(M,fe,M),pn(F,fe,F),pn(H,fe,H),pn(G,fe,G),pn(h,ce,h),pn(p,ce,h),pn(h,fe,p),pn(p,fe,p),vt(n,$a,ve),vt(n,Xs,ve),vt(n,ys,ve),vt(n,Tl,ve),pn(ve,ce,ve),pn(ve,fe,se),pn(se,ce,ve),pn(se,fe,se);var Ae=[sw,aw,lw,cw,uw,dw,_d,fw,Xs,hw,pw,ys,Bh,gw,mw,vw,bw,yw,Ol,Sw,xw,$a,ww];return pn(o,Ae,J),vt(o,Wh,B),pn(a,Ae,J),vt(a,Wh,B),pn(s,Ae,J),pn(J,Ae,J),vt(J,Wh,B),vt(J,su,V),pn(V,Ae,J),vt(B,$a,X),vt(B,Xs,X),vt(B,ys,X),vt(B,Tl,te),t}function Zxt(t,e,n){for(var r=n.length,i=0,o=[],s=[];i<r;){for(var a=t,l=null,d=null,h=0,p=null,y=-1;i<r&&!(l=ow(a,n[i].t));)s.push(n[i++]);for(;i<r&&(d=l||ow(a,n[i].t));)l=null,a=d,a.accepts()?(y=0,p=a):y>=0&&y++,i++,h++;if(y<0)for(var w=i-h;w<i;w++)s.push(n[w]);else{s.length>0&&(o.push(ok(lD,e,s)),s=[]),i-=y,h-=y;var C=p.t,k=n.slice(i-h,i);o.push(ok(C,e,k))}}return s.length>0&&o.push(ok(lD,e,s)),o}function ok(t,e,n){var r=n[0].s,i=n[n.length-1].e,o=e.substr(r,i-r);return new t(o,n)}var Gs={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function Qxt(){Gs.scanner={start:Yxt(Gs.customProtocols),tokens:Vxt},Gs.parser={start:Jxt(),tokens:Kxt};for(var t={createTokenClass:Nf},e=0;e<Gs.pluginQueue.length;e++)Gs.pluginQueue[e][1]({scanner:Gs.scanner,parser:Gs.parser,utils:t});Gs.initialized=!0}function e1t(t){return Gs.initialized||Qxt(),Zxt(Gs.parser.start,t,Xxt(Gs.scanner.start,t))}var t1t={nbsp:" "},n1t=/^#[xX]([A-Fa-f0-9]+)$/,r1t=/^#([0-9]+)$/,i1t=/^([A-Za-z0-9]+)$/,o1t=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var n=e.match(n1t);if(n)return"&#x"+n[1]+";";if(n=e.match(r1t),n)return"&#"+n[1]+";";if(n=e.match(i1t),n)return this.named[n[1]]||"&"+n[1]+";"}},t}(),s1t=/[\t\n\f ]/,a1t=/[A-Za-z]/,l1t=/\r\n?/g;function Ii(t){return s1t.test(t)}function Q6(t){return a1t.test(t)}function c1t(t){return t.replace(l1t,`
`)}var u1t=function(){function t(e,n,r){r===void 0&&(r="precompile"),this.delegate=e,this.entityParser=n,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var o=this.peek();if(o==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&o===`
`){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var o=this.peek(),s=this.tagNameBuffer;o==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):o==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(o))},tagOpen:function(){var o=this.consume();o==="!"?this.transitionTo("markupDeclarationOpen"):o==="/"?this.transitionTo("endTagOpen"):(o==="@"||o===":"||Q6(o))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(o))},markupDeclarationOpen:function(){var o=this.consume();if(o==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=o.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var o=this.consume();Ii(o)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var o=this.consume();Ii(o)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(o.toLowerCase()))},doctypeName:function(){var o=this.consume();Ii(o)?this.transitionTo("afterDoctypeName"):o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(o.toLowerCase())},afterDoctypeName:function(){var o=this.consume();if(!Ii(o))if(o===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=o.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=s.toUpperCase()==="PUBLIC",l=s.toUpperCase()==="SYSTEM";(a||l)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):l&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var o=this.peek();Ii(o)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):o==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):o==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):o===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var o=this.consume();o==='"'?this.transitionTo("afterDoctypePublicIdentifier"):o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(o)},doctypePublicIdentifierSingleQuoted:function(){var o=this.consume();o==="'"?this.transitionTo("afterDoctypePublicIdentifier"):o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(o)},afterDoctypePublicIdentifier:function(){var o=this.consume();Ii(o)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):o==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):o==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var o=this.consume();Ii(o)||(o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):o==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):o==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var o=this.consume();o==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(o)},doctypeSystemIdentifierSingleQuoted:function(){var o=this.consume();o==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):o===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(o)},afterDoctypeSystemIdentifier:function(){var o=this.consume();Ii(o)||o===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var o=this.consume();o==="-"?this.transitionTo("commentStartDash"):o===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(o),this.transitionTo("comment"))},commentStartDash:function(){var o=this.consume();o==="-"?this.transitionTo("commentEnd"):o===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var o=this.consume();o==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(o)},commentEndDash:function(){var o=this.consume();o==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+o),this.transitionTo("comment"))},commentEnd:function(){var o=this.consume();o===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+o),this.transitionTo("comment"))},tagName:function(){var o=this.consume();Ii(o)?this.transitionTo("beforeAttributeName"):o==="/"?this.transitionTo("selfClosingStartTag"):o===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(o)},endTagName:function(){var o=this.consume();Ii(o)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):o==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):o===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(o)},beforeAttributeName:function(){var o=this.peek();if(Ii(o)){this.consume();return}else o==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):o===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):o==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(o)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var o=this.peek();Ii(o)?(this.transitionTo("afterAttributeName"),this.consume()):o==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):o==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):o===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):o==='"'||o==="'"||o==="<"?(this.delegate.reportSyntaxError(o+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(o)):(this.consume(),this.delegate.appendToAttributeName(o))},afterAttributeName:function(){var o=this.peek();if(Ii(o)){this.consume();return}else o==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):o==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):o===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(o))},beforeAttributeValue:function(){var o=this.peek();Ii(o)?this.consume():o==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):o==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):o===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(o))},attributeValueDoubleQuoted:function(){var o=this.consume();o==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):o==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(o)},attributeValueSingleQuoted:function(){var o=this.consume();o==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):o==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(o)},attributeValueUnquoted:function(){var o=this.peek();Ii(o)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):o==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):o==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):o===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(o))},afterAttributeValueQuoted:function(){var o=this.peek();Ii(o)?(this.consume(),this.transitionTo("beforeAttributeName")):o==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):o===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var o=this.peek();o===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var o=this.consume();(o==="@"||o===":"||Q6(o))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(o))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=c1t(e);this.index<this.input.length;){var n=this.states[this.state];if(n!==void 0)n.call(this);else throw new Error("unhandled state "+this.state)}},t.prototype.tokenizeEOF=function(){this.flushData()},t.prototype.flushData=function(){this.state==="data"&&(this.delegate.finishData(),this.transitionTo("beforeData"))},t.prototype.peek=function(){return this.input.charAt(this.index)},t.prototype.consume=function(){var e=this.peek();return this.index++,e===`
`?(this.line++,this.column=0):this.column++,e},t.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(e!==-1){var n=this.input.slice(this.index,e),r=this.entityParser.parse(n);if(r){for(var i=n.length;i;)this.consume(),i--;return this.consume(),r}}},t.prototype.markTagStart=function(){this.delegate.tagOpen()},t.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},t.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||e==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),d1t=function(){function t(e,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new u1t(this,e,n.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var n=0;n<arguments.length;n++)if(e.type===arguments[n])return e;throw new Error("token type was unexpectedly "+e.type)},t.prototype.push=function(e){this.token=e,this.tokens.push(e)},t.prototype.currentAttribute=function(){return this._currentAttribute},t.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},t.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},t.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},t.prototype.appendToDoctypePublicIdentifier=function(e){var n=this.current("Doctype");n.publicIdentifier===void 0?n.publicIdentifier=e:n.publicIdentifier+=e},t.prototype.appendToDoctypeSystemIdentifier=function(e){var n=this.current("Doctype");n.systemIdentifier===void 0?n.systemIdentifier=e:n.systemIdentifier+=e},t.prototype.endDoctype=function(){this.addLocInfo()},t.prototype.beginData=function(){this.push({type:"Chars",chars:""})},t.prototype.appendToData=function(e){this.current("Chars").chars+=e},t.prototype.finishData=function(){this.addLocInfo()},t.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},t.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},t.prototype.finishComment=function(){this.addLocInfo()},t.prototype.tagOpen=function(){},t.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},t.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},t.prototype.finishTag=function(){this.addLocInfo()},t.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},t.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},t.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},t.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},t.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},t.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},t.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},t.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},t}();function f1t(t,e){var n=new d1t(new o1t(t1t),e);return n.tokenize(t)}var h1t=UG,Xv="StartTag",iR="EndTag",Ew="Chars",p1t="Comment",g1t="Doctype";function m1t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=f1t(t),r=[],i=[];e=new h1t(e);for(var o=0;o<n.length;o++){var s=n[o];if(s.type===Xv){r.push(s);var a=s.tagName.toUpperCase(),l=a==="A"||e.ignoreTags.indexOf(a)>=0;if(!l)continue;var d=r.length;b1t(a,n,++o,r),o+=r.length-d-1;continue}else if(s.type!==Ew){r.push(s);continue}var h=v1t(s.chars,e);r.push.apply(r,h)}for(var p=0;p<r.length;p++){var y=r[p];switch(y.type){case Xv:{var w="<"+y.tagName;if(y.attributes.length>0){var C=x1t(y.attributes);w+=" "+C.join(" ")}w+=">",i.push(w);break}case iR:i.push("</".concat(y.tagName,">"));break;case Ew:i.push(y.chars);break;case p1t:i.push("<!--".concat(y.chars,"-->"));break;case g1t:{var k="<!DOCTYPE ".concat(y.name);y.publicIdentifier&&(k+=' PUBLIC "'.concat(y.publicIdentifier,'"')),y.systemIdentifier&&(k+=' "'.concat(y.systemIdentifier,'"')),k+=">",i.push(k);break}}}return i.join("")}function v1t(t,e){for(var n=e1t(t),r=[],i=0;i<n.length;i++){var o=n[i];if(o.t==="nl"&&e.nl2br){r.push({type:Xv,tagName:"br",attributes:[],selfClosing:!0});continue}else if(!o.isLink||!e.check(o)){r.push({type:Ew,chars:o.toString()});continue}var s=e.resolve(o),a=s.formatted,l=s.formattedHref,d=s.tagName,h=s.className,p=s.target,y=s.rel,w=s.attributes,C=s.truncate,k=[["href",l]];h&&k.push(["class",h]),p&&k.push(["target",p]),y&&k.push(["rel",y]),C&&a.length>C&&(a=a.substring(0,C)+"…");for(var D in w)k.push([D,w[D]]);r.push({type:Xv,tagName:d,attributes:k,selfClosing:!1}),r.push({type:Ew,chars:a}),r.push({type:iR,tagName:d})}return r}function b1t(t,e,n,r){for(var i=1;n<e.length&&i>0;){var o=e[n];o.type===Xv&&o.tagName.toUpperCase()===t?i++:o.type===iR&&o.tagName.toUpperCase()===t&&i--,r.push(o),n++}return r}function y1t(t){return t.replace(/"/g,"&quot;")}function x1t(t){for(var e=[],n=0;n<t.length;n++){var r=t[n][0],i=t[n][1];e.push("".concat(r,'="').concat(y1t(i),'"'))}return e}var Aw={},w1t={get exports(){return Aw},set exports(t){Aw=t}},Er={},Qp={},S1t={get exports(){return Qp},set exports(t){Qp=t}},Lf={};function XG(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function C1t(t,e,n){}function E1t(t,e,n){}var A1t=/javascript\s*\:/img;function k1t(t,e){return A1t.test(e)?"":e}Lf.whiteList=XG();Lf.getDefaultWhiteList=XG;Lf.onAttr=C1t;Lf.onIgnoreAttr=E1t;Lf.safeAttrValue=k1t;var T1t={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var r,i;if(Array.prototype.forEach)return t.forEach(e,n);for(r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},om=T1t;function _1t(t,e){t=om.trimRight(t),t[t.length-1]!==";"&&(t+=";");var n=t.length,r=!1,i=0,o=0,s="";function a(){if(!r){var h=om.trim(t.slice(i,o)),p=h.indexOf(":");if(p!==-1){var y=om.trim(h.slice(0,p)),w=om.trim(h.slice(p+1));if(y){var C=e(i,s.length,y,w,h);C&&(s+=C+"; ")}}}i=o+1}for(;o<n;o++){var l=t[o];if(l==="/"&&t[o+1]==="*"){var d=t.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,r=!1}else l==="("?r=!0:l===")"?r=!1:l===";"?r||a():l===`
`&&a()}return om.trim(s)}var D1t=_1t,Wy=Lf,$1t=D1t;function e9(t){return t==null}function O1t(t){var e={};for(var n in t)e[n]=t[n];return e}function GG(t){t=O1t(t||{}),t.whiteList=t.whiteList||Wy.whiteList,t.onAttr=t.onAttr||Wy.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Wy.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Wy.safeAttrValue,this.options=t}GG.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,n=e.options,r=n.whiteList,i=n.onAttr,o=n.onIgnoreAttr,s=n.safeAttrValue,a=$1t(t,function(l,d,h,p,y){var w=r[h],C=!1;if(w===!0?C=w:typeof w=="function"?C=w(p):w instanceof RegExp&&(C=w.test(p)),C!==!0&&(C=!1),p=s(h,p),!!p){var k={position:d,sourcePosition:l,source:y,isWhite:C};if(C){var D=i(h,p,k);return e9(D)?h+":"+p:D}else{var D=o(h,p,k);if(!e9(D))return D}}});return a};var I1t=GG;(function(t,e){var n=Lf,r=I1t;function i(s,a){var l=new r(a);return l.process(s)}e=t.exports=i,e.FilterCSS=r;for(var o in n)e[o]=n[o];typeof window<"u"&&(window.filterCSS=t.exports)})(S1t,Qp);var oR={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var r,i;if(Array.prototype.forEach)return t.forEach(e,n);for(r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,n=e.exec(t);return n?n.index:-1}},R1t=Qp.FilterCSS,M1t=Qp.getDefaultWhiteList,kw=oR;function qG(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var KG=new R1t;function P1t(t,e,n){}function N1t(t,e,n){}function L1t(t,e,n){}function F1t(t,e,n){}function JG(t){return t.replace(z1t,"&lt;").replace(H1t,"&gt;")}function B1t(t,e,n,r){if(n=rq(n),e==="href"||e==="src"){if(n=kw.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(e==="background"){if(Uy.lastIndex=0,Uy.test(n))return""}else if(e==="style"){if(t9.lastIndex=0,t9.test(n)||(n9.lastIndex=0,n9.test(n)&&(Uy.lastIndex=0,Uy.test(n))))return"";r!==!1&&(r=r||KG,n=r.process(n))}return n=iq(n),n}var z1t=/</g,H1t=/>/g,j1t=/"/g,W1t=/&quot;/g,U1t=/&#([a-zA-Z0-9]*);?/gim,V1t=/&colon;?/gim,Y1t=/&newline;?/gim,Uy=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,t9=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,n9=/u\s*r\s*l\s*\(.*/gi;function ZG(t){return t.replace(j1t,"&quot;")}function QG(t){return t.replace(W1t,'"')}function eq(t){return t.replace(U1t,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function tq(t){return t.replace(V1t,":").replace(Y1t," ")}function nq(t){for(var e="",n=0,r=t.length;n<r;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return kw.trim(e)}function rq(t){return t=QG(t),t=eq(t),t=tq(t),t=nq(t),t}function iq(t){return t=ZG(t),t=JG(t),t}function X1t(){return""}function G1t(t,e){typeof e!="function"&&(e=function(){});var n=!Array.isArray(t);function r(s){return n?!0:kw.indexOf(t,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,a,l){if(r(s))if(l.isClosing){var d="[/removed]",h=l.position+d.length;return i.push([o!==!1?o:l.position,h]),o=!1,d}else return o||(o=l.position),"[removed]";else return e(s,a,l)},remove:function(s){var a="",l=0;return kw.forEach(i,function(d){a+=s.slice(l,d[0]),l=d[1]}),a+=s.slice(l),a}}}function q1t(t){for(var e="",n=0;n<t.length;){var r=t.indexOf("<!--",n);if(r===-1){e+=t.slice(n);break}e+=t.slice(n,r);var i=t.indexOf("-->",r);if(i===-1)break;n=i+3}return e}function K1t(t){var e=t.split("");return e=e.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),e.join("")}Er.whiteList=qG();Er.getDefaultWhiteList=qG;Er.onTag=P1t;Er.onIgnoreTag=N1t;Er.onTagAttr=L1t;Er.onIgnoreTagAttr=F1t;Er.safeAttrValue=B1t;Er.escapeHtml=JG;Er.escapeQuote=ZG;Er.unescapeQuote=QG;Er.escapeHtmlEntities=eq;Er.escapeDangerHtml5Entities=tq;Er.clearNonPrintableCharacter=nq;Er.friendlyAttrValue=rq;Er.escapeAttrValue=iq;Er.onIgnoreTagStripAll=X1t;Er.StripTagBody=G1t;Er.stripCommentTag=q1t;Er.stripBlankChar=K1t;Er.cssFilter=KG;Er.getDefaultCSSWhiteList=M1t;var gC={},au=oR;function J1t(t){var e=au.spaceIndex(t),n;return e===-1?n=t.slice(1,-1):n=t.slice(1,e+1),n=au.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function Z1t(t){return t.slice(0,2)==="</"}function Q1t(t,e,n){var r="",i=0,o=!1,s=!1,a=0,l=t.length,d="",h="";e:for(a=0;a<l;a++){var p=t.charAt(a);if(o===!1){if(p==="<"){o=a;continue}}else if(s===!1){if(p==="<"){r+=n(t.slice(i,a)),o=a,i=a;continue}if(p===">"||a===l-1){r+=n(t.slice(i,o)),h=t.slice(o,a+1),d=J1t(h),r+=e(o,r.length,d,h,Z1t(h)),i=a+1,o=!1;continue}if(p==='"'||p==="'")for(var y=1,w=t.charAt(a-y);w.trim()===""||w==="=";){if(w==="="){s=p;continue e}w=t.charAt(a-++y)}}else if(p===s){s=!1;continue}}return i<l&&(r+=n(t.substr(i))),r}var ewt=/[^a-zA-Z0-9\\_:.-]/gim;function twt(t,e){var n=0,r=0,i=[],o=!1,s=t.length;function a(y,w){if(y=au.trim(y),y=y.replace(ewt,"").toLowerCase(),!(y.length<1)){var C=e(y,w||"");C&&i.push(C)}}for(var l=0;l<s;l++){var d=t.charAt(l),h,p;if(o===!1&&d==="="){o=t.slice(n,l),n=l+1,r=t.charAt(n)==='"'||t.charAt(n)==="'"?n:rwt(t,l+1);continue}if(o!==!1&&l===r){if(p=t.indexOf(d,l+1),p===-1)break;h=au.trim(t.slice(r+1,p)),a(o,h),o=!1,l=p,n=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),o===!1)if(p=nwt(t,l),p===-1){h=au.trim(t.slice(n,l)),a(h),o=!1,n=l+1;continue}else{l=p-1;continue}else if(p=iwt(t,l-1),p===-1){h=au.trim(t.slice(n,l)),h=r9(h),a(o,h),o=!1,n=l+1;continue}else continue}return n<t.length&&(o===!1?a(t.slice(n)):a(o,r9(au.trim(t.slice(n))))),au.trim(i.join(" "))}function nwt(t,e){for(;e<t.length;e++){var n=t[e];if(n!==" ")return n==="="?e:-1}}function rwt(t,e){for(;e<t.length;e++){var n=t[e];if(n!==" ")return n==="'"||n==='"'?e:-1}}function iwt(t,e){for(;e>0;e--){var n=t[e];if(n!==" ")return n==="="?e:-1}}function owt(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function r9(t){return owt(t)?t.substr(1,t.length-2):t}gC.parseTag=Q1t;gC.parseAttr=twt;var swt=Qp.FilterCSS,qs=Er,oq=gC,awt=oq.parseTag,lwt=oq.parseAttr,Dx=oR;function Vy(t){return t==null}function cwt(t){var e=Dx.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Dx.trim(t.slice(e+1,-1));var n=t[t.length-1]==="/";return n&&(t=Dx.trim(t.slice(0,-1))),{html:t,closing:n}}function uwt(t){var e={};for(var n in t)e[n]=t[n];return e}function dwt(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map(function(r){return r.toLowerCase()}):e[n.toLowerCase()]=t[n];return e}function sq(t){t=uwt(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=qs.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=dwt(t.whiteList||t.allowList):t.whiteList=qs.whiteList,t.onTag=t.onTag||qs.onTag,t.onTagAttr=t.onTagAttr||qs.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||qs.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||qs.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||qs.safeAttrValue,t.escapeHtml=t.escapeHtml||qs.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new swt(t.css))}sq.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,n=e.options,r=n.whiteList,i=n.onTag,o=n.onIgnoreTag,s=n.onTagAttr,a=n.onIgnoreTagAttr,l=n.safeAttrValue,d=n.escapeHtml,h=e.cssFilter;n.stripBlankChar&&(t=qs.stripBlankChar(t)),n.allowCommentTag||(t=qs.stripCommentTag(t));var p=!1;n.stripIgnoreTagBody&&(p=qs.StripTagBody(n.stripIgnoreTagBody,o),o=p.onIgnoreTag);var y=awt(t,function(w,C,k,D,I){var _={sourcePosition:w,position:C,isClosing:I,isWhite:Object.prototype.hasOwnProperty.call(r,k)},L=i(k,D,_);if(!Vy(L))return L;if(_.isWhite){if(_.isClosing)return"</"+k+">";var M=cwt(D),F=r[k],H=lwt(M.html,function(G,X){var Z=Dx.indexOf(F,G)!==-1,te=s(k,G,X,Z);return Vy(te)?Z?(X=l(k,G,X,h),X?G+'="'+X+'"':G):(te=a(k,G,X,Z),Vy(te)?void 0:te):te});return D="<"+k,H&&(D+=" "+H),M.closing&&(D+=" /"),D+=">",D}else return L=o(k,D,_),Vy(L)?d(D):L},d);return p&&(y=p.remove(y)),y};var fwt=sq;(function(t,e){var n=Er,r=gC,i=fwt;function o(a,l){var d=new i(l);return d.process(a)}e=t.exports=o,e.filterXSS=o,e.FilterXSS=i,function(){for(var a in n)e[a]=n[a];for(var l in r)e[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=t.exports);function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(w1t,Aw);const hwt=Aw,i9=(t,e)=>{const n=hwt(t);return m1t(n,e)},pwt={beforeMount(t,e){t.innerHTML=i9(t.innerHTML,e.value)},updated(t,e){t.innerHTML=i9(t.innerHTML,e.value)}},fCt={install(t){t.directive("linkify",pwt)}};var cD={},gwt={get exports(){return cD},set exports(t){cD=t}},lv={},mwt={get exports(){return lv},set exports(t){lv=t}};/*!
 * ApexCharts v3.38.0
 * (c) 2018-2023 ApexCharts
 * Released under the MIT License.
 */var o9;function vwt(){return o9||(o9=1,function(t,e){function n(re,c){var u=Object.keys(re);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(re);c&&(f=f.filter(function(g){return Object.getOwnPropertyDescriptor(re,g).enumerable})),u.push.apply(u,f)}return u}function r(re){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?n(Object(u),!0).forEach(function(f){l(re,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(u)):n(Object(u)).forEach(function(f){Object.defineProperty(re,f,Object.getOwnPropertyDescriptor(u,f))})}return re}function i(re){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i(re)}function o(re,c){if(!(re instanceof c))throw new TypeError("Cannot call a class as a function")}function s(re,c){for(var u=0;u<c.length;u++){var f=c[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(re,f.key,f)}}function a(re,c,u){return c&&s(re.prototype,c),u&&s(re,u),re}function l(re,c,u){return c in re?Object.defineProperty(re,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):re[c]=u,re}function d(re,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(c&&c.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),c&&p(re,c)}function h(re){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(re)}function p(re,c){return p=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u},p(re,c)}function y(re,c){if(c&&(typeof c=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(re)}function w(re){var c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var u,f=h(re);if(c){var g=h(this).constructor;u=Reflect.construct(f,arguments,g)}else u=f.apply(this,arguments);return y(this,u)}}function C(re,c){return function(u){if(Array.isArray(u))return u}(re)||function(u,f){var g=u==null?null:typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(g!=null){var v,b,x=[],E=!0,T=!1;try{for(g=g.call(u);!(E=(v=g.next()).done)&&(x.push(v.value),!f||x.length!==f);E=!0);}catch($){T=!0,b=$}finally{try{E||g.return==null||g.return()}finally{if(T)throw b}}return x}}(re,c)||D(re,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function k(re){return function(c){if(Array.isArray(c))return I(c)}(re)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(re)||D(re)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D(re,c){if(re){if(typeof re=="string")return I(re,c);var u=Object.prototype.toString.call(re).slice(8,-1);return u==="Object"&&re.constructor&&(u=re.constructor.name),u==="Map"||u==="Set"?Array.from(re):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?I(re,c):void 0}}function I(re,c){(c==null||c>re.length)&&(c=re.length);for(var u=0,f=new Array(c);u<c;u++)f[u]=re[u];return f}var _=function(){function re(){o(this,re)}return a(re,[{key:"shadeRGBColor",value:function(c,u){var f=u.split(","),g=c<0?0:255,v=c<0?-1*c:c,b=parseInt(f[0].slice(4),10),x=parseInt(f[1],10),E=parseInt(f[2],10);return"rgb("+(Math.round((g-b)*v)+b)+","+(Math.round((g-x)*v)+x)+","+(Math.round((g-E)*v)+E)+")"}},{key:"shadeHexColor",value:function(c,u){var f=parseInt(u.slice(1),16),g=c<0?0:255,v=c<0?-1*c:c,b=f>>16,x=f>>8&255,E=255&f;return"#"+(16777216+65536*(Math.round((g-b)*v)+b)+256*(Math.round((g-x)*v)+x)+(Math.round((g-E)*v)+E)).toString(16).slice(1)}},{key:"shadeColor",value:function(c,u){return re.isColorHex(u)?this.shadeHexColor(c,u):this.shadeRGBColor(c,u)}}],[{key:"bind",value:function(c,u){return function(){return c.apply(u,arguments)}}},{key:"isObject",value:function(c){return c&&i(c)==="object"&&!Array.isArray(c)&&c!=null}},{key:"is",value:function(c,u){return Object.prototype.toString.call(u)==="[object "+c+"]"}},{key:"listToArray",value:function(c){var u,f=[];for(u=0;u<c.length;u++)f[u]=c[u];return f}},{key:"extend",value:function(c,u){var f=this;typeof Object.assign!="function"&&(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(v),x=1;x<arguments.length;x++){var E=arguments[x];if(E!=null)for(var T in E)E.hasOwnProperty(T)&&(b[T]=E[T])}return b});var g=Object.assign({},c);return this.isObject(c)&&this.isObject(u)&&Object.keys(u).forEach(function(v){f.isObject(u[v])&&v in c?g[v]=f.extend(c[v],u[v]):Object.assign(g,l({},v,u[v]))}),g}},{key:"extendArray",value:function(c,u){var f=[];return c.map(function(g){f.push(re.extend(u,g))}),c=f}},{key:"monthMod",value:function(c){return c%12}},{key:"clone",value:function(c){if(re.is("Array",c)){for(var u=[],f=0;f<c.length;f++)u[f]=this.clone(c[f]);return u}if(re.is("Null",c))return null;if(re.is("Date",c))return c;if(i(c)==="object"){var g={};for(var v in c)c.hasOwnProperty(v)&&(g[v]=this.clone(c[v]));return g}return c}},{key:"log10",value:function(c){return Math.log(c)/Math.LN10}},{key:"roundToBase10",value:function(c){return Math.pow(10,Math.floor(Math.log10(c)))}},{key:"roundToBase",value:function(c,u){return Math.pow(u,Math.floor(Math.log(c)/Math.log(u)))}},{key:"parseNumber",value:function(c){return c===null?c:parseFloat(c)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(c){var u=String(c).split(/[eE]/);if(u.length===1)return u[0];var f="",g=c<0?"-":"",v=u[0].replace(".",""),b=Number(u[1])+1;if(b<0){for(f=g+"0.";b++;)f+="0";return f+v.replace(/^-/,"")}for(b-=v.length;b--;)f+="0";return v+f}},{key:"getDimensions",value:function(c){var u=getComputedStyle(c,null),f=c.clientHeight,g=c.clientWidth;return f-=parseFloat(u.paddingTop)+parseFloat(u.paddingBottom),[g-=parseFloat(u.paddingLeft)+parseFloat(u.paddingRight),f]}},{key:"getBoundingClientRect",value:function(c){var u=c.getBoundingClientRect();return{top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:c.clientWidth,height:c.clientHeight,x:u.left,y:u.top}}},{key:"getLargestStringFromArr",value:function(c){return c.reduce(function(u,f){return Array.isArray(f)&&(f=f.reduce(function(g,v){return g.length>v.length?g:v})),u.length>f.length?u:f},0)}},{key:"hexToRgba",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;c.substring(0,1)!=="#"&&(c="#999999");var f=c.replace("#","");f=f.match(new RegExp("(.{"+f.length/3+"})","g"));for(var g=0;g<f.length;g++)f[g]=parseInt(f[g].length===1?f[g]+f[g]:f[g],16);return u!==void 0&&f.push(u),"rgba("+f.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(c){return parseFloat(c.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(c){return(c=c.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&c.length===4?"#"+("0"+parseInt(c[1],10).toString(16)).slice(-2)+("0"+parseInt(c[2],10).toString(16)).slice(-2)+("0"+parseInt(c[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(c){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(c)}},{key:"getPolygonPos",value:function(c,u){for(var f=[],g=2*Math.PI/u,v=0;v<u;v++){var b={};b.x=c*Math.sin(v*g),b.y=-c*Math.cos(v*g),f.push(b)}return f}},{key:"polarToCartesian",value:function(c,u,f,g){var v=(g-90)*Math.PI/180;return{x:c+f*Math.cos(v),y:u+f*Math.sin(v)}}},{key:"escapeString",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",f=c.toString().slice();return f=f.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,u)}},{key:"negToZero",value:function(c){return c<0?0:c}},{key:"moveIndexInArray",value:function(c,u,f){if(f>=c.length)for(var g=f-c.length+1;g--;)c.push(void 0);return c.splice(f,0,c.splice(u,1)[0]),c}},{key:"extractNumber",value:function(c){return parseFloat(c.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(c,u){for(;(c=c.parentElement)&&!c.classList.contains(u););return c}},{key:"setELstyles",value:function(c,u){for(var f in u)u.hasOwnProperty(f)&&(c.style.key=u[f])}},{key:"isNumber",value:function(c){return!isNaN(c)&&parseFloat(Number(c))===c&&!isNaN(parseInt(c,10))}},{key:"isFloat",value:function(c){return Number(c)===c&&c%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var c=window.navigator.userAgent,u=c.indexOf("MSIE ");if(u>0)return parseInt(c.substring(u+5,c.indexOf(".",u)),10);if(c.indexOf("Trident/")>0){var f=c.indexOf("rv:");return parseInt(c.substring(f+3,c.indexOf(".",f)),10)}var g=c.indexOf("Edge/");return g>0&&parseInt(c.substring(g+5,c.indexOf(".",g)),10)}}]),re}(),L=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.setEasingFunctions()}return a(re,[{key:"setEasingFunctions",value:function(){var c;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":c="-";break;case"easein":c="<";break;case"easeout":c=">";break;case"easeinout":default:c="<>";break;case"swing":c=function(u){var f=1.70158;return(u-=1)*u*((f+1)*u+f)+1};break;case"bounce":c=function(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375};break;case"elastic":c=function(u){return u===!!u?u:Math.pow(2,-10*u)*Math.sin((u-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=c}}},{key:"animateLine",value:function(c,u,f,g){c.attr(u).animate(g).attr(f)}},{key:"animateMarker",value:function(c,u,f,g,v,b){u||(u=0),c.attr({r:u,width:u,height:u}).animate(g,v).attr({r:f,width:f.width,height:f.height}).afterAll(function(){b()})}},{key:"animateCircle",value:function(c,u,f,g,v){c.attr({r:u.r,cx:u.cx,cy:u.cy}).animate(g,v).attr({r:f.r,cx:f.cx,cy:f.cy})}},{key:"animateRect",value:function(c,u,f,g,v){c.attr(u).animate(g).attr(f).afterAll(function(){return v()})}},{key:"animatePathsGradually",value:function(c){var u=c.el,f=c.realIndex,g=c.j,v=c.fill,b=c.pathFrom,x=c.pathTo,E=c.speed,T=c.delay,$=this.w,R=0;$.config.chart.animations.animateGradually.enabled&&(R=$.config.chart.animations.animateGradually.delay),$.config.chart.animations.dynamicAnimation.enabled&&$.globals.dataChanged&&$.config.chart.type!=="bar"&&(R=0),this.morphSVG(u,f,g,$.config.chart.type!=="line"||$.globals.comboCharts?v:"stroke",b,x,E,T*R)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(c){c.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(c){var u=this.w;u.globals.animationEnded||(u.globals.animationEnded=!0,this.showDelayedElements(),typeof u.config.chart.events.animationEnd=="function"&&u.config.chart.events.animationEnd(this.ctx,{el:c,w:u}))}},{key:"morphSVG",value:function(c,u,f,g,v,b,x,E){var T=this,$=this.w;v||(v=c.attr("pathFrom")),b||(b=c.attr("pathTo"));var R=function(N){return $.config.chart.type==="radar"&&(x=1),"M 0 ".concat($.globals.gridHeight)};(!v||v.indexOf("undefined")>-1||v.indexOf("NaN")>-1)&&(v=R()),(!b||b.indexOf("undefined")>-1||b.indexOf("NaN")>-1)&&(b=R()),$.globals.shouldAnimate||(x=1),c.plot(v).animate(1,$.globals.easing,E).plot(v).animate(x,$.globals.easing,E).plot(b).afterAll(function(){_.isNumber(f)?f===$.globals.series[$.globals.maxValsInArrayIndex].length-2&&$.globals.shouldAnimate&&T.animationCompleted(c):g!=="none"&&$.globals.shouldAnimate&&(!$.globals.comboCharts&&u===$.globals.series.length-1||$.globals.comboCharts)&&T.animationCompleted(c),T.showDelayedElements()})}}]),re}(),M=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"getDefaultFilter",value:function(c,u){var f=this.w;c.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),f.config.states.normal.filter!=="none"?this.applyFilter(c,u,f.config.states.normal.filter.type,f.config.states.normal.filter.value):f.config.chart.dropShadow.enabled&&this.dropShadow(c,f.config.chart.dropShadow,u)}},{key:"addNormalFilter",value:function(c,u){var f=this.w;f.config.chart.dropShadow.enabled&&!c.node.classList.contains("apexcharts-marker")&&this.dropShadow(c,f.config.chart.dropShadow,u)}},{key:"addLightenFilter",value:function(c,u,f){var g=this,v=this.w,b=f.intensity;c.unfilter(!0),new window.SVG.Filter,c.filter(function(x){var E=v.config.chart.dropShadow;(E.enabled?g.addShadow(x,u,E):x).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:b}})}),c.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(c.filterer.node)}},{key:"addDarkenFilter",value:function(c,u,f){var g=this,v=this.w,b=f.intensity;c.unfilter(!0),new window.SVG.Filter,c.filter(function(x){var E=v.config.chart.dropShadow;(E.enabled?g.addShadow(x,u,E):x).componentTransfer({rgb:{type:"linear",slope:b}})}),c.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(c.filterer.node)}},{key:"applyFilter",value:function(c,u,f){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(f){case"none":this.addNormalFilter(c,u);break;case"lighten":this.addLightenFilter(c,u,{intensity:g});break;case"darken":this.addDarkenFilter(c,u,{intensity:g})}}},{key:"addShadow",value:function(c,u,f){var g=f.blur,v=f.top,b=f.left,x=f.color,E=f.opacity,T=c.flood(Array.isArray(x)?x[u]:x,E).composite(c.sourceAlpha,"in").offset(b,v).gaussianBlur(g).merge(c.source);return c.blend(c.source,T)}},{key:"dropShadow",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=u.top,v=u.left,b=u.blur,x=u.color,E=u.opacity,T=u.noUserSpaceOnUse,$=this.w;return c.unfilter(!0),_.isIE()&&$.config.chart.type==="radialBar"||(x=Array.isArray(x)?x[f]:x,c.filter(function(R){var N=null;N=_.isSafari()||_.isFirefox()||_.isIE()?R.flood(x,E).composite(R.sourceAlpha,"in").offset(v,g).gaussianBlur(b):R.flood(x,E).composite(R.sourceAlpha,"in").offset(v,g).gaussianBlur(b).merge(R.source),R.blend(R.source,N)}),T||c.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(c.filterer.node)),c}},{key:"setSelectionFilter",value:function(c,u,f){var g=this.w;if(g.globals.selectedDataPoints[u]!==void 0&&g.globals.selectedDataPoints[u].indexOf(f)>-1){c.node.setAttribute("selected",!0);var v=g.config.states.active.filter;v!=="none"&&this.applyFilter(c,u,v.type,v.value)}}},{key:"_scaleFilterSize",value:function(c){(function(u){for(var f in u)u.hasOwnProperty(f)&&c.setAttribute(f,u[f])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),re}(),F=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"roundPathCorners",value:function(c,u){function f(ge,ke,De){var Ge=ke.x-ge.x,Ze=ke.y-ge.y,st=Math.sqrt(Ge*Ge+Ze*Ze);return g(ge,ke,Math.min(1,De/st))}function g(ge,ke,De){return{x:ge.x+(ke.x-ge.x)*De,y:ge.y+(ke.y-ge.y)*De}}function v(ge,ke){ge.length>2&&(ge[ge.length-2]=ke.x,ge[ge.length-1]=ke.y)}function b(ge){return{x:parseFloat(ge[ge.length-2]),y:parseFloat(ge[ge.length-1])}}var x=c.split(/[,\s]/).reduce(function(ge,ke){var De=ke.match("([a-zA-Z])(.+)");return De?(ge.push(De[1]),ge.push(De[2])):ge.push(ke),ge},[]).reduce(function(ge,ke){return parseFloat(ke)==ke&&ge.length?ge[ge.length-1].push(ke):ge.push([ke]),ge},[]),E=[];if(x.length>1){var T=b(x[0]),$=null;x[x.length-1][0]=="Z"&&x[0].length>2&&($=["L",T.x,T.y],x[x.length-1]=$),E.push(x[0]);for(var R=1;R<x.length;R++){var N=E[E.length-1],z=x[R],U=z==$?x[1]:x[R+1];if(U&&N&&N.length>2&&z[0]=="L"&&U.length>2&&U[0]=="L"){var Y,ne,le=b(N),he=b(z),A=b(U);Y=f(he,le,u),ne=f(he,A,u),v(z,Y),z.origPoint=he,E.push(z);var P=g(Y,he,.5),W=g(he,ne,.5),oe=["C",P.x,P.y,W.x,W.y,ne.x,ne.y];oe.origPoint=he,E.push(oe)}else E.push(z)}if($){var pe=b(E[E.length-1]);E.push(["Z"]),v(E[0],pe)}}else E=x;return E.reduce(function(ge,ke){return ge+ke.join(" ")+" "},"")}},{key:"drawLine",value:function(c,u,f,g){var v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,x=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,E=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:c,y1:u,x2:f,y2:g,stroke:v,"stroke-dasharray":b,"stroke-width":x,"stroke-linecap":E})}},{key:"drawRect",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",x=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,E=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,T=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,$=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,R=this.w.globals.dom.Paper.rect();return R.attr({x:c,y:u,width:f>0?f:0,height:g>0?g:0,rx:v,ry:v,opacity:x,"stroke-width":E!==null?E:0,stroke:T!==null?T:"none","stroke-dasharray":$}),R.node.setAttribute("fill",b),R}},{key:"drawPolygon",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(c).attr({fill:g,stroke:u,"stroke-width":f})}},{key:"drawCircle",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;c<0&&(c=0);var f=this.w.globals.dom.Paper.circle(2*c);return u!==null&&f.attr(u),f}},{key:"drawPath",value:function(c){var u=c.d,f=u===void 0?"":u,g=c.stroke,v=g===void 0?"#a8a8a8":g,b=c.strokeWidth,x=b===void 0?1:b,E=c.fill,T=c.fillOpacity,$=T===void 0?1:T,R=c.strokeOpacity,N=R===void 0?1:R,z=c.classes,U=c.strokeLinecap,Y=U===void 0?null:U,ne=c.strokeDashArray,le=ne===void 0?0:ne,he=this.w;return Y===null&&(Y=he.config.stroke.lineCap),(f.indexOf("undefined")>-1||f.indexOf("NaN")>-1)&&(f="M 0 ".concat(he.globals.gridHeight)),he.globals.dom.Paper.path(f).attr({fill:E,"fill-opacity":$,stroke:v,"stroke-opacity":N,"stroke-linecap":Y,"stroke-width":x,"stroke-dasharray":le,class:z})}},{key:"group",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.w.globals.dom.Paper.group();return c!==null&&u.attr(c),u}},{key:"move",value:function(c,u){var f=["M",c,u].join(" ");return f}},{key:"line",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=null;return f===null?g=[" L",c,u].join(" "):f==="H"?g=[" H",c].join(" "):f==="V"&&(g=[" V",u].join(" ")),g}},{key:"curve",value:function(c,u,f,g,v,b){var x=["C",c,u,f,g,v,b].join(" ");return x}},{key:"quadraticCurve",value:function(c,u,f,g){return["Q",c,u,f,g].join(" ")}},{key:"arc",value:function(c,u,f,g,v,b,x){var E="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(E="a");var T=[E,c,u,f,g,v,b,x].join(" ");return T}},{key:"renderPaths",value:function(c){var u,f=c.j,g=c.realIndex,v=c.pathFrom,b=c.pathTo,x=c.stroke,E=c.strokeWidth,T=c.strokeLinecap,$=c.fill,R=c.animationDelay,N=c.initialSpeed,z=c.dataChangeSpeed,U=c.className,Y=c.shouldClipToGrid,ne=Y===void 0||Y,le=c.bindEventsOnPaths,he=le===void 0||le,A=c.drawShadow,P=A===void 0||A,W=this.w,oe=new M(this.ctx),pe=new L(this.ctx),ge=this.w.config.chart.animations.enabled,ke=ge&&this.w.config.chart.animations.dynamicAnimation.enabled,De=!!(ge&&!W.globals.resized||ke&&W.globals.dataChanged&&W.globals.shouldAnimate);De?u=v:(u=b,W.globals.animationEnded=!0);var Ge=W.config.stroke.dashArray,Ze=0;Ze=Array.isArray(Ge)?Ge[g]:W.config.stroke.dashArray;var st=this.drawPath({d:u,stroke:x,strokeWidth:E,fill:$,fillOpacity:1,classes:U,strokeLinecap:T,strokeDashArray:Ze});if(st.attr("index",g),ne&&st.attr({"clip-path":"url(#gridRectMask".concat(W.globals.cuid,")")}),W.config.states.normal.filter.type!=="none")oe.getDefaultFilter(st,g);else if(W.config.chart.dropShadow.enabled&&P&&(!W.config.chart.dropShadow.enabledOnSeries||W.config.chart.dropShadow.enabledOnSeries&&W.config.chart.dropShadow.enabledOnSeries.indexOf(g)!==-1)){var ft=W.config.chart.dropShadow;oe.dropShadow(st,ft,g)}he&&(st.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,st)),st.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,st)),st.node.addEventListener("mousedown",this.pathMouseDown.bind(this,st))),st.attr({pathTo:b,pathFrom:v});var Wt={el:st,j:f,realIndex:g,pathFrom:v,pathTo:b,fill:$,strokeWidth:E,delay:R};return!ge||W.globals.resized||W.globals.dataChanged?!W.globals.resized&&W.globals.dataChanged||pe.showDelayedElements():pe.animatePathsGradually(r(r({},Wt),{},{speed:N})),W.globals.dataChanged&&ke&&De&&pe.animatePathsGradually(r(r({},Wt),{},{speed:z})),st}},{key:"drawPattern",value:function(c,u,f){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(u,f,function(b){c==="horizontalLines"?b.line(0,0,f,0).stroke({color:g,width:v+1}):c==="verticalLines"?b.line(0,0,0,u).stroke({color:g,width:v+1}):c==="slantedLines"?b.line(0,0,u,f).stroke({color:g,width:v}):c==="squares"?b.rect(u,f).fill("none").stroke({color:g,width:v}):c==="circles"&&b.circle(u).fill("none").stroke({color:g,width:v})})}},{key:"drawGradient",value:function(c,u,f,g,v){var b,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,E=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,T=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,$=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,R=this.w;u.length<9&&u.indexOf("#")===0&&(u=_.hexToRgba(u,g)),f.length<9&&f.indexOf("#")===0&&(f=_.hexToRgba(f,v));var N=0,z=1,U=1,Y=null;E!==null&&(N=E[0]!==void 0?E[0]/100:0,z=E[1]!==void 0?E[1]/100:1,U=E[2]!==void 0?E[2]/100:1,Y=E[3]!==void 0?E[3]/100:null);var ne=!(R.config.chart.type!=="donut"&&R.config.chart.type!=="pie"&&R.config.chart.type!=="polarArea"&&R.config.chart.type!=="bubble");if(b=T===null||T.length===0?R.globals.dom.Paper.gradient(ne?"radial":"linear",function(A){A.at(N,u,g),A.at(z,f,v),A.at(U,f,v),Y!==null&&A.at(Y,u,g)}):R.globals.dom.Paper.gradient(ne?"radial":"linear",function(A){(Array.isArray(T[$])?T[$]:T).forEach(function(P){A.at(P.offset/100,P.color,P.opacity)})}),ne){var le=R.globals.gridWidth/2,he=R.globals.gridHeight/2;R.config.chart.type!=="bubble"?b.attr({gradientUnits:"userSpaceOnUse",cx:le,cy:he,r:x}):b.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else c==="vertical"?b.from(0,0).to(0,1):c==="diagonal"?b.from(0,0).to(1,1):c==="horizontal"?b.from(0,1).to(1,1):c==="diagonal2"&&b.from(1,0).to(0,1);return b}},{key:"getTextBasedOnMaxWidth",value:function(c){var u=c.text,f=c.maxWidth,g=c.fontSize,v=c.fontFamily,b=this.getTextRects(u,g,v),x=b.width/u.length,E=Math.floor(f/x);return f<b.width?u.slice(0,E-3)+"...":u}},{key:"drawText",value:function(c){var u=this,f=c.x,g=c.y,v=c.text,b=c.textAnchor,x=c.fontSize,E=c.fontFamily,T=c.fontWeight,$=c.foreColor,R=c.opacity,N=c.maxWidth,z=c.cssClass,U=z===void 0?"":z,Y=c.isPlainText,ne=Y===void 0||Y,le=this.w;v===void 0&&(v="");var he=v;b||(b="start"),$&&$.length||($=le.config.chart.foreColor),E=E||le.config.chart.fontFamily,T=T||"regular";var A,P={maxWidth:N,fontSize:x=x||"11px",fontFamily:E};return Array.isArray(v)?A=le.globals.dom.Paper.text(function(W){for(var oe=0;oe<v.length;oe++)he=v[oe],N&&(he=u.getTextBasedOnMaxWidth(r({text:v[oe]},P))),oe===0?W.tspan(he):W.tspan(he).newLine()}):(N&&(he=this.getTextBasedOnMaxWidth(r({text:v},P))),A=ne?le.globals.dom.Paper.plain(v):le.globals.dom.Paper.text(function(W){return W.tspan(he)})),A.attr({x:f,y:g,"text-anchor":b,"dominant-baseline":"auto","font-size":x,"font-family":E,"font-weight":T,fill:$,class:"apexcharts-text "+U}),A.node.style.fontFamily=E,A.node.style.opacity=R,A}},{key:"drawMarker",value:function(c,u,f){c=c||0;var g=f.pSize||0,v=null;if(f.shape==="square"||f.shape==="rect"){var b=f.pRadius===void 0?g/2:f.pRadius;u!==null&&g||(g=0,b=0);var x=1.2*g+b,E=this.drawRect(x,x,x,x,b);E.attr({x:c-x/2,y:u-x/2,cx:c,cy:u,class:f.class?f.class:"",fill:f.pointFillColor,"fill-opacity":f.pointFillOpacity?f.pointFillOpacity:1,stroke:f.pointStrokeColor,"stroke-width":f.pointStrokeWidth?f.pointStrokeWidth:0,"stroke-opacity":f.pointStrokeOpacity?f.pointStrokeOpacity:1}),v=E}else f.shape!=="circle"&&f.shape||(_.isNumber(u)||(g=0,u=0),v=this.drawCircle(g,{cx:c,cy:u,class:f.class?f.class:"",stroke:f.pointStrokeColor,fill:f.pointFillColor,"fill-opacity":f.pointFillOpacity?f.pointFillOpacity:1,"stroke-width":f.pointStrokeWidth?f.pointStrokeWidth:0,"stroke-opacity":f.pointStrokeOpacity?f.pointStrokeOpacity:1}));return v}},{key:"pathMouseEnter",value:function(c,u){var f=this.w,g=new M(this.ctx),v=parseInt(c.node.getAttribute("index"),10),b=parseInt(c.node.getAttribute("j"),10);if(typeof f.config.chart.events.dataPointMouseEnter=="function"&&f.config.chart.events.dataPointMouseEnter(u,this.ctx,{seriesIndex:v,dataPointIndex:b,w:f}),this.ctx.events.fireEvent("dataPointMouseEnter",[u,this.ctx,{seriesIndex:v,dataPointIndex:b,w:f}]),(f.config.states.active.filter.type==="none"||c.node.getAttribute("selected")!=="true")&&f.config.states.hover.filter.type!=="none"&&!f.globals.isTouchDevice){var x=f.config.states.hover.filter;g.applyFilter(c,v,x.type,x.value)}}},{key:"pathMouseLeave",value:function(c,u){var f=this.w,g=new M(this.ctx),v=parseInt(c.node.getAttribute("index"),10),b=parseInt(c.node.getAttribute("j"),10);typeof f.config.chart.events.dataPointMouseLeave=="function"&&f.config.chart.events.dataPointMouseLeave(u,this.ctx,{seriesIndex:v,dataPointIndex:b,w:f}),this.ctx.events.fireEvent("dataPointMouseLeave",[u,this.ctx,{seriesIndex:v,dataPointIndex:b,w:f}]),f.config.states.active.filter.type!=="none"&&c.node.getAttribute("selected")==="true"||f.config.states.hover.filter.type!=="none"&&g.getDefaultFilter(c,v)}},{key:"pathMouseDown",value:function(c,u){var f=this.w,g=new M(this.ctx),v=parseInt(c.node.getAttribute("index"),10),b=parseInt(c.node.getAttribute("j"),10),x="false";if(c.node.getAttribute("selected")==="true"){if(c.node.setAttribute("selected","false"),f.globals.selectedDataPoints[v].indexOf(b)>-1){var E=f.globals.selectedDataPoints[v].indexOf(b);f.globals.selectedDataPoints[v].splice(E,1)}}else{if(!f.config.states.active.allowMultipleDataPointsSelection&&f.globals.selectedDataPoints.length>0){f.globals.selectedDataPoints=[];var T=f.globals.dom.Paper.select(".apexcharts-series path").members,$=f.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,R=function(U){Array.prototype.forEach.call(U,function(Y){Y.node.setAttribute("selected","false"),g.getDefaultFilter(Y,v)})};R(T),R($)}c.node.setAttribute("selected","true"),x="true",f.globals.selectedDataPoints[v]===void 0&&(f.globals.selectedDataPoints[v]=[]),f.globals.selectedDataPoints[v].push(b)}if(x==="true"){var N=f.config.states.active.filter;if(N!=="none")g.applyFilter(c,v,N.type,N.value);else if(f.config.states.hover.filter!=="none"&&!f.globals.isTouchDevice){var z=f.config.states.hover.filter;g.applyFilter(c,v,z.type,z.value)}}else f.config.states.active.filter.type!=="none"&&(f.config.states.hover.filter.type==="none"||f.globals.isTouchDevice?g.getDefaultFilter(c,v):(z=f.config.states.hover.filter,g.applyFilter(c,v,z.type,z.value)));typeof f.config.chart.events.dataPointSelection=="function"&&f.config.chart.events.dataPointSelection(u,this.ctx,{selectedDataPoints:f.globals.selectedDataPoints,seriesIndex:v,dataPointIndex:b,w:f}),u&&this.ctx.events.fireEvent("dataPointSelection",[u,this.ctx,{selectedDataPoints:f.globals.selectedDataPoints,seriesIndex:v,dataPointIndex:b,w:f}])}},{key:"rotateAroundCenter",value:function(c){var u={};return c&&typeof c.getBBox=="function"&&(u=c.getBBox()),{x:u.x+u.width/2,y:u.y+u.height/2}}},{key:"getTextRects",value:function(c,u,f,g){var v=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],b=this.w,x=this.drawText({x:-200,y:-200,text:c,textAnchor:"start",fontSize:u,fontFamily:f,foreColor:"#fff",opacity:0});g&&x.attr("transform",g),b.globals.dom.Paper.add(x);var E=x.bbox();return v||(E=x.node.getBoundingClientRect()),x.remove(),{width:E.width,height:E.height}}},{key:"placeTextWithEllipsis",value:function(c,u,f){if(typeof c.getComputedTextLength=="function"&&(c.textContent=u,u.length>0&&c.getComputedTextLength()>=f/1.1)){for(var g=u.length-3;g>0;g-=3)if(c.getSubStringLength(0,g)<=f/1.1)return void(c.textContent=u.substring(0,g)+"...");c.textContent="."}}}],[{key:"setAttrs",value:function(c,u){for(var f in u)u.hasOwnProperty(f)&&c.setAttribute(f,u[f])}}]),re}(),H=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"getStackedSeriesTotals",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=this.w,f=[];if(u.globals.series.length===0)return f;for(var g=0;g<u.globals.series[u.globals.maxValsInArrayIndex].length;g++){for(var v=0,b=0;b<u.globals.series.length;b++)u.globals.series[b][g]!==void 0&&c.indexOf(b)===-1&&(v+=u.globals.series[b][g]);f.push(v)}return f}},{key:"getSeriesTotalByIndex",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return c===null?this.w.config.series.reduce(function(u,f){return u+f},0):this.w.globals.series[c].reduce(function(u,f){return u+f},0)}},{key:"isSeriesNull",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(c===null?this.w.config.series.filter(function(u){return u!==null}):this.w.config.series[c].data.filter(function(u){return u!==null})).length===0}},{key:"seriesHaveSameValues",value:function(c){return this.w.globals.series[c].every(function(u,f,g){return u===g[0]})}},{key:"getCategoryLabels",value:function(c){var u=this.w,f=c.slice();return u.config.xaxis.convertedCatToNumeric&&(f=c.map(function(g,v){return u.config.xaxis.labels.formatter(g-u.globals.minX+1)})),f}},{key:"getLargestSeries",value:function(){var c=this.w;c.globals.maxValsInArrayIndex=c.globals.series.map(function(u){return u.length}).indexOf(Math.max.apply(Math,c.globals.series.map(function(u){return u.length})))}},{key:"getLargestMarkerSize",value:function(){var c=this.w,u=0;return c.globals.markers.size.forEach(function(f){u=Math.max(u,f)}),c.config.markers.discrete&&c.config.markers.discrete.length&&c.config.markers.discrete.forEach(function(f){u=Math.max(u,f.size)}),u>0&&(u+=c.config.markers.hover.sizeOffset+1),c.globals.markers.largestSize=u,u}},{key:"getSeriesTotals",value:function(){var c=this.w;c.globals.seriesTotals=c.globals.series.map(function(u,f){var g=0;if(Array.isArray(u))for(var v=0;v<u.length;v++)g+=u[v];else g+=u;return g})}},{key:"getSeriesTotalsXRange",value:function(c,u){var f=this.w;return f.globals.series.map(function(g,v){for(var b=0,x=0;x<g.length;x++)f.globals.seriesX[v][x]>c&&f.globals.seriesX[v][x]<u&&(b+=g[x]);return b})}},{key:"getPercentSeries",value:function(){var c=this.w;c.globals.seriesPercent=c.globals.series.map(function(u,f){var g=[];if(Array.isArray(u))for(var v=0;v<u.length;v++){var b=c.globals.stackedSeriesTotals[v],x=0;b&&(x=100*u[v]/b),g.push(x)}else{var E=100*u/c.globals.seriesTotals.reduce(function(T,$){return T+$},0);g.push(E)}return g})}},{key:"getCalculatedRatios",value:function(){var c,u,f,g,v=this.w.globals,b=[],x=0,E=[],T=.1,$=0;if(v.yRange=[],v.isMultipleYAxis)for(var R=0;R<v.minYArr.length;R++)v.yRange.push(Math.abs(v.minYArr[R]-v.maxYArr[R])),E.push(0);else v.yRange.push(Math.abs(v.minY-v.maxY));v.xRange=Math.abs(v.maxX-v.minX),v.zRange=Math.abs(v.maxZ-v.minZ);for(var N=0;N<v.yRange.length;N++)b.push(v.yRange[N]/v.gridHeight);if(u=v.xRange/v.gridWidth,f=Math.abs(v.initialMaxX-v.initialMinX)/v.gridWidth,c=v.yRange/v.gridWidth,g=v.xRange/v.gridHeight,(x=v.zRange/v.gridHeight*16)||(x=1),v.minY!==Number.MIN_VALUE&&Math.abs(v.minY)!==0&&(v.hasNegs=!0),v.isMultipleYAxis){E=[];for(var z=0;z<b.length;z++)E.push(-v.minYArr[z]/b[z])}else E.push(-v.minY/b[0]),v.minY!==Number.MIN_VALUE&&Math.abs(v.minY)!==0&&(T=-v.minY/c,$=v.minX/u);return{yRatio:b,invertedYRatio:c,zRatio:x,xRatio:u,initialXRatio:f,invertedXRatio:g,baseLineInvertedY:T,baseLineY:E,baseLineX:$}}},{key:"getLogSeries",value:function(c){var u=this,f=this.w;return f.globals.seriesLog=c.map(function(g,v){return f.config.yaxis[v]&&f.config.yaxis[v].logarithmic?g.map(function(b){return b===null?null:u.getLogVal(f.config.yaxis[v].logBase,b,v)}):g}),f.globals.invalidLogScale?c:f.globals.seriesLog}},{key:"getBaseLog",value:function(c,u){return Math.log(u)/Math.log(c)}},{key:"getLogVal",value:function(c,u,f){if(u===0)return 0;var g=this.w,v=g.globals.minYArr[f]===0?-1:this.getBaseLog(c,g.globals.minYArr[f]),b=(g.globals.maxYArr[f]===0?0:this.getBaseLog(c,g.globals.maxYArr[f]))-v;return u<1?u/b:(this.getBaseLog(c,u)-v)/b}},{key:"getLogYRatios",value:function(c){var u=this,f=this.w,g=this.w.globals;return g.yLogRatio=c.slice(),g.logYRange=g.yRange.map(function(v,b){if(f.config.yaxis[b]&&u.w.config.yaxis[b].logarithmic){var x,E=-Number.MAX_VALUE,T=Number.MIN_VALUE;return g.seriesLog.forEach(function($,R){$.forEach(function(N){f.config.yaxis[R]&&f.config.yaxis[R].logarithmic&&(E=Math.max(N,E),T=Math.min(N,T))})}),x=Math.pow(g.yRange[b],Math.abs(T-E)/g.yRange[b]),g.yLogRatio[b]=x/g.gridHeight,x}}),g.invalidLogScale?c.slice():g.yLogRatio}}],[{key:"checkComboSeries",value:function(c){var u=!1,f=0,g=0;return c.length&&c[0].type!==void 0&&c.forEach(function(v){v.type!=="bar"&&v.type!=="column"&&v.type!=="candlestick"&&v.type!=="boxPlot"||f++,v.type!==void 0&&g++}),g>0&&(u=!0),{comboBarCount:f,comboCharts:u}}},{key:"extendArrayProps",value:function(c,u,f){return u.yaxis&&(u=c.extendYAxis(u,f)),u.annotations&&(u.annotations.yaxis&&(u=c.extendYAxisAnnotations(u)),u.annotations.xaxis&&(u=c.extendXAxisAnnotations(u)),u.annotations.points&&(u=c.extendPointAnnotations(u))),u}}]),re}(),G=function(){function re(c){o(this,re),this.w=c.w,this.annoCtx=c}return a(re,[{key:"setOrientations",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=this.w;if(c.label.orientation==="vertical"){var g=u!==null?u:0,v=f.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(g,"']"));if(v!==null){var b=v.getBoundingClientRect();v.setAttribute("x",parseFloat(v.getAttribute("x"))-b.height+4),c.label.position==="top"?v.setAttribute("y",parseFloat(v.getAttribute("y"))+b.width):v.setAttribute("y",parseFloat(v.getAttribute("y"))-b.width);var x=this.annoCtx.graphics.rotateAroundCenter(v),E=x.x,T=x.y;v.setAttribute("transform","rotate(-90 ".concat(E," ").concat(T,")"))}}}},{key:"addBackgroundToAnno",value:function(c,u){var f=this.w;if(!c||u.label.text===void 0||u.label.text!==void 0&&!String(u.label.text).trim())return null;var g=f.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),v=c.getBoundingClientRect(),b=u.label.style.padding.left,x=u.label.style.padding.right,E=u.label.style.padding.top,T=u.label.style.padding.bottom;u.label.orientation==="vertical"&&(E=u.label.style.padding.left,T=u.label.style.padding.right,b=u.label.style.padding.top,x=u.label.style.padding.bottom);var $=v.left-g.left-b,R=v.top-g.top-E,N=this.annoCtx.graphics.drawRect($-f.globals.barPadForNumericAxis,R,v.width+b+x,v.height+E+T,u.label.borderRadius,u.label.style.background,1,u.label.borderWidth,u.label.borderColor,0);return u.id&&N.node.classList.add(u.id),N}},{key:"annotationsBackground",value:function(){var c=this,u=this.w,f=function(g,v,b){var x=u.globals.dom.baseEl.querySelector(".apexcharts-".concat(b,"-annotations .apexcharts-").concat(b,"-annotation-label[rel='").concat(v,"']"));if(x){var E=x.parentNode,T=c.addBackgroundToAnno(x,g);T&&(E.insertBefore(T.node,x),g.label.mouseEnter&&T.node.addEventListener("mouseenter",g.label.mouseEnter.bind(c,g)),g.label.mouseLeave&&T.node.addEventListener("mouseleave",g.label.mouseLeave.bind(c,g)),g.label.click&&T.node.addEventListener("click",g.label.click.bind(c,g)))}};u.config.annotations.xaxis.map(function(g,v){f(g,v,"xaxis")}),u.config.annotations.yaxis.map(function(g,v){f(g,v,"yaxis")}),u.config.annotations.points.map(function(g,v){f(g,v,"point")})}},{key:"getY1Y2",value:function(c,u){var f,g=c==="y1"?u.y:u.y2,v=this.w;if(this.annoCtx.invertAxis){var b=v.globals.labels.indexOf(g);v.config.xaxis.convertedCatToNumeric&&(b=v.globals.categoryLabels.indexOf(g));var x=v.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(b+1)+")");x&&(f=parseFloat(x.getAttribute("y")))}else{var E;v.config.yaxis[u.yAxisIndex].logarithmic?E=(g=new H(this.annoCtx.ctx).getLogVal(g,u.yAxisIndex))/v.globals.yLogRatio[u.yAxisIndex]:E=(g-v.globals.minYArr[u.yAxisIndex])/(v.globals.yRange[u.yAxisIndex]/v.globals.gridHeight),f=v.globals.gridHeight-E,!u.marker||u.y!==void 0&&u.y!==null||(f=0),v.config.yaxis[u.yAxisIndex]&&v.config.yaxis[u.yAxisIndex].reversed&&(f=E)}return typeof g=="string"&&g.indexOf("px")>-1&&(f=parseFloat(g)),f}},{key:"getX1X2",value:function(c,u){var f=this.w,g=this.annoCtx.invertAxis?f.globals.minY:f.globals.minX,v=this.annoCtx.invertAxis?f.globals.maxY:f.globals.maxX,b=this.annoCtx.invertAxis?f.globals.yRange[0]:f.globals.xRange,x=(u.x-g)/(b/f.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(x=(v-u.x)/(b/f.globals.gridWidth)),f.config.xaxis.type!=="category"&&!f.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||f.globals.dataFormatXNumeric||(x=this.getStringX(u.x));var E=(u.x2-g)/(b/f.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(E=(v-u.x2)/(b/f.globals.gridWidth)),f.config.xaxis.type!=="category"&&!f.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||f.globals.dataFormatXNumeric||(E=this.getStringX(u.x2)),u.x!==void 0&&u.x!==null||!u.marker||(x=f.globals.gridWidth),c==="x1"&&typeof u.x=="string"&&u.x.indexOf("px")>-1&&(x=parseFloat(u.x)),c==="x2"&&typeof u.x2=="string"&&u.x2.indexOf("px")>-1&&(E=parseFloat(u.x2)),c==="x1"?x:E}},{key:"getStringX",value:function(c){var u=this.w,f=c;u.config.xaxis.convertedCatToNumeric&&u.globals.categoryLabels.length&&(c=u.globals.categoryLabels.indexOf(c)+1);var g=u.globals.labels.indexOf(c),v=u.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(g+1)+")");return v&&(f=parseFloat(v.getAttribute("x"))),f}}]),re}(),X=function(){function re(c){o(this,re),this.w=c.w,this.annoCtx=c,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new G(this.annoCtx)}return a(re,[{key:"addXaxisAnnotation",value:function(c,u,f){var g,v=this.w,b=this.helpers.getX1X2("x1",c),x=c.label.text,E=c.strokeDashArray;if(_.isNumber(b)){if(c.x2===null||c.x2===void 0){var T=this.annoCtx.graphics.drawLine(b+c.offsetX,0+c.offsetY,b+c.offsetX,v.globals.gridHeight+c.offsetY,c.borderColor,E,c.borderWidth);u.appendChild(T.node),c.id&&T.node.classList.add(c.id)}else{if((g=this.helpers.getX1X2("x2",c))<b){var $=b;b=g,g=$}var R=this.annoCtx.graphics.drawRect(b+c.offsetX,0+c.offsetY,g-b,v.globals.gridHeight+c.offsetY,0,c.fillColor,c.opacity,1,c.borderColor,E);R.node.classList.add("apexcharts-annotation-rect"),R.attr("clip-path","url(#gridRectMask".concat(v.globals.cuid,")")),u.appendChild(R.node),c.id&&R.node.classList.add(c.id)}var N=this.annoCtx.graphics.getTextRects(x,parseFloat(c.label.style.fontSize)),z=c.label.position==="top"?4:c.label.position==="center"?v.globals.gridHeight/2+(c.label.orientation==="vertical"?N.width/2:0):v.globals.gridHeight,U=this.annoCtx.graphics.drawText({x:b+c.label.offsetX,y:z+c.label.offsetY-(c.label.orientation==="vertical"?c.label.position==="top"?N.width/2-12:-N.width/2:0),text:x,textAnchor:c.label.textAnchor,fontSize:c.label.style.fontSize,fontFamily:c.label.style.fontFamily,fontWeight:c.label.style.fontWeight,foreColor:c.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(c.label.style.cssClass," ").concat(c.id?c.id:"")});U.attr({rel:f}),u.appendChild(U.node),this.annoCtx.helpers.setOrientations(c,f)}}},{key:"drawXAxisAnnotations",value:function(){var c=this,u=this.w,f=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return u.config.annotations.xaxis.map(function(g,v){c.addXaxisAnnotation(g,f.node,v)}),f}}]),re}(),Z=function(){function re(c){o(this,re),this.w=c.w,this.annoCtx=c,this.helpers=new G(this.annoCtx)}return a(re,[{key:"addYaxisAnnotation",value:function(c,u,f){var g,v=this.w,b=c.strokeDashArray,x=this.helpers.getY1Y2("y1",c),E=c.label.text;if(c.y2===null||c.y2===void 0){var T=this.annoCtx.graphics.drawLine(0+c.offsetX,x+c.offsetY,this._getYAxisAnnotationWidth(c),x+c.offsetY,c.borderColor,b,c.borderWidth);u.appendChild(T.node),c.id&&T.node.classList.add(c.id)}else{if((g=this.helpers.getY1Y2("y2",c))>x){var $=x;x=g,g=$}var R=this.annoCtx.graphics.drawRect(0+c.offsetX,g+c.offsetY,this._getYAxisAnnotationWidth(c),x-g,0,c.fillColor,c.opacity,1,c.borderColor,b);R.node.classList.add("apexcharts-annotation-rect"),R.attr("clip-path","url(#gridRectMask".concat(v.globals.cuid,")")),u.appendChild(R.node),c.id&&R.node.classList.add(c.id)}var N=c.label.position==="right"?v.globals.gridWidth:c.label.position==="center"?v.globals.gridWidth/2:0,z=this.annoCtx.graphics.drawText({x:N+c.label.offsetX,y:(g??x)+c.label.offsetY-3,text:E,textAnchor:c.label.textAnchor,fontSize:c.label.style.fontSize,fontFamily:c.label.style.fontFamily,fontWeight:c.label.style.fontWeight,foreColor:c.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(c.label.style.cssClass," ").concat(c.id?c.id:"")});z.attr({rel:f}),u.appendChild(z.node)}},{key:"_getYAxisAnnotationWidth",value:function(c){var u=this.w;return u.globals.gridWidth,(c.width.indexOf("%")>-1?u.globals.gridWidth*parseInt(c.width,10)/100:parseInt(c.width,10))+c.offsetX}},{key:"drawYAxisAnnotations",value:function(){var c=this,u=this.w,f=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return u.config.annotations.yaxis.map(function(g,v){c.addYaxisAnnotation(g,f.node,v)}),f}}]),re}(),te=function(){function re(c){o(this,re),this.w=c.w,this.annoCtx=c,this.helpers=new G(this.annoCtx)}return a(re,[{key:"addPointAnnotation",value:function(c,u,f){this.w;var g=this.helpers.getX1X2("x1",c),v=this.helpers.getY1Y2("y1",c);if(_.isNumber(g)){var b={pSize:c.marker.size,pointStrokeWidth:c.marker.strokeWidth,pointFillColor:c.marker.fillColor,pointStrokeColor:c.marker.strokeColor,shape:c.marker.shape,pRadius:c.marker.radius,class:"apexcharts-point-annotation-marker ".concat(c.marker.cssClass," ").concat(c.id?c.id:"")},x=this.annoCtx.graphics.drawMarker(g+c.marker.offsetX,v+c.marker.offsetY,b);u.appendChild(x.node);var E=c.label.text?c.label.text:"",T=this.annoCtx.graphics.drawText({x:g+c.label.offsetX,y:v+c.label.offsetY-c.marker.size-parseFloat(c.label.style.fontSize)/1.6,text:E,textAnchor:c.label.textAnchor,fontSize:c.label.style.fontSize,fontFamily:c.label.style.fontFamily,fontWeight:c.label.style.fontWeight,foreColor:c.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(c.label.style.cssClass," ").concat(c.id?c.id:"")});if(T.attr({rel:f}),u.appendChild(T.node),c.customSVG.SVG){var $=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+c.customSVG.cssClass});$.attr({transform:"translate(".concat(g+c.customSVG.offsetX,", ").concat(v+c.customSVG.offsetY,")")}),$.node.innerHTML=c.customSVG.SVG,u.appendChild($.node)}if(c.image.path){var R=c.image.width?c.image.width:20,N=c.image.height?c.image.height:20;x=this.annoCtx.addImage({x:g+c.image.offsetX-R/2,y:v+c.image.offsetY-N/2,width:R,height:N,path:c.image.path,appendTo:".apexcharts-point-annotations"})}c.mouseEnter&&x.node.addEventListener("mouseenter",c.mouseEnter.bind(this,c)),c.mouseLeave&&x.node.addEventListener("mouseleave",c.mouseLeave.bind(this,c)),c.click&&x.node.addEventListener("click",c.click.bind(this,c))}}},{key:"drawPointAnnotations",value:function(){var c=this,u=this.w,f=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return u.config.annotations.points.map(function(g,v){c.addPointAnnotation(g,f.node,v)}),f}}]),re}(),ae={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},ye=function(){function re(){o(this,re),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return a(re,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[ae],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(c){return new Date(c).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(c){return c}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(c){return c+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(c){return c.globals.seriesTotals.reduce(function(u,f){return u+f},0)/c.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(c){return c}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(c){return c}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(c){return c.globals.seriesTotals.reduce(function(u,f){return u+f},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(c){return c!==null?c:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(c){return c?c+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),re}(),ve=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.graphics=new F(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new G(this),this.xAxisAnnotations=new X(this),this.yAxisAnnotations=new Z(this),this.pointsAnnotations=new te(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return a(re,[{key:"drawAxesAnnotations",value:function(){var c=this.w;if(c.globals.axisCharts){for(var u=this.yAxisAnnotations.drawYAxisAnnotations(),f=this.xAxisAnnotations.drawXAxisAnnotations(),g=this.pointsAnnotations.drawPointAnnotations(),v=c.config.chart.animations.enabled,b=[u,f,g],x=[f.node,u.node,g.node],E=0;E<3;E++)c.globals.dom.elGraphical.add(b[E]),!v||c.globals.resized||c.globals.dataChanged||c.config.chart.type!=="scatter"&&c.config.chart.type!=="bubble"&&c.globals.dataPoints>1&&x[E].classList.add("apexcharts-element-hidden"),c.globals.delayedElements.push({el:x[E],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var c=this;this.w.config.annotations.images.map(function(u,f){c.addImage(u,f)})}},{key:"drawTextAnnos",value:function(){var c=this;this.w.config.annotations.texts.map(function(u,f){c.addText(u,f)})}},{key:"addXaxisAnnotation",value:function(c,u,f){this.xAxisAnnotations.addXaxisAnnotation(c,u,f)}},{key:"addYaxisAnnotation",value:function(c,u,f){this.yAxisAnnotations.addYaxisAnnotation(c,u,f)}},{key:"addPointAnnotation",value:function(c,u,f){this.pointsAnnotations.addPointAnnotation(c,u,f)}},{key:"addText",value:function(c,u){var f=c.x,g=c.y,v=c.text,b=c.textAnchor,x=c.foreColor,E=c.fontSize,T=c.fontFamily,$=c.fontWeight,R=c.cssClass,N=c.backgroundColor,z=c.borderWidth,U=c.strokeDashArray,Y=c.borderRadius,ne=c.borderColor,le=c.appendTo,he=le===void 0?".apexcharts-annotations":le,A=c.paddingLeft,P=A===void 0?4:A,W=c.paddingRight,oe=W===void 0?4:W,pe=c.paddingBottom,ge=pe===void 0?2:pe,ke=c.paddingTop,De=ke===void 0?2:ke,Ge=this.w,Ze=this.graphics.drawText({x:f,y:g,text:v,textAnchor:b||"start",fontSize:E||"12px",fontWeight:$||"regular",fontFamily:T||Ge.config.chart.fontFamily,foreColor:x||Ge.config.chart.foreColor,cssClass:R}),st=Ge.globals.dom.baseEl.querySelector(he);st&&st.appendChild(Ze.node);var ft=Ze.bbox();if(v){var Wt=this.graphics.drawRect(ft.x-P,ft.y-De,ft.width+P+oe,ft.height+ge+De,Y,N||"transparent",1,z,ne,U);st.insertBefore(Wt.node,Ze.node)}}},{key:"addImage",value:function(c,u){var f=this.w,g=c.path,v=c.x,b=v===void 0?0:v,x=c.y,E=x===void 0?0:x,T=c.width,$=T===void 0?20:T,R=c.height,N=R===void 0?20:R,z=c.appendTo,U=z===void 0?".apexcharts-annotations":z,Y=f.globals.dom.Paper.image(g);Y.size($,N).move(b,E);var ne=f.globals.dom.baseEl.querySelector(U);return ne&&ne.appendChild(Y.node),Y}},{key:"addXaxisAnnotationExternal",value:function(c,u,f){return this.addAnnotationExternal({params:c,pushToMemory:u,context:f,type:"xaxis",contextMethod:f.addXaxisAnnotation}),f}},{key:"addYaxisAnnotationExternal",value:function(c,u,f){return this.addAnnotationExternal({params:c,pushToMemory:u,context:f,type:"yaxis",contextMethod:f.addYaxisAnnotation}),f}},{key:"addPointAnnotationExternal",value:function(c,u,f){return this.invertAxis===void 0&&(this.invertAxis=f.w.globals.isBarHorizontal),this.addAnnotationExternal({params:c,pushToMemory:u,context:f,type:"point",contextMethod:f.addPointAnnotation}),f}},{key:"addAnnotationExternal",value:function(c){var u=c.params,f=c.pushToMemory,g=c.context,v=c.type,b=c.contextMethod,x=g,E=x.w,T=E.globals.dom.baseEl.querySelector(".apexcharts-".concat(v,"-annotations")),$=T.childNodes.length+1,R=new ye,N=Object.assign({},v==="xaxis"?R.xAxisAnnotation:v==="yaxis"?R.yAxisAnnotation:R.pointAnnotation),z=_.extend(N,u);switch(v){case"xaxis":this.addXaxisAnnotation(z,T,$);break;case"yaxis":this.addYaxisAnnotation(z,T,$);break;case"point":this.addPointAnnotation(z,T,$)}var U=E.globals.dom.baseEl.querySelector(".apexcharts-".concat(v,"-annotations .apexcharts-").concat(v,"-annotation-label[rel='").concat($,"']")),Y=this.helpers.addBackgroundToAnno(U,z);return Y&&T.insertBefore(Y.node,U),f&&E.globals.memory.methodsToExec.push({context:x,id:z.id?z.id:_.randomId(),method:b,label:"addAnnotation",params:u}),g}},{key:"clearAnnotations",value:function(c){var u=c.w,f=u.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");u.globals.memory.methodsToExec.map(function(g,v){g.label!=="addText"&&g.label!=="addAnnotation"||u.globals.memory.methodsToExec.splice(v,1)}),f=_.listToArray(f),Array.prototype.forEach.call(f,function(g){for(;g.firstChild;)g.removeChild(g.firstChild)})}},{key:"removeAnnotation",value:function(c,u){var f=c.w,g=f.globals.dom.baseEl.querySelectorAll(".".concat(u));g&&(f.globals.memory.methodsToExec.map(function(v,b){v.id===u&&f.globals.memory.methodsToExec.splice(b,1)}),Array.prototype.forEach.call(g,function(v){v.parentElement.removeChild(v)}))}}]),re}(),se=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return a(re,[{key:"isValidDate",value:function(c){return!isNaN(this.parseDate(c))}},{key:"getTimeStamp",value:function(c){return Date.parse(c)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(c).toISOString().substr(0,25)).getTime():new Date(c).getTime():c}},{key:"getDate",value:function(c){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(c).toUTCString()):new Date(c)}},{key:"parseDate",value:function(c){var u=Date.parse(c);if(!isNaN(u))return this.getTimeStamp(c);var f=Date.parse(c.replace(/-/g,"/").replace(/[a-z]+/gi," "));return f=this.getTimeStamp(f)}},{key:"parseDateWithTimezone",value:function(c){return Date.parse(c.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(c,u){var f=this.w.globals.locale,g=this.w.config.xaxis.labels.datetimeUTC,v=["\0"].concat(k(f.months)),b=[""].concat(k(f.shortMonths)),x=[""].concat(k(f.days)),E=[""].concat(k(f.shortDays));function T(ge,ke){var De=ge+"";for(ke=ke||2;De.length<ke;)De="0"+De;return De}var $=g?c.getUTCFullYear():c.getFullYear();u=(u=(u=u.replace(/(^|[^\\])yyyy+/g,"$1"+$)).replace(/(^|[^\\])yy/g,"$1"+$.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+$);var R=(g?c.getUTCMonth():c.getMonth())+1;u=(u=(u=(u=u.replace(/(^|[^\\])MMMM+/g,"$1"+v[0])).replace(/(^|[^\\])MMM/g,"$1"+b[0])).replace(/(^|[^\\])MM/g,"$1"+T(R))).replace(/(^|[^\\])M/g,"$1"+R);var N=g?c.getUTCDate():c.getDate();u=(u=(u=(u=u.replace(/(^|[^\\])dddd+/g,"$1"+x[0])).replace(/(^|[^\\])ddd/g,"$1"+E[0])).replace(/(^|[^\\])dd/g,"$1"+T(N))).replace(/(^|[^\\])d/g,"$1"+N);var z=g?c.getUTCHours():c.getHours(),U=z>12?z-12:z===0?12:z;u=(u=(u=(u=u.replace(/(^|[^\\])HH+/g,"$1"+T(z))).replace(/(^|[^\\])H/g,"$1"+z)).replace(/(^|[^\\])hh+/g,"$1"+T(U))).replace(/(^|[^\\])h/g,"$1"+U);var Y=g?c.getUTCMinutes():c.getMinutes();u=(u=u.replace(/(^|[^\\])mm+/g,"$1"+T(Y))).replace(/(^|[^\\])m/g,"$1"+Y);var ne=g?c.getUTCSeconds():c.getSeconds();u=(u=u.replace(/(^|[^\\])ss+/g,"$1"+T(ne))).replace(/(^|[^\\])s/g,"$1"+ne);var le=g?c.getUTCMilliseconds():c.getMilliseconds();u=u.replace(/(^|[^\\])fff+/g,"$1"+T(le,3)),le=Math.round(le/10),u=u.replace(/(^|[^\\])ff/g,"$1"+T(le)),le=Math.round(le/10);var he=z<12?"AM":"PM";u=(u=(u=u.replace(/(^|[^\\])f/g,"$1"+le)).replace(/(^|[^\\])TT+/g,"$1"+he)).replace(/(^|[^\\])T/g,"$1"+he.charAt(0));var A=he.toLowerCase();u=(u=u.replace(/(^|[^\\])tt+/g,"$1"+A)).replace(/(^|[^\\])t/g,"$1"+A.charAt(0));var P=-c.getTimezoneOffset(),W=g||!P?"Z":P>0?"+":"-";if(!g){var oe=(P=Math.abs(P))%60;W+=T(Math.floor(P/60))+":"+T(oe)}u=u.replace(/(^|[^\\])K/g,"$1"+W);var pe=(g?c.getUTCDay():c.getDay())+1;return u=(u=(u=(u=(u=u.replace(new RegExp(x[0],"g"),x[pe])).replace(new RegExp(E[0],"g"),E[pe])).replace(new RegExp(v[0],"g"),v[R])).replace(new RegExp(b[0],"g"),b[R])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(c,u,f){var g=this.w;g.config.xaxis.min!==void 0&&(c=g.config.xaxis.min),g.config.xaxis.max!==void 0&&(u=g.config.xaxis.max);var v=this.getDate(c),b=this.getDate(u),x=this.formatDate(v,"yyyy MM dd HH mm ss fff").split(" "),E=this.formatDate(b,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(x[6],10),maxMillisecond:parseInt(E[6],10),minSecond:parseInt(x[5],10),maxSecond:parseInt(E[5],10),minMinute:parseInt(x[4],10),maxMinute:parseInt(E[4],10),minHour:parseInt(x[3],10),maxHour:parseInt(E[3],10),minDate:parseInt(x[2],10),maxDate:parseInt(E[2],10),minMonth:parseInt(x[1],10)-1,maxMonth:parseInt(E[1],10)-1,minYear:parseInt(x[0],10),maxYear:parseInt(E[0],10)}}},{key:"isLeapYear",value:function(c){return c%4==0&&c%100!=0||c%400==0}},{key:"calculcateLastDaysOfMonth",value:function(c,u,f){return this.determineDaysOfMonths(c,u)-f}},{key:"determineDaysOfYear",value:function(c){var u=365;return this.isLeapYear(c)&&(u=366),u}},{key:"determineRemainingDaysOfYear",value:function(c,u,f){var g=this.daysCntOfYear[u]+f;return u>1&&this.isLeapYear()&&g++,g}},{key:"determineDaysOfMonths",value:function(c,u){var f=30;switch(c=_.monthMod(c),!0){case this.months30.indexOf(c)>-1:c===2&&(f=this.isLeapYear(u)?29:28);break;case this.months31.indexOf(c)>-1:default:f=31}return f}}]),re}(),J=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.tooltipKeyFormat="dd MMM"}return a(re,[{key:"xLabelFormat",value:function(c,u,f,g){var v=this.w;if(v.config.xaxis.type==="datetime"&&v.config.xaxis.labels.formatter===void 0&&v.config.tooltip.x.formatter===void 0){var b=new se(this.ctx);return b.formatDate(b.getDate(u),v.config.tooltip.x.format)}return c(u,f,g)}},{key:"defaultGeneralFormatter",value:function(c){return Array.isArray(c)?c.map(function(u){return u}):c}},{key:"defaultYFormatter",value:function(c,u,f){var g=this.w;return _.isNumber(c)&&(c=g.globals.yValueDecimal!==0?c.toFixed(u.decimalsInFloat!==void 0?u.decimalsInFloat:g.globals.yValueDecimal):g.globals.maxYArr[f]-g.globals.minYArr[f]<5?c.toFixed(1):c.toFixed(0)),c}},{key:"setLabelFormatters",value:function(){var c=this,u=this.w;return u.globals.xaxisTooltipFormatter=function(f){return c.defaultGeneralFormatter(f)},u.globals.ttKeyFormatter=function(f){return c.defaultGeneralFormatter(f)},u.globals.ttZFormatter=function(f){return f},u.globals.legendFormatter=function(f){return c.defaultGeneralFormatter(f)},u.config.xaxis.labels.formatter!==void 0?u.globals.xLabelFormatter=u.config.xaxis.labels.formatter:u.globals.xLabelFormatter=function(f){if(_.isNumber(f)){if(!u.config.xaxis.convertedCatToNumeric&&u.config.xaxis.type==="numeric"){if(_.isNumber(u.config.xaxis.decimalsInFloat))return f.toFixed(u.config.xaxis.decimalsInFloat);var g=u.globals.maxX-u.globals.minX;return g>0&&g<100?f.toFixed(1):f.toFixed(0)}return u.globals.isBarHorizontal&&u.globals.maxY-u.globals.minYArr<4?f.toFixed(1):f.toFixed(0)}return f},typeof u.config.tooltip.x.formatter=="function"?u.globals.ttKeyFormatter=u.config.tooltip.x.formatter:u.globals.ttKeyFormatter=u.globals.xLabelFormatter,typeof u.config.xaxis.tooltip.formatter=="function"&&(u.globals.xaxisTooltipFormatter=u.config.xaxis.tooltip.formatter),(Array.isArray(u.config.tooltip.y)||u.config.tooltip.y.formatter!==void 0)&&(u.globals.ttVal=u.config.tooltip.y),u.config.tooltip.z.formatter!==void 0&&(u.globals.ttZFormatter=u.config.tooltip.z.formatter),u.config.legend.formatter!==void 0&&(u.globals.legendFormatter=u.config.legend.formatter),u.config.yaxis.forEach(function(f,g){f.labels.formatter!==void 0?u.globals.yLabelFormatters[g]=f.labels.formatter:u.globals.yLabelFormatters[g]=function(v){return u.globals.xyCharts?Array.isArray(v)?v.map(function(b){return c.defaultYFormatter(b,f,g)}):c.defaultYFormatter(v,f,g):v}}),u.globals}},{key:"heatmapLabelFormatters",value:function(){var c=this.w;if(c.config.chart.type==="heatmap"){c.globals.yAxisScale[0].result=c.globals.seriesNames.slice();var u=c.globals.seriesNames.reduce(function(f,g){return f.length>g.length?f:g},0);c.globals.yAxisScale[0].niceMax=u,c.globals.yAxisScale[0].niceMin=u}}}]),re}(),B=function(re){var c,u=re.isTimeline,f=re.ctx,g=re.seriesIndex,v=re.dataPointIndex,b=re.y1,x=re.y2,E=re.w,T=E.globals.seriesRangeStart[g][v],$=E.globals.seriesRangeEnd[g][v],R=E.globals.labels[v],N=E.config.series[g].name?E.config.series[g].name:"",z=E.globals.ttKeyFormatter,U=E.config.tooltip.y.title.formatter,Y={w:E,seriesIndex:g,dataPointIndex:v,start:T,end:$};typeof U=="function"&&(N=U(N,Y)),(c=E.config.series[g].data[v])!==null&&c!==void 0&&c.x&&(R=E.config.series[g].data[v].x),u||E.config.xaxis.type==="datetime"&&(R=new J(f).xLabelFormat(E.globals.ttKeyFormatter,R,R,{i:void 0,dateFormatter:new se(f).formatDate,w:E})),typeof z=="function"&&(R=z(R,Y)),Number.isFinite(b)&&Number.isFinite(x)&&(T=b,$=x);var ne="",le="",he=E.globals.colors[g];if(E.config.tooltip.x.formatter===void 0)if(E.config.xaxis.type==="datetime"){var A=new se(f);ne=A.formatDate(A.getDate(T),E.config.tooltip.x.format),le=A.formatDate(A.getDate($),E.config.tooltip.x.format)}else ne=T,le=$;else ne=E.config.tooltip.x.formatter(T),le=E.config.tooltip.x.formatter($);return{start:T,end:$,startVal:ne,endVal:le,ylabel:R,color:he,seriesName:N}},V=function(re){var c=re.color,u=re.seriesName,f=re.ylabel,g=re.start,v=re.end,b=re.seriesIndex,x=re.dataPointIndex,E=re.ctx.tooltip.tooltipLabels.getFormatters(b);g=E.yLbFormatter(g),v=E.yLbFormatter(v);var T=E.yLbFormatter(re.w.globals.series[b][x]),$=`<span class="value start-value">
  `.concat(g,`
  </span> <span class="separator">-</span> <span class="value end-value">
  `).concat(v,`
  </span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+c+'">'+(u||"")+'</span></div><div> <span class="category">'+f+": </span> "+(re.w.globals.comboCharts?re.w.config.series[b].type==="rangeArea"||re.w.config.series[b].type==="rangeBar"?$:"<span>".concat(T,"</span>"):$)+" </div></div>"},q=function(){function re(c){o(this,re),this.opts=c}return a(re,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(c){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,_.extend(c,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var c=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(u){var f=u.seriesIndex,g=u.dataPointIndex,v=u.w;return c._getBoxTooltip(v,f,g,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var c=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(u){var f=u.seriesIndex,g=u.dataPointIndex,v=u.w;return c._getBoxTooltip(v,f,g,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(c,u){u.ctx;var f=u.seriesIndex,g=u.dataPointIndex,v=u.w,b=function(){var x=v.globals.seriesRangeStart[f][g];return v.globals.seriesRangeEnd[f][g]-x};return v.globals.comboCharts?v.config.series[f].type==="rangeBar"||v.config.series[f].type==="rangeArea"?b():c:b()},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(c){return c.w.config.plotOptions&&c.w.config.plotOptions.bar&&c.w.config.plotOptions.bar.horizontal?function(u){var f=B(r(r({},u),{},{isTimeline:!0})),g=f.color,v=f.seriesName,b=f.ylabel,x=f.startVal,E=f.endVal;return V(r(r({},u),{},{color:g,seriesName:v,ylabel:b,start:x,end:E}))}(c):function(u){var f=B(u),g=f.color,v=f.seriesName,b=f.ylabel,x=f.start,E=f.end;return V(r(r({},u),{},{color:g,seriesName:v,ylabel:b,start:x,end:E}))}(c)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(c){return function(u){var f=B(u),g=f.color,v=f.seriesName,b=f.ylabel,x=f.start,E=f.end;return V(r(r({},u),{},{color:g,seriesName:v,ylabel:b,start:x,end:E}))}(c)}}}}},{key:"brush",value:function(c){return _.extend(c,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(c){c.dataLabels=c.dataLabels||{},c.dataLabels.formatter=c.dataLabels.formatter||void 0;var u=c.dataLabels.formatter;return c.yaxis.forEach(function(f,g){c.yaxis[g].min=0,c.yaxis[g].max=100}),c.chart.type==="bar"&&(c.dataLabels.formatter=u||function(f){return typeof f=="number"&&f?f.toFixed(0)+"%":f}),c}},{key:"stackedBars",value:function(){var c=this.bar();return r(r({},c),{},{plotOptions:r(r({},c.plotOptions),{},{bar:r(r({},c.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(c){return c.xaxis.convertedCatToNumeric=!0,c}},{key:"convertCatToNumericXaxis",value:function(c,u,f){c.xaxis.type="numeric",c.xaxis.labels=c.xaxis.labels||{},c.xaxis.labels.formatter=c.xaxis.labels.formatter||function(b){return _.isNumber(b)?Math.floor(b):b};var g=c.xaxis.labels.formatter,v=c.xaxis.categories&&c.xaxis.categories.length?c.xaxis.categories:c.labels;return f&&f.length&&(v=f.map(function(b){return Array.isArray(b)?b:String(b)})),v&&v.length&&(c.xaxis.labels.formatter=function(b){return _.isNumber(b)?g(v[Math.floor(b)-1]):g(b)}),c.xaxis.categories=[],c.labels=[],c.xaxis.tickAmount=c.xaxis.tickAmount||"dataPoints",c}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(c){return c.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(c){return c.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(c){return c.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(c){return c},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(c,u,f,g,v){var b=c.globals.seriesCandleO[u][f],x=c.globals.seriesCandleH[u][f],E=c.globals.seriesCandleM[u][f],T=c.globals.seriesCandleL[u][f],$=c.globals.seriesCandleC[u][f];return c.config.series[u].type&&c.config.series[u].type!==v?`<div class="apexcharts-custom-tooltip">
          `.concat(c.config.series[u].name?c.config.series[u].name:"series-"+(u+1),": <strong>").concat(c.globals.series[u][f],`</strong>
        </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(c.config.chart.type,'">')+"<div>".concat(g[0],': <span class="value">')+b+"</span></div>"+"<div>".concat(g[1],': <span class="value">')+x+"</span></div>"+(E?"<div>".concat(g[2],': <span class="value">')+E+"</span></div>":"")+"<div>".concat(g[3],': <span class="value">')+T+"</span></div>"+"<div>".concat(g[4],': <span class="value">')+$+"</span></div></div>"}}]),re}(),ce=function(){function re(c){o(this,re),this.opts=c}return a(re,[{key:"init",value:function(c){var u=c.responsiveOverride,f=this.opts,g=new ye,v=new q(f);this.chartType=f.chart.type,f=this.extendYAxis(f),f=this.extendAnnotations(f);var b=g.init(),x={};if(f&&i(f)==="object"){var E={};E=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(f.chart.type)!==-1?v[f.chart.type]():v.line(),f.chart.stacked&&f.chart.type==="bar"&&(E=v.stackedBars()),f.chart.brush&&f.chart.brush.enabled&&(E=v.brush(E)),f.chart.stacked&&f.chart.stackType==="100%"&&(f=v.stacked100(f)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(f),f.xaxis=f.xaxis||window.Apex.xaxis||{},u||(f.xaxis.convertedCatToNumeric=!1),((f=this.checkForCatToNumericXAxis(this.chartType,E,f)).chart.sparkline&&f.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(E=v.sparkline(E)),x=_.extend(b,E)}var T=_.extend(x,window.Apex);return b=_.extend(T,f),b=this.handleUserInputErrors(b)}},{key:"checkForCatToNumericXAxis",value:function(c,u,f){var g=new q(f),v=(c==="bar"||c==="boxPlot")&&f.plotOptions&&f.plotOptions.bar&&f.plotOptions.bar.horizontal,b=c==="pie"||c==="polarArea"||c==="donut"||c==="radar"||c==="radialBar"||c==="heatmap",x=f.xaxis.type!=="datetime"&&f.xaxis.type!=="numeric",E=f.xaxis.tickPlacement?f.xaxis.tickPlacement:u.xaxis&&u.xaxis.tickPlacement;return v||b||!x||E==="between"||(f=g.convertCatToNumeric(f)),f}},{key:"extendYAxis",value:function(c,u){var f=new ye;(c.yaxis===void 0||!c.yaxis||Array.isArray(c.yaxis)&&c.yaxis.length===0)&&(c.yaxis={}),c.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(c.yaxis=_.extend(c.yaxis,window.Apex.yaxis)),c.yaxis.constructor!==Array?c.yaxis=[_.extend(f.yAxis,c.yaxis)]:c.yaxis=_.extendArray(c.yaxis,f.yAxis);var g=!1;c.yaxis.forEach(function(b){b.logarithmic&&(g=!0)});var v=c.series;return u&&!v&&(v=u.config.series),g&&v.length!==c.yaxis.length&&v.length&&(c.yaxis=v.map(function(b,x){if(b.name||(v[x].name="series-".concat(x+1)),c.yaxis[x])return c.yaxis[x].seriesName=v[x].name,c.yaxis[x];var E=_.extend(f.yAxis,c.yaxis[0]);return E.show=!1,E})),g&&v.length>1&&v.length!==c.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),c}},{key:"extendAnnotations",value:function(c){return c.annotations===void 0&&(c.annotations={},c.annotations.yaxis=[],c.annotations.xaxis=[],c.annotations.points=[]),c=this.extendYAxisAnnotations(c),c=this.extendXAxisAnnotations(c),c=this.extendPointAnnotations(c)}},{key:"extendYAxisAnnotations",value:function(c){var u=new ye;return c.annotations.yaxis=_.extendArray(c.annotations.yaxis!==void 0?c.annotations.yaxis:[],u.yAxisAnnotation),c}},{key:"extendXAxisAnnotations",value:function(c){var u=new ye;return c.annotations.xaxis=_.extendArray(c.annotations.xaxis!==void 0?c.annotations.xaxis:[],u.xAxisAnnotation),c}},{key:"extendPointAnnotations",value:function(c){var u=new ye;return c.annotations.points=_.extendArray(c.annotations.points!==void 0?c.annotations.points:[],u.pointAnnotation),c}},{key:"checkForDarkTheme",value:function(c){c.theme&&c.theme.mode==="dark"&&(c.tooltip||(c.tooltip={}),c.tooltip.theme!=="light"&&(c.tooltip.theme="dark"),c.chart.foreColor||(c.chart.foreColor="#f6f7f8"),c.chart.background||(c.chart.background="#424242"),c.theme.palette||(c.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(c){var u=c;if(u.tooltip.shared&&u.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(u.chart.type==="bar"&&u.plotOptions.bar.horizontal){if(u.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");u.yaxis[0].reversed&&(u.yaxis[0].opposite=!0),u.xaxis.tooltip.enabled=!1,u.yaxis[0].tooltip.enabled=!1,u.chart.zoom.enabled=!1}return u.chart.type!=="bar"&&u.chart.type!=="rangeBar"||u.tooltip.shared&&u.xaxis.crosshairs.width==="barWidth"&&u.series.length>1&&(u.xaxis.crosshairs.width="tickWidth"),u.chart.type!=="candlestick"&&u.chart.type!=="boxPlot"||u.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(u.chart.type," chart is not supported.")),u.yaxis[0].reversed=!1),u}}]),re}(),fe=function(){function re(){o(this,re)}return a(re,[{key:"initGlobalVars",value:function(c){c.series=[],c.seriesCandleO=[],c.seriesCandleH=[],c.seriesCandleM=[],c.seriesCandleL=[],c.seriesCandleC=[],c.seriesRangeStart=[],c.seriesRangeEnd=[],c.seriesRange=[],c.seriesPercent=[],c.seriesGoals=[],c.seriesX=[],c.seriesZ=[],c.seriesNames=[],c.seriesTotals=[],c.seriesLog=[],c.seriesColors=[],c.stackedSeriesTotals=[],c.seriesXvalues=[],c.seriesYvalues=[],c.labels=[],c.hasXaxisGroups=!1,c.groups=[],c.hasSeriesGroups=!1,c.seriesGroups=[],c.categoryLabels=[],c.timescaleLabels=[],c.noLabelsProvided=!1,c.resizeTimer=null,c.selectionResizeTimer=null,c.delayedElements=[],c.pointsArray=[],c.dataLabelsRects=[],c.isXNumeric=!1,c.skipLastTimelinelabel=!1,c.skipFirstTimelinelabel=!1,c.isDataXYZ=!1,c.isMultiLineX=!1,c.isMultipleYAxis=!1,c.maxY=-Number.MAX_VALUE,c.minY=Number.MIN_VALUE,c.minYArr=[],c.maxYArr=[],c.maxX=-Number.MAX_VALUE,c.minX=Number.MAX_VALUE,c.initialMaxX=-Number.MAX_VALUE,c.initialMinX=Number.MAX_VALUE,c.maxDate=0,c.minDate=Number.MAX_VALUE,c.minZ=Number.MAX_VALUE,c.maxZ=-Number.MAX_VALUE,c.minXDiff=Number.MAX_VALUE,c.yAxisScale=[],c.xAxisScale=null,c.xAxisTicksPositions=[],c.yLabelsCoords=[],c.yTitleCoords=[],c.barPadForNumericAxis=0,c.padHorizontal=0,c.xRange=0,c.yRange=[],c.zRange=0,c.dataPoints=0,c.xTickAmount=0}},{key:"globalVars",value:function(c){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:c.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:c.chart.toolbar.autoSelected==="zoom"&&c.chart.toolbar.tools.zoom&&c.chart.zoom.enabled,panEnabled:c.chart.toolbar.autoSelected==="pan"&&c.chart.toolbar.tools.pan,selectionEnabled:c.chart.toolbar.autoSelected==="selection"&&c.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(c){var u=this.globalVars(c);return this.initGlobalVars(u),u.initialConfig=_.extend({},c),u.initialSeries=_.clone(c.series),u.lastXAxis=_.clone(u.initialConfig.xaxis),u.lastYAxis=_.clone(u.initialConfig.yaxis),u}}]),re}(),Ae=function(){function re(c){o(this,re),this.opts=c}return a(re,[{key:"init",value:function(){var c=new ce(this.opts).init({responsiveOverride:!1});return{config:c,globals:new fe().init(c)}}}]),re}(),Se=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.opts=null,this.seriesIndex=0}return a(re,[{key:"clippedImgArea",value:function(c){var u=this.w,f=u.config,g=parseInt(u.globals.gridWidth,10),v=parseInt(u.globals.gridHeight,10),b=g>v?g:v,x=c.image,E=0,T=0;c.width===void 0&&c.height===void 0?f.fill.image.width!==void 0&&f.fill.image.height!==void 0?(E=f.fill.image.width+1,T=f.fill.image.height):(E=b+1,T=b):(E=c.width,T=c.height);var $=document.createElementNS(u.globals.SVGNS,"pattern");F.setAttrs($,{id:c.patternID,patternUnits:c.patternUnits?c.patternUnits:"userSpaceOnUse",width:E+"px",height:T+"px"});var R=document.createElementNS(u.globals.SVGNS,"image");$.appendChild(R),R.setAttributeNS(window.SVG.xlink,"href",x),F.setAttrs(R,{x:0,y:0,preserveAspectRatio:"none",width:E+"px",height:T+"px"}),R.style.opacity=c.opacity,u.globals.dom.elDefs.node.appendChild($)}},{key:"getSeriesIndex",value:function(c){var u=this.w;return(u.config.chart.type==="bar"||u.config.chart.type==="rangeBar")&&u.config.plotOptions.bar.distributed||u.config.chart.type==="heatmap"||u.config.chart.type==="treemap"?this.seriesIndex=c.seriesNumber:this.seriesIndex=c.seriesNumber%u.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(c){var u=this.w;this.opts=c;var f,g,v,b=this.w.config;this.seriesIndex=this.getSeriesIndex(c);var x=this.getFillColors()[this.seriesIndex];u.globals.seriesColors[this.seriesIndex]!==void 0&&(x=u.globals.seriesColors[this.seriesIndex]),typeof x=="function"&&(x=x({seriesIndex:this.seriesIndex,dataPointIndex:c.dataPointIndex,value:c.value,w:u}));var E=c.fillType?c.fillType:this.getFillType(this.seriesIndex),T=Array.isArray(b.fill.opacity)?b.fill.opacity[this.seriesIndex]:b.fill.opacity;c.color&&(x=c.color);var $=x;if(x.indexOf("rgb")===-1?x.length<9&&($=_.hexToRgba(x,T)):x.indexOf("rgba")>-1&&(T=_.getOpacityFromRGBA(x)),c.opacity&&(T=c.opacity),E==="pattern"&&(g=this.handlePatternFill({fillConfig:c.fillConfig,patternFill:g,fillColor:x,fillOpacity:T,defaultColor:$})),E==="gradient"&&(v=this.handleGradientFill({fillConfig:c.fillConfig,fillColor:x,fillOpacity:T,i:this.seriesIndex})),E==="image"){var R=b.fill.image.src,N=c.patternID?c.patternID:"";this.clippedImgArea({opacity:T,image:Array.isArray(R)?c.seriesNumber<R.length?R[c.seriesNumber]:R[0]:R,width:c.width?c.width:void 0,height:c.height?c.height:void 0,patternUnits:c.patternUnits,patternID:"pattern".concat(u.globals.cuid).concat(c.seriesNumber+1).concat(N)}),f="url(#pattern".concat(u.globals.cuid).concat(c.seriesNumber+1).concat(N,")")}else f=E==="gradient"?v:E==="pattern"?g:$;return c.solid&&(f=$),f}},{key:"getFillType",value:function(c){var u=this.w;return Array.isArray(u.config.fill.type)?u.config.fill.type[c]:u.config.fill.type}},{key:"getFillColors",value:function(){var c=this.w,u=c.config,f=this.opts,g=[];return c.globals.comboCharts?c.config.series[this.seriesIndex].type==="line"?Array.isArray(c.globals.stroke.colors)?g=c.globals.stroke.colors:g.push(c.globals.stroke.colors):Array.isArray(c.globals.fill.colors)?g=c.globals.fill.colors:g.push(c.globals.fill.colors):u.chart.type==="line"?Array.isArray(c.globals.stroke.colors)?g=c.globals.stroke.colors:g.push(c.globals.stroke.colors):Array.isArray(c.globals.fill.colors)?g=c.globals.fill.colors:g.push(c.globals.fill.colors),f.fillColors!==void 0&&(g=[],Array.isArray(f.fillColors)?g=f.fillColors.slice():g.push(f.fillColors)),g}},{key:"handlePatternFill",value:function(c){var u=c.fillConfig,f=c.patternFill,g=c.fillColor,v=c.fillOpacity,b=c.defaultColor,x=this.w.config.fill;u&&(x=u);var E=this.opts,T=new F(this.ctx),$=Array.isArray(x.pattern.strokeWidth)?x.pattern.strokeWidth[this.seriesIndex]:x.pattern.strokeWidth,R=g;return Array.isArray(x.pattern.style)?f=x.pattern.style[E.seriesNumber]!==void 0?T.drawPattern(x.pattern.style[E.seriesNumber],x.pattern.width,x.pattern.height,R,$,v):b:f=T.drawPattern(x.pattern.style,x.pattern.width,x.pattern.height,R,$,v),f}},{key:"handleGradientFill",value:function(c){var u=c.fillColor,f=c.fillOpacity,g=c.fillConfig,v=c.i,b=this.w.config.fill;g&&(b=r(r({},b),g));var x,E=this.opts,T=new F(this.ctx),$=new _,R=b.gradient.type,N=u,z=b.gradient.opacityFrom===void 0?f:Array.isArray(b.gradient.opacityFrom)?b.gradient.opacityFrom[v]:b.gradient.opacityFrom;N.indexOf("rgba")>-1&&(z=_.getOpacityFromRGBA(N));var U=b.gradient.opacityTo===void 0?f:Array.isArray(b.gradient.opacityTo)?b.gradient.opacityTo[v]:b.gradient.opacityTo;if(b.gradient.gradientToColors===void 0||b.gradient.gradientToColors.length===0)x=b.gradient.shade==="dark"?$.shadeColor(-1*parseFloat(b.gradient.shadeIntensity),u.indexOf("rgb")>-1?_.rgb2hex(u):u):$.shadeColor(parseFloat(b.gradient.shadeIntensity),u.indexOf("rgb")>-1?_.rgb2hex(u):u);else if(b.gradient.gradientToColors[E.seriesNumber]){var Y=b.gradient.gradientToColors[E.seriesNumber];x=Y,Y.indexOf("rgba")>-1&&(U=_.getOpacityFromRGBA(Y))}else x=u;if(b.gradient.gradientFrom&&(N=b.gradient.gradientFrom),b.gradient.gradientTo&&(x=b.gradient.gradientTo),b.gradient.inverseColors){var ne=N;N=x,x=ne}return N.indexOf("rgb")>-1&&(N=_.rgb2hex(N)),x.indexOf("rgb")>-1&&(x=_.rgb2hex(x)),T.drawGradient(R,N,x,z,U,E.size,b.gradient.stops,b.gradient.colorStops,v)}}]),re}(),_e=function(){function re(c,u){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"setGlobalMarkerSize",value:function(){var c=this.w;if(c.globals.markers.size=Array.isArray(c.config.markers.size)?c.config.markers.size:[c.config.markers.size],c.globals.markers.size.length>0){if(c.globals.markers.size.length<c.globals.series.length+1)for(var u=0;u<=c.globals.series.length;u++)c.globals.markers.size[u]===void 0&&c.globals.markers.size.push(c.globals.markers.size[0])}else c.globals.markers.size=c.config.series.map(function(f){return c.config.markers.size})}},{key:"plotChartMarkers",value:function(c,u,f,g){var v,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4],x=this.w,E=u,T=c,$=null,R=new F(this.ctx),N=x.config.markers.discrete&&x.config.markers.discrete.length;if((x.globals.markers.size[u]>0||b||N)&&($=R.group({class:b||N?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(x.globals.cuid,")")),Array.isArray(T.x))for(var z=0;z<T.x.length;z++){var U=f;f===1&&z===0&&(U=0),f===1&&z===1&&(U=1);var Y="apexcharts-marker";if(x.config.chart.type!=="line"&&x.config.chart.type!=="area"||x.globals.comboCharts||x.config.tooltip.intersect||(Y+=" no-pointer-events"),(Array.isArray(x.config.markers.size)?x.globals.markers.size[u]>0:x.config.markers.size>0)||b||N){_.isNumber(T.y[z])?Y+=" w".concat(_.randomId()):Y="apexcharts-nullpoint";var ne=this.getMarkerConfig({cssClass:Y,seriesIndex:u,dataPointIndex:U});x.config.series[E].data[U]&&(x.config.series[E].data[U].fillColor&&(ne.pointFillColor=x.config.series[E].data[U].fillColor),x.config.series[E].data[U].strokeColor&&(ne.pointStrokeColor=x.config.series[E].data[U].strokeColor)),g&&(ne.pSize=g),(T.x[z]<0||T.x[z]>x.globals.gridWidth||T.y[z]<0||T.y[z]>x.globals.gridHeight)&&(ne.pSize=0),(v=R.drawMarker(T.x[z],T.y[z],ne)).attr("rel",U),v.attr("j",U),v.attr("index",u),v.node.setAttribute("default-marker-size",ne.pSize),new M(this.ctx).setSelectionFilter(v,u,U),this.addEvents(v),$&&$.add(v)}else x.globals.pointsArray[u]===void 0&&(x.globals.pointsArray[u]=[]),x.globals.pointsArray[u].push([T.x[z],T.y[z]])}return $}},{key:"getMarkerConfig",value:function(c){var u=c.cssClass,f=c.seriesIndex,g=c.dataPointIndex,v=g===void 0?null:g,b=c.finishRadius,x=b===void 0?null:b,E=this.w,T=this.getMarkerStyle(f),$=E.globals.markers.size[f],R=E.config.markers;return v!==null&&R.discrete.length&&R.discrete.map(function(N){N.seriesIndex===f&&N.dataPointIndex===v&&(T.pointStrokeColor=N.strokeColor,T.pointFillColor=N.fillColor,$=N.size,T.pointShape=N.shape)}),{pSize:x===null?$:x,pRadius:R.radius,width:Array.isArray(R.width)?R.width[f]:R.width,height:Array.isArray(R.height)?R.height[f]:R.height,pointStrokeWidth:Array.isArray(R.strokeWidth)?R.strokeWidth[f]:R.strokeWidth,pointStrokeColor:T.pointStrokeColor,pointFillColor:T.pointFillColor,shape:T.pointShape||(Array.isArray(R.shape)?R.shape[f]:R.shape),class:u,pointStrokeOpacity:Array.isArray(R.strokeOpacity)?R.strokeOpacity[f]:R.strokeOpacity,pointStrokeDashArray:Array.isArray(R.strokeDashArray)?R.strokeDashArray[f]:R.strokeDashArray,pointFillOpacity:Array.isArray(R.fillOpacity)?R.fillOpacity[f]:R.fillOpacity,seriesIndex:f}}},{key:"addEvents",value:function(c){var u=this.w,f=new F(this.ctx);c.node.addEventListener("mouseenter",f.pathMouseEnter.bind(this.ctx,c)),c.node.addEventListener("mouseleave",f.pathMouseLeave.bind(this.ctx,c)),c.node.addEventListener("mousedown",f.pathMouseDown.bind(this.ctx,c)),c.node.addEventListener("click",u.config.markers.onClick),c.node.addEventListener("dblclick",u.config.markers.onDblClick),c.node.addEventListener("touchstart",f.pathMouseDown.bind(this.ctx,c),{passive:!0})}},{key:"getMarkerStyle",value:function(c){var u=this.w,f=u.globals.markers.colors,g=u.config.markers.strokeColor||u.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(g)?g[c]:g,pointFillColor:Array.isArray(f)?f[c]:f}}}]),re}(),Be=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return a(re,[{key:"draw",value:function(c,u,f){var g=this.w,v=new F(this.ctx),b=f.realIndex,x=f.pointsPos,E=f.zRatio,T=f.elParent,$=v.group({class:"apexcharts-series-markers apexcharts-series-".concat(g.config.chart.type)});if($.attr("clip-path","url(#gridRectMarkerMask".concat(g.globals.cuid,")")),Array.isArray(x.x))for(var R=0;R<x.x.length;R++){var N=u+1,z=!0;u===0&&R===0&&(N=0),u===0&&R===1&&(N=1);var U=0,Y=g.globals.markers.size[b];if(E!==1/0){var ne=g.config.plotOptions.bubble;Y=g.globals.seriesZ[b][N],ne.zScaling&&(Y/=E),ne.minBubbleRadius&&Y<ne.minBubbleRadius&&(Y=ne.minBubbleRadius),ne.maxBubbleRadius&&Y>ne.maxBubbleRadius&&(Y=ne.maxBubbleRadius)}g.config.chart.animations.enabled||(U=Y);var le=x.x[R],he=x.y[R];if(U=U||0,he!==null&&g.globals.series[b][N]!==void 0||(z=!1),z){var A=this.drawPoint(le,he,U,Y,b,N,u);$.add(A)}T.add($)}}},{key:"drawPoint",value:function(c,u,f,g,v,b,x){var E=this.w,T=v,$=new L(this.ctx),R=new M(this.ctx),N=new Se(this.ctx),z=new _e(this.ctx),U=new F(this.ctx),Y=z.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:T,dataPointIndex:b,finishRadius:E.config.chart.type==="bubble"||E.globals.comboCharts&&E.config.series[v]&&E.config.series[v].type==="bubble"?g:null});g=Y.pSize;var ne,le=N.fillPath({seriesNumber:v,dataPointIndex:b,color:Y.pointFillColor,patternUnits:"objectBoundingBox",value:E.globals.series[v][x]});if(Y.shape==="circle"?ne=U.drawCircle(f):Y.shape!=="square"&&Y.shape!=="rect"||(ne=U.drawRect(0,0,Y.width-Y.pointStrokeWidth/2,Y.height-Y.pointStrokeWidth/2,Y.pRadius)),E.config.series[T].data[b]&&E.config.series[T].data[b].fillColor&&(le=E.config.series[T].data[b].fillColor),ne.attr({x:c-Y.width/2-Y.pointStrokeWidth/2,y:u-Y.height/2-Y.pointStrokeWidth/2,cx:c,cy:u,fill:le,"fill-opacity":Y.pointFillOpacity,stroke:Y.pointStrokeColor,r:g,"stroke-width":Y.pointStrokeWidth,"stroke-dasharray":Y.pointStrokeDashArray,"stroke-opacity":Y.pointStrokeOpacity}),E.config.chart.dropShadow.enabled){var he=E.config.chart.dropShadow;R.dropShadow(ne,he,v)}if(!this.initialAnim||E.globals.dataChanged||E.globals.resized)E.globals.animationEnded=!0;else{var A=E.config.chart.animations.speed;$.animateMarker(ne,0,Y.shape==="circle"?g:{width:Y.width,height:Y.height},A,E.globals.easing,function(){window.setTimeout(function(){$.animationCompleted(ne)},100)})}if(E.globals.dataChanged&&Y.shape==="circle")if(this.dynamicAnim){var P,W,oe,pe,ge=E.config.chart.animations.dynamicAnimation.speed;(pe=E.globals.previousPaths[v]&&E.globals.previousPaths[v][x])!=null&&(P=pe.x,W=pe.y,oe=pe.r!==void 0?pe.r:g);for(var ke=0;ke<E.globals.collapsedSeries.length;ke++)E.globals.collapsedSeries[ke].index===v&&(ge=1,g=0);c===0&&u===0&&(g=0),$.animateCircle(ne,{cx:P,cy:W,r:oe},{cx:c,cy:u,r:g},ge,E.globals.easing)}else ne.attr({r:g});return ne.attr({rel:b,j:b,index:v,"default-marker-size":g}),R.setSelectionFilter(ne,v,b),z.addEvents(ne),ne.node.classList.add("apexcharts-marker"),ne}},{key:"centerTextInBubble",value:function(c){var u=this.w;return{y:c+=parseInt(u.config.dataLabels.style.fontSize,10)/4}}}]),re}(),Q=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"dataLabelsCorrection",value:function(c,u,f,g,v,b,x){var E=this.w,T=!1,$=new F(this.ctx).getTextRects(f,x),R=$.width,N=$.height;u<0&&(u=0),u>E.globals.gridHeight+N&&(u=E.globals.gridHeight+N/2),E.globals.dataLabelsRects[g]===void 0&&(E.globals.dataLabelsRects[g]=[]),E.globals.dataLabelsRects[g].push({x:c,y:u,width:R,height:N});var z=E.globals.dataLabelsRects[g].length-2,U=E.globals.lastDrawnDataLabelsIndexes[g]!==void 0?E.globals.lastDrawnDataLabelsIndexes[g][E.globals.lastDrawnDataLabelsIndexes[g].length-1]:0;if(E.globals.dataLabelsRects[g][z]!==void 0){var Y=E.globals.dataLabelsRects[g][U];(c>Y.x+Y.width+2||u>Y.y+Y.height+2||c+R<Y.x)&&(T=!0)}return(v===0||b)&&(T=!0),{x:c,y:u,textRects:$,drawnextLabel:T}}},{key:"drawDataLabel",value:function(c){var u=this,f=c.type,g=c.pos,v=c.i,b=c.j,x=c.isRangeStart,E=c.strokeWidth,T=E===void 0?2:E,$=this.w,R=new F(this.ctx),N=$.config.dataLabels,z=0,U=0,Y=b,ne=null;if(!N.enabled||!Array.isArray(g.x))return ne;ne=R.group({class:"apexcharts-data-labels"});for(var le=0;le<g.x.length;le++)if(z=g.x[le]+N.offsetX,U=g.y[le]+N.offsetY+T,!isNaN(z)){b===1&&le===0&&(Y=0),b===1&&le===1&&(Y=1);var he=$.globals.series[v][Y];f==="rangeArea"&&(he=x?$.globals.seriesRangeStart[v][Y]:$.globals.seriesRangeEnd[v][Y]);var A="",P=function(W){return $.config.dataLabels.formatter(W,{ctx:u.ctx,seriesIndex:v,dataPointIndex:Y,w:$})};$.config.chart.type==="bubble"?(A=P(he=$.globals.seriesZ[v][Y]),U=g.y[le],U=new Be(this.ctx).centerTextInBubble(U,v,Y).y):he!==void 0&&(A=P(he)),this.plotDataLabelsText({x:z,y:U,text:A,i:v,j:Y,parent:ne,offsetCorrection:!0,dataLabelsConfig:$.config.dataLabels})}return ne}},{key:"plotDataLabelsText",value:function(c){var u=this.w,f=new F(this.ctx),g=c.x,v=c.y,b=c.i,x=c.j,E=c.text,T=c.textAnchor,$=c.fontSize,R=c.parent,N=c.dataLabelsConfig,z=c.color,U=c.alwaysDrawDataLabel,Y=c.offsetCorrection;if(!(Array.isArray(u.config.dataLabels.enabledOnSeries)&&u.config.dataLabels.enabledOnSeries.indexOf(b)<0)){var ne={x:g,y:v,drawnextLabel:!0,textRects:null};Y&&(ne=this.dataLabelsCorrection(g,v,E,b,x,U,parseInt(N.style.fontSize,10))),u.globals.zoomed||(g=ne.x,v=ne.y),ne.textRects&&(g<-10-ne.textRects.width||g>u.globals.gridWidth+ne.textRects.width+10)&&(E="");var le=u.globals.dataLabels.style.colors[b];((u.config.chart.type==="bar"||u.config.chart.type==="rangeBar")&&u.config.plotOptions.bar.distributed||u.config.dataLabels.distributed)&&(le=u.globals.dataLabels.style.colors[x]),typeof le=="function"&&(le=le({series:u.globals.series,seriesIndex:b,dataPointIndex:x,w:u})),z&&(le=z);var he=N.offsetX,A=N.offsetY;if(u.config.chart.type!=="bar"&&u.config.chart.type!=="rangeBar"||(he=0,A=0),ne.drawnextLabel){var P=f.drawText({width:100,height:parseInt(N.style.fontSize,10),x:g+he,y:v+A,foreColor:le,textAnchor:T||N.textAnchor,text:E,fontSize:$||N.style.fontSize,fontFamily:N.style.fontFamily,fontWeight:N.style.fontWeight||"normal"});if(P.attr({class:"apexcharts-datalabel",cx:g,cy:v}),N.dropShadow.enabled){var W=N.dropShadow;new M(this.ctx).dropShadow(P,W)}R.add(P),u.globals.lastDrawnDataLabelsIndexes[b]===void 0&&(u.globals.lastDrawnDataLabelsIndexes[b]=[]),u.globals.lastDrawnDataLabelsIndexes[b].push(x)}}}},{key:"addBackgroundToDataLabel",value:function(c,u){var f=this.w,g=f.config.dataLabels.background,v=g.padding,b=g.padding/2,x=u.width,E=u.height,T=new F(this.ctx).drawRect(u.x-v,u.y-b/2,x+2*v,E+b,g.borderRadius,f.config.chart.background==="transparent"?"#fff":f.config.chart.background,g.opacity,g.borderWidth,g.borderColor);return g.dropShadow.enabled&&new M(this.ctx).dropShadow(T,g.dropShadow),T}},{key:"dataLabelsBackground",value:function(){var c=this.w;if(c.config.chart.type!=="bubble")for(var u=c.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),f=0;f<u.length;f++){var g=u[f],v=g.getBBox(),b=null;if(v.width&&v.height&&(b=this.addBackgroundToDataLabel(g,v)),b){g.parentNode.insertBefore(b.node,g);var x=g.getAttribute("fill");c.config.chart.animations.enabled&&!c.globals.resized&&!c.globals.dataChanged?b.animate().attr({fill:x}):b.attr({fill:x}),g.setAttribute("fill",c.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var c=this.w,u=c.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),f=c.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),g=0;g<u.length;g++)f&&f.insertBefore(u[g],f.nextSibling)}}]),re}(),de=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.legendInactiveClass="legend-mouseover-inactive"}return a(re,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(c){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(_.escapeString(c),"']"))}},{key:"isSeriesHidden",value:function(c){var u=this.getSeriesByName(c),f=parseInt(u.getAttribute("data:realIndex"),10);return{isHidden:u.classList.contains("apexcharts-series-collapsed"),realIndex:f}}},{key:"addCollapsedClassToSeries",value:function(c,u){var f=this.w;function g(v){for(var b=0;b<v.length;b++)v[b].index===u&&c.node.classList.add("apexcharts-series-collapsed")}g(f.globals.collapsedSeries),g(f.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(c){var u=this.isSeriesHidden(c);return this.ctx.legend.legendHelpers.toggleDataSeries(u.realIndex,u.isHidden),u.isHidden}},{key:"showSeries",value:function(c){var u=this.isSeriesHidden(c);u.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(u.realIndex,!0)}},{key:"hideSeries",value:function(c){var u=this.isSeriesHidden(c);u.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(u.realIndex,!1)}},{key:"resetSeries",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],g=this.w,v=_.clone(g.globals.initialSeries);g.globals.previousPaths=[],f?(g.globals.collapsedSeries=[],g.globals.ancillaryCollapsedSeries=[],g.globals.collapsedSeriesIndices=[],g.globals.ancillaryCollapsedSeriesIndices=[]):v=this.emptyCollapsedSeries(v),g.config.series=v,c&&(u&&(g.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(v,g.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(c){for(var u=this.w,f=0;f<c.length;f++)u.globals.collapsedSeriesIndices.indexOf(f)>-1&&(c[f].data=[]);return c}},{key:"toggleSeriesOnHover",value:function(c,u){var f=this.w;u||(u=c.target);var g=f.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(c.type==="mousemove"){var v=parseInt(u.getAttribute("rel"),10)-1,b=null,x=null;f.globals.axisCharts||f.config.chart.type==="radialBar"?f.globals.axisCharts?(b=f.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(v,"']")),x=f.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(v,"']"))):b=f.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(v+1,"']")):b=f.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(v+1,"'] path"));for(var E=0;E<g.length;E++)g[E].classList.add(this.legendInactiveClass);b!==null&&(f.globals.axisCharts||b.parentNode.classList.remove(this.legendInactiveClass),b.classList.remove(this.legendInactiveClass),x!==null&&x.classList.remove(this.legendInactiveClass))}else if(c.type==="mouseout")for(var T=0;T<g.length;T++)g[T].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(c,u){var f=this,g=this.w,v=g.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),b=function(E){for(var T=0;T<v.length;T++)v[T].classList[E](f.legendInactiveClass)};if(c.type==="mousemove"){var x=parseInt(u.getAttribute("rel"),10)-1;b("add"),function(E){for(var T=0;T<v.length;T++){var $=parseInt(v[T].getAttribute("val"),10);$>=E.from&&$<=E.to&&v[T].classList.remove(f.legendInactiveClass)}}(g.config.plotOptions.heatmap.colorScale.ranges[x])}else c.type==="mouseout"&&b("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=this.w,g=0;if(f.config.series.length>1){for(var v=f.config.series.map(function(x,E){return x.data&&x.data.length>0&&f.globals.collapsedSeriesIndices.indexOf(E)===-1&&(!f.globals.comboCharts||u.length===0||u.length&&u.indexOf(f.config.series[E].type)>-1)?E:-1}),b=c==="asc"?0:v.length-1;c==="asc"?b<v.length:b>=0;c==="asc"?b++:b--)if(v[b]!==-1){g=v[b];break}}return g}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(c,u){return c.type==="bar"||c.type==="column"?u:-1}).filter(function(c){return c!==-1}):this.w.config.series.map(function(c,u){return u})}},{key:"getPreviousPaths",value:function(){var c=this.w;function u(b,x,E){for(var T=b[x].childNodes,$={type:E,paths:[],realIndex:b[x].getAttribute("data:realIndex")},R=0;R<T.length;R++)if(T[R].hasAttribute("pathTo")){var N=T[R].getAttribute("pathTo");$.paths.push({d:N})}c.globals.previousPaths.push($)}c.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(b){for(var x,E=(x=b,c.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(x,"-series .apexcharts-series"))),T=0;T<E.length;T++)u(E,T,b)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var f=c.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(c.config.chart.type," .apexcharts-series"));if(f.length>0)for(var g=function(b){for(var x=c.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(c.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(b,"'] rect")),E=[],T=function(R){var N=function(U){return x[R].getAttribute(U)},z={x:parseFloat(N("x")),y:parseFloat(N("y")),width:parseFloat(N("width")),height:parseFloat(N("height"))};E.push({rect:z,color:x[R].getAttribute("color")})},$=0;$<x.length;$++)T($);c.globals.previousPaths.push(E)},v=0;v<f.length;v++)g(v);c.globals.axisCharts||(c.globals.previousPaths=c.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(c){var u=this.w,f=u.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(c,"-series .apexcharts-series"));if(f.length>0)for(var g=0;g<f.length;g++){for(var v=u.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(c,"-series .apexcharts-series[data\\:realIndex='").concat(g,"'] circle")),b=[],x=0;x<v.length;x++)b.push({x:v[x].getAttribute("cx"),y:v[x].getAttribute("cy"),r:v[x].getAttribute("r")});u.globals.previousPaths.push(b)}}},{key:"clearPreviousPaths",value:function(){var c=this.w;c.globals.previousPaths=[],c.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var c=this.w,u=c.config.noData,f=new F(this.ctx),g=c.globals.svgWidth/2,v=c.globals.svgHeight/2,b="middle";if(c.globals.noData=!0,c.globals.animationEnded=!0,u.align==="left"?(g=10,b="start"):u.align==="right"&&(g=c.globals.svgWidth-10,b="end"),u.verticalAlign==="top"?v=50:u.verticalAlign==="bottom"&&(v=c.globals.svgHeight-50),g+=u.offsetX,v=v+parseInt(u.style.fontSize,10)+2+u.offsetY,u.text!==void 0&&u.text!==""){var x=f.drawText({x:g,y:v,text:u.text,textAnchor:b,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,foreColor:u.style.color,opacity:1,class:"apexcharts-text-nodata"});c.globals.dom.Paper.add(x)}}},{key:"setNullSeriesToZeroValues",value:function(c){for(var u=this.w,f=0;f<c.length;f++)if(c[f].length===0)for(var g=0;g<c[u.globals.maxValsInArrayIndex].length;g++)c[f].push(0);return c}},{key:"hasAllSeriesEqualX",value:function(){for(var c=!0,u=this.w,f=this.filteredSeriesX(),g=0;g<f.length-1;g++)if(f[g][0]!==f[g+1][0]){c=!1;break}return u.globals.allSeriesHasEqualX=c,c}},{key:"filteredSeriesX",value:function(){var c=this.w.globals.seriesX.map(function(u){return u.length>0?u:[]});return c}}]),re}(),we=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new H(this.ctx)}return a(re,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var c=this.w.config.series.slice(),u=new de(this.ctx);if(this.activeSeriesIndex=u.getActiveConfigSeriesIndex(),c[this.activeSeriesIndex].data!==void 0&&c[this.activeSeriesIndex].data.length>0&&c[this.activeSeriesIndex].data[0]!==null&&c[this.activeSeriesIndex].data[0].x!==void 0&&c[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var c=this.w.config.series.slice(),u=new de(this.ctx);if(this.activeSeriesIndex=u.getActiveConfigSeriesIndex(),c[this.activeSeriesIndex].data!==void 0&&c[this.activeSeriesIndex].data.length>0&&c[this.activeSeriesIndex].data[0]!==void 0&&c[this.activeSeriesIndex].data[0]!==null&&c[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(c,u){for(var f=this.w.config,g=this.w.globals,v=f.chart.type==="boxPlot"||f.series[u].type==="boxPlot",b=0;b<c[u].data.length;b++)if(c[u].data[b][1]!==void 0&&(Array.isArray(c[u].data[b][1])&&c[u].data[b][1].length===4&&!v?this.twoDSeries.push(_.parseNumber(c[u].data[b][1][3])):c[u].data[b].length>=5?this.twoDSeries.push(_.parseNumber(c[u].data[b][4])):this.twoDSeries.push(_.parseNumber(c[u].data[b][1])),g.dataFormatXNumeric=!0),f.xaxis.type==="datetime"){var x=new Date(c[u].data[b][0]);x=new Date(x).getTime(),this.twoDSeriesX.push(x)}else this.twoDSeriesX.push(c[u].data[b][0]);for(var E=0;E<c[u].data.length;E++)c[u].data[E][2]!==void 0&&(this.threeDSeries.push(c[u].data[E][2]),g.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(c,u){var f=this.w.config,g=this.w.globals,v=new se(this.ctx),b=u;g.collapsedSeriesIndices.indexOf(u)>-1&&(b=this.activeSeriesIndex);for(var x=0;x<c[u].data.length;x++)c[u].data[x].y!==void 0&&(Array.isArray(c[u].data[x].y)?this.twoDSeries.push(_.parseNumber(c[u].data[x].y[c[u].data[x].y.length-1])):this.twoDSeries.push(_.parseNumber(c[u].data[x].y))),c[u].data[x].goals!==void 0&&Array.isArray(c[u].data[x].goals)?(this.seriesGoals[u]===void 0&&(this.seriesGoals[u]=[]),this.seriesGoals[u].push(c[u].data[x].goals)):(this.seriesGoals[u]===void 0&&(this.seriesGoals[u]=[]),this.seriesGoals[u].push(null));for(var E=0;E<c[b].data.length;E++){var T=typeof c[b].data[E].x=="string",$=Array.isArray(c[b].data[E].x),R=!$&&!!v.isValidDate(c[b].data[E].x.toString());if(T||R)if(T||f.xaxis.convertedCatToNumeric){var N=g.isBarHorizontal&&g.isRangeData;f.xaxis.type!=="datetime"||N?(this.fallbackToCategory=!0,this.twoDSeriesX.push(c[b].data[E].x)):this.twoDSeriesX.push(v.parseDate(c[b].data[E].x))}else f.xaxis.type==="datetime"?this.twoDSeriesX.push(v.parseDate(c[b].data[E].x.toString())):(g.dataFormatXNumeric=!0,g.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(c[b].data[E].x)));else $?(this.fallbackToCategory=!0,this.twoDSeriesX.push(c[b].data[E].x)):(g.isXNumeric=!0,g.dataFormatXNumeric=!0,this.twoDSeriesX.push(c[b].data[E].x))}if(c[u].data[0]&&c[u].data[0].z!==void 0){for(var z=0;z<c[u].data.length;z++)this.threeDSeries.push(c[u].data[z].z);g.isDataXYZ=!0}}},{key:"handleRangeData",value:function(c,u){var f=this.w.globals,g={};return this.isFormat2DArray()?g=this.handleRangeDataFormat("array",c,u):this.isFormatXY()&&(g=this.handleRangeDataFormat("xy",c,u)),f.seriesRangeStart.push(g.start),f.seriesRangeEnd.push(g.end),f.seriesRange.push(g.rangeUniques),f.seriesRange.forEach(function(v,b){v&&v.forEach(function(x,E){x.y.forEach(function(T,$){for(var R=0;R<x.y.length;R++)if($!==R){var N=T.y1,z=T.y2,U=x.y[R].y1;N<=x.y[R].y2&&U<=z&&(x.overlaps.indexOf(T.rangeName)<0&&x.overlaps.push(T.rangeName),x.overlaps.indexOf(x.y[R].rangeName)<0&&x.overlaps.push(x.y[R].rangeName))}})})}),g}},{key:"handleCandleStickBoxData",value:function(c,u){var f=this.w.globals,g={};return this.isFormat2DArray()?g=this.handleCandleStickBoxDataFormat("array",c,u):this.isFormatXY()&&(g=this.handleCandleStickBoxDataFormat("xy",c,u)),f.seriesCandleO[u]=g.o,f.seriesCandleH[u]=g.h,f.seriesCandleM[u]=g.m,f.seriesCandleL[u]=g.l,f.seriesCandleC[u]=g.c,g}},{key:"handleRangeDataFormat",value:function(c,u,f){var g=[],v=[],b=u[f].data.filter(function($,R,N){return R===N.findIndex(function(z){return z.x===$.x})}).map(function($,R){return{x:$.x,overlaps:[],y:[]}});if(c==="array")for(var x=0;x<u[f].data.length;x++)Array.isArray(u[f].data[x])?(g.push(u[f].data[x][1][0]),v.push(u[f].data[x][1][1])):(g.push(u[f].data[x]),v.push(u[f].data[x]));else if(c==="xy")for(var E=function($){var R=Array.isArray(u[f].data[$].y),N=_.randomId(),z=u[f].data[$].x,U={y1:R?u[f].data[$].y[0]:u[f].data[$].y,y2:R?u[f].data[$].y[1]:u[f].data[$].y,rangeName:N};u[f].data[$].rangeName=N;var Y=b.findIndex(function(ne){return ne.x===z});b[Y].y.push(U),g.push(U.y1),v.push(U.y2)},T=0;T<u[f].data.length;T++)E(T);return{start:g,end:v,rangeUniques:b}}},{key:"handleCandleStickBoxDataFormat",value:function(c,u,f){var g=this.w,v=g.config.chart.type==="boxPlot"||g.config.series[f].type==="boxPlot",b=[],x=[],E=[],T=[],$=[];if(c==="array")if(v&&u[f].data[0].length===6||!v&&u[f].data[0].length===5)for(var R=0;R<u[f].data.length;R++)b.push(u[f].data[R][1]),x.push(u[f].data[R][2]),v?(E.push(u[f].data[R][3]),T.push(u[f].data[R][4]),$.push(u[f].data[R][5])):(T.push(u[f].data[R][3]),$.push(u[f].data[R][4]));else for(var N=0;N<u[f].data.length;N++)Array.isArray(u[f].data[N][1])&&(b.push(u[f].data[N][1][0]),x.push(u[f].data[N][1][1]),v?(E.push(u[f].data[N][1][2]),T.push(u[f].data[N][1][3]),$.push(u[f].data[N][1][4])):(T.push(u[f].data[N][1][2]),$.push(u[f].data[N][1][3])));else if(c==="xy")for(var z=0;z<u[f].data.length;z++)Array.isArray(u[f].data[z].y)&&(b.push(u[f].data[z].y[0]),x.push(u[f].data[z].y[1]),v?(E.push(u[f].data[z].y[2]),T.push(u[f].data[z].y[3]),$.push(u[f].data[z].y[4])):(T.push(u[f].data[z].y[2]),$.push(u[f].data[z].y[3])));return{o:b,h:x,m:E,l:T,c:$}}},{key:"parseDataAxisCharts",value:function(c){var u,f=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,v=this.w.config,b=this.w.globals,x=new se(g),E=v.labels.length>0?v.labels.slice():v.xaxis.categories.slice();if(b.isRangeBar=v.chart.type==="rangeBar"&&b.isBarHorizontal,b.hasXaxisGroups=v.xaxis.type==="category"&&v.xaxis.group.groups.length>0,b.hasXaxisGroups&&(b.groups=v.xaxis.group.groups),b.hasSeriesGroups=(u=c[0])===null||u===void 0?void 0:u.group,b.hasSeriesGroups){var T=[],$=k(new Set(c.map(function(U){return U.group})));c.forEach(function(U,Y){var ne=$.indexOf(U.group);T[ne]||(T[ne]=[]),T[ne].push(U.name)}),b.seriesGroups=T}for(var R=function(){for(var U=0;U<E.length;U++)if(typeof E[U]=="string"){if(!x.isValidDate(E[U]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");f.twoDSeriesX.push(x.parseDate(E[U]))}else f.twoDSeriesX.push(E[U])},N=0;N<c.length;N++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],c[N].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(v.chart.type!=="rangeBar"&&v.chart.type!=="rangeArea"&&c[N].type!=="rangeBar"&&c[N].type!=="rangeArea"||(b.isRangeData=!0,b.isComboCharts?c[N].type!=="rangeBar"&&c[N].type!=="rangeArea"||this.handleRangeData(c,N):v.chart.type!=="rangeBar"&&v.chart.type!=="rangeArea"||this.handleRangeData(c,N)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(c,N):this.isFormatXY()&&this.handleFormatXY(c,N),v.chart.type!=="candlestick"&&c[N].type!=="candlestick"&&v.chart.type!=="boxPlot"&&c[N].type!=="boxPlot"||this.handleCandleStickBoxData(c,N),b.series.push(this.twoDSeries),b.labels.push(this.twoDSeriesX),b.seriesX.push(this.twoDSeriesX),b.seriesGoals=this.seriesGoals,N!==this.activeSeriesIndex||this.fallbackToCategory||(b.isXNumeric=!0);else{v.xaxis.type==="datetime"?(b.isXNumeric=!0,R(),b.seriesX.push(this.twoDSeriesX)):v.xaxis.type==="numeric"&&(b.isXNumeric=!0,E.length>0&&(this.twoDSeriesX=E,b.seriesX.push(this.twoDSeriesX))),b.labels.push(this.twoDSeriesX);var z=c[N].data.map(function(U){return _.parseNumber(U)});b.series.push(z)}b.seriesZ.push(this.threeDSeries),c[N].name!==void 0?b.seriesNames.push(c[N].name):b.seriesNames.push("series-"+parseInt(N+1,10)),c[N].color!==void 0?b.seriesColors.push(c[N].color):b.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(c){var u=this.w.globals,f=this.w.config;u.series=c.slice(),u.seriesNames=f.labels.slice();for(var g=0;g<u.series.length;g++)u.seriesNames[g]===void 0&&u.seriesNames.push("series-"+(g+1));return this.w}},{key:"handleExternalLabelsData",value:function(c){var u=this.w.config,f=this.w.globals;u.xaxis.categories.length>0?f.labels=u.xaxis.categories:u.labels.length>0?f.labels=u.labels.slice():this.fallbackToCategory?(f.labels=f.labels[0],f.seriesRange.length&&(f.seriesRange.map(function(g){g.forEach(function(v){f.labels.indexOf(v.x)<0&&v.x&&f.labels.push(v.x)})}),f.labels=f.labels.filter(function(g,v,b){return b.indexOf(g)===v})),u.xaxis.convertedCatToNumeric&&(new q(u).convertCatToNumericXaxis(u,this.ctx,f.seriesX[0]),this._generateExternalLabels(c))):this._generateExternalLabels(c)}},{key:"_generateExternalLabels",value:function(c){var u=this.w.globals,f=this.w.config,g=[];if(u.axisCharts){if(u.series.length>0)if(this.isFormatXY())for(var v=f.series.map(function(R,N){return R.data.filter(function(z,U,Y){return Y.findIndex(function(ne){return ne.x===z.x})===U})}),b=v.reduce(function(R,N,z,U){return U[R].length>N.length?R:z},0),x=0;x<v[b].length;x++)g.push(x+1);else for(var E=0;E<u.series[u.maxValsInArrayIndex].length;E++)g.push(E+1);u.seriesX=[];for(var T=0;T<c.length;T++)u.seriesX.push(g);u.isXNumeric=!0}if(g.length===0){g=u.axisCharts?[]:u.series.map(function(R,N){return N+1});for(var $=0;$<c.length;$++)u.seriesX.push(g)}u.labels=g,f.xaxis.convertedCatToNumeric&&(u.categoryLabels=g.map(function(R){return f.xaxis.labels.formatter(R)})),u.noLabelsProvided=!0}},{key:"parseData",value:function(c){var u=this.w,f=u.config,g=u.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),g.axisCharts?(this.parseDataAxisCharts(c),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(c),f.chart.type==="bar"&&f.chart.stacked){var v=new de(this.ctx);g.series=v.setNullSeriesToZeroValues(g.series)}this.coreUtils.getSeriesTotals(),g.axisCharts&&(g.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),g.dataFormatXNumeric||g.isXNumeric&&(f.xaxis.type!=="numeric"||f.labels.length!==0||f.xaxis.categories.length!==0)||this.handleExternalLabelsData(c);for(var b=this.coreUtils.getCategoryLabels(g.labels),x=0;x<b.length;x++)if(Array.isArray(b[x])){g.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var c=this,u=this.w;u.globals.ignoreYAxisIndexes=u.globals.collapsedSeries.map(function(f,g){if(c.w.globals.isMultipleYAxis&&!u.config.chart.stacked)return f.index})}}]),re}(),Ce=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"getLabel",value:function(c,u,f,g){var v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",x=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],E=this.w,T=c[g]===void 0?"":c[g],$=T,R=E.globals.xLabelFormatter,N=E.config.xaxis.labels.formatter,z=!1,U=new J(this.ctx),Y=T;x&&($=U.xLabelFormat(R,T,Y,{i:g,dateFormatter:new se(this.ctx).formatDate,w:E}),N!==void 0&&($=N(T,c[g],{i:g,dateFormatter:new se(this.ctx).formatDate,w:E})));var ne,le;u.length>0?(ne=u[g].unit,le=null,u.forEach(function(W){W.unit==="month"?le="year":W.unit==="day"?le="month":W.unit==="hour"?le="day":W.unit==="minute"&&(le="hour")}),z=le===ne,f=u[g].position,$=u[g].value):E.config.xaxis.type==="datetime"&&N===void 0&&($=""),$===void 0&&($=""),$=Array.isArray($)?$:$.toString();var he=new F(this.ctx),A={};A=E.globals.rotateXLabels&&x?he.getTextRects($,parseInt(b,10),null,"rotate(".concat(E.config.xaxis.labels.rotate," 0 0)"),!1):he.getTextRects($,parseInt(b,10));var P=!E.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray($)&&($.indexOf("NaN")===0||$.toLowerCase().indexOf("invalid")===0||$.toLowerCase().indexOf("infinity")>=0||v.indexOf($)>=0&&P)&&($=""),{x:f,text:$,textRect:A,isBold:z}}},{key:"checkLabelBasedOnTickamount",value:function(c,u,f){var g=this.w,v=g.config.xaxis.tickAmount;return v==="dataPoints"&&(v=Math.round(g.globals.gridWidth/120)),v>f||c%Math.round(f/(v+1))==0||(u.text=""),u}},{key:"checkForOverflowingLabels",value:function(c,u,f,g,v){var b=this.w;if(c===0&&b.globals.skipFirstTimelinelabel&&(u.text=""),c===f-1&&b.globals.skipLastTimelinelabel&&(u.text=""),b.config.xaxis.labels.hideOverlappingLabels&&g.length>0){var x=v[v.length-1];u.x<x.textRect.width/(b.globals.rotateXLabels?Math.abs(b.config.xaxis.labels.rotate)/12:1.01)+x.x&&(u.text="")}return u}},{key:"checkForReversedLabels",value:function(c,u){var f=this.w;return f.config.yaxis[c]&&f.config.yaxis[c].reversed&&u.reverse(),u}},{key:"isYAxisHidden",value:function(c){var u=this.w,f=new H(this.ctx);return!u.config.yaxis[c].show||!u.config.yaxis[c].showForNullSeries&&f.isSeriesNull(c)&&u.globals.collapsedSeriesIndices.indexOf(c)===-1}},{key:"getYAxisForeColor",value:function(c,u){var f=this.w;return Array.isArray(c)&&f.globals.yAxisScale[u]&&this.ctx.theme.pushExtraColors(c,f.globals.yAxisScale[u].result.length,!1),c}},{key:"drawYAxisTicks",value:function(c,u,f,g,v,b,x){var E=this.w,T=new F(this.ctx),$=E.globals.translateY;if(g.show&&u>0){E.config.yaxis[v].opposite===!0&&(c+=g.width);for(var R=u;R>=0;R--){var N=$+u/10+E.config.yaxis[v].labels.offsetY-1;E.globals.isBarHorizontal&&(N=b*R),E.config.chart.type==="heatmap"&&(N+=b/2);var z=T.drawLine(c+f.offsetX-g.width+g.offsetX,N+g.offsetY,c+f.offsetX+g.offsetX,N+g.offsetY,g.color);x.add(z),$+=b}}}}]),re}(),je=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"scaleSvgNode",value:function(c,u){var f=parseFloat(c.getAttributeNS(null,"width")),g=parseFloat(c.getAttributeNS(null,"height"));c.setAttributeNS(null,"width",f*u),c.setAttributeNS(null,"height",g*u),c.setAttributeNS(null,"viewBox","0 0 "+f+" "+g)}},{key:"fixSvgStringForIe11",value:function(c){if(!_.isIE11())return c.replace(/&nbsp;/g,"&#160;");var u=0,f=c.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(g){return++u===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':g});return f=(f=f.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(c){c==null&&(c=1);var u=this.w.globals.dom.Paper.svg();if(c!==1){var f=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(f,c),u=new XMLSerializer().serializeToString(f)}return this.fixSvgStringForIe11(u)}},{key:"cleanup",value:function(){var c=this.w,u=c.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),f=c.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),g=c.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(g,function(v){v.setAttribute("width",0)}),u&&u[0]&&(u[0].setAttribute("x",-500),u[0].setAttribute("x1",-500),u[0].setAttribute("x2",-500)),f&&f[0]&&(f[0].setAttribute("y",-100),f[0].setAttribute("y1",-100),f[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var c=this.getSvgString(),u=new Blob([c],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(u)}},{key:"dataURI",value:function(c){var u=this;return new Promise(function(f){var g=u.w,v=c?c.scale||c.width/g.globals.svgWidth:1;u.cleanup();var b=document.createElement("canvas");b.width=g.globals.svgWidth*v,b.height=parseInt(g.globals.dom.elWrap.style.height,10)*v;var x=g.config.chart.background==="transparent"?"#fff":g.config.chart.background,E=b.getContext("2d");E.fillStyle=x,E.fillRect(0,0,b.width*v,b.height*v);var T=u.getSvgString(v);if(window.canvg&&_.isIE11()){var $=window.canvg.Canvg.fromString(E,T,{ignoreClear:!0,ignoreDimensions:!0});$.start();var R=b.msToBlob();$.stop(),f({blob:R})}else{var N="data:image/svg+xml,"+encodeURIComponent(T),z=new Image;z.crossOrigin="anonymous",z.onload=function(){if(E.drawImage(z,0,0),b.msToBlob){var U=b.msToBlob();f({blob:U})}else{var Y=b.toDataURL("image/png");f({imgURI:Y})}},z.src=N}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var c=this;this.dataURI().then(function(u){var f=u.imgURI,g=u.blob;g?navigator.msSaveOrOpenBlob(g,c.w.globals.chartID+".png"):c.triggerDownload(f,c.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(c){var u=this,f=c.series,g=c.fileName,v=c.columnDelimiter,b=v===void 0?",":v,x=c.lineDelimiter,E=x===void 0?`
`:x,T=this.w;f||(f=T.config.series);var $=[],R=[],N="",z=T.globals.series.map(function(A,P){return T.globals.collapsedSeriesIndices.indexOf(P)===-1?A:[]}),U=Math.max.apply(Math,k(f.map(function(A){return A.data?A.data.length:0}))),Y=new we(this.ctx),ne=new Ce(this.ctx),le=function(A){var P="";if(T.globals.axisCharts){if(T.config.xaxis.type==="category"||T.config.xaxis.convertedCatToNumeric)if(T.globals.isBarHorizontal){var W=T.globals.yLabelFormatters[0],oe=new de(u.ctx).getActiveConfigSeriesIndex();P=W(T.globals.labels[A],{seriesIndex:oe,dataPointIndex:A,w:T})}else P=ne.getLabel(T.globals.labels,T.globals.timescaleLabels,0,A).text;T.config.xaxis.type==="datetime"&&(T.config.xaxis.categories.length?P=T.config.xaxis.categories[A]:T.config.labels.length&&(P=T.config.labels[A]))}else P=T.config.labels[A];return Array.isArray(P)&&(P=P.join(" ")),_.isNumber(P)?P:P.split(b).join("")},he=function(A,P){if($.length&&P===0&&R.push($.join(b)),A.data){A.data=A.data.length&&A.data||k(Array(U)).map(function(){return""});for(var W=0;W<A.data.length;W++){$=[];var oe=le(W);if(oe||(Y.isFormatXY()?oe=f[P].data[W].x:Y.isFormat2DArray()&&(oe=f[P].data[W]?f[P].data[W][0]:"")),P===0){$.push((ge=oe,T.config.xaxis.type==="datetime"&&String(ge).length>=10?T.config.chart.toolbar.export.csv.dateFormatter(oe):_.isNumber(oe)?oe:oe.split(b).join("")));for(var pe=0;pe<T.globals.series.length;pe++)Y.isFormatXY()?$.push(f[pe].data[W].y):$.push(z[pe][W])}(T.config.chart.type==="candlestick"||A.type&&A.type==="candlestick")&&($.pop(),$.push(T.globals.seriesCandleO[P][W]),$.push(T.globals.seriesCandleH[P][W]),$.push(T.globals.seriesCandleL[P][W]),$.push(T.globals.seriesCandleC[P][W])),(T.config.chart.type==="boxPlot"||A.type&&A.type==="boxPlot")&&($.pop(),$.push(T.globals.seriesCandleO[P][W]),$.push(T.globals.seriesCandleH[P][W]),$.push(T.globals.seriesCandleM[P][W]),$.push(T.globals.seriesCandleL[P][W]),$.push(T.globals.seriesCandleC[P][W])),T.config.chart.type==="rangeBar"&&($.pop(),$.push(T.globals.seriesRangeStart[P][W]),$.push(T.globals.seriesRangeEnd[P][W])),$.length&&R.push($.join(b))}}var ge};$.push(T.config.chart.toolbar.export.csv.headerCategory),T.config.chart.type==="boxPlot"?($.push("minimum"),$.push("q1"),$.push("median"),$.push("q3"),$.push("maximum")):T.config.chart.type==="candlestick"?($.push("open"),$.push("high"),$.push("low"),$.push("close")):T.config.chart.type==="rangeBar"?($.push("minimum"),$.push("maximum")):f.map(function(A,P){var W=A.name?A.name:"series-".concat(P);T.globals.axisCharts&&$.push(W.split(b).join("")?W.split(b).join(""):"series-".concat(P))}),T.globals.axisCharts||($.push(T.config.chart.toolbar.export.csv.headerValue),R.push($.join(b))),f.map(function(A,P){T.globals.axisCharts?he(A,P):(($=[]).push(T.globals.labels[P].split(b).join("")),$.push(z[P]),R.push($.join(b)))}),N+=R.join(E),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+N),g||T.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(c,u,f){var g=document.createElement("a");g.href=c,g.download=(u||this.w.globals.chartID)+f,document.body.appendChild(g),g.click(),document.body.removeChild(g)}}]),re}(),Ue=function(){function re(c,u){o(this,re),this.ctx=c,this.elgrid=u,this.w=c.w;var f=this.w;this.axesUtils=new Ce(c),this.xaxisLabels=f.globals.labels.slice(),f.globals.timescaleLabels.length>0&&!f.globals.isBarHorizontal&&(this.xaxisLabels=f.globals.timescaleLabels.slice()),f.config.xaxis.overwriteCategories&&(this.xaxisLabels=f.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],f.config.xaxis.position==="top"?this.offY=0:this.offY=f.globals.gridHeight+1,this.offY=this.offY+f.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=f.config.chart.type==="bar"&&f.config.plotOptions.bar.horizontal,this.xaxisFontSize=f.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=f.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=f.config.xaxis.labels.style.colors,this.xaxisBorderWidth=f.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=f.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=f.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=f.config.xaxis.axisBorder.height,this.yaxis=f.config.yaxis[0]}return a(re,[{key:"drawXaxis",value:function(){var c=this.w,u=new F(this.ctx),f=u.group({class:"apexcharts-xaxis",transform:"translate(".concat(c.config.xaxis.offsetX,", ").concat(c.config.xaxis.offsetY,")")}),g=u.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(c.globals.translateXAxisX,", ").concat(c.globals.translateXAxisY,")")});f.add(g);for(var v=[],b=0;b<this.xaxisLabels.length;b++)v.push(this.xaxisLabels[b]);if(this.drawXAxisLabelAndGroup(!0,u,g,v,c.globals.isXNumeric,function(U,Y){return Y}),c.globals.hasXaxisGroups){var x=c.globals.groups;v=[];for(var E=0;E<x.length;E++)v.push(x[E].title);var T={};c.config.xaxis.group.style&&(T.xaxisFontSize=c.config.xaxis.group.style.fontSize,T.xaxisFontFamily=c.config.xaxis.group.style.fontFamily,T.xaxisForeColors=c.config.xaxis.group.style.colors,T.fontWeight=c.config.xaxis.group.style.fontWeight,T.cssClass=c.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,u,g,v,!1,function(U,Y){return x[U].cols*Y},T)}if(c.config.xaxis.title.text!==void 0){var $=u.group({class:"apexcharts-xaxis-title"}),R=u.drawText({x:c.globals.gridWidth/2+c.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(c.config.xaxis.position==="bottom"?c.globals.xAxisLabelsHeight:-c.globals.xAxisLabelsHeight-10)+c.config.xaxis.title.offsetY,text:c.config.xaxis.title.text,textAnchor:"middle",fontSize:c.config.xaxis.title.style.fontSize,fontFamily:c.config.xaxis.title.style.fontFamily,fontWeight:c.config.xaxis.title.style.fontWeight,foreColor:c.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+c.config.xaxis.title.style.cssClass});$.add(R),f.add($)}if(c.config.xaxis.axisBorder.show){var N=c.globals.barPadForNumericAxis,z=u.drawLine(c.globals.padHorizontal+c.config.xaxis.axisBorder.offsetX-N,this.offY,this.xaxisBorderWidth+N,this.offY,c.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders?this.elgrid.elGridBorders.add(z):f.add(z)}return f}},{key:"drawXAxisLabelAndGroup",value:function(c,u,f,g,v,b){var x,E=this,T=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},$=[],R=[],N=this.w,z=T.xaxisFontSize||this.xaxisFontSize,U=T.xaxisFontFamily||this.xaxisFontFamily,Y=T.xaxisForeColors||this.xaxisForeColors,ne=T.fontWeight||N.config.xaxis.labels.style.fontWeight,le=T.cssClass||N.config.xaxis.labels.style.cssClass,he=N.globals.padHorizontal,A=g.length,P=N.config.xaxis.type==="category"?N.globals.dataPoints:A;if(P===0&&A>P&&(P=A),v){var W=P>1?P-1:P;x=N.globals.gridWidth/W,he=he+b(0,x)/2+N.config.xaxis.labels.offsetX}else x=N.globals.gridWidth/P,he=he+b(0,x)+N.config.xaxis.labels.offsetX;for(var oe=function(ge){var ke=he-b(ge,x)/2+N.config.xaxis.labels.offsetX;ge===0&&A===1&&x/2===he&&P===1&&(ke=N.globals.gridWidth/2);var De=E.axesUtils.getLabel(g,N.globals.timescaleLabels,ke,ge,$,z,c),Ge=28;if(N.globals.rotateXLabels&&c&&(Ge=22),N.config.xaxis.title.text&&N.config.xaxis.position==="top"&&(Ge+=parseFloat(N.config.xaxis.title.style.fontSize)+2),c||(Ge=Ge+parseFloat(z)+(N.globals.xAxisLabelsHeight-N.globals.xAxisGroupLabelsHeight)+(N.globals.rotateXLabels?10:0)),De=N.config.xaxis.tickAmount!==void 0&&N.config.xaxis.tickAmount!=="dataPoints"&&N.config.xaxis.type!=="datetime"?E.axesUtils.checkLabelBasedOnTickamount(ge,De,A):E.axesUtils.checkForOverflowingLabels(ge,De,A,$,R),N.config.xaxis.labels.show){var Ze=u.drawText({x:De.x,y:E.offY+N.config.xaxis.labels.offsetY+Ge-(N.config.xaxis.position==="top"?N.globals.xAxisHeight+N.config.xaxis.axisTicks.height-2:0),text:De.text,textAnchor:"middle",fontWeight:De.isBold?600:ne,fontSize:z,fontFamily:U,foreColor:Array.isArray(Y)?c&&N.config.xaxis.convertedCatToNumeric?Y[N.globals.minX+ge-1]:Y[ge]:Y,isPlainText:!1,cssClass:(c?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+le});if(f.add(Ze),Ze.on("click",function(ft){if(typeof N.config.chart.events.xAxisLabelClick=="function"){var Wt=Object.assign({},N,{labelIndex:ge});N.config.chart.events.xAxisLabelClick(ft,E.ctx,Wt)}}),c){var st=document.createElementNS(N.globals.SVGNS,"title");st.textContent=Array.isArray(De.text)?De.text.join(" "):De.text,Ze.node.appendChild(st),De.text!==""&&($.push(De.text),R.push(De))}}ge<A-1&&(he+=b(ge+1,x))},pe=0;pe<=A-1;pe++)oe(pe)}},{key:"drawXaxisInversed",value:function(c){var u,f,g=this,v=this.w,b=new F(this.ctx),x=v.config.yaxis[0].opposite?v.globals.translateYAxisX[c]:0,E=b.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:c}),T=b.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+x+", 0)"});E.add(T);var $=[];if(v.config.yaxis[c].show)for(var R=0;R<this.xaxisLabels.length;R++)$.push(this.xaxisLabels[R]);u=v.globals.gridHeight/$.length,f=-u/2.2;var N=v.globals.yLabelFormatters[0],z=v.config.yaxis[0].labels;if(z.show)for(var U=function(W){var oe=$[W]===void 0?"":$[W];oe=N(oe,{seriesIndex:c,dataPointIndex:W,w:v});var pe=g.axesUtils.getYAxisForeColor(z.style.colors,c),ge=0;Array.isArray(oe)&&(ge=oe.length/2*parseInt(z.style.fontSize,10));var ke=z.offsetX-15,De="end";g.yaxis.opposite&&(De="start"),v.config.yaxis[0].labels.align==="left"?(ke=z.offsetX,De="start"):v.config.yaxis[0].labels.align==="center"?(ke=z.offsetX,De="middle"):v.config.yaxis[0].labels.align==="right"&&(De="end");var Ge=b.drawText({x:ke,y:f+u+z.offsetY-ge,text:oe,textAnchor:De,foreColor:Array.isArray(pe)?pe[W]:pe,fontSize:z.style.fontSize,fontFamily:z.style.fontFamily,fontWeight:z.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+z.style.cssClass,maxWidth:z.maxWidth});T.add(Ge),Ge.on("click",function(ft){if(typeof v.config.chart.events.xAxisLabelClick=="function"){var Wt=Object.assign({},v,{labelIndex:W});v.config.chart.events.xAxisLabelClick(ft,g.ctx,Wt)}});var Ze=document.createElementNS(v.globals.SVGNS,"title");if(Ze.textContent=Array.isArray(oe)?oe.join(" "):oe,Ge.node.appendChild(Ze),v.config.yaxis[c].labels.rotate!==0){var st=b.rotateAroundCenter(Ge.node);Ge.node.setAttribute("transform","rotate(".concat(v.config.yaxis[c].labels.rotate," 0 ").concat(st.y,")"))}f+=u},Y=0;Y<=$.length-1;Y++)U(Y);if(v.config.yaxis[0].title.text!==void 0){var ne=b.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+x+", 0)"}),le=b.drawText({x:v.config.yaxis[0].title.offsetX,y:v.globals.gridHeight/2+v.config.yaxis[0].title.offsetY,text:v.config.yaxis[0].title.text,textAnchor:"middle",foreColor:v.config.yaxis[0].title.style.color,fontSize:v.config.yaxis[0].title.style.fontSize,fontWeight:v.config.yaxis[0].title.style.fontWeight,fontFamily:v.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+v.config.yaxis[0].title.style.cssClass});ne.add(le),E.add(ne)}var he=0;this.isCategoryBarHorizontal&&v.config.yaxis[0].opposite&&(he=v.globals.gridWidth);var A=v.config.xaxis.axisBorder;if(A.show){var P=b.drawLine(v.globals.padHorizontal+A.offsetX+he,1+A.offsetY,v.globals.padHorizontal+A.offsetX+he,v.globals.gridHeight+A.offsetY,A.color,0);this.elgrid&&this.elgrid.elGridBorders?this.elgrid.elGridBorders.add(P):E.add(P)}return v.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(he,$.length,v.config.yaxis[0].axisBorder,v.config.yaxis[0].axisTicks,0,u,E),E}},{key:"drawXaxisTicks",value:function(c,u,f){var g=this.w,v=c;if(!(c<0||c-2>g.globals.gridWidth)){var b=this.offY+g.config.xaxis.axisTicks.offsetY;if(u=u+b+g.config.xaxis.axisTicks.height,g.config.xaxis.position==="top"&&(u=b-g.config.xaxis.axisTicks.height),g.config.xaxis.axisTicks.show){var x=new F(this.ctx).drawLine(c+g.config.xaxis.axisTicks.offsetX,b+g.config.xaxis.offsetY,v+g.config.xaxis.axisTicks.offsetX,u+g.config.xaxis.offsetY,g.config.xaxis.axisTicks.color);f.add(x),x.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var c=this.w,u=[],f=this.xaxisLabels.length,g=c.globals.padHorizontal;if(c.globals.timescaleLabels.length>0)for(var v=0;v<f;v++)g=this.xaxisLabels[v].position,u.push(g);else for(var b=f,x=0;x<b;x++){var E=b;c.globals.isXNumeric&&c.config.chart.type!=="bar"&&(E-=1),g+=c.globals.gridWidth/E,u.push(g)}return u}},{key:"xAxisLabelCorrections",value:function(){var c=this.w,u=new F(this.ctx),f=c.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),g=c.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),v=c.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),b=c.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(c.globals.rotateXLabels||c.config.xaxis.labels.rotateAlways)for(var x=0;x<g.length;x++){var E=u.rotateAroundCenter(g[x]);E.y=E.y-1,E.x=E.x+1,g[x].setAttribute("transform","rotate(".concat(c.config.xaxis.labels.rotate," ").concat(E.x," ").concat(E.y,")")),g[x].setAttribute("text-anchor","end"),f.setAttribute("transform","translate(0, ".concat(-10,")"));var T=g[x].childNodes;c.config.xaxis.labels.trim&&Array.prototype.forEach.call(T,function(z){u.placeTextWithEllipsis(z,z.textContent,c.globals.xAxisLabelsHeight-(c.config.legend.position==="bottom"?20:10))})}else(function(){for(var z=c.globals.gridWidth/(c.globals.labels.length+1),U=0;U<g.length;U++){var Y=g[U].childNodes;c.config.xaxis.labels.trim&&c.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(Y,function(ne){u.placeTextWithEllipsis(ne,ne.textContent,z)})}})();if(v.length>0){var $=v[v.length-1].getBBox(),R=v[0].getBBox();$.x<-20&&v[v.length-1].parentNode.removeChild(v[v.length-1]),R.x+R.width>c.globals.gridWidth&&!c.globals.isBarHorizontal&&v[0].parentNode.removeChild(v[0]);for(var N=0;N<b.length;N++)u.placeTextWithEllipsis(b[N],b[N].textContent,c.config.yaxis[0].labels.maxWidth-(c.config.yaxis[0].title.text?2*parseFloat(c.config.yaxis[0].title.style.fontSize):0)-15)}}}]),re}(),Xe=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w;var u=this.w;this.xaxisLabels=u.globals.labels.slice(),this.axesUtils=new Ce(c),this.isRangeBar=u.globals.seriesRange.length,u.globals.timescaleLabels.length>0&&(this.xaxisLabels=u.globals.timescaleLabels.slice())}return a(re,[{key:"drawGridArea",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.w,f=new F(this.ctx);c===null&&(c=f.group({class:"apexcharts-grid"}));var g=f.drawLine(u.globals.padHorizontal,1,u.globals.padHorizontal,u.globals.gridHeight,"transparent"),v=f.drawLine(u.globals.padHorizontal,u.globals.gridHeight,u.globals.gridWidth,u.globals.gridHeight,"transparent");return c.add(v),c.add(g),c}},{key:"drawGrid",value:function(){var c=null;return this.w.globals.axisCharts&&(c=this.renderGrid(),this.drawGridArea(c.el)),c}},{key:"createGridMask",value:function(){var c=this.w,u=c.globals,f=new F(this.ctx),g=Array.isArray(c.config.stroke.width)?0:c.config.stroke.width;if(Array.isArray(c.config.stroke.width)){var v=0;c.config.stroke.width.forEach(function(R){v=Math.max(v,R)}),g=v}u.dom.elGridRectMask=document.createElementNS(u.SVGNS,"clipPath"),u.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(u.cuid)),u.dom.elGridRectMarkerMask=document.createElementNS(u.SVGNS,"clipPath"),u.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(u.cuid)),u.dom.elForecastMask=document.createElementNS(u.SVGNS,"clipPath"),u.dom.elForecastMask.setAttribute("id","forecastMask".concat(u.cuid)),u.dom.elNonForecastMask=document.createElementNS(u.SVGNS,"clipPath"),u.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(u.cuid));var b=c.config.chart.type,x=0,E=0;(b==="bar"||b==="rangeBar"||b==="candlestick"||b==="boxPlot"||c.globals.comboBarCount>0)&&c.globals.isXNumeric&&!c.globals.isBarHorizontal&&(x=c.config.grid.padding.left,E=c.config.grid.padding.right,u.barPadForNumericAxis>x&&(x=u.barPadForNumericAxis,E=u.barPadForNumericAxis)),u.dom.elGridRect=f.drawRect(-g/2-x-2,-g/2,u.gridWidth+g+E+x+4,u.gridHeight+g,0,"#fff");var T=c.globals.markers.largestSize+1;u.dom.elGridRectMarker=f.drawRect(2*-T,2*-T,u.gridWidth+4*T,u.gridHeight+4*T,0,"#fff"),u.dom.elGridRectMask.appendChild(u.dom.elGridRect.node),u.dom.elGridRectMarkerMask.appendChild(u.dom.elGridRectMarker.node);var $=u.dom.baseEl.querySelector("defs");$.appendChild(u.dom.elGridRectMask),$.appendChild(u.dom.elForecastMask),$.appendChild(u.dom.elNonForecastMask),$.appendChild(u.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(c){var u=c.i,f=c.x1,g=c.y1,v=c.x2,b=c.y2,x=c.xCount,E=c.parent,T=this.w;if(!(u===0&&T.globals.skipFirstTimelinelabel||u===x-1&&T.globals.skipLastTimelinelabel&&!T.config.xaxis.labels.formatter||T.config.chart.type==="radar")){T.config.grid.xaxis.lines.show&&this._drawGridLine({i:u,x1:f,y1:g,x2:v,y2:b,xCount:x,parent:E});var $=0;if(T.globals.hasXaxisGroups&&T.config.xaxis.tickPlacement==="between"){var R=T.globals.groups;if(R){for(var N=0,z=0;N<u&&z<R.length;z++)N+=R[z].cols;N===u&&($=.6*T.globals.xAxisLabelsHeight)}}new Ue(this.ctx).drawXaxisTicks(f,$,T.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(c){var u=c.i,f=c.x1,g=c.y1,v=c.x2,b=c.y2,x=c.xCount,E=c.parent,T=this.w,$=!1,R=E.node.classList.contains("apexcharts-gridlines-horizontal"),N=T.config.grid.strokeDashArray,z=T.globals.barPadForNumericAxis;(g===0&&b===0||f===0&&v===0)&&($=!0),g===T.globals.gridHeight&&b===T.globals.gridHeight&&($=!0),!T.globals.isBarHorizontal||u!==0&&u!==x-1||($=!0);var U=new F(this).drawLine(f-(R?z:0),g,v+(R?z:0),b,T.config.grid.borderColor,N);U.node.classList.add("apexcharts-gridline"),$?this.elGridBorders.add(U):E.add(U)}},{key:"_drawGridBandRect",value:function(c){var u=c.c,f=c.x1,g=c.y1,v=c.x2,b=c.y2,x=c.type,E=this.w,T=new F(this.ctx),$=E.globals.barPadForNumericAxis;if(x!=="column"||E.config.xaxis.type!=="datetime"){var R=E.config.grid[x].colors[u],N=T.drawRect(f-(x==="row"?$:0),g,v+(x==="row"?2*$:0),b,0,R,E.config.grid[x].opacity);this.elg.add(N),N.attr("clip-path","url(#gridRectMask".concat(E.globals.cuid,")")),N.node.classList.add("apexcharts-grid-".concat(x))}}},{key:"_drawXYLines",value:function(c){var u=this,f=c.xCount,g=c.tickAmount,v=this.w;if(v.config.grid.xaxis.lines.show||v.config.xaxis.axisTicks.show){var b,x=v.globals.padHorizontal,E=v.globals.gridHeight;v.globals.timescaleLabels.length?function(U){for(var Y=U.xC,ne=U.x1,le=U.y1,he=U.x2,A=U.y2,P=0;P<Y;P++)ne=u.xaxisLabels[P].position,he=u.xaxisLabels[P].position,u._drawGridLines({i:P,x1:ne,y1:le,x2:he,y2:A,xCount:f,parent:u.elgridLinesV})}({xC:f,x1:x,y1:0,x2:b,y2:E}):(v.globals.isXNumeric&&(f=v.globals.xAxisScale.result.length),function(U){for(var Y=U.xC,ne=U.x1,le=U.y1,he=U.x2,A=U.y2,P=0;P<Y+(v.globals.isXNumeric?0:1);P++)P===0&&Y===1&&v.globals.dataPoints===1&&(he=ne=v.globals.gridWidth/2),u._drawGridLines({i:P,x1:ne,y1:le,x2:he,y2:A,xCount:f,parent:u.elgridLinesV}),he=ne+=v.globals.gridWidth/(v.globals.isXNumeric?Y-1:Y)}({xC:f,x1:x,y1:0,x2:b,y2:E}))}if(v.config.grid.yaxis.lines.show){var T=0,$=0,R=v.globals.gridWidth,N=g+1;this.isRangeBar&&(N=v.globals.labels.length);for(var z=0;z<N+(this.isRangeBar?1:0);z++)this._drawGridLine({i:z,xCount:N+(this.isRangeBar?1:0),x1:0,y1:T,x2:R,y2:$,parent:this.elgridLinesH}),$=T+=v.globals.gridHeight/(this.isRangeBar?N:g)}}},{key:"_drawInvertedXYLines",value:function(c){var u=c.xCount,f=this.w;if(f.config.grid.xaxis.lines.show||f.config.xaxis.axisTicks.show)for(var g,v=f.globals.padHorizontal,b=f.globals.gridHeight,x=0;x<u+1;x++)f.config.grid.xaxis.lines.show&&this._drawGridLine({i:x,xCount:u+1,x1:v,y1:0,x2:g,y2:b,parent:this.elgridLinesV}),new Ue(this.ctx).drawXaxisTicks(v,0,f.globals.dom.elGraphical),g=v=v+f.globals.gridWidth/u+.3;if(f.config.grid.yaxis.lines.show)for(var E=0,T=0,$=f.globals.gridWidth,R=0;R<f.globals.dataPoints+1;R++)this._drawGridLine({i:R,xCount:f.globals.dataPoints+1,x1:0,y1:E,x2:$,y2:T,parent:this.elgridLinesH}),T=E+=f.globals.gridHeight/f.globals.dataPoints}},{key:"renderGrid",value:function(){var c=this.w,u=new F(this.ctx);this.elg=u.group({class:"apexcharts-grid"}),this.elgridLinesH=u.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=u.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=u.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),c.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var f,g=c.globals.yAxisScale.length?c.globals.yAxisScale[0].result.length-1:5,v=0;v<c.globals.series.length&&(c.globals.yAxisScale[v]!==void 0&&(g=c.globals.yAxisScale[v].result.length-1),!(g>2));v++);return!c.globals.isBarHorizontal||this.isRangeBar?(f=this.xaxisLabels.length,this.isRangeBar&&(g=c.globals.labels.length,c.config.xaxis.tickAmount&&c.config.xaxis.labels.formatter&&(f=c.config.xaxis.tickAmount)),this._drawXYLines({xCount:f,tickAmount:g})):(f=g,g=c.globals.xTickAmount,this._drawInvertedXYLines({xCount:f,tickAmount:g})),this.drawGridBands(f,g),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:c.globals.gridWidth/f}}},{key:"drawGridBands",value:function(c,u){var f=this.w;if(f.config.grid.row.colors!==void 0&&f.config.grid.row.colors.length>0)for(var g=0,v=f.globals.gridHeight/u,b=f.globals.gridWidth,x=0,E=0;x<u;x++,E++)E>=f.config.grid.row.colors.length&&(E=0),this._drawGridBandRect({c:E,x1:0,y1:g,x2:b,y2:v,type:"row"}),g+=f.globals.gridHeight/u;if(f.config.grid.column.colors!==void 0&&f.config.grid.column.colors.length>0)for(var T=f.globals.isBarHorizontal||f.config.xaxis.type!=="category"&&!f.config.xaxis.convertedCatToNumeric?c:c-1,$=f.globals.padHorizontal,R=f.globals.padHorizontal+f.globals.gridWidth/T,N=f.globals.gridHeight,z=0,U=0;z<c;z++,U++)U>=f.config.grid.column.colors.length&&(U=0),this._drawGridBandRect({c:U,x1:$,y1:0,x2:R,y2:N,type:"column"}),$+=f.globals.gridWidth/T}}]),re}(),qe=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"niceScale",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,v=arguments.length>4?arguments[4]:void 0,b=this.w,x=Math.abs(u-c);if((f=this._adjustTicksForSmallRange(f,g,x))==="dataPoints"&&(f=b.globals.dataPoints-1),c===Number.MIN_VALUE&&u===0||!_.isNumber(c)&&!_.isNumber(u)||c===Number.MIN_VALUE&&u===-Number.MAX_VALUE)return c=0,u=f,this.linearScale(c,u,f);c>u?(console.warn("axis.min cannot be greater than axis.max"),u=c+.1):c===u&&(c=c===0?0:c-.5,u=u===0?2:u+.5);var E=[];x<1&&v&&(b.config.chart.type==="candlestick"||b.config.series[g].type==="candlestick"||b.config.chart.type==="boxPlot"||b.config.series[g].type==="boxPlot"||b.globals.isRangeData)&&(u*=1.01);var T=f+1;T<2?T=2:T>2&&(T-=2);var $=x/T,R=Math.floor(_.log10($)),N=Math.pow(10,R),z=Math.round($/N);z<1&&(z=1);var U=z*N,Y=U*Math.floor(c/U),ne=U*Math.ceil(u/U),le=Y;if(v&&x>2){for(;E.push(le),!((le+=U)>ne););return{result:E,niceMin:E[0],niceMax:E[E.length-1]}}var he=c;(E=[]).push(he);for(var A=Math.abs(u-c)/f,P=0;P<=f;P++)he+=A,E.push(he);return E[E.length-2]>=u&&E.pop(),{result:E,niceMin:E[0],niceMax:E[E.length-1]}}},{key:"linearScale",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,g=arguments.length>3?arguments[3]:void 0,v=Math.abs(u-c);(f=this._adjustTicksForSmallRange(f,g,v))==="dataPoints"&&(f=this.w.globals.dataPoints-1);var b=v/f;f===Number.MAX_VALUE&&(f=10,b=1);for(var x=[],E=c;f>=0;)x.push(E),E+=b,f-=1;return{result:x,niceMin:x[0],niceMax:x[x.length-1]}}},{key:"logarithmicScaleNice",value:function(c,u,f){u<=0&&(u=Math.max(c,f)),c<=0&&(c=Math.min(u,f));for(var g=[],v=Math.ceil(Math.log(u)/Math.log(f)+1),b=Math.floor(Math.log(c)/Math.log(f));b<v;b++)g.push(Math.pow(f,b));return{result:g,niceMin:g[0],niceMax:g[g.length-1]}}},{key:"logarithmicScale",value:function(c,u,f){u<=0&&(u=Math.max(c,f)),c<=0&&(c=Math.min(u,f));for(var g=[],v=Math.log(u)/Math.log(f),b=Math.log(c)/Math.log(f),x=v-b,E=Math.round(x),T=x/E,$=0,R=b;$<E;$++,R+=T)g.push(Math.pow(f,R));return g.push(Math.pow(f,v)),{result:g,niceMin:c,niceMax:u}}},{key:"_adjustTicksForSmallRange",value:function(c,u,f){var g=c;if(u!==void 0&&this.w.config.yaxis[u].labels.formatter&&this.w.config.yaxis[u].tickAmount===void 0){var v=Number(this.w.config.yaxis[u].labels.formatter(1));_.isNumber(v)&&this.w.globals.yValueDecimal===0&&(g=Math.ceil(f))}return g<c?g:c}},{key:"setYScaleForIndex",value:function(c,u,f){var g=this.w.globals,v=this.w.config,b=g.isBarHorizontal?v.xaxis:v.yaxis[c];g.yAxisScale[c]===void 0&&(g.yAxisScale[c]=[]);var x=Math.abs(f-u);if(b.logarithmic&&x<=5&&(g.invalidLogScale=!0),b.logarithmic&&x>5)g.allSeriesCollapsed=!1,g.yAxisScale[c]=this.logarithmicScale(u,f,b.logBase),g.yAxisScale[c]=b.forceNiceScale?this.logarithmicScaleNice(u,f,b.logBase):this.logarithmicScale(u,f,b.logBase);else if(f!==-Number.MAX_VALUE&&_.isNumber(f))if(g.allSeriesCollapsed=!1,b.min===void 0&&b.max===void 0||b.forceNiceScale){var E=v.yaxis[c].max===void 0&&v.yaxis[c].min===void 0||v.yaxis[c].forceNiceScale;g.yAxisScale[c]=this.niceScale(u,f,b.tickAmount?b.tickAmount:x<5&&x>1?x+1:5,c,E)}else g.yAxisScale[c]=this.linearScale(u,f,b.tickAmount,c);else g.yAxisScale[c]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(c,u){var f=this.w,g=f.globals,v=f.config.xaxis,b=Math.abs(u-c);return u!==-Number.MAX_VALUE&&_.isNumber(u)?g.xAxisScale=this.linearScale(c,u,v.tickAmount?v.tickAmount:b<5&&b>1?b+1:5,0):g.xAxisScale=this.linearScale(0,5,5),g.xAxisScale}},{key:"setMultipleYScales",value:function(){var c=this,u=this.w.globals,f=this.w.config,g=u.minYArr.concat([]),v=u.maxYArr.concat([]),b=[];f.yaxis.forEach(function(x,E){var T=E;f.series.forEach(function(N,z){N.name===x.seriesName&&(T=z,E!==z?b.push({index:z,similarIndex:E,alreadyExists:!0}):b.push({index:z}))});var $=g[T],R=v[T];c.setYScaleForIndex(E,$,R)}),this.sameScaleInMultipleAxes(g,v,b)}},{key:"sameScaleInMultipleAxes",value:function(c,u,f){var g=this,v=this.w.config,b=this.w.globals,x=[];f.forEach(function(Y){Y.alreadyExists&&(x[Y.index]===void 0&&(x[Y.index]=[]),x[Y.index].push(Y.index),x[Y.index].push(Y.similarIndex))}),b.yAxisSameScaleIndices=x,x.forEach(function(Y,ne){x.forEach(function(le,he){var A,P;ne!==he&&(A=Y,P=le,A.filter(function(W){return P.indexOf(W)!==-1})).length>0&&(x[ne]=x[ne].concat(x[he]))})});var E=x.map(function(Y){return Y.filter(function(ne,le){return Y.indexOf(ne)===le})}).map(function(Y){return Y.sort()});x=x.filter(function(Y){return!!Y});var T=E.slice(),$=T.map(function(Y){return JSON.stringify(Y)});T=T.filter(function(Y,ne){return $.indexOf(JSON.stringify(Y))===ne});var R=[],N=[];c.forEach(function(Y,ne){T.forEach(function(le,he){le.indexOf(ne)>-1&&(R[he]===void 0&&(R[he]=[],N[he]=[]),R[he].push({key:ne,value:Y}),N[he].push({key:ne,value:u[ne]}))})});var z=Array.apply(null,Array(T.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),U=Array.apply(null,Array(T.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);R.forEach(function(Y,ne){Y.forEach(function(le,he){z[ne]=Math.min(le.value,z[ne])})}),N.forEach(function(Y,ne){Y.forEach(function(le,he){U[ne]=Math.max(le.value,U[ne])})}),c.forEach(function(Y,ne){N.forEach(function(le,he){var A=z[he],P=U[he];v.chart.stacked&&(P=0,le.forEach(function(W,oe){W.value!==-Number.MAX_VALUE&&(P+=W.value),A!==Number.MIN_VALUE&&(A+=R[he][oe].value)})),le.forEach(function(W,oe){le[oe].key===ne&&(v.yaxis[ne].min!==void 0&&(A=typeof v.yaxis[ne].min=="function"?v.yaxis[ne].min(b.minY):v.yaxis[ne].min),v.yaxis[ne].max!==void 0&&(P=typeof v.yaxis[ne].max=="function"?v.yaxis[ne].max(b.maxY):v.yaxis[ne].max),g.setYScaleForIndex(ne,A,P))})})})}},{key:"autoScaleY",value:function(c,u,f){c||(c=this);var g=c.w;if(g.globals.isMultipleYAxis||g.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),u;var v=g.globals.seriesX[0],b=g.config.chart.stacked;return u.forEach(function(x,E){for(var T=0,$=0;$<v.length;$++)if(v[$]>=f.xaxis.min){T=$;break}var R,N,z=g.globals.minYArr[E],U=g.globals.maxYArr[E],Y=g.globals.stackedSeriesTotals;g.globals.series.forEach(function(ne,le){var he=ne[T];b?(he=Y[T],R=N=he,Y.forEach(function(A,P){v[P]<=f.xaxis.max&&v[P]>=f.xaxis.min&&(A>N&&A!==null&&(N=A),ne[P]<R&&ne[P]!==null&&(R=ne[P]))})):(R=N=he,ne.forEach(function(A,P){if(v[P]<=f.xaxis.max&&v[P]>=f.xaxis.min){var W=A,oe=A;g.globals.series.forEach(function(pe,ge){A!==null&&(W=Math.min(pe[P],W),oe=Math.max(pe[P],oe))}),oe>N&&oe!==null&&(N=oe),W<R&&W!==null&&(R=W)}})),R===void 0&&N===void 0&&(R=z,N=U),N*=N<0?.9:1.1,(R*=R<0?1.1:.9)===0&&N===0&&(R=-1,N=1),N<0&&N<U&&(N=U),R<0&&R>z&&(R=z),u.length>1?(u[le].min=x.min===void 0?R:x.min,u[le].max=x.max===void 0?N:x.max):(u[0].min=x.min===void 0?R:x.min,u[0].max=x.max===void 0?N:x.max)})}),u}}]),re}(),K=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.scales=new qe(c)}return a(re,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,v=this.w.config,b=this.w.globals,x=-Number.MAX_VALUE,E=Number.MIN_VALUE;g===null&&(g=c+1);var T=b.series,$=T,R=T;v.chart.type==="candlestick"?($=b.seriesCandleL,R=b.seriesCandleH):v.chart.type==="boxPlot"?($=b.seriesCandleO,R=b.seriesCandleC):b.isRangeData&&($=b.seriesRangeStart,R=b.seriesRangeEnd);for(var N=c;N<g;N++){b.dataPoints=Math.max(b.dataPoints,T[N].length),b.categoryLabels.length&&(b.dataPoints=b.categoryLabels.filter(function(Y){return Y!==void 0}).length);for(var z=0;z<b.series[N].length;z++){var U=T[N][z];U!==null&&_.isNumber(U)?(R[N][z]!==void 0&&(x=Math.max(x,R[N][z]),u=Math.min(u,R[N][z])),$[N][z]!==void 0&&(u=Math.min(u,$[N][z]),f=Math.max(f,$[N][z])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||b.seriesCandleC[N][z]!==void 0&&(x=Math.max(x,b.seriesCandleO[N][z]),x=Math.max(x,b.seriesCandleH[N][z]),x=Math.max(x,b.seriesCandleL[N][z]),x=Math.max(x,b.seriesCandleC[N][z]),this.w.config.chart.type==="boxPlot"&&(x=Math.max(x,b.seriesCandleM[N][z]))),!v.series[N].type||v.series[N].type==="candlestick"&&v.series[N].type==="boxPlot"&&v.series[N].type==="rangeArea"&&v.series[N].type==="rangeBar"||(x=Math.max(x,b.series[N][z]),u=Math.min(u,b.series[N][z])),f=x),b.seriesGoals[N]&&b.seriesGoals[N][z]&&Array.isArray(b.seriesGoals[N][z])&&b.seriesGoals[N][z].forEach(function(Y){E!==Number.MIN_VALUE&&(E=Math.min(E,Y.value),u=E),x=Math.max(x,Y.value),f=x}),_.isFloat(U)&&(U=_.noExponents(U),b.yValueDecimal=Math.max(b.yValueDecimal,U.toString().split(".")[1].length)),E>$[N][z]&&$[N][z]<0&&(E=$[N][z])):b.hasNullValues=!0}}return v.chart.type==="rangeBar"&&b.seriesRangeStart.length&&b.isBarHorizontal&&(E=u),v.chart.type==="bar"&&(E<0&&x<0&&(x=0),E===Number.MIN_VALUE&&(E=0)),{minY:E,maxY:x,lowestY:u,highestY:f}}},{key:"setYRange",value:function(){var c=this.w.globals,u=this.w.config;c.maxY=-Number.MAX_VALUE,c.minY=Number.MIN_VALUE;var f=Number.MAX_VALUE;if(c.isMultipleYAxis)for(var g=0;g<c.series.length;g++){var v=this.getMinYMaxY(g,f,null,g+1);c.minYArr.push(v.minY),c.maxYArr.push(v.maxY),f=v.lowestY}var b=this.getMinYMaxY(0,f,null,c.series.length);if(c.minY=b.minY,c.maxY=b.maxY,f=b.lowestY,u.chart.stacked&&this._setStackedMinMax(),(u.chart.type==="line"||u.chart.type==="area"||u.chart.type==="candlestick"||u.chart.type==="boxPlot"||u.chart.type==="rangeBar"&&!c.isBarHorizontal)&&c.minY===Number.MIN_VALUE&&f!==-Number.MAX_VALUE&&f!==c.maxY){var x=c.maxY-f;(f>=0&&f<=10||u.yaxis[0].min!==void 0||u.yaxis[0].max!==void 0)&&(x=0),c.minY=f-5*x/100,f>0&&c.minY<0&&(c.minY=0),c.maxY=c.maxY+5*x/100}return u.yaxis.forEach(function(E,T){E.max!==void 0&&(typeof E.max=="number"?c.maxYArr[T]=E.max:typeof E.max=="function"&&(c.maxYArr[T]=E.max(c.isMultipleYAxis?c.maxYArr[T]:c.maxY)),c.maxY=c.maxYArr[T]),E.min!==void 0&&(typeof E.min=="number"?c.minYArr[T]=E.min:typeof E.min=="function"&&(c.minYArr[T]=E.min(c.isMultipleYAxis?c.minYArr[T]===Number.MIN_VALUE?0:c.minYArr[T]:c.minY)),c.minY=c.minYArr[T])}),c.isBarHorizontal&&["min","max"].forEach(function(E){u.xaxis[E]!==void 0&&typeof u.xaxis[E]=="number"&&(E==="min"?c.minY=u.xaxis[E]:c.maxY=u.xaxis[E])}),c.isMultipleYAxis?(this.scales.setMultipleYScales(),c.minY=f,c.yAxisScale.forEach(function(E,T){c.minYArr[T]=E.niceMin,c.maxYArr[T]=E.niceMax})):(this.scales.setYScaleForIndex(0,c.minY,c.maxY),c.minY=c.yAxisScale[0].niceMin,c.maxY=c.yAxisScale[0].niceMax,c.minYArr[0]=c.yAxisScale[0].niceMin,c.maxYArr[0]=c.yAxisScale[0].niceMax),{minY:c.minY,maxY:c.maxY,minYArr:c.minYArr,maxYArr:c.maxYArr,yAxisScale:c.yAxisScale}}},{key:"setXRange",value:function(){var c=this.w.globals,u=this.w.config,f=u.xaxis.type==="numeric"||u.xaxis.type==="datetime"||u.xaxis.type==="category"&&!c.noLabelsProvided||c.noLabelsProvided||c.isXNumeric;if(c.isXNumeric&&function(){for(var x=0;x<c.series.length;x++)if(c.labels[x])for(var E=0;E<c.labels[x].length;E++)c.labels[x][E]!==null&&_.isNumber(c.labels[x][E])&&(c.maxX=Math.max(c.maxX,c.labels[x][E]),c.initialMaxX=Math.max(c.maxX,c.labels[x][E]),c.minX=Math.min(c.minX,c.labels[x][E]),c.initialMinX=Math.min(c.minX,c.labels[x][E]))}(),c.noLabelsProvided&&u.xaxis.categories.length===0&&(c.maxX=c.labels[c.labels.length-1],c.initialMaxX=c.labels[c.labels.length-1],c.minX=1,c.initialMinX=1),c.isXNumeric||c.noLabelsProvided||c.dataFormatXNumeric){var g;if(u.xaxis.tickAmount===void 0?(g=Math.round(c.svgWidth/150),u.xaxis.type==="numeric"&&c.dataPoints<30&&(g=c.dataPoints-1),g>c.dataPoints&&c.dataPoints!==0&&(g=c.dataPoints-1)):u.xaxis.tickAmount==="dataPoints"?(c.series.length>1&&(g=c.series[c.maxValsInArrayIndex].length-1),c.isXNumeric&&(g=c.maxX-c.minX-1)):g=u.xaxis.tickAmount,c.xTickAmount=g,u.xaxis.max!==void 0&&typeof u.xaxis.max=="number"&&(c.maxX=u.xaxis.max),u.xaxis.min!==void 0&&typeof u.xaxis.min=="number"&&(c.minX=u.xaxis.min),u.xaxis.range!==void 0&&(c.minX=c.maxX-u.xaxis.range),c.minX!==Number.MAX_VALUE&&c.maxX!==-Number.MAX_VALUE)if(u.xaxis.convertedCatToNumeric&&!c.dataFormatXNumeric){for(var v=[],b=c.minX-1;b<c.maxX;b++)v.push(b+1);c.xAxisScale={result:v,niceMin:v[0],niceMax:v[v.length-1]}}else c.xAxisScale=this.scales.setXScale(c.minX,c.maxX);else c.xAxisScale=this.scales.linearScale(1,g,g),c.noLabelsProvided&&c.labels.length>0&&(c.xAxisScale=this.scales.linearScale(1,c.labels.length,g-1),c.seriesX=c.labels.slice());f&&(c.labels=c.xAxisScale.result.slice())}return c.isBarHorizontal&&c.labels.length&&(c.xTickAmount=c.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:c.minX,maxX:c.maxX}}},{key:"setZRange",value:function(){var c=this.w.globals;if(c.isDataXYZ){for(var u=0;u<c.series.length;u++)if(c.seriesZ[u]!==void 0)for(var f=0;f<c.seriesZ[u].length;f++)c.seriesZ[u][f]!==null&&_.isNumber(c.seriesZ[u][f])&&(c.maxZ=Math.max(c.maxZ,c.seriesZ[u][f]),c.minZ=Math.min(c.minZ,c.seriesZ[u][f]))}}},{key:"_handleSingleDataPoint",value:function(){var c=this.w.globals,u=this.w.config;if(c.minX===c.maxX){var f=new se(this.ctx);if(u.xaxis.type==="datetime"){var g=f.getDate(c.minX);u.xaxis.labels.datetimeUTC?g.setUTCDate(g.getUTCDate()-2):g.setDate(g.getDate()-2),c.minX=new Date(g).getTime();var v=f.getDate(c.maxX);u.xaxis.labels.datetimeUTC?v.setUTCDate(v.getUTCDate()+2):v.setDate(v.getDate()+2),c.maxX=new Date(v).getTime()}else(u.xaxis.type==="numeric"||u.xaxis.type==="category"&&!c.noLabelsProvided)&&(c.minX=c.minX-2,c.initialMinX=c.minX,c.maxX=c.maxX+2,c.initialMaxX=c.maxX)}}},{key:"_getMinXDiff",value:function(){var c=this.w.globals;c.isXNumeric&&c.seriesX.forEach(function(u,f){u.length===1&&u.push(c.seriesX[c.maxValsInArrayIndex][c.seriesX[c.maxValsInArrayIndex].length-1]);var g=u.slice();g.sort(function(v,b){return v-b}),g.forEach(function(v,b){if(b>0){var x=v-g[b-1];x>0&&(c.minXDiff=Math.min(x,c.minXDiff))}}),c.dataPoints!==1&&c.minXDiff!==Number.MAX_VALUE||(c.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var c=this,u=this.w.globals;if(u.series.length){var f=u.seriesGroups;f.length||(f=[this.w.config.series.map(function(b){return b.name})]);var g={},v={};f.forEach(function(b){g[b]=[],v[b]=[],c.w.config.series.map(function(x,E){return b.indexOf(x.name)>-1?E:null}).filter(function(x){return x!==null}).forEach(function(x){for(var E=0;E<u.series[u.maxValsInArrayIndex].length;E++)g[b][E]===void 0&&(g[b][E]=0,v[b][E]=0),u.series[x][E]!==null&&_.isNumber(u.series[x][E])&&(u.series[x][E]>0?g[b][E]+=parseFloat(u.series[x][E])+1e-4:v[b][E]+=parseFloat(u.series[x][E]))})}),Object.entries(g).forEach(function(b){var x=C(b,1)[0];g[x].forEach(function(E,T){u.maxY=Math.max(u.maxY,g[x][T]),u.minY=Math.min(u.minY,v[x][T])})})}}}]),re}(),ee=function(){function re(c,u){o(this,re),this.ctx=c,this.elgrid=u,this.w=c.w;var f=this.w;this.xaxisFontSize=f.config.xaxis.labels.style.fontSize,this.axisFontFamily=f.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=f.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=f.config.chart.type==="bar"&&f.config.plotOptions.bar.horizontal,this.xAxisoffX=0,f.config.xaxis.position==="bottom"&&(this.xAxisoffX=f.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Ce(c)}return a(re,[{key:"drawYaxis",value:function(c){var u=this,f=this.w,g=new F(this.ctx),v=f.config.yaxis[c].labels.style,b=v.fontSize,x=v.fontFamily,E=v.fontWeight,T=g.group({class:"apexcharts-yaxis",rel:c,transform:"translate("+f.globals.translateYAxisX[c]+", 0)"});if(this.axesUtils.isYAxisHidden(c))return T;var $=g.group({class:"apexcharts-yaxis-texts-g"});T.add($);var R=f.globals.yAxisScale[c].result.length-1,N=f.globals.gridHeight/R,z=f.globals.translateY,U=f.globals.yLabelFormatters[c],Y=f.globals.yAxisScale[c].result.slice();Y=this.axesUtils.checkForReversedLabels(c,Y);var ne="";if(f.config.yaxis[c].labels.show)for(var le=function(ke){var De=Y[ke];De=U(De,ke,f);var Ge=f.config.yaxis[c].labels.padding;f.config.yaxis[c].opposite&&f.config.yaxis.length!==0&&(Ge*=-1);var Ze="end";f.config.yaxis[c].opposite&&(Ze="start"),f.config.yaxis[c].labels.align==="left"?Ze="start":f.config.yaxis[c].labels.align==="center"?Ze="middle":f.config.yaxis[c].labels.align==="right"&&(Ze="end");var st=u.axesUtils.getYAxisForeColor(v.colors,c),ft=g.drawText({x:Ge,y:z+R/10+f.config.yaxis[c].labels.offsetY+1,text:De,textAnchor:Ze,fontSize:b,fontFamily:x,fontWeight:E,maxWidth:f.config.yaxis[c].labels.maxWidth,foreColor:Array.isArray(st)?st[ke]:st,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+v.cssClass});ke===R&&(ne=ft),$.add(ft);var Wt=document.createElementNS(f.globals.SVGNS,"title");if(Wt.textContent=Array.isArray(De)?De.join(" "):De,ft.node.appendChild(Wt),f.config.yaxis[c].labels.rotate!==0){var nn=g.rotateAroundCenter(ne.node),on=g.rotateAroundCenter(ft.node);ft.node.setAttribute("transform","rotate(".concat(f.config.yaxis[c].labels.rotate," ").concat(nn.x," ").concat(on.y,")"))}z+=N},he=R;he>=0;he--)le(he);if(f.config.yaxis[c].title.text!==void 0){var A=g.group({class:"apexcharts-yaxis-title"}),P=0;f.config.yaxis[c].opposite&&(P=f.globals.translateYAxisX[c]);var W=g.drawText({x:P,y:f.globals.gridHeight/2+f.globals.translateY+f.config.yaxis[c].title.offsetY,text:f.config.yaxis[c].title.text,textAnchor:"end",foreColor:f.config.yaxis[c].title.style.color,fontSize:f.config.yaxis[c].title.style.fontSize,fontWeight:f.config.yaxis[c].title.style.fontWeight,fontFamily:f.config.yaxis[c].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+f.config.yaxis[c].title.style.cssClass});A.add(W),T.add(A)}var oe=f.config.yaxis[c].axisBorder,pe=31+oe.offsetX;if(f.config.yaxis[c].opposite&&(pe=-31-oe.offsetX),oe.show){var ge=g.drawLine(pe,f.globals.translateY+oe.offsetY-2,pe,f.globals.gridHeight+f.globals.translateY+oe.offsetY+2,oe.color,0,oe.width);T.add(ge)}return f.config.yaxis[c].axisTicks.show&&this.axesUtils.drawYAxisTicks(pe,R,oe,f.config.yaxis[c].axisTicks,c,N,T),T}},{key:"drawYaxisInversed",value:function(c){var u=this.w,f=new F(this.ctx),g=f.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),v=f.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(u.globals.translateXAxisX,", ").concat(u.globals.translateXAxisY,")")});g.add(v);var b=u.globals.yAxisScale[c].result.length-1,x=u.globals.gridWidth/b+.1,E=x+u.config.xaxis.labels.offsetX,T=u.globals.xLabelFormatter,$=u.globals.yAxisScale[c].result.slice(),R=u.globals.timescaleLabels;R.length>0&&(this.xaxisLabels=R.slice(),b=($=R.slice()).length),$=this.axesUtils.checkForReversedLabels(c,$);var N=R.length;if(u.config.xaxis.labels.show)for(var z=N?0:b;N?z<N:z>=0;N?z++:z--){var U=$[z];U=T(U,z,u);var Y=u.globals.gridWidth+u.globals.padHorizontal-(E-x+u.config.xaxis.labels.offsetX);if(R.length){var ne=this.axesUtils.getLabel($,R,Y,z,this.drawnLabels,this.xaxisFontSize);Y=ne.x,U=ne.text,this.drawnLabels.push(ne.text),z===0&&u.globals.skipFirstTimelinelabel&&(U=""),z===$.length-1&&u.globals.skipLastTimelinelabel&&(U="")}var le=f.drawText({x:Y,y:this.xAxisoffX+u.config.xaxis.labels.offsetY+30-(u.config.xaxis.position==="top"?u.globals.xAxisHeight+u.config.xaxis.axisTicks.height-2:0),text:U,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[c]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:u.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+u.config.xaxis.labels.style.cssClass});v.add(le),le.tspan(U);var he=document.createElementNS(u.globals.SVGNS,"title");he.textContent=U,le.node.appendChild(he),E+=x}return this.inversedYAxisTitleText(g),this.inversedYAxisBorder(g),g}},{key:"inversedYAxisBorder",value:function(c){var u=this.w,f=new F(this.ctx),g=u.config.xaxis.axisBorder;if(g.show){var v=0;u.config.chart.type==="bar"&&u.globals.isXNumeric&&(v-=15);var b=f.drawLine(u.globals.padHorizontal+v+g.offsetX,this.xAxisoffX,u.globals.gridWidth,this.xAxisoffX,g.color,0,g.height);this.elgrid&&this.elgrid.elGridBorders?this.elgrid.elGridBorders.add(b):c.add(b)}}},{key:"inversedYAxisTitleText",value:function(c){var u=this.w,f=new F(this.ctx);if(u.config.xaxis.title.text!==void 0){var g=f.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),v=f.drawText({x:u.globals.gridWidth/2+u.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(u.config.xaxis.title.style.fontSize)+u.config.xaxis.title.offsetY+20,text:u.config.xaxis.title.text,textAnchor:"middle",fontSize:u.config.xaxis.title.style.fontSize,fontFamily:u.config.xaxis.title.style.fontFamily,fontWeight:u.config.xaxis.title.style.fontWeight,foreColor:u.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+u.config.xaxis.title.style.cssClass});g.add(v),c.add(g)}}},{key:"yAxisTitleRotate",value:function(c,u){var f=this.w,g=new F(this.ctx),v={width:0,height:0},b={width:0,height:0},x=f.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(c,"'] .apexcharts-yaxis-texts-g"));x!==null&&(v=x.getBoundingClientRect());var E=f.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(c,"'] .apexcharts-yaxis-title text"));if(E!==null&&(b=E.getBoundingClientRect()),E!==null){var T=this.xPaddingForYAxisTitle(c,v,b,u);E.setAttribute("x",T.xPos-(u?10:0))}if(E!==null){var $=g.rotateAroundCenter(E);E.setAttribute("transform","rotate(".concat(u?-1*f.config.yaxis[c].title.rotate:f.config.yaxis[c].title.rotate," ").concat($.x," ").concat($.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(c,u,f,g){var v=this.w,b=0,x=0,E=10;return v.config.yaxis[c].title.text===void 0||c<0?{xPos:x,padd:0}:(g?(x=u.width+v.config.yaxis[c].title.offsetX+f.width/2+E/2,(b+=1)===0&&(x-=E/2)):(x=-1*u.width+v.config.yaxis[c].title.offsetX+E/2+f.width/2,v.globals.isBarHorizontal&&(E=25,x=-1*u.width-v.config.yaxis[c].title.offsetX-E)),{xPos:x,padd:E})}},{key:"setYAxisXPosition",value:function(c,u){var f=this.w,g=0,v=0,b=18,x=1;f.config.yaxis.length>1&&(this.multipleYs=!0),f.config.yaxis.map(function(E,T){var $=f.globals.ignoreYAxisIndexes.indexOf(T)>-1||!E.show||E.floating||c[T].width===0,R=c[T].width+u[T].width;E.opposite?f.globals.isBarHorizontal?(v=f.globals.gridWidth+f.globals.translateX-1,f.globals.translateYAxisX[T]=v-E.labels.offsetX):(v=f.globals.gridWidth+f.globals.translateX+x,$||(x=x+R+20),f.globals.translateYAxisX[T]=v-E.labels.offsetX+20):(g=f.globals.translateX-b,$||(b=b+R+20),f.globals.translateYAxisX[T]=g+E.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var c=this.w,u=c.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(u=_.listToArray(u)).forEach(function(f,g){var v=c.config.yaxis[g];if(v&&!v.floating&&v.labels.align!==void 0){var b=c.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(g,"'] .apexcharts-yaxis-texts-g")),x=c.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(g,"'] .apexcharts-yaxis-label"));x=_.listToArray(x);var E=b.getBoundingClientRect();v.labels.align==="left"?(x.forEach(function(T,$){T.setAttribute("text-anchor","start")}),v.opposite||b.setAttribute("transform","translate(-".concat(E.width,", 0)"))):v.labels.align==="center"?(x.forEach(function(T,$){T.setAttribute("text-anchor","middle")}),b.setAttribute("transform","translate(".concat(E.width/2*(v.opposite?1:-1),", 0)"))):v.labels.align==="right"&&(x.forEach(function(T,$){T.setAttribute("text-anchor","end")}),v.opposite&&b.setAttribute("transform","translate(".concat(E.width,", 0)")))}})}}]),re}(),be=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.documentEvent=_.bind(this.documentEvent,this)}return a(re,[{key:"addEventListener",value:function(c,u){var f=this.w;f.globals.events.hasOwnProperty(c)?f.globals.events[c].push(u):f.globals.events[c]=[u]}},{key:"removeEventListener",value:function(c,u){var f=this.w;if(f.globals.events.hasOwnProperty(c)){var g=f.globals.events[c].indexOf(u);g!==-1&&f.globals.events[c].splice(g,1)}}},{key:"fireEvent",value:function(c,u){var f=this.w;if(f.globals.events.hasOwnProperty(c)){u&&u.length||(u=[]);for(var g=f.globals.events[c],v=g.length,b=0;b<v;b++)g[b].apply(null,u)}}},{key:"setupEventHandlers",value:function(){var c=this,u=this.w,f=this.ctx,g=u.globals.dom.baseEl.querySelector(u.globals.chartClass);this.ctx.eventList.forEach(function(v){g.addEventListener(v,function(b){var x=Object.assign({},u,{seriesIndex:u.globals.capturedSeriesIndex,dataPointIndex:u.globals.capturedDataPointIndex});b.type==="mousemove"||b.type==="touchmove"?typeof u.config.chart.events.mouseMove=="function"&&u.config.chart.events.mouseMove(b,f,x):b.type==="mouseleave"||b.type==="touchleave"?typeof u.config.chart.events.mouseLeave=="function"&&u.config.chart.events.mouseLeave(b,f,x):(b.type==="mouseup"&&b.which===1||b.type==="touchend")&&(typeof u.config.chart.events.click=="function"&&u.config.chart.events.click(b,f,x),f.ctx.events.fireEvent("click",[b,f,x]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(v){u.globals.dom.baseEl.addEventListener(v,c.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(c){var u=this.w,f=c.target.className;if(c.type==="click"){var g=u.globals.dom.baseEl.querySelector(".apexcharts-menu");g&&g.classList.contains("apexcharts-menu-open")&&f!=="apexcharts-menu-icon"&&g.classList.remove("apexcharts-menu-open")}u.globals.clientX=c.type==="touchmove"?c.touches[0].clientX:c.clientX,u.globals.clientY=c.type==="touchmove"?c.touches[0].clientY:c.clientY}}]),re}(),$e=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"setCurrentLocaleValues",value:function(c){var u=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(u=this.w.config.chart.locales.concat(window.Apex.chart.locales));var f=u.filter(function(v){return v.name===c})[0];if(!f)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var g=_.extend(ae,f);this.w.globals.locale=g.options}}]),re}(),Ie=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"drawAxis",value:function(c,u){var f,g,v=this,b=this.w.globals,x=this.w.config,E=new Ue(this.ctx,u),T=new ee(this.ctx,u);b.axisCharts&&c!=="radar"&&(b.isBarHorizontal?(g=T.drawYaxisInversed(0),f=E.drawXaxisInversed(0),b.dom.elGraphical.add(f),b.dom.elGraphical.add(g)):(f=E.drawXaxis(),b.dom.elGraphical.add(f),x.yaxis.map(function($,R){if(b.ignoreYAxisIndexes.indexOf(R)===-1&&(g=T.drawYaxis(R),b.dom.Paper.add(g),v.w.config.grid.position==="back")){var N=b.dom.Paper.children()[1];N.remove(),b.dom.Paper.add(N)}})))}}]),re}(),He=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"drawXCrosshairs",value:function(){var c=this.w,u=new F(this.ctx),f=new M(this.ctx),g=c.config.xaxis.crosshairs.fill.gradient,v=c.config.xaxis.crosshairs.dropShadow,b=c.config.xaxis.crosshairs.fill.type,x=g.colorFrom,E=g.colorTo,T=g.opacityFrom,$=g.opacityTo,R=g.stops,N=v.enabled,z=v.left,U=v.top,Y=v.blur,ne=v.color,le=v.opacity,he=c.config.xaxis.crosshairs.fill.color;if(c.config.xaxis.crosshairs.show){b==="gradient"&&(he=u.drawGradient("vertical",x,E,T,$,null,R,null));var A=u.drawRect();c.config.xaxis.crosshairs.width===1&&(A=u.drawLine());var P=c.globals.gridHeight;(!_.isNumber(P)||P<0)&&(P=0);var W=c.config.xaxis.crosshairs.width;(!_.isNumber(W)||W<0)&&(W=0),A.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:P,width:W,height:P,fill:he,filter:"none","fill-opacity":c.config.xaxis.crosshairs.opacity,stroke:c.config.xaxis.crosshairs.stroke.color,"stroke-width":c.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":c.config.xaxis.crosshairs.stroke.dashArray}),N&&(A=f.dropShadow(A,{left:z,top:U,blur:Y,color:ne,opacity:le})),c.globals.dom.elGraphical.add(A)}}},{key:"drawYCrosshairs",value:function(){var c=this.w,u=new F(this.ctx),f=c.config.yaxis[0].crosshairs,g=c.globals.barPadForNumericAxis;if(c.config.yaxis[0].crosshairs.show){var v=u.drawLine(-g,0,c.globals.gridWidth+g,0,f.stroke.color,f.stroke.dashArray,f.stroke.width);v.attr({class:"apexcharts-ycrosshairs"}),c.globals.dom.elGraphical.add(v)}var b=u.drawLine(-g,0,c.globals.gridWidth+g,0,f.stroke.color,0,0);b.attr({class:"apexcharts-ycrosshairs-hidden"}),c.globals.dom.elGraphical.add(b)}}]),re}(),rt=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"checkResponsiveConfig",value:function(c){var u=this,f=this.w,g=f.config;if(g.responsive.length!==0){var v=g.responsive.slice();v.sort(function(T,$){return T.breakpoint>$.breakpoint?1:$.breakpoint>T.breakpoint?-1:0}).reverse();var b=new ce({}),x=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=v[0].breakpoint,R=window.innerWidth>0?window.innerWidth:screen.width;if(R>$){var N=H.extendArrayProps(b,f.globals.initialConfig,f);T=_.extend(N,T),T=_.extend(f.config,T),u.overrideResponsiveOptions(T)}else for(var z=0;z<v.length;z++)R<v[z].breakpoint&&(T=H.extendArrayProps(b,v[z].options,f),T=_.extend(f.config,T),u.overrideResponsiveOptions(T))};if(c){var E=H.extendArrayProps(b,c,f);E=_.extend(f.config,E),x(E=_.extend(E,c))}else x({})}}},{key:"overrideResponsiveOptions",value:function(c){var u=new ce(c).init({responsiveOverride:!0});this.w.config=u}}]),re}(),ze=function(){function re(c){o(this,re),this.ctx=c,this.colors=[],this.w=c.w;var u=this.w;this.isColorFn=!1,this.isHeatmapDistributed=u.config.chart.type==="treemap"&&u.config.plotOptions.treemap.distributed||u.config.chart.type==="heatmap"&&u.config.plotOptions.heatmap.distributed,this.isBarDistributed=u.config.plotOptions.bar.distributed&&(u.config.chart.type==="bar"||u.config.chart.type==="rangeBar")}return a(re,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var c=this,u=this.w,f=new _;if(u.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(u.config.theme.mode)),u.config.colors===void 0?u.globals.colors=this.predefined():(u.globals.colors=u.config.colors,Array.isArray(u.config.colors)&&u.config.colors.length>0&&typeof u.config.colors[0]=="function"&&(u.globals.colors=u.config.series.map(function(z,U){var Y=u.config.colors[U];return Y||(Y=u.config.colors[0]),typeof Y=="function"?(c.isColorFn=!0,Y({value:u.globals.axisCharts?u.globals.series[U][0]?u.globals.series[U][0]:0:u.globals.series[U],seriesIndex:U,dataPointIndex:U,w:u})):Y}))),u.globals.seriesColors.map(function(z,U){z&&(u.globals.colors[U]=z)}),u.config.theme.monochrome.enabled){var g=[],v=u.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(v=u.globals.series[0].length*u.globals.series.length);for(var b=u.config.theme.monochrome.color,x=1/(v/u.config.theme.monochrome.shadeIntensity),E=u.config.theme.monochrome.shadeTo,T=0,$=0;$<v;$++){var R=void 0;E==="dark"?(R=f.shadeColor(-1*T,b),T+=x):(R=f.shadeColor(T,b),T+=x),g.push(R)}u.globals.colors=g.slice()}var N=u.globals.colors.slice();this.pushExtraColors(u.globals.colors),["fill","stroke"].forEach(function(z){u.config[z].colors===void 0?u.globals[z].colors=c.isColorFn?u.config.colors:N:u.globals[z].colors=u.config[z].colors.slice(),c.pushExtraColors(u.globals[z].colors)}),u.config.dataLabels.style.colors===void 0?u.globals.dataLabels.style.colors=N:u.globals.dataLabels.style.colors=u.config.dataLabels.style.colors.slice(),this.pushExtraColors(u.globals.dataLabels.style.colors,50),u.config.plotOptions.radar.polygons.fill.colors===void 0?u.globals.radarPolygons.fill.colors=[u.config.theme.mode==="dark"?"#424242":"none"]:u.globals.radarPolygons.fill.colors=u.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(u.globals.radarPolygons.fill.colors,20),u.config.markers.colors===void 0?u.globals.markers.colors=N:u.globals.markers.colors=u.config.markers.colors.slice(),this.pushExtraColors(u.globals.markers.colors)}},{key:"pushExtraColors",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=this.w,v=u||g.globals.series.length;if(f===null&&(f=this.isBarDistributed||this.isHeatmapDistributed||g.config.chart.type==="heatmap"&&g.config.plotOptions.heatmap.colorScale.inverse),f&&g.globals.series.length&&(v=g.globals.series[g.globals.maxValsInArrayIndex].length*g.globals.series.length),c.length<v)for(var b=v-c.length,x=0;x<b;x++)c.push(c[x])}},{key:"updateThemeOptions",value:function(c){c.chart=c.chart||{},c.tooltip=c.tooltip||{};var u=c.theme.mode||"light",f=c.theme.palette?c.theme.palette:u==="dark"?"palette4":"palette1",g=c.chart.foreColor?c.chart.foreColor:u==="dark"?"#f6f7f8":"#373d3f";return c.tooltip.theme=u,c.chart.foreColor=g,c.theme.palette=f,c}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),re}(),We=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(c){var u=this.w,f=c==="title"?u.config.title:u.config.subtitle,g=u.globals.svgWidth/2,v=f.offsetY,b="middle";if(f.align==="left"?(g=10,b="start"):f.align==="right"&&(g=u.globals.svgWidth-10,b="end"),g+=f.offsetX,v=v+parseInt(f.style.fontSize,10)+f.margin/2,f.text!==void 0){var x=new F(this.ctx).drawText({x:g,y:v,text:f.text,textAnchor:b,fontSize:f.style.fontSize,fontFamily:f.style.fontFamily,fontWeight:f.style.fontWeight,foreColor:f.style.color,opacity:1});x.node.setAttribute("class","apexcharts-".concat(c,"-text")),u.globals.dom.Paper.add(x)}}}]),re}(),xe=function(){function re(c){o(this,re),this.w=c.w,this.dCtx=c}return a(re,[{key:"getTitleSubtitleCoords",value:function(c){var u=this.w,f=0,g=0,v=c==="title"?u.config.title.floating:u.config.subtitle.floating,b=u.globals.dom.baseEl.querySelector(".apexcharts-".concat(c,"-text"));if(b!==null&&!v){var x=b.getBoundingClientRect();f=x.width,g=u.globals.axisCharts?x.height+5:x.height}return{width:f,height:g}}},{key:"getLegendsRect",value:function(){var c=this.w,u=c.globals.dom.baseEl.querySelector(".apexcharts-legend");c.config.legend.height||c.config.legend.position!=="top"&&c.config.legend.position!=="bottom"||(u.style.maxHeight=c.globals.svgHeight/2+"px");var f=Object.assign({},_.getBoundingClientRect(u));return u!==null&&!c.config.legend.floating&&c.config.legend.show?this.dCtx.lgRect={x:f.x,y:f.y,height:f.height,width:f.height===0?0:f.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},c.config.legend.position!=="left"&&c.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>c.globals.svgWidth&&(this.dCtx.lgRect.width=c.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(c,u){var f=c;if(this.w.globals.isMultiLineX){var g=u.map(function(b,x){return Array.isArray(b)?b.length:1}),v=Math.max.apply(Math,k(g));f=u[g.indexOf(v)]}return f}}]),re}(),Re=function(){function re(c){o(this,re),this.w=c.w,this.dCtx=c}return a(re,[{key:"getxAxisLabelsCoords",value:function(){var c,u=this.w,f=u.globals.labels.slice();if(u.config.xaxis.convertedCatToNumeric&&f.length===0&&(f=u.globals.categoryLabels),u.globals.timescaleLabels.length>0){var g=this.getxAxisTimeScaleLabelsCoords();c={width:g.width,height:g.height},u.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=u.config.legend.position!=="left"&&u.config.legend.position!=="right"||u.config.legend.floating?0:this.dCtx.lgRect.width;var v=u.globals.xLabelFormatter,b=_.getLargestStringFromArr(f),x=this.dCtx.dimHelpers.getLargestStringFromMultiArr(b,f);u.globals.isBarHorizontal&&(x=b=u.globals.yAxisScale[0].result.reduce(function(U,Y){return U.length>Y.length?U:Y},0));var E=new J(this.dCtx.ctx),T=b;b=E.xLabelFormat(v,b,T,{i:void 0,dateFormatter:new se(this.dCtx.ctx).formatDate,w:u}),x=E.xLabelFormat(v,x,T,{i:void 0,dateFormatter:new se(this.dCtx.ctx).formatDate,w:u}),(u.config.xaxis.convertedCatToNumeric&&b===void 0||String(b).trim()==="")&&(x=b="1");var $=new F(this.dCtx.ctx),R=$.getTextRects(b,u.config.xaxis.labels.style.fontSize),N=R;if(b!==x&&(N=$.getTextRects(x,u.config.xaxis.labels.style.fontSize)),(c={width:R.width>=N.width?R.width:N.width,height:R.height>=N.height?R.height:N.height}).width*f.length>u.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&u.config.xaxis.labels.rotate!==0||u.config.xaxis.labels.rotateAlways){if(!u.globals.isBarHorizontal){u.globals.rotateXLabels=!0;var z=function(U){return $.getTextRects(U,u.config.xaxis.labels.style.fontSize,u.config.xaxis.labels.style.fontFamily,"rotate(".concat(u.config.xaxis.labels.rotate," 0 0)"),!1)};R=z(b),b!==x&&(N=z(x)),c.height=(R.height>N.height?R.height:N.height)/1.5,c.width=R.width>N.width?R.width:N.width}}else u.globals.rotateXLabels=!1}return u.config.xaxis.labels.show||(c={width:0,height:0}),{width:c.width,height:c.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var c,u=this.w;if(!u.globals.hasXaxisGroups)return{width:0,height:0};var f,g=((c=u.config.xaxis.group.style)===null||c===void 0?void 0:c.fontSize)||u.config.xaxis.labels.style.fontSize,v=u.globals.groups.map(function(R){return R.title}),b=_.getLargestStringFromArr(v),x=this.dCtx.dimHelpers.getLargestStringFromMultiArr(b,v),E=new F(this.dCtx.ctx),T=E.getTextRects(b,g),$=T;return b!==x&&($=E.getTextRects(x,g)),f={width:T.width>=$.width?T.width:$.width,height:T.height>=$.height?T.height:$.height},u.config.xaxis.labels.show||(f={width:0,height:0}),{width:f.width,height:f.height}}},{key:"getxAxisTitleCoords",value:function(){var c=this.w,u=0,f=0;if(c.config.xaxis.title.text!==void 0){var g=new F(this.dCtx.ctx).getTextRects(c.config.xaxis.title.text,c.config.xaxis.title.style.fontSize);u=g.width,f=g.height}return{width:u,height:f}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var c,u=this.w;this.dCtx.timescaleLabels=u.globals.timescaleLabels.slice();var f=this.dCtx.timescaleLabels.map(function(v){return v.value}),g=f.reduce(function(v,b){return v===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):v.length>b.length?v:b},0);return 1.05*(c=new F(this.dCtx.ctx).getTextRects(g,u.config.xaxis.labels.style.fontSize)).width*f.length>u.globals.gridWidth&&u.config.xaxis.labels.rotate!==0&&(u.globals.overlappingXLabels=!0),c}},{key:"additionalPaddingXLabels",value:function(c){var u=this,f=this.w,g=f.globals,v=f.config,b=v.xaxis.type,x=c.width;g.skipLastTimelinelabel=!1,g.skipFirstTimelinelabel=!1;var E=f.config.yaxis[0].opposite&&f.globals.isBarHorizontal,T=function($,R){(function(N){return g.collapsedSeriesIndices.indexOf(N)!==-1})(R)||function(N){if(u.dCtx.timescaleLabels&&u.dCtx.timescaleLabels.length){var z=u.dCtx.timescaleLabels[0],U=u.dCtx.timescaleLabels[u.dCtx.timescaleLabels.length-1].position+x/1.75-u.dCtx.yAxisWidthRight,Y=z.position-x/1.75+u.dCtx.yAxisWidthLeft,ne=f.config.legend.position==="right"&&u.dCtx.lgRect.width>0?u.dCtx.lgRect.width:0;U>g.svgWidth-g.translateX-ne&&(g.skipLastTimelinelabel=!0),Y<-(N.show&&!N.floating||v.chart.type!=="bar"&&v.chart.type!=="candlestick"&&v.chart.type!=="rangeBar"&&v.chart.type!=="boxPlot"?10:x/1.75)&&(g.skipFirstTimelinelabel=!0)}else b==="datetime"?u.dCtx.gridPad.right<x&&!g.rotateXLabels&&(g.skipLastTimelinelabel=!0):b!=="datetime"&&u.dCtx.gridPad.right<x/2-u.dCtx.yAxisWidthRight&&!g.rotateXLabels&&!f.config.xaxis.labels.trim&&(f.config.xaxis.tickPlacement!=="between"||f.globals.isBarHorizontal)&&(u.dCtx.xPadRight=x/2+1)}($)};v.yaxis.forEach(function($,R){E?(u.dCtx.gridPad.left<x&&(u.dCtx.xPadLeft=x/2+1),u.dCtx.xPadRight=x/2+1):T($,R)})}}]),re}(),Ve=function(){function re(c){o(this,re),this.w=c.w,this.dCtx=c}return a(re,[{key:"getyAxisLabelsCoords",value:function(){var c=this,u=this.w,f=[],g=10,v=new Ce(this.dCtx.ctx);return u.config.yaxis.map(function(b,x){var E=u.globals.yAxisScale[x],T=0;if(!v.isYAxisHidden(x)&&b.labels.show&&b.labels.minWidth!==void 0&&(T=b.labels.minWidth),!v.isYAxisHidden(x)&&b.labels.show&&E.result.length){var $=u.globals.yLabelFormatters[x],R=E.niceMin===Number.MIN_VALUE?0:E.niceMin,N=String(R).length>String(E.niceMax).length?R:E.niceMax,z=$(N,{seriesIndex:x,dataPointIndex:-1,w:u}),U=z;if(z!==void 0&&z.length!==0||(z=N),u.globals.isBarHorizontal){g=0;var Y=u.globals.labels.slice();z=$(z=_.getLargestStringFromArr(Y),{seriesIndex:x,dataPointIndex:-1,w:u}),U=c.dCtx.dimHelpers.getLargestStringFromMultiArr(z,Y)}var ne=new F(c.dCtx.ctx),le="rotate(".concat(b.labels.rotate," 0 0)"),he=ne.getTextRects(z,b.labels.style.fontSize,b.labels.style.fontFamily,le,!1),A=he;z!==U&&(A=ne.getTextRects(U,b.labels.style.fontSize,b.labels.style.fontFamily,le,!1)),f.push({width:(T>A.width||T>he.width?T:A.width>he.width?A.width:he.width)+g,height:A.height>he.height?A.height:he.height})}else f.push({width:0,height:0})}),f}},{key:"getyAxisTitleCoords",value:function(){var c=this,u=this.w,f=[];return u.config.yaxis.map(function(g,v){if(g.show&&g.title.text!==void 0){var b=new F(c.dCtx.ctx),x="rotate(".concat(g.title.rotate," 0 0)"),E=b.getTextRects(g.title.text,g.title.style.fontSize,g.title.style.fontFamily,x,!1);f.push({width:E.width,height:E.height})}else f.push({width:0,height:0})}),f}},{key:"getTotalYAxisWidth",value:function(){var c=this.w,u=0,f=0,g=0,v=c.globals.yAxisScale.length>1?10:0,b=new Ce(this.dCtx.ctx),x=function(E,T){var $=c.config.yaxis[T].floating,R=0;E.width>0&&!$?(R=E.width+v,function(N){return c.globals.ignoreYAxisIndexes.indexOf(N)>-1}(T)&&(R=R-E.width-v)):R=$||b.isYAxisHidden(T)?0:5,c.config.yaxis[T].opposite?g+=R:f+=R,u+=R};return c.globals.yLabelsCoords.map(function(E,T){x(E,T)}),c.globals.yTitleCoords.map(function(E,T){x(E,T)}),c.globals.isBarHorizontal&&!c.config.yaxis[0].floating&&(u=c.globals.yLabelsCoords[0].width+c.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=f,this.dCtx.yAxisWidthRight=g,u}}]),re}(),it=function(){function re(c){o(this,re),this.w=c.w,this.dCtx=c}return a(re,[{key:"gridPadForColumnsInNumericAxis",value:function(c){var u=this.w;if(u.globals.noData||u.globals.allSeriesCollapsed)return 0;var f=function($){return $==="bar"||$==="rangeBar"||$==="candlestick"||$==="boxPlot"},g=u.config.chart.type,v=0,b=f(g)?u.config.series.length:1;if(u.globals.comboBarCount>0&&(b=u.globals.comboBarCount),u.globals.collapsedSeries.forEach(function($){f($.type)&&(b-=1)}),u.config.chart.stacked&&(b=1),(f(g)||u.globals.comboBarCount>0)&&u.globals.isXNumeric&&!u.globals.isBarHorizontal&&b>0){var x,E,T=Math.abs(u.globals.initialMaxX-u.globals.initialMinX);T<=3&&(T=u.globals.dataPoints),x=T/c,u.globals.minXDiff&&u.globals.minXDiff/x>0&&(E=u.globals.minXDiff/x),E>c/2&&(E/=2),(v=E/b*parseInt(u.config.plotOptions.bar.columnWidth,10)/100)<1&&(v=1),v=v/(b>1?1:1.5)+5,u.globals.barPadForNumericAxis=v}return v}},{key:"gridPadFortitleSubtitle",value:function(){var c=this,u=this.w,f=u.globals,g=this.dCtx.isSparkline||!u.globals.axisCharts?0:10;["title","subtitle"].forEach(function(x){u.config[x].text!==void 0?g+=u.config[x].margin:g+=c.dCtx.isSparkline||!u.globals.axisCharts?0:5}),!u.config.legend.show||u.config.legend.position!=="bottom"||u.config.legend.floating||u.globals.axisCharts||(g+=10);var v=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),b=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");f.gridHeight=f.gridHeight-v.height-b.height-g,f.translateY=f.translateY+v.height+b.height+g}},{key:"setGridXPosForDualYAxis",value:function(c,u){var f=this.w,g=new Ce(this.dCtx.ctx);f.config.yaxis.map(function(v,b){f.globals.ignoreYAxisIndexes.indexOf(b)!==-1||v.floating||g.isYAxisHidden(b)||(v.opposite&&(f.globals.translateX=f.globals.translateX-(u[b].width+c[b].width)-parseInt(f.config.yaxis[b].labels.style.fontSize,10)/1.2-12),f.globals.translateX<2&&(f.globals.translateX=2))})}}]),re}(),xt=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new xe(this),this.dimYAxis=new Ve(this),this.dimXAxis=new Re(this),this.dimGrid=new it(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return a(re,[{key:"plotCoords",value:function(){var c=this,u=this.w,f=u.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(u.config.markers.discrete.length>0||u.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(v){var b=C(v,2),x=b[0],E=b[1];c.gridPad[x]=Math.max(E,c.w.globals.markers.largestSize/1.5)}),f.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),f.gridHeight=f.gridHeight-this.gridPad.top-this.gridPad.bottom,f.gridWidth=f.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var g=this.dimGrid.gridPadForColumnsInNumericAxis(f.gridWidth);f.gridWidth=f.gridWidth-2*g,f.translateX=f.translateX+this.gridPad.left+this.xPadLeft+(g>0?g+4:0),f.translateY=f.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var c=this,u=this.w,f=u.globals,g=this.dimYAxis.getyAxisLabelsCoords(),v=this.dimYAxis.getyAxisTitleCoords();u.globals.yLabelsCoords=[],u.globals.yTitleCoords=[],u.config.yaxis.map(function(z,U){u.globals.yLabelsCoords.push({width:g[U].width,index:U}),u.globals.yTitleCoords.push({width:v[U].width,index:U})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var b=this.dimXAxis.getxAxisLabelsCoords(),x=this.dimXAxis.getxAxisGroupLabelsCoords(),E=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(b,E,x),f.translateXAxisY=u.globals.rotateXLabels?this.xAxisHeight/8:-4,f.translateXAxisX=u.globals.rotateXLabels&&u.globals.isXNumeric&&u.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,u.globals.isBarHorizontal&&(f.rotateXLabels=!1,f.translateXAxisY=parseInt(u.config.xaxis.labels.style.fontSize,10)/1.5*-1),f.translateXAxisY=f.translateXAxisY+u.config.xaxis.labels.offsetY,f.translateXAxisX=f.translateXAxisX+u.config.xaxis.labels.offsetX;var T=this.yAxisWidth,$=this.xAxisHeight;f.xAxisLabelsHeight=this.xAxisHeight-E.height,f.xAxisGroupLabelsHeight=f.xAxisLabelsHeight-b.height,f.xAxisLabelsWidth=this.xAxisWidth,f.xAxisHeight=this.xAxisHeight;var R=10;(u.config.chart.type==="radar"||this.isSparkline)&&(T=0,$=f.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||u.config.chart.type==="treemap")&&(T=0,$=0,R=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(b);var N=function(){f.translateX=T,f.gridHeight=f.svgHeight-c.lgRect.height-$-(c.isSparkline||u.config.chart.type==="treemap"?0:u.globals.rotateXLabels?10:15),f.gridWidth=f.svgWidth-T};switch(u.config.xaxis.position==="top"&&(R=f.xAxisHeight-u.config.xaxis.axisTicks.height-5),u.config.legend.position){case"bottom":f.translateY=R,N();break;case"top":f.translateY=this.lgRect.height+R,N();break;case"left":f.translateY=R,f.translateX=this.lgRect.width+T,f.gridHeight=f.svgHeight-$-12,f.gridWidth=f.svgWidth-this.lgRect.width-T;break;case"right":f.translateY=R,f.translateX=T,f.gridHeight=f.svgHeight-$-12,f.gridWidth=f.svgWidth-this.lgRect.width-T-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(v,g),new ee(this.ctx).setYAxisXPosition(g,v)}},{key:"setDimensionsForNonAxisCharts",value:function(){var c=this.w,u=c.globals,f=c.config,g=0;c.config.legend.show&&!c.config.legend.floating&&(g=20);var v=f.chart.type==="pie"||f.chart.type==="polarArea"||f.chart.type==="donut"?"pie":"radialBar",b=f.plotOptions[v].offsetY,x=f.plotOptions[v].offsetX;if(!f.legend.show||f.legend.floating)return u.gridHeight=u.svgHeight-f.grid.padding.left+f.grid.padding.right,u.gridWidth=u.gridHeight,u.translateY=b,void(u.translateX=x+(u.svgWidth-u.gridWidth)/2);switch(f.legend.position){case"bottom":u.gridHeight=u.svgHeight-this.lgRect.height-u.goldenPadding,u.gridWidth=u.svgWidth,u.translateY=b-10,u.translateX=x+(u.svgWidth-u.gridWidth)/2;break;case"top":u.gridHeight=u.svgHeight-this.lgRect.height-u.goldenPadding,u.gridWidth=u.svgWidth,u.translateY=this.lgRect.height+b+10,u.translateX=x+(u.svgWidth-u.gridWidth)/2;break;case"left":u.gridWidth=u.svgWidth-this.lgRect.width-g,u.gridHeight=f.chart.height!=="auto"?u.svgHeight:u.gridWidth,u.translateY=b,u.translateX=x+this.lgRect.width+g;break;case"right":u.gridWidth=u.svgWidth-this.lgRect.width-g-5,u.gridHeight=f.chart.height!=="auto"?u.svgHeight:u.gridWidth,u.translateY=b,u.translateX=x+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(c,u,f){var g=this.w,v=g.globals.hasXaxisGroups?2:1,b=f.height+c.height+u.height,x=g.globals.isMultiLineX?1.2:g.globals.LINE_HEIGHT_RATIO,E=g.globals.rotateXLabels?22:10,T=g.globals.rotateXLabels&&g.config.legend.position==="bottom"?10:0;this.xAxisHeight=b*x+v*E+T,this.xAxisWidth=c.width,this.xAxisHeight-u.height>g.config.xaxis.labels.maxHeight&&(this.xAxisHeight=g.config.xaxis.labels.maxHeight),g.config.xaxis.labels.minHeight&&this.xAxisHeight<g.config.xaxis.labels.minHeight&&(this.xAxisHeight=g.config.xaxis.labels.minHeight),g.config.xaxis.floating&&(this.xAxisHeight=0);var $=0,R=0;g.config.yaxis.forEach(function(N){$+=N.labels.minWidth,R+=N.labels.maxWidth}),this.yAxisWidth<$&&(this.yAxisWidth=$),this.yAxisWidth>R&&(this.yAxisWidth=R)}}]),re}(),At=function(){function re(c){o(this,re),this.w=c.w,this.lgCtx=c}return a(re,[{key:"getLegendBBox",value:function(){var c=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),u=c.width;return{clwh:c.height,clww:u}}},{key:"toggleDataSeries",value:function(c,u){var f=this,g=this.w;if(g.globals.axisCharts||g.config.chart.type==="radialBar"){g.globals.resized=!0;var v=null,b=null;g.globals.risingSeries=[],g.globals.axisCharts?(v=g.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(c,"']")),b=parseInt(v.getAttribute("data:realIndex"),10)):(v=g.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(c+1,"']")),b=parseInt(v.getAttribute("rel"),10)-1),u?[{cs:g.globals.collapsedSeries,csi:g.globals.collapsedSeriesIndices},{cs:g.globals.ancillaryCollapsedSeries,csi:g.globals.ancillaryCollapsedSeriesIndices}].forEach(function($){f.riseCollapsedSeries($.cs,$.csi,b)}):this.hideSeries({seriesEl:v,realIndex:b})}else{var x=g.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(c+1,"'] path")),E=g.config.chart.type;if(E==="pie"||E==="polarArea"||E==="donut"){var T=g.config.plotOptions.pie.donut.labels;new F(this.lgCtx.ctx).pathMouseDown(x.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(x.members[0].node,T)}x.fire("click")}}},{key:"hideSeries",value:function(c){var u=c.seriesEl,f=c.realIndex,g=this.w,v=_.clone(g.config.series);if(g.globals.axisCharts){var b=!1;if(g.config.yaxis[f]&&g.config.yaxis[f].show&&g.config.yaxis[f].showAlways&&(b=!0,g.globals.ancillaryCollapsedSeriesIndices.indexOf(f)<0&&(g.globals.ancillaryCollapsedSeries.push({index:f,data:v[f].data.slice(),type:u.parentNode.className.baseVal.split("-")[1]}),g.globals.ancillaryCollapsedSeriesIndices.push(f))),!b){g.globals.collapsedSeries.push({index:f,data:v[f].data.slice(),type:u.parentNode.className.baseVal.split("-")[1]}),g.globals.collapsedSeriesIndices.push(f);var x=g.globals.risingSeries.indexOf(f);g.globals.risingSeries.splice(x,1)}}else g.globals.collapsedSeries.push({index:f,data:v[f]}),g.globals.collapsedSeriesIndices.push(f);for(var E=u.childNodes,T=0;T<E.length;T++)E[T].classList.contains("apexcharts-series-markers-wrap")&&(E[T].classList.contains("apexcharts-hide")?E[T].classList.remove("apexcharts-hide"):E[T].classList.add("apexcharts-hide"));g.globals.allSeriesCollapsed=g.globals.collapsedSeries.length===g.config.series.length,v=this._getSeriesBasedOnCollapsedState(v),this.lgCtx.ctx.updateHelpers._updateSeries(v,g.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(c,u,f){var g=this.w,v=_.clone(g.config.series);if(c.length>0){for(var b=0;b<c.length;b++)c[b].index===f&&(g.globals.axisCharts?(v[f].data=c[b].data.slice(),c.splice(b,1),u.splice(b,1),g.globals.risingSeries.push(f)):(v[f]=c[b].data,c.splice(b,1),u.splice(b,1),g.globals.risingSeries.push(f)));v=this._getSeriesBasedOnCollapsedState(v),this.lgCtx.ctx.updateHelpers._updateSeries(v,g.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(c){var u=this.w;return u.globals.axisCharts?c.forEach(function(f,g){u.globals.collapsedSeriesIndices.indexOf(g)>-1&&(c[g].data=[])}):c.forEach(function(f,g){u.globals.collapsedSeriesIndices.indexOf(g)>-1&&(c[g]=0)}),c}}]),re}(),It=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new At(this)}return a(re,[{key:"init",value:function(){var c=this.w,u=c.globals,f=c.config;if((f.legend.showForSingleSeries&&u.series.length===1||this.isBarsDistributed||u.series.length>1||!u.axisCharts)&&f.legend.show){for(;u.dom.elLegendWrap.firstChild;)u.dom.elLegendWrap.removeChild(u.dom.elLegendWrap.firstChild);this.drawLegends(),f.legend.position==="bottom"||f.legend.position==="top"?this.legendAlignHorizontal():f.legend.position!=="right"&&f.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var c=this,u=this.w,f=u.config.legend.fontFamily,g=u.globals.seriesNames,v=u.globals.colors.slice();if(u.config.chart.type==="heatmap"){var b=u.config.plotOptions.heatmap.colorScale.ranges;g=b.map(function(Ze){return Ze.name?Ze.name:Ze.from+" - "+Ze.to}),v=b.map(function(Ze){return Ze.color})}else this.isBarsDistributed&&(g=u.globals.labels.slice());u.config.legend.customLegendItems.length&&(g=u.config.legend.customLegendItems);for(var x=u.globals.legendFormatter,E=u.config.legend.inverseOrder,T=E?g.length-1:0;E?T>=0:T<=g.length-1;E?T--:T++){var $=x(g[T],{seriesIndex:T,w:u}),R=!1,N=!1;if(u.globals.collapsedSeries.length>0)for(var z=0;z<u.globals.collapsedSeries.length;z++)u.globals.collapsedSeries[z].index===T&&(R=!0);if(u.globals.ancillaryCollapsedSeriesIndices.length>0)for(var U=0;U<u.globals.ancillaryCollapsedSeriesIndices.length;U++)u.globals.ancillaryCollapsedSeriesIndices[U]===T&&(N=!0);var Y=document.createElement("span");Y.classList.add("apexcharts-legend-marker");var ne=u.config.legend.markers.offsetX,le=u.config.legend.markers.offsetY,he=u.config.legend.markers.height,A=u.config.legend.markers.width,P=u.config.legend.markers.strokeWidth,W=u.config.legend.markers.strokeColor,oe=u.config.legend.markers.radius,pe=Y.style;pe.background=v[T],pe.color=v[T],pe.setProperty("background",v[T],"important"),u.config.legend.markers.fillColors&&u.config.legend.markers.fillColors[T]&&(pe.background=u.config.legend.markers.fillColors[T]),u.globals.seriesColors[T]!==void 0&&(pe.background=u.globals.seriesColors[T],pe.color=u.globals.seriesColors[T]),pe.height=Array.isArray(he)?parseFloat(he[T])+"px":parseFloat(he)+"px",pe.width=Array.isArray(A)?parseFloat(A[T])+"px":parseFloat(A)+"px",pe.left=(Array.isArray(ne)?parseFloat(ne[T]):parseFloat(ne))+"px",pe.top=(Array.isArray(le)?parseFloat(le[T]):parseFloat(le))+"px",pe.borderWidth=Array.isArray(P)?P[T]:P,pe.borderColor=Array.isArray(W)?W[T]:W,pe.borderRadius=Array.isArray(oe)?parseFloat(oe[T])+"px":parseFloat(oe)+"px",u.config.legend.markers.customHTML&&(Array.isArray(u.config.legend.markers.customHTML)?u.config.legend.markers.customHTML[T]&&(Y.innerHTML=u.config.legend.markers.customHTML[T]()):Y.innerHTML=u.config.legend.markers.customHTML()),F.setAttrs(Y,{rel:T+1,"data:collapsed":R||N}),(R||N)&&Y.classList.add("apexcharts-inactive-legend");var ge=document.createElement("div"),ke=document.createElement("span");ke.classList.add("apexcharts-legend-text"),ke.innerHTML=Array.isArray($)?$.join(" "):$;var De=u.config.legend.labels.useSeriesColors?u.globals.colors[T]:u.config.legend.labels.colors;De||(De=u.config.chart.foreColor),ke.style.color=De,ke.style.fontSize=parseFloat(u.config.legend.fontSize)+"px",ke.style.fontWeight=u.config.legend.fontWeight,ke.style.fontFamily=f||u.config.chart.fontFamily,F.setAttrs(ke,{rel:T+1,i:T,"data:default-text":encodeURIComponent($),"data:collapsed":R||N}),ge.appendChild(Y),ge.appendChild(ke);var Ge=new H(this.ctx);u.config.legend.showForZeroSeries||Ge.getSeriesTotalByIndex(T)===0&&Ge.seriesHaveSameValues(T)&&!Ge.isSeriesNull(T)&&u.globals.collapsedSeriesIndices.indexOf(T)===-1&&u.globals.ancillaryCollapsedSeriesIndices.indexOf(T)===-1&&ge.classList.add("apexcharts-hidden-zero-series"),u.config.legend.showForNullSeries||Ge.isSeriesNull(T)&&u.globals.collapsedSeriesIndices.indexOf(T)===-1&&u.globals.ancillaryCollapsedSeriesIndices.indexOf(T)===-1&&ge.classList.add("apexcharts-hidden-null-series"),u.globals.dom.elLegendWrap.appendChild(ge),u.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(u.config.legend.horizontalAlign)),u.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+u.config.legend.position),ge.classList.add("apexcharts-legend-series"),ge.style.margin="".concat(u.config.legend.itemMargin.vertical,"px ").concat(u.config.legend.itemMargin.horizontal,"px"),u.globals.dom.elLegendWrap.style.width=u.config.legend.width?u.config.legend.width+"px":"",u.globals.dom.elLegendWrap.style.height=u.config.legend.height?u.config.legend.height+"px":"",F.setAttrs(ge,{rel:T+1,seriesName:_.escapeString(g[T]),"data:collapsed":R||N}),(R||N)&&ge.classList.add("apexcharts-inactive-legend"),u.config.legend.onItemClick.toggleDataSeries||ge.classList.add("apexcharts-no-click")}u.globals.dom.elWrap.addEventListener("click",c.onLegendClick,!0),u.globals.dom.elWrap.appendChild(u.globals.dom.elLegendWrap),u.config.legend.onItemHover.highlightDataSeries&&u.config.legend.customLegendItems.length===0&&(u.globals.dom.elWrap.addEventListener("mousemove",c.onLegendHovered,!0),u.globals.dom.elWrap.addEventListener("mouseout",c.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(c,u){var f=this.w,g=f.globals.dom.elLegendWrap,v=g.getBoundingClientRect(),b=0,x=0;if(f.config.legend.position==="bottom")x+=f.globals.svgHeight-v.height/2;else if(f.config.legend.position==="top"){var E=new xt(this.ctx),T=E.dimHelpers.getTitleSubtitleCoords("title").height,$=E.dimHelpers.getTitleSubtitleCoords("subtitle").height;x=x+(T>0?T-10:0)+($>0?$-10:0)}g.style.position="absolute",b=b+c+f.config.legend.offsetX,x=x+u+f.config.legend.offsetY,g.style.left=b+"px",g.style.top=x+"px",f.config.legend.position==="bottom"?(g.style.top="auto",g.style.bottom=5-f.config.legend.offsetY+"px"):f.config.legend.position==="right"&&(g.style.left="auto",g.style.right=25+f.config.legend.offsetX+"px"),["width","height"].forEach(function(R){g.style[R]&&(g.style[R]=parseInt(f.config.legend[R],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var c=this.w;c.globals.dom.elLegendWrap.style.right=0;var u=this.legendHelpers.getLegendBBox(),f=new xt(this.ctx),g=f.dimHelpers.getTitleSubtitleCoords("title"),v=f.dimHelpers.getTitleSubtitleCoords("subtitle"),b=0;c.config.legend.position==="bottom"?b=-u.clwh/1.8:c.config.legend.position==="top"&&(b=g.height+v.height+c.config.title.margin+c.config.subtitle.margin-10),this.setLegendWrapXY(20,b)}},{key:"legendAlignVertical",value:function(){var c=this.w,u=this.legendHelpers.getLegendBBox(),f=0;c.config.legend.position==="left"&&(f=20),c.config.legend.position==="right"&&(f=c.globals.svgWidth-u.clww-10),this.setLegendWrapXY(f,20)}},{key:"onLegendHovered",value:function(c){var u=this.w,f=c.target.classList.contains("apexcharts-legend-text")||c.target.classList.contains("apexcharts-legend-marker");if(u.config.chart.type==="heatmap"||this.isBarsDistributed){if(f){var g=parseInt(c.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,g,this.w]),new de(this.ctx).highlightRangeInSeries(c,c.target)}}else!c.target.classList.contains("apexcharts-inactive-legend")&&f&&new de(this.ctx).toggleSeriesOnHover(c,c.target)}},{key:"onLegendClick",value:function(c){var u=this.w;if(!u.config.legend.customLegendItems.length&&(c.target.classList.contains("apexcharts-legend-text")||c.target.classList.contains("apexcharts-legend-marker"))){var f=parseInt(c.target.getAttribute("rel"),10)-1,g=c.target.getAttribute("data:collapsed")==="true",v=this.w.config.chart.events.legendClick;typeof v=="function"&&v(this.ctx,f,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,f,this.w]);var b=this.w.config.legend.markers.onClick;typeof b=="function"&&c.target.classList.contains("apexcharts-legend-marker")&&(b(this.ctx,f,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,f,this.w])),u.config.chart.type!=="treemap"&&u.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&u.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(f,g)}}}]),re}(),Oe=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w;var u=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=u.globals.minX,this.maxX=u.globals.maxX}return a(re,[{key:"createToolbar",value:function(){var c=this,u=this.w,f=function(){return document.createElement("div")},g=f();if(g.setAttribute("class","apexcharts-toolbar"),g.style.top=u.config.chart.toolbar.offsetY+"px",g.style.right=3-u.config.chart.toolbar.offsetX+"px",u.globals.dom.elWrap.appendChild(g),this.elZoom=f(),this.elZoomIn=f(),this.elZoomOut=f(),this.elPan=f(),this.elSelection=f(),this.elZoomReset=f(),this.elMenuIcon=f(),this.elMenu=f(),this.elCustomIcons=[],this.t=u.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var v=0;v<this.t.customIcons.length;v++)this.elCustomIcons.push(f());var b=[],x=function(R,N,z){var U=R.toLowerCase();c.t[U]&&u.config.chart.zoom.enabled&&b.push({el:N,icon:typeof c.t[U]=="string"?c.t[U]:z,title:c.localeValues[R],class:"apexcharts-".concat(U,"-icon")})};x("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),x("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var E=function(R){c.t[R]&&u.config.chart[R].enabled&&b.push({el:R==="zoom"?c.elZoom:c.elSelection,icon:typeof c.t[R]=="string"?c.t[R]:R==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
    <path d="M0 0h24v24H0V0z" fill="none"/>
    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:c.localeValues[R==="zoom"?"selectionZoom":"selection"],class:u.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(R,"-icon")})};E("zoom"),E("selection"),this.t.pan&&u.config.chart.zoom.enabled&&b.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
    <defs>
        <path d="M0 0h24v24H0z" id="a"/>
    </defs>
    <clipPath id="b">
        <use overflow="visible" xlink:href="#a"/>
    </clipPath>
    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:u.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),x("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
    <path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&b.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var T=0;T<this.elCustomIcons.length;T++)b.push({el:this.elCustomIcons[T],icon:this.t.customIcons[T].icon,title:this.t.customIcons[T].title,index:this.t.customIcons[T].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[T].class});b.forEach(function(R,N){R.index&&_.moveIndexInArray(b,N,R.index)});for(var $=0;$<b.length;$++)F.setAttrs(b[$].el,{class:b[$].class,title:b[$].title}),b[$].el.innerHTML=b[$].icon,g.appendChild(b[$].el);this._createHamburgerMenu(g),u.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):u.globals.panEnabled?this.elPan.classList.add(this.selectedClass):u.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(c){this.elMenuItems=[],c.appendChild(this.elMenu),F.setAttrs(this.elMenu,{class:"apexcharts-menu"});var u=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||u.splice(2,1);for(var f=0;f<u.length;f++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[f].innerHTML=u[f].title,F.setAttrs(this.elMenuItems[f],{class:"apexcharts-menu-item ".concat(u[f].name),title:u[f].title}),this.elMenu.appendChild(this.elMenuItems[f])}},{key:"addToolbarEventListeners",value:function(){var c=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(f){f.classList.contains("exportSVG")?f.addEventListener("click",c.handleDownload.bind(c,"svg")):f.classList.contains("exportPNG")?f.addEventListener("click",c.handleDownload.bind(c,"png")):f.classList.contains("exportCSV")&&f.addEventListener("click",c.handleDownload.bind(c,"csv"))});for(var u=0;u<this.t.customIcons.length;u++)this.elCustomIcons[u].addEventListener("click",this.t.customIcons[u].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(c){this.ctx.getSyncedCharts().forEach(function(u){u.ctx.toolbar.toggleOtherControls();var f=c==="selection"?u.ctx.toolbar.elSelection:u.ctx.toolbar.elZoom,g=c==="selection"?"selectionEnabled":"zoomEnabled";u.w.globals[g]=!u.w.globals[g],f.classList.contains(u.ctx.toolbar.selectedClass)?f.classList.remove(u.ctx.toolbar.selectedClass):f.classList.add(u.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var c=this.w;this.elZoom||(this.elZoom=c.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=c.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=c.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(c){this.toggleOtherControls(),c==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var u=c==="pan"?this.elPan:this.elZoom,f=c==="pan"?this.elZoom:this.elPan;u&&u.classList.add(this.selectedClass),f&&f.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(c){c.ctx.toolbar.toggleOtherControls(),c.w.globals.panEnabled=!c.w.globals.panEnabled,c.ctx.toolbar.elPan.classList.contains(c.ctx.toolbar.selectedClass)?c.ctx.toolbar.elPan.classList.remove(c.ctx.toolbar.selectedClass):c.ctx.toolbar.elPan.classList.add(c.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var c=this,u=this.w;u.globals.panEnabled=!1,u.globals.zoomEnabled=!1,u.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(f){f&&f.classList.remove(c.selectedClass)})}},{key:"handleZoomIn",value:function(){var c=this.w;c.globals.isRangeBar&&(this.minX=c.globals.minY,this.maxX=c.globals.maxY);var u=(this.minX+this.maxX)/2,f=(this.minX+u)/2,g=(this.maxX+u)/2,v=this._getNewMinXMaxX(f,g);c.globals.disableZoomIn||this.zoomUpdateOptions(v.minX,v.maxX)}},{key:"handleZoomOut",value:function(){var c=this.w;if(c.globals.isRangeBar&&(this.minX=c.globals.minY,this.maxX=c.globals.maxY),!(c.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var u=(this.minX+this.maxX)/2,f=this.minX-(u-this.minX),g=this.maxX-(u-this.maxX),v=this._getNewMinXMaxX(f,g);c.globals.disableZoomOut||this.zoomUpdateOptions(v.minX,v.maxX)}}},{key:"_getNewMinXMaxX",value:function(c,u){var f=this.w.config.xaxis.convertedCatToNumeric;return{minX:f?Math.floor(c):c,maxX:f?Math.floor(u):u}}},{key:"zoomUpdateOptions",value:function(c,u){var f=this.w;if(c!==void 0||u!==void 0){if(!(f.config.xaxis.convertedCatToNumeric&&(c<1&&(c=1,u=f.globals.dataPoints),u-c<2))){var g={min:c,max:u},v=this.getBeforeZoomRange(g);v&&(g=v.xaxis);var b={xaxis:g},x=_.clone(f.globals.initialConfig.yaxis);f.config.chart.zoom.autoScaleYaxis&&(x=new qe(this.ctx).autoScaleY(this.ctx,x,{xaxis:g})),f.config.chart.group||(b.yaxis=x),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(b,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(g,x)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(c,u){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:c,yaxis:u})}},{key:"getBeforeZoomRange",value:function(c,u){var f=null;return typeof this.ev.beforeZoom=="function"&&(f=this.ev.beforeZoom(this,{xaxis:c,yaxis:u})),f}},{key:"toggleMenu",value:function(){var c=this;window.setTimeout(function(){c.elMenu.classList.contains("apexcharts-menu-open")?c.elMenu.classList.remove("apexcharts-menu-open"):c.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(c){var u=this.w,f=new je(this.ctx);switch(c){case"svg":f.exportToSVG(this.ctx);break;case"png":f.exportToPng(this.ctx);break;case"csv":f.exportToCSV({series:u.config.series,columnDelimiter:u.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(c){this.ctx.getSyncedCharts().forEach(function(u){var f=u.w;if(f.globals.lastXAxis.min=void 0,f.globals.lastXAxis.max=void 0,u.updateHelpers.revertDefaultAxisMinMax(),typeof f.config.chart.events.beforeResetZoom=="function"){var g=f.config.chart.events.beforeResetZoom(u,f);g&&u.updateHelpers.revertDefaultAxisMinMax(g)}typeof f.config.chart.events.zoomed=="function"&&u.ctx.toolbar.zoomCallback({min:f.config.xaxis.min,max:f.config.xaxis.max}),f.globals.zoomed=!1;var v=u.ctx.series.emptyCollapsedSeries(_.clone(f.globals.initialSeries));u.updateHelpers._updateSeries(v,f.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),re}(),Ne=function(re){d(u,Oe);var c=w(u);function u(f){var g;return o(this,u),(g=c.call(this,f)).ctx=f,g.w=f.w,g.dragged=!1,g.graphics=new F(g.ctx),g.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],g.clientX=0,g.clientY=0,g.startX=0,g.endX=0,g.dragX=0,g.startY=0,g.endY=0,g.dragY=0,g.moveDirection="none",g}return a(u,[{key:"init",value:function(f){var g=this,v=f.xyRatios,b=this.w,x=this;this.xyRatios=v,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=b.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),b.globals.dom.elGraphical.add(this.zoomRect),b.globals.dom.elGraphical.add(this.selectionRect),b.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:b.globals.gridWidth,maxY:b.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):b.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:b.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=b.globals.dom.baseEl.querySelector("".concat(b.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(E){g.hoverArea.addEventListener(E,x.svgMouseEvents.bind(x,v),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(f,g){var v=this.w,b=this,x=this.ctx.toolbar,E=v.globals.zoomEnabled?v.config.chart.zoom.type:v.config.chart.selection.type,T=v.config.chart.toolbar.autoSelected;if(g.shiftKey?(this.shiftWasPressed=!0,x.enableZoomPanFromToolbar(T==="pan"?"zoom":"pan")):this.shiftWasPressed&&(x.enableZoomPanFromToolbar(T),this.shiftWasPressed=!1),g.target){var $,R=g.target.classList;if(g.target.parentNode&&g.target.parentNode!==null&&($=g.target.parentNode.classList),!(R.contains("apexcharts-selection-rect")||R.contains("apexcharts-legend-marker")||R.contains("apexcharts-legend-text")||$&&$.contains("apexcharts-toolbar"))){if(b.clientX=g.type==="touchmove"||g.type==="touchstart"?g.touches[0].clientX:g.type==="touchend"?g.changedTouches[0].clientX:g.clientX,b.clientY=g.type==="touchmove"||g.type==="touchstart"?g.touches[0].clientY:g.type==="touchend"?g.changedTouches[0].clientY:g.clientY,g.type==="mousedown"&&g.which===1){var N=b.gridRect.getBoundingClientRect();b.startX=b.clientX-N.left,b.startY=b.clientY-N.top,b.dragged=!1,b.w.globals.mousedown=!0}if((g.type==="mousemove"&&g.which===1||g.type==="touchmove")&&(b.dragged=!0,v.globals.panEnabled?(v.globals.selection=null,b.w.globals.mousedown&&b.panDragging({context:b,zoomtype:E,xyRatios:f})):(b.w.globals.mousedown&&v.globals.zoomEnabled||b.w.globals.mousedown&&v.globals.selectionEnabled)&&(b.selection=b.selectionDrawing({context:b,zoomtype:E}))),g.type==="mouseup"||g.type==="touchend"||g.type==="mouseleave"){var z=b.gridRect.getBoundingClientRect();b.w.globals.mousedown&&(b.endX=b.clientX-z.left,b.endY=b.clientY-z.top,b.dragX=Math.abs(b.endX-b.startX),b.dragY=Math.abs(b.endY-b.startY),(v.globals.zoomEnabled||v.globals.selectionEnabled)&&b.selectionDrawn({context:b,zoomtype:E}),v.globals.panEnabled&&v.config.xaxis.convertedCatToNumeric&&b.delayedPanScrolled()),v.globals.zoomEnabled&&b.hideSelectionRect(this.selectionRect),b.dragged=!1,b.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var f=this.w;if(this.selectionRect){var g=this.selectionRect.node.getBoundingClientRect();g.width>0&&g.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:f.globals.gridWidth,maxY:f.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var f=this.w,g=this.xyRatios;if(!f.globals.zoomEnabled){if(f.globals.selection!==void 0&&f.globals.selection!==null)this.drawSelectionRect(f.globals.selection);else if(f.config.chart.selection.xaxis.min!==void 0&&f.config.chart.selection.xaxis.max!==void 0){var v=(f.config.chart.selection.xaxis.min-f.globals.minX)/g.xRatio,b={x:v,y:0,width:f.globals.gridWidth-(f.globals.maxX-f.config.chart.selection.xaxis.max)/g.xRatio-v,height:f.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(b),this.makeSelectionRectDraggable(),typeof f.config.chart.events.selection=="function"&&f.config.chart.events.selection(this.ctx,{xaxis:{min:f.config.chart.selection.xaxis.min,max:f.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(f){var g=f.x,v=f.y,b=f.width,x=f.height,E=f.translateX,T=E===void 0?0:E,$=f.translateY,R=$===void 0?0:$,N=this.w,z=this.zoomRect,U=this.selectionRect;if(this.dragged||N.globals.selection!==null){var Y={transform:"translate("+T+", "+R+")"};N.globals.zoomEnabled&&this.dragged&&(b<0&&(b=1),z.attr({x:g,y:v,width:b,height:x,fill:N.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":N.config.chart.zoom.zoomedArea.fill.opacity,stroke:N.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":N.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":N.config.chart.zoom.zoomedArea.stroke.opacity}),F.setAttrs(z.node,Y)),N.globals.selectionEnabled&&(U.attr({x:g,y:v,width:b>0?b:0,height:x>0?x:0,fill:N.config.chart.selection.fill.color,"fill-opacity":N.config.chart.selection.fill.opacity,stroke:N.config.chart.selection.stroke.color,"stroke-width":N.config.chart.selection.stroke.width,"stroke-dasharray":N.config.chart.selection.stroke.dashArray,"stroke-opacity":N.config.chart.selection.stroke.opacity}),F.setAttrs(U.node,Y))}}},{key:"hideSelectionRect",value:function(f){f&&f.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(f){var g=f.context,v=f.zoomtype,b=this.w,x=g,E=this.gridRect.getBoundingClientRect(),T=x.startX-1,$=x.startY,R=!1,N=!1,z=x.clientX-E.left-T,U=x.clientY-E.top-$,Y={};return Math.abs(z+T)>b.globals.gridWidth?z=b.globals.gridWidth-T:x.clientX-E.left<0&&(z=T),T>x.clientX-E.left&&(R=!0,z=Math.abs(z)),$>x.clientY-E.top&&(N=!0,U=Math.abs(U)),Y=v==="x"?{x:R?T-z:T,y:0,width:z,height:b.globals.gridHeight}:v==="y"?{x:0,y:N?$-U:$,width:b.globals.gridWidth,height:U}:{x:R?T-z:T,y:N?$-U:$,width:z,height:U},x.drawSelectionRect(Y),x.selectionDragging("resizing"),Y}},{key:"selectionDragging",value:function(f,g){var v=this,b=this.w,x=this.xyRatios,E=this.selectionRect,T=0;f==="resizing"&&(T=30);var $=function(N){return parseFloat(E.node.getAttribute(N))},R={x:$("x"),y:$("y"),width:$("width"),height:$("height")};b.globals.selection=R,typeof b.config.chart.events.selection=="function"&&b.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var N=v.gridRect.getBoundingClientRect(),z=E.node.getBoundingClientRect(),U={xaxis:{min:b.globals.xAxisScale.niceMin+(z.left-N.left)*x.xRatio,max:b.globals.xAxisScale.niceMin+(z.right-N.left)*x.xRatio},yaxis:{min:b.globals.yAxisScale[0].niceMin+(N.bottom-z.bottom)*x.yRatio[0],max:b.globals.yAxisScale[0].niceMax-(z.top-N.top)*x.yRatio[0]}};b.config.chart.events.selection(v.ctx,U),b.config.chart.brush.enabled&&b.config.chart.events.brushScrolled!==void 0&&b.config.chart.events.brushScrolled(v.ctx,U)},T))}},{key:"selectionDrawn",value:function(f){var g=f.context,v=f.zoomtype,b=this.w,x=g,E=this.xyRatios,T=this.ctx.toolbar;if(x.startX>x.endX){var $=x.startX;x.startX=x.endX,x.endX=$}if(x.startY>x.endY){var R=x.startY;x.startY=x.endY,x.endY=R}var N=void 0,z=void 0;b.globals.isRangeBar?(N=b.globals.yAxisScale[0].niceMin+x.startX*E.invertedYRatio,z=b.globals.yAxisScale[0].niceMin+x.endX*E.invertedYRatio):(N=b.globals.xAxisScale.niceMin+x.startX*E.xRatio,z=b.globals.xAxisScale.niceMin+x.endX*E.xRatio);var U=[],Y=[];if(b.config.yaxis.forEach(function(pe,ge){U.push(b.globals.yAxisScale[ge].niceMax-E.yRatio[ge]*x.startY),Y.push(b.globals.yAxisScale[ge].niceMax-E.yRatio[ge]*x.endY)}),x.dragged&&(x.dragX>10||x.dragY>10)&&N!==z){if(b.globals.zoomEnabled){var ne=_.clone(b.globals.initialConfig.yaxis),le=_.clone(b.globals.initialConfig.xaxis);if(b.globals.zoomed=!0,b.config.xaxis.convertedCatToNumeric&&(N=Math.floor(N),z=Math.floor(z),N<1&&(N=1,z=b.globals.dataPoints),z-N<2&&(z=N+1)),v!=="xy"&&v!=="x"||(le={min:N,max:z}),v!=="xy"&&v!=="y"||ne.forEach(function(pe,ge){ne[ge].min=Y[ge],ne[ge].max=U[ge]}),b.config.chart.zoom.autoScaleYaxis){var he=new qe(x.ctx);ne=he.autoScaleY(x.ctx,ne,{xaxis:le})}if(T){var A=T.getBeforeZoomRange(le,ne);A&&(le=A.xaxis?A.xaxis:le,ne=A.yaxis?A.yaxis:ne)}var P={xaxis:le};b.config.chart.group||(P.yaxis=ne),x.ctx.updateHelpers._updateOptions(P,!1,x.w.config.chart.animations.dynamicAnimation.enabled),typeof b.config.chart.events.zoomed=="function"&&T.zoomCallback(le,ne)}else if(b.globals.selectionEnabled){var W,oe=null;W={min:N,max:z},v!=="xy"&&v!=="y"||(oe=_.clone(b.config.yaxis)).forEach(function(pe,ge){oe[ge].min=Y[ge],oe[ge].max=U[ge]}),b.globals.selection=x.selection,typeof b.config.chart.events.selection=="function"&&b.config.chart.events.selection(x.ctx,{xaxis:W,yaxis:oe})}}}},{key:"panDragging",value:function(f){var g=f.context,v=this.w,b=g;if(v.globals.lastClientPosition.x!==void 0){var x=v.globals.lastClientPosition.x-b.clientX,E=v.globals.lastClientPosition.y-b.clientY;Math.abs(x)>Math.abs(E)&&x>0?this.moveDirection="left":Math.abs(x)>Math.abs(E)&&x<0?this.moveDirection="right":Math.abs(E)>Math.abs(x)&&E>0?this.moveDirection="up":Math.abs(E)>Math.abs(x)&&E<0&&(this.moveDirection="down")}v.globals.lastClientPosition={x:b.clientX,y:b.clientY};var T=v.globals.isRangeBar?v.globals.minY:v.globals.minX,$=v.globals.isRangeBar?v.globals.maxY:v.globals.maxX;v.config.xaxis.convertedCatToNumeric||b.panScrolled(T,$)}},{key:"delayedPanScrolled",value:function(){var f=this.w,g=f.globals.minX,v=f.globals.maxX,b=(f.globals.maxX-f.globals.minX)/2;this.moveDirection==="left"?(g=f.globals.minX+b,v=f.globals.maxX+b):this.moveDirection==="right"&&(g=f.globals.minX-b,v=f.globals.maxX-b),g=Math.floor(g),v=Math.floor(v),this.updateScrolledChart({xaxis:{min:g,max:v}},g,v)}},{key:"panScrolled",value:function(f,g){var v=this.w,b=this.xyRatios,x=_.clone(v.globals.initialConfig.yaxis),E=b.xRatio,T=v.globals.minX,$=v.globals.maxX;v.globals.isRangeBar&&(E=b.invertedYRatio,T=v.globals.minY,$=v.globals.maxY),this.moveDirection==="left"?(f=T+v.globals.gridWidth/15*E,g=$+v.globals.gridWidth/15*E):this.moveDirection==="right"&&(f=T-v.globals.gridWidth/15*E,g=$-v.globals.gridWidth/15*E),v.globals.isRangeBar||(f<v.globals.initialMinX||g>v.globals.initialMaxX)&&(f=T,g=$);var R={min:f,max:g};v.config.chart.zoom.autoScaleYaxis&&(x=new qe(this.ctx).autoScaleY(this.ctx,x,{xaxis:R}));var N={xaxis:{min:f,max:g}};v.config.chart.group||(N.yaxis=x),this.updateScrolledChart(N,f,g)}},{key:"updateScrolledChart",value:function(f,g,v){var b=this.w;this.ctx.updateHelpers._updateOptions(f,!1,!1),typeof b.config.chart.events.scrolled=="function"&&b.config.chart.events.scrolled(this.ctx,{xaxis:{min:g,max:v}})}}]),u}(),Fe=function(){function re(c){o(this,re),this.w=c.w,this.ttCtx=c,this.ctx=c.ctx}return a(re,[{key:"getNearestValues",value:function(c){var u=c.hoverArea,f=c.elGrid,g=c.clientX,v=c.clientY,b=this.w,x=f.getBoundingClientRect(),E=x.width,T=x.height,$=E/(b.globals.dataPoints-1),R=T/b.globals.dataPoints,N=this.hasBars();!b.globals.comboCharts&&!N||b.config.xaxis.convertedCatToNumeric||($=E/b.globals.dataPoints);var z=g-x.left-b.globals.barPadForNumericAxis,U=v-x.top;z<0||U<0||z>E||U>T?(u.classList.remove("hovering-zoom"),u.classList.remove("hovering-pan")):b.globals.zoomEnabled?(u.classList.remove("hovering-pan"),u.classList.add("hovering-zoom")):b.globals.panEnabled&&(u.classList.remove("hovering-zoom"),u.classList.add("hovering-pan"));var Y=Math.round(z/$),ne=Math.floor(U/R);N&&!b.config.xaxis.convertedCatToNumeric&&(Y=Math.ceil(z/$),Y-=1);var le=null,he=null,A=[],P=[];if(b.globals.seriesXvalues.forEach(function(ge){A.push([ge[0]+1e-6].concat(ge))}),b.globals.seriesYvalues.forEach(function(ge){P.push([ge[0]+1e-6].concat(ge))}),A=A.map(function(ge){return ge.filter(function(ke){return _.isNumber(ke)})}),P=P.map(function(ge){return ge.filter(function(ke){return _.isNumber(ke)})}),b.globals.isXNumeric){var W=this.ttCtx.getElGrid().getBoundingClientRect(),oe=z*(W.width/E),pe=U*(W.height/T);le=(he=this.closestInMultiArray(oe,pe,A,P)).index,Y=he.j,le!==null&&(A=b.globals.seriesXvalues[le],Y=(he=this.closestInArray(oe,A)).index)}return b.globals.capturedSeriesIndex=le===null?-1:le,(!Y||Y<1)&&(Y=0),b.globals.isBarHorizontal?b.globals.capturedDataPointIndex=ne:b.globals.capturedDataPointIndex=Y,{capturedSeries:le,j:b.globals.isBarHorizontal?ne:Y,hoverX:z,hoverY:U}}},{key:"closestInMultiArray",value:function(c,u,f,g){var v=this.w,b=0,x=null,E=-1;v.globals.series.length>1?b=this.getFirstActiveXArray(f):x=0;var T=f[b][0],$=Math.abs(c-T);if(f.forEach(function(z){z.forEach(function(U,Y){var ne=Math.abs(c-U);ne<$&&($=ne,E=Y)})}),E!==-1){var R=g[b][E],N=Math.abs(u-R);x=b,g.forEach(function(z,U){var Y=Math.abs(u-z[E]);Y<N&&(N=Y,x=U)})}return{index:x,j:E}}},{key:"getFirstActiveXArray",value:function(c){for(var u=this.w,f=0,g=c.map(function(b,x){return b.length>0?x:-1}),v=0;v<g.length;v++)if(g[v]!==-1&&u.globals.collapsedSeriesIndices.indexOf(v)===-1&&u.globals.ancillaryCollapsedSeriesIndices.indexOf(v)===-1){f=g[v];break}return f}},{key:"closestInArray",value:function(c,u){for(var f=u[0],g=null,v=Math.abs(c-f),b=0;b<u.length;b++){var x=Math.abs(c-u[b]);x<v&&(v=x,g=b)}return{index:g}}},{key:"isXoverlap",value:function(c){var u=[],f=this.w.globals.seriesX.filter(function(v){return v[0]!==void 0});if(f.length>0)for(var g=0;g<f.length-1;g++)f[g][c]!==void 0&&f[g+1][c]!==void 0&&f[g][c]!==f[g+1][c]&&u.push("unEqual");return u.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var c=!0,u=this.w.globals.initialSeries,f=0;f<u.length-1;f++)if(u[f].data.length!==u[f+1].data.length){c=!1;break}return c}},{key:"getBarsHeight",value:function(c){return k(c).reduce(function(u,f){return u+f.getBBox().height},0)}},{key:"getElMarkers",value:function(c){return typeof c=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(c,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var c=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(c=k(c)).sort(function(f,g){var v=Number(f.getAttribute("data:realIndex")),b=Number(g.getAttribute("data:realIndex"));return b<v?1:b>v?-1:0});var u=[];return c.forEach(function(f){u.push(f.querySelector(".apexcharts-marker"))}),u}},{key:"hasMarkers",value:function(c){return this.getElMarkers(c).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(c){var u=this.w,f=u.config.markers.hover.size;return f===void 0&&(f=u.globals.markers.size[c]+u.config.markers.hover.sizeOffset),f}},{key:"toggleAllTooltipSeriesGroups",value:function(c){var u=this.w,f=this.ttCtx;f.allTooltipSeriesGroups.length===0&&(f.allTooltipSeriesGroups=u.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var g=f.allTooltipSeriesGroups,v=0;v<g.length;v++)c==="enable"?(g[v].classList.add("apexcharts-active"),g[v].style.display=u.config.tooltip.items.display):(g[v].classList.remove("apexcharts-active"),g[v].style.display="none")}}]),re}(),Qe=function(){function re(c){o(this,re),this.w=c.w,this.ctx=c.ctx,this.ttCtx=c,this.tooltipUtil=new Fe(c)}return a(re,[{key:"drawSeriesTexts",value:function(c){var u=c.shared,f=u===void 0||u,g=c.ttItems,v=c.i,b=v===void 0?0:v,x=c.j,E=x===void 0?null:x,T=c.y1,$=c.y2,R=c.e,N=this.w;N.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:b,j:E,y1:T,y2:$,w:N}):this.toggleActiveInactiveSeries(f);var z=this.getValuesToPrint({i:b,j:E});this.printLabels({i:b,j:E,values:z,ttItems:g,shared:f,e:R});var U=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=U.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=U.getBoundingClientRect().height}},{key:"printLabels",value:function(c){var u,f=this,g=c.i,v=c.j,b=c.values,x=c.ttItems,E=c.shared,T=c.e,$=this.w,R=[],N=function(W){return $.globals.seriesGoals[W]&&$.globals.seriesGoals[W][v]&&Array.isArray($.globals.seriesGoals[W][v])},z=b.xVal,U=b.zVal,Y=b.xAxisTTVal,ne="",le=$.globals.colors[g];v!==null&&$.config.plotOptions.bar.distributed&&(le=$.globals.colors[v]);for(var he=function(W,oe){var pe=f.getFormatters(g);ne=f.getSeriesName({fn:pe.yLbTitleFormatter,index:g,seriesIndex:g,j:v}),$.config.chart.type==="treemap"&&(ne=pe.yLbTitleFormatter(String($.config.series[g].data[v].x),{series:$.globals.series,seriesIndex:g,dataPointIndex:v,w:$}));var ge=$.config.tooltip.inverseOrder?oe:W;if($.globals.axisCharts){var ke=function(Ze){var st,ft,Wt,nn;return $.globals.isRangeData?pe.yLbFormatter((st=$.globals.seriesRangeStart)===null||st===void 0||(ft=st[Ze])===null||ft===void 0?void 0:ft[v],{series:$.globals.seriesRangeStart,seriesIndex:Ze,dataPointIndex:v,w:$})+" - "+pe.yLbFormatter((Wt=$.globals.seriesRangeEnd)===null||Wt===void 0||(nn=Wt[Ze])===null||nn===void 0?void 0:nn[v],{series:$.globals.seriesRangeEnd,seriesIndex:Ze,dataPointIndex:v,w:$}):pe.yLbFormatter($.globals.series[Ze][v],{series:$.globals.series,seriesIndex:Ze,dataPointIndex:v,w:$})};if(E)pe=f.getFormatters(ge),ne=f.getSeriesName({fn:pe.yLbTitleFormatter,index:ge,seriesIndex:g,j:v}),le=$.globals.colors[ge],u=ke(ge),N(ge)&&(R=$.globals.seriesGoals[ge][v].map(function(Ze){return{attrs:Ze,val:pe.yLbFormatter(Ze.value,{seriesIndex:ge,dataPointIndex:v,w:$})}}));else{var De,Ge=T==null||(De=T.target)===null||De===void 0?void 0:De.getAttribute("fill");Ge&&(le=Ge.indexOf("url")!==-1?document.querySelector(Ge.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):Ge),u=ke(g),N(g)&&Array.isArray($.globals.seriesGoals[g][v])&&(R=$.globals.seriesGoals[g][v].map(function(Ze){return{attrs:Ze,val:pe.yLbFormatter(Ze.value,{seriesIndex:g,dataPointIndex:v,w:$})}}))}}v===null&&(u=pe.yLbFormatter($.globals.series[g],r(r({},$),{},{seriesIndex:g,dataPointIndex:g}))),f.DOMHandling({i:g,t:ge,j:v,ttItems:x,values:{val:u,goalVals:R,xVal:z,xAxisTTVal:Y,zVal:U},seriesName:ne,shared:E,pColor:le})},A=0,P=$.globals.series.length-1;A<$.globals.series.length;A++,P--)he(A,P)}},{key:"getFormatters",value:function(c){var u,f=this.w,g=f.globals.yLabelFormatters[c];return f.globals.ttVal!==void 0?Array.isArray(f.globals.ttVal)?(g=f.globals.ttVal[c]&&f.globals.ttVal[c].formatter,u=f.globals.ttVal[c]&&f.globals.ttVal[c].title&&f.globals.ttVal[c].title.formatter):(g=f.globals.ttVal.formatter,typeof f.globals.ttVal.title.formatter=="function"&&(u=f.globals.ttVal.title.formatter)):u=f.config.tooltip.y.title.formatter,typeof g!="function"&&(g=f.globals.yLabelFormatters[0]?f.globals.yLabelFormatters[0]:function(v){return v}),typeof u!="function"&&(u=function(v){return v}),{yLbFormatter:g,yLbTitleFormatter:u}}},{key:"getSeriesName",value:function(c){var u=c.fn,f=c.index,g=c.seriesIndex,v=c.j,b=this.w;return u(String(b.globals.seriesNames[f]),{series:b.globals.series,seriesIndex:g,dataPointIndex:v,w:b})}},{key:"DOMHandling",value:function(c){c.i;var u=c.t,f=c.j,g=c.ttItems,v=c.values,b=c.seriesName,x=c.shared,E=c.pColor,T=this.w,$=this.ttCtx,R=v.val,N=v.goalVals,z=v.xVal,U=v.xAxisTTVal,Y=v.zVal,ne=null;ne=g[u].children,T.config.tooltip.fillSeriesColor&&(g[u].style.backgroundColor=E,ne[0].style.display="none"),$.showTooltipTitle&&($.tooltipTitle===null&&($.tooltipTitle=T.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),$.tooltipTitle.innerHTML=z),$.isXAxisTooltipEnabled&&($.xaxisTooltipText.innerHTML=U!==""?U:z);var le=g[u].querySelector(".apexcharts-tooltip-text-y-label");le&&(le.innerHTML=b||"");var he=g[u].querySelector(".apexcharts-tooltip-text-y-value");he&&(he.innerHTML=R!==void 0?R:""),ne[0]&&ne[0].classList.contains("apexcharts-tooltip-marker")&&(T.config.tooltip.marker.fillColors&&Array.isArray(T.config.tooltip.marker.fillColors)&&(E=T.config.tooltip.marker.fillColors[u]),ne[0].style.backgroundColor=E),T.config.tooltip.marker.show||(ne[0].style.display="none");var A=g[u].querySelector(".apexcharts-tooltip-text-goals-label"),P=g[u].querySelector(".apexcharts-tooltip-text-goals-value");if(N.length&&T.globals.seriesGoals[u]){var W=function(){var oe="<div >",pe="<div>";N.forEach(function(ge,ke){oe+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(ge.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(ge.attrs.name,"</div>"),pe+="<div>".concat(ge.val,"</div>")}),A.innerHTML=oe+"</div>",P.innerHTML=pe+"</div>"};x?T.globals.seriesGoals[u][f]&&Array.isArray(T.globals.seriesGoals[u][f])?W():(A.innerHTML="",P.innerHTML=""):W()}else A.innerHTML="",P.innerHTML="";Y!==null&&(g[u].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=T.config.tooltip.z.title,g[u].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=Y!==void 0?Y:""),x&&ne[0]&&(R==null||T.globals.ancillaryCollapsedSeriesIndices.indexOf(u)>-1||T.globals.collapsedSeriesIndices.indexOf(u)>-1?ne[0].parentNode.style.display="none":ne[0].parentNode.style.display=T.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(c){var u=this.w;if(c)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var f=u.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");f&&(f.classList.add("apexcharts-active"),f.style.display=u.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(c){var u=c.i,f=c.j,g=this.w,v=this.ctx.series.filteredSeriesX(),b="",x="",E=null,T=null,$={series:g.globals.series,seriesIndex:u,dataPointIndex:f,w:g},R=g.globals.ttZFormatter;f===null?T=g.globals.series[u]:g.globals.isXNumeric&&g.config.chart.type!=="treemap"?(b=v[u][f],v[u].length===0&&(b=v[this.tooltipUtil.getFirstActiveXArray(v)][f])):b=g.globals.labels[f]!==void 0?g.globals.labels[f]:"";var N=b;return g.globals.isXNumeric&&g.config.xaxis.type==="datetime"?b=new J(this.ctx).xLabelFormat(g.globals.ttKeyFormatter,N,N,{i:void 0,dateFormatter:new se(this.ctx).formatDate,w:this.w}):b=g.globals.isBarHorizontal?g.globals.yLabelFormatters[0](N,$):g.globals.xLabelFormatter(N,$),g.config.tooltip.x.formatter!==void 0&&(b=g.globals.ttKeyFormatter(N,$)),g.globals.seriesZ.length>0&&g.globals.seriesZ[u].length>0&&(E=R(g.globals.seriesZ[u][f],g)),x=typeof g.config.xaxis.tooltip.formatter=="function"?g.globals.xaxisTooltipFormatter(N,$):b,{val:Array.isArray(T)?T.join(" "):T,xVal:Array.isArray(b)?b.join(" "):b,xAxisTTVal:Array.isArray(x)?x.join(" "):x,zVal:E}}},{key:"handleCustomTooltip",value:function(c){var u=c.i,f=c.j,g=c.y1,v=c.y2,b=c.w,x=this.ttCtx.getElTooltip(),E=b.config.tooltip.custom;Array.isArray(E)&&E[u]&&(E=E[u]),x.innerHTML=E({ctx:this.ctx,series:b.globals.series,seriesIndex:u,dataPointIndex:f,y1:g,y2:v,w:b})}}]),re}(),ht=function(){function re(c){o(this,re),this.ttCtx=c,this.ctx=c.ctx,this.w=c.w}return a(re,[{key:"moveXCrosshairs",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=this.ttCtx,g=this.w,v=f.getElXCrosshairs(),b=c-f.xcrosshairsWidth/2,x=g.globals.labels.slice().length;if(u!==null&&(b=g.globals.gridWidth/x*u),v===null||g.globals.isBarHorizontal||(v.setAttribute("x",b),v.setAttribute("x1",b),v.setAttribute("x2",b),v.setAttribute("y2",g.globals.gridHeight),v.classList.add("apexcharts-active")),b<0&&(b=0),b>g.globals.gridWidth&&(b=g.globals.gridWidth),f.isXAxisTooltipEnabled){var E=b;g.config.xaxis.crosshairs.width!=="tickWidth"&&g.config.xaxis.crosshairs.width!=="barWidth"||(E=b+f.xcrosshairsWidth/2),this.moveXAxisTooltip(E)}}},{key:"moveYCrosshairs",value:function(c){var u=this.ttCtx;u.ycrosshairs!==null&&F.setAttrs(u.ycrosshairs,{y1:c,y2:c}),u.ycrosshairsHidden!==null&&F.setAttrs(u.ycrosshairsHidden,{y1:c,y2:c})}},{key:"moveXAxisTooltip",value:function(c){var u=this.w,f=this.ttCtx;if(f.xaxisTooltip!==null&&f.xcrosshairsWidth!==0){f.xaxisTooltip.classList.add("apexcharts-active");var g=f.xaxisOffY+u.config.xaxis.tooltip.offsetY+u.globals.translateY+1+u.config.xaxis.offsetY;if(c-=f.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(c)){c+=u.globals.translateX;var v;v=new F(this.ctx).getTextRects(f.xaxisTooltipText.innerHTML),f.xaxisTooltipText.style.minWidth=v.width+"px",f.xaxisTooltip.style.left=c+"px",f.xaxisTooltip.style.top=g+"px"}}}},{key:"moveYAxisTooltip",value:function(c){var u=this.w,f=this.ttCtx;f.yaxisTTEls===null&&(f.yaxisTTEls=u.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var g=parseInt(f.ycrosshairsHidden.getAttribute("y1"),10),v=u.globals.translateY+g,b=f.yaxisTTEls[c].getBoundingClientRect().height,x=u.globals.translateYAxisX[c]-2;u.config.yaxis[c].opposite&&(x-=26),v-=b/2,u.globals.ignoreYAxisIndexes.indexOf(c)===-1?(f.yaxisTTEls[c].classList.add("apexcharts-active"),f.yaxisTTEls[c].style.top=v+"px",f.yaxisTTEls[c].style.left=x+u.config.yaxis[c].tooltip.offsetX+"px"):f.yaxisTTEls[c].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=this.w,v=this.ttCtx,b=v.getElTooltip(),x=v.tooltipRect,E=f!==null?parseFloat(f):1,T=parseFloat(c)+E+5,$=parseFloat(u)+E/2;if(T>g.globals.gridWidth/2&&(T=T-x.ttWidth-E-10),T>g.globals.gridWidth-x.ttWidth-10&&(T=g.globals.gridWidth-x.ttWidth),T<-20&&(T=-20),g.config.tooltip.followCursor){var R=v.getElGrid().getBoundingClientRect();(T=v.e.clientX-R.left)>g.globals.gridWidth/2&&(T-=v.tooltipRect.ttWidth),($=v.e.clientY+g.globals.translateY-R.top)>g.globals.gridHeight/2&&($-=v.tooltipRect.ttHeight)}else g.globals.isBarHorizontal||x.ttHeight/2+$>g.globals.gridHeight&&($=g.globals.gridHeight-x.ttHeight+g.globals.translateY);isNaN(T)||(T+=g.globals.translateX,b.style.left=T+"px",b.style.top=$+"px")}},{key:"moveMarkers",value:function(c,u){var f=this.w,g=this.ttCtx;if(f.globals.markers.size[c]>0)for(var v=f.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(c,"'] .apexcharts-marker")),b=0;b<v.length;b++)parseInt(v[b].getAttribute("rel"),10)===u&&(g.marker.resetPointsSize(),g.marker.enlargeCurrentPoint(u,v[b]));else g.marker.resetPointsSize(),this.moveDynamicPointOnHover(u,c)}},{key:"moveDynamicPointOnHover",value:function(c,u){var f,g,v=this.w,b=this.ttCtx,x=v.globals.pointsArray,E=b.tooltipUtil.getHoverMarkerSize(u),T=v.config.series[u].type;if(!T||T!=="column"&&T!=="candlestick"&&T!=="boxPlot"){f=x[u][c][0],g=x[u][c][1]?x[u][c][1]:0;var $=v.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(u,"'] .apexcharts-series-markers circle"));$&&g<v.globals.gridHeight&&g>0&&($.setAttribute("r",E),$.setAttribute("cx",f),$.setAttribute("cy",g)),this.moveXCrosshairs(f),b.fixedTooltip||this.moveTooltip(f,g,E)}}},{key:"moveDynamicPointsOnHover",value:function(c){var u,f=this.ttCtx,g=f.w,v=0,b=0,x=g.globals.pointsArray;u=new de(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var E=f.tooltipUtil.getHoverMarkerSize(u);x[u]&&(v=x[u][c][0],b=x[u][c][1]);var T=f.tooltipUtil.getAllMarkers();if(T!==null)for(var $=0;$<g.globals.series.length;$++){var R=x[$];if(g.globals.comboCharts&&R===void 0&&T.splice($,0,null),R&&R.length){var N=x[$][c][1],z=void 0;if(T[$].setAttribute("cx",v),g.config.chart.type==="rangeArea"&&!g.globals.comboCharts){var U=c+g.globals.series[$].length;z=x[$][U][1],N-=Math.abs(N-z)/2}N!==null&&!isNaN(N)&&N<g.globals.gridHeight+E&&N+E>0?(T[$]&&T[$].setAttribute("r",E),T[$]&&T[$].setAttribute("cy",N)):T[$]&&T[$].setAttribute("r",0)}}this.moveXCrosshairs(v),f.fixedTooltip||this.moveTooltip(v,b||g.globals.gridHeight,E)}},{key:"moveStickyTooltipOverBars",value:function(c,u){var f=this.w,g=this.ttCtx,v=f.globals.columnSeries?f.globals.columnSeries.length:f.globals.series.length,b=v>=2&&v%2==0?Math.floor(v/2):Math.floor(v/2)+1;f.globals.isBarHorizontal&&(b=new de(this.ctx).getActiveConfigSeriesIndex("desc")+1);var x=f.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(b,"'] path[j='").concat(c,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(b,"'] path[j='").concat(c,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(b,"'] path[j='").concat(c,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(b,"'] path[j='").concat(c,"']"));x||typeof u!="number"||(x=f.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(u,"'] path[j='").concat(c,`'],
        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(u,"'] path[j='").concat(c,`'],
        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(u,"'] path[j='").concat(c,`'],
        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(u,"'] path[j='").concat(c,"']")));var E=x?parseFloat(x.getAttribute("cx")):0,T=x?parseFloat(x.getAttribute("cy")):0,$=x?parseFloat(x.getAttribute("barWidth")):0,R=g.getElGrid().getBoundingClientRect(),N=x&&(x.classList.contains("apexcharts-candlestick-area")||x.classList.contains("apexcharts-boxPlot-area"));f.globals.isXNumeric?(x&&!N&&(E-=v%2!=0?$/2:0),x&&N&&f.globals.comboCharts&&(E-=$/2)):f.globals.isBarHorizontal||(E=g.xAxisTicksPositions[c-1]+g.dataPointsDividedWidth/2,isNaN(E)&&(E=g.xAxisTicksPositions[c]-g.dataPointsDividedWidth/2)),f.globals.isBarHorizontal?T-=g.tooltipRect.ttHeight:f.config.tooltip.followCursor?T=g.e.clientY-R.top-g.tooltipRect.ttHeight/2:T+g.tooltipRect.ttHeight+15>f.globals.gridHeight&&(T=f.globals.gridHeight),f.globals.isBarHorizontal||this.moveXCrosshairs(E),g.fixedTooltip||this.moveTooltip(E,T||f.globals.gridHeight)}}]),re}(),Me=function(){function re(c){o(this,re),this.w=c.w,this.ttCtx=c,this.ctx=c.ctx,this.tooltipPosition=new ht(c)}return a(re,[{key:"drawDynamicPoints",value:function(){var c=this.w,u=new F(this.ctx),f=new _e(this.ctx),g=c.globals.dom.baseEl.querySelectorAll(".apexcharts-series");g=k(g),c.config.chart.stacked&&g.sort(function(R,N){return parseFloat(R.getAttribute("data:realIndex"))-parseFloat(N.getAttribute("data:realIndex"))});for(var v=0;v<g.length;v++){var b=g[v].querySelector(".apexcharts-series-markers-wrap");if(b!==null){var x=void 0,E="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));c.config.chart.type!=="line"&&c.config.chart.type!=="area"||c.globals.comboCharts||c.config.tooltip.intersect||(E+=" no-pointer-events");var T=f.getMarkerConfig({cssClass:E,seriesIndex:Number(b.getAttribute("data:realIndex"))});(x=u.drawMarker(0,0,T)).node.setAttribute("default-marker-size",0);var $=document.createElementNS(c.globals.SVGNS,"g");$.classList.add("apexcharts-series-markers"),$.appendChild(x.node),b.appendChild($)}}}},{key:"enlargeCurrentPoint",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,v=this.w;v.config.chart.type!=="bubble"&&this.newPointSize(c,u);var b=u.getAttribute("cx"),x=u.getAttribute("cy");if(f!==null&&g!==null&&(b=f,x=g),this.tooltipPosition.moveXCrosshairs(b),!this.fixedTooltip){if(v.config.chart.type==="radar"){var E=this.ttCtx.getElGrid().getBoundingClientRect();b=this.ttCtx.e.clientX-E.left}this.tooltipPosition.moveTooltip(b,x,v.config.markers.hover.size)}}},{key:"enlargePoints",value:function(c){for(var u=this.w,f=this,g=this.ttCtx,v=c,b=u.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),x=u.config.markers.hover.size,E=0;E<b.length;E++){var T=b[E].getAttribute("rel"),$=b[E].getAttribute("index");if(x===void 0&&(x=u.globals.markers.size[$]+u.config.markers.hover.sizeOffset),v===parseInt(T,10)){f.newPointSize(v,b[E]);var R=b[E].getAttribute("cx"),N=b[E].getAttribute("cy");f.tooltipPosition.moveXCrosshairs(R),g.fixedTooltip||f.tooltipPosition.moveTooltip(R,N,x)}else f.oldPointSize(b[E])}}},{key:"newPointSize",value:function(c,u){var f=this.w,g=f.config.markers.hover.size,v=c===0?u.parentNode.firstChild:u.parentNode.lastChild;if(v.getAttribute("default-marker-size")!=="0"){var b=parseInt(v.getAttribute("index"),10);g===void 0&&(g=f.globals.markers.size[b]+f.config.markers.hover.sizeOffset),g<0&&(g=0),v.setAttribute("r",g)}}},{key:"oldPointSize",value:function(c){var u=parseFloat(c.getAttribute("default-marker-size"));c.setAttribute("r",u)}},{key:"resetPointsSize",value:function(){for(var c=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),u=0;u<c.length;u++){var f=parseFloat(c[u].getAttribute("default-marker-size"));_.isNumber(f)&&f>=0?c[u].setAttribute("r",f):c[u].setAttribute("r",0)}}}]),re}(),Je=function(){function re(c){o(this,re),this.w=c.w,this.ttCtx=c}return a(re,[{key:"getAttr",value:function(c,u){return parseFloat(c.target.getAttribute(u))}},{key:"handleHeatTreeTooltip",value:function(c){var u=c.e,f=c.opt,g=c.x,v=c.y,b=c.type,x=this.ttCtx,E=this.w;if(u.target.classList.contains("apexcharts-".concat(b,"-rect"))){var T=this.getAttr(u,"i"),$=this.getAttr(u,"j"),R=this.getAttr(u,"cx"),N=this.getAttr(u,"cy"),z=this.getAttr(u,"width"),U=this.getAttr(u,"height");if(x.tooltipLabels.drawSeriesTexts({ttItems:f.ttItems,i:T,j:$,shared:!1,e:u}),E.globals.capturedSeriesIndex=T,E.globals.capturedDataPointIndex=$,g=R+x.tooltipRect.ttWidth/2+z,v=N+x.tooltipRect.ttHeight/2-U/2,x.tooltipPosition.moveXCrosshairs(R+z/2),g>E.globals.gridWidth/2&&(g=R-x.tooltipRect.ttWidth/2+z),x.w.config.tooltip.followCursor){var Y=E.globals.dom.elWrap.getBoundingClientRect();g=E.globals.clientX-Y.left-(g>E.globals.gridWidth/2?x.tooltipRect.ttWidth:0),v=E.globals.clientY-Y.top-(v>E.globals.gridHeight/2?x.tooltipRect.ttHeight:0)}}return{x:g,y:v}}},{key:"handleMarkerTooltip",value:function(c){var u,f,g=c.e,v=c.opt,b=c.x,x=c.y,E=this.w,T=this.ttCtx;if(g.target.classList.contains("apexcharts-marker")){var $=parseInt(v.paths.getAttribute("cx"),10),R=parseInt(v.paths.getAttribute("cy"),10),N=parseFloat(v.paths.getAttribute("val"));if(f=parseInt(v.paths.getAttribute("rel"),10),u=parseInt(v.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,T.intersect){var z=_.findAncestor(v.paths,"apexcharts-series");z&&(u=parseInt(z.getAttribute("data:realIndex"),10))}if(T.tooltipLabels.drawSeriesTexts({ttItems:v.ttItems,i:u,j:f,shared:!T.showOnIntersect&&E.config.tooltip.shared,e:g}),g.type==="mouseup"&&T.markerClick(g,u,f),E.globals.capturedSeriesIndex=u,E.globals.capturedDataPointIndex=f,b=$,x=R+E.globals.translateY-1.4*T.tooltipRect.ttHeight,T.w.config.tooltip.followCursor){var U=T.getElGrid().getBoundingClientRect();x=T.e.clientY+E.globals.translateY-U.top}N<0&&(x=R),T.marker.enlargeCurrentPoint(f,v.paths,b,x)}return{x:b,y:x}}},{key:"handleBarTooltip",value:function(c){var u,f,g=c.e,v=c.opt,b=this.w,x=this.ttCtx,E=x.getElTooltip(),T=0,$=0,R=0,N=this.getBarTooltipXY({e:g,opt:v});u=N.i;var z=N.barHeight,U=N.j;b.globals.capturedSeriesIndex=u,b.globals.capturedDataPointIndex=U,b.globals.isBarHorizontal&&x.tooltipUtil.hasBars()||!b.config.tooltip.shared?($=N.x,R=N.y,f=Array.isArray(b.config.stroke.width)?b.config.stroke.width[u]:b.config.stroke.width,T=$):b.globals.comboCharts||b.config.tooltip.shared||(T/=2),isNaN(R)&&(R=b.globals.svgHeight-x.tooltipRect.ttHeight);var Y=parseInt(v.paths.parentNode.getAttribute("data:realIndex"),10),ne=b.globals.isMultipleYAxis?b.config.yaxis[Y]&&b.config.yaxis[Y].reversed:b.config.yaxis[0].reversed;if($+x.tooltipRect.ttWidth>b.globals.gridWidth&&!ne?$-=x.tooltipRect.ttWidth:$<0&&($=0),x.w.config.tooltip.followCursor){var le=x.getElGrid().getBoundingClientRect();R=x.e.clientY-le.top}x.tooltip===null&&(x.tooltip=b.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),b.config.tooltip.shared||(b.globals.comboBarCount>0?x.tooltipPosition.moveXCrosshairs(T+f/2):x.tooltipPosition.moveXCrosshairs(T)),!x.fixedTooltip&&(!b.config.tooltip.shared||b.globals.isBarHorizontal&&x.tooltipUtil.hasBars())&&(ne&&($-=x.tooltipRect.ttWidth)<0&&($=0),!ne||b.globals.isBarHorizontal&&x.tooltipUtil.hasBars()||(R=R+z-2*(b.globals.series[u][U]<0?z:0)),R=R+b.globals.translateY-x.tooltipRect.ttHeight/2,E.style.left=$+b.globals.translateX+"px",E.style.top=R+"px")}},{key:"getBarTooltipXY",value:function(c){var u=c.e,f=c.opt,g=this.w,v=null,b=this.ttCtx,x=0,E=0,T=0,$=0,R=0,N=u.target.classList;if(N.contains("apexcharts-bar-area")||N.contains("apexcharts-candlestick-area")||N.contains("apexcharts-boxPlot-area")||N.contains("apexcharts-rangebar-area")){var z=u.target,U=z.getBoundingClientRect(),Y=f.elGrid.getBoundingClientRect(),ne=U.height;R=U.height;var le=U.width,he=parseInt(z.getAttribute("cx"),10),A=parseInt(z.getAttribute("cy"),10);$=parseFloat(z.getAttribute("barWidth"));var P=u.type==="touchmove"?u.touches[0].clientX:u.clientX;v=parseInt(z.getAttribute("j"),10),x=parseInt(z.parentNode.getAttribute("rel"),10)-1;var W=z.getAttribute("data-range-y1"),oe=z.getAttribute("data-range-y2");g.globals.comboCharts&&(x=parseInt(z.parentNode.getAttribute("data:realIndex"),10)),b.tooltipLabels.drawSeriesTexts({ttItems:f.ttItems,i:x,j:v,y1:W?parseInt(W,10):null,y2:oe?parseInt(oe,10):null,shared:!b.showOnIntersect&&g.config.tooltip.shared,e:u}),g.config.tooltip.followCursor?g.globals.isBarHorizontal?(E=P-Y.left+15,T=A-b.dataPointsDividedHeight+ne/2-b.tooltipRect.ttHeight/2):(E=g.globals.isXNumeric?he-le/2:he-b.dataPointsDividedWidth+le/2,T=u.clientY-Y.top-b.tooltipRect.ttHeight/2-15):g.globals.isBarHorizontal?((E=he)<b.xyRatios.baseLineInvertedY&&(E=he-b.tooltipRect.ttWidth),T=A-b.dataPointsDividedHeight+ne/2-b.tooltipRect.ttHeight/2):(E=g.globals.isXNumeric?he-le/2:he-b.dataPointsDividedWidth+le/2,T=A)}return{x:E,y:T,barHeight:R,barWidth:$,i:x,j:v}}}]),re}(),ot=function(){function re(c){o(this,re),this.w=c.w,this.ttCtx=c}return a(re,[{key:"drawXaxisTooltip",value:function(){var c=this.w,u=this.ttCtx,f=c.config.xaxis.position==="bottom";u.xaxisOffY=f?c.globals.gridHeight+1:-c.globals.xAxisHeight-c.config.xaxis.axisTicks.height+3;var g=f?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",v=c.globals.dom.elWrap;u.isXAxisTooltipEnabled&&c.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(u.xaxisTooltip=document.createElement("div"),u.xaxisTooltip.setAttribute("class",g+" apexcharts-theme-"+c.config.tooltip.theme),v.appendChild(u.xaxisTooltip),u.xaxisTooltipText=document.createElement("div"),u.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),u.xaxisTooltipText.style.fontFamily=c.config.xaxis.tooltip.style.fontFamily||c.config.chart.fontFamily,u.xaxisTooltipText.style.fontSize=c.config.xaxis.tooltip.style.fontSize,u.xaxisTooltip.appendChild(u.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var c=this.w,u=this.ttCtx,f=function(v){var b=c.config.yaxis[v].opposite||c.config.yaxis[v].crosshairs.opposite;u.yaxisOffX=b?c.globals.gridWidth+1:1;var x="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(v,b?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");c.globals.yAxisSameScaleIndices.map(function(T,$){T.map(function(R,N){N===v&&(x+=c.config.yaxis[N].show?" ":" apexcharts-yaxistooltip-hidden")})});var E=c.globals.dom.elWrap;c.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(v))===null&&(u.yaxisTooltip=document.createElement("div"),u.yaxisTooltip.setAttribute("class",x+" apexcharts-theme-"+c.config.tooltip.theme),E.appendChild(u.yaxisTooltip),v===0&&(u.yaxisTooltipText=[]),u.yaxisTooltipText[v]=document.createElement("div"),u.yaxisTooltipText[v].classList.add("apexcharts-yaxistooltip-text"),u.yaxisTooltip.appendChild(u.yaxisTooltipText[v]))},g=0;g<c.config.yaxis.length;g++)f(g)}},{key:"setXCrosshairWidth",value:function(){var c=this.w,u=this.ttCtx,f=u.getElXCrosshairs();if(u.xcrosshairsWidth=parseInt(c.config.xaxis.crosshairs.width,10),c.globals.comboCharts){var g=c.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(g!==null&&c.config.xaxis.crosshairs.width==="barWidth"){var v=parseFloat(g.getAttribute("barWidth"));u.xcrosshairsWidth=v}else if(c.config.xaxis.crosshairs.width==="tickWidth"){var b=c.globals.labels.length;u.xcrosshairsWidth=c.globals.gridWidth/b}}else if(c.config.xaxis.crosshairs.width==="tickWidth"){var x=c.globals.labels.length;u.xcrosshairsWidth=c.globals.gridWidth/x}else if(c.config.xaxis.crosshairs.width==="barWidth"){var E=c.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(E!==null){var T=parseFloat(E.getAttribute("barWidth"));u.xcrosshairsWidth=T}else u.xcrosshairsWidth=1}c.globals.isBarHorizontal&&(u.xcrosshairsWidth=0),f!==null&&u.xcrosshairsWidth>0&&f.setAttribute("width",u.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var c=this.w,u=this.ttCtx;u.ycrosshairs=c.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),u.ycrosshairsHidden=c.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(c,u,f){var g=this.ttCtx,v=this.w,b=v.globals.yLabelFormatters[c];if(g.yaxisTooltips[c]){var x=g.getElGrid().getBoundingClientRect(),E=(u-x.top)*f.yRatio[c],T=v.globals.maxYArr[c]-v.globals.minYArr[c],$=v.globals.minYArr[c]+(T-E);g.tooltipPosition.moveYCrosshairs(u-x.top),g.yaxisTooltipText[c].innerHTML=b($),g.tooltipPosition.moveYAxisTooltip(c)}}}]),re}(),mt=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w;var u=this.w;this.tConfig=u.config.tooltip,this.tooltipUtil=new Fe(this),this.tooltipLabels=new Qe(this),this.tooltipPosition=new ht(this),this.marker=new Me(this),this.intersect=new Je(this),this.axesTooltip=new ot(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!u.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return a(re,[{key:"getElTooltip",value:function(c){return c||(c=this),c.w.globals.dom.baseEl?c.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(c){var u=this.w;this.xyRatios=c,this.isXAxisTooltipEnabled=u.config.xaxis.tooltip.enabled&&u.globals.axisCharts,this.yaxisTooltips=u.config.yaxis.map(function(b,x){return!!(b.show&&b.tooltip.enabled&&u.globals.axisCharts)}),this.allTooltipSeriesGroups=[],u.globals.axisCharts||(this.showTooltipTitle=!1);var f=document.createElement("div");if(f.classList.add("apexcharts-tooltip"),u.config.tooltip.cssClass&&f.classList.add(u.config.tooltip.cssClass),f.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),u.globals.dom.elWrap.appendChild(f),u.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var g=new Ue(this.ctx);this.xAxisTicksPositions=g.getXAxisTicksPositions()}if(!u.globals.comboCharts&&!this.tConfig.intersect&&u.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),u.config.markers.size!==0&&u.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),u.globals.collapsedSeries.length!==u.globals.series.length){this.dataPointsDividedHeight=u.globals.gridHeight/u.globals.dataPoints,this.dataPointsDividedWidth=u.globals.gridWidth/u.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||u.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,f.appendChild(this.tooltipTitle));var v=u.globals.series.length;(u.globals.xyCharts||u.globals.comboCharts)&&this.tConfig.shared&&(v=this.showOnIntersect?1:u.globals.series.length),this.legendLabels=u.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(v),this.addSVGEvents()}}},{key:"createTTElements",value:function(c){for(var u=this,f=this.w,g=[],v=this.getElTooltip(),b=function(E){var T=document.createElement("div");T.classList.add("apexcharts-tooltip-series-group"),T.style.order=f.config.tooltip.inverseOrder?c-E:E+1,u.tConfig.shared&&u.tConfig.enabledOnSeries&&Array.isArray(u.tConfig.enabledOnSeries)&&u.tConfig.enabledOnSeries.indexOf(E)<0&&T.classList.add("apexcharts-tooltip-series-group-hidden");var $=document.createElement("span");$.classList.add("apexcharts-tooltip-marker"),$.style.backgroundColor=f.globals.colors[E],T.appendChild($);var R=document.createElement("div");R.classList.add("apexcharts-tooltip-text"),R.style.fontFamily=u.tConfig.style.fontFamily||f.config.chart.fontFamily,R.style.fontSize=u.tConfig.style.fontSize,["y","goals","z"].forEach(function(N){var z=document.createElement("div");z.classList.add("apexcharts-tooltip-".concat(N,"-group"));var U=document.createElement("span");U.classList.add("apexcharts-tooltip-text-".concat(N,"-label")),z.appendChild(U);var Y=document.createElement("span");Y.classList.add("apexcharts-tooltip-text-".concat(N,"-value")),z.appendChild(Y),R.appendChild(z)}),T.appendChild(R),v.appendChild(T),g.push(T)},x=0;x<c;x++)b(x);return g}},{key:"addSVGEvents",value:function(){var c=this.w,u=c.config.chart.type,f=this.getElTooltip(),g=!(u!=="bar"&&u!=="candlestick"&&u!=="boxPlot"&&u!=="rangeBar"),v=u==="area"||u==="line"||u==="scatter"||u==="bubble"||u==="radar",b=c.globals.dom.Paper.node,x=this.getElGrid();x&&(this.seriesBound=x.getBoundingClientRect());var E,T=[],$=[],R={hoverArea:b,elGrid:x,tooltipEl:f,tooltipY:T,tooltipX:$,ttItems:this.ttItems};if(c.globals.axisCharts&&(v?E=c.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):g?E=c.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):u!=="heatmap"&&u!=="treemap"||(E=c.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),E&&E.length))for(var N=0;N<E.length;N++)T.push(E[N].getAttribute("cy")),$.push(E[N].getAttribute("cx"));if(c.globals.xyCharts&&!this.showOnIntersect||c.globals.comboCharts&&!this.showOnIntersect||g&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([b],R);else if(g&&!c.globals.comboCharts||v&&this.showOnIntersect)this.addDatapointEventsListeners(R);else if(!c.globals.axisCharts||u==="heatmap"||u==="treemap"){var z=c.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(z,R)}if(this.showOnIntersect){var U=c.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");U.length>0&&this.addPathsEventListeners(U,R),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(R)}}},{key:"drawFixedTooltipRect",value:function(){var c=this.w,u=this.getElTooltip(),f=u.getBoundingClientRect(),g=f.width+10,v=f.height+10,b=this.tConfig.fixed.offsetX,x=this.tConfig.fixed.offsetY,E=this.tConfig.fixed.position.toLowerCase();return E.indexOf("right")>-1&&(b=b+c.globals.svgWidth-g+10),E.indexOf("bottom")>-1&&(x=x+c.globals.svgHeight-v-10),u.style.left=b+"px",u.style.top=x+"px",{x:b,y:x,ttWidth:g,ttHeight:v}}},{key:"addDatapointEventsListeners",value:function(c){var u=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(u,c)}},{key:"addPathsEventListeners",value:function(c,u){for(var f=this,g=function(b){var x={paths:c[b],tooltipEl:u.tooltipEl,tooltipY:u.tooltipY,tooltipX:u.tooltipX,elGrid:u.elGrid,hoverArea:u.hoverArea,ttItems:u.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(E){return c[b].addEventListener(E,f.onSeriesHover.bind(f,x),{capture:!1,passive:!0})})},v=0;v<c.length;v++)g(v)}},{key:"onSeriesHover",value:function(c,u){var f=this,g=Date.now()-this.lastHoverTime;g>=100?this.seriesHover(c,u):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){f.seriesHover(c,u)},100-g))}},{key:"seriesHover",value:function(c,u){var f=this;this.lastHoverTime=Date.now();var g=[],v=this.w;v.config.chart.group&&(g=this.ctx.getGroupedCharts()),v.globals.axisCharts&&(v.globals.minX===-1/0&&v.globals.maxX===1/0||v.globals.dataPoints===0)||(g.length?g.forEach(function(b){var x=f.getElTooltip(b),E={paths:c.paths,tooltipEl:x,tooltipY:c.tooltipY,tooltipX:c.tooltipX,elGrid:c.elGrid,hoverArea:c.hoverArea,ttItems:b.w.globals.tooltip.ttItems};b.w.globals.minX===f.w.globals.minX&&b.w.globals.maxX===f.w.globals.maxX&&b.w.globals.tooltip.seriesHoverByContext({chartCtx:b,ttCtx:b.w.globals.tooltip,opt:E,e:u})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:c,e:u}))}},{key:"seriesHoverByContext",value:function(c){var u=c.chartCtx,f=c.ttCtx,g=c.opt,v=c.e,b=u.w,x=this.getElTooltip();x&&(f.tooltipRect={x:0,y:0,ttWidth:x.getBoundingClientRect().width,ttHeight:x.getBoundingClientRect().height},f.e=v,f.tooltipUtil.hasBars()&&!b.globals.comboCharts&&!f.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new de(u).toggleSeriesOnHover(v,v.target.parentNode),f.fixedTooltip&&f.drawFixedTooltipRect(),b.globals.axisCharts?f.axisChartsTooltips({e:v,opt:g,tooltipRect:f.tooltipRect}):f.nonAxisChartsTooltips({e:v,opt:g,tooltipRect:f.tooltipRect}))}},{key:"axisChartsTooltips",value:function(c){var u,f,g=c.e,v=c.opt,b=this.w,x=v.elGrid.getBoundingClientRect(),E=g.type==="touchmove"?g.touches[0].clientX:g.clientX,T=g.type==="touchmove"?g.touches[0].clientY:g.clientY;if(this.clientY=T,this.clientX=E,b.globals.capturedSeriesIndex=-1,b.globals.capturedDataPointIndex=-1,T<x.top||T>x.top+x.height)this.handleMouseOut(v);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!b.config.tooltip.shared){var $=parseInt(v.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf($)<0)return void this.handleMouseOut(v)}var R=this.getElTooltip(),N=this.getElXCrosshairs(),z=b.globals.xyCharts||b.config.chart.type==="bar"&&!b.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||b.globals.comboCharts&&this.tooltipUtil.hasBars();if(g.type==="mousemove"||g.type==="touchmove"||g.type==="mouseup"){if(b.globals.collapsedSeries.length+b.globals.ancillaryCollapsedSeries.length===b.globals.series.length)return;N!==null&&N.classList.add("apexcharts-active");var U=this.yaxisTooltips.filter(function(le){return le===!0});if(this.ycrosshairs!==null&&U.length&&this.ycrosshairs.classList.add("apexcharts-active"),z&&!this.showOnIntersect)this.handleStickyTooltip(g,E,T,v);else if(b.config.chart.type==="heatmap"||b.config.chart.type==="treemap"){var Y=this.intersect.handleHeatTreeTooltip({e:g,opt:v,x:u,y:f,type:b.config.chart.type});u=Y.x,f=Y.y,R.style.left=u+"px",R.style.top=f+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:g,opt:v}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:g,opt:v,x:u,y:f});if(this.yaxisTooltips.length)for(var ne=0;ne<b.config.yaxis.length;ne++)this.axesTooltip.drawYaxisTooltipText(ne,T,this.xyRatios);v.tooltipEl.classList.add("apexcharts-active")}else g.type!=="mouseout"&&g.type!=="touchend"||this.handleMouseOut(v)}}},{key:"nonAxisChartsTooltips",value:function(c){var u=c.e,f=c.opt,g=c.tooltipRect,v=this.w,b=f.paths.getAttribute("rel"),x=this.getElTooltip(),E=v.globals.dom.elWrap.getBoundingClientRect();if(u.type==="mousemove"||u.type==="touchmove"){x.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:f.ttItems,i:parseInt(b,10)-1,shared:!1});var T=v.globals.clientX-E.left-g.ttWidth/2,$=v.globals.clientY-E.top-g.ttHeight-10;if(x.style.left=T+"px",x.style.top=$+"px",v.config.legend.tooltipHoverFormatter){var R=b-1,N=(0,v.config.legend.tooltipHoverFormatter)(this.legendLabels[R].getAttribute("data:default-text"),{seriesIndex:R,dataPointIndex:R,w:v});this.legendLabels[R].innerHTML=N}}else u.type!=="mouseout"&&u.type!=="touchend"||(x.classList.remove("apexcharts-active"),v.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(z){var U=z.getAttribute("data:default-text");z.innerHTML=decodeURIComponent(U)}))}},{key:"handleStickyTooltip",value:function(c,u,f,g){var v=this.w,b=this.tooltipUtil.getNearestValues({context:this,hoverArea:g.hoverArea,elGrid:g.elGrid,clientX:u,clientY:f}),x=b.j,E=b.capturedSeries;v.globals.collapsedSeriesIndices.includes(E)&&(E=null);var T=g.elGrid.getBoundingClientRect();if(b.hoverX<0||b.hoverX>T.width)this.handleMouseOut(g);else if(E!==null)this.handleStickyCapturedSeries(c,E,g,x);else if(this.tooltipUtil.isXoverlap(x)||v.globals.isBarHorizontal){var $=v.globals.series.findIndex(function(R,N){return!v.globals.collapsedSeriesIndices.includes(N)});this.create(c,this,$,x,g.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(c,u,f,g){var v=this.w;if(!this.tConfig.shared&&v.globals.series[u][g]===null)return void this.handleMouseOut(f);if(v.globals.series[u][g]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(g)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(c,this,u,g,f.ttItems):this.create(c,this,u,g,f.ttItems,!1);else if(this.tooltipUtil.isXoverlap(g)){var b=v.globals.series.findIndex(function(x,E){return!v.globals.collapsedSeriesIndices.includes(E)});this.create(c,this,b,g,f.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var c=this.w,u=new F(this.ctx),f=c.globals.dom.Paper.select(".apexcharts-bar-area"),g=0;g<f.length;g++)u.pathMouseLeave(f[g])}},{key:"handleMouseOut",value:function(c){var u=this.w,f=this.getElXCrosshairs();if(c.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),u.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),f!==null&&f.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=u.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var g=0;g<this.yaxisTTEls.length;g++)this.yaxisTTEls[g].classList.remove("apexcharts-active")}u.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(v){var b=v.getAttribute("data:default-text");v.innerHTML=decodeURIComponent(b)})}},{key:"markerClick",value:function(c,u,f){var g=this.w;typeof g.config.chart.events.markerClick=="function"&&g.config.chart.events.markerClick(c,this.ctx,{seriesIndex:u,dataPointIndex:f,w:g}),this.ctx.events.fireEvent("markerClick",[c,this.ctx,{seriesIndex:u,dataPointIndex:f,w:g}])}},{key:"create",value:function(c,u,f,g,v){var b,x,E,T,$,R,N,z,U,Y,ne,le,he,A,P,W,oe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,pe=this.w,ge=u;c.type==="mouseup"&&this.markerClick(c,f,g),oe===null&&(oe=this.tConfig.shared);var ke=this.tooltipUtil.hasMarkers(f),De=this.tooltipUtil.getElBars();if(pe.config.legend.tooltipHoverFormatter){var Ge=pe.config.legend.tooltipHoverFormatter,Ze=Array.from(this.legendLabels);Ze.forEach(function(Sc){var Sa=Sc.getAttribute("data:default-text");Sc.innerHTML=decodeURIComponent(Sa)});for(var st=0;st<Ze.length;st++){var ft=Ze[st],Wt=parseInt(ft.getAttribute("i"),10),nn=decodeURIComponent(ft.getAttribute("data:default-text")),on=Ge(nn,{seriesIndex:oe?Wt:f,dataPointIndex:g,w:pe});if(oe)ft.innerHTML=pe.globals.collapsedSeriesIndices.indexOf(Wt)<0?on:nn;else if(ft.innerHTML=Wt===f?on:nn,f===Wt)break}}var bn=r(r({ttItems:v,i:f,j:g},((b=pe.globals.seriesRange)===null||b===void 0||(x=b[f])===null||x===void 0||(E=x[g])===null||E===void 0||(T=E.y[0])===null||T===void 0?void 0:T.y1)!==void 0&&{y1:($=pe.globals.seriesRange)===null||$===void 0||(R=$[f])===null||R===void 0||(N=R[g])===null||N===void 0||(z=N.y[0])===null||z===void 0?void 0:z.y1}),((U=pe.globals.seriesRange)===null||U===void 0||(Y=U[f])===null||Y===void 0||(ne=Y[g])===null||ne===void 0||(le=ne.y[0])===null||le===void 0?void 0:le.y2)!==void 0&&{y2:(he=pe.globals.seriesRange)===null||he===void 0||(A=he[f])===null||A===void 0||(P=A[g])===null||P===void 0||(W=P.y[0])===null||W===void 0?void 0:W.y2});if(oe){if(ge.tooltipLabels.drawSeriesTexts(r(r({},bn),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),ke)pe.globals.markers.largestSize>0?ge.marker.enlargePoints(g):ge.tooltipPosition.moveDynamicPointsOnHover(g);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(De),this.barSeriesHeight>0)){var ur=new F(this.ctx),mr=pe.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(g,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(g,f);for(var Fr=0;Fr<mr.length;Fr++)ur.pathMouseEnter(mr[Fr])}}else ge.tooltipLabels.drawSeriesTexts(r({shared:!1},bn)),this.tooltipUtil.hasBars()&&ge.tooltipPosition.moveStickyTooltipOverBars(g,f),ke&&ge.tooltipPosition.moveMarkers(f,g)}}]),re}(),dt=function(){function re(c){o(this,re),this.w=c.w,this.barCtx=c,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return a(re,[{key:"handleBarDataLabels",value:function(c){var u=c.x,f=c.y,g=c.y1,v=c.y2,b=c.i,x=c.j,E=c.realIndex,T=c.groupIndex,$=c.series,R=c.barHeight,N=c.barWidth,z=c.barYPosition,U=c.visibleSeries,Y=c.renderedPath,ne=this.w,le=new F(this.barCtx.ctx),he=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[E]:this.barCtx.strokeWidth,A=u+parseFloat(N*U),P=f+parseFloat(R*U);ne.globals.isXNumeric&&!ne.globals.isBarHorizontal&&(A=u+parseFloat(N*(U+1)),P=f+parseFloat(R*(U+1))-he);var W,oe=null,pe=u,ge=f,ke={},De=ne.config.dataLabels,Ge=this.barCtx.barOptions.dataLabels,Ze=this.barCtx.barOptions.dataLabels.total;z!==void 0&&this.barCtx.isRangeBar&&(P=z,ge=z);var st=De.offsetX,ft=De.offsetY,Wt={width:0,height:0};if(ne.config.dataLabels.enabled){var nn=this.barCtx.series[b][x];Wt=le.getTextRects(ne.globals.yLabelFormatters[0](nn),parseFloat(De.style.fontSize))}var on={x:u,y:f,i:b,j:x,realIndex:E,groupIndex:T||-1,renderedPath:Y,bcx:A,bcy:P,barHeight:R,barWidth:N,textRects:Wt,strokeWidth:he,dataLabelsX:pe,dataLabelsY:ge,dataLabelsConfig:De,barDataLabelsConfig:Ge,barTotalDataLabelsConfig:Ze,offX:st,offY:ft};return ke=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(on):this.calculateColumnsDataLabelsPosition(on),Y.attr({cy:ke.bcy,cx:ke.bcx,j:x,val:$[b][x],barHeight:R,barWidth:N}),W=this.drawCalculatedDataLabels({x:ke.dataLabelsX,y:ke.dataLabelsY,val:this.barCtx.isRangeBar?[g,v]:$[b][x],i:E,j:x,barWidth:N,barHeight:R,textRects:Wt,dataLabelsConfig:De}),ne.config.chart.stacked&&Ze.enabled&&(oe=this.drawTotalDataLabels({x:ke.totalDataLabelsX,y:ke.totalDataLabelsY,realIndex:E,textAnchor:ke.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:E,j:x}),dataLabelsConfig:De,barTotalDataLabelsConfig:Ze})),{dataLabels:W,totalDataLabels:oe}}},{key:"getStackedTotalDataLabel",value:function(c){var u=c.realIndex,f=c.j,g=this.w,v=this.barCtx.stackedSeriesTotals[f];return this.totalFormatter&&(v=this.totalFormatter(v,r(r({},g),{},{seriesIndex:u,dataPointIndex:f,w:g}))),v}},{key:"calculateColumnsDataLabelsPosition",value:function(c){var u,f,g,v=this.w,b=c.i,x=c.j,E=c.realIndex,T=c.groupIndex,$=c.y,R=c.bcx,N=c.barWidth,z=c.barHeight,U=c.textRects,Y=c.dataLabelsY,ne=c.dataLabelsConfig,le=c.barDataLabelsConfig,he=c.barTotalDataLabelsConfig,A=c.strokeWidth,P=c.offX,W=c.offY;z=Math.abs(z);var oe=v.config.plotOptions.bar.dataLabels.orientation==="vertical";R=R-A/2+(T!==-1?T*N:0);var pe=v.globals.gridWidth/v.globals.dataPoints;u=v.globals.isXNumeric?R-N/2+P:R-pe+N/2+P,oe&&(u=u+U.height/2-A/2-2);var ge=this.barCtx.series[b][x]<0,ke=$;switch(this.barCtx.isReversed&&(ke=$-z+(ge?2*z:0),$-=z),le.position){case"center":Y=oe?ge?ke+z/2+W:ke+z/2-W:ge?ke-z/2+U.height/2+W:ke+z/2+U.height/2-W;break;case"bottom":Y=oe?ge?ke+z+W:ke+z-W:ge?ke-z+U.height+A+W:ke+z-U.height/2+A-W;break;case"top":Y=oe?ge?ke+W:ke-W:ge?ke-U.height/2-W:ke+U.height+W}if(this.barCtx.lastActiveBarSerieIndex===E&&he.enabled){var De=new F(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:E,j:x}),ne.fontSize);f=ge?ke-De.height/2-W-he.offsetY+18:ke+De.height+W+he.offsetY-18,g=u+he.offsetX}return v.config.chart.stacked||(Y<0?Y=0+A:Y+U.height/3>v.globals.gridHeight&&(Y=v.globals.gridHeight-A)),{bcx:R,bcy:$,dataLabelsX:u,dataLabelsY:Y,totalDataLabelsX:g,totalDataLabelsY:f,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(c){var u=this.w,f=c.x,g=c.i,v=c.j,b=c.realIndex,x=c.groupIndex,E=c.bcy,T=c.barHeight,$=c.barWidth,R=c.textRects,N=c.dataLabelsX,z=c.strokeWidth,U=c.dataLabelsConfig,Y=c.barDataLabelsConfig,ne=c.barTotalDataLabelsConfig,le=c.offX,he=c.offY,A=u.globals.gridHeight/u.globals.dataPoints;$=Math.abs($);var P,W,oe=(E+=x!==-1?x*T:0)-(this.barCtx.isRangeBar?0:A)+T/2+R.height/2+he-3,pe="start",ge=this.barCtx.series[g][v]<0,ke=f;switch(this.barCtx.isReversed&&(ke=f+$-(ge?2*$:0),f=u.globals.gridWidth-$),Y.position){case"center":N=ge?ke+$/2-le:Math.max(R.width/2,ke-$/2)+le;break;case"bottom":N=ge?ke+$-z-Math.round(R.width/2)-le:ke-$+z+Math.round(R.width/2)+le;break;case"top":N=ge?ke-z+Math.round(R.width/2)-le:ke-z-Math.round(R.width/2)+le}if(this.barCtx.lastActiveBarSerieIndex===b&&ne.enabled){var De=new F(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:b,j:v}),U.fontSize);ge?(P=ke-z+Math.round(De.width/2)-le-ne.offsetX-15,pe="end"):P=ke-z-Math.round(De.width/2)+le+ne.offsetX+15,W=oe+ne.offsetY}return u.config.chart.stacked||(N<0?N=N+R.width+z:N+R.width/2>u.globals.gridWidth&&(N=u.globals.gridWidth-R.width-z)),{bcx:f,bcy:E,dataLabelsX:N,dataLabelsY:oe,totalDataLabelsX:P,totalDataLabelsY:W,totalDataLabelsAnchor:pe}}},{key:"drawCalculatedDataLabels",value:function(c){var u=c.x,f=c.y,g=c.val,v=c.i,b=c.j,x=c.textRects,E=c.barHeight,T=c.barWidth,$=c.dataLabelsConfig,R=this.w,N="rotate(0)";R.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(N="rotate(-90, ".concat(u,", ").concat(f,")"));var z=new Q(this.barCtx.ctx),U=new F(this.barCtx.ctx),Y=$.formatter,ne=null,le=R.globals.collapsedSeriesIndices.indexOf(v)>-1;if($.enabled&&!le){ne=U.group({class:"apexcharts-data-labels",transform:N});var he="";g!==void 0&&(he=Y(g,r(r({},R),{},{seriesIndex:v,dataPointIndex:b,w:R}))),!g&&R.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(he="");var A=R.globals.series[v][b]<0,P=R.config.plotOptions.bar.dataLabels.position;R.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(P==="top"&&($.textAnchor=A?"end":"start"),P==="center"&&($.textAnchor="middle"),P==="bottom"&&($.textAnchor=A?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&T<U.getTextRects(he,parseFloat($.style.fontSize)).width&&(he=""),R.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?x.width/1.6>Math.abs(T)&&(he=""):x.height/1.6>Math.abs(E)&&(he=""));var W=r({},$);this.barCtx.isHorizontal&&g<0&&($.textAnchor==="start"?W.textAnchor="end":$.textAnchor==="end"&&(W.textAnchor="start")),z.plotDataLabelsText({x:u,y:f,text:he,i:v,j:b,parent:ne,dataLabelsConfig:W,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return ne}},{key:"drawTotalDataLabels",value:function(c){var u,f=c.x,g=c.y,v=c.val,b=c.realIndex,x=c.textAnchor,E=c.barTotalDataLabelsConfig,T=new F(this.barCtx.ctx);return E.enabled&&f!==void 0&&g!==void 0&&this.barCtx.lastActiveBarSerieIndex===b&&(u=T.drawText({x:f,y:g,foreColor:E.style.color,text:v,textAnchor:x,fontFamily:E.style.fontFamily,fontSize:E.style.fontSize,fontWeight:E.style.fontWeight})),u}}]),re}(),pt=function(){function re(c){o(this,re),this.w=c.w,this.barCtx=c}return a(re,[{key:"initVariables",value:function(c){var u=this.w;this.barCtx.series=c,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var f=0;f<c.length;f++)if(c[f].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=c[f].length),u.globals.isXNumeric)for(var g=0;g<c[f].length;g++)u.globals.seriesX[f][g]>u.globals.minX&&u.globals.seriesX[f][g]<u.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=u.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],u.globals.comboCharts||this.checkZeroSeries({series:c})}},{key:"initialPositions",value:function(){var c,u,f,g,v,b,x,E,T=this.w,$=T.globals.dataPoints;this.barCtx.isRangeBar&&($=T.globals.labels.length);var R=this.barCtx.seriesLen;if(T.config.plotOptions.bar.rangeBarGroupRows&&(R=1),this.barCtx.isHorizontal)v=(f=T.globals.gridHeight/$)/R,T.globals.isXNumeric&&(v=(f=T.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),v=v*parseInt(this.barCtx.barOptions.barHeight,10)/100,E=this.barCtx.baseLineInvertedY+T.globals.padHorizontal+(this.barCtx.isReversed?T.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),u=(f-v*this.barCtx.seriesLen)/2;else{if(g=T.globals.gridWidth/this.barCtx.visibleItems,T.config.xaxis.convertedCatToNumeric&&(g=T.globals.gridWidth/T.globals.dataPoints),b=g/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,T.globals.isXNumeric){var N=this.barCtx.xRatio;T.config.xaxis.convertedCatToNumeric&&(N=this.barCtx.initialXRatio),T.globals.minXDiff&&T.globals.minXDiff!==.5&&T.globals.minXDiff/N>0&&(g=T.globals.minXDiff/N),(b=g/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(b=1)}x=T.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?T.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),c=T.globals.padHorizontal+(g-b*this.barCtx.seriesLen)/2}return{x:c,y:u,yDivision:f,xDivision:g,barHeight:v,barWidth:b,zeroH:x,zeroW:E}}},{key:"initializeStackedPrevVars",value:function(c){var u=c.w;u.globals.hasSeriesGroups?u.globals.seriesGroups.forEach(function(f){c[f]||(c[f]={}),c[f].prevY=[],c[f].prevX=[],c[f].prevYF=[],c[f].prevXF=[],c[f].prevYVal=[],c[f].prevXVal=[]}):(c.prevY=[],c.prevX=[],c.prevYF=[],c.prevXF=[],c.prevYVal=[],c.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(c){var u=c.w;u.globals.hasSeriesGroups?u.globals.seriesGroups.forEach(function(f){c[f]||(c[f]={}),c[f].xArrj=[],c[f].xArrjF=[],c[f].xArrjVal=[],c[f].yArrj=[],c[f].yArrjF=[],c[f].yArrjVal=[]}):(c.xArrj=[],c.xArrjF=[],c.xArrjVal=[],c.yArrj=[],c.yArrjF=[],c.yArrjVal=[])}},{key:"getPathFillColor",value:function(c,u,f,g){var v,b,x,E,T=this.w,$=new Se(this.barCtx.ctx),R=null,N=this.barCtx.barOptions.distributed?f:u;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(z){c[u][f]>=z.from&&c[u][f]<=z.to&&(R=z.color)}),T.config.series[u].data[f]&&T.config.series[u].data[f].fillColor&&(R=T.config.series[u].data[f].fillColor),$.fillPath({seriesNumber:this.barCtx.barOptions.distributed?N:g,dataPointIndex:f,color:R,value:c[u][f],fillConfig:(v=T.config.series[u].data[f])===null||v===void 0?void 0:v.fill,fillType:(b=T.config.series[u].data[f])!==null&&b!==void 0&&(x=b.fill)!==null&&x!==void 0&&x.type?(E=T.config.series[u].data[f])===null||E===void 0?void 0:E.fill.type:T.config.fill.type})}},{key:"getStrokeWidth",value:function(c,u,f){var g=0,v=this.w;return this.barCtx.series[c][u]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,v.config.stroke.show&&(this.barCtx.isNullValue||(g=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[f]:this.barCtx.strokeWidth)),g}},{key:"shouldApplyRadius",value:function(c){var u=this.w,f=!1;return u.config.plotOptions.bar.borderRadius>0&&(u.config.chart.stacked&&u.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===c&&(f=!0):f=!0),f}},{key:"barBackground",value:function(c){var u=c.j,f=c.i,g=c.x1,v=c.x2,b=c.y1,x=c.y2,E=c.elSeries,T=this.w,$=new F(this.barCtx.ctx),R=new de(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&R===f){u>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(u%=this.barCtx.barOptions.colors.backgroundBarColors.length);var N=this.barCtx.barOptions.colors.backgroundBarColors[u],z=$.drawRect(g!==void 0?g:0,b!==void 0?b:0,v!==void 0?v:T.globals.gridWidth,x!==void 0?x:T.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,N,this.barCtx.barOptions.colors.backgroundBarOpacity);E.add(z),z.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(c){var u,f=c.barWidth,g=c.barXPosition,v=c.y1,b=c.y2,x=c.strokeWidth,E=c.seriesGroup,T=c.realIndex,$=c.i,R=c.j,N=c.w,z=new F(this.barCtx.ctx);(x=Array.isArray(x)?x[T]:x)||(x=0);var U=f,Y=g;(u=N.config.series[T].data[R])!==null&&u!==void 0&&u.columnWidthOffset&&(Y=g-N.config.series[T].data[R].columnWidthOffset/2,U=f+N.config.series[T].data[R].columnWidthOffset);var ne=Y,le=Y+U;v+=.001,b+=.001;var he=z.move(ne,v),A=z.move(ne,v),P=z.line(le-x,v);if(N.globals.previousPaths.length>0&&(A=this.barCtx.getPreviousPath(T,R,!1)),he=he+z.line(ne,b)+z.line(le-x,b)+z.line(le-x,v)+(N.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),A=A+z.line(ne,v)+P+P+P+P+P+z.line(ne,v)+(N.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(T)&&(he=z.roundPathCorners(he,N.config.plotOptions.bar.borderRadius)),N.config.chart.stacked){var W=this.barCtx;N.globals.hasSeriesGroups&&E&&(W=this.barCtx[E]),W.yArrj.push(b),W.yArrjF.push(Math.abs(v-b)),W.yArrjVal.push(this.barCtx.series[$][R])}return{pathTo:he,pathFrom:A}}},{key:"getBarpaths",value:function(c){var u,f=c.barYPosition,g=c.barHeight,v=c.x1,b=c.x2,x=c.strokeWidth,E=c.seriesGroup,T=c.realIndex,$=c.i,R=c.j,N=c.w,z=new F(this.barCtx.ctx);(x=Array.isArray(x)?x[T]:x)||(x=0);var U=f,Y=g;(u=N.config.series[T].data[R])!==null&&u!==void 0&&u.barHeightOffset&&(U=f-N.config.series[T].data[R].barHeightOffset/2,Y=g+N.config.series[T].data[R].barHeightOffset);var ne=U,le=U+Y;v+=.001,b+=.001;var he=z.move(v,ne),A=z.move(v,ne);N.globals.previousPaths.length>0&&(A=this.barCtx.getPreviousPath(T,R,!1));var P=z.line(v,le-x);if(he=he+z.line(b,ne)+z.line(b,le-x)+P+(N.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),A=A+z.line(v,ne)+P+P+P+P+P+z.line(v,ne)+(N.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(T)&&(he=z.roundPathCorners(he,N.config.plotOptions.bar.borderRadius)),N.config.chart.stacked){var W=this.barCtx;N.globals.hasSeriesGroups&&E&&(W=this.barCtx[E]),W.xArrj.push(b),W.xArrjF.push(Math.abs(v-b)),W.xArrjVal.push(this.barCtx.series[$][R])}return{pathTo:he,pathFrom:A}}},{key:"checkZeroSeries",value:function(c){for(var u=c.series,f=this.w,g=0;g<u.length;g++){for(var v=0,b=0;b<u[f.globals.maxValsInArrayIndex].length;b++)v+=u[g][b];v===0&&this.barCtx.zeroSerieses.push(g)}}},{key:"getXForValue",value:function(c,u){var f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?u:null;return c!=null&&(f=u+c/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?c/this.barCtx.invertedYRatio:0)),f}},{key:"getYForValue",value:function(c,u){var f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?u:null;return c!=null&&(f=u-c/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?c/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),f}},{key:"getGoalValues",value:function(c,u,f,g,v){var b=this,x=this.w,E=[];return x.globals.seriesGoals[g]&&x.globals.seriesGoals[g][v]&&Array.isArray(x.globals.seriesGoals[g][v])&&x.globals.seriesGoals[g][v].forEach(function(T){var $;E.push((l($={},c,c==="x"?b.getXForValue(T.value,u,!1):b.getYForValue(T.value,f,!1)),l($,"attrs",T),$))}),E}},{key:"drawGoalLine",value:function(c){var u=c.barXPosition,f=c.barYPosition,g=c.goalX,v=c.goalY,b=c.barWidth,x=c.barHeight,E=new F(this.barCtx.ctx),T=E.group({className:"apexcharts-bar-goals-groups"}),$=null;return this.barCtx.isHorizontal?Array.isArray(g)&&g.forEach(function(R){var N=R.attrs.strokeHeight!==void 0?R.attrs.strokeHeight:x/2,z=f+N+x/2;$=E.drawLine(R.x,z-2*N,R.x,z,R.attrs.strokeColor?R.attrs.strokeColor:void 0,R.attrs.strokeDashArray,R.attrs.strokeWidth?R.attrs.strokeWidth:2,R.attrs.strokeLineCap),T.add($)}):Array.isArray(v)&&v.forEach(function(R){var N=R.attrs.strokeWidth!==void 0?R.attrs.strokeWidth:b/2,z=u+N+b/2;$=E.drawLine(z-2*N,R.y,z,R.y,R.attrs.strokeColor?R.attrs.strokeColor:void 0,R.attrs.strokeDashArray,R.attrs.strokeHeight?R.attrs.strokeHeight:2,R.attrs.strokeLineCap),T.add($)}),T}}]),re}(),bt=function(){function re(c,u){o(this,re),this.ctx=c,this.w=c.w;var f=this.w;this.barOptions=f.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=f.config.stroke.width,this.isNullValue=!1,this.isRangeBar=f.globals.seriesRange.length&&this.isHorizontal,this.xyRatios=u,this.xyRatios!==null&&(this.xRatio=u.xRatio,this.initialXRatio=u.initialXRatio,this.yRatio=u.yRatio,this.invertedXRatio=u.invertedXRatio,this.invertedYRatio=u.invertedYRatio,this.baseLineY=u.baseLineY,this.baseLineInvertedY=u.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0;var g=new de(this.ctx);this.lastActiveBarSerieIndex=g.getActiveConfigSeriesIndex("desc",["bar","column"]);var v=g.getBarSeriesIndices(),b=new H(this.ctx);this.stackedSeriesTotals=b.getStackedSeriesTotals(this.w.config.series.map(function(x,E){return v.indexOf(E)===-1?E:-1}).filter(function(x){return x!==-1})),this.barHelpers=new pt(this)}return a(re,[{key:"draw",value:function(c,u){var f=this.w,g=new F(this.ctx),v=new H(this.ctx,f);c=v.getLogSeries(c),this.series=c,this.yRatio=v.getLogYRatios(this.yRatio),this.barHelpers.initVariables(c);var b=g.group({class:"apexcharts-bar-series apexcharts-plot-series"});f.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var x=0,E=0;x<c.length;x++,E++){var T,$,R,N,z=void 0,U=void 0,Y=[],ne=[],le=f.globals.comboCharts?u[x]:x,he=g.group({class:"apexcharts-series",rel:x+1,seriesName:_.escapeString(f.globals.seriesNames[le]),"data:realIndex":le});this.ctx.series.addCollapsedClassToSeries(he,le),c[x].length>0&&(this.visibleI=this.visibleI+1);var A=0,P=0;this.yRatio.length>1&&(this.yaxisIndex=le),this.isReversed=f.config.yaxis[this.yaxisIndex]&&f.config.yaxis[this.yaxisIndex].reversed;var W=this.barHelpers.initialPositions();U=W.y,A=W.barHeight,$=W.yDivision,N=W.zeroW,z=W.x,P=W.barWidth,T=W.xDivision,R=W.zeroH,this.horizontal||ne.push(z+P/2);for(var oe=g.group({class:"apexcharts-datalabels","data:realIndex":le}),pe=g.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),ge=0;ge<f.globals.dataPoints;ge++){var ke=this.barHelpers.getStrokeWidth(x,ge,le),De=null,Ge={indexes:{i:x,j:ge,realIndex:le,bc:E},x:z,y:U,strokeWidth:ke,elSeries:he};this.isHorizontal?(De=this.drawBarPaths(r(r({},Ge),{},{barHeight:A,zeroW:N,yDivision:$})),P=this.series[x][ge]/this.invertedYRatio):(De=this.drawColumnPaths(r(r({},Ge),{},{xDivision:T,barWidth:P,zeroH:R})),A=this.series[x][ge]/this.yRatio[this.yaxisIndex]);var Ze=this.barHelpers.drawGoalLine({barXPosition:De.barXPosition,barYPosition:De.barYPosition,goalX:De.goalX,goalY:De.goalY,barHeight:A,barWidth:P});Ze&&pe.add(Ze),U=De.y,z=De.x,ge>0&&ne.push(z+P/2),Y.push(U);var st=this.barHelpers.getPathFillColor(c,x,ge,le);this.renderSeries({realIndex:le,pathFill:st,j:ge,i:x,pathFrom:De.pathFrom,pathTo:De.pathTo,strokeWidth:ke,elSeries:he,x:z,y:U,series:c,barHeight:De.barHeight?De.barHeight:A,barWidth:De.barWidth?De.barWidth:P,elDataLabelsWrap:oe,elGoalsMarkers:pe,visibleSeries:this.visibleI,type:"bar"})}f.globals.seriesXvalues[le]=ne,f.globals.seriesYvalues[le]=Y,b.add(he)}return b}},{key:"renderSeries",value:function(c){var u=c.realIndex,f=c.pathFill,g=c.lineFill,v=c.j,b=c.i,x=c.groupIndex,E=c.pathFrom,T=c.pathTo,$=c.strokeWidth,R=c.elSeries,N=c.x,z=c.y,U=c.y1,Y=c.y2,ne=c.series,le=c.barHeight,he=c.barWidth,A=c.barYPosition,P=c.elDataLabelsWrap,W=c.elGoalsMarkers,oe=c.visibleSeries,pe=c.type,ge=this.w,ke=new F(this.ctx);g||(g=this.barOptions.distributed?ge.globals.stroke.colors[v]:ge.globals.stroke.colors[u]),ge.config.series[b].data[v]&&ge.config.series[b].data[v].strokeColor&&(g=ge.config.series[b].data[v].strokeColor),this.isNullValue&&(f="none");var De=v/ge.config.chart.animations.animateGradually.delay*(ge.config.chart.animations.speed/ge.globals.dataPoints)/2.4,Ge=ke.renderPaths({i:b,j:v,realIndex:u,pathFrom:E,pathTo:T,stroke:g,strokeWidth:$,strokeLineCap:ge.config.stroke.lineCap,fill:f,animationDelay:De,initialSpeed:ge.config.chart.animations.speed,dataChangeSpeed:ge.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(pe,"-area")});Ge.attr("clip-path","url(#gridRectMask".concat(ge.globals.cuid,")"));var Ze=ge.config.forecastDataPoints;Ze.count>0&&v>=ge.globals.dataPoints-Ze.count&&(Ge.node.setAttribute("stroke-dasharray",Ze.dashArray),Ge.node.setAttribute("stroke-width",Ze.strokeWidth),Ge.node.setAttribute("fill-opacity",Ze.fillOpacity)),U!==void 0&&Y!==void 0&&(Ge.attr("data-range-y1",U),Ge.attr("data-range-y2",Y)),new M(this.ctx).setSelectionFilter(Ge,u,v),R.add(Ge);var st=new dt(this).handleBarDataLabels({x:N,y:z,y1:U,y2:Y,i:b,j:v,series:ne,realIndex:u,groupIndex:x,barHeight:le,barWidth:he,barYPosition:A,renderedPath:Ge,visibleSeries:oe});return st.dataLabels!==null&&P.add(st.dataLabels),st.totalDataLabels&&P.add(st.totalDataLabels),R.add(P),W&&R.add(W),R}},{key:"drawBarPaths",value:function(c){var u,f=c.indexes,g=c.barHeight,v=c.strokeWidth,b=c.zeroW,x=c.x,E=c.y,T=c.yDivision,$=c.elSeries,R=this.w,N=f.i,z=f.j;if(R.globals.isXNumeric)u=(E=(R.globals.seriesX[N][z]-R.globals.minX)/this.invertedXRatio-g)+g*this.visibleI;else if(R.config.plotOptions.bar.hideZeroBarsWhenGrouped){var U=0,Y=0;R.globals.seriesPercent.forEach(function(le,he){le[z]&&U++,he<N&&le[z]===0&&Y++}),U>0&&(g=this.seriesLen*g/U),u=E+g*this.visibleI,u-=g*Y}else u=E+g*this.visibleI;x=this.barHelpers.getXForValue(this.series[N][z],b);var ne=this.barHelpers.getBarpaths({barYPosition:u,barHeight:g,x1:b,x2:x,strokeWidth:v,series:this.series,realIndex:f.realIndex,i:N,j:z,w:R});return R.globals.isXNumeric||(E+=T),this.barHelpers.barBackground({j:z,i:N,y1:u-g*this.visibleI,y2:g*this.seriesLen,elSeries:$}),{pathTo:ne.pathTo,pathFrom:ne.pathFrom,x,y:E,goalX:this.barHelpers.getGoalValues("x",b,null,N,z),barYPosition:u,barHeight:g}}},{key:"drawColumnPaths",value:function(c){var u,f=c.indexes,g=c.x,v=c.y,b=c.xDivision,x=c.barWidth,E=c.zeroH,T=c.strokeWidth,$=c.elSeries,R=this.w,N=f.realIndex,z=f.i,U=f.j,Y=f.bc;if(R.globals.isXNumeric){var ne=N;R.globals.seriesX[N].length||(ne=R.globals.maxValsInArrayIndex),R.globals.seriesX[ne][U]&&(g=(R.globals.seriesX[ne][U]-R.globals.minX)/this.xRatio-x*this.seriesLen/2),u=g+x*this.visibleI}else if(R.config.plotOptions.bar.hideZeroBarsWhenGrouped){var le=0,he=0;R.globals.seriesPercent.forEach(function(P,W){P[U]&&le++,W<z&&P[U]===0&&he++}),le>0&&(x=this.seriesLen*x/le),u=g+x*this.visibleI,u-=x*he}else u=g+x*this.visibleI;v=this.barHelpers.getYForValue(this.series[z][U],E);var A=this.barHelpers.getColumnPaths({barXPosition:u,barWidth:x,y1:E,y2:v,strokeWidth:T,series:this.series,realIndex:f.realIndex,i:z,j:U,w:R});return R.globals.isXNumeric||(g+=b),this.barHelpers.barBackground({bc:Y,j:U,i:z,x1:u-T/2-x*this.visibleI,x2:x*this.seriesLen+T/2,elSeries:$}),{pathTo:A.pathTo,pathFrom:A.pathFrom,x:g,y:v,goalY:this.barHelpers.getGoalValues("y",null,E,z,U),barXPosition:u,barWidth:x}}},{key:"getPreviousPath",value:function(c,u){for(var f,g=this.w,v=0;v<g.globals.previousPaths.length;v++){var b=g.globals.previousPaths[v];b.paths&&b.paths.length>0&&parseInt(b.realIndex,10)===parseInt(c,10)&&g.globals.previousPaths[v].paths[u]!==void 0&&(f=g.globals.previousPaths[v].paths[u].d)}return f}}]),re}(),Mt=function(re){d(u,bt);var c=w(u);function u(){return o(this,u),c.apply(this,arguments)}return a(u,[{key:"draw",value:function(f,g){var v=this,b=this.w;this.graphics=new F(this.ctx),this.bar=new bt(this.ctx,this.xyRatios);var x=new H(this.ctx,b);f=x.getLogSeries(f),this.yRatio=x.getLogYRatios(this.yRatio),this.barHelpers.initVariables(f),b.config.chart.stackType==="100%"&&(f=b.globals.seriesPercent.slice()),this.series=f,this.barHelpers.initializeStackedPrevVars(this);for(var E=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),T=0,$=0,R=function(U,Y){var ne=void 0,le=void 0,he=void 0,A=void 0,P=-1;v.groupCtx=v,b.globals.seriesGroups.forEach(function(mr,Fr){mr.indexOf(b.config.series[U].name)>-1&&(P=Fr)}),P!==-1&&(v.groupCtx=v[b.globals.seriesGroups[P]]);var W=[],oe=[],pe=b.globals.comboCharts?g[U]:U;v.yRatio.length>1&&(v.yaxisIndex=pe),v.isReversed=b.config.yaxis[v.yaxisIndex]&&b.config.yaxis[v.yaxisIndex].reversed;var ge=v.graphics.group({class:"apexcharts-series",seriesName:_.escapeString(b.globals.seriesNames[pe]),rel:U+1,"data:realIndex":pe});v.ctx.series.addCollapsedClassToSeries(ge,pe);var ke=v.graphics.group({class:"apexcharts-datalabels","data:realIndex":pe}),De=v.graphics.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),Ge=0,Ze=0,st=v.initialPositions(T,$,ne,le,he,A);$=st.y,Ge=st.barHeight,le=st.yDivision,A=st.zeroW,T=st.x,Ze=st.barWidth,ne=st.xDivision,he=st.zeroH,v.barHelpers.initializeStackedXYVars(v),v.groupCtx.prevY.length===1&&v.groupCtx.prevY[0].every(function(mr){return isNaN(mr)})&&(v.groupCtx.prevY[0]=v.groupCtx.prevY[0].map(function(mr){return he}),v.groupCtx.prevYF[0]=v.groupCtx.prevYF[0].map(function(mr){return 0}));for(var ft=0;ft<b.globals.dataPoints;ft++){var Wt=v.barHelpers.getStrokeWidth(U,ft,pe),nn={indexes:{i:U,j:ft,realIndex:pe,bc:Y},strokeWidth:Wt,x:T,y:$,elSeries:ge,groupIndex:P,seriesGroup:b.globals.seriesGroups[P]},on=null;v.isHorizontal?(on=v.drawStackedBarPaths(r(r({},nn),{},{zeroW:A,barHeight:Ge,yDivision:le})),Ze=v.series[U][ft]/v.invertedYRatio):(on=v.drawStackedColumnPaths(r(r({},nn),{},{xDivision:ne,barWidth:Ze,zeroH:he})),Ge=v.series[U][ft]/v.yRatio[v.yaxisIndex]);var bn=v.barHelpers.drawGoalLine({barXPosition:on.barXPosition,barYPosition:on.barYPosition,goalX:on.goalX,goalY:on.goalY,barHeight:Ge,barWidth:Ze});bn&&De.add(bn),$=on.y,T=on.x,W.push(T),oe.push($);var ur=v.barHelpers.getPathFillColor(f,U,ft,pe);ge=v.renderSeries({realIndex:pe,pathFill:ur,j:ft,i:U,groupIndex:P,pathFrom:on.pathFrom,pathTo:on.pathTo,strokeWidth:Wt,elSeries:ge,x:T,y:$,series:f,barHeight:Ge,barWidth:Ze,elDataLabelsWrap:ke,elGoalsMarkers:De,type:"bar",visibleSeries:0})}b.globals.seriesXvalues[pe]=W,b.globals.seriesYvalues[pe]=oe,v.groupCtx.prevY.push(v.groupCtx.yArrj),v.groupCtx.prevYF.push(v.groupCtx.yArrjF),v.groupCtx.prevYVal.push(v.groupCtx.yArrjVal),v.groupCtx.prevX.push(v.groupCtx.xArrj),v.groupCtx.prevXF.push(v.groupCtx.xArrjF),v.groupCtx.prevXVal.push(v.groupCtx.xArrjVal),E.add(ge)},N=0,z=0;N<f.length;N++,z++)R(N,z);return E}},{key:"initialPositions",value:function(f,g,v,b,x,E){var T,$,R,N,z=this.w;return this.isHorizontal?(R=(R=b=z.globals.gridHeight/z.globals.dataPoints)*parseInt(z.config.plotOptions.bar.barHeight,10)/100,E=this.baseLineInvertedY+z.globals.padHorizontal+(this.isReversed?z.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),g=(b-R)/2):(N=v=z.globals.gridWidth/z.globals.dataPoints,N=z.globals.isXNumeric&&z.globals.dataPoints>1?(v=z.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:N*parseInt(z.config.plotOptions.bar.columnWidth,10)/100,x=z.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?z.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),f=z.globals.padHorizontal+(v-N)/2),{x:f,y:g,yDivision:b,xDivision:v,barHeight:(T=z.globals.seriesGroups)!==null&&T!==void 0&&T.length?R/z.globals.seriesGroups.length:R,barWidth:($=z.globals.seriesGroups)!==null&&$!==void 0&&$.length?N/z.globals.seriesGroups.length:N,zeroH:x,zeroW:E}}},{key:"drawStackedBarPaths",value:function(f){for(var g,v=f.indexes,b=f.barHeight,x=f.strokeWidth,E=f.zeroW,T=f.x,$=f.y,R=f.groupIndex,N=f.seriesGroup,z=f.yDivision,U=f.elSeries,Y=this.w,ne=$+(R!==-1?R*b:0),le=v.i,he=v.j,A=0,P=0;P<this.groupCtx.prevXF.length;P++)A+=this.groupCtx.prevXF[P][he];var W=le;if(N&&(W=N.indexOf(Y.config.series[le].name)),W>0){var oe=E;this.groupCtx.prevXVal[W-1][he]<0?oe=this.series[le][he]>=0?this.groupCtx.prevX[W-1][he]+A-2*(this.isReversed?A:0):this.groupCtx.prevX[W-1][he]:this.groupCtx.prevXVal[W-1][he]>=0&&(oe=this.series[le][he]>=0?this.groupCtx.prevX[W-1][he]:this.groupCtx.prevX[W-1][he]-A+2*(this.isReversed?A:0)),g=oe}else g=E;T=this.series[le][he]===null?g:g+this.series[le][he]/this.invertedYRatio-2*(this.isReversed?this.series[le][he]/this.invertedYRatio:0);var pe=this.barHelpers.getBarpaths({barYPosition:ne,barHeight:b,x1:g,x2:T,strokeWidth:x,series:this.series,realIndex:v.realIndex,seriesGroup:N,i:le,j:he,w:Y});return this.barHelpers.barBackground({j:he,i:le,y1:ne,y2:b,elSeries:U}),$+=z,{pathTo:pe.pathTo,pathFrom:pe.pathFrom,goalX:this.barHelpers.getGoalValues("x",E,null,le,he),barYPosition:ne,x:T,y:$}}},{key:"drawStackedColumnPaths",value:function(f){var g=f.indexes,v=f.x,b=f.y,x=f.xDivision,E=f.barWidth,T=f.zeroH,$=f.groupIndex,R=f.seriesGroup,N=f.elSeries,z=this.w,U=g.i,Y=g.j,ne=g.bc;if(z.globals.isXNumeric){var le=z.globals.seriesX[U][Y];le||(le=0),v=(le-z.globals.minX)/this.xRatio-E/2,z.globals.seriesGroups.length&&(v=(le-z.globals.minX)/this.xRatio-E/2*z.globals.seriesGroups.length)}for(var he,A=v+($!==-1?$*E:0),P=0,W=0;W<this.groupCtx.prevYF.length;W++)P+=isNaN(this.groupCtx.prevYF[W][Y])?0:this.groupCtx.prevYF[W][Y];var oe=U;if(R&&(oe=R.indexOf(z.config.series[U].name)),oe>0&&!z.globals.isXNumeric||oe>0&&z.globals.isXNumeric&&z.globals.seriesX[U-1][Y]===z.globals.seriesX[U][Y]){var pe,ge,ke,De=Math.min(this.yRatio.length+1,U+1);if(this.groupCtx.prevY[oe-1]!==void 0&&this.groupCtx.prevY[oe-1].length)for(var Ge=1;Ge<De;Ge++){var Ze;if(!isNaN((Ze=this.groupCtx.prevY[oe-Ge])===null||Ze===void 0?void 0:Ze[Y])){ke=this.groupCtx.prevY[oe-Ge][Y];break}}for(var st=1;st<De;st++){var ft,Wt;if(((ft=this.groupCtx.prevYVal[oe-st])===null||ft===void 0?void 0:ft[Y])<0){ge=this.series[U][Y]>=0?ke-P+2*(this.isReversed?P:0):ke;break}if(((Wt=this.groupCtx.prevYVal[oe-st])===null||Wt===void 0?void 0:Wt[Y])>=0){ge=this.series[U][Y]>=0?ke:ke+P-2*(this.isReversed?P:0);break}}ge===void 0&&(ge=z.globals.gridHeight),he=(pe=this.groupCtx.prevYF[0])!==null&&pe!==void 0&&pe.every(function(on){return on===0})&&this.groupCtx.prevYF.slice(1,oe).every(function(on){return on.every(function(bn){return isNaN(bn)})})?T:ge}else he=T;b=this.series[U][Y]?he-this.series[U][Y]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[U][Y]/this.yRatio[this.yaxisIndex]:0):he;var nn=this.barHelpers.getColumnPaths({barXPosition:A,barWidth:E,y1:he,y2:b,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:R,realIndex:g.realIndex,i:U,j:Y,w:z});return this.barHelpers.barBackground({bc:ne,j:Y,i:U,x1:A,x2:E,elSeries:N}),v+=x,{pathTo:nn.pathTo,pathFrom:nn.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,T,U,Y),barXPosition:A,x:z.globals.isXNumeric?v-x:v,y:b}}}]),u}(),Bt=function(re){d(u,bt);var c=w(u);function u(){return o(this,u),c.apply(this,arguments)}return a(u,[{key:"draw",value:function(f,g,v){var b=this,x=this.w,E=new F(this.ctx),T=x.globals.comboCharts?g:x.config.chart.type,$=new Se(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=x.config.plotOptions.bar.horizontal;var R=new H(this.ctx,x);f=R.getLogSeries(f),this.series=f,this.yRatio=R.getLogYRatios(this.yRatio),this.barHelpers.initVariables(f);for(var N=E.group({class:"apexcharts-".concat(T,"-series apexcharts-plot-series")}),z=function(Y){b.isBoxPlot=x.config.chart.type==="boxPlot"||x.config.series[Y].type==="boxPlot";var ne,le,he,A,P=void 0,W=void 0,oe=[],pe=[],ge=x.globals.comboCharts?v[Y]:Y,ke=E.group({class:"apexcharts-series",seriesName:_.escapeString(x.globals.seriesNames[ge]),rel:Y+1,"data:realIndex":ge});b.ctx.series.addCollapsedClassToSeries(ke,ge),f[Y].length>0&&(b.visibleI=b.visibleI+1);var De,Ge;b.yRatio.length>1&&(b.yaxisIndex=ge);var Ze=b.barHelpers.initialPositions();W=Ze.y,De=Ze.barHeight,le=Ze.yDivision,A=Ze.zeroW,P=Ze.x,Ge=Ze.barWidth,ne=Ze.xDivision,he=Ze.zeroH,pe.push(P+Ge/2);for(var st=E.group({class:"apexcharts-datalabels","data:realIndex":ge}),ft=function(nn){var on=b.barHelpers.getStrokeWidth(Y,nn,ge),bn=null,ur={indexes:{i:Y,j:nn,realIndex:ge},x:P,y:W,strokeWidth:on,elSeries:ke};bn=b.isHorizontal?b.drawHorizontalBoxPaths(r(r({},ur),{},{yDivision:le,barHeight:De,zeroW:A})):b.drawVerticalBoxPaths(r(r({},ur),{},{xDivision:ne,barWidth:Ge,zeroH:he})),W=bn.y,P=bn.x,nn>0&&pe.push(P+Ge/2),oe.push(W),bn.pathTo.forEach(function(mr,Fr){var Sc=!b.isBoxPlot&&b.candlestickOptions.wick.useFillColor?bn.color[Fr]:x.globals.stroke.colors[Y],Sa=$.fillPath({seriesNumber:ge,dataPointIndex:nn,color:bn.color[Fr],value:f[Y][nn]});b.renderSeries({realIndex:ge,pathFill:Sa,lineFill:Sc,j:nn,i:Y,pathFrom:bn.pathFrom,pathTo:mr,strokeWidth:on,elSeries:ke,x:P,y:W,series:f,barHeight:De,barWidth:Ge,elDataLabelsWrap:st,visibleSeries:b.visibleI,type:x.config.chart.type})})},Wt=0;Wt<x.globals.dataPoints;Wt++)ft(Wt);x.globals.seriesXvalues[ge]=pe,x.globals.seriesYvalues[ge]=oe,N.add(ke)},U=0;U<f.length;U++)z(U);return N}},{key:"drawVerticalBoxPaths",value:function(f){var g=f.indexes,v=f.x;f.y;var b=f.xDivision,x=f.barWidth,E=f.zeroH,T=f.strokeWidth,$=this.w,R=new F(this.ctx),N=g.i,z=g.j,U=!0,Y=$.config.plotOptions.candlestick.colors.upward,ne=$.config.plotOptions.candlestick.colors.downward,le="";this.isBoxPlot&&(le=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var he=this.yRatio[this.yaxisIndex],A=g.realIndex,P=this.getOHLCValue(A,z),W=E,oe=E;P.o>P.c&&(U=!1);var pe=Math.min(P.o,P.c),ge=Math.max(P.o,P.c),ke=P.m;$.globals.isXNumeric&&(v=($.globals.seriesX[A][z]-$.globals.minX)/this.xRatio-x/2);var De=v+x*this.visibleI;this.series[N][z]===void 0||this.series[N][z]===null?(pe=E,ge=E):(pe=E-pe/he,ge=E-ge/he,W=E-P.h/he,oe=E-P.l/he,ke=E-P.m/he);var Ge=R.move(De,E),Ze=R.move(De+x/2,pe);return $.globals.previousPaths.length>0&&(Ze=this.getPreviousPath(A,z,!0)),Ge=this.isBoxPlot?[R.move(De,pe)+R.line(De+x/2,pe)+R.line(De+x/2,W)+R.line(De+x/4,W)+R.line(De+x-x/4,W)+R.line(De+x/2,W)+R.line(De+x/2,pe)+R.line(De+x,pe)+R.line(De+x,ke)+R.line(De,ke)+R.line(De,pe+T/2),R.move(De,ke)+R.line(De+x,ke)+R.line(De+x,ge)+R.line(De+x/2,ge)+R.line(De+x/2,oe)+R.line(De+x-x/4,oe)+R.line(De+x/4,oe)+R.line(De+x/2,oe)+R.line(De+x/2,ge)+R.line(De,ge)+R.line(De,ke)+"z"]:[R.move(De,ge)+R.line(De+x/2,ge)+R.line(De+x/2,W)+R.line(De+x/2,ge)+R.line(De+x,ge)+R.line(De+x,pe)+R.line(De+x/2,pe)+R.line(De+x/2,oe)+R.line(De+x/2,pe)+R.line(De,pe)+R.line(De,ge-T/2)],Ze+=R.move(De,pe),$.globals.isXNumeric||(v+=b),{pathTo:Ge,pathFrom:Ze,x:v,y:ge,barXPosition:De,color:this.isBoxPlot?le:U?[Y]:[ne]}}},{key:"drawHorizontalBoxPaths",value:function(f){var g=f.indexes;f.x;var v=f.y,b=f.yDivision,x=f.barHeight,E=f.zeroW,T=f.strokeWidth,$=this.w,R=new F(this.ctx),N=g.i,z=g.j,U=this.boxOptions.colors.lower;this.isBoxPlot&&(U=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var Y=this.invertedYRatio,ne=g.realIndex,le=this.getOHLCValue(ne,z),he=E,A=E,P=Math.min(le.o,le.c),W=Math.max(le.o,le.c),oe=le.m;$.globals.isXNumeric&&(v=($.globals.seriesX[ne][z]-$.globals.minX)/this.invertedXRatio-x/2);var pe=v+x*this.visibleI;this.series[N][z]===void 0||this.series[N][z]===null?(P=E,W=E):(P=E+P/Y,W=E+W/Y,he=E+le.h/Y,A=E+le.l/Y,oe=E+le.m/Y);var ge=R.move(E,pe),ke=R.move(P,pe+x/2);return $.globals.previousPaths.length>0&&(ke=this.getPreviousPath(ne,z,!0)),ge=[R.move(P,pe)+R.line(P,pe+x/2)+R.line(he,pe+x/2)+R.line(he,pe+x/2-x/4)+R.line(he,pe+x/2+x/4)+R.line(he,pe+x/2)+R.line(P,pe+x/2)+R.line(P,pe+x)+R.line(oe,pe+x)+R.line(oe,pe)+R.line(P+T/2,pe),R.move(oe,pe)+R.line(oe,pe+x)+R.line(W,pe+x)+R.line(W,pe+x/2)+R.line(A,pe+x/2)+R.line(A,pe+x-x/4)+R.line(A,pe+x/4)+R.line(A,pe+x/2)+R.line(W,pe+x/2)+R.line(W,pe)+R.line(oe,pe)+"z"],ke+=R.move(P,pe),$.globals.isXNumeric||(v+=b),{pathTo:ge,pathFrom:ke,x:W,y:v,barYPosition:pe,color:U}}},{key:"getOHLCValue",value:function(f,g){var v=this.w;return{o:this.isBoxPlot?v.globals.seriesCandleH[f][g]:v.globals.seriesCandleO[f][g],h:this.isBoxPlot?v.globals.seriesCandleO[f][g]:v.globals.seriesCandleH[f][g],m:v.globals.seriesCandleM[f][g],l:this.isBoxPlot?v.globals.seriesCandleC[f][g]:v.globals.seriesCandleL[f][g],c:this.isBoxPlot?v.globals.seriesCandleL[f][g]:v.globals.seriesCandleC[f][g]}}}]),u}(),vn=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"checkColorRange",value:function(){var c=this.w,u=!1,f=c.config.plotOptions[c.config.chart.type];return f.colorScale.ranges.length>0&&f.colorScale.ranges.map(function(g,v){g.from<=0&&(u=!0)}),u}},{key:"getShadeColor",value:function(c,u,f,g){var v=this.w,b=1,x=v.config.plotOptions[c].shadeIntensity,E=this.determineColor(c,u,f);v.globals.hasNegs||g?b=v.config.plotOptions[c].reverseNegativeShade?E.percent<0?E.percent/100*(1.25*x):(1-E.percent/100)*(1.25*x):E.percent<=0?1-(1+E.percent/100)*x:(1-E.percent/100)*x:(b=1-E.percent/100,c==="treemap"&&(b=(1-E.percent/100)*(1.25*x)));var T=E.color,$=new _;return v.config.plotOptions[c].enableShades&&(T=this.w.config.theme.mode==="dark"?_.hexToRgba($.shadeColor(-1*b,E.color),v.config.fill.opacity):_.hexToRgba($.shadeColor(b,E.color),v.config.fill.opacity)),{color:T,colorProps:E}}},{key:"determineColor",value:function(c,u,f){var g=this.w,v=g.globals.series[u][f],b=g.config.plotOptions[c],x=b.colorScale.inverse?f:u;b.distributed&&g.config.chart.type==="treemap"&&(x=f);var E=g.globals.colors[x],T=null,$=Math.min.apply(Math,k(g.globals.series[u])),R=Math.max.apply(Math,k(g.globals.series[u]));b.distributed||c!=="heatmap"||($=g.globals.minY,R=g.globals.maxY),b.colorScale.min!==void 0&&($=b.colorScale.min<g.globals.minY?b.colorScale.min:g.globals.minY,R=b.colorScale.max>g.globals.maxY?b.colorScale.max:g.globals.maxY);var N=Math.abs(R)+Math.abs($),z=100*v/(N===0?N-1e-6:N);return b.colorScale.ranges.length>0&&b.colorScale.ranges.map(function(U,Y){if(v>=U.from&&v<=U.to){E=U.color,T=U.foreColor?U.foreColor:null,$=U.from,R=U.to;var ne=Math.abs(R)+Math.abs($);z=100*v/(ne===0?ne-1e-6:ne)}}),{color:E,foreColor:T,percent:z}}},{key:"calculateDataLabels",value:function(c){var u=c.text,f=c.x,g=c.y,v=c.i,b=c.j,x=c.colorProps,E=c.fontSize,T=this.w.config.dataLabels,$=new F(this.ctx),R=new Q(this.ctx),N=null;if(T.enabled){N=$.group({class:"apexcharts-data-labels"});var z=T.offsetX,U=T.offsetY,Y=f+z,ne=g+parseFloat(T.style.fontSize)/3+U;R.plotDataLabelsText({x:Y,y:ne,text:u,i:v,j:b,color:x.foreColor,parent:N,fontSize:E,dataLabelsConfig:T})}return N}},{key:"addListeners",value:function(c){var u=new F(this.ctx);c.node.addEventListener("mouseenter",u.pathMouseEnter.bind(this,c)),c.node.addEventListener("mouseleave",u.pathMouseLeave.bind(this,c)),c.node.addEventListener("mousedown",u.pathMouseDown.bind(this,c))}}]),re}(),ui=function(){function re(c,u){o(this,re),this.ctx=c,this.w=c.w,this.xRatio=u.xRatio,this.yRatio=u.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new vn(c),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return a(re,[{key:"draw",value:function(c){var u=this.w,f=new F(this.ctx),g=f.group({class:"apexcharts-heatmap"});g.attr("clip-path","url(#gridRectMask".concat(u.globals.cuid,")"));var v=u.globals.gridWidth/u.globals.dataPoints,b=u.globals.gridHeight/u.globals.series.length,x=0,E=!1;this.negRange=this.helpers.checkColorRange();var T=c.slice();u.config.yaxis[0].reversed&&(E=!0,T.reverse());for(var $=E?0:T.length-1;E?$<T.length:$>=0;E?$++:$--){var R=f.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:_.escapeString(u.globals.seriesNames[$]),rel:$+1,"data:realIndex":$});if(this.ctx.series.addCollapsedClassToSeries(R,$),u.config.chart.dropShadow.enabled){var N=u.config.chart.dropShadow;new M(this.ctx).dropShadow(R,N,$)}for(var z=0,U=u.config.plotOptions.heatmap.shadeIntensity,Y=0;Y<T[$].length;Y++){var ne=this.helpers.getShadeColor(u.config.chart.type,$,Y,this.negRange),le=ne.color,he=ne.colorProps;u.config.fill.type==="image"&&(le=new Se(this.ctx).fillPath({seriesNumber:$,dataPointIndex:Y,opacity:u.globals.hasNegs?he.percent<0?1-(1+he.percent/100):U+he.percent/100:he.percent/100,patternID:_.randomId(),width:u.config.fill.image.width?u.config.fill.image.width:v,height:u.config.fill.image.height?u.config.fill.image.height:b}));var A=this.rectRadius,P=f.drawRect(z,x,v,b,A);if(P.attr({cx:z,cy:x}),P.node.classList.add("apexcharts-heatmap-rect"),R.add(P),P.attr({fill:le,i:$,index:$,j:Y,val:T[$][Y],"stroke-width":this.strokeWidth,stroke:u.config.plotOptions.heatmap.useFillColorAsStroke?le:u.globals.stroke.colors[0],color:le}),this.helpers.addListeners(P),u.config.chart.animations.enabled&&!u.globals.dataChanged){var W=1;u.globals.resized||(W=u.config.chart.animations.speed),this.animateHeatMap(P,z,x,v,b,W)}if(u.globals.dataChanged){var oe=1;if(this.dynamicAnim.enabled&&u.globals.shouldAnimate){oe=this.dynamicAnim.speed;var pe=u.globals.previousPaths[$]&&u.globals.previousPaths[$][Y]&&u.globals.previousPaths[$][Y].color;pe||(pe="rgba(255, 255, 255, 0)"),this.animateHeatColor(P,_.isColorHex(pe)?pe:_.rgb2hex(pe),_.isColorHex(le)?le:_.rgb2hex(le),oe)}}var ge=(0,u.config.dataLabels.formatter)(u.globals.series[$][Y],{value:u.globals.series[$][Y],seriesIndex:$,dataPointIndex:Y,w:u}),ke=this.helpers.calculateDataLabels({text:ge,x:z+v/2,y:x+b/2,i:$,j:Y,colorProps:he,series:T});ke!==null&&R.add(ke),z+=v}x+=b,g.add(R)}var De=u.globals.yAxisScale[0].result.slice();u.config.yaxis[0].reversed?De.unshift(""):De.push(""),u.globals.yAxisScale[0].result=De;var Ge=u.globals.gridHeight/u.globals.series.length;return u.config.yaxis[0].labels.offsetY=-Ge/2,g}},{key:"animateHeatMap",value:function(c,u,f,g,v,b){var x=new L(this.ctx);x.animateRect(c,{x:u+g/2,y:f+v/2,width:0,height:0},{x:u,y:f,width:g,height:v},b,function(){x.animationCompleted(c)})}},{key:"animateHeatColor",value:function(c,u,f,g){c.attr({fill:u}).animate(g).attr({fill:f})}}]),re}(),bo=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"drawYAxisTexts",value:function(c,u,f,g){var v=this.w,b=v.config.yaxis[0],x=v.globals.yLabelFormatters[0];return new F(this.ctx).drawText({x:c+b.labels.offsetX,y:u+b.labels.offsetY,text:x(g,f),textAnchor:"middle",fontSize:b.labels.style.fontSize,fontFamily:b.labels.style.fontFamily,foreColor:Array.isArray(b.labels.style.colors)?b.labels.style.colors[f]:b.labels.style.colors})}}]),re}(),_i=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w;var u=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=u.globals.stroke.colors!==void 0?u.globals.stroke.colors:u.globals.colors,this.defaultSize=Math.min(u.globals.gridWidth,u.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=u.globals.gridWidth/2,u.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(u.config.plotOptions.pie.endAngle-u.config.plotOptions.pie.startAngle),this.initialAngle=u.config.plotOptions.pie.startAngle%this.fullAngle,u.globals.radialSize=this.defaultSize/2.05-u.config.stroke.width-(u.config.chart.sparkline.enabled?0:u.config.chart.dropShadow.blur),this.donutSize=u.globals.radialSize*parseInt(u.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return a(re,[{key:"draw",value:function(c){var u=this,f=this.w,g=new F(this.ctx);if(this.ret=g.group({class:"apexcharts-pie"}),f.globals.noData)return this.ret;for(var v=0,b=0;b<c.length;b++)v+=_.negToZero(c[b]);var x=[],E=g.group();v===0&&(v=1e-5),c.forEach(function(pe){u.maxY=Math.max(u.maxY,pe)}),f.config.yaxis[0].max&&(this.maxY=f.config.yaxis[0].max),f.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var T=0;T<c.length;T++){var $=this.fullAngle*_.negToZero(c[T])/v;x.push($),this.chartType==="polarArea"?(x[T]=this.fullAngle/c.length,this.sliceSizes.push(f.globals.radialSize*c[T]/this.maxY)):this.sliceSizes.push(f.globals.radialSize)}if(f.globals.dataChanged){for(var R,N=0,z=0;z<f.globals.previousPaths.length;z++)N+=_.negToZero(f.globals.previousPaths[z]);for(var U=0;U<f.globals.previousPaths.length;U++)R=this.fullAngle*_.negToZero(f.globals.previousPaths[U])/N,this.prevSectorAngleArr.push(R)}this.donutSize<0&&(this.donutSize=0);var Y=f.config.plotOptions.pie.customScale,ne=f.globals.gridWidth/2,le=f.globals.gridHeight/2,he=ne-f.globals.gridWidth/2*Y,A=le-f.globals.gridHeight/2*Y;if(this.chartType==="donut"){var P=g.drawCircle(this.donutSize);P.attr({cx:this.centerX,cy:this.centerY,fill:f.config.plotOptions.pie.donut.background?f.config.plotOptions.pie.donut.background:"transparent"}),E.add(P)}var W=this.drawArcs(x,c);if(this.sliceLabels.forEach(function(pe){W.add(pe)}),E.attr({transform:"translate(".concat(he,", ").concat(A,") scale(").concat(Y,")")}),E.add(W),this.ret.add(E),this.donutDataLabels.show){var oe=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:he,translateY:A});this.ret.add(oe)}return f.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(c,u){var f=this.w,g=new M(this.ctx),v=new F(this.ctx),b=new Se(this.ctx),x=v.group({class:"apexcharts-slices"}),E=this.initialAngle,T=this.initialAngle,$=this.initialAngle,R=this.initialAngle;this.strokeWidth=f.config.stroke.show?f.config.stroke.width:0;for(var N=0;N<c.length;N++){var z=v.group({class:"apexcharts-series apexcharts-pie-series",seriesName:_.escapeString(f.globals.seriesNames[N]),rel:N+1,"data:realIndex":N});x.add(z),T=R,$=(E=$)+c[N],R=T+this.prevSectorAngleArr[N];var U=$<E?this.fullAngle+$-E:$-E,Y=b.fillPath({seriesNumber:N,size:this.sliceSizes[N],value:u[N]}),ne=this.getChangedPath(T,R),le=v.drawPath({d:ne,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[N]:this.lineColorArr,strokeWidth:0,fill:Y,fillOpacity:f.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(N)});if(le.attr({index:0,j:N}),g.setSelectionFilter(le,0,N),f.config.chart.dropShadow.enabled){var he=f.config.chart.dropShadow;g.dropShadow(le,he,N)}this.addListeners(le,this.donutDataLabels),F.setAttrs(le.node,{"data:angle":U,"data:startAngle":E,"data:strokeWidth":this.strokeWidth,"data:value":u[N]});var A={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?A=_.polarToCartesian(this.centerX,this.centerY,f.globals.radialSize/1.25+f.config.plotOptions.pie.dataLabels.offset,(E+U/2)%this.fullAngle):this.chartType==="donut"&&(A=_.polarToCartesian(this.centerX,this.centerY,(f.globals.radialSize+this.donutSize)/2+f.config.plotOptions.pie.dataLabels.offset,(E+U/2)%this.fullAngle)),z.add(le);var P=0;if(!this.initialAnim||f.globals.resized||f.globals.dataChanged?this.animBeginArr.push(0):((P=U/this.fullAngle*f.config.chart.animations.speed)===0&&(P=1),this.animDur=P+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&f.globals.dataChanged?this.animatePaths(le,{size:this.sliceSizes[N],endAngle:$,startAngle:E,prevStartAngle:T,prevEndAngle:R,animateStartingPos:!0,i:N,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:f.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(le,{size:this.sliceSizes[N],endAngle:$,startAngle:E,i:N,totalItems:c.length-1,animBeginArr:this.animBeginArr,dur:P}),f.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&le.click(this.pieClicked.bind(this,N)),f.globals.selectedDataPoints[0]!==void 0&&f.globals.selectedDataPoints[0].indexOf(N)>-1&&this.pieClicked(N),f.config.dataLabels.enabled){var W=A.x,oe=A.y,pe=100*U/this.fullAngle+"%";if(U!==0&&f.config.plotOptions.pie.dataLabels.minAngleToShowLabel<c[N]){var ge=f.config.dataLabels.formatter;ge!==void 0&&(pe=ge(f.globals.seriesPercent[N][0],{seriesIndex:N,w:f}));var ke=f.globals.dataLabels.style.colors[N],De=v.group({class:"apexcharts-datalabels"}),Ge=v.drawText({x:W,y:oe,text:pe,textAnchor:"middle",fontSize:f.config.dataLabels.style.fontSize,fontFamily:f.config.dataLabels.style.fontFamily,fontWeight:f.config.dataLabels.style.fontWeight,foreColor:ke});if(De.add(Ge),f.config.dataLabels.dropShadow.enabled){var Ze=f.config.dataLabels.dropShadow;g.dropShadow(Ge,Ze)}Ge.node.classList.add("apexcharts-pie-label"),f.config.chart.animations.animate&&f.globals.resized===!1&&(Ge.node.classList.add("apexcharts-pie-label-delay"),Ge.node.style.animationDelay=f.config.chart.animations.speed/940+"s"),this.sliceLabels.push(De)}}}return x}},{key:"addListeners",value:function(c,u){var f=new F(this.ctx);c.node.addEventListener("mouseenter",f.pathMouseEnter.bind(this,c)),c.node.addEventListener("mouseleave",f.pathMouseLeave.bind(this,c)),c.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,c.node,u)),c.node.addEventListener("mousedown",f.pathMouseDown.bind(this,c)),this.donutDataLabels.total.showAlways||(c.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,c.node,u)),c.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,c.node,u)))}},{key:"animatePaths",value:function(c,u){var f=this.w,g=u.endAngle<u.startAngle?this.fullAngle+u.endAngle-u.startAngle:u.endAngle-u.startAngle,v=g,b=u.startAngle,x=u.startAngle;u.prevStartAngle!==void 0&&u.prevEndAngle!==void 0&&(b=u.prevEndAngle,v=u.prevEndAngle<u.prevStartAngle?this.fullAngle+u.prevEndAngle-u.prevStartAngle:u.prevEndAngle-u.prevStartAngle),u.i===f.config.series.length-1&&(g+x>this.fullAngle?u.endAngle=u.endAngle-(g+x):g+x<this.fullAngle&&(u.endAngle=u.endAngle+(this.fullAngle-(g+x)))),g===this.fullAngle&&(g=this.fullAngle-.01),this.animateArc(c,b,x,g,v,u)}},{key:"animateArc",value:function(c,u,f,g,v,b){var x,E=this,T=this.w,$=new L(this.ctx),R=b.size;(isNaN(u)||isNaN(v))&&(u=f,v=g,b.dur=0);var N=g,z=f,U=u<f?this.fullAngle+u-f:u-f;T.globals.dataChanged&&b.shouldSetPrevPaths&&b.prevEndAngle&&(x=E.getPiePath({me:E,startAngle:b.prevStartAngle,angle:b.prevEndAngle<b.prevStartAngle?this.fullAngle+b.prevEndAngle-b.prevStartAngle:b.prevEndAngle-b.prevStartAngle,size:R}),c.attr({d:x})),b.dur!==0?c.animate(b.dur,T.globals.easing,b.animBeginArr[b.i]).afterAll(function(){E.chartType!=="pie"&&E.chartType!=="donut"&&E.chartType!=="polarArea"||this.animate(T.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":E.strokeWidth}),b.i===T.config.series.length-1&&$.animationCompleted(c)}).during(function(Y){N=U+(g-U)*Y,b.animateStartingPos&&(N=v+(g-v)*Y,z=u-v+(f-(u-v))*Y),x=E.getPiePath({me:E,startAngle:z,angle:N,size:R}),c.node.setAttribute("data:pathOrig",x),c.attr({d:x})}):(x=E.getPiePath({me:E,startAngle:z,angle:g,size:R}),b.isTrack||(T.globals.animationEnded=!0),c.node.setAttribute("data:pathOrig",x),c.attr({d:x,"stroke-width":E.strokeWidth}))}},{key:"pieClicked",value:function(c){var u,f=this.w,g=this,v=g.sliceSizes[c]+(f.config.plotOptions.pie.expandOnClick?4:0),b=f.globals.dom.Paper.select(".apexcharts-".concat(g.chartType.toLowerCase(),"-slice-").concat(c)).members[0];if(b.attr("data:pieClicked")!=="true"){var x=f.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(x,function(R){R.setAttribute("data:pieClicked","false");var N=R.getAttribute("data:pathOrig");N&&R.setAttribute("d",N)}),b.attr("data:pieClicked","true");var E=parseInt(b.attr("data:startAngle"),10),T=parseInt(b.attr("data:angle"),10);u=g.getPiePath({me:g,startAngle:E,angle:T,size:v}),T!==360&&b.plot(u)}else{b.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(b.node,this.donutDataLabels);var $=b.attr("data:pathOrig");b.attr({d:$})}}},{key:"getChangedPath",value:function(c,u){var f="";return this.dynamicAnim&&this.w.globals.dataChanged&&(f=this.getPiePath({me:this,startAngle:c,angle:u-c,size:this.size})),f}},{key:"getPiePath",value:function(c){var u=c.me,f=c.startAngle,g=c.angle,v=c.size,b=f,x=Math.PI*(b-90)/180,E=g+f;Math.ceil(E)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(E=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(E)>this.fullAngle&&(E-=this.fullAngle);var T=Math.PI*(E-90)/180,$=u.centerX+v*Math.cos(x),R=u.centerY+v*Math.sin(x),N=u.centerX+v*Math.cos(T),z=u.centerY+v*Math.sin(T),U=_.polarToCartesian(u.centerX,u.centerY,u.donutSize,E),Y=_.polarToCartesian(u.centerX,u.centerY,u.donutSize,b),ne=g>180?1:0,le=["M",$,R,"A",v,v,0,ne,1,N,z];return u.chartType==="donut"?[].concat(le,["L",U.x,U.y,"A",u.donutSize,u.donutSize,0,ne,0,Y.x,Y.y,"L",$,R,"z"]).join(" "):u.chartType==="pie"||u.chartType==="polarArea"?[].concat(le,["L",u.centerX,u.centerY,"L",$,R]).join(" "):[].concat(le).join(" ")}},{key:"drawPolarElements",value:function(c){var u=this.w,f=new qe(this.ctx),g=new F(this.ctx),v=new bo(this.ctx),b=g.group(),x=g.group(),E=f.niceScale(0,Math.ceil(this.maxY),u.config.yaxis[0].tickAmount,0,!0),T=E.result.reverse(),$=E.result.length;this.maxY=E.niceMax;for(var R=u.globals.radialSize,N=R/($-1),z=0;z<$-1;z++){var U=g.drawCircle(R);if(U.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":u.config.plotOptions.polarArea.rings.strokeWidth,stroke:u.config.plotOptions.polarArea.rings.strokeColor}),u.config.yaxis[0].show){var Y=v.drawYAxisTexts(this.centerX,this.centerY-R+parseInt(u.config.yaxis[0].labels.style.fontSize,10)/2,z,T[z]);x.add(Y)}b.add(U),R-=N}this.drawSpokes(c),c.add(b),c.add(x)}},{key:"renderInnerDataLabels",value:function(c,u){var f=this.w,g=new F(this.ctx),v=g.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(u.translateX?u.translateX:0,", ").concat(u.translateY?u.translateY:0,") scale(").concat(f.config.plotOptions.pie.customScale,")")}),b=c.total.show;v.node.style.opacity=u.opacity;var x,E,T=u.centerX,$=u.centerY;x=c.name.color===void 0?f.globals.colors[0]:c.name.color;var R=c.name.fontSize,N=c.name.fontFamily,z=c.name.fontWeight;E=c.value.color===void 0?f.config.chart.foreColor:c.value.color;var U=c.value.formatter,Y="",ne="";if(b?(x=c.total.color,R=c.total.fontSize,N=c.total.fontFamily,z=c.total.fontWeight,ne=c.total.label,Y=c.total.formatter(f)):f.globals.series.length===1&&(Y=U(f.globals.series[0],f),ne=f.globals.seriesNames[0]),ne&&(ne=c.name.formatter(ne,c.total.show,f)),c.name.show){var le=g.drawText({x:T,y:$+parseFloat(c.name.offsetY),text:ne,textAnchor:"middle",foreColor:x,fontSize:R,fontWeight:z,fontFamily:N});le.node.classList.add("apexcharts-datalabel-label"),v.add(le)}if(c.value.show){var he=c.name.show?parseFloat(c.value.offsetY)+16:c.value.offsetY,A=g.drawText({x:T,y:$+he,text:Y,textAnchor:"middle",foreColor:E,fontWeight:c.value.fontWeight,fontSize:c.value.fontSize,fontFamily:c.value.fontFamily});A.node.classList.add("apexcharts-datalabel-value"),v.add(A)}return v}},{key:"printInnerLabels",value:function(c,u,f,g){var v,b=this.w;g?v=c.name.color===void 0?b.globals.colors[parseInt(g.parentNode.getAttribute("rel"),10)-1]:c.name.color:b.globals.series.length>1&&c.total.show&&(v=c.total.color);var x=b.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),E=b.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");f=(0,c.value.formatter)(f,b),g||typeof c.total.formatter!="function"||(f=c.total.formatter(b));var T=u===c.total.label;u=c.name.formatter(u,T,b),x!==null&&(x.textContent=u),E!==null&&(E.textContent=f),x!==null&&(x.style.fill=v)}},{key:"printDataLabelsInner",value:function(c,u){var f=this.w,g=c.getAttribute("data:value"),v=f.globals.seriesNames[parseInt(c.parentNode.getAttribute("rel"),10)-1];f.globals.series.length>1&&this.printInnerLabels(u,v,g,c);var b=f.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");b!==null&&(b.style.opacity=1)}},{key:"drawSpokes",value:function(c){var u=this,f=this.w,g=new F(this.ctx),v=f.config.plotOptions.polarArea.spokes;if(v.strokeWidth!==0){for(var b=[],x=360/f.globals.series.length,E=0;E<f.globals.series.length;E++)b.push(_.polarToCartesian(this.centerX,this.centerY,f.globals.radialSize,f.config.plotOptions.pie.startAngle+x*E));b.forEach(function(T,$){var R=g.drawLine(T.x,T.y,u.centerX,u.centerY,Array.isArray(v.connectorColors)?v.connectorColors[$]:v.connectorColors);c.add(R)})}}},{key:"revertDataLabelsInner",value:function(c,u,f){var g=this,v=this.w,b=v.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),x=!1,E=v.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),T=function(N){var z=N.makeSliceOut,U=N.printLabel;Array.prototype.forEach.call(E,function(Y){Y.getAttribute("data:pieClicked")==="true"&&(z&&(x=!0),U&&g.printDataLabelsInner(Y,u))})};if(T({makeSliceOut:!0,printLabel:!1}),u.total.show&&v.globals.series.length>1)x&&!u.total.showAlways?T({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(u,u.total.label,u.total.formatter(v));else if(T({makeSliceOut:!1,printLabel:!0}),!x)if(v.globals.selectedDataPoints.length&&v.globals.series.length>1)if(v.globals.selectedDataPoints[0].length>0){var $=v.globals.selectedDataPoints[0],R=v.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat($));this.printDataLabelsInner(R,u)}else b&&v.globals.selectedDataPoints.length&&v.globals.selectedDataPoints[0].length===0&&(b.style.opacity=0);else b&&v.globals.series.length>1&&(b.style.opacity=0)}}]),re}(),Ff=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var u=this.w;this.graphics=new F(this.ctx),this.lineColorArr=u.globals.stroke.colors!==void 0?u.globals.stroke.colors:u.globals.colors,this.defaultSize=u.globals.svgHeight<u.globals.svgWidth?u.globals.gridHeight+1.5*u.globals.goldenPadding:u.globals.gridWidth,this.isLog=u.config.yaxis[0].logarithmic,this.coreUtils=new H(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(u.globals.maxY,0):u.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):u.globals.minY,this.polygons=u.config.plotOptions.radar.polygons,this.strokeWidth=u.config.stroke.show?u.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-u.config.chart.dropShadow.blur,u.config.xaxis.labels.show&&(this.size=this.size-u.globals.xAxisLabelsWidth/1.75),u.config.plotOptions.radar.size!==void 0&&(this.size=u.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return a(re,[{key:"draw",value:function(c){var u=this,f=this.w,g=new Se(this.ctx),v=[],b=new Q(this.ctx);c.length&&(this.dataPointsLen=c[f.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var x=f.globals.gridWidth/2,E=f.globals.gridHeight/2,T=x+f.config.plotOptions.radar.offsetX,$=E+f.config.plotOptions.radar.offsetY,R=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(T||0,", ").concat($||0,")")}),N=[],z=null,U=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),c.forEach(function(ne,le){var he=ne.length===f.globals.dataPoints,A=u.graphics.group().attr({class:"apexcharts-series","data:longestSeries":he,seriesName:_.escapeString(f.globals.seriesNames[le]),rel:le+1,"data:realIndex":le});u.dataRadiusOfPercent[le]=[],u.dataRadius[le]=[],u.angleArr[le]=[],ne.forEach(function(st,ft){var Wt=Math.abs(u.maxValue-u.minValue);st+=Math.abs(u.minValue),u.isLog&&(st=u.coreUtils.getLogVal(st,0)),u.dataRadiusOfPercent[le][ft]=st/Wt,u.dataRadius[le][ft]=u.dataRadiusOfPercent[le][ft]*u.size,u.angleArr[le][ft]=ft*u.disAngle}),N=u.getDataPointsPos(u.dataRadius[le],u.angleArr[le]);var P=u.createPaths(N,{x:0,y:0});z=u.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),U=u.graphics.group({class:"apexcharts-datalabels","data:realIndex":le}),f.globals.delayedElements.push({el:z.node,index:le});var W={i:le,realIndex:le,animationDelay:le,initialSpeed:f.config.chart.animations.speed,dataChangeSpeed:f.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:f.globals.stroke.colors[le],strokeLineCap:f.config.stroke.lineCap},oe=null;f.globals.previousPaths.length>0&&(oe=u.getPreviousPath(le));for(var pe=0;pe<P.linePathsTo.length;pe++){var ge=u.graphics.renderPaths(r(r({},W),{},{pathFrom:oe===null?P.linePathsFrom[pe]:oe,pathTo:P.linePathsTo[pe],strokeWidth:Array.isArray(u.strokeWidth)?u.strokeWidth[le]:u.strokeWidth,fill:"none",drawShadow:!1}));A.add(ge);var ke=g.fillPath({seriesNumber:le}),De=u.graphics.renderPaths(r(r({},W),{},{pathFrom:oe===null?P.areaPathsFrom[pe]:oe,pathTo:P.areaPathsTo[pe],strokeWidth:0,fill:ke,drawShadow:!1}));if(f.config.chart.dropShadow.enabled){var Ge=new M(u.ctx),Ze=f.config.chart.dropShadow;Ge.dropShadow(De,Object.assign({},Ze,{noUserSpaceOnUse:!0}),le)}A.add(De)}ne.forEach(function(st,ft){var Wt=new _e(u.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:le,dataPointIndex:ft}),nn=u.graphics.drawMarker(N[ft].x,N[ft].y,Wt);nn.attr("rel",ft),nn.attr("j",ft),nn.attr("index",le),nn.node.setAttribute("default-marker-size",Wt.pSize);var on=u.graphics.group({class:"apexcharts-series-markers"});on&&on.add(nn),z.add(on),A.add(z);var bn=f.config.dataLabels;if(bn.enabled){var ur=bn.formatter(f.globals.series[le][ft],{seriesIndex:le,dataPointIndex:ft,w:f});b.plotDataLabelsText({x:N[ft].x,y:N[ft].y,text:ur,textAnchor:"middle",i:le,j:le,parent:U,offsetCorrection:!1,dataLabelsConfig:r({},bn)})}A.add(U)}),v.push(A)}),this.drawPolygons({parent:R}),f.config.xaxis.labels.show){var Y=this.drawXAxisTexts();R.add(Y)}return v.forEach(function(ne){R.add(ne)}),R.add(this.yaxisLabels),R}},{key:"drawPolygons",value:function(c){for(var u=this,f=this.w,g=c.parent,v=new bo(this.ctx),b=f.globals.yAxisScale[0].result.reverse(),x=b.length,E=[],T=this.size/(x-1),$=0;$<x;$++)E[$]=T*$;E.reverse();var R=[],N=[];E.forEach(function(z,U){var Y=_.getPolygonPos(z,u.dataPointsLen),ne="";Y.forEach(function(le,he){if(U===0){var A=u.graphics.drawLine(le.x,le.y,0,0,Array.isArray(u.polygons.connectorColors)?u.polygons.connectorColors[he]:u.polygons.connectorColors);N.push(A)}he===0&&u.yaxisLabelsTextsPos.push({x:le.x,y:le.y}),ne+=le.x+","+le.y+" "}),R.push(ne)}),R.forEach(function(z,U){var Y=u.polygons.strokeColors,ne=u.polygons.strokeWidth,le=u.graphics.drawPolygon(z,Array.isArray(Y)?Y[U]:Y,Array.isArray(ne)?ne[U]:ne,f.globals.radarPolygons.fill.colors[U]);g.add(le)}),N.forEach(function(z){g.add(z)}),f.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(z,U){var Y=v.drawYAxisTexts(z.x,z.y,U,b[U]);u.yaxisLabels.add(Y)})}},{key:"drawXAxisTexts",value:function(){var c=this,u=this.w,f=u.config.xaxis.labels,g=this.graphics.group({class:"apexcharts-xaxis"}),v=_.getPolygonPos(this.size,this.dataPointsLen);return u.globals.labels.forEach(function(b,x){var E=u.config.xaxis.labels.formatter,T=new Q(c.ctx);if(v[x]){var $=c.getTextPos(v[x],c.size),R=E(b,{seriesIndex:-1,dataPointIndex:x,w:u});T.plotDataLabelsText({x:$.newX,y:$.newY,text:R,textAnchor:$.textAnchor,i:x,j:x,parent:g,color:Array.isArray(f.style.colors)&&f.style.colors[x]?f.style.colors[x]:"#a8a8a8",dataLabelsConfig:r({textAnchor:$.textAnchor,dropShadow:{enabled:!1}},f),offsetCorrection:!1})}}),g}},{key:"createPaths",value:function(c,u){var f=this,g=[],v=[],b=[],x=[];if(c.length){v=[this.graphics.move(u.x,u.y)],x=[this.graphics.move(u.x,u.y)];var E=this.graphics.move(c[0].x,c[0].y),T=this.graphics.move(c[0].x,c[0].y);c.forEach(function($,R){E+=f.graphics.line($.x,$.y),T+=f.graphics.line($.x,$.y),R===c.length-1&&(E+="Z",T+="Z")}),g.push(E),b.push(T)}return{linePathsFrom:v,linePathsTo:g,areaPathsFrom:x,areaPathsTo:b}}},{key:"getTextPos",value:function(c,u){var f="middle",g=c.x,v=c.y;return Math.abs(c.x)>=10?c.x>0?(f="start",g+=10):c.x<0&&(f="end",g-=10):f="middle",Math.abs(c.y)>=u-10&&(c.y<0?v-=10:c.y>0&&(v+=10)),{textAnchor:f,newX:g,newY:v}}},{key:"getPreviousPath",value:function(c){for(var u=this.w,f=null,g=0;g<u.globals.previousPaths.length;g++){var v=u.globals.previousPaths[g];v.paths.length>0&&parseInt(v.realIndex,10)===parseInt(c,10)&&u.globals.previousPaths[g].paths[0]!==void 0&&(f=u.globals.previousPaths[g].paths[0].d)}return f}},{key:"getDataPointsPos",value:function(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;c=c||[],u=u||[];for(var g=[],v=0;v<f;v++){var b={};b.x=c[v]*Math.sin(u[v]),b.y=-c[v]*Math.cos(u[v]),g.push(b)}return g}}]),re}(),Ju=function(re){d(u,_i);var c=w(u);function u(f){var g;o(this,u),(g=c.call(this,f)).ctx=f,g.w=f.w,g.animBeginArr=[0],g.animDur=0;var v=g.w;return g.startAngle=v.config.plotOptions.radialBar.startAngle,g.endAngle=v.config.plotOptions.radialBar.endAngle,g.totalAngle=Math.abs(v.config.plotOptions.radialBar.endAngle-v.config.plotOptions.radialBar.startAngle),g.trackStartAngle=v.config.plotOptions.radialBar.track.startAngle,g.trackEndAngle=v.config.plotOptions.radialBar.track.endAngle,g.donutDataLabels=g.w.config.plotOptions.radialBar.dataLabels,g.radialDataLabels=g.donutDataLabels,g.trackStartAngle||(g.trackStartAngle=g.startAngle),g.trackEndAngle||(g.trackEndAngle=g.endAngle),g.endAngle===360&&(g.endAngle=359.99),g.margin=parseInt(v.config.plotOptions.radialBar.track.margin,10),g}return a(u,[{key:"draw",value:function(f){var g=this.w,v=new F(this.ctx),b=v.group({class:"apexcharts-radialbar"});if(g.globals.noData)return b;var x=v.group(),E=this.defaultSize/2,T=g.globals.gridWidth/2,$=this.defaultSize/2.05;g.config.chart.sparkline.enabled||($=$-g.config.stroke.width-g.config.chart.dropShadow.blur);var R=g.globals.fill.colors;if(g.config.plotOptions.radialBar.track.show){var N=this.drawTracks({size:$,centerX:T,centerY:E,colorArr:R,series:f});x.add(N)}var z=this.drawArcs({size:$,centerX:T,centerY:E,colorArr:R,series:f}),U=360;g.config.plotOptions.radialBar.startAngle<0&&(U=this.totalAngle);var Y=(360-U)/360;if(g.globals.radialSize=$-$*Y,this.radialDataLabels.value.show){var ne=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);g.globals.radialSize+=ne*Y}return x.add(z.g),g.config.plotOptions.radialBar.hollow.position==="front"&&(z.g.add(z.elHollow),z.dataLabels&&z.g.add(z.dataLabels)),b.add(x),b}},{key:"drawTracks",value:function(f){var g=this.w,v=new F(this.ctx),b=v.group({class:"apexcharts-tracks"}),x=new M(this.ctx),E=new Se(this.ctx),T=this.getStrokeWidth(f);f.size=f.size-T/2;for(var $=0;$<f.series.length;$++){var R=v.group({class:"apexcharts-radialbar-track apexcharts-track"});b.add(R),R.attr({rel:$+1}),f.size=f.size-T-this.margin;var N=g.config.plotOptions.radialBar.track,z=E.fillPath({seriesNumber:0,size:f.size,fillColors:Array.isArray(N.background)?N.background[$]:N.background,solid:!0}),U=this.trackStartAngle,Y=this.trackEndAngle;Math.abs(Y)+Math.abs(U)>=360&&(Y=360-Math.abs(this.startAngle)-.1);var ne=v.drawPath({d:"",stroke:z,strokeWidth:T*parseInt(N.strokeWidth,10)/100,fill:"none",strokeOpacity:N.opacity,classes:"apexcharts-radialbar-area"});if(N.dropShadow.enabled){var le=N.dropShadow;x.dropShadow(ne,le)}R.add(ne),ne.attr("id","apexcharts-radialbarTrack-"+$),this.animatePaths(ne,{centerX:f.centerX,centerY:f.centerY,endAngle:Y,startAngle:U,size:f.size,i:$,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:g.globals.easing})}return b}},{key:"drawArcs",value:function(f){var g=this.w,v=new F(this.ctx),b=new Se(this.ctx),x=new M(this.ctx),E=v.group(),T=this.getStrokeWidth(f);f.size=f.size-T/2;var $=g.config.plotOptions.radialBar.hollow.background,R=f.size-T*f.series.length-this.margin*f.series.length-T*parseInt(g.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,N=R-g.config.plotOptions.radialBar.hollow.margin;g.config.plotOptions.radialBar.hollow.image!==void 0&&($=this.drawHollowImage(f,E,R,$));var z=this.drawHollow({size:N,centerX:f.centerX,centerY:f.centerY,fill:$||"transparent"});if(g.config.plotOptions.radialBar.hollow.dropShadow.enabled){var U=g.config.plotOptions.radialBar.hollow.dropShadow;x.dropShadow(z,U)}var Y=1;!this.radialDataLabels.total.show&&g.globals.series.length>1&&(Y=0);var ne=null;this.radialDataLabels.show&&(ne=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:R,centerX:f.centerX,centerY:f.centerY,opacity:Y})),g.config.plotOptions.radialBar.hollow.position==="back"&&(E.add(z),ne&&E.add(ne));var le=!1;g.config.plotOptions.radialBar.inverseOrder&&(le=!0);for(var he=le?f.series.length-1:0;le?he>=0:he<f.series.length;le?he--:he++){var A=v.group({class:"apexcharts-series apexcharts-radial-series",seriesName:_.escapeString(g.globals.seriesNames[he])});E.add(A),A.attr({rel:he+1,"data:realIndex":he}),this.ctx.series.addCollapsedClassToSeries(A,he),f.size=f.size-T-this.margin;var P=b.fillPath({seriesNumber:he,size:f.size,value:f.series[he]}),W=this.startAngle,oe=void 0,pe=_.negToZero(f.series[he]>100?100:f.series[he])/100,ge=Math.round(this.totalAngle*pe)+this.startAngle,ke=void 0;g.globals.dataChanged&&(oe=this.startAngle,ke=Math.round(this.totalAngle*_.negToZero(g.globals.previousPaths[he])/100)+oe),Math.abs(ge)+Math.abs(W)>=360&&(ge-=.01),Math.abs(ke)+Math.abs(oe)>=360&&(ke-=.01);var De=ge-W,Ge=Array.isArray(g.config.stroke.dashArray)?g.config.stroke.dashArray[he]:g.config.stroke.dashArray,Ze=v.drawPath({d:"",stroke:P,strokeWidth:T,fill:"none",fillOpacity:g.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+he,strokeDashArray:Ge});if(F.setAttrs(Ze.node,{"data:angle":De,"data:value":f.series[he]}),g.config.chart.dropShadow.enabled){var st=g.config.chart.dropShadow;x.dropShadow(Ze,st,he)}x.setSelectionFilter(Ze,0,he),this.addListeners(Ze,this.radialDataLabels),A.add(Ze),Ze.attr({index:0,j:he});var ft=0;!this.initialAnim||g.globals.resized||g.globals.dataChanged||(ft=g.config.chart.animations.speed),g.globals.dataChanged&&(ft=g.config.chart.animations.dynamicAnimation.speed),this.animDur=ft/(1.2*f.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(Ze,{centerX:f.centerX,centerY:f.centerY,endAngle:ge,startAngle:W,prevEndAngle:ke,prevStartAngle:oe,size:f.size,i:he,totalItems:2,animBeginArr:this.animBeginArr,dur:ft,shouldSetPrevPaths:!0,easing:g.globals.easing})}return{g:E,elHollow:z,dataLabels:ne}}},{key:"drawHollow",value:function(f){var g=new F(this.ctx).drawCircle(2*f.size);return g.attr({class:"apexcharts-radialbar-hollow",cx:f.centerX,cy:f.centerY,r:f.size,fill:f.fill}),g}},{key:"drawHollowImage",value:function(f,g,v,b){var x=this.w,E=new Se(this.ctx),T=_.randomId(),$=x.config.plotOptions.radialBar.hollow.image;if(x.config.plotOptions.radialBar.hollow.imageClipped)E.clippedImgArea({width:v,height:v,image:$,patternID:"pattern".concat(x.globals.cuid).concat(T)}),b="url(#pattern".concat(x.globals.cuid).concat(T,")");else{var R=x.config.plotOptions.radialBar.hollow.imageWidth,N=x.config.plotOptions.radialBar.hollow.imageHeight;if(R===void 0&&N===void 0){var z=x.globals.dom.Paper.image($).loaded(function(Y){this.move(f.centerX-Y.width/2+x.config.plotOptions.radialBar.hollow.imageOffsetX,f.centerY-Y.height/2+x.config.plotOptions.radialBar.hollow.imageOffsetY)});g.add(z)}else{var U=x.globals.dom.Paper.image($).loaded(function(Y){this.move(f.centerX-R/2+x.config.plotOptions.radialBar.hollow.imageOffsetX,f.centerY-N/2+x.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(R,N)});g.add(U)}}return b}},{key:"getStrokeWidth",value:function(f){var g=this.w;return f.size*(100-parseInt(g.config.plotOptions.radialBar.hollow.size,10))/100/(f.series.length+1)-this.margin}}]),u}(),xc=function(re){d(u,bt);var c=w(u);function u(){return o(this,u),c.apply(this,arguments)}return a(u,[{key:"draw",value:function(f,g){var v=this.w,b=new F(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=f,this.seriesRangeStart=v.globals.seriesRangeStart,this.seriesRangeEnd=v.globals.seriesRangeEnd,this.barHelpers.initVariables(f);for(var x=b.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),E=0;E<f.length;E++){var T,$,R,N=void 0,z=void 0,U=void 0,Y=v.globals.comboCharts?g[E]:E,ne=b.group({class:"apexcharts-series",seriesName:_.escapeString(v.globals.seriesNames[Y]),rel:E+1,"data:realIndex":Y});this.ctx.series.addCollapsedClassToSeries(ne,Y),f[E].length>0&&(this.visibleI=this.visibleI+1);var le=0,he=0;this.yRatio.length>1&&(this.yaxisIndex=Y);var A=this.barHelpers.initialPositions();z=A.y,R=A.zeroW,N=A.x,he=A.barWidth,T=A.xDivision,$=A.zeroH;for(var P=b.group({class:"apexcharts-datalabels","data:realIndex":Y}),W=b.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),oe=0;oe<v.globals.dataPoints;oe++){var pe=this.barHelpers.getStrokeWidth(E,oe,Y),ge=this.seriesRangeStart[E][oe],ke=this.seriesRangeEnd[E][oe],De=null,Ge=null,Ze={x:N,y:z,strokeWidth:pe,elSeries:ne};if(U=A.yDivision,le=A.barHeight,this.isHorizontal){Ge=z+le*this.visibleI;var st=this.seriesLen;v.config.plotOptions.bar.rangeBarGroupRows&&(st=1);var ft=(U-le*st)/2;if(v.config.series[E].data[oe]===void 0)break;if(v.config.series[E].data[oe].x){var Wt=this.detectOverlappingBars({i:E,j:oe,barYPosition:Ge,srty:ft,barHeight:le,yDivision:U,initPositions:A});le=Wt.barHeight,Ge=Wt.barYPosition}he=(De=this.drawRangeBarPaths(r({indexes:{i:E,j:oe,realIndex:Y},barHeight:le,barYPosition:Ge,zeroW:R,yDivision:U,y1:ge,y2:ke},Ze))).barWidth}else le=(De=this.drawRangeColumnPaths(r({indexes:{i:E,j:oe,realIndex:Y},zeroH:$,barWidth:he,xDivision:T},Ze))).barHeight;var nn=this.barHelpers.drawGoalLine({barXPosition:De.barXPosition,barYPosition:Ge,goalX:De.goalX,goalY:De.goalY,barHeight:le,barWidth:he});nn&&W.add(nn),z=De.y,N=De.x;var on=this.barHelpers.getPathFillColor(f,E,oe,Y),bn=v.globals.stroke.colors[Y];this.renderSeries({realIndex:Y,pathFill:on,lineFill:bn,j:oe,i:E,x:N,y:z,y1:ge,y2:ke,pathFrom:De.pathFrom,pathTo:De.pathTo,strokeWidth:pe,elSeries:ne,series:f,barHeight:le,barYPosition:Ge,barWidth:he,elDataLabelsWrap:P,elGoalsMarkers:W,visibleSeries:this.visibleI,type:"rangebar"})}x.add(ne)}return x}},{key:"detectOverlappingBars",value:function(f){var g=f.i,v=f.j,b=f.barYPosition,x=f.srty,E=f.barHeight,T=f.yDivision,$=f.initPositions,R=this.w,N=[],z=R.config.series[g].data[v].rangeName,U=R.config.series[g].data[v].x,Y=R.globals.labels.indexOf(U),ne=R.globals.seriesRange[g].findIndex(function(le){return le.x===U&&le.overlaps.length>0});return b=R.config.plotOptions.bar.rangeBarGroupRows?x+T*Y:x+E*this.visibleI+T*Y,ne>-1&&!R.config.plotOptions.bar.rangeBarOverlap&&(N=R.globals.seriesRange[g][ne].overlaps).indexOf(z)>-1&&(b=(E=$.barHeight/N.length)*this.visibleI+T*(100-parseInt(this.barOptions.barHeight,10))/100/2+E*(this.visibleI+N.indexOf(z))+T*Y),{barYPosition:b,barHeight:E}}},{key:"drawRangeColumnPaths",value:function(f){var g=f.indexes,v=f.x;f.strokeWidth;var b=f.xDivision,x=f.barWidth,E=f.zeroH,T=this.w,$=g.i,R=g.j,N=this.yRatio[this.yaxisIndex],z=g.realIndex,U=this.getRangeValue(z,R),Y=Math.min(U.start,U.end),ne=Math.max(U.start,U.end);T.globals.isXNumeric&&(v=(T.globals.seriesX[$][R]-T.globals.minX)/this.xRatio-x/2);var le=v+x*this.visibleI;this.series[$][R]===void 0||this.series[$][R]===null?Y=E:(Y=E-Y/N,ne=E-ne/N);var he=Math.abs(ne-Y),A=this.barHelpers.getColumnPaths({barXPosition:le,barWidth:x,y1:Y,y2:ne,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:g.realIndex,i:z,j:R,w:T});return T.globals.isXNumeric||(v+=b),{pathTo:A.pathTo,pathFrom:A.pathFrom,barHeight:he,x:v,y:ne,goalY:this.barHelpers.getGoalValues("y",null,E,$,R),barXPosition:le}}},{key:"drawRangeBarPaths",value:function(f){var g=f.indexes,v=f.y,b=f.y1,x=f.y2,E=f.yDivision,T=f.barHeight,$=f.barYPosition,R=f.zeroW,N=this.w,z=R+b/this.invertedYRatio,U=R+x/this.invertedYRatio,Y=Math.abs(U-z),ne=this.barHelpers.getBarpaths({barYPosition:$,barHeight:T,x1:z,x2:U,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:g.realIndex,realIndex:g.realIndex,j:g.j,w:N});return N.globals.isXNumeric||(v+=E),{pathTo:ne.pathTo,pathFrom:ne.pathFrom,barWidth:Y,x:U,goalX:this.barHelpers.getGoalValues("x",R,null,g.realIndex,g.j),y:v}}},{key:"getRangeValue",value:function(f,g){var v=this.w;return{start:v.globals.seriesRangeStart[f][g],end:v.globals.seriesRangeEnd[f][g]}}}]),u}(),mC=function(){function re(c){o(this,re),this.w=c.w,this.lineCtx=c}return a(re,[{key:"sameValueSeriesFix",value:function(c,u){var f=this.w;if((f.config.fill.type==="gradient"||f.config.fill.type[c]==="gradient")&&new H(this.lineCtx.ctx,f).seriesHaveSameValues(c)){var g=u[c].slice();g[g.length-1]=g[g.length-1]+1e-6,u[c]=g}return u}},{key:"calculatePoints",value:function(c){var u=c.series,f=c.realIndex,g=c.x,v=c.y,b=c.i,x=c.j,E=c.prevY,T=this.w,$=[],R=[];if(x===0){var N=this.lineCtx.categoryAxisCorrection+T.config.markers.offsetX;T.globals.isXNumeric&&(N=(T.globals.seriesX[f][0]-T.globals.minX)/this.lineCtx.xRatio+T.config.markers.offsetX),$.push(N),R.push(_.isNumber(u[b][0])?E+T.config.markers.offsetY:null),$.push(g+T.config.markers.offsetX),R.push(_.isNumber(u[b][x+1])?v+T.config.markers.offsetY:null)}else $.push(g+T.config.markers.offsetX),R.push(_.isNumber(u[b][x+1])?v+T.config.markers.offsetY:null);return{x:$,y:R}}},{key:"checkPreviousPaths",value:function(c){for(var u=c.pathFromLine,f=c.pathFromArea,g=c.realIndex,v=this.w,b=0;b<v.globals.previousPaths.length;b++){var x=v.globals.previousPaths[b];(x.type==="line"||x.type==="area")&&x.paths.length>0&&parseInt(x.realIndex,10)===parseInt(g,10)&&(x.type==="line"?(this.lineCtx.appendPathFrom=!1,u=v.globals.previousPaths[b].paths[0].d):x.type==="area"&&(this.lineCtx.appendPathFrom=!1,f=v.globals.previousPaths[b].paths[0].d,v.config.stroke.show&&v.globals.previousPaths[b].paths[1]&&(u=v.globals.previousPaths[b].paths[1].d)))}return{pathFromLine:u,pathFromArea:f}}},{key:"determineFirstPrevY",value:function(c){var u,f=c.i,g=c.series,v=c.prevY,b=c.lineYPosition,x=this.w;if(((u=g[f])===null||u===void 0?void 0:u[0])!==void 0)v=(b=x.config.chart.stacked&&f>0?this.lineCtx.prevSeriesY[f-1][0]:this.lineCtx.zeroY)-g[f][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?g[f][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(x.config.chart.stacked&&f>0&&g[f][0]===void 0){for(var E=f-1;E>=0;E--)if(g[E][0]!==null&&g[E][0]!==void 0){v=b=this.lineCtx.prevSeriesY[E][0];break}}return{prevY:v,lineYPosition:b}}}]),re}(),Zu=function(){function re(c,u,f){o(this,re),this.ctx=c,this.w=c.w,this.xyRatios=u,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||f,this.scatter=new Be(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new mC(this),this.markers=new _e(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return a(re,[{key:"draw",value:function(c,u,f,g){var v=this.w,b=new F(this.ctx),x=v.globals.comboCharts?u:v.config.chart.type,E=b.group({class:"apexcharts-".concat(x,"-series apexcharts-plot-series")}),T=new H(this.ctx,v);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,c=T.getLogSeries(c),this.yRatio=T.getLogYRatios(this.yRatio);for(var $=[],R=0;R<c.length;R++){c=this.lineHelpers.sameValueSeriesFix(R,c);var N=v.globals.comboCharts?f[R]:R;this._initSerieVariables(c,R,N);var z=[],U=[],Y=v.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,N),v.globals.isXNumeric&&v.globals.seriesX.length>0&&(Y=(v.globals.seriesX[N][0]-v.globals.minX)/this.xRatio),U.push(Y);var ne,le=Y,he=void 0,A=le,P=this.zeroY,W=this.zeroY;P=this.lineHelpers.determineFirstPrevY({i:R,series:c,prevY:P,lineYPosition:0}).prevY,z.push(P),ne=P,x==="rangeArea"&&(he=W=this.lineHelpers.determineFirstPrevY({i:R,series:g,prevY:W,lineYPosition:0}).prevY);var oe={type:x,series:c,realIndex:N,i:R,x:Y,y:1,pX:le,pY:ne,pathsFrom:this._calculatePathsFrom({type:x,series:c,i:R,realIndex:N,prevX:A,prevY:P,prevY2:W}),linePaths:[],areaPaths:[],seriesIndex:f,lineYPosition:0,xArrj:U,yArrj:z,seriesRangeEnd:g},pe=this._iterateOverDataPoints(r(r({},oe),{},{iterations:x==="rangeArea"?c[R].length-1:void 0,isRangeStart:!0}));if(x==="rangeArea"){var ge=this._calculatePathsFrom({series:g,i:R,realIndex:N,prevX:A,prevY:W}),ke=this._iterateOverDataPoints(r(r({},oe),{},{series:g,pY:he,pathsFrom:ge,iterations:g[R].length-1,isRangeStart:!1}));pe.linePaths[0]=ke.linePath+pe.linePath,pe.pathFromLine=ke.pathFromLine+pe.pathFromLine}this._handlePaths({type:x,realIndex:N,i:R,paths:pe}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),$.push(this.elSeries)}if(v.config.chart.stacked)for(var De=$.length;De>0;De--)E.add($[De-1]);else for(var Ge=0;Ge<$.length;Ge++)E.add($[Ge]);return E}},{key:"_initSerieVariables",value:function(c,u,f){var g=this.w,v=new F(this.ctx);this.xDivision=g.globals.gridWidth/(g.globals.dataPoints-(g.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(g.config.stroke.width)?g.config.stroke.width[f]:g.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=f),this.isReversed=g.config.yaxis[this.yaxisIndex]&&g.config.yaxis[this.yaxisIndex].reversed,this.zeroY=g.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?g.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>g.globals.gridHeight||g.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=g.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=v.group({class:"apexcharts-series",seriesName:_.escapeString(g.globals.seriesNames[f])}),this.elPointsMain=v.group({class:"apexcharts-series-markers-wrap","data:realIndex":f}),this.elDataLabelsWrap=v.group({class:"apexcharts-datalabels","data:realIndex":f});var b=c[u].length===g.globals.dataPoints;this.elSeries.attr({"data:longestSeries":b,rel:u+1,"data:realIndex":f}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(c){var u,f,g,v,b=c.type,x=c.series,E=c.i,T=c.realIndex,$=c.prevX,R=c.prevY,N=c.prevY2,z=this.w,U=new F(this.ctx);if(x[E][0]===null){for(var Y=0;Y<x[E].length;Y++)if(x[E][Y]!==null){$=this.xDivision*Y,R=this.zeroY-x[E][Y]/this.yRatio[this.yaxisIndex],u=U.move($,R),f=U.move($,this.areaBottomY);break}}else u=U.move($,R),b==="rangeArea"&&(u=U.move($,N)+U.line($,R)),f=U.move($,this.areaBottomY)+U.line($,R);if(g=U.move(-1,this.zeroY)+U.line(-1,this.zeroY),v=U.move(-1,this.zeroY)+U.line(-1,this.zeroY),z.globals.previousPaths.length>0){var ne=this.lineHelpers.checkPreviousPaths({pathFromLine:g,pathFromArea:v,realIndex:T});g=ne.pathFromLine,v=ne.pathFromArea}return{prevX:$,prevY:R,linePath:u,areaPath:f,pathFromLine:g,pathFromArea:v}}},{key:"_handlePaths",value:function(c){var u=c.type,f=c.realIndex,g=c.i,v=c.paths,b=this.w,x=new F(this.ctx),E=new Se(this.ctx);this.prevSeriesY.push(v.yArrj),b.globals.seriesXvalues[f]=v.xArrj,b.globals.seriesYvalues[f]=v.yArrj;var T=b.config.forecastDataPoints;if(T.count>0&&u!=="rangeArea"){var $=b.globals.seriesXvalues[f][b.globals.seriesXvalues[f].length-T.count-1],R=x.drawRect($,0,b.globals.gridWidth,b.globals.gridHeight,0);b.globals.dom.elForecastMask.appendChild(R.node);var N=x.drawRect(0,0,$,b.globals.gridHeight,0);b.globals.dom.elNonForecastMask.appendChild(N.node)}this.pointsChart||b.globals.delayedElements.push({el:this.elPointsMain.node,index:f});var z={i:g,realIndex:f,animationDelay:g,initialSpeed:b.config.chart.animations.speed,dataChangeSpeed:b.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(u)};if(u==="area")for(var U=E.fillPath({seriesNumber:f}),Y=0;Y<v.areaPaths.length;Y++){var ne=x.renderPaths(r(r({},z),{},{pathFrom:v.pathFromArea,pathTo:v.areaPaths[Y],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:U}));this.elSeries.add(ne)}if(b.config.stroke.show&&!this.pointsChart){var le=null;if(u==="line")le=E.fillPath({seriesNumber:f,i:g});else if(b.config.stroke.fill.type==="solid")le=b.globals.stroke.colors[f];else{var he=b.config.fill;b.config.fill=b.config.stroke.fill,le=E.fillPath({seriesNumber:f,i:g}),b.config.fill=he}for(var A=0;A<v.linePaths.length;A++){var P=le;u==="rangeArea"&&(P=E.fillPath({seriesNumber:f}));var W=r(r({},z),{},{pathFrom:v.pathFromLine,pathTo:v.linePaths[A],stroke:le,strokeWidth:this.strokeWidth,strokeLineCap:b.config.stroke.lineCap,fill:u==="rangeArea"?P:"none"}),oe=x.renderPaths(W);if(this.elSeries.add(oe),oe.attr("fill-rule","evenodd"),T.count>0&&u!=="rangeArea"){var pe=x.renderPaths(W);pe.node.setAttribute("stroke-dasharray",T.dashArray),T.strokeWidth&&pe.node.setAttribute("stroke-width",T.strokeWidth),this.elSeries.add(pe),pe.attr("clip-path","url(#forecastMask".concat(b.globals.cuid,")")),oe.attr("clip-path","url(#nonForecastMask".concat(b.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(c){var u=c.type,f=c.series,g=c.iterations,v=c.realIndex,b=c.i,x=c.x,E=c.y,T=c.pX,$=c.pY,R=c.pathsFrom,N=c.linePaths,z=c.areaPaths,U=c.seriesIndex,Y=c.lineYPosition,ne=c.xArrj,le=c.yArrj,he=c.isRangeStart,A=c.seriesRangeEnd,P=this.w,W=new F(this.ctx),oe=this.yRatio,pe=R.prevY,ge=R.linePath,ke=R.areaPath,De=R.pathFromLine,Ge=R.pathFromArea,Ze=_.isNumber(P.globals.minYArr[v])?P.globals.minYArr[v]:P.globals.minY;g||(g=P.globals.dataPoints>1?P.globals.dataPoints-1:P.globals.dataPoints);for(var st=E,ft=0;ft<g;ft++){var Wt=f[b][ft+1]===void 0||f[b][ft+1]===null;if(P.globals.isXNumeric){var nn=P.globals.seriesX[v][ft+1];P.globals.seriesX[v][ft+1]===void 0&&(nn=P.globals.seriesX[v][g-1]),x=(nn-P.globals.minX)/this.xRatio}else x+=this.xDivision;P.config.chart.stacked?b>0&&P.globals.collapsedSeries.length<P.config.series.length-1?Y=this.prevSeriesY[function(ur){for(var mr=ur,Fr=0;Fr<P.globals.series.length;Fr++)if(P.globals.collapsedSeriesIndices.indexOf(ur)>-1){mr--;break}return mr>=0?mr:0}(b-1)][ft+1]:Y=this.zeroY:Y=this.zeroY,Wt?E=Y-Ze/oe[this.yaxisIndex]+2*(this.isReversed?Ze/oe[this.yaxisIndex]:0):(E=Y-f[b][ft+1]/oe[this.yaxisIndex]+2*(this.isReversed?f[b][ft+1]/oe[this.yaxisIndex]:0),u==="rangeArea"&&(st=Y-A[b][ft+1]/oe[this.yaxisIndex]+2*(this.isReversed?A[b][ft+1]/oe[this.yaxisIndex]:0))),ne.push(x),le.push(E);var on=this.lineHelpers.calculatePoints({series:f,x,y:E,realIndex:v,i:b,j:ft,prevY:pe}),bn=this._createPaths({type:u,series:f,i:b,realIndex:v,j:ft,x,y:E,y2:st,pX:T,pY:$,linePath:ge,areaPath:ke,linePaths:N,areaPaths:z,seriesIndex:U,isRangeStart:he});z=bn.areaPaths,N=bn.linePaths,T=bn.pX,$=bn.pY,ke=bn.areaPath,ge=bn.linePath,this.appendPathFrom&&(De+=W.line(x,this.zeroY),Ge+=W.line(x,this.zeroY)),this.handleNullDataPoints(f,on,b,ft,v),this._handleMarkersAndLabels({type:u,pointsPos:on,i:b,j:ft,realIndex:v,isRangeStart:he})}return{yArrj:le,xArrj:ne,pathFromArea:Ge,areaPaths:z,pathFromLine:De,linePaths:N,linePath:ge,areaPath:ke}}},{key:"_handleMarkersAndLabels",value:function(c){var u=c.type,f=c.pointsPos,g=c.isRangeStart,v=c.i,b=c.j,x=c.realIndex,E=this.w,T=new Q(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,b,{realIndex:x,pointsPos:f,zRatio:this.zRatio,elParent:this.elPointsMain});else{E.globals.series[v].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var $=this.markers.plotChartMarkers(f,x,b+1);$!==null&&this.elPointsMain.add($)}var R=T.drawDataLabel({type:u,isRangeStart:g,pos:f,i:x,j:b+1});R!==null&&this.elDataLabelsWrap.add(R)}},{key:"_createPaths",value:function(c){var u=c.type,f=c.series,g=c.i,v=c.realIndex,b=c.j,x=c.x,E=c.y,T=c.y2,$=c.pX,R=c.pY,N=c.linePath,z=c.areaPath,U=c.linePaths,Y=c.areaPaths,ne=c.seriesIndex,le=c.isRangeStart,he=this.w,A=new F(this.ctx),P=he.config.stroke.curve,W=this.areaBottomY;if(Array.isArray(he.config.stroke.curve)&&(P=Array.isArray(ne)?he.config.stroke.curve[ne[g]]:he.config.stroke.curve[g]),P==="smooth"){var oe=.35*(x-$);he.globals.hasNullValues?(f[g][b]!==null&&(f[g][b+1]!==null?(N=A.move($,R)+A.curve($+oe,R,x-oe,E,x+1,E),z=A.move($+1,R)+A.curve($+oe,R,x-oe,E,x+1,E)+A.line(x,W)+A.line($,W)+"z"):(N=A.move($,R),z=A.move($,R)+"z")),U.push(N),Y.push(z)):(N+=A.curve($+oe,R,x-oe,E,x,E),z+=A.curve($+oe,R,x-oe,E,x,E)),$=x,R=E,b===f[g].length-2&&(z=z+A.curve($,R,x,E,x,W)+A.move(x,E)+"z",u==="rangeArea"&&le?N=N+A.curve($,R,x,E,x,T)+A.move(x,T)+"z":he.globals.hasNullValues||(U.push(N),Y.push(z)))}else{if(f[g][b+1]===null){N+=A.move(x,E);var pe=he.globals.isXNumeric?(he.globals.seriesX[v][b]-he.globals.minX)/this.xRatio:x-this.xDivision;z=z+A.line(pe,W)+A.move(x,E)+"z"}f[g][b]===null&&(N+=A.move(x,E),z+=A.move(x,W)),P==="stepline"?(N=N+A.line(x,null,"H")+A.line(null,E,"V"),z=z+A.line(x,null,"H")+A.line(null,E,"V")):P==="straight"&&(N+=A.line(x,E),z+=A.line(x,E)),b===f[g].length-2&&(z=z+A.line(x,W)+A.move(x,E)+"z",u==="rangeArea"&&le?N=N+A.line(x,T)+A.move(x,T)+"z":(U.push(N),Y.push(z)))}return{linePaths:U,areaPaths:Y,pX:$,pY:R,linePath:N,areaPath:z}}},{key:"handleNullDataPoints",value:function(c,u,f,g,v){var b=this.w;if(c[f][g]===null&&b.config.markers.showNullDataPoints||c[f].length===1){var x=this.markers.plotChartMarkers(u,v,g+1,this.strokeWidth-b.config.markers.strokeWidth/2,!0);x!==null&&this.elPointsMain.add(x)}}}]),re}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function re(x,E,T,$){this.xoffset=x,this.yoffset=E,this.height=$,this.width=T,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(R){var N,z=[],U=this.xoffset,Y=this.yoffset,ne=v(R)/this.height,le=v(R)/this.width;if(this.width>=this.height)for(N=0;N<R.length;N++)z.push([U,Y,U+ne,Y+R[N]/ne]),Y+=R[N]/ne;else for(N=0;N<R.length;N++)z.push([U,Y,U+R[N]/le,Y+le]),U+=R[N]/le;return z},this.cutArea=function(R){var N;if(this.width>=this.height){var z=R/this.height,U=this.width-z;N=new re(this.xoffset+z,this.yoffset,U,this.height)}else{var Y=R/this.width,ne=this.height-Y;N=new re(this.xoffset,this.yoffset+Y,this.width,ne)}return N}}function c(x,E,T,$,R){$=$===void 0?0:$,R=R===void 0?0:R;var N=u(function(z,U){var Y,ne=[],le=U/v(z);for(Y=0;Y<z.length;Y++)ne[Y]=z[Y]*le;return ne}(x,E*T),[],new re($,R,E,T),[]);return function(z){var U,Y,ne=[];for(U=0;U<z.length;U++)for(Y=0;Y<z[U].length;Y++)ne.push(z[U][Y]);return ne}(N)}function u(x,E,T,$){var R,N,z;if(x.length!==0)return R=T.shortestEdge(),function(U,Y,ne){var le;if(U.length===0)return!0;(le=U.slice()).push(Y);var he=f(U,ne),A=f(le,ne);return he>=A}(E,N=x[0],R)?(E.push(N),u(x.slice(1),E,T,$)):(z=T.cutArea(v(E),$),$.push(T.getCoordinates(E)),u(x,[],z,$)),$;$.push(T.getCoordinates(E))}function f(x,E){var T=Math.min.apply(Math,x),$=Math.max.apply(Math,x),R=v(x);return Math.max(Math.pow(E,2)*$/Math.pow(R,2),Math.pow(R,2)/(Math.pow(E,2)*T))}function g(x){return x&&x.constructor===Array}function v(x){var E,T=0;for(E=0;E<x.length;E++)T+=x[E];return T}function b(x){var E,T=0;if(g(x[0]))for(E=0;E<x.length;E++)T+=b(x[E]);else T=v(x);return T}return function x(E,T,$,R,N){R=R===void 0?0:R,N=N===void 0?0:N;var z,U,Y=[],ne=[];if(g(E[0])){for(U=0;U<E.length;U++)Y[U]=b(E[U]);for(z=c(Y,T,$,R,N),U=0;U<E.length;U++)ne.push(x(E[U],z[U][2]-z[U][0],z[U][3]-z[U][1],z[U][0],z[U][1]))}else ne=c(E,T,$,R,N);return ne}}();var ol,wc,vC=function(){function re(c,u){o(this,re),this.ctx=c,this.w=c.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new vn(c),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return a(re,[{key:"draw",value:function(c){var u=this,f=this.w,g=new F(this.ctx),v=new Se(this.ctx),b=g.group({class:"apexcharts-treemap"});if(f.globals.noData)return b;var x=[];return c.forEach(function(E){var T=E.map(function($){return Math.abs($)});x.push(T)}),this.negRange=this.helpers.checkColorRange(),f.config.series.forEach(function(E,T){E.data.forEach(function($){Array.isArray(u.labels[T])||(u.labels[T]=[]),u.labels[T].push($.x)})}),window.TreemapSquared.generate(x,f.globals.gridWidth,f.globals.gridHeight).forEach(function(E,T){var $=g.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:_.escapeString(f.globals.seriesNames[T]),rel:T+1,"data:realIndex":T});if(f.config.chart.dropShadow.enabled){var R=f.config.chart.dropShadow;new M(u.ctx).dropShadow(b,R,T)}var N=g.group({class:"apexcharts-data-labels"});E.forEach(function(z,U){var Y=z[0],ne=z[1],le=z[2],he=z[3],A=g.drawRect(Y,ne,le-Y,he-ne,0,"#fff",1,u.strokeWidth,f.config.plotOptions.treemap.useFillColorAsStroke?W:f.globals.stroke.colors[T]);A.attr({cx:Y,cy:ne,index:T,i:T,j:U,width:le-Y,height:he-ne});var P=u.helpers.getShadeColor(f.config.chart.type,T,U,u.negRange),W=P.color;f.config.series[T].data[U]!==void 0&&f.config.series[T].data[U].fillColor&&(W=f.config.series[T].data[U].fillColor);var oe=v.fillPath({color:W,seriesNumber:T,dataPointIndex:U});A.node.classList.add("apexcharts-treemap-rect"),A.attr({fill:oe}),u.helpers.addListeners(A);var pe={x:Y+(le-Y)/2,y:ne+(he-ne)/2,width:0,height:0},ge={x:Y,y:ne,width:le-Y,height:he-ne};if(f.config.chart.animations.enabled&&!f.globals.dataChanged){var ke=1;f.globals.resized||(ke=f.config.chart.animations.speed),u.animateTreemap(A,pe,ge,ke)}if(f.globals.dataChanged){var De=1;u.dynamicAnim.enabled&&f.globals.shouldAnimate&&(De=u.dynamicAnim.speed,f.globals.previousPaths[T]&&f.globals.previousPaths[T][U]&&f.globals.previousPaths[T][U].rect&&(pe=f.globals.previousPaths[T][U].rect),u.animateTreemap(A,pe,ge,De))}var Ge=u.getFontSize(z),Ze=f.config.dataLabels.formatter(u.labels[T][U],{value:f.globals.series[T][U],seriesIndex:T,dataPointIndex:U,w:f}),st=u.helpers.calculateDataLabels({text:Ze,x:(Y+le)/2,y:(ne+he)/2+u.strokeWidth/2+Ge/3,i:T,j:U,colorProps:P,fontSize:Ge,series:c});f.config.dataLabels.enabled&&st&&u.rotateToFitLabel(st,Ge,Ze,Y,ne,le,he),$.add(A),st!==null&&$.add(st)}),$.add(N),b.add($)}),b}},{key:"getFontSize",value:function(c){var u=this.w,f,g,v,b,x=function E(T){var $,R=0;if(Array.isArray(T[0]))for($=0;$<T.length;$++)R+=E(T[$]);else for($=0;$<T.length;$++)R+=T[$].length;return R}(this.labels)/function E(T){var $,R=0;if(Array.isArray(T[0]))for($=0;$<T.length;$++)R+=E(T[$]);else for($=0;$<T.length;$++)R+=1;return R}(this.labels);return f=c[2]-c[0],g=c[3]-c[1],v=f*g,b=Math.pow(v,.5),Math.min(b/x,parseInt(u.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(c,u,f,g,v,b,x){var E=new F(this.ctx),T=E.getTextRects(f,u);if(T.width+this.w.config.stroke.width+5>b-g&&T.width<=x-v){var $=E.rotateAroundCenter(c.node);c.node.setAttribute("transform","rotate(-90 ".concat($.x," ").concat($.y,")"))}}},{key:"animateTreemap",value:function(c,u,f,g){var v=new L(this.ctx);v.animateRect(c,{x:u.x,y:u.y,width:u.width,height:u.height},{x:f.x,y:f.y,width:f.width,height:f.height},g,function(){v.animationCompleted(c)})}}]),re}(),bC=86400,yC=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return a(re,[{key:"calculateTimeScaleTicks",value:function(c,u){var f=this,g=this.w;if(g.globals.allSeriesCollapsed)return g.globals.labels=[],g.globals.timescaleLabels=[],[];var v=new se(this.ctx),b=(u-c)/864e5;this.determineInterval(b),g.globals.disableZoomIn=!1,g.globals.disableZoomOut=!1,b<.00011574074074074075?g.globals.disableZoomIn=!0:b>5e4&&(g.globals.disableZoomOut=!0);var x=v.getTimeUnitsfromTimestamp(c,u,this.utc),E=g.globals.gridWidth/b,T=E/24,$=T/60,R=$/60,N=Math.floor(24*b),z=Math.floor(1440*b),U=Math.floor(b*bC),Y=Math.floor(b),ne=Math.floor(b/30),le=Math.floor(b/365),he={minMillisecond:x.minMillisecond,minSecond:x.minSecond,minMinute:x.minMinute,minHour:x.minHour,minDate:x.minDate,minMonth:x.minMonth,minYear:x.minYear},A={firstVal:he,currentMillisecond:he.minMillisecond,currentSecond:he.minSecond,currentMinute:he.minMinute,currentHour:he.minHour,currentMonthDate:he.minDate,currentDate:he.minDate,currentMonth:he.minMonth,currentYear:he.minYear,daysWidthOnXAxis:E,hoursWidthOnXAxis:T,minutesWidthOnXAxis:$,secondsWidthOnXAxis:R,numberOfSeconds:U,numberOfMinutes:z,numberOfHours:N,numberOfDays:Y,numberOfMonths:ne,numberOfYears:le};switch(this.tickInterval){case"years":this.generateYearScale(A);break;case"months":case"half_year":this.generateMonthScale(A);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(A);break;case"hours":this.generateHourScale(A);break;case"minutes_fives":case"minutes":this.generateMinuteScale(A);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(A)}var P=this.timeScaleArray.map(function(W){var oe={position:W.position,unit:W.unit,year:W.year,day:W.day?W.day:1,hour:W.hour?W.hour:0,month:W.month+1};return W.unit==="month"?r(r({},oe),{},{day:1,value:W.value+1}):W.unit==="day"||W.unit==="hour"?r(r({},oe),{},{value:W.value}):W.unit==="minute"?r(r({},oe),{},{value:W.value,minute:W.value}):W.unit==="second"?r(r({},oe),{},{value:W.value,minute:W.minute,second:W.second}):W});return P.filter(function(W){var oe=1,pe=Math.ceil(g.globals.gridWidth/120),ge=W.value;g.config.xaxis.tickAmount!==void 0&&(pe=g.config.xaxis.tickAmount),P.length>pe&&(oe=Math.floor(P.length/pe));var ke=!1,De=!1;switch(f.tickInterval){case"years":W.unit==="year"&&(ke=!0);break;case"half_year":oe=7,W.unit==="year"&&(ke=!0);break;case"months":oe=1,W.unit==="year"&&(ke=!0);break;case"months_fortnight":oe=15,W.unit!=="year"&&W.unit!=="month"||(ke=!0),ge===30&&(De=!0);break;case"months_days":oe=10,W.unit==="month"&&(ke=!0),ge===30&&(De=!0);break;case"week_days":oe=8,W.unit==="month"&&(ke=!0);break;case"days":oe=1,W.unit==="month"&&(ke=!0);break;case"hours":W.unit==="day"&&(ke=!0);break;case"minutes_fives":case"seconds_fives":ge%5!=0&&(De=!0);break;case"seconds_tens":ge%10!=0&&(De=!0)}if(f.tickInterval==="hours"||f.tickInterval==="minutes_fives"||f.tickInterval==="seconds_tens"||f.tickInterval==="seconds_fives"){if(!De)return!0}else if((ge%oe==0||ke)&&!De)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(c,u){var f=this.w,g=this.formatDates(c),v=this.removeOverlappingTS(g);f.globals.timescaleLabels=v.slice(),new xt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(c){var u=24*c,f=60*u;switch(!0){case c/365>5:this.tickInterval="years";break;case c>800:this.tickInterval="half_year";break;case c>180:this.tickInterval="months";break;case c>90:this.tickInterval="months_fortnight";break;case c>60:this.tickInterval="months_days";break;case c>30:this.tickInterval="week_days";break;case c>2:this.tickInterval="days";break;case u>2.4:this.tickInterval="hours";break;case f>15:this.tickInterval="minutes_fives";break;case f>5:this.tickInterval="minutes";break;case f>1:this.tickInterval="seconds_tens";break;case 60*f>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(c){var u=c.firstVal,f=c.currentMonth,g=c.currentYear,v=c.daysWidthOnXAxis,b=c.numberOfYears,x=u.minYear,E=0,T=new se(this.ctx),$="year";if(u.minDate>1||u.minMonth>0){var R=T.determineRemainingDaysOfYear(u.minYear,u.minMonth,u.minDate);E=(T.determineDaysOfYear(u.minYear)-R+1)*v,x=u.minYear+1,this.timeScaleArray.push({position:E,value:x,unit:$,year:x,month:_.monthMod(f+1)})}else u.minDate===1&&u.minMonth===0&&this.timeScaleArray.push({position:E,value:x,unit:$,year:g,month:_.monthMod(f+1)});for(var N=x,z=E,U=0;U<b;U++)N++,z=T.determineDaysOfYear(N-1)*v+z,this.timeScaleArray.push({position:z,value:N,unit:$,year:N,month:1})}},{key:"generateMonthScale",value:function(c){var u=c.firstVal,f=c.currentMonthDate,g=c.currentMonth,v=c.currentYear,b=c.daysWidthOnXAxis,x=c.numberOfMonths,E=g,T=0,$=new se(this.ctx),R="month",N=0;if(u.minDate>1){T=($.determineDaysOfMonths(g+1,u.minYear)-f+1)*b,E=_.monthMod(g+1);var z=v+N,U=_.monthMod(E),Y=E;E===0&&(R="year",Y=z,U=1,z+=N+=1),this.timeScaleArray.push({position:T,value:Y,unit:R,year:z,month:U})}else this.timeScaleArray.push({position:T,value:E,unit:R,year:v,month:_.monthMod(g)});for(var ne=E+1,le=T,he=0,A=1;he<x;he++,A++){(ne=_.monthMod(ne))===0?(R="year",N+=1):R="month";var P=this._getYear(v,ne,N);le=$.determineDaysOfMonths(ne,P)*b+le;var W=ne===0?P:ne;this.timeScaleArray.push({position:le,value:W,unit:R,year:P,month:ne===0?1:ne}),ne++}}},{key:"generateDayScale",value:function(c){var u=c.firstVal,f=c.currentMonth,g=c.currentYear,v=c.hoursWidthOnXAxis,b=c.numberOfDays,x=new se(this.ctx),E="day",T=u.minDate+1,$=T,R=function(A,P,W){return A>x.determineDaysOfMonths(P+1,W)&&($=1,E="month",z=P+=1),P},N=(24-u.minHour)*v,z=T,U=R($,f,g);u.minHour===0&&u.minDate===1?(N=0,z=_.monthMod(u.minMonth),E="month",$=u.minDate,b++):u.minDate!==1&&u.minHour===0&&u.minMinute===0&&(N=0,T=u.minDate,z=T,U=R($=T,f,g)),this.timeScaleArray.push({position:N,value:z,unit:E,year:this._getYear(g,U,0),month:_.monthMod(U),day:$});for(var Y=N,ne=0;ne<b;ne++){E="day",U=R($+=1,U,this._getYear(g,U,0));var le=this._getYear(g,U,0);Y=24*v+Y;var he=$===1?_.monthMod(U):$;this.timeScaleArray.push({position:Y,value:he,unit:E,year:le,month:_.monthMod(U),day:he})}}},{key:"generateHourScale",value:function(c){var u=c.firstVal,f=c.currentDate,g=c.currentMonth,v=c.currentYear,b=c.minutesWidthOnXAxis,x=c.numberOfHours,E=new se(this.ctx),T="hour",$=function(oe,pe){return oe>E.determineDaysOfMonths(pe+1,v)&&(ne=1,pe+=1),{month:pe,date:ne}},R=function(oe,pe){return oe>E.determineDaysOfMonths(pe+1,v)?pe+=1:pe},N=60-(u.minMinute+u.minSecond/60),z=N*b,U=u.minHour+1,Y=U+1;N===60&&(z=0,Y=(U=u.minHour)+1);var ne=f,le=R(ne,g);this.timeScaleArray.push({position:z,value:U,unit:T,day:ne,hour:Y,year:v,month:_.monthMod(le)});for(var he=z,A=0;A<x;A++){T="hour",Y>=24&&(Y=0,T="day",le=$(ne+=1,le).month,le=R(ne,le));var P=this._getYear(v,le,0);he=60*b+he;var W=Y===0?ne:Y;this.timeScaleArray.push({position:he,value:W,unit:T,hour:Y,day:ne,year:P,month:_.monthMod(le)}),Y++}}},{key:"generateMinuteScale",value:function(c){for(var u=c.currentMillisecond,f=c.currentSecond,g=c.currentMinute,v=c.currentHour,b=c.currentDate,x=c.currentMonth,E=c.currentYear,T=c.minutesWidthOnXAxis,$=c.secondsWidthOnXAxis,R=c.numberOfMinutes,N=g+1,z=b,U=x,Y=E,ne=v,le=(60-f-u/1e3)*$,he=0;he<R;he++)N>=60&&(N=0,(ne+=1)===24&&(ne=0)),this.timeScaleArray.push({position:le,value:N,unit:"minute",hour:ne,minute:N,day:z,year:this._getYear(Y,U,0),month:_.monthMod(U)}),le+=T,N++}},{key:"generateSecondScale",value:function(c){for(var u=c.currentMillisecond,f=c.currentSecond,g=c.currentMinute,v=c.currentHour,b=c.currentDate,x=c.currentMonth,E=c.currentYear,T=c.secondsWidthOnXAxis,$=c.numberOfSeconds,R=f+1,N=g,z=b,U=x,Y=E,ne=v,le=(1e3-u)/1e3*T,he=0;he<$;he++)R>=60&&(R=0,++N>=60&&(N=0,++ne===24&&(ne=0))),this.timeScaleArray.push({position:le,value:R,unit:"second",hour:ne,minute:N,second:R,day:z,year:this._getYear(Y,U,0),month:_.monthMod(U)}),le+=T,R++}},{key:"createRawDateString",value:function(c,u){var f=c.year;return c.month===0&&(c.month=1),f+="-"+("0"+c.month.toString()).slice(-2),c.unit==="day"?f+=c.unit==="day"?"-"+("0"+u).slice(-2):"-01":f+="-"+("0"+(c.day?c.day:"1")).slice(-2),c.unit==="hour"?f+=c.unit==="hour"?"T"+("0"+u).slice(-2):"T00":f+="T"+("0"+(c.hour?c.hour:"0")).slice(-2),c.unit==="minute"?f+=":"+("0"+u).slice(-2):f+=":"+(c.minute?("0"+c.minute).slice(-2):"00"),c.unit==="second"?f+=":"+("0"+u).slice(-2):f+=":00",this.utc&&(f+=".000Z"),f}},{key:"formatDates",value:function(c){var u=this,f=this.w;return c.map(function(g){var v=g.value.toString(),b=new se(u.ctx),x=u.createRawDateString(g,v),E=b.getDate(b.parseDate(x));if(u.utc||(E=b.getDate(b.parseDateWithTimezone(x))),f.config.xaxis.labels.format===void 0){var T="dd MMM",$=f.config.xaxis.labels.datetimeFormatter;g.unit==="year"&&(T=$.year),g.unit==="month"&&(T=$.month),g.unit==="day"&&(T=$.day),g.unit==="hour"&&(T=$.hour),g.unit==="minute"&&(T=$.minute),g.unit==="second"&&(T=$.second),v=b.formatDate(E,T)}else v=b.formatDate(E,f.config.xaxis.labels.format);return{dateString:x,position:g.position,value:v,unit:g.unit,year:g.year,month:g.month}})}},{key:"removeOverlappingTS",value:function(c){var u,f=this,g=new F(this.ctx),v=!1;c.length>0&&c[0].value&&c.every(function(E){return E.value.length===c[0].value.length})&&(v=!0,u=g.getTextRects(c[0].value).width);var b=0,x=c.map(function(E,T){if(T>0&&f.w.config.xaxis.labels.hideOverlappingLabels){var $=v?u:g.getTextRects(c[b].value).width,R=c[b].position;return E.position>R+$+10?(b=T,E):null}return E});return x=x.filter(function(E){return E!==null})}},{key:"_getYear",value:function(c,u,f){return c+Math.floor(u/12)+f}}]),re}(),xC=function(){function re(c,u){o(this,re),this.ctx=u,this.w=u.w,this.el=c}return a(re,[{key:"setupElements",value:function(){var c=this.w.globals,u=this.w.config,f=u.chart.type;c.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(f)>-1,c.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(f)>-1,c.isBarHorizontal=(u.chart.type==="bar"||u.chart.type==="rangeBar"||u.chart.type==="boxPlot")&&u.plotOptions.bar.horizontal,c.chartClass=".apexcharts"+c.chartID,c.dom.baseEl=this.el,c.dom.elWrap=document.createElement("div"),F.setAttrs(c.dom.elWrap,{id:c.chartClass.substring(1),class:"apexcharts-canvas "+c.chartClass.substring(1)}),this.el.appendChild(c.dom.elWrap),c.dom.Paper=new window.SVG.Doc(c.dom.elWrap),c.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(u.chart.offsetX,", ").concat(u.chart.offsetY,")")}),c.dom.Paper.node.style.background=u.chart.background,this.setSVGDimensions(),c.dom.elGraphical=c.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),c.dom.elAnnotations=c.dom.Paper.group().attr({class:"apexcharts-annotations"}),c.dom.elDefs=c.dom.Paper.defs(),c.dom.elLegendWrap=document.createElement("div"),c.dom.elLegendWrap.classList.add("apexcharts-legend"),c.dom.elWrap.appendChild(c.dom.elLegendWrap),c.dom.Paper.add(c.dom.elGraphical),c.dom.elGraphical.add(c.dom.elDefs)}},{key:"plotChartType",value:function(c,u){var f=this.w,g=f.config,v=f.globals,b={series:[],i:[]},x={series:[],i:[]},E={series:[],i:[]},T={series:[],i:[]},$={series:[],i:[]},R={series:[],i:[]},N={series:[],i:[]},z={series:[],i:[]},U={series:[],seriesRangeEnd:[],i:[]};v.series.map(function(pe,ge){var ke=0;c[ge].type!==void 0?(c[ge].type==="column"||c[ge].type==="bar"?(v.series.length>1&&g.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),$.series.push(pe),$.i.push(ge),ke++,f.globals.columnSeries=$.series):c[ge].type==="area"?(x.series.push(pe),x.i.push(ge),ke++):c[ge].type==="line"?(b.series.push(pe),b.i.push(ge),ke++):c[ge].type==="scatter"?(E.series.push(pe),E.i.push(ge)):c[ge].type==="bubble"?(T.series.push(pe),T.i.push(ge),ke++):c[ge].type==="candlestick"?(R.series.push(pe),R.i.push(ge),ke++):c[ge].type==="boxPlot"?(N.series.push(pe),N.i.push(ge),ke++):c[ge].type==="rangeBar"?(z.series.push(pe),z.i.push(ge),ke++):c[ge].type==="rangeArea"?(U.series.push(v.seriesRangeStart[ge]),U.seriesRangeEnd.push(v.seriesRangeEnd[ge]),U.i.push(ge),ke++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),ke>1&&(v.comboCharts=!0)):(b.series.push(pe),b.i.push(ge))});var Y=new Zu(this.ctx,u),ne=new Bt(this.ctx,u);this.ctx.pie=new _i(this.ctx);var le=new Ju(this.ctx);this.ctx.rangeBar=new xc(this.ctx,u);var he=new Ff(this.ctx),A=[];if(v.comboCharts){if(x.series.length>0&&A.push(Y.draw(x.series,"area",x.i)),$.series.length>0)if(f.config.chart.stacked){var P=new Mt(this.ctx,u);A.push(P.draw($.series,$.i))}else this.ctx.bar=new bt(this.ctx,u),A.push(this.ctx.bar.draw($.series,$.i));if(U.series.length>0&&A.push(Y.draw(U.series,"rangeArea",U.i,U.seriesRangeEnd)),b.series.length>0&&A.push(Y.draw(b.series,"line",b.i)),R.series.length>0&&A.push(ne.draw(R.series,"candlestick",R.i)),N.series.length>0&&A.push(ne.draw(N.series,"boxPlot",N.i)),z.series.length>0&&A.push(this.ctx.rangeBar.draw(z.series,z.i)),E.series.length>0){var W=new Zu(this.ctx,u,!0);A.push(W.draw(E.series,"scatter",E.i))}if(T.series.length>0){var oe=new Zu(this.ctx,u,!0);A.push(oe.draw(T.series,"bubble",T.i))}}else switch(g.chart.type){case"line":A=Y.draw(v.series,"line");break;case"area":A=Y.draw(v.series,"area");break;case"bar":g.chart.stacked?A=new Mt(this.ctx,u).draw(v.series):(this.ctx.bar=new bt(this.ctx,u),A=this.ctx.bar.draw(v.series));break;case"candlestick":A=new Bt(this.ctx,u).draw(v.series,"candlestick");break;case"boxPlot":A=new Bt(this.ctx,u).draw(v.series,"boxPlot");break;case"rangeBar":A=this.ctx.rangeBar.draw(v.series);break;case"rangeArea":A=Y.draw(v.seriesRangeStart,"rangeArea",void 0,v.seriesRangeEnd);break;case"heatmap":A=new ui(this.ctx,u).draw(v.series);break;case"treemap":A=new vC(this.ctx,u).draw(v.series);break;case"pie":case"donut":case"polarArea":A=this.ctx.pie.draw(v.series);break;case"radialBar":A=le.draw(v.series);break;case"radar":A=he.draw(v.series);break;default:A=Y.draw(v.series)}return A}},{key:"setSVGDimensions",value:function(){var c=this.w.globals,u=this.w.config;c.svgWidth=u.chart.width,c.svgHeight=u.chart.height;var f=_.getDimensions(this.el),g=u.chart.width.toString().split(/[0-9]+/g).pop();g==="%"?_.isNumber(f[0])&&(f[0].width===0&&(f=_.getDimensions(this.el.parentNode)),c.svgWidth=f[0]*parseInt(u.chart.width,10)/100):g!=="px"&&g!==""||(c.svgWidth=parseInt(u.chart.width,10));var v=u.chart.height.toString().split(/[0-9]+/g).pop();if(c.svgHeight!=="auto"&&c.svgHeight!=="")if(v==="%"){var b=_.getDimensions(this.el.parentNode);c.svgHeight=b[1]*parseInt(u.chart.height,10)/100}else c.svgHeight=parseInt(u.chart.height,10);else c.axisCharts?c.svgHeight=c.svgWidth/1.61:c.svgHeight=c.svgWidth/1.2;if(c.svgWidth<0&&(c.svgWidth=0),c.svgHeight<0&&(c.svgHeight=0),F.setAttrs(c.dom.Paper.node,{width:c.svgWidth,height:c.svgHeight}),v!=="%"){var x=u.chart.sparkline.enabled?0:c.axisCharts?u.chart.parentHeightOffset:0;c.dom.Paper.node.parentNode.parentNode.style.minHeight=c.svgHeight+x+"px"}c.dom.elWrap.style.width=c.svgWidth+"px",c.dom.elWrap.style.height=c.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var c=this.w.globals,u=c.translateY,f={transform:"translate("+c.translateX+", "+u+")"};F.setAttrs(c.dom.elGraphical.node,f)}},{key:"resizeNonAxisCharts",value:function(){var c=this.w,u=c.globals,f=0,g=c.config.chart.sparkline.enabled?1:15;g+=c.config.grid.padding.bottom,c.config.legend.position!=="top"&&c.config.legend.position!=="bottom"||!c.config.legend.show||c.config.legend.floating||(f=new It(this.ctx).legendHelpers.getLegendBBox().clwh+10);var v=c.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),b=2.05*c.globals.radialSize;if(v&&!c.config.chart.sparkline.enabled&&c.config.plotOptions.radialBar.startAngle!==0){var x=_.getBoundingClientRect(v);b=x.bottom;var E=x.bottom-x.top;b=Math.max(2.05*c.globals.radialSize,E)}var T=b+u.translateY+f+g;u.dom.elLegendForeign&&u.dom.elLegendForeign.setAttribute("height",T),c.config.chart.height&&String(c.config.chart.height).indexOf("%")>0||(u.dom.elWrap.style.height=T+"px",F.setAttrs(u.dom.Paper.node,{height:T}),u.dom.Paper.node.parentNode.parentNode.style.minHeight=T+"px")}},{key:"coreCalculations",value:function(){new K(this.ctx).init()}},{key:"resetGlobals",value:function(){var c=this,u=function(){return c.w.config.series.map(function(v){return[]})},f=new fe,g=this.w.globals;f.initGlobalVars(g),g.seriesXvalues=u(),g.seriesYvalues=u()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var c=null,u=this.w;if(u.globals.axisCharts){if(u.config.xaxis.crosshairs.position==="back"&&new He(this.ctx).drawXCrosshairs(),u.config.yaxis[0].crosshairs.position==="back"&&new He(this.ctx).drawYCrosshairs(),u.config.xaxis.type==="datetime"&&u.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new yC(this.ctx);var f=[];isFinite(u.globals.minX)&&isFinite(u.globals.maxX)&&!u.globals.isBarHorizontal?f=this.ctx.timeScale.calculateTimeScaleTicks(u.globals.minX,u.globals.maxX):u.globals.isBarHorizontal&&(f=this.ctx.timeScale.calculateTimeScaleTicks(u.globals.minY,u.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(f)}c=new H(this.ctx).getCalculatedRatios()}return c}},{key:"updateSourceChart",value:function(c){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:c.w.globals.minX,max:c.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var c=this,u=this.w;if(u.config.chart.brush.enabled&&typeof u.config.chart.events.selection!="function"){var f=u.config.chart.brush.targets||[u.config.chart.brush.target];f.forEach(function(g){var v=ApexCharts.getChartByID(g);v.w.globals.brushSource=c.ctx,typeof v.w.config.chart.events.zoomed!="function"&&(v.w.config.chart.events.zoomed=function(){c.updateSourceChart(v)}),typeof v.w.config.chart.events.scrolled!="function"&&(v.w.config.chart.events.scrolled=function(){c.updateSourceChart(v)})}),u.config.chart.events.selection=function(g,v){f.forEach(function(b){var x=ApexCharts.getChartByID(b),E=_.clone(u.config.yaxis);if(u.config.chart.brush.autoScaleYaxis&&x.w.globals.series.length===1){var T=new qe(x);E=T.autoScaleY(x,E,v)}var $=x.w.config.yaxis.reduce(function(R,N,z){return[].concat(k(R),[r(r({},x.w.config.yaxis[z]),{},{min:E[0].min,max:E[0].max})])},[]);x.ctx.updateHelpers._updateOptions({xaxis:{min:v.xaxis.min,max:v.xaxis.max},yaxis:$},!1,!1,!1,!1)})}}}}]),re}(),wC=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"_updateOptions",value:function(c){var u=this,f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],v=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(x){var E=[u.ctx];v&&(E=u.ctx.getSyncedCharts()),u.ctx.w.globals.isExecCalled&&(E=[u.ctx],u.ctx.w.globals.isExecCalled=!1),E.forEach(function(T,$){var R=T.w;if(R.globals.shouldAnimate=g,f||(R.globals.resized=!0,R.globals.dataChanged=!0,g&&T.series.getPreviousPaths()),c&&i(c)==="object"&&(T.config=new ce(c),c=H.extendArrayProps(T.config,c,R),T.w.globals.chartID!==u.ctx.w.globals.chartID&&delete c.series,R.config=_.extend(R.config,c),b&&(R.globals.lastXAxis=c.xaxis?_.clone(c.xaxis):[],R.globals.lastYAxis=c.yaxis?_.clone(c.yaxis):[],R.globals.initialConfig=_.extend({},R.config),R.globals.initialSeries=_.clone(R.config.series),c.series))){for(var N=0;N<R.globals.collapsedSeriesIndices.length;N++){var z=R.config.series[R.globals.collapsedSeriesIndices[N]];R.globals.collapsedSeries[N].data=R.globals.axisCharts?z.data.slice():z}for(var U=0;U<R.globals.ancillaryCollapsedSeriesIndices.length;U++){var Y=R.config.series[R.globals.ancillaryCollapsedSeriesIndices[U]];R.globals.ancillaryCollapsedSeries[U].data=R.globals.axisCharts?Y.data.slice():Y}T.series.emptyCollapsedSeries(R.config.series)}return T.update(c).then(function(){$===E.length-1&&x(T)})})})}},{key:"_updateSeries",value:function(c,u){var f=this,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(v){var b,x=f.w;return x.globals.shouldAnimate=u,x.globals.dataChanged=!0,u&&f.ctx.series.getPreviousPaths(),x.globals.axisCharts?((b=c.map(function(E,T){return f._extendSeries(E,T)})).length===0&&(b=[{data:[]}]),x.config.series=b):x.config.series=c.slice(),g&&(x.globals.initialConfig.series=_.clone(x.config.series),x.globals.initialSeries=_.clone(x.config.series)),f.ctx.update().then(function(){v(f.ctx)})})}},{key:"_extendSeries",value:function(c,u){var f=this.w,g=f.config.series[u];return r(r({},f.config.series[u]),{},{name:c.name?c.name:g&&g.name,color:c.color?c.color:g&&g.color,type:c.type?c.type:g&&g.type,data:c.data?c.data:g&&g.data})}},{key:"toggleDataPointSelection",value:function(c,u){var f=this.w,g=null,v=".apexcharts-series[data\\:realIndex='".concat(c,"']");return f.globals.axisCharts?g=f.globals.dom.Paper.select("".concat(v," path[j='").concat(u,"'], ").concat(v," circle[j='").concat(u,"'], ").concat(v," rect[j='").concat(u,"']")).members[0]:u===void 0&&(g=f.globals.dom.Paper.select("".concat(v," path[j='").concat(c,"']")).members[0],f.config.chart.type!=="pie"&&f.config.chart.type!=="polarArea"&&f.config.chart.type!=="donut"||this.ctx.pie.pieClicked(c)),g?(new F(this.ctx).pathMouseDown(g,null),g.node?g.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(c){var u=this.w;if(["min","max"].forEach(function(g){c.xaxis[g]!==void 0&&(u.config.xaxis[g]=c.xaxis[g],u.globals.lastXAxis[g]=c.xaxis[g])}),c.xaxis.categories&&c.xaxis.categories.length&&(u.config.xaxis.categories=c.xaxis.categories),u.config.xaxis.convertedCatToNumeric){var f=new q(c);c=f.convertCatToNumericXaxis(c,this.ctx)}return c}},{key:"forceYAxisUpdate",value:function(c){return c.chart&&c.chart.stacked&&c.chart.stackType==="100%"&&(Array.isArray(c.yaxis)?c.yaxis.forEach(function(u,f){c.yaxis[f].min=0,c.yaxis[f].max=100}):(c.yaxis.min=0,c.yaxis.max=100)),c}},{key:"revertDefaultAxisMinMax",value:function(c){var u=this,f=this.w,g=f.globals.lastXAxis,v=f.globals.lastYAxis;c&&c.xaxis&&(g=c.xaxis),c&&c.yaxis&&(v=c.yaxis),f.config.xaxis.min=g.min,f.config.xaxis.max=g.max;var b=function(x){v[x]!==void 0&&(f.config.yaxis[x].min=v[x].min,f.config.yaxis[x].max=v[x].max)};f.config.yaxis.map(function(x,E){f.globals.zoomed||v[E]!==void 0?b(E):u.ctx.opts.yaxis[E]!==void 0&&(x.min=u.ctx.opts.yaxis[E].min,x.max=u.ctx.opts.yaxis[E].max)})}}]),re}();ol=typeof window<"u"?window:void 0,wc=function(re,c){var u=(this!==void 0?this:re).SVG=function(A){if(u.supported)return A=new u.Doc(A),u.parser.draw||u.prepare(),A};if(u.ns="http://www.w3.org/2000/svg",u.xmlns="http://www.w3.org/2000/xmlns/",u.xlink="http://www.w3.org/1999/xlink",u.svgjs="http://svgjs.dev",u.supported=!0,!u.supported)return!1;u.did=1e3,u.eid=function(A){return"Svgjs"+$(A)+u.did++},u.create=function(A){var P=c.createElementNS(this.ns,A);return P.setAttribute("id",this.eid(A)),P},u.extend=function(){var A,P;P=(A=[].slice.call(arguments)).pop();for(var W=A.length-1;W>=0;W--)if(A[W])for(var oe in P)A[W].prototype[oe]=P[oe];u.Set&&u.Set.inherit&&u.Set.inherit()},u.invent=function(A){var P=typeof A.create=="function"?A.create:function(){this.constructor.call(this,u.create(A.create))};return A.inherit&&(P.prototype=new A.inherit),A.extend&&u.extend(P,A.extend),A.construct&&u.extend(A.parent||u.Container,A.construct),P},u.adopt=function(A){return A?A.instance?A.instance:((P=A.nodeName=="svg"?A.parentNode instanceof re.SVGElement?new u.Nested:new u.Doc:A.nodeName=="linearGradient"?new u.Gradient("linear"):A.nodeName=="radialGradient"?new u.Gradient("radial"):u[$(A.nodeName)]?new u[$(A.nodeName)]:new u.Element(A)).type=A.nodeName,P.node=A,A.instance=P,P instanceof u.Doc&&P.namespace().defs(),P.setData(JSON.parse(A.getAttribute("svgjs:data"))||{}),P):null;var P},u.prepare=function(){var A=c.getElementsByTagName("body")[0],P=(A?new u.Doc(A):u.adopt(c.documentElement).nested()).size(2,0);u.parser={body:A||c.documentElement,draw:P.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:P.polyline().node,path:P.path().node,native:u.create("svg")}},u.parser={native:u.create("svg")},c.addEventListener("DOMContentLoaded",function(){u.parser.draw||u.prepare()},!1),u.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},u.utils={map:function(A,P){for(var W=A.length,oe=[],pe=0;pe<W;pe++)oe.push(P(A[pe]));return oe},filter:function(A,P){for(var W=A.length,oe=[],pe=0;pe<W;pe++)P(A[pe])&&oe.push(A[pe]);return oe},filterSVGElements:function(A){return this.filter(A,function(P){return P instanceof re.SVGElement})}},u.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},u.Color=function(A){var P,W;this.r=0,this.g=0,this.b=0,A&&(typeof A=="string"?u.regex.isRgb.test(A)?(P=u.regex.rgb.exec(A.replace(u.regex.whitespace,"")),this.r=parseInt(P[1]),this.g=parseInt(P[2]),this.b=parseInt(P[3])):u.regex.isHex.test(A)&&(P=u.regex.hex.exec((W=A).length==4?["#",W.substring(1,2),W.substring(1,2),W.substring(2,3),W.substring(2,3),W.substring(3,4),W.substring(3,4)].join(""):W),this.r=parseInt(P[1],16),this.g=parseInt(P[2],16),this.b=parseInt(P[3],16)):i(A)==="object"&&(this.r=A.r,this.g=A.g,this.b=A.b))},u.extend(u.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+R(this.r)+R(this.g)+R(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(A){return this.destination=new u.Color(A),this},at:function(A){return this.destination?(A=A<0?0:A>1?1:A,new u.Color({r:~~(this.r+(this.destination.r-this.r)*A),g:~~(this.g+(this.destination.g-this.g)*A),b:~~(this.b+(this.destination.b-this.b)*A)})):this}}),u.Color.test=function(A){return A+="",u.regex.isHex.test(A)||u.regex.isRgb.test(A)},u.Color.isRgb=function(A){return A&&typeof A.r=="number"&&typeof A.g=="number"&&typeof A.b=="number"},u.Color.isColor=function(A){return u.Color.isRgb(A)||u.Color.test(A)},u.Array=function(A,P){(A=(A||[]).valueOf()).length==0&&P&&(A=P.valueOf()),this.value=this.parse(A)},u.extend(u.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(A){return A=A.valueOf(),Array.isArray(A)?A:this.split(A)}}),u.PointArray=function(A,P){u.Array.call(this,A,P||[[0,0]])},u.PointArray.prototype=new u.Array,u.PointArray.prototype.constructor=u.PointArray;for(var f={M:function(A,P,W){return P.x=W.x=A[0],P.y=W.y=A[1],["M",P.x,P.y]},L:function(A,P){return P.x=A[0],P.y=A[1],["L",A[0],A[1]]},H:function(A,P){return P.x=A[0],["H",A[0]]},V:function(A,P){return P.y=A[0],["V",A[0]]},C:function(A,P){return P.x=A[4],P.y=A[5],["C",A[0],A[1],A[2],A[3],A[4],A[5]]},Q:function(A,P){return P.x=A[2],P.y=A[3],["Q",A[0],A[1],A[2],A[3]]},Z:function(A,P,W){return P.x=W.x,P.y=W.y,["Z"]}},g="mlhvqtcsaz".split(""),v=0,b=g.length;v<b;++v)f[g[v]]=function(A){return function(P,W,oe){if(A=="H")P[0]=P[0]+W.x;else if(A=="V")P[0]=P[0]+W.y;else if(A=="A")P[5]=P[5]+W.x,P[6]=P[6]+W.y;else for(var pe=0,ge=P.length;pe<ge;++pe)P[pe]=P[pe]+(pe%2?W.y:W.x);if(f&&typeof f[A]=="function")return f[A](P,W,oe)}}(g[v].toUpperCase());u.PathArray=function(A,P){u.Array.call(this,A,P||[["M",0,0]])},u.PathArray.prototype=new u.Array,u.PathArray.prototype.constructor=u.PathArray,u.extend(u.PathArray,{toString:function(){return function(A){for(var P=0,W=A.length,oe="";P<W;P++)oe+=A[P][0],A[P][1]!=null&&(oe+=A[P][1],A[P][2]!=null&&(oe+=" ",oe+=A[P][2],A[P][3]!=null&&(oe+=" ",oe+=A[P][3],oe+=" ",oe+=A[P][4],A[P][5]!=null&&(oe+=" ",oe+=A[P][5],oe+=" ",oe+=A[P][6],A[P][7]!=null&&(oe+=" ",oe+=A[P][7])))));return oe+" "}(this.value)},move:function(A,P){var W=this.bbox();return W.x,W.y,this},at:function(A){if(!this.destination)return this;for(var P=this.value,W=this.destination.value,oe=[],pe=new u.PathArray,ge=0,ke=P.length;ge<ke;ge++){oe[ge]=[P[ge][0]];for(var De=1,Ge=P[ge].length;De<Ge;De++)oe[ge][De]=P[ge][De]+(W[ge][De]-P[ge][De])*A;oe[ge][0]==="A"&&(oe[ge][4]=+(oe[ge][4]!=0),oe[ge][5]=+(oe[ge][5]!=0))}return pe.value=oe,pe},parse:function(A){if(A instanceof u.PathArray)return A.valueOf();var P,W={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};A=typeof A=="string"?A.replace(u.regex.numbersWithDots,E).replace(u.regex.pathLetters," $& ").replace(u.regex.hyphen,"$1 -").trim().split(u.regex.delimiter):A.reduce(function(Ge,Ze){return[].concat.call(Ge,Ze)},[]);var oe=[],pe=new u.Point,ge=new u.Point,ke=0,De=A.length;do u.regex.isPathLetter.test(A[ke])?(P=A[ke],++ke):P=="M"?P="L":P=="m"&&(P="l"),oe.push(f[P].call(null,A.slice(ke,ke+=W[P.toUpperCase()]).map(parseFloat),pe,ge));while(De>ke);return oe},bbox:function(){return u.parser.draw||u.prepare(),u.parser.path.setAttribute("d",this.toString()),u.parser.path.getBBox()}}),u.Number=u.invent({create:function(A,P){this.value=0,this.unit=P||"",typeof A=="number"?this.value=isNaN(A)?0:isFinite(A)?A:A<0?-34e37:34e37:typeof A=="string"?(P=A.match(u.regex.numberAndUnit))&&(this.value=parseFloat(P[1]),P[5]=="%"?this.value/=100:P[5]=="s"&&(this.value*=1e3),this.unit=P[5]):A instanceof u.Number&&(this.value=A.valueOf(),this.unit=A.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(A){return A=new u.Number(A),new u.Number(this+A,this.unit||A.unit)},minus:function(A){return A=new u.Number(A),new u.Number(this-A,this.unit||A.unit)},times:function(A){return A=new u.Number(A),new u.Number(this*A,this.unit||A.unit)},divide:function(A){return A=new u.Number(A),new u.Number(this/A,this.unit||A.unit)},to:function(A){var P=new u.Number(this);return typeof A=="string"&&(P.unit=A),P},morph:function(A){return this.destination=new u.Number(A),A.relative&&(this.destination.value+=this.value),this},at:function(A){return this.destination?new u.Number(this.destination).minus(this).times(A).plus(this):this}}}),u.Element=u.invent({create:function(A){this._stroke=u.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=A)&&(this.type=A.nodeName,this.node.instance=this,this._stroke=A.getAttribute("stroke")||this._stroke)},extend:{x:function(A){return this.attr("x",A)},y:function(A){return this.attr("y",A)},cx:function(A){return A==null?this.x()+this.width()/2:this.x(A-this.width()/2)},cy:function(A){return A==null?this.y()+this.height()/2:this.y(A-this.height()/2)},move:function(A,P){return this.x(A).y(P)},center:function(A,P){return this.cx(A).cy(P)},width:function(A){return this.attr("width",A)},height:function(A){return this.attr("height",A)},size:function(A,P){var W=N(this,A,P);return this.width(new u.Number(W.width)).height(new u.Number(W.height))},clone:function(A){this.writeDataToDom();var P=Y(this.node.cloneNode(!0));return A?A.add(P):this.after(P),P},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(A){return this.after(A).remove(),A},addTo:function(A){return A.put(this)},putIn:function(A){return A.add(this)},id:function(A){return this.attr("id",A)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var A=this.attr("class");return A==null?[]:A.trim().split(u.regex.delimiter)},hasClass:function(A){return this.classes().indexOf(A)!=-1},addClass:function(A){if(!this.hasClass(A)){var P=this.classes();P.push(A),this.attr("class",P.join(" "))}return this},removeClass:function(A){return this.hasClass(A)&&this.attr("class",this.classes().filter(function(P){return P!=A}).join(" ")),this},toggleClass:function(A){return this.hasClass(A)?this.removeClass(A):this.addClass(A)},reference:function(A){return u.get(this.attr(A))},parent:function(A){var P=this;if(!P.node.parentNode)return null;if(P=u.adopt(P.node.parentNode),!A)return P;for(;P&&P.node instanceof re.SVGElement;){if(typeof A=="string"?P.matches(A):P instanceof A)return P;if(!P.node.parentNode||P.node.parentNode.nodeName=="#document")return null;P=u.adopt(P.node.parentNode)}},doc:function(){return this instanceof u.Doc?this:this.parent(u.Doc)},parents:function(A){var P=[],W=this;do{if(!(W=W.parent(A))||!W.node)break;P.push(W)}while(W.parent);return P},matches:function(A){return function(P,W){return(P.matches||P.matchesSelector||P.msMatchesSelector||P.mozMatchesSelector||P.webkitMatchesSelector||P.oMatchesSelector).call(P,W)}(this.node,A)},native:function(){return this.node},svg:function(A){var P=c.createElement("svg");if(!(A&&this instanceof u.Parent))return P.appendChild(A=c.createElement("svg")),this.writeDataToDom(),A.appendChild(this.node.cloneNode(!0)),P.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");P.innerHTML="<svg>"+A.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var W=0,oe=P.firstChild.childNodes.length;W<oe;W++)this.node.appendChild(P.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(A){return this.dom=A,this},is:function(A){return function(P,W){return P instanceof W}(this,A)}}}),u.easing={"-":function(A){return A},"<>":function(A){return-Math.cos(A*Math.PI)/2+.5},">":function(A){return Math.sin(A*Math.PI/2)},"<":function(A){return 1-Math.cos(A*Math.PI/2)}},u.morph=function(A){return function(P,W){return new u.MorphObj(P,W).at(A)}},u.Situation=u.invent({create:function(A){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new u.Number(A.duration).valueOf(),this.delay=new u.Number(A.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=A.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),u.FX=u.invent({create:function(A){this._target=A,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(A,P,W){i(A)==="object"&&(P=A.ease,W=A.delay,A=A.duration);var oe=new u.Situation({duration:A||1e3,delay:W||0,ease:u.easing[P||"-"]||P});return this.queue(oe),this},target:function(A){return A&&A instanceof u.Element?(this._target=A,this):this._target},timeToAbsPos:function(A){return(A-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(A){return this.situation.duration/this._speed*A+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=re.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){re.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(A){return(typeof A=="function"||A instanceof u.Situation)&&this.situations.push(A),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof u.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var A,P=this.situation;if(P.init)return this;for(var W in P.animations){A=this.target()[W](),Array.isArray(A)||(A=[A]),Array.isArray(P.animations[W])||(P.animations[W]=[P.animations[W]]);for(var oe=A.length;oe--;)P.animations[W][oe]instanceof u.Number&&(A[oe]=new u.Number(A[oe])),P.animations[W][oe]=A[oe].morph(P.animations[W][oe])}for(var W in P.attrs)P.attrs[W]=new u.MorphObj(this.target().attr(W),P.attrs[W]);for(var W in P.styles)P.styles[W]=new u.MorphObj(this.target().style(W),P.styles[W]);return P.initialTransformation=this.target().matrixify(),P.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(A,P){var W=this.active;return this.active=!1,P&&this.clearQueue(),A&&this.situation&&(!W&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(A){var P=this.last();return this.target().on("finished.fx",function W(oe){oe.detail.situation==P&&(A.call(this,P),this.off("finished.fx",W))}),this._callStart()},during:function(A){var P=this.last(),W=function(oe){oe.detail.situation==P&&A.call(this,oe.detail.pos,u.morph(oe.detail.pos),oe.detail.eased,P)};return this.target().off("during.fx",W).on("during.fx",W),this.after(function(){this.off("during.fx",W)}),this._callStart()},afterAll:function(A){var P=function W(oe){A.call(this),this.off("allfinished.fx",W)};return this.target().off("allfinished.fx",P).on("allfinished.fx",P),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(A,P,W){return this.last()[W||"animations"][A]=P,this._callStart()},step:function(A){var P,W,oe;A||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(P=Math.max(this.absPos,0),W=Math.floor(P),this.situation.loops===!0||W<this.situation.loops?(this.pos=P-W,oe=this.situation.loop,this.situation.loop=W):(this.absPos=this.situation.loops,this.pos=1,oe=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-oe)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var pe=this.situation.ease(this.pos);for(var ge in this.situation.once)ge>this.lastPos&&ge<=pe&&(this.situation.once[ge].call(this.target(),this.pos,pe),delete this.situation.once[ge]);return this.active&&this.target().fire("during",{pos:this.pos,eased:pe,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=pe,this):this},eachAt:function(){var A,P=this,W=this.target(),oe=this.situation;for(var pe in oe.animations)A=[].concat(oe.animations[pe]).map(function(De){return typeof De!="string"&&De.at?De.at(oe.ease(P.pos),P.pos):De}),W[pe].apply(W,A);for(var pe in oe.attrs)A=[pe].concat(oe.attrs[pe]).map(function(Ge){return typeof Ge!="string"&&Ge.at?Ge.at(oe.ease(P.pos),P.pos):Ge}),W.attr.apply(W,A);for(var pe in oe.styles)A=[pe].concat(oe.styles[pe]).map(function(Ge){return typeof Ge!="string"&&Ge.at?Ge.at(oe.ease(P.pos),P.pos):Ge}),W.style.apply(W,A);if(oe.transforms.length){A=oe.initialTransformation,pe=0;for(var ge=oe.transforms.length;pe<ge;pe++){var ke=oe.transforms[pe];ke instanceof u.Matrix?A=ke.relative?A.multiply(new u.Matrix().morph(ke).at(oe.ease(this.pos))):A.morph(ke).at(oe.ease(this.pos)):(ke.relative||ke.undo(A.extract()),A=A.multiply(ke.at(oe.ease(this.pos))))}W.matrix(A)}return this},once:function(A,P,W){var oe=this.last();return W||(A=oe.ease(A)),oe.once[A]=P,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:u.Element,construct:{animate:function(A,P,W){return(this.fx||(this.fx=new u.FX(this))).animate(A,P,W)},delay:function(A){return(this.fx||(this.fx=new u.FX(this))).delay(A)},stop:function(A,P){return this.fx&&this.fx.stop(A,P),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),u.MorphObj=u.invent({create:function(A,P){return u.Color.isColor(P)?new u.Color(A).morph(P):u.regex.delimiter.test(A)?u.regex.pathLetters.test(A)?new u.PathArray(A).morph(P):new u.Array(A).morph(P):u.regex.numberAndUnit.test(P)?new u.Number(A).morph(P):(this.value=A,void(this.destination=P))},extend:{at:function(A,P){return P<1?this.value:this.destination},valueOf:function(){return this.value}}}),u.extend(u.FX,{attr:function(A,P,W){if(i(A)==="object")for(var oe in A)this.attr(oe,A[oe]);else this.add(A,P,"attrs");return this},plot:function(A,P,W,oe){return arguments.length==4?this.plot([A,P,W,oe]):this.add("plot",new(this.target()).morphArray(A))}}),u.Box=u.invent({create:function(A,P,W,oe){if(!(i(A)!=="object"||A instanceof u.Element))return u.Box.call(this,A.left!=null?A.left:A.x,A.top!=null?A.top:A.y,A.width,A.height);var pe;arguments.length==4&&(this.x=A,this.y=P,this.width=W,this.height=oe),(pe=this).x==null&&(pe.x=0,pe.y=0,pe.width=0,pe.height=0),pe.w=pe.width,pe.h=pe.height,pe.x2=pe.x+pe.width,pe.y2=pe.y+pe.height,pe.cx=pe.x+pe.width/2,pe.cy=pe.y+pe.height/2}}),u.BBox=u.invent({create:function(A){if(u.Box.apply(this,[].slice.call(arguments)),A instanceof u.Element){var P;try{if(!c.documentElement.contains){for(var W=A.node;W.parentNode;)W=W.parentNode;if(W!=c)throw new Error("Element not in the dom")}P=A.node.getBBox()}catch{if(A instanceof u.Shape){u.parser.draw||u.prepare();var oe=A.clone(u.parser.draw.instance).show();oe&&oe.node&&typeof oe.node.getBBox=="function"&&(P=oe.node.getBBox()),oe&&typeof oe.remove=="function"&&oe.remove()}else P={x:A.node.clientLeft,y:A.node.clientTop,width:A.node.clientWidth,height:A.node.clientHeight}}u.Box.call(this,P)}},inherit:u.Box,parent:u.Element,construct:{bbox:function(){return new u.BBox(this)}}}),u.BBox.prototype.constructor=u.BBox,u.Matrix=u.invent({create:function(A){var P=U([1,0,0,1,0,0]);A=A===null?P:A instanceof u.Element?A.matrixify():typeof A=="string"?U(A.split(u.regex.delimiter).map(parseFloat)):arguments.length==6?U([].slice.call(arguments)):Array.isArray(A)?U(A):A&&i(A)==="object"?A:P;for(var W=le.length-1;W>=0;--W)this[le[W]]=A[le[W]]!=null?A[le[W]]:P[le[W]]},extend:{extract:function(){var A=z(this,0,1);z(this,1,0);var P=180/Math.PI*Math.atan2(A.y,A.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(P*Math.PI/180)+this.f*Math.sin(P*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(P*Math.PI/180)+this.e*Math.sin(-P*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:P,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new u.Matrix(this)}},clone:function(){return new u.Matrix(this)},morph:function(A){return this.destination=new u.Matrix(A),this},multiply:function(A){return new u.Matrix(this.native().multiply(function(P){return P instanceof u.Matrix||(P=new u.Matrix(P)),P}(A).native()))},inverse:function(){return new u.Matrix(this.native().inverse())},translate:function(A,P){return new u.Matrix(this.native().translate(A||0,P||0))},native:function(){for(var A=u.parser.native.createSVGMatrix(),P=le.length-1;P>=0;P--)A[le[P]]=this[le[P]];return A},toString:function(){return"matrix("+ne(this.a)+","+ne(this.b)+","+ne(this.c)+","+ne(this.d)+","+ne(this.e)+","+ne(this.f)+")"}},parent:u.Element,construct:{ctm:function(){return new u.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof u.Nested){var A=this.rect(1,1),P=A.node.getScreenCTM();return A.remove(),new u.Matrix(P)}return new u.Matrix(this.node.getScreenCTM())}}}),u.Point=u.invent({create:function(A,P){var W;W=Array.isArray(A)?{x:A[0],y:A[1]}:i(A)==="object"?{x:A.x,y:A.y}:A!=null?{x:A,y:P??A}:{x:0,y:0},this.x=W.x,this.y=W.y},extend:{clone:function(){return new u.Point(this)},morph:function(A,P){return this.destination=new u.Point(A,P),this}}}),u.extend(u.Element,{point:function(A,P){return new u.Point(A,P).transform(this.screenCTM().inverse())}}),u.extend(u.Element,{attr:function(A,P,W){if(A==null){for(A={},W=(P=this.node.attributes).length-1;W>=0;W--)A[P[W].nodeName]=u.regex.isNumber.test(P[W].nodeValue)?parseFloat(P[W].nodeValue):P[W].nodeValue;return A}if(i(A)==="object")for(var oe in A)this.attr(oe,A[oe]);else if(P===null)this.node.removeAttribute(A);else{if(P==null)return(P=this.node.getAttribute(A))==null?u.defaults.attrs[A]:u.regex.isNumber.test(P)?parseFloat(P):P;A=="stroke-width"?this.attr("stroke",parseFloat(P)>0?this._stroke:null):A=="stroke"&&(this._stroke=P),A!="fill"&&A!="stroke"||(u.regex.isImage.test(P)&&(P=this.doc().defs().image(P,0,0)),P instanceof u.Image&&(P=this.doc().defs().pattern(0,0,function(){this.add(P)}))),typeof P=="number"?P=new u.Number(P):u.Color.isColor(P)?P=new u.Color(P):Array.isArray(P)&&(P=new u.Array(P)),A=="leading"?this.leading&&this.leading(P):typeof W=="string"?this.node.setAttributeNS(W,A,P.toString()):this.node.setAttribute(A,P.toString()),!this.rebuild||A!="font-size"&&A!="x"||this.rebuild(A,P)}return this}}),u.extend(u.Element,{transform:function(A,P){var W;return i(A)!=="object"?(W=new u.Matrix(this).extract(),typeof A=="string"?W[A]:W):(W=new u.Matrix(this),P=!!P||!!A.relative,A.a!=null&&(W=P?W.multiply(new u.Matrix(A)):new u.Matrix(A)),this.attr("transform",W))}}),u.extend(u.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(u.regex.transforms).slice(0,-1).map(function(A){var P=A.trim().split("(");return[P[0],P[1].split(u.regex.delimiter).map(function(W){return parseFloat(W)})]}).reduce(function(A,P){return P[0]=="matrix"?A.multiply(U(P[1])):A[P[0]].apply(A,P[1])},new u.Matrix)},toParent:function(A){if(this==A)return this;var P=this.screenCTM(),W=A.screenCTM().inverse();return this.addTo(A).untransform().transform(W.multiply(P)),this},toDoc:function(){return this.toParent(this.doc())}}),u.Transformation=u.invent({create:function(A,P){if(arguments.length>1&&typeof P!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(A))for(var W=0,oe=this.arguments.length;W<oe;++W)this[this.arguments[W]]=A[W];else if(A&&i(A)==="object")for(W=0,oe=this.arguments.length;W<oe;++W)this[this.arguments[W]]=A[this.arguments[W]];this.inversed=!1,P===!0&&(this.inversed=!0)}}),u.Translate=u.invent({parent:u.Matrix,inherit:u.Transformation,create:function(A,P){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),u.extend(u.Element,{style:function(A,P){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(i(A)==="object")for(var W in A)this.style(W,A[W]);else{if(!u.regex.isCss.test(A))return this.node.style[T(A)];for(A=A.split(/\s*;\s*/).filter(function(oe){return!!oe}).map(function(oe){return oe.split(/\s*:\s*/)});P=A.pop();)this.style(P[0],P[1])}else this.node.style[T(A)]=P===null||u.regex.isBlank.test(P)?"":P;return this}}),u.Parent=u.invent({create:function(A){this.constructor.call(this,A)},inherit:u.Element,extend:{children:function(){return u.utils.map(u.utils.filterSVGElements(this.node.childNodes),function(A){return u.adopt(A)})},add:function(A,P){return P==null?this.node.appendChild(A.node):A.node!=this.node.childNodes[P]&&this.node.insertBefore(A.node,this.node.childNodes[P]),this},put:function(A,P){return this.add(A,P),A},has:function(A){return this.index(A)>=0},index:function(A){return[].slice.call(this.node.childNodes).indexOf(A.node)},get:function(A){return u.adopt(this.node.childNodes[A])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(A,P){for(var W=this.children(),oe=0,pe=W.length;oe<pe;oe++)W[oe]instanceof u.Element&&A.apply(W[oe],[oe,W]),P&&W[oe]instanceof u.Container&&W[oe].each(A,P);return this},removeElement:function(A){return this.node.removeChild(A.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),u.extend(u.Parent,{ungroup:function(A,P){return P===0||this instanceof u.Defs||this.node==u.parser.draw||(A=A||(this instanceof u.Doc?this:this.parent(u.Parent)),P=P||1/0,this.each(function(){return this instanceof u.Defs?this:this instanceof u.Parent?this.ungroup(A,P-1):this.toParent(A)}),this.node.firstChild||this.remove()),this},flatten:function(A,P){return this.ungroup(A,P)}}),u.Container=u.invent({create:function(A){this.constructor.call(this,A)},inherit:u.Parent}),u.ViewBox=u.invent({parent:u.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(A){u.Element.prototype[A]=function(P){return u.on(this.node,A,P),this}}),u.listeners=[],u.handlerMap=[],u.listenerId=0,u.on=function(A,P,W,oe,pe){var ge=W.bind(oe||A.instance||A),ke=(u.handlerMap.indexOf(A)+1||u.handlerMap.push(A))-1,De=P.split(".")[0],Ge=P.split(".")[1]||"*";u.listeners[ke]=u.listeners[ke]||{},u.listeners[ke][De]=u.listeners[ke][De]||{},u.listeners[ke][De][Ge]=u.listeners[ke][De][Ge]||{},W._svgjsListenerId||(W._svgjsListenerId=++u.listenerId),u.listeners[ke][De][Ge][W._svgjsListenerId]=ge,A.addEventListener(De,ge,pe||{passive:!0})},u.off=function(A,P,W){var oe=u.handlerMap.indexOf(A),pe=P&&P.split(".")[0],ge=P&&P.split(".")[1],ke="";if(oe!=-1)if(W){if(typeof W=="function"&&(W=W._svgjsListenerId),!W)return;u.listeners[oe][pe]&&u.listeners[oe][pe][ge||"*"]&&(A.removeEventListener(pe,u.listeners[oe][pe][ge||"*"][W],!1),delete u.listeners[oe][pe][ge||"*"][W])}else if(ge&&pe){if(u.listeners[oe][pe]&&u.listeners[oe][pe][ge]){for(var De in u.listeners[oe][pe][ge])u.off(A,[pe,ge].join("."),De);delete u.listeners[oe][pe][ge]}}else if(ge)for(var Ge in u.listeners[oe])for(var ke in u.listeners[oe][Ge])ge===ke&&u.off(A,[Ge,ge].join("."));else if(pe){if(u.listeners[oe][pe]){for(var ke in u.listeners[oe][pe])u.off(A,[pe,ke].join("."));delete u.listeners[oe][pe]}}else{for(var Ge in u.listeners[oe])u.off(A,Ge);delete u.listeners[oe],delete u.handlerMap[oe]}},u.extend(u.Element,{on:function(A,P,W,oe){return u.on(this.node,A,P,W,oe),this},off:function(A,P){return u.off(this.node,A,P),this},fire:function(A,P){return A instanceof re.Event?this.node.dispatchEvent(A):this.node.dispatchEvent(A=new u.CustomEvent(A,{detail:P,cancelable:!0})),this._event=A,this},event:function(){return this._event}}),u.Defs=u.invent({create:"defs",inherit:u.Container}),u.G=u.invent({create:"g",inherit:u.Container,extend:{x:function(A){return A==null?this.transform("x"):this.transform({x:A-this.x()},!0)}},construct:{group:function(){return this.put(new u.G)}}}),u.Doc=u.invent({create:function(A){A&&((A=typeof A=="string"?c.getElementById(A):A).nodeName=="svg"?this.constructor.call(this,A):(this.constructor.call(this,u.create("svg")),A.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:u.Container,extend:{namespace:function(){return this.attr({xmlns:u.ns,version:"1.1"}).attr("xmlns:xlink",u.xlink,u.xmlns).attr("xmlns:svgjs",u.svgjs,u.xmlns)},defs:function(){var A;return this._defs||((A=this.node.getElementsByTagName("defs")[0])?this._defs=u.adopt(A):this._defs=new u.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,u.parser.draw&&!u.parser.draw.parentNode&&this.node.appendChild(u.parser.draw),this},clone:function(A){this.writeDataToDom();var P=this.node,W=Y(P.cloneNode(!0));return A?(A.node||A).appendChild(W.node):P.parentNode.insertBefore(W.node,P.nextSibling),W}}}),u.extend(u.Element,{}),u.Gradient=u.invent({create:function(A){this.constructor.call(this,u.create(A+"Gradient")),this.type=A},inherit:u.Container,extend:{at:function(A,P,W){return this.put(new u.Stop).update(A,P,W)},update:function(A){return this.clear(),typeof A=="function"&&A.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(A,P,W){return A=="transform"&&(A="gradientTransform"),u.Container.prototype.attr.call(this,A,P,W)}},construct:{gradient:function(A,P){return this.defs().gradient(A,P)}}}),u.extend(u.Gradient,u.FX,{from:function(A,P){return(this._target||this).type=="radial"?this.attr({fx:new u.Number(A),fy:new u.Number(P)}):this.attr({x1:new u.Number(A),y1:new u.Number(P)})},to:function(A,P){return(this._target||this).type=="radial"?this.attr({cx:new u.Number(A),cy:new u.Number(P)}):this.attr({x2:new u.Number(A),y2:new u.Number(P)})}}),u.extend(u.Defs,{gradient:function(A,P){return this.put(new u.Gradient(A)).update(P)}}),u.Stop=u.invent({create:"stop",inherit:u.Element,extend:{update:function(A){return(typeof A=="number"||A instanceof u.Number)&&(A={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),A.opacity!=null&&this.attr("stop-opacity",A.opacity),A.color!=null&&this.attr("stop-color",A.color),A.offset!=null&&this.attr("offset",new u.Number(A.offset)),this}}}),u.Pattern=u.invent({create:"pattern",inherit:u.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(A){return this.clear(),typeof A=="function"&&A.call(this,this),this},toString:function(){return this.fill()},attr:function(A,P,W){return A=="transform"&&(A="patternTransform"),u.Container.prototype.attr.call(this,A,P,W)}},construct:{pattern:function(A,P,W){return this.defs().pattern(A,P,W)}}}),u.extend(u.Defs,{pattern:function(A,P,W){return this.put(new u.Pattern).update(W).attr({x:0,y:0,width:A,height:P,patternUnits:"userSpaceOnUse"})}}),u.Shape=u.invent({create:function(A){this.constructor.call(this,A)},inherit:u.Element}),u.Symbol=u.invent({create:"symbol",inherit:u.Container,construct:{symbol:function(){return this.put(new u.Symbol)}}}),u.Use=u.invent({create:"use",inherit:u.Shape,extend:{element:function(A,P){return this.attr("href",(P||"")+"#"+A,u.xlink)}},construct:{use:function(A,P){return this.put(new u.Use).element(A,P)}}}),u.Rect=u.invent({create:"rect",inherit:u.Shape,construct:{rect:function(A,P){return this.put(new u.Rect).size(A,P)}}}),u.Circle=u.invent({create:"circle",inherit:u.Shape,construct:{circle:function(A){return this.put(new u.Circle).rx(new u.Number(A).divide(2)).move(0,0)}}}),u.extend(u.Circle,u.FX,{rx:function(A){return this.attr("r",A)},ry:function(A){return this.rx(A)}}),u.Ellipse=u.invent({create:"ellipse",inherit:u.Shape,construct:{ellipse:function(A,P){return this.put(new u.Ellipse).size(A,P).move(0,0)}}}),u.extend(u.Ellipse,u.Rect,u.FX,{rx:function(A){return this.attr("rx",A)},ry:function(A){return this.attr("ry",A)}}),u.extend(u.Circle,u.Ellipse,{x:function(A){return A==null?this.cx()-this.rx():this.cx(A+this.rx())},y:function(A){return A==null?this.cy()-this.ry():this.cy(A+this.ry())},cx:function(A){return A==null?this.attr("cx"):this.attr("cx",A)},cy:function(A){return A==null?this.attr("cy"):this.attr("cy",A)},width:function(A){return A==null?2*this.rx():this.rx(new u.Number(A).divide(2))},height:function(A){return A==null?2*this.ry():this.ry(new u.Number(A).divide(2))},size:function(A,P){var W=N(this,A,P);return this.rx(new u.Number(W.width).divide(2)).ry(new u.Number(W.height).divide(2))}}),u.Line=u.invent({create:"line",inherit:u.Shape,extend:{array:function(){return new u.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(A,P,W,oe){return A==null?this.array():(A=P!==void 0?{x1:A,y1:P,x2:W,y2:oe}:new u.PointArray(A).toLine(),this.attr(A))},move:function(A,P){return this.attr(this.array().move(A,P).toLine())},size:function(A,P){var W=N(this,A,P);return this.attr(this.array().size(W.width,W.height).toLine())}},construct:{line:function(A,P,W,oe){return u.Line.prototype.plot.apply(this.put(new u.Line),A!=null?[A,P,W,oe]:[0,0,0,0])}}}),u.Polyline=u.invent({create:"polyline",inherit:u.Shape,construct:{polyline:function(A){return this.put(new u.Polyline).plot(A||new u.PointArray)}}}),u.Polygon=u.invent({create:"polygon",inherit:u.Shape,construct:{polygon:function(A){return this.put(new u.Polygon).plot(A||new u.PointArray)}}}),u.extend(u.Polyline,u.Polygon,{array:function(){return this._array||(this._array=new u.PointArray(this.attr("points")))},plot:function(A){return A==null?this.array():this.clear().attr("points",typeof A=="string"?A:this._array=new u.PointArray(A))},clear:function(){return delete this._array,this},move:function(A,P){return this.attr("points",this.array().move(A,P))},size:function(A,P){var W=N(this,A,P);return this.attr("points",this.array().size(W.width,W.height))}}),u.extend(u.Line,u.Polyline,u.Polygon,{morphArray:u.PointArray,x:function(A){return A==null?this.bbox().x:this.move(A,this.bbox().y)},y:function(A){return A==null?this.bbox().y:this.move(this.bbox().x,A)},width:function(A){var P=this.bbox();return A==null?P.width:this.size(A,P.height)},height:function(A){var P=this.bbox();return A==null?P.height:this.size(P.width,A)}}),u.Path=u.invent({create:"path",inherit:u.Shape,extend:{morphArray:u.PathArray,array:function(){return this._array||(this._array=new u.PathArray(this.attr("d")))},plot:function(A){return A==null?this.array():this.clear().attr("d",typeof A=="string"?A:this._array=new u.PathArray(A))},clear:function(){return delete this._array,this}},construct:{path:function(A){return this.put(new u.Path).plot(A||new u.PathArray)}}}),u.Image=u.invent({create:"image",inherit:u.Shape,extend:{load:function(A){if(!A)return this;var P=this,W=new re.Image;return u.on(W,"load",function(){u.off(W);var oe=P.parent(u.Pattern);oe!==null&&(P.width()==0&&P.height()==0&&P.size(W.width,W.height),oe&&oe.width()==0&&oe.height()==0&&oe.size(P.width(),P.height()),typeof P._loaded=="function"&&P._loaded.call(P,{width:W.width,height:W.height,ratio:W.width/W.height,url:A}))}),u.on(W,"error",function(oe){u.off(W),typeof P._error=="function"&&P._error.call(P,oe)}),this.attr("href",W.src=this.src=A,u.xlink)},loaded:function(A){return this._loaded=A,this},error:function(A){return this._error=A,this}},construct:{image:function(A,P,W){return this.put(new u.Image).load(A).size(P||0,W||P||0)}}}),u.Text=u.invent({create:function(){this.constructor.call(this,u.create("text")),this.dom.leading=new u.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",u.defaults.attrs["font-family"])},inherit:u.Shape,extend:{x:function(A){return A==null?this.attr("x"):this.attr("x",A)},text:function(A){if(A===void 0){A="";for(var P=this.node.childNodes,W=0,oe=P.length;W<oe;++W)W!=0&&P[W].nodeType!=3&&u.adopt(P[W]).dom.newLined==1&&(A+=`
`),A+=P[W].textContent;return A}if(this.clear().build(!0),typeof A=="function")A.call(this,this);else{W=0;for(var pe=(A=A.split(`
`)).length;W<pe;W++)this.tspan(A[W]).newLine()}return this.build(!1).rebuild()},size:function(A){return this.attr("font-size",A).rebuild()},leading:function(A){return A==null?this.dom.leading:(this.dom.leading=new u.Number(A),this.rebuild())},lines:function(){var A=(this.textPath&&this.textPath()||this).node,P=u.utils.map(u.utils.filterSVGElements(A.childNodes),function(W){return u.adopt(W)});return new u.Set(P)},rebuild:function(A){if(typeof A=="boolean"&&(this._rebuild=A),this._rebuild){var P=this,W=0,oe=this.dom.leading*new u.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(P.textPath()||this.attr("x",P.attr("x")),this.text()==`
`?W+=oe:(this.attr("dy",oe+W),W=0))}),this.fire("rebuild")}return this},build:function(A){return this._build=!!A,this},setData:function(A){return this.dom=A,this.dom.leading=new u.Number(A.leading||1.3),this}},construct:{text:function(A){return this.put(new u.Text).text(A)},plain:function(A){return this.put(new u.Text).plain(A)}}}),u.Tspan=u.invent({create:"tspan",inherit:u.Shape,extend:{text:function(A){return A==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof A=="function"?A.call(this,this):this.plain(A),this)},dx:function(A){return this.attr("dx",A)},dy:function(A){return this.attr("dy",A)},newLine:function(){var A=this.parent(u.Text);return this.dom.newLined=!0,this.dy(A.dom.leading*A.attr("font-size")).attr("x",A.x())}}}),u.extend(u.Text,u.Tspan,{plain:function(A){return this._build===!1&&this.clear(),this.node.appendChild(c.createTextNode(A)),this},tspan:function(A){var P=(this.textPath&&this.textPath()||this).node,W=new u.Tspan;return this._build===!1&&this.clear(),P.appendChild(W.node),W.text(A)},clear:function(){for(var A=(this.textPath&&this.textPath()||this).node;A.hasChildNodes();)A.removeChild(A.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),u.TextPath=u.invent({create:"textPath",inherit:u.Parent,parent:u.Text,construct:{morphArray:u.PathArray,array:function(){var A=this.track();return A?A.array():null},plot:function(A){var P=this.track(),W=null;return P&&(W=P.plot(A)),A==null?W:this},track:function(){var A=this.textPath();if(A)return A.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return u.adopt(this.node.firstChild)}}}),u.Nested=u.invent({create:function(){this.constructor.call(this,u.create("svg")),this.style("overflow","visible")},inherit:u.Container,construct:{nested:function(){return this.put(new u.Nested)}}});var x={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(A,P){return P=="color"?A:A+"-"+P}};function E(A,P,W,oe){return W+oe.replace(u.regex.dots," .")}function T(A){return A.toLowerCase().replace(/-(.)/g,function(P,W){return W.toUpperCase()})}function $(A){return A.charAt(0).toUpperCase()+A.slice(1)}function R(A){var P=A.toString(16);return P.length==1?"0"+P:P}function N(A,P,W){if(P==null||W==null){var oe=A.bbox();P==null?P=oe.width/oe.height*W:W==null&&(W=oe.height/oe.width*P)}return{width:P,height:W}}function z(A,P,W){return{x:P*A.a+W*A.c+0,y:P*A.b+W*A.d+0}}function U(A){return{a:A[0],b:A[1],c:A[2],d:A[3],e:A[4],f:A[5]}}function Y(A){for(var P=A.childNodes.length-1;P>=0;P--)A.childNodes[P]instanceof re.SVGElement&&Y(A.childNodes[P]);return u.adopt(A).id(u.eid(A.nodeName))}function ne(A){return Math.abs(A)>1e-37?A:0}["fill","stroke"].forEach(function(A){var P={};P[A]=function(W){if(W===void 0)return this;if(typeof W=="string"||u.Color.isRgb(W)||W&&typeof W.fill=="function")this.attr(A,W);else for(var oe=x[A].length-1;oe>=0;oe--)W[x[A][oe]]!=null&&this.attr(x.prefix(A,x[A][oe]),W[x[A][oe]]);return this},u.extend(u.Element,u.FX,P)}),u.extend(u.Element,u.FX,{translate:function(A,P){return this.transform({x:A,y:P})},matrix:function(A){return this.attr("transform",new u.Matrix(arguments.length==6?[].slice.call(arguments):A))},opacity:function(A){return this.attr("opacity",A)},dx:function(A){return this.x(new u.Number(A).plus(this instanceof u.FX?0:this.x()),!0)},dy:function(A){return this.y(new u.Number(A).plus(this instanceof u.FX?0:this.y()),!0)}}),u.extend(u.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(A){return this.node.getPointAtLength(A)}}),u.Set=u.invent({create:function(A){Array.isArray(A)?this.members=A:this.clear()},extend:{add:function(){for(var A=[].slice.call(arguments),P=0,W=A.length;P<W;P++)this.members.push(A[P]);return this},remove:function(A){var P=this.index(A);return P>-1&&this.members.splice(P,1),this},each:function(A){for(var P=0,W=this.members.length;P<W;P++)A.apply(this.members[P],[P,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(A){return this.index(A)>=0},index:function(A){return this.members.indexOf(A)},get:function(A){return this.members[A]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(A){return new u.Set(A)}}}),u.FX.Set=u.invent({create:function(A){this.set=A}}),u.Set.inherit=function(){var A=[];for(var P in u.Shape.prototype)typeof u.Shape.prototype[P]=="function"&&typeof u.Set.prototype[P]!="function"&&A.push(P);for(var P in A.forEach(function(oe){u.Set.prototype[oe]=function(){for(var pe=0,ge=this.members.length;pe<ge;pe++)this.members[pe]&&typeof this.members[pe][oe]=="function"&&this.members[pe][oe].apply(this.members[pe],arguments);return oe=="animate"?this.fx||(this.fx=new u.FX.Set(this)):this}}),A=[],u.FX.prototype)typeof u.FX.prototype[P]=="function"&&typeof u.FX.Set.prototype[P]!="function"&&A.push(P);A.forEach(function(W){u.FX.Set.prototype[W]=function(){for(var oe=0,pe=this.set.members.length;oe<pe;oe++)this.set.members[oe].fx[W].apply(this.set.members[oe].fx,arguments);return this}})},u.extend(u.Element,{}),u.extend(u.Element,{remember:function(A,P){if(i(arguments[0])==="object")for(var W in A)this.remember(W,A[W]);else{if(arguments.length==1)return this.memory()[A];this.memory()[A]=P}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var A=arguments.length-1;A>=0;A--)delete this.memory()[arguments[A]];return this},memory:function(){return this._memory||(this._memory={})}}),u.get=function(A){var P=c.getElementById(function(W){var oe=(W||"").toString().match(u.regex.reference);if(oe)return oe[1]}(A)||A);return u.adopt(P)},u.select=function(A,P){return new u.Set(u.utils.map((P||c).querySelectorAll(A),function(W){return u.adopt(W)}))},u.extend(u.Parent,{select:function(A){return u.select(A,this.node)}});var le="abcdef".split("");if(typeof re.CustomEvent!="function"){var he=function(A,P){P=P||{bubbles:!1,cancelable:!1,detail:void 0};var W=c.createEvent("CustomEvent");return W.initCustomEvent(A,P.bubbles,P.cancelable,P.detail),W};he.prototype=re.Event.prototype,u.CustomEvent=he}else u.CustomEvent=re.CustomEvent;return u},i(e)==="object"?t.exports=ol.document?wc(ol,ol.document):function(re){return wc(re,re.document)}:ol.SVG=wc(ol,ol.document),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(b,x){return this.add(b,x),!b.attr("in")&&this.autoSetIn&&b.attr("in",this.source),b.attr("result")||b.attr("result",b),b},blend:function(b,x,E){return this.put(new SVG.BlendEffect(b,x,E))},colorMatrix:function(b,x){return this.put(new SVG.ColorMatrixEffect(b,x))},convolveMatrix:function(b){return this.put(new SVG.ConvolveMatrixEffect(b))},componentTransfer:function(b){return this.put(new SVG.ComponentTransferEffect(b))},composite:function(b,x,E){return this.put(new SVG.CompositeEffect(b,x,E))},flood:function(b,x){return this.put(new SVG.FloodEffect(b,x))},offset:function(b,x){return this.put(new SVG.OffsetEffect(b,x))},image:function(b){return this.put(new SVG.ImageEffect(b))},merge:function(){var b=[void 0];for(var x in arguments)b.push(arguments[x]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,b)))},gaussianBlur:function(b,x){return this.put(new SVG.GaussianBlurEffect(b,x))},morphology:function(b,x){return this.put(new SVG.MorphologyEffect(b,x))},diffuseLighting:function(b,x,E){return this.put(new SVG.DiffuseLightingEffect(b,x,E))},displacementMap:function(b,x,E,T,$){return this.put(new SVG.DisplacementMapEffect(b,x,E,T,$))},specularLighting:function(b,x,E,T){return this.put(new SVG.SpecularLightingEffect(b,x,E,T))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(b,x,E,T,$){return this.put(new SVG.TurbulenceEffect(b,x,E,T,$))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(b){var x=this.put(new SVG.Filter);return typeof b=="function"&&b.call(x,x),x}}),SVG.extend(SVG.Container,{filter:function(b){return this.defs().filter(b)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(b){return this.filterer=b instanceof SVG.Element?b:this.doc().filter(b),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(b){return this.filterer&&b===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(b){return b==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",b)},result:function(b){return b==null?this.attr("result"):this.attr("result",b)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(b){return b==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",b)},result:function(b){return b==null?this.attr("result"):this.attr("result",b)},toString:function(){return this.result()}}});var re={blend:function(b,x){return this.parent()&&this.parent().blend(this,b,x)},colorMatrix:function(b,x){return this.parent()&&this.parent().colorMatrix(b,x).in(this)},convolveMatrix:function(b){return this.parent()&&this.parent().convolveMatrix(b).in(this)},componentTransfer:function(b){return this.parent()&&this.parent().componentTransfer(b).in(this)},composite:function(b,x){return this.parent()&&this.parent().composite(this,b,x)},flood:function(b,x){return this.parent()&&this.parent().flood(b,x)},offset:function(b,x){return this.parent()&&this.parent().offset(b,x).in(this)},image:function(b){return this.parent()&&this.parent().image(b)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(b,x){return this.parent()&&this.parent().gaussianBlur(b,x).in(this)},morphology:function(b,x){return this.parent()&&this.parent().morphology(b,x).in(this)},diffuseLighting:function(b,x,E){return this.parent()&&this.parent().diffuseLighting(b,x,E).in(this)},displacementMap:function(b,x,E,T){return this.parent()&&this.parent().displacementMap(this,b,x,E,T)},specularLighting:function(b,x,E,T){return this.parent()&&this.parent().specularLighting(b,x,E,T).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(b,x,E,T,$){return this.parent()&&this.parent().turbulence(b,x,E,T,$).in(this)}};SVG.extend(SVG.Effect,re),SVG.extend(SVG.ParentEffect,re),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(b){this.attr("in",b)}}});var c={blend:function(b,x,E){this.attr({in:b,in2:x,mode:E||"normal"})},colorMatrix:function(b,x){b=="matrix"&&(x=g(x)),this.attr({type:b,values:x===void 0?null:x})},convolveMatrix:function(b){b=g(b),this.attr({order:Math.sqrt(b.split(" ").length),kernelMatrix:b})},composite:function(b,x,E){this.attr({in:b,in2:x,operator:E})},flood:function(b,x){this.attr("flood-color",b),x!=null&&this.attr("flood-opacity",x)},offset:function(b,x){this.attr({dx:b,dy:x})},image:function(b){this.attr("href",b,SVG.xlink)},displacementMap:function(b,x,E,T,$){this.attr({in:b,in2:x,scale:E,xChannelSelector:T,yChannelSelector:$})},gaussianBlur:function(b,x){b!=null||x!=null?this.attr("stdDeviation",function(E){if(!Array.isArray(E))return E;for(var T=0,$=E.length,R=[];T<$;T++)R.push(E[T]);return R.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(b,x){this.attr({operator:b,radius:x})},tile:function(){},turbulence:function(b,x,E,T,$){this.attr({numOctaves:x,seed:E,stitchTiles:T,baseFrequency:b,type:$})}},u={merge:function(){var b;if(arguments[0]instanceof SVG.Set){var x=this;arguments[0].each(function(T){this instanceof SVG.MergeNode?x.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&x.put(new SVG.MergeNode(this))})}else{b=Array.isArray(arguments[0])?arguments[0]:arguments;for(var E=0;E<b.length;E++)b[E]instanceof SVG.MergeNode?this.put(b[E]):this.put(new SVG.MergeNode(b[E]))}},componentTransfer:function(b){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(E){this[E]=new SVG["Func"+E.toUpperCase()]("identity"),this.rgb.add(this[E]),this.node.appendChild(this[E].node)}.bind(this)),b)for(var x in b.rgb&&(["r","g","b"].forEach(function(E){this[E].attr(b.rgb)}.bind(this)),delete b.rgb),b)this[x].attr(b[x])},diffuseLighting:function(b,x,E){this.attr({surfaceScale:b,diffuseConstant:x,kernelUnitLength:E})},specularLighting:function(b,x,E,T){this.attr({surfaceScale:b,diffuseConstant:x,specularExponent:E,kernelUnitLength:T})}},f={distantLight:function(b,x){this.attr({azimuth:b,elevation:x})},pointLight:function(b,x,E){this.attr({x:b,y:x,z:E})},spotLight:function(b,x,E,T,$,R){this.attr({x:b,y:x,z:E,pointsAtX:T,pointsAtY:$,pointsAtZ:R})},mergeNode:function(b){this.attr("in",b)}};function g(b){return Array.isArray(b)&&(b=new SVG.Array(b)),b.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function v(){var b=function(){};for(var x in typeof arguments[arguments.length-1]=="function"&&(b=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var E in arguments[x])b(arguments[x][E],E,arguments[x])}["r","g","b","a"].forEach(function(b){f["Func"+b.toUpperCase()]=function(x){switch(this.attr("type",x),x){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),v(c,function(b,x){var E=x.charAt(0).toUpperCase()+x.slice(1);SVG[E+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+E)),b.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),v(u,function(b,x){var E=x.charAt(0).toUpperCase()+x.slice(1);SVG[E+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+E)),b.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),v(f,function(b,x){var E=x.charAt(0).toUpperCase()+x.slice(1);SVG[E]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+E)),b.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(b){return b instanceof SVG.MergeNode?this.add(b,0):this.add(new SVG.MergeNode(b),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(b){return b==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",b)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function re(v,b,x,E,T,$,R){for(var N=v.slice(b,x||R),z=E.slice(T,$||R),U=0,Y={pos:[0,0],start:[0,0]},ne={pos:[0,0],start:[0,0]};N[U]=c.call(Y,N[U]),z[U]=c.call(ne,z[U]),N[U][0]!=z[U][0]||N[U][0]=="M"||N[U][0]=="A"&&(N[U][4]!=z[U][4]||N[U][5]!=z[U][5])?(Array.prototype.splice.apply(N,[U,1].concat(f.call(Y,N[U]))),Array.prototype.splice.apply(z,[U,1].concat(f.call(ne,z[U])))):(N[U]=u.call(Y,N[U]),z[U]=u.call(ne,z[U])),!(++U==N.length&&U==z.length);)U==N.length&&N.push(["C",Y.pos[0],Y.pos[1],Y.pos[0],Y.pos[1],Y.pos[0],Y.pos[1]]),U==z.length&&z.push(["C",ne.pos[0],ne.pos[1],ne.pos[0],ne.pos[1],ne.pos[0],ne.pos[1]]);return{start:N,dest:z}}function c(v){switch(v[0]){case"z":case"Z":v[0]="L",v[1]=this.start[0],v[2]=this.start[1];break;case"H":v[0]="L",v[2]=this.pos[1];break;case"V":v[0]="L",v[2]=v[1],v[1]=this.pos[0];break;case"T":v[0]="Q",v[3]=v[1],v[4]=v[2],v[1]=this.reflection[1],v[2]=this.reflection[0];break;case"S":v[0]="C",v[6]=v[4],v[5]=v[3],v[4]=v[2],v[3]=v[1],v[2]=this.reflection[1],v[1]=this.reflection[0]}return v}function u(v){var b=v.length;return this.pos=[v[b-2],v[b-1]],"SCQT".indexOf(v[0])!=-1&&(this.reflection=[2*this.pos[0]-v[b-4],2*this.pos[1]-v[b-3]]),v}function f(v){var b=[v];switch(v[0]){case"M":return this.pos=this.start=[v[1],v[2]],b;case"L":v[5]=v[3]=v[1],v[6]=v[4]=v[2],v[1]=this.pos[0],v[2]=this.pos[1];break;case"Q":v[6]=v[4],v[5]=v[3],v[4]=1*v[4]/3+2*v[2]/3,v[3]=1*v[3]/3+2*v[1]/3,v[2]=1*this.pos[1]/3+2*v[2]/3,v[1]=1*this.pos[0]/3+2*v[1]/3;break;case"A":b=function(x,E){var T,$,R,N,z,U,Y,ne,le,he,A,P,W,oe,pe,ge,ke,De,Ge,Ze,st,ft,Wt,nn,on,bn,ur=Math.abs(E[1]),mr=Math.abs(E[2]),Fr=E[3]%360,Sc=E[4],Sa=E[5],Bf=E[6],zf=E[7],di=new SVG.Point(x),ti=new SVG.Point(Bf,zf),z0=[];if(ur===0||mr===0||di.x===ti.x&&di.y===ti.y)return[["C",di.x,di.y,ti.x,ti.y,ti.x,ti.y]];for(T=new SVG.Point((di.x-ti.x)/2,(di.y-ti.y)/2).transform(new SVG.Matrix().rotate(Fr)),($=T.x*T.x/(ur*ur)+T.y*T.y/(mr*mr))>1&&(ur*=$=Math.sqrt($),mr*=$),R=new SVG.Matrix().rotate(Fr).scale(1/ur,1/mr).rotate(-Fr),di=di.transform(R),ti=ti.transform(R),N=[ti.x-di.x,ti.y-di.y],U=N[0]*N[0]+N[1]*N[1],z=Math.sqrt(U),N[0]/=z,N[1]/=z,Y=U<4?Math.sqrt(1-U/4):0,Sc===Sa&&(Y*=-1),ne=new SVG.Point((ti.x+di.x)/2+Y*-N[1],(ti.y+di.y)/2+Y*N[0]),le=new SVG.Point(di.x-ne.x,di.y-ne.y),he=new SVG.Point(ti.x-ne.x,ti.y-ne.y),A=Math.acos(le.x/Math.sqrt(le.x*le.x+le.y*le.y)),le.y<0&&(A*=-1),P=Math.acos(he.x/Math.sqrt(he.x*he.x+he.y*he.y)),he.y<0&&(P*=-1),Sa&&A>P&&(P+=2*Math.PI),!Sa&&A<P&&(P-=2*Math.PI),oe=Math.ceil(2*Math.abs(A-P)/Math.PI),ge=[],ke=A,W=(P-A)/oe,pe=4*Math.tan(W/4)/3,st=0;st<=oe;st++)Ge=Math.cos(ke),De=Math.sin(ke),Ze=new SVG.Point(ne.x+Ge,ne.y+De),ge[st]=[new SVG.Point(Ze.x+pe*De,Ze.y-pe*Ge),Ze,new SVG.Point(Ze.x-pe*De,Ze.y+pe*Ge)],ke+=W;for(ge[0][0]=ge[0][1].clone(),ge[ge.length-1][2]=ge[ge.length-1][1].clone(),R=new SVG.Matrix().rotate(Fr).scale(ur,mr).rotate(-Fr),st=0,ft=ge.length;st<ft;st++)ge[st][0]=ge[st][0].transform(R),ge[st][1]=ge[st][1].transform(R),ge[st][2]=ge[st][2].transform(R);for(st=1,ft=ge.length;st<ft;st++)Wt=(Ze=ge[st-1][2]).x,nn=Ze.y,on=(Ze=ge[st][0]).x,bn=Ze.y,Bf=(Ze=ge[st][1]).x,zf=Ze.y,z0.push(["C",Wt,nn,on,bn,Bf,zf]);return z0}(this.pos,v),v=b[0]}return v[0]="C",this.pos=[v[5],v[6]],this.reflection=[2*v[5]-v[3],2*v[6]-v[4]],b}function g(v,b){if(b===!1)return!1;for(var x=b,E=v.length;x<E;++x)if(v[x][0]=="M")return x;return!1}SVG.extend(SVG.PathArray,{morph:function(v){for(var b=this.value,x=this.parse(v),E=0,T=0,$=!1,R=!1;E!==!1||T!==!1;){var N;$=g(b,E!==!1&&E+1),R=g(x,T!==!1&&T+1),E===!1&&(E=(N=new SVG.PathArray(z.start).bbox()).height==0||N.width==0?b.push(b[0])-1:b.push(["M",N.x+N.width/2,N.y+N.height/2])-1),T===!1&&(T=(N=new SVG.PathArray(z.dest).bbox()).height==0||N.width==0?x.push(x[0])-1:x.push(["M",N.x+N.width/2,N.y+N.height/2])-1);var z=re(b,E,$,x,T,R);b=b.slice(0,E).concat(z.start,$===!1?[]:b.slice($)),x=x.slice(0,T).concat(z.dest,R===!1?[]:x.slice(R)),E=$!==!1&&E+z.start.length,T=R!==!1&&T+z.dest.length}return this.value=b,this.destination=new SVG.PathArray,this.destination.value=x,this}})}(),function(){function re(c){c.remember("_draggable",this),this.el=c}re.prototype.init=function(c,u){var f=this;this.constraint=c,this.value=u,this.el.on("mousedown.drag",function(g){f.start(g)}),this.el.on("touchstart.drag",function(g){f.start(g)})},re.prototype.transformPoint=function(c,u){var f=(c=c||window.event).changedTouches&&c.changedTouches[0]||c;return this.p.x=f.clientX-(u||0),this.p.y=f.clientY,this.p.matrixTransform(this.m)},re.prototype.getBBox=function(){var c=this.el.bbox();return this.el instanceof SVG.Nested&&(c=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(c.x=this.el.x(),c.y=this.el.y()),c},re.prototype.start=function(c){if(c.type!="click"&&c.type!="mousedown"&&c.type!="mousemove"||(c.which||c.buttons)==1){var u=this;if(this.el.fire("beforedrag",{event:c,handler:this}),!this.el.event().defaultPrevented){c.preventDefault(),c.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var f,g=this.getBBox();if(this.el instanceof SVG.Text)switch(f=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":f/=2;break;case"start":f=0}this.startPoints={point:this.transformPoint(c,f),box:g,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(v){u.drag(v)}),SVG.on(window,"touchmove.drag",function(v){u.drag(v)}),SVG.on(window,"mouseup.drag",function(v){u.end(v)}),SVG.on(window,"touchend.drag",function(v){u.end(v)}),this.el.fire("dragstart",{event:c,p:this.startPoints.point,m:this.m,handler:this})}}},re.prototype.drag=function(c){var u=this.getBBox(),f=this.transformPoint(c),g=this.startPoints.box.x+f.x-this.startPoints.point.x,v=this.startPoints.box.y+f.y-this.startPoints.point.y,b=this.constraint,x=f.x-this.startPoints.point.x,E=f.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:c,p:f,m:this.m,handler:this}),this.el.event().defaultPrevented)return f;if(typeof b=="function"){var T=b.call(this.el,g,v,this.m);typeof T=="boolean"&&(T={x:T,y:T}),T.x===!0?this.el.x(g):T.x!==!1&&this.el.x(T.x),T.y===!0?this.el.y(v):T.y!==!1&&this.el.y(T.y)}else typeof b=="object"&&(b.minX!=null&&g<b.minX?x=(g=b.minX)-this.startPoints.box.x:b.maxX!=null&&g>b.maxX-u.width&&(x=(g=b.maxX-u.width)-this.startPoints.box.x),b.minY!=null&&v<b.minY?E=(v=b.minY)-this.startPoints.box.y:b.maxY!=null&&v>b.maxY-u.height&&(E=(v=b.maxY-u.height)-this.startPoints.box.y),b.snapToGrid!=null&&(g-=g%b.snapToGrid,v-=v%b.snapToGrid,x-=x%b.snapToGrid,E-=E%b.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x,y:E},!0):this.el.move(g,v));return f},re.prototype.end=function(c){var u=this.drag(c);this.el.fire("dragend",{event:c,p:u,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(c,u){typeof c!="function"&&typeof c!="object"||(u=c,c=!0);var f=this.remember("_draggable")||new re(this);return(c=c===void 0||c)?f.init(u||{},c):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function re(c){this.el=c,c.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(u,f,g){var v=typeof u!="string"?u:f[u];return g?v/2:v},this.pointCoords=function(u,f){var g=this.pointsList[u];return{x:this.pointCoord(g[0],f,u==="t"||u==="b"),y:this.pointCoord(g[1],f,u==="r"||u==="l")}}}re.prototype.init=function(c,u){var f=this.el.bbox();this.options={};var g=this.el.selectize.defaults.points;for(var v in this.el.selectize.defaults)this.options[v]=this.el.selectize.defaults[v],u[v]!==void 0&&(this.options[v]=u[v]);var b=["points","pointsExclude"];for(var v in b){var x=this.options[b[v]];typeof x=="string"?x=x.length>0?x.split(/\s*,\s*/i):[]:typeof x=="boolean"&&b[v]==="points"&&(x=x?g:[]),this.options[b[v]]=x}this.options.points=[g,this.options.points].reduce(function(E,T){return E.filter(function($){return T.indexOf($)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(E,T){return E.filter(function($){return T.indexOf($)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(f.x,f.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(c):this.selectRect(c),this.observe(),this.cleanup()},re.prototype.selectPoints=function(c){return this.pointSelection.isSelected=c,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},re.prototype.getPointArray=function(){var c=this.el.bbox();return this.el.array().valueOf().map(function(u){return[u[0]-c.x,u[1]-c.y]})},re.prototype.drawPoints=function(){for(var c=this,u=this.getPointArray(),f=0,g=u.length;f<g;++f){var v=function(x){return function(E){(E=E||window.event).preventDefault?E.preventDefault():E.returnValue=!1,E.stopPropagation();var T=E.pageX||E.touches[0].pageX,$=E.pageY||E.touches[0].pageY;c.el.fire("point",{x:T,y:$,i:x,event:E})}}(f),b=this.drawPoint(u[f][0],u[f][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",v).on("mousedown",v);this.pointSelection.set.add(b)}},re.prototype.drawPoint=function(c,u){var f=this.options.pointType;switch(f){case"circle":return this.drawCircle(c,u);case"rect":return this.drawRect(c,u);default:if(typeof f=="function")return f.call(this,c,u);throw new Error("Unknown "+f+" point type!")}},re.prototype.drawCircle=function(c,u){return this.nested.circle(this.options.pointSize).center(c,u)},re.prototype.drawRect=function(c,u){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(c,u)},re.prototype.updatePointSelection=function(){var c=this.getPointArray();this.pointSelection.set.each(function(u){this.cx()===c[u][0]&&this.cy()===c[u][1]||this.center(c[u][0],c[u][1])})},re.prototype.updateRectSelection=function(){var c=this,u=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:u.width,height:u.height}),this.options.points.length&&this.options.points.map(function(g,v){var b=c.pointCoords(g,u);c.rectSelection.set.get(v+1).center(b.x,b.y)}),this.options.rotationPoint){var f=this.rectSelection.set.length();this.rectSelection.set.get(f-1).center(u.width/2,20)}},re.prototype.selectRect=function(c){var u=this,f=this.el.bbox();function g(x){return function(E){(E=E||window.event).preventDefault?E.preventDefault():E.returnValue=!1,E.stopPropagation();var T=E.pageX||E.touches[0].pageX,$=E.pageY||E.touches[0].pageY;u.el.fire(x,{x:T,y:$,event:E})}}if(this.rectSelection.isSelected=c,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(f.width,f.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(x,E){var T=u.pointCoords(x,f),$=u.drawPoint(T.x,T.y).attr("class",u.options.classPoints+"_"+x).on("mousedown",g(x)).on("touchstart",g(x));u.rectSelection.set.add($)}),this.rectSelection.set.each(function(){this.addClass(u.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var v=function(x){(x=x||window.event).preventDefault?x.preventDefault():x.returnValue=!1,x.stopPropagation();var E=x.pageX||x.touches[0].pageX,T=x.pageY||x.touches[0].pageY;u.el.fire("rot",{x:E,y:T,event:x})},b=this.drawPoint(f.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",v).on("mousedown",v);this.rectSelection.set.add(b)}},re.prototype.handler=function(){var c=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(c.x,c.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},re.prototype.observe=function(){var c=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){c.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){c.handler()})},re.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(c,u){return typeof c=="object"&&(u=c,c=!0),(this.remember("_selectHandler")||new re(this)).init(c===void 0||c,u||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function re(c){c.remember("_resizeHandler",this),this.el=c,this.parameters={},this.lastUpdateCall=null,this.p=c.doc().node.createSVGPoint()}re.prototype.transformPoint=function(c,u,f){return this.p.x=c-(this.offset.x-window.pageXOffset),this.p.y=u-(this.offset.y-window.pageYOffset),this.p.matrixTransform(f||this.m)},re.prototype._extractPosition=function(c){return{x:c.clientX!=null?c.clientX:c.touches[0].clientX,y:c.clientY!=null?c.clientY:c.touches[0].clientY}},re.prototype.init=function(c){var u=this;if(this.stop(),c!=="stop"){for(var f in this.options={},this.el.resize.defaults)this.options[f]=this.el.resize.defaults[f],c[f]!==void 0&&(this.options[f]=c[f]);this.el.on("lt.resize",function(g){u.resize(g||window.event)}),this.el.on("rt.resize",function(g){u.resize(g||window.event)}),this.el.on("rb.resize",function(g){u.resize(g||window.event)}),this.el.on("lb.resize",function(g){u.resize(g||window.event)}),this.el.on("t.resize",function(g){u.resize(g||window.event)}),this.el.on("r.resize",function(g){u.resize(g||window.event)}),this.el.on("b.resize",function(g){u.resize(g||window.event)}),this.el.on("l.resize",function(g){u.resize(g||window.event)}),this.el.on("rot.resize",function(g){u.resize(g||window.event)}),this.el.on("point.resize",function(g){u.resize(g||window.event)}),this.update()}},re.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},re.prototype.resize=function(c){var u=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var f=this._extractPosition(c.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(f.x,f.y),x:c.detail.x,y:c.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),c.detail.i!==void 0){var g=this.el.array().valueOf();this.parameters.i=c.detail.i,this.parameters.pointCoords=[g[c.detail.i][0],g[c.detail.i][1]]}switch(c.type){case"lt":this.calc=function(v,b){var x=this.snapToGrid(v,b);if(this.parameters.box.width-x[0]>0&&this.parameters.box.height-x[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+x[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-x[0]);x=this.checkAspectRatio(x),this.el.move(this.parameters.box.x+x[0],this.parameters.box.y+x[1]).size(this.parameters.box.width-x[0],this.parameters.box.height-x[1])}};break;case"rt":this.calc=function(v,b){var x=this.snapToGrid(v,b,2);if(this.parameters.box.width+x[0]>0&&this.parameters.box.height-x[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-x[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+x[0]);x=this.checkAspectRatio(x,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+x[1]).size(this.parameters.box.width+x[0],this.parameters.box.height-x[1])}};break;case"rb":this.calc=function(v,b){var x=this.snapToGrid(v,b,0);if(this.parameters.box.width+x[0]>0&&this.parameters.box.height+x[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-x[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+x[0]);x=this.checkAspectRatio(x),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+x[0],this.parameters.box.height+x[1])}};break;case"lb":this.calc=function(v,b){var x=this.snapToGrid(v,b,1);if(this.parameters.box.width-x[0]>0&&this.parameters.box.height+x[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+x[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-x[0]);x=this.checkAspectRatio(x,!0),this.el.move(this.parameters.box.x+x[0],this.parameters.box.y).size(this.parameters.box.width-x[0],this.parameters.box.height+x[1])}};break;case"t":this.calc=function(v,b){var x=this.snapToGrid(v,b,2);if(this.parameters.box.height-x[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+x[1]).height(this.parameters.box.height-x[1])}};break;case"r":this.calc=function(v,b){var x=this.snapToGrid(v,b,0);if(this.parameters.box.width+x[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+x[0])}};break;case"b":this.calc=function(v,b){var x=this.snapToGrid(v,b,0);if(this.parameters.box.height+x[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+x[1])}};break;case"l":this.calc=function(v,b){var x=this.snapToGrid(v,b,1);if(this.parameters.box.width-x[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+x[0],this.parameters.box.y).width(this.parameters.box.width-x[0])}};break;case"rot":this.calc=function(v,b){var x=v+this.parameters.p.x,E=b+this.parameters.p.y,T=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),$=Math.atan2(E-this.parameters.box.y-this.parameters.box.height/2,x-this.parameters.box.x-this.parameters.box.width/2),R=this.parameters.rotation+180*($-T)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(R-R%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(v,b){var x=this.snapToGrid(v,b,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),E=this.el.array().valueOf();E[this.parameters.i][0]=this.parameters.pointCoords[0]+x[0],E[this.parameters.i][1]=this.parameters.pointCoords[1]+x[1],this.el.plot(E)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:c}),SVG.on(window,"touchmove.resize",function(v){u.update(v||window.event)}),SVG.on(window,"touchend.resize",function(){u.done()}),SVG.on(window,"mousemove.resize",function(v){u.update(v||window.event)}),SVG.on(window,"mouseup.resize",function(){u.done()})},re.prototype.update=function(c){if(c){var u=this._extractPosition(c),f=this.transformPoint(u.x,u.y),g=f.x-this.parameters.p.x,v=f.y-this.parameters.p.y;this.lastUpdateCall=[g,v],this.calc(g,v),this.el.fire("resizing",{dx:g,dy:v,event:c})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},re.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},re.prototype.snapToGrid=function(c,u,f,g){var v;return g!==void 0?v=[(f+c)%this.options.snapToGrid,(g+u)%this.options.snapToGrid]:(f=f??3,v=[(this.parameters.box.x+c+(1&f?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+u+(2&f?0:this.parameters.box.height))%this.options.snapToGrid]),c<0&&(v[0]-=this.options.snapToGrid),u<0&&(v[1]-=this.options.snapToGrid),c-=Math.abs(v[0])<this.options.snapToGrid/2?v[0]:v[0]-(c<0?-this.options.snapToGrid:this.options.snapToGrid),u-=Math.abs(v[1])<this.options.snapToGrid/2?v[1]:v[1]-(u<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(c,u,f,g)},re.prototype.constraintToBox=function(c,u,f,g){var v,b,x=this.options.constraint||{};return g!==void 0?(v=f,b=g):(v=this.parameters.box.x+(1&f?0:this.parameters.box.width),b=this.parameters.box.y+(2&f?0:this.parameters.box.height)),x.minX!==void 0&&v+c<x.minX&&(c=x.minX-v),x.maxX!==void 0&&v+c>x.maxX&&(c=x.maxX-v),x.minY!==void 0&&b+u<x.minY&&(u=x.minY-b),x.maxY!==void 0&&b+u>x.maxY&&(u=x.maxY-b),[c,u]},re.prototype.checkAspectRatio=function(c,u){if(!this.options.saveAspectRatio)return c;var f=c.slice(),g=this.parameters.box.width/this.parameters.box.height,v=this.parameters.box.width+c[0],b=this.parameters.box.height-c[1],x=v/b;return x<g?(f[1]=v/g-this.parameters.box.height,u&&(f[1]=-f[1])):x>g&&(f[0]=this.parameters.box.width-b*g,u&&(f[0]=-f[0])),f},SVG.extend(SVG.Element,{resize:function(c){return(this.remember("_resizeHandler")||new re(this)).init(c||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var L0=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new L(this.ctx),this.ctx.axes=new Ie(this.ctx),this.ctx.core=new xC(this.ctx.el,this.ctx),this.ctx.config=new ce({}),this.ctx.data=new we(this.ctx),this.ctx.grid=new Xe(this.ctx),this.ctx.graphics=new F(this.ctx),this.ctx.coreUtils=new H(this.ctx),this.ctx.crosshairs=new He(this.ctx),this.ctx.events=new be(this.ctx),this.ctx.exports=new je(this.ctx),this.ctx.localization=new $e(this.ctx),this.ctx.options=new ye,this.ctx.responsive=new rt(this.ctx),this.ctx.series=new de(this.ctx),this.ctx.theme=new ze(this.ctx),this.ctx.formatters=new J(this.ctx),this.ctx.titleSubtitle=new We(this.ctx),this.ctx.legend=new It(this.ctx),this.ctx.toolbar=new Oe(this.ctx),this.ctx.tooltip=new mt(this.ctx),this.ctx.dimensions=new xt(this.ctx),this.ctx.updateHelpers=new wC(this.ctx),this.ctx.zoomPanSelection=new Ne(this.ctx),this.ctx.w.globals.tooltip=new mt(this.ctx)}}]),re}(),F0=function(){function re(c){o(this,re),this.ctx=c,this.w=c.w}return a(re,[{key:"clear",value:function(c){var u=c.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:u})}},{key:"killSVG",value:function(c){c.each(function(u,f){this.removeClass("*"),this.off(),this.stop()},!0),c.ungroup(),c.clear()}},{key:"clearDomElements",value:function(c){var u=this,f=c.isUpdating,g=this.w.globals.dom.Paper.node;g.parentNode&&g.parentNode.parentNode&&!f&&(g.parentNode.parentNode.style.minHeight="unset");var v=this.w.globals.dom.baseEl;v&&this.ctx.eventList.forEach(function(x){v.removeEventListener(x,u.ctx.events.documentEvent)});var b=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(b.Paper),b.Paper.remove(),b.elWrap=null,b.elGraphical=null,b.elAnnotations=null,b.elLegendWrap=null,b.baseEl=null,b.elGridRect=null,b.elGridRectMask=null,b.elGridRectMarkerMask=null,b.elForecastMask=null,b.elNonForecastMask=null,b.elDefs=null}}]),re}(),mg=new WeakMap,B0=function(){function re(c,u){o(this,re),this.opts=u,this.ctx=this,this.w=new Ae(u).init(),this.el=c,this.w.globals.cuid=_.randomId(),this.w.globals.chartID=this.w.config.chart.id?_.escapeString(this.w.config.chart.id):this.w.globals.cuid,new L0(this).initModules(),this.create=_.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return a(re,[{key:"render",value:function(){var c=this;return new Promise(function(u,f){if(c.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),c.w.config.chart.id&&Apex._chartInstances.push({id:c.w.globals.chartID,group:c.w.config.chart.group,chart:c}),c.setLocale(c.w.config.chart.defaultLocale);var g=c.w.config.chart.events.beforeMount;if(typeof g=="function"&&g(c,c.w),c.events.fireEvent("beforeMount",[c,c.w]),window.addEventListener("resize",c.windowResizeHandler),function($,R){var N=!1;if($.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var z=$.getBoundingClientRect();$.style.display!=="none"&&z.width!==0||(N=!0)}var U=new ResizeObserver(function(Y){N&&R.call($,Y),N=!0});$.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from($.children).forEach(function(Y){return U.observe(Y)}):U.observe($),mg.set(R,U)}(c.el.parentNode,c.parentResizeHandler),!c.css){var v=c.el.getRootNode&&c.el.getRootNode(),b=_.is("ShadowRoot",v),x=c.el.ownerDocument,E=x.getElementById("apexcharts-css");!b&&E||(c.css=document.createElement("style"),c.css.id="apexcharts-css",c.css.textContent=`@keyframes opaque {
  0% {
      opacity: 0
  }

  to {
      opacity: 1
  }
}

@keyframes resizeanim {
  0%,to {
      opacity: 0
  }
}

.apexcharts-canvas {
  position: relative;
  user-select: none
}

.apexcharts-canvas ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px
}

.apexcharts-canvas ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0,0,0,.5);
  box-shadow: 0 0 1px rgba(255,255,255,.5);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}

.apexcharts-inner {
  position: relative
}

.apexcharts-text tspan {
  font-family: inherit
}

.legend-mouseover-inactive {
  transition: .15s ease all;
  opacity: .2
}

.apexcharts-legend-text {
  padding-left: 15px;
  margin-left: -15px;
}

.apexcharts-series-collapsed {
  opacity: 0
}

.apexcharts-tooltip {
  border-radius: 5px;
  box-shadow: 2px 2px 6px -4px #999;
  cursor: default;
  font-size: 14px;
  left: 62px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  z-index: 12;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid #e3e3e3;
  background: rgba(255,255,255,.96)
}

.apexcharts-tooltip.apexcharts-theme-dark {
  color: #fff;
  background: rgba(30,30,30,.8)
}

.apexcharts-tooltip * {
  font-family: inherit
}

.apexcharts-tooltip-title {
  padding: 6px;
  font-size: 15px;
  margin-bottom: 4px
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  background: #eceff1;
  border-bottom: 1px solid #ddd
}

.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: rgba(0,0,0,.7);
  border-bottom: 1px solid #333
}

.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600
}

.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
  display: none
}

.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
  padding: 6px 0 5px
}

.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
  display: flex
}

.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
  margin-top: -6px
}

.apexcharts-tooltip-marker {
  width: 12px;
  height: 12px;
  position: relative;
  top: 0;
  margin-right: 10px;
  border-radius: 50%
}

.apexcharts-tooltip-series-group {
  padding: 0 10px;
  display: none;
  text-align: left;
  justify-content: left;
  align-items: center
}

.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
  opacity: 1
}

.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
  padding-bottom: 4px
}

.apexcharts-tooltip-series-group-hidden {
  opacity: 0;
  height: 0;
  line-height: 0;
  padding: 0!important
}

.apexcharts-tooltip-y-group {
  padding: 6px 0 5px
}

.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
  padding: 4px 8px
}

.apexcharts-tooltip-boxPlot {
  display: flex;
  flex-direction: column-reverse
}

.apexcharts-tooltip-box>div {
  margin: 4px 0
}

.apexcharts-tooltip-box span.value {
  font-weight: 700
}

.apexcharts-tooltip-rangebar {
  padding: 5px 8px
}

.apexcharts-tooltip-rangebar .category {
  font-weight: 600;
  color: #777
}

.apexcharts-tooltip-rangebar .series-name {
  font-weight: 700;
  display: block;
  margin-bottom: 5px
}

.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
  opacity: 0;
  pointer-events: none;
  color: #373d3f;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
  background: #eceff1;
  border: 1px solid #90a4ae
}

.apexcharts-xaxistooltip {
  padding: 9px 10px;
  transition: .15s ease all
}

.apexcharts-xaxistooltip.apexcharts-theme-dark {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(0,0,0,.5);
  color: #fff
}

.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-xaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-left: -6px
}

.apexcharts-xaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-left: -7px
}

.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
  bottom: 100%
}

.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
  top: 100%
}

.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: #eceff1
}

.apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: #90a4ae
}

.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
  border-bottom-color: rgba(0,0,0,.5)
}

.apexcharts-xaxistooltip-top:after {
  border-top-color: #eceff1
}

.apexcharts-xaxistooltip-top:before {
  border-top-color: #90a4ae
}

.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
  border-top-color: rgba(0,0,0,.5)
}

.apexcharts-xaxistooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-yaxistooltip {
  padding: 4px 10px
}

.apexcharts-yaxistooltip.apexcharts-theme-dark {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(0,0,0,.5);
  color: #fff
}

.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-yaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-top: -6px
}

.apexcharts-yaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-top: -7px
}

.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
  left: 100%
}

.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
  right: 100%
}

.apexcharts-yaxistooltip-left:after {
  border-left-color: #eceff1
}

.apexcharts-yaxistooltip-left:before {
  border-left-color: #90a4ae
}

.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
  border-left-color: rgba(0,0,0,.5)
}

.apexcharts-yaxistooltip-right:after {
  border-right-color: #eceff1
}

.apexcharts-yaxistooltip-right:before {
  border-right-color: #90a4ae
}

.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
  border-right-color: rgba(0,0,0,.5)
}

.apexcharts-yaxistooltip.apexcharts-active {
  opacity: 1
}

.apexcharts-yaxistooltip-hidden {
  display: none
}

.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
  pointer-events: none;
  opacity: 0;
  transition: .15s ease all
}

.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-ycrosshairs-hidden {
  opacity: 0
}

.apexcharts-selection-rect {
  cursor: move
}

.svg_select_boundingRect,.svg_select_points_rot {
  pointer-events: none;
  opacity: 0;
  visibility: hidden
}

.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
  opacity: 0;
  visibility: hidden
}

.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
  cursor: ew-resize;
  opacity: 1;
  visibility: visible
}

.svg_select_points {
  fill: #efefef;
  stroke: #333;
  rx: 2
}

.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
  cursor: crosshair
}

.apexcharts-svg.apexcharts-zoomable.hovering-pan {
  cursor: move
}

.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
  line-height: 24px;
  color: #6e8192;
  text-align: center
}

.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
  fill: #6e8192
}

.apexcharts-selection-icon svg {
  fill: #444;
  transform: scale(.76)
}

.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
  fill: #f3f4f5
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
  fill: #008ffb
}

.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
  fill: #333
}

.apexcharts-menu-icon,.apexcharts-selection-icon {
  position: relative
}

.apexcharts-reset-icon {
  margin-left: 5px
}

.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
  transform: scale(.85)
}

.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
  transform: scale(.7)
}

.apexcharts-zoomout-icon {
  margin-right: 3px
}

.apexcharts-pan-icon {
  transform: scale(.62);
  position: relative;
  left: 1px;
  top: 0
}

.apexcharts-pan-icon svg {
  fill: #fff;
  stroke: #6e8192;
  stroke-width: 2
}

.apexcharts-pan-icon.apexcharts-selected svg {
  stroke: #008ffb
}

.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
  stroke: #333
}

.apexcharts-toolbar {
  position: absolute;
  z-index: 11;
  max-width: 176px;
  text-align: right;
  border-radius: 3px;
  padding: 0 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.apexcharts-menu {
  background: #fff;
  position: absolute;
  top: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 3px;
  right: 10px;
  opacity: 0;
  min-width: 110px;
  transition: .15s ease all;
  pointer-events: none
}

.apexcharts-menu.apexcharts-menu-open {
  opacity: 1;
  pointer-events: all;
  transition: .15s ease all
}

.apexcharts-menu-item {
  padding: 6px 7px;
  font-size: 12px;
  cursor: pointer
}

.apexcharts-theme-light .apexcharts-menu-item:hover {
  background: #eee
}

.apexcharts-theme-dark .apexcharts-menu {
  background: rgba(0,0,0,.7);
  color: #fff
}

@media screen and (min-width:768px) {
  .apexcharts-canvas:hover .apexcharts-toolbar {
      opacity: 1
  }
}

.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
  opacity: 0
}

.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
  cursor: default;
  pointer-events: none
}

.apexcharts-pie-label-delay {
  opacity: 0;
  animation-name: opaque;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease
}

.apexcharts-legend {	
  display: flex;	
  overflow: auto;	
  padding: 0 10px;	
}	
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {	
  flex-wrap: wrap	
}	
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {	
  flex-direction: column;	
  bottom: 0;	
}	
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {	
  justify-content: flex-start;	
}	
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {	
  justify-content: center;  	
}	
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {	
  justify-content: flex-end;	
}	
.apexcharts-legend-series {	
  cursor: pointer;	
  line-height: normal;	
}	
.apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{	
  display: flex;	
  align-items: center;	
}	
.apexcharts-legend-text {	
  position: relative;	
  font-size: 14px;	
}	
.apexcharts-legend-text *, .apexcharts-legend-marker * {	
  pointer-events: none;	
}	
.apexcharts-legend-marker {	
  position: relative;	
  display: inline-block;	
  cursor: pointer;	
  margin-right: 3px;	
  border-style: solid;
}	
  
.apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{	
  display: inline-block;	
}	
.apexcharts-legend-series.apexcharts-no-click {	
  cursor: auto;	
}	
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {	
  display: none !important;	
}	
.apexcharts-inactive-legend {	
  opacity: 0.45;	
}

.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
  pointer-events: none
}

.apexcharts-marker {
  transition: .15s ease all
}

.resize-triggers {
  animation: 1ms resizeanim;
  visibility: hidden;
  opacity: 0;
  height: 100%;
  width: 100%;
  overflow: hidden
}

.contract-trigger:before,.resize-triggers,.resize-triggers>div {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0
}

.resize-triggers>div {
  height: 100%;
  width: 100%;
  background: #eee;
  overflow: auto
}

.contract-trigger:before {
  overflow: hidden;
  width: 200%;
  height: 200%
}
`,b?v.prepend(c.css):x.head.appendChild(c.css))}var T=c.create(c.w.config.series,{});if(!T)return u(c);c.mount(T).then(function(){typeof c.w.config.chart.events.mounted=="function"&&c.w.config.chart.events.mounted(c,c.w),c.events.fireEvent("mounted",[c,c.w]),u(T)}).catch(function($){f($)})}else f(new Error("Element not found"))})}},{key:"create",value:function(c,u){var f=this.w;new L0(this).initModules();var g=this.w.globals;if(g.noData=!1,g.animationEnded=!1,this.responsive.checkResponsiveConfig(u),f.config.xaxis.convertedCatToNumeric&&new q(f.config).convertCatToNumericXaxis(f.config,this.ctx),this.el===null||(this.core.setupElements(),f.config.chart.type==="treemap"&&(f.config.grid.show=!1,f.config.yaxis[0].show=!1),g.svgWidth===0))return g.animationEnded=!0,null;var v=H.checkComboSeries(c);g.comboCharts=v.comboCharts,g.comboBarCount=v.comboBarCount;var b=c.every(function(R){return R.data&&R.data.length===0});(c.length===0||b)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(c),this.theme.init(),new _e(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),g.noData&&g.collapsedSeries.length!==g.series.length&&!f.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),g.axisCharts&&(this.core.coreCalculations(),f.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=f.globals.minX,this.ctx.toolbar.maxX=f.globals.maxX),this.formatters.heatmapLabelFormatters(),new H(this).getLargestMarkerSize(),this.dimensions.plotCoords();var x=this.core.xySettings();this.grid.createGridMask();var E=this.core.plotChartType(c,x),T=new Q(this);T.bringForward(),f.config.dataLabels.background.enabled&&T.dataLabelsBackground(),this.core.shiftGraphPosition();var $={plot:{left:f.globals.translateX,top:f.globals.translateY,width:f.globals.gridWidth,height:f.globals.gridHeight}};return{elGraph:E,xyRatios:x,elInner:f.globals.dom.elGraphical,dimensions:$}}},{key:"mount",value:function(){var c=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,f=this,g=f.w;return new Promise(function(v,b){if(f.el===null)return b(new Error("Not enough data to display or target element not found"));(u===null||g.globals.allSeriesCollapsed)&&f.series.handleNoData(),f.grid=new Xe(f);var x=f.grid.drawGrid();if(f.annotations=new ve(f),f.annotations.drawImageAnnos(),f.annotations.drawTextAnnos(),g.config.grid.position==="back"&&x&&g.globals.dom.elGraphical.add(x.el),Array.isArray(u.elGraph))for(var E=0;E<u.elGraph.length;E++)g.globals.dom.elGraphical.add(u.elGraph[E]);else g.globals.dom.elGraphical.add(u.elGraph);g.config.grid.position==="front"&&x&&g.globals.dom.elGraphical.add(x.el),x&&x.elGridBorders&&x.elGridBorders.node&&g.globals.dom.elGraphical.add(x.elGridBorders),g.config.xaxis.crosshairs.position==="front"&&f.crosshairs.drawXCrosshairs(),g.config.yaxis[0].crosshairs.position==="front"&&f.crosshairs.drawYCrosshairs(),g.config.chart.type!=="treemap"&&f.axes.drawAxis(g.config.chart.type,x);var T=new Ue(c.ctx,x),$=new ee(c.ctx,x);if(x!==null&&(T.xAxisLabelCorrections(x.xAxisTickWidth),$.setYAxisTextAlignments(),g.config.yaxis.map(function(N,z){g.globals.ignoreYAxisIndexes.indexOf(z)===-1&&$.yAxisTitleRotate(z,N.opposite)})),g.globals.dom.Paper.add(g.globals.dom.elAnnotations),f.annotations.drawAxesAnnotations(),!g.globals.noData){if(g.config.tooltip.enabled&&!g.globals.noData&&f.w.globals.tooltip.drawTooltip(u.xyRatios),g.globals.axisCharts&&(g.globals.isXNumeric||g.config.xaxis.convertedCatToNumeric||g.globals.isRangeBar))(g.config.chart.zoom.enabled||g.config.chart.selection&&g.config.chart.selection.enabled||g.config.chart.pan&&g.config.chart.pan.enabled)&&f.zoomPanSelection.init({xyRatios:u.xyRatios});else{var R=g.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(N){R[N]=!1})}g.config.chart.toolbar.show&&!g.globals.allSeriesCollapsed&&f.toolbar.createToolbar()}g.globals.memory.methodsToExec.length>0&&g.globals.memory.methodsToExec.forEach(function(N){N.method(N.params,!1,N.context)}),g.globals.axisCharts||g.globals.noData||f.core.resizeNonAxisCharts(),v(f)})}},{key:"destroy",value:function(){var c,u;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,c=this.parentResizeHandler,(u=mg.get(c))&&(u.disconnect(),mg.delete(c));var f=this.w.config.chart.id;f&&Apex._chartInstances.forEach(function(g,v){g.id===_.escapeString(f)&&Apex._chartInstances.splice(v,1)}),new F0(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(c){var u=this,f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],v=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],b=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],x=this.w;return x.globals.selection=void 0,c.series&&(this.series.resetSeries(!1,!0,!1),c.series.length&&c.series[0].data&&(c.series=c.series.map(function(E,T){return u.updateHelpers._extendSeries(E,T)})),this.updateHelpers.revertDefaultAxisMinMax()),c.xaxis&&(c=this.updateHelpers.forceXAxisUpdate(c)),c.yaxis&&(c=this.updateHelpers.forceYAxisUpdate(c)),x.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),c.theme&&(c=this.theme.updateThemeOptions(c)),this.updateHelpers._updateOptions(c,f,g,v,b)}},{key:"updateSeries",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(c,u,f)}},{key:"appendSeries",value:function(c){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],g=this.w.config.series.slice();return g.push(c),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(g,u,f)}},{key:"appendData",value:function(c){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=this;f.w.globals.dataChanged=!0,f.series.getPreviousPaths();for(var g=f.w.config.series.slice(),v=0;v<g.length;v++)if(c[v]!==null&&c[v]!==void 0)for(var b=0;b<c[v].data.length;b++)g[v].data.push(c[v].data[b]);return f.w.config.series=g,u&&(f.w.globals.initialSeries=_.clone(f.w.config.series)),this.update()}},{key:"update",value:function(c){var u=this;return new Promise(function(f,g){new F0(u.ctx).clear({isUpdating:!0});var v=u.create(u.w.config.series,c);if(!v)return f(u);u.mount(v).then(function(){typeof u.w.config.chart.events.updated=="function"&&u.w.config.chart.events.updated(u,u.w),u.events.fireEvent("updated",[u,u.w]),u.w.globals.isDirty=!0,f(u)}).catch(function(b){g(b)})})}},{key:"getSyncedCharts",value:function(){var c=this.getGroupedCharts(),u=[this];return c.length&&(u=[],c.forEach(function(f){u.push(f)})),u}},{key:"getGroupedCharts",value:function(){var c=this;return Apex._chartInstances.filter(function(u){if(u.group)return!0}).map(function(u){return c.w.config.chart.group===u.group?u.chart:c})}},{key:"toggleSeries",value:function(c){return this.series.toggleSeries(c)}},{key:"highlightSeriesOnLegendHover",value:function(c,u){return this.series.toggleSeriesOnHover(c,u)}},{key:"showSeries",value:function(c){this.series.showSeries(c)}},{key:"hideSeries",value:function(c){this.series.hideSeries(c)}},{key:"resetSeries",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(c,u)}},{key:"addEventListener",value:function(c,u){this.events.addEventListener(c,u)}},{key:"removeEventListener",value:function(c,u){this.events.removeEventListener(c,u)}},{key:"addXaxisAnnotation",value:function(c){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,g=this;f&&(g=f),g.annotations.addXaxisAnnotationExternal(c,u,g)}},{key:"addYaxisAnnotation",value:function(c){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,g=this;f&&(g=f),g.annotations.addYaxisAnnotationExternal(c,u,g)}},{key:"addPointAnnotation",value:function(c){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,g=this;f&&(g=f),g.annotations.addPointAnnotationExternal(c,u,g)}},{key:"clearAnnotations",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,u=this;c&&(u=c),u.annotations.clearAnnotations(u)}},{key:"removeAnnotation",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,f=this;u&&(f=u),f.annotations.removeAnnotation(f,c)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(c,u){return this.coreUtils.getSeriesTotalsXRange(c,u)}},{key:"getHighestValueInSeries",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new K(this.ctx).getMinYMaxY(c).highestY}},{key:"getLowestValueInSeries",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new K(this.ctx).getMinYMaxY(c).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(c,u){return this.updateHelpers.toggleDataPointSelection(c,u)}},{key:"zoomX",value:function(c,u){this.ctx.toolbar.zoomUpdateOptions(c,u)}},{key:"setLocale",value:function(c){this.localization.setCurrentLocaleValues(c)}},{key:"dataURI",value:function(c){return new je(this.ctx).dataURI(c)}},{key:"exportToCSV",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new je(this.ctx).exportToCSV(c)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var c=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){c.w.globals.resized=!0,c.w.globals.dataChanged=!1,c.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var c=this.w.config.chart.redrawOnWindowResize;typeof c=="function"&&(c=c()),c&&this._windowResize()}}],[{key:"getChartByID",value:function(c){var u=_.escapeString(c),f=Apex._chartInstances.filter(function(g){return g.id===u})[0];return f&&f.chart}},{key:"initOnLoad",value:function(){for(var c=document.querySelectorAll("[data-apexcharts]"),u=0;u<c.length;u++)new re(c[u],JSON.parse(c[u].getAttribute("data-options"))).render()}},{key:"exec",value:function(c,u){var f=this.getChartByID(c);if(f){f.w.globals.isExecCalled=!0;var g=null;if(f.publicMethods.indexOf(u)!==-1){for(var v=arguments.length,b=new Array(v>2?v-2:0),x=2;x<v;x++)b[x-2]=arguments[x];g=f[u].apply(f,b)}return g}}},{key:"merge",value:function(c,u){return _.extend(c,u)}}]),re}();t.exports=B0}(mwt,lv)),lv}(function(t){t.exports=function(e){var n={};function r(i){if(n[i])return n[i].exports;var o=n[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=n,r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:s})},r.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,o){if(o&1&&(i=r(i)),o&8||o&4&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),o&2&&typeof i!="string")for(var a in i)r.d(s,a,function(l){return i[l]}.bind(null,a));return s},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s="fb15")}({8875:function(e,n,r){var i,o,s;(function(a,l){o=[],i=l,s=typeof i=="function"?i.apply(n,o):i,s!==void 0&&(e.exports=s)})(typeof self<"u"?self:this,function(){function a(){var l=Object.getOwnPropertyDescriptor(document,"currentScript");if(!l&&"currentScript"in document&&document.currentScript||l&&l.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(M){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=d.exec(M.stack)||h.exec(M.stack),y=p&&p[1]||!1,w=p&&p[2]||!1,C=document.location.href.replace(document.location.hash,""),k,D,I,_=document.getElementsByTagName("script");y===C&&(k=document.documentElement.outerHTML,D=new RegExp("(?:[^\\n]+?\\n){0,"+(w-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),I=k.replace(D,"$1").trim());for(var L=0;L<_.length;L++)if(_[L].readyState==="interactive"||_[L].src===y||y===C&&_[L].innerHTML&&_[L].innerHTML.trim()===I)return _[L];return null}}return a})},"8bbf":function(e,n){e.exports=RO},"95e6":function(e,n){e.exports=vwt()},fb15:function(e,n,r){if(r.r(n),typeof window<"u"){var i=window.document.currentScript;{var o=r("8875");i=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var s=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);s&&(r.p=s[1])}var a=r("8bbf"),l=r("95e6"),d=r.n(l);const h=["animationEnd","beforeMount","mounted","updated","click","mouseMove","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","scrolled"];var y=Object(a.defineComponent)({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:h,setup(k,{emit:D}){const I=Object(a.ref)(null),_=Object(a.ref)(null),L=Q=>Q&&typeof Q=="object"&&!Array.isArray(Q)&&Q!=null,M=(Q,de)=>{typeof Object.assign!="function"&&function(){Object.assign=function(Ce){if(Ce==null)throw new TypeError("Cannot convert undefined or null to object");let je=Object(Ce);for(let Ue=1;Ue<arguments.length;Ue++){let Xe=arguments[Ue];if(Xe!=null)for(let qe in Xe)Xe.hasOwnProperty(qe)&&(je[qe]=Xe[qe])}return je}}();let we=Object.assign({},Q);return L(Q)&&L(de)&&Object.keys(de).forEach(Ce=>{L(de[Ce])?Ce in Q?we[Ce]=M(Q[Ce],de[Ce]):Object.assign(we,{[Ce]:de[Ce]}):Object.assign(we,{[Ce]:de[Ce]})}),we},F=async()=>{await Object(a.nextTick)();const Q={chart:{type:k.type||k.options.chart.type||"line",height:k.height,width:k.width,events:{}},series:k.series};h.forEach(we=>{let Ce=(...je)=>D(we,...je);Q.chart.events[we]=Ce});const de=M(k.options,Q);return _.value=new d.a(I.value,de),_.value.render()},H=()=>(G(),F()),G=()=>{_.value.destroy()},X=(Q,de)=>_.value.updateSeries(Q,de),Z=(Q,de,we,Ce)=>_.value.updateOptions(Q,de,we,Ce),te=Q=>_.value.toggleSeries(Q),ae=Q=>{_.value.showSeries(Q)},ye=Q=>{_.value.hideSeries(Q)},ve=(Q,de)=>_.value.appendSeries(Q,de),se=()=>{_.value.resetSeries()},J=(Q,de)=>{_.value.toggleDataPointSelection(Q,de)},B=Q=>_.value.appendData(Q),V=(Q,de)=>_.value.zoomX(Q,de),q=()=>_.value.dataURI(),ce=(Q,de)=>{_.value.addXaxisAnnotation(Q,de)},fe=(Q,de)=>{_.value.addYaxisAnnotation(Q,de)},Ae=(Q,de)=>{_.value.addPointAnnotation(Q,de)},Se=(Q,de)=>{_.value.removeAnnotation(Q,de)},_e=()=>{_.value.clearAnnotations()};Object(a.onBeforeMount)(()=>{window.ApexCharts=d.a}),Object(a.onMounted)(()=>{I.value=Object(a.getCurrentInstance)().proxy.$el,F()}),Object(a.onBeforeUnmount)(()=>{_.value&&G()});const Be=Object(a.toRefs)(k);return Object(a.watch)(Be.options,()=>{!_.value&&k.options?F():_.value.updateOptions(k.options)}),Object(a.watch)(Be.series,()=>{!_.value&&k.series?F():_.value.updateSeries(k.series)},{deep:!0}),Object(a.watch)(Be.type,()=>{H()}),Object(a.watch)(Be.width,()=>{H()}),Object(a.watch)(Be.height,()=>{H()}),{chart:_,init:F,refresh:H,destroy:G,updateOptions:Z,updateSeries:X,toggleSeries:te,showSeries:ae,hideSeries:ye,resetSeries:se,zoomX:V,toggleDataPointSelection:J,appendData:B,appendSeries:ve,addXaxisAnnotation:ce,addYaxisAnnotation:fe,addPointAnnotation:Ae,removeAnnotation:Se,clearAnnotations:_e,dataURI:q}},render(){return Object(a.h)("div",{class:"vue-apexcharts"})}});const w=k=>{k.component(y.name,y)};y.install=w;var C=y;n.default=C}})})(gwt);const hCt=B$(cD);(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover div{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active div{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var bwt=Object.defineProperty,s9=Object.getOwnPropertySymbols,ywt=Object.prototype.hasOwnProperty,xwt=Object.prototype.propertyIsEnumerable,a9=(t,e,n)=>e in t?bwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,l9=(t,e)=>{for(var n in e||(e={}))ywt.call(e,n)&&a9(t,n,e[n]);if(s9)for(var n of s9(e))xwt.call(e,n)&&a9(t,n,e[n]);return t},wwt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const Swt=Jn({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume"],setup(t,{emit:e}){const n=ct(0),r=ct("100%"),i=ct("100%"),o=ct(0),s=ct(!1),a=ct(0),l=ct(0),d=ct(0),h=ct(0),p=ct(0),y=ct(null),w=ct("200px"),C=ct(!1),k=ct(null),D=ct(null),I=async()=>{await _(),o.value++},_=async()=>{t.vertical&&(s.value=!0),setInterval(()=>{if(r.value="0%",i.value="0%",k.value!==null&&D.value!==null)if(k.value&&D.value)if(t.vertical&&"clientHeight"in k.value&&"clientHeight"in D.value){h.value=k.value.clientHeight,d.value=D.value.clientHeight;const te=Math.ceil(d.value/h.value);return n.value=isFinite(te)?te:0,s.value=!1,n.value}else if(!t.vertical&&"clientWidth"in k.value&&"clientWidth"in D.value){l.value=k.value.clientWidth,a.value=D.value.clientWidth;const te=Math.ceil(a.value/l.value);return n.value=isFinite(te)?te:0,n.value}else return r.value="100%",i.value="100%",0;else return r.value="100%",i.value="100%",0;else return r.value="100%",i.value="100%",0},100)};en(l,async()=>{t.clone&&I()}),en(a,async()=>{t.clone&&I()}),en(()=>t.pause,(te,ae)=>{te!==ae&&e(te?"onResume":"onPause")});const L=()=>{t.pauseOnHover&&e("onPause")},M=()=>{t.pauseOnHover&&e("onResume")},F=()=>{t.pauseOnClick&&e("onPause")},H=()=>{t.pauseOnClick&&e("onResume")},G=lt(()=>{const te={"--duration":`${t.duration}s`,"--delay":`${t.delay}s`,"--direction":`${t.direction}`,"--pauseOnHover":`${t.pauseOnHover?"paused":"running"}`,"--pauseOnClick":`${t.pauseOnClick?"paused":"running"}`,"--pauseAnimation":`${t.vertical&&s.value||t.pause?"paused":"running"}`,"--loops":`${t.loop===0?"infinite":t.loop}`,"--gradient-color":`rgba(${t.gradientColor[0]}, ${t.gradientColor[1]}, ${t.gradientColor[2]}, 1), rgba(${t.gradientColor[0]}, ${t.gradientColor[1]}, ${t.gradientColor[2]}, 0)`,"--gradient-length":`${w.value}`,"--min-width":`${r.value}`,"--min-height":`${i.value}`},ae={"--orientation":"scrollX",orientation:"horizontal"};return t.vertical&&(ae["--orientation"]="scrollY"),l9(l9({},te),ae)}),X=lt(()=>!!t.gradient),Z=async()=>{t.vertical?(i.value="100%",r.value="auto"):(i.value="auto",r.value="100%"),t.gradient&&(t.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),w.value=t.gradientWidth):t.gradientLength&&(w.value=t.gradientLength)),t.clone&&(await _(),I()),C.value=!0};return Rr(async()=>{Z(),y.value=setInterval(()=>{p.value++,t.loop!==0&&p.value===t.loop&&(e("onComplete"),clearInterval(y.value)),e("onLoopComplete")},t.duration*1e3)}),tg(()=>{clearInterval(y.value)}),{ready:C,contentWidth:l,containerWidth:a,contentHeight:h,containerHeight:d,loopCounter:p,loopInterval:y,minWidth:r,minHeight:i,marqueeContent:k,marqueeOverlayContainer:D,componentKey:o,showGradient:X,cloneAmount:n,ForcesUpdate:I,checkForClone:_,setupMarquee:Z,getCurrentStyle:G,hoverStarted:L,hoverEnded:M,mouseDown:F,mouseUp:H}}}),Cwt={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Ewt={class:"marquee",ref:"marqueeContent"},Awt={class:"marquee","aria-hidden":!0};function kwt(t,e,n,r,i,o){return t.ready?(Et(),Mn("div",{class:$r(["vue3-marquee",{vertical:t.vertical,horizontal:!t.vertical}]),style:Ei(t.getCurrentStyle),key:t.componentKey,onMouseenter:e[0]||(e[0]=(...s)=>t.hoverStarted&&t.hoverStarted(...s)),onMouseleave:e[1]||(e[1]=(...s)=>t.hoverEnded&&t.hoverEnded(...s)),onMousedown:e[2]||(e[2]=(...s)=>t.mouseDown&&t.mouseDown(...s)),onMouseup:e[3]||(e[3]=(...s)=>t.mouseUp&&t.mouseUp(...s))},[Lt("div",Cwt,null,512),t.showGradient?(Et(),Mn("div",{key:0,"aria-hidden":!0,class:$r(["overlay",{vertical:t.vertical,horizontal:!t.vertical}])},null,2)):fr("",!0),Lt("div",Ewt,[Yr(t.$slots,"default")],512),Lt("div",Awt,[Yr(t.$slots,"default")]),(Et(!0),Mn(Gn,null,pv(t.cloneAmount,s=>(Et(),Mn("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[Yr(t.$slots,"default")]))),128))],38)):fr("",!0)}var Twt=wwt(Swt,[["render",kwt]]),pCt={install(t,e){var n;const r=(n=e==null?void 0:e.name)!=null?n:"Vue3Marquee";t.component(r,Twt)}};export{gSt as $,kt as A,Fl as B,$r as C,Rr as D,as as E,Lr as F,kn as G,ji as H,Pwt as I,fr as J,Yr as K,LD as L,WD as M,Uwt as N,iSt as O,cSt as P,pSt as Q,Nt as R,pv as S,noe as T,hp as U,Gn as V,Ir as W,zw as X,tg as Y,zD as Z,Ei as _,Vwt as a,J3e as a$,Oie as a0,Bwt as a1,en as a2,Kse as a3,Fwt as a4,Wse as a5,up as a6,mSt as a7,HD as a8,t7 as a9,wt as aA,ut as aB,Cn as aC,JSt as aD,USt as aE,KSt as aF,qSt as aG,Xt as aH,zSt as aI,WSt as aJ,jSt as aK,VSt as aL,tCt as aM,vI as aN,tOe as aO,nCt as aP,Y$e as aQ,HSt as aR,X$e as aS,ZSt as aT,QSt as aU,eCt as aV,nMe as aW,iMe as aX,oMe as aY,aMe as aZ,Z3e as a_,xSt as aa,wSt as ab,ySt as ac,ISt as ad,Ad as ae,sSt as af,IEe as ag,MSt as ah,jwt as ai,jie as aj,mre as ak,TO as al,hu as am,gr as an,lSt as ao,aSt as ap,PSt as aq,cV as ar,Hw as as,NSt as at,fn as au,If as av,zr as aw,Qo as ax,IY as ay,qn as az,Qwt as b,pCt as b$,gX as b0,rMe as b1,Emt as b2,Dmt as b3,rCt as b4,LV as b5,Amt as b6,YSt as b7,XSt as b8,GSt as b9,OSt as bA,DSt as bB,CSt as bC,ESt as bD,ASt as bE,SSt as bF,TSt as bG,_St as bH,kSt as bI,e0 as bJ,aCt as bK,lCt as bL,uSt as bM,oSt as bN,fSt as bO,hSt as bP,Mwt as bQ,Owt as bR,gp as bS,_wt as bT,uCt as bU,cCt as bV,fCt as bW,dCt as bX,vSt as bY,hCt as bZ,RSt as b_,LSt as ba,FSt as bb,BSt as bc,WO as bd,MIe as be,jp as bf,Ph as bg,za as bh,Eae as bi,Rwt as bj,Wwt as bk,Af as bl,Hwt as bm,Iwt as bn,d9 as bo,ND as bp,so as bq,iCt as br,oCt as bs,MI as bt,lG as bu,iG as bv,ebt as bw,Dbt as bx,sCt as by,$St as bz,qwt as c,Zwt as c0,Kwt as c1,Jwt as c2,dSt as c3,Dwt as d,Xwt as e,ct as f,lt as g,Ywt as h,zwt as i,Lwt as j,CT as k,KE as l,tSt as m,Mye as n,nSt as o,rSt as p,Jn as q,lo as r,$wt as s,sB as t,Nwt as u,eSt as v,Et as w,Mn as x,Lt as y,oa as z};
