pangea-lib 4.0.210 → 4.0.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs.js CHANGED
@@ -3,7 +3,7 @@
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(E){return E instanceof this?E:new this(E)}static concat(E,...I){const Z=new this(E);return I.forEach(Q=>Z.set(Q)),Z}static accessor(E){const I=(this[A2]=this[A2]={accessors:{}}).accessors,Z=this.prototype;function Q(c1){const t1=h2(c1);I[t1]||(function(M1,V1){const w1=A.toCamelCase(" "+V1);["get","set","has"].forEach(b1=>{Object.defineProperty(M1,b1+w1,{value:function(D1,O1,G1){return this[b1].call(this,V1,D1,O1,G1)},configurable:!0})})}(Z,c1),I[t1]=!0)}return A.isArray(E)?E.forEach(Q):Q(E),this}}f1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(f1.prototype,({value:P},E)=>{let I=E[0].toUpperCase()+E.slice(1);return{get:()=>P,set(Z){this[I]=Z}}}),A.freezeMethods(f1);var i1=f1;function H1(P,E){const I=this||$1,Z=E||I,Q=i1.from(Z.headers);let c1=Z.data;return A.forEach(P,function(t1){c1=t1.call(I,c1,Q.normalize(),E?E.status:void 0)}),Q.normalize(),c1}function _1(P){return!(!P||!P.__CANCEL__)}function U1(P,E,I){R.call(this,P??"canceled",R.ERR_CANCELED,E,I),this.name="CanceledError"}A.inherits(U1,R,{__CANCEL__:!0});var g2=Y1.hasStandardBrowserEnv?{write(P,E,I,Z,Q,c1){const t1=[P+"="+encodeURIComponent(E)];A.isNumber(I)&&t1.push("expires="+new Date(I).toGMTString()),A.isString(Z)&&t1.push("path="+Z),A.isString(Q)&&t1.push("domain="+Q),c1===!0&&t1.push("secure"),document.cookie=t1.join("; ")},read(P){const E=document.cookie.match(new RegExp("(^|;\\s*)("+P+")=([^;]*)"));return E?decodeURIComponent(E[3]):null},remove(P){this.write(P,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function L2(P,E){return P&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(E)?function(I,Z){return Z?I.replace(/\/?\/$/,"")+"/"+Z.replace(/^\/+/,""):I}(P,E):E}var B3=Y1.hasStandardBrowserEnv?function(){const P=/(msie|trident)/i.test(navigator.userAgent),E=document.createElement("a");let I;function Z(Q){let c1=Q;return P&&(E.setAttribute("href",c1),c1=E.href),E.setAttribute("href",c1),{href:E.href,protocol:E.protocol?E.protocol.replace(/:$/,""):"",host:E.host,search:E.search?E.search.replace(/^\?/,""):"",hash:E.hash?E.hash.replace(/^#/,""):"",hostname:E.hostname,port:E.port,pathname:E.pathname.charAt(0)==="/"?E.pathname:"/"+E.pathname}}return I=Z(window.location.href),function(Q){const c1=A.isString(Q)?Z(Q):Q;return c1.protocol===I.protocol&&c1.host===I.host}}():function(){return!0};function f4(P,E){let I=0;const Z=function(Q,c1){Q=Q||10;const t1=new Array(Q),M1=new Array(Q);let V1,w1=0,b1=0;return c1=c1!==void 0?c1:1e3,function(D1){const O1=Date.now(),G1=M1[b1];V1||(V1=O1),t1[w1]=D1,M1[w1]=O1;let P1=b1,Q1=0;for(;P1!==w1;)Q1+=t1[P1++],P1%=Q;if(w1=(w1+1)%Q,w1===b1&&(b1=(b1+1)%Q),O1-V1<c1)return;const p2=G1&&O1-G1;return p2?Math.round(1e3*Q1/p2):void 0}}(50,250);return Q=>{const c1=Q.loaded,t1=Q.lengthComputable?Q.total:void 0,M1=c1-I,V1=Z(M1);I=c1;const w1={loaded:c1,total:t1,progress:t1?c1/t1:void 0,bytes:M1,rate:V1||void 0,estimated:V1&&t1&&c1<=t1?(t1-c1)/V1:void 0,event:Q};w1[E?"download":"upload"]=!0,P(w1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(P){return new Promise(function(E,I){let Z=P.data;const Q=i1.from(P.headers).normalize();let c1,t1,{responseType:M1,withXSRFToken:V1}=P;function w1(){P.cancelToken&&P.cancelToken.unsubscribe(c1),P.signal&&P.signal.removeEventListener("abort",c1)}if(A.isFormData(Z)){if(Y1.hasStandardBrowserEnv||Y1.hasStandardBrowserWebWorkerEnv)Q.setContentType(!1);else if((t1=Q.getContentType())!==!1){const[P1,...Q1]=t1?t1.split(";").map(p2=>p2.trim()).filter(Boolean):[];Q.setContentType([P1||"multipart/form-data",...Q1].join("; "))}}let b1=new XMLHttpRequest;if(P.auth){const P1=P.auth.username||"",Q1=P.auth.password?unescape(encodeURIComponent(P.auth.password)):"";Q.set("Authorization","Basic "+btoa(P1+":"+Q1))}const D1=L2(P.baseURL,P.url);function O1(){if(!b1)return;const P1=i1.from("getAllResponseHeaders"in b1&&b1.getAllResponseHeaders());(function(Q1,p2,Z2){const vn=Z2.config.validateStatus;Z2.status&&vn&&!vn(Z2.status)?p2(new R("Request failed with status code "+Z2.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(Z2.status/100)-4],Z2.config,Z2.request,Z2)):Q1(Z2)})(function(Q1){E(Q1),w1()},function(Q1){I(Q1),w1()},{data:M1&&M1!=="text"&&M1!=="json"?b1.response:b1.responseText,status:b1.status,statusText:b1.statusText,headers:P1,config:P,request:b1}),b1=null}if(b1.open(P.method.toUpperCase(),d1(D1,P.params,P.paramsSerializer),!0),b1.timeout=P.timeout,"onloadend"in b1?b1.onloadend=O1:b1.onreadystatechange=function(){b1&&b1.readyState===4&&(b1.status!==0||b1.responseURL&&b1.responseURL.indexOf("file:")===0)&&setTimeout(O1)},b1.onabort=function(){b1&&(I(new R("Request aborted",R.ECONNABORTED,P,b1)),b1=null)},b1.onerror=function(){I(new R("Network Error",R.ERR_NETWORK,P,b1)),b1=null},b1.ontimeout=function(){let P1=P.timeout?"timeout of "+P.timeout+"ms exceeded":"timeout exceeded";const Q1=P.transitional||p1;P.timeoutErrorMessage&&(P1=P.timeoutErrorMessage),I(new R(P1,Q1.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,P,b1)),b1=null},Y1.hasStandardBrowserEnv&&(V1&&A.isFunction(V1)&&(V1=V1(P)),V1||V1!==!1&&B3(D1))){const P1=P.xsrfHeaderName&&P.xsrfCookieName&&g2.read(P.xsrfCookieName);P1&&Q.set(P.xsrfHeaderName,P1)}Z===void 0&&Q.setContentType(null),"setRequestHeader"in b1&&A.forEach(Q.toJSON(),function(P1,Q1){b1.setRequestHeader(Q1,P1)}),A.isUndefined(P.withCredentials)||(b1.withCredentials=!!P.withCredentials),M1&&M1!=="json"&&(b1.responseType=P.responseType),typeof P.onDownloadProgress=="function"&&b1.addEventListener("progress",f4(P.onDownloadProgress,!0)),typeof P.onUploadProgress=="function"&&b1.upload&&b1.upload.addEventListener("progress",f4(P.onUploadProgress)),(P.cancelToken||P.signal)&&(c1=P1=>{b1&&(I(!P1||P1.type?new U1(null,P,b1):P1),b1.abort(),b1=null)},P.cancelToken&&P.cancelToken.subscribe(c1),P.signal&&(P.signal.aborted?c1():P.signal.addEventListener("abort",c1)));const G1=function(P1){const Q1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(P1);return Q1&&Q1[1]||""}(D1);G1&&Y1.protocols.indexOf(G1)===-1?I(new R("Unsupported protocol "+G1+":",R.ERR_BAD_REQUEST,P)):b1.send(Z||null)})}};A.forEach(s2,(P,E)=>{if(P){try{Object.defineProperty(P,"name",{value:E})}catch{}Object.defineProperty(P,"adapterName",{value:E})}});const _2=P=>`- ${P}`,K4=P=>A.isFunction(P)||P===null||P===!1;var Q4=P=>{P=A.isArray(P)?P:[P];const{length:E}=P;let I,Z;const Q={};for(let c1=0;c1<E;c1++){let t1;if(I=P[c1],Z=I,!K4(I)&&(Z=s2[(t1=String(I)).toLowerCase()],Z===void 0))throw new R(`Unknown adapter '${t1}'`);if(Z)break;Q[t1||"#"+c1]=Z}if(!Z){const c1=Object.entries(Q).map(([t1,M1])=>`adapter ${t1} `+(M1===!1?"is not supported by the environment":"is not available in the build"));throw new R("There is no suitable adapter to dispatch the request "+(E?c1.length>1?`since :
4
4
  `+c1.map(_2).join(`
5
5
  `):" "+_2(c1[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return Z};function J4(P){if(P.cancelToken&&P.cancelToken.throwIfRequested(),P.signal&&P.signal.aborted)throw new U1(null,P)}function Ze(P){return J4(P),P.headers=i1.from(P.headers),P.data=H1.call(P,P.transformRequest),["post","put","patch"].indexOf(P.method)!==-1&&P.headers.setContentType("application/x-www-form-urlencoded",!1),Q4(P.adapter||$1.adapter)(P).then(function(E){return J4(P),E.data=H1.call(P,P.transformResponse,E),E.headers=i1.from(E.headers),E},function(E){return _1(E)||(J4(P),E&&E.response&&(E.response.data=H1.call(P,P.transformResponse,E.response),E.response.headers=i1.from(E.response.headers))),Promise.reject(E)})}const Xe=P=>P instanceof i1?{...P}:P;function u4(P,E){E=E||{};const I={};function Z(w1,b1,D1){return A.isPlainObject(w1)&&A.isPlainObject(b1)?A.merge.call({caseless:D1},w1,b1):A.isPlainObject(b1)?A.merge({},b1):A.isArray(b1)?b1.slice():b1}function Q(w1,b1,D1){return A.isUndefined(b1)?A.isUndefined(w1)?void 0:Z(void 0,w1,D1):Z(w1,b1,D1)}function c1(w1,b1){if(!A.isUndefined(b1))return Z(void 0,b1)}function t1(w1,b1){return A.isUndefined(b1)?A.isUndefined(w1)?void 0:Z(void 0,w1):Z(void 0,b1)}function M1(w1,b1,D1){return D1 in E?Z(w1,b1):D1 in P?Z(void 0,w1):void 0}const V1={url:c1,method:c1,data:c1,baseURL:t1,transformRequest:t1,transformResponse:t1,paramsSerializer:t1,timeout:t1,timeoutMessage:t1,withCredentials:t1,withXSRFToken:t1,adapter:t1,responseType:t1,xsrfCookieName:t1,xsrfHeaderName:t1,onUploadProgress:t1,onDownloadProgress:t1,decompress:t1,maxContentLength:t1,maxBodyLength:t1,beforeRedirect:t1,transport:t1,httpAgent:t1,httpsAgent:t1,cancelToken:t1,socketPath:t1,responseEncoding:t1,validateStatus:M1,headers:(w1,b1)=>Q(Xe(w1),Xe(b1),!0)};return A.forEach(Object.keys(Object.assign({},P,E)),function(w1){const b1=V1[w1]||Q,D1=b1(P[w1],E[w1],w1);A.isUndefined(D1)&&b1!==M1||(I[w1]=D1)}),I}const d3={};["object","boolean","number","function","string","symbol"].forEach((P,E)=>{d3[P]=function(I){return typeof I===P||"a"+(E<1?"n ":" ")+P}});const ee={};d3.transitional=function(P,E,I){function Z(Q,c1){return"[Axios v1.6.8] Transitional option '"+Q+"'"+c1+(I?". "+I:"")}return(Q,c1,t1)=>{if(P===!1)throw new R(Z(c1," has been removed"+(E?" in "+E:"")),R.ERR_DEPRECATED);return E&&!ee[c1]&&(ee[c1]=!0,console.warn(Z(c1," has been deprecated since v"+E+" and will be removed in the near future"))),!P||P(Q,c1,t1)}};var Ve={assertOptions:function(P,E,I){if(typeof P!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const Z=Object.keys(P);let Q=Z.length;for(;Q-- >0;){const c1=Z[Q],t1=E[c1];if(t1){const M1=P[c1],V1=M1===void 0||t1(M1,c1,P);if(V1!==!0)throw new R("option "+c1+" must be "+V1,R.ERR_BAD_OPTION_VALUE)}else if(I!==!0)throw new R("Unknown option "+c1,R.ERR_BAD_OPTION)}},validators:d3};const n1=Ve.validators;class v1{constructor(E){this.defaults=E,this.interceptors={request:new x1,response:new x1}}async request(E,I){try{return await this._request(E,I)}catch(Z){if(Z instanceof Error){let Q;Error.captureStackTrace?Error.captureStackTrace(Q={}):Q=new Error;const c1=Q.stack?Q.stack.replace(/^.+\n/,""):"";Z.stack?c1&&!String(Z.stack).endsWith(c1.replace(/^.+\n.+\n/,""))&&(Z.stack+=`
6
- `+c1):Z.stack=c1}throw Z}}_request(E,I){typeof E=="string"?(I=I||{}).url=E:I=E||{},I=u4(this.defaults,I);const{transitional:Z,paramsSerializer:Q,headers:c1}=I;Z!==void 0&&Ve.assertOptions(Z,{silentJSONParsing:n1.transitional(n1.boolean),forcedJSONParsing:n1.transitional(n1.boolean),clarifyTimeoutError:n1.transitional(n1.boolean)},!1),Q!=null&&(A.isFunction(Q)?I.paramsSerializer={serialize:Q}:Ve.assertOptions(Q,{encode:n1.function,serialize:n1.function},!0)),I.method=(I.method||this.defaults.method||"get").toLowerCase();let t1=c1&&A.merge(c1.common,c1[I.method]);c1&&A.forEach(["delete","get","head","post","put","patch","common"],P1=>{delete c1[P1]}),I.headers=i1.concat(t1,c1);const M1=[];let V1=!0;this.interceptors.request.forEach(function(P1){typeof P1.runWhen=="function"&&P1.runWhen(I)===!1||(V1=V1&&P1.synchronous,M1.unshift(P1.fulfilled,P1.rejected))});const w1=[];let b1;this.interceptors.response.forEach(function(P1){w1.push(P1.fulfilled,P1.rejected)});let D1,O1=0;if(!V1){const P1=[Ze.bind(this),void 0];for(P1.unshift.apply(P1,M1),P1.push.apply(P1,w1),D1=P1.length,b1=Promise.resolve(I);O1<D1;)b1=b1.then(P1[O1++],P1[O1++]);return b1}D1=M1.length;let G1=I;for(O1=0;O1<D1;){const P1=M1[O1++],Q1=M1[O1++];try{G1=P1(G1)}catch(p2){Q1.call(this,p2);break}}try{b1=Ze.call(this,G1)}catch(P1){return Promise.reject(P1)}for(O1=0,D1=w1.length;O1<D1;)b1=b1.then(w1[O1++],w1[O1++]);return b1}getUri(E){return d1(L2((E=u4(this.defaults,E)).baseURL,E.url),E.params,E.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(P){v1.prototype[P]=function(E,I){return this.request(u4(I||{},{method:P,url:E,data:(I||{}).data}))}}),A.forEach(["post","put","patch"],function(P){function E(I){return function(Z,Q,c1){return this.request(u4(c1||{},{method:P,headers:I?{"Content-Type":"multipart/form-data"}:{},url:Z,data:Q}))}}v1.prototype[P]=E(),v1.prototype[P+"Form"]=E(!0)});var h1=v1;class m1{constructor(E){if(typeof E!="function")throw new TypeError("executor must be a function.");let I;this.promise=new Promise(function(Q){I=Q});const Z=this;this.promise.then(Q=>{if(!Z._listeners)return;let c1=Z._listeners.length;for(;c1-- >0;)Z._listeners[c1](Q);Z._listeners=null}),this.promise.then=Q=>{let c1;const t1=new Promise(M1=>{Z.subscribe(M1),c1=M1}).then(Q);return t1.cancel=function(){Z.unsubscribe(c1)},t1},E(function(Q,c1,t1){Z.reason||(Z.reason=new U1(Q,c1,t1),I(Z.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(E){this.reason?E(this.reason):this._listeners?this._listeners.push(E):this._listeners=[E]}unsubscribe(E){if(!this._listeners)return;const I=this._listeners.indexOf(E);I!==-1&&this._listeners.splice(I,1)}static source(){let E;return{token:new m1(function(I){E=I}),cancel:E}}}var g1=m1;const y1={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(y1).forEach(([P,E])=>{y1[E]=P});var S1=y1;const L1=function P(E){const I=new h1(E),Z=l(h1.prototype.request,I);return A.extend(Z,h1.prototype,I,{allOwnKeys:!0}),A.extend(Z,I,null,{allOwnKeys:!0}),Z.create=function(Q){return P(u4(E,Q))},Z}($1);L1.Axios=h1,L1.CanceledError=U1,L1.CancelToken=g1,L1.isCancel=_1,L1.VERSION="1.6.8",L1.toFormData=z1,L1.AxiosError=R,L1.Cancel=L1.CanceledError,L1.all=function(P){return Promise.all(P)},L1.spread=function(P){return function(E){return P.apply(null,E)}},L1.isAxiosError=function(P){return A.isObject(P)&&P.isAxiosError===!0},L1.mergeConfig=u4,L1.AxiosHeaders=i1,L1.formToJSON=P=>c2(A.isHTMLForm(P)?new FormData(P):P),L1.getAdapter=Q4,L1.HttpStatusCode=S1,L1.default=L1,r.exports=L1}},c={};function n(r){var i=c[r];if(i!==void 0)return i.exports;var s=c[r]={exports:{}};return a[r].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(eT);var ue=eT.exports,Z0;let N4=(Z0=class{constructor(t){k1(this,"config");this.config=t}static init(t){if(Z0.instance)throw new Error("Config is already initialized");Z0.instance=new Z0(t)}static getConfig(){if(!Z0.instance)throw new Error("Config is not initialized. Call init() first.");return Z0.instance.config}},k1(Z0,"instance"),Z0);const b0=Ge.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),c=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(c,()=>Gy());function n(l){e.value||(e.value=!0,t.value=ue.mergeDeep(t.value,l))}function r(l){a.value=l}function i(l){c.value=l}function s(){c.value=c.value==="light"?"dark":"light"}return{options:t,language:a,theme:c,init:n,setLanguage:r,setTheme:i,changeTheme:s}},{persist:!0}),T6=Ge.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!mi()),a=o.ref(!1),c=o.computed(()=>e.value&&kE(e.value)),n=o.computed(()=>c.value&&e.value&&Vs(c.value,e.value.name)),r=o.computed(()=>e.value&&e.value.meta),i=o.computed(()=>{var d;return(d=r.value)==null?void 0:d.access}),s=o.computed(()=>{var d;return b4((d=r.value)==null?void 0:d.description)}),l=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.preventDisplayNavigationBars)}),f=o.computed(()=>!l.value&&t.value),u=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.useFullPage)}),h=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.paddingX)});return{currentRoute:e,isSideBarOpen:t,isDisplayingBanner:a,routeType:c,routeTitle:n,routeMeta:r,routeAccess:i,routeDescription:s,preventDisplayNavigationBars:l,isDisplayingSideBar:f,useFullPage:u,paddingX:h}});function tT(){var c;const e=N4.getConfig().stores.useAuthStore(),t=T6().routeType,a=`auth${ue.getFirstChartInUppercase(t)}`;return((c=e[a])==null?void 0:c.accessToken)||""}async function aT(e,t,a){const c=N4.getConfig(),n=c.stores.useAuthStore(),r=`${e}s/login`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await c.api.postOne(r,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||c.defaultRoutes[e].auth};c.router.push(l)}async function cT(){const e=N4.getConfig(),t=e.stores.useAuthStore(),a=T6().routeType;try{const c=`${a}s/validateAccessToken`,n=await e.api.getOne(c,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function S51(e){const t=N4.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const c={name:`login${ue.getFirstChartInUppercase(e)}`};t.router.push(c)}function Sl(e,t,a){const c=document.querySelector(":root"),n="--pga-",r=a!=null&&a.preventConvertToKebab?e:ue.camelToKebab(e);c.style.setProperty(`${n}${r}`,t)}function oi(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function A51(e,t,a="animate__"){return new Promise(c=>{const n=`${a}${t}`,r=document.querySelector(e);if(!r)return;r.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),r==null||r.classList.remove(`${a}animated`,n),c("Animation ended")};r.addEventListener("animationend",i,{once:!0})})}function bs(e){return Object.keys(vy).includes(e)}function nT(e,t){let a=0,c=0,n=0,r=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,h="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),c=parseInt(f),n=parseInt(u),r=parseFloat(h)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,h]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((d,m)=>m===4?parseInt(d,16)/255:parseInt(d,16));h=h?parseFloat(h.toFixed(3)):1,a=l,c=f,n=u,r=h}const i=t/100;return`rgba(${a}, ${c}, ${n}, ${r*i})`}function Ip(e,t){const c=`color-${ue.camelToKebab(e)}`,n={preventConvertToKebab:!0};Sl(c,t,n);for(let r=5;r<=95;r+=5){const i=r<10?`0${r}`:r%10===0?`${r/10}`:`${r}`;Sl(`${c}-0${i}`,nT(t,r),n)}}function N51(){const e=gy,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const T51={es:{successfulLogout:"¡Vuelva pronto!"}},E51={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},O51={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},D51={es:{INTERNAL_SERVER_ERROR:"Ocurrió un error inesperado. Intente nuevamente.",DUPLICATE_KEY:"El registro ya existe.",FOREIGN_KEY_INTEGRITY:"El registro relacionado no existe.",MODELS_ASSOCIATED:"No se puede eliminar porque tiene registros asociados.",INVALID_INPUT_DATA:"Los datos ingresados no son válidos.",ENTITY_NOT_FOUND:"El registro no existe.",VOUCHER_CREATION_FAILED:"No se pudo emitir la factura.",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos.",UNAUTHORIZED:"No tiene permisos para realizar esta acción."}},P51={es:{_LOGIN:"¡Bienvenido!"}},B51={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},R51={es:{createEvent:"Nuevo evento",day:"Día",week:"Semana",month:"Mes",configModalTitle:"Ajustes de visualización",configBtn:"Ajustes",displayWeekends:"Mostrar fines de semana",timeFrom:"Hora de inicio",timeTo:"Hora de fin",timeStep:"Intervalo (min)",timeFromDescription:"Indica la hora a la que empezará a mostrarse el calendario.",timeToDescription:"Indica la hora a la que terminará de mostrarse el calendario.",timeStepDescription:"Determina en bloques de cuántos minutos se divide la cuadrícula.",errorTimeRange:"La hora de fin debe ser posterior a la de inicio.",applyBtn:"Aplicar"}},F51={es:{noItemsText:"No hay resultados",noItemsDescriptionText:"Intenta ajustar los filtros de búsqueda o crear un nuevo registro.",showAll:"Mostrar todo",hide:"Ocultar"}},I51={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},$51={es:{selectImages:"Seleccionar imágenes",confirmDeleteImage:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes",selectVideos:"Seleccionar videos",confirmDeleteVideo:"El video se eliminará permanentemente.",maxVideosQuantityAlert:"Solo puede cargar {maxQuantity} videos"}},j51={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},q51={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"},notFound:{title:"404",subtitle:"Esta no es la página que estás buscando.",goBackBtn:"Volver al inicio"}}},U51={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},W51={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},Y51={es:{removeAllBtn:"Eliminar todo"}},G51={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},Z51={authHelpers:T51,datetime:E51,alert:O51,apiConnectionsError:D51,apiConnectionsSuccess:P51,pgaButton:B51,pgaCalendar:R51,pgaDisplay:F51,pgaEditor:I51,pgaFile:$51,pgaForm:j51,pgaLayout:q51,pgaModal:U51,pgaTable:W51,notifications:Y51,validations:G51};function rT(e){function t(a,c){return function(n,r,i){var y;const s=b0().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=c?c.split(".").reduce((b,x)=>b==null?void 0:b[x],f):f,h=(y=e==null?void 0:e.global)==null?void 0:y[s],d=n,m=(u==null?void 0:u[d])||(h==null?void 0:h[d])||"",v=(r==null?void 0:r.count)||1,p=m.split("|").map(b=>b.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const b in r||{})b!=="count"&&r[b]!==void 0&&r[b]!==null&&(g=g.replace(new RegExp(`{${b}}`,"g"),r[b].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.plural&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const I2=rT(Z51),Hd=I2("datetime");function z0(e,t){if(!e)return"-";const c={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:c.withoutYear||c.justTime?void 0:"numeric",month:c.justTime?void 0:c.format==="numeric"?"2-digit":c.format,day:c.withoutDay||c.justTime?void 0:"2-digit",weekday:c.withoutDay||c.justTime||c.format==="numeric"?void 0:c.format,hour:c.withTime||c.justTime?"2-digit":void 0,minute:c.withTime||c.justTime?"2-digit":void 0},r=e.toLocaleString(b0().language,n);return r.charAt(0).toUpperCase()+r.slice(1)}function X51(e){return z0(e,{format:"short",withoutDay:!0,withTime:!1})}function nr(e){return z0(e,{format:"numeric",withTime:!1})}function $p(e,{format:t}={format:"long"}){if(!e)return"";const a=nr(e),c=new Date,n=new Date(c);n.setDate(c.getDate()+1);const r=new Date(c);if(r.setDate(c.getDate()-1),a===nr(c))return Hd("today");if(a===nr(n))return Hd("tomorrow");if(a===nr(r))return Hd("yesterday");const i={format:t,withTime:!1};return e.getFullYear()===c.getFullYear()?z0(e,{...i,withoutYear:!0}):z0(e,i)}function iT(e){return z0(e,{justTime:!0})}function sT(e,t){return function(){return e.apply(t,arguments)}}const{toString:K51}=Object.prototype,{getPrototypeOf:yy}=Object,su=(e=>t=>{const a=K51.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),L0=e=>(e=e.toLowerCase(),t=>su(t)===e),ou=e=>t=>typeof t===e,{isArray:K7}=Array,li=ou("undefined");function Q51(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&r6(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oT=L0("ArrayBuffer");function J51(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oT(e.buffer),t}const ea1=ou("string"),r6=ou("function"),lT=ou("number"),lu=e=>e!==null&&typeof e=="object",ta1=e=>e===!0||e===!1,W9=e=>{if(su(e)!=="object")return!1;const t=yy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aa1=L0("Date"),ca1=L0("File"),na1=L0("Blob"),ra1=L0("FileList"),ia1=e=>lu(e)&&r6(e.pipe),sa1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||r6(e.append)&&((t=su(e))==="formdata"||t==="object"&&r6(e.toString)&&e.toString()==="[object FormData]"))},oa1=L0("URLSearchParams"),[la1,fa1,ua1,ha1]=["ReadableStream","Request","Response","Headers"].map(L0),da1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let c,n;if(typeof e!="object"&&(e=[e]),K7(e))for(c=0,n=e.length;c<n;c++)t.call(null,e[c],c,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(c=0;c<i;c++)s=r[c],t.call(null,e[s],s,e)}}function fT(e,t){t=t.toLowerCase();const a=Object.keys(e);let c=a.length,n;for(;c-- >0;)if(n=a[c],t===n.toLowerCase())return n;return null}const ba=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uT=e=>!li(e)&&e!==ba;function jp(){const{caseless:e}=uT(this)&&this||{},t={},a=(c,n)=>{const r=e&&fT(t,n)||n;W9(t[r])&&W9(c)?t[r]=jp(t[r],c):W9(c)?t[r]=jp({},c):K7(c)?t[r]=c.slice():t[r]=c};for(let c=0,n=arguments.length;c<n;c++)arguments[c]&&zs(arguments[c],a);return t}const ma1=(e,t,a,{allOwnKeys:c}={})=>(zs(t,(n,r)=>{a&&r6(n)?e[r]=sT(n,a):e[r]=n},{allOwnKeys:c}),e),pa1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),va1=(e,t,a,c)=>{e.prototype=Object.create(t.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ga1=(e,t,a,c)=>{let n,r,i;const s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)i=n[r],(!c||c(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=a!==!1&&yy(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ya1=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const c=e.indexOf(t,a);return c!==-1&&c===a},ba1=e=>{if(!e)return null;if(K7(e))return e;let t=e.length;if(!lT(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},za1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yy(Uint8Array)),xa1=(e,t)=>{const c=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=c.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},Ma1=(e,t)=>{let a;const c=[];for(;(a=e.exec(t))!==null;)c.push(a);return c},Ca1=L0("HTMLFormElement"),Ha1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,n){return c.toUpperCase()+n}),bH=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Va1=L0("RegExp"),hT=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),c={};zs(a,(n,r)=>{let i;(i=t(n,r,e))!==!1&&(c[r]=i||n)}),Object.defineProperties(e,c)},wa1=e=>{hT(e,(t,a)=>{if(r6(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const c=e[a];if(r6(c)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},_a1=(e,t)=>{const a={},c=n=>{n.forEach(r=>{a[r]=!0})};return K7(e)?c(e):c(String(e).split(t)),a},La1=()=>{},ka1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vd="abcdefghijklmnopqrstuvwxyz",zH="0123456789",dT={DIGIT:zH,ALPHA:Vd,ALPHA_DIGIT:Vd+Vd.toUpperCase()+zH},Sa1=(e=16,t=dT.ALPHA_DIGIT)=>{let a="";const{length:c}=t;for(;e--;)a+=t[Math.random()*c|0];return a};function Aa1(e){return!!(e&&r6(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Na1=e=>{const t=new Array(10),a=(c,n)=>{if(lu(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[n]=c;const r=K7(c)?[]:{};return zs(c,(i,s)=>{const l=a(i,n+1);!li(l)&&(r[s]=l)}),t[n]=void 0,r}}return c};return a(e,0)},Ta1=L0("AsyncFunction"),Ea1=e=>e&&(lu(e)||r6(e))&&r6(e.then)&&r6(e.catch),mT=((e,t)=>e?setImmediate:t?((a,c)=>(ba.addEventListener("message",({source:n,data:r})=>{n===ba&&r===a&&c.length&&c.shift()()},!1),n=>{c.push(n),ba.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",r6(ba.postMessage)),Oa1=typeof queueMicrotask<"u"?queueMicrotask.bind(ba):typeof process<"u"&&process.nextTick||mT,N1={isArray:K7,isArrayBuffer:oT,isBuffer:Q51,isFormData:sa1,isArrayBufferView:J51,isString:ea1,isNumber:lT,isBoolean:ta1,isObject:lu,isPlainObject:W9,isReadableStream:la1,isRequest:fa1,isResponse:ua1,isHeaders:ha1,isUndefined:li,isDate:aa1,isFile:ca1,isBlob:na1,isRegExp:Va1,isFunction:r6,isStream:ia1,isURLSearchParams:oa1,isTypedArray:za1,isFileList:ra1,forEach:zs,merge:jp,extend:ma1,trim:da1,stripBOM:pa1,inherits:va1,toFlatObject:ga1,kindOf:su,kindOfTest:L0,endsWith:ya1,toArray:ba1,forEachEntry:xa1,matchAll:Ma1,isHTMLForm:Ca1,hasOwnProperty:bH,hasOwnProp:bH,reduceDescriptors:hT,freezeMethods:wa1,toObjectSet:_a1,toCamelCase:Ha1,noop:La1,toFiniteNumber:ka1,findKey:fT,global:ba,isContextDefined:uT,ALPHABET:dT,generateString:Sa1,isSpecCompliantForm:Aa1,toJSONObject:Na1,isAsyncFn:Ta1,isThenable:Ea1,setImmediate:mT,asap:Oa1};function z2(e,t,a,c,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),c&&(this.request=c),n&&(this.response=n,this.status=n.status?n.status:null)}N1.inherits(z2,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:N1.toJSONObject(this.config),code:this.code,status:this.status}}});const pT=z2.prototype,vT={};["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(e=>{vT[e]={value:e}});Object.defineProperties(z2,vT);Object.defineProperty(pT,"isAxiosError",{value:!0});z2.from=(e,t,a,c,n,r)=>{const i=Object.create(pT);return N1.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),z2.call(i,e.message,t,a,c,n),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const Da1=null;function qp(e){return N1.isPlainObject(e)||N1.isArray(e)}function gT(e){return N1.endsWith(e,"[]")?e.slice(0,-2):e}function xH(e,t,a){return e?e.concat(t).map(function(n,r){return n=gT(n),!a&&r?"["+n+"]":n}).join(a?".":""):t}function Pa1(e){return N1.isArray(e)&&!e.some(qp)}const Ba1=N1.toFlatObject(N1,{},null,function(t){return/^is[A-Z]/.test(t)});function fu(e,t,a){if(!N1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=N1.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!N1.isUndefined(g[p])});const c=a.metaTokens,n=a.visitor||u,r=a.dots,i=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&N1.isSpecCompliantForm(t);if(!N1.isFunction(n))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(N1.isDate(v))return v.toISOString();if(!l&&N1.isBlob(v))throw new z2("Blob is not supported. Use a Buffer instead.");return N1.isArrayBuffer(v)||N1.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(N1.endsWith(p,"{}"))p=c?p:p.slice(0,-2),v=JSON.stringify(v);else if(N1.isArray(v)&&Pa1(v)||(N1.isFileList(v)||N1.endsWith(p,"[]"))&&(y=N1.toArray(v)))return p=gT(p),y.forEach(function(x,z){!(N1.isUndefined(x)||x===null)&&t.append(i===!0?xH([p],z,r):i===null?p:p+"[]",f(x))}),!1}return qp(v)?!0:(t.append(xH(g,p,r),f(v)),!1)}const h=[],d=Object.assign(Ba1,{defaultVisitor:u,convertValue:f,isVisitable:qp});function m(v,p){if(!N1.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(v),N1.forEach(v,function(y,b){(!(N1.isUndefined(y)||y===null)&&n.call(t,y,N1.isString(b)?b.trim():b,p,d))===!0&&m(y,p?p.concat(b):[b])}),h.pop()}}if(!N1.isObject(e))throw new TypeError("data must be an object");return m(e),t}function MH(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(c){return t[c]})}function by(e,t){this._pairs=[],e&&fu(e,this,t)}const yT=by.prototype;yT.append=function(t,a){this._pairs.push([t,a])};yT.toString=function(t){const a=t?function(c){return t.call(this,c,MH)}:MH;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Ra1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bT(e,t,a){if(!t)return e;const c=a&&a.encode||Ra1;N1.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let r;if(n?r=n(t,a):r=N1.isURLSearchParams(t)?t.toString():new by(t,a).toString(c),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Fa1{constructor(){this.handlers=[]}use(t,a,c){return this.handlers.push({fulfilled:t,rejected:a,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N1.forEach(this.handlers,function(c){c!==null&&t(c)})}}const CH=Fa1,zT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ia1=typeof URLSearchParams<"u"?URLSearchParams:by,$a1=typeof FormData<"u"?FormData:null,ja1=typeof Blob<"u"?Blob:null,qa1={isBrowser:!0,classes:{URLSearchParams:Ia1,FormData:$a1,Blob:ja1},protocols:["http","https","file","blob","url","data"]},zy=typeof window<"u"&&typeof document<"u",Up=typeof navigator=="object"&&navigator||void 0,Ua1=zy&&(!Up||["ReactNative","NativeScript","NS"].indexOf(Up.product)<0),Wa1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ya1=zy&&window.location.href||"http://localhost",Ga1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zy,hasStandardBrowserEnv:Ua1,hasStandardBrowserWebWorkerEnv:Wa1,navigator:Up,origin:Ya1},Symbol.toStringTag,{value:"Module"})),he={...Ga1,...qa1};function Za1(e,t){return fu(e,new he.classes.URLSearchParams,Object.assign({visitor:function(a,c,n,r){return he.isNode&&N1.isBuffer(a)?(this.append(c,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Xa1(e){return N1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ka1(e){const t={},a=Object.keys(e);let c;const n=a.length;let r;for(c=0;c<n;c++)r=a[c],t[r]=e[r];return t}function xT(e){function t(a,c,n,r){let i=a[r++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=r>=a.length;return i=!i&&N1.isArray(n)?n.length:i,l?(N1.hasOwnProp(n,i)?n[i]=[n[i],c]:n[i]=c,!s):((!n[i]||!N1.isObject(n[i]))&&(n[i]=[]),t(a,c,n[i],r)&&N1.isArray(n[i])&&(n[i]=Ka1(n[i])),!s)}if(N1.isFormData(e)&&N1.isFunction(e.entries)){const a={};return N1.forEachEntry(e,(c,n)=>{t(Xa1(c),n,a,0)}),a}return null}function Qa1(e,t,a){if(N1.isString(e))try{return(t||JSON.parse)(e),N1.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(a||JSON.stringify)(e)}const xy={transitional:zT,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const c=a.getContentType()||"",n=c.indexOf("application/json")>-1,r=N1.isObject(t);if(r&&N1.isHTMLForm(t)&&(t=new FormData(t)),N1.isFormData(t))return n?JSON.stringify(xT(t)):t;if(N1.isArrayBuffer(t)||N1.isBuffer(t)||N1.isStream(t)||N1.isFile(t)||N1.isBlob(t)||N1.isReadableStream(t))return t;if(N1.isArrayBufferView(t))return t.buffer;if(N1.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(c.indexOf("application/x-www-form-urlencoded")>-1)return Za1(t,this.formSerializer).toString();if((s=N1.isFileList(t))||c.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||n?(a.setContentType("application/json",!1),Qa1(t)):t}],transformResponse:[function(t){const a=this.transitional||xy.transitional,c=a&&a.forcedJSONParsing,n=this.responseType==="json";if(N1.isResponse(t)||N1.isReadableStream(t))return t;if(t&&N1.isString(t)&&(c&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?z2.from(s,z2.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N1.forEach(["delete","get","head","post","put","patch"],e=>{xy.headers[e]={}});const My=xy,Ja1=N1.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"]),ec1=e=>{const t={};let a,c,n;return e&&e.split(`
6
+ `+c1):Z.stack=c1}throw Z}}_request(E,I){typeof E=="string"?(I=I||{}).url=E:I=E||{},I=u4(this.defaults,I);const{transitional:Z,paramsSerializer:Q,headers:c1}=I;Z!==void 0&&Ve.assertOptions(Z,{silentJSONParsing:n1.transitional(n1.boolean),forcedJSONParsing:n1.transitional(n1.boolean),clarifyTimeoutError:n1.transitional(n1.boolean)},!1),Q!=null&&(A.isFunction(Q)?I.paramsSerializer={serialize:Q}:Ve.assertOptions(Q,{encode:n1.function,serialize:n1.function},!0)),I.method=(I.method||this.defaults.method||"get").toLowerCase();let t1=c1&&A.merge(c1.common,c1[I.method]);c1&&A.forEach(["delete","get","head","post","put","patch","common"],P1=>{delete c1[P1]}),I.headers=i1.concat(t1,c1);const M1=[];let V1=!0;this.interceptors.request.forEach(function(P1){typeof P1.runWhen=="function"&&P1.runWhen(I)===!1||(V1=V1&&P1.synchronous,M1.unshift(P1.fulfilled,P1.rejected))});const w1=[];let b1;this.interceptors.response.forEach(function(P1){w1.push(P1.fulfilled,P1.rejected)});let D1,O1=0;if(!V1){const P1=[Ze.bind(this),void 0];for(P1.unshift.apply(P1,M1),P1.push.apply(P1,w1),D1=P1.length,b1=Promise.resolve(I);O1<D1;)b1=b1.then(P1[O1++],P1[O1++]);return b1}D1=M1.length;let G1=I;for(O1=0;O1<D1;){const P1=M1[O1++],Q1=M1[O1++];try{G1=P1(G1)}catch(p2){Q1.call(this,p2);break}}try{b1=Ze.call(this,G1)}catch(P1){return Promise.reject(P1)}for(O1=0,D1=w1.length;O1<D1;)b1=b1.then(w1[O1++],w1[O1++]);return b1}getUri(E){return d1(L2((E=u4(this.defaults,E)).baseURL,E.url),E.params,E.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(P){v1.prototype[P]=function(E,I){return this.request(u4(I||{},{method:P,url:E,data:(I||{}).data}))}}),A.forEach(["post","put","patch"],function(P){function E(I){return function(Z,Q,c1){return this.request(u4(c1||{},{method:P,headers:I?{"Content-Type":"multipart/form-data"}:{},url:Z,data:Q}))}}v1.prototype[P]=E(),v1.prototype[P+"Form"]=E(!0)});var h1=v1;class m1{constructor(E){if(typeof E!="function")throw new TypeError("executor must be a function.");let I;this.promise=new Promise(function(Q){I=Q});const Z=this;this.promise.then(Q=>{if(!Z._listeners)return;let c1=Z._listeners.length;for(;c1-- >0;)Z._listeners[c1](Q);Z._listeners=null}),this.promise.then=Q=>{let c1;const t1=new Promise(M1=>{Z.subscribe(M1),c1=M1}).then(Q);return t1.cancel=function(){Z.unsubscribe(c1)},t1},E(function(Q,c1,t1){Z.reason||(Z.reason=new U1(Q,c1,t1),I(Z.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(E){this.reason?E(this.reason):this._listeners?this._listeners.push(E):this._listeners=[E]}unsubscribe(E){if(!this._listeners)return;const I=this._listeners.indexOf(E);I!==-1&&this._listeners.splice(I,1)}static source(){let E;return{token:new m1(function(I){E=I}),cancel:E}}}var g1=m1;const y1={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(y1).forEach(([P,E])=>{y1[E]=P});var S1=y1;const L1=function P(E){const I=new h1(E),Z=l(h1.prototype.request,I);return A.extend(Z,h1.prototype,I,{allOwnKeys:!0}),A.extend(Z,I,null,{allOwnKeys:!0}),Z.create=function(Q){return P(u4(E,Q))},Z}($1);L1.Axios=h1,L1.CanceledError=U1,L1.CancelToken=g1,L1.isCancel=_1,L1.VERSION="1.6.8",L1.toFormData=z1,L1.AxiosError=R,L1.Cancel=L1.CanceledError,L1.all=function(P){return Promise.all(P)},L1.spread=function(P){return function(E){return P.apply(null,E)}},L1.isAxiosError=function(P){return A.isObject(P)&&P.isAxiosError===!0},L1.mergeConfig=u4,L1.AxiosHeaders=i1,L1.formToJSON=P=>c2(A.isHTMLForm(P)?new FormData(P):P),L1.getAdapter=Q4,L1.HttpStatusCode=S1,L1.default=L1,r.exports=L1}},c={};function n(r){var i=c[r];if(i!==void 0)return i.exports;var s=c[r]={exports:{}};return a[r].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(eT);var ue=eT.exports,Z0;let N4=(Z0=class{constructor(t){k1(this,"config");this.config=t}static init(t){if(Z0.instance)throw new Error("Config is already initialized");Z0.instance=new Z0(t)}static getConfig(){if(!Z0.instance)throw new Error("Config is not initialized. Call init() first.");return Z0.instance.config}},k1(Z0,"instance"),Z0);const b0=Ge.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),c=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(c,()=>Gy());function n(l){e.value||(e.value=!0,t.value=ue.mergeDeep(t.value,l))}function r(l){a.value=l}function i(l){c.value=l}function s(){c.value=c.value==="light"?"dark":"light"}return{options:t,language:a,theme:c,init:n,setLanguage:r,setTheme:i,changeTheme:s}},{persist:!0}),T6=Ge.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!mi()),a=o.ref(!1),c=o.computed(()=>e.value&&kE(e.value)),n=o.computed(()=>c.value&&e.value&&Vs(c.value,e.value.name)),r=o.computed(()=>e.value&&e.value.meta),i=o.computed(()=>{var d;return(d=r.value)==null?void 0:d.access}),s=o.computed(()=>{var d;return b4((d=r.value)==null?void 0:d.description)}),l=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.preventDisplayNavigationBars)}),f=o.computed(()=>!l.value&&t.value),u=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.useFullPage)}),h=o.computed(()=>{var d;return!!b4((d=r.value)==null?void 0:d.paddingX)});return{currentRoute:e,isSideBarOpen:t,isDisplayingBanner:a,routeType:c,routeTitle:n,routeMeta:r,routeAccess:i,routeDescription:s,preventDisplayNavigationBars:l,isDisplayingSideBar:f,useFullPage:u,paddingX:h}});function tT(){var c;const e=N4.getConfig().stores.useAuthStore(),t=T6().routeType,a=`auth${ue.getFirstChartInUppercase(t)}`;return((c=e[a])==null?void 0:c.accessToken)||""}async function aT(e,t,a){const c=N4.getConfig(),n=c.stores.useAuthStore(),r=`${e}s/login`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await c.api.postOne(r,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||c.defaultRoutes[e].auth};c.router.push(l)}async function cT(){const e=N4.getConfig(),t=e.stores.useAuthStore(),a=T6().routeType;try{const c=`${a}s/validateAccessToken`,n=await e.api.getOne(c,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a,null)}}function S51(e){const t=N4.getConfig();t.stores.useAuthStore().setAuthUser(e,null);const c={name:`login${ue.getFirstChartInUppercase(e)}`};t.router.push(c)}function Sl(e,t,a){const c=document.querySelector(":root"),n="--pga-",r=a!=null&&a.preventConvertToKebab?e:ue.camelToKebab(e);c.style.setProperty(`${n}${r}`,t)}function oi(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function A51(e,t,a="animate__"){return new Promise(c=>{const n=`${a}${t}`,r=document.querySelector(e);if(!r)return;r.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),r==null||r.classList.remove(`${a}animated`,n),c("Animation ended")};r.addEventListener("animationend",i,{once:!0})})}function bs(e){return Object.keys(vy).includes(e)}function nT(e,t){let a=0,c=0,n=0,r=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,h="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),c=parseInt(f),n=parseInt(u),r=parseFloat(h)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,h]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((d,m)=>m===4?parseInt(d,16)/255:parseInt(d,16));h=h?parseFloat(h.toFixed(3)):1,a=l,c=f,n=u,r=h}const i=t/100;return`rgba(${a}, ${c}, ${n}, ${r*i})`}function Ip(e,t){const c=`color-${ue.camelToKebab(e)}`,n={preventConvertToKebab:!0};Sl(c,t,n);for(let r=5;r<=95;r+=5){const i=r<10?`0${r}`:r%10===0?`${r/10}`:`${r}`;Sl(`${c}-0${i}`,nT(t,r),n)}}function N51(){const e=gy,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const T51={es:{successfulLogout:"¡Vuelva pronto!"}},E51={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},O51={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},D51={es:{INTERNAL_SERVER_ERROR:"Ocurrió un error inesperado. Intente nuevamente.",DUPLICATE_KEY:"El registro ya existe.",FOREIGN_KEY_INTEGRITY:"El registro relacionado no existe.",MODELS_ASSOCIATED:"No se puede eliminar porque tiene registros asociados.",INVALID_INPUT_DATA:"Los datos ingresados no son válidos.",ENTITY_NOT_FOUND:"El registro no existe.",VOUCHER_CREATION_FAILED:"No se pudo emitir la factura.",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos.",UNAUTHORIZED:"No tiene permisos para realizar esta acción."}},P51={es:{_LOGIN:"¡Bienvenido!"}},B51={es:{backBtn:"Volver",copyBtn:"Copiar",textCopied:"Copiado",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ver más",seeDetailsBtn:"Detalles"}},R51={es:{createEvent:"Nuevo evento",day:"Día",week:"Semana",month:"Mes",configModalTitle:"Ajustes de visualización",configBtn:"Ajustes",displayWeekends:"¿Mostrar fines de semana?",timeFrom:"Hora de inicio",timeTo:"Hora de fin",timeStep:"Intervalo (min)",timeFromDescription:"Indica la hora a la que empezará a mostrarse el calendario.",timeToDescription:"Indica la hora a la que terminará de mostrarse el calendario.",timeStepDescription:"Determina en bloques de cuántos minutos se divide la cuadrícula.",errorTimeRange:"La hora de fin debe ser posterior a la de inicio.",applyBtn:"Aplicar"}},F51={es:{noItemsText:"No hay resultados",noItemsDescriptionText:"Intenta ajustar los filtros de búsqueda o crear un nuevo registro.",showAll:"Mostrar todo",hide:"Ocultar"}},I51={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},$51={es:{selectImages:"Seleccionar imágenes",confirmDeleteImage:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes",selectVideos:"Seleccionar videos",confirmDeleteVideo:"El video se eliminará permanentemente.",maxVideosQuantityAlert:"Solo puede cargar {maxQuantity} videos"}},j51={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},q51={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"},notFound:{title:"404",subtitle:"Esta no es la página que estás buscando.",goBackBtn:"Volver al inicio"}}},U51={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},W51={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},Y51={es:{removeAllBtn:"Eliminar todo"}},G51={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},Z51={authHelpers:T51,datetime:E51,alert:O51,apiConnectionsError:D51,apiConnectionsSuccess:P51,pgaButton:B51,pgaCalendar:R51,pgaDisplay:F51,pgaEditor:I51,pgaFile:$51,pgaForm:j51,pgaLayout:q51,pgaModal:U51,pgaTable:W51,notifications:Y51,validations:G51};function rT(e){function t(a,c){return function(n,r,i){var y;const s=b0().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=c?c.split(".").reduce((b,x)=>b==null?void 0:b[x],f):f,h=(y=e==null?void 0:e.global)==null?void 0:y[s],d=n,m=(u==null?void 0:u[d])||(h==null?void 0:h[d])||"",v=(r==null?void 0:r.count)||1,p=m.split("|").map(b=>b.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const b in r||{})b!=="count"&&r[b]!==void 0&&r[b]!==null&&(g=g.replace(new RegExp(`{${b}}`,"g"),r[b].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.plural&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const I2=rT(Z51),Hd=I2("datetime");function z0(e,t){if(!e)return"-";const c={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:c.withoutYear||c.justTime?void 0:"numeric",month:c.justTime?void 0:c.format==="numeric"?"2-digit":c.format,day:c.withoutDay||c.justTime?void 0:"2-digit",weekday:c.withoutDay||c.justTime||c.format==="numeric"?void 0:c.format,hour:c.withTime||c.justTime?"2-digit":void 0,minute:c.withTime||c.justTime?"2-digit":void 0},r=e.toLocaleString(b0().language,n);return r.charAt(0).toUpperCase()+r.slice(1)}function X51(e){return z0(e,{format:"short",withoutDay:!0,withTime:!1})}function nr(e){return z0(e,{format:"numeric",withTime:!1})}function $p(e,{format:t}={format:"long"}){if(!e)return"";const a=nr(e),c=new Date,n=new Date(c);n.setDate(c.getDate()+1);const r=new Date(c);if(r.setDate(c.getDate()-1),a===nr(c))return Hd("today");if(a===nr(n))return Hd("tomorrow");if(a===nr(r))return Hd("yesterday");const i={format:t,withTime:!1};return e.getFullYear()===c.getFullYear()?z0(e,{...i,withoutYear:!0}):z0(e,i)}function iT(e){return z0(e,{justTime:!0})}function sT(e,t){return function(){return e.apply(t,arguments)}}const{toString:K51}=Object.prototype,{getPrototypeOf:yy}=Object,su=(e=>t=>{const a=K51.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),L0=e=>(e=e.toLowerCase(),t=>su(t)===e),ou=e=>t=>typeof t===e,{isArray:K7}=Array,li=ou("undefined");function Q51(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&r6(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oT=L0("ArrayBuffer");function J51(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oT(e.buffer),t}const ea1=ou("string"),r6=ou("function"),lT=ou("number"),lu=e=>e!==null&&typeof e=="object",ta1=e=>e===!0||e===!1,W9=e=>{if(su(e)!=="object")return!1;const t=yy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aa1=L0("Date"),ca1=L0("File"),na1=L0("Blob"),ra1=L0("FileList"),ia1=e=>lu(e)&&r6(e.pipe),sa1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||r6(e.append)&&((t=su(e))==="formdata"||t==="object"&&r6(e.toString)&&e.toString()==="[object FormData]"))},oa1=L0("URLSearchParams"),[la1,fa1,ua1,ha1]=["ReadableStream","Request","Response","Headers"].map(L0),da1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let c,n;if(typeof e!="object"&&(e=[e]),K7(e))for(c=0,n=e.length;c<n;c++)t.call(null,e[c],c,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(c=0;c<i;c++)s=r[c],t.call(null,e[s],s,e)}}function fT(e,t){t=t.toLowerCase();const a=Object.keys(e);let c=a.length,n;for(;c-- >0;)if(n=a[c],t===n.toLowerCase())return n;return null}const ba=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uT=e=>!li(e)&&e!==ba;function jp(){const{caseless:e}=uT(this)&&this||{},t={},a=(c,n)=>{const r=e&&fT(t,n)||n;W9(t[r])&&W9(c)?t[r]=jp(t[r],c):W9(c)?t[r]=jp({},c):K7(c)?t[r]=c.slice():t[r]=c};for(let c=0,n=arguments.length;c<n;c++)arguments[c]&&zs(arguments[c],a);return t}const ma1=(e,t,a,{allOwnKeys:c}={})=>(zs(t,(n,r)=>{a&&r6(n)?e[r]=sT(n,a):e[r]=n},{allOwnKeys:c}),e),pa1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),va1=(e,t,a,c)=>{e.prototype=Object.create(t.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ga1=(e,t,a,c)=>{let n,r,i;const s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)i=n[r],(!c||c(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=a!==!1&&yy(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ya1=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const c=e.indexOf(t,a);return c!==-1&&c===a},ba1=e=>{if(!e)return null;if(K7(e))return e;let t=e.length;if(!lT(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},za1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yy(Uint8Array)),xa1=(e,t)=>{const c=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=c.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},Ma1=(e,t)=>{let a;const c=[];for(;(a=e.exec(t))!==null;)c.push(a);return c},Ca1=L0("HTMLFormElement"),Ha1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,n){return c.toUpperCase()+n}),bH=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Va1=L0("RegExp"),hT=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),c={};zs(a,(n,r)=>{let i;(i=t(n,r,e))!==!1&&(c[r]=i||n)}),Object.defineProperties(e,c)},wa1=e=>{hT(e,(t,a)=>{if(r6(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const c=e[a];if(r6(c)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},_a1=(e,t)=>{const a={},c=n=>{n.forEach(r=>{a[r]=!0})};return K7(e)?c(e):c(String(e).split(t)),a},La1=()=>{},ka1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vd="abcdefghijklmnopqrstuvwxyz",zH="0123456789",dT={DIGIT:zH,ALPHA:Vd,ALPHA_DIGIT:Vd+Vd.toUpperCase()+zH},Sa1=(e=16,t=dT.ALPHA_DIGIT)=>{let a="";const{length:c}=t;for(;e--;)a+=t[Math.random()*c|0];return a};function Aa1(e){return!!(e&&r6(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Na1=e=>{const t=new Array(10),a=(c,n)=>{if(lu(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[n]=c;const r=K7(c)?[]:{};return zs(c,(i,s)=>{const l=a(i,n+1);!li(l)&&(r[s]=l)}),t[n]=void 0,r}}return c};return a(e,0)},Ta1=L0("AsyncFunction"),Ea1=e=>e&&(lu(e)||r6(e))&&r6(e.then)&&r6(e.catch),mT=((e,t)=>e?setImmediate:t?((a,c)=>(ba.addEventListener("message",({source:n,data:r})=>{n===ba&&r===a&&c.length&&c.shift()()},!1),n=>{c.push(n),ba.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",r6(ba.postMessage)),Oa1=typeof queueMicrotask<"u"?queueMicrotask.bind(ba):typeof process<"u"&&process.nextTick||mT,N1={isArray:K7,isArrayBuffer:oT,isBuffer:Q51,isFormData:sa1,isArrayBufferView:J51,isString:ea1,isNumber:lT,isBoolean:ta1,isObject:lu,isPlainObject:W9,isReadableStream:la1,isRequest:fa1,isResponse:ua1,isHeaders:ha1,isUndefined:li,isDate:aa1,isFile:ca1,isBlob:na1,isRegExp:Va1,isFunction:r6,isStream:ia1,isURLSearchParams:oa1,isTypedArray:za1,isFileList:ra1,forEach:zs,merge:jp,extend:ma1,trim:da1,stripBOM:pa1,inherits:va1,toFlatObject:ga1,kindOf:su,kindOfTest:L0,endsWith:ya1,toArray:ba1,forEachEntry:xa1,matchAll:Ma1,isHTMLForm:Ca1,hasOwnProperty:bH,hasOwnProp:bH,reduceDescriptors:hT,freezeMethods:wa1,toObjectSet:_a1,toCamelCase:Ha1,noop:La1,toFiniteNumber:ka1,findKey:fT,global:ba,isContextDefined:uT,ALPHABET:dT,generateString:Sa1,isSpecCompliantForm:Aa1,toJSONObject:Na1,isAsyncFn:Ta1,isThenable:Ea1,setImmediate:mT,asap:Oa1};function z2(e,t,a,c,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),c&&(this.request=c),n&&(this.response=n,this.status=n.status?n.status:null)}N1.inherits(z2,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:N1.toJSONObject(this.config),code:this.code,status:this.status}}});const pT=z2.prototype,vT={};["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(e=>{vT[e]={value:e}});Object.defineProperties(z2,vT);Object.defineProperty(pT,"isAxiosError",{value:!0});z2.from=(e,t,a,c,n,r)=>{const i=Object.create(pT);return N1.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),z2.call(i,e.message,t,a,c,n),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const Da1=null;function qp(e){return N1.isPlainObject(e)||N1.isArray(e)}function gT(e){return N1.endsWith(e,"[]")?e.slice(0,-2):e}function xH(e,t,a){return e?e.concat(t).map(function(n,r){return n=gT(n),!a&&r?"["+n+"]":n}).join(a?".":""):t}function Pa1(e){return N1.isArray(e)&&!e.some(qp)}const Ba1=N1.toFlatObject(N1,{},null,function(t){return/^is[A-Z]/.test(t)});function fu(e,t,a){if(!N1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=N1.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!N1.isUndefined(g[p])});const c=a.metaTokens,n=a.visitor||u,r=a.dots,i=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&N1.isSpecCompliantForm(t);if(!N1.isFunction(n))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(N1.isDate(v))return v.toISOString();if(!l&&N1.isBlob(v))throw new z2("Blob is not supported. Use a Buffer instead.");return N1.isArrayBuffer(v)||N1.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(N1.endsWith(p,"{}"))p=c?p:p.slice(0,-2),v=JSON.stringify(v);else if(N1.isArray(v)&&Pa1(v)||(N1.isFileList(v)||N1.endsWith(p,"[]"))&&(y=N1.toArray(v)))return p=gT(p),y.forEach(function(x,z){!(N1.isUndefined(x)||x===null)&&t.append(i===!0?xH([p],z,r):i===null?p:p+"[]",f(x))}),!1}return qp(v)?!0:(t.append(xH(g,p,r),f(v)),!1)}const h=[],d=Object.assign(Ba1,{defaultVisitor:u,convertValue:f,isVisitable:qp});function m(v,p){if(!N1.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(v),N1.forEach(v,function(y,b){(!(N1.isUndefined(y)||y===null)&&n.call(t,y,N1.isString(b)?b.trim():b,p,d))===!0&&m(y,p?p.concat(b):[b])}),h.pop()}}if(!N1.isObject(e))throw new TypeError("data must be an object");return m(e),t}function MH(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(c){return t[c]})}function by(e,t){this._pairs=[],e&&fu(e,this,t)}const yT=by.prototype;yT.append=function(t,a){this._pairs.push([t,a])};yT.toString=function(t){const a=t?function(c){return t.call(this,c,MH)}:MH;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Ra1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bT(e,t,a){if(!t)return e;const c=a&&a.encode||Ra1;N1.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let r;if(n?r=n(t,a):r=N1.isURLSearchParams(t)?t.toString():new by(t,a).toString(c),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Fa1{constructor(){this.handlers=[]}use(t,a,c){return this.handlers.push({fulfilled:t,rejected:a,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N1.forEach(this.handlers,function(c){c!==null&&t(c)})}}const CH=Fa1,zT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ia1=typeof URLSearchParams<"u"?URLSearchParams:by,$a1=typeof FormData<"u"?FormData:null,ja1=typeof Blob<"u"?Blob:null,qa1={isBrowser:!0,classes:{URLSearchParams:Ia1,FormData:$a1,Blob:ja1},protocols:["http","https","file","blob","url","data"]},zy=typeof window<"u"&&typeof document<"u",Up=typeof navigator=="object"&&navigator||void 0,Ua1=zy&&(!Up||["ReactNative","NativeScript","NS"].indexOf(Up.product)<0),Wa1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ya1=zy&&window.location.href||"http://localhost",Ga1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zy,hasStandardBrowserEnv:Ua1,hasStandardBrowserWebWorkerEnv:Wa1,navigator:Up,origin:Ya1},Symbol.toStringTag,{value:"Module"})),he={...Ga1,...qa1};function Za1(e,t){return fu(e,new he.classes.URLSearchParams,Object.assign({visitor:function(a,c,n,r){return he.isNode&&N1.isBuffer(a)?(this.append(c,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Xa1(e){return N1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ka1(e){const t={},a=Object.keys(e);let c;const n=a.length;let r;for(c=0;c<n;c++)r=a[c],t[r]=e[r];return t}function xT(e){function t(a,c,n,r){let i=a[r++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=r>=a.length;return i=!i&&N1.isArray(n)?n.length:i,l?(N1.hasOwnProp(n,i)?n[i]=[n[i],c]:n[i]=c,!s):((!n[i]||!N1.isObject(n[i]))&&(n[i]=[]),t(a,c,n[i],r)&&N1.isArray(n[i])&&(n[i]=Ka1(n[i])),!s)}if(N1.isFormData(e)&&N1.isFunction(e.entries)){const a={};return N1.forEachEntry(e,(c,n)=>{t(Xa1(c),n,a,0)}),a}return null}function Qa1(e,t,a){if(N1.isString(e))try{return(t||JSON.parse)(e),N1.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(a||JSON.stringify)(e)}const xy={transitional:zT,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const c=a.getContentType()||"",n=c.indexOf("application/json")>-1,r=N1.isObject(t);if(r&&N1.isHTMLForm(t)&&(t=new FormData(t)),N1.isFormData(t))return n?JSON.stringify(xT(t)):t;if(N1.isArrayBuffer(t)||N1.isBuffer(t)||N1.isStream(t)||N1.isFile(t)||N1.isBlob(t)||N1.isReadableStream(t))return t;if(N1.isArrayBufferView(t))return t.buffer;if(N1.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(c.indexOf("application/x-www-form-urlencoded")>-1)return Za1(t,this.formSerializer).toString();if((s=N1.isFileList(t))||c.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||n?(a.setContentType("application/json",!1),Qa1(t)):t}],transformResponse:[function(t){const a=this.transitional||xy.transitional,c=a&&a.forcedJSONParsing,n=this.responseType==="json";if(N1.isResponse(t)||N1.isReadableStream(t))return t;if(t&&N1.isString(t)&&(c&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?z2.from(s,z2.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N1.forEach(["delete","get","head","post","put","patch"],e=>{xy.headers[e]={}});const My=xy,Ja1=N1.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"]),ec1=e=>{const t={};let a,c,n;return e&&e.split(`
7
7
  `).forEach(function(i){n=i.indexOf(":"),a=i.substring(0,n).trim().toLowerCase(),c=i.substring(n+1).trim(),!(!a||t[a]&&Ja1[a])&&(a==="set-cookie"?t[a]?t[a].push(c):t[a]=[c]:t[a]=t[a]?t[a]+", "+c:c)}),t},HH=Symbol("internals");function gn(e){return e&&String(e).trim().toLowerCase()}function Y9(e){return e===!1||e==null?e:N1.isArray(e)?e.map(Y9):String(e)}function tc1(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=a.exec(e);)t[c[1]]=c[2];return t}const ac1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wd(e,t,a,c,n){if(N1.isFunction(c))return c.call(this,t,a);if(n&&(t=a),!!N1.isString(t)){if(N1.isString(c))return t.indexOf(c)!==-1;if(N1.isRegExp(c))return c.test(t)}}function cc1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,c)=>a.toUpperCase()+c)}function nc1(e,t){const a=N1.toCamelCase(" "+t);["get","set","has"].forEach(c=>{Object.defineProperty(e,c+a,{value:function(n,r,i){return this[c].call(this,t,n,r,i)},configurable:!0})})}class uu{constructor(t){t&&this.set(t)}set(t,a,c){const n=this;function r(s,l,f){const u=gn(l);if(!u)throw new Error("header name must be a non-empty string");const h=N1.findKey(n,u);(!h||n[h]===void 0||f===!0||f===void 0&&n[h]!==!1)&&(n[h||l]=Y9(s))}const i=(s,l)=>N1.forEach(s,(f,u)=>r(f,u,l));if(N1.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(N1.isString(t)&&(t=t.trim())&&!ac1(t))i(ec1(t),a);else if(N1.isHeaders(t))for(const[s,l]of t.entries())r(l,s,c);else t!=null&&r(a,t,c);return this}get(t,a){if(t=gn(t),t){const c=N1.findKey(this,t);if(c){const n=this[c];if(!a)return n;if(a===!0)return tc1(n);if(N1.isFunction(a))return a.call(this,n,c);if(N1.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=gn(t),t){const c=N1.findKey(this,t);return!!(c&&this[c]!==void 0&&(!a||wd(this,this[c],c,a)))}return!1}delete(t,a){const c=this;let n=!1;function r(i){if(i=gn(i),i){const s=N1.findKey(c,i);s&&(!a||wd(c,c[s],s,a))&&(delete c[s],n=!0)}}return N1.isArray(t)?t.forEach(r):r(t),n}clear(t){const a=Object.keys(this);let c=a.length,n=!1;for(;c--;){const r=a[c];(!t||wd(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const a=this,c={};return N1.forEach(this,(n,r)=>{const i=N1.findKey(c,r);if(i){a[i]=Y9(n),delete a[r];return}const s=t?cc1(r):String(r).trim();s!==r&&delete a[r],a[s]=Y9(n),c[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return N1.forEach(this,(c,n)=>{c!=null&&c!==!1&&(a[n]=t&&N1.isArray(c)?c.join(", "):c)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
8
8
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const c=new this(t);return a.forEach(n=>c.set(n)),c}static accessor(t){const c=(this[HH]=this[HH]={accessors:{}}).accessors,n=this.prototype;function r(i){const s=gn(i);c[s]||(nc1(n,i),c[s]=!0)}return N1.isArray(t)?t.forEach(r):r(t),this}}uu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N1.reduceDescriptors(uu.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(c){this[a]=c}}});N1.freezeMethods(uu);const l0=uu;function _d(e,t){const a=this||My,c=t||a,n=l0.from(c.headers);let r=c.data;return N1.forEach(e,function(s){r=s.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function MT(e){return!!(e&&e.__CANCEL__)}function Q7(e,t,a){z2.call(this,e??"canceled",z2.ERR_CANCELED,t,a),this.name="CanceledError"}N1.inherits(Q7,z2,{__CANCEL__:!0});function CT(e,t,a){const c=a.config.validateStatus;!a.status||!c||c(a.status)?e(a):t(new z2("Request failed with status code "+a.status,[z2.ERR_BAD_REQUEST,z2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function rc1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ic1(e,t){e=e||10;const a=new Array(e),c=new Array(e);let n=0,r=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=c[r];i||(i=f),a[n]=l,c[n]=f;let h=r,d=0;for(;h!==n;)d+=a[h++],h=h%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),f-i<t)return;const m=u&&f-u;return m?Math.round(d*1e3/m):void 0}}function sc1(e,t){let a=0,c=1e3/t,n,r;const i=(f,u=Date.now())=>{a=u,n=null,r&&(clearTimeout(r),r=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),h=u-a;h>=c?i(f,u):(n=f,r||(r=setTimeout(()=>{r=null,i(n)},c-h)))},()=>n&&i(n)]}const Al=(e,t,a=3)=>{let c=0;const n=ic1(50,250);return sc1(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,l=i-c,f=n(l),u=i<=s;c=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-i)/f:void 0,event:r,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},a)},VH=(e,t)=>{const a=e!=null;return[c=>t[0]({lengthComputable:a,total:e,loaded:c}),t[1]]},wH=e=>(...t)=>N1.asap(()=>e(...t)),oc1=he.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,he.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(he.origin),he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent)):()=>!0,lc1=he.hasStandardBrowserEnv?{write(e,t,a,c,n,r){const i=[e+"="+encodeURIComponent(t)];N1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),N1.isString(c)&&i.push("path="+c),N1.isString(n)&&i.push("domain="+n),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fc1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uc1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function HT(e,t){return e&&!fc1(t)?uc1(e,t):t}const _H=e=>e instanceof l0?{...e}:e;function ja(e,t){t=t||{};const a={};function c(f,u,h,d){return N1.isPlainObject(f)&&N1.isPlainObject(u)?N1.merge.call({caseless:d},f,u):N1.isPlainObject(u)?N1.merge({},u):N1.isArray(u)?u.slice():u}function n(f,u,h,d){if(N1.isUndefined(u)){if(!N1.isUndefined(f))return c(void 0,f,h,d)}else return c(f,u,h,d)}function r(f,u){if(!N1.isUndefined(u))return c(void 0,u)}function i(f,u){if(N1.isUndefined(u)){if(!N1.isUndefined(f))return c(void 0,f)}else return c(void 0,u)}function s(f,u,h){if(h in t)return c(f,u);if(h in e)return c(void 0,f)}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(f,u,h)=>n(_H(f),_H(u),h,!0)};return N1.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=l[u]||n,d=h(e[u],t[u],u);N1.isUndefined(d)&&h!==s||(a[u]=d)}),a}const VT=e=>{const t=ja({},e);let{data:a,withXSRFToken:c,xsrfHeaderName:n,xsrfCookieName:r,headers:i,auth:s}=t;t.headers=i=l0.from(i),t.url=bT(HT(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(N1.isFormData(a)){if(he.hasStandardBrowserEnv||he.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(he.hasStandardBrowserEnv&&(c&&N1.isFunction(c)&&(c=c(t)),c||c!==!1&&oc1(t.url))){const f=n&&r&&lc1.read(r);f&&i.set(n,f)}return t},hc1=typeof XMLHttpRequest<"u",dc1=hc1&&function(e){return new Promise(function(a,c){const n=VT(e);let r=n.data;const i=l0.from(n.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=n,u,h,d,m,v;function p(){m&&m(),v&&v(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;const x=l0.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};CT(function(C){a(C),p()},function(C){c(C),p()},M),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(c(new z2("Request aborted",z2.ECONNABORTED,e,g)),g=null)},g.onerror=function(){c(new z2("Network Error",z2.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let z=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const M=n.transitional||zT;n.timeoutErrorMessage&&(z=n.timeoutErrorMessage),c(new z2(z,M.clarifyTimeoutError?z2.ETIMEDOUT:z2.ECONNABORTED,e,g)),g=null},r===void 0&&i.setContentType(null),"setRequestHeader"in g&&N1.forEach(i.toJSON(),function(z,M){g.setRequestHeader(M,z)}),N1.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),s&&s!=="json"&&(g.responseType=n.responseType),f&&([d,v]=Al(f,!0),g.addEventListener("progress",d)),l&&g.upload&&([h,m]=Al(l),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=x=>{g&&(c(!x||x.type?new Q7(null,e,g):x),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const b=rc1(n.url);if(b&&he.protocols.indexOf(b)===-1){c(new z2("Unsupported protocol "+b+":",z2.ERR_BAD_REQUEST,e));return}g.send(r||null)})},mc1=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let c=new AbortController,n;const r=function(f){if(!n){n=!0,s();const u=f instanceof Error?f:this.reason;c.abort(u instanceof z2?u:new Q7(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new z2(`timeout ${t} of ms exceeded`,z2.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(r):f.removeEventListener("abort",r)}),e=null)};e.forEach(f=>f.addEventListener("abort",r));const{signal:l}=c;return l.unsubscribe=()=>N1.asap(s),l}},pc1=mc1,vc1=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let c=0,n;for(;c<a;)n=c+t,yield e.slice(c,n),c=n},gc1=async function*(e,t){for await(const a of yc1(e))yield*vc1(a,t)},yc1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:c}=await t.read();if(a)break;yield c}}finally{await t.cancel()}},LH=(e,t,a,c)=>{const n=gc1(e,t);let r=0,i,s=l=>{i||(i=!0,c&&c(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){s(),l.close();return}let h=u.byteLength;if(a){let d=r+=h;a(d)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),n.return()}},{highWaterMark:2})},hu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wT=hu&&typeof ReadableStream=="function",bc1=hu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_T=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zc1=wT&&_T(()=>{let e=!1;const t=new Request(he.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),kH=64*1024,Wp=wT&&_T(()=>N1.isReadableStream(new Response("").body)),Nl={stream:Wp&&(e=>e.body)};hu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Nl[t]&&(Nl[t]=N1.isFunction(e[t])?a=>a[t]():(a,c)=>{throw new z2(`Response type '${t}' is not supported`,z2.ERR_NOT_SUPPORT,c)})})})(new Response);const xc1=async e=>{if(e==null)return 0;if(N1.isBlob(e))return e.size;if(N1.isSpecCompliantForm(e))return(await new Request(he.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(N1.isArrayBufferView(e)||N1.isArrayBuffer(e))return e.byteLength;if(N1.isURLSearchParams(e)&&(e=e+""),N1.isString(e))return(await bc1(e)).byteLength},Mc1=async(e,t)=>{const a=N1.toFiniteNumber(e.getContentLength());return a??xc1(t)},Cc1=hu&&(async e=>{let{url:t,method:a,data:c,signal:n,cancelToken:r,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:d}=VT(e);f=f?(f+"").toLowerCase():"text";let m=pc1([n,r&&r.toAbortSignal()],i),v;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&zc1&&a!=="get"&&a!=="head"&&(g=await Mc1(u,c))!==0){let M=new Request(t,{method:"POST",body:c,duplex:"half"}),H;if(N1.isFormData(c)&&(H=M.headers.get("content-type"))&&u.setContentType(H),M.body){const[C,w]=VH(g,Al(wH(l)));c=LH(M.body,kH,C,w)}}N1.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...d,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:c,duplex:"half",credentials:y?h:void 0});let b=await fetch(v);const x=Wp&&(f==="stream"||f==="response");if(Wp&&(s||x&&p)){const M={};["status","statusText","headers"].forEach(L=>{M[L]=b[L]});const H=N1.toFiniteNumber(b.headers.get("content-length")),[C,w]=s&&VH(H,Al(wH(s),!0))||[];b=new Response(LH(b.body,kH,C,()=>{w&&w(),p&&p()}),M)}f=f||"text";let z=await Nl[N1.findKey(Nl,f)||"text"](b,e);return!x&&p&&p(),await new Promise((M,H)=>{CT(M,H,{data:z,headers:l0.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new z2("Network Error",z2.ERR_NETWORK,e,v),{cause:y.cause||y}):z2.from(y,y&&y.code,e,v)}}),Yp={http:Da1,xhr:dc1,fetch:Cc1};N1.forEach(Yp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const SH=e=>`- ${e}`,Hc1=e=>N1.isFunction(e)||e===null||e===!1,LT={getAdapter:e=>{e=N1.isArray(e)?e:[e];const{length:t}=e;let a,c;const n={};for(let r=0;r<t;r++){a=e[r];let i;if(c=a,!Hc1(a)&&(c=Yp[(i=String(a)).toLowerCase()],c===void 0))throw new z2(`Unknown adapter '${i}'`);if(c)break;n[i||"#"+r]=c}if(!c){const r=Object.entries(n).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?`since :
9
9
  `+r.map(SH).join(`
@@ -780,7 +780,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
780
780
  }`;function WE(){var e=RE,t=FE,a=n2.cssPrefix,c=n2.replacementClass,n=_s1;if(a!==e||c!==t){var r=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");n=n.replace(r,".".concat(a,"-")).replace(i,"--".concat(a,"-")).replace(s,".".concat(c))}return n}var tV=!1;function Bd(){n2.autoAddCss&&!tV&&(Ms1(WE()),tV=!0)}var Ls1={mixout:function(){return{dom:{css:WE,insertCss:Bd}}},hooks:function(){return{beforeDOMElementCreation:function(){Bd()},beforeI2svg:function(){Bd()}}}},r8=g5||{};r8[n8]||(r8[n8]={});r8[n8].styles||(r8[n8].styles={});r8[n8].hooks||(r8[n8].hooks={});r8[n8].shims||(r8[n8].shims=[]);var a0=r8[n8],YE=[],ks1=function e(){k3.removeEventListener("DOMContentLoaded",e),Fl=1,YE.map(function(t){return t()})},Fl=!1;g8&&(Fl=(k3.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(k3.readyState),Fl||k3.addEventListener("DOMContentLoaded",ks1));function Ss1(e){g8&&(Fl?setTimeout(e,0):YE.push(e))}function Ls(e){var t=e.tag,a=e.attributes,c=a===void 0?{}:a,n=e.children,r=n===void 0?[]:n;return typeof e=="string"?UE(e):"<".concat(t," ").concat(Hs1(c),">").concat(r.map(Ls).join(""),"</").concat(t,">")}function aV(e,t,a){if(e&&e[t]&&e[t][a])return{prefix:t,iconName:a,icon:e[t][a]}}var As1=function(t,a){return function(c,n,r,i){return t.call(a,c,n,r,i)}},Rd=function(t,a,c,n){var r=Object.keys(t),i=r.length,s=n!==void 0?As1(a,n):a,l,f,u;for(c===void 0?(l=1,u=t[r[0]]):(l=0,u=c);l<i;l++)f=r[l],u=s(u,t[f],f,t);return u};function Ns1(e){for(var t=[],a=0,c=e.length;a<c;){var n=e.charCodeAt(a++);if(n>=55296&&n<=56319&&a<c){var r=e.charCodeAt(a++);(r&64512)==56320?t.push(((n&1023)<<10)+(r&1023)+65536):(t.push(n),a--)}else t.push(n)}return t}function ov(e){var t=Ns1(e);return t.length===1?t[0].toString(16):null}function Ts1(e,t){var a=e.length,c=e.charCodeAt(t),n;return c>=55296&&c<=56319&&a>t+1&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(c-55296)*1024+n-56320+65536:c}function cV(e){return Object.keys(e).reduce(function(t,a){var c=e[a],n=!!c.icon;return n?t[c.iconName]=c.icon:t[a]=c,t},{})}function lv(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=a.skipHooks,n=c===void 0?!1:c,r=cV(t);typeof a0.hooks.addPack=="function"&&!n?a0.hooks.addPack(e,cV(t)):a0.styles[e]=J1(J1({},a0.styles[e]||{}),r),e==="fas"&&lv("fa",t)}var Ao,No,To,Kc=a0.styles,Es1=a0.shims,Os1=(Ao={},I4(Ao,w3,Object.values(gi[w3])),I4(Ao,n4,Object.values(gi[n4])),Ao),cb=null,GE={},ZE={},XE={},KE={},QE={},Ds1=(No={},I4(No,w3,Object.keys(pi[w3])),I4(No,n4,Object.keys(pi[n4])),No);function Ps1(e){return~gs1.indexOf(e)}function Bs1(e,t){var a=t.split("-"),c=a[0],n=a.slice(1).join("-");return c===e&&n!==""&&!Ps1(n)?n:null}var JE=function(){var t=function(r){return Rd(Kc,function(i,s,l){return i[l]=Rd(s,r,{}),i},{})};GE=t(function(n,r,i){if(r[3]&&(n[r[3]]=i),r[2]){var s=r[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){n[l.toString(16)]=i})}return n}),ZE=t(function(n,r,i){if(n[i]=i,r[2]){var s=r[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){n[l]=i})}return n}),QE=t(function(n,r,i){var s=r[2];return n[i]=i,s.forEach(function(l){n[l]=i}),n});var a="far"in Kc||n2.autoFetchSvg,c=Rd(Es1,function(n,r){var i=r[0],s=r[1],l=r[2];return s==="far"&&!a&&(s="fas"),typeof i=="string"&&(n.names[i]={prefix:s,iconName:l}),typeof i=="number"&&(n.unicodes[i.toString(16)]={prefix:s,iconName:l}),n},{names:{},unicodes:{}});XE=c.names,KE=c.unicodes,cb=Lu(n2.styleDefault,{family:n2.familyDefault})};xs1(function(e){cb=Lu(e.styleDefault,{family:n2.familyDefault})});JE();function nb(e,t){return(GE[e]||{})[t]}function Rs1(e,t){return(ZE[e]||{})[t]}function Ma(e,t){return(QE[e]||{})[t]}function eO(e){return XE[e]||{prefix:null,iconName:null}}function Fs1(e){var t=KE[e],a=nb("fas",e);return t||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null}}function y5(){return cb}var rb=function(){return{prefix:null,iconName:null,rest:[]}};function Lu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.family,c=a===void 0?w3:a,n=pi[c][e],r=vi[c][e]||vi[c][n],i=e in a0.styles?e:null;return r||i||null}var nV=(To={},I4(To,w3,Object.keys(gi[w3])),I4(To,n4,Object.keys(gi[n4])),To);function ku(e){var t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=a.skipLookups,n=c===void 0?!1:c,r=(t={},I4(t,w3,"".concat(n2.cssPrefix,"-").concat(w3)),I4(t,n4,"".concat(n2.cssPrefix,"-").concat(n4)),t),i=null,s=w3;(e.includes(r[w3])||e.some(function(f){return nV[w3].includes(f)}))&&(s=w3),(e.includes(r[n4])||e.some(function(f){return nV[n4].includes(f)}))&&(s=n4);var l=e.reduce(function(f,u){var h=Bs1(n2.cssPrefix,u);if(Kc[u]?(u=Os1[s].includes(u)?us1[s][u]:u,i=u,f.prefix=u):Ds1[s].indexOf(u)>-1?(i=u,f.prefix=Lu(u,{family:s})):h?f.iconName=h:u!==n2.replacementClass&&u!==r[w3]&&u!==r[n4]&&f.rest.push(u),!n&&f.prefix&&f.iconName){var d=i==="fa"?eO(f.iconName):{},m=Ma(f.prefix,f.iconName);d.prefix&&(i=null),f.iconName=d.iconName||m||f.iconName,f.prefix=d.prefix||f.prefix,f.prefix==="far"&&!Kc.far&&Kc.fas&&!n2.autoFetchSvg&&(f.prefix="fas")}return f},rb());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===n4&&(Kc.fass||n2.autoFetchSvg)&&(l.prefix="fass",l.iconName=Ma(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||i==="fa")&&(l.prefix=y5()||"fas"),l}var Is1=function(){function e(){Ji1(this,e),this.definitions={}}return es1(e,[{key:"add",value:function(){for(var a=this,c=arguments.length,n=new Array(c),r=0;r<c;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(s){a.definitions[s]=J1(J1({},a.definitions[s]||{}),i[s]),lv(s,i[s]);var l=gi[w3][s];l&&lv(l,i[s]),JE()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(a,c){var n=c.prefix&&c.iconName&&c.icon?{0:c}:c;return Object.keys(n).map(function(r){var i=n[r],s=i.prefix,l=i.iconName,f=i.icon,u=f[2];a[s]||(a[s]={}),u.length>0&&u.forEach(function(h){typeof h=="string"&&(a[s][h]=f)}),a[s][l]=f}),a}}]),e}(),rV=[],Qc={},o7={},$s1=Object.keys(o7);function js1(e,t){var a=t.mixoutsTo;return rV=e,Qc={},Object.keys(o7).forEach(function(c){$s1.indexOf(c)===-1&&delete o7[c]}),rV.forEach(function(c){var n=c.mixout?c.mixout():{};if(Object.keys(n).forEach(function(i){typeof n[i]=="function"&&(a[i]=n[i]),Rl(n[i])==="object"&&Object.keys(n[i]).forEach(function(s){a[i]||(a[i]={}),a[i][s]=n[i][s]})}),c.hooks){var r=c.hooks();Object.keys(r).forEach(function(i){Qc[i]||(Qc[i]=[]),Qc[i].push(r[i])})}c.provides&&c.provides(o7)}),a}function fv(e,t){for(var a=arguments.length,c=new Array(a>2?a-2:0),n=2;n<a;n++)c[n-2]=arguments[n];var r=Qc[e]||[];return r.forEach(function(i){t=i.apply(null,[t].concat(c))}),t}function Wa(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),c=1;c<t;c++)a[c-1]=arguments[c];var n=Qc[e]||[];n.forEach(function(r){r.apply(null,a)})}function i8(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return o7[e]?o7[e].apply(null,t):void 0}function uv(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,a=e.prefix||y5();if(t)return t=Ma(a,t)||t,aV(tO.definitions,a,t)||aV(a0.styles,a,t)}var tO=new Is1,qs1=function(){n2.autoReplaceSvg=!1,n2.observeMutations=!1,Wa("noAuto")},Us1={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return g8?(Wa("beforeI2svg",t),i8("pseudoElements2svg",t),i8("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.autoReplaceSvgRoot;n2.autoReplaceSvg===!1&&(n2.autoReplaceSvg=!0),n2.observeMutations=!0,Ss1(function(){Ys1({autoReplaceSvgRoot:a}),Wa("watch",t)})}},Ws1={icon:function(t){if(t===null)return null;if(Rl(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ma(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var a=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],c=Lu(t[0]);return{prefix:c,iconName:Ma(c,a)||a}}if(typeof t=="string"&&(t.indexOf("".concat(n2.cssPrefix,"-"))>-1||t.match(hs1))){var n=ku(t.split(" "),{skipLookups:!0});return{prefix:n.prefix||y5(),iconName:Ma(n.prefix,n.iconName)||n.iconName}}if(typeof t=="string"){var r=y5();return{prefix:r,iconName:Ma(r,t)||t}}}},d6={noAuto:qs1,config:n2,dom:Us1,parse:Ws1,library:tO,findIconDefinition:uv,toHtml:Ls},Ys1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.autoReplaceSvgRoot,c=a===void 0?k3:a;(Object.keys(a0.styles).length>0||n2.autoFetchSvg)&&g8&&n2.autoReplaceSvg&&d6.dom.i2svg({node:c})};function Su(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(c){return Ls(c)})}}),Object.defineProperty(e,"node",{get:function(){if(g8){var c=k3.createElement("div");return c.innerHTML=e.html,c.children}}}),e}function Gs1(e){var t=e.children,a=e.main,c=e.mask,n=e.attributes,r=e.styles,i=e.transform;if(ab(i)&&a.found&&!c.found){var s=a.width,l=a.height,f={x:s/l/2,y:.5};n.style=_u(J1(J1({},r),{},{"transform-origin":"".concat(f.x+i.x/16,"em ").concat(f.y+i.y/16,"em")}))}return[{tag:"svg",attributes:n,children:t}]}function Zs1(e){var t=e.prefix,a=e.iconName,c=e.children,n=e.attributes,r=e.symbol,i=r===!0?"".concat(t,"-").concat(n2.cssPrefix,"-").concat(a):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J1(J1({},n),{},{id:i}),children:c}]}]}function ib(e){var t=e.icons,a=t.main,c=t.mask,n=e.prefix,r=e.iconName,i=e.transform,s=e.symbol,l=e.title,f=e.maskId,u=e.titleId,h=e.extra,d=e.watchable,m=d===void 0?!1:d,v=c.found?c:a,p=v.width,g=v.height,y=n==="fak",b=[n2.replacementClass,r?"".concat(n2.cssPrefix,"-").concat(r):""].filter(function(L){return h.classes.indexOf(L)===-1}).filter(function(L){return L!==""||!!L}).concat(h.classes).join(" "),x={children:[],attributes:J1(J1({},h.attributes),{},{"data-prefix":n,"data-icon":r,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(g)})},z=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/g*16*.0625,"em")}:{};m&&(x.attributes[Ua]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(u||bi())},children:[l]}),delete x.attributes.title);var M=J1(J1({},x),{},{prefix:n,iconName:r,main:a,mask:c,maskId:f,transform:i,symbol:s,styles:J1(J1({},z),h.styles)}),H=c.found&&a.found?i8("generateAbstractMask",M)||{children:[],attributes:{}}:i8("generateAbstractIcon",M)||{children:[],attributes:{}},C=H.children,w=H.attributes;return M.children=C,M.attributes=w,s?Zs1(M):Gs1(M)}function iV(e){var t=e.content,a=e.width,c=e.height,n=e.transform,r=e.title,i=e.extra,s=e.watchable,l=s===void 0?!1:s,f=J1(J1(J1({},i.attributes),r?{title:r}:{}),{},{class:i.classes.join(" ")});l&&(f[Ua]="");var u=J1({},i.styles);ab(n)&&(u.transform=ws1({transform:n,startCentered:!0,width:a,height:c}),u["-webkit-transform"]=u.transform);var h=_u(u);h.length>0&&(f.style=h);var d=[];return d.push({tag:"span",attributes:f,children:[t]}),r&&d.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),d}function Xs1(e){var t=e.content,a=e.title,c=e.extra,n=J1(J1(J1({},c.attributes),a?{title:a}:{}),{},{class:c.classes.join(" ")}),r=_u(c.styles);r.length>0&&(n.style=r);var i=[];return i.push({tag:"span",attributes:n,children:[t]}),a&&i.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),i}var Fd=a0.styles;function hv(e){var t=e[0],a=e[1],c=e.slice(4),n=Xy(c,1),r=n[0],i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(n2.cssPrefix,"-").concat(xa.GROUP)},children:[{tag:"path",attributes:{class:"".concat(n2.cssPrefix,"-").concat(xa.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(n2.cssPrefix,"-").concat(xa.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:a,icon:i}}var Ks1={found:!1,width:512,height:512};function Qs1(e,t){!IE&&!n2.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function dv(e,t){var a=t;return t==="fa"&&n2.styleDefault!==null&&(t=y5()),new Promise(function(c,n){if(i8("missingIconAbstract"),a==="fa"){var r=eO(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&Fd[t]&&Fd[t][e]){var i=Fd[t][e];return c(hv(i))}Qs1(e,t),c(J1(J1({},Ks1),{},{icon:n2.showMissingIcons&&e?i8("missingIconAbstract")||{}:{}}))})}var sV=function(){},mv=n2.measurePerformance&&Vo&&Vo.mark&&Vo.measure?Vo:{mark:sV,measure:sV},rr='FA "6.5.1"',Js1=function(t){return mv.mark("".concat(rr," ").concat(t," begins")),function(){return aO(t)}},aO=function(t){mv.mark("".concat(rr," ").concat(t," ends")),mv.measure("".concat(rr," ").concat(t),"".concat(rr," ").concat(t," begins"),"".concat(rr," ").concat(t," ends"))},sb={begin:Js1,end:aO},el=function(){};function oV(e){var t=e.getAttribute?e.getAttribute(Ua):null;return typeof t=="string"}function eo1(e){var t=e.getAttribute?e.getAttribute(Qy):null,a=e.getAttribute?e.getAttribute(Jy):null;return t&&a}function to1(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(n2.replacementClass)}function ao1(){if(n2.autoReplaceSvg===!0)return tl.replace;var e=tl[n2.autoReplaceSvg];return e||tl.replace}function co1(e){return k3.createElementNS("http://www.w3.org/2000/svg",e)}function no1(e){return k3.createElement(e)}function cO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.ceFn,c=a===void 0?e.tag==="svg"?co1:no1:a;if(typeof e=="string")return k3.createTextNode(e);var n=c(e.tag);Object.keys(e.attributes||[]).forEach(function(i){n.setAttribute(i,e.attributes[i])});var r=e.children||[];return r.forEach(function(i){n.appendChild(cO(i,{ceFn:c}))}),n}function ro1(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var tl={replace:function(t){var a=t[0];if(a.parentNode)if(t[1].forEach(function(n){a.parentNode.insertBefore(cO(n),a)}),a.getAttribute(Ua)===null&&n2.keepOriginalSource){var c=k3.createComment(ro1(a));a.parentNode.replaceChild(c,a)}else a.remove()},nest:function(t){var a=t[0],c=t[1];if(~tb(a).indexOf(n2.replacementClass))return tl.replace(t);var n=new RegExp("".concat(n2.cssPrefix,"-.*"));if(delete c[0].attributes.id,c[0].attributes.class){var r=c[0].attributes.class.split(" ").reduce(function(s,l){return l===n2.replacementClass||l.match(n)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});c[0].attributes.class=r.toSvg.join(" "),r.toNode.length===0?a.removeAttribute("class"):a.setAttribute("class",r.toNode.join(" "))}var i=c.map(function(s){return Ls(s)}).join(`
781
781
  `);a.setAttribute(Ua,""),a.innerHTML=i}};function lV(e){e()}function nO(e,t){var a=typeof t=="function"?t:el;if(e.length===0)a();else{var c=lV;n2.mutateApproach===ls1&&(c=g5.requestAnimationFrame||lV),c(function(){var n=ao1(),r=sb.begin("mutate");e.map(n),r(),a()})}}var ob=!1;function rO(){ob=!0}function pv(){ob=!1}var Il=null;function fV(e){if(JH&&n2.observeMutations){var t=e.treeCallback,a=t===void 0?el:t,c=e.nodeCallback,n=c===void 0?el:c,r=e.pseudoElementsCallback,i=r===void 0?el:r,s=e.observeMutationsRoot,l=s===void 0?k3:s;Il=new JH(function(f){if(!ob){var u=y5();an(f).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!oV(h.addedNodes[0])&&(n2.searchPseudoElements&&i(h.target),a(h.target)),h.type==="attributes"&&h.target.parentNode&&n2.searchPseudoElements&&i(h.target.parentNode),h.type==="attributes"&&oV(h.target)&&~vs1.indexOf(h.attributeName))if(h.attributeName==="class"&&eo1(h.target)){var d=ku(tb(h.target)),m=d.prefix,v=d.iconName;h.target.setAttribute(Qy,m||u),v&&h.target.setAttribute(Jy,v)}else to1(h.target)&&n(h.target)})}}),g8&&Il.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function io1(){Il&&Il.disconnect()}function so1(e){var t=e.getAttribute("style"),a=[];return t&&(a=t.split(";").reduce(function(c,n){var r=n.split(":"),i=r[0],s=r.slice(1);return i&&s.length>0&&(c[i]=s.join(":").trim()),c},{})),a}function oo1(e){var t=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),c=e.innerText!==void 0?e.innerText.trim():"",n=ku(tb(e));return n.prefix||(n.prefix=y5()),t&&a&&(n.prefix=t,n.iconName=a),n.iconName&&n.prefix||(n.prefix&&c.length>0&&(n.iconName=Rs1(n.prefix,e.innerText)||nb(n.prefix,ov(e.innerText))),!n.iconName&&n2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(n.iconName=e.firstChild.data)),n}function lo1(e){var t=an(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{}),a=e.getAttribute("title"),c=e.getAttribute("data-fa-title-id");return n2.autoA11y&&(a?t["aria-labelledby"]="".concat(n2.replacementClass,"-title-").concat(c||bi()):(t["aria-hidden"]="true",t.focusable="false")),t}function fo1(){return{iconName:null,title:null,titleId:null,prefix:null,transform:X0,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function uV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},a=oo1(e),c=a.iconName,n=a.prefix,r=a.rest,i=lo1(e),s=fv("parseNodeAttributes",{},e),l=t.styleParser?so1(e):[];return J1({iconName:c,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:n,transform:X0,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:i}},s)}var uo1=a0.styles;function iO(e){var t=n2.autoReplaceSvg==="nest"?uV(e,{styleParser:!1}):uV(e);return~t.extra.classes.indexOf($E)?i8("generateLayersText",e,t):i8("generateSvgReplacementMutation",e,t)}var b5=new Set;eb.map(function(e){b5.add("fa-".concat(e))});Object.keys(pi[w3]).map(b5.add.bind(b5));Object.keys(pi[n4]).map(b5.add.bind(b5));b5=ws(b5);function hV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!g8)return Promise.resolve();var a=k3.documentElement.classList,c=function(h){return a.add("".concat(eV,"-").concat(h))},n=function(h){return a.remove("".concat(eV,"-").concat(h))},r=n2.autoFetchSvg?b5:eb.map(function(u){return"fa-".concat(u)}).concat(Object.keys(uo1));r.includes("fa")||r.push("fa");var i=[".".concat($E,":not([").concat(Ua,"])")].concat(r.map(function(u){return".".concat(u,":not([").concat(Ua,"])")})).join(", ");if(i.length===0)return Promise.resolve();var s=[];try{s=an(e.querySelectorAll(i))}catch{}if(s.length>0)c("pending"),n("complete");else return Promise.resolve();var l=sb.begin("onTree"),f=s.reduce(function(u,h){try{var d=iO(h);d&&u.push(d)}catch(m){IE||m.name==="MissingIcon"&&console.error(m)}return u},[]);return new Promise(function(u,h){Promise.all(f).then(function(d){nO(d,function(){c("active"),c("complete"),n("pending"),typeof t=="function"&&t(),l(),u()})}).catch(function(d){l(),h(d)})})}function ho1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;iO(e).then(function(a){a&&nO([a],t)})}function do1(e){return function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=(t||{}).icon?t:uv(t||{}),n=a.mask;return n&&(n=(n||{}).icon?n:uv(n||{})),e(c,J1(J1({},a),{},{mask:n}))}}var mo1=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=a.transform,n=c===void 0?X0:c,r=a.symbol,i=r===void 0?!1:r,s=a.mask,l=s===void 0?null:s,f=a.maskId,u=f===void 0?null:f,h=a.title,d=h===void 0?null:h,m=a.titleId,v=m===void 0?null:m,p=a.classes,g=p===void 0?[]:p,y=a.attributes,b=y===void 0?{}:y,x=a.styles,z=x===void 0?{}:x;if(t){var M=t.prefix,H=t.iconName,C=t.icon;return Su(J1({type:"icon"},t),function(){return Wa("beforeDOMElementCreation",{iconDefinition:t,params:a}),n2.autoA11y&&(d?b["aria-labelledby"]="".concat(n2.replacementClass,"-title-").concat(v||bi()):(b["aria-hidden"]="true",b.focusable="false")),ib({icons:{main:hv(C),mask:l?hv(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:H,transform:J1(J1({},X0),n),symbol:i,title:d,maskId:u,titleId:v,extra:{attributes:b,styles:z,classes:g}})})}},po1={mixout:function(){return{icon:do1(mo1)}},hooks:function(){return{mutationObserverCallbacks:function(a){return a.treeCallback=hV,a.nodeCallback=ho1,a}}},provides:function(t){t.i2svg=function(a){var c=a.node,n=c===void 0?k3:c,r=a.callback,i=r===void 0?function(){}:r;return hV(n,i)},t.generateSvgReplacementMutation=function(a,c){var n=c.iconName,r=c.title,i=c.titleId,s=c.prefix,l=c.transform,f=c.symbol,u=c.mask,h=c.maskId,d=c.extra;return new Promise(function(m,v){Promise.all([dv(n,s),u.iconName?dv(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(p){var g=Xy(p,2),y=g[0],b=g[1];m([a,ib({icons:{main:y,mask:b},prefix:s,iconName:n,transform:l,symbol:f,maskId:h,title:r,titleId:i,extra:d,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(a){var c=a.children,n=a.attributes,r=a.main,i=a.transform,s=a.styles,l=_u(s);l.length>0&&(n.style=l);var f;return ab(i)&&(f=i8("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),c.push(f||r.icon),{children:c,attributes:n}}}},vo1={mixout:function(){return{layer:function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.classes,r=n===void 0?[]:n;return Su({type:"layer"},function(){Wa("beforeDOMElementCreation",{assembler:a,params:c});var i=[];return a(function(s){Array.isArray(s)?s.map(function(l){i=i.concat(l.abstract)}):i=i.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(n2.cssPrefix,"-layers")].concat(ws(r)).join(" ")},children:i}]})}}}},go1={mixout:function(){return{counter:function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.title,r=n===void 0?null:n,i=c.classes,s=i===void 0?[]:i,l=c.attributes,f=l===void 0?{}:l,u=c.styles,h=u===void 0?{}:u;return Su({type:"counter",content:a},function(){return Wa("beforeDOMElementCreation",{content:a,params:c}),Xs1({content:a.toString(),title:r,extra:{attributes:f,styles:h,classes:["".concat(n2.cssPrefix,"-layers-counter")].concat(ws(s))}})})}}}},yo1={mixout:function(){return{text:function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.transform,r=n===void 0?X0:n,i=c.title,s=i===void 0?null:i,l=c.classes,f=l===void 0?[]:l,u=c.attributes,h=u===void 0?{}:u,d=c.styles,m=d===void 0?{}:d;return Su({type:"text",content:a},function(){return Wa("beforeDOMElementCreation",{content:a,params:c}),iV({content:a,transform:J1(J1({},X0),r),title:s,extra:{attributes:h,styles:m,classes:["".concat(n2.cssPrefix,"-layers-text")].concat(ws(f))}})})}}},provides:function(t){t.generateLayersText=function(a,c){var n=c.title,r=c.transform,i=c.extra,s=null,l=null;if(BE){var f=parseInt(getComputedStyle(a).fontSize,10),u=a.getBoundingClientRect();s=u.width/f,l=u.height/f}return n2.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([a,iV({content:a.innerHTML,width:s,height:l,transform:r,title:n,extra:i,watchable:!0})])}}},bo1=new RegExp('"',"ug"),dV=[1105920,1112319];function zo1(e){var t=e.replace(bo1,""),a=Ts1(t,0),c=a>=dV[0]&&a<=dV[1],n=t.length===2?t[0]===t[1]:!1;return{value:ov(n?t[0]:t),isSecondary:c||n}}function mV(e,t){var a="".concat(os1).concat(t.replace(":","-"));return new Promise(function(c,n){if(e.getAttribute(a)!==null)return c();var r=an(e.children),i=r.filter(function(C){return C.getAttribute(sv)===t})[0],s=g5.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(ds1),f=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(i&&!l)return e.removeChild(i),c();if(l&&u!=="none"&&u!==""){var h=s.getPropertyValue("content"),d=~["Sharp"].indexOf(l[2])?n4:w3,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?vi[d][l[2].toLowerCase()]:ms1[d][f],v=zo1(h),p=v.value,g=v.isSecondary,y=l[0].startsWith("FontAwesome"),b=nb(m,p),x=b;if(y){var z=Fs1(p);z.iconName&&z.prefix&&(b=z.iconName,m=z.prefix)}if(b&&!g&&(!i||i.getAttribute(Qy)!==m||i.getAttribute(Jy)!==x)){e.setAttribute(a,x),i&&e.removeChild(i);var M=fo1(),H=M.extra;H.attributes[sv]=t,dv(b,m).then(function(C){var w=ib(J1(J1({},M),{},{icons:{main:C,mask:rb()},prefix:m,iconName:x,extra:H,watchable:!0})),L=k3.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(L,e.firstChild):e.appendChild(L),L.outerHTML=w.map(function(S){return Ls(S)}).join(`
782
782
  `),e.removeAttribute(a),c()}).catch(n)}else c()}else c()})}function xo1(e){return Promise.all([mV(e,"::before"),mV(e,"::after")])}function Mo1(e){return e.parentNode!==document.head&&!~fs1.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(sv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function pV(e){if(g8)return new Promise(function(t,a){var c=an(e.querySelectorAll("*")).filter(Mo1).map(xo1),n=sb.begin("searchPseudoElements");rO(),Promise.all(c).then(function(){n(),pv(),t()}).catch(function(){n(),pv(),a()})})}var Co1={hooks:function(){return{mutationObserverCallbacks:function(a){return a.pseudoElementsCallback=pV,a}}},provides:function(t){t.pseudoElements2svg=function(a){var c=a.node,n=c===void 0?k3:c;n2.searchPseudoElements&&pV(n)}}},vV=!1,Ho1={mixout:function(){return{dom:{unwatch:function(){rO(),vV=!0}}}},hooks:function(){return{bootstrap:function(){fV(fv("mutationObserverCallbacks",{}))},noAuto:function(){io1()},watch:function(a){var c=a.observeMutationsRoot;vV?pv():fV(fv("mutationObserverCallbacks",{observeMutationsRoot:c}))}}}},gV=function(t){var a={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(c,n){var r=n.toLowerCase().split("-"),i=r[0],s=r.slice(1).join("-");if(i&&s==="h")return c.flipX=!0,c;if(i&&s==="v")return c.flipY=!0,c;if(s=parseFloat(s),isNaN(s))return c;switch(i){case"grow":c.size=c.size+s;break;case"shrink":c.size=c.size-s;break;case"left":c.x=c.x-s;break;case"right":c.x=c.x+s;break;case"up":c.y=c.y-s;break;case"down":c.y=c.y+s;break;case"rotate":c.rotate=c.rotate+s;break}return c},a)},Vo1={mixout:function(){return{parse:{transform:function(a){return gV(a)}}}},hooks:function(){return{parseNodeAttributes:function(a,c){var n=c.getAttribute("data-fa-transform");return n&&(a.transform=gV(n)),a}}},provides:function(t){t.generateAbstractTransformGrouping=function(a){var c=a.main,n=a.transform,r=a.containerWidth,i=a.iconWidth,s={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(n.x*32,", ").concat(n.y*32,") "),f="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),h={transform:"".concat(l," ").concat(f," ").concat(u)},d={transform:"translate(".concat(i/2*-1," -256)")},m={outer:s,inner:h,path:d};return{tag:"g",attributes:J1({},m.outer),children:[{tag:"g",attributes:J1({},m.inner),children:[{tag:c.icon.tag,children:c.icon.children,attributes:J1(J1({},c.icon.attributes),m.path)}]}]}}}},Id={x:0,y:0,width:"100%",height:"100%"};function yV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function wo1(e){return e.tag==="g"?e.children:[e]}var _o1={hooks:function(){return{parseNodeAttributes:function(a,c){var n=c.getAttribute("data-fa-mask"),r=n?ku(n.split(" ").map(function(i){return i.trim()})):rb();return r.prefix||(r.prefix=y5()),a.mask=r,a.maskId=c.getAttribute("data-fa-mask-id"),a}}},provides:function(t){t.generateAbstractMask=function(a){var c=a.children,n=a.attributes,r=a.main,i=a.mask,s=a.maskId,l=a.transform,f=r.width,u=r.icon,h=i.width,d=i.icon,m=Vs1({transform:l,containerWidth:h,iconWidth:f}),v={tag:"rect",attributes:J1(J1({},Id),{},{fill:"white"})},p=u.children?{children:u.children.map(yV)}:{},g={tag:"g",attributes:J1({},m.inner),children:[yV(J1({tag:u.tag,attributes:J1(J1({},u.attributes),m.path)},p))]},y={tag:"g",attributes:J1({},m.outer),children:[g]},b="mask-".concat(s||bi()),x="clip-".concat(s||bi()),z={tag:"mask",attributes:J1(J1({},Id),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:wo1(d)},z]};return c.push(M,{tag:"rect",attributes:J1({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},Id)}),{children:c,attributes:n}}}},Lo1={provides:function(t){var a=!1;g5.matchMedia&&(a=g5.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var c=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};c.push({tag:"path",attributes:J1(J1({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=J1(J1({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:J1(J1({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return a||s.children.push({tag:"animate",attributes:J1(J1({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J1(J1({},i),{},{values:"1;0;1;1;0;1;"})}),c.push(s),c.push({tag:"path",attributes:J1(J1({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:a?[]:[{tag:"animate",attributes:J1(J1({},i),{},{values:"1;0;0;0;0;1;"})}]}),a||c.push({tag:"path",attributes:J1(J1({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J1(J1({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:c}}}},ko1={hooks:function(){return{parseNodeAttributes:function(a,c){var n=c.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return a.symbol=r,a}}}},So1=[Ls1,po1,vo1,go1,yo1,Co1,Ho1,Vo1,_o1,Lo1,ko1];js1(So1,{mixoutsTo:d6});d6.noAuto;var sO=d6.config,lb=d6.library;d6.dom;var $l=d6.parse;d6.findIconDefinition;d6.toHtml;var Ao1=d6.icon;d6.layer;var No1=d6.text;d6.counter;function bV(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function W6(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?bV(Object(a),!0).forEach(function(c){Re(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):bV(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function jl(e){"@babel/helpers - typeof";return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jl(e)}function Re(e,t,a){return t=Fo1(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function To1(e,t){if(e==null)return{};var a={},c=Object.keys(e),n,r;for(r=0;r<c.length;r++)n=c[r],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Eo1(e,t){if(e==null)return{};var a=To1(e,t),c,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)c=r[n],!(t.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(e,c)&&(a[c]=e[c])}return a}function vv(e){return Oo1(e)||Do1(e)||Po1(e)||Bo1()}function Oo1(e){if(Array.isArray(e))return gv(e)}function Do1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Po1(e,t){if(e){if(typeof e=="string")return gv(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return gv(e,t)}}function gv(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,c=new Array(t);a<t;a++)c[a]=e[a];return c}function Bo1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
783
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ro1(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var c=a.call(e,t||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fo1(e){var t=Ro1(e,"string");return typeof t=="symbol"?t:String(t)}var Io1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oO={exports:{}};(function(e){(function(t){var a=function(y,b,x){if(!f(b)||h(b)||d(b)||m(b)||l(b))return b;var z,M=0,H=0;if(u(b))for(z=[],H=b.length;M<H;M++)z.push(a(y,b[M],x));else{z={};for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(z[y(C,x)]=a(y,b[C],x))}return z},c=function(y,b){b=b||{};var x=b.separator||"_",z=b.split||/(?=[A-Z])/;return y.split(z).join(x)},n=function(y){return v(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(b,x){return x?x.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},r=function(y){var b=n(y);return b.substr(0,1).toUpperCase()+b.substr(1)},i=function(y,b){return c(y,b).toLowerCase()},s=Object.prototype.toString,l=function(y){return typeof y=="function"},f=function(y){return y===Object(y)},u=function(y){return s.call(y)=="[object Array]"},h=function(y){return s.call(y)=="[object Date]"},d=function(y){return s.call(y)=="[object RegExp]"},m=function(y){return s.call(y)=="[object Boolean]"},v=function(y){return y=y-0,y===y},p=function(y,b){var x=b&&"process"in b?b.process:b;return typeof x!="function"?y:function(z,M){return x(z,y,M)}},g={camelize:n,decamelize:i,pascalize:r,depascalize:i,camelizeKeys:function(y,b){return a(p(n,b),y)},decamelizeKeys:function(y,b){return a(p(i,b),y,b)},pascalizeKeys:function(y,b){return a(p(r,b),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(Io1)})(oO);var $o1=oO.exports,jo1=["class","style"];function qo1(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,a){var c=a.indexOf(":"),n=$o1.camelize(a.slice(0,c)),r=a.slice(c+1).trim();return t[n]=r,t},{})}function Uo1(e){return e.split(/\s+/).reduce(function(t,a){return t[a]=!0,t},{})}function fb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var c=(e.children||[]).map(function(l){return fb(l)}),n=Object.keys(e.attributes||{}).reduce(function(l,f){var u=e.attributes[f];switch(f){case"class":l.class=Uo1(u);break;case"style":l.style=qo1(u);break;default:l.attrs[f]=u}return l},{attrs:{},class:{},style:{}});a.class;var r=a.style,i=r===void 0?{}:r,s=Eo1(a,jo1);return o.h(e.tag,W6(W6(W6({},t),{},{class:n.class,style:W6(W6({},n.style),i)},n.attrs),s),c)}var lO=!1;try{lO=process.env.NODE_ENV==="production"}catch{}function Wo1(){if(!lO&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Hr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Re({},e,t):{}}function Yo1(e){var t,a=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Re(t,"fa-".concat(e.size),e.size!==null),Re(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Re(t,"fa-pull-".concat(e.pull),e.pull!==null),Re(t,"fa-swap-opacity",e.swapOpacity),Re(t,"fa-bounce",e.bounce),Re(t,"fa-shake",e.shake),Re(t,"fa-beat",e.beat),Re(t,"fa-fade",e.fade),Re(t,"fa-beat-fade",e.beatFade),Re(t,"fa-flash",e.flash),Re(t,"fa-spin-pulse",e.spinPulse),Re(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(a).map(function(c){return a[c]?c:null}).filter(function(c){return c})}function zV(e){if(e&&jl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if($l.icon)return $l.icon(e);if(e===null)return null;if(jl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Go1=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,a){var c=a.attrs,n=o.computed(function(){return zV(t.icon)}),r=o.computed(function(){return Hr("classes",Yo1(t))}),i=o.computed(function(){return Hr("transform",typeof t.transform=="string"?$l.transform(t.transform):t.transform)}),s=o.computed(function(){return Hr("mask",zV(t.mask))}),l=o.computed(function(){return Ao1(n.value,W6(W6(W6(W6({},r.value),i.value),s.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});o.watch(l,function(u){if(!u)return Wo1("Could not find one or more icon(s)",n.value,s.value)},{immediate:!0});var f=o.computed(function(){return l.value?fb(l.value.abstract[0],{},c):null});return function(){return f.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,a){var c=a.slots,n=sO.familyPrefix,r=o.computed(function(){return["".concat(n,"-layers")].concat(vv(t.fixedWidth?["".concat(n,"-fw")]:[]))});return function(){return o.h("div",{class:r.value},c.default?c.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,a){var c=a.attrs,n=sO.familyPrefix,r=o.computed(function(){return Hr("classes",[].concat(vv(t.counter?["".concat(n,"-layers-counter")]:[]),vv(t.position?["".concat(n,"-layers-").concat(t.position)]:[])))}),i=o.computed(function(){return Hr("transform",typeof t.transform=="string"?$l.transform(t.transform):t.transform)}),s=o.computed(function(){var f=No1(t.value.toString(),W6(W6({},i.value),r.value)),u=f.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=o.computed(function(){return fb(s.value,{},c)});return function(){return l.value}}});const Zo1=o.defineComponent({__name:"PgaIcon",props:{icon:{},size:{default:"inherit"},color:{default:"inherit"},clickable:{type:Boolean}},setup(e){o.useCssVars(n=>({"95948e04":n.size,"1ebb13f4":c.value}));const t=e,a=o.computed(()=>typeof t.icon=="string"?["fas",t.icon]:t.icon),c=o.computed(()=>bs(t.color)?`var(--pga-color-${t.color})`:t.color);return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Go1),{class:o.normalizeClass(["icon",{"icon--clickable":n.clickable}]),icon:a.value},null,8,["class","icon"]))}});const K1=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},A4=K1(Zo1,[["__scopeId","data-v-9eb8f91c"]]),Xo1={class:"spinner"},Ko1=o.defineComponent({__name:"PgaSpinner",props:{size:{default:"l"},color:{default:"primary"},colorContrast:{type:Boolean},preventCenter:{type:Boolean}},setup(e){o.useCssVars(r=>({dfa33e46:a.value,f167dea6:c.value,"0efc458a":n.value}));const t=e,a=o.computed(()=>t.preventCenter?"none":"auto"),c=o.computed(()=>{if(t.size==="s")return"0.9rem";if(t.size==="m")return"1.2rem";if(t.size==="l")return"1.5rem"}),n=o.computed(()=>t.colorContrast?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`);return(r,i)=>(o.openBlock(),o.createElementBlock("div",Xo1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(4,s=>o.createElementVNode("div",{class:"spinner__side",key:s})),64))]))}});const y8=K1(Ko1,[["__scopeId","data-v-07c85176"]]),Qo1=["type","disabled"],Jo1={class:"button__content"},e91=["textContent"],t91=o.defineComponent({__name:"PgaButton",props:{type:{default:"button"},icon:{},text:{},variant:{},size:{default:"m"},align:{default:"center"},color:{default:"primary"},heightAndWidth:{},fullWidth:{type:Boolean},fitContent:{type:Boolean},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{}},setup(e){o.useCssVars(z=>({"81d61936":r.value,57220648:i.value,"57490d09":s.value,"7db0ad92":l.value,"513cce46":u.value,"513cce48":h.value,a9f1b7fc:p.value,"62a5e85a":f.value,"666c0de4":m.value,"1676e6c0":v.value,"516645a9":d.value,"6656281c":x.value,"38c51990":y.value,"79265cc4":b.value,"0cac364a":g.value}));const t=e,{form:a,button:c}=Ce(),n=o.computed(()=>t.variant||c.variant),r=o.computed(()=>{if(t.size==="s")return"0.9rem";if(t.size==="m")return"1rem";if(t.size==="l")return"1.2rem"}),i=o.computed(()=>t.heightAndWidth||"auto"),s=o.computed(()=>t.fullWidth?"100%":t.heightAndWidth||"max-content"),l=o.computed(()=>t.fitContent?"fit-content":""),f=o.computed(()=>t.borderRadius?t.borderRadius:t.rounded?"100%":a.input.borderRadius),u=o.computed(()=>{if(t.size==="s")return"0.15rem";if(t.size==="m")return"0.25rem";if(t.size==="l")return"0.35rem"}),h=o.computed(()=>{if(t.size==="s")return"0.5rem";if(t.size==="m")return"0.75rem";if(t.size==="l")return"1rem"}),d=o.computed(()=>{if(t.align==="center")return"center";if(t.align==="left")return"flex-start";if(t.align==="right")return"flex-end"}),m=o.computed(()=>t.color==="first"?"var(--pga-color-first)":n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),v=o.computed(()=>t.color==="first"?"none":n.value==="filled"?`var(--pga-color-${t.color})`:`var(--pga-color-${t.color}-015)`),p=o.computed(()=>t.color==="first"||n.value==="filled"||n.value==="flat"?"transparent":`var(--pga-color-${t.color})`),g=o.computed(()=>t.color==="first"?"var(--pga-color-first-01)":n.value==="filled"?`var(--pga-color-${t.color}-09)`:`var(--pga-color-${t.color}-025)`),y=o.computed(()=>t.color==="first"?"var(--pga-color-first)":n.value==="filled"?`var(--pga-color-${t.color})`:`var(--pga-color-${t.color}-contrast)`),b=o.computed(()=>t.color==="first"?"none":n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),x=o.computed(()=>t.color==="first"?"var(--pga-color-first)":n.value==="flat"?"transparent":n.value==="filled"?`var(--pga-color-${t.color})`:"transparent");return(z,M)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["button",{"button--disabled":z.disabled,"button--is-loading":z.isLoading}]),type:z.type,disabled:z.disabled||z.isLoading},[o.createElementVNode("div",Jo1,[z.icon?(o.openBlock(),o.createBlock(A4,{key:0,icon:z.icon},null,8,["icon"])):o.createCommentVNode("",!0),z.text?(o.openBlock(),o.createBlock(E3,{key:1,text:z.text},null,8,["text"])):o.createCommentVNode("",!0),!z.icon&&!z.text?o.renderSlot(z.$slots,"default",{key:2},void 0,!0):o.createCommentVNode("",!0)]),o.createVNode(y8,{class:"button__spinner",size:"s",color:z.color,colorContrast:n.value==="filled"},null,8,["color","colorContrast"]),z.numberToDisplay?(o.openBlock(),o.createElementBlock("div",{key:0,class:"button__number-to-display",onClick:M[0]||(M[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("span",{class:"number-to-display__number",textContent:o.toDisplayString(z.numberToDisplay)},null,8,e91)])):o.createCommentVNode("",!0)],10,Qo1))}});const P2=K1(t91,[["__scopeId","data-v-362fa76a"]]),ub=o.defineComponent({__name:"PgaDisplayButtons",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=o.useModel(e,"modelValue"),c=t,n=I2("pgaDisplay");function r(){const i=!a.value;a.value=i,c("change",i)}return(i,s)=>(o.openBlock(),o.createBlock(P2,{text:a.value?o.unref(n)("hide"):o.unref(n)("showAll"),icon:a.value?"eye-slash":"eye",color:a.value?"grey":"primary",variant:"flat",size:"s",onClick:s[0]||(s[0]=l=>r())},null,8,["text","icon","color"]))}}),a91={key:0},c91={key:0},n91=["innerHTML"],r91=o.defineComponent({__name:"PgaDisplayText",props:{text:{},fontSize:{default:"inherit"},maxLengthToDisplay:{},icon:{},color:{default:"inherit"},showEmptyText:{type:Boolean},nowrap:{type:Boolean},textHidden:{type:Boolean},withUnderlineOnHover:{type:Boolean}},setup(e){o.useCssVars(s=>({"773ca5da":s.fontSize,e52c72e8:i.value}));const t=e,a=o.ref(!1),c=o.computed(()=>b4(t.text)),n=o.computed(()=>c.value.length),r=o.computed(()=>!t.maxLengthToDisplay||n.value<t.maxLengthToDisplay||a.value?c.value:`${c.value.slice(0,t.maxLengthToDisplay)}...`),i=o.computed(()=>bs(t.color)?`var(--pga-color-${t.color})`:t.color);return(s,l)=>s.text?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(["pga-text",{"pga-text--nowrap":s.nowrap||s.icon,"pga-text-hidden":s.textHidden,"pga-text--underline-on-hover":s.withUnderlineOnHover}])},[s.icon?(o.openBlock(),o.createElementBlock("span",c91,[o.createVNode(A4,{icon:s.icon},null,8,["icon"]),o.createTextVNode("   ")])):o.createCommentVNode("",!0),o.createElementVNode("span",{innerHTML:r.value},null,8,n91),s.maxLengthToDisplay&&n.value>s.maxLengthToDisplay?(o.openBlock(),o.createBlock(ub,{key:1,modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=f=>a.value=f)},null,8,["modelValue"])):o.createCommentVNode("",!0)],2)):(o.openBlock(),o.createElementBlock("span",a91,o.toDisplayString(s.showEmptyText?"":"-"),1))}});const E3=K1(r91,[["__scopeId","data-v-018fc6b4"]]),i91={class:"button-link",type:"button"},s91=o.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},preventUnderline:{type:Boolean}},setup(e){o.useCssVars(n=>({"531ad5b6":n.size,"7efb9a55":a.value,"056b6be7":c.value}));const t=e,a=o.computed(()=>`var(--pga-color-${t.color})`),c=o.computed(()=>`var(--pga-color-${t.color}-08)`);return(n,r)=>(o.openBlock(),o.createElementBlock("button",i91,[n.text?(o.openBlock(),o.createBlock(E3,{key:0,class:o.normalizeClass(["button-link__text",{"button-link__text--with-underline":!n.preventUnderline}]),text:n.text,icon:n.icon},null,8,["class","text","icon"])):o.renderSlot(n.$slots,"default",{key:1},void 0,!0)]))}});const hb=K1(s91,[["__scopeId","data-v-b25b0aa2"]]),o91={class:"notifications"},l91=o.defineComponent({__name:"Notifications",setup(e){const t=I2("notifications"),{notifications:a}=Ce(),{notifications:c}=Ge.storeToRefs(n5());return(n,r)=>(o.openBlock(),o.createElementBlock("div",o91,[o.createVNode(o.TransitionGroup,{name:"notifications__transition-group"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),i=>(o.openBlock(),o.createElementBlock("div",{key:i.id,class:"notifications__notification",style:o.normalizeStyle({"border-left-color":`var(--pga-color-${i.type})`})},[o.createVNode(E3,{class:"notifications__message",text:i.message},null,8,["text"]),o.unref(a).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(A4,{key:0,class:"notifications__xmark",icon:"xmark",onClick:s=>o.unref(Zy)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(a).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(hb,{key:0,class:"notifications__remove-all-btn",text:o.unref(t)("removeAllBtn"),onClick:r[0]||(r[0]=i=>o.unref(TE)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const f91=K1(l91,[["__scopeId","data-v-120c4e59"]]),u91=o.defineComponent({__name:"App",setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(si.RouterView)),o.createVNode(f91)],64))}});function h91(e){return typeof e=="object"&&e!==null}function xV(e,t){return e=h91(e)?e:Object.create(null),new Proxy(e,{get(a,c,n){return c==="key"?Reflect.get(a,c,n):Reflect.get(a,c,n)||Reflect.get(t,c,n)}})}function d91(e,t){return t.reduce((a,c)=>a==null?void 0:a[c],e)}function m91(e,t,a){return t.slice(0,-1).reduce((c,n)=>/^(__proto__)$/.test(n)?{}:c[n]=c[n]||{},e)[t[t.length-1]]=a,e}function p91(e,t){return t.reduce((a,c)=>{const n=c.split(".");return m91(a,n,d91(e,n))},{})}function v91(e,t){return a=>{var c;try{const{storage:n=localStorage,beforeRestore:r=void 0,afterRestore:i=void 0,serializer:s={serialize:JSON.stringify,deserialize:JSON.parse},key:l=t.$id,paths:f=null,debug:u=!1}=a;return{storage:n,beforeRestore:r,afterRestore:i,serializer:s,key:((c=e.key)!=null?c:h=>h)(typeof l=="string"?l:l(t.$id)),paths:f,debug:u}}catch(n){return a.debug&&console.error("[pinia-plugin-persistedstate]",n),null}}}function MV(e,{storage:t,serializer:a,key:c,debug:n}){try{const r=t==null?void 0:t.getItem(c);r&&e.$patch(a==null?void 0:a.deserialize(r))}catch(r){n&&console.error("[pinia-plugin-persistedstate]",r)}}function CV(e,{storage:t,serializer:a,key:c,paths:n,debug:r}){try{const i=Array.isArray(n)?p91(e,n):e;t.setItem(c,a.serialize(i))}catch(i){r&&console.error("[pinia-plugin-persistedstate]",i)}}function g91(e={}){return t=>{const{auto:a=!1}=e,{options:{persist:c=a},store:n,pinia:r}=t;if(!c)return;if(!(n.$id in r.state.value)){const s=r._s.get(n.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const i=(Array.isArray(c)?c.map(s=>xV(s,e)):[xV(c,e)]).map(v91(e,n)).filter(Boolean);n.$persist=()=>{i.forEach(s=>{CV(n.$state,s)})},n.$hydrate=({runHooks:s=!0}={})=>{i.forEach(l=>{const{beforeRestore:f,afterRestore:u}=l;s&&(f==null||f(t)),MV(n,l),s&&(u==null||u(t))})},i.forEach(s=>{const{beforeRestore:l,afterRestore:f}=s;l==null||l(t),MV(n,s),f==null||f(t),n.$subscribe((u,h)=>{CV(h,s)},{detached:!0})})}}const ql="__vue_click_outside__";function fO(){return"click"}function uO(e,t,a){hO(e);let c=a.context,n=t.value,r=!1;setTimeout(()=>{r=!0},0),e[ql]=i=>{if((!e||!e.contains(i.target))&&n&&r&&typeof n=="function")return i.stopPropagation(),n.call(c,i)},document.addEventListener(fO(),e[ql],!1)}function y91(e,t,a){t.value!==t.oldValue&&uO(e,t,a)}function hO(e){document.removeEventListener(fO(),e[ql],!1),delete e[ql]}const HV={mounted:uO,updated:y91,unmounted:hO},dO={install:e=>{e.directive("click-outside",HV)},directive:HV},b91=["top","right","bottom","left"],VV=["start","end"],wV=b91.reduce((e,t)=>e.concat(t,t+"-"+VV[0],t+"-"+VV[1]),[]),zi=Math.min,ra=Math.max,z91={left:"right",right:"left",bottom:"top",top:"bottom"},x91={start:"end",end:"start"};function yv(e,t,a){return ra(e,zi(t,a))}function uc(e,t){return typeof e=="function"?e(t):e}function ut(e){return e.split("-")[0]}function f0(e){return e.split("-")[1]}function mO(e){return e==="x"?"y":"x"}function db(e){return e==="y"?"height":"width"}function Ya(e){return["top","bottom"].includes(ut(e))?"y":"x"}function mb(e){return mO(Ya(e))}function pO(e,t,a){a===void 0&&(a=!1);const c=f0(e),n=mb(e),r=db(n);let i=n==="x"?c===(a?"end":"start")?"right":"left":c==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Wl(i)),[i,Wl(i)]}function M91(e){const t=Wl(e);return[Ul(e),t,Ul(t)]}function Ul(e){return e.replace(/start|end/g,t=>x91[t])}function C91(e,t,a){const c=["left","right"],n=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return a?t?n:c:t?c:n;case"left":case"right":return t?r:i;default:return[]}}function H91(e,t,a,c){const n=f0(e);let r=C91(ut(e),a==="start",c);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(Ul)))),r}function Wl(e){return e.replace(/left|right|bottom|top/g,t=>z91[t])}function V91(e){return{top:0,right:0,bottom:0,left:0,...e}}function vO(e){return typeof e!="number"?V91(e):{top:e,right:e,bottom:e,left:e}}function Vr(e){const{x:t,y:a,width:c,height:n}=e;return{width:c,height:n,top:a,left:t,right:t+c,bottom:a+n,x:t,y:a}}function _V(e,t,a){let{reference:c,floating:n}=e;const r=Ya(t),i=mb(t),s=db(i),l=ut(t),f=r==="y",u=c.x+c.width/2-n.width/2,h=c.y+c.height/2-n.height/2,d=c[s]/2-n[s]/2;let m;switch(l){case"top":m={x:u,y:c.y-n.height};break;case"bottom":m={x:u,y:c.y+c.height};break;case"right":m={x:c.x+c.width,y:h};break;case"left":m={x:c.x-n.width,y:h};break;default:m={x:c.x,y:c.y}}switch(f0(t)){case"start":m[i]-=d*(a&&f?-1:1);break;case"end":m[i]+=d*(a&&f?-1:1);break}return m}const w91=async(e,t,a)=>{const{placement:c="bottom",strategy:n="absolute",middleware:r=[],platform:i}=a,s=r.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:h}=_V(f,c,l),d=c,m={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:y}=s[p],{x:b,y:x,data:z,reset:M}=await y({x:u,y:h,initialPlacement:c,placement:d,strategy:n,middlewareData:m,rects:f,platform:i,elements:{reference:e,floating:t}});u=b??u,h=x??h,m={...m,[g]:{...m[g],...z}},M&&v<=50&&(v++,typeof M=="object"&&(M.placement&&(d=M.placement),M.rects&&(f=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):M.rects),{x:u,y:h}=_V(f,d,l)),p=-1)}return{x:u,y:h,placement:d,strategy:n,middlewareData:m}};async function Au(e,t){var a;t===void 0&&(t={});const{x:c,y:n,platform:r,rects:i,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:m=0}=uc(t,e),v=vO(m),g=s[d?h==="floating"?"reference":"floating":h],y=Vr(await r.getClippingRect({element:(a=await(r.isElement==null?void 0:r.isElement(g)))==null||a?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:l})),b=h==="floating"?{x:c,y:n,width:i.floating.width,height:i.floating.height}:i.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),z=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},M=Vr(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-M.top+v.top)/z.y,bottom:(M.bottom-y.bottom+v.bottom)/z.y,left:(y.left-M.left+v.left)/z.x,right:(M.right-y.right+v.right)/z.x}}const _91=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:c,placement:n,rects:r,platform:i,elements:s,middlewareData:l}=t,{element:f,padding:u=0}=uc(e,t)||{};if(f==null)return{};const h=vO(u),d={x:a,y:c},m=mb(n),v=db(m),p=await i.getDimensions(f),g=m==="y",y=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",z=r.reference[v]+r.reference[m]-d[m]-r.floating[v],M=d[m]-r.reference[m],H=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let C=H?H[x]:0;(!C||!await(i.isElement==null?void 0:i.isElement(H)))&&(C=s.floating[x]||r.floating[v]);const w=z/2-M/2,L=C/2-p[v]/2-1,S=zi(h[y],L),_=zi(h[b],L),V=S,O=C-p[v]-_,j=C/2-p[v]/2+w,N=yv(V,j,O),B=!l.arrow&&f0(n)!=null&&j!==N&&r.reference[v]/2-(j<V?S:_)-p[v]/2<0,F=B?j<V?j-V:j-O:0;return{[m]:d[m]+F,data:{[m]:N,centerOffset:j-N-F,...B&&{alignmentOffset:F}},reset:B}}});function L91(e,t,a){return(e?[...a.filter(n=>f0(n)===e),...a.filter(n=>f0(n)!==e)]:a.filter(n=>ut(n)===n)).filter(n=>e?f0(n)===e||(t?Ul(n)!==n:!1):!0)}const k91=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,c,n;const{rects:r,middlewareData:i,placement:s,platform:l,elements:f}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:d=wV,autoAlignment:m=!0,...v}=uc(e,t),p=h!==void 0||d===wV?L91(h||null,m,d):d,g=await Au(t,v),y=((a=i.autoPlacement)==null?void 0:a.index)||0,b=p[y];if(b==null)return{};const x=pO(b,r,await(l.isRTL==null?void 0:l.isRTL(f.floating)));if(s!==b)return{reset:{placement:p[0]}};const z=[g[ut(b)],g[x[0]],g[x[1]]],M=[...((c=i.autoPlacement)==null?void 0:c.overflows)||[],{placement:b,overflows:z}],H=p[y+1];if(H)return{data:{index:y+1,overflows:M},reset:{placement:H}};const C=M.map(S=>{const _=f0(S.placement);return[S.placement,_&&u?S.overflows.slice(0,2).reduce((V,O)=>V+O,0):S.overflows[0],S.overflows]}).sort((S,_)=>S[1]-_[1]),L=((n=C.filter(S=>S[2].slice(0,f0(S[0])?2:3).every(_=>_<=0))[0])==null?void 0:n[0])||C[0][0];return L!==s?{data:{index:y+1,overflows:M},reset:{placement:L}}:{}}}},S91=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,c;const{placement:n,middlewareData:r,rects:i,initialPlacement:s,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=uc(e,t);if((a=r.arrow)!=null&&a.alignmentOffset)return{};const y=ut(n),b=Ya(s),x=ut(s)===s,z=await(l.isRTL==null?void 0:l.isRTL(f.floating)),M=d||(x||!p?[Wl(s)]:M91(s)),H=v!=="none";!d&&H&&M.push(...H91(s,p,v,z));const C=[s,...M],w=await Au(t,g),L=[];let S=((c=r.flip)==null?void 0:c.overflows)||[];if(u&&L.push(w[y]),h){const j=pO(n,i,z);L.push(w[j[0]],w[j[1]])}if(S=[...S,{placement:n,overflows:L}],!L.every(j=>j<=0)){var _,V;const j=(((_=r.flip)==null?void 0:_.index)||0)+1,N=C[j];if(N)return{data:{index:j,overflows:S},reset:{placement:N}};let B=(V=S.filter(F=>F.overflows[0]<=0).sort((F,X)=>F.overflows[1]-X.overflows[1])[0])==null?void 0:V.placement;if(!B)switch(m){case"bestFit":{var O;const F=(O=S.filter(X=>{if(H){const Y=Ya(X.placement);return Y===b||Y==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(Y=>Y>0).reduce((Y,U)=>Y+U,0)]).sort((X,Y)=>X[1]-Y[1])[0])==null?void 0:O[0];F&&(B=F);break}case"initialPlacement":B=s;break}if(n!==B)return{reset:{placement:B}}}return{}}}};async function A91(e,t){const{placement:a,platform:c,elements:n}=e,r=await(c.isRTL==null?void 0:c.isRTL(n.floating)),i=ut(a),s=f0(a),l=Ya(a)==="y",f=["left","top"].includes(i)?-1:1,u=r&&l?-1:1,h=uc(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v=="number"&&(m=s==="end"?v*-1:v),l?{x:m*u,y:d*f}:{x:d*f,y:m*u}}const N91=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,c;const{x:n,y:r,placement:i,middlewareData:s}=t,l=await A91(t,e);return i===((a=s.offset)==null?void 0:a.placement)&&(c=s.arrow)!=null&&c.alignmentOffset?{}:{x:n+l.x,y:r+l.y,data:{...l,placement:i}}}}},T91=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:c,placement:n}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:y,y:b}=g;return{x:y,y:b}}},...l}=uc(e,t),f={x:a,y:c},u=await Au(t,l),h=Ya(ut(n)),d=mO(h);let m=f[d],v=f[h];if(r){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+u[g],x=m-u[y];m=yv(b,m,x)}if(i){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=v+u[g],x=v-u[y];v=yv(b,v,x)}const p=s.fn({...t,[d]:m,[h]:v});return{...p,data:{x:p.x-a,y:p.y-c,enabled:{[d]:r,[h]:i}}}}}},E91=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,c;const{placement:n,rects:r,platform:i,elements:s}=t,{apply:l=()=>{},...f}=uc(e,t),u=await Au(t,f),h=ut(n),d=f0(n),m=Ya(n)==="y",{width:v,height:p}=r.floating;let g,y;h==="top"||h==="bottom"?(g=h,y=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=h,g=d==="end"?"top":"bottom");const b=p-u.top-u.bottom,x=v-u.left-u.right,z=zi(p-u[g],b),M=zi(v-u[y],x),H=!t.middlewareData.shift;let C=z,w=M;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(w=x),(c=t.middlewareData.shift)!=null&&c.enabled.y&&(C=b),H&&!d){const S=ra(u.left,0),_=ra(u.right,0),V=ra(u.top,0),O=ra(u.bottom,0);m?w=v-2*(S!==0||_!==0?S+_:ra(u.left,u.right)):C=p-2*(V!==0||O!==0?V+O:ra(u.top,u.bottom))}await l({...t,availableWidth:w,availableHeight:C});const L=await i.getDimensions(s.floating);return v!==L.width||p!==L.height?{reset:{rects:!0}}:{}}}};function _6(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){return _6(e).getComputedStyle(e)}const LV=Math.min,wr=Math.max,Yl=Math.round;function gO(e){const t=et(e);let a=parseFloat(t.width),c=parseFloat(t.height);const n=e.offsetWidth,r=e.offsetHeight,i=Yl(a)!==n||Yl(c)!==r;return i&&(a=n,c=r),{width:a,height:c,fallback:i}}function z5(e){return bO(e)?(e.nodeName||"").toLowerCase():""}let Eo;function yO(){if(Eo)return Eo;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Eo=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Eo):navigator.userAgent}function tt(e){return e instanceof _6(e).HTMLElement}function r5(e){return e instanceof _6(e).Element}function bO(e){return e instanceof _6(e).Node}function kV(e){return typeof ShadowRoot>"u"?!1:e instanceof _6(e).ShadowRoot||e instanceof ShadowRoot}function Nu(e){const{overflow:t,overflowX:a,overflowY:c,display:n}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+c+a)&&!["inline","contents"].includes(n)}function O91(e){return["table","td","th"].includes(z5(e))}function bv(e){const t=/firefox/i.test(yO()),a=et(e),c=a.backdropFilter||a.WebkitBackdropFilter;return a.transform!=="none"||a.perspective!=="none"||!!c&&c!=="none"||t&&a.willChange==="filter"||t&&!!a.filter&&a.filter!=="none"||["transform","perspective"].some(n=>a.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const r=a.contain;return r!=null&&r.includes(n)})}function zO(){return!/^((?!chrome|android).)*safari/i.test(yO())}function pb(e){return["html","body","#document"].includes(z5(e))}function xO(e){return r5(e)?e:e.contextElement}const MO={x:1,y:1};function l7(e){const t=xO(e);if(!tt(t))return MO;const a=t.getBoundingClientRect(),{width:c,height:n,fallback:r}=gO(t);let i=(r?Yl(a.width):a.width)/c,s=(r?Yl(a.height):a.height)/n;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function xi(e,t,a,c){var n,r;t===void 0&&(t=!1),a===void 0&&(a=!1);const i=e.getBoundingClientRect(),s=xO(e);let l=MO;t&&(c?r5(c)&&(l=l7(c)):l=l7(e));const f=s?_6(s):window,u=!zO()&&a;let h=(i.left+(u&&((n=f.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,d=(i.top+(u&&((r=f.visualViewport)==null?void 0:r.offsetTop)||0))/l.y,m=i.width/l.x,v=i.height/l.y;if(s){const p=_6(s),g=c&&r5(c)?_6(c):c;let y=p.frameElement;for(;y&&c&&g!==p;){const b=l7(y),x=y.getBoundingClientRect(),z=getComputedStyle(y);x.x+=(y.clientLeft+parseFloat(z.paddingLeft))*b.x,x.y+=(y.clientTop+parseFloat(z.paddingTop))*b.y,h*=b.x,d*=b.y,m*=b.x,v*=b.y,h+=x.x,d+=x.y,y=_6(y).frameElement}}return{width:m,height:v,top:d,right:h+m,bottom:d+v,left:h,x:h,y:d}}function i5(e){return((bO(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tu(e){return r5(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function CO(e){return xi(i5(e)).left+Tu(e).scrollLeft}function Mi(e){if(z5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kV(e)&&e.host||i5(e);return kV(t)?t.host:t}function HO(e){const t=Mi(e);return pb(t)?t.ownerDocument.body:tt(t)&&Nu(t)?t:HO(t)}function Gl(e,t){var a;t===void 0&&(t=[]);const c=HO(e),n=c===((a=e.ownerDocument)==null?void 0:a.body),r=_6(c);return n?t.concat(r,r.visualViewport||[],Nu(c)?c:[]):t.concat(c,Gl(c))}function SV(e,t,a){return t==="viewport"?Vr(function(c,n){const r=_6(c),i=i5(c),s=r.visualViewport;let l=i.clientWidth,f=i.clientHeight,u=0,h=0;if(s){l=s.width,f=s.height;const d=zO();(d||!d&&n==="fixed")&&(u=s.offsetLeft,h=s.offsetTop)}return{width:l,height:f,x:u,y:h}}(e,a)):r5(t)?Vr(function(c,n){const r=xi(c,!0,n==="fixed"),i=r.top+c.clientTop,s=r.left+c.clientLeft,l=tt(c)?l7(c):{x:1,y:1};return{width:c.clientWidth*l.x,height:c.clientHeight*l.y,x:s*l.x,y:i*l.y}}(t,a)):Vr(function(c){const n=i5(c),r=Tu(c),i=c.ownerDocument.body,s=wr(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),l=wr(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let f=-r.scrollLeft+CO(c);const u=-r.scrollTop;return et(i).direction==="rtl"&&(f+=wr(n.clientWidth,i.clientWidth)-s),{width:s,height:l,x:f,y:u}}(i5(e)))}function AV(e){return tt(e)&&et(e).position!=="fixed"?e.offsetParent:null}function NV(e){const t=_6(e);let a=AV(e);for(;a&&O91(a)&&et(a).position==="static";)a=AV(a);return a&&(z5(a)==="html"||z5(a)==="body"&&et(a).position==="static"&&!bv(a))?t:a||function(c){let n=Mi(c);for(;tt(n)&&!pb(n);){if(bv(n))return n;n=Mi(n)}return null}(e)||t}function D91(e,t,a){const c=tt(t),n=i5(t),r=xi(e,!0,a==="fixed",t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(c||!c&&a!=="fixed")if((z5(t)!=="body"||Nu(n))&&(i=Tu(t)),tt(t)){const l=xi(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=CO(n));return{x:r.left+i.scrollLeft-s.x,y:r.top+i.scrollTop-s.y,width:r.width,height:r.height}}const P91={getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:c,strategy:n}=e;const r=a==="clippingAncestors"?function(f,u){const h=u.get(f);if(h)return h;let d=Gl(f).filter(g=>r5(g)&&z5(g)!=="body"),m=null;const v=et(f).position==="fixed";let p=v?Mi(f):f;for(;r5(p)&&!pb(p);){const g=et(p),y=bv(p);(v?y||m:y||g.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=g:d=d.filter(b=>b!==p),p=Mi(p)}return u.set(f,d),d}(t,this._c):[].concat(a),i=[...r,c],s=i[0],l=i.reduce((f,u)=>{const h=SV(t,u,n);return f.top=wr(h.top,f.top),f.right=LV(h.right,f.right),f.bottom=LV(h.bottom,f.bottom),f.left=wr(h.left,f.left),f},SV(t,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:a,strategy:c}=e;const n=tt(a),r=i5(a);if(a===r)return t;let i={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((n||!n&&c!=="fixed")&&((z5(a)!=="body"||Nu(r))&&(i=Tu(a)),tt(a))){const f=xi(a);s=l7(a),l.x=f.x+a.clientLeft,l.y=f.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}},isElement:r5,getDimensions:function(e){return tt(e)?gO(e):e.getBoundingClientRect()},getOffsetParent:NV,getDocumentElement:i5,getScale:l7,async getElementRects(e){let{reference:t,floating:a,strategy:c}=e;const n=this.getOffsetParent||NV,r=this.getDimensions;return{reference:D91(t,await n(a),c),floating:{x:0,y:0,...await r(a)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>et(e).direction==="rtl"},B91=(e,t,a)=>{const c=new Map,n={platform:P91,...a},r={...n.platform,_c:c};return w91(e,t,{...n,platform:r})};function VO(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(typeof t[a]=="object"&&e[a]?VO(e[a],t[a]):e[a]=t[a])}const u0={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"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"],delay:{show:0,hide:400}}}};function Ci(e,t){let a=u0.themes[e]||{},c;do c=a[t],typeof c>"u"?a.$extend?a=u0.themes[a.$extend]||{}:(a=null,c=u0[t]):a=null;while(a);return c}function R91(e){const t=[e];let a=u0.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=u0.themes[a.$extend]||{}):a=null;while(a);return t.map(c=>`v-popper--theme-${c}`)}function TV(e){const t=[e];let a=u0.themes[e]||{};do a.$extend?(t.push(a.$extend),a=u0.themes[a.$extend]||{}):a=null;while(a);return t}let C7=!1;if(typeof window<"u"){C7=!1;try{const e=Object.defineProperty({},"passive",{get(){C7=!0}});window.addEventListener("test",null,e)}catch{}}let wO=!1;typeof window<"u"&&typeof navigator<"u"&&(wO=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const _O=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),EV={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},OV={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function DV(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function $d(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Y6=[];let Y5=null;const PV={};function BV(e){let t=PV[e];return t||(t=PV[e]=[]),t}let zv=function(){};typeof window<"u"&&(zv=window.Element);function $2(e){return function(t){return Ci(t.theme,e)}}const jd="__floating-vue__popper",LO=()=>o.defineComponent({name:"VPopper",provide(){return{[jd]:{parentPopper:this}}},inject:{[jd]:{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:$2("disabled")},positioningDisabled:{type:Boolean,default:$2("positioningDisabled")},placement:{type:String,default:$2("placement"),validator:e=>_O.includes(e)},delay:{type:[String,Number,Object],default:$2("delay")},distance:{type:[Number,String],default:$2("distance")},skidding:{type:[Number,String],default:$2("skidding")},triggers:{type:Array,default:$2("triggers")},showTriggers:{type:[Array,Function],default:$2("showTriggers")},hideTriggers:{type:[Array,Function],default:$2("hideTriggers")},popperTriggers:{type:Array,default:$2("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:$2("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:$2("popperHideTriggers")},container:{type:[String,Object,zv,Boolean],default:$2("container")},boundary:{type:[String,zv],default:$2("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:$2("strategy")},autoHide:{type:[Boolean,Function],default:$2("autoHide")},handleResize:{type:Boolean,default:$2("handleResize")},instantMove:{type:Boolean,default:$2("instantMove")},eagerMount:{type:Boolean,default:$2("eagerMount")},popperClass:{type:[String,Array,Object],default:$2("popperClass")},computeTransformOrigin:{type:Boolean,default:$2("computeTransformOrigin")},autoMinSize:{type:Boolean,default:$2("autoMinSize")},autoSize:{type:[Boolean,String],default:$2("autoSize")},autoMaxSize:{type:Boolean,default:$2("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:$2("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:$2("preventOverflow")},overflowPadding:{type:[Number,String],default:$2("overflowPadding")},arrowPadding:{type:[Number,String],default:$2("arrowPadding")},arrowOverflow:{type:Boolean,default:$2("arrowOverflow")},flip:{type:Boolean,default:$2("flip")},shift:{type:Boolean,default:$2("shift")},shiftCrossAxis:{type:Boolean,default:$2("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:$2("noAutoFocus")},disposeTimeout:{type:Number,default:$2("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},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},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},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:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[jd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){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:e=null,skipDelay:t=!1,force:a=!1}={}){var c,n;(c=this.parentPopper)!=null&&c.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(a||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var a;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:t}),this.parentPopper.lockedChild=null)},1e3));return}((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.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"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(N91({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(k91({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(T91({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(S91({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(_91({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:c,rects:n,middlewareData:r})=>{let i;const{centerOffset:s}=r.arrow;return c.startsWith("top")||c.startsWith("bottom")?i=Math.abs(s)>n.reference.width/2:i=Math.abs(s)>n.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const c=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:r,middlewareData:i})=>{var s;if((s=i.autoSize)!=null&&s.skip)return{};let l,f;return r.startsWith("top")||r.startsWith("bottom")?l=n.reference.width:f=n.reference.height,this.$_innerNode.style[c==="min"?"minWidth":c==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[c==="min"?"minHeight":c==="max"?"maxHeight":"height"]=f!=null?`${f}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(E91({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:c,availableHeight:n})=>{this.$_innerNode.style.maxWidth=c!=null?`${c}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const a=await B91(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:a.x,y:a.y,placement:a.placement,strategy:a.strategy,arrow:{...a.middlewareData.arrow,...a.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Y5&&this.instantMove&&Y5.instantMove&&Y5!==this.parentPopper){Y5.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Y5=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await $d(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Gl(this.$_referenceNode),...Gl(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),c=a.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(c.left+a.offsetLeft),r=t.y+t.height/2-(c.top+a.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a<Y6.length;a++)t=Y6[a],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Y6.push(this),document.body.classList.add("v-popper--some-open");for(const t of TV(this.theme))BV(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await $d(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,DV(Y6,this),Y6.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of TV(this.theme)){const c=BV(a);DV(c,this),c.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}Y5===this&&(Y5=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await $d(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,EV,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],EV,this.popperTriggers,this.popperShowTriggers,e);const t=a=>{a.usedByTooltip||this.hide({event:a})};this.$_registerTriggerListeners(this.$_targetNodes,OV,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],OV,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(c=>c.addEventListener(t,a,C7?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,c,n){let r=a;c!=null&&(r=typeof c=="function"?c(r):c),r.forEach(i=>{const s=t[i];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:c,eventType:n,handler:r}=a;!e||e===n?c.forEach(i=>i.removeEventListener(n,r)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const c=a.getAttribute(e);c&&(a.removeAttribute(e),a.setAttribute(t,c))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const c=e[a];c==null?t.removeAttribute(a):t.setAttribute(a,c)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(_r>=e.left&&_r<=e.right&&Lr>=e.top&&Lr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=_r-E8,c=Lr-O8,n=t.left+t.width/2-E8+(t.top+t.height/2)-O8+t.width+t.height,r=E8+a*n,i=O8+c*n;return Oo(E8,O8,r,i,t.left,t.top,t.left,t.bottom)||Oo(E8,O8,r,i,t.left,t.top,t.right,t.top)||Oo(E8,O8,r,i,t.right,t.top,t.right,t.bottom)||Oo(E8,O8,r,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(wO){const e=C7?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>RV(t,!0),e),document.addEventListener("touchend",t=>FV(t,!0),e)}else window.addEventListener("mousedown",e=>RV(e,!1),!0),window.addEventListener("click",e=>FV(e,!1),!0);window.addEventListener("resize",I91)}function RV(e,t){if(u0.autoHideOnMousedown)kO(e,t);else for(let a=0;a<Y6.length;a++){const c=Y6[a];try{c.mouseDownContains=c.popperNode().contains(e.target)}catch{}}}function FV(e,t){u0.autoHideOnMousedown||kO(e,t)}function kO(e,t){const a={};for(let c=Y6.length-1;c>=0;c--){const n=Y6[c];try{const r=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!a[n.randomId]&&IV(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let i=n.parentPopper;for(;i&&IV(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function IV(e,t,a){return a.closeAllPopover||a.closePopover&&t||F91(e,a)&&!t}function F91(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function I91(){for(let e=0;e<Y6.length;e++)Y6[e].$_computePosition()}let E8=0,O8=0,_r=0,Lr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{E8=_r,O8=Lr,_r=e.clientX,Lr=e.clientY},C7?{passive:!0}:void 0);function Oo(e,t,a,c,n,r,i,s){const l=((i-n)*(t-r)-(s-r)*(e-n))/((s-r)*(a-e)-(i-n)*(c-t)),f=((a-e)*(t-r)-(c-t)*(e-n))/((s-r)*(a-e)-(i-n)*(c-t));return l>=0&&l<=1&&f>=0&&f<=1}const $91={extends:LO()},Eu=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a};function j91(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",{ref:"reference",class:o.normalizeClass(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[o.renderSlot(e.$slots,"default",o.normalizeProps(o.guardReactiveProps(e.slotData)))],2)}const q91=Eu($91,[["render",j91]]);function U91(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var c=e.indexOf("rv:");return parseInt(e.substring(c+3,e.indexOf(".",c)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let al;function xv(){xv.init||(xv.init=!0,al=U91()!==-1)}var Ou={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){xv(),o.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",al&&this.$el.appendChild(e),e.data="about:blank",al||this.$el.appendChild(e)},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&&(!al&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const W91=o.withScopeId("data-v-b329ee4c");o.pushScopeId("data-v-b329ee4c");const Y91={class:"resize-observer",tabindex:"-1"};o.popScopeId();const G91=W91((e,t,a,c,n,r)=>(o.openBlock(),o.createBlock("div",Y91)));Ou.render=G91;Ou.__scopeId="data-v-b329ee4c";Ou.__file="src/components/ResizeObserver.vue";const SO=(e="theme")=>({computed:{themeClass(){return R91(this[e])}}}),Z91=o.defineComponent({name:"VPopperContent",components:{ResizeObserver:Ou},mixins:[SO()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),X91=["id","aria-hidden","tabindex","data-popper-placement"],K91={ref:"inner",class:"v-popper__inner"},Q91=o.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),J91=o.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),el1=[Q91,J91];function tl1(e,t,a,c,n,r){const i=o.resolveComponent("ResizeObserver");return o.openBlock(),o.createElementBlock("div",{id:e.popperId,ref:"popover",class:o.normalizeClass(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:o.normalizeStyle(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=o.withKeys(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[o.createElementVNode("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),o.createElementVNode("div",{class:"v-popper__wrapper",style:o.normalizeStyle(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[o.createElementVNode("div",K91,[e.mounted?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.renderSlot(e.$slots,"default")]),e.handleResize?(o.openBlock(),o.createBlock(i,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],512),o.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:o.normalizeStyle(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},el1,4)],4)],46,X91)}const AO=Eu(Z91,[["render",tl1]]),NO={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Mv=function(){};typeof window<"u"&&(Mv=window.Element);const al1=o.defineComponent({name:"VPopperWrapper",components:{Popper:q91,PopperContent:AO},mixins:[NO,SO("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Mv,Boolean],default:void 0},boundary:{type:[String,Mv],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function cl1(e,t,a,c,n,r){const i=o.resolveComponent("PopperContent"),s=o.resolveComponent("Popper");return o.openBlock(),o.createBlock(s,o.mergeProps({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:o.withCtx(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:h,autoHide:d,show:m,hide:v,handleResize:p,onResize:g,classes:y,result:b})=>[o.renderSlot(e.$slots,"default",{shown:f,show:m,hide:v}),o.createVNode(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:f,mounted:u,"skip-transition":h,"auto-hide":d,"handle-resize":p,classes:y,result:b,onHide:v,onResize:g},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"popper",{shown:f,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const vb=Eu(al1,[["render",cl1]]),nl1={...vb,name:"VDropdown",vPopperTheme:"dropdown"},rl1={...vb,name:"VMenu",vPopperTheme:"menu"},il1={...vb,name:"VTooltip",vPopperTheme:"tooltip"},sl1=o.defineComponent({name:"VTooltipDirective",components:{Popper:LO(),PopperContent:AO},mixins:[NO],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ci(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ci(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(c=>this.onResult(t,c)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),ol1=["innerHTML"],ll1=["textContent"];function fl1(e,t,a,c,n,r){const i=o.resolveComponent("PopperContent"),s=o.resolveComponent("Popper");return o.openBlock(),o.createBlock(s,o.mergeProps({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:o.withCtx(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:h,autoHide:d,hide:m,handleResize:v,onResize:p,classes:g,result:y})=>[o.createVNode(i,{ref:"popperContent",class:o.normalizeClass({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:f,mounted:u,"skip-transition":h,"auto-hide":d,"handle-resize":v,classes:g,result:y,onHide:m,onResize:p},{default:o.withCtx(()=>[e.html?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:e.finalContent},null,8,ol1)):(o.openBlock(),o.createElementBlock("div",{key:1,textContent:o.toDisplayString(e.finalContent)},null,8,ll1))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const ul1=Eu(sl1,[["render",fl1]]),TO="v-popper--has-tooltip";function hl1(e,t){let a=e.placement;if(!a&&t)for(const c of _O)t[c]&&(a=c);return a||(a=Ci(e.theme||"tooltip","placement")),a}function EO(e,t,a){let c;const n=typeof t;return n==="string"?c={content:t}:t&&n==="object"?c=t:c={content:!1},c.placement=hl1(c,a),c.targetNodes=()=>[e],c.referenceNode=()=>e,c}let qd,Hi,dl1=0;function ml1(){if(qd)return;Hi=o.ref([]),qd=o.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:Hi}},render(){return this.directives.map(t=>o.h(ul1,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),qd.mount(e)}function pl1(e,t,a){ml1();const c=o.ref(EO(e,t,a)),n=o.ref(!1),r={id:dl1++,options:c,shown:n};return Hi.value.push(r),e.classList&&e.classList.add(TO),e.$_popper={options:c,item:r,show(){n.value=!0},hide(){n.value=!1}}}function OO(e){if(e.$_popper){const t=Hi.value.indexOf(e.$_popper.item);t!==-1&&Hi.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(TO)}function $V(e,{value:t,modifiers:a}){const c=EO(e,t,a);if(!c.content||Ci(c.theme||"tooltip","disabled"))OO(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=c):n=pl1(e,t,a),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const vl1={beforeMount:$V,updated:$V,beforeUnmount(e){OO(e)}};function jV(e){e.addEventListener("mousedown",Zl),e.addEventListener("click",Zl),e.addEventListener("touchstart",DO,C7?{passive:!0}:!1)}function qV(e){e.removeEventListener("mousedown",Zl),e.removeEventListener("click",Zl),e.removeEventListener("touchstart",DO),e.removeEventListener("touchend",PO),e.removeEventListener("touchcancel",BO)}function Zl(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function DO(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const a=e.changedTouches[0];t.$_vclosepopover_touchPoint=a,t.addEventListener("touchend",PO),t.addEventListener("touchcancel",BO)}}function PO(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const a=e.changedTouches[0],c=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(a.screenY-c.screenY)<20&&Math.abs(a.screenX-c.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function BO(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const gl1={beforeMount(e,{value:t,modifiers:a}){e.$_closePopoverModifiers=a,(typeof t>"u"||t)&&jV(e)},updated(e,{value:t,oldValue:a,modifiers:c}){e.$_closePopoverModifiers=c,t!==a&&(typeof t>"u"||t?jV(e):qV(e))},beforeUnmount(e){qV(e)}};function yl1(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,VO(u0,t),e.directive("tooltip",vl1),e.directive("close-popper",gl1),e.component("VTooltip",il1),e.component("VDropdown",nl1),e.component("VMenu",rl1))}const bl1={version:"5.2.2",install:yl1,options:u0},zl1={class:"pga-badge"},xl1=o.defineComponent({__name:"PgaBadge",props:{text:{},icon:{},color:{default:"primary"},backgroundColor:{}},setup(e){o.useCssVars(c=>({"47175b14":a.value.color,"18ae9e28":a.value.backgroundColor}));const t=e,a=o.computed(()=>bs(t.color)?{color:`var(--pga-color-${t.color}-contrast)`,backgroundColor:t.backgroundColor||`var(--pga-color-${t.color})`}:{color:t.color,backgroundColor:t.backgroundColor});return(c,n)=>(o.openBlock(),o.createElementBlock("div",zl1,[c.icon?(o.openBlock(),o.createBlock(A4,{key:0,icon:c.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createVNode(E3,{text:c.text},null,8,["text"])]))}});const Ml1=K1(xl1,[["__scopeId","data-v-1e27f8db"]]),Cl1=o.defineComponent({__name:"PgaColorCircle",props:{color:{}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",{class:"color-circle",style:o.normalizeStyle({"background-color":t.color})},null,4))}});const RO=K1(Cl1,[["__scopeId","data-v-292d3df5"]]);function gb(e,t){const a=c=>{let n=e.value.parentElement;for(;n&&n!==document.body;){const r=window.getComputedStyle(n).overflowX,i=window.getComputedStyle(n).overflowY;(i==="auto"||i==="scroll"||r==="auto"||r==="scroll")&&n[c]("scroll",t),n=n.parentElement}window[c]("scroll",t)};o.onMounted(()=>a("addEventListener")),o.onBeforeUnmount(()=>a("removeEventListener"))}const Hl1=o.defineComponent({__name:"PgaDropdown",props:{align:{default:"center"},item:{},options:{}},setup(e){const t=e,a=o.ref(),c=o.ref(),n=o.ref(),r=o.ref(!1);gb(a,()=>r.value=!1);const i=o.computed(()=>t.options?t.options.filter(s=>s.ifFn?s.ifFn(t.item):!0):[]);return o.watch(c,s=>{if(!s)return;const l=document.documentElement.clientHeight,f=document.documentElement.clientWidth,u=a.value.getBoundingClientRect(),h={},d=u.top<l/2,m="0.4rem";d?(h.top=`${u.bottom}px`,h["margin-top"]=m):(h.bottom=`${l-u.top}px`,h["margin-bottom"]=m),t.align==="center"?h.left=`${u.left+u.width/2-s.getBoundingClientRect().width/2}px`:t.align==="left"?h.left=`${u.left}px`:t.align==="right"&&(h.right=`${f-u.right}px`),n.value=h}),(s,l)=>{const f=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",{ref_key:"dropdownRef",ref:a,class:"dropdown"},[o.createVNode(P2,{icon:"ellipsis-vertical",color:"first",onClick:l[0]||(l[0]=u=>r.value=!0)}),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[r.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"contentRef",ref:c,class:"dropdown__content",style:o.normalizeStyle(n.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createBlock(P2,{key:u.text,size:"s",align:"left",borderRadius:"0",variant:"flat",color:u.color||"first",icon:u.icon,text:u.text,onClick:h=>u.clickFn(s.item)},null,8,["color","icon","text","onClick"]))),128)),s.$slots.default?o.renderSlot(s.$slots,"default",{key:0},void 0,!0):o.createCommentVNode("",!0)],4)),[[f,()=>r.value=!1]]):o.createCommentVNode("",!0)]))],512)}}});const FO=K1(Hl1,[["__scopeId","data-v-77c6eb64"]]),Vl1={class:"pga-dropdown-menu"},wl1={key:0,class:"dropdown-menu__options"},_l1=["onClick"],Ll1={class:"option__label-container"},kl1=o.defineComponent({__name:"PgaDropdownMenu",props:{options:{}},setup(e){let t,a=!1;const c=o.ref(!1);function n(){a||(c.value=!0)}function r(){clearTimeout(t),a=!0,c.value=!1,t=setTimeout(()=>a=!1,N4.getConfig().delayTime)}function i(s){s.handleClickFn(),c.value=!1}return(s,l)=>{const f=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",Vl1,[o.createElementVNode("div",{class:"dropdown-menu__content",onClick:l[0]||(l[0]=u=>n())},[o.renderSlot(s.$slots,"default",{},void 0,!0)]),c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",wl1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.options,(u,h)=>(o.openBlock(),o.createElementBlock("div",{key:h,class:"dropdown-menu__option",style:o.normalizeStyle({color:u.color}),onClick:d=>i(u)},[o.createElementVNode("div",Ll1,[o.createVNode(A4,{class:"option__icon",icon:u.icon},null,8,["icon"]),o.createVNode(E3,{class:"option__label",text:u.label},null,8,["text"])]),u.info?(o.openBlock(),o.createBlock(E3,{key:0,class:"option__info",text:u.info},null,8,["text"])):o.createCommentVNode("",!0)],12,_l1))),128))])),[[f,r]]):o.createCommentVNode("",!0)])}}});const Sl1=K1(kl1,[["__scopeId","data-v-ae095277"]]);var IO={exports:{}};/*!
783
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ro1(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var c=a.call(e,t||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fo1(e){var t=Ro1(e,"string");return typeof t=="symbol"?t:String(t)}var Io1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oO={exports:{}};(function(e){(function(t){var a=function(y,b,x){if(!f(b)||h(b)||d(b)||m(b)||l(b))return b;var z,M=0,H=0;if(u(b))for(z=[],H=b.length;M<H;M++)z.push(a(y,b[M],x));else{z={};for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(z[y(C,x)]=a(y,b[C],x))}return z},c=function(y,b){b=b||{};var x=b.separator||"_",z=b.split||/(?=[A-Z])/;return y.split(z).join(x)},n=function(y){return v(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(b,x){return x?x.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},r=function(y){var b=n(y);return b.substr(0,1).toUpperCase()+b.substr(1)},i=function(y,b){return c(y,b).toLowerCase()},s=Object.prototype.toString,l=function(y){return typeof y=="function"},f=function(y){return y===Object(y)},u=function(y){return s.call(y)=="[object Array]"},h=function(y){return s.call(y)=="[object Date]"},d=function(y){return s.call(y)=="[object RegExp]"},m=function(y){return s.call(y)=="[object Boolean]"},v=function(y){return y=y-0,y===y},p=function(y,b){var x=b&&"process"in b?b.process:b;return typeof x!="function"?y:function(z,M){return x(z,y,M)}},g={camelize:n,decamelize:i,pascalize:r,depascalize:i,camelizeKeys:function(y,b){return a(p(n,b),y)},decamelizeKeys:function(y,b){return a(p(i,b),y,b)},pascalizeKeys:function(y,b){return a(p(r,b),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(Io1)})(oO);var $o1=oO.exports,jo1=["class","style"];function qo1(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,a){var c=a.indexOf(":"),n=$o1.camelize(a.slice(0,c)),r=a.slice(c+1).trim();return t[n]=r,t},{})}function Uo1(e){return e.split(/\s+/).reduce(function(t,a){return t[a]=!0,t},{})}function fb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var c=(e.children||[]).map(function(l){return fb(l)}),n=Object.keys(e.attributes||{}).reduce(function(l,f){var u=e.attributes[f];switch(f){case"class":l.class=Uo1(u);break;case"style":l.style=qo1(u);break;default:l.attrs[f]=u}return l},{attrs:{},class:{},style:{}});a.class;var r=a.style,i=r===void 0?{}:r,s=Eo1(a,jo1);return o.h(e.tag,W6(W6(W6({},t),{},{class:n.class,style:W6(W6({},n.style),i)},n.attrs),s),c)}var lO=!1;try{lO=process.env.NODE_ENV==="production"}catch{}function Wo1(){if(!lO&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Hr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Re({},e,t):{}}function Yo1(e){var t,a=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Re(t,"fa-".concat(e.size),e.size!==null),Re(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Re(t,"fa-pull-".concat(e.pull),e.pull!==null),Re(t,"fa-swap-opacity",e.swapOpacity),Re(t,"fa-bounce",e.bounce),Re(t,"fa-shake",e.shake),Re(t,"fa-beat",e.beat),Re(t,"fa-fade",e.fade),Re(t,"fa-beat-fade",e.beatFade),Re(t,"fa-flash",e.flash),Re(t,"fa-spin-pulse",e.spinPulse),Re(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(a).map(function(c){return a[c]?c:null}).filter(function(c){return c})}function zV(e){if(e&&jl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if($l.icon)return $l.icon(e);if(e===null)return null;if(jl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Go1=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,a){var c=a.attrs,n=o.computed(function(){return zV(t.icon)}),r=o.computed(function(){return Hr("classes",Yo1(t))}),i=o.computed(function(){return Hr("transform",typeof t.transform=="string"?$l.transform(t.transform):t.transform)}),s=o.computed(function(){return Hr("mask",zV(t.mask))}),l=o.computed(function(){return Ao1(n.value,W6(W6(W6(W6({},r.value),i.value),s.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});o.watch(l,function(u){if(!u)return Wo1("Could not find one or more icon(s)",n.value,s.value)},{immediate:!0});var f=o.computed(function(){return l.value?fb(l.value.abstract[0],{},c):null});return function(){return f.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,a){var c=a.slots,n=sO.familyPrefix,r=o.computed(function(){return["".concat(n,"-layers")].concat(vv(t.fixedWidth?["".concat(n,"-fw")]:[]))});return function(){return o.h("div",{class:r.value},c.default?c.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,a){var c=a.attrs,n=sO.familyPrefix,r=o.computed(function(){return Hr("classes",[].concat(vv(t.counter?["".concat(n,"-layers-counter")]:[]),vv(t.position?["".concat(n,"-layers-").concat(t.position)]:[])))}),i=o.computed(function(){return Hr("transform",typeof t.transform=="string"?$l.transform(t.transform):t.transform)}),s=o.computed(function(){var f=No1(t.value.toString(),W6(W6({},i.value),r.value)),u=f.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=o.computed(function(){return fb(s.value,{},c)});return function(){return l.value}}});const Zo1=o.defineComponent({__name:"PgaIcon",props:{icon:{},size:{default:"inherit"},color:{default:"inherit"},clickable:{type:Boolean}},setup(e){o.useCssVars(n=>({"95948e04":n.size,"1ebb13f4":c.value}));const t=e,a=o.computed(()=>typeof t.icon=="string"?["fas",t.icon]:t.icon),c=o.computed(()=>bs(t.color)?`var(--pga-color-${t.color})`:t.color);return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Go1),{class:o.normalizeClass(["icon",{"icon--clickable":n.clickable}]),icon:a.value},null,8,["class","icon"]))}});const K1=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},A4=K1(Zo1,[["__scopeId","data-v-9eb8f91c"]]),Xo1={class:"spinner"},Ko1=o.defineComponent({__name:"PgaSpinner",props:{size:{default:"l"},color:{default:"primary"},colorContrast:{type:Boolean},preventCenter:{type:Boolean}},setup(e){o.useCssVars(r=>({dfa33e46:a.value,f167dea6:c.value,"0efc458a":n.value}));const t=e,a=o.computed(()=>t.preventCenter?"none":"auto"),c=o.computed(()=>{if(t.size==="s")return"0.9rem";if(t.size==="m")return"1.2rem";if(t.size==="l")return"1.5rem"}),n=o.computed(()=>t.colorContrast?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`);return(r,i)=>(o.openBlock(),o.createElementBlock("div",Xo1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(4,s=>o.createElementVNode("div",{class:"spinner__side",key:s})),64))]))}});const y8=K1(Ko1,[["__scopeId","data-v-07c85176"]]),Qo1=["type","disabled"],Jo1={class:"button__content"},e91=["textContent"],t91=o.defineComponent({__name:"PgaButton",props:{type:{default:"button"},icon:{},text:{},variant:{},size:{default:"m"},align:{default:"center"},color:{default:"primary"},heightAndWidth:{},fullWidth:{type:Boolean},fitContent:{type:Boolean},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{}},setup(e){o.useCssVars(z=>({"81d61936":r.value,57220648:i.value,"57490d09":s.value,"7db0ad92":l.value,"513cce46":u.value,"513cce48":h.value,a9f1b7fc:p.value,"62a5e85a":f.value,"666c0de4":m.value,"1676e6c0":v.value,"516645a9":d.value,"6656281c":x.value,"38c51990":y.value,"79265cc4":b.value,"0cac364a":g.value}));const t=e,{form:a,button:c}=Ce(),n=o.computed(()=>t.variant||c.variant),r=o.computed(()=>{if(t.size==="s")return"0.9rem";if(t.size==="m")return"1rem";if(t.size==="l")return"1.2rem"}),i=o.computed(()=>t.heightAndWidth||"auto"),s=o.computed(()=>t.fullWidth?"100%":t.heightAndWidth||"max-content"),l=o.computed(()=>t.fitContent?"fit-content":""),f=o.computed(()=>t.borderRadius?t.borderRadius:t.rounded?"100%":a.input.borderRadius),u=o.computed(()=>{if(t.size==="s")return"0.15rem";if(t.size==="m")return"0.25rem";if(t.size==="l")return"0.35rem"}),h=o.computed(()=>{if(t.size==="s")return"0.5rem";if(t.size==="m")return"0.75rem";if(t.size==="l")return"1rem"}),d=o.computed(()=>{if(t.align==="center")return"center";if(t.align==="left")return"flex-start";if(t.align==="right")return"flex-end"}),m=o.computed(()=>t.color==="first"?"var(--pga-color-first)":n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),v=o.computed(()=>t.color==="first"?"none":n.value==="filled"?`var(--pga-color-${t.color})`:`var(--pga-color-${t.color}-015)`),p=o.computed(()=>t.color==="first"||n.value==="filled"||n.value==="flat"?"transparent":`var(--pga-color-${t.color})`),g=o.computed(()=>t.color==="first"?"var(--pga-color-first-01)":n.value==="filled"?`var(--pga-color-${t.color}-09)`:`var(--pga-color-${t.color}-025)`),y=o.computed(()=>t.color==="first"?"var(--pga-color-first)":n.value==="filled"?`var(--pga-color-${t.color})`:`var(--pga-color-${t.color}-contrast)`),b=o.computed(()=>t.color==="first"?"none":n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),x=o.computed(()=>t.color==="first"?"var(--pga-color-first)":n.value==="flat"?"transparent":n.value==="filled"?`var(--pga-color-${t.color})`:"transparent");return(z,M)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["button",{"button--disabled":z.disabled,"button--is-loading":z.isLoading}]),type:z.type,disabled:z.disabled||z.isLoading},[o.createElementVNode("div",Jo1,[z.icon?(o.openBlock(),o.createBlock(A4,{key:0,icon:z.icon},null,8,["icon"])):o.createCommentVNode("",!0),z.text?(o.openBlock(),o.createBlock(E3,{key:1,text:z.text},null,8,["text"])):o.createCommentVNode("",!0),!z.icon&&!z.text?o.renderSlot(z.$slots,"default",{key:2},void 0,!0):o.createCommentVNode("",!0)]),o.createVNode(y8,{class:"button__spinner",size:"s",color:z.color,colorContrast:n.value==="filled"},null,8,["color","colorContrast"]),z.numberToDisplay?(o.openBlock(),o.createElementBlock("div",{key:0,class:"button__number-to-display",onClick:M[0]||(M[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("span",{class:"number-to-display__number",textContent:o.toDisplayString(z.numberToDisplay)},null,8,e91)])):o.createCommentVNode("",!0)],10,Qo1))}});const P2=K1(t91,[["__scopeId","data-v-362fa76a"]]),ub=o.defineComponent({__name:"PgaDisplayButtons",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=o.useModel(e,"modelValue"),c=t,n=I2("pgaDisplay");function r(){const i=!a.value;a.value=i,c("change",i)}return(i,s)=>(o.openBlock(),o.createBlock(P2,{text:a.value?o.unref(n)("hide"):o.unref(n)("showAll"),icon:a.value?"eye-slash":"eye",color:a.value?"grey":"primary",variant:"flat",size:"s",onClick:s[0]||(s[0]=l=>r())},null,8,["text","icon","color"]))}}),a91={key:0},c91={key:0},n91=["innerHTML"],r91=o.defineComponent({__name:"PgaDisplayText",props:{text:{},fontSize:{default:"inherit"},maxLengthToDisplay:{},icon:{},color:{default:"inherit"},showEmptyText:{type:Boolean},nowrap:{type:Boolean},textHidden:{type:Boolean},withUnderlineOnHover:{type:Boolean}},setup(e){o.useCssVars(s=>({"773ca5da":s.fontSize,e52c72e8:i.value}));const t=e,a=o.ref(!1),c=o.computed(()=>b4(t.text)),n=o.computed(()=>c.value.length),r=o.computed(()=>!t.maxLengthToDisplay||n.value<t.maxLengthToDisplay||a.value?c.value:`${c.value.slice(0,t.maxLengthToDisplay)}...`),i=o.computed(()=>bs(t.color)?`var(--pga-color-${t.color})`:t.color);return(s,l)=>s.text?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(["pga-text",{"pga-text--nowrap":s.nowrap||s.icon,"pga-text-hidden":s.textHidden,"pga-text--underline-on-hover":s.withUnderlineOnHover}])},[s.icon?(o.openBlock(),o.createElementBlock("span",c91,[o.createVNode(A4,{icon:s.icon},null,8,["icon"]),o.createTextVNode("   ")])):o.createCommentVNode("",!0),o.createElementVNode("span",{innerHTML:r.value},null,8,n91),s.maxLengthToDisplay&&n.value>s.maxLengthToDisplay?(o.openBlock(),o.createBlock(ub,{key:1,modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=f=>a.value=f)},null,8,["modelValue"])):o.createCommentVNode("",!0)],2)):(o.openBlock(),o.createElementBlock("span",a91,o.toDisplayString(s.showEmptyText?"":"-"),1))}});const E3=K1(r91,[["__scopeId","data-v-018fc6b4"]]),i91={class:"button-link",type:"button"},s91=o.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},preventUnderline:{type:Boolean}},setup(e){o.useCssVars(n=>({"531ad5b6":n.size,"7efb9a55":a.value,"056b6be7":c.value}));const t=e,a=o.computed(()=>`var(--pga-color-${t.color})`),c=o.computed(()=>`var(--pga-color-${t.color}-08)`);return(n,r)=>(o.openBlock(),o.createElementBlock("button",i91,[n.text?(o.openBlock(),o.createBlock(E3,{key:0,class:o.normalizeClass(["button-link__text",{"button-link__text--with-underline":!n.preventUnderline}]),text:n.text,icon:n.icon},null,8,["class","text","icon"])):o.renderSlot(n.$slots,"default",{key:1},void 0,!0)]))}});const hb=K1(s91,[["__scopeId","data-v-b25b0aa2"]]),o91={class:"notifications"},l91=o.defineComponent({__name:"Notifications",setup(e){const t=I2("notifications"),{notifications:a}=Ce(),{notifications:c}=Ge.storeToRefs(n5());return(n,r)=>(o.openBlock(),o.createElementBlock("div",o91,[o.createVNode(o.TransitionGroup,{name:"notifications__transition-group"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),i=>(o.openBlock(),o.createElementBlock("div",{key:i.id,class:"notifications__notification",style:o.normalizeStyle({"border-left-color":`var(--pga-color-${i.type})`})},[o.createVNode(E3,{class:"notifications__message",text:i.message},null,8,["text"]),o.unref(a).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(A4,{key:0,class:"notifications__xmark",icon:"xmark",onClick:s=>o.unref(Zy)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(a).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(hb,{key:0,class:"notifications__remove-all-btn",text:o.unref(t)("removeAllBtn"),onClick:r[0]||(r[0]=i=>o.unref(TE)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const f91=K1(l91,[["__scopeId","data-v-120c4e59"]]),u91=o.defineComponent({__name:"App",setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(si.RouterView)),o.createVNode(f91)],64))}});function h91(e){return typeof e=="object"&&e!==null}function xV(e,t){return e=h91(e)?e:Object.create(null),new Proxy(e,{get(a,c,n){return c==="key"?Reflect.get(a,c,n):Reflect.get(a,c,n)||Reflect.get(t,c,n)}})}function d91(e,t){return t.reduce((a,c)=>a==null?void 0:a[c],e)}function m91(e,t,a){return t.slice(0,-1).reduce((c,n)=>/^(__proto__)$/.test(n)?{}:c[n]=c[n]||{},e)[t[t.length-1]]=a,e}function p91(e,t){return t.reduce((a,c)=>{const n=c.split(".");return m91(a,n,d91(e,n))},{})}function v91(e,t){return a=>{var c;try{const{storage:n=localStorage,beforeRestore:r=void 0,afterRestore:i=void 0,serializer:s={serialize:JSON.stringify,deserialize:JSON.parse},key:l=t.$id,paths:f=null,debug:u=!1}=a;return{storage:n,beforeRestore:r,afterRestore:i,serializer:s,key:((c=e.key)!=null?c:h=>h)(typeof l=="string"?l:l(t.$id)),paths:f,debug:u}}catch(n){return a.debug&&console.error("[pinia-plugin-persistedstate]",n),null}}}function MV(e,{storage:t,serializer:a,key:c,debug:n}){try{const r=t==null?void 0:t.getItem(c);r&&e.$patch(a==null?void 0:a.deserialize(r))}catch(r){n&&console.error("[pinia-plugin-persistedstate]",r)}}function CV(e,{storage:t,serializer:a,key:c,paths:n,debug:r}){try{const i=Array.isArray(n)?p91(e,n):e;t.setItem(c,a.serialize(i))}catch(i){r&&console.error("[pinia-plugin-persistedstate]",i)}}function g91(e={}){return t=>{const{auto:a=!1}=e,{options:{persist:c=a},store:n,pinia:r}=t;if(!c)return;if(!(n.$id in r.state.value)){const s=r._s.get(n.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const i=(Array.isArray(c)?c.map(s=>xV(s,e)):[xV(c,e)]).map(v91(e,n)).filter(Boolean);n.$persist=()=>{i.forEach(s=>{CV(n.$state,s)})},n.$hydrate=({runHooks:s=!0}={})=>{i.forEach(l=>{const{beforeRestore:f,afterRestore:u}=l;s&&(f==null||f(t)),MV(n,l),s&&(u==null||u(t))})},i.forEach(s=>{const{beforeRestore:l,afterRestore:f}=s;l==null||l(t),MV(n,s),f==null||f(t),n.$subscribe((u,h)=>{CV(h,s)},{detached:!0})})}}const ql="__vue_click_outside__";function fO(){return"click"}function uO(e,t,a){hO(e);let c=a.context,n=t.value,r=!1;setTimeout(()=>{r=!0},0),e[ql]=i=>{if((!e||!e.contains(i.target))&&n&&r&&typeof n=="function")return i.stopPropagation(),n.call(c,i)},document.addEventListener(fO(),e[ql],!1)}function y91(e,t,a){t.value!==t.oldValue&&uO(e,t,a)}function hO(e){document.removeEventListener(fO(),e[ql],!1),delete e[ql]}const HV={mounted:uO,updated:y91,unmounted:hO},dO={install:e=>{e.directive("click-outside",HV)},directive:HV},b91=["top","right","bottom","left"],VV=["start","end"],wV=b91.reduce((e,t)=>e.concat(t,t+"-"+VV[0],t+"-"+VV[1]),[]),zi=Math.min,ra=Math.max,z91={left:"right",right:"left",bottom:"top",top:"bottom"},x91={start:"end",end:"start"};function yv(e,t,a){return ra(e,zi(t,a))}function uc(e,t){return typeof e=="function"?e(t):e}function ut(e){return e.split("-")[0]}function f0(e){return e.split("-")[1]}function mO(e){return e==="x"?"y":"x"}function db(e){return e==="y"?"height":"width"}function Ya(e){return["top","bottom"].includes(ut(e))?"y":"x"}function mb(e){return mO(Ya(e))}function pO(e,t,a){a===void 0&&(a=!1);const c=f0(e),n=mb(e),r=db(n);let i=n==="x"?c===(a?"end":"start")?"right":"left":c==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Wl(i)),[i,Wl(i)]}function M91(e){const t=Wl(e);return[Ul(e),t,Ul(t)]}function Ul(e){return e.replace(/start|end/g,t=>x91[t])}function C91(e,t,a){const c=["left","right"],n=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return a?t?n:c:t?c:n;case"left":case"right":return t?r:i;default:return[]}}function H91(e,t,a,c){const n=f0(e);let r=C91(ut(e),a==="start",c);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(Ul)))),r}function Wl(e){return e.replace(/left|right|bottom|top/g,t=>z91[t])}function V91(e){return{top:0,right:0,bottom:0,left:0,...e}}function vO(e){return typeof e!="number"?V91(e):{top:e,right:e,bottom:e,left:e}}function Vr(e){const{x:t,y:a,width:c,height:n}=e;return{width:c,height:n,top:a,left:t,right:t+c,bottom:a+n,x:t,y:a}}function _V(e,t,a){let{reference:c,floating:n}=e;const r=Ya(t),i=mb(t),s=db(i),l=ut(t),f=r==="y",u=c.x+c.width/2-n.width/2,h=c.y+c.height/2-n.height/2,d=c[s]/2-n[s]/2;let m;switch(l){case"top":m={x:u,y:c.y-n.height};break;case"bottom":m={x:u,y:c.y+c.height};break;case"right":m={x:c.x+c.width,y:h};break;case"left":m={x:c.x-n.width,y:h};break;default:m={x:c.x,y:c.y}}switch(f0(t)){case"start":m[i]-=d*(a&&f?-1:1);break;case"end":m[i]+=d*(a&&f?-1:1);break}return m}const w91=async(e,t,a)=>{const{placement:c="bottom",strategy:n="absolute",middleware:r=[],platform:i}=a,s=r.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:h}=_V(f,c,l),d=c,m={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:y}=s[p],{x:b,y:x,data:z,reset:M}=await y({x:u,y:h,initialPlacement:c,placement:d,strategy:n,middlewareData:m,rects:f,platform:i,elements:{reference:e,floating:t}});u=b??u,h=x??h,m={...m,[g]:{...m[g],...z}},M&&v<=50&&(v++,typeof M=="object"&&(M.placement&&(d=M.placement),M.rects&&(f=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):M.rects),{x:u,y:h}=_V(f,d,l)),p=-1)}return{x:u,y:h,placement:d,strategy:n,middlewareData:m}};async function Au(e,t){var a;t===void 0&&(t={});const{x:c,y:n,platform:r,rects:i,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:m=0}=uc(t,e),v=vO(m),g=s[d?h==="floating"?"reference":"floating":h],y=Vr(await r.getClippingRect({element:(a=await(r.isElement==null?void 0:r.isElement(g)))==null||a?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:l})),b=h==="floating"?{x:c,y:n,width:i.floating.width,height:i.floating.height}:i.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),z=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},M=Vr(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-M.top+v.top)/z.y,bottom:(M.bottom-y.bottom+v.bottom)/z.y,left:(y.left-M.left+v.left)/z.x,right:(M.right-y.right+v.right)/z.x}}const _91=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:c,placement:n,rects:r,platform:i,elements:s,middlewareData:l}=t,{element:f,padding:u=0}=uc(e,t)||{};if(f==null)return{};const h=vO(u),d={x:a,y:c},m=mb(n),v=db(m),p=await i.getDimensions(f),g=m==="y",y=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",z=r.reference[v]+r.reference[m]-d[m]-r.floating[v],M=d[m]-r.reference[m],H=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let C=H?H[x]:0;(!C||!await(i.isElement==null?void 0:i.isElement(H)))&&(C=s.floating[x]||r.floating[v]);const w=z/2-M/2,L=C/2-p[v]/2-1,S=zi(h[y],L),_=zi(h[b],L),V=S,O=C-p[v]-_,j=C/2-p[v]/2+w,N=yv(V,j,O),B=!l.arrow&&f0(n)!=null&&j!==N&&r.reference[v]/2-(j<V?S:_)-p[v]/2<0,F=B?j<V?j-V:j-O:0;return{[m]:d[m]+F,data:{[m]:N,centerOffset:j-N-F,...B&&{alignmentOffset:F}},reset:B}}});function L91(e,t,a){return(e?[...a.filter(n=>f0(n)===e),...a.filter(n=>f0(n)!==e)]:a.filter(n=>ut(n)===n)).filter(n=>e?f0(n)===e||(t?Ul(n)!==n:!1):!0)}const k91=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,c,n;const{rects:r,middlewareData:i,placement:s,platform:l,elements:f}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:d=wV,autoAlignment:m=!0,...v}=uc(e,t),p=h!==void 0||d===wV?L91(h||null,m,d):d,g=await Au(t,v),y=((a=i.autoPlacement)==null?void 0:a.index)||0,b=p[y];if(b==null)return{};const x=pO(b,r,await(l.isRTL==null?void 0:l.isRTL(f.floating)));if(s!==b)return{reset:{placement:p[0]}};const z=[g[ut(b)],g[x[0]],g[x[1]]],M=[...((c=i.autoPlacement)==null?void 0:c.overflows)||[],{placement:b,overflows:z}],H=p[y+1];if(H)return{data:{index:y+1,overflows:M},reset:{placement:H}};const C=M.map(S=>{const _=f0(S.placement);return[S.placement,_&&u?S.overflows.slice(0,2).reduce((V,O)=>V+O,0):S.overflows[0],S.overflows]}).sort((S,_)=>S[1]-_[1]),L=((n=C.filter(S=>S[2].slice(0,f0(S[0])?2:3).every(_=>_<=0))[0])==null?void 0:n[0])||C[0][0];return L!==s?{data:{index:y+1,overflows:M},reset:{placement:L}}:{}}}},S91=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,c;const{placement:n,middlewareData:r,rects:i,initialPlacement:s,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=uc(e,t);if((a=r.arrow)!=null&&a.alignmentOffset)return{};const y=ut(n),b=Ya(s),x=ut(s)===s,z=await(l.isRTL==null?void 0:l.isRTL(f.floating)),M=d||(x||!p?[Wl(s)]:M91(s)),H=v!=="none";!d&&H&&M.push(...H91(s,p,v,z));const C=[s,...M],w=await Au(t,g),L=[];let S=((c=r.flip)==null?void 0:c.overflows)||[];if(u&&L.push(w[y]),h){const j=pO(n,i,z);L.push(w[j[0]],w[j[1]])}if(S=[...S,{placement:n,overflows:L}],!L.every(j=>j<=0)){var _,V;const j=(((_=r.flip)==null?void 0:_.index)||0)+1,N=C[j];if(N)return{data:{index:j,overflows:S},reset:{placement:N}};let B=(V=S.filter(F=>F.overflows[0]<=0).sort((F,X)=>F.overflows[1]-X.overflows[1])[0])==null?void 0:V.placement;if(!B)switch(m){case"bestFit":{var O;const F=(O=S.filter(X=>{if(H){const Y=Ya(X.placement);return Y===b||Y==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(Y=>Y>0).reduce((Y,U)=>Y+U,0)]).sort((X,Y)=>X[1]-Y[1])[0])==null?void 0:O[0];F&&(B=F);break}case"initialPlacement":B=s;break}if(n!==B)return{reset:{placement:B}}}return{}}}};async function A91(e,t){const{placement:a,platform:c,elements:n}=e,r=await(c.isRTL==null?void 0:c.isRTL(n.floating)),i=ut(a),s=f0(a),l=Ya(a)==="y",f=["left","top"].includes(i)?-1:1,u=r&&l?-1:1,h=uc(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v=="number"&&(m=s==="end"?v*-1:v),l?{x:m*u,y:d*f}:{x:d*f,y:m*u}}const N91=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,c;const{x:n,y:r,placement:i,middlewareData:s}=t,l=await A91(t,e);return i===((a=s.offset)==null?void 0:a.placement)&&(c=s.arrow)!=null&&c.alignmentOffset?{}:{x:n+l.x,y:r+l.y,data:{...l,placement:i}}}}},T91=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:c,placement:n}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:y,y:b}=g;return{x:y,y:b}}},...l}=uc(e,t),f={x:a,y:c},u=await Au(t,l),h=Ya(ut(n)),d=mO(h);let m=f[d],v=f[h];if(r){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+u[g],x=m-u[y];m=yv(b,m,x)}if(i){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=v+u[g],x=v-u[y];v=yv(b,v,x)}const p=s.fn({...t,[d]:m,[h]:v});return{...p,data:{x:p.x-a,y:p.y-c,enabled:{[d]:r,[h]:i}}}}}},E91=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,c;const{placement:n,rects:r,platform:i,elements:s}=t,{apply:l=()=>{},...f}=uc(e,t),u=await Au(t,f),h=ut(n),d=f0(n),m=Ya(n)==="y",{width:v,height:p}=r.floating;let g,y;h==="top"||h==="bottom"?(g=h,y=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=h,g=d==="end"?"top":"bottom");const b=p-u.top-u.bottom,x=v-u.left-u.right,z=zi(p-u[g],b),M=zi(v-u[y],x),H=!t.middlewareData.shift;let C=z,w=M;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(w=x),(c=t.middlewareData.shift)!=null&&c.enabled.y&&(C=b),H&&!d){const S=ra(u.left,0),_=ra(u.right,0),V=ra(u.top,0),O=ra(u.bottom,0);m?w=v-2*(S!==0||_!==0?S+_:ra(u.left,u.right)):C=p-2*(V!==0||O!==0?V+O:ra(u.top,u.bottom))}await l({...t,availableWidth:w,availableHeight:C});const L=await i.getDimensions(s.floating);return v!==L.width||p!==L.height?{reset:{rects:!0}}:{}}}};function _6(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){return _6(e).getComputedStyle(e)}const LV=Math.min,wr=Math.max,Yl=Math.round;function gO(e){const t=et(e);let a=parseFloat(t.width),c=parseFloat(t.height);const n=e.offsetWidth,r=e.offsetHeight,i=Yl(a)!==n||Yl(c)!==r;return i&&(a=n,c=r),{width:a,height:c,fallback:i}}function z5(e){return bO(e)?(e.nodeName||"").toLowerCase():""}let Eo;function yO(){if(Eo)return Eo;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Eo=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Eo):navigator.userAgent}function tt(e){return e instanceof _6(e).HTMLElement}function r5(e){return e instanceof _6(e).Element}function bO(e){return e instanceof _6(e).Node}function kV(e){return typeof ShadowRoot>"u"?!1:e instanceof _6(e).ShadowRoot||e instanceof ShadowRoot}function Nu(e){const{overflow:t,overflowX:a,overflowY:c,display:n}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+c+a)&&!["inline","contents"].includes(n)}function O91(e){return["table","td","th"].includes(z5(e))}function bv(e){const t=/firefox/i.test(yO()),a=et(e),c=a.backdropFilter||a.WebkitBackdropFilter;return a.transform!=="none"||a.perspective!=="none"||!!c&&c!=="none"||t&&a.willChange==="filter"||t&&!!a.filter&&a.filter!=="none"||["transform","perspective"].some(n=>a.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const r=a.contain;return r!=null&&r.includes(n)})}function zO(){return!/^((?!chrome|android).)*safari/i.test(yO())}function pb(e){return["html","body","#document"].includes(z5(e))}function xO(e){return r5(e)?e:e.contextElement}const MO={x:1,y:1};function l7(e){const t=xO(e);if(!tt(t))return MO;const a=t.getBoundingClientRect(),{width:c,height:n,fallback:r}=gO(t);let i=(r?Yl(a.width):a.width)/c,s=(r?Yl(a.height):a.height)/n;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function xi(e,t,a,c){var n,r;t===void 0&&(t=!1),a===void 0&&(a=!1);const i=e.getBoundingClientRect(),s=xO(e);let l=MO;t&&(c?r5(c)&&(l=l7(c)):l=l7(e));const f=s?_6(s):window,u=!zO()&&a;let h=(i.left+(u&&((n=f.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,d=(i.top+(u&&((r=f.visualViewport)==null?void 0:r.offsetTop)||0))/l.y,m=i.width/l.x,v=i.height/l.y;if(s){const p=_6(s),g=c&&r5(c)?_6(c):c;let y=p.frameElement;for(;y&&c&&g!==p;){const b=l7(y),x=y.getBoundingClientRect(),z=getComputedStyle(y);x.x+=(y.clientLeft+parseFloat(z.paddingLeft))*b.x,x.y+=(y.clientTop+parseFloat(z.paddingTop))*b.y,h*=b.x,d*=b.y,m*=b.x,v*=b.y,h+=x.x,d+=x.y,y=_6(y).frameElement}}return{width:m,height:v,top:d,right:h+m,bottom:d+v,left:h,x:h,y:d}}function i5(e){return((bO(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tu(e){return r5(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function CO(e){return xi(i5(e)).left+Tu(e).scrollLeft}function Mi(e){if(z5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kV(e)&&e.host||i5(e);return kV(t)?t.host:t}function HO(e){const t=Mi(e);return pb(t)?t.ownerDocument.body:tt(t)&&Nu(t)?t:HO(t)}function Gl(e,t){var a;t===void 0&&(t=[]);const c=HO(e),n=c===((a=e.ownerDocument)==null?void 0:a.body),r=_6(c);return n?t.concat(r,r.visualViewport||[],Nu(c)?c:[]):t.concat(c,Gl(c))}function SV(e,t,a){return t==="viewport"?Vr(function(c,n){const r=_6(c),i=i5(c),s=r.visualViewport;let l=i.clientWidth,f=i.clientHeight,u=0,h=0;if(s){l=s.width,f=s.height;const d=zO();(d||!d&&n==="fixed")&&(u=s.offsetLeft,h=s.offsetTop)}return{width:l,height:f,x:u,y:h}}(e,a)):r5(t)?Vr(function(c,n){const r=xi(c,!0,n==="fixed"),i=r.top+c.clientTop,s=r.left+c.clientLeft,l=tt(c)?l7(c):{x:1,y:1};return{width:c.clientWidth*l.x,height:c.clientHeight*l.y,x:s*l.x,y:i*l.y}}(t,a)):Vr(function(c){const n=i5(c),r=Tu(c),i=c.ownerDocument.body,s=wr(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),l=wr(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let f=-r.scrollLeft+CO(c);const u=-r.scrollTop;return et(i).direction==="rtl"&&(f+=wr(n.clientWidth,i.clientWidth)-s),{width:s,height:l,x:f,y:u}}(i5(e)))}function AV(e){return tt(e)&&et(e).position!=="fixed"?e.offsetParent:null}function NV(e){const t=_6(e);let a=AV(e);for(;a&&O91(a)&&et(a).position==="static";)a=AV(a);return a&&(z5(a)==="html"||z5(a)==="body"&&et(a).position==="static"&&!bv(a))?t:a||function(c){let n=Mi(c);for(;tt(n)&&!pb(n);){if(bv(n))return n;n=Mi(n)}return null}(e)||t}function D91(e,t,a){const c=tt(t),n=i5(t),r=xi(e,!0,a==="fixed",t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(c||!c&&a!=="fixed")if((z5(t)!=="body"||Nu(n))&&(i=Tu(t)),tt(t)){const l=xi(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=CO(n));return{x:r.left+i.scrollLeft-s.x,y:r.top+i.scrollTop-s.y,width:r.width,height:r.height}}const P91={getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:c,strategy:n}=e;const r=a==="clippingAncestors"?function(f,u){const h=u.get(f);if(h)return h;let d=Gl(f).filter(g=>r5(g)&&z5(g)!=="body"),m=null;const v=et(f).position==="fixed";let p=v?Mi(f):f;for(;r5(p)&&!pb(p);){const g=et(p),y=bv(p);(v?y||m:y||g.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=g:d=d.filter(b=>b!==p),p=Mi(p)}return u.set(f,d),d}(t,this._c):[].concat(a),i=[...r,c],s=i[0],l=i.reduce((f,u)=>{const h=SV(t,u,n);return f.top=wr(h.top,f.top),f.right=LV(h.right,f.right),f.bottom=LV(h.bottom,f.bottom),f.left=wr(h.left,f.left),f},SV(t,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:a,strategy:c}=e;const n=tt(a),r=i5(a);if(a===r)return t;let i={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((n||!n&&c!=="fixed")&&((z5(a)!=="body"||Nu(r))&&(i=Tu(a)),tt(a))){const f=xi(a);s=l7(a),l.x=f.x+a.clientLeft,l.y=f.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}},isElement:r5,getDimensions:function(e){return tt(e)?gO(e):e.getBoundingClientRect()},getOffsetParent:NV,getDocumentElement:i5,getScale:l7,async getElementRects(e){let{reference:t,floating:a,strategy:c}=e;const n=this.getOffsetParent||NV,r=this.getDimensions;return{reference:D91(t,await n(a),c),floating:{x:0,y:0,...await r(a)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>et(e).direction==="rtl"},B91=(e,t,a)=>{const c=new Map,n={platform:P91,...a},r={...n.platform,_c:c};return w91(e,t,{...n,platform:r})};function VO(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(typeof t[a]=="object"&&e[a]?VO(e[a],t[a]):e[a]=t[a])}const u0={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"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"],delay:{show:0,hide:400}}}};function Ci(e,t){let a=u0.themes[e]||{},c;do c=a[t],typeof c>"u"?a.$extend?a=u0.themes[a.$extend]||{}:(a=null,c=u0[t]):a=null;while(a);return c}function R91(e){const t=[e];let a=u0.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=u0.themes[a.$extend]||{}):a=null;while(a);return t.map(c=>`v-popper--theme-${c}`)}function TV(e){const t=[e];let a=u0.themes[e]||{};do a.$extend?(t.push(a.$extend),a=u0.themes[a.$extend]||{}):a=null;while(a);return t}let C7=!1;if(typeof window<"u"){C7=!1;try{const e=Object.defineProperty({},"passive",{get(){C7=!0}});window.addEventListener("test",null,e)}catch{}}let wO=!1;typeof window<"u"&&typeof navigator<"u"&&(wO=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const _O=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),EV={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},OV={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function DV(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function $d(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Y6=[];let Y5=null;const PV={};function BV(e){let t=PV[e];return t||(t=PV[e]=[]),t}let zv=function(){};typeof window<"u"&&(zv=window.Element);function $2(e){return function(t){return Ci(t.theme,e)}}const jd="__floating-vue__popper",LO=()=>o.defineComponent({name:"VPopper",provide(){return{[jd]:{parentPopper:this}}},inject:{[jd]:{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:$2("disabled")},positioningDisabled:{type:Boolean,default:$2("positioningDisabled")},placement:{type:String,default:$2("placement"),validator:e=>_O.includes(e)},delay:{type:[String,Number,Object],default:$2("delay")},distance:{type:[Number,String],default:$2("distance")},skidding:{type:[Number,String],default:$2("skidding")},triggers:{type:Array,default:$2("triggers")},showTriggers:{type:[Array,Function],default:$2("showTriggers")},hideTriggers:{type:[Array,Function],default:$2("hideTriggers")},popperTriggers:{type:Array,default:$2("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:$2("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:$2("popperHideTriggers")},container:{type:[String,Object,zv,Boolean],default:$2("container")},boundary:{type:[String,zv],default:$2("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:$2("strategy")},autoHide:{type:[Boolean,Function],default:$2("autoHide")},handleResize:{type:Boolean,default:$2("handleResize")},instantMove:{type:Boolean,default:$2("instantMove")},eagerMount:{type:Boolean,default:$2("eagerMount")},popperClass:{type:[String,Array,Object],default:$2("popperClass")},computeTransformOrigin:{type:Boolean,default:$2("computeTransformOrigin")},autoMinSize:{type:Boolean,default:$2("autoMinSize")},autoSize:{type:[Boolean,String],default:$2("autoSize")},autoMaxSize:{type:Boolean,default:$2("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:$2("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:$2("preventOverflow")},overflowPadding:{type:[Number,String],default:$2("overflowPadding")},arrowPadding:{type:[Number,String],default:$2("arrowPadding")},arrowOverflow:{type:Boolean,default:$2("arrowOverflow")},flip:{type:Boolean,default:$2("flip")},shift:{type:Boolean,default:$2("shift")},shiftCrossAxis:{type:Boolean,default:$2("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:$2("noAutoFocus")},disposeTimeout:{type:Number,default:$2("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},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},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},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:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[jd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){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:e=null,skipDelay:t=!1,force:a=!1}={}){var c,n;(c=this.parentPopper)!=null&&c.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(a||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var a;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:t}),this.parentPopper.lockedChild=null)},1e3));return}((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.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"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(N91({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(k91({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(T91({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(S91({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(_91({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:c,rects:n,middlewareData:r})=>{let i;const{centerOffset:s}=r.arrow;return c.startsWith("top")||c.startsWith("bottom")?i=Math.abs(s)>n.reference.width/2:i=Math.abs(s)>n.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const c=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:r,middlewareData:i})=>{var s;if((s=i.autoSize)!=null&&s.skip)return{};let l,f;return r.startsWith("top")||r.startsWith("bottom")?l=n.reference.width:f=n.reference.height,this.$_innerNode.style[c==="min"?"minWidth":c==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[c==="min"?"minHeight":c==="max"?"maxHeight":"height"]=f!=null?`${f}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(E91({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:c,availableHeight:n})=>{this.$_innerNode.style.maxWidth=c!=null?`${c}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const a=await B91(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:a.x,y:a.y,placement:a.placement,strategy:a.strategy,arrow:{...a.middlewareData.arrow,...a.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Y5&&this.instantMove&&Y5.instantMove&&Y5!==this.parentPopper){Y5.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Y5=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await $d(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Gl(this.$_referenceNode),...Gl(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),c=a.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(c.left+a.offsetLeft),r=t.y+t.height/2-(c.top+a.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a<Y6.length;a++)t=Y6[a],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Y6.push(this),document.body.classList.add("v-popper--some-open");for(const t of TV(this.theme))BV(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await $d(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,DV(Y6,this),Y6.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of TV(this.theme)){const c=BV(a);DV(c,this),c.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}Y5===this&&(Y5=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await $d(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,EV,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],EV,this.popperTriggers,this.popperShowTriggers,e);const t=a=>{a.usedByTooltip||this.hide({event:a})};this.$_registerTriggerListeners(this.$_targetNodes,OV,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],OV,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(c=>c.addEventListener(t,a,C7?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,c,n){let r=a;c!=null&&(r=typeof c=="function"?c(r):c),r.forEach(i=>{const s=t[i];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:c,eventType:n,handler:r}=a;!e||e===n?c.forEach(i=>i.removeEventListener(n,r)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const c=a.getAttribute(e);c&&(a.removeAttribute(e),a.setAttribute(t,c))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const c=e[a];c==null?t.removeAttribute(a):t.setAttribute(a,c)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(_r>=e.left&&_r<=e.right&&Lr>=e.top&&Lr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=_r-E8,c=Lr-O8,n=t.left+t.width/2-E8+(t.top+t.height/2)-O8+t.width+t.height,r=E8+a*n,i=O8+c*n;return Oo(E8,O8,r,i,t.left,t.top,t.left,t.bottom)||Oo(E8,O8,r,i,t.left,t.top,t.right,t.top)||Oo(E8,O8,r,i,t.right,t.top,t.right,t.bottom)||Oo(E8,O8,r,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(wO){const e=C7?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>RV(t,!0),e),document.addEventListener("touchend",t=>FV(t,!0),e)}else window.addEventListener("mousedown",e=>RV(e,!1),!0),window.addEventListener("click",e=>FV(e,!1),!0);window.addEventListener("resize",I91)}function RV(e,t){if(u0.autoHideOnMousedown)kO(e,t);else for(let a=0;a<Y6.length;a++){const c=Y6[a];try{c.mouseDownContains=c.popperNode().contains(e.target)}catch{}}}function FV(e,t){u0.autoHideOnMousedown||kO(e,t)}function kO(e,t){const a={};for(let c=Y6.length-1;c>=0;c--){const n=Y6[c];try{const r=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!a[n.randomId]&&IV(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let i=n.parentPopper;for(;i&&IV(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function IV(e,t,a){return a.closeAllPopover||a.closePopover&&t||F91(e,a)&&!t}function F91(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function I91(){for(let e=0;e<Y6.length;e++)Y6[e].$_computePosition()}let E8=0,O8=0,_r=0,Lr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{E8=_r,O8=Lr,_r=e.clientX,Lr=e.clientY},C7?{passive:!0}:void 0);function Oo(e,t,a,c,n,r,i,s){const l=((i-n)*(t-r)-(s-r)*(e-n))/((s-r)*(a-e)-(i-n)*(c-t)),f=((a-e)*(t-r)-(c-t)*(e-n))/((s-r)*(a-e)-(i-n)*(c-t));return l>=0&&l<=1&&f>=0&&f<=1}const $91={extends:LO()},Eu=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a};function j91(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",{ref:"reference",class:o.normalizeClass(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[o.renderSlot(e.$slots,"default",o.normalizeProps(o.guardReactiveProps(e.slotData)))],2)}const q91=Eu($91,[["render",j91]]);function U91(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var c=e.indexOf("rv:");return parseInt(e.substring(c+3,e.indexOf(".",c)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let al;function xv(){xv.init||(xv.init=!0,al=U91()!==-1)}var Ou={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){xv(),o.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",al&&this.$el.appendChild(e),e.data="about:blank",al||this.$el.appendChild(e)},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&&(!al&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const W91=o.withScopeId("data-v-b329ee4c");o.pushScopeId("data-v-b329ee4c");const Y91={class:"resize-observer",tabindex:"-1"};o.popScopeId();const G91=W91((e,t,a,c,n,r)=>(o.openBlock(),o.createBlock("div",Y91)));Ou.render=G91;Ou.__scopeId="data-v-b329ee4c";Ou.__file="src/components/ResizeObserver.vue";const SO=(e="theme")=>({computed:{themeClass(){return R91(this[e])}}}),Z91=o.defineComponent({name:"VPopperContent",components:{ResizeObserver:Ou},mixins:[SO()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),X91=["id","aria-hidden","tabindex","data-popper-placement"],K91={ref:"inner",class:"v-popper__inner"},Q91=o.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),J91=o.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),el1=[Q91,J91];function tl1(e,t,a,c,n,r){const i=o.resolveComponent("ResizeObserver");return o.openBlock(),o.createElementBlock("div",{id:e.popperId,ref:"popover",class:o.normalizeClass(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:o.normalizeStyle(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=o.withKeys(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[o.createElementVNode("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),o.createElementVNode("div",{class:"v-popper__wrapper",style:o.normalizeStyle(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[o.createElementVNode("div",K91,[e.mounted?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.renderSlot(e.$slots,"default")]),e.handleResize?(o.openBlock(),o.createBlock(i,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],512),o.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:o.normalizeStyle(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},el1,4)],4)],46,X91)}const AO=Eu(Z91,[["render",tl1]]),NO={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Mv=function(){};typeof window<"u"&&(Mv=window.Element);const al1=o.defineComponent({name:"VPopperWrapper",components:{Popper:q91,PopperContent:AO},mixins:[NO,SO("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Mv,Boolean],default:void 0},boundary:{type:[String,Mv],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function cl1(e,t,a,c,n,r){const i=o.resolveComponent("PopperContent"),s=o.resolveComponent("Popper");return o.openBlock(),o.createBlock(s,o.mergeProps({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:o.withCtx(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:h,autoHide:d,show:m,hide:v,handleResize:p,onResize:g,classes:y,result:b})=>[o.renderSlot(e.$slots,"default",{shown:f,show:m,hide:v}),o.createVNode(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:f,mounted:u,"skip-transition":h,"auto-hide":d,"handle-resize":p,classes:y,result:b,onHide:v,onResize:g},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"popper",{shown:f,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const vb=Eu(al1,[["render",cl1]]),nl1={...vb,name:"VDropdown",vPopperTheme:"dropdown"},rl1={...vb,name:"VMenu",vPopperTheme:"menu"},il1={...vb,name:"VTooltip",vPopperTheme:"tooltip"},sl1=o.defineComponent({name:"VTooltipDirective",components:{Popper:LO(),PopperContent:AO},mixins:[NO],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ci(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ci(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(c=>this.onResult(t,c)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),ol1=["innerHTML"],ll1=["textContent"];function fl1(e,t,a,c,n,r){const i=o.resolveComponent("PopperContent"),s=o.resolveComponent("Popper");return o.openBlock(),o.createBlock(s,o.mergeProps({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:o.withCtx(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:h,autoHide:d,hide:m,handleResize:v,onResize:p,classes:g,result:y})=>[o.createVNode(i,{ref:"popperContent",class:o.normalizeClass({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:f,mounted:u,"skip-transition":h,"auto-hide":d,"handle-resize":v,classes:g,result:y,onHide:m,onResize:p},{default:o.withCtx(()=>[e.html?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:e.finalContent},null,8,ol1)):(o.openBlock(),o.createElementBlock("div",{key:1,textContent:o.toDisplayString(e.finalContent)},null,8,ll1))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const ul1=Eu(sl1,[["render",fl1]]),TO="v-popper--has-tooltip";function hl1(e,t){let a=e.placement;if(!a&&t)for(const c of _O)t[c]&&(a=c);return a||(a=Ci(e.theme||"tooltip","placement")),a}function EO(e,t,a){let c;const n=typeof t;return n==="string"?c={content:t}:t&&n==="object"?c=t:c={content:!1},c.placement=hl1(c,a),c.targetNodes=()=>[e],c.referenceNode=()=>e,c}let qd,Hi,dl1=0;function ml1(){if(qd)return;Hi=o.ref([]),qd=o.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:Hi}},render(){return this.directives.map(t=>o.h(ul1,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),qd.mount(e)}function pl1(e,t,a){ml1();const c=o.ref(EO(e,t,a)),n=o.ref(!1),r={id:dl1++,options:c,shown:n};return Hi.value.push(r),e.classList&&e.classList.add(TO),e.$_popper={options:c,item:r,show(){n.value=!0},hide(){n.value=!1}}}function OO(e){if(e.$_popper){const t=Hi.value.indexOf(e.$_popper.item);t!==-1&&Hi.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(TO)}function $V(e,{value:t,modifiers:a}){const c=EO(e,t,a);if(!c.content||Ci(c.theme||"tooltip","disabled"))OO(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=c):n=pl1(e,t,a),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const vl1={beforeMount:$V,updated:$V,beforeUnmount(e){OO(e)}};function jV(e){e.addEventListener("mousedown",Zl),e.addEventListener("click",Zl),e.addEventListener("touchstart",DO,C7?{passive:!0}:!1)}function qV(e){e.removeEventListener("mousedown",Zl),e.removeEventListener("click",Zl),e.removeEventListener("touchstart",DO),e.removeEventListener("touchend",PO),e.removeEventListener("touchcancel",BO)}function Zl(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function DO(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const a=e.changedTouches[0];t.$_vclosepopover_touchPoint=a,t.addEventListener("touchend",PO),t.addEventListener("touchcancel",BO)}}function PO(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const a=e.changedTouches[0],c=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(a.screenY-c.screenY)<20&&Math.abs(a.screenX-c.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function BO(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const gl1={beforeMount(e,{value:t,modifiers:a}){e.$_closePopoverModifiers=a,(typeof t>"u"||t)&&jV(e)},updated(e,{value:t,oldValue:a,modifiers:c}){e.$_closePopoverModifiers=c,t!==a&&(typeof t>"u"||t?jV(e):qV(e))},beforeUnmount(e){qV(e)}};function yl1(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,VO(u0,t),e.directive("tooltip",vl1),e.directive("close-popper",gl1),e.component("VTooltip",il1),e.component("VDropdown",nl1),e.component("VMenu",rl1))}const bl1={version:"5.2.2",install:yl1,options:u0},zl1={class:"pga-badge"},xl1=o.defineComponent({__name:"PgaBadge",props:{text:{},icon:{},color:{default:"primary"},backgroundColor:{}},setup(e){o.useCssVars(c=>({"47175b14":a.value.color,"18ae9e28":a.value.backgroundColor}));const t=e,a=o.computed(()=>bs(t.color)?{color:`var(--pga-color-${t.color}-contrast)`,backgroundColor:t.backgroundColor||`var(--pga-color-${t.color})`}:{color:t.color,backgroundColor:t.backgroundColor});return(c,n)=>(o.openBlock(),o.createElementBlock("div",zl1,[c.icon?(o.openBlock(),o.createBlock(A4,{key:0,icon:c.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createVNode(E3,{text:c.text},null,8,["text"])]))}});const Ml1=K1(xl1,[["__scopeId","data-v-1e27f8db"]]),Cl1=o.defineComponent({__name:"PgaColorCircle",props:{color:{}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",{class:"color-circle",style:o.normalizeStyle({"background-color":t.color})},null,4))}});const RO=K1(Cl1,[["__scopeId","data-v-292d3df5"]]);function gb(e,t){const a=c=>{let n=e.value.parentElement;for(;n&&n!==document.body;){const r=window.getComputedStyle(n).overflowX,i=window.getComputedStyle(n).overflowY;(i==="auto"||i==="scroll"||r==="auto"||r==="scroll")&&n[c]("scroll",t),n=n.parentElement}window[c]("scroll",t)};o.onMounted(()=>a("addEventListener")),o.onBeforeUnmount(()=>a("removeEventListener"))}const Hl1=o.defineComponent({__name:"PgaDropdown",props:{align:{default:"center"},item:{},options:{}},setup(e){const t=e,a=o.ref(),c=o.ref(),n=o.ref(),r=o.ref(!1);gb(a,()=>r.value=!1);const i=o.computed(()=>t.options?t.options.filter(s=>s.ifFn?s.ifFn(t.item):!0):[]);return o.watch(c,s=>{if(!s)return;const l=document.documentElement.clientHeight,f=document.documentElement.clientWidth,u=a.value.getBoundingClientRect(),h={},d=u.top<l/2,m="0.4rem";d?(h.top=`${u.bottom}px`,h["margin-top"]=m):(h.bottom=`${l-u.top}px`,h["margin-bottom"]=m),t.align==="center"?h.left=`${u.left+u.width/2-s.getBoundingClientRect().width/2}px`:t.align==="left"?h.left=`${u.left}px`:t.align==="right"&&(h.right=`${f-u.right}px`),n.value=h}),(s,l)=>{const f=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",{ref_key:"dropdownRef",ref:a,class:"dropdown"},[o.createVNode(P2,{icon:"ellipsis-vertical",color:"first",onClick:l[0]||(l[0]=u=>r.value=!0)}),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[r.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"contentRef",ref:c,class:"dropdown__content",style:o.normalizeStyle(n.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createBlock(P2,{key:u.text,size:"s",align:"left",borderRadius:"0",variant:"flat",color:u.color||"first",icon:u.icon,text:u.text,onClick:h=>u.clickFn(s.item)},null,8,["color","icon","text","onClick"]))),128)),s.$slots.default?o.renderSlot(s.$slots,"default",{key:0},void 0,!0):o.createCommentVNode("",!0)],4)),[[f,()=>r.value=!1]]):o.createCommentVNode("",!0)]))],512)}}});const FO=K1(Hl1,[["__scopeId","data-v-77c6eb64"]]),Vl1={class:"pga-dropdown-menu"},wl1={key:0,class:"dropdown-menu__options"},_l1=["onClick"],Ll1={class:"option__label-container"},kl1=o.defineComponent({__name:"PgaDropdownMenu",props:{options:{}},setup(e){let t,a=!1;const c=o.ref(!1);function n(){a||(c.value=!0)}function r(){clearTimeout(t),a=!0,c.value=!1,t=setTimeout(()=>a=!1,N4.getConfig().delayTime)}function i(s){s.handleClickFn(),c.value=!1}return(s,l)=>{const f=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",Vl1,[o.createElementVNode("div",{class:"dropdown-menu__content",onClick:l[0]||(l[0]=u=>n())},[o.renderSlot(s.$slots,"default",{},void 0,!0)]),c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",wl1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.options,(u,h)=>(o.openBlock(),o.createElementBlock("div",{key:h,class:"dropdown-menu__option",style:o.normalizeStyle({color:u.color}),onClick:d=>i(u)},[o.createElementVNode("div",Ll1,[o.createVNode(A4,{class:"option__icon",icon:u.icon},null,8,["icon"]),o.createVNode(E3,{class:"option__label",text:u.label},null,8,["text"])]),u.info?(o.openBlock(),o.createBlock(E3,{key:0,class:"option__info",text:u.info},null,8,["text"])):o.createCommentVNode("",!0)],12,_l1))),128))])),[[f,r]]):o.createCommentVNode("",!0)])}}});const Sl1=K1(kl1,[["__scopeId","data-v-2bd0da0d"]]);var IO={exports:{}};/*!
784
784
  * Quill Editor v1.3.7
785
785
  * https://quilljs.com/
786
786
  * Copyright (c) 2014, Jason Chen
@@ -820,7 +820,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
820
820
  `),d1}function l1(r1,d1){if(A(r1)&&r1.nextElementSibling!=null&&!G(d1,`
821
821
 
822
822
  `)){var x1=r1.offsetHeight+parseFloat(q(r1).marginTop)+parseFloat(q(r1).marginBottom);r1.nextElementSibling.offsetTop>r1.offsetTop+x1*1.5&&d1.insert(`
823
- `)}return d1}function e1(r1,d1){var x1={},p1=r1.style||{};return p1.fontStyle&&q(r1).fontStyle==="italic"&&(x1.italic=!0),p1.fontWeight&&(q(r1).fontWeight.startsWith("bold")||parseInt(q(r1).fontWeight)>=700)&&(x1.bold=!0),Object.keys(x1).length>0&&(d1=k(d1,x1)),parseFloat(p1.textIndent||0)>0&&(d1=new h.default().insert(" ").concat(d1)),d1}function o1(r1,d1){var x1=r1.data;if(r1.parentNode.tagName==="O:P")return d1.insert(x1.trim());if(x1.trim().length===0&&r1.parentNode.classList.contains("ql-clipboard"))return d1;if(!q(r1.parentNode).whiteSpace.startsWith("pre")){var p1=function(E1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&E1?" ":R1};x1=x1.replace(/\r\n/g," ").replace(/\n/g," "),x1=x1.replace(/\s\s+/g,p1.bind(p1,!0)),(r1.previousSibling==null&&A(r1.parentNode)||r1.previousSibling!=null&&A(r1.previousSibling))&&(x1=x1.replace(/^\s+/,p1.bind(p1,!1))),(r1.nextSibling==null&&A(r1.parentNode)||r1.nextSibling!=null&&A(r1.nextSibling))&&(x1=x1.replace(/\s+$/,p1.bind(p1,!1)))}return d1.insert(x1)}c.default=T,c.matchAttributor=a1,c.matchBlot=J,c.matchNewline=z1,c.matchSpacing=l1,c.matchText=o1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,[{key:"optimize",value:function(y){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(l.default);m.blotName="bold",m.tagName=["STRONG","B"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function _(V,O){var j=[],N=!0,B=!1,F=void 0;try{for(var X=V[Symbol.iterator](),Y;!(N=(Y=X.next()).done)&&(j.push(Y.value),!(O&&j.length===O));N=!0);}catch(U){B=!0,F=U}finally{try{!N&&X.return&&X.return()}finally{if(B)throw F}}return j}return function(V,O){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return _(V,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function _(V,O){for(var j=0;j<O.length;j++){var N=O[j];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}return function(V,O,j){return O&&_(V.prototype,O),j&&_(V,j),V}}(),s=n(2),l=y(s),f=n(0),u=y(f),h=n(5),d=y(h),m=n(10),v=y(m),p=n(9),g=y(p);function y(_){return _&&_.__esModule?_:{default:_}}function b(_,V,O){return V in _?Object.defineProperty(_,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):_[V]=O,_}function x(_,V){if(!(_ instanceof V))throw new TypeError("Cannot call a class as a function")}function z(_,V){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:_}function M(_,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);_.prototype=Object.create(V&&V.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(_,V):_.__proto__=V)}var H=(0,v.default)("quill:toolbar"),C=function(_){M(V,_);function V(O,j){x(this,V);var N=z(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,O,j));if(Array.isArray(N.options.container)){var B=document.createElement("div");L(B,N.options.container),O.container.parentNode.insertBefore(B,O.container),N.container=B}else typeof N.options.container=="string"?N.container=document.querySelector(N.options.container):N.container=N.options.container;if(!(N.container instanceof HTMLElement)){var F;return F=H.error("Container required for toolbar",N.options),z(N,F)}return N.container.classList.add("ql-toolbar"),N.controls=[],N.handlers={},Object.keys(N.options.handlers).forEach(function(X){N.addHandler(X,N.options.handlers[X])}),[].forEach.call(N.container.querySelectorAll("button, select"),function(X){N.attach(X)}),N.quill.on(d.default.events.EDITOR_CHANGE,function(X,Y){X===d.default.events.SELECTION_CHANGE&&N.update(Y)}),N.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var X=N.quill.selection.getRange(),Y=r(X,1),U=Y[0];N.update(U)}),N}return i(V,[{key:"addHandler",value:function(j,N){this.handlers[j]=N}},{key:"attach",value:function(j){var N=this,B=[].find.call(j.classList,function(X){return X.indexOf("ql-")===0});if(B){if(B=B.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){H.warn("ignoring attaching to disabled format",B,j);return}if(u.default.query(B)==null){H.warn("ignoring attaching to nonexistent format",B,j);return}}var F=j.tagName==="SELECT"?"change":"click";j.addEventListener(F,function(X){var Y=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var U=j.options[j.selectedIndex];U.hasAttribute("selected")?Y=!1:Y=U.value||!1}else j.classList.contains("ql-active")?Y=!1:Y=j.value||!j.hasAttribute("value"),X.preventDefault();N.quill.focus();var D=N.quill.selection.getRange(),T=r(D,1),k=T[0];if(N.handlers[B]!=null)N.handlers[B].call(N,Y);else if(u.default.query(B).prototype instanceof u.default.Embed){if(Y=prompt("Enter "+B),!Y)return;N.quill.updateContents(new l.default().retain(k.index).delete(k.length).insert(b({},B,Y)),d.default.sources.USER)}else N.quill.format(B,Y,d.default.sources.USER);N.update(k)}),this.controls.push([B,j])}}},{key:"update",value:function(j){var N=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(B){var F=r(B,2),X=F[0],Y=F[1];if(Y.tagName==="SELECT"){var U=void 0;if(j==null)U=null;else if(N[X]==null)U=Y.querySelector("option[selected]");else if(!Array.isArray(N[X])){var D=N[X];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),U=Y.querySelector('option[value="'+D+'"]')}U==null?(Y.value="",Y.selectedIndex=-1):U.selected=!0}else if(j==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var T=N[X]===Y.getAttribute("value")||N[X]!=null&&N[X].toString()===Y.getAttribute("value")||N[X]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",T)}else Y.classList.toggle("ql-active",N[X]!=null)})}}]),V}(g.default);C.DEFAULTS={};function w(_,V,O){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+V),O!=null&&(j.value=O),_.appendChild(j)}function L(_,V){Array.isArray(V[0])||(V=[V]),V.forEach(function(O){var j=document.createElement("span");j.classList.add("ql-formats"),O.forEach(function(N){if(typeof N=="string")w(j,N);else{var B=Object.keys(N)[0],F=N[B];Array.isArray(F)?S(j,B,F):w(j,B,F)}}),_.appendChild(j)})}function S(_,V,O){var j=document.createElement("select");j.classList.add("ql-"+V),O.forEach(function(N){var B=document.createElement("option");N!==!1?B.setAttribute("value",N):B.setAttribute("selected","selected"),j.appendChild(B)}),_.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var V=this,O=this.quill.getSelection();if(O!=null)if(O.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(N){u.default.query(N,u.default.Scope.INLINE)!=null&&V.quill.format(N,!1)})}else this.quill.removeFormat(O,d.default.sources.USER)},direction:function(V){var O=this.quill.getFormat().align;V==="rtl"&&O==null?this.quill.format("align","right",d.default.sources.USER):!V&&O==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",V,d.default.sources.USER)},indent:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O),N=parseInt(j.indent||0);if(V==="+1"||V==="-1"){var B=V==="+1"?1:-1;j.direction==="rtl"&&(B*=-1),this.quill.format("indent",N+B,d.default.sources.USER)}},link:function(V){V===!0&&(V=prompt("Enter link URL:")),this.quill.format("link",V,d.default.sources.USER)},list:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O);V==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",V,d.default.sources.USER)}}},c.default=C,c.addControls=L},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.label.innerHTML=y,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),b}return r(p,[{key:"buildItem",value:function(y){var b=i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,y);return b.style.backgroundColor=y.getAttribute("value")||"",b}},{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b);var x=this.label.querySelector(".ql-color-label"),z=y&&y.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=z:x.style.fill=z)}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=y[x.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return r(p,[{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var h=0;h<u.length;h++){var d=u[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}return function(f,u,h){return u&&l(f.prototype,u),h&&l(f,h),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(f,u){var h=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var h=u.left+u.width/2-this.root.offsetWidth/2,d=u.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>m.right&&(p=m.right-v.right,this.root.style.left=h+p+"px"),v.left<m.left&&(p=m.left-v.left,this.root.style.left=h+p+"px"),v.bottom>m.bottom){var g=v.bottom-v.top,y=u.bottom-u.top+g;this.root.style.top=d-y+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=s},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function S(_,V){var O=[],j=!0,N=!1,B=void 0;try{for(var F=_[Symbol.iterator](),X;!(j=(X=F.next()).done)&&(O.push(X.value),!(V&&O.length===V));j=!0);}catch(Y){N=!0,B=Y}finally{try{!j&&F.return&&F.return()}finally{if(N)throw B}}return O}return function(_,V){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return S(_,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function S(_,V,O){_===null&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,V);if(j===void 0){var N=Object.getPrototypeOf(_);return N===null?void 0:S(N,V,O)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(O)}},s=function(){function S(_,V){for(var O=0;O<V.length;O++){var j=V[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,V,O){return V&&S(_.prototype,V),O&&S(_,O),_}}(),l=n(3),f=x(l),u=n(8),h=x(u),d=n(43),m=x(d),v=n(27),p=x(v),g=n(15),y=n(41),b=x(y);function x(S){return S&&S.__esModule?S:{default:S}}function z(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function M(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function H(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(S){H(_,S);function _(V,O){z(this,_),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=C);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.quill.container.classList.add("ql-snow"),j}return s(_,[{key:"extendToolbar",value:function(O){O.container.classList.add("ql-snow"),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),b.default),this.tooltip=new L(this.quill,this.options.bounds),O.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,N){O.handlers.link.call(O,!N.format.link)})}}]),_}(m.default);w.DEFAULTS=(0,f.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var V=this.quill.getSelection();if(V==null||V.length==0)return;var O=this.quill.getText(V);/^\S+@\S+\.\S+$/.test(O)&&O.indexOf("mailto:")!==0&&(O="mailto:"+O);var j=this.quill.theme.tooltip;j.edit("link",O)}else this.quill.format("link",!1)}}}}});var L=function(S){H(_,S);function _(V,O){z(this,_);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.preview=j.root.querySelector("a.ql-preview"),j}return s(_,[{key:"listen",value:function(){var O=this;i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){O.root.classList.contains("ql-editing")?O.save():O.edit("link",O.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(O.linkRange!=null){var N=O.linkRange;O.restoreFocus(),O.quill.formatText(N,"link",!1,h.default.sources.USER),delete O.linkRange}j.preventDefault(),O.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(j,N,B){if(j!=null){if(j.length===0&&B===h.default.sources.USER){var F=O.quill.scroll.descendant(p.default,j.index),X=r(F,2),Y=X[0],U=X[1];if(Y!=null){O.linkRange=new g.Range(j.index-U,Y.length());var D=p.default.formats(Y.domNode);O.preview.textContent=D,O.preview.setAttribute("href",D),O.show(),O.position(O.quill.getBounds(O.linkRange));return}}else delete O.linkRange;O.hide()}})}},{key:"show",value:function(){i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(d.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=w},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),s=n(36),l=n(38),f=n(64),u=n(65),h=C1(u),d=n(66),m=C1(d),v=n(67),p=C1(v),g=n(37),y=n(26),b=n(39),x=n(40),z=n(56),M=C1(z),H=n(68),C=C1(H),w=n(27),L=C1(w),S=n(69),_=C1(S),V=n(70),O=C1(V),j=n(71),N=C1(j),B=n(72),F=C1(B),X=n(73),Y=C1(X),U=n(13),D=C1(U),T=n(74),k=C1(T),q=n(75),G=C1(q),A=n(57),R=C1(A),K=n(41),a1=C1(K),J=n(28),s1=C1(J),W=n(59),u1=C1(W),z1=n(60),l1=C1(z1),e1=n(61),o1=C1(e1),r1=n(108),d1=C1(r1),x1=n(62),p1=C1(x1);function C1(E1){return E1&&E1.__esModule?E1:{default:E1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":b.FontClass,"formats/size":x.SizeClass,"formats/blockquote":h.default,"formats/code-block":D.default,"formats/header":m.default,"formats/list":p.default,"formats/bold":M.default,"formats/code":U.Code,"formats/italic":C.default,"formats/link":L.default,"formats/script":_.default,"formats/strike":O.default,"formats/underline":N.default,"formats/image":F.default,"formats/video":Y.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":G.default,"modules/toolbar":R.default,"themes/bubble":d1.default,"themes/snow":p1.default,"ui/icons":a1.default,"ui/picker":s1.default,"ui/icon-picker":l1.default,"ui/color-picker":u1.default,"ui/tooltip":o1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function p(g,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,y,b){return y&&p(g.prototype,y),b&&p(g,b),g}}(),i=function p(g,y,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,y);if(x===void 0){var z=Object.getPrototypeOf(g);return z===null?void 0:p(z,y,b)}else{if("value"in x)return x.value;var M=x.get;return M===void 0?void 0:M.call(b)}},s=n(0),l=f(s);function f(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=function(p){d(g,p);function g(){return u(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"add",value:function(b,x){if(x==="+1"||x==="-1"){var z=this.value(b)||0;x=x==="+1"?z+1:z-1}return x===0?(this.remove(b),!0):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,b,x)}},{key:"canAdd",value:function(b,x){return i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,x)||i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,parseInt(x))}},{key:"value",value:function(b){return parseInt(i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b))||void 0}}]),g}(l.default.Attributor.Class),v=new m("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="blockquote",h.tagName="blockquote",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function m(v,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,p,g){return p&&m(v.prototype,p),g&&m(v,g),v}}(),i=n(4),s=l(i);function l(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function u(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function h(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var d=function(m){h(v,m);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),v}(s.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function z(M,H){for(var C=0;C<H.length;C++){var w=H[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(M,w.key,w)}}return function(M,H,C){return H&&z(M.prototype,H),C&&z(M,C),M}}(),i=function z(M,H,C){M===null&&(M=Function.prototype);var w=Object.getOwnPropertyDescriptor(M,H);if(w===void 0){var L=Object.getPrototypeOf(M);return L===null?void 0:z(L,H,C)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(C)}},s=n(0),l=m(s),f=n(4),u=m(f),h=n(25),d=m(h);function m(z){return z&&z.__esModule?z:{default:z}}function v(z,M,H){return M in z?Object.defineProperty(z,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[M]=H,z}function p(z,M){if(!(z instanceof M))throw new TypeError("Cannot call a class as a function")}function g(z,M){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:z}function y(z,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);z.prototype=Object.create(M&&M.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(z,M):z.__proto__=M)}var b=function(z){y(M,z);function M(){return p(this,M),g(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return r(M,[{key:"format",value:function(C,w){C===x.blotName&&!w?this.replaceWith(l.default.create(this.statics.scope)):i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,C,w)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,w){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,w),this):(this.parent.unwrap(),i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replaceWith",this).call(this,C,w))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(M.__proto__||Object.getPrototypeOf(M),"formats",this).call(this,C)}}]),M}(u.default);b.blotName="list-item",b.tagName="LI";var x=function(z){y(M,z),r(M,null,[{key:"create",value:function(C){var w=C==="ordered"?"OL":"UL",L=i(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,w);return(C==="checked"||C==="unchecked")&&L.setAttribute("data-checked",C==="checked"),L}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function M(H){p(this,M);var C=g(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H)),w=function(S){if(S.target.parentNode===H){var _=C.statics.formats(H),V=l.default.find(S.target);_==="checked"?V.format("list","unchecked"):_==="unchecked"&&V.format("list","checked")}};return H.addEventListener("touchstart",w),H.addEventListener("mousedown",w),C}return r(M,[{key:"format",value:function(C,w){this.children.length>0&&this.children.tail.format(C,w)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,w){if(C instanceof b)i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,C,w);else{var L=w==null?this.length():w.offset(this),S=this.split(L);S.parent.insertBefore(C,S)}}},{key:"optimize",value:function(C){i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,C);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&w.domNode.tagName===this.domNode.tagName&&w.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(w.moveChildren(this),w.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var w=l.default.create(this.statics.defaultChild);C.moveChildren(w),this.appendChild(w)}i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,C)}}]),M}(d.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[b],c.ListItem=b,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="italic",h.tagName=["EM","I"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),p}(l.default);m.blotName="script",m.tagName=["SUB","SUP"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="strike",h.tagName="S",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="underline",h.tagName="U",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(0),l=u(s),f=n(27);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["alt","height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return typeof x=="string"&&z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y}(l.default.Embed);p.blotName="image",p.tagName="IMG",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(4),l=n(27),f=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return z.setAttribute("frameborder","0"),z.setAttribute("allowfullscreen",!0),z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y}(s.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(z,M){for(var H=0;H<M.length;H++){var C=M[H];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(z,C.key,C)}}return function(z,M,H){return M&&x(z.prototype,M),H&&x(z,H),z}}(),i=function x(z,M,H){z===null&&(z=Function.prototype);var C=Object.getOwnPropertyDescriptor(z,M);if(C===void 0){var w=Object.getPrototypeOf(z);return w===null?void 0:x(w,M,H)}else{if("value"in C)return C.value;var L=C.get;return L===void 0?void 0:L.call(H)}},s=n(35),l=m(s),f=n(5),u=m(f),h=n(9),d=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function v(x,z){if(!(x instanceof z))throw new TypeError("Cannot call a class as a function")}function p(x,z){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:x}function g(x,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);x.prototype=Object.create(z&&z.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(x,z):x.__proto__=z)}var y=function(x){g(z,x);function z(){return v(this,z),p(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}return r(z,null,[{key:"create",value:function(H){var C=i(z.__proto__||Object.getPrototypeOf(z),"create",this).call(this,H);return typeof H=="string"&&(window.katex.render(H,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",H)),C}},{key:"value",value:function(H){return H.getAttribute("data-value")}}]),z}(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var b=function(x){g(z,x),r(z,null,[{key:"register",value:function(){u.default.register(y,!0)}}]);function z(){v(this,z);var M=p(this,(z.__proto__||Object.getPrototypeOf(z)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return M}return z}(d.default);c.FormulaBlot=y,c.default=b},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function H(C,w){for(var L=0;L<w.length;L++){var S=w[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,w,L){return w&&H(C.prototype,w),L&&H(C,L),C}}(),i=function H(C,w,L){C===null&&(C=Function.prototype);var S=Object.getOwnPropertyDescriptor(C,w);if(S===void 0){var _=Object.getPrototypeOf(C);return _===null?void 0:H(_,w,L)}else{if("value"in S)return S.value;var V=S.get;return V===void 0?void 0:V.call(L)}},s=n(0),l=p(s),f=n(5),u=p(f),h=n(9),d=p(h),m=n(13),v=p(m);function p(H){return H&&H.__esModule?H:{default:H}}function g(H,C){if(!(H instanceof C))throw new TypeError("Cannot call a class as a function")}function y(H,C){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:H}function b(H,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);H.prototype=Object.create(C&&C.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(H,C):H.__proto__=C)}var x=function(H){b(C,H);function C(){return g(this,C),y(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var S=this.domNode.textContent;this.cachedText!==S&&((S.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(S),this.domNode.normalize(),this.attach()),this.cachedText=S)}}]),C}(v.default);x.className="ql-syntax";var z=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),M=function(H){b(C,H),r(C,null,[{key:"register",value:function(){u.default.register(z,!0),u.default.register(x,!0)}}]);function C(w,L){g(this,C);var S=y(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,w,L));if(typeof S.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return S.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){S.highlight(),_=null},S.options.interval)}),S.highlight(),S}return r(C,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var S=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(_){_.highlight(L.options.highlight)}),this.quill.update(u.default.sources.SILENT),S!=null&&this.quill.setSelection(S,u.default.sources.SILENT)}}}]),C}(d.default);M.DEFAULTS={highlight:function(){return window.hljs==null?null:function(H){var C=window.hljs.highlightAuto(H);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=z,c.default=M},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(w,L,S){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,L);if(_===void 0){var V=Object.getPrototypeOf(w);return V===null?void 0:C(V,L,S)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(S)}},i=function(){function C(w,L){for(var S=0;S<L.length;S++){var _=L[S];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,L,S){return L&&C(w.prototype,L),S&&C(w,S),w}}(),s=n(3),l=g(s),f=n(8),u=g(f),h=n(43),d=g(h),m=n(15),v=n(41),p=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function y(C,w){if(!(C instanceof w))throw new TypeError("Cannot call a class as a function")}function b(C,w){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:C}function x(C,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);C.prototype=Object.create(w&&w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(C,w):C.__proto__=w)}var z=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],M=function(C){x(w,C);function w(L,S){y(this,w),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=z);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.container.classList.add("ql-bubble"),_}return i(w,[{key:"extendToolbar",value:function(S){this.tooltip=new H(this.quill,this.options.bounds),this.tooltip.root.appendChild(S.container),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),p.default)}}]),w}(d.default);M.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){w?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var H=function(C){x(w,C);function w(L,S){y(this,w);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.on(u.default.events.EDITOR_CHANGE,function(V,O,j,N){if(V===u.default.events.SELECTION_CHANGE)if(O!=null&&O.length>0&&N===u.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var B=_.quill.getLines(O.index,O.length);if(B.length===1)_.position(_.quill.getBounds(O));else{var F=B[B.length-1],X=_.quill.getIndex(F),Y=Math.min(F.length()-1,O.index+O.length-X),U=_.quill.getBounds(new m.Range(X,Y));_.position(U)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return i(w,[{key:"listen",value:function(){var S=this;r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){S.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!S.root.classList.contains("ql-hidden")){var _=S.quill.getSelection();_!=null&&S.position(S.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(S){var _=r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"position",this).call(this,S),V=this.root.querySelector(".ql-tooltip-arrow");if(V.style.marginLeft="",_===0)return _;V.style.marginLeft=-1*_-V.offsetWidth/2+"px"}}]),w}(h.BaseTooltip);H.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=H,c.default=M},function(a,c,n){a.exports=n(63)}]).default})})(IO);var Al1=IO.exports;const Nl1=k51(Al1);const Tl1={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},El1={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";o.watch(()=>e.value,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.content,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.disabled,s=>{a.quill&&a.quill.enable(!s)});const n=o.ref(null),r=(s,l)=>{for(const f in l)!s[f]||f!=="modules"?s[f]=l[f]:r(s[f],l[f]);return s},i=()=>{n.value&&(a.editorOption=r(Tl1,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new Nl1(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",s=>{s?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let s=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();s==="<p><br></p>"&&(s=""),c=s,t.emit("update:value",c),t.emit("change",{html:s,text:f,quill:l})}),t.emit("ready",a.quill))};return o.onBeforeUnmount(()=>{const s=n.value.previousSibling;s&&s.nodeType===1&&s.className.indexOf("ql-toolbar")>-1&&s.parentNode.removeChild(s)}),o.onMounted(()=>{i()}),o.onUnmounted(()=>{a.quill=null}),{editor:n}}},Ol1={ref:"editor"};function Dl1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("section",Ol1,null,512)}const cl=K1(El1,[["render",Dl1]]);cl.install=function(e){e.component(cl.name,cl)};const Pl1=o.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=o.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=o.computed(()=>a.value>t.maxLength);return(n,r)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},o.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const yb=K1(Pl1,[["__scopeId","data-v-4e8a2dd8"]]),Bl1={class:"pga-editor"},Rl1={class:"editor__container"},Fl1={class:"editor__footer"},Il1=o.defineComponent({__name:"PgaEditor",props:o.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=N4.getConfig(),n=I2("pgaEditor"),r={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},i=o.ref(t.value),s=o.ref(!1);let l;const f=o.ref(!1),u=o.ref(!1),h=o.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),d=o.computed(()=>PT(t.value)),m=o.computed(()=>d.value.length),v=o.computed(()=>m.value>h.value);o.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>p(),1e3*3)});async function p(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{s.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{s.value=!1}}}return(g,y)=>(o.openBlock(),o.createElementBlock("div",Bl1,[o.createElementVNode("div",Rl1,[o.createVNode(o.unref(cl),{value:t.value,"onUpdate:value":y[0]||(y[0]=b=>t.value=b),options:r},null,8,["value"])]),o.createElementVNode("div",Fl1,[o.createVNode(yb,{content:d.value,maxLength:h.value},null,8,["content","maxLength"]),s.value?(o.openBlock(),o.createBlock(y8,{key:0,size:"m",preventCenter:""})):f.value?(o.openBlock(),o.createBlock(E3,{key:1,icon:"save",text:o.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(o.openBlock(),o.createBlock(E3,{key:2,icon:"circle-xmark",text:o.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):o.createCommentVNode("",!0)])]))}});const $l1=K1(Il1,[["__scopeId","data-v-4b498289"]]),jl1={class:"pga-info-card"},ql1={key:1,class:"info-card__content"},Ul1=o.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",jl1,[t.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock("div",ql1,[o.createVNode(A4,{icon:t.type==="success"?"circle-check":"circle-xmark",color:t.type,size:"1.9rem"},null,8,["icon","color"]),o.createVNode(E3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(o.openBlock(),o.createBlock(E3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const Wl1=K1(Ul1,[["__scopeId","data-v-48bac905"]]),Du=o.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=o.computed(()=>b4(t.info));return(c,n)=>{const r=o.resolveDirective("tooltip");return a.value?o.withDirectives((o.openBlock(),o.createBlock(A4,{key:0,icon:["far","circle-question"],size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):o.createCommentVNode("",!0)}}}),Yl1=o.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(o.openBlock(),o.createBlock(A4,{icon:t.isEnabled?"circle-check":"circle-xmark",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Gl1=o.defineComponent({__name:"PgaItemSelected",props:o.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=o.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=o.computed({get(){if(c.item)return!!a.value.find(s=>s.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(s=>s.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:s[0]||(s[0]=l=>r())},[n.value?(o.openBlock(),o.createBlock(A4,{key:0,class:"item-selected__check-icon",icon:"check"})):o.createCommentVNode("",!0)],2))}});const Cv=K1(Gl1,[["__scopeId","data-v-1c9cee8f"]]),Zl1={class:"modal__header"},Xl1=["textContent"],Kl1={class:"modal__body"},Ql1={key:0,class:"modal__footer"},Jl1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){o.useCssVars(r=>({"98d6d882":r.width}));const a=o.useModel(e,"modelValue"),c=t,n=I2("pgaModal");return o.watch(a,r=>oi(!r)),(r,i)=>a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>a.value=!1)},[o.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Zl1,[o.createElementVNode("span",{class:"modal__title",textContent:o.toDisplayString(r.title)},null,8,Xl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>a.value=!1)},[o.createVNode(A4,{icon:"xmark"})])]),o.createElementVNode("div",Kl1,[o.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(o.openBlock(),o.createElementBlock("div",Ql1,[r.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(P2,{key:0,text:r.cancelText||o.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=s=>a.value=!1)},null,8,["text"])),o.createVNode(P2,{icon:r.acceptIcon,text:r.acceptText||o.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["icon","text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const ef1=K1(Jl1,[["__scopeId","data-v-35379c34"]]),tf1={class:"pga-flex-row"},af1=o.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=o.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:ue.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:ue.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:ue.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const s=o.resolveComponent("PgaButton"),l=o.resolveComponent("PgaMonthPicker");return o.openBlock(),o.createElementBlock("div",tf1,[o.createVNode(s,{icon:"arrow-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),o.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),o.createVNode(s,{icon:"arrow-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),cf1=o.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const nf1=K1(cf1,[["__scopeId","data-v-12540ee5"]]),rf1={class:"pga-tabs"},if1={class:"tabs__nav",role:"tablist"},sf1=["onClick"],of1={class:"tabs__section",role:"tabpanel"},lf1=o.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){o.useCssVars(i=>({"75a31923":n.value}));const t=e,a=o.ref(0),c=o.ref([]),n=o.ref("");o.watch(()=>t.tabs,()=>{c.value=[],o.nextTick(r)},{immediate:!0,deep:!0});function r(){const i=Math.max(0,...c.value.map(s=>s.offsetWidth));n.value=`${i}px`}return(i,s)=>{const l=o.resolveComponent("PgaIcon"),f=o.resolveComponent("PgaDisplayText");return o.openBlock(),o.createElementBlock("div",rf1,[o.createElementVNode("nav",if1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.tabs,(u,h)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["tabs__button",{"tabs__button--active":a.value===h}]),key:`tab-${h}`,ref_for:!0,ref:d=>c.value[h]=d,role:"tab",onClick:d=>a.value=h},[u.icon?(o.openBlock(),o.createBlock(l,{key:0,class:"tabs__icon",icon:u.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createVNode(f,{class:"tabs__label",text:u.label},null,8,["text"])],10,sf1))),128))]),o.createElementVNode("section",of1,[o.renderSlot(i.$slots,`panel${a.value+1}`,{},void 0,!0)])])}}});const ff1=K1(lf1,[["__scopeId","data-v-06a9c2e4"]]),uf1=["accept","multiple","disabled"],hf1={class:"input-file__label-container"},df1=o.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){o.useCssVars(M=>({"6241915b":o.unref(r).input.borderColor,"027f6ccc":o.unref(r).input.borderRadius,b4ce00ce:o.unref(r).input.backgroundColor,"466eb123":o.unref(r).input.backgroundColorHover,"6910f535":o.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:b,resetInput:x});const{form:r}=Ce(),i=I2("pgaForm"),s=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=s.map(M=>`.${M}`).join(","),f=o.ref(),u=o.ref([]),h=o.ref(!1),d=o.ref(!1),m=o.computed(()=>c.disabled||c.isLoading),v=o.computed(()=>!!u.value.length),p=o.computed(()=>{for(const M of u.value){const H=M.name.split(".").pop();if(!s.includes(H))return!1}return!0}),g=o.computed(()=>{const M={icon:"upload"};return!v.value||h.value&&!d.value&&!m.value?M:p.value?{icon:"circle-check",color:"success"}:{icon:"circle-xmark",color:"danger"}}),y=o.computed(()=>v.value?u.value.map(M=>M.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function b(){var M;(M=f.value)==null||M.click()}function x(){u.value=[],f.value&&(f.value.value="")}function z(M){h.value=!1;const C=M.target.files;if(C.length){if(u.value=[...C],!p.value){w6("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(M,H)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["pga-input-file",{"pga-input-file--disabled":m.value}]),onMouseenter:H[4]||(H[4]=C=>h.value=!0),onMouseleave:H[5]||(H[5]=C=>h.value=!1)},[M.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:o.unref(l),multiple:M.multiple,disabled:m.value,onChange:H[0]||(H[0]=C=>z(C))},null,40,uf1),o.createVNode(A4,{class:"input-file__icon",icon:g.value.icon,color:g.value.color},null,8,["icon","color"]),o.createElementVNode("div",hf1,[o.createVNode(E3,{text:y.value},null,8,["text"])]),v.value?(o.openBlock(),o.createBlock(P2,{key:0,text:o.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:m.value,onMouseenter:H[1]||(H[1]=C=>d.value=!0),onMouseleave:H[2]||(H[2]=C=>d.value=!1),onClick:H[3]||(H[3]=o.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):o.createCommentVNode("",!0)],64))],34))}});const ks=K1(df1,[["__scopeId","data-v-cbccd13c"]]),mf1={class:"pga-videos"},pf1={class:"videos"},vf1=["src"],gf1={key:0,class:"videos__input-container"},yf1=o.defineComponent({__name:"PgaVideos",props:o.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=I2("pgaFile"),n=o.ref(),r=o.ref(!1),i=o.ref(-1),s=o.computed(()=>t.value.length),l=o.computed(()=>t.value.map(h=>typeof h=="string"?h:URL.createObjectURL(h)));async function f(h){var d;if((d=n.value)==null||d.resetInput(),s.value+h.length>a.maxVideosQuantity&&(h=h.slice(0,a.maxVideosQuantity-s.value),w6("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...h);return}try{r.value=!0,t.value=await a.uploadFn({file:h})}finally{r.value=!1}}async function u(h){if(a.deleteFn)try{i.value=h,await a.deleteFn({index:h})}finally{i.value=-1}t.value.splice(h,1)}return(h,d)=>{const m=o.resolveComponent("PgaDeleteButton");return o.openBlock(),o.createElementBlock("div",mf1,[o.createElementVNode("div",pf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(v,p)=>(o.openBlock(),o.createElementBlock("div",{key:v,class:"videos__video-container"},[o.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,vf1),o.createVNode(m,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===p,onDeleteConfirmed:g=>u(p)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),s.value<h.maxVideosQuantity?(o.openBlock(),o.createElementBlock("div",gf1,[o.createVNode(ks,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:o.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:d[0]||(d[0]=v=>f(v))},null,8,["label","isLoading"])])):o.createCommentVNode("",!0)]),o.createElementVNode("span",null,o.toDisplayString(`${s.value} / ${h.maxVideosQuantity}`),1)])}}});const bf1=K1(yf1,[["__scopeId","data-v-ee4ebd19"]]),zf1=o.defineComponent({__name:"PgaBackButton",setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{text:o.unref(t)("backBtn"),icon:"arrow-left",color:"first",size:"s"},null,8,["text"]))}}),xf1={class:"pga-copy"},Mf1=o.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.ref(!1),n=o.computed(()=>b4(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock("div",xf1,[o.createElementVNode("span",null,o.toDisplayString(n.value),1),c.value?(o.openBlock(),o.createBlock(A4,{key:1,icon:["far","circle-check"],color:"success"})):o.withDirectives((o.openBlock(),o.createBlock(P2,{key:0,color:"first",icon:"copy",size:"s",onClick:s[0]||(s[0]=f=>r())},null,512)),[[l,o.unref(a)("copyBtn")]])])}}});const Cf1=K1(Mf1,[["__scopeId","data-v-c4835bae"]]),Hf1=o.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.computed(()=>b4(t.text)),n=o.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),w6("success",()=>a("textCopied"))}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{color:"first",icon:"copy",text:n.value,onClick:s[0]||(s[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}}),Vf1={class:"alert"},wf1={class:"alert__content"},_f1=["textContent"],Lf1={class:"alert__buttons"},kf1=o.defineComponent({__name:"Alert",props:{message:{},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const t=dO.directive,a=I2("alert");return o.onMounted(()=>oi(!1)),o.onUnmounted(()=>oi(!0)),(c,n)=>(o.openBlock(),o.createElementBlock("div",Vf1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",wf1,[o.createVNode(A4,{class:"alert__icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert__title",textContent:o.toDisplayString(o.unref(a)("alertTitle"))},null,8,_f1),c.message?(o.openBlock(),o.createBlock(E3,{key:0,class:"alert__message",text:c.message},null,8,["text"])):o.createCommentVNode("",!0),o.createElementVNode("div",Lf1,[o.createVNode(P2,{class:"alert__button",text:o.unref(a)("cancelBtn"),variant:"filled",color:"grey",onClick:n[0]||(n[0]=r=>c.handleCloseFn())},null,8,["text"]),o.createVNode(P2,{class:"alert__button",text:o.unref(a)("acceptBtn"),variant:"filled",color:"danger",onClick:n[1]||(n[1]=r=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(t),c.handleCloseFn]])]))}});const Sf1=K1(kf1,[["__scopeId","data-v-969d5446"]]);function $O(e,t){const a=document.createElement("div");document.body.appendChild(a);const c=o.createApp({render(){return o.h(Sf1,{message:e,handleAcceptFn:r,handleCloseFn:n})}});c.mount(a);function n(){c.unmount(),document.body.removeChild(a)}function r(){n(),t()}}const Pu=o.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=I2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");$O(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(P2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||o.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>r())},null,8,["variant","icon","text"]))}}),Hv=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>{const n=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"sky",icon:["far","pen-to-square"],text:a.withoutText?void 0:o.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?o.unref(t)("editBtn"):""]])}}}),Af1=["href","target"],Nf1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[o.createVNode(E3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,Af1))}});const jO=K1(Nf1,[["__scopeId","data-v-ec435fa7"]]),Tf1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=I2("pgaButton");return(n,r)=>(o.openBlock(),o.createBlock(P2,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),Ef1=o.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){o.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=o.computed(()=>`var(--pga-color-${t.color})`),c=o.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{class:o.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=s=>o.unref(oi)(!0))},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Ss=K1(Ef1,[["__scopeId","data-v-6046ce2c"]]),qO=o.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createBlock(Ss,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:o.withCtx(()=>[t.$slots.default?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(P2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),UO=o.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>a.toName?(o.openBlock(),o.createBlock(qO,{key:0,name:a.toName,params:{id:a.id},icon:"arrow-up-right-from-square",text:a.withoutText?void 0:o.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):o.createCommentVNode("",!0)}}),Of1=o.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createBlock(P2,{variant:"flat",icon:"xmark",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),Df1=o.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:o.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),Pf1=o.defineComponent({__name:"PgaToggleButton",props:o.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=o.useModel(e,"modelValue"),c=t,n=o.computed(()=>a.value?"outlined":"flat"),r=o.computed(()=>a.value?"primary":"grey");return o.watch(a,i=>c("change",i)),(i,s)=>(o.openBlock(),o.createBlock(P2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:s[0]||(s[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var Bf1=Object.defineProperty,Rf1=(e,t,a)=>t in e?Bf1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Pt=(e,t,a)=>Rf1(e,typeof t!="symbol"?t+"":t,a);const Ff1=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let Vn,UV,WV,g6,wn={},Ac={};class If1{constructor(t,a=!1){Pt(this,"texts",{}),Pt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),g6=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return g6.addDays(this,t)},Date.prototype.subtractDays=function(t){return g6.subtractDays(this,t)},Date.prototype.addHours=function(t){return g6.addHours(this,t)},Date.prototype.subtractHours=function(t){return g6.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return g6.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return g6.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return g6.getWeek(this)},Date.prototype.isToday=function(){return g6.isToday(this)},Date.prototype.isLeapYear=function(){return g6.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return g6.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return g6.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return UV!==new Date().getDate()&&(Vn=new Date,UV=Vn.getDate(),WV=`${Vn.getFullYear()}-${Vn.getMonth()}-${Vn.getDate()}`),WV}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);wn={},Ac={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const s=n[i.replace(/\{|\}/g,"")];return s!==void 0?s():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);Ac={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),s=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?s.replace("23:59","24:00"):s}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(wn.D)return wn;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return wn={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:s+1,dd:()=>a.weekDays[s][0],ddd:()=>a.weekDays[s].substr(0,3),dddd:()=>a.weekDays[s]},wn}_hydrateTimeObject(t,a){if(Ac.am)return Ac;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return Ac={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},Ac}}const $f1=24*60;class jf1{constructor(t){Pt(this,"_vuecal",null),Pt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Pt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Pt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Pt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:s}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+s)),{minutes:Math.max(Math.min(c,$f1),0),cursorCoords:n}}),this._vuecal=t}}const qf1=2,Ud=24*60;let q3,U3,Wd;class Uf1{constructor(t,a){Pt(this,"_vuecal",null),Pt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,q3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=q3.stringToDate(t)),!(t instanceof Date))return!1;const n=q3.dateToMinutes(t);a=a*1||qf1*60;const r=n+a,i=q3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=q3.stringToDate(c.end)),c.endTimeMinutes=q3.dateToMinutes(c.end));const s={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(s,()=>this.deleteAnEvent(s))))return s.startDateF!==s.endDateF&&(s.daysCount=q3.countDays(s.start,s.end)),this._vuecal.mutableEvents.push(s),this._vuecal.addEventsToView([s]),this._vuecal.emitWithEvent("event-create",s),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(s),originalEvent:null}),s}addEventSegment(t){t.segments||(t.segments={},t.segments[q3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:Ud,isFirstDay:!0,isLastDay:!1});const a=t.segments[q3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=Ud);const c=q3.addDays(t.end,1),n=q3.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=q3.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return q3.formatDateLite(t.end);delete t.segments[q3.formatDateLite(t.end)],a--;const c=q3.subtractDays(t.end,1),n=q3.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),s=t.end.getTime(),l=!1,f,u,h;for(!t.end.getHours()&&!t.end.getMinutes()&&(s-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?q3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,s));f<=u;){let d=!1;const m=q3.addDays(new Date(f),1).setHours(0,0,0,0);let v,p,g,y;if(t.repeat){const b=new Date(f),x=q3.formatDateLite(b);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,h=new Date(i).setHours(0,0,0,0),s=t.occurrences[x].end),l=!0,d=!0),v=f===h,p=x===q3.formatDateLite(new Date(s)),g=new Date(v?i:f),y=q3.formatDateLite(g),p&&(l=!1)}else d=!0,v=f===i,p=u===s&&m>u,g=v?t.start:new Date(f),y=q3.formatDateLite(v?t.start:g);d&&(t.segments[y]={start:g,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:p?t.endTimeMinutes:Ud,isFirstDay:v,isLastDay:p}),f=m}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){Wd=t.slice(0),U3={},t.forEach(n=>{Wd.shift(),U3[n._eid]||(U3[n._eid]={overlaps:[],start:n.start,position:0}),U3[n._eid].position=0,Wd.forEach(r=>{U3[r._eid]||(U3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),s=a.overlapsPerTimeStep?q3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&s)U3[n._eid].overlaps.push(r._eid),U3[n._eid].overlaps=[...new Set(U3[n._eid].overlaps)],U3[r._eid].overlaps.push(n._eid),U3[r._eid].overlaps=[...new Set(U3[r._eid].overlaps)],U3[r._eid].position++;else{let l,f;(l=(U3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&U3[n._eid].overlaps.splice(l,1),(f=(U3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&U3[r._eid].overlaps.splice(f,1),U3[r._eid].position--}})});let c=0;for(const n in U3){const r=U3[n],i=r.overlaps.map(s=>({id:s,start:U3[s].start}));i.push({id:n,start:r.start}),i.sort((s,l)=>s.start<l.start?-1:s.start>l.start?1:s.id>l.id?-1:1),r.position=i.findIndex(s=>s.id===n),c=Math.max(this.getOverlapsStreak(r,U3),c)}return[U3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(s=>s!==r).forEach(s=>{a[s].overlaps.includes(r)||n.push(s)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const Wf1={class:"vuecal__flex vuecal__weekdays-headings"},Yf1=["onClick"],Gf1={class:"vuecal__flex weekday-label",grow:""},Zf1={class:"full"},Xf1={class:"small"},Kf1={class:"xsmall"},Qf1={key:0},Jf1={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function eu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",Wf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.headings,(i,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:s},[i.hide?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:o.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[o.createVNode(o.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${s}-${i.dayOfMonth}`:!1},[o.createElementVNode("div",Gf1,[o.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[o.createElementVNode("span",Zf1,o.toDisplayString(i.full),1),o.createElementVNode("span",Xf1,o.toDisplayString(i.small),1),o.createElementVNode("span",Kf1,o.toDisplayString(i.xsmall),1),i.dayOfMonth?(o.openBlock(),o.createElementBlock("span",Qf1," "+o.toDisplayString(i.dayOfMonth),1)):o.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",Jf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.daySplits,(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",l.class||!1]),key:f},[o.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[o.createTextVNode(o.toDisplayString(l.label),1)])],2))),128))])):o.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,Yf1))],64))),128))])}const cn=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},tu1={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},WO=cn(tu1,[["render",eu1]]),au1={class:"vuecal__header"},cu1={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},nu1=["onDragenter","onDragleave","onClick","aria-label"],ru1={key:1,class:"vuecal__title-bar"},iu1=["aria-label"],su1={class:"vuecal__flex vuecal__title",grow:""},ou1=["aria-label"],lu1={key:0,class:"vuecal__flex vuecal__split-days-headers"};function fu1(e,t,a,c,n,r){const i=o.resolveComponent("weekdays-headings");return o.openBlock(),o.createElementBlock("div",au1,[a.options.hideViewSelector?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",cu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.viewProps.views,(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:l},[s.enabled?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${s.label} view`},o.toDisplayString(s.label),43,nu1)):o.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ru1,[o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...s)=>r.previous&&r.previous(...s)),onDragenter:t[1]||(t[1]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"previous",e.$data)),onDragleave:t[2]||(t[2]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-prev")],42,iu1),o.createElementVNode("div",su1,[o.createVNode(o.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=s=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...s)=>r.goToToday&&r.goToToday(...s)),onDragenter:t[5]||(t[5]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"today",e.$data)),onDragleave:t[6]||(t[6]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"today",e.$data)),"aria-label":"Today"},[o.renderSlot(e.$slots,"today-button")],34)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...s)=>r.next&&r.next(...s)),onDragenter:t[8]||(t[8]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"next",e.$data)),onDragleave:t[9]||(t[9]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-next")],42,ou1)])),a.viewProps.weekDaysInHeader?(o.openBlock(),o.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:s,view:l})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:s,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:s})=>[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:o.withCtx(()=>[r.showDaySplits?(o.openBlock(),o.createElementBlock("div",lu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.daySplits,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",s.class||!1]),key:l},[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view.id},()=>[o.createTextVNode(o.toDisplayString(s.label),1)])],2))),128))])):o.createCommentVNode("",!0)]),_:3},8,["name"])])}const uu1={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:WO},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},hu1=cn(uu1,[["render",fu1]]),du1=["draggable"];function mu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__event",r.eventClasses]),style:o.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=o.withKeys(o.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=o.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=o.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=o.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},o.toDisplayString(r.vuecal.texts.deleteEvent),33)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):o.createCommentVNode("",!0)],46,du1)}const pu1={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},vu1=cn(pu1,[["render",mu1]]),gu1=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],yu1={key:0,class:"cell-time-labels"},bu1=["innerHTML"],zu1={key:2,class:"vuecal__cell-events"},xu1=["title"];function Mu1(e,t,a,c,n,r){const i=o.resolveComponent("event");return o.openBlock(),o.createBlock(o.TransitionGroup,{class:o.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:o.normalizeStyle(r.cellStyles)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?r.splits:1,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(s)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?s.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=o.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?s.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?s.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?s.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?s.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(o.openBlock(),o.createElementBlock("div",yu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.timeCells,(f,u)=>(o.openBlock(),o.createElementBlock("span",{class:"cell-time-label",key:u},o.toDisplayString(f.label),1))),128))])):o.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(r.specialHours,(f,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:o.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(o.openBlock(),o.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,bu1)):o.createCommentVNode("",!0)],6))),256)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?s:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(o.openBlock(),o.createElementBlock("div",zu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?s.events:r.events,(f,u)=>(o.openBlock(),o.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?s.events:r.events,overlaps:((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?s.overlapsStreak:e.cellOverlapsStreak},{event:o.withCtx(({event:h,view:d})=>[o.renderSlot(e.$slots,"event",{view:d,event:h})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):o.createCommentVNode("",!0)],42,gu1))),128)),r.timelineVisible?(o.openBlock(),o.createElementBlock("div",{class:"vuecal__now-line",style:o.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,xu1)):o.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const Cu1={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:vu1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const s=this.isDOMElementAnEvent(e.target);!s&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!s&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},s=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||s||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},YO=cn(Cu1,[["render",Mu1]]),Hu1={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function Vu1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:o.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Hu1,[o.createElementVNode("span",null,o.toDisplayString(a.label),1)])),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:o.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.cells,(s,l)=>(o.openBlock(),o.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:s,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:o.withCtx(({event:f,view:u})=>[o.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const wu1={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":YO},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},_u1=cn(wu1,[["render",Vu1]]),Lu1=["lang"],ku1={class:"default"},Su1={key:0,class:"vuecal__flex vuecal__body",grow:""},Au1=["onBlur","innerHTML"],Nu1=["innerHTML"],Tu1=["innerHTML"],Eu1={class:"vuecal__flex",row:"",grow:""},Ou1={key:0,class:"vuecal__time-column"},Du1={class:"vuecal__time-cell-label"},Pu1={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},Bu1=["wrap","column"],Ru1=["onBlur","innerHTML"],Fu1=["innerHTML"],Iu1=["innerHTML"],$u1=["wrap"],ju1=["innerHTML"],qu1=["innerHTML"],Uu1={key:2,class:"vuecal__cell-events-count"},Wu1={key:3,class:"vuecal__no-event"},Yu1=["onBlur","innerHTML"],Gu1=["innerHTML"],Zu1={key:2,class:"vuecal__event-time"},Xu1={key:0},Ku1={key:1,class:"days-to-end"},Qu1=["innerHTML"],Ju1={key:0,class:"vuecal__scrollbar-check"};function eh1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-header"),s=o.resolveComponent("all-day-bar"),l=o.resolveComponent("weekdays-headings"),f=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[o.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},o.createSlots({"arrow-prev":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=o.createTextVNode(" ")),t[1]||(t[1]=o.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=o.createTextVNode(" "))])]),"arrow-next":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=o.createTextVNode(" ")),t[4]||(t[4]=o.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=o.createTextVNode(" "))])]),"today-button":o.withCtx(()=>[o.renderSlot(e.$slots,"today-button",{},()=>[o.createElementVNode("span",ku1,o.toDisplayString(n.texts.today),1)])]),title:o.withCtx(()=>[o.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[o.createTextVNode(o.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Su1,[o.createVNode(o.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Au1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Nu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Tu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[o.createElementVNode("div",Eu1,[r.hasTimeColumn?(o.openBlock(),o.createElementBlock("div",Ou1,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:o.normalizeStyle({height:r.allDayBar.height})},[o.createElementVNode("span",null,o.toDisplayString(n.texts.allDay),1)],4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.timeCells,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:"vuecal__time-cell",key:h,style:o.normalizeStyle(`height: ${a.timeCellHeight}px`)},[o.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=o.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),o.createElementVNode("span",Du1,o.toDisplayString(u.label),1)])],4))),128))])):o.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(o.openBlock(),o.createElementBlock("div",Pu1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(6,u=>o.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[o.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[o.createTextVNode(o.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(o.openBlock(),o.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.daySplits,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",u.class||!1]),key:h},[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[o.createTextVNode(o.toDisplayString(u.label),1)])],2))),128))],4)):o.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:2},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Ru1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Fu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Iu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.viewCells,(u,h)=>(o.openBlock(),o.createBlock(f,{key:h,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":o.withCtx(({events:d,split:m,selectCell:v})=>[o.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:d},()=>[m&&!a.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",{key:0,class:"split-label",innerHTML:m.label},null,8,ju1)):o.createCommentVNode("",!0),u.content?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,qu1)):o.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&d.length?(o.openBlock(),o.createElementBlock("div",Uu1,[o.renderSlot(e.$slots,"events-count",{view:n.view,events:d},()=>[o.createTextVNode(o.toDisplayString(d.length),1)])])):o.createCommentVNode("",!0),!r.cellOrSplitHasEvents(d,m)&&r.isWeekOrDayView?(o.openBlock(),o.createElementBlock("div",Wu1,[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])])):o.createCommentVNode("",!0)])]),event:o.withCtx(({event:d,view:m})=>[o.renderSlot(e.$slots,"event",{view:m,event:d},()=>[r.editEvents.title&&d.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,d),innerHTML:d.title},null,40,Yu1)):d.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Gu1)):o.createCommentVNode("",!0),a.time&&!d.allDay&&!(r.isMonthView&&(d.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",Zu1,[o.createTextVNode(o.toDisplayString(n.utils.date.formatTime(d.start,r.TimeFormat)),1),d.endTimeMinutes?(o.openBlock(),o.createElementBlock("span",Xu1," - "+o.toDisplayString(n.utils.date.formatTime(d.end,r.TimeFormat,null,!0)),1)):o.createCommentVNode("",!0),d.daysCount>1&&(d.segments[u.formattedDate]||{}).isFirstDay?(o.openBlock(),o.createElementBlock("small",Ku1," +"+o.toDisplayString(d.daysCount-1)+o.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),d.content&&!(r.isMonthView&&d.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:d.content},null,8,Qu1)):o.createCommentVNode("",!0)])]),"no-event":o.withCtx(()=>[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,$u1)],10,Bu1)])],2)]))]),_:3},8,["name","appear"]),n.ready?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ju1,t[7]||(t[7]=[o.createElementVNode("div",null,null,-1)])))]))],10,Lu1)}const _n=24*60,nl={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},YV=["years","year","month","week","day"],GV=new If1(nl),th1={name:"vue-cal",components:{"vuecal-cell":YO,"vuecal-header":hu1,WeekdaysHeadings:WO,AllDayBar:_u1},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:_n},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...nl},utils:{date:(this.disableDatePrototypes?GV.removePrototypes():!1)||GV,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},nl,e),this.utils.date.updateTexts(this.texts);return}const t=await Ff1(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},nl,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return YV.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
823
+ `)}return d1}function e1(r1,d1){var x1={},p1=r1.style||{};return p1.fontStyle&&q(r1).fontStyle==="italic"&&(x1.italic=!0),p1.fontWeight&&(q(r1).fontWeight.startsWith("bold")||parseInt(q(r1).fontWeight)>=700)&&(x1.bold=!0),Object.keys(x1).length>0&&(d1=k(d1,x1)),parseFloat(p1.textIndent||0)>0&&(d1=new h.default().insert(" ").concat(d1)),d1}function o1(r1,d1){var x1=r1.data;if(r1.parentNode.tagName==="O:P")return d1.insert(x1.trim());if(x1.trim().length===0&&r1.parentNode.classList.contains("ql-clipboard"))return d1;if(!q(r1.parentNode).whiteSpace.startsWith("pre")){var p1=function(E1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&E1?" ":R1};x1=x1.replace(/\r\n/g," ").replace(/\n/g," "),x1=x1.replace(/\s\s+/g,p1.bind(p1,!0)),(r1.previousSibling==null&&A(r1.parentNode)||r1.previousSibling!=null&&A(r1.previousSibling))&&(x1=x1.replace(/^\s+/,p1.bind(p1,!1))),(r1.nextSibling==null&&A(r1.parentNode)||r1.nextSibling!=null&&A(r1.nextSibling))&&(x1=x1.replace(/\s+$/,p1.bind(p1,!1)))}return d1.insert(x1)}c.default=T,c.matchAttributor=a1,c.matchBlot=J,c.matchNewline=z1,c.matchSpacing=l1,c.matchText=o1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,[{key:"optimize",value:function(y){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(l.default);m.blotName="bold",m.tagName=["STRONG","B"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function _(V,O){var j=[],N=!0,B=!1,F=void 0;try{for(var X=V[Symbol.iterator](),Y;!(N=(Y=X.next()).done)&&(j.push(Y.value),!(O&&j.length===O));N=!0);}catch(U){B=!0,F=U}finally{try{!N&&X.return&&X.return()}finally{if(B)throw F}}return j}return function(V,O){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return _(V,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function _(V,O){for(var j=0;j<O.length;j++){var N=O[j];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}return function(V,O,j){return O&&_(V.prototype,O),j&&_(V,j),V}}(),s=n(2),l=y(s),f=n(0),u=y(f),h=n(5),d=y(h),m=n(10),v=y(m),p=n(9),g=y(p);function y(_){return _&&_.__esModule?_:{default:_}}function b(_,V,O){return V in _?Object.defineProperty(_,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):_[V]=O,_}function x(_,V){if(!(_ instanceof V))throw new TypeError("Cannot call a class as a function")}function z(_,V){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:_}function M(_,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);_.prototype=Object.create(V&&V.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(_,V):_.__proto__=V)}var H=(0,v.default)("quill:toolbar"),C=function(_){M(V,_);function V(O,j){x(this,V);var N=z(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,O,j));if(Array.isArray(N.options.container)){var B=document.createElement("div");L(B,N.options.container),O.container.parentNode.insertBefore(B,O.container),N.container=B}else typeof N.options.container=="string"?N.container=document.querySelector(N.options.container):N.container=N.options.container;if(!(N.container instanceof HTMLElement)){var F;return F=H.error("Container required for toolbar",N.options),z(N,F)}return N.container.classList.add("ql-toolbar"),N.controls=[],N.handlers={},Object.keys(N.options.handlers).forEach(function(X){N.addHandler(X,N.options.handlers[X])}),[].forEach.call(N.container.querySelectorAll("button, select"),function(X){N.attach(X)}),N.quill.on(d.default.events.EDITOR_CHANGE,function(X,Y){X===d.default.events.SELECTION_CHANGE&&N.update(Y)}),N.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var X=N.quill.selection.getRange(),Y=r(X,1),U=Y[0];N.update(U)}),N}return i(V,[{key:"addHandler",value:function(j,N){this.handlers[j]=N}},{key:"attach",value:function(j){var N=this,B=[].find.call(j.classList,function(X){return X.indexOf("ql-")===0});if(B){if(B=B.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){H.warn("ignoring attaching to disabled format",B,j);return}if(u.default.query(B)==null){H.warn("ignoring attaching to nonexistent format",B,j);return}}var F=j.tagName==="SELECT"?"change":"click";j.addEventListener(F,function(X){var Y=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var U=j.options[j.selectedIndex];U.hasAttribute("selected")?Y=!1:Y=U.value||!1}else j.classList.contains("ql-active")?Y=!1:Y=j.value||!j.hasAttribute("value"),X.preventDefault();N.quill.focus();var D=N.quill.selection.getRange(),T=r(D,1),k=T[0];if(N.handlers[B]!=null)N.handlers[B].call(N,Y);else if(u.default.query(B).prototype instanceof u.default.Embed){if(Y=prompt("Enter "+B),!Y)return;N.quill.updateContents(new l.default().retain(k.index).delete(k.length).insert(b({},B,Y)),d.default.sources.USER)}else N.quill.format(B,Y,d.default.sources.USER);N.update(k)}),this.controls.push([B,j])}}},{key:"update",value:function(j){var N=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(B){var F=r(B,2),X=F[0],Y=F[1];if(Y.tagName==="SELECT"){var U=void 0;if(j==null)U=null;else if(N[X]==null)U=Y.querySelector("option[selected]");else if(!Array.isArray(N[X])){var D=N[X];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),U=Y.querySelector('option[value="'+D+'"]')}U==null?(Y.value="",Y.selectedIndex=-1):U.selected=!0}else if(j==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var T=N[X]===Y.getAttribute("value")||N[X]!=null&&N[X].toString()===Y.getAttribute("value")||N[X]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",T)}else Y.classList.toggle("ql-active",N[X]!=null)})}}]),V}(g.default);C.DEFAULTS={};function w(_,V,O){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+V),O!=null&&(j.value=O),_.appendChild(j)}function L(_,V){Array.isArray(V[0])||(V=[V]),V.forEach(function(O){var j=document.createElement("span");j.classList.add("ql-formats"),O.forEach(function(N){if(typeof N=="string")w(j,N);else{var B=Object.keys(N)[0],F=N[B];Array.isArray(F)?S(j,B,F):w(j,B,F)}}),_.appendChild(j)})}function S(_,V,O){var j=document.createElement("select");j.classList.add("ql-"+V),O.forEach(function(N){var B=document.createElement("option");N!==!1?B.setAttribute("value",N):B.setAttribute("selected","selected"),j.appendChild(B)}),_.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var V=this,O=this.quill.getSelection();if(O!=null)if(O.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(N){u.default.query(N,u.default.Scope.INLINE)!=null&&V.quill.format(N,!1)})}else this.quill.removeFormat(O,d.default.sources.USER)},direction:function(V){var O=this.quill.getFormat().align;V==="rtl"&&O==null?this.quill.format("align","right",d.default.sources.USER):!V&&O==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",V,d.default.sources.USER)},indent:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O),N=parseInt(j.indent||0);if(V==="+1"||V==="-1"){var B=V==="+1"?1:-1;j.direction==="rtl"&&(B*=-1),this.quill.format("indent",N+B,d.default.sources.USER)}},link:function(V){V===!0&&(V=prompt("Enter link URL:")),this.quill.format("link",V,d.default.sources.USER)},list:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O);V==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",V,d.default.sources.USER)}}},c.default=C,c.addControls=L},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.label.innerHTML=y,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),b}return r(p,[{key:"buildItem",value:function(y){var b=i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,y);return b.style.backgroundColor=y.getAttribute("value")||"",b}},{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b);var x=this.label.querySelector(".ql-color-label"),z=y&&y.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=z:x.style.fill=z)}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=y[x.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return r(p,[{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var h=0;h<u.length;h++){var d=u[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}return function(f,u,h){return u&&l(f.prototype,u),h&&l(f,h),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(f,u){var h=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var h=u.left+u.width/2-this.root.offsetWidth/2,d=u.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>m.right&&(p=m.right-v.right,this.root.style.left=h+p+"px"),v.left<m.left&&(p=m.left-v.left,this.root.style.left=h+p+"px"),v.bottom>m.bottom){var g=v.bottom-v.top,y=u.bottom-u.top+g;this.root.style.top=d-y+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=s},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function S(_,V){var O=[],j=!0,N=!1,B=void 0;try{for(var F=_[Symbol.iterator](),X;!(j=(X=F.next()).done)&&(O.push(X.value),!(V&&O.length===V));j=!0);}catch(Y){N=!0,B=Y}finally{try{!j&&F.return&&F.return()}finally{if(N)throw B}}return O}return function(_,V){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return S(_,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function S(_,V,O){_===null&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,V);if(j===void 0){var N=Object.getPrototypeOf(_);return N===null?void 0:S(N,V,O)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(O)}},s=function(){function S(_,V){for(var O=0;O<V.length;O++){var j=V[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,V,O){return V&&S(_.prototype,V),O&&S(_,O),_}}(),l=n(3),f=x(l),u=n(8),h=x(u),d=n(43),m=x(d),v=n(27),p=x(v),g=n(15),y=n(41),b=x(y);function x(S){return S&&S.__esModule?S:{default:S}}function z(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function M(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function H(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(S){H(_,S);function _(V,O){z(this,_),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=C);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.quill.container.classList.add("ql-snow"),j}return s(_,[{key:"extendToolbar",value:function(O){O.container.classList.add("ql-snow"),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),b.default),this.tooltip=new L(this.quill,this.options.bounds),O.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,N){O.handlers.link.call(O,!N.format.link)})}}]),_}(m.default);w.DEFAULTS=(0,f.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var V=this.quill.getSelection();if(V==null||V.length==0)return;var O=this.quill.getText(V);/^\S+@\S+\.\S+$/.test(O)&&O.indexOf("mailto:")!==0&&(O="mailto:"+O);var j=this.quill.theme.tooltip;j.edit("link",O)}else this.quill.format("link",!1)}}}}});var L=function(S){H(_,S);function _(V,O){z(this,_);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.preview=j.root.querySelector("a.ql-preview"),j}return s(_,[{key:"listen",value:function(){var O=this;i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){O.root.classList.contains("ql-editing")?O.save():O.edit("link",O.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(O.linkRange!=null){var N=O.linkRange;O.restoreFocus(),O.quill.formatText(N,"link",!1,h.default.sources.USER),delete O.linkRange}j.preventDefault(),O.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(j,N,B){if(j!=null){if(j.length===0&&B===h.default.sources.USER){var F=O.quill.scroll.descendant(p.default,j.index),X=r(F,2),Y=X[0],U=X[1];if(Y!=null){O.linkRange=new g.Range(j.index-U,Y.length());var D=p.default.formats(Y.domNode);O.preview.textContent=D,O.preview.setAttribute("href",D),O.show(),O.position(O.quill.getBounds(O.linkRange));return}}else delete O.linkRange;O.hide()}})}},{key:"show",value:function(){i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(d.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=w},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),s=n(36),l=n(38),f=n(64),u=n(65),h=C1(u),d=n(66),m=C1(d),v=n(67),p=C1(v),g=n(37),y=n(26),b=n(39),x=n(40),z=n(56),M=C1(z),H=n(68),C=C1(H),w=n(27),L=C1(w),S=n(69),_=C1(S),V=n(70),O=C1(V),j=n(71),N=C1(j),B=n(72),F=C1(B),X=n(73),Y=C1(X),U=n(13),D=C1(U),T=n(74),k=C1(T),q=n(75),G=C1(q),A=n(57),R=C1(A),K=n(41),a1=C1(K),J=n(28),s1=C1(J),W=n(59),u1=C1(W),z1=n(60),l1=C1(z1),e1=n(61),o1=C1(e1),r1=n(108),d1=C1(r1),x1=n(62),p1=C1(x1);function C1(E1){return E1&&E1.__esModule?E1:{default:E1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":b.FontClass,"formats/size":x.SizeClass,"formats/blockquote":h.default,"formats/code-block":D.default,"formats/header":m.default,"formats/list":p.default,"formats/bold":M.default,"formats/code":U.Code,"formats/italic":C.default,"formats/link":L.default,"formats/script":_.default,"formats/strike":O.default,"formats/underline":N.default,"formats/image":F.default,"formats/video":Y.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":G.default,"modules/toolbar":R.default,"themes/bubble":d1.default,"themes/snow":p1.default,"ui/icons":a1.default,"ui/picker":s1.default,"ui/icon-picker":l1.default,"ui/color-picker":u1.default,"ui/tooltip":o1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function p(g,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,y,b){return y&&p(g.prototype,y),b&&p(g,b),g}}(),i=function p(g,y,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,y);if(x===void 0){var z=Object.getPrototypeOf(g);return z===null?void 0:p(z,y,b)}else{if("value"in x)return x.value;var M=x.get;return M===void 0?void 0:M.call(b)}},s=n(0),l=f(s);function f(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=function(p){d(g,p);function g(){return u(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"add",value:function(b,x){if(x==="+1"||x==="-1"){var z=this.value(b)||0;x=x==="+1"?z+1:z-1}return x===0?(this.remove(b),!0):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,b,x)}},{key:"canAdd",value:function(b,x){return i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,x)||i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,parseInt(x))}},{key:"value",value:function(b){return parseInt(i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b))||void 0}}]),g}(l.default.Attributor.Class),v=new m("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="blockquote",h.tagName="blockquote",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function m(v,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,p,g){return p&&m(v.prototype,p),g&&m(v,g),v}}(),i=n(4),s=l(i);function l(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function u(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function h(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var d=function(m){h(v,m);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),v}(s.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function z(M,H){for(var C=0;C<H.length;C++){var w=H[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(M,w.key,w)}}return function(M,H,C){return H&&z(M.prototype,H),C&&z(M,C),M}}(),i=function z(M,H,C){M===null&&(M=Function.prototype);var w=Object.getOwnPropertyDescriptor(M,H);if(w===void 0){var L=Object.getPrototypeOf(M);return L===null?void 0:z(L,H,C)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(C)}},s=n(0),l=m(s),f=n(4),u=m(f),h=n(25),d=m(h);function m(z){return z&&z.__esModule?z:{default:z}}function v(z,M,H){return M in z?Object.defineProperty(z,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[M]=H,z}function p(z,M){if(!(z instanceof M))throw new TypeError("Cannot call a class as a function")}function g(z,M){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:z}function y(z,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);z.prototype=Object.create(M&&M.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(z,M):z.__proto__=M)}var b=function(z){y(M,z);function M(){return p(this,M),g(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return r(M,[{key:"format",value:function(C,w){C===x.blotName&&!w?this.replaceWith(l.default.create(this.statics.scope)):i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,C,w)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,w){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,w),this):(this.parent.unwrap(),i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replaceWith",this).call(this,C,w))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(M.__proto__||Object.getPrototypeOf(M),"formats",this).call(this,C)}}]),M}(u.default);b.blotName="list-item",b.tagName="LI";var x=function(z){y(M,z),r(M,null,[{key:"create",value:function(C){var w=C==="ordered"?"OL":"UL",L=i(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,w);return(C==="checked"||C==="unchecked")&&L.setAttribute("data-checked",C==="checked"),L}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function M(H){p(this,M);var C=g(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H)),w=function(S){if(S.target.parentNode===H){var _=C.statics.formats(H),V=l.default.find(S.target);_==="checked"?V.format("list","unchecked"):_==="unchecked"&&V.format("list","checked")}};return H.addEventListener("touchstart",w),H.addEventListener("mousedown",w),C}return r(M,[{key:"format",value:function(C,w){this.children.length>0&&this.children.tail.format(C,w)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,w){if(C instanceof b)i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,C,w);else{var L=w==null?this.length():w.offset(this),S=this.split(L);S.parent.insertBefore(C,S)}}},{key:"optimize",value:function(C){i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,C);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&w.domNode.tagName===this.domNode.tagName&&w.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(w.moveChildren(this),w.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var w=l.default.create(this.statics.defaultChild);C.moveChildren(w),this.appendChild(w)}i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,C)}}]),M}(d.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[b],c.ListItem=b,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="italic",h.tagName=["EM","I"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),p}(l.default);m.blotName="script",m.tagName=["SUB","SUP"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="strike",h.tagName="S",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="underline",h.tagName="U",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(0),l=u(s),f=n(27);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["alt","height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return typeof x=="string"&&z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y}(l.default.Embed);p.blotName="image",p.tagName="IMG",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(4),l=n(27),f=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return z.setAttribute("frameborder","0"),z.setAttribute("allowfullscreen",!0),z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y}(s.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(z,M){for(var H=0;H<M.length;H++){var C=M[H];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(z,C.key,C)}}return function(z,M,H){return M&&x(z.prototype,M),H&&x(z,H),z}}(),i=function x(z,M,H){z===null&&(z=Function.prototype);var C=Object.getOwnPropertyDescriptor(z,M);if(C===void 0){var w=Object.getPrototypeOf(z);return w===null?void 0:x(w,M,H)}else{if("value"in C)return C.value;var L=C.get;return L===void 0?void 0:L.call(H)}},s=n(35),l=m(s),f=n(5),u=m(f),h=n(9),d=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function v(x,z){if(!(x instanceof z))throw new TypeError("Cannot call a class as a function")}function p(x,z){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:x}function g(x,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);x.prototype=Object.create(z&&z.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(x,z):x.__proto__=z)}var y=function(x){g(z,x);function z(){return v(this,z),p(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}return r(z,null,[{key:"create",value:function(H){var C=i(z.__proto__||Object.getPrototypeOf(z),"create",this).call(this,H);return typeof H=="string"&&(window.katex.render(H,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",H)),C}},{key:"value",value:function(H){return H.getAttribute("data-value")}}]),z}(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var b=function(x){g(z,x),r(z,null,[{key:"register",value:function(){u.default.register(y,!0)}}]);function z(){v(this,z);var M=p(this,(z.__proto__||Object.getPrototypeOf(z)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return M}return z}(d.default);c.FormulaBlot=y,c.default=b},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function H(C,w){for(var L=0;L<w.length;L++){var S=w[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,w,L){return w&&H(C.prototype,w),L&&H(C,L),C}}(),i=function H(C,w,L){C===null&&(C=Function.prototype);var S=Object.getOwnPropertyDescriptor(C,w);if(S===void 0){var _=Object.getPrototypeOf(C);return _===null?void 0:H(_,w,L)}else{if("value"in S)return S.value;var V=S.get;return V===void 0?void 0:V.call(L)}},s=n(0),l=p(s),f=n(5),u=p(f),h=n(9),d=p(h),m=n(13),v=p(m);function p(H){return H&&H.__esModule?H:{default:H}}function g(H,C){if(!(H instanceof C))throw new TypeError("Cannot call a class as a function")}function y(H,C){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:H}function b(H,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);H.prototype=Object.create(C&&C.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(H,C):H.__proto__=C)}var x=function(H){b(C,H);function C(){return g(this,C),y(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var S=this.domNode.textContent;this.cachedText!==S&&((S.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(S),this.domNode.normalize(),this.attach()),this.cachedText=S)}}]),C}(v.default);x.className="ql-syntax";var z=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),M=function(H){b(C,H),r(C,null,[{key:"register",value:function(){u.default.register(z,!0),u.default.register(x,!0)}}]);function C(w,L){g(this,C);var S=y(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,w,L));if(typeof S.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return S.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){S.highlight(),_=null},S.options.interval)}),S.highlight(),S}return r(C,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var S=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(_){_.highlight(L.options.highlight)}),this.quill.update(u.default.sources.SILENT),S!=null&&this.quill.setSelection(S,u.default.sources.SILENT)}}}]),C}(d.default);M.DEFAULTS={highlight:function(){return window.hljs==null?null:function(H){var C=window.hljs.highlightAuto(H);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=z,c.default=M},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(w,L,S){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,L);if(_===void 0){var V=Object.getPrototypeOf(w);return V===null?void 0:C(V,L,S)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(S)}},i=function(){function C(w,L){for(var S=0;S<L.length;S++){var _=L[S];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,L,S){return L&&C(w.prototype,L),S&&C(w,S),w}}(),s=n(3),l=g(s),f=n(8),u=g(f),h=n(43),d=g(h),m=n(15),v=n(41),p=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function y(C,w){if(!(C instanceof w))throw new TypeError("Cannot call a class as a function")}function b(C,w){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:C}function x(C,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);C.prototype=Object.create(w&&w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(C,w):C.__proto__=w)}var z=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],M=function(C){x(w,C);function w(L,S){y(this,w),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=z);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.container.classList.add("ql-bubble"),_}return i(w,[{key:"extendToolbar",value:function(S){this.tooltip=new H(this.quill,this.options.bounds),this.tooltip.root.appendChild(S.container),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),p.default)}}]),w}(d.default);M.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){w?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var H=function(C){x(w,C);function w(L,S){y(this,w);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.on(u.default.events.EDITOR_CHANGE,function(V,O,j,N){if(V===u.default.events.SELECTION_CHANGE)if(O!=null&&O.length>0&&N===u.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var B=_.quill.getLines(O.index,O.length);if(B.length===1)_.position(_.quill.getBounds(O));else{var F=B[B.length-1],X=_.quill.getIndex(F),Y=Math.min(F.length()-1,O.index+O.length-X),U=_.quill.getBounds(new m.Range(X,Y));_.position(U)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return i(w,[{key:"listen",value:function(){var S=this;r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){S.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!S.root.classList.contains("ql-hidden")){var _=S.quill.getSelection();_!=null&&S.position(S.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(S){var _=r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"position",this).call(this,S),V=this.root.querySelector(".ql-tooltip-arrow");if(V.style.marginLeft="",_===0)return _;V.style.marginLeft=-1*_-V.offsetWidth/2+"px"}}]),w}(h.BaseTooltip);H.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=H,c.default=M},function(a,c,n){a.exports=n(63)}]).default})})(IO);var Al1=IO.exports;const Nl1=k51(Al1);const Tl1={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},El1={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";o.watch(()=>e.value,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.content,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.disabled,s=>{a.quill&&a.quill.enable(!s)});const n=o.ref(null),r=(s,l)=>{for(const f in l)!s[f]||f!=="modules"?s[f]=l[f]:r(s[f],l[f]);return s},i=()=>{n.value&&(a.editorOption=r(Tl1,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new Nl1(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",s=>{s?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let s=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();s==="<p><br></p>"&&(s=""),c=s,t.emit("update:value",c),t.emit("change",{html:s,text:f,quill:l})}),t.emit("ready",a.quill))};return o.onBeforeUnmount(()=>{const s=n.value.previousSibling;s&&s.nodeType===1&&s.className.indexOf("ql-toolbar")>-1&&s.parentNode.removeChild(s)}),o.onMounted(()=>{i()}),o.onUnmounted(()=>{a.quill=null}),{editor:n}}},Ol1={ref:"editor"};function Dl1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("section",Ol1,null,512)}const cl=K1(El1,[["render",Dl1]]);cl.install=function(e){e.component(cl.name,cl)};const Pl1=o.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=o.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=o.computed(()=>a.value>t.maxLength);return(n,r)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},o.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const yb=K1(Pl1,[["__scopeId","data-v-4e8a2dd8"]]),Bl1={class:"pga-editor"},Rl1={class:"editor__container"},Fl1={class:"editor__footer"},Il1=o.defineComponent({__name:"PgaEditor",props:o.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=N4.getConfig(),n=I2("pgaEditor"),r={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},i=o.ref(t.value),s=o.ref(!1);let l;const f=o.ref(!1),u=o.ref(!1),h=o.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),d=o.computed(()=>PT(t.value)),m=o.computed(()=>d.value.length),v=o.computed(()=>m.value>h.value);o.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>p(),1e3*3)});async function p(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{s.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{s.value=!1}}}return(g,y)=>(o.openBlock(),o.createElementBlock("div",Bl1,[o.createElementVNode("div",Rl1,[o.createVNode(o.unref(cl),{value:t.value,"onUpdate:value":y[0]||(y[0]=b=>t.value=b),options:r},null,8,["value"])]),o.createElementVNode("div",Fl1,[o.createVNode(yb,{content:d.value,maxLength:h.value},null,8,["content","maxLength"]),s.value?(o.openBlock(),o.createBlock(y8,{key:0,size:"m",preventCenter:""})):f.value?(o.openBlock(),o.createBlock(E3,{key:1,icon:"save",text:o.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(o.openBlock(),o.createBlock(E3,{key:2,icon:"circle-xmark",text:o.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):o.createCommentVNode("",!0)])]))}});const $l1=K1(Il1,[["__scopeId","data-v-4b498289"]]),jl1={class:"pga-info-card"},ql1={key:1,class:"info-card__content"},Ul1=o.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",jl1,[t.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock("div",ql1,[o.createVNode(A4,{icon:t.type==="success"?"circle-check":"circle-xmark",color:t.type,size:"1.9rem"},null,8,["icon","color"]),o.createVNode(E3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(o.openBlock(),o.createBlock(E3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const Wl1=K1(Ul1,[["__scopeId","data-v-48bac905"]]),Du=o.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=o.computed(()=>b4(t.info));return(c,n)=>{const r=o.resolveDirective("tooltip");return a.value?o.withDirectives((o.openBlock(),o.createBlock(A4,{key:0,icon:["far","circle-question"],size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):o.createCommentVNode("",!0)}}}),Yl1=o.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(o.openBlock(),o.createBlock(A4,{icon:t.isEnabled?"circle-check":"circle-xmark",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Gl1=o.defineComponent({__name:"PgaItemSelected",props:o.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=o.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=o.computed({get(){if(c.item)return!!a.value.find(s=>s.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(s=>s.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:s[0]||(s[0]=l=>r())},[n.value?(o.openBlock(),o.createBlock(A4,{key:0,class:"item-selected__check-icon",icon:"check"})):o.createCommentVNode("",!0)],2))}});const Cv=K1(Gl1,[["__scopeId","data-v-1c9cee8f"]]),Zl1={class:"modal__header"},Xl1=["textContent"],Kl1={class:"modal__body"},Ql1={key:0,class:"modal__footer"},Jl1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){o.useCssVars(r=>({"98d6d882":r.width}));const a=o.useModel(e,"modelValue"),c=t,n=I2("pgaModal");return o.watch(a,r=>oi(!r)),(r,i)=>a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>a.value=!1)},[o.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Zl1,[o.createElementVNode("span",{class:"modal__title",textContent:o.toDisplayString(r.title)},null,8,Xl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>a.value=!1)},[o.createVNode(A4,{icon:"xmark"})])]),o.createElementVNode("div",Kl1,[o.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(o.openBlock(),o.createElementBlock("div",Ql1,[r.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(P2,{key:0,text:r.cancelText||o.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=s=>a.value=!1)},null,8,["text"])),o.createVNode(P2,{icon:r.acceptIcon,text:r.acceptText||o.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["icon","text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const ef1=K1(Jl1,[["__scopeId","data-v-35379c34"]]),tf1={class:"pga-flex-row"},af1=o.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=o.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:ue.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:ue.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:ue.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const s=o.resolveComponent("PgaButton"),l=o.resolveComponent("PgaMonthPicker");return o.openBlock(),o.createElementBlock("div",tf1,[o.createVNode(s,{icon:"arrow-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),o.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),o.createVNode(s,{icon:"arrow-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),cf1=o.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const nf1=K1(cf1,[["__scopeId","data-v-12540ee5"]]),rf1={class:"pga-tabs"},if1={class:"tabs__nav",role:"tablist"},sf1=["onClick"],of1={class:"tabs__section",role:"tabpanel"},lf1=o.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){o.useCssVars(i=>({"5742ddc0":n.value}));const t=e,a=o.ref(0),c=o.ref([]),n=o.ref("");o.watch(()=>t.tabs,()=>{c.value=[],o.nextTick(r)},{immediate:!0,deep:!0});function r(){const i=Math.max(0,...c.value.map(s=>s.offsetWidth));n.value=`${i}px`}return(i,s)=>{const l=o.resolveComponent("PgaIcon"),f=o.resolveComponent("PgaDisplayText");return o.openBlock(),o.createElementBlock("div",rf1,[o.createElementVNode("nav",if1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.tabs,(u,h)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["tabs__button",{"tabs__button--active":a.value===h}]),key:`tab-${h}`,ref_for:!0,ref:d=>c.value[h]=d,role:"tab",onClick:d=>a.value=h},[u.icon?(o.openBlock(),o.createBlock(l,{key:0,class:"tabs__icon",icon:u.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createVNode(f,{class:"tabs__label",text:u.label},null,8,["text"])],10,sf1))),128))]),o.createElementVNode("section",of1,[o.renderSlot(i.$slots,`panel${a.value+1}`,{},void 0,!0)])])}}});const ff1=K1(lf1,[["__scopeId","data-v-70628ced"]]),uf1=["accept","multiple","disabled"],hf1={class:"input-file__label-container"},df1=o.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){o.useCssVars(M=>({"6241915b":o.unref(r).input.borderColor,"027f6ccc":o.unref(r).input.borderRadius,b4ce00ce:o.unref(r).input.backgroundColor,"466eb123":o.unref(r).input.backgroundColorHover,"6910f535":o.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:b,resetInput:x});const{form:r}=Ce(),i=I2("pgaForm"),s=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=s.map(M=>`.${M}`).join(","),f=o.ref(),u=o.ref([]),h=o.ref(!1),d=o.ref(!1),m=o.computed(()=>c.disabled||c.isLoading),v=o.computed(()=>!!u.value.length),p=o.computed(()=>{for(const M of u.value){const H=M.name.split(".").pop();if(!s.includes(H))return!1}return!0}),g=o.computed(()=>{const M={icon:"upload"};return!v.value||h.value&&!d.value&&!m.value?M:p.value?{icon:"circle-check",color:"success"}:{icon:"circle-xmark",color:"danger"}}),y=o.computed(()=>v.value?u.value.map(M=>M.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function b(){var M;(M=f.value)==null||M.click()}function x(){u.value=[],f.value&&(f.value.value="")}function z(M){h.value=!1;const C=M.target.files;if(C.length){if(u.value=[...C],!p.value){w6("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(M,H)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["pga-input-file",{"pga-input-file--disabled":m.value}]),onMouseenter:H[4]||(H[4]=C=>h.value=!0),onMouseleave:H[5]||(H[5]=C=>h.value=!1)},[M.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:o.unref(l),multiple:M.multiple,disabled:m.value,onChange:H[0]||(H[0]=C=>z(C))},null,40,uf1),o.createVNode(A4,{class:"input-file__icon",icon:g.value.icon,color:g.value.color},null,8,["icon","color"]),o.createElementVNode("div",hf1,[o.createVNode(E3,{text:y.value},null,8,["text"])]),v.value?(o.openBlock(),o.createBlock(P2,{key:0,text:o.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:m.value,onMouseenter:H[1]||(H[1]=C=>d.value=!0),onMouseleave:H[2]||(H[2]=C=>d.value=!1),onClick:H[3]||(H[3]=o.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):o.createCommentVNode("",!0)],64))],34))}});const ks=K1(df1,[["__scopeId","data-v-cbccd13c"]]),mf1={class:"pga-videos"},pf1={class:"videos"},vf1=["src"],gf1={key:0,class:"videos__input-container"},yf1=o.defineComponent({__name:"PgaVideos",props:o.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=I2("pgaFile"),n=o.ref(),r=o.ref(!1),i=o.ref(-1),s=o.computed(()=>t.value.length),l=o.computed(()=>t.value.map(h=>typeof h=="string"?h:URL.createObjectURL(h)));async function f(h){var d;if((d=n.value)==null||d.resetInput(),s.value+h.length>a.maxVideosQuantity&&(h=h.slice(0,a.maxVideosQuantity-s.value),w6("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...h);return}try{r.value=!0,t.value=await a.uploadFn({file:h})}finally{r.value=!1}}async function u(h){if(a.deleteFn)try{i.value=h,await a.deleteFn({index:h})}finally{i.value=-1}t.value.splice(h,1)}return(h,d)=>{const m=o.resolveComponent("PgaDeleteButton");return o.openBlock(),o.createElementBlock("div",mf1,[o.createElementVNode("div",pf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(v,p)=>(o.openBlock(),o.createElementBlock("div",{key:v,class:"videos__video-container"},[o.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,vf1),o.createVNode(m,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===p,onDeleteConfirmed:g=>u(p)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),s.value<h.maxVideosQuantity?(o.openBlock(),o.createElementBlock("div",gf1,[o.createVNode(ks,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:o.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:d[0]||(d[0]=v=>f(v))},null,8,["label","isLoading"])])):o.createCommentVNode("",!0)]),o.createElementVNode("span",null,o.toDisplayString(`${s.value} / ${h.maxVideosQuantity}`),1)])}}});const bf1=K1(yf1,[["__scopeId","data-v-ee4ebd19"]]),zf1=o.defineComponent({__name:"PgaBackButton",setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{text:o.unref(t)("backBtn"),icon:"arrow-left",color:"first",size:"s"},null,8,["text"]))}}),xf1={class:"pga-copy"},Mf1=o.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.ref(!1),n=o.computed(()=>b4(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock("div",xf1,[o.createElementVNode("span",null,o.toDisplayString(n.value),1),c.value?(o.openBlock(),o.createBlock(A4,{key:1,icon:["far","circle-check"],color:"success"})):o.withDirectives((o.openBlock(),o.createBlock(P2,{key:0,color:"first",icon:"copy",size:"s",onClick:s[0]||(s[0]=f=>r())},null,512)),[[l,o.unref(a)("copyBtn")]])])}}});const Cf1=K1(Mf1,[["__scopeId","data-v-c4835bae"]]),Hf1=o.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.computed(()=>b4(t.text)),n=o.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),w6("success",()=>a("textCopied"))}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{color:"first",icon:"copy",text:n.value,onClick:s[0]||(s[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}}),Vf1={class:"alert"},wf1={class:"alert__content"},_f1=["textContent"],Lf1={class:"alert__buttons"},kf1=o.defineComponent({__name:"Alert",props:{message:{},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const t=dO.directive,a=I2("alert");return o.onMounted(()=>oi(!1)),o.onUnmounted(()=>oi(!0)),(c,n)=>(o.openBlock(),o.createElementBlock("div",Vf1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",wf1,[o.createVNode(A4,{class:"alert__icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert__title",textContent:o.toDisplayString(o.unref(a)("alertTitle"))},null,8,_f1),c.message?(o.openBlock(),o.createBlock(E3,{key:0,class:"alert__message",text:c.message},null,8,["text"])):o.createCommentVNode("",!0),o.createElementVNode("div",Lf1,[o.createVNode(P2,{class:"alert__button",text:o.unref(a)("cancelBtn"),variant:"filled",color:"grey",onClick:n[0]||(n[0]=r=>c.handleCloseFn())},null,8,["text"]),o.createVNode(P2,{class:"alert__button",text:o.unref(a)("acceptBtn"),variant:"filled",color:"danger",onClick:n[1]||(n[1]=r=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(t),c.handleCloseFn]])]))}});const Sf1=K1(kf1,[["__scopeId","data-v-969d5446"]]);function $O(e,t){const a=document.createElement("div");document.body.appendChild(a);const c=o.createApp({render(){return o.h(Sf1,{message:e,handleAcceptFn:r,handleCloseFn:n})}});c.mount(a);function n(){c.unmount(),document.body.removeChild(a)}function r(){n(),t()}}const Pu=o.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=I2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");$O(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(P2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||o.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>r())},null,8,["variant","icon","text"]))}}),Hv=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>{const n=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"sky",icon:["far","pen-to-square"],text:a.withoutText?void 0:o.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?o.unref(t)("editBtn"):""]])}}}),Af1=["href","target"],Nf1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[o.createVNode(E3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,Af1))}});const jO=K1(Nf1,[["__scopeId","data-v-ec435fa7"]]),Tf1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=I2("pgaButton");return(n,r)=>(o.openBlock(),o.createBlock(P2,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),Ef1=o.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){o.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=o.computed(()=>`var(--pga-color-${t.color})`),c=o.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{class:o.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=s=>o.unref(oi)(!0))},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Ss=K1(Ef1,[["__scopeId","data-v-6046ce2c"]]),qO=o.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createBlock(Ss,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:o.withCtx(()=>[t.$slots.default?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(P2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),UO=o.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>a.toName?(o.openBlock(),o.createBlock(qO,{key:0,name:a.toName,params:{id:a.id},icon:"arrow-up-right-from-square",text:a.withoutText?void 0:o.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):o.createCommentVNode("",!0)}}),Of1=o.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createBlock(P2,{variant:"flat",icon:"xmark",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),Df1=o.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:o.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),Pf1=o.defineComponent({__name:"PgaToggleButton",props:o.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=o.useModel(e,"modelValue"),c=t,n=o.computed(()=>a.value?"outlined":"flat"),r=o.computed(()=>a.value?"primary":"grey");return o.watch(a,i=>c("change",i)),(i,s)=>(o.openBlock(),o.createBlock(P2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:s[0]||(s[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var Bf1=Object.defineProperty,Rf1=(e,t,a)=>t in e?Bf1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Pt=(e,t,a)=>Rf1(e,typeof t!="symbol"?t+"":t,a);const Ff1=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let Vn,UV,WV,g6,wn={},Ac={};class If1{constructor(t,a=!1){Pt(this,"texts",{}),Pt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),g6=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return g6.addDays(this,t)},Date.prototype.subtractDays=function(t){return g6.subtractDays(this,t)},Date.prototype.addHours=function(t){return g6.addHours(this,t)},Date.prototype.subtractHours=function(t){return g6.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return g6.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return g6.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return g6.getWeek(this)},Date.prototype.isToday=function(){return g6.isToday(this)},Date.prototype.isLeapYear=function(){return g6.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return g6.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return g6.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return UV!==new Date().getDate()&&(Vn=new Date,UV=Vn.getDate(),WV=`${Vn.getFullYear()}-${Vn.getMonth()}-${Vn.getDate()}`),WV}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);wn={},Ac={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const s=n[i.replace(/\{|\}/g,"")];return s!==void 0?s():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);Ac={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),s=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?s.replace("23:59","24:00"):s}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(wn.D)return wn;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return wn={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:s+1,dd:()=>a.weekDays[s][0],ddd:()=>a.weekDays[s].substr(0,3),dddd:()=>a.weekDays[s]},wn}_hydrateTimeObject(t,a){if(Ac.am)return Ac;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return Ac={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},Ac}}const $f1=24*60;class jf1{constructor(t){Pt(this,"_vuecal",null),Pt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Pt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Pt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Pt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:s}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+s)),{minutes:Math.max(Math.min(c,$f1),0),cursorCoords:n}}),this._vuecal=t}}const qf1=2,Ud=24*60;let q3,U3,Wd;class Uf1{constructor(t,a){Pt(this,"_vuecal",null),Pt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,q3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=q3.stringToDate(t)),!(t instanceof Date))return!1;const n=q3.dateToMinutes(t);a=a*1||qf1*60;const r=n+a,i=q3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=q3.stringToDate(c.end)),c.endTimeMinutes=q3.dateToMinutes(c.end));const s={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(s,()=>this.deleteAnEvent(s))))return s.startDateF!==s.endDateF&&(s.daysCount=q3.countDays(s.start,s.end)),this._vuecal.mutableEvents.push(s),this._vuecal.addEventsToView([s]),this._vuecal.emitWithEvent("event-create",s),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(s),originalEvent:null}),s}addEventSegment(t){t.segments||(t.segments={},t.segments[q3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:Ud,isFirstDay:!0,isLastDay:!1});const a=t.segments[q3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=Ud);const c=q3.addDays(t.end,1),n=q3.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=q3.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return q3.formatDateLite(t.end);delete t.segments[q3.formatDateLite(t.end)],a--;const c=q3.subtractDays(t.end,1),n=q3.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),s=t.end.getTime(),l=!1,f,u,h;for(!t.end.getHours()&&!t.end.getMinutes()&&(s-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?q3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,s));f<=u;){let d=!1;const m=q3.addDays(new Date(f),1).setHours(0,0,0,0);let v,p,g,y;if(t.repeat){const b=new Date(f),x=q3.formatDateLite(b);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,h=new Date(i).setHours(0,0,0,0),s=t.occurrences[x].end),l=!0,d=!0),v=f===h,p=x===q3.formatDateLite(new Date(s)),g=new Date(v?i:f),y=q3.formatDateLite(g),p&&(l=!1)}else d=!0,v=f===i,p=u===s&&m>u,g=v?t.start:new Date(f),y=q3.formatDateLite(v?t.start:g);d&&(t.segments[y]={start:g,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:p?t.endTimeMinutes:Ud,isFirstDay:v,isLastDay:p}),f=m}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){Wd=t.slice(0),U3={},t.forEach(n=>{Wd.shift(),U3[n._eid]||(U3[n._eid]={overlaps:[],start:n.start,position:0}),U3[n._eid].position=0,Wd.forEach(r=>{U3[r._eid]||(U3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),s=a.overlapsPerTimeStep?q3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&s)U3[n._eid].overlaps.push(r._eid),U3[n._eid].overlaps=[...new Set(U3[n._eid].overlaps)],U3[r._eid].overlaps.push(n._eid),U3[r._eid].overlaps=[...new Set(U3[r._eid].overlaps)],U3[r._eid].position++;else{let l,f;(l=(U3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&U3[n._eid].overlaps.splice(l,1),(f=(U3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&U3[r._eid].overlaps.splice(f,1),U3[r._eid].position--}})});let c=0;for(const n in U3){const r=U3[n],i=r.overlaps.map(s=>({id:s,start:U3[s].start}));i.push({id:n,start:r.start}),i.sort((s,l)=>s.start<l.start?-1:s.start>l.start?1:s.id>l.id?-1:1),r.position=i.findIndex(s=>s.id===n),c=Math.max(this.getOverlapsStreak(r,U3),c)}return[U3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(s=>s!==r).forEach(s=>{a[s].overlaps.includes(r)||n.push(s)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const Wf1={class:"vuecal__flex vuecal__weekdays-headings"},Yf1=["onClick"],Gf1={class:"vuecal__flex weekday-label",grow:""},Zf1={class:"full"},Xf1={class:"small"},Kf1={class:"xsmall"},Qf1={key:0},Jf1={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function eu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",Wf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.headings,(i,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:s},[i.hide?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:o.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[o.createVNode(o.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${s}-${i.dayOfMonth}`:!1},[o.createElementVNode("div",Gf1,[o.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[o.createElementVNode("span",Zf1,o.toDisplayString(i.full),1),o.createElementVNode("span",Xf1,o.toDisplayString(i.small),1),o.createElementVNode("span",Kf1,o.toDisplayString(i.xsmall),1),i.dayOfMonth?(o.openBlock(),o.createElementBlock("span",Qf1," "+o.toDisplayString(i.dayOfMonth),1)):o.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",Jf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.daySplits,(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",l.class||!1]),key:f},[o.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[o.createTextVNode(o.toDisplayString(l.label),1)])],2))),128))])):o.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,Yf1))],64))),128))])}const cn=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},tu1={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},WO=cn(tu1,[["render",eu1]]),au1={class:"vuecal__header"},cu1={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},nu1=["onDragenter","onDragleave","onClick","aria-label"],ru1={key:1,class:"vuecal__title-bar"},iu1=["aria-label"],su1={class:"vuecal__flex vuecal__title",grow:""},ou1=["aria-label"],lu1={key:0,class:"vuecal__flex vuecal__split-days-headers"};function fu1(e,t,a,c,n,r){const i=o.resolveComponent("weekdays-headings");return o.openBlock(),o.createElementBlock("div",au1,[a.options.hideViewSelector?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",cu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.viewProps.views,(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:l},[s.enabled?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${s.label} view`},o.toDisplayString(s.label),43,nu1)):o.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ru1,[o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...s)=>r.previous&&r.previous(...s)),onDragenter:t[1]||(t[1]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"previous",e.$data)),onDragleave:t[2]||(t[2]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-prev")],42,iu1),o.createElementVNode("div",su1,[o.createVNode(o.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=s=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...s)=>r.goToToday&&r.goToToday(...s)),onDragenter:t[5]||(t[5]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"today",e.$data)),onDragleave:t[6]||(t[6]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"today",e.$data)),"aria-label":"Today"},[o.renderSlot(e.$slots,"today-button")],34)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...s)=>r.next&&r.next(...s)),onDragenter:t[8]||(t[8]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"next",e.$data)),onDragleave:t[9]||(t[9]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-next")],42,ou1)])),a.viewProps.weekDaysInHeader?(o.openBlock(),o.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:s,view:l})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:s,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:s})=>[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:o.withCtx(()=>[r.showDaySplits?(o.openBlock(),o.createElementBlock("div",lu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.daySplits,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",s.class||!1]),key:l},[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view.id},()=>[o.createTextVNode(o.toDisplayString(s.label),1)])],2))),128))])):o.createCommentVNode("",!0)]),_:3},8,["name"])])}const uu1={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:WO},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},hu1=cn(uu1,[["render",fu1]]),du1=["draggable"];function mu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__event",r.eventClasses]),style:o.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=o.withKeys(o.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=o.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=o.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=o.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},o.toDisplayString(r.vuecal.texts.deleteEvent),33)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):o.createCommentVNode("",!0)],46,du1)}const pu1={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},vu1=cn(pu1,[["render",mu1]]),gu1=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],yu1={key:0,class:"cell-time-labels"},bu1=["innerHTML"],zu1={key:2,class:"vuecal__cell-events"},xu1=["title"];function Mu1(e,t,a,c,n,r){const i=o.resolveComponent("event");return o.openBlock(),o.createBlock(o.TransitionGroup,{class:o.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:o.normalizeStyle(r.cellStyles)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?r.splits:1,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(s)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?s.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=o.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?s.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?s.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?s.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?s.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(o.openBlock(),o.createElementBlock("div",yu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.timeCells,(f,u)=>(o.openBlock(),o.createElementBlock("span",{class:"cell-time-label",key:u},o.toDisplayString(f.label),1))),128))])):o.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(r.specialHours,(f,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:o.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(o.openBlock(),o.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,bu1)):o.createCommentVNode("",!0)],6))),256)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?s:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(o.openBlock(),o.createElementBlock("div",zu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?s.events:r.events,(f,u)=>(o.openBlock(),o.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?s.events:r.events,overlaps:((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?s.overlapsStreak:e.cellOverlapsStreak},{event:o.withCtx(({event:h,view:d})=>[o.renderSlot(e.$slots,"event",{view:d,event:h})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):o.createCommentVNode("",!0)],42,gu1))),128)),r.timelineVisible?(o.openBlock(),o.createElementBlock("div",{class:"vuecal__now-line",style:o.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,xu1)):o.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const Cu1={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:vu1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const s=this.isDOMElementAnEvent(e.target);!s&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!s&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},s=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||s||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},YO=cn(Cu1,[["render",Mu1]]),Hu1={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function Vu1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:o.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Hu1,[o.createElementVNode("span",null,o.toDisplayString(a.label),1)])),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:o.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.cells,(s,l)=>(o.openBlock(),o.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:s,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:o.withCtx(({event:f,view:u})=>[o.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const wu1={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":YO},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},_u1=cn(wu1,[["render",Vu1]]),Lu1=["lang"],ku1={class:"default"},Su1={key:0,class:"vuecal__flex vuecal__body",grow:""},Au1=["onBlur","innerHTML"],Nu1=["innerHTML"],Tu1=["innerHTML"],Eu1={class:"vuecal__flex",row:"",grow:""},Ou1={key:0,class:"vuecal__time-column"},Du1={class:"vuecal__time-cell-label"},Pu1={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},Bu1=["wrap","column"],Ru1=["onBlur","innerHTML"],Fu1=["innerHTML"],Iu1=["innerHTML"],$u1=["wrap"],ju1=["innerHTML"],qu1=["innerHTML"],Uu1={key:2,class:"vuecal__cell-events-count"},Wu1={key:3,class:"vuecal__no-event"},Yu1=["onBlur","innerHTML"],Gu1=["innerHTML"],Zu1={key:2,class:"vuecal__event-time"},Xu1={key:0},Ku1={key:1,class:"days-to-end"},Qu1=["innerHTML"],Ju1={key:0,class:"vuecal__scrollbar-check"};function eh1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-header"),s=o.resolveComponent("all-day-bar"),l=o.resolveComponent("weekdays-headings"),f=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[o.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},o.createSlots({"arrow-prev":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=o.createTextVNode(" ")),t[1]||(t[1]=o.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=o.createTextVNode(" "))])]),"arrow-next":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=o.createTextVNode(" ")),t[4]||(t[4]=o.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=o.createTextVNode(" "))])]),"today-button":o.withCtx(()=>[o.renderSlot(e.$slots,"today-button",{},()=>[o.createElementVNode("span",ku1,o.toDisplayString(n.texts.today),1)])]),title:o.withCtx(()=>[o.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[o.createTextVNode(o.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Su1,[o.createVNode(o.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Au1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Nu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Tu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[o.createElementVNode("div",Eu1,[r.hasTimeColumn?(o.openBlock(),o.createElementBlock("div",Ou1,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:o.normalizeStyle({height:r.allDayBar.height})},[o.createElementVNode("span",null,o.toDisplayString(n.texts.allDay),1)],4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.timeCells,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:"vuecal__time-cell",key:h,style:o.normalizeStyle(`height: ${a.timeCellHeight}px`)},[o.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=o.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),o.createElementVNode("span",Du1,o.toDisplayString(u.label),1)])],4))),128))])):o.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(o.openBlock(),o.createElementBlock("div",Pu1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(6,u=>o.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[o.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[o.createTextVNode(o.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(o.openBlock(),o.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.daySplits,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",u.class||!1]),key:h},[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[o.createTextVNode(o.toDisplayString(u.label),1)])],2))),128))],4)):o.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:2},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Ru1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Fu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Iu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.viewCells,(u,h)=>(o.openBlock(),o.createBlock(f,{key:h,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":o.withCtx(({events:d,split:m,selectCell:v})=>[o.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:d},()=>[m&&!a.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",{key:0,class:"split-label",innerHTML:m.label},null,8,ju1)):o.createCommentVNode("",!0),u.content?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,qu1)):o.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&d.length?(o.openBlock(),o.createElementBlock("div",Uu1,[o.renderSlot(e.$slots,"events-count",{view:n.view,events:d},()=>[o.createTextVNode(o.toDisplayString(d.length),1)])])):o.createCommentVNode("",!0),!r.cellOrSplitHasEvents(d,m)&&r.isWeekOrDayView?(o.openBlock(),o.createElementBlock("div",Wu1,[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])])):o.createCommentVNode("",!0)])]),event:o.withCtx(({event:d,view:m})=>[o.renderSlot(e.$slots,"event",{view:m,event:d},()=>[r.editEvents.title&&d.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,d),innerHTML:d.title},null,40,Yu1)):d.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Gu1)):o.createCommentVNode("",!0),a.time&&!d.allDay&&!(r.isMonthView&&(d.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",Zu1,[o.createTextVNode(o.toDisplayString(n.utils.date.formatTime(d.start,r.TimeFormat)),1),d.endTimeMinutes?(o.openBlock(),o.createElementBlock("span",Xu1," - "+o.toDisplayString(n.utils.date.formatTime(d.end,r.TimeFormat,null,!0)),1)):o.createCommentVNode("",!0),d.daysCount>1&&(d.segments[u.formattedDate]||{}).isFirstDay?(o.openBlock(),o.createElementBlock("small",Ku1," +"+o.toDisplayString(d.daysCount-1)+o.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),d.content&&!(r.isMonthView&&d.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:d.content},null,8,Qu1)):o.createCommentVNode("",!0)])]),"no-event":o.withCtx(()=>[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,$u1)],10,Bu1)])],2)]))]),_:3},8,["name","appear"]),n.ready?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ju1,t[7]||(t[7]=[o.createElementVNode("div",null,null,-1)])))]))],10,Lu1)}const _n=24*60,nl={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},YV=["years","year","month","week","day"],GV=new If1(nl),th1={name:"vue-cal",components:{"vuecal-cell":YO,"vuecal-header":hu1,WeekdaysHeadings:WO,AllDayBar:_u1},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:_n},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...nl},utils:{date:(this.disableDatePrototypes?GV.removePrototypes():!1)||GV,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},nl,e),this.utils.date.updateTexts(this.texts);return}const t=await Ff1(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},nl,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return YV.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
824
824
  A valid view must be one of: ${YV.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(console.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,a=!1){e=this.validateView(e);const c=this.utils.date,n=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&a){if(this.view.id===e)return;const s=this.enabledViews;this.transitionDirection=s.indexOf(this.view.id)>s.indexOf(e)?"left":"right"}const r=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":{this.view.startDate=new Date(Math.floor(t.getFullYear()/25)*25||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break}case"year":{this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break}case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let s=new Date(this.view.startDate);if(s.getDay()!==(this.startWeekOnSunday?0:1)&&(s=c.getPreviousFirstDayOfWeek(s,this.startWeekOnSunday)),this.view.firstCellDate=s,this.view.lastCellDate=c.addDays(s,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const l=this.view.firstCellDate.getDay()===6&&!this.startWeekOnSunday?2:1;this.view.firstCellDate=c.addDays(this.view.firstCellDate,l)}if([0,6].includes(this.view.startDate.getDay())){const l=this.view.startDate.getDay()===6?2:1;this.view.startDate=c.addDays(this.view.startDate,l)}if([0,6].includes(this.view.lastCellDate.getDay())){const l=this.view.lastCellDate.getDay()===0&&!this.startWeekOnSunday?2:1;this.view.lastCellDate=c.subtractDays(this.view.lastCellDate,l)}if([0,6].includes(this.view.endDate.getDay())){const l=this.view.endDate.getDay()===0?2:1;this.view.endDate=c.subtractDays(this.view.endDate,l)}}break}case"week":{t=c.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const s=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?c.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=c.addDays(t,s),this.view.endDate.setSeconds(-1);break}case"day":{this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0);break}}this.addEventsToView();const i=this.view.startDate&&this.view.startDate.getTime();if(!(r===e&&i===n)&&(this.$emit("update:activeView",e),this.ready)){const s=this.view.startDate,l={view:e,startDate:s,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:c.getWeek(this.startWeekOnSunday?c.addDays(s,1):s)}:{}};this.$emit("view-change",l)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const a=e?1:-1;let c=null;const{startDate:n,id:r}=this.view;switch(r){case"years":c=new Date(n.getFullYear()+25*a,0,1);break;case"year":c=new Date(n.getFullYear()+1*a,1,1);break;case"month":c=new Date(n.getFullYear(),n.getMonth()+1*a,1);break;case"week":c=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday),7);break;case"day":c=t[e?"addDays":"subtractDays"](n,1);const i=c.getDay(),s=this.startWeekOnSunday?i:(i||7)-1;if(this.weekDays[s].hide){const f=this.weekDays.map((h,d)=>({...h,i:d}));let u=0;e?([...f.slice(s),...f].find(h=>(u++,!h.hide)).i,u--):[...f,...f.slice(0,s)].reverse().find(h=>(u++,!h.hide)).i,c=t[e?"addDays":"subtractDays"](c,u)}break}c&&this.switchView(r,c)},addEventsToView(e=[]){const t=this.utils.event,{startDate:a,endDate:c,firstCellDate:n,lastCellDate:r}=this.view;if(e.length||(this.view.events=[]),e=e.length?e:[...this.mutableEvents],!e||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let i=e.filter(s=>t.eventInRange(s,a,c));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(i=i.map(s=>s.daysCount>1?t.createEventSegments(s,n||a,r||c):s)),this.view.events.push(...i),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach(s=>{(t.eventInRange(s,n,a)||t.eventInRange(s,c,r))&&(this.view.events.some(l=>l._eid===s._eid)||this.view.outOfScopeEvents.push(s))}))},findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dragAnEvent:a,dragCreateAnEvent:c}=this.domEvents;t._eid===null&&a._eid===null&&!c.start||(e.preventDefault(),t._eid?this.eventResizing(e):this.dragToCreateEvent&&c.start&&this.eventDragCreation(e))},onMouseUp(e){const{focusAnEvent:t,resizeAnEvent:a,clickHoldAnEvent:c,clickHoldACell:n,dragCreateAnEvent:r}=this.domEvents,{_eid:i}=c,{_eid:s}=a;let l=!1;const{event:f,start:u}=r,h=this.isDOMElementAnEvent(e.target),d=t.mousedUp;if(t.mousedUp=!1,h&&(this.domEvents.cancelClickEventCreation=!0),n.eventCreated)return;if(s){const{originalEnd:v,originalEndTimeMinutes:p,endTimeMinutes:g}=a,y=this.view.events.find(b=>b._eid===a._eid);if(l=g&&g!==p,y&&y.end.getTime()!==v.getTime()){const b=this.mutableEvents.find(M=>M._eid===a._eid);b.endTimeMinutes=y.endTimeMinutes,b.end=y.end;const x=this.cleanupEvent(y),z={...this.cleanupEvent(y),end:v,endTimeMinutes:y.originalEndTimeMinutes};this.$emit("event-duration-change",{event:x,oldDate:a.originalEnd,originalEvent:z}),this.$emit("event-change",{event:x,originalEvent:z})}y&&(y.resizing=!1),a._eid=null,a.start=null,a.split=null,a.segment=null,a.originalEndTimeMinutes=null,a.originalEnd=null,a.endTimeMinutes=null,a.startCell=null,a.endCell=null}else u&&(f&&(this.emitWithEvent("event-drag-create",f),r.event.resizing=!1),r.start=null,r.split=null,r.event=null);!h&&!s&&this.unfocusEvent(),c.timeoutId&&!i&&(clearTimeout(c.timeoutId),c.timeoutId=null),n.timeoutId&&(clearTimeout(n.timeoutId),n.timeoutId=null);const m=typeof this.onEventClick=="function";if(d&&!l&&!i&&!f&&m){let v=this.view.events.find(p=>p._eid===t._eid);return!v&&this.isMonthView&&(v=this.view.outOfScopeEvents.find(p=>p._eid===t._eid)),v&&this.onEventClick(v,e)}},onKeyUp(e){e.keyCode===27&&this.cancelDelete()},eventResizing(e){const{resizeAnEvent:t}=this.domEvents,a=this.view.events.find(f=>f._eid===t._eid)||{segments:{}},{minutes:c,cursorCoords:n}=this.minutesAtCursor(e),r=a.segments&&a.segments[t.segment],{date:i,event:s}=this.utils,l=Math.max(c,this.timeFrom+1,(r||a).startTimeMinutes+1);if(a.endTimeMinutes=t.endTimeMinutes=l,this.snapToTime){const f=a.endTimeMinutes+this.snapToTime/2;a.endTimeMinutes=f-f%this.snapToTime}if(r&&(r.endTimeMinutes=a.endTimeMinutes),a.end.setHours(0,a.endTimeMinutes,a.endTimeMinutes===_n?-1:0,0),this.resizeX&&this.isWeekView){a.daysCount=i.countDays(a.start,a.end);const f=this.cellsEl,u=f.offsetWidth/f.childElementCount,h=Math.floor(n.x/u);if(t.startCell===null&&(t.startCell=h-(a.daysCount-1)),t.endCell!==h){t.endCell=h;const d=i.addDays(a.start,h-t.startCell),m=Math.max(i.countDays(a.start,d),1);if(m!==a.daysCount){let v=null;m>a.daysCount?v=s.addEventSegment(a):v=s.removeEventSegment(a),t.segment=v,a.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:a._eid,end:a.end,endTimeMinutes:a.endTimeMinutes})},eventDragCreation(e){const{dragCreateAnEvent:t}=this.domEvents,{start:a,startCursorY:c,split:n}=t,r=new Date(a),{minutes:i,cursorCoords:{y:s}}=this.minutesAtCursor(e);if(!(!t.event&&Math.abs(c-s)<this.dragToCreateThreshold))if(t.event){if(r.setHours(0,i,i===_n?-1:0,0),this.snapToTime){let u=r.getHours()*60+r.getMinutes();const h=u+this.snapToTime/2;u=h-h%this.snapToTime,r.setHours(0,u,0,0)}const l=a<r,{event:f}=t;f.start=l?a:r,f.end=l?r:a,f.startTimeMinutes=f.start.getHours()*60+f.start.getMinutes(),f.endTimeMinutes=f.end.getHours()*60+f.end.getMinutes()}else{if(t.event=this.utils.event.createAnEvent(a,1,{split:n}),!t.event){t.start=null,t.split=null,t.event=null;return}t.event.resizing=!0}},unfocusEvent(){const{focusAnEvent:e,clickHoldAnEvent:t}=this.domEvents,a=this.view.events.find(c=>c._eid===(e._eid||t._eid));e._eid=null,t._eid=null,a&&(a.focused=!1,a.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:e}=this.domEvents;if(e._eid){const t=this.view.events.find(a=>a._eid===e._eid);t&&(t.deleting=!1),e._eid=null,e.timeoutId=null}},onEventTitleBlur(e,t){if(t.title===e.target.innerHTML)return;const a=t.title;t.title=e.target.innerHTML;const c=this.cleanupEvent(t);this.$emit("event-title-change",{event:c,oldTitle:a}),this.$emit("event-change",{event:c,originalEvent:{...c,title:a}})},updateMutableEvents(){const e=this.utils.date;this.mutableEvents=[],this.events.forEach(t=>{const a=typeof t.start=="string"?e.stringToDate(t.start):t.start,c=e.formatDateLite(a),n=e.dateToMinutes(a);let r=null;typeof t.end=="string"&&t.end.includes("24:00")?(r=new Date(t.end.replace(" 24:00","")),r.setHours(23,59,59,0)):r=typeof t.end=="string"?e.stringToDate(t.end):t.end;let i=e.formatDateLite(r),s=e.dateToMinutes(r);(!s||s===_n)&&(!this.time||typeof t.end=="string"&&t.end.length===10?r.setHours(23,59,59,0):r.setSeconds(r.getSeconds()-1),i=e.formatDateLite(r),s=_n);const l=c!==i;t=Object.assign({...this.utils.event.eventDefaults},t,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:l?{}:null,start:a,startTimeMinutes:n,end:r,endTimeMinutes:s,daysCount:l?e.countDays(a,r):1,class:t.class}),this.mutableEvents.push(t)})},minutesAtCursor(e){return this.utils.cell.minutesAtCursor(e)},createEvent(e,t,a={}){return this.utils.event.createAnEvent(e,t,a)},cleanupEvent(e){return e={...e},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(a=>{a in e&&delete e[a]}),e.repeat||delete e.repeat,e},emitWithEvent(e,t){this.$emit(e,this.cleanupEvent(t))},updateSelectedDate(e){if(e&&typeof e=="string"?e=this.utils.date.stringToDate(e):e=new Date(e),e&&e instanceof Date){const{selectedDate:t}=this.view;t&&(this.transitionDirection=t.getTime()>e.getTime()?"left":"right"),e.setHours(0,0,0,0),(!t||t.getTime()!==e.getTime())&&(this.view.selectedDate=e),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(e){const t=this.utils.date,c=this.firstCellDateWeekNumber+e,n=this.startWeekOnSunday?1:0;return c>52?t.getWeek(t.addDays(this.view.firstCellDate,7*e+n)):c},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,60*1e3)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const e=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],t=e.offsetWidth-e.children[0].offsetWidth;if(t){const a=document.createElement("style");a.id="vuecal-align-with-scrollbar",a.type="text/css",a.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${t}px}`,document.head.appendChild(a)}},cellOrSplitHasEvents(e,t=null){return e.length&&(!t&&e.length||t&&e.some(a=>a.split===t.id))}},created(){this.utils.cell=new jf1(this),this.utils.event=new Uf1(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,(60-this.now.getSeconds())*1e3))},mounted(){const e=this.utils.date,t="ontouchstart"in window,{resize:a,drag:c,create:n,delete:r,title:i}=this.editEvents,s=this.onEventClick&&typeof this.onEventClick=="function";(a||c||n||r||i||s)&&window.addEventListener(t?"touchend":"mouseup",this.onMouseUp),(a||c||n&&this.dragToCreateEvent)&&window.addEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),i&&window.addEventListener("keyup",this.onKeyUp),t&&(this.$refs.vuecal.oncontextmenu=function(u){u.preventDefault(),u.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const l=this.view.startDate,f={view:this.view.id,startDate:l,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:e.getWeek(this.startWeekOnSunday?e.addDays(l,1):l)}:{}};this.$emit("ready",f),this.ready=!0},beforeUnmount(){const e="ontouchstart"in window;window.removeEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(e?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(e=>this.views[e].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const e=this.utils.date,t=this.view.firstCellDate;return e.getWeek(this.startWeekOnSunday?e.addDays(t,1):t)},timeCells(){const e=[];for(let t=this.timeFrom,a=this.timeTo;t<a;t+=this.timeStep)e.push({hours:Math.floor(t/60),minutes:t%60,label:this.utils.date.formatTime(t,this.TimeFormat),value:t});return e},TimeFormat(){return this.timeFormat||(this.twelveHour?"h:mm{am}":"HH:mm")},daySplits(){return(this.splitDays.filter(e=>!e.hide)||[]).map((e,t)=>({...e,id:e.id||t+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let e=null;return this.hasSplits&&this.minSplitWidth?e=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(e=this.visibleDaysCount*this.minCellWidth),e},allDayBar(){let e=this.allDayBarHeight||null;return e&&!isNaN(e)&&(e+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:e}},minTimestamp(){let e=null;return this.minDate&&typeof this.minDate=="string"?e=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(e=this.minDate),e?e.getTime():null},maxTimestamp(){let e=null;return this.maxDate&&typeof this.maxDate=="string"?e=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.maxDate instanceof Date&&(e=this.maxDate),e?e.getTime():null},weekDays(){let{weekDays:e,weekDaysShort:t=[]}=this.texts;return e=e.slice(0).map((a,c)=>({label:a,...t.length?{short:t[c]}:{},hide:this.hideWeekends&&c>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(c+1)})),this.startWeekOnSunday&&e.unshift(e.pop()),e},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(e=>({label:e}))},specialDayHours(){return!this.specialHours||!Object.keys(this.specialHours).length?{}:Array(7).fill("").map((e,t)=>{let a=this.specialHours[t+1]||[];return Array.isArray(a)||(a=[a]),e=[],a.forEach(({from:c,to:n,class:r,label:i},s)=>{e[s]={day:t+1,from:[null,void 0].includes(c)?null:c*1,to:[null,void 0].includes(n)?null:n*1,class:r||"",label:i||""}}),e})},viewTitle(){const e=this.utils.date;let t="";const a=this.view.startDate,c=a.getFullYear(),n=a.getMonth();switch(this.view.id){case"years":{t=this.texts.years;break}case"year":{t=c;break}case"month":{t=`${this.months[n].label} ${c}`;break}case"week":{const r=this.view.endDate,i=a.getFullYear();let s=this.texts.months[a.getMonth()];this.xsmall&&(s=s.substring(0,3));let l=`${s} ${i}`;if(r.getMonth()!==a.getMonth()){const f=r.getFullYear();let u=this.texts.months[r.getMonth()];this.xsmall&&(u=u.substring(0,3)),i===f?l=`${s} - ${u} ${i}`:this.small?l=`${s.substring(0,3)} ${i} - ${u.substring(0,3)} ${f}`:l=`${s} ${i} - ${u} ${f}`}t=`${this.texts.week} ${e.getWeek(this.startWeekOnSunday?e.addDays(a,1):a)} (${l})`;break}case"day":{t=this.utils.date.formatDate(a,this.texts.dateFormat,this.texts);break}}return t},viewCells(){const e=this.utils.date;let t=[],a=null,c=!1;this.watchRealTime||(this.now=new Date);const n=this.now;switch(this.view.id){case"years":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(25)).map((r,i)=>{const s=new Date(a+i,0,1),l=new Date(a+i+1,0,1);return l.setSeconds(-1),{startDate:s,formattedDate:e.formatDateLite(s),endDate:l,content:a+i,current:a+i===n.getFullYear()}});break}case"year":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(12)).map((r,i)=>{const s=new Date(a,i,1),l=new Date(a,i+1,1);return l.setSeconds(-1),{startDate:s,formattedDate:e.formatDateLite(s),endDate:l,content:this.xsmall?this.months[i].label.substr(0,3):this.months[i].label,current:i===n.getMonth()&&a===n.getFullYear()}});break}case"month":{const r=this.view.startDate.getMonth(),i=new Date(this.view.firstCellDate);c=!1,t=Array.apply(null,Array(42)).map((s,l)=>{const f=e.addDays(i,l),u=new Date(f);u.setHours(23,59,59,0);const h=!c&&e.isToday(f)&&!c++;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,content:f.getDate(),today:h,outOfScope:f.getMonth()!==r,class:`vuecal__cell--day${f.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter(s=>{const l=s.startDate.getDay()||7;return!(this.hideWeekends&&l>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(l))}));break}case"week":{c=!1;const r=this.view.startDate,i=this.weekDays;t=i.map((s,l)=>{const f=e.addDays(r,this.startWeekOnSunday&&this.hideWeekends?l-1:l),u=new Date(f);u.setHours(23,59,59,0);const h=(f.getDay()||7)-1;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,today:!c&&e.isToday(f)&&!c++,specialHours:this.specialDayHours[h]||[]}}).filter((s,l)=>!i[l].hide);break}case"day":{const r=this.view.startDate,i=new Date(this.view.startDate);i.setHours(23,59,59,0);const s=(r.getDay()||7)-1;t=[{startDate:r,formattedDate:e.formatDateLite(r),endDate:i,today:e.isToday(r),specialHours:this.specialDayHours[s]||[]}];break}}return t},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((e,t)=>e+t.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:e,dragAnEvent:t,dragCreateAnEvent:a}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":e._eid,"vuecal--drag-creating-event":a.event,"vuecal--dragging-event":t._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(e,t){this.updateMutableEvents(e),this.addEventsToView()},deep:!0},locale(e){this.loadLocale(e)},selectedDate(e){this.updateSelectedDate(e)},activeView(e){this.switchView(e)}}},ah1=cn(th1,[["render",eh1]]);function ZV(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function B8(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ZV(Object(a),!0).forEach(function(c){ch1(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ZV(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function ch1(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function XV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,c)=>(t.includes(c)||(a[c]=o.unref(e[c])),a),{})}function Xl(e){return typeof e=="function"}function nh1(e){return o.isReactive(e)||o.isReadonly(e)}function GO(e,t,a){let c=e;const n=t.split(".");for(let r=0;r<n.length;r++){if(!c[n[r]])return a;c=c[n[r]]}return c}function Yd(e,t,a){return o.computed(()=>e.some(c=>GO(t,c,{[a]:!1})[a]))}function KV(e,t,a){return o.computed(()=>e.reduce((c,n)=>{const r=GO(t,n,{[a]:!1})[a]||[];return c.concat(r)},[]))}function ZO(e,t,a,c){return e.call(c,o.unref(t),o.unref(a),c)}function XO(e){return e.$valid!==void 0?!e.$valid:!e}function rh1(e,t,a,c,n,r,i){let{$lazy:s,$rewardEarly:l}=n,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,h=arguments.length>9?arguments[9]:void 0,d=arguments.length>10?arguments[10]:void 0;const m=o.ref(!!c.value),v=o.ref(0);a.value=!1;const p=o.watch([t,c].concat(f,d),()=>{if(s&&!c.value||l&&!h.value&&!a.value)return;let g;try{g=ZO(e,t,u,i)}catch(y){g=Promise.reject(y)}v.value++,a.value=!!v.value,m.value=!1,Promise.resolve(g).then(y=>{v.value--,a.value=!!v.value,r.value=y,m.value=XO(y)}).catch(y=>{v.value--,a.value=!!v.value,r.value=y,m.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:m,$unwatch:p}}function ih1(e,t,a,c,n,r,i,s){let{$lazy:l,$rewardEarly:f}=c;const u=()=>({}),h=o.computed(()=>{if(l&&!a.value||f&&!s.value)return!1;let d=!0;try{const m=ZO(e,t,i,r);n.value=m,d=XO(m)}catch(m){n.value=m}return d});return{$unwatch:u,$invalid:h}}function sh1(e,t,a,c,n,r,i,s,l,f,u){const h=o.ref(!1),d=e.$params||{},m=o.ref(null);let v,p;e.$async?{$invalid:v,$unwatch:p}=rh1(e.$validator,t,h,a,c,m,n,e.$watchTargets,l,f,u):{$invalid:v,$unwatch:p}=ih1(e.$validator,t,a,c,m,n,l,f);const g=e.$message;return{$message:Xl(g)?o.computed(()=>g(XV({$pending:h,$invalid:v,$params:XV(d),$model:t,$response:m,$validator:r,$propertyPath:s,$property:i}))):g||"",$params:d,$pending:h,$invalid:v,$response:m,$unwatch:p}}function oh1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=o.unref(e),a=Object.keys(t),c={},n={},r={};let i=null;return a.forEach(s=>{const l=t[s];switch(!0){case Xl(l.$validator):c[s]=l;break;case Xl(l):c[s]={$validator:l};break;case s==="$validationGroups":i=l;break;case s.startsWith("$"):r[s]=l;break;default:n[s]=l}}),{rules:c,nestedValidators:n,config:r,validationGroups:i}}const lh1="__root";function fh1(e,t,a,c,n,r,i,s,l){const f=Object.keys(e),u=c.get(n,e),h=o.ref(!1),d=o.ref(!1),m=o.ref(0);if(u){if(!u.$partial)return u;u.$unwatch(),h.value=u.$dirty.value}const v={$dirty:h,$path:n,$touch:()=>{h.value||(h.value=!0)},$reset:()=>{h.value&&(h.value=!1)},$commit:()=>{}};return f.length?(f.forEach(p=>{v[p]=sh1(e[p],t,v.$dirty,r,i,p,a,n,l,d,m)}),v.$externalResults=o.computed(()=>s.value?[].concat(s.value).map((p,g)=>({$propertyPath:n,$property:a,$validator:"$externalResults",$uid:`${n}-externalResult-${g}`,$message:p,$params:{},$response:null,$pending:!1})):[]),v.$invalid=o.computed(()=>{const p=f.some(g=>o.unref(v[g].$invalid));return d.value=p,!!v.$externalResults.value.length||p}),v.$pending=o.computed(()=>f.some(p=>o.unref(v[p].$pending))),v.$error=o.computed(()=>v.$dirty.value?v.$pending.value||v.$invalid.value:!1),v.$silentErrors=o.computed(()=>f.filter(p=>o.unref(v[p].$invalid)).map(p=>{const g=v[p];return o.reactive({$propertyPath:n,$property:a,$validator:p,$uid:`${n}-${p}`,$message:g.$message,$params:g.$params,$response:g.$response,$pending:g.$pending})}).concat(v.$externalResults.value)),v.$errors=o.computed(()=>v.$dirty.value?v.$silentErrors.value:[]),v.$unwatch=()=>f.forEach(p=>{v[p].$unwatch()}),v.$commit=()=>{d.value=!0,m.value=Date.now()},c.set(n,e,v),v):(u&&c.set(n,e,v),v)}function uh1(e,t,a,c,n,r,i){const s=Object.keys(e);return s.length?s.reduce((l,f)=>(l[f]=Vv({validations:e[f],state:t,key:f,parentKey:a,resultsCache:c,globalConfig:n,instance:r,externalResults:i}),l),{}):{}}function hh1(e,t,a){const c=o.computed(()=>[t,a].filter(v=>v).reduce((v,p)=>v.concat(Object.values(o.unref(p))),[])),n=o.computed({get(){return e.$dirty.value||(c.value.length?c.value.every(v=>v.$dirty):!1)},set(v){e.$dirty.value=v}}),r=o.computed(()=>{const v=o.unref(e.$silentErrors)||[],p=c.value.filter(g=>(o.unref(g).$silentErrors||[]).length).reduce((g,y)=>g.concat(...y.$silentErrors),[]);return v.concat(p)}),i=o.computed(()=>{const v=o.unref(e.$errors)||[],p=c.value.filter(g=>(o.unref(g).$errors||[]).length).reduce((g,y)=>g.concat(...y.$errors),[]);return v.concat(p)}),s=o.computed(()=>c.value.some(v=>v.$invalid)||o.unref(e.$invalid)||!1),l=o.computed(()=>c.value.some(v=>o.unref(v.$pending))||o.unref(e.$pending)||!1),f=o.computed(()=>c.value.some(v=>v.$dirty)||c.value.some(v=>v.$anyDirty)||n.value),u=o.computed(()=>n.value?l.value||s.value:!1),h=()=>{e.$touch(),c.value.forEach(v=>{v.$touch()})},d=()=>{e.$commit(),c.value.forEach(v=>{v.$commit()})},m=()=>{e.$reset(),c.value.forEach(v=>{v.$reset()})};return c.value.length&&c.value.every(v=>v.$dirty)&&h(),{$dirty:n,$errors:i,$invalid:s,$anyDirty:f,$error:u,$pending:l,$touch:h,$reset:m,$silentErrors:r,$commit:d}}function Vv(e){let{validations:t,state:a,key:c,parentKey:n,childResults:r,resultsCache:i,globalConfig:s={},instance:l,externalResults:f}=e;const u=n?`${n}.${c}`:c,{rules:h,nestedValidators:d,config:m,validationGroups:v}=oh1(t),p=B8(B8({},s),m),g=c?o.computed(()=>{const U=o.unref(a);return U?o.unref(U[c]):void 0}):a,y=B8({},o.unref(f)||{}),b=o.computed(()=>{const U=o.unref(f);return c?U?o.unref(U[c]):void 0:U}),x=fh1(h,g,c,i,u,p,l,b,a),z=uh1(d,g,u,i,p,l,b),M={};v&&Object.entries(v).forEach(U=>{let[D,T]=U;M[D]={$invalid:Yd(T,z,"$invalid"),$error:Yd(T,z,"$error"),$pending:Yd(T,z,"$pending"),$errors:KV(T,z,"$errors"),$silentErrors:KV(T,z,"$silentErrors")}});const{$dirty:H,$errors:C,$invalid:w,$anyDirty:L,$error:S,$pending:_,$touch:V,$reset:O,$silentErrors:j,$commit:N}=hh1(x,z,r),B=c?o.computed({get:()=>o.unref(g),set:U=>{H.value=!0;const D=o.unref(a),T=o.unref(f);T&&(T[c]=y[c]),o.isRef(D[c])?D[c].value=U:D[c]=U}}):null;c&&p.$autoDirty&&o.watch(g,()=>{H.value||V();const U=o.unref(f);U&&(U[c]=y[c])},{flush:"sync"});async function F(){return V(),p.$rewardEarly&&(N(),await o.nextTick()),await o.nextTick(),new Promise(U=>{if(!_.value)return U(!w.value);const D=o.watch(_,()=>{U(!w.value),D()})})}function X(U){return(r.value||{})[U]}function Y(){o.isRef(f)?f.value=y:Object.keys(y).length===0?Object.keys(f).forEach(U=>{delete f[U]}):Object.assign(f,y)}return o.reactive(B8(B8(B8({},x),{},{$model:B,$dirty:H,$error:S,$errors:C,$invalid:w,$anyDirty:L,$pending:_,$touch:V,$reset:O,$path:u||lh1,$silentErrors:j,$validate:F,$commit:N},r&&{$getResultsForChild:X,$clearExternalResults:Y,$validationGroups:M}),z))}class dh1{constructor(){this.storage=new Map}set(t,a,c){this.storage.set(t,{rules:a,result:c})}checkRulesValidity(t,a,c){const n=Object.keys(c),r=Object.keys(a);return r.length!==n.length||!r.every(s=>n.includes(s))?!1:r.every(s=>a[s].$params?Object.keys(a[s].$params).every(l=>o.unref(c[s].$params[l])===o.unref(a[s].$params[l])):!0)}get(t,a){const c=this.storage.get(t);if(!c)return;const{rules:n,result:r}=c,i=this.checkRulesValidity(t,a,n),s=r.$unwatch?r.$unwatch:()=>({});return i?r:{$dirty:r.$dirty,$partial:!0,$unwatch:s}}}const rl={COLLECT_ALL:!0,COLLECT_NONE:!1},QV=Symbol("vuelidate#injectChildResults"),JV=Symbol("vuelidate#removeChildResults");function mh1(e){let{$scope:t,instance:a}=e;const c={},n=o.ref([]),r=o.computed(()=>n.value.reduce((u,h)=>(u[h]=o.unref(c[h]),u),{}));function i(u,h){let{$registerAs:d,$scope:m,$stopPropagation:v}=h;v||t===rl.COLLECT_NONE||m===rl.COLLECT_NONE||t!==rl.COLLECT_ALL&&t!==m||(c[d]=u,n.value.push(d))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],i);function s(u){n.value=n.value.filter(h=>h!==u),delete c[u]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],s);const l=o.inject(QV,[]);o.provide(QV,a.__vuelidateInjectInstances);const f=o.inject(JV,[]);return o.provide(JV,a.__vuelidateRemoveInstances),{childResults:r,sendValidationResultsToParent:l,removeValidationResultsFromParent:f}}function KO(e){return new Proxy(e,{get(t,a){return typeof t[a]=="object"?KO(t[a]):o.computed(()=>t[a])}})}let ew=0;function QO(e,t){var a;let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(c=e,e=void 0,t=void 0);let{$registerAs:n,$scope:r=rl.COLLECT_ALL,$stopPropagation:i,$externalResults:s,currentVueInstance:l}=c;const f=l||((a=o.getCurrentInstance())===null||a===void 0?void 0:a.proxy),u=f?f.$options:{};n||(ew+=1,n=`_vuelidate_${ew}`);const h=o.ref({}),d=new dh1,{childResults:m,sendValidationResultsToParent:v,removeValidationResultsFromParent:p}=f?mh1({$scope:r,instance:f}):{childResults:o.ref({})};if(!e&&u.validations){const g=u.validations;t=o.ref({}),o.onBeforeMount(()=>{t.value=f,o.watch(()=>Xl(g)?g.call(t.value,new KO(t.value)):g,y=>{h.value=Vv({validations:y,state:t,childResults:m,resultsCache:d,globalConfig:c,instance:f,externalResults:s||f.vuelidateExternalResults})},{immediate:!0})}),c=u.validationsConfig||c}else{const g=o.isRef(e)||nh1(e)?e:o.reactive(e||{});o.watch(g,y=>{h.value=Vv({validations:y,state:t,childResults:m,resultsCache:d,globalConfig:c,instance:f??{},externalResults:s})},{immediate:!0})}return f&&(v.forEach(g=>g(h,{$registerAs:n,$scope:r,$stopPropagation:i})),o.onBeforeUnmount(()=>p.forEach(g=>g(n)))),o.computed(()=>B8(B8({},o.unref(h.value)),m.value))}var ph1=Object.defineProperty,vh1=(e,t,a)=>t in e?ph1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A1=(e,t,a)=>(vh1(e,typeof t!="symbol"?t+"":t,a),a);const gh1={first:{light:"#2a2a2a",dark:"#f5f5f5",contrast:{light:"#fcfcfc",dark:"#202020"}},second:{light:"#363636",dark:"#dfe0df",contrast:{light:"#f4f4f4",dark:"#2b2b2b"}},third:{light:"#484848",dark:"#cfcfcf",contrast:{light:"#e8e8e8",dark:"#262626"}},primary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},secondary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},success:{light:"#4caf50",dark:"#6bbf55",contrast:{light:"#ffffff",dark:"#ffffff"}},warning:{light:"#ff9800",dark:"#ff8f1f",contrast:{light:"#ffffff",dark:"#ffffff"}},danger:{light:"#f44336",dark:"#ff5e50",contrast:{light:"#ffffff",dark:"#ffffff"}},grey:{light:"#6d6d6d",dark:"#a3a3a3",contrast:{light:"#ffffff",dark:"#ffffff"}},red:{light:"#e91e63",dark:"#e64a77",contrast:{light:"#ffffff",dark:"#ffffff"}},purple:{light:"#9c27b0",dark:"#8e24aa",contrast:{light:"#ffffff",dark:"#ffffff"}},sky:{light:"#00acc1",dark:"#40c4ff",contrast:{light:"#ffffff",dark:"#ffffff"}},aqua:{light:"#00bcd4",dark:"#4db6ac",contrast:{light:"#ffffff",dark:"#ffffff"}},beige:{light:"#f4e1a1",dark:"#ffd54f",contrast:{light:"#ffffff",dark:"#ffffff"}},info:{light:"#039be5",dark:"#29b6f6",contrast:{light:"#ffffff",dark:"#ffffff"}},link:{light:"#1976d2",dark:"#2196f3",contrast:{light:"#ffffff",dark:"#ffffff"}},error:{light:"#d32f2f",dark:"#f44336",contrast:{light:"#ffffff",dark:"#ffffff"}},required:{light:"#e53935",dark:"#ff5252",contrast:{light:"#ffffff",dark:"#ffffff"}},overlay:{light:"#00000080",dark:"#00000055",contrast:{light:"#ffffff",dark:"#ffffff"}}};var yh1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bh1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JO={exports:{}};(function(e,t){(function(a,c){e.exports=c()})(self,()=>(()=>{var a={423:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeDuplicateItems=void 0,i.removeDuplicateItems=function(s,l="id"){return s.filter((f,u,h)=>u===h.findIndex(d=>d[l]===f[l]))}},621:function(r,i,s){var l=this&&this.__awaiter||function(h,d,m,v){return new(m||(m=Promise))(function(p,g){function y(z){try{x(v.next(z))}catch(M){g(M)}}function b(z){try{x(v.throw(z))}catch(M){g(M)}}function x(z){var M;z.done?p(z.value):(M=z.value,M instanceof m?M:new m(function(H){H(M)})).then(y,b)}x((v=v.apply(h,d||[])).next())})},f=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(i,"__esModule",{value:!0}),i.getCoinValueInUsd=void 0;const u=f(s(425));i.getCoinValueInUsd=function(h){return l(this,void 0,void 0,function*(){try{return h==="ARS"?1/(yield u.default.get("https://dolarapi.com/v1/dolares/blue")).data.venta:["BTC","ETH","LTC","USDT"].includes(h)?(yield u.default.get("https://api.coincap.io/v2/assets")).data.data.find(d=>d.symbol===h).priceUsd:1/(yield u.default.get("https://v6.exchangerate-api.com/v6/65057543fdcbb1629e21c3a2/latest/USD")).data.conversion_rates[h]}catch{throw new Error(`Unable to get the value of ${h} at this time. Try again later.`)}})}},985:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getNextDayStartDate=i.getPreviousDayStartDate=i.getCurrentDayStartDate=i.getNextMonthStartDate=i.getPreviousMonthStartDate=i.getCurrentMonthStartDate=i.getNextYearStartDate=i.getPreviousYearStartDate=i.getCurrentYearStartDate=i.getIsoTime=i.getIsoDate=void 0,i.getIsoDate=function(s){return(s||new Date).toISOString().split("T")[0]},i.getIsoTime=function(s){return(s||new Date).toISOString().split("T")[1]},i.getCurrentYearStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),0,1)},i.getPreviousYearStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear()-1,0,1)},i.getNextYearStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear()+1,0,1)},i.getCurrentMonthStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),1)},i.getPreviousMonthStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth()-1,1)},i.getNextMonthStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth()+1,1)},i.getCurrentDayStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate())},i.getPreviousDayStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-1)},i.getNextDayStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+1)}},905:(r,i)=>{function s(l,f,u="round"){return Math[u](l/f)*f}Object.defineProperty(i,"__esModule",{value:!0}),i.roundDecimals=i.roundNumber=i.multiplyWithUnits=i.sumWithUnits=void 0,i.sumWithUnits=function(l,...f){var u;const h=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${[l,...f].reduce((d,m)=>d+parseFloat(m),0)}${h}`},i.multiplyWithUnits=function(l,f){var u;const h=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${parseFloat(l)*f}${h}`},i.roundNumber=s,i.roundDecimals=function(l,f=0,u="round"){return s(l,1/Math.pow(10,f),u)}},563:(r,i)=>{function s(u){return JSON.parse(JSON.stringify(u))}function l(u){return!(!u||typeof u!="object"||Array.isArray(u))}function f(u,h){for(const d in h)l(h[d])?(u[d]||(u[d]={}),f(u[d],h[d])):u[d]=h[d]}Object.defineProperty(i,"__esModule",{value:!0}),i.filterKeysDeep=i.filterKeys=i.mergeDeep=i.merge=i.isObject=i.removeProps=i.copyAvailableFields=i.cloneObjectProperties=void 0,i.cloneObjectProperties=s,i.copyAvailableFields=function u(h,d){if(h&&d)for(const m in d)d.hasOwnProperty(m)&&h.hasOwnProperty(m)&&(typeof d[m]=="object"&&d[m]!==null?u(h[m],d[m]):h[m]=d[m])},i.removeProps=function(u,h){const d=s(u);return(Array.isArray(h)?h:[h]).forEach(m=>delete d[m]),d},i.isObject=l,i.merge=f,i.mergeDeep=function(u,h){const d={};return f(d,u),f(d,h),d},i.filterKeys=function(u,h){const d={},m=Object.keys(u);for(const v of m)d[v]=h[v];return d},i.filterKeysDeep=function u(h,d){const m={},v=Object.keys(h);for(const p of v)l(h[p])&&l(d[p])?m[p]=u(h[p],d[p]):m[p]=d[p];return m}},849:(r,i)=>{function s(l){return l.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}Object.defineProperty(i,"__esModule",{value:!0}),i.accentMap=i.generateCode=i.normalizeText=i.camelToKebab=i.camelToUpperSnake=i.camelToSnake=i.getFirstChartInUppercase=i.getFirstChartInLowercase=void 0,i.getFirstChartInLowercase=function(l){return`${l.charAt(0).toLowerCase()}${l.slice(1)}`},i.getFirstChartInUppercase=function(l){return`${l.charAt(0).toUpperCase()}${l.slice(1)}`},i.camelToSnake=s,i.camelToUpperSnake=function(l){return s(l).toUpperCase()},i.camelToKebab=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([A-Z])/g,"-$1").replace(/^-/,"").replace(/-+/g,"-").toLowerCase()},i.normalizeText=function(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},i.generateCode=function(l){const f=Math.pow(10,l-1),u=Math.pow(10,l)-1;return Math.floor(f+Math.random()*(u-f)).toString()},i.accentMap={a:"[aáàäâãå]",á:"[aáàäâãå]",à:"[aáàäâãå]",ä:"[aáàäâãå]",â:"[aáàäâãå]",ã:"[aáàäâãå]",å:"[aáàäâãå]",e:"[eéèëê]",é:"[eéèëê]",è:"[eéèëê]",ë:"[eéèëê]",ê:"[eéèëê]",i:"[iíìïî]",í:"[iíìïî]",ì:"[iíìïî]",ï:"[iíìïî]",î:"[iíìïî]",o:"[oóòöôõ]",ó:"[oóòöôõ]",ò:"[oóòöôõ]",ö:"[oóòöôõ]",ô:"[oóòöôõ]",õ:"[oóòöôõ]",u:"[uúùüû]",ú:"[uúùüû]",ù:"[uúùüû]",ü:"[uúùüû]",û:"[uúùüû]",n:"[nñ]",ñ:"[nñ]",c:"[cç]",ç:"[cç]"}},927:function(r,i,s){var l=this&&this.__createBinding||(Object.create?function(u,h,d,m){m===void 0&&(m=d);var v=Object.getOwnPropertyDescriptor(h,d);v&&!("get"in v?!h.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(u,m,v)}:function(u,h,d,m){m===void 0&&(m=d),u[m]=h[d]}),f=this&&this.__exportStar||function(u,h){for(var d in u)d==="default"||Object.prototype.hasOwnProperty.call(h,d)||l(h,u,d)};Object.defineProperty(i,"__esModule",{value:!0}),f(s(423),i),f(s(621),i),f(s(985),i),f(s(905),i),f(s(563),i),f(s(849),i),f(s(574),i)},574:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0})},425:(r,i,s)=>{function l(P,E){return function(){return P.apply(E,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,h=(d=Object.create(null),P=>{const E=f.call(P);return d[E]||(d[E]=E.slice(8,-1).toLowerCase())});var d;const m=P=>(P=P.toLowerCase(),E=>h(E)===P),v=P=>E=>typeof E===P,{isArray:p}=Array,g=v("undefined"),y=m("ArrayBuffer"),b=v("string"),x=v("function"),z=v("number"),M=P=>P!==null&&typeof P=="object",H=P=>{if(h(P)!=="object")return!1;const E=u(P);return!(E!==null&&E!==Object.prototype&&Object.getPrototypeOf(E)!==null||Symbol.toStringTag in P||Symbol.iterator in P)},C=m("Date"),w=m("File"),L=m("Blob"),S=m("FileList"),_=m("URLSearchParams");function V(P,E,{allOwnKeys:I=!1}={}){if(P==null)return;let Z,Q;if(typeof P!="object"&&(P=[P]),p(P))for(Z=0,Q=P.length;Z<Q;Z++)E.call(null,P[Z],Z,P);else{const c1=I?Object.getOwnPropertyNames(P):Object.keys(P),t1=c1.length;let M1;for(Z=0;Z<t1;Z++)M1=c1[Z],E.call(null,P[M1],M1,P)}}function O(P,E){E=E.toLowerCase();const I=Object.keys(P);let Z,Q=I.length;for(;Q-- >0;)if(Z=I[Q],E===Z.toLowerCase())return Z;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:s.g,N=P=>!g(P)&&P!==j,B=(F=typeof Uint8Array<"u"&&u(Uint8Array),P=>F&&P instanceof F);var F;const X=m("HTMLFormElement"),Y=(({hasOwnProperty:P})=>(E,I)=>P.call(E,I))(Object.prototype),U=m("RegExp"),D=(P,E)=>{const I=Object.getOwnPropertyDescriptors(P),Z={};V(I,(Q,c1)=>{let t1;(t1=E(Q,c1,P))!==!1&&(Z[c1]=t1||Q)}),Object.defineProperties(P,Z)},T="abcdefghijklmnopqrstuvwxyz",k="0123456789",q={DIGIT:k,ALPHA:T,ALPHA_DIGIT:T+T.toUpperCase()+k},G=m("AsyncFunction");var A={isArray:p,isArrayBuffer:y,isBuffer:function(P){return P!==null&&!g(P)&&P.constructor!==null&&!g(P.constructor)&&x(P.constructor.isBuffer)&&P.constructor.isBuffer(P)},isFormData:P=>{let E;return P&&(typeof FormData=="function"&&P instanceof FormData||x(P.append)&&((E=h(P))==="formdata"||E==="object"&&x(P.toString)&&P.toString()==="[object FormData]"))},isArrayBufferView:function(P){let E;return E=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(P):P&&P.buffer&&y(P.buffer),E},isString:b,isNumber:z,isBoolean:P=>P===!0||P===!1,isObject:M,isPlainObject:H,isUndefined:g,isDate:C,isFile:w,isBlob:L,isRegExp:U,isFunction:x,isStream:P=>M(P)&&x(P.pipe),isURLSearchParams:_,isTypedArray:B,isFileList:S,forEach:V,merge:function P(){const{caseless:E}=N(this)&&this||{},I={},Z=(Q,c1)=>{const t1=E&&O(I,c1)||c1;H(I[t1])&&H(Q)?I[t1]=P(I[t1],Q):H(Q)?I[t1]=P({},Q):p(Q)?I[t1]=Q.slice():I[t1]=Q};for(let Q=0,c1=arguments.length;Q<c1;Q++)arguments[Q]&&V(arguments[Q],Z);return I},extend:(P,E,I,{allOwnKeys:Z}={})=>(V(E,(Q,c1)=>{I&&x(Q)?P[c1]=l(Q,I):P[c1]=Q},{allOwnKeys:Z}),P),trim:P=>P.trim?P.trim():P.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:P=>(P.charCodeAt(0)===65279&&(P=P.slice(1)),P),inherits:(P,E,I,Z)=>{P.prototype=Object.create(E.prototype,Z),P.prototype.constructor=P,Object.defineProperty(P,"super",{value:E.prototype}),I&&Object.assign(P.prototype,I)},toFlatObject:(P,E,I,Z)=>{let Q,c1,t1;const M1={};if(E=E||{},P==null)return E;do{for(Q=Object.getOwnPropertyNames(P),c1=Q.length;c1-- >0;)t1=Q[c1],Z&&!Z(t1,P,E)||M1[t1]||(E[t1]=P[t1],M1[t1]=!0);P=I!==!1&&u(P)}while(P&&(!I||I(P,E))&&P!==Object.prototype);return E},kindOf:h,kindOfTest:m,endsWith:(P,E,I)=>{P=String(P),(I===void 0||I>P.length)&&(I=P.length),I-=E.length;const Z=P.indexOf(E,I);return Z!==-1&&Z===I},toArray:P=>{if(!P)return null;if(p(P))return P;let E=P.length;if(!z(E))return null;const I=new Array(E);for(;E-- >0;)I[E]=P[E];return I},forEachEntry:(P,E)=>{const I=(P&&P[Symbol.iterator]).call(P);let Z;for(;(Z=I.next())&&!Z.done;){const Q=Z.value;E.call(P,Q[0],Q[1])}},matchAll:(P,E)=>{let I;const Z=[];for(;(I=P.exec(E))!==null;)Z.push(I);return Z},isHTMLForm:X,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:D,freezeMethods:P=>{D(P,(E,I)=>{if(x(P)&&["arguments","caller","callee"].indexOf(I)!==-1)return!1;const Z=P[I];x(Z)&&(E.enumerable=!1,"writable"in E?E.writable=!1:E.set||(E.set=()=>{throw Error("Can not rewrite read-only method '"+I+"'")}))})},toObjectSet:(P,E)=>{const I={},Z=Q=>{Q.forEach(c1=>{I[c1]=!0})};return p(P)?Z(P):Z(String(P).split(E)),I},toCamelCase:P=>P.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(E,I,Z){return I.toUpperCase()+Z}),noop:()=>{},toFiniteNumber:(P,E)=>(P=+P,Number.isFinite(P)?P:E),findKey:O,global:j,isContextDefined:N,ALPHABET:q,generateString:(P=16,E=q.ALPHA_DIGIT)=>{let I="";const{length:Z}=E;for(;P--;)I+=E[Math.random()*Z|0];return I},isSpecCompliantForm:function(P){return!!(P&&x(P.append)&&P[Symbol.toStringTag]==="FormData"&&P[Symbol.iterator])},toJSONObject:P=>{const E=new Array(10),I=(Z,Q)=>{if(M(Z)){if(E.indexOf(Z)>=0)return;if(!("toJSON"in Z)){E[Q]=Z;const c1=p(Z)?[]:{};return V(Z,(t1,M1)=>{const V1=I(t1,Q+1);!g(V1)&&(c1[M1]=V1)}),E[Q]=void 0,c1}}return Z};return I(P,0)},isAsyncFn:G,isThenable:P=>P&&(M(P)||x(P))&&x(P.then)&&x(P.catch)};function R(P,E,I,Z,Q){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=P,this.name="AxiosError",E&&(this.code=E),I&&(this.config=I),Z&&(this.request=Z),Q&&(this.response=Q)}A.inherits(R,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const K=R.prototype,a1={};function J(P){return A.isPlainObject(P)||A.isArray(P)}function s1(P){return A.endsWith(P,"[]")?P.slice(0,-2):P}function W(P,E,I){return P?P.concat(E).map(function(Z,Q){return Z=s1(Z),!I&&Q?"["+Z+"]":Z}).join(I?".":""):E}["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(P=>{a1[P]={value:P}}),Object.defineProperties(R,a1),Object.defineProperty(K,"isAxiosError",{value:!0}),R.from=(P,E,I,Z,Q,c1)=>{const t1=Object.create(K);return A.toFlatObject(P,t1,function(M1){return M1!==Error.prototype},M1=>M1!=="isAxiosError"),R.call(t1,P.message,E,I,Z,Q),t1.cause=P,t1.name=P.name,c1&&Object.assign(t1,c1),t1};const u1=A.toFlatObject(A,{},null,function(P){return/^is[A-Z]/.test(P)});function z1(P,E,I){if(!A.isObject(P))throw new TypeError("target must be an object");E=E||new FormData;const Z=(I=A.toFlatObject(I,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O1,G1){return!A.isUndefined(G1[O1])})).metaTokens,Q=I.visitor||w1,c1=I.dots,t1=I.indexes,M1=(I.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(E);if(!A.isFunction(Q))throw new TypeError("visitor must be a function");function V1(O1){if(O1===null)return"";if(A.isDate(O1))return O1.toISOString();if(!M1&&A.isBlob(O1))throw new R("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(O1)||A.isTypedArray(O1)?M1&&typeof Blob=="function"?new Blob([O1]):Buffer.from(O1):O1}function w1(O1,G1,P1){let Q1=O1;if(O1&&!P1&&typeof O1=="object"){if(A.endsWith(G1,"{}"))G1=Z?G1:G1.slice(0,-2),O1=JSON.stringify(O1);else if(A.isArray(O1)&&function(p2){return A.isArray(p2)&&!p2.some(J)}(O1)||(A.isFileList(O1)||A.endsWith(G1,"[]"))&&(Q1=A.toArray(O1)))return G1=s1(G1),Q1.forEach(function(p2,Z2){!A.isUndefined(p2)&&p2!==null&&E.append(t1===!0?W([G1],Z2,c1):t1===null?G1:G1+"[]",V1(p2))}),!1}return!!J(O1)||(E.append(W(P1,G1,c1),V1(O1)),!1)}const b1=[],D1=Object.assign(u1,{defaultVisitor:w1,convertValue:V1,isVisitable:J});if(!A.isObject(P))throw new TypeError("data must be an object");return function O1(G1,P1){if(!A.isUndefined(G1)){if(b1.indexOf(G1)!==-1)throw Error("Circular reference detected in "+P1.join("."));b1.push(G1),A.forEach(G1,function(Q1,p2){(!(A.isUndefined(Q1)||Q1===null)&&Q.call(E,Q1,A.isString(p2)?p2.trim():p2,P1,D1))===!0&&O1(Q1,P1?P1.concat(p2):[p2])}),b1.pop()}}(P),E}function l1(P){const E={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(P).replace(/[!'()~]|%20|%00/g,function(I){return E[I]})}function e1(P,E){this._pairs=[],P&&z1(P,this,E)}const o1=e1.prototype;function r1(P){return encodeURIComponent(P).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d1(P,E,I){if(!E)return P;const Z=I&&I.encode||r1,Q=I&&I.serialize;let c1;if(c1=Q?Q(E,I):A.isURLSearchParams(E)?E.toString():new e1(E,I).toString(Z),c1){const t1=P.indexOf("#");t1!==-1&&(P=P.slice(0,t1)),P+=(P.indexOf("?")===-1?"?":"&")+c1}return P}o1.append=function(P,E){this._pairs.push([P,E])},o1.toString=function(P){const E=P?function(I){return P.call(this,I,l1)}:l1;return this._pairs.map(function(I){return E(I[0])+"="+E(I[1])},"").join("&")};var x1=class{constructor(){this.handlers=[]}use(P,E,I){return this.handlers.push({fulfilled:P,rejected:E,synchronous:!!I&&I.synchronous,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(P){this.handlers[P]&&(this.handlers[P]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(P){A.forEach(this.handlers,function(E){E!==null&&P(E)})}},p1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:e1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]};const E1=typeof window<"u"&&typeof document<"u",R1=(B1=typeof navigator<"u"&&navigator.product,E1&&["ReactNative","NativeScript","NS"].indexOf(B1)<0);var B1;const W1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Y1={...Object.freeze({__proto__:null,hasBrowserEnv:E1,hasStandardBrowserWebWorkerEnv:W1,hasStandardBrowserEnv:R1}),...C1};function c2(P){function E(I,Z,Q,c1){let t1=I[c1++];if(t1==="__proto__")return!0;const M1=Number.isFinite(+t1),V1=c1>=I.length;return t1=!t1&&A.isArray(Q)?Q.length:t1,V1?(A.hasOwnProp(Q,t1)?Q[t1]=[Q[t1],Z]:Q[t1]=Z,!M1):(Q[t1]&&A.isObject(Q[t1])||(Q[t1]=[]),E(I,Z,Q[t1],c1)&&A.isArray(Q[t1])&&(Q[t1]=function(w1){const b1={},D1=Object.keys(w1);let O1;const G1=D1.length;let P1;for(O1=0;O1<G1;O1++)P1=D1[O1],b1[P1]=w1[P1];return b1}(Q[t1])),!M1)}if(A.isFormData(P)&&A.isFunction(P.entries)){const I={};return A.forEachEntry(P,(Z,Q)=>{E(function(c1){return A.matchAll(/\w+|\[(\w*)]/g,c1).map(t1=>t1[0]==="[]"?"":t1[1]||t1[0])}(Z),Q,I,0)}),I}return null}const i2={transitional:p1,adapter:["xhr","http"],transformRequest:[function(P,E){const I=E.getContentType()||"",Z=I.indexOf("application/json")>-1,Q=A.isObject(P);if(Q&&A.isHTMLForm(P)&&(P=new FormData(P)),A.isFormData(P))return Z?JSON.stringify(c2(P)):P;if(A.isArrayBuffer(P)||A.isBuffer(P)||A.isStream(P)||A.isFile(P)||A.isBlob(P))return P;if(A.isArrayBufferView(P))return P.buffer;if(A.isURLSearchParams(P))return E.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),P.toString();let c1;if(Q){if(I.indexOf("application/x-www-form-urlencoded")>-1)return function(t1,M1){return z1(t1,new Y1.classes.URLSearchParams,Object.assign({visitor:function(V1,w1,b1,D1){return Y1.isNode&&A.isBuffer(V1)?(this.append(w1,V1.toString("base64")),!1):D1.defaultVisitor.apply(this,arguments)}},M1))}(P,this.formSerializer).toString();if((c1=A.isFileList(P))||I.indexOf("multipart/form-data")>-1){const t1=this.env&&this.env.FormData;return z1(c1?{"files[]":P}:P,t1&&new t1,this.formSerializer)}}return Q||Z?(E.setContentType("application/json",!1),function(t1,M1,V1){if(A.isString(t1))try{return(0,JSON.parse)(t1),A.trim(t1)}catch(w1){if(w1.name!=="SyntaxError")throw w1}return(0,JSON.stringify)(t1)}(P)):P}],transformResponse:[function(P){const E=this.transitional||i2.transitional,I=E&&E.forcedJSONParsing,Z=this.responseType==="json";if(P&&A.isString(P)&&(I&&!this.responseType||Z)){const Q=!(E&&E.silentJSONParsing)&&Z;try{return JSON.parse(P)}catch(c1){if(Q)throw c1.name==="SyntaxError"?R.from(c1,R.ERR_BAD_RESPONSE,this,null,this.response):c1}}return P}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Y1.classes.FormData,Blob:Y1.classes.Blob},validateStatus:function(P){return P>=200&&P<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],P=>{i2.headers[P]={}});var $1=i2;const d2=A.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"]),A2=Symbol("internals");function h2(P){return P&&String(P).trim().toLowerCase()}function v2(P){return P===!1||P==null?P:A.isArray(P)?P.map(v2):String(P)}function J2(P,E,I,Z,Q){return A.isFunction(Z)?Z.call(this,E,I):(Q&&(E=I),A.isString(E)?A.isString(Z)?E.indexOf(Z)!==-1:A.isRegExp(Z)?Z.test(E):void 0:void 0)}class f1{constructor(E){E&&this.set(E)}set(E,I,Z){const Q=this;function c1(M1,V1,w1){const b1=h2(V1);if(!b1)throw new Error("header name must be a non-empty string");const D1=A.findKey(Q,b1);(!D1||Q[D1]===void 0||w1===!0||w1===void 0&&Q[D1]!==!1)&&(Q[D1||V1]=v2(M1))}const t1=(M1,V1)=>A.forEach(M1,(w1,b1)=>c1(w1,b1,V1));return A.isPlainObject(E)||E instanceof this.constructor?t1(E,I):A.isString(E)&&(E=E.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(E.trim())?t1((M1=>{const V1={};let w1,b1,D1;return M1&&M1.split(`
825
825
  `).forEach(function(O1){D1=O1.indexOf(":"),w1=O1.substring(0,D1).trim().toLowerCase(),b1=O1.substring(D1+1).trim(),!w1||V1[w1]&&d2[w1]||(w1==="set-cookie"?V1[w1]?V1[w1].push(b1):V1[w1]=[b1]:V1[w1]=V1[w1]?V1[w1]+", "+b1:b1)}),V1})(E),I):E!=null&&c1(I,E,Z),this}get(E,I){if(E=h2(E)){const Z=A.findKey(this,E);if(Z){const Q=this[Z];if(!I)return Q;if(I===!0)return function(c1){const t1=Object.create(null),M1=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let V1;for(;V1=M1.exec(c1);)t1[V1[1]]=V1[2];return t1}(Q);if(A.isFunction(I))return I.call(this,Q,Z);if(A.isRegExp(I))return I.exec(Q);throw new TypeError("parser must be boolean|regexp|function")}}}has(E,I){if(E=h2(E)){const Z=A.findKey(this,E);return!(!Z||this[Z]===void 0||I&&!J2(0,this[Z],Z,I))}return!1}delete(E,I){const Z=this;let Q=!1;function c1(t1){if(t1=h2(t1)){const M1=A.findKey(Z,t1);!M1||I&&!J2(0,Z[M1],M1,I)||(delete Z[M1],Q=!0)}}return A.isArray(E)?E.forEach(c1):c1(E),Q}clear(E){const I=Object.keys(this);let Z=I.length,Q=!1;for(;Z--;){const c1=I[Z];E&&!J2(0,this[c1],c1,E,!0)||(delete this[c1],Q=!0)}return Q}normalize(E){const I=this,Z={};return A.forEach(this,(Q,c1)=>{const t1=A.findKey(Z,c1);if(t1)return I[t1]=v2(Q),void delete I[c1];const M1=E?function(V1){return V1.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(w1,b1,D1)=>b1.toUpperCase()+D1)}(c1):String(c1).trim();M1!==c1&&delete I[c1],I[M1]=v2(Q),Z[M1]=!0}),this}concat(...E){return this.constructor.concat(this,...E)}toJSON(E){const I=Object.create(null);return A.forEach(this,(Z,Q)=>{Z!=null&&Z!==!1&&(I[Q]=E&&A.isArray(Z)?Z.join(", "):Z)}),I}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([E,I])=>E+": "+I).join(`
826
826
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(E){return E instanceof this?E:new this(E)}static concat(E,...I){const Z=new this(E);return I.forEach(Q=>Z.set(Q)),Z}static accessor(E){const I=(this[A2]=this[A2]={accessors:{}}).accessors,Z=this.prototype;function Q(c1){const t1=h2(c1);I[t1]||(function(M1,V1){const w1=A.toCamelCase(" "+V1);["get","set","has"].forEach(b1=>{Object.defineProperty(M1,b1+w1,{value:function(D1,O1,G1){return this[b1].call(this,V1,D1,O1,G1)},configurable:!0})})}(Z,c1),I[t1]=!0)}return A.isArray(E)?E.forEach(Q):Q(E),this}}f1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(f1.prototype,({value:P},E)=>{let I=E[0].toUpperCase()+E.slice(1);return{get:()=>P,set(Z){this[I]=Z}}}),A.freezeMethods(f1);var i1=f1;function H1(P,E){const I=this||$1,Z=E||I,Q=i1.from(Z.headers);let c1=Z.data;return A.forEach(P,function(t1){c1=t1.call(I,c1,Q.normalize(),E?E.status:void 0)}),Q.normalize(),c1}function _1(P){return!(!P||!P.__CANCEL__)}function U1(P,E,I){R.call(this,P??"canceled",R.ERR_CANCELED,E,I),this.name="CanceledError"}A.inherits(U1,R,{__CANCEL__:!0});var g2=Y1.hasStandardBrowserEnv?{write(P,E,I,Z,Q,c1){const t1=[P+"="+encodeURIComponent(E)];A.isNumber(I)&&t1.push("expires="+new Date(I).toGMTString()),A.isString(Z)&&t1.push("path="+Z),A.isString(Q)&&t1.push("domain="+Q),c1===!0&&t1.push("secure"),document.cookie=t1.join("; ")},read(P){const E=document.cookie.match(new RegExp("(^|;\\s*)("+P+")=([^;]*)"));return E?decodeURIComponent(E[3]):null},remove(P){this.write(P,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function L2(P,E){return P&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(E)?function(I,Z){return Z?I.replace(/\/?\/$/,"")+"/"+Z.replace(/^\/+/,""):I}(P,E):E}var B3=Y1.hasStandardBrowserEnv?function(){const P=/(msie|trident)/i.test(navigator.userAgent),E=document.createElement("a");let I;function Z(Q){let c1=Q;return P&&(E.setAttribute("href",c1),c1=E.href),E.setAttribute("href",c1),{href:E.href,protocol:E.protocol?E.protocol.replace(/:$/,""):"",host:E.host,search:E.search?E.search.replace(/^\?/,""):"",hash:E.hash?E.hash.replace(/^#/,""):"",hostname:E.hostname,port:E.port,pathname:E.pathname.charAt(0)==="/"?E.pathname:"/"+E.pathname}}return I=Z(window.location.href),function(Q){const c1=A.isString(Q)?Z(Q):Q;return c1.protocol===I.protocol&&c1.host===I.host}}():function(){return!0};function f4(P,E){let I=0;const Z=function(Q,c1){Q=Q||10;const t1=new Array(Q),M1=new Array(Q);let V1,w1=0,b1=0;return c1=c1!==void 0?c1:1e3,function(D1){const O1=Date.now(),G1=M1[b1];V1||(V1=O1),t1[w1]=D1,M1[w1]=O1;let P1=b1,Q1=0;for(;P1!==w1;)Q1+=t1[P1++],P1%=Q;if(w1=(w1+1)%Q,w1===b1&&(b1=(b1+1)%Q),O1-V1<c1)return;const p2=G1&&O1-G1;return p2?Math.round(1e3*Q1/p2):void 0}}(50,250);return Q=>{const c1=Q.loaded,t1=Q.lengthComputable?Q.total:void 0,M1=c1-I,V1=Z(M1);I=c1;const w1={loaded:c1,total:t1,progress:t1?c1/t1:void 0,bytes:M1,rate:V1||void 0,estimated:V1&&t1&&c1<=t1?(t1-c1)/V1:void 0,event:Q};w1[E?"download":"upload"]=!0,P(w1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(P){return new Promise(function(E,I){let Z=P.data;const Q=i1.from(P.headers).normalize();let c1,t1,{responseType:M1,withXSRFToken:V1}=P;function w1(){P.cancelToken&&P.cancelToken.unsubscribe(c1),P.signal&&P.signal.removeEventListener("abort",c1)}if(A.isFormData(Z)){if(Y1.hasStandardBrowserEnv||Y1.hasStandardBrowserWebWorkerEnv)Q.setContentType(!1);else if((t1=Q.getContentType())!==!1){const[P1,...Q1]=t1?t1.split(";").map(p2=>p2.trim()).filter(Boolean):[];Q.setContentType([P1||"multipart/form-data",...Q1].join("; "))}}let b1=new XMLHttpRequest;if(P.auth){const P1=P.auth.username||"",Q1=P.auth.password?unescape(encodeURIComponent(P.auth.password)):"";Q.set("Authorization","Basic "+btoa(P1+":"+Q1))}const D1=L2(P.baseURL,P.url);function O1(){if(!b1)return;const P1=i1.from("getAllResponseHeaders"in b1&&b1.getAllResponseHeaders());(function(Q1,p2,Z2){const vn=Z2.config.validateStatus;Z2.status&&vn&&!vn(Z2.status)?p2(new R("Request failed with status code "+Z2.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(Z2.status/100)-4],Z2.config,Z2.request,Z2)):Q1(Z2)})(function(Q1){E(Q1),w1()},function(Q1){I(Q1),w1()},{data:M1&&M1!=="text"&&M1!=="json"?b1.response:b1.responseText,status:b1.status,statusText:b1.statusText,headers:P1,config:P,request:b1}),b1=null}if(b1.open(P.method.toUpperCase(),d1(D1,P.params,P.paramsSerializer),!0),b1.timeout=P.timeout,"onloadend"in b1?b1.onloadend=O1:b1.onreadystatechange=function(){b1&&b1.readyState===4&&(b1.status!==0||b1.responseURL&&b1.responseURL.indexOf("file:")===0)&&setTimeout(O1)},b1.onabort=function(){b1&&(I(new R("Request aborted",R.ECONNABORTED,P,b1)),b1=null)},b1.onerror=function(){I(new R("Network Error",R.ERR_NETWORK,P,b1)),b1=null},b1.ontimeout=function(){let P1=P.timeout?"timeout of "+P.timeout+"ms exceeded":"timeout exceeded";const Q1=P.transitional||p1;P.timeoutErrorMessage&&(P1=P.timeoutErrorMessage),I(new R(P1,Q1.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,P,b1)),b1=null},Y1.hasStandardBrowserEnv&&(V1&&A.isFunction(V1)&&(V1=V1(P)),V1||V1!==!1&&B3(D1))){const P1=P.xsrfHeaderName&&P.xsrfCookieName&&g2.read(P.xsrfCookieName);P1&&Q.set(P.xsrfHeaderName,P1)}Z===void 0&&Q.setContentType(null),"setRequestHeader"in b1&&A.forEach(Q.toJSON(),function(P1,Q1){b1.setRequestHeader(Q1,P1)}),A.isUndefined(P.withCredentials)||(b1.withCredentials=!!P.withCredentials),M1&&M1!=="json"&&(b1.responseType=P.responseType),typeof P.onDownloadProgress=="function"&&b1.addEventListener("progress",f4(P.onDownloadProgress,!0)),typeof P.onUploadProgress=="function"&&b1.upload&&b1.upload.addEventListener("progress",f4(P.onUploadProgress)),(P.cancelToken||P.signal)&&(c1=P1=>{b1&&(I(!P1||P1.type?new U1(null,P,b1):P1),b1.abort(),b1=null)},P.cancelToken&&P.cancelToken.subscribe(c1),P.signal&&(P.signal.aborted?c1():P.signal.addEventListener("abort",c1)));const G1=function(P1){const Q1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(P1);return Q1&&Q1[1]||""}(D1);G1&&Y1.protocols.indexOf(G1)===-1?I(new R("Unsupported protocol "+G1+":",R.ERR_BAD_REQUEST,P)):b1.send(Z||null)})}};A.forEach(s2,(P,E)=>{if(P){try{Object.defineProperty(P,"name",{value:E})}catch{}Object.defineProperty(P,"adapterName",{value:E})}});const _2=P=>`- ${P}`,K4=P=>A.isFunction(P)||P===null||P===!1;var Q4=P=>{P=A.isArray(P)?P:[P];const{length:E}=P;let I,Z;const Q={};for(let c1=0;c1<E;c1++){let t1;if(I=P[c1],Z=I,!K4(I)&&(Z=s2[(t1=String(I)).toLowerCase()],Z===void 0))throw new R(`Unknown adapter '${t1}'`);if(Z)break;Q[t1||"#"+c1]=Z}if(!Z){const c1=Object.entries(Q).map(([t1,M1])=>`adapter ${t1} `+(M1===!1?"is not supported by the environment":"is not available in the build"));throw new R("There is no suitable adapter to dispatch the request "+(E?c1.length>1?`since :