@agendize/vue-tools 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,38 +1,30 @@
1
- (function(Ve,ue){typeof exports=="object"&&typeof module!="undefined"?ue(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],ue):(Ve=typeof globalThis!="undefined"?globalThis:Ve||self,ue((Ve.agendize=Ve.agendize||{},Ve.agendize.tools={}),Ve.Vue,Ve.pinia))})(this,function(Ve,ue,en){"use strict";var _g=Object.defineProperty;var Ig=(Ve,ue,en)=>ue in Ve?_g(Ve,ue,{enumerable:!0,configurable:!0,writable:!0,value:en}):Ve[ue]=en;var Qi=(Ve,ue,en)=>(Ig(Ve,typeof ue!="symbol"?ue+"":ue,en),en);function Ku(t){const e=ue.ref(t.state),n=r=>{e.value=r};return ue.onMounted(()=>{t.subscribe(n)}),ue.onUnmounted(()=>{t.unsubscribe(n)}),ue.readonly(e)}function Ju(t,e=!1){let n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?yn(a)+"/"+yn(r)+"/"+n:n+"-"+yn(r)+"-"+yn(a)+"T"+yn(i)+":"+yn(o)+":"+yn(s)}function yn(t){return t<10?"0"+t:t}function Xu(t,e){e.urlPicture.value=void 0,e.pictureAsData.value="",e.filePicture.value=void 0,t&&eo(t).then(n=>{!n||typeof n=="string"&&(e.pictureAsData.value=n)})}const eo=t=>new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result),r.onerror=a=>n(a)});function Qu(t,e){let n=new XMLHttpRequest;n.open("get",t),n.responseType="blob",n.onload=function(){let r=new FileReader;r.onload=function(){if(!e&&r.result)return;let a;typeof r.result=="string"?a=r.result:a=Buffer.from(String.fromCharCode(...new Uint8Array(r.result)),"base64").toString(),e(a)},r.readAsDataURL(n.response)},n.send()}function ed(t){try{return parseInt(t)}catch{return 0}}function td(t){return t?t.getFullYear()+"/"+ba(t.getMonth()+1)+"/"+ba(t.getDate()):""}function ba(t,e=2){let n=t+"";for(;n.length<e;)n="0"+n;return n}function nd(t){let e=document.createElement("div");return e.innerHTML=t,e.textContent}function rd(t){var e,n;if(t!=null&&t.name){const r=t.name.split(" ");return r.map(a=>a.substring(0,1)).join("").toUpperCase().substring(0,Math.min(2,r.length))}else return((((e=t==null?void 0:t.firstName)==null?void 0:e.substring(0,1))||"")+(((n=t==null?void 0:t.lastName)==null?void 0:n.substring(0,1))||"")+"").toUpperCase()}function ad(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var to={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(self,function(){return(()=>{var n={192:(i,o)=>{var s,l,c=function(){var h=function(R,V){var G=R,U=k[V],q=null,Z=0,se=null,ie=[],F={},ee=function($,ae){q=function(_){for(var b=new Array(_),L=0;L<_;L+=1){b[L]=new Array(_);for(var te=0;te<_;te+=1)b[L][te]=null}return b}(Z=4*G+17),re(0,0),re(Z-7,0),re(0,Z-7),_e(),K(),Me($,ae),G>=7&&Ie($),se==null&&(se=qe(G,U,ie)),be(se,ae)},re=function($,ae){for(var _=-1;_<=7;_+=1)if(!($+_<=-1||Z<=$+_))for(var b=-1;b<=7;b+=1)ae+b<=-1||Z<=ae+b||(q[$+_][ae+b]=0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4)},K=function(){for(var $=8;$<Z-8;$+=1)q[$][6]==null&&(q[$][6]=$%2==0);for(var ae=8;ae<Z-8;ae+=1)q[6][ae]==null&&(q[6][ae]=ae%2==0)},_e=function(){for(var $=S.getPatternPosition(G),ae=0;ae<$.length;ae+=1)for(var _=0;_<$.length;_+=1){var b=$[ae],L=$[_];if(q[b][L]==null)for(var te=-2;te<=2;te+=1)for(var le=-2;le<=2;le+=1)q[b+te][L+le]=te==-2||te==2||le==-2||le==2||te==0&&le==0}},Ie=function($){for(var ae=S.getBCHTypeNumber(G),_=0;_<18;_+=1){var b=!$&&(ae>>_&1)==1;q[Math.floor(_/3)][_%3+Z-8-3]=b}for(_=0;_<18;_+=1)b=!$&&(ae>>_&1)==1,q[_%3+Z-8-3][Math.floor(_/3)]=b},Me=function($,ae){for(var _=U<<3|ae,b=S.getBCHTypeInfo(_),L=0;L<15;L+=1){var te=!$&&(b>>L&1)==1;L<6?q[L][8]=te:L<8?q[L+1][8]=te:q[Z-15+L][8]=te}for(L=0;L<15;L+=1)te=!$&&(b>>L&1)==1,L<8?q[8][Z-L-1]=te:L<9?q[8][15-L-1+1]=te:q[8][15-L-1]=te;q[Z-8][8]=!$},be=function($,ae){for(var _=-1,b=Z-1,L=7,te=0,le=S.getMaskFunction(ae),de=Z-1;de>0;de-=2)for(de==6&&(de-=1);;){for(var M=0;M<2;M+=1)if(q[b][de-M]==null){var u=!1;te<$.length&&(u=($[te]>>>L&1)==1),le(b,de-M)&&(u=!u),q[b][de-M]=u,(L-=1)==-1&&(te+=1,L=7)}if((b+=_)<0||Z<=b){b-=_,_=-_;break}}},qe=function($,ae,_){for(var b=D.getRSBlocks($,ae),L=T(),te=0;te<_.length;te+=1){var le=_[te];L.put(le.getMode(),4),L.put(le.getLength(),S.getLengthInBits(le.getMode(),$)),le.write(L)}var de=0;for(te=0;te<b.length;te+=1)de+=b[te].dataCount;if(L.getLengthInBits()>8*de)throw"code length overflow. ("+L.getLengthInBits()+">"+8*de+")";for(L.getLengthInBits()+4<=8*de&&L.put(0,4);L.getLengthInBits()%8!=0;)L.putBit(!1);for(;!(L.getLengthInBits()>=8*de||(L.put(236,8),L.getLengthInBits()>=8*de));)L.put(17,8);return function(M,u){for(var v=0,d=0,p=0,f=new Array(u.length),g=new Array(u.length),C=0;C<u.length;C+=1){var O=u[C].dataCount,j=u[C].totalCount-O;d=Math.max(d,O),p=Math.max(p,j),f[C]=new Array(O);for(var H=0;H<f[C].length;H+=1)f[C][H]=255&M.getBuffer()[H+v];v+=O;var J=S.getErrorCorrectPolynomial(j),X=A(f[C],J.getLength()-1).mod(J);for(g[C]=new Array(J.getLength()-1),H=0;H<g[C].length;H+=1){var oe=H+X.getLength()-g[C].length;g[C][H]=oe>=0?X.getAt(oe):0}}var me=0;for(H=0;H<u.length;H+=1)me+=u[H].totalCount;var pe=new Array(me),ye=0;for(H=0;H<d;H+=1)for(C=0;C<u.length;C+=1)H<f[C].length&&(pe[ye]=f[C][H],ye+=1);for(H=0;H<p;H+=1)for(C=0;C<u.length;C+=1)H<g[C].length&&(pe[ye]=g[C][H],ye+=1);return pe}(L,b)};F.addData=function($,ae){var _=null;switch(ae=ae||"Byte"){case"Numeric":_=P($);break;case"Alphanumeric":_=z($);break;case"Byte":_=Y($);break;case"Kanji":_=Q($);break;default:throw"mode:"+ae}ie.push(_),se=null},F.isDark=function($,ae){if($<0||Z<=$||ae<0||Z<=ae)throw $+","+ae;return q[$][ae]},F.getModuleCount=function(){return Z},F.make=function(){if(G<1){for(var $=1;$<40;$++){for(var ae=D.getRSBlocks($,U),_=T(),b=0;b<ie.length;b++){var L=ie[b];_.put(L.getMode(),4),_.put(L.getLength(),S.getLengthInBits(L.getMode(),$)),L.write(_)}var te=0;for(b=0;b<ae.length;b++)te+=ae[b].dataCount;if(_.getLengthInBits()<=8*te)break}G=$}ee(!1,function(){for(var le=0,de=0,M=0;M<8;M+=1){ee(!0,M);var u=S.getLostPoint(F);(M==0||le>u)&&(le=u,de=M)}return de}())},F.createTableTag=function($,ae){$=$||2;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+(ae=ae===void 0?4*$:ae)+"px;",_+='">',_+="<tbody>";for(var b=0;b<F.getModuleCount();b+=1){_+="<tr>";for(var L=0;L<F.getModuleCount();L+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+$+"px;",_+=" height: "+$+"px;",_+=" background-color: ",_+=F.isDark(b,L)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return(_+="</tbody>")+"</table>"},F.createSvgTag=function($,ae,_,b){var L={};typeof arguments[0]=="object"&&($=(L=arguments[0]).cellSize,ae=L.margin,_=L.alt,b=L.title),$=$||2,ae=ae===void 0?4*$:ae,(_=typeof _=="string"?{text:_}:_||{}).text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,(b=typeof b=="string"?{text:b}:b||{}).text=b.text||null,b.id=b.text?b.id||"qrcode-title":null;var te,le,de,M,u=F.getModuleCount()*$+2*ae,v="";for(M="l"+$+",0 0,"+$+" -"+$+",0 0,-"+$+"z ",v+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',v+=L.scalable?"":' width="'+u+'px" height="'+u+'px"',v+=' viewBox="0 0 '+u+" "+u+'" ',v+=' preserveAspectRatio="xMinYMin meet"',v+=b.text||_.text?' role="img" aria-labelledby="'+Ce([b.id,_.id].join(" ").trim())+'"':"",v+=">",v+=b.text?'<title id="'+Ce(b.id)+'">'+Ce(b.text)+"</title>":"",v+=_.text?'<description id="'+Ce(_.id)+'">'+Ce(_.text)+"</description>":"",v+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',v+='<path d="',le=0;le<F.getModuleCount();le+=1)for(de=le*$+ae,te=0;te<F.getModuleCount();te+=1)F.isDark(le,te)&&(v+="M"+(te*$+ae)+","+de+M);return(v+='" stroke="transparent" fill="black"/>')+"</svg>"},F.createDataURL=function($,ae){$=$||2,ae=ae===void 0?4*$:ae;var _=F.getModuleCount()*$+2*ae,b=ae,L=_-ae;return ne(_,_,function(te,le){if(b<=te&&te<L&&b<=le&&le<L){var de=Math.floor((te-b)/$),M=Math.floor((le-b)/$);return F.isDark(M,de)?0:1}return 1})},F.createImgTag=function($,ae,_){$=$||2,ae=ae===void 0?4*$:ae;var b=F.getModuleCount()*$+2*ae,L="";return L+="<img",L+=' src="',L+=F.createDataURL($,ae),L+='"',L+=' width="',L+=b,L+='"',L+=' height="',L+=b,L+='"',_&&(L+=' alt="',L+=Ce(_),L+='"'),L+"/>"};var Ce=function($){for(var ae="",_=0;_<$.length;_+=1){var b=$.charAt(_);switch(b){case"<":ae+="&lt;";break;case">":ae+="&gt;";break;case"&":ae+="&amp;";break;case'"':ae+="&quot;";break;default:ae+=b}}return ae};return F.createASCII=function($,ae){if(($=$||1)<2)return function(f){f=f===void 0?2:f;var g,C,O,j,H,J=1*F.getModuleCount()+2*f,X=f,oe=J-f,me={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},pe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ye="";for(g=0;g<J;g+=2){for(O=Math.floor((g-X)/1),j=Math.floor((g+1-X)/1),C=0;C<J;C+=1)H="\u2588",X<=C&&C<oe&&X<=g&&g<oe&&F.isDark(O,Math.floor((C-X)/1))&&(H=" "),X<=C&&C<oe&&X<=g+1&&g+1<oe&&F.isDark(j,Math.floor((C-X)/1))?H+=" ":H+="\u2588",ye+=f<1&&g+1>=oe?pe[H]:me[H];ye+=`
2
- `}return J%2&&f>0?ye.substring(0,ye.length-J-1)+Array(J+1).join("\u2580"):ye.substring(0,ye.length-1)}(ae);$-=1,ae=ae===void 0?2*$:ae;var _,b,L,te,le=F.getModuleCount()*$+2*ae,de=ae,M=le-ae,u=Array($+1).join("\u2588\u2588"),v=Array($+1).join(" "),d="",p="";for(_=0;_<le;_+=1){for(L=Math.floor((_-de)/$),p="",b=0;b<le;b+=1)te=1,de<=b&&b<M&&de<=_&&_<M&&F.isDark(L,Math.floor((b-de)/$))&&(te=0),p+=te?u:v;for(L=0;L<$;L+=1)d+=p+`
3
- `}return d.substring(0,d.length-1)},F.renderTo2dContext=function($,ae){ae=ae||2;for(var _=F.getModuleCount(),b=0;b<_;b++)for(var L=0;L<_;L++)$.fillStyle=F.isDark(b,L)?"black":"white",$.fillRect(b*ae,L*ae,ae,ae)},F};h.stringToBytes=(h.stringToBytesFuncs={default:function(R){for(var V=[],G=0;G<R.length;G+=1){var U=R.charCodeAt(G);V.push(255&U)}return V}}).default,h.createStringToBytes=function(R,V){var G=function(){for(var q=W(R),Z=function(){var K=q.read();if(K==-1)throw"eof";return K},se=0,ie={};;){var F=q.read();if(F==-1)break;var ee=Z(),re=Z()<<8|Z();ie[String.fromCharCode(F<<8|ee)]=re,se+=1}if(se!=V)throw se+" != "+V;return ie}(),U="?".charCodeAt(0);return function(q){for(var Z=[],se=0;se<q.length;se+=1){var ie=q.charCodeAt(se);if(ie<128)Z.push(ie);else{var F=G[q.charAt(se)];typeof F=="number"?(255&F)==F?Z.push(F):(Z.push(F>>>8),Z.push(255&F)):Z.push(U)}}return Z}};var x,y,w,I,N,k={L:1,M:0,Q:3,H:2},S=(x=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],y=1335,w=7973,N=function(R){for(var V=0;R!=0;)V+=1,R>>>=1;return V},(I={}).getBCHTypeInfo=function(R){for(var V=R<<10;N(V)-N(y)>=0;)V^=y<<N(V)-N(y);return 21522^(R<<10|V)},I.getBCHTypeNumber=function(R){for(var V=R<<12;N(V)-N(w)>=0;)V^=w<<N(V)-N(w);return R<<12|V},I.getPatternPosition=function(R){return x[R-1]},I.getMaskFunction=function(R){switch(R){case 0:return function(V,G){return(V+G)%2==0};case 1:return function(V,G){return V%2==0};case 2:return function(V,G){return G%3==0};case 3:return function(V,G){return(V+G)%3==0};case 4:return function(V,G){return(Math.floor(V/2)+Math.floor(G/3))%2==0};case 5:return function(V,G){return V*G%2+V*G%3==0};case 6:return function(V,G){return(V*G%2+V*G%3)%2==0};case 7:return function(V,G){return(V*G%3+(V+G)%2)%2==0};default:throw"bad maskPattern:"+R}},I.getErrorCorrectPolynomial=function(R){for(var V=A([1],0),G=0;G<R;G+=1)V=V.multiply(A([1,E.gexp(G)],0));return V},I.getLengthInBits=function(R,V){if(1<=V&&V<10)switch(R){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+R}else if(V<27)switch(R){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+R}else{if(!(V<41))throw"type:"+V;switch(R){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+R}}},I.getLostPoint=function(R){for(var V=R.getModuleCount(),G=0,U=0;U<V;U+=1)for(var q=0;q<V;q+=1){for(var Z=0,se=R.isDark(U,q),ie=-1;ie<=1;ie+=1)if(!(U+ie<0||V<=U+ie))for(var F=-1;F<=1;F+=1)q+F<0||V<=q+F||ie==0&&F==0||se==R.isDark(U+ie,q+F)&&(Z+=1);Z>5&&(G+=3+Z-5)}for(U=0;U<V-1;U+=1)for(q=0;q<V-1;q+=1){var ee=0;R.isDark(U,q)&&(ee+=1),R.isDark(U+1,q)&&(ee+=1),R.isDark(U,q+1)&&(ee+=1),R.isDark(U+1,q+1)&&(ee+=1),ee!=0&&ee!=4||(G+=3)}for(U=0;U<V;U+=1)for(q=0;q<V-6;q+=1)R.isDark(U,q)&&!R.isDark(U,q+1)&&R.isDark(U,q+2)&&R.isDark(U,q+3)&&R.isDark(U,q+4)&&!R.isDark(U,q+5)&&R.isDark(U,q+6)&&(G+=40);for(q=0;q<V;q+=1)for(U=0;U<V-6;U+=1)R.isDark(U,q)&&!R.isDark(U+1,q)&&R.isDark(U+2,q)&&R.isDark(U+3,q)&&R.isDark(U+4,q)&&!R.isDark(U+5,q)&&R.isDark(U+6,q)&&(G+=40);var re=0;for(q=0;q<V;q+=1)for(U=0;U<V;U+=1)R.isDark(U,q)&&(re+=1);return G+Math.abs(100*re/V/V-50)/5*10},I),E=function(){for(var R=new Array(256),V=new Array(256),G=0;G<8;G+=1)R[G]=1<<G;for(G=8;G<256;G+=1)R[G]=R[G-4]^R[G-5]^R[G-6]^R[G-8];for(G=0;G<255;G+=1)V[R[G]]=G;return{glog:function(U){if(U<1)throw"glog("+U+")";return V[U]},gexp:function(U){for(;U<0;)U+=255;for(;U>=256;)U-=255;return R[U]}}}();function A(R,V){if(R.length===void 0)throw R.length+"/"+V;var G=function(){for(var q=0;q<R.length&&R[q]==0;)q+=1;for(var Z=new Array(R.length-q+V),se=0;se<R.length-q;se+=1)Z[se]=R[se+q];return Z}(),U={getAt:function(q){return G[q]},getLength:function(){return G.length},multiply:function(q){for(var Z=new Array(U.getLength()+q.getLength()-1),se=0;se<U.getLength();se+=1)for(var ie=0;ie<q.getLength();ie+=1)Z[se+ie]^=E.gexp(E.glog(U.getAt(se))+E.glog(q.getAt(ie)));return A(Z,0)},mod:function(q){if(U.getLength()-q.getLength()<0)return U;for(var Z=E.glog(U.getAt(0))-E.glog(q.getAt(0)),se=new Array(U.getLength()),ie=0;ie<U.getLength();ie+=1)se[ie]=U.getAt(ie);for(ie=0;ie<q.getLength();ie+=1)se[ie]^=E.gexp(E.glog(q.getAt(ie))+Z);return A(se,0).mod(q)}};return U}var D=function(){var R=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],V=function(U,q){var Z={};return Z.totalCount=U,Z.dataCount=q,Z},G={getRSBlocks:function(U,q){var Z=function(Ie,Me){switch(Me){case k.L:return R[4*(Ie-1)+0];case k.M:return R[4*(Ie-1)+1];case k.Q:return R[4*(Ie-1)+2];case k.H:return R[4*(Ie-1)+3];default:return}}(U,q);if(Z===void 0)throw"bad rs block @ typeNumber:"+U+"/errorCorrectionLevel:"+q;for(var se=Z.length/3,ie=[],F=0;F<se;F+=1)for(var ee=Z[3*F+0],re=Z[3*F+1],K=Z[3*F+2],_e=0;_e<ee;_e+=1)ie.push(V(re,K));return ie}};return G}(),T=function(){var R=[],V=0,G={getBuffer:function(){return R},getAt:function(U){var q=Math.floor(U/8);return(R[q]>>>7-U%8&1)==1},put:function(U,q){for(var Z=0;Z<q;Z+=1)G.putBit((U>>>q-Z-1&1)==1)},getLengthInBits:function(){return V},putBit:function(U){var q=Math.floor(V/8);R.length<=q&&R.push(0),U&&(R[q]|=128>>>V%8),V+=1}};return G},P=function(R){var V=R,G={getMode:function(){return 1},getLength:function(Z){return V.length},write:function(Z){for(var se=V,ie=0;ie+2<se.length;)Z.put(U(se.substring(ie,ie+3)),10),ie+=3;ie<se.length&&(se.length-ie==1?Z.put(U(se.substring(ie,ie+1)),4):se.length-ie==2&&Z.put(U(se.substring(ie,ie+2)),7))}},U=function(Z){for(var se=0,ie=0;ie<Z.length;ie+=1)se=10*se+q(Z.charAt(ie));return se},q=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return G},z=function(R){var V=R,G={getMode:function(){return 2},getLength:function(q){return V.length},write:function(q){for(var Z=V,se=0;se+1<Z.length;)q.put(45*U(Z.charAt(se))+U(Z.charAt(se+1)),11),se+=2;se<Z.length&&q.put(U(Z.charAt(se)),6)}},U=function(q){if("0"<=q&&q<="9")return q.charCodeAt(0)-"0".charCodeAt(0);if("A"<=q&&q<="Z")return q.charCodeAt(0)-"A".charCodeAt(0)+10;switch(q){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+q}};return G},Y=function(R){var V=h.stringToBytes(R);return{getMode:function(){return 4},getLength:function(G){return V.length},write:function(G){for(var U=0;U<V.length;U+=1)G.put(V[U],8)}}},Q=function(R){var V=h.stringToBytesFuncs.SJIS;if(!V)throw"sjis not supported.";(function(U,q){var Z=V("\u53CB");if(Z.length!=2||(Z[0]<<8|Z[1])!=38726)throw"sjis not supported."})();var G=V(R);return{getMode:function(){return 8},getLength:function(U){return~~(G.length/2)},write:function(U){for(var q=G,Z=0;Z+1<q.length;){var se=(255&q[Z])<<8|255&q[Z+1];if(33088<=se&&se<=40956)se-=33088;else{if(!(57408<=se&&se<=60351))throw"illegal char at "+(Z+1)+"/"+se;se-=49472}se=192*(se>>>8&255)+(255&se),U.put(se,13),Z+=2}if(Z<q.length)throw"illegal char at "+(Z+1)}}},B=function(){var R=[],V={writeByte:function(G){R.push(255&G)},writeShort:function(G){V.writeByte(G),V.writeByte(G>>>8)},writeBytes:function(G,U,q){U=U||0,q=q||G.length;for(var Z=0;Z<q;Z+=1)V.writeByte(G[Z+U])},writeString:function(G){for(var U=0;U<G.length;U+=1)V.writeByte(G.charCodeAt(U))},toByteArray:function(){return R},toString:function(){var G="";G+="[";for(var U=0;U<R.length;U+=1)U>0&&(G+=","),G+=R[U];return G+"]"}};return V},W=function(R){var V=R,G=0,U=0,q=0,Z={read:function(){for(;q<8;){if(G>=V.length){if(q==0)return-1;throw"unexpected end of file./"+q}var ie=V.charAt(G);if(G+=1,ie=="=")return q=0,-1;ie.match(/^\s$/)||(U=U<<6|se(ie.charCodeAt(0)),q+=6)}var F=U>>>q-8&255;return q-=8,F}},se=function(ie){if(65<=ie&&ie<=90)return ie-65;if(97<=ie&&ie<=122)return ie-97+26;if(48<=ie&&ie<=57)return ie-48+52;if(ie==43)return 62;if(ie==47)return 63;throw"c:"+ie};return Z},ne=function(R,V,G){for(var U=function(re,K){var _e=re,Ie=K,Me=new Array(re*K),be={setPixel:function($,ae,_){Me[ae*_e+$]=_},write:function($){$.writeString("GIF87a"),$.writeShort(_e),$.writeShort(Ie),$.writeByte(128),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(255),$.writeByte(255),$.writeByte(255),$.writeString(","),$.writeShort(0),$.writeShort(0),$.writeShort(_e),$.writeShort(Ie),$.writeByte(0);var ae=qe(2);$.writeByte(2);for(var _=0;ae.length-_>255;)$.writeByte(255),$.writeBytes(ae,_,255),_+=255;$.writeByte(ae.length-_),$.writeBytes(ae,_,ae.length-_),$.writeByte(0),$.writeString(";")}},qe=function($){for(var ae=1<<$,_=1+(1<<$),b=$+1,L=Ce(),te=0;te<ae;te+=1)L.add(String.fromCharCode(te));L.add(String.fromCharCode(ae)),L.add(String.fromCharCode(_));var le,de,M,u=B(),v=(le=u,de=0,M=0,{write:function(g,C){if(g>>>C!=0)throw"length over";for(;de+C>=8;)le.writeByte(255&(g<<de|M)),C-=8-de,g>>>=8-de,M=0,de=0;M|=g<<de,de+=C},flush:function(){de>0&&le.writeByte(M)}});v.write(ae,b);var d=0,p=String.fromCharCode(Me[d]);for(d+=1;d<Me.length;){var f=String.fromCharCode(Me[d]);d+=1,L.contains(p+f)?p+=f:(v.write(L.indexOf(p),b),L.size()<4095&&(L.size()==1<<b&&(b+=1),L.add(p+f)),p=f)}return v.write(L.indexOf(p),b),v.write(_,b),v.flush(),u.toByteArray()},Ce=function(){var $={},ae=0,_={add:function(b){if(_.contains(b))throw"dup key:"+b;$[b]=ae,ae+=1},size:function(){return ae},indexOf:function(b){return $[b]},contains:function(b){return $[b]!==void 0}};return _};return be}(R,V),q=0;q<V;q+=1)for(var Z=0;Z<R;Z+=1)U.setPixel(Z,q,G(Z,q));var se=B();U.write(se);for(var ie=function(){var re=0,K=0,_e=0,Ie="",Me={},be=function(Ce){Ie+=String.fromCharCode(qe(63&Ce))},qe=function(Ce){if(!(Ce<0)){if(Ce<26)return 65+Ce;if(Ce<52)return Ce-26+97;if(Ce<62)return Ce-52+48;if(Ce==62)return 43;if(Ce==63)return 47}throw"n:"+Ce};return Me.writeByte=function(Ce){for(re=re<<8|255&Ce,K+=8,_e+=1;K>=6;)be(re>>>K-6),K-=6},Me.flush=function(){if(K>0&&(be(re<<6-K),re=0,K=0),_e%3!=0)for(var Ce=3-_e%3,$=0;$<Ce;$+=1)Ie+="="},Me.toString=function(){return Ie},Me}(),F=se.toByteArray(),ee=0;ee<F.length;ee+=1)ie.writeByte(F[ee]);return ie.flush(),"data:image/gif;base64,"+ie};return h}();c.stringToBytesFuncs["UTF-8"]=function(h){return function(x){for(var y=[],w=0;w<x.length;w++){var I=x.charCodeAt(w);I<128?y.push(I):I<2048?y.push(192|I>>6,128|63&I):I<55296||I>=57344?y.push(224|I>>12,128|I>>6&63,128|63&I):(w++,I=65536+((1023&I)<<10|1023&x.charCodeAt(w)),y.push(240|I>>18,128|I>>12&63,128|I>>6&63,128|63&I))}return y}(h)},(l=typeof(s=function(){return c})=="function"?s.apply(o,[]):s)===void 0||(i.exports=l)},796:(i,o,s)=>{s.d(o,{default:()=>de});var l=function(){return(l=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)},c=function(){for(var M=0,u=0,v=arguments.length;u<v;u++)M+=arguments[u].length;var d=Array(M),p=0;for(u=0;u<v;u++)for(var f=arguments[u],g=0,C=f.length;g<C;g++,p++)d[p]=f[g];return d},h=function(M){return!!M&&typeof M=="object"&&!Array.isArray(M)};function x(M){for(var u=[],v=1;v<arguments.length;v++)u[v-1]=arguments[v];if(!u.length)return M;var d=u.shift();return d!==void 0&&h(M)&&h(d)?(M=l({},M),Object.keys(d).forEach(function(p){var f=M[p],g=d[p];Array.isArray(f)&&Array.isArray(g)?M[p]=g:h(f)&&h(g)?M[p]=x(Object.assign({},f),g):M[p]=g}),x.apply(void 0,c([M],u))):M}function y(M,u){var v=document.createElement("a");v.download=u,v.href=M,document.body.appendChild(v),v.click(),document.body.removeChild(v)}function w(M){var u=M.originalHeight,v=M.originalWidth,d=M.maxHiddenDots,p=M.maxHiddenAxisDots,f=M.dotSize,g={x:0,y:0},C={x:0,y:0};if(u<=0||v<=0||d<=0||f<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var O=u/v;return g.x=Math.floor(Math.sqrt(d/O)),g.x<=0&&(g.x=1),p&&p<g.x&&(g.x=p),g.x%2==0&&g.x--,C.x=g.x*f,g.y=1+2*Math.ceil((g.x*O-1)/2),C.y=Math.round(C.x*O),(g.y*g.x>d||p&&p<g.y)&&(p&&p<g.y?(g.y=p,g.y%2==0&&g.x--):g.y-=2,C.y=g.y*f,g.x=1+2*Math.ceil((g.y/O-1)/2),C.x=Math.round(C.y/O)),{height:C.y,width:C.x,hideYDots:g.y,hideXDots:g.x}}const I={L:.07,M:.15,Q:.25,H:.3},N="dots",k="rounded",S="classy",E="classy-rounded",A="square",D="extra-rounded";var T=function(){return(T=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const P=function(){function M(u){var v=u.context,d=u.type;this._context=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var f,g=this._context;switch(this._type){case N:f=this._drawDot;break;case S:f=this._drawClassy;break;case E:f=this._drawClassyRounded;break;case k:f=this._drawRounded;break;case D:f=this._drawExtraRounded;break;case A:default:f=this._drawSquare}f.call(this,{x:u,y:v,size:d,context:g,getNeighbor:p})},M.prototype._rotateFigure=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation,C=g===void 0?0:g,O=u.draw,j=v+p/2,H=d+p/2;f.translate(j,H),C&&f.rotate(C),O(),f.closePath(),C&&f.rotate(-C),f.translate(-j,-H)},M.prototype._basicDot=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._basicSideRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,Math.PI/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerExtraRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2)}}))},M.prototype._basicCornersRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(0,v/2),d.arc(0,0,v/2,Math.PI/2,Math.PI),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornersExtraRounded=function(u){var v=u.size,d=u.context;this._rotateFigure(T(T({},u),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.arc(v/2,-v/2,v,Math.PI/2,Math.PI)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,f=u.context;this._basicDot({x:v,y:d,size:p,context:f,rotation:0})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,f=u.context;this._basicSquare({x:v,y:d,size:p,context:f,rotation:0})},M.prototype._drawRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.getNeighbor,C=g?+g(-1,0):0,O=g?+g(1,0):0,j=g?+g(0,-1):0,H=g?+g(0,1):0,J=C+O+j+H;if(J!==0)if(J>2||C&&O||j&&H)this._basicSquare({x:v,y:d,size:p,context:f,rotation:0});else{if(J===2){var X=0;return C&&j?X=Math.PI/2:j&&O?X=Math.PI:O&&H&&(X=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:p,context:f,rotation:X})}if(J===1)return X=0,j?X=Math.PI/2:O?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,context:f,rotation:X})}else this._basicDot({x:v,y:d,size:p,context:f,rotation:0})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.getNeighbor,C=g?+g(-1,0):0,O=g?+g(1,0):0,j=g?+g(0,-1):0,H=g?+g(0,1):0,J=C+O+j+H;if(J!==0)if(J>2||C&&O||j&&H)this._basicSquare({x:v,y:d,size:p,context:f,rotation:0});else{if(J===2){var X=0;return C&&j?X=Math.PI/2:j&&O?X=Math.PI:O&&H&&(X=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:p,context:f,rotation:X})}if(J===1)return X=0,j?X=Math.PI/2:O?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,context:f,rotation:X})}else this._basicDot({x:v,y:d,size:p,context:f,rotation:0})},M.prototype._drawClassy=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.getNeighbor,C=g?+g(-1,0):0,O=g?+g(1,0):0,j=g?+g(0,-1):0,H=g?+g(0,1):0;C+O+j+H!==0?C||j?O||H?this._basicSquare({x:v,y:d,size:p,context:f,rotation:0}):this._basicCornerRounded({x:v,y:d,size:p,context:f,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:p,context:f,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,context:f,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.getNeighbor,C=g?+g(-1,0):0,O=g?+g(1,0):0,j=g?+g(0,-1):0,H=g?+g(0,1):0;C+O+j+H!==0?C||j?O||H?this._basicSquare({x:v,y:d,size:p,context:f,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:p,context:f,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:p,context:f,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,context:f,rotation:Math.PI/2})},M}(),z="square",Y="extra-rounded";var Q=function(){return(Q=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const B=function(){function M(u){var v=u.context,d=u.type;this._context=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var f,g=this._context;switch(this._type){case z:f=this._drawSquare;break;case Y:f=this._drawExtraRounded;break;case"dot":default:f=this._drawDot}f.call(this,{x:u,y:v,size:d,context:g,rotation:p})},M.prototype._rotateFigure=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation,C=g===void 0?0:g,O=u.draw,j=v+p/2,H=d+p/2;f.translate(j,H),C&&f.rotate(C),O(),f.closePath(),C&&f.rotate(-C),f.translate(-j,-H)},M.prototype._basicDot=function(u){var v=u.size,d=u.context,p=v/7;this._rotateFigure(Q(Q({},u),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI),d.arc(0,0,v/2-p,0,2*Math.PI)}}))},M.prototype._basicSquare=function(u){var v=u.size,d=u.context,p=v/7;this._rotateFigure(Q(Q({},u),{draw:function(){d.rect(-v/2,-v/2,v,v),d.rect(-v/2+p,-v/2+p,v-2*p,v-2*p)}}))},M.prototype._basicExtraRounded=function(u){var v=u.size,d=u.context,p=v/7;this._rotateFigure(Q(Q({},u),{draw:function(){d.arc(-p,-p,2.5*p,Math.PI,-Math.PI/2),d.lineTo(p,-3.5*p),d.arc(p,-p,2.5*p,-Math.PI/2,0),d.lineTo(3.5*p,-p),d.arc(p,p,2.5*p,0,Math.PI/2),d.lineTo(-p,3.5*p),d.arc(-p,p,2.5*p,Math.PI/2,Math.PI),d.lineTo(-3.5*p,-p),d.arc(-p,-p,1.5*p,Math.PI,-Math.PI/2),d.lineTo(p,-2.5*p),d.arc(p,-p,1.5*p,-Math.PI/2,0),d.lineTo(2.5*p,-p),d.arc(p,p,1.5*p,0,Math.PI/2),d.lineTo(-p,2.5*p),d.arc(-p,p,1.5*p,Math.PI/2,Math.PI),d.lineTo(-2.5*p,-p)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation;this._basicDot({x:v,y:d,size:p,context:f,rotation:g})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation;this._basicSquare({x:v,y:d,size:p,context:f,rotation:g})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation;this._basicExtraRounded({x:v,y:d,size:p,context:f,rotation:g})},M}(),W="square";var ne=function(){return(ne=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const R=function(){function M(u){var v=u.context,d=u.type;this._context=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var f,g=this._context;switch(this._type){case W:f=this._drawSquare;break;case"dot":default:f=this._drawDot}f.call(this,{x:u,y:v,size:d,context:g,rotation:p})},M.prototype._rotateFigure=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation,C=g===void 0?0:g,O=u.draw,j=v+p/2,H=d+p/2;f.translate(j,H),C&&f.rotate(C),O(),f.closePath(),C&&f.rotate(-C),f.translate(-j,-H)},M.prototype._basicDot=function(u){var v=u.size,d=u.context;this._rotateFigure(ne(ne({},u),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(u){var v=u.size,d=u.context;this._rotateFigure(ne(ne({},u),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation;this._basicDot({x:v,y:d,size:p,context:f,rotation:g})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,f=u.context,g=u.rotation;this._basicSquare({x:v,y:d,size:p,context:f,rotation:g})},M}(),V="radial";var G=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],U=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const q=function(){function M(u){this._canvas=document.createElement("canvas"),this._canvas.width=u.width,this._canvas.height=u.height,this._options=u}return Object.defineProperty(M.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),M.prototype.getCanvas=function(){return this._canvas},M.prototype.clear=function(){var u=this.context;u&&u.clearRect(0,0,this._canvas.width,this._canvas.height)},M.prototype.drawQR=function(u){return v=this,d=void 0,f=function(){var g,C,O,j,H,J,X,oe,me,pe=this;return function(ye,De){var xe,Ee,ce,Ue,we={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ue={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function Ye(Qe){return function(pt){return function(ge){if(xe)throw new TypeError("Generator is already executing.");for(;we;)try{if(xe=1,Ee&&(ce=2&ge[0]?Ee.return:ge[0]?Ee.throw||((ce=Ee.return)&&ce.call(Ee),0):Ee.next)&&!(ce=ce.call(Ee,ge[1])).done)return ce;switch(Ee=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return we.label++,{value:ge[1],done:!1};case 5:we.label++,Ee=ge[1],ge=[0];continue;case 7:ge=we.ops.pop(),we.trys.pop();continue;default:if(!((ce=(ce=we.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){we=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){we.label=ge[1];break}if(ge[0]===6&&we.label<ce[1]){we.label=ce[1],ce=ge;break}if(ce&&we.label<ce[2]){we.label=ce[2],we.ops.push(ge);break}ce[2]&&we.ops.pop(),we.trys.pop();continue}ge=De.call(ye,we)}catch(rt){ge=[6,rt],Ee=0}finally{xe=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,pt])}}}(this,function(ye){switch(ye.label){case 0:return g=u.getModuleCount(),C=Math.min(this._options.width,this._options.height)-2*this._options.margin,O=Math.floor(C/g),j={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=u,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ye.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*I[X.errorCorrectionLevel],me=Math.floor(oe*g*g),j=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:me,maxHiddenAxisDots:g-14,dotSize:O}),ye.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(De,xe){var Ee,ce,Ue,we,Ye,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&De>=(g-j.hideXDots)/2&&De<(g+j.hideXDots)/2&&xe>=(g-j.hideYDots)/2&&xe<(g+j.hideYDots)/2||((Ee=G[De])===null||Ee===void 0?void 0:Ee[xe])||((ce=G[De-g+7])===null||ce===void 0?void 0:ce[xe])||((Ue=G[De])===null||Ue===void 0?void 0:Ue[xe-g+7])||((we=U[De])===null||we===void 0?void 0:we[xe])||((Ye=U[De-g+7])===null||Ye===void 0?void 0:Ye[xe])||((Qe=U[De])===null||Qe===void 0?void 0:Qe[xe-g+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:j.width,height:j.height,count:g,dotSize:O}),[2]}})},new((p=void 0)||(p=Promise))(function(g,C){function O(J){try{H(f.next(J))}catch(X){C(X)}}function j(J){try{H(f.throw(J))}catch(X){C(X)}}function H(J){var X;J.done?g(J.value):(X=J.value,X instanceof p?X:new p(function(oe){oe(X)})).then(O,j)}H((f=f.apply(v,d||[])).next())});var v,d,p,f},M.prototype.drawBackground=function(){var u=this.context,v=this._options;if(u){if(v.backgroundOptions.gradient){var d=v.backgroundOptions.gradient,p=this._createGradient({context:u,options:d,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});d.colorStops.forEach(function(f){var g=f.offset,C=f.color;p.addColorStop(g,C)}),u.fillStyle=p}else v.backgroundOptions.color&&(u.fillStyle=v.backgroundOptions.color);u.fillRect(0,0,this._canvas.width,this._canvas.height)}},M.prototype.drawDots=function(u){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var p=this._options,f=this._qr.getModuleCount();if(f>p.width||f>p.height)throw"The canvas is too small.";var g=Math.min(p.width,p.height)-2*p.margin,C=Math.floor(g/f),O=Math.floor((p.width-f*C)/2),j=Math.floor((p.height-f*C)/2),H=new P({context:d,type:p.dotsOptions.type});d.beginPath();for(var J=function(ye){for(var De=function(Ee){return u&&!u(ye,Ee)?"continue":X._qr.isDark(ye,Ee)?void H.draw(O+ye*C,j+Ee*C,C,function(ce,Ue){return!(ye+ce<0||Ee+Ue<0||ye+ce>=f||Ee+Ue>=f)&&!(u&&!u(ye+ce,Ee+Ue))&&!!v._qr&&v._qr.isDark(ye+ce,Ee+Ue)}):"continue"},xe=0;xe<f;xe++)De(xe)},X=this,oe=0;oe<f;oe++)J(oe);if(p.dotsOptions.gradient){var me=p.dotsOptions.gradient,pe=this._createGradient({context:d,options:me,additionalRotation:0,x:O,y:j,size:f*C});me.colorStops.forEach(function(ye){var De=ye.offset,xe=ye.color;pe.addColorStop(De,xe)}),d.fillStyle=d.strokeStyle=pe}else p.dotsOptions.color&&(d.fillStyle=d.strokeStyle=p.dotsOptions.color);d.fill("evenodd")},M.prototype.drawCorners=function(u){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var p=this._options,f=this._qr.getModuleCount(),g=Math.min(p.width,p.height)-2*p.margin,C=Math.floor(g/f),O=7*C,j=3*C,H=Math.floor((p.width-f*C)/2),J=Math.floor((p.height-f*C)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(X){var oe,me,pe,ye,De,xe,Ee,ce,Ue,we,Ye=X[0],Qe=X[1],pt=X[2];if(!u||u(Ye,Qe)){var ge=H+Ye*C*(f-7),rt=J+Qe*C*(f-7);if(!((oe=p.cornersSquareOptions)===null||oe===void 0)&&oe.type){var Gt=new B({context:d,type:(me=p.cornersSquareOptions)===null||me===void 0?void 0:me.type});d.beginPath(),Gt.draw(ge,rt,O,pt)}else{var At=new P({context:d,type:p.dotsOptions.type});d.beginPath();for(var Tt=function(Ze){for(var Ut=function(bt){if(!(!((pe=G[Ze])===null||pe===void 0)&&pe[bt]))return"continue";At.draw(ge+Ze*C,rt+bt*C,C,function(Cn,An){var Et;return!!(!((Et=G[Ze+Cn])===null||Et===void 0)&&Et[bt+An])})},st=0;st<G[Ze].length;st++)Ut(st)},kt=0;kt<G.length;kt++)Tt(kt)}if(!((ye=p.cornersSquareOptions)===null||ye===void 0)&&ye.gradient){var gt=p.cornersSquareOptions.gradient,ut=v._createGradient({context:d,options:gt,additionalRotation:pt,x:ge,y:rt,size:O});gt.colorStops.forEach(function(Ze){var Ut=Ze.offset,st=Ze.color;ut.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=ut}else!((De=p.cornersSquareOptions)===null||De===void 0)&&De.color&&(d.fillStyle=d.strokeStyle=p.cornersSquareOptions.color);if(d.fill("evenodd"),(xe=p.cornersDotOptions)===null||xe===void 0?void 0:xe.type){var dt=new R({context:d,type:(Ee=p.cornersDotOptions)===null||Ee===void 0?void 0:Ee.type});d.beginPath(),dt.draw(ge+2*C,rt+2*C,j,pt)}else{At=new P({context:d,type:p.dotsOptions.type}),d.beginPath();var vn=function(Ze){for(var Ut=function(bt){if(!(!((ce=U[Ze])===null||ce===void 0)&&ce[bt]))return"continue";At.draw(ge+Ze*C,rt+bt*C,C,function(Cn,An){var Et;return!!(!((Et=U[Ze+Cn])===null||Et===void 0)&&Et[bt+An])})},st=0;st<U[Ze].length;st++)Ut(st)};for(kt=0;kt<U.length;kt++)vn(kt)}if(!((Ue=p.cornersDotOptions)===null||Ue===void 0)&&Ue.gradient){gt=p.cornersDotOptions.gradient;var Xn=v._createGradient({context:d,options:gt,additionalRotation:pt,x:ge+2*C,y:rt+2*C,size:j});gt.colorStops.forEach(function(Ze){var Ut=Ze.offset,st=Ze.color;Xn.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=Xn}else!((we=p.cornersDotOptions)===null||we===void 0)&&we.color&&(d.fillStyle=d.strokeStyle=p.cornersDotOptions.color);d.fill("evenodd")}})},M.prototype.loadImage=function(){var u=this;return new Promise(function(v,d){var p=u._options,f=new Image;if(!p.image)return d("Image is not defined");typeof p.imageOptions.crossOrigin=="string"&&(f.crossOrigin=p.imageOptions.crossOrigin),u._image=f,f.onload=function(){v()},f.src=p.image})},M.prototype.drawImage=function(u){var v=u.width,d=u.height,p=u.count,f=u.dotSize,g=this.context;if(!g)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var C=this._options,O=Math.floor((C.width-p*f)/2),j=Math.floor((C.height-p*f)/2),H=O+C.imageOptions.margin+(p*f-v)/2,J=j+C.imageOptions.margin+(p*f-d)/2,X=v-2*C.imageOptions.margin,oe=d-2*C.imageOptions.margin;g.drawImage(this._image,H,J,X<0?0:X,oe<0?0:oe)},M.prototype._createGradient=function(u){var v,d=u.context,p=u.options,f=u.additionalRotation,g=u.x,C=u.y,O=u.size;if(p.type===V)v=d.createRadialGradient(g+O/2,C+O/2,0,g+O/2,C+O/2,O/2);else{var j=((p.rotation||0)+f)%(2*Math.PI),H=(j+2*Math.PI)%(2*Math.PI),J=g+O/2,X=C+O/2,oe=g+O/2,me=C+O/2;H>=0&&H<=.25*Math.PI||H>1.75*Math.PI&&H<=2*Math.PI?(J-=O/2,X-=O/2*Math.tan(j),oe+=O/2,me+=O/2*Math.tan(j)):H>.25*Math.PI&&H<=.75*Math.PI?(X-=O/2,J-=O/2/Math.tan(j),me+=O/2,oe+=O/2/Math.tan(j)):H>.75*Math.PI&&H<=1.25*Math.PI?(J+=O/2,X+=O/2*Math.tan(j),oe-=O/2,me-=O/2*Math.tan(j)):H>1.25*Math.PI&&H<=1.75*Math.PI&&(X+=O/2,J+=O/2/Math.tan(j),me-=O/2,oe-=O/2/Math.tan(j)),v=d.createLinearGradient(Math.round(J),Math.round(X),Math.round(oe),Math.round(me))}return v},M}();var Z=function(){return(Z=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const se=function(){function M(u){var v=u.svg,d=u.type;this._svg=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var f;switch(this._type){case N:f=this._drawDot;break;case S:f=this._drawClassy;break;case E:f=this._drawClassyRounded;break;case k:f=this._drawRounded;break;case D:f=this._drawExtraRounded;break;case A:default:f=this._drawSquare}f.call(this,{x:u,y:v,size:d,getNeighbor:p})},M.prototype._rotateFigure=function(u){var v,d=u.x,p=u.y,f=u.size,g=u.rotation,C=g===void 0?0:g,O=d+f/2,j=p+f/2;(0,u.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*C/Math.PI+","+O+","+j+")")},M.prototype._basicDot=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(p+d/2)),v._element.setAttribute("cy",String(f+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(p)),v._element.setAttribute("y",String(f)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._basicSideRounded=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+f+"v "+d+"h "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, 0 "+-d)}}))},M.prototype._basicCornerRounded=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+f+"v "+d+"h "+d+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._basicCornerExtraRounded=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+f+"v "+d+"h "+d+"a "+d+" "+d+", 0, 0, 0, "+-d+" "+-d)}}))},M.prototype._basicCornersRounded=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(Z(Z({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+p+" "+f+"v "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+d/2+" "+d/2+"h "+d/2+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size;this._basicDot({x:v,y:d,size:p,rotation:0})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size;this._basicSquare({x:v,y:d,size:p,rotation:0})},M.prototype._drawRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.getNeighbor,g=f?+f(-1,0):0,C=f?+f(1,0):0,O=f?+f(0,-1):0,j=f?+f(0,1):0,H=g+C+O+j;if(H!==0)if(H>2||g&&C||O&&j)this._basicSquare({x:v,y:d,size:p,rotation:0});else{if(H===2){var J=0;return g&&O?J=Math.PI/2:O&&C?J=Math.PI:C&&j&&(J=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:p,rotation:J})}if(H===1)return J=0,O?J=Math.PI/2:C?J=Math.PI:j&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,rotation:J})}else this._basicDot({x:v,y:d,size:p,rotation:0})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.getNeighbor,g=f?+f(-1,0):0,C=f?+f(1,0):0,O=f?+f(0,-1):0,j=f?+f(0,1):0,H=g+C+O+j;if(H!==0)if(H>2||g&&C||O&&j)this._basicSquare({x:v,y:d,size:p,rotation:0});else{if(H===2){var J=0;return g&&O?J=Math.PI/2:O&&C?J=Math.PI:C&&j&&(J=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:p,rotation:J})}if(H===1)return J=0,O?J=Math.PI/2:C?J=Math.PI:j&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:p,rotation:J})}else this._basicDot({x:v,y:d,size:p,rotation:0})},M.prototype._drawClassy=function(u){var v=u.x,d=u.y,p=u.size,f=u.getNeighbor,g=f?+f(-1,0):0,C=f?+f(1,0):0,O=f?+f(0,-1):0,j=f?+f(0,1):0;g+C+O+j!==0?g||O?C||j?this._basicSquare({x:v,y:d,size:p,rotation:0}):this._basicCornerRounded({x:v,y:d,size:p,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:p,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.getNeighbor,g=f?+f(-1,0):0,C=f?+f(1,0):0,O=f?+f(0,-1):0,j=f?+f(0,1):0;g+C+O+j!==0?g||O?C||j?this._basicSquare({x:v,y:d,size:p,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:p,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:p,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:p,rotation:Math.PI/2})},M}();var ie=function(){return(ie=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const F=function(){function M(u){var v=u.svg,d=u.type;this._svg=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var f;switch(this._type){case z:f=this._drawSquare;break;case Y:f=this._drawExtraRounded;break;case"dot":default:f=this._drawDot}f.call(this,{x:u,y:v,size:d,rotation:p})},M.prototype._rotateFigure=function(u){var v,d=u.x,p=u.y,f=u.size,g=u.rotation,C=g===void 0?0:g,O=d+f/2,j=p+f/2;(0,u.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*C/Math.PI+","+O+","+j+")")},M.prototype._basicDot=function(u){var v=this,d=u.size,p=u.x,f=u.y,g=d/7;this._rotateFigure(ie(ie({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+(p+d/2)+" "+f+"a "+d/2+" "+d/2+" 0 1 0 0.1 0zm 0 "+g+"a "+(d/2-g)+" "+(d/2-g)+" 0 1 1 -0.1 0Z")}}))},M.prototype._basicSquare=function(u){var v=this,d=u.size,p=u.x,f=u.y,g=d/7;this._rotateFigure(ie(ie({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+p+" "+f+"v "+d+"h "+d+"v "+-d+"zM "+(p+g)+" "+(f+g)+"h "+(d-2*g)+"v "+(d-2*g)+"h "+(2*g-d)+"z")}}))},M.prototype._basicExtraRounded=function(u){var v=this,d=u.size,p=u.x,f=u.y,g=d/7;this._rotateFigure(ie(ie({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+p+" "+(f+2.5*g)+"v "+2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*g+" "+2.5*g+"h "+2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*g+" "+2.5*-g+"v "+-2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*-g+" "+2.5*-g+"h "+-2*g+"a "+2.5*g+" "+2.5*g+", 0, 0, 0, "+2.5*-g+" "+2.5*g+"M "+(p+2.5*g)+" "+(f+g)+"h "+2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*g+" "+1.5*g+"v "+2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*-g+" "+1.5*g+"h "+-2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*-g+" "+1.5*-g+"v "+-2*g+"a "+1.5*g+" "+1.5*g+", 0, 0, 1, "+1.5*g+" "+1.5*-g)}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,f=u.rotation;this._basicDot({x:v,y:d,size:p,rotation:f})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,f=u.rotation;this._basicSquare({x:v,y:d,size:p,rotation:f})},M.prototype._drawExtraRounded=function(u){var v=u.x,d=u.y,p=u.size,f=u.rotation;this._basicExtraRounded({x:v,y:d,size:p,rotation:f})},M}();var ee=function(){return(ee=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};const re=function(){function M(u){var v=u.svg,d=u.type;this._svg=v,this._type=d}return M.prototype.draw=function(u,v,d,p){var f;switch(this._type){case W:f=this._drawSquare;break;case"dot":default:f=this._drawDot}f.call(this,{x:u,y:v,size:d,rotation:p})},M.prototype._rotateFigure=function(u){var v,d=u.x,p=u.y,f=u.size,g=u.rotation,C=g===void 0?0:g,O=d+f/2,j=p+f/2;(0,u.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*C/Math.PI+","+O+","+j+")")},M.prototype._basicDot=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(ee(ee({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(p+d/2)),v._element.setAttribute("cy",String(f+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(u){var v=this,d=u.size,p=u.x,f=u.y;this._rotateFigure(ee(ee({},u),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(p)),v._element.setAttribute("y",String(f)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._drawDot=function(u){var v=u.x,d=u.y,p=u.size,f=u.rotation;this._basicDot({x:v,y:d,size:p,rotation:f})},M.prototype._drawSquare=function(u){var v=u.x,d=u.y,p=u.size,f=u.rotation;this._basicSquare({x:v,y:d,size:p,rotation:f})},M}();var K=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],_e=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const Ie=function(){function M(u){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(u.width)),this._element.setAttribute("height",String(u.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=u}return Object.defineProperty(M.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),M.prototype.getElement=function(){return this._element},M.prototype.clear=function(){var u,v=this._element;this._element=v.cloneNode(!1),(u=v==null?void 0:v.parentNode)===null||u===void 0||u.replaceChild(this._element,v),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},M.prototype.drawQR=function(u){return v=this,d=void 0,f=function(){var g,C,O,j,H,J,X,oe,me,pe=this;return function(ye,De){var xe,Ee,ce,Ue,we={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ue={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function Ye(Qe){return function(pt){return function(ge){if(xe)throw new TypeError("Generator is already executing.");for(;we;)try{if(xe=1,Ee&&(ce=2&ge[0]?Ee.return:ge[0]?Ee.throw||((ce=Ee.return)&&ce.call(Ee),0):Ee.next)&&!(ce=ce.call(Ee,ge[1])).done)return ce;switch(Ee=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return we.label++,{value:ge[1],done:!1};case 5:we.label++,Ee=ge[1],ge=[0];continue;case 7:ge=we.ops.pop(),we.trys.pop();continue;default:if(!((ce=(ce=we.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){we=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){we.label=ge[1];break}if(ge[0]===6&&we.label<ce[1]){we.label=ce[1],ce=ge;break}if(ce&&we.label<ce[2]){we.label=ce[2],we.ops.push(ge);break}ce[2]&&we.ops.pop(),we.trys.pop();continue}ge=De.call(ye,we)}catch(rt){ge=[6,rt],Ee=0}finally{xe=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,pt])}}}(this,function(ye){switch(ye.label){case 0:return g=u.getModuleCount(),C=Math.min(this._options.width,this._options.height)-2*this._options.margin,O=Math.floor(C/g),j={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=u,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ye.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*I[X.errorCorrectionLevel],me=Math.floor(oe*g*g),j=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:me,maxHiddenAxisDots:g-14,dotSize:O}),ye.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(De,xe){var Ee,ce,Ue,we,Ye,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&De>=(g-j.hideXDots)/2&&De<(g+j.hideXDots)/2&&xe>=(g-j.hideYDots)/2&&xe<(g+j.hideYDots)/2||((Ee=K[De])===null||Ee===void 0?void 0:Ee[xe])||((ce=K[De-g+7])===null||ce===void 0?void 0:ce[xe])||((Ue=K[De])===null||Ue===void 0?void 0:Ue[xe-g+7])||((we=_e[De])===null||we===void 0?void 0:we[xe])||((Ye=_e[De-g+7])===null||Ye===void 0?void 0:Ye[xe])||((Qe=_e[De])===null||Qe===void 0?void 0:Qe[xe-g+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:j.width,height:j.height,count:g,dotSize:O}),[2]}})},new((p=void 0)||(p=Promise))(function(g,C){function O(J){try{H(f.next(J))}catch(X){C(X)}}function j(J){try{H(f.throw(J))}catch(X){C(X)}}function H(J){var X;J.done?g(J.value):(X=J.value,X instanceof p?X:new p(function(oe){oe(X)})).then(O,j)}H((f=f.apply(v,d||[])).next())});var v,d,p,f},M.prototype.drawBackground=function(){var u,v,d=this._element,p=this._options;if(d){var f=(u=p.backgroundOptions)===null||u===void 0?void 0:u.gradient,g=(v=p.backgroundOptions)===null||v===void 0?void 0:v.color;(f||g)&&this._createColor({options:f,color:g,additionalRotation:0,x:0,y:0,height:p.height,width:p.width,name:"background-color"})}},M.prototype.drawDots=function(u){var v,d,p=this;if(!this._qr)throw"QR code is not defined";var f=this._options,g=this._qr.getModuleCount();if(g>f.width||g>f.height)throw"The canvas is too small.";var C=Math.min(f.width,f.height)-2*f.margin,O=Math.floor(C/g),j=Math.floor((f.width-g*O)/2),H=Math.floor((f.height-g*O)/2),J=new se({svg:this._element,type:f.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(v=f.dotsOptions)===null||v===void 0?void 0:v.gradient,color:f.dotsOptions.color,additionalRotation:0,x:j,y:H,height:g*O,width:g*O,name:"dot-color"});for(var X=function(pe){for(var ye=function(xe){return u&&!u(pe,xe)?"continue":!((d=oe._qr)===null||d===void 0)&&d.isDark(pe,xe)?(J.draw(j+pe*O,H+xe*O,O,function(Ee,ce){return!(pe+Ee<0||xe+ce<0||pe+Ee>=g||xe+ce>=g)&&!(u&&!u(pe+Ee,xe+ce))&&!!p._qr&&p._qr.isDark(pe+Ee,xe+ce)}),void(J._element&&oe._dotsClipPath&&oe._dotsClipPath.appendChild(J._element))):"continue"},De=0;De<g;De++)ye(De)},oe=this,me=0;me<g;me++)X(me)},M.prototype.drawCorners=function(){var u=this;if(!this._qr)throw"QR code is not defined";var v=this._element,d=this._options;if(!v)throw"Element code is not defined";var p=this._qr.getModuleCount(),f=Math.min(d.width,d.height)-2*d.margin,g=Math.floor(f/p),C=7*g,O=3*g,j=Math.floor((d.width-p*g)/2),H=Math.floor((d.height-p*g)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(J){var X,oe,me,pe,ye,De,xe,Ee,ce,Ue,we,Ye,Qe=J[0],pt=J[1],ge=J[2],rt=j+Qe*g*(p-7),Gt=H+pt*g*(p-7),At=u._dotsClipPath,Tt=u._dotsClipPath;if((((X=d.cornersSquareOptions)===null||X===void 0?void 0:X.gradient)||((oe=d.cornersSquareOptions)===null||oe===void 0?void 0:oe.color))&&((At=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Qe+"-"+pt),u._defs.appendChild(At),u._cornersSquareClipPath=u._cornersDotClipPath=Tt=At,u._createColor({options:(me=d.cornersSquareOptions)===null||me===void 0?void 0:me.gradient,color:(pe=d.cornersSquareOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:ge,x:rt,y:Gt,height:C,width:C,name:"corners-square-color-"+Qe+"-"+pt})),(ye=d.cornersSquareOptions)===null||ye===void 0?void 0:ye.type){var kt=new F({svg:u._element,type:d.cornersSquareOptions.type});kt.draw(rt,Gt,C,ge),kt._element&&At&&At.appendChild(kt._element)}else for(var gt=new se({svg:u._element,type:d.dotsOptions.type}),ut=function(Ze){for(var Ut=function(bt){if(!(!((De=K[Ze])===null||De===void 0)&&De[bt]))return"continue";gt.draw(rt+Ze*g,Gt+bt*g,g,function(Cn,An){var Et;return!!(!((Et=K[Ze+Cn])===null||Et===void 0)&&Et[bt+An])}),gt._element&&At&&At.appendChild(gt._element)},st=0;st<K[Ze].length;st++)Ut(st)},dt=0;dt<K.length;dt++)ut(dt);if((((xe=d.cornersDotOptions)===null||xe===void 0?void 0:xe.gradient)||((Ee=d.cornersDotOptions)===null||Ee===void 0?void 0:Ee.color))&&((Tt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Qe+"-"+pt),u._defs.appendChild(Tt),u._cornersDotClipPath=Tt,u._createColor({options:(ce=d.cornersDotOptions)===null||ce===void 0?void 0:ce.gradient,color:(Ue=d.cornersDotOptions)===null||Ue===void 0?void 0:Ue.color,additionalRotation:ge,x:rt+2*g,y:Gt+2*g,height:O,width:O,name:"corners-dot-color-"+Qe+"-"+pt})),(we=d.cornersDotOptions)===null||we===void 0?void 0:we.type){var vn=new re({svg:u._element,type:d.cornersDotOptions.type});vn.draw(rt+2*g,Gt+2*g,O,ge),vn._element&&Tt&&Tt.appendChild(vn._element)}else{gt=new se({svg:u._element,type:d.dotsOptions.type});var Xn=function(Ze){for(var Ut=function(bt){if(!(!((Ye=_e[Ze])===null||Ye===void 0)&&Ye[bt]))return"continue";gt.draw(rt+Ze*g,Gt+bt*g,g,function(Cn,An){var Et;return!!(!((Et=_e[Ze+Cn])===null||Et===void 0)&&Et[bt+An])}),gt._element&&Tt&&Tt.appendChild(gt._element)},st=0;st<_e[Ze].length;st++)Ut(st)};for(dt=0;dt<_e.length;dt++)Xn(dt)}})},M.prototype.loadImage=function(){var u=this;return new Promise(function(v,d){var p=u._options,f=new Image;if(!p.image)return d("Image is not defined");typeof p.imageOptions.crossOrigin=="string"&&(f.crossOrigin=p.imageOptions.crossOrigin),u._image=f,f.onload=function(){v()},f.src=p.image})},M.prototype.drawImage=function(u){var v=u.width,d=u.height,p=u.count,f=u.dotSize,g=this._options,C=Math.floor((g.width-p*f)/2),O=Math.floor((g.height-p*f)/2),j=C+g.imageOptions.margin+(p*f-v)/2,H=O+g.imageOptions.margin+(p*f-d)/2,J=v-2*g.imageOptions.margin,X=d-2*g.imageOptions.margin,oe=document.createElementNS("http://www.w3.org/2000/svg","image");oe.setAttribute("href",g.image||""),oe.setAttribute("x",String(j)),oe.setAttribute("y",String(H)),oe.setAttribute("width",J+"px"),oe.setAttribute("height",X+"px"),this._element.appendChild(oe)},M.prototype._createColor=function(u){var v=u.options,d=u.color,p=u.additionalRotation,f=u.x,g=u.y,C=u.height,O=u.width,j=u.name,H=O>C?O:C,J=document.createElementNS("http://www.w3.org/2000/svg","rect");if(J.setAttribute("x",String(f)),J.setAttribute("y",String(g)),J.setAttribute("height",String(C)),J.setAttribute("width",String(O)),J.setAttribute("clip-path","url('#clip-path-"+j+"')"),v){var X;if(v.type===V)(X=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",j),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("fx",String(f+O/2)),X.setAttribute("fy",String(g+C/2)),X.setAttribute("cx",String(f+O/2)),X.setAttribute("cy",String(g+C/2)),X.setAttribute("r",String(H/2));else{var oe=((v.rotation||0)+p)%(2*Math.PI),me=(oe+2*Math.PI)%(2*Math.PI),pe=f+O/2,ye=g+C/2,De=f+O/2,xe=g+C/2;me>=0&&me<=.25*Math.PI||me>1.75*Math.PI&&me<=2*Math.PI?(pe-=O/2,ye-=C/2*Math.tan(oe),De+=O/2,xe+=C/2*Math.tan(oe)):me>.25*Math.PI&&me<=.75*Math.PI?(ye-=C/2,pe-=O/2/Math.tan(oe),xe+=C/2,De+=O/2/Math.tan(oe)):me>.75*Math.PI&&me<=1.25*Math.PI?(pe+=O/2,ye+=C/2*Math.tan(oe),De-=O/2,xe-=C/2*Math.tan(oe)):me>1.25*Math.PI&&me<=1.75*Math.PI&&(ye+=C/2,pe+=O/2/Math.tan(oe),xe-=C/2,De-=O/2/Math.tan(oe)),(X=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",j),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("x1",String(Math.round(pe))),X.setAttribute("y1",String(Math.round(ye))),X.setAttribute("x2",String(Math.round(De))),X.setAttribute("y2",String(Math.round(xe)))}v.colorStops.forEach(function(Ee){var ce=Ee.offset,Ue=Ee.color,we=document.createElementNS("http://www.w3.org/2000/svg","stop");we.setAttribute("offset",100*ce+"%"),we.setAttribute("stop-color",Ue),X.appendChild(we)}),J.setAttribute("fill","url('#"+j+"')"),this._defs.appendChild(X)}else d&&J.setAttribute("fill",d);this._element.appendChild(J)},M}(),Me="canvas";for(var be={},qe=0;qe<=40;qe++)be[qe]=qe;const Ce={type:Me,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:be[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var $=function(){return($=Object.assign||function(M){for(var u,v=1,d=arguments.length;v<d;v++)for(var p in u=arguments[v])Object.prototype.hasOwnProperty.call(u,p)&&(M[p]=u[p]);return M}).apply(this,arguments)};function ae(M){var u=$({},M);if(!u.colorStops||!u.colorStops.length)throw"Field 'colorStops' is required in gradient";return u.rotation?u.rotation=Number(u.rotation):u.rotation=0,u.colorStops=u.colorStops.map(function(v){return $($({},v),{offset:Number(v.offset)})}),u}function _(M){var u=$({},M);return u.width=Number(u.width),u.height=Number(u.height),u.margin=Number(u.margin),u.imageOptions=$($({},u.imageOptions),{hideBackgroundDots:Boolean(u.imageOptions.hideBackgroundDots),imageSize:Number(u.imageOptions.imageSize),margin:Number(u.imageOptions.margin)}),u.margin>Math.min(u.width,u.height)&&(u.margin=Math.min(u.width,u.height)),u.dotsOptions=$({},u.dotsOptions),u.dotsOptions.gradient&&(u.dotsOptions.gradient=ae(u.dotsOptions.gradient)),u.cornersSquareOptions&&(u.cornersSquareOptions=$({},u.cornersSquareOptions),u.cornersSquareOptions.gradient&&(u.cornersSquareOptions.gradient=ae(u.cornersSquareOptions.gradient))),u.cornersDotOptions&&(u.cornersDotOptions=$({},u.cornersDotOptions),u.cornersDotOptions.gradient&&(u.cornersDotOptions.gradient=ae(u.cornersDotOptions.gradient))),u.backgroundOptions&&(u.backgroundOptions=$({},u.backgroundOptions),u.backgroundOptions.gradient&&(u.backgroundOptions.gradient=ae(u.backgroundOptions.gradient))),u}var b=s(192),L=s.n(b),te=function(M,u,v,d){return new(v||(v=Promise))(function(p,f){function g(j){try{O(d.next(j))}catch(H){f(H)}}function C(j){try{O(d.throw(j))}catch(H){f(H)}}function O(j){var H;j.done?p(j.value):(H=j.value,H instanceof v?H:new v(function(J){J(H)})).then(g,C)}O((d=d.apply(M,u||[])).next())})},le=function(M,u){var v,d,p,f,g={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return f={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function C(O){return function(j){return function(H){if(v)throw new TypeError("Generator is already executing.");for(;g;)try{if(v=1,d&&(p=2&H[0]?d.return:H[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,H[1])).done)return p;switch(d=0,p&&(H=[2&H[0],p.value]),H[0]){case 0:case 1:p=H;break;case 4:return g.label++,{value:H[1],done:!1};case 5:g.label++,d=H[1],H=[0];continue;case 7:H=g.ops.pop(),g.trys.pop();continue;default:if(!((p=(p=g.trys).length>0&&p[p.length-1])||H[0]!==6&&H[0]!==2)){g=0;continue}if(H[0]===3&&(!p||H[1]>p[0]&&H[1]<p[3])){g.label=H[1];break}if(H[0]===6&&g.label<p[1]){g.label=p[1],p=H;break}if(p&&g.label<p[2]){g.label=p[2],g.ops.push(H);break}p[2]&&g.ops.pop(),g.trys.pop();continue}H=u.call(M,g)}catch(J){H=[6,J],d=0}finally{v=p=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([O,j])}}};const de=function(){function M(u){this._options=u?_(x(Ce,u)):Ce,this.update()}return M._clearContainer=function(u){u&&(u.innerHTML="")},M.prototype._getQRStylingElement=function(u){return u===void 0&&(u="png"),te(this,void 0,void 0,function(){var v,d,p;return le(this,function(f){switch(f.label){case 0:if(!this._qr)throw"QR code is empty";return u.toLowerCase()!=="svg"?[3,2]:(d=void 0,v=void 0,this._svg&&this._svgDrawingPromise?(v=this._svg,d=this._svgDrawingPromise):(v=new Ie(this._options),d=v.drawQR(this._qr)),[4,d]);case 1:return f.sent(),[2,v];case 2:return d=void 0,p=void 0,this._canvas&&this._canvasDrawingPromise?(p=this._canvas,d=this._canvasDrawingPromise):(p=new q(this._options),d=p.drawQR(this._qr)),[4,d];case 3:return f.sent(),[2,p]}})})},M.prototype.update=function(u){M._clearContainer(this._container),this._options=u?_(x(this._options,u)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(v){switch(!0){case/^[0-9]*$/.test(v):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(v):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Me?(this._canvas=new q(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new Ie(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},M.prototype.append=function(u){if(u){if(typeof u.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Me?this._canvas&&u.appendChild(this._canvas.getCanvas()):this._svg&&u.appendChild(this._svg.getElement()),this._container=u}},M.prototype.getRawData=function(u){return u===void 0&&(u="png"),te(this,void 0,void 0,function(){var v,d,p;return le(this,function(f){switch(f.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(u)];case 1:return v=f.sent(),u.toLowerCase()==="svg"?(d=new XMLSerializer,p=d.serializeToString(v.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
4
- `+p],{type:"image/svg+xml"})]):[2,new Promise(function(g){return v.getCanvas().toBlob(g,"image/"+u,1)})]}})})},M.prototype.download=function(u){return te(this,void 0,void 0,function(){var v,d,p,f,g;return le(this,function(C){switch(C.label){case 0:if(!this._qr)throw"QR code is empty";return v="png",d="qr",typeof u=="string"?(v=u,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof u=="object"&&u!==null&&(u.name&&(d=u.name),u.extension&&(v=u.extension)),[4,this._getQRStylingElement(v)];case 1:return p=C.sent(),v.toLowerCase()==="svg"?(f=new XMLSerializer,g=`<?xml version="1.0" standalone="no"?>\r
5
- `+(g=f.serializeToString(p.getElement())),y("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(g),d+".svg")):y(p.getCanvas().toDataURL("image/"+v),d+"."+v),[2]}})})},M}()}},r={};function a(i){if(r[i])return r[i].exports;var o=r[i]={exports:{}};return n[i](o,o.exports,a),o.exports}return a.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return a.d(o,{a:o}),o},a.d=(i,o)=>{for(var s in o)a.o(o,s)&&!a.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},a.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),a(796)})().default})})(to);var id=ad(to.exports);/*!
1
+ (function(je,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],s):(je=typeof globalThis!="undefined"?globalThis:je||self,s((je.agendize=je.agendize||{},je.agendize.tools={}),je.Vue,je.pinia))})(this,function(je,s,ur){"use strict";var ez=Object.defineProperty;var tz=(je,s,ur)=>s in je?ez(je,s,{enumerable:!0,configurable:!0,writable:!0,value:ur}):je[s]=ur;var dd=(je,s,ur)=>(tz(je,typeof s!="symbol"?s+"":s,ur),ur);function F1(t){const e=s.ref(t.state),n=r=>{e.value=r};return s.onMounted(()=>{t.subscribe(n)}),s.onUnmounted(()=>{t.unsubscribe(n)}),s.readonly(e)}function z1(t,e=!1){let n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),l=t.getSeconds();return e?Or(a)+"/"+Or(r)+"/"+n:n+"-"+Or(r)+"-"+Or(a)+"T"+Or(i)+":"+Or(o)+":"+Or(l)}function Or(t){return t<10?"0"+t:t}function V1(t,e){e.urlPicture.value=void 0,e.pictureAsData.value="",e.filePicture.value=void 0,t&&hd(t).then(n=>{!n||typeof n=="string"&&(e.pictureAsData.value=n)})}const hd=t=>new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result),r.onerror=a=>n(a)});function U1(t,e){let n=new XMLHttpRequest;n.open("get",t),n.responseType="blob",n.onload=function(){let r=new FileReader;r.onload=function(){if(!e&&r.result)return;let a;typeof r.result=="string"?a=r.result:a=Buffer.from(String.fromCharCode(...new Uint8Array(r.result)),"base64").toString(),e(a)},r.readAsDataURL(n.response)},n.send()}function H1(t){try{return parseInt(t)}catch{return 0}}function j1(t){return t?t.getFullYear()+"/"+dl(t.getMonth()+1)+"/"+dl(t.getDate()):""}function dl(t,e=2){let n=t+"";for(;n.length<e;)n="0"+n;return n}function Y1(t){let e=document.createElement("div");return e.innerHTML=t,e.textContent}function W1(t){var e,n;if(t!=null&&t.name){const r=t.name.split(" ");return r.map(a=>a.substring(0,1)).join("").toUpperCase().substring(0,Math.min(2,r.length))}else return((((e=t==null?void 0:t.firstName)==null?void 0:e.substring(0,1))||"")+(((n=t==null?void 0:t.lastName)==null?void 0:n.substring(0,1))||"")+"").toUpperCase()}function G1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fd={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(self,function(){return(()=>{var n={192:(i,o)=>{var l,c,d=function(){var h=function(B,Z){var Y=B,q=T[Z],G=null,ne=0,oe=null,J=[],$={},Q=function(te,ue){G=function(_){for(var g=new Array(_),x=0;x<_;x+=1){g[x]=new Array(_);for(var X=0;X<_;X+=1)g[x][X]=null}return g}(ne=4*Y+17),ae(0,0),ae(ne-7,0),ae(0,ne-7),Ee(),W(),Te(te,ue),Y>=7&&_e(te),oe==null&&(oe=Ne(Y,q,J)),De(oe,ue)},ae=function(te,ue){for(var _=-1;_<=7;_+=1)if(!(te+_<=-1||ne<=te+_))for(var g=-1;g<=7;g+=1)ue+g<=-1||ne<=ue+g||(G[te+_][ue+g]=0<=_&&_<=6&&(g==0||g==6)||0<=g&&g<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=g&&g<=4)},W=function(){for(var te=8;te<ne-8;te+=1)G[te][6]==null&&(G[te][6]=te%2==0);for(var ue=8;ue<ne-8;ue+=1)G[6][ue]==null&&(G[6][ue]=ue%2==0)},Ee=function(){for(var te=b.getPatternPosition(Y),ue=0;ue<te.length;ue+=1)for(var _=0;_<te.length;_+=1){var g=te[ue],x=te[_];if(G[g][x]==null)for(var X=-2;X<=2;X+=1)for(var ce=-2;ce<=2;ce+=1)G[g+X][x+ce]=X==-2||X==2||ce==-2||ce==2||X==0&&ce==0}},_e=function(te){for(var ue=b.getBCHTypeNumber(Y),_=0;_<18;_+=1){var g=!te&&(ue>>_&1)==1;G[Math.floor(_/3)][_%3+ne-8-3]=g}for(_=0;_<18;_+=1)g=!te&&(ue>>_&1)==1,G[_%3+ne-8-3][Math.floor(_/3)]=g},Te=function(te,ue){for(var _=q<<3|ue,g=b.getBCHTypeInfo(_),x=0;x<15;x+=1){var X=!te&&(g>>x&1)==1;x<6?G[x][8]=X:x<8?G[x+1][8]=X:G[ne-15+x][8]=X}for(x=0;x<15;x+=1)X=!te&&(g>>x&1)==1,x<8?G[8][ne-x-1]=X:x<9?G[8][15-x-1+1]=X:G[8][15-x-1]=X;G[ne-8][8]=!te},De=function(te,ue){for(var _=-1,g=ne-1,x=7,X=0,ce=b.getMaskFunction(ue),me=ne-1;me>0;me-=2)for(me==6&&(me-=1);;){for(var K=0;K<2;K+=1)if(G[g][me-K]==null){var v=!1;X<te.length&&(v=(te[X]>>>x&1)==1),ce(g,me-K)&&(v=!v),G[g][me-K]=v,(x-=1)==-1&&(X+=1,x=7)}if((g+=_)<0||ne<=g){g-=_,_=-_;break}}},Ne=function(te,ue,_){for(var g=S.getRSBlocks(te,ue),x=N(),X=0;X<_.length;X+=1){var ce=_[X];x.put(ce.getMode(),4),x.put(ce.getLength(),b.getLengthInBits(ce.getMode(),te)),ce.write(x)}var me=0;for(X=0;X<g.length;X+=1)me+=g[X].dataCount;if(x.getLengthInBits()>8*me)throw"code length overflow. ("+x.getLengthInBits()+">"+8*me+")";for(x.getLengthInBits()+4<=8*me&&x.put(0,4);x.getLengthInBits()%8!=0;)x.putBit(!1);for(;!(x.getLengthInBits()>=8*me||(x.put(236,8),x.getLengthInBits()>=8*me));)x.put(17,8);return function(K,v){for(var O=0,y=0,D=0,I=new Array(v.length),C=new Array(v.length),P=0;P<v.length;P+=1){var H=v[P].dataCount,ee=v[P].totalCount-H;y=Math.max(y,H),D=Math.max(D,ee),I[P]=new Array(H);for(var re=0;re<I[P].length;re+=1)I[P][re]=255&K.getBuffer()[re+O];O+=H;var se=b.getErrorCorrectPolynomial(ee),le=A(I[P],se.getLength()-1).mod(se);for(C[P]=new Array(se.getLength()-1),re=0;re<C[P].length;re+=1){var he=re+le.getLength()-C[P].length;C[P][re]=he>=0?le.getAt(he):0}}var ke=0;for(re=0;re<v.length;re+=1)ke+=v[re].totalCount;var Ce=new Array(ke),Oe=0;for(re=0;re<y;re+=1)for(P=0;P<v.length;P+=1)re<I[P].length&&(Ce[Oe]=I[P][re],Oe+=1);for(re=0;re<D;re+=1)for(P=0;P<v.length;P+=1)re<C[P].length&&(Ce[Oe]=C[P][re],Oe+=1);return Ce}(x,g)};$.addData=function(te,ue){var _=null;switch(ue=ue||"Byte"){case"Numeric":_=L(te);break;case"Alphanumeric":_=M(te);break;case"Byte":_=F(te);break;case"Kanji":_=V(te);break;default:throw"mode:"+ue}J.push(_),oe=null},$.isDark=function(te,ue){if(te<0||ne<=te||ue<0||ne<=ue)throw te+","+ue;return G[te][ue]},$.getModuleCount=function(){return ne},$.make=function(){if(Y<1){for(var te=1;te<40;te++){for(var ue=S.getRSBlocks(te,q),_=N(),g=0;g<J.length;g++){var x=J[g];_.put(x.getMode(),4),_.put(x.getLength(),b.getLengthInBits(x.getMode(),te)),x.write(_)}var X=0;for(g=0;g<ue.length;g++)X+=ue[g].dataCount;if(_.getLengthInBits()<=8*X)break}Y=te}Q(!1,function(){for(var ce=0,me=0,K=0;K<8;K+=1){Q(!0,K);var v=b.getLostPoint($);(K==0||ce>v)&&(ce=v,me=K)}return me}())},$.createTableTag=function(te,ue){te=te||2;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+(ue=ue===void 0?4*te:ue)+"px;",_+='">',_+="<tbody>";for(var g=0;g<$.getModuleCount();g+=1){_+="<tr>";for(var x=0;x<$.getModuleCount();x+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+te+"px;",_+=" height: "+te+"px;",_+=" background-color: ",_+=$.isDark(g,x)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return(_+="</tbody>")+"</table>"},$.createSvgTag=function(te,ue,_,g){var x={};typeof arguments[0]=="object"&&(te=(x=arguments[0]).cellSize,ue=x.margin,_=x.alt,g=x.title),te=te||2,ue=ue===void 0?4*te:ue,(_=typeof _=="string"?{text:_}:_||{}).text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,(g=typeof g=="string"?{text:g}:g||{}).text=g.text||null,g.id=g.text?g.id||"qrcode-title":null;var X,ce,me,K,v=$.getModuleCount()*te+2*ue,O="";for(K="l"+te+",0 0,"+te+" -"+te+",0 0,-"+te+"z ",O+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',O+=x.scalable?"":' width="'+v+'px" height="'+v+'px"',O+=' viewBox="0 0 '+v+" "+v+'" ',O+=' preserveAspectRatio="xMinYMin meet"',O+=g.text||_.text?' role="img" aria-labelledby="'+Ae([g.id,_.id].join(" ").trim())+'"':"",O+=">",O+=g.text?'<title id="'+Ae(g.id)+'">'+Ae(g.text)+"</title>":"",O+=_.text?'<description id="'+Ae(_.id)+'">'+Ae(_.text)+"</description>":"",O+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',O+='<path d="',ce=0;ce<$.getModuleCount();ce+=1)for(me=ce*te+ue,X=0;X<$.getModuleCount();X+=1)$.isDark(ce,X)&&(O+="M"+(X*te+ue)+","+me+K);return(O+='" stroke="transparent" fill="black"/>')+"</svg>"},$.createDataURL=function(te,ue){te=te||2,ue=ue===void 0?4*te:ue;var _=$.getModuleCount()*te+2*ue,g=ue,x=_-ue;return j(_,_,function(X,ce){if(g<=X&&X<x&&g<=ce&&ce<x){var me=Math.floor((X-g)/te),K=Math.floor((ce-g)/te);return $.isDark(K,me)?0:1}return 1})},$.createImgTag=function(te,ue,_){te=te||2,ue=ue===void 0?4*te:ue;var g=$.getModuleCount()*te+2*ue,x="";return x+="<img",x+=' src="',x+=$.createDataURL(te,ue),x+='"',x+=' width="',x+=g,x+='"',x+=' height="',x+=g,x+='"',_&&(x+=' alt="',x+=Ae(_),x+='"'),x+"/>"};var Ae=function(te){for(var ue="",_=0;_<te.length;_+=1){var g=te.charAt(_);switch(g){case"<":ue+="&lt;";break;case">":ue+="&gt;";break;case"&":ue+="&amp;";break;case'"':ue+="&quot;";break;default:ue+=g}}return ue};return $.createASCII=function(te,ue){if((te=te||1)<2)return function(I){I=I===void 0?2:I;var C,P,H,ee,re,se=1*$.getModuleCount()+2*I,le=I,he=se-I,ke={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Ce={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Oe="";for(C=0;C<se;C+=2){for(H=Math.floor((C-le)/1),ee=Math.floor((C+1-le)/1),P=0;P<se;P+=1)re="\u2588",le<=P&&P<he&&le<=C&&C<he&&$.isDark(H,Math.floor((P-le)/1))&&(re=" "),le<=P&&P<he&&le<=C+1&&C+1<he&&$.isDark(ee,Math.floor((P-le)/1))?re+=" ":re+="\u2588",Oe+=I<1&&C+1>=he?Ce[re]:ke[re];Oe+=`
2
+ `}return se%2&&I>0?Oe.substring(0,Oe.length-se-1)+Array(se+1).join("\u2580"):Oe.substring(0,Oe.length-1)}(ue);te-=1,ue=ue===void 0?2*te:ue;var _,g,x,X,ce=$.getModuleCount()*te+2*ue,me=ue,K=ce-ue,v=Array(te+1).join("\u2588\u2588"),O=Array(te+1).join(" "),y="",D="";for(_=0;_<ce;_+=1){for(x=Math.floor((_-me)/te),D="",g=0;g<ce;g+=1)X=1,me<=g&&g<K&&me<=_&&_<K&&$.isDark(x,Math.floor((g-me)/te))&&(X=0),D+=X?v:O;for(x=0;x<te;x+=1)y+=D+`
3
+ `}return y.substring(0,y.length-1)},$.renderTo2dContext=function(te,ue){ue=ue||2;for(var _=$.getModuleCount(),g=0;g<_;g++)for(var x=0;x<_;x++)te.fillStyle=$.isDark(g,x)?"black":"white",te.fillRect(g*ue,x*ue,ue,ue)},$};h.stringToBytes=(h.stringToBytesFuncs={default:function(B){for(var Z=[],Y=0;Y<B.length;Y+=1){var q=B.charCodeAt(Y);Z.push(255&q)}return Z}}).default,h.createStringToBytes=function(B,Z){var Y=function(){for(var G=z(B),ne=function(){var W=G.read();if(W==-1)throw"eof";return W},oe=0,J={};;){var $=G.read();if($==-1)break;var Q=ne(),ae=ne()<<8|ne();J[String.fromCharCode($<<8|Q)]=ae,oe+=1}if(oe!=Z)throw oe+" != "+Z;return J}(),q="?".charCodeAt(0);return function(G){for(var ne=[],oe=0;oe<G.length;oe+=1){var J=G.charCodeAt(oe);if(J<128)ne.push(J);else{var $=Y[G.charAt(oe)];typeof $=="number"?(255&$)==$?ne.push($):(ne.push($>>>8),ne.push(255&$)):ne.push(q)}}return ne}};var m,f,p,E,k,T={L:1,M:0,Q:3,H:2},b=(m=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],f=1335,p=7973,k=function(B){for(var Z=0;B!=0;)Z+=1,B>>>=1;return Z},(E={}).getBCHTypeInfo=function(B){for(var Z=B<<10;k(Z)-k(f)>=0;)Z^=f<<k(Z)-k(f);return 21522^(B<<10|Z)},E.getBCHTypeNumber=function(B){for(var Z=B<<12;k(Z)-k(p)>=0;)Z^=p<<k(Z)-k(p);return B<<12|Z},E.getPatternPosition=function(B){return m[B-1]},E.getMaskFunction=function(B){switch(B){case 0:return function(Z,Y){return(Z+Y)%2==0};case 1:return function(Z,Y){return Z%2==0};case 2:return function(Z,Y){return Y%3==0};case 3:return function(Z,Y){return(Z+Y)%3==0};case 4:return function(Z,Y){return(Math.floor(Z/2)+Math.floor(Y/3))%2==0};case 5:return function(Z,Y){return Z*Y%2+Z*Y%3==0};case 6:return function(Z,Y){return(Z*Y%2+Z*Y%3)%2==0};case 7:return function(Z,Y){return(Z*Y%3+(Z+Y)%2)%2==0};default:throw"bad maskPattern:"+B}},E.getErrorCorrectPolynomial=function(B){for(var Z=A([1],0),Y=0;Y<B;Y+=1)Z=Z.multiply(A([1,w.gexp(Y)],0));return Z},E.getLengthInBits=function(B,Z){if(1<=Z&&Z<10)switch(B){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+B}else if(Z<27)switch(B){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+B}else{if(!(Z<41))throw"type:"+Z;switch(B){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+B}}},E.getLostPoint=function(B){for(var Z=B.getModuleCount(),Y=0,q=0;q<Z;q+=1)for(var G=0;G<Z;G+=1){for(var ne=0,oe=B.isDark(q,G),J=-1;J<=1;J+=1)if(!(q+J<0||Z<=q+J))for(var $=-1;$<=1;$+=1)G+$<0||Z<=G+$||J==0&&$==0||oe==B.isDark(q+J,G+$)&&(ne+=1);ne>5&&(Y+=3+ne-5)}for(q=0;q<Z-1;q+=1)for(G=0;G<Z-1;G+=1){var Q=0;B.isDark(q,G)&&(Q+=1),B.isDark(q+1,G)&&(Q+=1),B.isDark(q,G+1)&&(Q+=1),B.isDark(q+1,G+1)&&(Q+=1),Q!=0&&Q!=4||(Y+=3)}for(q=0;q<Z;q+=1)for(G=0;G<Z-6;G+=1)B.isDark(q,G)&&!B.isDark(q,G+1)&&B.isDark(q,G+2)&&B.isDark(q,G+3)&&B.isDark(q,G+4)&&!B.isDark(q,G+5)&&B.isDark(q,G+6)&&(Y+=40);for(G=0;G<Z;G+=1)for(q=0;q<Z-6;q+=1)B.isDark(q,G)&&!B.isDark(q+1,G)&&B.isDark(q+2,G)&&B.isDark(q+3,G)&&B.isDark(q+4,G)&&!B.isDark(q+5,G)&&B.isDark(q+6,G)&&(Y+=40);var ae=0;for(G=0;G<Z;G+=1)for(q=0;q<Z;q+=1)B.isDark(q,G)&&(ae+=1);return Y+Math.abs(100*ae/Z/Z-50)/5*10},E),w=function(){for(var B=new Array(256),Z=new Array(256),Y=0;Y<8;Y+=1)B[Y]=1<<Y;for(Y=8;Y<256;Y+=1)B[Y]=B[Y-4]^B[Y-5]^B[Y-6]^B[Y-8];for(Y=0;Y<255;Y+=1)Z[B[Y]]=Y;return{glog:function(q){if(q<1)throw"glog("+q+")";return Z[q]},gexp:function(q){for(;q<0;)q+=255;for(;q>=256;)q-=255;return B[q]}}}();function A(B,Z){if(B.length===void 0)throw B.length+"/"+Z;var Y=function(){for(var G=0;G<B.length&&B[G]==0;)G+=1;for(var ne=new Array(B.length-G+Z),oe=0;oe<B.length-G;oe+=1)ne[oe]=B[oe+G];return ne}(),q={getAt:function(G){return Y[G]},getLength:function(){return Y.length},multiply:function(G){for(var ne=new Array(q.getLength()+G.getLength()-1),oe=0;oe<q.getLength();oe+=1)for(var J=0;J<G.getLength();J+=1)ne[oe+J]^=w.gexp(w.glog(q.getAt(oe))+w.glog(G.getAt(J)));return A(ne,0)},mod:function(G){if(q.getLength()-G.getLength()<0)return q;for(var ne=w.glog(q.getAt(0))-w.glog(G.getAt(0)),oe=new Array(q.getLength()),J=0;J<q.getLength();J+=1)oe[J]=q.getAt(J);for(J=0;J<G.getLength();J+=1)oe[J]^=w.gexp(w.glog(G.getAt(J))+ne);return A(oe,0).mod(G)}};return q}var S=function(){var B=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Z=function(q,G){var ne={};return ne.totalCount=q,ne.dataCount=G,ne},Y={getRSBlocks:function(q,G){var ne=function(_e,Te){switch(Te){case T.L:return B[4*(_e-1)+0];case T.M:return B[4*(_e-1)+1];case T.Q:return B[4*(_e-1)+2];case T.H:return B[4*(_e-1)+3];default:return}}(q,G);if(ne===void 0)throw"bad rs block @ typeNumber:"+q+"/errorCorrectionLevel:"+G;for(var oe=ne.length/3,J=[],$=0;$<oe;$+=1)for(var Q=ne[3*$+0],ae=ne[3*$+1],W=ne[3*$+2],Ee=0;Ee<Q;Ee+=1)J.push(Z(ae,W));return J}};return Y}(),N=function(){var B=[],Z=0,Y={getBuffer:function(){return B},getAt:function(q){var G=Math.floor(q/8);return(B[G]>>>7-q%8&1)==1},put:function(q,G){for(var ne=0;ne<G;ne+=1)Y.putBit((q>>>G-ne-1&1)==1)},getLengthInBits:function(){return Z},putBit:function(q){var G=Math.floor(Z/8);B.length<=G&&B.push(0),q&&(B[G]|=128>>>Z%8),Z+=1}};return Y},L=function(B){var Z=B,Y={getMode:function(){return 1},getLength:function(ne){return Z.length},write:function(ne){for(var oe=Z,J=0;J+2<oe.length;)ne.put(q(oe.substring(J,J+3)),10),J+=3;J<oe.length&&(oe.length-J==1?ne.put(q(oe.substring(J,J+1)),4):oe.length-J==2&&ne.put(q(oe.substring(J,J+2)),7))}},q=function(ne){for(var oe=0,J=0;J<ne.length;J+=1)oe=10*oe+G(ne.charAt(J));return oe},G=function(ne){if("0"<=ne&&ne<="9")return ne.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+ne};return Y},M=function(B){var Z=B,Y={getMode:function(){return 2},getLength:function(G){return Z.length},write:function(G){for(var ne=Z,oe=0;oe+1<ne.length;)G.put(45*q(ne.charAt(oe))+q(ne.charAt(oe+1)),11),oe+=2;oe<ne.length&&G.put(q(ne.charAt(oe)),6)}},q=function(G){if("0"<=G&&G<="9")return G.charCodeAt(0)-"0".charCodeAt(0);if("A"<=G&&G<="Z")return G.charCodeAt(0)-"A".charCodeAt(0)+10;switch(G){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+G}};return Y},F=function(B){var Z=h.stringToBytes(B);return{getMode:function(){return 4},getLength:function(Y){return Z.length},write:function(Y){for(var q=0;q<Z.length;q+=1)Y.put(Z[q],8)}}},V=function(B){var Z=h.stringToBytesFuncs.SJIS;if(!Z)throw"sjis not supported.";(function(q,G){var ne=Z("\u53CB");if(ne.length!=2||(ne[0]<<8|ne[1])!=38726)throw"sjis not supported."})();var Y=Z(B);return{getMode:function(){return 8},getLength:function(q){return~~(Y.length/2)},write:function(q){for(var G=Y,ne=0;ne+1<G.length;){var oe=(255&G[ne])<<8|255&G[ne+1];if(33088<=oe&&oe<=40956)oe-=33088;else{if(!(57408<=oe&&oe<=60351))throw"illegal char at "+(ne+1)+"/"+oe;oe-=49472}oe=192*(oe>>>8&255)+(255&oe),q.put(oe,13),ne+=2}if(ne<G.length)throw"illegal char at "+(ne+1)}}},R=function(){var B=[],Z={writeByte:function(Y){B.push(255&Y)},writeShort:function(Y){Z.writeByte(Y),Z.writeByte(Y>>>8)},writeBytes:function(Y,q,G){q=q||0,G=G||Y.length;for(var ne=0;ne<G;ne+=1)Z.writeByte(Y[ne+q])},writeString:function(Y){for(var q=0;q<Y.length;q+=1)Z.writeByte(Y.charCodeAt(q))},toByteArray:function(){return B},toString:function(){var Y="";Y+="[";for(var q=0;q<B.length;q+=1)q>0&&(Y+=","),Y+=B[q];return Y+"]"}};return Z},z=function(B){var Z=B,Y=0,q=0,G=0,ne={read:function(){for(;G<8;){if(Y>=Z.length){if(G==0)return-1;throw"unexpected end of file./"+G}var J=Z.charAt(Y);if(Y+=1,J=="=")return G=0,-1;J.match(/^\s$/)||(q=q<<6|oe(J.charCodeAt(0)),G+=6)}var $=q>>>G-8&255;return G-=8,$}},oe=function(J){if(65<=J&&J<=90)return J-65;if(97<=J&&J<=122)return J-97+26;if(48<=J&&J<=57)return J-48+52;if(J==43)return 62;if(J==47)return 63;throw"c:"+J};return ne},j=function(B,Z,Y){for(var q=function(ae,W){var Ee=ae,_e=W,Te=new Array(ae*W),De={setPixel:function(te,ue,_){Te[ue*Ee+te]=_},write:function(te){te.writeString("GIF87a"),te.writeShort(Ee),te.writeShort(_e),te.writeByte(128),te.writeByte(0),te.writeByte(0),te.writeByte(0),te.writeByte(0),te.writeByte(0),te.writeByte(255),te.writeByte(255),te.writeByte(255),te.writeString(","),te.writeShort(0),te.writeShort(0),te.writeShort(Ee),te.writeShort(_e),te.writeByte(0);var ue=Ne(2);te.writeByte(2);for(var _=0;ue.length-_>255;)te.writeByte(255),te.writeBytes(ue,_,255),_+=255;te.writeByte(ue.length-_),te.writeBytes(ue,_,ue.length-_),te.writeByte(0),te.writeString(";")}},Ne=function(te){for(var ue=1<<te,_=1+(1<<te),g=te+1,x=Ae(),X=0;X<ue;X+=1)x.add(String.fromCharCode(X));x.add(String.fromCharCode(ue)),x.add(String.fromCharCode(_));var ce,me,K,v=R(),O=(ce=v,me=0,K=0,{write:function(C,P){if(C>>>P!=0)throw"length over";for(;me+P>=8;)ce.writeByte(255&(C<<me|K)),P-=8-me,C>>>=8-me,K=0,me=0;K|=C<<me,me+=P},flush:function(){me>0&&ce.writeByte(K)}});O.write(ue,g);var y=0,D=String.fromCharCode(Te[y]);for(y+=1;y<Te.length;){var I=String.fromCharCode(Te[y]);y+=1,x.contains(D+I)?D+=I:(O.write(x.indexOf(D),g),x.size()<4095&&(x.size()==1<<g&&(g+=1),x.add(D+I)),D=I)}return O.write(x.indexOf(D),g),O.write(_,g),O.flush(),v.toByteArray()},Ae=function(){var te={},ue=0,_={add:function(g){if(_.contains(g))throw"dup key:"+g;te[g]=ue,ue+=1},size:function(){return ue},indexOf:function(g){return te[g]},contains:function(g){return te[g]!==void 0}};return _};return De}(B,Z),G=0;G<Z;G+=1)for(var ne=0;ne<B;ne+=1)q.setPixel(ne,G,Y(ne,G));var oe=R();q.write(oe);for(var J=function(){var ae=0,W=0,Ee=0,_e="",Te={},De=function(Ae){_e+=String.fromCharCode(Ne(63&Ae))},Ne=function(Ae){if(!(Ae<0)){if(Ae<26)return 65+Ae;if(Ae<52)return Ae-26+97;if(Ae<62)return Ae-52+48;if(Ae==62)return 43;if(Ae==63)return 47}throw"n:"+Ae};return Te.writeByte=function(Ae){for(ae=ae<<8|255&Ae,W+=8,Ee+=1;W>=6;)De(ae>>>W-6),W-=6},Te.flush=function(){if(W>0&&(De(ae<<6-W),ae=0,W=0),Ee%3!=0)for(var Ae=3-Ee%3,te=0;te<Ae;te+=1)_e+="="},Te.toString=function(){return _e},Te}(),$=oe.toByteArray(),Q=0;Q<$.length;Q+=1)J.writeByte($[Q]);return J.flush(),"data:image/gif;base64,"+J};return h}();d.stringToBytesFuncs["UTF-8"]=function(h){return function(m){for(var f=[],p=0;p<m.length;p++){var E=m.charCodeAt(p);E<128?f.push(E):E<2048?f.push(192|E>>6,128|63&E):E<55296||E>=57344?f.push(224|E>>12,128|E>>6&63,128|63&E):(p++,E=65536+((1023&E)<<10|1023&m.charCodeAt(p)),f.push(240|E>>18,128|E>>12&63,128|E>>6&63,128|63&E))}return f}(h)},(c=typeof(l=function(){return d})=="function"?l.apply(o,[]):l)===void 0||(i.exports=c)},796:(i,o,l)=>{l.d(o,{default:()=>me});var c=function(){return(c=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)},d=function(){for(var K=0,v=0,O=arguments.length;v<O;v++)K+=arguments[v].length;var y=Array(K),D=0;for(v=0;v<O;v++)for(var I=arguments[v],C=0,P=I.length;C<P;C++,D++)y[D]=I[C];return y},h=function(K){return!!K&&typeof K=="object"&&!Array.isArray(K)};function m(K){for(var v=[],O=1;O<arguments.length;O++)v[O-1]=arguments[O];if(!v.length)return K;var y=v.shift();return y!==void 0&&h(K)&&h(y)?(K=c({},K),Object.keys(y).forEach(function(D){var I=K[D],C=y[D];Array.isArray(I)&&Array.isArray(C)?K[D]=C:h(I)&&h(C)?K[D]=m(Object.assign({},I),C):K[D]=C}),m.apply(void 0,d([K],v))):K}function f(K,v){var O=document.createElement("a");O.download=v,O.href=K,document.body.appendChild(O),O.click(),document.body.removeChild(O)}function p(K){var v=K.originalHeight,O=K.originalWidth,y=K.maxHiddenDots,D=K.maxHiddenAxisDots,I=K.dotSize,C={x:0,y:0},P={x:0,y:0};if(v<=0||O<=0||y<=0||I<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var H=v/O;return C.x=Math.floor(Math.sqrt(y/H)),C.x<=0&&(C.x=1),D&&D<C.x&&(C.x=D),C.x%2==0&&C.x--,P.x=C.x*I,C.y=1+2*Math.ceil((C.x*H-1)/2),P.y=Math.round(P.x*H),(C.y*C.x>y||D&&D<C.y)&&(D&&D<C.y?(C.y=D,C.y%2==0&&C.x--):C.y-=2,P.y=C.y*I,C.x=1+2*Math.ceil((C.y/H-1)/2),P.x=Math.round(P.y/H)),{height:P.y,width:P.x,hideYDots:C.y,hideXDots:C.x}}const E={L:.07,M:.15,Q:.25,H:.3},k="dots",T="rounded",b="classy",w="classy-rounded",A="square",S="extra-rounded";var N=function(){return(N=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};const L=function(){function K(v){var O=v.context,y=v.type;this._context=O,this._type=y}return K.prototype.draw=function(v,O,y,D){var I,C=this._context;switch(this._type){case k:I=this._drawDot;break;case b:I=this._drawClassy;break;case w:I=this._drawClassyRounded;break;case T:I=this._drawRounded;break;case S:I=this._drawExtraRounded;break;case A:default:I=this._drawSquare}I.call(this,{x:v,y:O,size:y,context:C,getNeighbor:D})},K.prototype._rotateFigure=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation,P=C===void 0?0:C,H=v.draw,ee=O+D/2,re=y+D/2;I.translate(ee,re),P&&I.rotate(P),H(),I.closePath(),P&&I.rotate(-P),I.translate(-ee,-re)},K.prototype._basicDot=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.arc(0,0,O/2,0,2*Math.PI)}}))},K.prototype._basicSquare=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.rect(-O/2,-O/2,O,O)}}))},K.prototype._basicSideRounded=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.arc(0,0,O/2,-Math.PI/2,Math.PI/2),y.lineTo(-O/2,O/2),y.lineTo(-O/2,-O/2),y.lineTo(0,-O/2)}}))},K.prototype._basicCornerRounded=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.arc(0,0,O/2,-Math.PI/2,0),y.lineTo(O/2,O/2),y.lineTo(-O/2,O/2),y.lineTo(-O/2,-O/2),y.lineTo(0,-O/2)}}))},K.prototype._basicCornerExtraRounded=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.arc(-O/2,O/2,O,-Math.PI/2,0),y.lineTo(-O/2,O/2),y.lineTo(-O/2,-O/2)}}))},K.prototype._basicCornersRounded=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.arc(0,0,O/2,-Math.PI/2,0),y.lineTo(O/2,O/2),y.lineTo(0,O/2),y.arc(0,0,O/2,Math.PI/2,Math.PI),y.lineTo(-O/2,-O/2),y.lineTo(0,-O/2)}}))},K.prototype._basicCornersExtraRounded=function(v){var O=v.size,y=v.context;this._rotateFigure(N(N({},v),{draw:function(){y.arc(-O/2,O/2,O,-Math.PI/2,0),y.arc(O/2,-O/2,O,Math.PI/2,Math.PI)}}))},K.prototype._drawDot=function(v){var O=v.x,y=v.y,D=v.size,I=v.context;this._basicDot({x:O,y,size:D,context:I,rotation:0})},K.prototype._drawSquare=function(v){var O=v.x,y=v.y,D=v.size,I=v.context;this._basicSquare({x:O,y,size:D,context:I,rotation:0})},K.prototype._drawRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.getNeighbor,P=C?+C(-1,0):0,H=C?+C(1,0):0,ee=C?+C(0,-1):0,re=C?+C(0,1):0,se=P+H+ee+re;if(se!==0)if(se>2||P&&H||ee&&re)this._basicSquare({x:O,y,size:D,context:I,rotation:0});else{if(se===2){var le=0;return P&&ee?le=Math.PI/2:ee&&H?le=Math.PI:H&&re&&(le=-Math.PI/2),void this._basicCornerRounded({x:O,y,size:D,context:I,rotation:le})}if(se===1)return le=0,ee?le=Math.PI/2:H?le=Math.PI:re&&(le=-Math.PI/2),void this._basicSideRounded({x:O,y,size:D,context:I,rotation:le})}else this._basicDot({x:O,y,size:D,context:I,rotation:0})},K.prototype._drawExtraRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.getNeighbor,P=C?+C(-1,0):0,H=C?+C(1,0):0,ee=C?+C(0,-1):0,re=C?+C(0,1):0,se=P+H+ee+re;if(se!==0)if(se>2||P&&H||ee&&re)this._basicSquare({x:O,y,size:D,context:I,rotation:0});else{if(se===2){var le=0;return P&&ee?le=Math.PI/2:ee&&H?le=Math.PI:H&&re&&(le=-Math.PI/2),void this._basicCornerExtraRounded({x:O,y,size:D,context:I,rotation:le})}if(se===1)return le=0,ee?le=Math.PI/2:H?le=Math.PI:re&&(le=-Math.PI/2),void this._basicSideRounded({x:O,y,size:D,context:I,rotation:le})}else this._basicDot({x:O,y,size:D,context:I,rotation:0})},K.prototype._drawClassy=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.getNeighbor,P=C?+C(-1,0):0,H=C?+C(1,0):0,ee=C?+C(0,-1):0,re=C?+C(0,1):0;P+H+ee+re!==0?P||ee?H||re?this._basicSquare({x:O,y,size:D,context:I,rotation:0}):this._basicCornerRounded({x:O,y,size:D,context:I,rotation:Math.PI/2}):this._basicCornerRounded({x:O,y,size:D,context:I,rotation:-Math.PI/2}):this._basicCornersRounded({x:O,y,size:D,context:I,rotation:Math.PI/2})},K.prototype._drawClassyRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.getNeighbor,P=C?+C(-1,0):0,H=C?+C(1,0):0,ee=C?+C(0,-1):0,re=C?+C(0,1):0;P+H+ee+re!==0?P||ee?H||re?this._basicSquare({x:O,y,size:D,context:I,rotation:0}):this._basicCornerExtraRounded({x:O,y,size:D,context:I,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:O,y,size:D,context:I,rotation:-Math.PI/2}):this._basicCornersRounded({x:O,y,size:D,context:I,rotation:Math.PI/2})},K}(),M="square",F="extra-rounded";var V=function(){return(V=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};const R=function(){function K(v){var O=v.context,y=v.type;this._context=O,this._type=y}return K.prototype.draw=function(v,O,y,D){var I,C=this._context;switch(this._type){case M:I=this._drawSquare;break;case F:I=this._drawExtraRounded;break;case"dot":default:I=this._drawDot}I.call(this,{x:v,y:O,size:y,context:C,rotation:D})},K.prototype._rotateFigure=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation,P=C===void 0?0:C,H=v.draw,ee=O+D/2,re=y+D/2;I.translate(ee,re),P&&I.rotate(P),H(),I.closePath(),P&&I.rotate(-P),I.translate(-ee,-re)},K.prototype._basicDot=function(v){var O=v.size,y=v.context,D=O/7;this._rotateFigure(V(V({},v),{draw:function(){y.arc(0,0,O/2,0,2*Math.PI),y.arc(0,0,O/2-D,0,2*Math.PI)}}))},K.prototype._basicSquare=function(v){var O=v.size,y=v.context,D=O/7;this._rotateFigure(V(V({},v),{draw:function(){y.rect(-O/2,-O/2,O,O),y.rect(-O/2+D,-O/2+D,O-2*D,O-2*D)}}))},K.prototype._basicExtraRounded=function(v){var O=v.size,y=v.context,D=O/7;this._rotateFigure(V(V({},v),{draw:function(){y.arc(-D,-D,2.5*D,Math.PI,-Math.PI/2),y.lineTo(D,-3.5*D),y.arc(D,-D,2.5*D,-Math.PI/2,0),y.lineTo(3.5*D,-D),y.arc(D,D,2.5*D,0,Math.PI/2),y.lineTo(-D,3.5*D),y.arc(-D,D,2.5*D,Math.PI/2,Math.PI),y.lineTo(-3.5*D,-D),y.arc(-D,-D,1.5*D,Math.PI,-Math.PI/2),y.lineTo(D,-2.5*D),y.arc(D,-D,1.5*D,-Math.PI/2,0),y.lineTo(2.5*D,-D),y.arc(D,D,1.5*D,0,Math.PI/2),y.lineTo(-D,2.5*D),y.arc(-D,D,1.5*D,Math.PI/2,Math.PI),y.lineTo(-2.5*D,-D)}}))},K.prototype._drawDot=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation;this._basicDot({x:O,y,size:D,context:I,rotation:C})},K.prototype._drawSquare=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation;this._basicSquare({x:O,y,size:D,context:I,rotation:C})},K.prototype._drawExtraRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation;this._basicExtraRounded({x:O,y,size:D,context:I,rotation:C})},K}(),z="square";var j=function(){return(j=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};const B=function(){function K(v){var O=v.context,y=v.type;this._context=O,this._type=y}return K.prototype.draw=function(v,O,y,D){var I,C=this._context;switch(this._type){case z:I=this._drawSquare;break;case"dot":default:I=this._drawDot}I.call(this,{x:v,y:O,size:y,context:C,rotation:D})},K.prototype._rotateFigure=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation,P=C===void 0?0:C,H=v.draw,ee=O+D/2,re=y+D/2;I.translate(ee,re),P&&I.rotate(P),H(),I.closePath(),P&&I.rotate(-P),I.translate(-ee,-re)},K.prototype._basicDot=function(v){var O=v.size,y=v.context;this._rotateFigure(j(j({},v),{draw:function(){y.arc(0,0,O/2,0,2*Math.PI)}}))},K.prototype._basicSquare=function(v){var O=v.size,y=v.context;this._rotateFigure(j(j({},v),{draw:function(){y.rect(-O/2,-O/2,O,O)}}))},K.prototype._drawDot=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation;this._basicDot({x:O,y,size:D,context:I,rotation:C})},K.prototype._drawSquare=function(v){var O=v.x,y=v.y,D=v.size,I=v.context,C=v.rotation;this._basicSquare({x:O,y,size:D,context:I,rotation:C})},K}(),Z="radial";var Y=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],q=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const G=function(){function K(v){this._canvas=document.createElement("canvas"),this._canvas.width=v.width,this._canvas.height=v.height,this._options=v}return Object.defineProperty(K.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),K.prototype.getCanvas=function(){return this._canvas},K.prototype.clear=function(){var v=this.context;v&&v.clearRect(0,0,this._canvas.width,this._canvas.height)},K.prototype.drawQR=function(v){return O=this,y=void 0,I=function(){var C,P,H,ee,re,se,le,he,ke,Ce=this;return function(Oe,ie){var de,be,U,fe,ge={label:0,sent:function(){if(1&U[0])throw U[1];return U[1]},trys:[],ops:[]};return fe={next:Me(0),throw:Me(1),return:Me(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Me(ze){return function(et){return function(Se){if(de)throw new TypeError("Generator is already executing.");for(;ge;)try{if(de=1,be&&(U=2&Se[0]?be.return:Se[0]?be.throw||((U=be.return)&&U.call(be),0):be.next)&&!(U=U.call(be,Se[1])).done)return U;switch(be=0,U&&(Se=[2&Se[0],U.value]),Se[0]){case 0:case 1:U=Se;break;case 4:return ge.label++,{value:Se[1],done:!1};case 5:ge.label++,be=Se[1],Se=[0];continue;case 7:Se=ge.ops.pop(),ge.trys.pop();continue;default:if(!((U=(U=ge.trys).length>0&&U[U.length-1])||Se[0]!==6&&Se[0]!==2)){ge=0;continue}if(Se[0]===3&&(!U||Se[1]>U[0]&&Se[1]<U[3])){ge.label=Se[1];break}if(Se[0]===6&&ge.label<U[1]){ge.label=U[1],U=Se;break}if(U&&ge.label<U[2]){ge.label=U[2],ge.ops.push(Se);break}U[2]&&ge.ops.pop(),ge.trys.pop();continue}Se=ie.call(Oe,ge)}catch(Qe){Se=[6,Qe],be=0}finally{de=U=0}if(5&Se[0])throw Se[1];return{value:Se[0]?Se[1]:void 0,done:!0}}([ze,et])}}}(this,function(Oe){switch(Oe.label){case 0:return C=v.getModuleCount(),P=Math.min(this._options.width,this._options.height)-2*this._options.margin,H=Math.floor(P/C),ee={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=v,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Oe.sent(),!this._image)return[2];re=this._options,se=re.imageOptions,le=re.qrOptions,he=se.imageSize*E[le.errorCorrectionLevel],ke=Math.floor(he*C*C),ee=p({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ke,maxHiddenAxisDots:C-14,dotSize:H}),Oe.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(ie,de){var be,U,fe,ge,Me,ze;return!(Ce._options.imageOptions.hideBackgroundDots&&ie>=(C-ee.hideXDots)/2&&ie<(C+ee.hideXDots)/2&&de>=(C-ee.hideYDots)/2&&de<(C+ee.hideYDots)/2||((be=Y[ie])===null||be===void 0?void 0:be[de])||((U=Y[ie-C+7])===null||U===void 0?void 0:U[de])||((fe=Y[ie])===null||fe===void 0?void 0:fe[de-C+7])||((ge=q[ie])===null||ge===void 0?void 0:ge[de])||((Me=q[ie-C+7])===null||Me===void 0?void 0:Me[de])||((ze=q[ie])===null||ze===void 0?void 0:ze[de-C+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:ee.width,height:ee.height,count:C,dotSize:H}),[2]}})},new((D=void 0)||(D=Promise))(function(C,P){function H(se){try{re(I.next(se))}catch(le){P(le)}}function ee(se){try{re(I.throw(se))}catch(le){P(le)}}function re(se){var le;se.done?C(se.value):(le=se.value,le instanceof D?le:new D(function(he){he(le)})).then(H,ee)}re((I=I.apply(O,y||[])).next())});var O,y,D,I},K.prototype.drawBackground=function(){var v=this.context,O=this._options;if(v){if(O.backgroundOptions.gradient){var y=O.backgroundOptions.gradient,D=this._createGradient({context:v,options:y,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});y.colorStops.forEach(function(I){var C=I.offset,P=I.color;D.addColorStop(C,P)}),v.fillStyle=D}else O.backgroundOptions.color&&(v.fillStyle=O.backgroundOptions.color);v.fillRect(0,0,this._canvas.width,this._canvas.height)}},K.prototype.drawDots=function(v){var O=this;if(!this._qr)throw"QR code is not defined";var y=this.context;if(!y)throw"QR code is not defined";var D=this._options,I=this._qr.getModuleCount();if(I>D.width||I>D.height)throw"The canvas is too small.";var C=Math.min(D.width,D.height)-2*D.margin,P=Math.floor(C/I),H=Math.floor((D.width-I*P)/2),ee=Math.floor((D.height-I*P)/2),re=new L({context:y,type:D.dotsOptions.type});y.beginPath();for(var se=function(Oe){for(var ie=function(be){return v&&!v(Oe,be)?"continue":le._qr.isDark(Oe,be)?void re.draw(H+Oe*P,ee+be*P,P,function(U,fe){return!(Oe+U<0||be+fe<0||Oe+U>=I||be+fe>=I)&&!(v&&!v(Oe+U,be+fe))&&!!O._qr&&O._qr.isDark(Oe+U,be+fe)}):"continue"},de=0;de<I;de++)ie(de)},le=this,he=0;he<I;he++)se(he);if(D.dotsOptions.gradient){var ke=D.dotsOptions.gradient,Ce=this._createGradient({context:y,options:ke,additionalRotation:0,x:H,y:ee,size:I*P});ke.colorStops.forEach(function(Oe){var ie=Oe.offset,de=Oe.color;Ce.addColorStop(ie,de)}),y.fillStyle=y.strokeStyle=Ce}else D.dotsOptions.color&&(y.fillStyle=y.strokeStyle=D.dotsOptions.color);y.fill("evenodd")},K.prototype.drawCorners=function(v){var O=this;if(!this._qr)throw"QR code is not defined";var y=this.context;if(!y)throw"QR code is not defined";var D=this._options,I=this._qr.getModuleCount(),C=Math.min(D.width,D.height)-2*D.margin,P=Math.floor(C/I),H=7*P,ee=3*P,re=Math.floor((D.width-I*P)/2),se=Math.floor((D.height-I*P)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(le){var he,ke,Ce,Oe,ie,de,be,U,fe,ge,Me=le[0],ze=le[1],et=le[2];if(!v||v(Me,ze)){var Se=re+Me*P*(I-7),Qe=se+ze*P*(I-7);if(!((he=D.cornersSquareOptions)===null||he===void 0)&&he.type){var zt=new R({context:y,type:(ke=D.cornersSquareOptions)===null||ke===void 0?void 0:ke.type});y.beginPath(),zt.draw(Se,Qe,H,et)}else{var Nt=new L({context:y,type:D.dotsOptions.type});y.beginPath();for(var it=function(st){for(var Sn=function(Wt){if(!(!((Ce=Y[st])===null||Ce===void 0)&&Ce[Wt]))return"continue";Nt.draw(Se+st*P,Qe+Wt*P,P,function(sa,la){var Gt;return!!(!((Gt=Y[st+sa])===null||Gt===void 0)&&Gt[Wt+la])})},It=0;It<Y[st].length;It++)Sn(It)},Tt=0;Tt<Y.length;Tt++)it(Tt)}if(!((Oe=D.cornersSquareOptions)===null||Oe===void 0)&&Oe.gradient){var pt=D.cornersSquareOptions.gradient,gt=O._createGradient({context:y,options:pt,additionalRotation:et,x:Se,y:Qe,size:H});pt.colorStops.forEach(function(st){var Sn=st.offset,It=st.color;gt.addColorStop(Sn,It)}),y.fillStyle=y.strokeStyle=gt}else!((ie=D.cornersSquareOptions)===null||ie===void 0)&&ie.color&&(y.fillStyle=y.strokeStyle=D.cornersSquareOptions.color);if(y.fill("evenodd"),(de=D.cornersDotOptions)===null||de===void 0?void 0:de.type){var bt=new B({context:y,type:(be=D.cornersDotOptions)===null||be===void 0?void 0:be.type});y.beginPath(),bt.draw(Se+2*P,Qe+2*P,ee,et)}else{Nt=new L({context:y,type:D.dotsOptions.type}),y.beginPath();var Ar=function(st){for(var Sn=function(Wt){if(!(!((U=q[st])===null||U===void 0)&&U[Wt]))return"continue";Nt.draw(Se+st*P,Qe+Wt*P,P,function(sa,la){var Gt;return!!(!((Gt=q[st+sa])===null||Gt===void 0)&&Gt[Wt+la])})},It=0;It<q[st].length;It++)Sn(It)};for(Tt=0;Tt<q.length;Tt++)Ar(Tt)}if(!((fe=D.cornersDotOptions)===null||fe===void 0)&&fe.gradient){pt=D.cornersDotOptions.gradient;var si=O._createGradient({context:y,options:pt,additionalRotation:et,x:Se+2*P,y:Qe+2*P,size:ee});pt.colorStops.forEach(function(st){var Sn=st.offset,It=st.color;si.addColorStop(Sn,It)}),y.fillStyle=y.strokeStyle=si}else!((ge=D.cornersDotOptions)===null||ge===void 0)&&ge.color&&(y.fillStyle=y.strokeStyle=D.cornersDotOptions.color);y.fill("evenodd")}})},K.prototype.loadImage=function(){var v=this;return new Promise(function(O,y){var D=v._options,I=new Image;if(!D.image)return y("Image is not defined");typeof D.imageOptions.crossOrigin=="string"&&(I.crossOrigin=D.imageOptions.crossOrigin),v._image=I,I.onload=function(){O()},I.src=D.image})},K.prototype.drawImage=function(v){var O=v.width,y=v.height,D=v.count,I=v.dotSize,C=this.context;if(!C)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var P=this._options,H=Math.floor((P.width-D*I)/2),ee=Math.floor((P.height-D*I)/2),re=H+P.imageOptions.margin+(D*I-O)/2,se=ee+P.imageOptions.margin+(D*I-y)/2,le=O-2*P.imageOptions.margin,he=y-2*P.imageOptions.margin;C.drawImage(this._image,re,se,le<0?0:le,he<0?0:he)},K.prototype._createGradient=function(v){var O,y=v.context,D=v.options,I=v.additionalRotation,C=v.x,P=v.y,H=v.size;if(D.type===Z)O=y.createRadialGradient(C+H/2,P+H/2,0,C+H/2,P+H/2,H/2);else{var ee=((D.rotation||0)+I)%(2*Math.PI),re=(ee+2*Math.PI)%(2*Math.PI),se=C+H/2,le=P+H/2,he=C+H/2,ke=P+H/2;re>=0&&re<=.25*Math.PI||re>1.75*Math.PI&&re<=2*Math.PI?(se-=H/2,le-=H/2*Math.tan(ee),he+=H/2,ke+=H/2*Math.tan(ee)):re>.25*Math.PI&&re<=.75*Math.PI?(le-=H/2,se-=H/2/Math.tan(ee),ke+=H/2,he+=H/2/Math.tan(ee)):re>.75*Math.PI&&re<=1.25*Math.PI?(se+=H/2,le+=H/2*Math.tan(ee),he-=H/2,ke-=H/2*Math.tan(ee)):re>1.25*Math.PI&&re<=1.75*Math.PI&&(le+=H/2,se+=H/2/Math.tan(ee),ke-=H/2,he-=H/2/Math.tan(ee)),O=y.createLinearGradient(Math.round(se),Math.round(le),Math.round(he),Math.round(ke))}return O},K}();var ne=function(){return(ne=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};const oe=function(){function K(v){var O=v.svg,y=v.type;this._svg=O,this._type=y}return K.prototype.draw=function(v,O,y,D){var I;switch(this._type){case k:I=this._drawDot;break;case b:I=this._drawClassy;break;case w:I=this._drawClassyRounded;break;case T:I=this._drawRounded;break;case S:I=this._drawExtraRounded;break;case A:default:I=this._drawSquare}I.call(this,{x:v,y:O,size:y,getNeighbor:D})},K.prototype._rotateFigure=function(v){var O,y=v.x,D=v.y,I=v.size,C=v.rotation,P=C===void 0?0:C,H=y+I/2,ee=D+I/2;(0,v.draw)(),(O=this._element)===null||O===void 0||O.setAttribute("transform","rotate("+180*P/Math.PI+","+H+","+ee+")")},K.prototype._basicDot=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(ne(ne({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),O._element.setAttribute("cx",String(D+y/2)),O._element.setAttribute("cy",String(I+y/2)),O._element.setAttribute("r",String(y/2))}}))},K.prototype._basicSquare=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(ne(ne({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),O._element.setAttribute("x",String(D)),O._element.setAttribute("y",String(I)),O._element.setAttribute("width",String(y)),O._element.setAttribute("height",String(y))}}))},K.prototype._basicSideRounded=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(ne(ne({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("d","M "+D+" "+I+"v "+y+"h "+y/2+"a "+y/2+" "+y/2+", 0, 0, 0, 0 "+-y)}}))},K.prototype._basicCornerRounded=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(ne(ne({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("d","M "+D+" "+I+"v "+y+"h "+y+"v "+-y/2+"a "+y/2+" "+y/2+", 0, 0, 0, "+-y/2+" "+-y/2)}}))},K.prototype._basicCornerExtraRounded=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(ne(ne({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("d","M "+D+" "+I+"v "+y+"h "+y+"a "+y+" "+y+", 0, 0, 0, "+-y+" "+-y)}}))},K.prototype._basicCornersRounded=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(ne(ne({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("d","M "+D+" "+I+"v "+y/2+"a "+y/2+" "+y/2+", 0, 0, 0, "+y/2+" "+y/2+"h "+y/2+"v "+-y/2+"a "+y/2+" "+y/2+", 0, 0, 0, "+-y/2+" "+-y/2)}}))},K.prototype._drawDot=function(v){var O=v.x,y=v.y,D=v.size;this._basicDot({x:O,y,size:D,rotation:0})},K.prototype._drawSquare=function(v){var O=v.x,y=v.y,D=v.size;this._basicSquare({x:O,y,size:D,rotation:0})},K.prototype._drawRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.getNeighbor,C=I?+I(-1,0):0,P=I?+I(1,0):0,H=I?+I(0,-1):0,ee=I?+I(0,1):0,re=C+P+H+ee;if(re!==0)if(re>2||C&&P||H&&ee)this._basicSquare({x:O,y,size:D,rotation:0});else{if(re===2){var se=0;return C&&H?se=Math.PI/2:H&&P?se=Math.PI:P&&ee&&(se=-Math.PI/2),void this._basicCornerRounded({x:O,y,size:D,rotation:se})}if(re===1)return se=0,H?se=Math.PI/2:P?se=Math.PI:ee&&(se=-Math.PI/2),void this._basicSideRounded({x:O,y,size:D,rotation:se})}else this._basicDot({x:O,y,size:D,rotation:0})},K.prototype._drawExtraRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.getNeighbor,C=I?+I(-1,0):0,P=I?+I(1,0):0,H=I?+I(0,-1):0,ee=I?+I(0,1):0,re=C+P+H+ee;if(re!==0)if(re>2||C&&P||H&&ee)this._basicSquare({x:O,y,size:D,rotation:0});else{if(re===2){var se=0;return C&&H?se=Math.PI/2:H&&P?se=Math.PI:P&&ee&&(se=-Math.PI/2),void this._basicCornerExtraRounded({x:O,y,size:D,rotation:se})}if(re===1)return se=0,H?se=Math.PI/2:P?se=Math.PI:ee&&(se=-Math.PI/2),void this._basicSideRounded({x:O,y,size:D,rotation:se})}else this._basicDot({x:O,y,size:D,rotation:0})},K.prototype._drawClassy=function(v){var O=v.x,y=v.y,D=v.size,I=v.getNeighbor,C=I?+I(-1,0):0,P=I?+I(1,0):0,H=I?+I(0,-1):0,ee=I?+I(0,1):0;C+P+H+ee!==0?C||H?P||ee?this._basicSquare({x:O,y,size:D,rotation:0}):this._basicCornerRounded({x:O,y,size:D,rotation:Math.PI/2}):this._basicCornerRounded({x:O,y,size:D,rotation:-Math.PI/2}):this._basicCornersRounded({x:O,y,size:D,rotation:Math.PI/2})},K.prototype._drawClassyRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.getNeighbor,C=I?+I(-1,0):0,P=I?+I(1,0):0,H=I?+I(0,-1):0,ee=I?+I(0,1):0;C+P+H+ee!==0?C||H?P||ee?this._basicSquare({x:O,y,size:D,rotation:0}):this._basicCornerExtraRounded({x:O,y,size:D,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:O,y,size:D,rotation:-Math.PI/2}):this._basicCornersRounded({x:O,y,size:D,rotation:Math.PI/2})},K}();var J=function(){return(J=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};const $=function(){function K(v){var O=v.svg,y=v.type;this._svg=O,this._type=y}return K.prototype.draw=function(v,O,y,D){var I;switch(this._type){case M:I=this._drawSquare;break;case F:I=this._drawExtraRounded;break;case"dot":default:I=this._drawDot}I.call(this,{x:v,y:O,size:y,rotation:D})},K.prototype._rotateFigure=function(v){var O,y=v.x,D=v.y,I=v.size,C=v.rotation,P=C===void 0?0:C,H=y+I/2,ee=D+I/2;(0,v.draw)(),(O=this._element)===null||O===void 0||O.setAttribute("transform","rotate("+180*P/Math.PI+","+H+","+ee+")")},K.prototype._basicDot=function(v){var O=this,y=v.size,D=v.x,I=v.y,C=y/7;this._rotateFigure(J(J({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("clip-rule","evenodd"),O._element.setAttribute("d","M "+(D+y/2)+" "+I+"a "+y/2+" "+y/2+" 0 1 0 0.1 0zm 0 "+C+"a "+(y/2-C)+" "+(y/2-C)+" 0 1 1 -0.1 0Z")}}))},K.prototype._basicSquare=function(v){var O=this,y=v.size,D=v.x,I=v.y,C=y/7;this._rotateFigure(J(J({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("clip-rule","evenodd"),O._element.setAttribute("d","M "+D+" "+I+"v "+y+"h "+y+"v "+-y+"zM "+(D+C)+" "+(I+C)+"h "+(y-2*C)+"v "+(y-2*C)+"h "+(2*C-y)+"z")}}))},K.prototype._basicExtraRounded=function(v){var O=this,y=v.size,D=v.x,I=v.y,C=y/7;this._rotateFigure(J(J({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","path"),O._element.setAttribute("clip-rule","evenodd"),O._element.setAttribute("d","M "+D+" "+(I+2.5*C)+"v "+2*C+"a "+2.5*C+" "+2.5*C+", 0, 0, 0, "+2.5*C+" "+2.5*C+"h "+2*C+"a "+2.5*C+" "+2.5*C+", 0, 0, 0, "+2.5*C+" "+2.5*-C+"v "+-2*C+"a "+2.5*C+" "+2.5*C+", 0, 0, 0, "+2.5*-C+" "+2.5*-C+"h "+-2*C+"a "+2.5*C+" "+2.5*C+", 0, 0, 0, "+2.5*-C+" "+2.5*C+"M "+(D+2.5*C)+" "+(I+C)+"h "+2*C+"a "+1.5*C+" "+1.5*C+", 0, 0, 1, "+1.5*C+" "+1.5*C+"v "+2*C+"a "+1.5*C+" "+1.5*C+", 0, 0, 1, "+1.5*-C+" "+1.5*C+"h "+-2*C+"a "+1.5*C+" "+1.5*C+", 0, 0, 1, "+1.5*-C+" "+1.5*-C+"v "+-2*C+"a "+1.5*C+" "+1.5*C+", 0, 0, 1, "+1.5*C+" "+1.5*-C)}}))},K.prototype._drawDot=function(v){var O=v.x,y=v.y,D=v.size,I=v.rotation;this._basicDot({x:O,y,size:D,rotation:I})},K.prototype._drawSquare=function(v){var O=v.x,y=v.y,D=v.size,I=v.rotation;this._basicSquare({x:O,y,size:D,rotation:I})},K.prototype._drawExtraRounded=function(v){var O=v.x,y=v.y,D=v.size,I=v.rotation;this._basicExtraRounded({x:O,y,size:D,rotation:I})},K}();var Q=function(){return(Q=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};const ae=function(){function K(v){var O=v.svg,y=v.type;this._svg=O,this._type=y}return K.prototype.draw=function(v,O,y,D){var I;switch(this._type){case z:I=this._drawSquare;break;case"dot":default:I=this._drawDot}I.call(this,{x:v,y:O,size:y,rotation:D})},K.prototype._rotateFigure=function(v){var O,y=v.x,D=v.y,I=v.size,C=v.rotation,P=C===void 0?0:C,H=y+I/2,ee=D+I/2;(0,v.draw)(),(O=this._element)===null||O===void 0||O.setAttribute("transform","rotate("+180*P/Math.PI+","+H+","+ee+")")},K.prototype._basicDot=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(Q(Q({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),O._element.setAttribute("cx",String(D+y/2)),O._element.setAttribute("cy",String(I+y/2)),O._element.setAttribute("r",String(y/2))}}))},K.prototype._basicSquare=function(v){var O=this,y=v.size,D=v.x,I=v.y;this._rotateFigure(Q(Q({},v),{draw:function(){O._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),O._element.setAttribute("x",String(D)),O._element.setAttribute("y",String(I)),O._element.setAttribute("width",String(y)),O._element.setAttribute("height",String(y))}}))},K.prototype._drawDot=function(v){var O=v.x,y=v.y,D=v.size,I=v.rotation;this._basicDot({x:O,y,size:D,rotation:I})},K.prototype._drawSquare=function(v){var O=v.x,y=v.y,D=v.size,I=v.rotation;this._basicSquare({x:O,y,size:D,rotation:I})},K}();var W=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],Ee=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _e=function(){function K(v){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(v.width)),this._element.setAttribute("height",String(v.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=v}return Object.defineProperty(K.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),K.prototype.getElement=function(){return this._element},K.prototype.clear=function(){var v,O=this._element;this._element=O.cloneNode(!1),(v=O==null?void 0:O.parentNode)===null||v===void 0||v.replaceChild(this._element,O),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},K.prototype.drawQR=function(v){return O=this,y=void 0,I=function(){var C,P,H,ee,re,se,le,he,ke,Ce=this;return function(Oe,ie){var de,be,U,fe,ge={label:0,sent:function(){if(1&U[0])throw U[1];return U[1]},trys:[],ops:[]};return fe={next:Me(0),throw:Me(1),return:Me(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Me(ze){return function(et){return function(Se){if(de)throw new TypeError("Generator is already executing.");for(;ge;)try{if(de=1,be&&(U=2&Se[0]?be.return:Se[0]?be.throw||((U=be.return)&&U.call(be),0):be.next)&&!(U=U.call(be,Se[1])).done)return U;switch(be=0,U&&(Se=[2&Se[0],U.value]),Se[0]){case 0:case 1:U=Se;break;case 4:return ge.label++,{value:Se[1],done:!1};case 5:ge.label++,be=Se[1],Se=[0];continue;case 7:Se=ge.ops.pop(),ge.trys.pop();continue;default:if(!((U=(U=ge.trys).length>0&&U[U.length-1])||Se[0]!==6&&Se[0]!==2)){ge=0;continue}if(Se[0]===3&&(!U||Se[1]>U[0]&&Se[1]<U[3])){ge.label=Se[1];break}if(Se[0]===6&&ge.label<U[1]){ge.label=U[1],U=Se;break}if(U&&ge.label<U[2]){ge.label=U[2],ge.ops.push(Se);break}U[2]&&ge.ops.pop(),ge.trys.pop();continue}Se=ie.call(Oe,ge)}catch(Qe){Se=[6,Qe],be=0}finally{de=U=0}if(5&Se[0])throw Se[1];return{value:Se[0]?Se[1]:void 0,done:!0}}([ze,et])}}}(this,function(Oe){switch(Oe.label){case 0:return C=v.getModuleCount(),P=Math.min(this._options.width,this._options.height)-2*this._options.margin,H=Math.floor(P/C),ee={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=v,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Oe.sent(),!this._image)return[2];re=this._options,se=re.imageOptions,le=re.qrOptions,he=se.imageSize*E[le.errorCorrectionLevel],ke=Math.floor(he*C*C),ee=p({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ke,maxHiddenAxisDots:C-14,dotSize:H}),Oe.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(ie,de){var be,U,fe,ge,Me,ze;return!(Ce._options.imageOptions.hideBackgroundDots&&ie>=(C-ee.hideXDots)/2&&ie<(C+ee.hideXDots)/2&&de>=(C-ee.hideYDots)/2&&de<(C+ee.hideYDots)/2||((be=W[ie])===null||be===void 0?void 0:be[de])||((U=W[ie-C+7])===null||U===void 0?void 0:U[de])||((fe=W[ie])===null||fe===void 0?void 0:fe[de-C+7])||((ge=Ee[ie])===null||ge===void 0?void 0:ge[de])||((Me=Ee[ie-C+7])===null||Me===void 0?void 0:Me[de])||((ze=Ee[ie])===null||ze===void 0?void 0:ze[de-C+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:ee.width,height:ee.height,count:C,dotSize:H}),[2]}})},new((D=void 0)||(D=Promise))(function(C,P){function H(se){try{re(I.next(se))}catch(le){P(le)}}function ee(se){try{re(I.throw(se))}catch(le){P(le)}}function re(se){var le;se.done?C(se.value):(le=se.value,le instanceof D?le:new D(function(he){he(le)})).then(H,ee)}re((I=I.apply(O,y||[])).next())});var O,y,D,I},K.prototype.drawBackground=function(){var v,O,y=this._element,D=this._options;if(y){var I=(v=D.backgroundOptions)===null||v===void 0?void 0:v.gradient,C=(O=D.backgroundOptions)===null||O===void 0?void 0:O.color;(I||C)&&this._createColor({options:I,color:C,additionalRotation:0,x:0,y:0,height:D.height,width:D.width,name:"background-color"})}},K.prototype.drawDots=function(v){var O,y,D=this;if(!this._qr)throw"QR code is not defined";var I=this._options,C=this._qr.getModuleCount();if(C>I.width||C>I.height)throw"The canvas is too small.";var P=Math.min(I.width,I.height)-2*I.margin,H=Math.floor(P/C),ee=Math.floor((I.width-C*H)/2),re=Math.floor((I.height-C*H)/2),se=new oe({svg:this._element,type:I.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(O=I.dotsOptions)===null||O===void 0?void 0:O.gradient,color:I.dotsOptions.color,additionalRotation:0,x:ee,y:re,height:C*H,width:C*H,name:"dot-color"});for(var le=function(Ce){for(var Oe=function(de){return v&&!v(Ce,de)?"continue":!((y=he._qr)===null||y===void 0)&&y.isDark(Ce,de)?(se.draw(ee+Ce*H,re+de*H,H,function(be,U){return!(Ce+be<0||de+U<0||Ce+be>=C||de+U>=C)&&!(v&&!v(Ce+be,de+U))&&!!D._qr&&D._qr.isDark(Ce+be,de+U)}),void(se._element&&he._dotsClipPath&&he._dotsClipPath.appendChild(se._element))):"continue"},ie=0;ie<C;ie++)Oe(ie)},he=this,ke=0;ke<C;ke++)le(ke)},K.prototype.drawCorners=function(){var v=this;if(!this._qr)throw"QR code is not defined";var O=this._element,y=this._options;if(!O)throw"Element code is not defined";var D=this._qr.getModuleCount(),I=Math.min(y.width,y.height)-2*y.margin,C=Math.floor(I/D),P=7*C,H=3*C,ee=Math.floor((y.width-D*C)/2),re=Math.floor((y.height-D*C)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(se){var le,he,ke,Ce,Oe,ie,de,be,U,fe,ge,Me,ze=se[0],et=se[1],Se=se[2],Qe=ee+ze*C*(D-7),zt=re+et*C*(D-7),Nt=v._dotsClipPath,it=v._dotsClipPath;if((((le=y.cornersSquareOptions)===null||le===void 0?void 0:le.gradient)||((he=y.cornersSquareOptions)===null||he===void 0?void 0:he.color))&&((Nt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+ze+"-"+et),v._defs.appendChild(Nt),v._cornersSquareClipPath=v._cornersDotClipPath=it=Nt,v._createColor({options:(ke=y.cornersSquareOptions)===null||ke===void 0?void 0:ke.gradient,color:(Ce=y.cornersSquareOptions)===null||Ce===void 0?void 0:Ce.color,additionalRotation:Se,x:Qe,y:zt,height:P,width:P,name:"corners-square-color-"+ze+"-"+et})),(Oe=y.cornersSquareOptions)===null||Oe===void 0?void 0:Oe.type){var Tt=new $({svg:v._element,type:y.cornersSquareOptions.type});Tt.draw(Qe,zt,P,Se),Tt._element&&Nt&&Nt.appendChild(Tt._element)}else for(var pt=new oe({svg:v._element,type:y.dotsOptions.type}),gt=function(st){for(var Sn=function(Wt){if(!(!((ie=W[st])===null||ie===void 0)&&ie[Wt]))return"continue";pt.draw(Qe+st*C,zt+Wt*C,C,function(sa,la){var Gt;return!!(!((Gt=W[st+sa])===null||Gt===void 0)&&Gt[Wt+la])}),pt._element&&Nt&&Nt.appendChild(pt._element)},It=0;It<W[st].length;It++)Sn(It)},bt=0;bt<W.length;bt++)gt(bt);if((((de=y.cornersDotOptions)===null||de===void 0?void 0:de.gradient)||((be=y.cornersDotOptions)===null||be===void 0?void 0:be.color))&&((it=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+ze+"-"+et),v._defs.appendChild(it),v._cornersDotClipPath=it,v._createColor({options:(U=y.cornersDotOptions)===null||U===void 0?void 0:U.gradient,color:(fe=y.cornersDotOptions)===null||fe===void 0?void 0:fe.color,additionalRotation:Se,x:Qe+2*C,y:zt+2*C,height:H,width:H,name:"corners-dot-color-"+ze+"-"+et})),(ge=y.cornersDotOptions)===null||ge===void 0?void 0:ge.type){var Ar=new ae({svg:v._element,type:y.cornersDotOptions.type});Ar.draw(Qe+2*C,zt+2*C,H,Se),Ar._element&&it&&it.appendChild(Ar._element)}else{pt=new oe({svg:v._element,type:y.dotsOptions.type});var si=function(st){for(var Sn=function(Wt){if(!(!((Me=Ee[st])===null||Me===void 0)&&Me[Wt]))return"continue";pt.draw(Qe+st*C,zt+Wt*C,C,function(sa,la){var Gt;return!!(!((Gt=Ee[st+sa])===null||Gt===void 0)&&Gt[Wt+la])}),pt._element&&it&&it.appendChild(pt._element)},It=0;It<Ee[st].length;It++)Sn(It)};for(bt=0;bt<Ee.length;bt++)si(bt)}})},K.prototype.loadImage=function(){var v=this;return new Promise(function(O,y){var D=v._options,I=new Image;if(!D.image)return y("Image is not defined");typeof D.imageOptions.crossOrigin=="string"&&(I.crossOrigin=D.imageOptions.crossOrigin),v._image=I,I.onload=function(){O()},I.src=D.image})},K.prototype.drawImage=function(v){var O=v.width,y=v.height,D=v.count,I=v.dotSize,C=this._options,P=Math.floor((C.width-D*I)/2),H=Math.floor((C.height-D*I)/2),ee=P+C.imageOptions.margin+(D*I-O)/2,re=H+C.imageOptions.margin+(D*I-y)/2,se=O-2*C.imageOptions.margin,le=y-2*C.imageOptions.margin,he=document.createElementNS("http://www.w3.org/2000/svg","image");he.setAttribute("href",C.image||""),he.setAttribute("x",String(ee)),he.setAttribute("y",String(re)),he.setAttribute("width",se+"px"),he.setAttribute("height",le+"px"),this._element.appendChild(he)},K.prototype._createColor=function(v){var O=v.options,y=v.color,D=v.additionalRotation,I=v.x,C=v.y,P=v.height,H=v.width,ee=v.name,re=H>P?H:P,se=document.createElementNS("http://www.w3.org/2000/svg","rect");if(se.setAttribute("x",String(I)),se.setAttribute("y",String(C)),se.setAttribute("height",String(P)),se.setAttribute("width",String(H)),se.setAttribute("clip-path","url('#clip-path-"+ee+"')"),O){var le;if(O.type===Z)(le=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",ee),le.setAttribute("gradientUnits","userSpaceOnUse"),le.setAttribute("fx",String(I+H/2)),le.setAttribute("fy",String(C+P/2)),le.setAttribute("cx",String(I+H/2)),le.setAttribute("cy",String(C+P/2)),le.setAttribute("r",String(re/2));else{var he=((O.rotation||0)+D)%(2*Math.PI),ke=(he+2*Math.PI)%(2*Math.PI),Ce=I+H/2,Oe=C+P/2,ie=I+H/2,de=C+P/2;ke>=0&&ke<=.25*Math.PI||ke>1.75*Math.PI&&ke<=2*Math.PI?(Ce-=H/2,Oe-=P/2*Math.tan(he),ie+=H/2,de+=P/2*Math.tan(he)):ke>.25*Math.PI&&ke<=.75*Math.PI?(Oe-=P/2,Ce-=H/2/Math.tan(he),de+=P/2,ie+=H/2/Math.tan(he)):ke>.75*Math.PI&&ke<=1.25*Math.PI?(Ce+=H/2,Oe+=P/2*Math.tan(he),ie-=H/2,de-=P/2*Math.tan(he)):ke>1.25*Math.PI&&ke<=1.75*Math.PI&&(Oe+=P/2,Ce+=H/2/Math.tan(he),de-=P/2,ie-=H/2/Math.tan(he)),(le=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",ee),le.setAttribute("gradientUnits","userSpaceOnUse"),le.setAttribute("x1",String(Math.round(Ce))),le.setAttribute("y1",String(Math.round(Oe))),le.setAttribute("x2",String(Math.round(ie))),le.setAttribute("y2",String(Math.round(de)))}O.colorStops.forEach(function(be){var U=be.offset,fe=be.color,ge=document.createElementNS("http://www.w3.org/2000/svg","stop");ge.setAttribute("offset",100*U+"%"),ge.setAttribute("stop-color",fe),le.appendChild(ge)}),se.setAttribute("fill","url('#"+ee+"')"),this._defs.appendChild(le)}else y&&se.setAttribute("fill",y);this._element.appendChild(se)},K}(),Te="canvas";for(var De={},Ne=0;Ne<=40;Ne++)De[Ne]=Ne;const Ae={type:Te,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:De[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var te=function(){return(te=Object.assign||function(K){for(var v,O=1,y=arguments.length;O<y;O++)for(var D in v=arguments[O])Object.prototype.hasOwnProperty.call(v,D)&&(K[D]=v[D]);return K}).apply(this,arguments)};function ue(K){var v=te({},K);if(!v.colorStops||!v.colorStops.length)throw"Field 'colorStops' is required in gradient";return v.rotation?v.rotation=Number(v.rotation):v.rotation=0,v.colorStops=v.colorStops.map(function(O){return te(te({},O),{offset:Number(O.offset)})}),v}function _(K){var v=te({},K);return v.width=Number(v.width),v.height=Number(v.height),v.margin=Number(v.margin),v.imageOptions=te(te({},v.imageOptions),{hideBackgroundDots:Boolean(v.imageOptions.hideBackgroundDots),imageSize:Number(v.imageOptions.imageSize),margin:Number(v.imageOptions.margin)}),v.margin>Math.min(v.width,v.height)&&(v.margin=Math.min(v.width,v.height)),v.dotsOptions=te({},v.dotsOptions),v.dotsOptions.gradient&&(v.dotsOptions.gradient=ue(v.dotsOptions.gradient)),v.cornersSquareOptions&&(v.cornersSquareOptions=te({},v.cornersSquareOptions),v.cornersSquareOptions.gradient&&(v.cornersSquareOptions.gradient=ue(v.cornersSquareOptions.gradient))),v.cornersDotOptions&&(v.cornersDotOptions=te({},v.cornersDotOptions),v.cornersDotOptions.gradient&&(v.cornersDotOptions.gradient=ue(v.cornersDotOptions.gradient))),v.backgroundOptions&&(v.backgroundOptions=te({},v.backgroundOptions),v.backgroundOptions.gradient&&(v.backgroundOptions.gradient=ue(v.backgroundOptions.gradient))),v}var g=l(192),x=l.n(g),X=function(K,v,O,y){return new(O||(O=Promise))(function(D,I){function C(ee){try{H(y.next(ee))}catch(re){I(re)}}function P(ee){try{H(y.throw(ee))}catch(re){I(re)}}function H(ee){var re;ee.done?D(ee.value):(re=ee.value,re instanceof O?re:new O(function(se){se(re)})).then(C,P)}H((y=y.apply(K,v||[])).next())})},ce=function(K,v){var O,y,D,I,C={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return I={next:P(0),throw:P(1),return:P(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function P(H){return function(ee){return function(re){if(O)throw new TypeError("Generator is already executing.");for(;C;)try{if(O=1,y&&(D=2&re[0]?y.return:re[0]?y.throw||((D=y.return)&&D.call(y),0):y.next)&&!(D=D.call(y,re[1])).done)return D;switch(y=0,D&&(re=[2&re[0],D.value]),re[0]){case 0:case 1:D=re;break;case 4:return C.label++,{value:re[1],done:!1};case 5:C.label++,y=re[1],re=[0];continue;case 7:re=C.ops.pop(),C.trys.pop();continue;default:if(!((D=(D=C.trys).length>0&&D[D.length-1])||re[0]!==6&&re[0]!==2)){C=0;continue}if(re[0]===3&&(!D||re[1]>D[0]&&re[1]<D[3])){C.label=re[1];break}if(re[0]===6&&C.label<D[1]){C.label=D[1],D=re;break}if(D&&C.label<D[2]){C.label=D[2],C.ops.push(re);break}D[2]&&C.ops.pop(),C.trys.pop();continue}re=v.call(K,C)}catch(se){re=[6,se],y=0}finally{O=D=0}if(5&re[0])throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}([H,ee])}}};const me=function(){function K(v){this._options=v?_(m(Ae,v)):Ae,this.update()}return K._clearContainer=function(v){v&&(v.innerHTML="")},K.prototype._getQRStylingElement=function(v){return v===void 0&&(v="png"),X(this,void 0,void 0,function(){var O,y,D;return ce(this,function(I){switch(I.label){case 0:if(!this._qr)throw"QR code is empty";return v.toLowerCase()!=="svg"?[3,2]:(y=void 0,O=void 0,this._svg&&this._svgDrawingPromise?(O=this._svg,y=this._svgDrawingPromise):(O=new _e(this._options),y=O.drawQR(this._qr)),[4,y]);case 1:return I.sent(),[2,O];case 2:return y=void 0,D=void 0,this._canvas&&this._canvasDrawingPromise?(D=this._canvas,y=this._canvasDrawingPromise):(D=new G(this._options),y=D.drawQR(this._qr)),[4,y];case 3:return I.sent(),[2,D]}})})},K.prototype.update=function(v){K._clearContainer(this._container),this._options=v?_(m(this._options,v)):this._options,this._options.data&&(this._qr=x()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(O){switch(!0){case/^[0-9]*$/.test(O):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(O):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Te?(this._canvas=new G(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new _e(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},K.prototype.append=function(v){if(v){if(typeof v.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Te?this._canvas&&v.appendChild(this._canvas.getCanvas()):this._svg&&v.appendChild(this._svg.getElement()),this._container=v}},K.prototype.getRawData=function(v){return v===void 0&&(v="png"),X(this,void 0,void 0,function(){var O,y,D;return ce(this,function(I){switch(I.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(v)];case 1:return O=I.sent(),v.toLowerCase()==="svg"?(y=new XMLSerializer,D=y.serializeToString(O.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
4
+ `+D],{type:"image/svg+xml"})]):[2,new Promise(function(C){return O.getCanvas().toBlob(C,"image/"+v,1)})]}})})},K.prototype.download=function(v){return X(this,void 0,void 0,function(){var O,y,D,I,C;return ce(this,function(P){switch(P.label){case 0:if(!this._qr)throw"QR code is empty";return O="png",y="qr",typeof v=="string"?(O=v,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof v=="object"&&v!==null&&(v.name&&(y=v.name),v.extension&&(O=v.extension)),[4,this._getQRStylingElement(O)];case 1:return D=P.sent(),O.toLowerCase()==="svg"?(I=new XMLSerializer,C=`<?xml version="1.0" standalone="no"?>\r
5
+ `+(C=I.serializeToString(D.getElement())),f("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(C),y+".svg")):f(D.getCanvas().toDataURL("image/"+O),y+"."+O),[2]}})})},K}()}},r={};function a(i){if(r[i])return r[i].exports;var o=r[i]={exports:{}};return n[i](o,o.exports,a),o.exports}return a.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return a.d(o,{a:o}),o},a.d=(i,o)=>{for(var l in o)a.o(o,l)&&!a.o(i,l)&&Object.defineProperty(i,l,{enumerable:!0,get:o[l]})},a.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),a(796)})().default})})(fd);var q1=G1(fd.exports);/*!
6
6
  * shared v9.2.2
7
7
  * (c) 2022 kazuya kawaguchi
8
8
  * Released under the MIT License.
9
- */const Ea=typeof window!="undefined",od=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",tn=t=>od?Symbol(t):t,sd=(t,e,n)=>ld({l:t,k:e,s:n}),ld=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),at=t=>typeof t=="number"&&isFinite(t),cd=t=>wa(t)==="[object Date]",nn=t=>wa(t)==="[object RegExp]",Ir=t=>Te(t)&&Object.keys(t).length===0;function ud(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const lt=Object.assign;let no;const Qn=()=>no||(no=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function ro(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const dd=Object.prototype.hasOwnProperty;function xa(t,e){return dd.call(t,e)}const $e=Array.isArray,et=t=>typeof t=="function",fe=t=>typeof t=="string",Pe=t=>typeof t=="boolean",Ge=t=>t!==null&&typeof t=="object",ao=Object.prototype.toString,wa=t=>ao.call(t),Te=t=>wa(t)==="[object Object]",md=t=>t==null?"":$e(t)||Te(t)&&t.toString===ao?JSON.stringify(t,null,2):String(t);/*!
9
+ */const K1=typeof window!="undefined",Z1=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",xr=t=>Z1?Symbol(t):t,J1=(t,e,n)=>X1({l:t,k:e,s:n}),X1=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Rt=t=>typeof t=="number"&&isFinite(t),Q1=t=>fl(t)==="[object Date]",ca=t=>fl(t)==="[object RegExp]",uo=t=>Ye(t)&&Object.keys(t).length===0;function ev(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const At=Object.assign;let md;const li=()=>md||(md=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function pd(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const tv=Object.prototype.hasOwnProperty;function hl(t,e){return tv.call(t,e)}const yt=Array.isArray,Et=t=>typeof t=="function",xe=t=>typeof t=="string",lt=t=>typeof t=="boolean",rt=t=>t!==null&&typeof t=="object",gd=Object.prototype.toString,fl=t=>gd.call(t),Ye=t=>fl(t)==="[object Object]",nv=t=>t==null?"":yt(t)||Ye(t)&&t.toString===gd?JSON.stringify(t,null,2):String(t);/*!
10
10
  * message-compiler v9.2.2
11
11
  * (c) 2022 kazuya kawaguchi
12
12
  * Released under the MIT License.
13
- */const He={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Sr(t,e,n={}){const{domain:r,messages:a,args:i}=n,o=t,s=new SyntaxError(String(o));return s.code=t,e&&(s.location=e),s.domain=r,s}function hd(t){throw t}function fd(t,e,n){return{line:t,column:e,offset:n}}function _a(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Yt=" ",pd="\r",vt=`
14
- `,gd=String.fromCharCode(8232),vd=String.fromCharCode(8233);function yd(t){const e=t;let n=0,r=1,a=1,i=0;const o=z=>e[z]===pd&&e[z+1]===vt,s=z=>e[z]===vt,l=z=>e[z]===vd,c=z=>e[z]===gd,h=z=>o(z)||s(z)||l(z)||c(z),x=()=>n,y=()=>r,w=()=>a,I=()=>i,N=z=>o(z)||l(z)||c(z)?vt:e[z],k=()=>N(n),S=()=>N(n+i);function E(){return i=0,h(n)&&(r++,a=0),o(n)&&n++,n++,a++,e[n]}function A(){return o(n+i)&&i++,i++,e[n+i]}function D(){n=0,r=1,a=1,i=0}function T(z=0){i=z}function P(){const z=n+i;for(;z!==n;)E();i=0}return{index:x,line:y,column:w,peekOffset:I,charAt:N,currentChar:k,currentPeek:S,next:E,peek:A,reset:D,resetPeek:T,skipToPeek:P}}const rn=void 0,io="'",bd="tokenizer";function Ed(t,e={}){const n=e.location!==!1,r=yd(t),a=()=>r.index(),i=()=>fd(r.line(),r.column(),r.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:h}=e;function x(_,b,L,...te){const le=c();if(b.column+=L,b.offset+=L,h){const de=_a(le.startLoc,b),M=Sr(_,de,{domain:bd,args:te});h(M)}}function y(_,b,L){_.endLoc=i(),_.currentType=b;const te={type:b};return n&&(te.loc=_a(_.startLoc,_.endLoc)),L!=null&&(te.value=L),te}const w=_=>y(_,14);function I(_,b){return _.currentChar()===b?(_.next(),b):(x(He.EXPECTED_TOKEN,i(),0,b),"")}function N(_){let b="";for(;_.currentPeek()===Yt||_.currentPeek()===vt;)b+=_.currentPeek(),_.peek();return b}function k(_){const b=N(_);return _.skipToPeek(),b}function S(_){if(_===rn)return!1;const b=_.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function E(_){if(_===rn)return!1;const b=_.charCodeAt(0);return b>=48&&b<=57}function A(_,b){const{currentType:L}=b;if(L!==2)return!1;N(_);const te=S(_.currentPeek());return _.resetPeek(),te}function D(_,b){const{currentType:L}=b;if(L!==2)return!1;N(_);const te=_.currentPeek()==="-"?_.peek():_.currentPeek(),le=E(te);return _.resetPeek(),le}function T(_,b){const{currentType:L}=b;if(L!==2)return!1;N(_);const te=_.currentPeek()===io;return _.resetPeek(),te}function P(_,b){const{currentType:L}=b;if(L!==8)return!1;N(_);const te=_.currentPeek()===".";return _.resetPeek(),te}function z(_,b){const{currentType:L}=b;if(L!==9)return!1;N(_);const te=S(_.currentPeek());return _.resetPeek(),te}function Y(_,b){const{currentType:L}=b;if(!(L===8||L===12))return!1;N(_);const te=_.currentPeek()===":";return _.resetPeek(),te}function Q(_,b){const{currentType:L}=b;if(L!==10)return!1;const te=()=>{const de=_.currentPeek();return de==="{"?S(_.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===Yt||!de?!1:de===vt?(_.peek(),te()):S(de)},le=te();return _.resetPeek(),le}function B(_){N(_);const b=_.currentPeek()==="|";return _.resetPeek(),b}function W(_){const b=N(_),L=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:L,hasSpace:b.length>0}}function ne(_,b=!0){const L=(le=!1,de="",M=!1)=>{const u=_.currentPeek();return u==="{"?de==="%"?!1:le:u==="@"||!u?de==="%"?!0:le:u==="%"?(_.peek(),L(le,"%",!0)):u==="|"?de==="%"||M?!0:!(de===Yt||de===vt):u===Yt?(_.peek(),L(!0,Yt,M)):u===vt?(_.peek(),L(!0,vt,M)):!0},te=L();return b&&_.resetPeek(),te}function R(_,b){const L=_.currentChar();return L===rn?rn:b(L)?(_.next(),L):null}function V(_){return R(_,L=>{const te=L.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36})}function G(_){return R(_,L=>{const te=L.charCodeAt(0);return te>=48&&te<=57})}function U(_){return R(_,L=>{const te=L.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102})}function q(_){let b="",L="";for(;b=G(_);)L+=b;return L}function Z(_){k(_);const b=_.currentChar();return b!=="%"&&x(He.EXPECTED_TOKEN,i(),0,b),_.next(),"%"}function se(_){let b="";for(;;){const L=_.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L==="%")if(ne(_))b+=L,_.next();else break;else if(L===Yt||L===vt)if(ne(_))b+=L,_.next();else{if(B(_))break;b+=L,_.next()}else b+=L,_.next()}return b}function ie(_){k(_);let b="",L="";for(;b=V(_);)L+=b;return _.currentChar()===rn&&x(He.UNTERMINATED_CLOSING_BRACE,i(),0),L}function F(_){k(_);let b="";return _.currentChar()==="-"?(_.next(),b+=`-${q(_)}`):b+=q(_),_.currentChar()===rn&&x(He.UNTERMINATED_CLOSING_BRACE,i(),0),b}function ee(_){k(_),I(_,"'");let b="",L="";const te=de=>de!==io&&de!==vt;for(;b=R(_,te);)b==="\\"?L+=re(_):L+=b;const le=_.currentChar();return le===vt||le===rn?(x(He.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),le===vt&&(_.next(),I(_,"'")),L):(I(_,"'"),L)}function re(_){const b=_.currentChar();switch(b){case"\\":case"'":return _.next(),`\\${b}`;case"u":return K(_,b,4);case"U":return K(_,b,6);default:return x(He.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function K(_,b,L){I(_,b);let te="";for(let le=0;le<L;le++){const de=U(_);if(!de){x(He.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${te}${_.currentChar()}`);break}te+=de}return`\\${b}${te}`}function _e(_){k(_);let b="",L="";const te=le=>le!=="{"&&le!=="}"&&le!==Yt&&le!==vt;for(;b=R(_,te);)L+=b;return L}function Ie(_){let b="",L="";for(;b=V(_);)L+=b;return L}function Me(_){const b=(L=!1,te)=>{const le=_.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||!le||le===Yt?te:le===vt?(te+=le,_.next(),b(L,te)):(te+=le,_.next(),b(!0,te))};return b(!1,"")}function be(_){k(_);const b=I(_,"|");return k(_),b}function qe(_,b){let L=null;switch(_.currentChar()){case"{":return b.braceNest>=1&&x(He.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),L=y(b,2,"{"),k(_),b.braceNest++,L;case"}":return b.braceNest>0&&b.currentType===2&&x(He.EMPTY_PLACEHOLDER,i(),0),_.next(),L=y(b,3,"}"),b.braceNest--,b.braceNest>0&&k(_),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),L;case"@":return b.braceNest>0&&x(He.UNTERMINATED_CLOSING_BRACE,i(),0),L=Ce(_,b)||w(b),b.braceNest=0,L;default:let le=!0,de=!0,M=!0;if(B(_))return b.braceNest>0&&x(He.UNTERMINATED_CLOSING_BRACE,i(),0),L=y(b,1,be(_)),b.braceNest=0,b.inLinked=!1,L;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return x(He.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,$(_,b);if(le=A(_,b))return L=y(b,5,ie(_)),k(_),L;if(de=D(_,b))return L=y(b,6,F(_)),k(_),L;if(M=T(_,b))return L=y(b,7,ee(_)),k(_),L;if(!le&&!de&&!M)return L=y(b,13,_e(_)),x(He.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,L.value),k(_),L;break}return L}function Ce(_,b){const{currentType:L}=b;let te=null;const le=_.currentChar();switch((L===8||L===9||L===12||L===10)&&(le===vt||le===Yt)&&x(He.INVALID_LINKED_FORMAT,i(),0),le){case"@":return _.next(),te=y(b,8,"@"),b.inLinked=!0,te;case".":return k(_),_.next(),y(b,9,".");case":":return k(_),_.next(),y(b,10,":");default:return B(_)?(te=y(b,1,be(_)),b.braceNest=0,b.inLinked=!1,te):P(_,b)||Y(_,b)?(k(_),Ce(_,b)):z(_,b)?(k(_),y(b,12,Ie(_))):Q(_,b)?(k(_),le==="{"?qe(_,b)||te:y(b,11,Me(_))):(L===8&&x(He.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,$(_,b))}}function $(_,b){let L={type:14};if(b.braceNest>0)return qe(_,b)||w(b);if(b.inLinked)return Ce(_,b)||w(b);switch(_.currentChar()){case"{":return qe(_,b)||w(b);case"}":return x(He.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),y(b,3,"}");case"@":return Ce(_,b)||w(b);default:if(B(_))return L=y(b,1,be(_)),b.braceNest=0,b.inLinked=!1,L;const{isModulo:le,hasSpace:de}=W(_);if(le)return de?y(b,0,se(_)):y(b,4,Z(_));if(ne(_))return y(b,0,se(_));break}return L}function ae(){const{currentType:_,offset:b,startLoc:L,endLoc:te}=l;return l.lastType=_,l.lastOffset=b,l.lastStartLoc=L,l.lastEndLoc=te,l.offset=a(),l.startLoc=i(),r.currentChar()===rn?y(l,14):$(r,l)}return{nextToken:ae,currentOffset:a,currentPosition:i,context:c}}const xd="parser",wd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function _d(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function Id(t={}){const e=t.location!==!1,{onError:n}=t;function r(S,E,A,D,...T){const P=S.currentPosition();if(P.offset+=D,P.column+=D,n){const z=_a(A,P),Y=Sr(E,z,{domain:xd,args:T});n(Y)}}function a(S,E,A){const D={type:S,start:E,end:E};return e&&(D.loc={start:A,end:A}),D}function i(S,E,A,D){S.end=E,D&&(S.type=D),e&&S.loc&&(S.loc.end=A)}function o(S,E){const A=S.context(),D=a(3,A.offset,A.startLoc);return D.value=E,i(D,S.currentOffset(),S.currentPosition()),D}function s(S,E){const A=S.context(),{lastOffset:D,lastStartLoc:T}=A,P=a(5,D,T);return P.index=parseInt(E,10),S.nextToken(),i(P,S.currentOffset(),S.currentPosition()),P}function l(S,E){const A=S.context(),{lastOffset:D,lastStartLoc:T}=A,P=a(4,D,T);return P.key=E,S.nextToken(),i(P,S.currentOffset(),S.currentPosition()),P}function c(S,E){const A=S.context(),{lastOffset:D,lastStartLoc:T}=A,P=a(9,D,T);return P.value=E.replace(wd,_d),S.nextToken(),i(P,S.currentOffset(),S.currentPosition()),P}function h(S){const E=S.nextToken(),A=S.context(),{lastOffset:D,lastStartLoc:T}=A,P=a(8,D,T);return E.type!==12?(r(S,He.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),P.value="",i(P,D,T),{nextConsumeToken:E,node:P}):(E.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,Vt(E)),P.value=E.value||"",i(P,S.currentOffset(),S.currentPosition()),{node:P})}function x(S,E){const A=S.context(),D=a(7,A.offset,A.startLoc);return D.value=E,i(D,S.currentOffset(),S.currentPosition()),D}function y(S){const E=S.context(),A=a(6,E.offset,E.startLoc);let D=S.nextToken();if(D.type===9){const T=h(S);A.modifier=T.node,D=T.nextConsumeToken||S.nextToken()}switch(D.type!==10&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(D)),D=S.nextToken(),D.type===2&&(D=S.nextToken()),D.type){case 11:D.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(D)),A.key=x(S,D.value||"");break;case 5:D.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(D)),A.key=l(S,D.value||"");break;case 6:D.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(D)),A.key=s(S,D.value||"");break;case 7:D.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(D)),A.key=c(S,D.value||"");break;default:r(S,He.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const T=S.context(),P=a(7,T.offset,T.startLoc);return P.value="",i(P,T.offset,T.startLoc),A.key=P,i(A,T.offset,T.startLoc),{nextConsumeToken:D,node:A}}return i(A,S.currentOffset(),S.currentPosition()),{node:A}}function w(S){const E=S.context(),A=E.currentType===1?S.currentOffset():E.offset,D=E.currentType===1?E.endLoc:E.startLoc,T=a(2,A,D);T.items=[];let P=null;do{const Q=P||S.nextToken();switch(P=null,Q.type){case 0:Q.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(o(S,Q.value||""));break;case 6:Q.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(s(S,Q.value||""));break;case 5:Q.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(l(S,Q.value||""));break;case 7:Q.value==null&&r(S,He.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),T.items.push(c(S,Q.value||""));break;case 8:const B=y(S);T.items.push(B.node),P=B.nextConsumeToken||null;break}}while(E.currentType!==14&&E.currentType!==1);const z=E.currentType===1?E.lastOffset:S.currentOffset(),Y=E.currentType===1?E.lastEndLoc:S.currentPosition();return i(T,z,Y),T}function I(S,E,A,D){const T=S.context();let P=D.items.length===0;const z=a(1,E,A);z.cases=[],z.cases.push(D);do{const Y=w(S);P||(P=Y.items.length===0),z.cases.push(Y)}while(T.currentType!==14);return P&&r(S,He.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(z,S.currentOffset(),S.currentPosition()),z}function N(S){const E=S.context(),{offset:A,startLoc:D}=E,T=w(S);return E.currentType===14?T:I(S,A,D,T)}function k(S){const E=Ed(S,lt({},t)),A=E.context(),D=a(0,A.offset,A.startLoc);return e&&D.loc&&(D.loc.source=S),D.body=N(E),A.currentType!==14&&r(E,He.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,S[A.offset]||""),i(D,E.currentOffset(),E.currentPosition()),D}return{parse:k}}function Vt(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function Sd(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function oo(t,e){for(let n=0;n<t.length;n++)Ia(t[n],e)}function Ia(t,e){switch(t.type){case 1:oo(t.cases,e),e.helper("plural");break;case 2:oo(t.items,e);break;case 6:Ia(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function Dd(t,e={}){const n=Sd(t);n.helper("normalize"),t.body&&Ia(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function Nd(t,e){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},s=()=>o;function l(N,k){o.code+=N}function c(N,k=!0){const S=k?a:"";l(i?S+" ".repeat(N):S)}function h(N=!0){const k=++o.indentLevel;N&&c(k)}function x(N=!0){const k=--o.indentLevel;N&&c(k)}function y(){c(o.indentLevel)}return{context:s,push:l,indent:h,deindent:x,newline:y,helper:N=>`_${N}`,needIndent:()=>o.needIndent}}function Cd(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Tn(t,e.key),e.modifier?(t.push(", "),Tn(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function Ad(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const a=e.items.length;for(let i=0;i<a&&(Tn(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function Td(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const a=e.cases.length;for(let i=0;i<a&&(Tn(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function kd(t,e){e.body?Tn(t,e.body):t.push("null")}function Tn(t,e){const{helper:n}=t;switch(e.type){case 0:kd(t,e);break;case 1:Td(t,e);break;case 2:Ad(t,e);break;case 6:Cd(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const Ld=(t,e={})=>{const n=fe(e.mode)?e.mode:"normal",r=fe(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
15
- `,o=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],l=Nd(t,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(x=>`${x}: _${x}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Tn(l,t),l.deindent(o),l.push("}");const{code:c,map:h}=l.context();return{ast:t,code:c,map:h?h.toJSON():void 0}};function Od(t,e={}){const n=lt({},e),a=Id(n).parse(t);return Dd(a,n),Ld(a,n)}/*!
13
+ */const Ze={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function ho(t,e,n={}){const{domain:r,messages:a,args:i}=n,o=t,l=new SyntaxError(String(o));return l.code=t,e&&(l.location=e),l.domain=r,l}function rv(t){throw t}function av(t,e,n){return{line:t,column:e,offset:n}}function ml(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Vn=" ",iv="\r",Vt=`
14
+ `,ov=String.fromCharCode(8232),sv=String.fromCharCode(8233);function lv(t){const e=t;let n=0,r=1,a=1,i=0;const o=M=>e[M]===iv&&e[M+1]===Vt,l=M=>e[M]===Vt,c=M=>e[M]===sv,d=M=>e[M]===ov,h=M=>o(M)||l(M)||c(M)||d(M),m=()=>n,f=()=>r,p=()=>a,E=()=>i,k=M=>o(M)||c(M)||d(M)?Vt:e[M],T=()=>k(n),b=()=>k(n+i);function w(){return i=0,h(n)&&(r++,a=0),o(n)&&n++,n++,a++,e[n]}function A(){return o(n+i)&&i++,i++,e[n+i]}function S(){n=0,r=1,a=1,i=0}function N(M=0){i=M}function L(){const M=n+i;for(;M!==n;)w();i=0}return{index:m,line:f,column:p,peekOffset:E,charAt:k,currentChar:T,currentPeek:b,next:w,peek:A,reset:S,resetPeek:N,skipToPeek:L}}const dr=void 0,yd="'",cv="tokenizer";function uv(t,e={}){const n=e.location!==!1,r=lv(t),a=()=>r.index(),i=()=>av(r.line(),r.column(),r.index()),o=i(),l=a(),c={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:h}=e;function m(_,g,x,...X){const ce=d();if(g.column+=x,g.offset+=x,h){const me=ml(ce.startLoc,g),K=ho(_,me,{domain:cv,args:X});h(K)}}function f(_,g,x){_.endLoc=i(),_.currentType=g;const X={type:g};return n&&(X.loc=ml(_.startLoc,_.endLoc)),x!=null&&(X.value=x),X}const p=_=>f(_,14);function E(_,g){return _.currentChar()===g?(_.next(),g):(m(Ze.EXPECTED_TOKEN,i(),0,g),"")}function k(_){let g="";for(;_.currentPeek()===Vn||_.currentPeek()===Vt;)g+=_.currentPeek(),_.peek();return g}function T(_){const g=k(_);return _.skipToPeek(),g}function b(_){if(_===dr)return!1;const g=_.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function w(_){if(_===dr)return!1;const g=_.charCodeAt(0);return g>=48&&g<=57}function A(_,g){const{currentType:x}=g;if(x!==2)return!1;k(_);const X=b(_.currentPeek());return _.resetPeek(),X}function S(_,g){const{currentType:x}=g;if(x!==2)return!1;k(_);const X=_.currentPeek()==="-"?_.peek():_.currentPeek(),ce=w(X);return _.resetPeek(),ce}function N(_,g){const{currentType:x}=g;if(x!==2)return!1;k(_);const X=_.currentPeek()===yd;return _.resetPeek(),X}function L(_,g){const{currentType:x}=g;if(x!==8)return!1;k(_);const X=_.currentPeek()===".";return _.resetPeek(),X}function M(_,g){const{currentType:x}=g;if(x!==9)return!1;k(_);const X=b(_.currentPeek());return _.resetPeek(),X}function F(_,g){const{currentType:x}=g;if(!(x===8||x===12))return!1;k(_);const X=_.currentPeek()===":";return _.resetPeek(),X}function V(_,g){const{currentType:x}=g;if(x!==10)return!1;const X=()=>{const me=_.currentPeek();return me==="{"?b(_.peek()):me==="@"||me==="%"||me==="|"||me===":"||me==="."||me===Vn||!me?!1:me===Vt?(_.peek(),X()):b(me)},ce=X();return _.resetPeek(),ce}function R(_){k(_);const g=_.currentPeek()==="|";return _.resetPeek(),g}function z(_){const g=k(_),x=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:x,hasSpace:g.length>0}}function j(_,g=!0){const x=(ce=!1,me="",K=!1)=>{const v=_.currentPeek();return v==="{"?me==="%"?!1:ce:v==="@"||!v?me==="%"?!0:ce:v==="%"?(_.peek(),x(ce,"%",!0)):v==="|"?me==="%"||K?!0:!(me===Vn||me===Vt):v===Vn?(_.peek(),x(!0,Vn,K)):v===Vt?(_.peek(),x(!0,Vt,K)):!0},X=x();return g&&_.resetPeek(),X}function B(_,g){const x=_.currentChar();return x===dr?dr:g(x)?(_.next(),x):null}function Z(_){return B(_,x=>{const X=x.charCodeAt(0);return X>=97&&X<=122||X>=65&&X<=90||X>=48&&X<=57||X===95||X===36})}function Y(_){return B(_,x=>{const X=x.charCodeAt(0);return X>=48&&X<=57})}function q(_){return B(_,x=>{const X=x.charCodeAt(0);return X>=48&&X<=57||X>=65&&X<=70||X>=97&&X<=102})}function G(_){let g="",x="";for(;g=Y(_);)x+=g;return x}function ne(_){T(_);const g=_.currentChar();return g!=="%"&&m(Ze.EXPECTED_TOKEN,i(),0,g),_.next(),"%"}function oe(_){let g="";for(;;){const x=_.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x==="%")if(j(_))g+=x,_.next();else break;else if(x===Vn||x===Vt)if(j(_))g+=x,_.next();else{if(R(_))break;g+=x,_.next()}else g+=x,_.next()}return g}function J(_){T(_);let g="",x="";for(;g=Z(_);)x+=g;return _.currentChar()===dr&&m(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),x}function $(_){T(_);let g="";return _.currentChar()==="-"?(_.next(),g+=`-${G(_)}`):g+=G(_),_.currentChar()===dr&&m(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),g}function Q(_){T(_),E(_,"'");let g="",x="";const X=me=>me!==yd&&me!==Vt;for(;g=B(_,X);)g==="\\"?x+=ae(_):x+=g;const ce=_.currentChar();return ce===Vt||ce===dr?(m(Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ce===Vt&&(_.next(),E(_,"'")),x):(E(_,"'"),x)}function ae(_){const g=_.currentChar();switch(g){case"\\":case"'":return _.next(),`\\${g}`;case"u":return W(_,g,4);case"U":return W(_,g,6);default:return m(Ze.UNKNOWN_ESCAPE_SEQUENCE,i(),0,g),""}}function W(_,g,x){E(_,g);let X="";for(let ce=0;ce<x;ce++){const me=q(_);if(!me){m(Ze.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${g}${X}${_.currentChar()}`);break}X+=me}return`\\${g}${X}`}function Ee(_){T(_);let g="",x="";const X=ce=>ce!=="{"&&ce!=="}"&&ce!==Vn&&ce!==Vt;for(;g=B(_,X);)x+=g;return x}function _e(_){let g="",x="";for(;g=Z(_);)x+=g;return x}function Te(_){const g=(x=!1,X)=>{const ce=_.currentChar();return ce==="{"||ce==="%"||ce==="@"||ce==="|"||!ce||ce===Vn?X:ce===Vt?(X+=ce,_.next(),g(x,X)):(X+=ce,_.next(),g(!0,X))};return g(!1,"")}function De(_){T(_);const g=E(_,"|");return T(_),g}function Ne(_,g){let x=null;switch(_.currentChar()){case"{":return g.braceNest>=1&&m(Ze.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),x=f(g,2,"{"),T(_),g.braceNest++,x;case"}":return g.braceNest>0&&g.currentType===2&&m(Ze.EMPTY_PLACEHOLDER,i(),0),_.next(),x=f(g,3,"}"),g.braceNest--,g.braceNest>0&&T(_),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),x;case"@":return g.braceNest>0&&m(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),x=Ae(_,g)||p(g),g.braceNest=0,x;default:let ce=!0,me=!0,K=!0;if(R(_))return g.braceNest>0&&m(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),x=f(g,1,De(_)),g.braceNest=0,g.inLinked=!1,x;if(g.braceNest>0&&(g.currentType===5||g.currentType===6||g.currentType===7))return m(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),g.braceNest=0,te(_,g);if(ce=A(_,g))return x=f(g,5,J(_)),T(_),x;if(me=S(_,g))return x=f(g,6,$(_)),T(_),x;if(K=N(_,g))return x=f(g,7,Q(_)),T(_),x;if(!ce&&!me&&!K)return x=f(g,13,Ee(_)),m(Ze.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),T(_),x;break}return x}function Ae(_,g){const{currentType:x}=g;let X=null;const ce=_.currentChar();switch((x===8||x===9||x===12||x===10)&&(ce===Vt||ce===Vn)&&m(Ze.INVALID_LINKED_FORMAT,i(),0),ce){case"@":return _.next(),X=f(g,8,"@"),g.inLinked=!0,X;case".":return T(_),_.next(),f(g,9,".");case":":return T(_),_.next(),f(g,10,":");default:return R(_)?(X=f(g,1,De(_)),g.braceNest=0,g.inLinked=!1,X):L(_,g)||F(_,g)?(T(_),Ae(_,g)):M(_,g)?(T(_),f(g,12,_e(_))):V(_,g)?(T(_),ce==="{"?Ne(_,g)||X:f(g,11,Te(_))):(x===8&&m(Ze.INVALID_LINKED_FORMAT,i(),0),g.braceNest=0,g.inLinked=!1,te(_,g))}}function te(_,g){let x={type:14};if(g.braceNest>0)return Ne(_,g)||p(g);if(g.inLinked)return Ae(_,g)||p(g);switch(_.currentChar()){case"{":return Ne(_,g)||p(g);case"}":return m(Ze.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),f(g,3,"}");case"@":return Ae(_,g)||p(g);default:if(R(_))return x=f(g,1,De(_)),g.braceNest=0,g.inLinked=!1,x;const{isModulo:ce,hasSpace:me}=z(_);if(ce)return me?f(g,0,oe(_)):f(g,4,ne(_));if(j(_))return f(g,0,oe(_));break}return x}function ue(){const{currentType:_,offset:g,startLoc:x,endLoc:X}=c;return c.lastType=_,c.lastOffset=g,c.lastStartLoc=x,c.lastEndLoc=X,c.offset=a(),c.startLoc=i(),r.currentChar()===dr?f(c,14):te(r,c)}return{nextToken:ue,currentOffset:a,currentPosition:i,context:d}}const dv="parser",hv=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fv(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function mv(t={}){const e=t.location!==!1,{onError:n}=t;function r(b,w,A,S,...N){const L=b.currentPosition();if(L.offset+=S,L.column+=S,n){const M=ml(A,L),F=ho(w,M,{domain:dv,args:N});n(F)}}function a(b,w,A){const S={type:b,start:w,end:w};return e&&(S.loc={start:A,end:A}),S}function i(b,w,A,S){b.end=w,S&&(b.type=S),e&&b.loc&&(b.loc.end=A)}function o(b,w){const A=b.context(),S=a(3,A.offset,A.startLoc);return S.value=w,i(S,b.currentOffset(),b.currentPosition()),S}function l(b,w){const A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(5,S,N);return L.index=parseInt(w,10),b.nextToken(),i(L,b.currentOffset(),b.currentPosition()),L}function c(b,w){const A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(4,S,N);return L.key=w,b.nextToken(),i(L,b.currentOffset(),b.currentPosition()),L}function d(b,w){const A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(9,S,N);return L.value=w.replace(hv,fv),b.nextToken(),i(L,b.currentOffset(),b.currentPosition()),L}function h(b){const w=b.nextToken(),A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(8,S,N);return w.type!==12?(r(b,Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),L.value="",i(L,S,N),{nextConsumeToken:w,node:L}):(w.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,kn(w)),L.value=w.value||"",i(L,b.currentOffset(),b.currentPosition()),{node:L})}function m(b,w){const A=b.context(),S=a(7,A.offset,A.startLoc);return S.value=w,i(S,b.currentOffset(),b.currentPosition()),S}function f(b){const w=b.context(),A=a(6,w.offset,w.startLoc);let S=b.nextToken();if(S.type===9){const N=h(b);A.modifier=N.node,S=N.nextConsumeToken||b.nextToken()}switch(S.type!==10&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(S)),S=b.nextToken(),S.type===2&&(S=b.nextToken()),S.type){case 11:S.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(S)),A.key=m(b,S.value||"");break;case 5:S.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(S)),A.key=c(b,S.value||"");break;case 6:S.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(S)),A.key=l(b,S.value||"");break;case 7:S.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(S)),A.key=d(b,S.value||"");break;default:r(b,Ze.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const N=b.context(),L=a(7,N.offset,N.startLoc);return L.value="",i(L,N.offset,N.startLoc),A.key=L,i(A,N.offset,N.startLoc),{nextConsumeToken:S,node:A}}return i(A,b.currentOffset(),b.currentPosition()),{node:A}}function p(b){const w=b.context(),A=w.currentType===1?b.currentOffset():w.offset,S=w.currentType===1?w.endLoc:w.startLoc,N=a(2,A,S);N.items=[];let L=null;do{const V=L||b.nextToken();switch(L=null,V.type){case 0:V.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(V)),N.items.push(o(b,V.value||""));break;case 6:V.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(V)),N.items.push(l(b,V.value||""));break;case 5:V.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(V)),N.items.push(c(b,V.value||""));break;case 7:V.value==null&&r(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kn(V)),N.items.push(d(b,V.value||""));break;case 8:const R=f(b);N.items.push(R.node),L=R.nextConsumeToken||null;break}}while(w.currentType!==14&&w.currentType!==1);const M=w.currentType===1?w.lastOffset:b.currentOffset(),F=w.currentType===1?w.lastEndLoc:b.currentPosition();return i(N,M,F),N}function E(b,w,A,S){const N=b.context();let L=S.items.length===0;const M=a(1,w,A);M.cases=[],M.cases.push(S);do{const F=p(b);L||(L=F.items.length===0),M.cases.push(F)}while(N.currentType!==14);return L&&r(b,Ze.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(M,b.currentOffset(),b.currentPosition()),M}function k(b){const w=b.context(),{offset:A,startLoc:S}=w,N=p(b);return w.currentType===14?N:E(b,A,S,N)}function T(b){const w=uv(b,At({},t)),A=w.context(),S=a(0,A.offset,A.startLoc);return e&&S.loc&&(S.loc.source=b),S.body=k(w),A.currentType!==14&&r(w,Ze.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,b[A.offset]||""),i(S,w.currentOffset(),w.currentPosition()),S}return{parse:T}}function kn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function pv(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function vd(t,e){for(let n=0;n<t.length;n++)pl(t[n],e)}function pl(t,e){switch(t.type){case 1:vd(t.cases,e),e.helper("plural");break;case 2:vd(t.items,e);break;case 6:pl(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function gv(t,e={}){const n=pv(t);n.helper("normalize"),t.body&&pl(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function yv(t,e){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},l=()=>o;function c(k,T){o.code+=k}function d(k,T=!0){const b=T?a:"";c(i?b+" ".repeat(k):b)}function h(k=!0){const T=++o.indentLevel;k&&d(T)}function m(k=!0){const T=--o.indentLevel;k&&d(T)}function f(){d(o.indentLevel)}return{context:l,push:c,indent:h,deindent:m,newline:f,helper:k=>`_${k}`,needIndent:()=>o.needIndent}}function vv(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),ua(t,e.key),e.modifier?(t.push(", "),ua(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function wv(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const a=e.items.length;for(let i=0;i<a&&(ua(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function bv(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const a=e.cases.length;for(let i=0;i<a&&(ua(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function _v(t,e){e.body?ua(t,e.body):t.push("null")}function ua(t,e){const{helper:n}=t;switch(e.type){case 0:_v(t,e);break;case 1:bv(t,e);break;case 2:wv(t,e);break;case 6:vv(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const Ev=(t,e={})=>{const n=xe(e.mode)?e.mode:"normal",r=xe(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
15
+ `,o=e.needIndent?e.needIndent:n!=="arrow",l=t.helpers||[],c=yv(t,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),l.length>0&&(c.push(`const { ${l.map(m=>`${m}: _${m}`).join(", ")} } = ctx`),c.newline()),c.push("return "),ua(c,t),c.deindent(o),c.push("}");const{code:d,map:h}=c.context();return{ast:t,code:d,map:h?h.toJSON():void 0}};function Dv(t,e={}){const n=At({},e),a=mv(n).parse(t);return gv(a,n),Ev(a,n)}/*!
16
16
  * devtools-if v9.2.2
17
17
  * (c) 2022 kazuya kawaguchi
18
18
  * Released under the MIT License.
19
- */const so={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
19
+ */const wd={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
20
20
  * core-base v9.2.2
21
21
  * (c) 2022 kazuya kawaguchi
22
22
  * Released under the MIT License.
23
- */const an=[];an[0]={w:[0],i:[3,0],["["]:[4],o:[7]},an[1]={w:[1],["."]:[2],["["]:[4],o:[7]},an[2]={w:[2],i:[3,0],[0]:[3,0]},an[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},an[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},an[5]={["'"]:[4,0],o:8,l:[5,0]},an[6]={['"']:[4,0],o:8,l:[6,0]};const Rd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Md(t){return Rd.test(t)}function Pd(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function Fd(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zd(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:Md(e)?Pd(e):"*"+e}function Bd(t){const e=[];let n=-1,r=0,a=0,i,o,s,l,c,h,x;const y=[];y[0]=()=>{o===void 0?o=s:o+=s},y[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,r=4,y[0]();else{if(a=0,o===void 0||(o=zd(o),o===!1))return!1;y[1]()}};function w(){const I=t[n+1];if(r===5&&I==="'"||r===6&&I==='"')return n++,s="\\"+I,y[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&w())){if(l=Fd(i),x=an[r],c=x[l]||x.l||8,c===8||(r=c[0],c[1]!==void 0&&(h=y[c[1]],h&&(s=i,h()===!1))))return;if(r===7)return e}}const lo=new Map;function jd(t,e){return Ge(t)?t[e]:null}function qd(t,e){if(!Ge(t))return null;let n=lo.get(e);if(n||(n=Bd(e),n&&lo.set(e,n)),!n)return null;const r=n.length;let a=t,i=0;for(;i<r;){const o=a[n[i]];if(o===void 0)return null;a=o,i++}return a}const Ud=t=>t,Vd=t=>"",Hd="text",Wd=t=>t.length===0?"":t.join(""),$d=md;function co(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function Gd(t){const e=at(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(at(t.named.count)||at(t.named.n))?at(t.named.count)?t.named.count:at(t.named.n)?t.named.n:e:e}function Yd(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Zd(t={}){const e=t.locale,n=Gd(t),r=Ge(t.pluralRules)&&fe(e)&&et(t.pluralRules[e])?t.pluralRules[e]:co,a=Ge(t.pluralRules)&&fe(e)&&et(t.pluralRules[e])?co:void 0,i=S=>S[r(n,S.length,a)],o=t.list||[],s=S=>o[S],l=t.named||{};at(t.pluralIndex)&&Yd(n,l);const c=S=>l[S];function h(S){const E=et(t.messages)?t.messages(S):Ge(t.messages)?t.messages[S]:!1;return E||(t.parent?t.parent.message(S):Vd)}const x=S=>t.modifiers?t.modifiers[S]:Ud,y=Te(t.processor)&&et(t.processor.normalize)?t.processor.normalize:Wd,w=Te(t.processor)&&et(t.processor.interpolate)?t.processor.interpolate:$d,I=Te(t.processor)&&fe(t.processor.type)?t.processor.type:Hd,k={list:s,named:c,plural:i,linked:(S,...E)=>{const[A,D]=E;let T="text",P="";E.length===1?Ge(A)?(P=A.modifier||P,T=A.type||T):fe(A)&&(P=A||P):E.length===2&&(fe(A)&&(P=A||P),fe(D)&&(T=D||T));let z=h(S)(k);return T==="vnode"&&$e(z)&&P&&(z=z[0]),P?x(P)(z,T):z},message:h,type:I,interpolate:w,normalize:y};return k}let er=null;function Kd(t){er=t}function Jd(t,e,n){er&&er.emit(so.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const Xd=Qd(so.FunctionTranslate);function Qd(t){return e=>er&&er.emit(t,e)}const em={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function tm(t,e,n){return[...new Set([n,...$e(e)?e:Ge(e)?Object.keys(e):fe(e)?[e]:[n]])]}function uo(t,e,n){const r=fe(n)?n:tr,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;$e(o);)o=mo(i,o,e);const s=$e(e)||!Te(e)?e:e.default?e.default:null;o=fe(s)?[s]:s,$e(o)&&mo(i,o,!1),a.__localeChainCache.set(r,i)}return i}function mo(t,e,n){let r=!0;for(let a=0;a<e.length&&Pe(r);a++){const i=e[a];fe(i)&&(r=nm(t,e[a],n))}return r}function nm(t,e,n){let r;const a=e.split("-");do{const i=a.join("-");r=rm(t,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function rm(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),($e(n)||Te(n))&&n[a]&&(r=n[a])}return r}const am="9.2.2",Dr=-1,tr="en-US",ho="",fo=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function im(){return{upper:(t,e)=>e==="text"&&fe(t)?t.toUpperCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&fe(t)?t.toLowerCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&fe(t)?fo(t):e==="vnode"&&Ge(t)&&"__v_isVNode"in t?fo(t.children):t}}let po;function om(t){po=t}let go;function sm(t){go=t}let vo;function lm(t){vo=t}let yo=null;const bo=t=>{yo=t},cm=()=>yo;let Eo=null;const xo=t=>{Eo=t},um=()=>Eo;let wo=0;function dm(t={}){const e=fe(t.version)?t.version:am,n=fe(t.locale)?t.locale:tr,r=$e(t.fallbackLocale)||Te(t.fallbackLocale)||fe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=Te(t.messages)?t.messages:{[n]:{}},i=Te(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=Te(t.numberFormats)?t.numberFormats:{[n]:{}},s=lt({},t.modifiers||{},im()),l=t.pluralRules||{},c=et(t.missing)?t.missing:null,h=Pe(t.missingWarn)||nn(t.missingWarn)?t.missingWarn:!0,x=Pe(t.fallbackWarn)||nn(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,w=!!t.unresolving,I=et(t.postTranslation)?t.postTranslation:null,N=Te(t.processor)?t.processor:null,k=Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=et(t.messageCompiler)?t.messageCompiler:po,A=et(t.messageResolver)?t.messageResolver:go||jd,D=et(t.localeFallbacker)?t.localeFallbacker:vo||tm,T=Ge(t.fallbackContext)?t.fallbackContext:void 0,P=et(t.onWarn)?t.onWarn:ud,z=t,Y=Ge(z.__datetimeFormatters)?z.__datetimeFormatters:new Map,Q=Ge(z.__numberFormatters)?z.__numberFormatters:new Map,B=Ge(z.__meta)?z.__meta:{};wo++;const W={version:e,cid:wo,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:l,missing:c,missingWarn:h,fallbackWarn:x,fallbackFormat:y,unresolving:w,postTranslation:I,processor:N,warnHtmlMessage:k,escapeParameter:S,messageCompiler:E,messageResolver:A,localeFallbacker:D,fallbackContext:T,onWarn:P,__meta:B};return W.datetimeFormats=i,W.numberFormats=o,W.__datetimeFormatters=Y,W.__numberFormatters=Q,__INTLIFY_PROD_DEVTOOLS__&&Jd(W,e,B),W}function Sa(t,e,n,r,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,n,e,a);return fe(s)?s:e}else return e}function nr(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const mm=t=>t;let _o=Object.create(null);function hm(t,e={}){{const r=(e.onCacheKey||mm)(t),a=_o[r];if(a)return a;let i=!1;const o=e.onError||hd;e.onError=c=>{i=!0,o(c)};const{code:s}=Od(t,e),l=new Function(`return ${s}`)();return i?l:_o[r]=l}}let Io=He.__EXTEND_POINT__;const Da=()=>++Io,kn={INVALID_ARGUMENT:Io,INVALID_DATE_ARGUMENT:Da(),INVALID_ISO_DATE_ARGUMENT:Da(),__EXTEND_POINT__:Da()};function Ln(t){return Sr(t,null,void 0)}const So=()=>"",Ht=t=>et(t);function Do(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[l,c]=Na(...e),h=Pe(c.missingWarn)?c.missingWarn:t.missingWarn,x=Pe(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,y=Pe(c.escapeParameter)?c.escapeParameter:t.escapeParameter,w=!!c.resolvedMessage,I=fe(c.default)||Pe(c.default)?Pe(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",N=n||I!=="",k=fe(c.locale)?c.locale:t.locale;y&&fm(c);let[S,E,A]=w?[l,k,s[k]||{}]:No(t,l,k,o,x,h),D=S,T=l;if(!w&&!(fe(D)||Ht(D))&&N&&(D=I,T=D),!w&&(!(fe(D)||Ht(D))||!fe(E)))return a?Dr:l;let P=!1;const z=()=>{P=!0},Y=Ht(D)?D:Co(t,l,E,D,T,z);if(P)return D;const Q=vm(t,E,A,c),B=Zd(Q),W=pm(t,Y,B),ne=r?r(W,l):W;if(__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:fe(l)?l:Ht(D)?D.key:"",locale:E||(Ht(D)?D.locale:""),format:fe(D)?D:Ht(D)?D.source:"",message:ne};R.meta=lt({},t.__meta,cm()||{}),Xd(R)}return ne}function fm(t){$e(t.list)?t.list=t.list.map(e=>fe(e)?ro(e):e):Ge(t.named)&&Object.keys(t.named).forEach(e=>{fe(t.named[e])&&(t.named[e]=ro(t.named[e]))})}function No(t,e,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:c}=t,h=c(t,r,n);let x={},y,w=null;const I="translate";for(let N=0;N<h.length&&(y=h[N],x=o[y]||{},(w=l(x,e))===null&&(w=x[e]),!(fe(w)||et(w)));N++){const k=Sa(t,e,y,i,I);k!==e&&(w=k)}return[w,y,x]}function Co(t,e,n,r,a,i){const{messageCompiler:o,warnHtmlMessage:s}=t;if(Ht(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||e,c}if(o==null){const c=()=>r;return c.locale=n,c.key=e,c}const l=o(r,gm(t,n,a,r,s,i));return l.locale=n,l.key=e,l.source=r,l}function pm(t,e,n){return e(n)}function Na(...t){const[e,n,r]=t,a={};if(!fe(e)&&!at(e)&&!Ht(e))throw Ln(kn.INVALID_ARGUMENT);const i=at(e)?String(e):(Ht(e),e);return at(n)?a.plural=n:fe(n)?a.default=n:Te(n)&&!Ir(n)?a.named=n:$e(n)&&(a.list=n),at(r)?a.plural=r:fe(r)?a.default=r:Te(r)&&lt(a,r),[i,a]}function gm(t,e,n,r,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>sd(e,n,o)}}function vm(t,e,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:h}=t,y={locale:e,modifiers:a,pluralRules:i,messages:w=>{let I=o(n,w);if(I==null&&h){const[,,N]=No(h,w,e,s,l,c);I=o(N,w)}if(fe(I)){let N=!1;const S=Co(t,w,e,I,w,()=>{N=!0});return N?So:S}else return Ht(I)?I:So}};return t.processor&&(y.processor=t.processor),r.list&&(y.list=r.list),r.named&&(y.named=r.named),at(r.plural)&&(y.pluralIndex=r.plural),y}function Ao(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[l,c,h,x]=Ca(...e),y=Pe(h.missingWarn)?h.missingWarn:t.missingWarn;Pe(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const w=!!h.part,I=fe(h.locale)?h.locale:t.locale,N=o(t,a,I);if(!fe(l)||l==="")return new Intl.DateTimeFormat(I,x).format(c);let k={},S,E=null;const A="datetime format";for(let P=0;P<N.length&&(S=N[P],k=n[S]||{},E=k[l],!Te(E));P++)Sa(t,l,S,y,A);if(!Te(E)||!fe(S))return r?Dr:l;let D=`${S}__${l}`;Ir(x)||(D=`${D}__${JSON.stringify(x)}`);let T=s.get(D);return T||(T=new Intl.DateTimeFormat(S,lt({},E,x)),s.set(D,T)),w?T.formatToParts(c):T.format(c)}const To=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ca(...t){const[e,n,r,a]=t,i={};let o={},s;if(fe(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ln(kn.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw Ln(kn.INVALID_ISO_DATE_ARGUMENT)}}else if(cd(e)){if(isNaN(e.getTime()))throw Ln(kn.INVALID_DATE_ARGUMENT);s=e}else if(at(e))s=e;else throw Ln(kn.INVALID_ARGUMENT);return fe(n)?i.key=n:Te(n)&&Object.keys(n).forEach(l=>{To.includes(l)?o[l]=n[l]:i[l]=n[l]}),fe(r)?i.locale=r:Te(r)&&(o=r),Te(a)&&(o=a),[i.key||"",s,i,o]}function ko(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__datetimeFormatters.has(i)||r.__datetimeFormatters.delete(i)}}function Lo(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[l,c,h,x]=Aa(...e),y=Pe(h.missingWarn)?h.missingWarn:t.missingWarn;Pe(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const w=!!h.part,I=fe(h.locale)?h.locale:t.locale,N=o(t,a,I);if(!fe(l)||l==="")return new Intl.NumberFormat(I,x).format(c);let k={},S,E=null;const A="number format";for(let P=0;P<N.length&&(S=N[P],k=n[S]||{},E=k[l],!Te(E));P++)Sa(t,l,S,y,A);if(!Te(E)||!fe(S))return r?Dr:l;let D=`${S}__${l}`;Ir(x)||(D=`${D}__${JSON.stringify(x)}`);let T=s.get(D);return T||(T=new Intl.NumberFormat(S,lt({},E,x)),s.set(D,T)),w?T.formatToParts(c):T.format(c)}const Oo=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Aa(...t){const[e,n,r,a]=t,i={};let o={};if(!at(e))throw Ln(kn.INVALID_ARGUMENT);const s=e;return fe(n)?i.key=n:Te(n)&&Object.keys(n).forEach(l=>{Oo.includes(l)?o[l]=n[l]:i[l]=n[l]}),fe(r)?i.locale=r:Te(r)&&(o=r),Te(a)&&(o=a),[i.key||"",s,i,o]}function Ro(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__numberFormatters.has(i)||r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qn().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
23
+ */const hr=[];hr[0]={w:[0],i:[3,0],["["]:[4],o:[7]},hr[1]={w:[1],["."]:[2],["["]:[4],o:[7]},hr[2]={w:[2],i:[3,0],[0]:[3,0]},hr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},hr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},hr[5]={["'"]:[4,0],o:8,l:[5,0]},hr[6]={['"']:[4,0],o:8,l:[6,0]};const Sv=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function kv(t){return Sv.test(t)}function Iv(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function Cv(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Nv(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:kv(e)?Iv(e):"*"+e}function Tv(t){const e=[];let n=-1,r=0,a=0,i,o,l,c,d,h,m;const f=[];f[0]=()=>{o===void 0?o=l:o+=l},f[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},f[2]=()=>{f[0](),a++},f[3]=()=>{if(a>0)a--,r=4,f[0]();else{if(a=0,o===void 0||(o=Nv(o),o===!1))return!1;f[1]()}};function p(){const E=t[n+1];if(r===5&&E==="'"||r===6&&E==='"')return n++,l="\\"+E,f[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(c=Cv(i),m=hr[r],d=m[c]||m.l||8,d===8||(r=d[0],d[1]!==void 0&&(h=f[d[1]],h&&(l=i,h()===!1))))return;if(r===7)return e}}const bd=new Map;function Av(t,e){return rt(t)?t[e]:null}function Ov(t,e){if(!rt(t))return null;let n=bd.get(e);if(n||(n=Tv(e),n&&bd.set(e,n)),!n)return null;const r=n.length;let a=t,i=0;for(;i<r;){const o=a[n[i]];if(o===void 0)return null;a=o,i++}return a}const xv=t=>t,Lv=t=>"",Rv="text",Mv=t=>t.length===0?"":t.join(""),Pv=nv;function _d(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function $v(t){const e=Rt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Rt(t.named.count)||Rt(t.named.n))?Rt(t.named.count)?t.named.count:Rt(t.named.n)?t.named.n:e:e}function Bv(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Fv(t={}){const e=t.locale,n=$v(t),r=rt(t.pluralRules)&&xe(e)&&Et(t.pluralRules[e])?t.pluralRules[e]:_d,a=rt(t.pluralRules)&&xe(e)&&Et(t.pluralRules[e])?_d:void 0,i=b=>b[r(n,b.length,a)],o=t.list||[],l=b=>o[b],c=t.named||{};Rt(t.pluralIndex)&&Bv(n,c);const d=b=>c[b];function h(b){const w=Et(t.messages)?t.messages(b):rt(t.messages)?t.messages[b]:!1;return w||(t.parent?t.parent.message(b):Lv)}const m=b=>t.modifiers?t.modifiers[b]:xv,f=Ye(t.processor)&&Et(t.processor.normalize)?t.processor.normalize:Mv,p=Ye(t.processor)&&Et(t.processor.interpolate)?t.processor.interpolate:Pv,E=Ye(t.processor)&&xe(t.processor.type)?t.processor.type:Rv,T={list:l,named:d,plural:i,linked:(b,...w)=>{const[A,S]=w;let N="text",L="";w.length===1?rt(A)?(L=A.modifier||L,N=A.type||N):xe(A)&&(L=A||L):w.length===2&&(xe(A)&&(L=A||L),xe(S)&&(N=S||N));let M=h(b)(T);return N==="vnode"&&yt(M)&&L&&(M=M[0]),L?m(L)(M,N):M},message:h,type:E,interpolate:p,normalize:f};return T}let ci=null;function zv(t){ci=t}function Vv(t,e,n){ci&&ci.emit(wd.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const Uv=Hv(wd.FunctionTranslate);function Hv(t){return e=>ci&&ci.emit(t,e)}const jv={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function Yv(t,e,n){return[...new Set([n,...yt(e)?e:rt(e)?Object.keys(e):xe(e)?[e]:[n]])]}function Ed(t,e,n){const r=xe(n)?n:mo,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;yt(o);)o=Dd(i,o,e);const l=yt(e)||!Ye(e)?e:e.default?e.default:null;o=xe(l)?[l]:l,yt(o)&&Dd(i,o,!1),a.__localeChainCache.set(r,i)}return i}function Dd(t,e,n){let r=!0;for(let a=0;a<e.length&&lt(r);a++){const i=e[a];xe(i)&&(r=Wv(t,e[a],n))}return r}function Wv(t,e,n){let r;const a=e.split("-");do{const i=a.join("-");r=Gv(t,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function Gv(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),(yt(n)||Ye(n))&&n[a]&&(r=n[a])}return r}const qv="9.2.2",fo=-1,mo="en-US",Sd="",kd=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Kv(){return{upper:(t,e)=>e==="text"&&xe(t)?t.toUpperCase():e==="vnode"&&rt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&xe(t)?t.toLowerCase():e==="vnode"&&rt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&xe(t)?kd(t):e==="vnode"&&rt(t)&&"__v_isVNode"in t?kd(t.children):t}}let Id;function Zv(t){Id=t}let Cd;function Jv(t){Cd=t}let Nd;function Xv(t){Nd=t}let Td=null;const Ad=t=>{Td=t},Qv=()=>Td;let Od=null;const xd=t=>{Od=t},ew=()=>Od;let Ld=0;function tw(t={}){const e=xe(t.version)?t.version:qv,n=xe(t.locale)?t.locale:mo,r=yt(t.fallbackLocale)||Ye(t.fallbackLocale)||xe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=Ye(t.messages)?t.messages:{[n]:{}},i=Ye(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=Ye(t.numberFormats)?t.numberFormats:{[n]:{}},l=At({},t.modifiers||{},Kv()),c=t.pluralRules||{},d=Et(t.missing)?t.missing:null,h=lt(t.missingWarn)||ca(t.missingWarn)?t.missingWarn:!0,m=lt(t.fallbackWarn)||ca(t.fallbackWarn)?t.fallbackWarn:!0,f=!!t.fallbackFormat,p=!!t.unresolving,E=Et(t.postTranslation)?t.postTranslation:null,k=Ye(t.processor)?t.processor:null,T=lt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,w=Et(t.messageCompiler)?t.messageCompiler:Id,A=Et(t.messageResolver)?t.messageResolver:Cd||Av,S=Et(t.localeFallbacker)?t.localeFallbacker:Nd||Yv,N=rt(t.fallbackContext)?t.fallbackContext:void 0,L=Et(t.onWarn)?t.onWarn:ev,M=t,F=rt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,V=rt(M.__numberFormatters)?M.__numberFormatters:new Map,R=rt(M.__meta)?M.__meta:{};Ld++;const z={version:e,cid:Ld,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:d,missingWarn:h,fallbackWarn:m,fallbackFormat:f,unresolving:p,postTranslation:E,processor:k,warnHtmlMessage:T,escapeParameter:b,messageCompiler:w,messageResolver:A,localeFallbacker:S,fallbackContext:N,onWarn:L,__meta:R};return z.datetimeFormats=i,z.numberFormats=o,z.__datetimeFormatters=F,z.__numberFormatters=V,__INTLIFY_PROD_DEVTOOLS__&&Vv(z,e,R),z}function gl(t,e,n,r,a){const{missing:i,onWarn:o}=t;if(i!==null){const l=i(t,n,e,a);return xe(l)?l:e}else return e}function ui(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const nw=t=>t;let Rd=Object.create(null);function rw(t,e={}){{const r=(e.onCacheKey||nw)(t),a=Rd[r];if(a)return a;let i=!1;const o=e.onError||rv;e.onError=d=>{i=!0,o(d)};const{code:l}=Dv(t,e),c=new Function(`return ${l}`)();return i?c:Rd[r]=c}}let Md=Ze.__EXTEND_POINT__;const yl=()=>++Md,da={INVALID_ARGUMENT:Md,INVALID_DATE_ARGUMENT:yl(),INVALID_ISO_DATE_ARGUMENT:yl(),__EXTEND_POINT__:yl()};function ha(t){return ho(t,null,void 0)}const Pd=()=>"",In=t=>Et(t);function $d(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:l}=t,[c,d]=vl(...e),h=lt(d.missingWarn)?d.missingWarn:t.missingWarn,m=lt(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,f=lt(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,E=xe(d.default)||lt(d.default)?lt(d.default)?i?c:()=>c:d.default:n?i?c:()=>c:"",k=n||E!=="",T=xe(d.locale)?d.locale:t.locale;f&&aw(d);let[b,w,A]=p?[c,T,l[T]||{}]:Bd(t,c,T,o,m,h),S=b,N=c;if(!p&&!(xe(S)||In(S))&&k&&(S=E,N=S),!p&&(!(xe(S)||In(S))||!xe(w)))return a?fo:c;let L=!1;const M=()=>{L=!0},F=In(S)?S:Fd(t,c,w,S,N,M);if(L)return S;const V=sw(t,w,A,d),R=Fv(V),z=iw(t,F,R),j=r?r(z,c):z;if(__INTLIFY_PROD_DEVTOOLS__){const B={timestamp:Date.now(),key:xe(c)?c:In(S)?S.key:"",locale:w||(In(S)?S.locale:""),format:xe(S)?S:In(S)?S.source:"",message:j};B.meta=At({},t.__meta,Qv()||{}),Uv(B)}return j}function aw(t){yt(t.list)?t.list=t.list.map(e=>xe(e)?pd(e):e):rt(t.named)&&Object.keys(t.named).forEach(e=>{xe(t.named[e])&&(t.named[e]=pd(t.named[e]))})}function Bd(t,e,n,r,a,i){const{messages:o,onWarn:l,messageResolver:c,localeFallbacker:d}=t,h=d(t,r,n);let m={},f,p=null;const E="translate";for(let k=0;k<h.length&&(f=h[k],m=o[f]||{},(p=c(m,e))===null&&(p=m[e]),!(xe(p)||Et(p)));k++){const T=gl(t,e,f,i,E);T!==e&&(p=T)}return[p,f,m]}function Fd(t,e,n,r,a,i){const{messageCompiler:o,warnHtmlMessage:l}=t;if(In(r)){const d=r;return d.locale=d.locale||n,d.key=d.key||e,d}if(o==null){const d=()=>r;return d.locale=n,d.key=e,d}const c=o(r,ow(t,n,a,r,l,i));return c.locale=n,c.key=e,c.source=r,c}function iw(t,e,n){return e(n)}function vl(...t){const[e,n,r]=t,a={};if(!xe(e)&&!Rt(e)&&!In(e))throw ha(da.INVALID_ARGUMENT);const i=Rt(e)?String(e):(In(e),e);return Rt(n)?a.plural=n:xe(n)?a.default=n:Ye(n)&&!uo(n)?a.named=n:yt(n)&&(a.list=n),Rt(r)?a.plural=r:xe(r)?a.default=r:Ye(r)&&At(a,r),[i,a]}function ow(t,e,n,r,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>J1(e,n,o)}}function sw(t,e,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:d,fallbackContext:h}=t,f={locale:e,modifiers:a,pluralRules:i,messages:p=>{let E=o(n,p);if(E==null&&h){const[,,k]=Bd(h,p,e,l,c,d);E=o(k,p)}if(xe(E)){let k=!1;const b=Fd(t,p,e,E,p,()=>{k=!0});return k?Pd:b}else return In(E)?E:Pd}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),Rt(r.plural)&&(f.pluralIndex=r.plural),f}function zd(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:l}=t,[c,d,h,m]=wl(...e),f=lt(h.missingWarn)?h.missingWarn:t.missingWarn;lt(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const p=!!h.part,E=xe(h.locale)?h.locale:t.locale,k=o(t,a,E);if(!xe(c)||c==="")return new Intl.DateTimeFormat(E,m).format(d);let T={},b,w=null;const A="datetime format";for(let L=0;L<k.length&&(b=k[L],T=n[b]||{},w=T[c],!Ye(w));L++)gl(t,c,b,f,A);if(!Ye(w)||!xe(b))return r?fo:c;let S=`${b}__${c}`;uo(m)||(S=`${S}__${JSON.stringify(m)}`);let N=l.get(S);return N||(N=new Intl.DateTimeFormat(b,At({},w,m)),l.set(S,N)),p?N.formatToParts(d):N.format(d)}const Vd=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function wl(...t){const[e,n,r,a]=t,i={};let o={},l;if(xe(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw ha(da.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(d);try{l.toISOString()}catch{throw ha(da.INVALID_ISO_DATE_ARGUMENT)}}else if(Q1(e)){if(isNaN(e.getTime()))throw ha(da.INVALID_DATE_ARGUMENT);l=e}else if(Rt(e))l=e;else throw ha(da.INVALID_ARGUMENT);return xe(n)?i.key=n:Ye(n)&&Object.keys(n).forEach(c=>{Vd.includes(c)?o[c]=n[c]:i[c]=n[c]}),xe(r)?i.locale=r:Ye(r)&&(o=r),Ye(a)&&(o=a),[i.key||"",l,i,o]}function Ud(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__datetimeFormatters.has(i)||r.__datetimeFormatters.delete(i)}}function Hd(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:l}=t,[c,d,h,m]=bl(...e),f=lt(h.missingWarn)?h.missingWarn:t.missingWarn;lt(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const p=!!h.part,E=xe(h.locale)?h.locale:t.locale,k=o(t,a,E);if(!xe(c)||c==="")return new Intl.NumberFormat(E,m).format(d);let T={},b,w=null;const A="number format";for(let L=0;L<k.length&&(b=k[L],T=n[b]||{},w=T[c],!Ye(w));L++)gl(t,c,b,f,A);if(!Ye(w)||!xe(b))return r?fo:c;let S=`${b}__${c}`;uo(m)||(S=`${S}__${JSON.stringify(m)}`);let N=l.get(S);return N||(N=new Intl.NumberFormat(b,At({},w,m)),l.set(S,N)),p?N.formatToParts(d):N.format(d)}const jd=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function bl(...t){const[e,n,r,a]=t,i={};let o={};if(!Rt(e))throw ha(da.INVALID_ARGUMENT);const l=e;return xe(n)?i.key=n:Ye(n)&&Object.keys(n).forEach(c=>{jd.includes(c)?o[c]=n[c]:i[c]=n[c]}),xe(r)?i.locale=r:Ye(r)&&(o=r),Ye(a)&&(o=a),[i.key||"",l,i,o]}function Yd(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__numberFormatters.has(i)||r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(li().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
24
24
  * vue-i18n v9.2.2
25
25
  * (c) 2022 kazuya kawaguchi
26
26
  * Released under the MIT License.
27
- */const ym="9.2.2";function bm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Qn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Qn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qn().__INTLIFY_PROD_DEVTOOLS__=!1)}em.__EXTEND_POINT__;let Mo=He.__EXTEND_POINT__;const xt=()=>++Mo,tt={UNEXPECTED_RETURN_TYPE:Mo,INVALID_ARGUMENT:xt(),MUST_BE_CALL_SETUP_TOP:xt(),NOT_INSLALLED:xt(),NOT_AVAILABLE_IN_LEGACY_MODE:xt(),REQUIRED_VALUE:xt(),INVALID_VALUE:xt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:xt(),NOT_INSLALLED_WITH_PROVIDE:xt(),UNEXPECTED_ERROR:xt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:xt(),BRIDGE_SUPPORT_VUE_2_ONLY:xt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:xt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:xt(),__EXTEND_POINT__:xt()};function it(t,...e){return Sr(t,null,void 0)}const Ta=tn("__transrateVNode"),ka=tn("__datetimeParts"),La=tn("__numberParts"),Po=tn("__setPluralRules");tn("__intlifyMeta");const Fo=tn("__injectWithOption");function Oa(t){if(!Ge(t))return t;for(const e in t)if(!!xa(t,e))if(!e.includes("."))Ge(t[e])&&Oa(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i<r;i++)n[i]in a||(a[n[i]]={}),a=a[n[i]];a[n[r]]=t[e],delete t[e],Ge(a[n[r]])&&Oa(a[n[r]])}return t}function Nr(t,e){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=e,o=Te(n)?n:$e(r)?{}:{[t]:{}};if($e(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(o[l]=o[l]||{},rr(c,o[l])):rr(c,o)}else fe(s)&&rr(JSON.parse(s),o)}),a==null&&i)for(const s in o)xa(o,s)&&Oa(o[s]);return o}const Cr=t=>!Ge(t)||$e(t);function rr(t,e){if(Cr(t)||Cr(e))throw it(tt.INVALID_VALUE);for(const n in t)xa(t,n)&&(Cr(t[n])||Cr(e[n])?e[n]=t[n]:rr(t[n],e[n]))}function zo(t){return t.type}function Bo(t,e,n){let r=Ge(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Nr(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ge(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Ge(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function jo(t){return ue.createVNode(ue.Text,null,t,0)}const qo="__INTLIFY_META__";let Uo=0;function Vo(t){return(e,n,r,a)=>t(n,r,ue.getCurrentInstance()||void 0,a)}const Em=()=>{const t=ue.getCurrentInstance();let e=null;return t&&(e=zo(t)[qo])?{[qo]:e}:null};function Ra(t={},e){const{__root:n}=t,r=n===void 0;let a=Pe(t.inheritLocale)?t.inheritLocale:!0;const i=ue.ref(n&&a?n.locale.value:fe(t.locale)?t.locale:tr),o=ue.ref(n&&a?n.fallbackLocale.value:fe(t.fallbackLocale)||$e(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=ue.ref(Nr(i.value,t)),l=ue.ref(Te(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),c=ue.ref(Te(t.numberFormats)?t.numberFormats:{[i.value]:{}});let h=n?n.missingWarn:Pe(t.missingWarn)||nn(t.missingWarn)?t.missingWarn:!0,x=n?n.fallbackWarn:Pe(t.fallbackWarn)||nn(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:Pe(t.fallbackRoot)?t.fallbackRoot:!0,w=!!t.fallbackFormat,I=et(t.missing)?t.missing:null,N=et(t.missing)?Vo(t.missing):null,k=et(t.postTranslation)?t.postTranslation:null,S=n?n.warnHtmlMessage:Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const A=n?n.modifiers:Te(t.modifiers)?t.modifiers:{};let D=t.pluralRules||n&&n.pluralRules,T;T=(()=>{r&&xo(null);const d={version:ym,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:A,pluralRules:D,missing:N===null?void 0:N,missingWarn:h,fallbackWarn:x,fallbackFormat:w,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:S,escapeParameter:E,messageResolver:t.messageResolver,__meta:{framework:"vue"}};d.datetimeFormats=l.value,d.numberFormats=c.value,d.__datetimeFormatters=Te(T)?T.__datetimeFormatters:void 0,d.__numberFormatters=Te(T)?T.__numberFormatters:void 0;const p=dm(d);return r&&xo(p),p})(),nr(T,i.value,o.value);function z(){return[i.value,o.value,s.value,l.value,c.value]}const Y=ue.computed({get:()=>i.value,set:d=>{i.value=d,T.locale=i.value}}),Q=ue.computed({get:()=>o.value,set:d=>{o.value=d,T.fallbackLocale=o.value,nr(T,i.value,d)}}),B=ue.computed(()=>s.value),W=ue.computed(()=>l.value),ne=ue.computed(()=>c.value);function R(){return et(k)?k:null}function V(d){k=d,T.postTranslation=d}function G(){return I}function U(d){d!==null&&(N=Vo(d)),I=d,T.missing=N}const q=(d,p,f,g,C,O)=>{z();let j;if(__INTLIFY_PROD_DEVTOOLS__)try{bo(Em()),r||(T.fallbackContext=n?um():void 0),j=d(T)}finally{bo(null),r||(T.fallbackContext=void 0)}else j=d(T);if(at(j)&&j===Dr){const[H,J]=p();return n&&y?g(n):C(H)}else{if(O(j))return j;throw it(tt.UNEXPECTED_RETURN_TYPE)}};function Z(...d){return q(p=>Reflect.apply(Do,null,[p,...d]),()=>Na(...d),"translate",p=>Reflect.apply(p.t,p,[...d]),p=>p,p=>fe(p))}function se(...d){const[p,f,g]=d;if(g&&!Ge(g))throw it(tt.INVALID_ARGUMENT);return Z(p,f,lt({resolvedMessage:!0},g||{}))}function ie(...d){return q(p=>Reflect.apply(Ao,null,[p,...d]),()=>Ca(...d),"datetime format",p=>Reflect.apply(p.d,p,[...d]),()=>ho,p=>fe(p))}function F(...d){return q(p=>Reflect.apply(Lo,null,[p,...d]),()=>Aa(...d),"number format",p=>Reflect.apply(p.n,p,[...d]),()=>ho,p=>fe(p))}function ee(d){return d.map(p=>fe(p)||at(p)||Pe(p)?jo(String(p)):p)}const K={normalize:ee,interpolate:d=>d,type:"vnode"};function _e(...d){return q(p=>{let f;const g=p;try{g.processor=K,f=Reflect.apply(Do,null,[g,...d])}finally{g.processor=null}return f},()=>Na(...d),"translate",p=>p[Ta](...d),p=>[jo(p)],p=>$e(p))}function Ie(...d){return q(p=>Reflect.apply(Lo,null,[p,...d]),()=>Aa(...d),"number format",p=>p[La](...d),()=>[],p=>fe(p)||$e(p))}function Me(...d){return q(p=>Reflect.apply(Ao,null,[p,...d]),()=>Ca(...d),"datetime format",p=>p[ka](...d),()=>[],p=>fe(p)||$e(p))}function be(d){D=d,T.pluralRules=D}function qe(d,p){const f=fe(p)?p:i.value,g=ae(f);return T.messageResolver(g,d)!==null}function Ce(d){let p=null;const f=uo(T,o.value,i.value);for(let g=0;g<f.length;g++){const C=s.value[f[g]]||{},O=T.messageResolver(C,d);if(O!=null){p=O;break}}return p}function $(d){const p=Ce(d);return p!=null?p:n?n.tm(d)||{}:{}}function ae(d){return s.value[d]||{}}function _(d,p){s.value[d]=p,T.messages=s.value}function b(d,p){s.value[d]=s.value[d]||{},rr(p,s.value[d]),T.messages=s.value}function L(d){return l.value[d]||{}}function te(d,p){l.value[d]=p,T.datetimeFormats=l.value,ko(T,d,p)}function le(d,p){l.value[d]=lt(l.value[d]||{},p),T.datetimeFormats=l.value,ko(T,d,p)}function de(d){return c.value[d]||{}}function M(d,p){c.value[d]=p,T.numberFormats=c.value,Ro(T,d,p)}function u(d,p){c.value[d]=lt(c.value[d]||{},p),T.numberFormats=c.value,Ro(T,d,p)}Uo++,n&&Ea&&(ue.watch(n.locale,d=>{a&&(i.value=d,T.locale=d,nr(T,i.value,o.value))}),ue.watch(n.fallbackLocale,d=>{a&&(o.value=d,T.fallbackLocale=d,nr(T,i.value,o.value))}));const v={id:Uo,locale:Y,fallbackLocale:Q,get inheritLocale(){return a},set inheritLocale(d){a=d,d&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,nr(T,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:B,get modifiers(){return A},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(d){h=d,T.missingWarn=h},get fallbackWarn(){return x},set fallbackWarn(d){x=d,T.fallbackWarn=x},get fallbackRoot(){return y},set fallbackRoot(d){y=d},get fallbackFormat(){return w},set fallbackFormat(d){w=d,T.fallbackFormat=w},get warnHtmlMessage(){return S},set warnHtmlMessage(d){S=d,T.warnHtmlMessage=d},get escapeParameter(){return E},set escapeParameter(d){E=d,T.escapeParameter=d},t:Z,getLocaleMessage:ae,setLocaleMessage:_,mergeLocaleMessage:b,getPostTranslationHandler:R,setPostTranslationHandler:V,getMissingHandler:G,setMissingHandler:U,[Po]:be};return v.datetimeFormats=W,v.numberFormats=ne,v.rt=se,v.te=qe,v.tm=$,v.d=ie,v.n=F,v.getDateTimeFormat=L,v.setDateTimeFormat=te,v.mergeDateTimeFormat=le,v.getNumberFormat=de,v.setNumberFormat=M,v.mergeNumberFormat=u,v[Fo]=t.__injectWithOption,v[Ta]=_e,v[ka]=Me,v[La]=Ie,v}function xm(t){const e=fe(t.locale)?t.locale:tr,n=fe(t.fallbackLocale)||$e(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=et(t.missing)?t.missing:void 0,a=Pe(t.silentTranslationWarn)||nn(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Pe(t.silentFallbackWarn)||nn(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Pe(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=Te(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,h=et(t.postTranslation)?t.postTranslation:void 0,x=fe(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,w=Pe(t.sync)?t.sync:!0;let I=t.messages;if(Te(t.sharedMessages)){const T=t.sharedMessages;I=Object.keys(T).reduce((z,Y)=>{const Q=z[Y]||(z[Y]={});return lt(Q,T[Y]),z},I||{})}const{__i18n:N,__root:k,__injectWithOption:S}=t,E=t.datetimeFormats,A=t.numberFormats,D=t.flatJson;return{locale:e,fallbackLocale:n,messages:I,flatJson:D,datetimeFormats:E,numberFormats:A,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:h,warnHtmlMessage:x,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:w,__i18n:N,__root:k,__injectWithOption:S}}function Ma(t={},e){{const n=Ra(xm(t)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return Pe(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Pe(a)?!a:a},get silentFallbackWarn(){return Pe(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Pe(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,o,s]=a,l={};let c=null,h=null;if(!fe(i))throw it(tt.INVALID_ARGUMENT);const x=i;return fe(o)?l.locale=o:$e(o)?c=o:Te(o)&&(h=o),$e(s)?c=s:Te(s)&&(h=s),Reflect.apply(n.t,n,[x,c||h||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let c=null,h=null;if(!fe(i))throw it(tt.INVALID_ARGUMENT);const x=i;return fe(o)?l.locale=o:at(o)?l.plural=o:$e(o)?c=o:Te(o)&&(h=o),fe(s)?l.locale=s:$e(s)?c=s:Te(s)&&(h=s),Reflect.apply(n.t,n,[x,c||h||{},l])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,r)}};return r}}const Pa={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function wm({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>r=[...r,...$e(a.children)?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function Ho(t){return ue.Fragment}const Wo={name:"i18n-t",props:lt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>at(t)||!isNaN(t)}},Pa),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||Fa({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(x=>x!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=fe(t.plural)?+t.plural:t.plural);const s=wm(e,i),l=a[Ta](t.keypath,s,o),c=lt({},r),h=fe(t.tag)||Ge(t.tag)?t.tag:Ho();return ue.h(h,c,l)}}};function _m(t){return $e(t)&&!fe(t[0])}function $o(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),fe(t.format)?o.key=t.format:Ge(t.format)&&(fe(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((y,w)=>n.includes(w)?lt({},y,{[w]:t.format[w]}):y,{}));const l=r(t.value,o,s);let c=[o.key];$e(l)?c=l.map((y,w)=>{const I=a[y.type],N=I?I({[y.type]:y.value,index:w,parts:l}):[y.value];return _m(N)&&(N[0].key=`${y.type}-${w}`),N}):fe(l)&&(c=[l]);const h=lt({},i),x=fe(t.tag)||Ge(t.tag)?t.tag:Ho();return ue.h(x,h,c)}}const Go={name:"i18n-n",props:lt({value:{type:Number,required:!0},format:{type:[String,Object]}},Pa),setup(t,e){const n=t.i18n||Fa({useScope:"parent",__useComponent:!0});return $o(t,e,Oo,(...r)=>n[La](...r))}},Yo={name:"i18n-d",props:lt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Pa),setup(t,e){const n=t.i18n||Fa({useScope:"parent",__useComponent:!0});return $o(t,e,To,(...r)=>n[ka](...r))}};function Im(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Sm(t){const e=o=>{const{instance:s,modifiers:l,value:c}=o;if(!s||!s.$)throw it(tt.UNEXPECTED_ERROR);const h=Im(t,s.$),x=Zo(c);return[Reflect.apply(h.t,h,[...Ko(x)]),h]};return{created:(o,s)=>{const[l,c]=e(s);Ea&&t.global===c&&(o.__i18nWatcher=ue.watch(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{Ea&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,c=Zo(s);o.textContent=Reflect.apply(l.t,l,[...Ko(c)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Zo(t){if(fe(t))return{path:t};if(Te(t)){if(!("path"in t))throw it(tt.REQUIRED_VALUE,"path");return t}else throw it(tt.INVALID_VALUE)}function Ko(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},s=r||{};return fe(n)&&(o.locale=n),at(a)&&(o.plural=a),at(i)&&(o.plural=i),[e,s,o]}function Dm(t,e,...n){const r=Te(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Pe(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":Wo.name,Wo),t.component(Go.name,Go),t.component(Yo.name,Yo)),t.directive("t",Sm(e))}function Nm(t,e,n){return{beforeCreate(){const r=ue.getCurrentInstance();if(!r)throw it(tt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Jo(t,i):(i.__injectWithOption=!0,this.$i18n=Ma(i))}else a.__i18n?this===this.$root?this.$i18n=Jo(t,a):this.$i18n=Ma({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&Bo(e,a,a),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const r=ue.getCurrentInstance();if(!r)throw it(tt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Jo(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[Po](e.pluralizationRules||t.pluralizationRules);const n=Nr(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const Cm=tn("global-vue-i18n");function Am(t={},e){const n=__VUE_I18N_LEGACY_API__&&Pe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Pe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,s]=Tm(t,n),l=tn("");function c(y){return i.get(y)||null}function h(y,w){i.set(y,w)}function x(y){i.delete(y)}{const y={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(w,...I){w.__VUE_I18N_SYMBOL__=l,w.provide(w.__VUE_I18N_SYMBOL__,y),!n&&r&&Bm(w,y.global),__VUE_I18N_FULL_INSTALL__&&Dm(w,y,...I),__VUE_I18N_LEGACY_API__&&n&&w.mixin(Nm(s,s.__composer,y));const N=w.unmount;w.unmount=()=>{y.dispose(),N()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:c,__setInstance:h,__deleteInstance:x};return y}}function Fa(t={}){const e=ue.getCurrentInstance();if(e==null)throw it(tt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw it(tt.NOT_INSLALLED);const n=km(e),r=Om(n),a=zo(e),i=Lm(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw it(tt.NOT_AVAILABLE_IN_LEGACY_MODE);return Pm(e,i,r,t)}if(i==="global")return Bo(r,t,a),r;if(i==="parent"){let l=Rm(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(e);if(s==null){const l=lt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=Ra(l),Mm(o,e),o.__setInstance(e,s)}return s}function Tm(t,e,n){const r=ue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Ma(t)):r.run(()=>Ra(t));if(a==null)throw it(tt.UNEXPECTED_ERROR);return[r,a]}}function km(t){{const e=ue.inject(t.isCE?Cm:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw it(t.isCE?tt.NOT_INSLALLED_WITH_PROVIDE:tt.UNEXPECTED_ERROR);return e}}function Lm(t,e){return Ir(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Om(t){return t.mode==="composition"?t.global:t.global.__composer}function Rm(t,e,n=!1){let r=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(r=s.__composer,n&&r&&!r[Fo]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function Mm(t,e,n){ue.onMounted(()=>{},e),ue.onUnmounted(()=>{t.__deleteInstance(e)},e)}function Pm(t,e,n,r={}){const a=e==="local",i=ue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw it(tt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Pe(r.inheritLocale)?r.inheritLocale:!0,s=ue.ref(a&&o?n.locale.value:fe(r.locale)?r.locale:tr),l=ue.ref(a&&o?n.fallbackLocale.value:fe(r.fallbackLocale)||$e(r.fallbackLocale)||Te(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),c=ue.ref(Nr(s.value,r)),h=ue.ref(Te(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),x=ue.ref(Te(r.numberFormats)?r.numberFormats:{[s.value]:{}}),y=a?n.missingWarn:Pe(r.missingWarn)||nn(r.missingWarn)?r.missingWarn:!0,w=a?n.fallbackWarn:Pe(r.fallbackWarn)||nn(r.fallbackWarn)?r.fallbackWarn:!0,I=a?n.fallbackRoot:Pe(r.fallbackRoot)?r.fallbackRoot:!0,N=!!r.fallbackFormat,k=et(r.missing)?r.missing:null,S=et(r.postTranslation)?r.postTranslation:null,E=a?n.warnHtmlMessage:Pe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,A=!!r.escapeParameter,D=a?n.modifiers:Te(r.modifiers)?r.modifiers:{},T=r.pluralRules||a&&n.pluralRules;function P(){return[s.value,l.value,c.value,h.value,x.value]}const z=ue.computed({get:()=>i.value?i.value.locale.value:s.value,set:b=>{i.value&&(i.value.locale.value=b),s.value=b}}),Y=ue.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),l.value=b}}),Q=ue.computed(()=>i.value?i.value.messages.value:c.value),B=ue.computed(()=>h.value),W=ue.computed(()=>x.value);function ne(){return i.value?i.value.getPostTranslationHandler():S}function R(b){i.value&&i.value.setPostTranslationHandler(b)}function V(){return i.value?i.value.getMissingHandler():k}function G(b){i.value&&i.value.setMissingHandler(b)}function U(b){return P(),b()}function q(...b){return i.value?U(()=>Reflect.apply(i.value.t,null,[...b])):U(()=>"")}function Z(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function se(...b){return i.value?U(()=>Reflect.apply(i.value.d,null,[...b])):U(()=>"")}function ie(...b){return i.value?U(()=>Reflect.apply(i.value.n,null,[...b])):U(()=>"")}function F(b){return i.value?i.value.tm(b):{}}function ee(b,L){return i.value?i.value.te(b,L):!1}function re(b){return i.value?i.value.getLocaleMessage(b):{}}function K(b,L){i.value&&(i.value.setLocaleMessage(b,L),c.value[b]=L)}function _e(b,L){i.value&&i.value.mergeLocaleMessage(b,L)}function Ie(b){return i.value?i.value.getDateTimeFormat(b):{}}function Me(b,L){i.value&&(i.value.setDateTimeFormat(b,L),h.value[b]=L)}function be(b,L){i.value&&i.value.mergeDateTimeFormat(b,L)}function qe(b){return i.value?i.value.getNumberFormat(b):{}}function Ce(b,L){i.value&&(i.value.setNumberFormat(b,L),x.value[b]=L)}function $(b,L){i.value&&i.value.mergeNumberFormat(b,L)}const ae={get id(){return i.value?i.value.id:-1},locale:z,fallbackLocale:Y,messages:Q,datetimeFormats:B,numberFormats:W,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:D},get pluralRules(){return i.value?i.value.pluralRules:T},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:y},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:w},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:I},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:N},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:q,getPostTranslationHandler:ne,setPostTranslationHandler:R,getMissingHandler:V,setMissingHandler:G,rt:Z,d:se,n:ie,tm:F,te:ee,getLocaleMessage:re,setLocaleMessage:K,mergeLocaleMessage:_e,getDateTimeFormat:Ie,setDateTimeFormat:Me,mergeDateTimeFormat:be,getNumberFormat:qe,setNumberFormat:Ce,mergeNumberFormat:$};function _(b){b.locale.value=s.value,b.fallbackLocale.value=l.value,Object.keys(c.value).forEach(L=>{b.mergeLocaleMessage(L,c.value[L])}),Object.keys(h.value).forEach(L=>{b.mergeDateTimeFormat(L,h.value[L])}),Object.keys(x.value).forEach(L=>{b.mergeNumberFormat(L,x.value[L])}),b.escapeParameter=A,b.fallbackFormat=N,b.fallbackRoot=I,b.fallbackWarn=w,b.missingWarn=y,b.warnHtmlMessage=E}return ue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw it(tt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=b.locale.value,l.value=b.fallbackLocale.value,c.value=b.messages.value,h.value=b.datetimeFormats.value,x.value=b.numberFormats.value):a&&_(b)}),ae}const Fm=["locale","fallbackLocale","availableLocales"],zm=["t","rt","d","n","tm"];function Bm(t,e){const n=Object.create(null);Fm.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw it(tt.UNEXPECTED_ERROR);const i=ue.isRef(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,zm.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw it(tt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}if(om(hm),sm(qd),lm(uo),bm(),__INTLIFY_PROD_DEVTOOLS__){const t=Qn();t.__INTLIFY__=!0,Kd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const jm={en:{agendize:{notification:{report:{download:{filename:"AZ - Generic extraction"}}}},agenda:{appointment:{new:"New","new-aria-label":"Add a new element",error:{"date-not-available":{boxTitle:"New appointment",title:"The staff is already busy in this slot",description:`An appointment is already positioned on this slot.
28
- You can modify the time of the appointment by clicking on the button provided for this purpose or confirm the appointment by ignoring the alert.
29
-
30
- Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},"staff-not-available":{boxTitle:"New appointment",title:"Staff not available",description:`Staff not available
31
-
32
- Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},unknown:{boxTitle:"Error",title:"An error occurred",cancel:"Cancel"}},details:{"edit-aria-label":"Edit appointment","close-aria-label":"Close appointment details",start:"Start",end:"End",location:{visio:"Join the visio-conference",agence:"Compute the journey",phone:"Call the contact"},actions:{inProgress:{0:"D\xE9marrer le rendez-vous",1:"Confirmer le changement de status : d\xE9marr\xE9",2:"Confirmer le changement de status : d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"Confirmer le changement de status : termin\xE9",2:"Confirmer le changement de status : termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"Confirmer le changement de status : pas venu",2:"Confirmer le changement de status : pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"Confirmer le changement de status : annul\xE9",2:"Confirmer le changement de status : annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"}},"section-details":{title:"Appointment details",company:"Company",service:"Service",staff:"Staff",status:"Status",contact:"Your contact","contact-ref":"Reference","contact-email":"Email","contact-phone":"Phone"},"section-additional-data":{title:"Additional informations"},status:{accepted:"Accepted",inProgress:"In progress",completed:"Completed",noShow:"No show",pending:"Pending",cancelled:"Cancelled",declined:"Declined"}},tooltip:{google:"Google appointment",microsoft:"Microsoft appointment",personal:"Personal appointment"}},title:{main:"Calendar",day:"{date}",week:"{start} - {end}","week-number":"Week {week}",month:"{date}",daily:"Day",weekly:"Week","view-selector-aria-label":"Select a vue",mobile:{view:"Select a vue",users:"Select users"}},nav:{"menu-aria-label":"Open the menu","previous-aria-label":"Previous period","calendar-aria-label":"Select a custom period","next-aria-label":"Next period"},actions:{"filter-aria-label":"Open filter menu","fav-aria-label":"Save vue as favorite","settings-aria-label":"Open settings menu","more-options-aria-label":"Open more options menu","users-aria-label":"Add a user"},user:{modal:{title:"Add a calendar",subtitle:"Staff selected:",action:"Add calendars"}},reschedule:{quick:{title:"Reschedule appointment",message:"The appointment has been modified, do you confirm the modification?","draft-warning":"An appointment is being edited, do you want to leave anyway ?",confirm:"Confirm",start:"Start",end:"End",staff:"Staff"},success:"Appointment modification done with success",error:"An error occurred during the reschedule process","error-1000":"Staff not available in this company","error-1001":"Daily quota reached","error-1002":"Weekly quota reached","error-1003":"Scheduling settings violated","error-1004":"Resource not available"},filter:{title:"Filters",personalFilter:"Personal appointment",externalFilter:"External appointment",cancelledFilter:"Cancelled appointment"},othersAgenda:{title:"Others agendas",add:"Add agenda"}},common:{empty:"empty",field:{civility:{label:"Title",placeholder:"Enter a title"},"mandatory-not-filled":"Mandatory field(s) not filled in"}},form:{submit:"Submit form"},queue:{title:"Queue","working-hours":{"open-today":"Open today",closed:"Closed",title:"Opening times"},location:{itinerary:"Itinerary"},contact:{"contact-us":"Contact us","call-us":"Call us","send-message":"Send a message"},form:{firstname:{title:"Your first name",placeholder:"Enter @.lower:queue.form.firstname.title"},lastname:{title:"Your last name",placeholder:"Enter @.lower:queue.form.lastname.title"},phone:{title:"Your mobile phone number",placeholder:"Enter a phone number"},submit:"Add me to queue"},powered:"Powered by Agendize",waiting:{people:"{nb} peoples","waiting-time":"About {time} minute(s) of waiting","number-in-queue":"You are number {nb} in the queue",recap:"There are {nb} people(s) ahead. Your waiting time is estimate to {time} minute(s)"}},settings:{common:{day:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",closed:"Closed"}},"planning-details":{error:{startAfterEnd:"Start time must be less than end time",noHour:"A schedule has not been entered",overlap:"This day's schedules overlap",general:"Hours do not match"}},profile:{lastname:"Last name"},administration:{title:"Administration",subtitle:"View and update your organization details, manage access rights to your organization and customize the workspace",tabs:{audit:"Audit log"},audit:{search:{placeholder:"Search by last name, first name or email"},columns:{date:"Date",user:"User",action_type:"Category",action:"Action"},no_data:"No audit log",action_type:{0:"Login",1:"Settings",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"Report"},action:{0:{0:"User connection",1:"Connection attempt failed",2:"Account locked",3:"Failed to change password",4:"Changed password"},1:{5:"Adding the company {companyName} ({companyId})",6:"Change of company {companyName} ({companyId})",7:"Deletion of company {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"Adding the category {objectName} ({objectId}) - {companyName} ({companyId})",6:"Change of category {objectName} ({objectId}) - {companyName} ({companyId})",7:"Deletion of category {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Adding the team {objectName} ({objectId}) - {companyName} ({companyId})",6:"Change of team {objectName} ({objectId}) - {companyName} ({companyId})",7:"Deletion of team {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"Adding the service {objectName} ({objectId}) - {companyName} ({companyId})",6:"Change of service {objectName} ({objectId}) - {companyName} ({companyId})",7:"Deletion of service {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Adding the staff {objectName} ({objectId}) - {companyName} ({companyId})",6:"Change of staff {objectName} ({objectId}) - {companyName} ({companyId})",7:"Deletion of staff {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"Report generation"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"Company name",address:"Company address",email:"Company email",phone:"Company phone",latitude:"Company latitude",longitude:"Company longitude",externalId:"Company External ID",id:"Company Technical ID"}},service:{fields:{name:"Service name",duration:"Service duration",capacity:"Service capacity",price:"Service price",categoryLevel1Name:"Lvl 1 group name",categoryLevel2Name:"Lvl 2 group name",externalId:"Service external ID",id:"Service Technical ID",categoryLevel1ExternalId:"Lvl 1 group external ID",categoryLevel1Id:"Lvl 1 group technical ID",categoryLevel2ExternalId:"Lvl 2 group external ID",categoryLevel2Id:"Lvl 2 group technical ID"}},staff:{fields:{firstName:"Staff first name",lastName:"Staff last name",email:"Staff email",phone:"Staff phone",groupName:"Team name",externalId:"Staff external ID",id:"Staff technical ID",groupExternalId:"External team ID",groupId:"Team technical ID"}},appointment:{fields:{start:"Start of the appointment",end:"End of the appointment",location:"Appointment location",status:"Appointment status",notes:"Note of the appointment",customFields:"Additional appointment information",id:"Appointment technical ID"}},client:{fields:{firstName:"Contact first name",lastName:"Contact last name",email:"Contact email",phone:"Contact phone",id:"Contact technical ID"}}},filter:{allCompanies:"All companies"}}}},fr:{agenda:{appointment:{activities:{"update-status":{completed:"Rendez-vous termin\xE9",inProgress:"Rendez-vous en cours",accepted:"Rendez-vous accept\xE9",cancelled:"Rendez-vous annul\xE9",pending:"Rendez-vous en attente",declined:"Rendez-vous refus\xE9",noShow:"Le client n'est pas venu",unknown:"Status du rendez-vous inconnu",custom:"Statut du rendez-vous modifi\xE9"},creation:{widget:"Rendez-vous pris via le widget",api:"Rendez-vous pris par API",mobile:"Rendez-vis pris par l'application mobile",w2:"Rendez-vous pris via la console",nh:"Rendez-vous pris depuis le calendrier",unknown:"Cr\xE9ation du rendez-vous"},deletion:{staff:"Rendez-vous annul\xE9 par le collaborateur",contact:"Rendez-vous annul\xE9 par le @:crm.contact-trad",unknown:"Rendez-vous annul\xE9"},"update-note":"Note du rendez-vous modifi\xE9e","update-form":"Champ du formulaire de rendez-vous modifi\xE9","update-staff":"Collaborateur du rendez-vous modifi\xE9","update-service":"Service du rendez-vous modifi\xE9","update-resource":"Resource du rendez-vous modifi\xE9e","update-dates":"Rendez-vous replanifi\xE9","update-start":"D\xE9but du rendez-vous modifi\xE9","update-end":"Fin du rendez-vous modifi\xE9e","update-location":"Emplacement du rendez-vous modifi\xE9"},details:{actions:{tooltip:{contact:"Consulter la fiche client",form:"Afficher les d\xE9tails du rendez-vous",noShow:"@:agenda.appointment.details.actions.noShow.0",completed:"@:agenda.appointment.details.actions.completed.0",inProgress:"@:agenda.appointment.details.actions.inProgress.0",cancelled:"@:agenda.appointment.details.actions.cancelled.0"},messages:{confirm:"Confirmer le changement de status : "},inProgress:{0:"D\xE9marrer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",2:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",2:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Marquer en pas venu",1:"@:agenda.appointment.details.actions.messages.confirm pas venu",2:"@:agenda.appointment.details.actions.messages.confirm pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",2:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"},accepted:{0:"Accepter",1:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",2:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",3:"Chargement",4:"Rendez-vous accept\xE9"},declined:{0:"Refuser",1:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",2:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",3:"Chargement",4:"Rendez-vous refus\xE9"}},attendee:{organizer:"Organisateur"},"history-aria-label":"Consulter l'historique du rendez-vous","close-aria-label":"Fermer le d\xE9tail du rendez-vous","edit-aria-label":"Modifier le rendez-vous","edit-notes":{title:"Note du rendez-vous",description:"Merci de ne pas communiquer de propos injurieux, discriminants, ni de donn\xE9es personnelles ou sensibles (sant\xE9, origine raciale ou ethnique, opinions politiques).",save:"Valider",placeholder:"Saisissez une note",success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur s'est produite durant la sauvegarde du rendez-vous",tooltip:"Ajouter/Modifier la note"},end:"Fin",history:{title:"Historique du rendez-vous","back-aria-label":"Retour aux d\xE9tails du rendez-vous","close-aria-label":"Fermer l'historique du rendez-vous"},location:{visio:"Participer \xE0 la visioconf\xE9rence",agence:"Calculer l'itin\xE9raire",phone:"Appeler le client"},notes:"Notes","notes-tooltip":"Modifier la note du rendez-vous","no-service":"Service inexistant",peoples:"Participants","section-additional-data":{title:"Informations compl\xE9mentaires"},"section-details":{title:"D\xE9tail du rendez-vous",company:"\xC9tablissement",service:"Service",staff:"@:common.field.staff.label",status:"Statut",contact:"Votre client","contact-ref":"R\xE9f\xE9rence","contact-email":"@:common.field.email.label","contact-phone":"T\xE9l\xE9phone",attendees:"Participants",externe:"Connecteur",notes:"Notes"},"section-title":{additionalInformation:"Informations compl\xE9mentaires :",attendee:"Participants",category:"Cat\xE9gories",company:"Etablissement",location:{agence:"En pr\xE9sentiel",phone:"Par t\xE9l\xE9phone",visio:"Visioconf\xE9rence",custom:"Emplacement personnalis\xE9"},notes:"@:agenda.appointment.details.notes"},start:"D\xE9but",status:{accepted:"Accept\xE9",inProgress:"En cours",completed:"Termin\xE9",noShow:"Pas venu",pending:"En attente",pendingPayment:"En attente de paiement",cancelled:"Annul\xE9",declined:"Refus\xE9",confirm:{cancelled:"Vous \xEAtes sur le point d\u2019annuler votre rendez-vous. Cette action est irr\xE9versible. \xCAtes-vous s\xFBr de vouloir continuer ?",declined:"Vous \xEAtes sur le point de refuser le rendez-vous. Cette action est irr\xE9versible. \xCAtes-vous s\xFBr de vouloir continuer ?",completed:"Vous \xEAtes sur le point de marquer comme \u201CTerminer\u201D le rendez-vous. Cette action est irr\xE9versible. \xCAtes-vous s\xFBr de vouloir continuer ?",noShow:"Vous \xEAtes sur le point de notifier le fait que le contact ne s\u2019est pas pr\xE9sent\xE9 au rendez-vous. Cette action est irr\xE9versible. \xCAtes-vous s\xFBr de vouloir continuer ?"}},title:"Votre rendez-vous","widget-field":{address:{label:"@:common.field.address.label"}}},error:{"date-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur est d\xE9j\xE0 occup\xE9 sur ce cr\xE9neau.",description:`Un rendez-vous est d\xE9j\xE0 positionn\xE9 sur ce cr\xE9neau.
33
- Vous pouvez modifier l\u2019heure du rendez-vous en cliquant sur le bouton pr\xE9vu \xE0 cet effet ou confirmer le rendez-vous en ignorant l\u2019alerte.`,confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"staff-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur n'est pas disponible.",description:"Le collaborateur n'est pas disponible.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"appointment-period-rule":{boxTitle:"Nouveau rendez-vous",title:"Rendez-vous en dehors des plages",description:"Le rendez-vous a \xE9t\xE9 pris en dehors des plages ouvertes \xE0 la prise de rendez-vous pour cet \xE9tablissement.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-daily":{boxTitle:"Nouveau rendez-vous",title:"Quota quotidien",description:"Le quota quotidien de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-weekly":{boxTitle:"Nouveau rendez-vous",title:"Quota hebdomadaire",description:"Le quota hebdomadaire de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},unknown:{boxTitle:"Erreur",title:"Une erreur est survenue",cancel:"@:common.action.cancel"},continue:"Souhaitez-vous poursuivre cette action ?"},external:{"no-title":"Aucun titre"},history:{"action-on":{"appointment-widget":"le rendez-vous via le widget","appointment-console":"le rendez-vous via la console",contact:"le contact","date-end":"l'heure de fin du rendez-vous","date-start":"l'heure de d\xE9but du rendez-vous",dates:"l'heure du rendez-vous",location:"l'emplacement du rendez-vous",note:"la note",field:"le champ {name}",fields:"les champs du widget",service:"le service",staff:"le collaborateur",status:"le statut"},common:{create:"{user} a cr\xE9e {object}",update:"{user} a modifi\xE9 {object}",delete:"{user} a annul\xE9 {object}"},"creation-contact":"{user} a cr\xE9\xE9 <b>le rendez-vous via le widget</b>","creation-staff":"{user} a cr\xE9\xE9 <b>le rendez-vous via la console</b>","deletion-contact":"{user} a annul\xE9 <b>le rendez-vous via le widget</b>","deletion-staff":"{user} a annul\xE9 <b>le rendez-vous via la console</b>",file:{add:"Ajout d'une pi\xE8ce jointe ({name})",modify:"Modification de la pi\xE8ce jointe ({name})"},more:"Voir plus","update-dates":"{user} a modifi\xE9 <b>l'heure du rendez-vous</b>","update-end":"{user} a modifi\xE9 <b>l'heure de fin du rendez-vous</b>","update-field":"{user} a modifi\xE9 le champ <b>{name}</b>","update-fields":"{user} a modifi\xE9 <b>les champs du widget </b>","update-note":"{user} a modifi\xE9 <b>la note</b>","update-service":"{user} a modifi\xE9 <b>le service</b>","update-staff":"{user} a modifi\xE9 <b>le collaborateur</b>","update-status":"{user} a modifi\xE9 <b>l'heure de d\xE9but du rendez-vous</b>","update-start":"{user} a modifi\xE9 <b>le statut</b>"},new:"Nouveau","new-aria-label":"Ajouter un nouvel \xE9l\xE9ment",tooltip:{google:"Rendez-vous Google",microsoft:"Rendez-vous Microsoft",ics:"Rendez-vous iCalendar",personal:"Rendez-vous personnel",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence",external:"Externe"}},event:{share:{thanks:{"panel-title":"Cr\xE9er un lien de prise de rendez-vous",title:"F\xE9licitations !",body:"Votre lien est maintenant disponible. Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts"},"panel-title":"Partager",title:"Partager l'invitation \xE0 votre \xE9v\xE9nement !",body:"Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts","close-aria-label":"Fermer le panneau de partage",media:{link:"Lien de partage",qrcode:"QR Code",email:{label:"Partager par email",action:{subject:"Venez vous inscrire \xE0 notre \xE9v\xE9nement",body:"Bonjour,%0A%0A Nous serions heureux de vous rencontrer lors de notre \xE9v\xE9nement {subject} qui aura lieu le {date} \xE0 {time} dans nos locaux. %0A%0A Voici le lien de r\xE9servation {link}."}}}}},fab:{widget:{title:"Rendez-vous client",description:"Cr\xE9ez un nouveau rendez-vous \xE0 l'aide du widget de prise de rendez-vous","aria-label":"@:agenda.fab.widget.description"},perso:{title:"Rendez-vous personnel",description:"Cr\xE9ez un nouvel \xE9v\xE9nement personnel","aria-label":"@:agenda.fab.perso.description"},event:{title:"\xC9v\xE9nement",description:"Cr\xE9ez un \xE9v\xE9nement puis partagez le lien de r\xE9servation o\xF9 vous voulez.","aria-label":"@:agenda.fab.event.description"}},title:{main:"Calendrier",day:"{date}",week:"{start} - {end}","week-number":"Semaine {week}",month:"{date}",daily:"Jour",weekly:"Semaine","list-week":"Agenda",plan:"Planifier","view-selector-aria-label":"S\xE9lectionnez une vue",today:"Aujourd'hui",settings:"Param\xE9trage",mobile:{view:"S\xE9lection de la vue",users:"S\xE9lection des utilisateurs"},noevent:"Aucun \xE9v\xE9nement",export:"Exporter sous Excel"},nav:{"menu-aria-label":"Acc\xE9der au menu","previous-aria-label":"P\xE9riode pr\xE9c\xE9dente","calendar-aria-label":"S\xE9lectionner une p\xE9riode sp\xE9cifique","next-aria-label":"P\xE9riode suivante"},actions:{"filter-aria-label":"Ouvrir le menu de filtrage","fav-aria-label":"Sauvegarder cette vue comme favorite","settings-aria-label":"Ouvrir le menu de param\xE9trage","more-options-aria-label":"Ouvrir plus d'options","users-aria-label":"Ajouter un utilisateur","add-user-note-label":"Note"},user:{modal:{title:"Ajouter un agenda",subtitle:"Agenda(s) s\xE9lectionn\xE9(s) :",action:"Ajouter les agendas"}},reschedule:{quick:{title:"Modification du rendez-vous",message:"Le rendez-vous a \xE9t\xE9 modifi\xE9, confirmez-vous la modification ?","draft-warning":"Un rendez-vous est en cours d'\xE9dition, confirmez-vous l'annulation de l'\xE9dition du rendez-vous actuel ?",confirm:"@:common.action.confirm",start:"D\xE9but",end:"Fin",staff:"@:common.field.staffs.label"},success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur est survenue durant la replanification","error-1000":"Le collaborateur n'est pas disponible dans cet \xE9tablissement","error-1001":"Quota quotidien atteint","error-1002":"Quota hebdomadaire atteint","error-1003":"Borne de prise de rendez-vous non respect\xE9e","error-1004":"Resource non disponible"},client:{addnote:{success:"Client annot\xE9",error:"Une erreur est survenue durant l'ajout de la note client"}},filter:{appointment:{title:"Type de rendez-vous",personalFilter:"Rendez-vous personnels",externalFilter:"Rendez-vous externes",cancelledFilter:"Rendez-vous annul\xE9s"},company:{title:"\xC9tablissements"}},othersAgenda:{title:"Agendas",add:"Ajouter un agenda"},planning:{today:"Aujourd'hui",back:"Retour au calendrier",users:"Collaborateurs",companies:"\xC9tablissements"},list:{print:"Imprimer"}},agendize:{main:{skip:"Passer au contenu"},menu:{home:{title:"Accueil"},logout:{title:"Se d\xE9connecter","aria-label":"Se d\xE9connecter","popover-title":"D\xE9connexion","popover-description":"Au plaisir de vous revoir \u{1F609}"},notifications:{title:"Notifications"},extendedMenu:{title:"Menu","aria-label":"Afficher le menu"},top:{personal:"Mes donn\xE9es personnelles",preference:"Mes pr\xE9f\xE9rences",logout:"@:agendize.menu.logout.title"}},page:{help:"Afficher l'aide"},notification:{title:"Notifications ({nb})",event:{title:"{contact} a pris rendez-vous.",body:"Rendez-vous le {day} {date} \xE0 {time} avec {staff}",info:"{company} - {service}",content:"<b>{client}</b> a pris un nouveau rendez-vous avec <b>{staff}</b> pour le service <b>{service}</b> de l'\xE9tablissement <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>.",accepted:"@:agenda.appointment.details.actions.accepted.4",declined:"@:agenda.appointment.details.actions.declined.4","accepte-error":"Une erreur a eu lieu lors de l'acceptation","decline-error":"Une erreur a eu lieu lors du refus","user-delete":"Collaborateur supprim\xE9",perso:{title:"Un rendez-vous personnel a \xE9t\xE9 pris pour le collaborateur {staff}.",body:"Rendez-vous le {day} {date} \xE0 {time}",info:"{company}",content:"Un nouveau rendez-vous personnel avec <b>{staff}</b> pour l'\xE9tablissement <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>."}},period:{new:"Nouvelles",week:"Cette semaine",earlier:"Plus t\xF4t"},report:{fail:{title:"L'extraction a \xE9chou\xE9",body:"Une erreur est survenue lors de l'extraction des donn\xE9es."},new:{title:"Votre extraction est pr\xEAte !",body:"Vous pouvez la t\xE9l\xE9charger en cliquant sur cette notification."},download:{filename:"AZ - Extraction g\xE9n\xE9rique",toaster:{error:"Une erreur est survenue lors de la r\xE9cup\xE9ration de l'extraction",removed:"L'extraction ne semble plus disponible",success:"L'extraction a bien \xE9t\xE9 r\xE9cup\xE9r\xE9e"}}},date:"Il y a {duration}"},topBar:{news:"Acc\xE9der aux nouveaut\xE9s",help:"Acc\xE9der \xE0 l'aide en ligne",avatar:{"aria-label":"Avatar de l'utilisateur"}},"router-meta":{title:"Agendize","account-selector":"Quelle est votre organisation ?",calendar:{title:"Calendrier",description:"G\xE9rer vos rendez-vous et planifier votre activit\xE9",filter:"Menu principal",filterDescription:"Afficher/Masquer le menu principal"},planning:{title:"Planification",description:"G\xE9rer les planning de vos collaborateurs",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},settings:{title:"Param\xE9trage",description:"Param\xE9trer votre Agendize en fonction de vos pr\xE9f\xE9rences",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},administration:{title:"Administration",description:"Administration de votre organisation",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},forms:{title:"Formulaires",description:"G\xE9rer et configurer vos formulaires",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},queues:{title:"Files d'attente",description:"G\xE9rer et configurer vos files d'attente",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},crm:{title:"@:crm.contacts-caps-trad",description:"G\xE9rer et configurer vos @:crm.contacts-trad",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},report:{title:"Rapport",description:"Consulter mes rapports",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"}},login:{"account-selection":{title:"Nous avons trouv\xE9 plusieurs organisations.",subtitle:"Sur quelle organisation souhaitez-vous vous connecter ?",next:"@:common.next",back:"@:common.back",right:{0:"@:common.roles.administrator",1:"Personnel de planification",2:"Lecteur de planification",3:"Administrateur de planification",4:"Droits divers",owner:"Propri\xE9taire",multiple:"Droits multiples"}}}},calendar:{buffer:{after:"Buffer",before:"Buffer"}},common:{action:{accept:"Accepter",duplicate:"Dupliquer",delete:"Supprimer",confirm:"Confirmer",cancel:"Annuler",back:"Retour","back-to-list":"Retour \xE0 la liste",close:"Fermer",refuse:"Refuser",save:"Enregistrer",modify:"Modifier",share:"Partager",download:"T\xE9l\xE9charger",validate:"Valider",filter:"Filtrer"},and:"Et",api:"API",back:"Retour",between:"Entre",content:{none:"Aucun","none-e":"Aucune"},"creation-date":"@:common.date.creation",copy:"Copi\xE9",dialog:{changeTab:{title:"Modification",description:"Vous avez des modifications non enregistr\xE9es sur l'onglet actuel. Souhaitez-vous tout de m\xEAme changer d'onglet ?"}},date:{creation:"Cr\xE9\xE9 le {date}","at-time":"Le {date} \xE0 {time}"},days:{monday:"Lundi | Lundis",tuesday:"Mardi | Mardis",wednesday:"Mercredi | Mercredis",thursday:"Jeudi | Jeudis",friday:"Vendredi | Vendredis",saturday:"Samedi | Samedis",sunday:"Dimanche | Dimanches",closed:"Ferm\xE9e","all-days":"Tous les jours","all-weekdays":"Tous les jours sauf les week-end","all-dayname":"Tous les {dayname}"},duration:{part:{hour:"1 heure",minute:"1 minute",hours:"{hours} heures",minutes:"{minutes} minutes"},days:"{days} jour(s)",hour:"@:common.duration.part.hour|@:common.duration.part.hours",hours:"{hours} heure(s)",h:"{hours} h",minute:"@:common.duration.part.minute|@:common.duration.part.minutes",minutes:"{minutes} minute(s)",min:"{minutes} min",seconds:"{seconds} second(s)",s:"{seconds} s","days-with-hours":"@:common.duration.days @:common.duration.hours","days-with-minutes":"@:common.duration.days @:common.duration.minutes","days-with-hours-and-minutes":"@:common.duration.days @:common.duration.hours @:common.duration.minutes","hours-with-minutes":"@:common.duration.hours @:common.duration.minutes","hour-and-minute":"@:common.duration.part.hour @:common.duration.part.minute","hours-and-minute":"@:common.duration.part.hours @:common.duration.part.minute","hours-and-minutes":"@:common.duration.part.hours @:common.duration.part.minutes","hour-and-minutes":"@:common.duration.part.hour @:common.duration.part.minutes","h-and-minutes":"@:common.duration.h @:common.duration.part.minutes"},empty:"vide",error:{404:{title:"Vous semblez perdu !",description:"La page demand\xE9e n'existe pas."},default:"Une erreur est survenue",deleted:{staff:"Collaborateur supprim\xE9",service:"Service supprim\xE9"},retry:"R\xE9essayer",startAfterEnd:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin"},field:{actif:{label:"Actif"},address:{label:"Adresse"},civility:{label:"Civilit\xE9",placeholder:"Saisissez une civilit\xE9"},description:{label:"Description",placeholder:"Saisissez une @.lower:common.field.description.label"},emails:{label:"Courriel|Courriels"},email:{label:"Email",placeholder:"Saisissez un @.lower:common.field.email.label"},"external-id":{label:"Id externe",placeholder:"Saisissez un id externe",helper:"L'id externe permet de faire le lien avec votre propre syst\xE8me d'information"},"external-ref":{label:"R\xE9f\xE9rence externe"},"external-calendars":{label:"Calendriers externes"},firstName:{label:"Pr\xE9nom",placeholder:"Saisissez un @.lower:common.field.firstName.label"},icals:{label:"Url du calendrier",placeholder:"Saisissez l'url du calendrier externe"},lastName:{label:"Nom",placeholder:"Saisissez un @.lower:common.field.lastName.label"},name:{label:"@:common.field.lastName.label"},number:{label:"Nombre"},"mandatory-not-filled":"Champ(s) obligatoire non renseign\xE9(s)",parent:{label:"Parent"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},phones:{label:"T\xE9l\xE9phone(s)"},fax:{label:"Fax"},photo:{label:"Photo",placeholder:"Glisser-d\xE9poser une @.lower:common.field.photo.label ou cliquer sur ajouter"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser une @.lower:common.field.illustration.label ou cliquer sur ajouter",button:"Ajouter une illustration"},company:{label:"Etablissement"},service:{label:"Service"},services:{label:"Services"},"service-group":{label:"Cat\xE9gorie"},"service-groups":{label:"Cat\xE9gories"},staff:{label:"Collaborateur"},staffs:{label:"Collaborateurs"},"staff-groups":{label:"\xC9quipes"},"staff-group":{label:"\xC9quipe"},tag:{label:"Tags",placeholder:"S\xE9lectionnez un tag"},birthday:{label:"Date de naissance"},gender:{label:"Genre",placeholder:"Saisissez un genre"},language:{notification:{label:"Langue de notification"},label:"Langue"},custom:{label:"Champ custom"}},filter:{"erase-filters":"Effacer les filtres","apply-filters":"Appliquer les filtres"},from:"Du",genders:{male:"Homme",female:"Femme",other:"Autre"},gender:{female:"Femme",male:"Homme",other:"Autre",undefined:"-"},language:{fr:"Fran\xE7ais",en:"Anglais",es:"Espagnol",jp:"Japonais",de:"Allemand",pt:"Portugais",nl:"Neerlandais",it:"Italien"},modal:{confirm:"\xCAtes-vous s\xFBr de vouloir continuer ?"},next:"Suivant",no:"Non",notifications:{email:"Courriel",all:"Courriel et SMS",none:"Pas de notification",sms:"SMS"},roles:{reader:"Lecteur",scheduler:"Planificateur",administrator:"Administrateur"},search:{"by-name":"Rechercher par @.lower:common.field.name.label","by-firstName-lastName":"Rechercher par @.lower:common.field.lastName.label, @.lower:common.field.firstName.label"},select:{"select-all":"Tout s\xE9lectionner","deselect-all":"Tout d\xE9s\xE9lectionner"},skip:"Aller au contenu",title:{warning:"Avertissement",confirm:"Confirmation ?"},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},to:"Au",unit:{minutes:"Minute(s)",hours:"Heure(s)",days:"Jour(s)",weeks:"Semaine(s)",months:"Mois"},yes:"Oui"},crm:{"contact-trad":"contact","contact-caps-trad":"contact","contacts-trad":"contacts","contacts-caps-trad":"Contacts",action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-client":"Nouveau @:crm.contact-trad","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","advanced-filter":"Filtres avanc\xE9s","erase-filters":"Effacer les filtres"},filter:{title:"Filtres avanc\xE9s",selects:{empty:"Aucune pr\xE9f\xE9rence",yes:"Oui",no:"Non"},"marketing-consent":{label:"Consentement marketing"},blocked:{label:"Bloqu\xE9"},"last-modification":{label:"Date de derni\xE8re activit\xE9"},anonymized:{label:"Afficher les contacts anonymis\xE9s"}},"client-details":{tabs:{resume:"R\xE9sum\xE9",histories:"Historique"},actions:{booking:"Prendre RDV",email:"Email",call:"Appeler","add-note":"\xC9crire une note"},resumes:{info:"Informations","client-ref":"R\xE9f\xE9rence @:crm.contact-trad",company:"Etablissement",job:"Poste","contact-info":"Coordonn\xE9es","additionnal-info":"Informations additionnelles","custom-section":"Section custom",emailConsent:{label:"Consentement email",tooltip:"Consentement email donn\xE9"},title:{mr:"M.",miss:"Mlle.",mrs:"Mme.",dr:"Dr.",me:"Me."}},histories:{empty:"Aucune activit\xE9 pour ce client",accordeon:{today:"Aujourd'hui",week:"Cette semaine",before:"Plus t\xF4t"},appointment:{new:{title:"Nouveau rendez-vous",description:"Rendez-vous le {startDate} \xE0 {startTime} {staffFullname}"},update:{title:"Rendez-vous modifi\xE9",description:""},date:"Date",company:"Etablissement",service:"Service",resource:"Resource",staff:"@:common.field.staff.label"},note:{new:{title:"Nouvelle note"}},email:{title:"Nouvel email envoy\xE9"},textMessage:{title:"SMS envoy\xE9"}}},details:{new:"Nouveau @:crm.contact-trad",title:"D\xE9tails du @:crm.contact-trad",note:{placeholder:"Saisissez la note du @:crm.contact-trad",label:"Note du @:crm.contact-trad"},addNote:{success:"Note du @:crm.contact-trad ajout\xE9e",error:"Une erreur est survenue lors de l'ajout de la note : {code}"},address:{title:"Adresse du @:crm.contact-trad",subTitle:"L\u2019adresse du contact est l\u2019adresse saisie par le @:crm.contact-trad lors de la prise de rendez-vous. Il peut s\u2019agir du lieu de rendez-vous dans le cadre de rendez-vous chez le @:crm.contact-trad"},details:{title:"Coordonn\xE9es",subTitle:"Ces coordonn\xE9es permettent \xE0 vos collaborateurs de contacter le @:crm.contact-trad"},internationalization:{title:"Internationalisation"},communication:{title:"Communication",subTitle:"Cette section vous permet de d\xE9finir le moyen de communication pr\xE9f\xE9rentiel du @:crm.contact-trad pour la r\xE9ception des notifications et des rappels."},"save-success":"Les informations du @:crm.contact-trad ont bien \xE9t\xE9 enregistr\xE9es","save-error":"Erreur lors de l'enregistrement du contact",fields:{address:{label:"Adresse",placeholder:"10 rue de la paix"},address2:{label:"Compl\xE9ment d'adresse",placeholder:"Appartement, immeuble, \xE9tage"},"postal-code":{label:"Code postal",placeholder:"75000"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat",placeholder:"\xC9tat"},country:{label:"Pays"},ref:{label:"R\xE9f\xE9rence @:crm.contact-trad",placeholder:"Saisissez une r\xE9f\xE9rence @:crm.contact-trad"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du @:crm.contact-trad",placeholder:"@:common.field.illustration.placeholder",button:"@:common.field.illustration.button"},"marketing-consent":{label:"Consentement pour les communications marketing"},job:{label:"Poste",placeholder:"Saisissez un @.lower:crm.details.fields.job.label"},company:{label:"\xC9tablissement",placeholder:"Saisissez un \xE9tablissement"},email:{label:"Email",placeholder:"Saisissez un email"},phone:{label:"T\xE9l\xE9phone"},fax:{label:"Fax",placeholder:"Saisissez un num\xE9ro de fax"},timeZone:{label:"Fuseau horaire"},notification:{label:"Notifications"},reminder:{label:"Rappels"},commentary:{label:"Commentaire",placeholder:"Saisissez un commentaire"},creation:{label:"Date de cr\xE9ation"}}},menu:{burger:{"aria-label":"Menu"},mobile:"@:crm.contacts-caps-trad",clients:"Tous les @:crm.contacts-trad","client-details":"Gestion du @:crm.contact-trad"},list:{delete:{title:"Suppression de @:crm.contact-trad",confirm:"@:common.action.delete",descriptionN:"{number} @:crm.contacts-trad vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes @:crm.contacts-trad ({number})",subtitle:"Retrouvez l'ensemble des informations des contacts de votre \xE9tablissement.",search:{placeholder:"Recherchez par nom, pr\xE9nom, t\xE9l\xE9phone, et email",empty:"Aucun r\xE9sultat"},rightsTable:{firstName:"Pr\xE9nom",lastName:"Nom",phone:"T\xE9l\xE9phone",email:"Email",tags:"Tags"}},"message-modal":{title:"Aper\xE7u de l'email"},title:{main:"@:crm.contacts-caps-trad"}},"event-booking":{new:"Nouveau rendez-vous",reschedule:"Modifier le rendez-vous",subject:"Sujet",date:"Horaires",duration:"Dur\xE9e","duration-error":{"over-1-day":"La dur\xE9e ne peut pas \xEAtre de 1 jour ou plus","negative-null":"La date de fin ne peut pas \xEAtre avant la date de d\xE9but","over-days":"Les dates de d\xE9but et fin doivent \xEAtre le m\xEAme jour"},timeZone:"Fuseau horaire",allDay:"Journ\xE9e enti\xE8re",recurrent:{once:"Une fois"},company:"\xC9tablissement",searchCompany:"Rechercher un \xE9tablissement",service:"@:common.field.service.label",searchService:"Rechercher un service",staff:"@:common.field.staff.label",searchStaff:"Rechercher un collaborateur",contact:{title:"@:crm.contact-caps-trad",save:"@:common.action.save",search:"Rechercher un @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createTitle:"Ajouter un @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contacts-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone",placeholder:"@:common.field.phone.placeholder"}},note:{label:"Note du rendez-vous",placeholder:"Saisissez une note de rendez-vous"},save:"@:common.action.save",back:"@:common.action.back,",close:"@:common.action.close",event:{"panel-title":"Cr\xE9er un \xE9v\xE9nement",title:{label:"\xC9v\xE9nement",placeholder:"Saisissez le nom de votre \xE9v\xE9nement",helper:"Il s\u2019agit du nom de l\u2019\xE9v\xE9nement que vous souhaitez cr\xE9er."},capacity:{label:"Capacit\xE9",placeholder:"Saisissez une capacit\xE9"},description:{label:"Description",placeholder:"Saisissez la description de l\u2019\xE9v\xE9nement"}}},"event-booking-widget":{title:{panel:"Nouveau rendez-vous",company:"Pour quel \xE9tablissement souhaitez-vous prendre rendez-vous ?",service:"Quel est le besoin du @:crm.contact-trad ?",staff:"Avec quel collaborateur ?",date:"Quel cr\xE9neau vous convient le mieux ?","contact-qualif":"S\u2019agit-il d\u2019un nouveau client ?","contact-new":"Quelles sont les informations personnelles du client ? ","contact-search":"Quel client souhaite prendre rendez-vous ?","form-field":"Une derni\xE8re petite chose ...",recap:"Souhaitez-vous confirmer le rendez-vous ?",confirmation:"",error:""},date:{"search-more":"Voir plus de disponibilit\xE9s","search-more-aria-label":"Voir plus de disponibilit\xE9s",empty:"Aucune disponibilit\xE9 n'a \xE9t\xE9 trouv\xE9e entre les dates {start} et {end} "},contact:{save:"Ajouter le @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contacts-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"@:common.field.phone.label",placeholder:"@:common.field.phone.placeholder"}},"form-field":{validate:"Suivant"},recap:{date:"{start} \xE0 {end}",validate:"Confirmer le rendez-vous"},confirmation:{title:"Le rendez-vous est confirm\xE9 !",description:"Le rendez-vous a bien \xE9t\xE9 cr\xE9\xE9. Vous pouvez le retrouver d\xE8s \xE0 pr\xE9sent dans votre calendrier."},error:{messages:{back:{staff:"Retour \xE0 la selection d'un collaborateur",date:"Retour \xE0 la selection de cr\xE9neau",contact:"Retour \xE0 la selection de @:crm.contact-trad"}},unknown:{title:"Une erreur est survenue",description:"Veuillez contacter le support pour plus de precisions."},"staff-not-found":{title:"Collaborateur inconnu",description:"Le collaborateur s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.staff"},"date-not-found":{title:"Cr\xE9neau non disponible",description:"Le cr\xE9neau s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-daily":{title:"Limite atteinte",description:"La limite quotidienne de rendez-vous pris pour ce client est d\xE9pass\xE9e.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-weekly":{title:"Limite atteinte",description:"La limite hebdomadaire de rendez-vous pris pour ce client est d\xE9pass\xE9e.",footerButton:"@:event-booking-widget.error.messages.back.date"},"contact-blocked":{title:"@:crm.contact-caps-trad bloqu\xE9",description:"La prise de rendez-vous est bloqu\xE9e pour ce @:crm.contact-trad.",footerButton:"@:event-booking-widget.error.messages.back.contact"}}},form:{action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-form":"Nouveau formulaire","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e",modify:"@:common.action.modify le formulaire"},details:{advanced:{title:"Options avanc\xE9es"},content:"Contenu du formulaire",description:{label:"Description",placeholder:"Saisissez la description du formulaire"},emailNotification:{title:"Destinataires des r\xE9ponses",placeholder:"Saisissez une adresse email"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser l\u2019illustration ou cliquer pour l'ajouter","default-name":"illustration du formulaire",button:"Ajouter une illustration",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le cot\xE9 droit du formulaire."},name:{label:"Nom du formulaire",placeholder:"Saisissez le nom du formulaire"},personalisation:{title:"Personnalisation"},"save-error":"\xC9chec lors de l'enregistrement du formulaire","save-success":"Les configurations du formulaire ont bien \xE9t\xE9 enregistr\xE9es",shared:{title:"Partage",forward:"Acc\xE9der au formulaire",copy:"Copier le lien",company:"S\xE9lectionnez un \xE9tablissement",copied:"Lien copi\xE9 dans le presse-papier",qrcode:"QR Code"},submitMessage:{label:"Message de remerciement",placeholder:"Saisissez le message de remerciement \xE0 afficher au client"},tabs:{general:{title:"G\xE9n\xE9ral",ariaLabel:"G\xE9n\xE9ral"},builder:{title:"Builder",ariaLabel:"Builder"}},title:"D\xE9tail du formulaire"},generator:{"drop-here":"D\xE9placer un \xE9l\xE9ment ici",error:{label:"Le champ @:form.generator.fields.common.label.label est obligatoire",modal:"Merci de remplir correctement la configuration du champ"},fields:{tab:{fields:"Champs",statics:"Statiques"},default:{values:{1:"Premier choix",2:"Second choix",3:"Troisi\xE8me choix"}},attributes:{title:"Attributs","external-id":{label:"Cl\xE9 externe",placeholder:"Saisissez une @:form.generator.fields.attributes.external-id.label"},required:"Obligatoire",visible:"Visible"},common:{title:"Propri\xE9t\xE9s",id:"ID",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.common.label.label"},helper:{label:"Message d'aide",placeholder:"Saisissez un @:form.generator.fields.common.helper.label"},placeholder:{label:"Placeholder",placeholder:"Saisissez un @:form.generator.fields.common.placeholder.label",helper:"Le placeholder est le message par d\xE9faut affich\xE9 dans le contenu du champ"}},values:{other:"Permettre \xE0 l'utilisateur de saisir une valeur",multiple:"Permettre \xE0 l'utilisateur de s\xE9lectionner plusieurs valeurs",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.values.label.label"},value:{label:"Valeur",placeholder:"Saisissez une @:form.generator.fields.values.value.label"},title:"Donn\xE9es",add:"Ajouter une valeur"},format:{title:"Validation",type:"Caract\xE8res accept\xE9s",min:{label:"Nombre min. de caract\xE8res",placeholder:"Saisissez un nombre"},max:{label:"Nombre max. de caract\xE8res",placeholder:"Saisissez un nombre"},regex:{label:"Regex",placeholder:"Saisissez une expression r\xE9guli\xE8re"},types:{none:"Tous les caract\xE8res",regex:"Regex",numeric:"Num\xE9rique",alphanumeric:"Alphanum\xE9rique"}}},properties:{input:{label:"Champ texte",description:"Une ligne de texte simple"},textarea:{label:"Textarea",description:"Une ou plusieurs lignes de texte"},checkbox:{label:"Groupe de checkbox",description:"Une ou plusieurs checkbox"},radio:{label:"Groupe de bouton radio",description:"Plusieurs boutons radios"},select:{label:"Liste de s\xE9lection",description:"S\xE9lection dans une liste"},date:{label:"Date",description:"Accepte une date"},file:{label:"Envoi de fichier",description:"T\xE9l\xE9chargement de fichier"},number:{label:"Champ nombre",description:"Uniquement des nombres"},url:{label:"Site web",description:"Accepte une url internet"},address:{label:"Adresse",description:"Adresse postal",subItems:{"crm-address-firstline":{label:"Adresse"},"crm-address-secondline":{label:"Ligne d'adresse secondaire"},"crm-address-city":{label:"Ville"},"crm-address-postalcode":{label:"Code postal"},"crm-address-state":{label:"Etat/Province"},"crm-address-country":{label:"Pays"}}},email:{label:"Champ email",description:"Uniquement des emails"},phone:{label:"Champ t\xE9l\xE9phone",description:"Accepte un num\xE9ro de t\xE9l\xE9phone"},price:{label:"Prix",description:"Uniquement des nombres"},name:{label:"Informations personnelles",description:"Pr\xE9nom et nom",subItems:{"crm-first-name":{label:"Pr\xE9nom"},"crm-last-name":{label:"Nom"}}},rating:{label:"Notation",description:"\xC9chelle de notation"},title:{label:"Titre 1",description:"HTML <h1> tag"},title2:{label:"Titre 2",description:"HTML <h2> tag"},title3:{label:"Titre 3",description:"HTML <h3> tag"},divider:{label:"S\xE9parateur",description:"HTML <hr> tag"},modal:{title:"Propri\xE9t\xE9s du champ"}}},menu:{burger:{"aria-label":"Menu"},mobile:"Formulaires",forms:"Tous les Formulaires","form-details":"Gestion du formulaire","form-results":"Toutes les r\xE9ponses"},list:{delete:{title:"Suppression de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} formulaires vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes formulaires ({number})",search:{placeholder:"Recherchez par nom, titre, et email",empty:"Aucun r\xE9sultat"},table:{name:"Nom",title:"Titre",email:"Email"}},result:{details:{date:"R\xE9ponse du {date} \xE0 {hours}",delete:{confirm:"@:common.action.confirm",description:"Souhaitez-vous r\xE9ellement supprimer cette r\xE9ponse ?",error:"\xC9chec lors de la suppression de la r\xE9ponse",success:"R\xE9ponse supprim\xE9e",title:"@:common.action.delete"},file:"Fichier",optional:"Optionnel"},status:{action:"Changer le statut",error:"\xC9chec lors du changement de statut",field:"Statut",success:"Le changement de statut a bien \xE9t\xE9 effectu\xE9",title:"G\xE9rer le statut",value:{neutral:"Neutre",in_progress:"En cours",finished:"Finalis\xE9",reopening:"R\xE9ouverture"}},list:{title:"@:form.menu.form-results : {title}",search:{placeholder:"Rechercher par email"},delete:{title:"Suppression du r\xE9sultat de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} r\xE9sultats vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"Le r\xE9sultat de {email} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},table:{date:"Date",email:"Email",status:"@:form.result.status.field"}}},submit:"Soumettre le formulaire",title:{main:"Formulaires"}},queue:{action:{cancel:"@:common.action.cancel",delete:"@:common.action.delete",duplicate:"@:common.action.duplicate","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","new-queue":"Nouvelle file d'attente",save:"@:common.action.save"},contact:{"contact-us":"Contactez-nous","call-us":"Appelez-nous","send-message":"Envoyer un message"},form:{firstname:{title:"Votre pr\xE9nom",placeholder:"Saisissez @.lower:queue.form.firstname.title"},lastname:{title:"Votre nom",placeholder:"Saisissez @.lower:queue.form.lastname.title"},phone:{title:"Votre num\xE9ro de t\xE9l\xE9phone portable",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},submit:"Ajoutez moi \xE0 la file d'attente"},"queue-details":{company:{label:"\xC9tablissement",placeholder:"S\xE9lectionner un \xE9tablissement"},form:{helper:"Vous pouvez associer un formulaire \xE0 votre file d\u2019attente afin d\u2019ajouter de nouveaux champs \xE0 la page d\u2019inscription de votre file d\u2019attente.",label:"Champs personnalis\xE9s",placeholder:"S\xE9lectionner un formulaire"},"message-customization":{title:"Personnalisation des messages",description:"<p>Dans les champs de personnalisation des messages, vous pouvez utiliser les textes dynamiques suivants :</p><p>- {firstname} sera remplac\xE9 automatiquement par le nom du client.</p><p>- {number_in_line} sera remplac\xE9 par le num\xE9ro d'enregistrement du client dans la file d'attente.</p>"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de la file d\u2019attente"},"public-interface":{action:{access:"Acc\xE9der \xE0 l\u2019interface publique",paste:"Copier le lien"},customization:"Personnalisation de l\u2019interface publique","qr-code":"QR Code :",title:"Interface publique"},"save-error":"\xC9chec lors de l'enregistrement de la file d'attente","save-success":"Les configurations de la file d'attente ont bien \xE9t\xE9 enregistr\xE9es",title:"Configuration g\xE9n\xE9rale","welcome-message":{default:`<b>Bienvenue,</b>
34
- Veuillez vous enregistrer pour vous inscrire dans la file d'attente.`,placeholder:"Saisissez un message de bienvenue",label:"Message d\u2019accueil"},"thanks-message":{default:`<b>Merci {'{'}firstname{'}'},</b>
35
- Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placeholder:"Saisissez un message de remerciement",label:"Message de remerciement"}},"queue-monitoring":{title:"@:queue.menu.queue-monitoring",waiting_people:"En attente : {count} personnes",finish_people:"Termin\xE9 : {count} personnes",medium_waiting_time:"Attente moyenne : {waiting_time}","called-clients":"Clients appel\xE9s ",button:{absent:"Non pr\xE9sent",finish:"Termin\xE9"},search:{placeholder:"Rechercher par nom"},table:{number:"Num\xE9ro",fullname:"Nom",email:"Email",phone:"T\xE9l\xE9phone",waitingTime:"Temps d'attente"}},queues:{delete:{title:"Suppression de la file d'attente",confirm:"@:common.action.delete",descriptionN:"{number} files d'attente vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"},search:{empty:"Aucune file d'attente",placeholder:"@:common.search.by-name"},table:{name:"@:common.field.name.label",author:"@:common.field.email.label"},title:"Files d'attente ({number})"},location:{itinerary:"Itin\xE9raire"},menu:{burger:{"aria-label":"Afficher le menu"},"queue-monitoring":"Suivi","queue-settings":"Configuration g\xE9n\xE9rale","queue-new":"Nouvelle file d'attente",queues:"Toutes les files d'attente","close-aria-label":"Fermer le menu des files d'attente"},powered:"Propuls\xE9 par Agendize",title:"File d'attente",waiting:{people:"{nb} personne(s)","waiting-time":"Environ {time} minute(s) d'attente","number-in-queue":"Vous \xEAtes le num\xE9ro {nb} dans la file d'attente",recap:"Il y a {nb} personne(s) devant vous. Votre temps d\u2019attente est estim\xE9 \xE0 {time} minute(s)"},"working-hours":{"open-today":"Ouvert aujourd'hui",closed:"Ferm\xE9",title:"Les horaires"}},reporting:{filter:{title:"Filtres",description:"Les filtres vous permettent d\u2019acc\xE9der facilement \xE0 la donn\xE9e qui vous int\xE9resse en fonction de la p\xE9riode, des \xE9tablissements et des collaborateurs.",period:"P\xE9riode",companies:"\xC9tablissements",users:"Collaborateurs"}},report:{download:{filename:"@:agendize.notification.report.download.filename",toaster:{error:"@:agendize.notification.report.download.toaster.error",success:"@:agendize.notification.report.download.toaster.success"}},generator:{toaster:{error:"Une erreur est survenue lors de l'extraction des donn\xE9es.",preparation:"L\u2019extraction est en cours de pr\xE9paration..."}},genericExtract:{button:{extractData:"Exporter les donn\xE9es",showPreviousExtract:"Voir les exports pr\xE9c\xE9dents"},data:{title:"Donn\xE9es de l'export",company:{title:"Entreprise : ",fields:{name:"Nom de l'\xE9tablissement",address:"Adresse de l'\xE9tablissement",email:"Email de l'\xE9tablissement",phone:"T\xE9l\xE9phone de l'\xE9tablissement",latitude:"Latitude de l'\xE9tablissement",longitude:"Longitude de l'\xE9tablissement",externalId:"ID externe de l'\xE9tablissement",id:"ID technique de l'\xE9tablissement"}},service:{title:"Service : ",fields:{name:"Nom du service",duration:"Dur\xE9e du service",capacity:"Capacit\xE9 du service",price:"Prix du service",categoryLevel1Name:"Nom de la cat\xE9gorie de niv. 1",categoryLevel2Name:"Nom de la cat\xE9gorie de niv. 2",externalId:"ID externe du service",id:"ID technique du service",categoryLevel1ExternalId:"ID externe de la cat\xE9gorie de niv.1",categoryLevel1Id:"ID technique de la cat\xE9gorie de niv. 1",categoryLevel2ExternalId:"ID externe de la cat\xE9gorie de niv.2",categoryLevel2Id:"ID technique de la cat\xE9gorie de niv. 2"}},staff:{title:"Collaborateur :",fields:{firstName:"Pr\xE9nom du collaborateur",lastName:"Nom du collaborateur",email:"Email du collaborateur",phone:"T\xE9l\xE9phone du collaborateur",groupName:"Nom de l'\xE9quipe",externalId:"ID externe du collaborateur",id:"ID technique du collaborateur",groupExternalId:"ID externe de l'\xE9quipe",groupId:"ID technique de l'\xE9quipe"}},appointment:{title:"Rendez-vous :",fields:{start:"D\xE9but du rendez-vous",end:"Fin du rendez-vous",location:"Emplacement du rendez-vous",status:"Statut du rendez-vous",notes:"Note du rendez-vous",customFields:"Informations compl\xE9mentaires du rendez-vous",id:"ID technique du rendez-vous"}},client:{title:"Contact :",fields:{firstName:"Pr\xE9nom du contact",lastName:"Nom du contact",email:"Email du contact",phone:"T\xE9l\xE9phone du contact",id:"ID technique du contact"}}},filter:{title:"Filtres",date12MonthMax:"La p\xE9riode d'export est limit\xE9e \xE0 12 mois",dateEndBeforeStart:"La date de d\xE9but doit \xEAtre inf\xE9rieure \xE0 la date de fin",companies:"Etablissements",export:"Exporter les donn\xE9es",allCompanies:"Tous les \xE9tablissements"}},list:{title:"Visualiser mes statistiques",subTitle:"Analyser les performances de vos \xE9tablissements sur une p\xE9riode donn\xE9e.",filter:"Filtrer",loading:"Chargement de mes rapports",account:"S\xE9lectionner le compte \xE0 afficher",error:"Une erreur a eu lieu lors du chargement de mes rapports",tabs:{genericExtract:"Extraction g\xE9n\xE9rique"}}},search:{chips:{all:"Tous",all2:"Toutes",company:"Dans nos locaux"},recents:"Recherches r\xE9centes",loading:"Loading",company:{desc:"Rechercher puis s\xE9lectionner un \xE9tablissement",placeholder:"Rechercher par nom, adresse","image-alt":"Image de l'\xE9tablissement","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'\xE9tablissement"},service:{desc:"Rechercher puis s\xE9lectionner un service parmi ceux disponibles dans votre \xE9tablissement.",placeholder:"Rechercher par nom",duration:"{duration} minutes","image-alt":"Image du service","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le service"},staff:{desc:"Rechercher puis s\xE9lectionner un collaborateur parmi ceux affect\xE9s \xE0 votre \xE9tablissement.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du collaborateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le collaborateur"},contact:{desc:"Rechercher puis s\xE9lectionner un @:crm.contact-trad parmi la liste des @:crm.contacts-trad de votre \xE9tablissement.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du @:crm.contact-trad","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le @:crm.contact-trad",add:{tooltip:"Ajouter un \xE9l\xE9ment \xE0 la liste"}},user:{desc:"Rechercher puis s\xE9lectionner un utilisateur parmi ceux affect\xE9s \xE0 votre \xE9tablissement.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'utilisateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'utilisateur"},noResults:{newTitle:"Aucun r\xE9sultat ne correspond \xE0 votre recherche",title:"Aucun r\xE9sultat trouv\xE9",desc:"Nous n'avons trouv\xE9 aucun r\xE9sultat correspondant \xE0 votre recherche."},object:{delete:{error:"La saisie n\u2019est pas valide",button:"Supprimer"},add:{button:"S\xE9lectionner"},button:"Ajouter"}},settings:{action:{cancel:"@:common.action.cancel",back:"@:common.action.back",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-company":"Nouvel \xE9tablissement","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e"},calendar:{title:"Param\xE9trage",subTitle:"Param\xE9trez et personnalisez l\u2019interface de votre calendrier.",back:"@:common.action.back",save:"@:common.action.save",displaySettings:{title:"Options d\u2019affichage",subTitle:"Les options d\u2019affichage vous permettent de personnaliser votre calendrier en fonction de vos besoins et de votre activit\xE9.",days:{label:"Jours de la semaine",helper:"Vous pouvez s\xE9lectionner les jours de la semaine \xE0 afficher dans votre calendrier."},limit:{min:"Borne de d\xE9but",max:"Borne de fin",helper:"Le calendrier affichera uniquement les rendez-vous entre ces deux bornes."},color:{label:"Couleur du cr\xE9neau",helper:"Ce param\xE8tre sera appliqu\xE9 uniquement lorsque le calendrier d\u2019un seul collaborateur sera affich\xE9.",values:{staff:"Couleur du collaborateur",service:"Couleur du service","service-group":"Couleur du groupe de service"}},name:{label:"Titre du cr\xE9neau",helper:"Ce param\xE8tre vous permet de modifier le titre du cr\xE9neau affich\xE9 dans le calendrier. Il sera appliqu\xE9 uniquement sur les rendez-vous client simple.",values:{service:"Nom du service",contact:"Pr\xE9nom et nom du contact"}},minHeight:{label:"Taille minimum de rendez-vous",helper:"Ce param\xE8tre vous permet d'adapter la taille du calendrier en fonction de la taille des rendez-vous en minutes"},buffer:{label:"Afficher les temps de pr\xE9paration et de suivi des rendez-vous dans le calendrier"}},action:{save:{success:"Le param\xE8trage a bien \xE9t\xE9 enregistr\xE9",error:"Echec lors de l'enregistrement du param\xE8trage"}}},common:{day:{monday:"Lundi",tuesday:"Mardi",wednesday:"Mercredi",thursday:"Jeudi",friday:"Vendredi",saturday:"Samedi",sunday:"Dimanche",closed:"Ferm\xE9"},book:"Prendre rendez-vous",preview:"Pr\xE9visualisation",duration:"{minutes} minute | {minutes} minutes",error:{"max-user":"Le nombre maximum d'utilisateur est atteint. Merci de vous rapprocher de votre support pour augmenter le seuil","save-error":"Une erreur a eu lieu lors de la sauvegarde"},number:{2:"deux",3:"trois",4:"quatre",5:"cinq",6:"six",7:"sept",8:"huit",9:"neuf",10:"dix"}},companies:{title:"Mon organisation ({number})",table:{name:"@:common.field.name.label",address:"@:common.field.address.label",email:"@:common.field.email.label"},search:{empty:"Aucun \xE9tablissement",placeholder:"Rechercher par nom, code postal, email"},delete:{title:"Suppression d'\xE9tablissements",confirm:"@:common.action.delete",descriptionN:"{number} \xE9tablissements vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"}},"companies-cards":{create:"Ajouter un \xE9tablissement",duplicate:"Dupliquer un \xE9tablissement",delete:"Supprimer les \xE9tablissements",title:"G\xE9rer mon organisation",subTitle:"Une organisation peut comprendre plusieurs \xE9tablissements, \xE9quipes et collaborateurs. Le param\xE9trage de votre organisation vous permet d\u2019uniformiser votre r\xE9seau.",tab:{companies:{title:"Mes \xE9tablissements"},services:{title:"Mes services"},staffs:{title:"Mes collaborateurs"},plannings:{title:"Mes plannings"},rights:{title:"Droits d'acc\xE8s"}}},"company-details":{tabs:{general:"Informations g\xE9n\xE9rales",hours:"Horaires d'ouverture",advanced:"Avanc\xE9s"},new:{title:"Ajouter un \xE9tablissement",subTitle:"Un \xE9tablissement est un lieu de travail pour vos collaborateurs ainsi qu\u2019un point d\u2019accueil pour vos clients."},title:"Informations g\xE9n\xE9rales","save-success":"Les informations de l'\xE9tablissement ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9tablissement",name:{label:"@:common.field.name.label",placeholder:"Saisissez un nom d'\xE9tablissement"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre \xE9tablissement","default-name":"Image de l'\xE9tablissement",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre \xE9tablissement",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre \xE9tablissement sur le mini-site.",button:"@:common.field.illustration.button"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},address:{title:"Adresse de votre \xE9tablissement",subtitle:"L\u2019adresse de votre \xE9tablissement doit \xEAtre l\u2019adresse \xE0 laquelle vous serez en capacit\xE9 de recevoir vos @:crm.contacts-trad suite \xE0 une prise de rendez-vous.",label:"@:common.field.address.label",placeholder:"1 place g\xE9n\xE9ral De Gaulle"},address2:{label:"Compl\xE9ment d\u2019adresse"},zipcode:{label:"Code postal",placeholder:"75008"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat"},country:{label:"Pays"},contact:{title:"Coordonn\xE9es",subtitle:"Ces coordonn\xE9es permettront \xE0 vos @:crm.contacts-trad de vous contacter."},email:{label:"@:common.field.email.label",placeholder:"Saisissez l\u2019email de votre \xE9tablissement"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez le num\xE9ro t\xE9l\xE9phone de votre \xE9tablissement"},web:{title:"Site internet et r\xE9seaux sociaux",subtitle:"Ces informations permettent de mettre en avant votre site internet et vos r\xE9seaux sociaux dans les diff\xE9rents supports \xE0 destination de vos @:crm.contacts-trad"},website:{label:"Site internet",placeholder:"Saisissez l\u2019url d\u2019un site internet de l'\xE9tablissement"},facebook:{label:"Facebook"},instagram:{label:"Instagram"},twitter:{label:"Twitter"},linkedin:{label:"LinkedIn"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},optional:"Optionnel","external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},timeZone:{title:"Fuseau horaire",label:"Fuseau horaire principal",placeholder:"S\xE9lectionnez un fuseau horaire",helper:"Le fuseau horaire permet de d\xE9finir sur quel fuseau horaire se trouve votre \xE9tablissement. Chacun des collaborateurs cr\xE9\xE9s dans votre \xE9tablissement auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019\xE9tablissement",open:"Ouverture","all-weeks":"Toutes les semaines",edit:"Modifier les horaires","apply-to-staff":"Appliquer les horaires aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement remplacer les horaires des collaborateurs ?"},unavailable:{title:"Indisponibilit\xE9s","apply-to-staff":"Appliquer les indisponibilit\xE9s aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement ajouter les indisponibilit\xE9s des collaborateurs ?"}},"company-home":{previous:"Retour \xE0 la liste",update:"@:common.action.modify",tab:{home:{title:"Mon \xE9tablissement"},staffGroups:{title:"Les \xE9quipes"},staffs:{title:"Les collaborateurs"},serviceGroups:{title:"Les cat\xE9gories"},services:{title:"Les services"}},performance:{title:"Vos performances",description:"Performances sur les {n} derniers jours",appointment:{made:"Rendez-vous pris",cancel:"Rendez-vous annul\xE9s",finish:"Rendez-vous termin\xE9s"}},widget:{title:"Faites-vous conna\xEEtre",link:{title:"Partager le lien vers le widget",copy:"Le lien est copi\xE9"},QRCode:"Partager votre qrcode",integration:"Voir les autres int\xE9grations"},staff:{title:"Ajouter des collaborateurs",description:"Ajoutez des collaborateurs \xE0 votre \xE9tablissement et proposez de nouvelles disponibilit\xE9s \xE0 vos clients.",add:"Ajouter un collaborateur"},service:{title:"Ajouter des services",description:"Ajoutez des services \xE0 votre \xE9tablissement et proposez des options de r\xE9servations suppl\xE9mentaires \xE0 vos clients.",add:"Ajouter un service"}},"custom-hours":{period:{date:"Du {start} au {end}","all-week":"Toutes les semaines","custom-week":"Une semaine sur {occurrence}"},edit:"Modifier la p\xE9riode",add:"Ajouter une p\xE9riode sp\xE9cifique",save:"@:common.action.save",validate:"@:common.action.validate",name:{title:"Nom de la p\xE9riode",placeholder:"Saisissez le nom de la p\xE9riode"},terminal:{title:"Bornes de la p\xE9riode"},"week-occurrence":{"start-text":"R\xE9p\xE9ter tou(te)s les","end-text":"semaine(s)"},"day-tooltip":"Vous pouvez s\xE9lectionner les jours de la semaine faisant l\u2019objet d\u2019horaires sp\xE9cifiques. Un jour non s\xE9lectionn\xE9 prendra les horaires par d\xE9faut du collaborateur."},"integration-modal":{title:"Int\xE9grer votre widget",body:"Vous pouvez int\xE9grer le widget de l\u2019\xE9tablissement \xE0 votre site internet via notre int\xE9gration iframe ou simplement partager le lien dans une publication sur vos r\xE9seaux.",link:"Lien",iframe:"Int\xE9gration iframe"},menu:{burger:{"aria-label":"Afficher le menu"},mobile:"Param\xE8tres",companies:"Tous les \xE9tablissement","company-details":"Informations g\xE9n\xE9rales","company-new":"Nouvel \xE9tablissement",services:"@:common.field.services.label","services-groups":"@:common.field.service-groups.label","staffs-groups":"@:common.field.staff-groups.label",staffs:"@:common.field.staffs.label"},plannings:{title:"G\xE9rer les mod\xE8les de planning",subTitle:"Un mod\xE8le de planning permet de d\xE9finir des plannings de r\xE9f\xE9rence pouvant \xEAtre affect\xE9s sur une p\xE9riode donn\xE9e \xE0 des collaborateurs",create:"Ajouter un planning",search:{placeholder:"Rechercher par nom"},delete:{title:"Supprimer un planning",description:"\xCAtes-vous s\xFBr de vouloir supprimer ce planning ? Cela aura pour effet de rendre indisponible l\u2019ensemble des collaborateurs affect\xE9s \xE0 ce planning.",confirm:"Supprimer",success:"Le planning a bien \xE9t\xE9 supprim\xE9."},empty:"Aucun planning"},"planning-details":{new:"Nouveau planning",subTitle:"Un planning correspond \xE0 un mod\xE8le d'horaire de travail \xE0 appliquer \xE0 un ou plusieurs collaborateurs pour un \xE9tablissement donn\xE9.",section:{general:{title:"Informations g\xE9n\xE9rales",subTitle:"D\xE9finissez les informations de base de votre planning."},workingHours:{title:"Horaires de travail",subTitle:"Les horaires de travail d\xE9finis ci-dessous s'appliqueront pour l'ensemble des collaborateurs ayant ce planning d'affect\xE9."}},name:{label:"Nom du planning",placeholder:"Saisissez un nom de planning"},addWeek:"Ajouter une semaine",deleteWeek:"Supprimer la semaine",back:"Retour \xE0 la liste",error:{startAfterEnd:"L'heure de d\xE9but doit \xEAtre inf\xE9rieure \xE0 l'heure de fin",noHour:"Un horaire n'a pas \xE9t\xE9 renseign\xE9",overlap:"Les horaires de ce jour se chevauchent",general:"Les horaires ne sont pas conformes"},"save-success":"Les informations du planning ont bien \xE9t\xE9 enregistr\xE9es.",days:{closed:"Ferm\xE9"}},profile:{title:"G\xE9rer mon profil",personal_data:"Mes donn\xE9es personnelles",preferences:"Mes pr\xE9f\xE9rences",cancel:"@:common.action.cancel",save:"@:common.action.save",error:{100:"Le mot de passe ne correspond pas",101:"Votre compte est v\xE9rouill\xE9",102:"Le mot de passe ne r\xE9pond pas aux crit\xE8res de validation d\u2019un mot de passe"},password:{title:"Modifier mon mot de passe",change:"@:common.action.modify",current:"Mot de passe actuel",new:"Nouveau mot de passe",confirm:"Confirmer mot de passe",notmatch:"Les mots de passe ne correspondent pas!","change-success":"Votre mot de passe a bien \xE9t\xE9 modifi\xE9","change-error":"Votre mot de passe n'a p\xFB \xEAtre modifi\xE9",label:"Mot de passe",reset:"Modifier"},photo:{label:"Photo","default-name":"Image de profil"},firstname:"Pr\xE9nom",lastname:"Nom",contact:{title:"Coordonn\xE9es",description:"Il s'agit des coordonn\xE9es sur lesquelles vous pourrez \xEAtre contact\xE9"},email:"Email",security:{title:"S\xE9curit\xE9",description:"Vous pouvez modifier votre mot de passe"},"change-success":"Votre profil a bien \xE9t\xE9 modifi\xE9","change-error":"Votre profil n'a p\xFB \xEAtre modifi\xE9",default_account:"Organisation par d\xE9faut",language:{title:"Langue et r\xE9gion",description:"G\xE9rez la langue et le fuseau horaire utilis\xE9s pour personnaliser votre exp\xE9rience Agendize.",label:"Langue"},timezone:"Zone horaire"},"qr-code-modal":{title:"Partager votre widget",body:"Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\u2019expirera pas dans le temps sauf si vous supprimez l\u2019\xE9tablissement."},rights:{table:{placeholder:"Rechercher par nom ou email",column:{users:"Utilisateurs",access:"Acc\xE8s"}}},"rights-details":{title:"Droits d'acc\xE8s",subTitle:"G\xE9rer les r\xF4les de l'utilisateur sur chacun des \xE9tablissements de votre organisation.","save-success":"Les modifications ont bien \xE9t\xE9 enregistr\xE9es.","save-error":"\xC9chec lors de l'enregistrement des droits.",table:{placeholder:"Rechercher un \xE9tablissement par nom",empty:"Aucun \xE9tablissement",column:{company:"\xC9tablissement",none:"@:common.content.none",reader:"@:common.roles.reader",scheduler:"@:common.roles.scheduler",administrator:"@:common.roles.administrator"}}},services:{title:"@:common.field.services.label",new:"Nouveau service",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce service ? | Souhaitez-vous r\xE9ellement supprimer ces {n} services ?",search:{placeholder:"@:common.search.by-name"},group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",groups:"@:common.field.service-groups.label",enabled:"@:common.field.actif.label"},no:"Aucun service",deleted:"Service supprim\xE9 | Services supprim\xE9s"},"services-cards":{add:"Ajouter un service",confirm:"@:common.action.confirm",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",tag:{multiple:"Multiple",address:"Pr\xE9sentiel",visio:"@:settings.service-details.locations.visio",phone:"@:settings.service-details.locations.phone",custom:"Personnalis\xE9",disabled:"D\xE9sactiv\xE9"}},"servicesGroups-cards":{add:"Ajouter une cat\xE9gorie",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",empty:"Aucune cat\xE9gorie",services:"{nb} service|{nb} services",search:{placeholder:"@:common.search.by-name"},filter:{all:"Toutes les cat\xE9gories","lvl-1":"Cat\xE9gories de niveau 1","lvl-2":"Cat\xE9gories de niveau 2"}},"service-details":{actif:{label:"@:common.field.actif.label",placeholder:"Rendre actif ou inactif le service",helper:"D\xE9sactive le service pour qu'il ne soit plus disponible sur le widget de prise de rendez-vous"},action:{back:"@:common.action.back-to-list"},buffer:{title:"Temps de pr\xE9paration et de suivi de rendez-vous",subtitle:"Les temps de pr\xE9paration et de suivi de rendez-vous vous permettent de r\xE9server un laps de temps avant et apr\xE8s le rendez-vous pour ce service.",before:{label:"Temps de pr\xE9paration",placeholder:"S\xE9lectionnez le temps de pr\xE9paration du rendez-vous"},after:{label:"Temps de suivi",placeholder:"S\xE9lectionnez le temps de suivi du rendez-vous"}},category:{title:"Cat\xE9gorie du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Cat\xE9gorie",placeholder:"S\xE9lectionnez une cat\xE9gorie"},clone:"Duplication : {name}",color:{label:"Couleur du service",placeholder:"S\xE9lectionnez la couleur du service",helper:"La couleur du service peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur un service en particulier"},colors:{red:"Rouge",blue:"Bleu",purple:"Violet",green:"Vert",orange:"Orange"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},duration:{label:"Dur\xE9e (en minutes)",placeholder:"S\xE9lectionnez la dur\xE9e du service"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},"external-ref":{title:"@:common.field.external-ref.label"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du service",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le service sur le mini-site.",button:"@:common.field.illustration.button"},interval:{active:"Configurer un intervalle de prise de rendez-vous sp\xE9cifique pour ce service",description:"L'intervalle de prise de rendez-vous est la p\xE9riode glissante durant laquelle un contact peut prendre rendez-vous pour le service",title:"Intervalle de prise de rendez-vous"},location:{title:"Emplacements du service",subtitle:"Vous pouvez proposer diff\xE9rents types d\u2019emplacement \xE0 votre service",label:"Emplacement du service",placeholder:"S\xE9lectionnez l'emplacement du service",custom:{placeholder:"Saisissez un emplacement personnalis\xE9"}},locations:{company:"Adresse de l'\xE9tablissement",companyAddress:"@:settings.service-details.locations.company",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence",visioconference:"@:settings.service-details.locations.visio",videoconference:"@:settings.service-details.locations.visio",custom:"Emplacement personnalis\xE9"},maxCancellationDelay:{title:"D\xE9lai d'annulation",subtitle:"Certains rendez-vous pourraient n\xE9cessiter un d\xE9lai d'annulation plus court pour une gestion plus serr\xE9e des ressources, tandis que d'autres pourraient n\xE9cessiter un d\xE9lai plus long pour accorder aux contacts plus de flexibilit\xE9. Le param\xE9trage du d\xE9lai d'annulation vous permet d'adapter la p\xE9riode d'annulation en fonction de vos \xE9xigences sp\xE9cifiques.",switchLabel:"Configurer un d\xE9lai maximum d'annulation",inputLabel:"D\xE9lai maximum d'annulation (en heure)",inputPlaceholder:"S\xE9lectionnez la dur\xE9e du d\xE9lai",inputHelper:{"1hour":"Un rendez-vous pourra \xEAtre annul\xE9 jusqu\u2019\xE0 1 heure avant celui-ci.",severalHours:"Un rendez-vous pourra \xEAtre annul\xE9 jusqu\u2019\xE0 {hour} heures avant celui-ci."}},name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},new:"Nouveau service",price:{title:"Prix du service",subtitle:"Vous pouvez fixer le prix de votre service si celui-ci est un service payant.",label:"Prix {currency}",placeholder:"Saisissez un prix"},quantity:{label:"Capacit\xE9",placeholder:"Saisissez la capacit\xE9 du service",helper:"Nombre de r\xE9servations pouvant \xEAtre prises pour ce service sur un m\xEAme cr\xE9neau horaire."},"save-success":"Les informations du service ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement du service",staffs:{title:"Collaborateurs en charge du service",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service.",search:{deletion:{title:"Supprimer le collaborateur",description:"Souhaitez-vous vraiment retirer ce collaborateur de ce service ? Si tel est bien le cas, merci de saisir le nom du collaborateur dans le champ ci-dessous :",fieldLabel:"Nom du collaborateur"},add:{title:"Ajouter un collaborateur",description:"S\xE9lectionnez un ou plusieurs collaborateur(s) disponible pour ce service"},searchLabel:"Rechercher par nom, pr\xE9nom, email"}},subTitle:"Les services repr\xE9sentent les prestations apport\xE9es par vos collaborateurs \xE0 un ou plusieurs clients.",tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availabilities:"Disponibilit\xE9s",options:"Options",advanced:"@:settings.tabs.advanced"},title:"Service",validation:{title:"Validation du rendez-vous",subtitle:"Vous pouvez d\xE9sactiver la validation automatique du rendez-vous au profit d\u2019une validation manuelle par le collaborateur ou par le manager",actif:"Valider manuellement le rendez-vous",label:"Mode de validation",placeholder:"S\xE9lectionnez le mode de validation du service"},validations:{location:"Param\xE9trage de l'\xE9tablissement",auto:"Aucune",manager:"Par le manager",staff:"Par le collaborateur"},visibility:{title:"Visibilit\xE9 du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Visibilit\xE9",placeholder:"S\xE9lectionnez une visibilit\xE9"},visibilities:{public:"Public",backoffice:"Priv\xE9",hidden:"Dissimul\xE9",disabled:"D\xE9sactiv\xE9"}},serviceGroups:{title:"@:common.field.service-groups.label",new:"Nouvelle cat\xE9gorie",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",search:{placeholder:"@:common.search.by-name"},parent:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",parent:"@:common.field.parent.label"},no:"Aucune cat\xE9gorie",deleted:"Cat\xE9gorie supprim\xE9e | Cat\xE9gories supprim\xE9es"},"serviceGroup-details":{title:"Ajouter une cat\xE9gorie",subTitle:"Les cat\xE9gories permettent de cr\xE9er des ensembles de services et organiser votre liste de services.",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations de la cat\xE9gorie ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de la cat\xE9gorie",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration de la cat\xE9gorie",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer la cat\xE9gorie sur le mini-site.",button:"@:common.field.illustration.button"},parent:{label:"Cat\xE9gorie parente",helper:"La cat\xE9gorie parente permet de faire des liens hi\xE9rarchiques entre vos cat\xE9gories. ",none:"Aucune"},color:{label:"Couleur de la cat\xE9gorie",placeholder:"S\xE9lectionnez la couleur de la cat\xE9gorie",helper:"La couleur de la cat\xE9gorie peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur des services d\u2019une cat\xE9gorie particuli\xE8re"},service:{title:"Service de la cat\xE9gorie",description:"Les services de la cat\xE9gorie sont les services disponibles lorsque vos @:crm.contacts-trad se rendent dans la page d\xE9di\xE9e \xE0 cette cat\xE9gorie dans le mini-site."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",advanced:"@:settings.tabs.advanced"}},staffs:{title:"@:common.field.staffs.label",new:"Nouveau collaborateur",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",updated:"Le collaborateur a bien \xE9t\xE9 modifi\xE9",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce collaborateur ? | Souhaitez-vous r\xE9ellement supprimer ces {n} collaborateurs ?",search:{placeholder:"@:common.search.by-firstName-lastName"},group:{none:"@:common.content.none"},columns:{firstname:"@:common.field.firstName.label",lastname:"@:common.field.lastName.label",email:"@:common.field.email.label",enabled:"@:common.field.actif.label"},no:"Aucun collaborateur",deleted:"Collaborateur supprim\xE9 | Collaborateurs supprim\xE9s"},"staff-details":{new:"Nouveau collaborateur","page-title":"@:settings.staff-details.new",subTitle:"Les collaborateurs sont les personnes en charge des services.",action:{back:"@:common.action.back-to-list"},clone:"Duplication : {lastName} {firstName}","save-success":"Les informations du collaborateur ont bien \xE9t\xE9 enregistr\xE9es",title:{label:"Titre",placeholder:"@:common.content.none"},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},gender:{label:"Genre",placeholder:"@:common.content.none"},genders:{male:"Homme",female:"Femme",other:"Autre"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},photo:{label:"@:common.field.photo.label",placeholder:"@:common.field.photo.placeholder",helper:"La photo sera utilis\xE9e afin d\u2019identifier le collaborateur sur le mini-site.","default-name":"Image du collaborateur",button:"@:common.field.illustration.button"},contact:{title:"Coordonn\xE9es du collaborateur",subtitle:"Les coordonn\xE9es du collaborateur sont utilis\xE9es pour les notifications email et SMS."},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder",roleError:"L'email du collaborateur est obligatoire puisqu'il dispose de droits d'acc\xE8s"},phone:{fixe:"T\xE9l\xE9phone fixe",mobile:"T\xE9l\xE9phone mobile"},group:{title:"@:common.field.staff-group.label",subtitle:"Les \xE9quipes permettent de g\xE9rer plusieurs collaborateurs comme un ensemble. Des disponibilit\xE9s peuvent \xEAtre affect\xE9es \xE0 une \xE9quipe et impacter la disponibilit\xE9 de l\u2019ensemble des collaborateurs de cette \xE9quipe.",label:"@:common.field.staff-group.label",placeholder:"@:common.content.none-e"},availableForWidget:{title:"Disponibilit\xE9 \xE0 la prise de rendez-vous",subtitle:"Lorsqu\u2019un collaborateur n\u2019est pas disponible \xE0 la prise de rendez-vous en ligne, aucun rendez-vous ne peut \xEAtre pris avec lui.",label:"Disponible \xE0 la prise de rendez-vous"},hours:{title:"Disponibilit\xE9s du collaborateur"},unavailable:{title:"Indisponibilit\xE9s"},services:{title:"Services dispens\xE9s",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service.",search:{deletion:{title:"Supprimer le service",description:"Souhaitez-vous vraiment retirer ce service de ce collaborateur ? Si tel est bien le cas, merci de saisir le nom du service dans le champ ci-dessous :",fieldLabel:"Nom du service"},add:{title:"Ajouter un service",description:"S\xE9lectionnez un ou plusieurs service(s) dispens\xE9 pour ce collaborateur"},searchLabel:"Rechercher par nom"}},rights:{title:"Droits d'acc\xE8s"},role:{label:"R\xF4le",placeholder:"@:common.content.none",helper:"Le r\xF4le permet de d\xE9finir les droits d\u2019acc\xE8s et fonctionnalit\xE9s accessibles pour le collaborateur",error:"Aucun r\xF4le ne peut \xEAtre d\xE9fini car le collaborateur ne dispose d'aucun email"},roles:{none:"@:common.content.none",reader:"@:common.roles.reader",scheduler:"@:common.roles.scheduler",administrator:"@:common.roles.administrator"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},"external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",rights:"Droits d'acc\xE8s",availabilities:"Disponibilit\xE9",advanced:"@:settings.tabs.advanced"}},staffGroups:{title:"@:common.field.staff-groups.label",new:"Nouvelle \xE9quipe",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette \xE9quipe ? | Souhaitez-vous r\xE9ellement supprimer ces {n} \xE9quipes ?",search:{placeholder:"@:common.search.by-name"},membersCount:"1 collaborateur | {n} collaborateurs",noMember:"Aucun collaborateur",group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",staffsCount:"@:common.field.number.label"},no:"Aucune \xE9quipe",deleted:"\xC9quipe supprim\xE9e | \xC9quipes supprim\xE9es"},"staffGroup-details":{title:"Nouvelle \xE9quipe",subTitle:"Les \xE9quipes permettent de cr\xE9er des ensembles de collaborateur et organiser votre liste d'\xE9quipe.","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",action:{back:"@:common.action.back-to-list"},name:{label:"Nom de l'\xE9quipe",placeholder:"Saisissez le nom de l'\xE9quipe"},color:{label:"Couleur de l'\xE9quipe",placeholder:"S\xE9lectionnez la couleur de l'\xE9quipe",helper:"La couleur de l'\xE9quipe peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur les collaborateurs d\u2019une \xE9quipe en particulier"},staff:{title:"Collaborateurs de l'\xE9quipe",description:"Les collaborateurs de l\u2019\xE9quipe seront li\xE9s par des propri\xE9t\xE9s communes.",search:{deletion:{title:"Supprimer le collaborateur",description:"Souhaitez-vous vraiment retirer ce collaborateur de l'\xE9quipe ? Si tel est bien le cas, merci de saisir le nom du collaborateur dans le champ ci-dessous :",fieldLabel:"Nom du collaborateur"},add:{title:"Ajouter un collaborateur",description:"Ajoutez un ou plusieurs collaborateur(s) dans l'\xE9quipe"},searchLabel:"Rechercher par nom, pr\xE9nom, email"}},manager:{title:"Managers de l'\xE9quipe",description:"Les managers d'\xE9quipe ont la possibilit\xE9 de g\xE9rer le calendrier et les rendez-vous des membres de l'\xE9quipe.",search:{deletion:{title:"Supprimer le manager",description:"Souhaitez-vous vraiment retirer cet utilisateur des managers de l'\xE9quipe ? Si tel est bien le cas, merci de saisir l'email de l'utilisateur dans le champ ci-dessous :",fieldLabel:"Email de l'utilisateur"},add:{title:"Ajouter un manager",description:"S\xE9lectionnez un ou plusieurs managers de l'\xE9quipe."},searchLabel:"Rechercher par nom, pr\xE9nom, email"}},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},availability:{title:"Disponibilit\xE9s de l\u2019\xE9quipe"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availability:"@:settings.tabs.availabilities",advanced:"@:settings.tabs.advanced"}},tabs:{general:"G\xE9n\xE9ral",hours:"Horaires",availability:"Disponibilit\xE9s",advanced:"Avanc\xE9s",options:"Options",availabilities:"Disponibilit\xE9s",rights:"Droits d'acc\xE8s"},"working-hours":{title:"Horaires d'ouverture",save:"@:common.action.validate"},"working-plannings":{title:"Planification de l'activit\xE9 des collaborateurs",subtitle:"Superviser et ajuster l'activit\xE9 de vos collaborateurs en fonction des \xE9tablissements et le taux d'occupation de chacun",user:"collaborateur(s)",company:{name:"Etablissement",modal:{title:"S\xE9lectionnez un \xE9tablissement",subtitle:"S\xE9lectionnez l'\xE9tablissement pour lequel vous souhaitez planifier l'activit\xE9 des collaborateurs"}},selectType:{openingHours:"Plages d\u2019ouverture",occupancyRate:"Taux d\u2019occupation"},"view-selector-aria-label":"S\xE9lectionnez une vue",planning:{slot:{unavailable:"Indisponible"}},fab:{manual:{title:"Ajout manuel",description:"Ajouter une plage horaire manuellement"},"from-model":{title:"Ajout depuis un mod\xE8le",description:"Ajouter une plage horaire depuis un mod\xE8le de planning"},manageModel:{title:"G\xE9rer les mod\xE8les de planning",description:"G\xE9rer les mod\xE8les de planning \xE0 utiliser pour planifier l'activit\xE9 des collaborateurs"}}},"working-plannings-add":{"from-model":{title:"Ajouter un plage \xE0 partir d'un mod\xE8le",subtitle:"Ajouter des plages d'ouverture \xE0 un collaborateur en fonction d'un mod\xE8le de planning",field:{model:{title:"Mod\xE8le de planning",placeholder:"S\xE9lectionnez un mod\xE8le"},week:{title:"Semaine de d\xE9marrage",placeholder:"S\xE9lectionnez une semaine",helper:"Par exemple, si vous avez cr\xE9\xE9 un mod\xE8le de deux semaines (ouvert, ferm\xE9), vous pouvez choisir de commencer par la premi\xE8re semaine (ouvert) ou la deuxi\xE8me semaine (ferm\xE9) pour appliquer la s\xE9quence."}}},title:"Ajouter une plage d'ouverture",subtitle:"Ajouter des plages d\u2019ouverture \xE0 vos collaborateurs sur un \xE9tablissement.",period:{start:"@:common.from",end:"@:common.to"},company:"@:common.field.company.label",staff:"Affecter \xE0",errors:{conflict:{title:"Chevauchement des plages d'ouverture",description:"La p\xE9riode sp\xE9cifi\xE9e comporte d\xE9j\xE0 des plages d'ouverture. Souhaitez-vous remplacer les plages d'ouverture existantes ou les conserver et y ajouter les nouvelles ?",merge:"Conserver",replace:"Remplacer"},"save-error":"\xC9chec lors de l'enregistrement du planning"},"save-success":"La plage d\u2019ouverture a bien \xE9t\xE9 ajout\xE9e"},"working-plannings-day-edit":{title:"Modifier la plage d'ouverture",recap:{title:"R\xE9capitulatif",date:"Date de la plage",company:"@:common.field.company.label",staff:"@:common.field.staff.label"},add:"Ajouter une ouverture",closed:"Aucune ouverture","modify-period":"Effectuer la modification sur une p\xE9riode plus longue","day-warning":"La modification sera apport\xE9e uniquement sur tous les {dayname} entre ces deux dates.","allweekday-warning":"La modification sera apport\xE9e sur tous les jours de la semaine sauf les week-ends entre ces deux dates.","allday-warning":"La modification sera apport\xE9e sur tous les jours de la semaine entre ces deux dates.","save-success":"La plage d\u2019ouverture a bien \xE9t\xE9 modifi\xE9e",errors:{"save-error":"\xC9chec lors de l'enregistrement du planning"},delete:{"delete-success":"La plage d\u2019ouverture a bien \xE9t\xE9 supprim\xE9e","confirm-dialog":{title:"Suppression de la plage d'ouverture",description:"\xCAtes-vous s\xFBr de vouloir supprimer la plage d\u2019ouverture ?",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"}}},administration:{title:"Administration",subtitle:"Visualisez et mettez \xE0 jour les d\xE9tails de votre organisation, g\xE9rez les droits d'acc\xE8s \xE0 votre organisation et personnalisez l'espace de travail",tabs:{audit:"Journal d'audit"},audit:{search:{placeholder:"Rechercher par nom, pr\xE9nom ou email"},columns:{date:"Date",user:"Utilisateur",action_type:"Cat\xE9gorie",action:"Action"},no_data:"Aucun log d'audit",action_type:{0:"Login",1:"Param\xE9trage",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"Rapport"},action:{0:{0:"Connexion de l'utilisateur",1:"Echec de la tentative de connexion",2:"Compte verrouill\xE9",3:"Echec de la modification du mot de passe",4:"Mot de passe modifi\xE9"},1:{5:"Ajout de l'\xE9tablissement {companyName} ({companyId})",6:"Modification de l'\xE9tablissement {companyName} ({companyId})",7:"Suppression de l'\xE9tablissement {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"Ajout d'une nouvelle cat\xE9gorie {objectName} ({objectId}) - {companyName} ({companyId})",6:"Modification d'une cat\xE9gorie {objectName} ({objectId}) - {companyName} ({companyId})",7:"Suppression d'une cat\xE9gorie {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Ajout d'une nouvelle \xE9quipe {objectName} ({objectId}) - {companyName} ({companyId})",6:"Modification d'une \xE9quipe {objectName} ({objectId}) - {companyName} ({companyId})",7:"Suppression d'une \xE9quipe {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"Ajout d'un nouveau service {objectName} ({objectId}) - {companyName} ({companyId})",6:"Modification d'un service {objectName} ({objectId}) - {companyName} ({companyId})",7:"Suppression d'un service {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Ajout d'un nouveau collaborateur {objectName}{misc1} ({objectId}) - {companyName} ({companyId})",6:"Modification d'un collaborateur {objectName}{misc1} ({objectId}) - {companyName} ({companyId})",7:"Suppression d'un collaborateur {objectName}{misc1} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"G\xE9n\xE9ration d'un rapport"}},changeLog:{title:"D\xE9tail de l\u2019action",table:{field:"Champ",old:"Avant",new:"Apr\xE8s"}}}}},system:{fields:{optional:"Optionnel",mandatory:"Ce champ est obligatoire",file:{defaultPlaceHolder:"Glisser-d\xE9poser votre fichier pour l'ajouter",defaultButtonLabel:"Ajouter un fichier",info:"(jusqu'\xE0 {size}mb, formats accept\xE9s : {format})"}},error:{empty:"Ce champ ne peut \xEAtre vide",regex:"Le format du champ est invalide",phone:"Le num\xE9ro de t\xE9l\xE9phone n'est pas un num\xE9ro valide",format:"Le format du champ est invalide",businessHours:{invalid:"Horaire non valide"},file:{size:"La taille de votre fichier d\xE9passe la limite",format:"Format de fichier non accept\xE9"},api:{message:"Une erreur api est survenue (code : {code}, message: {message})"}},buttons:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel"},businessHours:{"day-enabled-aria-label":"Activer les horaires pour le {day}","day-disabled-aria-label":"D\xE9sactiver les horaires pour le {day}","add-aria-label":"Ajouter des horaires pour le {day}","remove-aria-label":"Supprimer la ligne d'horaire pour le {day}"}},widget:{scheduling:{service:{action:{book:"Prendre rendez-vous","mobile-book":"Prendre RDV"},details:{title:"Les d\xE9tails du rendez-vous","cancel-condition":{title:"Conditions d'annulation",label:"Annulation possible jusqu'\xE0 {delay} heure(s) avant le rendez-vous"}},options:{title:"Vos options de rendez-vous",staff:{title:"Choisissez un collaborateur :",random:"Sans pr\xE9f\xE9rence"},locations:{title:"Choisissez un format :",videoconference:{label:"En visioconf\xE9rence",tooltip:"Le lien de visioconf\xE9rence vous sera transmis dans l\u2019email de confirmation du rendez-vous."},companyAddress:{label:"Dans nos locaux",tooltip:""},phone:{label:"Par t\xE9l\xE9phone",tooltip:"Notre collaborateur se chargera de vous appeler au num\xE9ro de t\xE9l\xE9phone que vous nous communiquerez dans les \xE9tapes suivantes."},custom:{title:"Emplacement :"}}},path:"Itin\xE9raire"}}}},es:{agendize:{notification:{report:{download:{filename:"AZ - Extracci\xF3n gen\xE9rica"}}}},common:{empty:"vac\xEDa"},settings:{administration:{audit:{action_type:{0:"Acceso",1:"Ajustes",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"Informe"},action:{0:{0:"Conexi\xF3n de usuario",1:"Intento de conexi\xF3n fallido",2:"Cuenta bloqueada",3:"Failed to change password",4:"Contrase\xF1a cambiada"},1:{5:"Agregando la empresa {companyName} ({companyId})",6:"Cambio de empresa {companyName} ({companyId})",7:"Eliminaci\xF3n de empresa {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"Agregar la categor\xEDa {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio de categor\xEDa {objectName} ({objectId}) - {companyName} ({companyId})",7:"Eliminaci\xF3n de categor\xEDa {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Agregando el equipo {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio de equipo {objectName} ({objectId}) - {companyName} ({companyId})",7:"Eliminaci\xF3n de equipo {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"Agregando el servicio {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio de servicio {objectName} ({objectId}) - {companyName} ({companyId})",7:"Eliminaci\xF3n de servicio {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Agregar el personal {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio de personal {objectName} ({objectId}) - {companyName} ({companyId})",7:"Eliminaci\xF3n de personal {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"Generar un informe"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"Nombre de empresa",address:"Direcci\xF3n de la empresa",email:"Correo electr\xF3nico de la empresa",phone:"Tel\xE9fono de empresa",latitude:"Latitud de la empresa",longitude:"Longitud de la empresa",externalId:"ID externo de la empresa",id:"ID t\xE9cnico de la empresa"}},service:{fields:{name:"Nombre del Servicio",duration:"Duraci\xF3n del servicio",capacity:"Capacidad de servicio",price:"Precio del servicio",categoryLevel1Name:"Nombre del grupo nivel 1",categoryLevel2Name:"Nombre del grupo nivel 2",externalId:"ID externo del servicio",id:"ID t\xE9cnico de servicio",categoryLevel1ExternalId:"ID externo del grupo nivel 1",categoryLevel1Id:"ID t\xE9cnico del grupo nivel 1",categoryLevel2ExternalId:"ID externo del grupo nivel 2",categoryLevel2Id:"ID t\xE9cnico del grupo nivel 2"}},staff:{fields:{firstName:"Nombre del personal",lastName:"Apellido del personal",email:"Correo electr\xF3nico del personal",phone:"Tel\xE9fono del personal",groupName:"Nombre del equipo",externalId:"ID externa del personal",id:"ID t\xE9cnica del personal",groupExternalId:"ID externo del equipo",groupId:"ID t\xE9cnico del equipo"}},appointment:{fields:{start:"Inicio de la cita",end:"Fin de la cita",location:"Ubicaci\xF3n de la cita",status:"Estado de la cita",notes:"Nota de la cita",customFields:"Informaci\xF3n adicional sobre la cita",id:"ID t\xE9cnico de cita"}},client:{fields:{firstName:"Nombre de contacto",lastName:"Apellido de contacto",email:"Email de contacto",phone:"Tel\xE9fono de contacto",id:"ID t\xE9cnico de contacto"}}},filter:{allCompanies:"Todas las empresas"}}}},pt:{agendize:{notification:{report:{download:{filename:"AZ - Extra\xE7\xE3o gen\xE9rica"}}}},common:{empty:"vazia"},settings:{administration:{audit:{action_type:{0:"Conecte-se",1:"Configura\xE7\xF5es",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1"},action:{0:{0:"Conex\xE3o do usu\xE1rio",1:"Falha na tentativa de conex\xE3o",2:"Conta bloqueada",3:"Falha ao alterar a senha",4:"Senha alterada"},1:{5:"Adicionando a empresa {companyName} ({companyId})",6:"Mudan\xE7a de empresa {companyName} ({companyId})",7:"Exclus\xE3o de empresa {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"Adicionando a categoria {objectName} ({objectId}) - {companyName} ({companyId})",6:"Mudan\xE7a de categoria {objectName} ({objectId}) - {companyName} ({companyId})",7:"Exclus\xE3o de categoria {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Adicionando a equipe {objectName} ({objectId}) - {companyName} ({companyId})",6:"Mudan\xE7a de time {objectName} ({objectId}) - {companyName} ({companyId})",7:"Exclus\xE3o de equipe {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"Adicionando o servi\xE7o {objectName} ({objectId}) - {companyName} ({companyId})",6:"Mudan\xE7a de servi\xE7o {objectName} ({objectId}) - {companyName} ({companyId})",7:"Exclus\xE3o de servi\xE7o {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Adicionando a equipe {objectName} ({objectId}) - {companyName} ({companyId})",6:"Mudan\xE7a de equipe {objectName} ({objectId}) - {companyName} ({companyId})",7:"Exclus\xE3o de funcion\xE1rios {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"Nome da empresa",address:"Endere\xE7o da companhia",email:"E-mail da empresa",phone:"Telefone da empresa",latitude:"Latitude da Empresa",longitude:"Longitude da empresa",externalId:"ID externo da empresa",id:"ID t\xE9cnico da empresa"}},service:{fields:{name:"Nome do Servi\xE7o",duration:"Dura\xE7\xE3o do servi\xE7o",capacity:"Capacidade de servi\xE7o",price:"Pre\xE7o do servi\xE7o",categoryLevel1Name:"Nome do grupo n\xEDvel 1",categoryLevel2Name:"Nome do grupo n\xEDvel 2",externalId:"ID externo do servi\xE7o",id:"ID t\xE9cnico do servi\xE7o",categoryLevel1ExternalId:"ID externo do grupo n\xEDvel 1",categoryLevel1Id:"ID t\xE9cnico do grupo n\xEDvel 1",categoryLevel2ExternalId:"ID externo do grupo n\xEDvel 2",categoryLevel2Id:"ID t\xE9cnico do grupo n\xEDvel 2"}},staff:{fields:{firstName:"Nome da equipe",lastName:"Sobrenome da equipe",email:"E-mail da equipe",phone:"Telefone da equipe",groupName:"Nome da equipa",externalId:"ID externo da equipe",id:"ID t\xE9cnico da equipe",groupExternalId:"ID externa da equipa",groupId:"ID t\xE9cnica da equipa"}},appointment:{fields:{start:"In\xEDcio do compromisso",end:"Fim do compromisso",location:"Local do compromisso",status:"Status do compromisso",notes:"Nota do compromisso",customFields:"Informa\xE7\xF5es adicionais sobre agendamento",id:"ID t\xE9cnico da consulta"}},client:{fields:{firstName:"Nome do contato",lastName:"Sobrenome do contato",email:"Email de contato",phone:"Telefone de contato",id:"Contate o ID t\xE9cnico"}}},filter:{allCompanies:"Todas as empresas"}}}},it:{agendize:{notification:{report:{download:{filename:"AZ - Estrazione generica"}}}},common:{empty:"vuota"},settings:{administration:{audit:{action_type:{0:"Login",1:"Impostazioni",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"Rapporto"},action:{0:{0:"Connessione utente",1:"Tentativo di connessione non riuscito",2:"Account bloccato",3:"Impossibile modificare la password",4:"Password modificata"},1:{5:"Aggiunta della societ\xE0 {companyName} ({companyId})",6:"Cambio di societ\xE0 {companyName} ({companyId})",7:"Cancellazione della societ\xE0 {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"Aggiunta della categoria {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio di categoria {objectName} ({objectId}) - {companyName} ({companyId})",7:"Cancellazione di categoria {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Aggiunta della squadra {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio di squadra {objectName} ({objectId}) - {companyName} ({companyId})",7:"Cancellazione della squadra {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"Aggiunta del servizio {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio di servizio {objectName} ({objectId}) - {companyName} ({companyId})",7:"Soppressione del servizio {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Aggiunta del personale {objectName} ({objectId}) - {companyName} ({companyId})",6:"Cambio di personale {objectName} ({objectId}) - {companyName} ({companyId})",7:"Cancellazione del personale {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"Generazione di un rapporto"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"Nome della ditta",address:"Indirizzo aziendale",email:"E-mail aziendale",phone:"Telefono aziendale",latitude:"Latitudine aziendale",longitude:"Longitudine dell'azienda",externalId:"ID esterno dell'azienda",id:"ID tecnico dell'azienda"}},service:{fields:{name:"Nome di Servizio",duration:"Durata del servizio",capacity:"Capacit\xE0 di servizio",price:"Prezzo del servizio",categoryLevel1Name:"Nome del gruppo livello 1",categoryLevel2Name:"Nome del gruppo livello 2",externalId:"ID esterno del servizio",id:"ID tecnico del servizio",categoryLevel1ExternalId:"ID esterno gruppo livello 1",categoryLevel1Id:"ID tecnico gruppo livello 1",categoryLevel2ExternalId:"ID esterno gruppo livello 2",categoryLevel2Id:"ID tecnico gruppo livello 2"}},staff:{fields:{firstName:"Nome del personale",lastName:"Cognome del personale",email:"E-mail del personale",phone:"Telefono del personale",groupName:"Nome della squadra",externalId:"ID esterno del personale",id:"ID tecnico del personale",groupExternalId:"ID esterno della squadra",groupId:"ID tecnico della squadra"}},appointment:{fields:{start:"Inizio dell'appuntamento",end:"Fine dell'appuntamento",location:"Luogo dell'appuntamento",status:"Stato dell'appuntamento",notes:"Nota dell'appuntamento",customFields:"Ulteriori informazioni sull'appuntamento",id:"ID tecnico dell'appuntamento"}},client:{fields:{firstName:"Nome del contatto",lastName:"Cognome del contatto",email:"Contatto email",phone:"Contatto telefonico",id:"Contattare l'ID tecnico"}}},filter:{allCompanies:"Tutte le aziende"}}}},de:{agendize:{notification:{report:{download:{filename:"AZ - Generische Extraktion"}}}},common:{empty:"leer"},settings:{administration:{audit:{action_type:{0:"Anmeldung",1:"Einstellungen",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"Bericht"},action:{0:{0:"Benutzerverbindung",1:"Der Verbindungsversuch ist fehlgeschlagen",2:"Konto gesperrt",3:"Das Passwort konnte nicht ge\xE4ndert werden",4:"Passwort ge\xE4ndert"},1:{5:"Firma hinzuf\xFCgen {companyName} ({companyId})",6:"Firmenwechsel {companyName} ({companyId})",7:"L\xF6schung des Unternehmens {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"Kategorie hinzuf\xFCgen {objectName} ({objectId}) - {companyName} ({companyId})",6:"Change of category {objectName} ({objectId}) - {companyName} ({companyId})",7:"Kategorie l\xF6schen {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Das Team hinzuf\xFCgen {objectName} ({objectId}) - {companyName} ({companyId})",6:"Teamwechsel {objectName} ({objectId}) - {companyName} ({companyId})",7:"L\xF6schung des Teams {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"Hinzuf\xFCgen des Dienstes {objectName} ({objectId}) - {companyName} ({companyId})",6:"Dienstwechsel {objectName} ({objectId}) - {companyName} ({companyId})",7:"L\xF6schung des Dienstes {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Hinzuf\xFCgen des Personals {objectName} ({objectId}) - {companyName} ({companyId})",6:"Personalwechsel {objectName} ({objectId}) - {companyName} ({companyId})",7:"Streichung von Mitarbeitern {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"Erstellen eines Berichts"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"Name der Firma",address:"Firmenanschrift",email:"Firmen-E-Mail",phone:"Firmentelefon",latitude:"Firmenlatitude",longitude:"L\xE4ngengrad des Unternehmens",externalId:"Externe Firmen-ID",id:"Technische ID des Unternehmens"}},service:{fields:{name:"Dienstname",duration:"Servicedauer",capacity:"Servicekapazit\xE4t",price:"Servicepreis",categoryLevel1Name:"Gruppenname der Stufe 1",categoryLevel2Name:"Gruppenname der Stufe 2",externalId:"Externe Service-ID",id:"Technische Service-ID",categoryLevel1ExternalId:"Externe ID der Ebene 1-Gruppe",categoryLevel1Id:"Technische ID der Ebene 1-Gruppe",categoryLevel2ExternalId:"Externe ID der Ebene 2-Gruppe",categoryLevel2Id:"Technische ID der Ebene 2-Gruppe"}},staff:{fields:{firstName:"Vorname des Mitarbeiters",lastName:"Nachname des Mitarbeiters",email:"Mitarbeiter-E-Mail",phone:"Mitarbeitertelefon",groupName:"Name des Teams",externalId:"Externe Mitarbeiter-ID",id:"Technische ID des Personals",groupExternalId:"Externe ID des Teams",groupId:"Technische ID des Teams"}},appointment:{fields:{start:"Beginn des Termins",end:"Ende des Termins",location:"Terminort",status:"Terminstatus",notes:"Notiz zum Termin",customFields:"Zus\xE4tzliche Termininformationen",id:"Technische Termin-ID"}},client:{fields:{firstName:"Vorname des Kontakts",lastName:"Nachname des Kontakts",email:"Kontakt E-mail",phone:"Kontakt-Telefon",id:"Wenden Sie sich an die technische ID"}}},filter:{allCompanies:"Alle Unternehmen"}}}},nl:{agendize:{notification:{report:{download:{filename:"AZ - Generieke extractie"}}}},common:{empty:"leeg"},settings:{administration:{audit:{action_type:{0:"Log in",1:"Instellingen",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"Rapport"},action:{0:{0:"Gebruikersverbinding",1:"Verbindingspoging mislukt",2:"Account geblokkeerd",3:"Kan het wachtwoord niet wijzigen",4:"Gewijzigd wachtwoord"},1:{5:"Het toevoegen van het bedrijf {companyName} ({companyId})",6:"Verandering van bedrijf {companyName} ({companyId})",7:"Bedrijf verwijderen {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"De categorie toevoegen {objectName} ({objectId}) - {companyName} ({companyId})",6:"Verandering van categorie {objectName} ({objectId}) - {companyName} ({companyId})",7:"Categorie verwijderen {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"Het team toevoegen {objectName} ({objectId}) - {companyName} ({companyId})",6:"Verandering van ploeg {objectName} ({objectId}) - {companyName} ({companyId})",7:"Team verwijderen {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"De dienst toevoegen {objectName} ({objectId}) - {companyName} ({companyId})",6:"Verandering van dienst {objectName} ({objectId}) - {companyName} ({companyId})",7:"Verwijdering van de dienst {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"Het personeel toevoegen {objectName} ({objectId}) - {companyName} ({companyId})",6:"Verandering van personeel {objectName} ({objectId}) - {companyName} ({companyId})",7:"Verwijdering van personeel {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"Een rapport genereren"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"Bedrijfsnaam",address:"Bedrijfsadres",email:"E-mail van het bedrijf",phone:"Bedrijfstelefoon",latitude:"Bedrijfsbreedte",longitude:"Bedrijfslengte",externalId:"Externe ID van bedrijf",id:"Bedrijfstechnische ID"}},service:{fields:{name:"Dienstnaam",duration:"Dienstduur",capacity:"Dienstcapaciteit",price:"Serviceprijs",categoryLevel1Name:"Groepsnaam niveau 1",categoryLevel2Name:"Groepsnaam niveau 2",externalId:"Externe service-ID",id:"Technische service-ID",categoryLevel1ExternalId:"Externe ID van niveau 1-groep",categoryLevel1Id:"Technisch ID van niveau 1-groep",categoryLevel2ExternalId:"Externe ID van niveau 2-groep",categoryLevel2Id:"Technisch ID van niveau 2-groep"}},staff:{fields:{firstName:"Voornaam van het personeel",lastName:"Achternaam van het personeel",email:"E-mail van het personeel",phone:"Telefoon van het personeel",groupName:"Naam team",externalId:"Externe ID personeel",id:"Technische ID van het personeel",groupExternalId:"Extern team-ID",groupId:"Team technische ID"}},appointment:{fields:{start:"Begin van de afspraak",end:"Einde van de afspraak",location:"Afspraak locatie",status:"Afspraakstatus",notes:"Notitie van de afspraak",customFields:"Aanvullende afspraakinformatie",id:"Afspraak technische ID"}},client:{fields:{firstName:"Voornaam contactpersoon",lastName:"Achternaam contactpersoon",email:"Contact email",phone:"Neem contact op met telefoon",id:"Neem contact op met technische ID"}}},filter:{allCompanies:"Alle bedrijven"}}}},ja:{agendize:{notification:{report:{download:{filename:"AZ - \u6C4E\u7528\u62BD\u51FA"}}}},common:{empty:"\u7A7A\u306E"},settings:{administration:{audit:{action_type:{0:"\u30ED\u30B0\u30A4\u30F3",1:"\u8A2D\u5B9A",2:"@:settings.administration.audit.action_type.1",3:"@:settings.administration.audit.action_type.1",4:"@:settings.administration.audit.action_type.1",5:"@:settings.administration.audit.action_type.1",6:"\u30EC\u30DD\u30FC\u30C8"},action:{0:{0:"\u30E6\u30FC\u30B6\u30FC\u63A5\u7D9A",1:"\u63A5\u7D9A\u8A66\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F",2:"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F",3:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5909\u66F4\u306B\u5931\u6557\u3057\u307E\u3057\u305F",4:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3057\u305F"},1:{5:"\u4F1A\u793E\u3092\u8FFD\u52A0\u3059\u308B {companyName} ({companyId})",6:"\u4F1A\u793E\u5909\u66F4 {companyName} ({companyId})",7:"\u4F1A\u793E\u306E\u524A\u9664 {companyName} ({companyId})",8:"@:settings.administration.audit.action.1.5"},2:{5:"\u30AB\u30C6\u30B4\u30EA\u306E\u8FFD\u52A0 {objectName} ({objectId}) - {companyName} ({companyId})",6:"\u30AB\u30C6\u30B4\u30EA\u306E\u5909\u66F4 {objectName} ({objectId}) - {companyName} ({companyId})",7:"\u30AB\u30C6\u30B4\u30EA\u306E\u524A\u9664 {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.2.5"},3:{5:"\u30C1\u30FC\u30E0\u3092\u8FFD\u52A0\u3059\u308B {objectName} ({objectId}) - {companyName} ({companyId})",6:"\u30C1\u30FC\u30E0\u306E\u5909\u66F4 {objectName} ({objectId}) - {companyName} ({companyId})",7:"\u30C1\u30FC\u30E0\u306E\u524A\u9664 {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.3.5"},4:{5:"\u30B5\u30FC\u30D3\u30B9\u306E\u8FFD\u52A0 {objectName} ({objectId}) - {companyName} ({companyId})",6:"\u30B5\u30FC\u30D3\u30B9\u306E\u5909\u66F4 {objectName} ({objectId}) - {companyName} ({companyId})",7:"\u30B5\u30FC\u30D3\u30B9\u306E\u524A\u9664 {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.4.5"},5:{5:"\u30B9\u30BF\u30C3\u30D5\u306E\u8FFD\u52A0 {objectName} ({objectId}) - {companyName} ({companyId})",6:"\u30B9\u30BF\u30C3\u30D5\u306E\u7570\u52D5 {objectName} ({objectId}) - {companyName} ({companyId})",7:"\u30B9\u30BF\u30C3\u30D5\u306E\u524A\u9664 {objectName} ({objectId}) - {companyName} ({companyId})",8:"@:settings.administration.audit.action.5.5"},6:{5:"\u30EC\u30DD\u30FC\u30C8\u306E\u4F5C\u6210"}}}}},report:{download:{filename:"@:agendize.notification.report.download.filename"},genericExtract:{data:{company:{fields:{name:"\u4F1A\u793E\u540D",address:"\u4F1A\u793E\u4F4F\u6240",email:"\u4F1A\u793E\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",phone:"\u4F1A\u793E\u306E\u96FB\u8A71",latitude:"\u4F1A\u793E\u306E\u7DEF\u5EA6",longitude:"\u4F1A\u793E\u7D4C\u5EA6",externalId:"\u4F1A\u793E\u306E\u5916\u90E8ID",id:"\u4F1A\u793E\u30C6\u30AF\u30CB\u30AB\u30EBID"}},service:{fields:{name:"\u30B5\u30FC\u30D3\u30B9\u540D",duration:"\u30B5\u30FC\u30D3\u30B9\u671F\u9593",capacity:"\u30B5\u30FC\u30D3\u30B9\u5BB9\u91CF",price:"\u30B5\u30FC\u30D3\u30B9\u4FA1\u683C",categoryLevel1Name:"Lv1\u30B0\u30EB\u30FC\u30D7\u540D",categoryLevel2Name:"Lv2\u30B0\u30EB\u30FC\u30D7\u540D",externalId:"\u30B5\u30FC\u30D3\u30B9\u5916\u90E8ID",id:"\u30B5\u30FC\u30D3\u30B9\u6280\u8853ID",categoryLevel1ExternalId:"Lv1\u30B0\u30EB\u30FC\u30D7\u5916\u90E8ID",categoryLevel1Id:"Lv1\u30B0\u30EB\u30FC\u30D7\u30C6\u30AF\u30CB\u30AB\u30EBID",categoryLevel2ExternalId:"Lv2\u30B0\u30EB\u30FC\u30D7\u5916\u90E8ID",categoryLevel2Id:"Lv2\u30B0\u30EB\u30FC\u30D7\u30C6\u30AF\u30CB\u30AB\u30EBID"}},staff:{fields:{firstName:"\u30B9\u30BF\u30C3\u30D5\u306E\u540D\u524D",lastName:"\u30B9\u30BF\u30C3\u30D5\u306E\u59D3",email:"\u30B9\u30BF\u30C3\u30D5\u30E1\u30FC\u30EB",phone:"\u30B9\u30BF\u30C3\u30D5\u306E\u96FB\u8A71",groupName:"\u30C1\u30FC\u30E0\u540D",externalId:"\u30B9\u30BF\u30C3\u30D5\u5916\u90E8ID",id:"\u30B9\u30BF\u30C3\u30D5\u306E\u6280\u8853ID",groupExternalId:"\u5916\u90E8\u30C1\u30FC\u30E0ID",groupId:"\u30C1\u30FC\u30E0\u6280\u8853ID"}},appointment:{fields:{start:"\u4E88\u7D04\u306E\u958B\u59CB",end:"\u7D04\u675F\u306E\u7D42\u4E86",location:"\u4E88\u7D04\u5834\u6240",status:"\u4E88\u7D04\u72B6\u6CC1",notes:"\u7D04\u675F\u306E\u30E1\u30E2",customFields:"\u8FFD\u52A0\u306E\u4E88\u7D04\u60C5\u5831",id:"\u4E88\u7D04\u30C6\u30AF\u30CB\u30AB\u30EBID"}},client:{fields:{firstName:"\u9023\u7D61\u5148\u306E\u540D\u524D",lastName:"\u9023\u7D61\u5148\u306E\u59D3",email:"\u9023\u7D61\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",phone:"\u9023\u7D61\u5148\u96FB\u8A71\u756A\u53F7",id:"\u9023\u7D61\u5148\u30C6\u30AF\u30CB\u30AB\u30EBID"}}},filter:{allCompanies:"\u5168\u793E"}}}}},qm=t=>Am({legacy:!1,locale:t,fallbackLocale:"fr",globalInjection:!0,messages:jm});var _v="",Um=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const Vm={class:"az-flex az-flex-col az-gap-2"},Hm={class:"az-qrcode"},Wm={class:"az-qrcode-left"},$m={class:"az-qrcode-right"},Gm={class:"az-qrcode-bottom"};var Ym=Um(ue.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,locale:null,download:{type:Boolean,default:!0}},setup(t){var s,l,c,h;const e=t,n=qm(e.locale),r=ue.ref({width:e.width,height:e.height,type:"canvas",data:e.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(s=e.bgColor)!=null?s:"white"},dotsOptions:{color:(l=e.dotsColor)!=null?l:"black",type:"square"},cornersSquareOptions:{color:(c=e.dotsColor)!=null?c:"black",type:"square"},cornersDotOptions:{color:(h=e.dotsColor)!=null?h:"black",type:"square"}}),a=new id(r.value),i=ue.ref();function o(){a.download()}return ue.onMounted(()=>{a.append(i.value)}),ue.watch(()=>e.value,x=>{r.value.data=x,a.update(r.value)}),(x,y)=>(ue.openBlock(),ue.createElementBlock("div",Vm,[ue.createElementVNode("div",Hm,[ue.createElementVNode("div",null,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",{class:"az-qrcode-center",style:ue.normalizeStyle(`grid-template-columns: auto ${e.width}px auto;`)},[ue.createElementVNode("div",Wm,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",null,[ue.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),ue.createElementVNode("div",$m,ue.toDisplayString(t.outlineValue),1)],4),ue.createElementVNode("div",Gm,ue.toDisplayString(t.outlineValue),1)]),t.download?(ue.openBlock(),ue.createElementBlock("button",{key:0,class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:o},ue.toDisplayString(ue.unref(n).global.t("common.action.download")),1)):ue.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-6a57471e"]]),Zm=Object.defineProperty,Km=(t,e,n)=>e in t?Zm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m=(t,e,n)=>(Km(t,typeof e!="symbol"?e+"":e,n),n);class bn extends Error{}class Jm extends bn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Xm extends bn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Qm extends bn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ar extends bn{}class Xo extends bn{constructor(e){super(`Invalid unit ${e}`)}}class Lt extends bn{}class on extends bn{constructor(){super("Zone is an abstract class")}}const he="numeric",Pt="short",St="long",za={year:he,month:he,day:he},Qo={year:he,month:Pt,day:he},eh={year:he,month:Pt,day:he,weekday:Pt},es={year:he,month:St,day:he},ts={year:he,month:St,day:he,weekday:St},ns={hour:he,minute:he},rs={hour:he,minute:he,second:he},as={hour:he,minute:he,second:he,timeZoneName:Pt},is={hour:he,minute:he,second:he,timeZoneName:St},os={hour:he,minute:he,hourCycle:"h23"},ss={hour:he,minute:he,second:he,hourCycle:"h23"},ls={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:Pt},cs={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:St},us={year:he,month:he,day:he,hour:he,minute:he},ds={year:he,month:he,day:he,hour:he,minute:he,second:he},ms={year:he,month:Pt,day:he,hour:he,minute:he},hs={year:he,month:Pt,day:he,hour:he,minute:he,second:he},th={year:he,month:Pt,day:he,weekday:Pt,hour:he,minute:he},fs={year:he,month:St,day:he,hour:he,minute:he,timeZoneName:Pt},ps={year:he,month:St,day:he,hour:he,minute:he,second:he,timeZoneName:Pt},gs={year:he,month:St,day:he,weekday:St,hour:he,minute:he,timeZoneName:St},vs={year:he,month:St,day:he,weekday:St,hour:he,minute:he,second:he,timeZoneName:St};function Fe(t){return typeof t>"u"}function En(t){return typeof t=="number"}function Ar(t){return typeof t=="number"&&t%1===0}function nh(t){return typeof t=="string"}function rh(t){return Object.prototype.toString.call(t)==="[object Date]"}function ys(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ah(t){return Array.isArray(t)?t:[t]}function bs(t,e,n){if(t.length!==0)return t.reduce((r,a)=>{const i=[e(a),a];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function ih(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function On(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Zt(t,e,n){return Ar(t)&&t>=e&&t<=n}function oh(t,e){return t-e*Math.floor(t/e)}function nt(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function sn(t){if(!(Fe(t)||t===null||t===""))return parseInt(t,10)}function xn(t){if(!(Fe(t)||t===null||t===""))return parseFloat(t)}function Ba(t){if(!(Fe(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function ja(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function ir(t){return t%4===0&&(t%100!==0||t%400===0)}function or(t){return ir(t)?366:365}function Tr(t,e){const n=oh(e-1,12)+1,r=t+(e-n)/12;return n===2?ir(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function qa(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function kr(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Ua(t){return t>99?t:t>60?1900+t:2e3+t}function Es(t,e,n,r=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const o={timeZoneName:e,...i},s=new Intl.DateTimeFormat(n,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Lr(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-r:r;return n*60+a}function xs(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Lt(`Invalid unit value ${t}`);return e}function Or(t,e){const n={};for(const r in t)if(On(t,r)){const a=t[r];if(a==null)continue;n[e(r)]=xs(a)}return n}function sr(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${nt(n,2)}:${nt(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${nt(n,2)}${nt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Rr(t){return ih(t,["hour","minute","second","millisecond"])}const ws=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,sh=["January","February","March","April","May","June","July","August","September","October","November","December"],_s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lh=["J","F","M","A","M","J","J","A","S","O","N","D"];function Is(t){switch(t){case"narrow":return[...lh];case"short":return[..._s];case"long":return[...sh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ss=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ds=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ch=["M","T","W","T","F","S","S"];function Ns(t){switch(t){case"narrow":return[...ch];case"short":return[...Ds];case"long":return[...Ss];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Cs=["AM","PM"],uh=["Before Christ","Anno Domini"],dh=["BC","AD"],mh=["B","A"];function As(t){switch(t){case"narrow":return[...mh];case"short":return[...dh];case"long":return[...uh];default:return null}}function hh(t){return Cs[t.hour<12?0:1]}function fh(t,e){return Ns(e)[t.weekday-1]}function ph(t,e){return Is(e)[t.month-1]}function gh(t,e){return As(e)[t.year<0?0:1]}function vh(t,e,n="always",r=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const x=t==="days";switch(e){case 1:return x?"tomorrow":`next ${a[t][0]}`;case-1:return x?"yesterday":`last ${a[t][0]}`;case 0:return x?"today":`this ${a[t][0]}`}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,c=a[t],h=r?l?c[1]:c[2]||c[1]:l?a[t][0]:t;return o?`${s} ${h} ago`:`in ${s} ${h}`}function Ts(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const yh={D:za,DD:Qo,DDD:es,DDDD:ts,t:ns,tt:rs,ttt:as,tttt:is,T:os,TT:ss,TTT:ls,TTTT:cs,f:us,ff:ms,fff:fs,ffff:gs,F:ds,FF:hs,FFF:ps,FFFF:vs};class wt{static create(e,n={}){return new wt(e,n)}static parseFormat(e){let n=null,r="",a=!1;const i=[];for(let o=0;o<e.length;o++){const s=e.charAt(o);s==="'"?(r.length>0&&i.push({literal:a,val:r}),n=null,r="",a=!a):a||s===n?r+=s:(r.length>0&&i.push({literal:!1,val:r}),r=s,n=s)}return r.length>0&&i.push({literal:a,val:r}),i}static macroTokenToFormatOpts(e){return yh[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return nt(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(w,I)=>this.loc.extract(e,w,I),o=w=>e.isOffsetFixed&&e.offset===0&&w.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,w.format):"",s=()=>r?hh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(w,I)=>r?ph(e,w):i(I?{month:w}:{month:w,day:"numeric"},"month"),c=(w,I)=>r?fh(e,w):i(I?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),h=w=>{const I=wt.macroTokenToFormatOpts(w);return I?this.formatWithSystemDefault(e,I):w},x=w=>r?gh(e,w):i({era:w},"era"),y=w=>{switch(w){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(w)}};return Ts(wt.parseFormat(n),y)}formatDurationFromString(e,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>c=>{const h=r(c);return h?this.num(l.get(h),c.length):c},i=wt.parseFormat(n),o=i.reduce((l,{literal:c,val:h})=>c?l:l.concat(h),[]),s=e.shiftTo(...o.map(r).filter(l=>l));return Ts(i,a(s))}}class Ft{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class lr{get type(){throw new on}get name(){throw new on}get ianaName(){return this.name}get isUniversal(){throw new on}offsetName(e,n){throw new on}formatOffset(e,n){throw new on}offset(e){throw new on}equals(e){throw new on}get isValid(){throw new on}}let Va=null;class Ha extends lr{static get instance(){return Va===null&&(Va=new Ha),Va}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Es(e,n,r)}formatOffset(e,n){return sr(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Mr={};function bh(t){return Mr[t]||(Mr[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Mr[t]}const Eh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function xh(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,i,o,s,l,c,h]=r;return[o,a,i,s,l,c,h]}function wh(t,e){const n=t.formatToParts(e),r=[];for(let a=0;a<n.length;a++){const{type:i,value:o}=n[a],s=Eh[i];i==="era"?r[s]=o:Fe(s)||(r[s]=parseInt(o,10))}return r}let Pr={};class Kt extends lr{static create(e){return Pr[e]||(Pr[e]=new Kt(e)),Pr[e]}static resetCache(){Pr={},Mr={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Kt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Es(e,n,r,this.name)}formatOffset(e,n){return sr(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=bh(this.name);let[a,i,o,s,l,c,h]=r.formatToParts?wh(r,n):xh(r,n);s==="BC"&&(a=-Math.abs(a)+1);const x=qa({year:a,month:i,day:o,hour:l===24?0:l,minute:c,second:h,millisecond:0});let y=+n;const w=y%1e3;return y-=w>=0?w:1e3+w,(x-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Wa=null;class yt extends lr{static get utcInstance(){return Wa===null&&(Wa=new yt(0)),Wa}static instance(e){return e===0?yt.utcInstance:new yt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new yt(Lr(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${sr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${sr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return sr(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class _h extends lr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ln(t,e){if(Fe(t)||t===null)return e;if(t instanceof lr)return t;if(nh(t)){const n=t.toLowerCase();return n==="local"||n==="system"?e:n==="utc"||n==="gmt"?yt.utcInstance:yt.parseSpecifier(n)||Kt.create(t)}else return En(t)?yt.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new _h(t)}let ks=()=>Date.now(),Ls="system",Os=null,Rs=null,Ms=null,Ps;class ot{static get now(){return ks}static set now(e){ks=e}static set defaultZone(e){Ls=e}static get defaultZone(){return ln(Ls,Ha.instance)}static get defaultLocale(){return Os}static set defaultLocale(e){Os=e}static get defaultNumberingSystem(){return Rs}static set defaultNumberingSystem(e){Rs=e}static get defaultOutputCalendar(){return Ms}static set defaultOutputCalendar(e){Ms=e}static get throwOnInvalid(){return Ps}static set throwOnInvalid(e){Ps=e}static resetCaches(){Ke.resetCache(),Kt.resetCache()}}let Fs={};function Ih(t,e={}){const n=JSON.stringify([t,e]);let r=Fs[n];return r||(r=new Intl.ListFormat(t,e),Fs[n]=r),r}let $a={};function Ga(t,e={}){const n=JSON.stringify([t,e]);let r=$a[n];return r||(r=new Intl.DateTimeFormat(t,e),$a[n]=r),r}let Ya={};function Sh(t,e={}){const n=JSON.stringify([t,e]);let r=Ya[n];return r||(r=new Intl.NumberFormat(t,e),Ya[n]=r),r}let Za={};function Dh(t,e={}){const{base:n,...r}=e,a=JSON.stringify([t,r]);let i=Za[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Za[a]=i),i}let Fr=null;function Nh(){return Fr||(Fr=new Intl.DateTimeFormat().resolvedOptions().locale,Fr)}function Ch(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let n;const r=t.substring(0,e);try{n=Ga(t).resolvedOptions()}catch{n=Ga(r).resolvedOptions()}const{numberingSystem:a,calendar:i}=n;return[r,a,i]}}function Ah(t,e,n){return(n||e)&&(t+="-u",n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Th(t){const e=[];for(let n=1;n<=12;n++){const r=Ae.utc(2016,n,1);e.push(t(r))}return e}function kh(t){const e=[];for(let n=1;n<=7;n++){const r=Ae.utc(2016,11,13+n);e.push(t(r))}return e}function zr(t,e,n,r,a){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):a(e)}function Lh(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Oh{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:a,floor:i,...o}=r;if(!n||Object.keys(o).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Sh(e,s)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):ja(e,3);return nt(n,this.padTo)}}}class Rh{constructor(e,n,r){this.opts=r;let a;if(e.zone.isUniversal){const o=-1*(e.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Kt.create(s).valid?(a=s,this.dt=e):(a="UTC",r.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Ae.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,a=e.zone.name);const i={...this.opts};a&&(i.timeZone=a),this.dtf=Ga(n,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Mh{constructor(e,n,r){this.opts={style:"long",...r},!n&&ys()&&(this.rtf=Dh(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):vh(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class Ke{static fromOpts(e){return Ke.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,a=!1){const i=e||ot.defaultLocale,o=i||(a?"en-US":Nh()),s=n||ot.defaultNumberingSystem,l=r||ot.defaultOutputCalendar;return new Ke(o,s,l,i)}static resetCache(){Fr=null,$a={},Ya={},Za={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return Ke.create(e,n,r)}constructor(e,n,r,a){const[i,o,s]=Ch(e);this.locale=i,this.numberingSystem=n||o||null,this.outputCalendar=r||s||null,this.intl=Ah(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Lh(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Ke.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return zr(this,e,r,Is,()=>{const a=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Th(o=>this.extract(o,a,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return zr(this,e,r,Ns,()=>{const a=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=kh(o=>this.extract(o,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return zr(this,void 0,e,()=>Cs,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ae.utc(2016,11,13,9),Ae.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return zr(this,e,n,As,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ae.utc(-40,1,1),Ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,n,r){const a=this.dtFormatter(e,n),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(e={}){return new Oh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Rh(e,this.intl,n)}relFormatter(e={}){return new Mh(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ih(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Rn(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Mn(...t){return e=>t.reduce(([n,r,a],i)=>{const[o,s,l]=i(e,a);return[{...n,...o},s||r,l]},[{},null,1]).slice(0,2)}function Pn(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const a=n.exec(t);if(a)return r(a)}return[null,null]}function zs(...t){return(e,n)=>{const r={};let a;for(a=0;a<t.length;a++)r[t[a]]=sn(e[n+a]);return[r,null,n+a]}}const Bs=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ph=`(?:${Bs.source}?(?:\\[(${ws.source})\\])?)?`,Ka=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,js=RegExp(`${Ka.source}${Ph}`),Ja=RegExp(`(?:T${js.source})?`),Fh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Bh=/(\d{4})-?(\d{3})/,jh=zs("weekYear","weekNumber","weekDay"),qh=zs("year","ordinal"),Uh=/(\d{4})-(\d\d)-(\d\d)/,qs=RegExp(`${Ka.source} ?(?:${Bs.source}|(${ws.source}))?`),Vh=RegExp(`(?: ${qs.source})?`);function Fn(t,e,n){const r=t[e];return Fe(r)?n:sn(r)}function Hh(t,e){return[{year:Fn(t,e),month:Fn(t,e+1,1),day:Fn(t,e+2,1)},null,e+3]}function zn(t,e){return[{hours:Fn(t,e,0),minutes:Fn(t,e+1,0),seconds:Fn(t,e+2,0),milliseconds:Ba(t[e+3])},null,e+4]}function cr(t,e){const n=!t[e]&&!t[e+1],r=Lr(t[e+1],t[e+2]),a=n?null:yt.instance(r);return[{},a,e+3]}function ur(t,e){const n=t[e]?Kt.create(t[e]):null;return[{},n,e+1]}const Wh=RegExp(`^T?${Ka.source}$`),$h=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Gh(t){const[e,n,r,a,i,o,s,l,c]=t,h=e[0]==="-",x=l&&l[0]==="-",y=(w,I=!1)=>w!==void 0&&(I||w&&h)?-w:w;return[{years:y(xn(n)),months:y(xn(r)),weeks:y(xn(a)),days:y(xn(i)),hours:y(xn(o)),minutes:y(xn(s)),seconds:y(xn(l),l==="-0"),milliseconds:y(Ba(c),x)}]}const Yh={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xa(t,e,n,r,a,i,o){const s={year:e.length===2?Ua(sn(e)):sn(e),month:_s.indexOf(n)+1,day:sn(r),hour:sn(a),minute:sn(i)};return o&&(s.second=sn(o)),t&&(s.weekday=t.length>3?Ss.indexOf(t)+1:Ds.indexOf(t)+1),s}const Zh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kh(t){const[,e,n,r,a,i,o,s,l,c,h,x]=t,y=Xa(e,a,r,n,i,o,s);let w;return l?w=Yh[l]:c?w=0:w=Lr(h,x),[y,new yt(w)]}function Jh(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Xh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Qh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ef=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Us(t){const[,e,n,r,a,i,o,s]=t;return[Xa(e,a,r,n,i,o,s),yt.utcInstance]}function tf(t){const[,e,n,r,a,i,o,s]=t;return[Xa(e,s,n,r,a,i,o),yt.utcInstance]}const nf=Rn(Fh,Ja),rf=Rn(zh,Ja),af=Rn(Bh,Ja),of=Rn(js),Vs=Mn(Hh,zn,cr,ur),sf=Mn(jh,zn,cr,ur),lf=Mn(qh,zn,cr,ur),cf=Mn(zn,cr,ur);function uf(t){return Pn(t,[nf,Vs],[rf,sf],[af,lf],[of,cf])}function df(t){return Pn(Jh(t),[Zh,Kh])}function mf(t){return Pn(t,[Xh,Us],[Qh,Us],[ef,tf])}function hf(t){return Pn(t,[$h,Gh])}const ff=Mn(zn);function pf(t){return Pn(t,[Wh,ff])}const gf=Rn(Uh,Vh),vf=Rn(qs),yf=Mn(zn,cr,ur);function bf(t){return Pn(t,[gf,Vs],[vf,yf])}const Ef="Invalid Duration",Hs={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},xf={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Hs},Ot=146097/400,Bn=146097/4800,wf={years:{quarters:4,months:12,weeks:Ot/7,days:Ot,hours:Ot*24,minutes:Ot*24*60,seconds:Ot*24*60*60,milliseconds:Ot*24*60*60*1e3},quarters:{months:3,weeks:Ot/28,days:Ot/4,hours:Ot*24/4,minutes:Ot*24*60/4,seconds:Ot*24*60*60/4,milliseconds:Ot*24*60*60*1e3/4},months:{weeks:Bn/7,days:Bn,hours:Bn*24,minutes:Bn*24*60,seconds:Bn*24*60*60,milliseconds:Bn*24*60*60*1e3},...Hs},wn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_f=wn.slice(0).reverse();function _n(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ze(r)}function If(t){return t<0?Math.floor(t):Math.ceil(t)}function Ws(t,e,n,r,a){const i=t[a][n],o=e[n]/i,s=Math.sign(o)===Math.sign(r[a]),l=!s&&r[a]!==0&&Math.abs(o)<=1?If(o):Math.trunc(o);r[a]+=l,e[n]-=l*i}function Sf(t,e){_f.reduce((n,r)=>Fe(e[r])?n:(n&&Ws(t,e,n,e,r),r),null)}class ze{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Ke.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n?wf:xf,this.isLuxonDuration=!0}static fromMillis(e,n){return ze.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Lt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new ze({values:Or(e,ze.normalizeUnit),loc:Ke.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(e){if(En(e))return ze.fromMillis(e);if(ze.isDuration(e))return e;if(typeof e=="object")return ze.fromObject(e);throw new Lt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=hf(e);return r?ze.fromObject(r,n):ze.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=pf(e);return r?ze.fromObject(r,n):ze.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Lt("need to specify a reason the Duration is invalid");const r=e instanceof Ft?e:new Ft(e,n);if(ot.throwOnInvalid)throw new Qm(r);return new ze({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Xo(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?wt.create(this.loc,r).formatDurationFromString(this,e):Ef}toHuman(e={}){const n=wn.map(r=>{const a=this.values[r];return Fe(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(a)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=ja(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(a+=".SSS"));let i=r.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e),r={};for(const a of wn)(On(n.values,a)||On(this.values,a))&&(r[a]=n.get(a)+this.get(a));return _n(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=xs(e(this.values[r],r));return _n(this,{values:n},!0)}get(e){return this[ze.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Or(e,ze.normalizeUnit)};return _n(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n}),i={loc:a};return r&&(i.conversionAccuracy=r),_n(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Sf(this.matrix,e),_n(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>ze.normalizeUnit(o));const n={},r={},a=this.toObject();let i;for(const o of wn)if(e.indexOf(o)>=0){i=o;let s=0;for(const c in r)s+=this.matrix[c][o]*r[c],r[c]=0;En(a[o])&&(s+=a[o]);const l=Math.trunc(s);n[o]=l,r[o]=(s*1e3-l*1e3)/1e3;for(const c in a)wn.indexOf(c)>wn.indexOf(o)&&Ws(this.matrix,a,c,n,o)}else En(a[o])&&(r[o]=a[o]);for(const o in r)r[o]!==0&&(n[i]+=o===i?r[o]:r[o]/this.matrix[i][o]);return _n(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return _n(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,a){return r===void 0||r===0?a===void 0||a===0:r===a}for(const r of wn)if(!n(this.values[r],e.values[r]))return!1;return!0}}const dr="Invalid Interval";function Df(t,e){return!t||!t.isValid?Je.invalid("missing or invalid start"):!e||!e.isValid?Je.invalid("missing or invalid end"):e<t?Je.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Je{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Lt("need to specify a reason the Interval is invalid");const r=e instanceof Ft?e:new Ft(e,n);if(ot.throwOnInvalid)throw new Xm(r);return new Je({invalid:r})}static fromDateTimes(e,n){const r=fr(e),a=fr(n),i=Df(r,a);return i==null?new Je({start:r,end:a}):i}static after(e,n){const r=ze.fromDurationLike(n),a=fr(e);return Je.fromDateTimes(a,a.plus(r))}static before(e,n){const r=ze.fromDurationLike(n),a=fr(e);return Je.fromDateTimes(a.minus(r),a)}static fromISO(e,n){const[r,a]=(e||"").split("/",2);if(r&&a){let i,o;try{i=Ae.fromISO(r,n),o=i.isValid}catch{o=!1}let s,l;try{s=Ae.fromISO(a,n),l=s.isValid}catch{l=!1}if(o&&l)return Je.fromDateTimes(i,s);if(o){const c=ze.fromISO(a,n);if(c.isValid)return Je.after(i,c)}else if(l){const c=ze.fromISO(r,n);if(c.isValid)return Je.before(s,c)}}return Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Je.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(fr).filter(o=>this.contains(o)).sort(),r=[];let{s:a}=this,i=0;for(;a<this.e;){const o=n[i]||this.e,s=+o>+this.e?this.e:o;r.push(Je.fromDateTimes(a,s)),a=s,i+=1}return r}splitBy(e){const n=ze.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,a=1,i;const o=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(Je.fromDateTimes(r,i)),r=i,a+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:Je.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return Je.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const a=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&a.push(Je.fromDateTimes(n,l.time)),n=null);return Je.merge(a)}difference(...e){return Je.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:dr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:dr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:dr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:dr}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:dr}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):ze.invalid(this.invalidReason)}mapEndpoints(e){return Je.fromDateTimes(e(this.s),e(this.e))}}class Br{static hasDST(e=ot.defaultZone){const n=Ae.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Kt.isValidZone(e)}static normalizeZone(e){return ln(e,ot.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ke.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ke.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Ke.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Ke.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ke.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Ke.create(n,null,"gregory").eras(e)}static features(){return{relative:ys()}}}function $s(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(ze.fromMillis(r).as("days"))}function Nf(t,e,n){const r=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter],["months",(s,l)=>l.month-s.month+(l.year-s.year)*12],["weeks",(s,l)=>{const c=$s(s,l);return(c-c%7)/7}],["days",$s]],a={};let i,o;for(const[s,l]of r)if(n.indexOf(s)>=0){i=s;let c=l(t,e);o=t.plus({[s]:c}),o>e?(t=t.plus({[s]:c-1}),c-=1):t=o,a[s]=c}return[t,a,o,i]}function Cf(t,e,n,r){let[a,i,o,s]=Nf(t,e,n);const l=e-a,c=n.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);c.length===0&&(o<e&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const h=ze.fromObject(i,r);return c.length>0?ze.fromMillis(l,r).shiftTo(...c).plus(h):h}const Qa={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Gs={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Af=Qa.hanidec.replace(/[\[|\]]/g,"").split("");function Tf(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Qa.hanidec)!==-1)e+=Af.indexOf(t[n]);else for(const a in Gs){const[i,o]=Gs[a];r>=i&&r<=o&&(e+=r-i)}}return parseInt(e,10)}else return e}function zt({numberingSystem:t},e=""){return new RegExp(`${Qa[t||"latn"]}${e}`)}const kf="missing Intl.DateTimeFormat.formatToParts support";function We(t,e=n=>n){return{regex:t,deser:([n])=>e(Tf(n))}}const Lf=String.fromCharCode(160),Ys=`[ ${Lf}]`,Zs=new RegExp(Ys,"g");function Of(t){return t.replace(/\./g,"\\.?").replace(Zs,Ys)}function Ks(t){return t.replace(/\./g,"").replace(Zs," ").toLowerCase()}function Bt(t,e){return t===null?null:{regex:RegExp(t.map(Of).join("|")),deser:([n])=>t.findIndex(r=>Ks(n)===Ks(r))+e}}function Js(t,e){return{regex:t,deser:([,n,r])=>Lr(n,r),groups:e}}function ei(t){return{regex:t,deser:([e])=>e}}function Rf(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mf(t,e){const n=zt(e),r=zt(e,"{2}"),a=zt(e,"{3}"),i=zt(e,"{4}"),o=zt(e,"{6}"),s=zt(e,"{1,2}"),l=zt(e,"{1,3}"),c=zt(e,"{1,6}"),h=zt(e,"{1,9}"),x=zt(e,"{2,4}"),y=zt(e,"{4,6}"),w=N=>({regex:RegExp(Rf(N.val)),deser:([k])=>k,literal:!0}),I=(N=>{if(t.literal)return w(N);switch(N.val){case"G":return Bt(e.eras("short",!1),0);case"GG":return Bt(e.eras("long",!1),0);case"y":return We(c);case"yy":return We(x,Ua);case"yyyy":return We(i);case"yyyyy":return We(y);case"yyyyyy":return We(o);case"M":return We(s);case"MM":return We(r);case"MMM":return Bt(e.months("short",!0,!1),1);case"MMMM":return Bt(e.months("long",!0,!1),1);case"L":return We(s);case"LL":return We(r);case"LLL":return Bt(e.months("short",!1,!1),1);case"LLLL":return Bt(e.months("long",!1,!1),1);case"d":return We(s);case"dd":return We(r);case"o":return We(l);case"ooo":return We(a);case"HH":return We(r);case"H":return We(s);case"hh":return We(r);case"h":return We(s);case"mm":return We(r);case"m":return We(s);case"q":return We(s);case"qq":return We(r);case"s":return We(s);case"ss":return We(r);case"S":return We(l);case"SSS":return We(a);case"u":return ei(h);case"uu":return ei(s);case"uuu":return We(n);case"a":return Bt(e.meridiems(),0);case"kkkk":return We(i);case"kk":return We(x,Ua);case"W":return We(s);case"WW":return We(r);case"E":case"c":return We(n);case"EEE":return Bt(e.weekdays("short",!1,!1),1);case"EEEE":return Bt(e.weekdays("long",!1,!1),1);case"ccc":return Bt(e.weekdays("short",!0,!1),1);case"cccc":return Bt(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Js(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Js(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return ei(/[a-z_+-/]{1,256}?/i);default:return w(N)}})(t)||{invalidReason:kf};return I.token=t,I}const Pf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Ff(t,e,n){const{type:r,value:a}=t;if(r==="literal")return{literal:!0,val:a};const i=n[r];let o=Pf[r];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function zf(t){return[`^${t.map(e=>e.regex).reduce((e,n)=>`${e}(${n.source})`,"")}$`,t]}function Bf(t,e,n){const r=t.match(e);if(r){const a={};let i=1;for(const o in n)if(On(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(r.slice(i,i+l))),i+=l}return[r,a]}else return[r,{}]}function jf(t){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Fe(t.z)||(n=Kt.create(t.z)),Fe(t.Z)||(n||(n=new yt(t.Z)),r=t.Z),Fe(t.q)||(t.M=(t.q-1)*3+1),Fe(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Fe(t.u)||(t.S=Ba(t.u)),[Object.keys(t).reduce((a,i)=>{const o=e(i);return o&&(a[o]=t[i]),a},{}),n,r]}let ti=null;function qf(){return ti||(ti=Ae.fromMillis(1555555555555)),ti}function Uf(t,e){if(t.literal)return t;const n=wt.macroTokenToFormatOpts(t.val);if(!n)return t;const r=wt.create(e,n).formatDateTimeParts(qf()).map(a=>Ff(a,e,n));return r.includes(void 0)?t:r}function Vf(t,e){return Array.prototype.concat(...t.map(n=>Uf(n,e)))}function Xs(t,e,n){const r=Vf(wt.parseFormat(n),t),a=r.map(o=>Mf(o,t)),i=a.find(o=>o.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[o,s]=zf(a),l=RegExp(o,"i"),[c,h]=Bf(e,l,s),[x,y,w]=h?jf(h):[null,null,void 0];if(On(h,"a")&&On(h,"H"))throw new ar("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:c,matches:h,result:x,zone:y,specificOffset:w}}}function Hf(t,e,n){const{result:r,zone:a,specificOffset:i,invalidReason:o}=Xs(t,e,n);return[r,a,i,o]}const Qs=[0,31,59,90,120,151,181,212,243,273,304,334],el=[0,31,60,91,121,152,182,213,244,274,305,335];function Rt(t,e){return new Ft("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function tl(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const a=r.getUTCDay();return a===0?7:a}function nl(t,e,n){return n+(ir(t)?el:Qs)[e-1]}function rl(t,e){const n=ir(t)?el:Qs,r=n.findIndex(i=>i<e),a=e-n[r];return{month:r+1,day:a}}function ni(t){const{year:e,month:n,day:r}=t,a=nl(e,n,r),i=tl(e,n,r);let o=Math.floor((a-i+10)/7),s;return o<1?(s=e-1,o=kr(s)):o>kr(e)?(s=e+1,o=1):s=e,{weekYear:s,weekNumber:o,weekday:i,...Rr(t)}}function al(t){const{weekYear:e,weekNumber:n,weekday:r}=t,a=tl(e,1,4),i=or(e);let o=n*7+r-a-3,s;o<1?(s=e-1,o+=or(s)):o>i?(s=e+1,o-=or(e)):s=e;const{month:l,day:c}=rl(s,o);return{year:s,month:l,day:c,...Rr(t)}}function ri(t){const{year:e,month:n,day:r}=t,a=nl(e,n,r);return{year:e,ordinal:a,...Rr(t)}}function il(t){const{year:e,ordinal:n}=t,{month:r,day:a}=rl(e,n);return{year:e,month:r,day:a,...Rr(t)}}function Wf(t){const e=Ar(t.weekYear),n=Zt(t.weekNumber,1,kr(t.weekYear)),r=Zt(t.weekday,1,7);return e?n?r?!1:Rt("weekday",t.weekday):Rt("week",t.week):Rt("weekYear",t.weekYear)}function $f(t){const e=Ar(t.year),n=Zt(t.ordinal,1,or(t.year));return e?n?!1:Rt("ordinal",t.ordinal):Rt("year",t.year)}function ol(t){const e=Ar(t.year),n=Zt(t.month,1,12),r=Zt(t.day,1,Tr(t.year,t.month));return e?n?r?!1:Rt("day",t.day):Rt("month",t.month):Rt("year",t.year)}function sl(t){const{hour:e,minute:n,second:r,millisecond:a}=t,i=Zt(e,0,23)||e===24&&n===0&&r===0&&a===0,o=Zt(n,0,59),s=Zt(r,0,59),l=Zt(a,0,999);return i?o?s?l?!1:Rt("millisecond",a):Rt("second",r):Rt("minute",n):Rt("hour",e)}const ai="Invalid DateTime",ll=864e13;function jr(t){return new Ft("unsupported zone",`the zone "${t.name}" is not supported`)}function ii(t){return t.weekData===null&&(t.weekData=ni(t.c)),t.weekData}function mr(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ae({...n,...e,old:n})}function cl(t,e,n){let r=t-e*60*1e3;const a=n.offset(r);if(e===a)return[r,e];r-=(a-e)*60*1e3;const i=n.offset(r);return a===i?[r,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function ul(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function qr(t,e,n){return cl(qa(t),e,n)}function dl(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:a,day:Math.min(t.c.day,Tr(r,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=qa(i);let[l,c]=cl(s,n,t.zone);return o!==0&&(l+=o,c=t.zone.offset(l)),{ts:l,o:c}}function hr(t,e,n,r,a,i){const{setZone:o,zone:s}=n;if(t&&Object.keys(t).length!==0){const l=e||s,c=Ae.fromObject(t,{...n,zone:l,specificOffset:i});return o?c:c.setZone(s)}else return Ae.invalid(new Ft("unparsable",`the input "${a}" can't be parsed as ${r}`))}function Ur(t,e,n=!0){return t.isValid?wt.create(Ke.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function oi(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=nt(t.c.year,n?6:4),e?(r+="-",r+=nt(t.c.month),r+="-",r+=nt(t.c.day)):(r+=nt(t.c.month),r+=nt(t.c.day)),r}function ml(t,e,n,r,a,i){let o=nt(t.c.hour);return e?(o+=":",o+=nt(t.c.minute),(t.c.second!==0||!n)&&(o+=":")):o+=nt(t.c.minute),(t.c.second!==0||!n)&&(o+=nt(t.c.second),(t.c.millisecond!==0||!r)&&(o+=".",o+=nt(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=nt(Math.trunc(-t.o/60)),o+=":",o+=nt(Math.trunc(-t.o%60))):(o+="+",o+=nt(Math.trunc(t.o/60)),o+=":",o+=nt(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const hl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Yf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},fl=["year","month","day","hour","minute","second","millisecond"],Zf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Kf=["year","ordinal","hour","minute","second","millisecond"];function pl(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Xo(t);return e}function gl(t,e){const n=ln(e.zone,ot.defaultZone),r=Ke.fromObject(e),a=ot.now();let i,o;if(Fe(t.year))i=a;else{for(const c of fl)Fe(t[c])&&(t[c]=hl[c]);const s=ol(t)||sl(t);if(s)return Ae.invalid(s);const l=n.offset(a);[i,o]=qr(t,l,n)}return new Ae({ts:i,zone:n,loc:r,o})}function vl(t,e,n){const r=Fe(n.round)?!0:n.round,a=(o,s)=>(o=ja(o,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,s)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return a(i(n.unit),n.unit);for(const o of n.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(t>e?-0:0,n.units[n.units.length-1])}function yl(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Ae{constructor(e){const n=e.zone||ot.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Ft("invalid input"):null)||(n.isValid?null:jr(n));this.ts=Fe(e.ts)?ot.now():e.ts;let a=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);a=ul(this.ts,o),r=Number.isNaN(a.year)?new Ft("invalid input"):null,a=r?null:a,i=r?null:o}this._zone=n,this.loc=e.loc||Ke.create(),this.invalid=r,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new Ae({})}static local(){const[e,n]=yl(arguments),[r,a,i,o,s,l,c]=n;return gl({year:r,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},e)}static utc(){const[e,n]=yl(arguments),[r,a,i,o,s,l,c]=n;return e.zone=yt.utcInstance,gl({year:r,month:a,day:i,hour:o,minute:s,second:l,millisecond:c},e)}static fromJSDate(e,n={}){const r=rh(e)?e.valueOf():NaN;if(Number.isNaN(r))return Ae.invalid("invalid input");const a=ln(n.zone,ot.defaultZone);return a.isValid?new Ae({ts:r,zone:a,loc:Ke.fromObject(n)}):Ae.invalid(jr(a))}static fromMillis(e,n={}){if(En(e))return e<-ll||e>ll?Ae.invalid("Timestamp out of range"):new Ae({ts:e,zone:ln(n.zone,ot.defaultZone),loc:Ke.fromObject(n)});throw new Lt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(En(e))return new Ae({ts:e*1e3,zone:ln(n.zone,ot.defaultZone),loc:Ke.fromObject(n)});throw new Lt("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ln(n.zone,ot.defaultZone);if(!r.isValid)return Ae.invalid(jr(r));const a=ot.now(),i=Fe(n.specificOffset)?r.offset(a):n.specificOffset,o=Or(e,pl),s=!Fe(o.ordinal),l=!Fe(o.year),c=!Fe(o.month)||!Fe(o.day),h=l||c,x=o.weekYear||o.weekNumber,y=Ke.fromObject(n);if((h||s)&&x)throw new ar("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new ar("Can't mix ordinal dates with month/day");const w=x||o.weekday&&!h;let I,N,k=ul(a,i);w?(I=Zf,N=Gf,k=ni(k)):s?(I=Kf,N=Yf,k=ri(k)):(I=fl,N=hl);let S=!1;for(const Y of I){const Q=o[Y];Fe(Q)?S?o[Y]=N[Y]:o[Y]=k[Y]:S=!0}const E=w?Wf(o):s?$f(o):ol(o),A=E||sl(o);if(A)return Ae.invalid(A);const D=w?al(o):s?il(o):o,[T,P]=qr(D,i,r),z=new Ae({ts:T,zone:r,o:P,loc:y});return o.weekday&&h&&e.weekday!==z.weekday?Ae.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${z.toISO()}`):z}static fromISO(e,n={}){const[r,a]=uf(e);return hr(r,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,a]=df(e);return hr(r,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,a]=mf(e);return hr(r,a,n,"HTTP",n)}static fromFormat(e,n,r={}){if(Fe(e)||Fe(n))throw new Lt("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=r,o=Ke.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,c,h]=Hf(o,e,n);return h?Ae.invalid(h):hr(s,l,r,`format ${n}`,e,c)}static fromString(e,n,r={}){return Ae.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,a]=bf(e);return hr(r,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Lt("need to specify a reason the DateTime is invalid");const r=e instanceof Ft?e:new Ft(e,n);if(ot.throwOnInvalid)throw new Jm(r);return new Ae({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ii(this).weekYear:NaN}get weekNumber(){return this.isValid?ii(this).weekNumber:NaN}get weekday(){return this.isValid?ii(this).weekday:NaN}get ordinal(){return this.isValid?ri(this.c).ordinal:NaN}get monthShort(){return this.isValid?Br.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Br.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Br.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Br.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return ir(this.year)}get daysInMonth(){return Tr(this.year,this.month)}get daysInYear(){return this.isValid?or(this.year):NaN}get weeksInWeekYear(){return this.isValid?kr(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:a}=wt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(yt.instance(e),n)}toLocal(){return this.setZone(ot.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ln(e,ot.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||r){const i=e.offset(this.ts),o=this.toObject();[a]=qr(o,i,e)}return mr(this,{ts:a,zone:e})}else return Ae.invalid(jr(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return mr(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Or(e,pl),r=!Fe(n.weekYear)||!Fe(n.weekNumber)||!Fe(n.weekday),a=!Fe(n.ordinal),i=!Fe(n.year),o=!Fe(n.month)||!Fe(n.day),s=i||o,l=n.weekYear||n.weekNumber;if((s||a)&&l)throw new ar("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new ar("Can't mix ordinal dates with month/day");let c;r?c=al({...ni(this.c),...n}):Fe(n.ordinal)?(c={...this.toObject(),...n},Fe(n.day)&&(c.day=Math.min(Tr(c.year,c.month),c.day))):c=il({...ri(this.c),...n});const[h,x]=qr(c,this.o,this.zone);return mr(this,{ts:h,o:x})}plus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e);return mr(this,dl(this,n))}minus(e){if(!this.isValid)return this;const n=ze.fromDurationLike(e).negate();return mr(this,dl(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=ze.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?wt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):ai}toLocaleString(e=za,n={}){return this.isValid?wt.create(this.loc.clone(n),e).formatDateTime(this):ai}toLocaleParts(e={}){return this.isValid?wt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let s=oi(this,o);return s+="T",s+=ml(this,o,n,r,a,i),s}toISODate({format:e="extended"}={}){return this.isValid?oi(this,e==="extended"):null}toISOWeekDate(){return Ur(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+ml(this,o==="extended",n,e,r,i):null}toRFC2822(){return Ur(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ur(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?oi(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let a="HH:mm:ss.SSS";return(n||e)&&(r&&(a+=" "),n?a+="z":e&&(a+="ZZ")),Ur(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ai}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return ze.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=ah(n).map(ze.normalizeUnit),o=e.valueOf()>this.valueOf(),s=o?this:e,l=o?e:this,c=Cf(s,l,i,a);return o?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(Ae.now(),e,n)}until(e){return this.isValid?Je.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=r&&r<=a.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Ae.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),vl(n,this.plus(r),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?vl(e.base||Ae.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ae.isDateTime))throw new Lt("min requires all arguments be DateTimes");return bs(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ae.isDateTime))throw new Lt("max requires all arguments be DateTimes");return bs(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:a=null,numberingSystem:i=null}=r,o=Ke.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return Xs(o,e,n)}static fromStringExplain(e,n,r={}){return Ae.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return za}static get DATE_MED(){return Qo}static get DATE_MED_WITH_WEEKDAY(){return eh}static get DATE_FULL(){return es}static get DATE_HUGE(){return ts}static get TIME_SIMPLE(){return ns}static get TIME_WITH_SECONDS(){return rs}static get TIME_WITH_SHORT_OFFSET(){return as}static get TIME_WITH_LONG_OFFSET(){return is}static get TIME_24_SIMPLE(){return os}static get TIME_24_WITH_SECONDS(){return ss}static get TIME_24_WITH_SHORT_OFFSET(){return ls}static get TIME_24_WITH_LONG_OFFSET(){return cs}static get DATETIME_SHORT(){return us}static get DATETIME_SHORT_WITH_SECONDS(){return ds}static get DATETIME_MED(){return ms}static get DATETIME_MED_WITH_SECONDS(){return hs}static get DATETIME_MED_WITH_WEEKDAY(){return th}static get DATETIME_FULL(){return fs}static get DATETIME_FULL_WITH_SECONDS(){return ps}static get DATETIME_HUGE(){return gs}static get DATETIME_HUGE_WITH_SECONDS(){return vs}}function fr(t){if(Ae.isDateTime(t))return t;if(t&&t.valueOf&&En(t.valueOf()))return Ae.fromJSDate(t);if(t&&typeof t=="object")return Ae.fromObject(t);throw new Lt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function si(t,e){return Ae.fromISO(t,{zone:e}).toJSDate()}function bl(t,e){if(e){const n=new Date(t.toLocaleString("en-US",{timeZone:e}));return{dateTime:El(n),timeZone:e}}else return{dateTime:El(t)}}function jn(t,e){const n=new Date(t.toLocaleString("en-US",{timeZone:e}));return n.getFullYear()+"-"+("0"+(n.getMonth()+1)).slice(-2)+"-"+("0"+n.getDate()).slice(-2)}function El(t,e=!1){let n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(r<10?"0"+r:r)+"/"+n:n+"-"+(r<10?"0"+r:r)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(s<10?"0"+s:s)}const Jf={nbsp:" ",amp:"&",lt:"<",gt:">",quot:'"',apos:"'",cent:"\xA2",pound:"\xA3",yen:"\xA5",euro:"\u20AC",copy:"\xA9",reg:"\xAE"};function Ne(t){return t==null?"":(t=t==null?void 0:t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(n)}),t=t.replace(/&([^;]+);/g,(e,n)=>Jf[n]),t)}function Re(t){return t==null?"":t==null?void 0:t.replace(/[\u0100-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function Xf(t){return new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result),r.onerror=a=>n(a)})}class qn{constructor(){m(this,"name"),m(this,"startPeriod"),m(this,"endPeriod"),m(this,"monday"),m(this,"tuesday"),m(this,"wednesday"),m(this,"thursday"),m(this,"friday"),m(this,"saturday"),m(this,"sunday")}static fromSettingsPeriodWorkingDto(e){const n=new qn;return n.name=Ne(e.name),n.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},n.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(n.monday=[],e.monday.forEach(r=>{var a;(a=n.monday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.tuesday&&(n.tuesday=[],e.tuesday.forEach(r=>{var a;(a=n.tuesday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.wednesday&&(n.wednesday=[],e.wednesday.forEach(r=>{var a;(a=n.wednesday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.thursday&&(n.thursday=[],e.thursday.forEach(r=>{var a;(a=n.thursday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.friday&&(n.friday=[],e.friday.forEach(r=>{var a;(a=n.friday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.saturday&&(n.saturday=[],e.saturday.forEach(r=>{var a;(a=n.saturday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.sunday&&(n.sunday=[],e.sunday.forEach(r=>{var a;(a=n.sunday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),n}static toSettingsPeriodWorkingDto(e){const n=new Qf;return n.name=Re(e.name),n.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},n.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(n.monday=[],e.monday.forEach(r=>{var a;(a=n.monday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.tuesday&&(n.tuesday=[],e.tuesday.forEach(r=>{var a;(a=n.tuesday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.wednesday&&(n.wednesday=[],e.wednesday.forEach(r=>{var a;(a=n.wednesday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.thursday&&(n.thursday=[],e.thursday.forEach(r=>{var a;(a=n.thursday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.friday&&(n.friday=[],e.friday.forEach(r=>{var a;(a=n.friday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.saturday&&(n.saturday=[],e.saturday.forEach(r=>{var a;(a=n.saturday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),e.sunday&&(n.sunday=[],e.sunday.forEach(r=>{var a;(a=n.sunday)==null||a.push(ft.fromSettingsPeriodWorkingDayDto(r))})),n}}class ft{constructor(){m(this,"service"),m(this,"start"),m(this,"end")}static fromSettingsPeriodWorkingDayDto(e){var n,r;const a=new ft;return a.end=e.end,e.service&&(a.service={id:(n=e.service)==null?void 0:n.id,name:(r=e.service)==null?void 0:r.name}),a.start=e.start,a}static toSettingsPeriodWorkingDayDto(e){var n,r;const a=new ep;return a.end=e.end,e.service&&(a.service={id:(n=e.service)==null?void 0:n.id,name:(r=e.service)==null?void 0:r.name}),a.start=e.start,a}}class Un{constructor(){m(this,"day"),m(this,"hours")}static fromSettingsWorkingDayDto(e){const n=new Un;return n.day=e.day,n.hours=[],e.hours.forEach(r=>n.hours.push(Vr.fromSettingsWorkingHoursDto(r))),n}static toSettingsWorkingDayDto(e){const n=new tp;return n.day=e.day,n.hours=[],e.hours.forEach(r=>n.hours.push(Vr.toSettingsWorkingHoursDto(r))),n}}class Vr{constructor(){m(this,"start"),m(this,"end")}static fromSettingsWorkingHoursDto(e){const n=new Vr;return n.start=e.start,n.end=e.end,n}static toSettingsWorkingHoursDto(e){const n=new np;return n.start=e.start,n.end=e.end,n}}class Qf{constructor(){m(this,"name"),m(this,"startPeriod"),m(this,"endPeriod"),m(this,"monday"),m(this,"tuesday"),m(this,"wednesday"),m(this,"thursday"),m(this,"friday"),m(this,"saturday"),m(this,"sunday")}}class ep{constructor(){m(this,"service"),m(this,"start"),m(this,"end")}}class tp{constructor(){m(this,"day"),m(this,"hours")}}class np{constructor(){m(this,"start"),m(this,"end")}}const rp=(t,e)=>e.some(n=>t instanceof n);let xl,wl;function ap(){return xl||(xl=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ip(){return wl||(wl=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const _l=new WeakMap,li=new WeakMap,Il=new WeakMap,ci=new WeakMap,ui=new WeakMap;function op(t){const e=new Promise((n,r)=>{const a=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(pr(t.result)),a()},o=()=>{r(t.error),a()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&_l.set(n,t)}).catch(()=>{}),ui.set(e,t),e}function sp(t){if(li.has(t))return;const e=new Promise((n,r)=>{const a=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),a()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});li.set(t,e)}let di={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return li.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Il.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return pr(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function lp(t){di=t(di)}function cp(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(mi(this),e,...n);return Il.set(r,e.sort?e.sort():[e]),pr(r)}:ip().includes(t)?function(...e){return t.apply(mi(this),e),pr(_l.get(this))}:function(...e){return pr(t.apply(mi(this),e))}}function up(t){return typeof t=="function"?cp(t):(t instanceof IDBTransaction&&sp(t),rp(t,ap())?new Proxy(t,di):t)}function pr(t){if(t instanceof IDBRequest)return op(t);if(ci.has(t))return ci.get(t);const e=up(t);return e!==t&&(ci.set(t,e),ui.set(e,t)),e}const mi=t=>ui.get(t),dp=["get","getKey","getAll","getAllKeys","count"],mp=["put","add","delete","clear"],hi=new Map;function Sl(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(hi.get(e))return hi.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,a=mp.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||dp.includes(n)))return;const i=async function(o,...s){const l=this.transaction(o,a?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(s.shift())),(await Promise.all([c[n](...s),a&&l.done]))[0]};return hi.set(e,i),i}lp(t=>({...t,get:(e,n,r)=>Sl(e,n)||t.get(e,n,r),has:(e,n)=>!!Sl(e,n)||t.has(e,n)}));class fi{constructor(){m(this,"id"),m(this,"name"),m(this,"company"),m(this,"managers"),m(this,"members")}static fromDto(e){var n,r;const a=new fi;return a.id=e.id,a.name=e.name,a.company=e.company,a.members=((n=e.members)!=null?n:[]).map(i=>i.id),a.managers=((r=e.managers)!=null?r:[]).map(i=>i.id),a}}class _t{constructor(e,n,r){m(this,"mimeType"),m(this,"url"),m(this,"data"),this.mimeType=e,this.url=n,this.data=r}static fromImageDto(e){if(e)return new _t(e.mimeType,e.url&&e.url.startsWith("http")?e.url+"?"+Math.random().toString(32):e.url,e.data)}static toImageDto(e){let n;if(e){const r=JSON.parse(JSON.stringify(e));r.data!==void 0&&(n=new _t(r.mimeType,r.url,r.data))}return n}static fromFileData(e,n){return e?new _t("","",""):n?new _t("","",n):void 0}}class In{constructor(){m(this,"id"),m(this,"name"),m(this,"value"),m(this,"values")}static fromCustomFormValueDto(e){var n;const r=new In;r.id=e.id,r.name=Ne(e.name),r.value=Ne(e.value);const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(In.fromCustomFormValueDto(i))}),r.values=a,r}static toFormValueDto(e){var n;const r=new fp;r.id=e.id,r.name=Re(e.name),r.value=Re(e.value);const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(In.toFormValueDto(i))}),r.values=a,r}}class jt{constructor(){m(this,"id"),m(this,"label"),m(this,"type"),m(this,"inputType"),m(this,"visible"),m(this,"disabled"),m(this,"required"),m(this,"values"),m(this,"subItem"),m(this,"formatType"),m(this,"pattern"),m(this,"minlength"),m(this,"maxlength"),m(this,"externalId"),m(this,"help"),m(this,"placeholder"),m(this,"otherValue"),m(this,"category"),m(this,"readonly"),m(this,"value"),m(this,"multiple"),m(this,"bind"),m(this,"bindGroup")}static fromFormDto(e){var n,r,a,i,o,s;const l=new jt;l.id=e.id,l.label=Ne(e.title?e.title:e.label),l.type=e.type,l.inputType=e.inputType,l.visible=e.visible,l.disabled=e.disabled,l.required=e.mandatory;const c=[];(n=e.values)==null||n.forEach(x=>{c.push(In.fromCustomFormValueDto(x))}),l.values=c;const h=[];return e.subItem&&((r=e.subItem)==null||r.forEach(x=>{h.push(jt.fromFormDto(x))})),l.subItem=h,l.readonly=e.readonly,l.multiple=e.multiple,l.pattern=(a=e.valueFormat)==null?void 0:a.regexValue,l.minlength=(i=e.valueFormat)==null?void 0:i.minLength,l.maxlength=(o=e.valueFormat)==null?void 0:o.maxLength,l.formatType=(s=e.valueFormat)==null?void 0:s.type,l.externalId=e.externalId,l.help=e.help,l.placeholder=e.placeholder,l.otherValue=e.otherValue,l.category=e.category,l.bind=e.bind,l.bindGroup=e.bindGroup,l.value=Ne(e.value),l}static fromWidgetFormItemDto(e){var n;const r=new jt;r.id=e.id,r.label=Ne(e.title?e.title:e.label),r.type=e.type,r.inputType=e.inputType,r.visible=e.visible,r.disabled=e.disabled,r.required=e.required;const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(In.fromCustomFormValueDto(i))}),r.values=a,r.readonly=e.readonly,r.multiple=e.multiple,r.pattern=e.pattern,r.minlength=e.minlength,r.maxlength=e.maxlength,r.formatType=e.pattern?"regex":"none",r.externalId=e.externalId,r.help=e.help,r.placeholder=e.placeholder,r.bind=e.bind,r.bindGroup=e.bindGroup,r.value=Ne(e.value),r}static toFormDto(e){var n,r;const a=new hp;a.id=e.id,a.label=Re(e.label),a.title=Re(e.label),a.type=e.type,a.inputType=e.inputType,a.visible=e.visible,a.disabled=e.disabled,a.mandatory=e.required;const i=[];(n=e.values)==null||n.forEach(s=>{i.push(In.toFormValueDto(s))}),a.values=i,a.valueFormat={type:e.formatType,maxLength:e.maxlength,minLength:e.minlength,regexValue:e.pattern};const o=[];return e.subItem&&((r=e.subItem)==null||r.forEach(s=>{o.push(jt.toFormDto(s))})),a.subItem=o,a.readonly=e.readonly,a.multiple=e.multiple,a.bind=e.bind,a.bindGroup=e.bindGroup,a.externalId=e.externalId,a.help=e.help,a.placeholder=e.placeholder,a.otherValue=e.otherValue,a.category=e.category,Array.isArray(e.value)?a.value=e.value.map(s=>Re(s)):typeof e.value=="string"?a.value=Re(e.value):a.value=e.value,a}static formItemToFormField(e){var n;return{id:e.id,inputType:e.inputType||e.type,label:e.label,mandatory:e.required,visible:e.visible,values:(n=e.values)==null?void 0:n.map(r=>({label:r.name,value:r.value})),bind:e.bind,multiple:e.multiple,value:e.value,pattern:e.pattern,disabled:e.disabled,minlength:e.minlength,maxlength:e.maxlength}}static formItemsToFormFields(e,n=!1){if(e&&e.length>0){const r=[];return e.forEach(a=>{var i;n&&a.subItem&&a.subItem.length>0?(i=a.subItem)==null||i.forEach(o=>{r.push(jt.formItemToFormField(o))}):r.push(jt.formItemToFormField(a))}),r}}}class hp{constructor(){m(this,"id"),m(this,"label"),m(this,"title"),m(this,"type"),m(this,"inputType"),m(this,"visible"),m(this,"disabled"),m(this,"mandatory"),m(this,"values"),m(this,"subItem"),m(this,"valueFormat"),m(this,"externalId"),m(this,"help"),m(this,"placeholder"),m(this,"otherValue"),m(this,"category"),m(this,"readonly"),m(this,"value"),m(this,"fileName"),m(this,"multiple"),m(this,"bind"),m(this,"bindGroup")}}class fp{constructor(){m(this,"id"),m(this,"name"),m(this,"value"),m(this,"values")}}class Jt{constructor(){m(this,"id"),m(this,"userId"),m(this,"company"),m(this,"firstName"),m(this,"lastName"),m(this,"gender"),m(this,"title"),m(this,"email"),m(this,"phone"),m(this,"otherPhone"),m(this,"description"),m(this,"vacations"),m(this,"role"),m(this,"workingHours"),m(this,"customWorkingHours"),m(this,"picture"),m(this,"servicesSkill"),m(this,"color"),m(this,"availableForWidget"),m(this,"externalId"),m(this,"additionalFields"),m(this,"externalCalendars"),m(this,"calendarLink")}fullName(){return this.firstName+" "+this.lastName}static fromStaffDto(e){const n=new Jt;return n.id=e.id,e.company&&(n.company={id:e.company.id,name:e.company.name}),n.firstName=Ne(e.firstName),n.lastName=Ne(e.lastName),n.email=e.email,n.phone=e.phone,n.gender=e.gender,n.title=e.title,n.otherPhone=e.otherPhone,n.description=Ne(e.description),n.role=e.role,n.externalId=e.externalId,e.vacations&&(n.vacations=[],e.vacations.forEach(r=>{var a;return(a=n.vacations)==null?void 0:a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(Un.fromSettingsWorkingDayDto(r))})),e.customWorkingHours&&(n.customWorkingHours=[],e.customWorkingHours.forEach(r=>{var a;return(a=n.customWorkingHours)==null?void 0:a.push(qn.fromSettingsPeriodWorkingDto(r))})),e.additionalFields&&(n.additionalFields=[],e.additionalFields.forEach(r=>{var a;return(a=n.additionalFields)==null?void 0:a.push(jt.fromFormDto(r))})),e.externalCalendars&&(n.externalCalendars=[],e.externalCalendars.forEach(r=>{var a;return(a=n.externalCalendars)==null?void 0:a.push(r)})),e.calendarLink&&(n.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(n.picture=_t.fromImageDto(e.picture)),e.services&&(n.servicesSkill=[],e.services.forEach(r=>{var a;(a=n.servicesSkill)==null||a.push(r.id)})),n.color=e.color,n.availableForWidget=e.availableForWidget,n}static toStaffDto(e){const n=new pp;return n.id=e.id,e.company&&(n.company={id:e.company.id,name:e.company.name}),n.firstName=Re(e.firstName),n.lastName=Re(e.lastName),n.email=e.email,n.phone=e.phone,n.gender=e.gender,n.title=e.title,n.otherPhone=e.otherPhone,n.description=Re(e.description),n.role=e.role,n.externalId=e.externalId,e.vacations&&(n.vacations=[],e.vacations.forEach(r=>{var a;return(a=n.vacations)==null?void 0:a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(Un.fromSettingsWorkingDayDto(r))})),e.customWorkingHours&&(n.customWorkingHours=[],e.customWorkingHours.forEach(r=>{var a;return(a=n.customWorkingHours)==null?void 0:a.push(qn.fromSettingsPeriodWorkingDto(r))})),e.additionalFields&&(n.additionalFields=[],e.additionalFields.forEach(r=>{var a;return(a=n.additionalFields)==null?void 0:a.push(jt.fromFormDto(r))})),e.externalCalendars&&(n.externalCalendars=[],e.externalCalendars.forEach(r=>{var a;return(a=n.externalCalendars)==null?void 0:a.push(r)})),e.calendarLink&&(n.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(n.picture=_t.toImageDto(e.picture)),e.servicesSkill&&(n.services=[],e.servicesSkill.forEach(r=>{var a;(a=n.services)==null||a.push({id:r})})),n.color=e.color,n.availableForWidget=e.availableForWidget,n}}class pp{constructor(){m(this,"id"),m(this,"company"),m(this,"firstName"),m(this,"lastName"),m(this,"gender"),m(this,"title"),m(this,"email"),m(this,"phone"),m(this,"otherPhone"),m(this,"description"),m(this,"vacations"),m(this,"role"),m(this,"workingHours"),m(this,"customWorkingHours"),m(this,"picture"),m(this,"services"),m(this,"color"),m(this,"availableForWidget"),m(this,"externalId"),m(this,"additionalFields"),m(this,"externalCalendars"),m(this,"calendarLink")}}class cn{constructor(){m(this,"id"),m(this,"company"),m(this,"name"),m(this,"description"),m(this,"capacity"),m(this,"price"),m(this,"bufferDuration"),m(this,"preparationDuration"),m(this,"validation"),m(this,"externalId"),m(this,"duration"),m(this,"locations"),m(this,"locationCustom"),m(this,"picture"),m(this,"staffsSkill"),m(this,"color"),m(this,"type"),m(this,"availability"),m(this,"minAppointmentDate"),m(this,"maxAppointmentDate"),m(this,"appointmentDateScope"),m(this,"i18n"),m(this,"resources"),m(this,"maxCancellationDelay")}static fromServiceDto(e){var n;const r=new cn;r.id=e.id,r.company=e.company?{id:e.company.id,name:Ne(e.company.name)}:void 0,r.name=Ne(e.name),r.duration=e.duration,r.description=Ne(e.description),r.capacity=e.capacity,r.price=e.price,r.bufferDuration=e.bufferDuration,r.preparationDuration=e.preparationDuration,r.validation=e.validation,r.externalId=e.externalId,r.maxAppointmentDate=e.maxAppointmentDate,r.minAppointmentDate=e.minAppointmentDate,r.appointmentDateScope=e.appointmentDateScope;const a=[];return(n=e.resource)==null||n.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),r.resources=a,r.type=e.bypassFreeBusyAvailabilities!==void 0&&e.bypassFreeBusyAvailabilities?"event":"default",r.locations=e.locations,r.locationCustom=Ne(e.locationCustom),r.picture=_t.fromImageDto(e.picture),e.staff&&(r.staffsSkill=[],e.staff.forEach(i=>{var o;(o=r.staffsSkill)==null||o.push(i.id)})),e.i18n&&(r.i18n={},e.i18n.fr&&(r.i18n.fr=e.i18n.fr),e.i18n.en&&(r.i18n.en=e.i18n.en),e.i18n.es&&(r.i18n.es=e.i18n.es),e.i18n.de&&(r.i18n.de=e.i18n.de),e.i18n.it&&(r.i18n.it=e.i18n.it),e.i18n.pt&&(r.i18n.pt=e.i18n.pt),e.i18n.jp&&(r.i18n.jp=e.i18n.jp),e.i18n.nl&&(r.i18n.nl=e.i18n.nl)),r.color=e.color,r.availability=e.availability,r.maxCancellationDelay=e.maxCancellationDelay,r}static toServiceDto(e){var n;const r=new gp;r.id=e.id,r.name=Re(e.name),r.duration=e.duration,r.description=Re(e.description),r.capacity=e.capacity,r.price=e.price,r.bufferDuration=e.bufferDuration,r.preparationDuration=e.preparationDuration,r.validation=e.validation,r.externalId=e.externalId,r.picture=_t.toImageDto(e.picture),r.maxAppointmentDate=e.maxAppointmentDate,r.minAppointmentDate=e.minAppointmentDate,r.appointmentDateScope=e.appointmentDateScope;const a=[];return r.bypassFreeBusyAvailabilities=e.type==="event",(n=e.resources)==null||n.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),r.resource=a,r.locations=e.locations,r.locationCustom=Re(e.locationCustom),e.staffsSkill&&(r.staff=[],e.staffsSkill.forEach(i=>{var o;(o=r.staff)==null||o.push({id:i})})),e.i18n&&(r.i18n={},e.i18n.fr&&(r.i18n.fr=e.i18n.fr),e.i18n.en&&(r.i18n.en=e.i18n.en),e.i18n.es&&(r.i18n.es=e.i18n.es),e.i18n.de&&(r.i18n.de=e.i18n.de),e.i18n.it&&(r.i18n.it=e.i18n.it),e.i18n.pt&&(r.i18n.pt=e.i18n.pt),e.i18n.jp&&(r.i18n.jp=e.i18n.jp),e.i18n.nl&&(r.i18n.nl=e.i18n.nl)),r.color=e.color,r.availability=e.availability,r.maxCancellationDelay=e.maxCancellationDelay,r}}class gp{constructor(){m(this,"id"),m(this,"company"),m(this,"name"),m(this,"duration"),m(this,"locations"),m(this,"locationCustom"),m(this,"picture"),m(this,"description"),m(this,"capacity"),m(this,"price"),m(this,"bufferDuration"),m(this,"preparationDuration"),m(this,"validation"),m(this,"externalId"),m(this,"staff"),m(this,"color"),m(this,"availability"),m(this,"resource"),m(this,"bypassFreeBusyAvailabilities"),m(this,"minAppointmentDate"),m(this,"maxAppointmentDate"),m(this,"appointmentDateScope"),m(this,"i18n"),m(this,"maxCancellationDelay")}}class pi{constructor(e){m(this,"text"),this.text=e}}class gr{constructor(){m(this,"street"),m(this,"otherStreet"),m(this,"zipCode"),m(this,"city"),m(this,"country"),m(this,"state")}static fromAddressDto(e){const n=new gr;return n.street=Ne(e.street),n.otherStreet=Ne(e.otherStreet),n.zipCode=Ne(e.zipCode),n.city=Ne(e.city),n.country=Ne(e.country),n.state=Ne(e.state),n}static toAddressDto(e){const n=new vp;return n.street=Re(e.street),n.otherStreet=Re(e.otherStreet),n.zipCode=Re(e.zipCode),n.city=Re(e.city),n.country=Re(e.country),n.state=Re(e.state),n}}class vp{constructor(){m(this,"street"),m(this,"otherStreet"),m(this,"zipCode"),m(this,"city"),m(this,"country"),m(this,"state")}}var Le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function bp(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Hr={exports:{}};function Ep(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dl={exports:{}};const xp={},wp=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"})),_p=bp(wp);var Nl;function Be(){return Nl||(Nl=1,function(t,e){(function(n,r){t.exports=r()})(Le,function(){var n=n||function(r,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Le<"u"&&Le.crypto&&(i=Le.crypto),!i&&typeof Ep=="function")try{i=_p}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function E(){}return function(A){var D;return E.prototype=A,D=new E,E.prototype=null,D}}(),l={},c=l.lib={},h=c.Base=function(){return{extend:function(E){var A=s(this);return E&&A.mixIn(E),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var A in E)E.hasOwnProperty(A)&&(this[A]=E[A]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=h.extend({init:function(E,A){E=this.words=E||[],A!=a?this.sigBytes=A:this.sigBytes=E.length*4},toString:function(E){return(E||w).stringify(this)},concat:function(E){var A=this.words,D=E.words,T=this.sigBytes,P=E.sigBytes;if(this.clamp(),T%4)for(var z=0;z<P;z++){var Y=D[z>>>2]>>>24-z%4*8&255;A[T+z>>>2]|=Y<<24-(T+z)%4*8}else for(var Q=0;Q<P;Q+=4)A[T+Q>>>2]=D[Q>>>2];return this.sigBytes+=P,this},clamp:function(){var E=this.words,A=this.sigBytes;E[A>>>2]&=4294967295<<32-A%4*8,E.length=r.ceil(A/4)},clone:function(){var E=h.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var A=[],D=0;D<E;D+=4)A.push(o());return new x.init(A,E)}}),y=l.enc={},w=y.Hex={stringify:function(E){for(var A=E.words,D=E.sigBytes,T=[],P=0;P<D;P++){var z=A[P>>>2]>>>24-P%4*8&255;T.push((z>>>4).toString(16)),T.push((z&15).toString(16))}return T.join("")},parse:function(E){for(var A=E.length,D=[],T=0;T<A;T+=2)D[T>>>3]|=parseInt(E.substr(T,2),16)<<24-T%8*4;return new x.init(D,A/2)}},I=y.Latin1={stringify:function(E){for(var A=E.words,D=E.sigBytes,T=[],P=0;P<D;P++){var z=A[P>>>2]>>>24-P%4*8&255;T.push(String.fromCharCode(z))}return T.join("")},parse:function(E){for(var A=E.length,D=[],T=0;T<A;T++)D[T>>>2]|=(E.charCodeAt(T)&255)<<24-T%4*8;return new x.init(D,A)}},N=y.Utf8={stringify:function(E){try{return decodeURIComponent(escape(I.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return I.parse(unescape(encodeURIComponent(E)))}},k=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=N.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var A,D=this._data,T=D.words,P=D.sigBytes,z=this.blockSize,Y=z*4,Q=P/Y;E?Q=r.ceil(Q):Q=r.max((Q|0)-this._minBufferSize,0);var B=Q*z,W=r.min(B*4,P);if(B){for(var ne=0;ne<B;ne+=z)this._doProcessBlock(T,ne);A=T.splice(0,B),D.sigBytes-=W}return new x.init(A,W)},clone:function(){var E=h.clone.call(this);return E._data=this._data.clone(),E},_minBufferSize:0});c.Hasher=k.extend({cfg:h.extend(),init:function(E){this.cfg=this.cfg.extend(E),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(E){return this._append(E),this._process(),this},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(E){return function(A,D){return new E.init(D).finalize(A)}},_createHmacHelper:function(E){return function(A,D){return new S.HMAC.init(E,D).finalize(A)}}});var S=l.algo={};return l}(Math);return n})}(Dl)),Dl.exports}(function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[],h=[];(function(){function w(S){for(var E=r.sqrt(S),A=2;A<=E;A++)if(!(S%A))return!1;return!0}function I(S){return(S-(S|0))*4294967296|0}for(var N=2,k=0;k<64;)w(N)&&(k<8&&(c[k]=I(r.pow(N,1/2))),h[k]=I(r.pow(N,1/3)),k++),N++})();var x=[],y=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(w,I){for(var N=this._hash.words,k=N[0],S=N[1],E=N[2],A=N[3],D=N[4],T=N[5],P=N[6],z=N[7],Y=0;Y<64;Y++){if(Y<16)x[Y]=w[I+Y]|0;else{var Q=x[Y-15],B=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,W=x[Y-2],ne=(W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10;x[Y]=B+x[Y-7]+ne+x[Y-16]}var R=D&T^~D&P,V=k&S^k&E^S&E,G=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),U=(D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25),q=z+U+R+h[Y]+x[Y],Z=G+V;z=P,P=T,T=D,D=A+q|0,A=E,E=S,S=k,k=q+Z|0}N[0]=N[0]+k|0,N[1]=N[1]+S|0,N[2]=N[2]+E|0,N[3]=N[3]+A|0,N[4]=N[4]+D|0,N[5]=N[5]+T|0,N[6]=N[6]+P|0,N[7]=N[7]+z|0},_doFinalize:function(){var w=this._data,I=w.words,N=this._nDataBytes*8,k=w.sigBytes*8;return I[k>>>5]|=128<<24-k%32,I[(k+64>>>9<<4)+14]=r.floor(N/4294967296),I[(k+64>>>9<<4)+15]=N,w.sigBytes=I.length*4,this._process(),this._hash},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});a.SHA256=s._createHelper(y),a.HmacSHA256=s._createHmacHelper(y)}(Math),n.SHA256})})(Hr);const Ip=Hr.exports,Wr=["#BBBCD4","#33357D","#1A1B3F","#FCE8C0","#F7BB42","#C58D1D","#FCC5C5","#F55151","#7B2929","#AAEAE5","#00BFB2","#006059","#BEE4F2","#3BAED9","#1E576D","#D0D0D8","#71738A","#393A45","#AD1457","#F4511E","#E4C441","#0B8043","#3F51B5","#8E24AA","#D81B60","#EF6C00","#C0CA33","#009688","#7986CB","#795548","#D50000","#F09300","#7CB342","#039BE5","#B39DDB","#616161","#E67C73","#F6BF26","#33B679","#4285F4","#9E69AF","#A79B8E"],vr=new Map;function Cl(t){const e=t.replace("#",""),n=("rgb("+e.match(new RegExp("(.{"+e.length/3+"})","g")).map(function(a){return parseInt(e.length%2?a+a:a,16)}).join(",")+")").replace(/[^\d,]/g,"").split(",");var r=Math.floor((Number.parseInt(n[0])*299+Number.parseInt(n[1])*587+Number.parseInt(n[2])*114)/1e3);return r>125?"black":"white"}function Sp(t){let e="";return t&&(t.id&&(e=t.id),t.firstName&&(e=e.concat(t.firstName)),t.lastName&&(e=e.concat(t.lastName))),Dp(Ip(e).toString())}function Dp(t){if(vr.has(t))return vr.get(t);{let e=0;if([...t.toLowerCase()].forEach(a=>{e+=a.charCodeAt(0)}),vr.size===Wr.length)return Wr[e%Wr.length];const n=Wr.filter(a=>!Array.from(vr.values()).includes(a)),r=n[e%n.length];return vr.set(t,r),r}}class Xt{constructor(){m(this,"id"),m(this,"owner"),m(this,"firstName"),m(this,"lastName"),m(this,"email"),m(this,"emailAddresses"),m(this,"phone"),m(this,"phoneNumbers"),m(this,"picture"),m(this,"externalId"),m(this,"marketingConsent"),m(this,"marketingOptins"),m(this,"title"),m(this,"gender"),m(this,"tags"),m(this,"companyName"),m(this,"jobTitle"),m(this,"address"),m(this,"birthDate"),m(this,"language"),m(this,"languageSpoken"),m(this,"languageUnderstood"),m(this,"additionalFieldsTitle"),m(this,"additionalFields"),m(this,"creationDate"),m(this,"timeZone"),m(this,"fax"),m(this,"notification"),m(this,"reminder"),m(this,"description")}static fromContactDto(e){var n,r,a,i;const o=new Xt;o.id=e.id,o.owner=e.owner,o.firstName=Ne(e.firstName),o.lastName=Ne(e.lastName);let s=[];(n=e.emailAddresses)==null||n.forEach(x=>{s.push(Gr.fromContactEmailAddressDto(x))}),s.length>0?(o.emailAddresses=s,o.email=s[0].email):o.email=e.email;let l=[];(r=e.phoneNumbers)==null||r.forEach(x=>{l.push($r.fromContactPhoneNumberDto(x))}),l.length>0?(o.phoneNumbers=l,o.phone=l[0].number):o.phone=e.phone,e.picture&&(o.picture=_t.fromImageDto(e.picture)),o.externalId=e.externalId,o.marketingConsent=e.marketingConsent,o.title=e.title,o.gender=e.gender,e.marketingOptins&&(o.marketingOptins={},e.marketingOptins.email&&(o.marketingOptins.email={enabled:e.marketingOptins.email.enabled}));let c=[];(a=e.tags)==null||a.forEach(x=>{c.push(Yr.fromContactTagDto(x))}),c.length>0&&(o.tags=c),o.companyName=e.companyName?Ne(e.companyName):void 0,o.jobTitle=e.jobTitle?Ne(e.jobTitle):void 0,e.address&&(o.address=gr.fromAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood;let h=[];if((i=e.additionalFields)==null||i.forEach(x=>{h.push(Zr.fromContactAdditionalFieldDto(x))}),h.length>0&&(o.additionalFields=h),o.additionalFieldsTitle=e.additionalFieldsTitle?Ne(e.additionalFieldsTitle):void 0,e.creationDate){const x=si(e.creationDate);x.setHours(0,0,0),o.creationDate=x}return o.timeZone=e.timeZone,o.fax=e.fax,o.notification=e.notificationType,o.reminder=e.reminderType,o.description=e.description,o}static toContactDto(e){var n,r,a,i;const o=new Np;o.id=e.id,o.owner=e.owner,o.firstName=Re(e.firstName),o.lastName=Re(e.lastName);let s=[];(n=e.emailAddresses)==null||n.forEach(x=>{s.push(Gr.toContactEmailAddressDto(x))}),o.emailAddresses=s,o.email=e.email;let l=[];(r=e.phoneNumbers)==null||r.forEach(x=>{l.push($r.toContactPhoneNumberDto(x))}),o.phoneNumbers=l,o.phone=e.phone,e.picture&&(o.picture=_t.toImageDto(e.picture)),o.externalId=e.externalId,e.marketingConsent&&(o.marketingConsent=new pi(e.marketingConsent.text)),o.title=e.title,o.gender=e.gender;let c=[];(a=e.tags)==null||a.forEach(x=>{c.push(Yr.toContactTagDto(x))}),o.tags=c,o.companyName=Re(e.companyName),o.jobTitle=Re(e.jobTitle),e.address&&(o.address=gr.toAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood,o.additionalFieldsTitle=Re(e.additionalFieldsTitle);let h=[];return(i=e.additionalFields)==null||i.forEach(x=>{h.push(Zr.toContactAdditionalFieldDto(x))}),o.additionalFields=h,o.fax=e.fax,o.timeZone=e.timeZone,o.notificationType=e.notification,o.reminderType=e.reminder,o.description=e.description,o}}class $r{constructor(){m(this,"number"),m(this,"primary"),m(this,"mobile")}static fromContactPhoneNumberDto(e){const n=new $r;return n.number=e.number,n.primary=e.primary,n.mobile=e.mobile,n}static toContactPhoneNumberDto(e){const n=new Cp;return n.number=e.number,n.primary=e.primary,n.mobile=e.mobile,n}}class Gr{constructor(){m(this,"email"),m(this,"primary")}static fromContactEmailAddressDto(e){const n=new Gr;return n.email=e.email,n.primary=e.primary,n}static toContactEmailAddressDto(e){const n=new Ap;return n.email=e.email,n.primary=e.primary,n}}class Yr{constructor(){m(this,"id"),m(this,"tag"),m(this,"color"),m(this,"textColor")}static fromContactTagDto(e){const n=new Yr;return n.id=e.id,n.tag=Ne(e.tag),n.color=e.color,e.color&&(n.textColor=Cl(e.color)),n}static toContactTagDto(e){const n=new Tp;return n.id=e.id,n.tag=Re(e.tag),n.color=e.color,n}}class Zr{constructor(){m(this,"id"),m(this,"name"),m(this,"mandatory"),m(this,"value")}static fromContactAdditionalFieldDto(e){const n=new Zr;return n.id=e.id,n.name=Ne(e.name),n.mandatory=e.mandatory,n.value=Ne(e.value),n}static toContactAdditionalFieldDto(e){const n=new kp;return n.id=e.id,n.name=Re(e.name),n.mandatory=e.mandatory,n.value=Re(e.value),n}}class Np{constructor(){m(this,"id"),m(this,"owner"),m(this,"firstName"),m(this,"lastName"),m(this,"email"),m(this,"emailAddresses"),m(this,"phone"),m(this,"phoneNumbers"),m(this,"picture"),m(this,"externalId"),m(this,"marketingConsent"),m(this,"marketingOptins"),m(this,"title"),m(this,"gender"),m(this,"tags"),m(this,"companyName"),m(this,"jobTitle"),m(this,"address"),m(this,"birthDate"),m(this,"language"),m(this,"languageSpoken"),m(this,"languageUnderstood"),m(this,"additionalFieldsTitle"),m(this,"additionalFields"),m(this,"creationDate"),m(this,"timeZone"),m(this,"fax"),m(this,"notificationType"),m(this,"reminderType"),m(this,"description")}}class Cp{constructor(){m(this,"number"),m(this,"primary"),m(this,"mobile")}}class Ap{constructor(){m(this,"email"),m(this,"primary")}}class Tp{constructor(){m(this,"id"),m(this,"tag"),m(this,"color")}}class kp{constructor(){m(this,"id"),m(this,"name"),m(this,"mandatory"),m(this,"value")}}var Al=(t=>(t.PRO="normal",t.PERSO="personal",t.EXTERNAL="external",t.ICS="ics",t))(Al||{});class Mt{constructor(){m(this,"id"),m(this,"owner"),m(this,"company"),m(this,"service"),m(this,"staff"),m(this,"client"),m(this,"start"),m(this,"end"),m(this,"status"),m(this,"type"),m(this,"source"),m(this,"price"),m(this,"paid"),m(this,"notes"),m(this,"summary"),m(this,"form"),m(this,"metaEvent"),m(this,"metaEventId"),m(this,"onlineMeeting"),m(this,"parameters"),m(this,"events"),m(this,"privacyConsent"),m(this,"marketingConsent"),m(this,"location"),m(this,"locationCustom"),m(this,"preparationDuration"),m(this,"bufferDuration")}static fromEventDto(e,n){var r;const a=new Mt;a.id=e.id,e.owner&&(a.owner={id:e.owner.id,userName:e.owner.userName}),e.company&&(a.company={id:e.company.id,name:Ne(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Ne(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Ne(e.staff.firstName),lastName:Ne(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Ne(e.client.firstName),lastName:Ne(e.client.lastName),email:e.client.email}),a.start=si(e.start.dateTime,e.start.timeZone),a.end=si(e.end.dateTime,e.end.timeZone),a.status=e.status,a.paid=e.paid,a.type=n||e.type,a.source=e.source,a.price=e.price,a.notes=Ne(e.notes),a.summary=Ne(e.summary);const i=[];if((r=e.form)==null||r.forEach(o=>i.push(jt.fromFormDto(o))),a.form=i,a.metaEvent=e["meta-event"],a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,a.location=e.location,a.locationCustom=Ne(e.locationCustom),e.events){const o=[];e.events.forEach(s=>o.push(Mt.fromEventDto(s,n))),a.events=o}return a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}static toEventDto(e,n){var r;const a=new Lp;a.id=e.id,e.company&&(a.company={id:e.company.id,name:Re(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Re(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Re(e.staff.firstName),lastName:Re(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Re(e.client.firstName),lastName:Re(e.client.lastName),email:e.client.email}),a.start=bl(e.start,n),a.end=bl(e.end,n),a.status=e.status,a.paid=e.paid,a.type=e.type,a.source=e.source,a.price=e.price,a.notes=Re(e.notes),a.summary=Re(e.summary);const i=[];if((r=e.form)==null||r.forEach(o=>i.push(jt.toFormDto(o))),a.form=i,a["meta-event"]=e.metaEvent,a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,e.events){const o=[];e.events.forEach(s=>o.push(Mt.toEventDto(s,n))),a.events=o}return e.marketingConsent&&(a.marketingConsent=new pi(e.marketingConsent.text)),e.privacyConsent&&(a.privacyConsent=new pi(e.privacyConsent.text)),a.location=e.location,a.locationCustom=Re(e.locationCustom),a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}}class Lp{constructor(){m(this,"id"),m(this,"owner"),m(this,"company"),m(this,"service"),m(this,"staff"),m(this,"client"),m(this,"start"),m(this,"end"),m(this,"status"),m(this,"type"),m(this,"source"),m(this,"paid"),m(this,"price"),m(this,"notes"),m(this,"summary"),m(this,"form"),m(this,"meta-event"),m(this,"metaEventId"),m(this,"onlineMeeting"),m(this,"parameters"),m(this,"events"),m(this,"privacyConsent"),m(this,"marketingConsent"),m(this,"location"),m(this,"locationCustom"),m(this,"preparationDuration"),m(this,"bufferDuration")}}class yr{constructor(){m(this,"id"),m(this,"firstName"),m(this,"lastName"),m(this,"picture"),m(this,"anonymous"),m(this,"color"),m(this,"login"),m(this,"checkFilterColor"),m(this,"companies"),m(this,"staffIds")}static fromUserDto(e){const n=new yr;if(n.id=e.id,n.firstName=Ne(e.firstName),n.lastName=Ne(e.lastName),e.picture&&(n.picture=new _t(e.picture.mimeType,e.picture.url)),n.anonymous=!1,n.login=e.login,n.color=Sp(e),n.checkFilterColor=n.color?Cl(n.color):"white",n.companies=e.companies,n.staffIds=[],e.companies)for(const r of e.companies)r.staffIds&&Array.prototype.push.apply(n.staffIds,r.staffIds);return n}}class un{constructor(){m(this,"id"),m(this,"name"),m(this,"color"),m(this,"picture"),m(this,"members"),m(this,"parent"),m(this,"externalId"),m(this,"companyId")}static fromServiceGroupDto(e,n){const r=new un;return r.id=e.id,r.name=Ne(e.name),r.color=e.color,r.picture=_t.fromImageDto(e.picture),e.members&&(r.members=[],e.members.forEach(a=>{var i;(i=r.members)==null||i.push({id:a.id,name:Ne(a.name)})})),e.parent&&(r.parent={id:e.parent.id,name:Ne(e.parent.name)}),r.externalId=e.externalId,r.companyId=n,r}static toServiceGroupDto(e){const n=new Op;return n.id=e.id,n.name=Re(e.name),n.color=e.color,n.picture=_t.toImageDto(e.picture),e.members&&(n.members=[],e.members.forEach(r=>{var a;(a=n.members)==null||a.push({id:r.id,name:Re(r.name)})})),e.parent&&(n.parent={id:e.parent.id,name:Re(e.parent.name)}),n.externalId=e.externalId,n}}class Op{constructor(){m(this,"id"),m(this,"name"),m(this,"color"),m(this,"picture"),m(this,"members"),m(this,"parent"),m(this,"externalId")}}class dn{constructor(){m(this,"id"),m(this,"name"),m(this,"color"),m(this,"members"),m(this,"managers"),m(this,"workingHours"),m(this,"externalId"),m(this,"companyId")}static fromStaffGroupDto(e,n){const r=new dn;return r.id=e.id,r.name=Ne(e.name),r.color=e.color,e.members&&(r.members=[],e.members.forEach(a=>{var i;(i=r.members)==null||i.push(a)})),e.managers&&(r.managers=[],e.managers.forEach(a=>{var i;(i=r.managers)==null||i.push(a)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(a=>{var i;return(i=r.workingHours)==null?void 0:i.push(Un.fromSettingsWorkingDayDto(a))})),r.externalId=e.externalId,r.companyId=n,r}static toStaffGroupDto(e){const n=new Rp;return n.id=e.id,n.name=Re(e.name),n.color=e.color,e.members&&(n.members=[],e.members.forEach(r=>{var a;(a=n.members)==null||a.push(r)})),e.managers&&(n.managers=[],e.managers.forEach(r=>{var a;(a=n.managers)==null||a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(Un.fromSettingsWorkingDayDto(r))})),n.externalId=e.externalId,n}}class Rp{constructor(){m(this,"id"),m(this,"name"),m(this,"color"),m(this,"members"),m(this,"managers"),m(this,"workingHours"),m(this,"externalId")}}var Se=(t=>(t[t.UNKOWN=0]="UNKOWN",t[t.INTERNAL_ERROR=1]="INTERNAL_ERROR",t[t.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",t[t.INVALID_PARAMETER=3]="INVALID_PARAMETER",t[t.UNKNOWN_ENTITY=4]="UNKNOWN_ENTITY",t[t.CREDENTIAL_ERROR=100]="CREDENTIAL_ERROR",t[t.USER_ACCOUNT_LOCKED=101]="USER_ACCOUNT_LOCKED",t[t.PASSWORD_POLICY_ERROR=102]="PASSWORD_POLICY_ERROR",t[t.STAFF_NOT_AVAILABLE=1e3]="STAFF_NOT_AVAILABLE",t[t.MAX_APPOINTMENT_DAILY=1001]="MAX_APPOINTMENT_DAILY",t[t.MAX_APPOINTMENT_WEEKLY=1002]="MAX_APPOINTMENT_WEEKLY",t[t.APPOINTMENT_PERIOD_RULE=1003]="APPOINTMENT_PERIOD_RULE",t[t.RESOURCE_NOT_AVAILABLE=1004]="RESOURCE_NOT_AVAILABLE",t[t.DATE_NOT_AVAILABLE=1005]="DATE_NOT_AVAILABLE",t[t.USER_BLOCKED=1006]="USER_BLOCKED",t[t.ACCOUNT_NOT_FOUND=2e3]="ACCOUNT_NOT_FOUND",t[t.ACCOUNT_DISABLED=3003]="ACCOUNT_DISABLED",t))(Se||{});function Mp(t,e){if(e.errorCode)return Se[e.errorCode];if(t==="Appointment")switch(e.reason){case"notFound":return 1e3}return 0}class gi{constructor(){m(this,"errorCode"),m(this,"reason"),m(this,"code"),m(this,"message")}}const mn=new gi;mn.reason="notFound",mn.code=404,mn.message="Not Found";class ke{constructor(e,n){m(this,"errorCode"),m(this,"e"),this.errorCode=e,this.e=n}}var ve={};/*! *****************************************************************************
27
+ */const lw="9.2.2";function cw(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(li().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(li().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(li().__INTLIFY_PROD_DEVTOOLS__=!1)}jv.__EXTEND_POINT__;let Wd=Ze.__EXTEND_POINT__;const qt=()=>++Wd,Cn={UNEXPECTED_RETURN_TYPE:Wd,INVALID_ARGUMENT:qt(),MUST_BE_CALL_SETUP_TOP:qt(),NOT_INSLALLED:qt(),NOT_AVAILABLE_IN_LEGACY_MODE:qt(),REQUIRED_VALUE:qt(),INVALID_VALUE:qt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qt(),NOT_INSLALLED_WITH_PROVIDE:qt(),UNEXPECTED_ERROR:qt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qt(),BRIDGE_SUPPORT_VUE_2_ONLY:qt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qt(),__EXTEND_POINT__:qt()};function Un(t,...e){return ho(t,null,void 0)}const _l=xr("__transrateVNode"),El=xr("__datetimeParts"),Dl=xr("__numberParts"),uw=xr("__setPluralRules");xr("__intlifyMeta");const Gd=xr("__injectWithOption");function Sl(t){if(!rt(t))return t;for(const e in t)if(!!hl(t,e))if(!e.includes("."))rt(t[e])&&Sl(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i<r;i++)n[i]in a||(a[n[i]]={}),a=a[n[i]];a[n[r]]=t[e],delete t[e],rt(a[n[r]])&&Sl(a[n[r]])}return t}function kl(t,e){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=e,o=Ye(n)?n:yt(r)?{}:{[t]:{}};if(yt(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:d}=l;c?(o[c]=o[c]||{},di(d,o[c])):di(d,o)}else xe(l)&&di(JSON.parse(l),o)}),a==null&&i)for(const l in o)hl(o,l)&&Sl(o[l]);return o}const po=t=>!rt(t)||yt(t);function di(t,e){if(po(t)||po(e))throw Un(Cn.INVALID_VALUE);for(const n in t)hl(t,n)&&(po(t[n])||po(e[n])?e[n]=t[n]:di(t[n],e[n]))}function qd(t){return t.type}function dw(t,e,n){let r=rt(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=kl(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(rt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(rt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Kd(t){return s.createVNode(s.Text,null,t,0)}const Zd="__INTLIFY_META__";let Jd=0;function Xd(t){return(e,n,r,a)=>t(n,r,s.getCurrentInstance()||void 0,a)}const hw=()=>{const t=s.getCurrentInstance();let e=null;return t&&(e=qd(t)[Zd])?{[Zd]:e}:null};function fw(t={},e){const{__root:n}=t,r=n===void 0;let a=lt(t.inheritLocale)?t.inheritLocale:!0;const i=s.ref(n&&a?n.locale.value:xe(t.locale)?t.locale:mo),o=s.ref(n&&a?n.fallbackLocale.value:xe(t.fallbackLocale)||yt(t.fallbackLocale)||Ye(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),l=s.ref(kl(i.value,t)),c=s.ref(Ye(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),d=s.ref(Ye(t.numberFormats)?t.numberFormats:{[i.value]:{}});let h=n?n.missingWarn:lt(t.missingWarn)||ca(t.missingWarn)?t.missingWarn:!0,m=n?n.fallbackWarn:lt(t.fallbackWarn)||ca(t.fallbackWarn)?t.fallbackWarn:!0,f=n?n.fallbackRoot:lt(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,E=Et(t.missing)?t.missing:null,k=Et(t.missing)?Xd(t.missing):null,T=Et(t.postTranslation)?t.postTranslation:null,b=n?n.warnHtmlMessage:lt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,w=!!t.escapeParameter;const A=n?n.modifiers:Ye(t.modifiers)?t.modifiers:{};let S=t.pluralRules||n&&n.pluralRules,N;N=(()=>{r&&xd(null);const y={version:lw,locale:i.value,fallbackLocale:o.value,messages:l.value,modifiers:A,pluralRules:S,missing:k===null?void 0:k,missingWarn:h,fallbackWarn:m,fallbackFormat:p,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:b,escapeParameter:w,messageResolver:t.messageResolver,__meta:{framework:"vue"}};y.datetimeFormats=c.value,y.numberFormats=d.value,y.__datetimeFormatters=Ye(N)?N.__datetimeFormatters:void 0,y.__numberFormatters=Ye(N)?N.__numberFormatters:void 0;const D=tw(y);return r&&xd(D),D})(),ui(N,i.value,o.value);function M(){return[i.value,o.value,l.value,c.value,d.value]}const F=s.computed({get:()=>i.value,set:y=>{i.value=y,N.locale=i.value}}),V=s.computed({get:()=>o.value,set:y=>{o.value=y,N.fallbackLocale=o.value,ui(N,i.value,y)}}),R=s.computed(()=>l.value),z=s.computed(()=>c.value),j=s.computed(()=>d.value);function B(){return Et(T)?T:null}function Z(y){T=y,N.postTranslation=y}function Y(){return E}function q(y){y!==null&&(k=Xd(y)),E=y,N.missing=k}const G=(y,D,I,C,P,H)=>{M();let ee;if(__INTLIFY_PROD_DEVTOOLS__)try{Ad(hw()),r||(N.fallbackContext=n?ew():void 0),ee=y(N)}finally{Ad(null),r||(N.fallbackContext=void 0)}else ee=y(N);if(Rt(ee)&&ee===fo){const[re,se]=D();return n&&f?C(n):P(re)}else{if(H(ee))return ee;throw Un(Cn.UNEXPECTED_RETURN_TYPE)}};function ne(...y){return G(D=>Reflect.apply($d,null,[D,...y]),()=>vl(...y),"translate",D=>Reflect.apply(D.t,D,[...y]),D=>D,D=>xe(D))}function oe(...y){const[D,I,C]=y;if(C&&!rt(C))throw Un(Cn.INVALID_ARGUMENT);return ne(D,I,At({resolvedMessage:!0},C||{}))}function J(...y){return G(D=>Reflect.apply(zd,null,[D,...y]),()=>wl(...y),"datetime format",D=>Reflect.apply(D.d,D,[...y]),()=>Sd,D=>xe(D))}function $(...y){return G(D=>Reflect.apply(Hd,null,[D,...y]),()=>bl(...y),"number format",D=>Reflect.apply(D.n,D,[...y]),()=>Sd,D=>xe(D))}function Q(y){return y.map(D=>xe(D)||Rt(D)||lt(D)?Kd(String(D)):D)}const W={normalize:Q,interpolate:y=>y,type:"vnode"};function Ee(...y){return G(D=>{let I;const C=D;try{C.processor=W,I=Reflect.apply($d,null,[C,...y])}finally{C.processor=null}return I},()=>vl(...y),"translate",D=>D[_l](...y),D=>[Kd(D)],D=>yt(D))}function _e(...y){return G(D=>Reflect.apply(Hd,null,[D,...y]),()=>bl(...y),"number format",D=>D[Dl](...y),()=>[],D=>xe(D)||yt(D))}function Te(...y){return G(D=>Reflect.apply(zd,null,[D,...y]),()=>wl(...y),"datetime format",D=>D[El](...y),()=>[],D=>xe(D)||yt(D))}function De(y){S=y,N.pluralRules=S}function Ne(y,D){const I=xe(D)?D:i.value,C=ue(I);return N.messageResolver(C,y)!==null}function Ae(y){let D=null;const I=Ed(N,o.value,i.value);for(let C=0;C<I.length;C++){const P=l.value[I[C]]||{},H=N.messageResolver(P,y);if(H!=null){D=H;break}}return D}function te(y){const D=Ae(y);return D!=null?D:n?n.tm(y)||{}:{}}function ue(y){return l.value[y]||{}}function _(y,D){l.value[y]=D,N.messages=l.value}function g(y,D){l.value[y]=l.value[y]||{},di(D,l.value[y]),N.messages=l.value}function x(y){return c.value[y]||{}}function X(y,D){c.value[y]=D,N.datetimeFormats=c.value,Ud(N,y,D)}function ce(y,D){c.value[y]=At(c.value[y]||{},D),N.datetimeFormats=c.value,Ud(N,y,D)}function me(y){return d.value[y]||{}}function K(y,D){d.value[y]=D,N.numberFormats=d.value,Yd(N,y,D)}function v(y,D){d.value[y]=At(d.value[y]||{},D),N.numberFormats=d.value,Yd(N,y,D)}Jd++,n&&K1&&(s.watch(n.locale,y=>{a&&(i.value=y,N.locale=y,ui(N,i.value,o.value))}),s.watch(n.fallbackLocale,y=>{a&&(o.value=y,N.fallbackLocale=y,ui(N,i.value,o.value))}));const O={id:Jd,locale:F,fallbackLocale:V,get inheritLocale(){return a},set inheritLocale(y){a=y,y&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,ui(N,i.value,o.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:R,get modifiers(){return A},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(y){h=y,N.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(y){m=y,N.fallbackWarn=m},get fallbackRoot(){return f},set fallbackRoot(y){f=y},get fallbackFormat(){return p},set fallbackFormat(y){p=y,N.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(y){b=y,N.warnHtmlMessage=y},get escapeParameter(){return w},set escapeParameter(y){w=y,N.escapeParameter=y},t:ne,getLocaleMessage:ue,setLocaleMessage:_,mergeLocaleMessage:g,getPostTranslationHandler:B,setPostTranslationHandler:Z,getMissingHandler:Y,setMissingHandler:q,[uw]:De};return O.datetimeFormats=z,O.numberFormats=j,O.rt=oe,O.te=Ne,O.tm=te,O.d=J,O.n=$,O.getDateTimeFormat=x,O.setDateTimeFormat=X,O.mergeDateTimeFormat=ce,O.getNumberFormat=me,O.setNumberFormat=K,O.mergeNumberFormat=v,O[Gd]=t.__injectWithOption,O[_l]=Ee,O[El]=Te,O[Dl]=_e,O}const Il={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function mw({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>r=[...r,...yt(a.children)?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function Qd(t){return s.Fragment}At({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Rt(t)||!isNaN(t)}},Il);function pw(t){return yt(t)&&!xe(t[0])}function eh(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let l={};t.locale&&(o.locale=t.locale),xe(t.format)?o.key=t.format:rt(t.format)&&(xe(t.format.key)&&(o.key=t.format.key),l=Object.keys(t.format).reduce((f,p)=>n.includes(p)?At({},f,{[p]:t.format[p]}):f,{}));const c=r(t.value,o,l);let d=[o.key];yt(c)?d=c.map((f,p)=>{const E=a[f.type],k=E?E({[f.type]:f.value,index:p,parts:c}):[f.value];return pw(k)&&(k[0].key=`${f.type}-${p}`),k}):xe(c)&&(d=[c]);const h=At({},i),m=xe(t.tag)||rt(t.tag)?t.tag:Qd();return s.h(m,h,d)}}At({value:{type:Number,required:!0},format:{type:[String,Object]}},Il),At({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Il);const gw=xr("global-vue-i18n");function go(t={}){const e=s.getCurrentInstance();if(e==null)throw Un(Cn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Un(Cn.NOT_INSLALLED);const n=yw(e),r=ww(n),a=qd(e),i=vw(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Un(Cn.NOT_AVAILABLE_IN_LEGACY_MODE);return Ew(e,i,r,t)}if(i==="global")return dw(r,t,a),r;if(i==="parent"){let c=bw(n,e,t.__useComponent);return c==null&&(c=r),c}const o=n;let l=o.__getInstance(e);if(l==null){const c=At({},t);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=fw(c),_w(o,e),o.__setInstance(e,l)}return l}function yw(t){{const e=s.inject(t.isCE?gw:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Un(t.isCE?Cn.NOT_INSLALLED_WITH_PROVIDE:Cn.UNEXPECTED_ERROR);return e}}function vw(t,e){return uo(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function ww(t){return t.mode==="composition"?t.global:t.global.__composer}function bw(t,e,n=!1){let r=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[Gd]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function _w(t,e,n){s.onMounted(()=>{},e),s.onUnmounted(()=>{t.__deleteInstance(e)},e)}function Ew(t,e,n,r={}){const a=e==="local",i=s.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Un(Cn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=lt(r.inheritLocale)?r.inheritLocale:!0,l=s.ref(a&&o?n.locale.value:xe(r.locale)?r.locale:mo),c=s.ref(a&&o?n.fallbackLocale.value:xe(r.fallbackLocale)||yt(r.fallbackLocale)||Ye(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),d=s.ref(kl(l.value,r)),h=s.ref(Ye(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),m=s.ref(Ye(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=a?n.missingWarn:lt(r.missingWarn)||ca(r.missingWarn)?r.missingWarn:!0,p=a?n.fallbackWarn:lt(r.fallbackWarn)||ca(r.fallbackWarn)?r.fallbackWarn:!0,E=a?n.fallbackRoot:lt(r.fallbackRoot)?r.fallbackRoot:!0,k=!!r.fallbackFormat,T=Et(r.missing)?r.missing:null,b=Et(r.postTranslation)?r.postTranslation:null,w=a?n.warnHtmlMessage:lt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,A=!!r.escapeParameter,S=a?n.modifiers:Ye(r.modifiers)?r.modifiers:{},N=r.pluralRules||a&&n.pluralRules;function L(){return[l.value,c.value,d.value,h.value,m.value]}const M=s.computed({get:()=>i.value?i.value.locale.value:l.value,set:g=>{i.value&&(i.value.locale.value=g),l.value=g}}),F=s.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:g=>{i.value&&(i.value.fallbackLocale.value=g),c.value=g}}),V=s.computed(()=>i.value?i.value.messages.value:d.value),R=s.computed(()=>h.value),z=s.computed(()=>m.value);function j(){return i.value?i.value.getPostTranslationHandler():b}function B(g){i.value&&i.value.setPostTranslationHandler(g)}function Z(){return i.value?i.value.getMissingHandler():T}function Y(g){i.value&&i.value.setMissingHandler(g)}function q(g){return L(),g()}function G(...g){return i.value?q(()=>Reflect.apply(i.value.t,null,[...g])):q(()=>"")}function ne(...g){return i.value?Reflect.apply(i.value.rt,null,[...g]):""}function oe(...g){return i.value?q(()=>Reflect.apply(i.value.d,null,[...g])):q(()=>"")}function J(...g){return i.value?q(()=>Reflect.apply(i.value.n,null,[...g])):q(()=>"")}function $(g){return i.value?i.value.tm(g):{}}function Q(g,x){return i.value?i.value.te(g,x):!1}function ae(g){return i.value?i.value.getLocaleMessage(g):{}}function W(g,x){i.value&&(i.value.setLocaleMessage(g,x),d.value[g]=x)}function Ee(g,x){i.value&&i.value.mergeLocaleMessage(g,x)}function _e(g){return i.value?i.value.getDateTimeFormat(g):{}}function Te(g,x){i.value&&(i.value.setDateTimeFormat(g,x),h.value[g]=x)}function De(g,x){i.value&&i.value.mergeDateTimeFormat(g,x)}function Ne(g){return i.value?i.value.getNumberFormat(g):{}}function Ae(g,x){i.value&&(i.value.setNumberFormat(g,x),m.value[g]=x)}function te(g,x){i.value&&i.value.mergeNumberFormat(g,x)}const ue={get id(){return i.value?i.value.id:-1},locale:M,fallbackLocale:F,messages:V,datetimeFormats:R,numberFormats:z,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(g){i.value&&(i.value.inheritLocale=g)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:S},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(g){i.value&&(i.value.missingWarn=g)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(g){i.value&&(i.value.missingWarn=g)},get fallbackRoot(){return i.value?i.value.fallbackRoot:E},set fallbackRoot(g){i.value&&(i.value.fallbackRoot=g)},get fallbackFormat(){return i.value?i.value.fallbackFormat:k},set fallbackFormat(g){i.value&&(i.value.fallbackFormat=g)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:w},set warnHtmlMessage(g){i.value&&(i.value.warnHtmlMessage=g)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(g){i.value&&(i.value.escapeParameter=g)},t:G,getPostTranslationHandler:j,setPostTranslationHandler:B,getMissingHandler:Z,setMissingHandler:Y,rt:ne,d:oe,n:J,tm:$,te:Q,getLocaleMessage:ae,setLocaleMessage:W,mergeLocaleMessage:Ee,getDateTimeFormat:_e,setDateTimeFormat:Te,mergeDateTimeFormat:De,getNumberFormat:Ne,setNumberFormat:Ae,mergeNumberFormat:te};function _(g){g.locale.value=l.value,g.fallbackLocale.value=c.value,Object.keys(d.value).forEach(x=>{g.mergeLocaleMessage(x,d.value[x])}),Object.keys(h.value).forEach(x=>{g.mergeDateTimeFormat(x,h.value[x])}),Object.keys(m.value).forEach(x=>{g.mergeNumberFormat(x,m.value[x])}),g.escapeParameter=A,g.fallbackFormat=k,g.fallbackRoot=E,g.fallbackWarn=p,g.missingWarn=f,g.warnHtmlMessage=w}return s.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Un(Cn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const g=i.value=t.proxy.$i18n.__composer;e==="global"?(l.value=g.locale.value,c.value=g.fallbackLocale.value,d.value=g.messages.value,h.value=g.datetimeFormats.value,m.value=g.numberFormats.value):a&&_(g)}),ue}if(Zv(rw),Jv(Ov),Xv(Ed),cw(),__INTLIFY_PROD_DEVTOOLS__){const t=li();t.__INTLIFY__=!0,zv(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Dw={class:"az-flex az-flex-col az-gap-2"},Sw={class:"az-qrcode"},kw={class:"az-qrcode-left"},Iw={class:"az-qrcode-right"},Cw={class:"az-qrcode-bottom"},Nw=s.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,download:{type:Boolean,default:!0}},setup(t){var l,c,d,h;const e=t,{t:n}=go(),r=s.ref({width:e.width,height:e.height,type:"canvas",data:e.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(l=e.bgColor)!=null?l:"white"},dotsOptions:{color:(c=e.dotsColor)!=null?c:"black",type:"square"},cornersSquareOptions:{color:(d=e.dotsColor)!=null?d:"black",type:"square"},cornersDotOptions:{color:(h=e.dotsColor)!=null?h:"black",type:"square"}}),a=new q1(r.value),i=s.ref();function o(){a.download()}return s.onMounted(()=>{a.append(i.value)}),s.watch(()=>e.value,m=>{r.value.data=m,a.update(r.value)}),(m,f)=>(s.openBlock(),s.createElementBlock("div",Dw,[s.createElementVNode("div",Sw,[s.createElementVNode("div",null,s.toDisplayString(t.outlineValue),1),s.createElementVNode("div",{class:"az-qrcode-center",style:s.normalizeStyle(`grid-template-columns: auto ${e.width}px auto;`)},[s.createElementVNode("div",kw,s.toDisplayString(t.outlineValue),1),s.createElementVNode("div",null,[s.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),s.createElementVNode("div",Iw,s.toDisplayString(t.outlineValue),1)],4),s.createElementVNode("div",Cw,s.toDisplayString(t.outlineValue),1)]),t.download?(s.openBlock(),s.createElementBlock("button",{key:0,class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:o},s.toDisplayString(s.unref(n)("common.action.download")),1)):s.createCommentVNode("",!0)]))}});var Tw=Object.defineProperty,Aw=(t,e,n)=>e in t?Tw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e,n)=>(Aw(t,typeof e!="symbol"?e+"":e,n),n);class Lr extends Error{}class Ow extends Lr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class xw extends Lr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Lw extends Lr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class hi extends Lr{}class th extends Lr{constructor(e){super(`Invalid unit ${e}`)}}class an extends Lr{}class fr extends Lr{constructor(){super("Zone is an abstract class")}}const Ie="numeric",gn="short",en="long",Cl={year:Ie,month:Ie,day:Ie},nh={year:Ie,month:gn,day:Ie},Rw={year:Ie,month:gn,day:Ie,weekday:gn},rh={year:Ie,month:en,day:Ie},ah={year:Ie,month:en,day:Ie,weekday:en},ih={hour:Ie,minute:Ie},oh={hour:Ie,minute:Ie,second:Ie},sh={hour:Ie,minute:Ie,second:Ie,timeZoneName:gn},lh={hour:Ie,minute:Ie,second:Ie,timeZoneName:en},ch={hour:Ie,minute:Ie,hourCycle:"h23"},uh={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23"},dh={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:gn},hh={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:en},fh={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie},mh={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie,second:Ie},ph={year:Ie,month:gn,day:Ie,hour:Ie,minute:Ie},gh={year:Ie,month:gn,day:Ie,hour:Ie,minute:Ie,second:Ie},Mw={year:Ie,month:gn,day:Ie,weekday:gn,hour:Ie,minute:Ie},yh={year:Ie,month:en,day:Ie,hour:Ie,minute:Ie,timeZoneName:gn},vh={year:Ie,month:en,day:Ie,hour:Ie,minute:Ie,second:Ie,timeZoneName:gn},wh={year:Ie,month:en,day:Ie,weekday:en,hour:Ie,minute:Ie,timeZoneName:en},bh={year:Ie,month:en,day:Ie,weekday:en,hour:Ie,minute:Ie,second:Ie,timeZoneName:en};function Ge(t){return typeof t>"u"}function Rr(t){return typeof t=="number"}function yo(t){return typeof t=="number"&&t%1===0}function Pw(t){return typeof t=="string"}function $w(t){return Object.prototype.toString.call(t)==="[object Date]"}function _h(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Bw(t){return Array.isArray(t)?t:[t]}function Eh(t,e,n){if(t.length!==0)return t.reduce((r,a)=>{const i=[e(a),a];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Fw(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function fa(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Hn(t,e,n){return yo(t)&&t>=e&&t<=n}function zw(t,e){return t-e*Math.floor(t/e)}function _t(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function mr(t){if(!(Ge(t)||t===null||t===""))return parseInt(t,10)}function Mr(t){if(!(Ge(t)||t===null||t===""))return parseFloat(t)}function Nl(t){if(!(Ge(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Tl(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function fi(t){return t%4===0&&(t%100!==0||t%400===0)}function mi(t){return fi(t)?366:365}function vo(t,e){const n=zw(e-1,12)+1,r=t+(e-n)/12;return n===2?fi(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Al(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function wo(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Ol(t){return t>99?t:t>60?1900+t:2e3+t}function Dh(t,e,n,r=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const o={timeZoneName:e,...i},l=new Intl.DateTimeFormat(n,o).formatToParts(a).find(c=>c.type.toLowerCase()==="timezonename");return l?l.value:null}function bo(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-r:r;return n*60+a}function Sh(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new an(`Invalid unit value ${t}`);return e}function _o(t,e){const n={};for(const r in t)if(fa(t,r)){const a=t[r];if(a==null)continue;n[e(r)]=Sh(a)}return n}function pi(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${_t(n,2)}:${_t(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${_t(n,2)}${_t(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Eo(t){return Fw(t,["hour","minute","second","millisecond"])}const kh=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,Vw=["January","February","March","April","May","June","July","August","September","October","November","December"],Ih=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Uw=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ch(t){switch(t){case"narrow":return[...Uw];case"short":return[...Ih];case"long":return[...Vw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Nh=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Th=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Hw=["M","T","W","T","F","S","S"];function Ah(t){switch(t){case"narrow":return[...Hw];case"short":return[...Th];case"long":return[...Nh];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Oh=["AM","PM"],jw=["Before Christ","Anno Domini"],Yw=["BC","AD"],Ww=["B","A"];function xh(t){switch(t){case"narrow":return[...Ww];case"short":return[...Yw];case"long":return[...jw];default:return null}}function Gw(t){return Oh[t.hour<12?0:1]}function qw(t,e){return Ah(e)[t.weekday-1]}function Kw(t,e){return Ch(e)[t.month-1]}function Zw(t,e){return xh(e)[t.year<0?0:1]}function Jw(t,e,n="always",r=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${a[t][0]}`;case-1:return m?"yesterday":`last ${a[t][0]}`;case 0:return m?"today":`this ${a[t][0]}`}}const o=Object.is(e,-0)||e<0,l=Math.abs(e),c=l===1,d=a[t],h=r?c?d[1]:d[2]||d[1]:c?a[t][0]:t;return o?`${l} ${h} ago`:`in ${l} ${h}`}function Lh(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Xw={D:Cl,DD:nh,DDD:rh,DDDD:ah,t:ih,tt:oh,ttt:sh,tttt:lh,T:ch,TT:uh,TTT:dh,TTTT:hh,f:fh,ff:ph,fff:yh,ffff:wh,F:mh,FF:gh,FFF:vh,FFFF:bh};class Kt{static create(e,n={}){return new Kt(e,n)}static parseFormat(e){let n=null,r="",a=!1;const i=[];for(let o=0;o<e.length;o++){const l=e.charAt(o);l==="'"?(r.length>0&&i.push({literal:a,val:r}),n=null,r="",a=!a):a||l===n?r+=l:(r.length>0&&i.push({literal:!1,val:r}),r=l,n=l)}return r.length>0&&i.push({literal:a,val:r}),i}static macroTokenToFormatOpts(e){return Xw[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return _t(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(p,E)=>this.loc.extract(e,p,E),o=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",l=()=>r?Gw(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(p,E)=>r?Kw(e,p):i(E?{month:p}:{month:p,day:"numeric"},"month"),d=(p,E)=>r?qw(e,p):i(E?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),h=p=>{const E=Kt.macroTokenToFormatOpts(p);return E?this.formatWithSystemDefault(e,E):p},m=p=>r?Zw(e,p):i({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(p)}};return Lh(Kt.parseFormat(n),f)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=c=>d=>{const h=r(d);return h?this.num(c.get(h),d.length):d},i=Kt.parseFormat(n),o=i.reduce((c,{literal:d,val:h})=>d?c:c.concat(h),[]),l=e.shiftTo(...o.map(r).filter(c=>c));return Lh(i,a(l))}}class yn{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class gi{get type(){throw new fr}get name(){throw new fr}get ianaName(){return this.name}get isUniversal(){throw new fr}offsetName(e,n){throw new fr}formatOffset(e,n){throw new fr}offset(e){throw new fr}equals(e){throw new fr}get isValid(){throw new fr}}let xl=null;class Ll extends gi{static get instance(){return xl===null&&(xl=new Ll),xl}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Dh(e,n,r)}formatOffset(e,n){return pi(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Do={};function Qw(t){return Do[t]||(Do[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Do[t]}const eb={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function tb(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,i,o,l,c,d,h]=r;return[o,a,i,l,c,d,h]}function nb(t,e){const n=t.formatToParts(e),r=[];for(let a=0;a<n.length;a++){const{type:i,value:o}=n[a],l=eb[i];i==="era"?r[l]=o:Ge(l)||(r[l]=parseInt(o,10))}return r}let So={};class jn extends gi{static create(e){return So[e]||(So[e]=new jn(e)),So[e]}static resetCache(){So={},Do={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=jn.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Dh(e,n,r,this.name)}formatOffset(e,n){return pi(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Qw(this.name);let[a,i,o,l,c,d,h]=r.formatToParts?nb(r,n):tb(r,n);l==="BC"&&(a=-Math.abs(a)+1);const m=Al({year:a,month:i,day:o,hour:c===24?0:c,minute:d,second:h,millisecond:0});let f=+n;const p=f%1e3;return f-=p>=0?p:1e3+p,(m-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Rl=null;class Ut extends gi{static get utcInstance(){return Rl===null&&(Rl=new Ut(0)),Rl}static instance(e){return e===0?Ut.utcInstance:new Ut(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Ut(bo(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${pi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${pi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return pi(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class rb extends gi{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function pr(t,e){if(Ge(t)||t===null)return e;if(t instanceof gi)return t;if(Pw(t)){const n=t.toLowerCase();return n==="local"||n==="system"?e:n==="utc"||n==="gmt"?Ut.utcInstance:Ut.parseSpecifier(n)||jn.create(t)}else return Rr(t)?Ut.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new rb(t)}let Rh=()=>Date.now(),Mh="system",Ph=null,$h=null,Bh=null,Fh;class Dt{static get now(){return Rh}static set now(e){Rh=e}static set defaultZone(e){Mh=e}static get defaultZone(){return pr(Mh,Ll.instance)}static get defaultLocale(){return Ph}static set defaultLocale(e){Ph=e}static get defaultNumberingSystem(){return $h}static set defaultNumberingSystem(e){$h=e}static get defaultOutputCalendar(){return Bh}static set defaultOutputCalendar(e){Bh=e}static get throwOnInvalid(){return Fh}static set throwOnInvalid(e){Fh=e}static resetCaches(){ut.resetCache(),jn.resetCache()}}let zh={};function ab(t,e={}){const n=JSON.stringify([t,e]);let r=zh[n];return r||(r=new Intl.ListFormat(t,e),zh[n]=r),r}let Ml={};function Pl(t,e={}){const n=JSON.stringify([t,e]);let r=Ml[n];return r||(r=new Intl.DateTimeFormat(t,e),Ml[n]=r),r}let $l={};function ib(t,e={}){const n=JSON.stringify([t,e]);let r=$l[n];return r||(r=new Intl.NumberFormat(t,e),$l[n]=r),r}let Bl={};function ob(t,e={}){const{base:n,...r}=e,a=JSON.stringify([t,r]);let i=Bl[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Bl[a]=i),i}let ko=null;function sb(){return ko||(ko=new Intl.DateTimeFormat().resolvedOptions().locale,ko)}function lb(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let n;const r=t.substring(0,e);try{n=Pl(t).resolvedOptions()}catch{n=Pl(r).resolvedOptions()}const{numberingSystem:a,calendar:i}=n;return[r,a,i]}}function cb(t,e,n){return(n||e)&&(t+="-u",n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function ub(t){const e=[];for(let n=1;n<=12;n++){const r=Be.utc(2016,n,1);e.push(t(r))}return e}function db(t){const e=[];for(let n=1;n<=7;n++){const r=Be.utc(2016,11,13+n);e.push(t(r))}return e}function Io(t,e,n,r,a){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):a(e)}function hb(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class fb{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:a,floor:i,...o}=r;if(!n||Object.keys(o).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=ib(e,l)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Tl(e,3);return _t(n,this.padTo)}}}class mb{constructor(e,n,r){this.opts=r;let a;if(e.zone.isUniversal){const o=-1*(e.offset/60),l=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&jn.create(l).valid?(a=l,this.dt=e):(a="UTC",r.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Be.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,a=e.zone.name);const i={...this.opts};a&&(i.timeZone=a),this.dtf=Pl(n,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class pb{constructor(e,n,r){this.opts={style:"long",...r},!n&&_h()&&(this.rtf=ob(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Jw(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class ut{static fromOpts(e){return ut.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,a=!1){const i=e||Dt.defaultLocale,o=i||(a?"en-US":sb()),l=n||Dt.defaultNumberingSystem,c=r||Dt.defaultOutputCalendar;return new ut(o,l,c,i)}static resetCache(){ko=null,Ml={},$l={},Bl={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return ut.create(e,n,r)}constructor(e,n,r,a){const[i,o,l]=lb(e);this.locale=i,this.numberingSystem=n||o||null,this.outputCalendar=r||l||null,this.intl=cb(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=hb(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:ut.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return Io(this,e,r,Ch,()=>{const a=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=ub(o=>this.extract(o,a,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return Io(this,e,r,Ah,()=>{const a=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=db(o=>this.extract(o,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return Io(this,void 0,e,()=>Oh,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Be.utc(2016,11,13,9),Be.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return Io(this,e,n,xh,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Be.utc(-40,1,1),Be.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,n,r){const a=this.dtFormatter(e,n),i=a.formatToParts(),o=i.find(l=>l.type.toLowerCase()===r);return o?o.value:null}numberFormatter(e={}){return new fb(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new mb(e,this.intl,n)}relFormatter(e={}){return new pb(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ab(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function ma(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function pa(...t){return e=>t.reduce(([n,r,a],i)=>{const[o,l,c]=i(e,a);return[{...n,...o},l||r,c]},[{},null,1]).slice(0,2)}function ga(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const a=n.exec(t);if(a)return r(a)}return[null,null]}function Vh(...t){return(e,n)=>{const r={};let a;for(a=0;a<t.length;a++)r[t[a]]=mr(e[n+a]);return[r,null,n+a]}}const Uh=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gb=`(?:${Uh.source}?(?:\\[(${kh.source})\\])?)?`,Fl=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Hh=RegExp(`${Fl.source}${gb}`),zl=RegExp(`(?:T${Hh.source})?`),yb=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vb=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wb=/(\d{4})-?(\d{3})/,bb=Vh("weekYear","weekNumber","weekDay"),_b=Vh("year","ordinal"),Eb=/(\d{4})-(\d\d)-(\d\d)/,jh=RegExp(`${Fl.source} ?(?:${Uh.source}|(${kh.source}))?`),Db=RegExp(`(?: ${jh.source})?`);function ya(t,e,n){const r=t[e];return Ge(r)?n:mr(r)}function Sb(t,e){return[{year:ya(t,e),month:ya(t,e+1,1),day:ya(t,e+2,1)},null,e+3]}function va(t,e){return[{hours:ya(t,e,0),minutes:ya(t,e+1,0),seconds:ya(t,e+2,0),milliseconds:Nl(t[e+3])},null,e+4]}function yi(t,e){const n=!t[e]&&!t[e+1],r=bo(t[e+1],t[e+2]),a=n?null:Ut.instance(r);return[{},a,e+3]}function vi(t,e){const n=t[e]?jn.create(t[e]):null;return[{},n,e+1]}const kb=RegExp(`^T?${Fl.source}$`),Ib=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Cb(t){const[e,n,r,a,i,o,l,c,d]=t,h=e[0]==="-",m=c&&c[0]==="-",f=(p,E=!1)=>p!==void 0&&(E||p&&h)?-p:p;return[{years:f(Mr(n)),months:f(Mr(r)),weeks:f(Mr(a)),days:f(Mr(i)),hours:f(Mr(o)),minutes:f(Mr(l)),seconds:f(Mr(c),c==="-0"),milliseconds:f(Nl(d),m)}]}const Nb={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Vl(t,e,n,r,a,i,o){const l={year:e.length===2?Ol(mr(e)):mr(e),month:Ih.indexOf(n)+1,day:mr(r),hour:mr(a),minute:mr(i)};return o&&(l.second=mr(o)),t&&(l.weekday=t.length>3?Nh.indexOf(t)+1:Th.indexOf(t)+1),l}const Tb=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ab(t){const[,e,n,r,a,i,o,l,c,d,h,m]=t,f=Vl(e,a,r,n,i,o,l);let p;return c?p=Nb[c]:d?p=0:p=bo(h,m),[f,new Ut(p)]}function Ob(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const xb=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lb=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Rb=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Yh(t){const[,e,n,r,a,i,o,l]=t;return[Vl(e,a,r,n,i,o,l),Ut.utcInstance]}function Mb(t){const[,e,n,r,a,i,o,l]=t;return[Vl(e,l,n,r,a,i,o),Ut.utcInstance]}const Pb=ma(yb,zl),$b=ma(vb,zl),Bb=ma(wb,zl),Fb=ma(Hh),Wh=pa(Sb,va,yi,vi),zb=pa(bb,va,yi,vi),Vb=pa(_b,va,yi,vi),Ub=pa(va,yi,vi);function Hb(t){return ga(t,[Pb,Wh],[$b,zb],[Bb,Vb],[Fb,Ub])}function jb(t){return ga(Ob(t),[Tb,Ab])}function Yb(t){return ga(t,[xb,Yh],[Lb,Yh],[Rb,Mb])}function Wb(t){return ga(t,[Ib,Cb])}const Gb=pa(va);function qb(t){return ga(t,[kb,Gb])}const Kb=ma(Eb,Db),Zb=ma(jh),Jb=pa(va,yi,vi);function Xb(t){return ga(t,[Kb,Wh],[Zb,Jb])}const Qb="Invalid Duration",Gh={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},e2={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Gh},on=146097/400,wa=146097/4800,t2={years:{quarters:4,months:12,weeks:on/7,days:on,hours:on*24,minutes:on*24*60,seconds:on*24*60*60,milliseconds:on*24*60*60*1e3},quarters:{months:3,weeks:on/28,days:on/4,hours:on*24/4,minutes:on*24*60/4,seconds:on*24*60*60/4,milliseconds:on*24*60*60*1e3/4},months:{weeks:wa/7,days:wa,hours:wa*24,minutes:wa*24*60,seconds:wa*24*60*60,milliseconds:wa*24*60*60*1e3},...Gh},Pr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],n2=Pr.slice(0).reverse();function $r(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new qe(r)}function r2(t){return t<0?Math.floor(t):Math.ceil(t)}function qh(t,e,n,r,a){const i=t[a][n],o=e[n]/i,l=Math.sign(o)===Math.sign(r[a]),c=!l&&r[a]!==0&&Math.abs(o)<=1?r2(o):Math.trunc(o);r[a]+=c,e[n]-=c*i}function a2(t,e){n2.reduce((n,r)=>Ge(e[r])?n:(n&&qh(t,e,n,e,r),r),null)}class qe{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||ut.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n?t2:e2,this.isLuxonDuration=!0}static fromMillis(e,n){return qe.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new an(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new qe({values:_o(e,qe.normalizeUnit),loc:ut.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(e){if(Rr(e))return qe.fromMillis(e);if(qe.isDuration(e))return e;if(typeof e=="object")return qe.fromObject(e);throw new an(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Wb(e);return r?qe.fromObject(r,n):qe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=qb(e);return r?qe.fromObject(r,n):qe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new an("need to specify a reason the Duration is invalid");const r=e instanceof yn?e:new yn(e,n);if(Dt.throwOnInvalid)throw new Lw(r);return new qe({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new th(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Kt.create(this.loc,r).formatDurationFromString(this,e):Qb}toHuman(e={}){const n=Pr.map(r=>{const a=this.values[r];return Ge(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(a)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Tl(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(a+=".SSS"));let i=r.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=qe.fromDurationLike(e),r={};for(const a of Pr)(fa(n.values,a)||fa(this.values,a))&&(r[a]=n.get(a)+this.get(a));return $r(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=qe.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Sh(e(this.values[r],r));return $r(this,{values:n},!0)}get(e){return this[qe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,..._o(e,qe.normalizeUnit)};return $r(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n}),i={loc:a};return r&&(i.conversionAccuracy=r),$r(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return a2(this.matrix,e),$r(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>qe.normalizeUnit(o));const n={},r={},a=this.toObject();let i;for(const o of Pr)if(e.indexOf(o)>=0){i=o;let l=0;for(const d in r)l+=this.matrix[d][o]*r[d],r[d]=0;Rr(a[o])&&(l+=a[o]);const c=Math.trunc(l);n[o]=c,r[o]=(l*1e3-c*1e3)/1e3;for(const d in a)Pr.indexOf(d)>Pr.indexOf(o)&&qh(this.matrix,a,d,n,o)}else Rr(a[o])&&(r[o]=a[o]);for(const o in r)r[o]!==0&&(n[i]+=o===i?r[o]:r[o]/this.matrix[i][o]);return $r(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return $r(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,a){return r===void 0||r===0?a===void 0||a===0:r===a}for(const r of Pr)if(!n(this.values[r],e.values[r]))return!1;return!0}}const wi="Invalid Interval";function i2(t,e){return!t||!t.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<t?dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class dt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new an("need to specify a reason the Interval is invalid");const r=e instanceof yn?e:new yn(e,n);if(Dt.throwOnInvalid)throw new xw(r);return new dt({invalid:r})}static fromDateTimes(e,n){const r=Ei(e),a=Ei(n),i=i2(r,a);return i==null?new dt({start:r,end:a}):i}static after(e,n){const r=qe.fromDurationLike(n),a=Ei(e);return dt.fromDateTimes(a,a.plus(r))}static before(e,n){const r=qe.fromDurationLike(n),a=Ei(e);return dt.fromDateTimes(a.minus(r),a)}static fromISO(e,n){const[r,a]=(e||"").split("/",2);if(r&&a){let i,o;try{i=Be.fromISO(r,n),o=i.isValid}catch{o=!1}let l,c;try{l=Be.fromISO(a,n),c=l.isValid}catch{c=!1}if(o&&c)return dt.fromDateTimes(i,l);if(o){const d=qe.fromISO(a,n);if(d.isValid)return dt.after(i,d)}else if(c){const d=qe.fromISO(r,n);if(d.isValid)return dt.before(l,d)}}return dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?dt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Ei).filter(o=>this.contains(o)).sort(),r=[];let{s:a}=this,i=0;for(;a<this.e;){const o=n[i]||this.e,l=+o>+this.e?this.e:o;r.push(dt.fromDateTimes(a,l)),a=l,i+=1}return r}splitBy(e){const n=qe.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,a=1,i;const o=[];for(;r<this.e;){const l=this.start.plus(n.mapUnits(c=>c*a));i=+l>+this.e?this.e:l,o.push(dt.fromDateTimes(r,i)),r=i,a+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:dt.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return dt.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const a=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),o=Array.prototype.concat(...i),l=o.sort((c,d)=>c.time-d.time);for(const c of l)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&a.push(dt.fromDateTimes(n,c.time)),n=null);return dt.merge(a)}difference(...e){return dt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:wi}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:wi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:wi}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:wi}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:wi}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):qe.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class Co{static hasDST(e=Dt.defaultZone){const n=Be.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return jn.isValidZone(e)}static normalizeZone(e){return pr(e,Dt.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||ut.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||ut.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||ut.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||ut.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ut.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return ut.create(n,null,"gregory").eras(e)}static features(){return{relative:_h()}}}function Kh(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(qe.fromMillis(r).as("days"))}function o2(t,e,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=Kh(l,c);return(d-d%7)/7}],["days",Kh]],a={};let i,o;for(const[l,c]of r)if(n.indexOf(l)>=0){i=l;let d=c(t,e);o=t.plus({[l]:d}),o>e?(t=t.plus({[l]:d-1}),d-=1):t=o,a[l]=d}return[t,a,o,i]}function s2(t,e,n,r){let[a,i,o,l]=o2(t,e,n);const c=e-a,d=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(o<e&&(o=a.plus({[l]:1})),o!==a&&(i[l]=(i[l]||0)+c/(o-a)));const h=qe.fromObject(i,r);return d.length>0?qe.fromMillis(c,r).shiftTo(...d).plus(h):h}const Ul={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Zh={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},l2=Ul.hanidec.replace(/[\[|\]]/g,"").split("");function c2(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Ul.hanidec)!==-1)e+=l2.indexOf(t[n]);else for(const a in Zh){const[i,o]=Zh[a];r>=i&&r<=o&&(e+=r-i)}}return parseInt(e,10)}else return e}function vn({numberingSystem:t},e=""){return new RegExp(`${Ul[t||"latn"]}${e}`)}const u2="missing Intl.DateTimeFormat.formatToParts support";function Xe(t,e=n=>n){return{regex:t,deser:([n])=>e(c2(n))}}const d2=String.fromCharCode(160),Jh=`[ ${d2}]`,Xh=new RegExp(Jh,"g");function h2(t){return t.replace(/\./g,"\\.?").replace(Xh,Jh)}function Qh(t){return t.replace(/\./g,"").replace(Xh," ").toLowerCase()}function wn(t,e){return t===null?null:{regex:RegExp(t.map(h2).join("|")),deser:([n])=>t.findIndex(r=>Qh(n)===Qh(r))+e}}function ef(t,e){return{regex:t,deser:([,n,r])=>bo(n,r),groups:e}}function Hl(t){return{regex:t,deser:([e])=>e}}function f2(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function m2(t,e){const n=vn(e),r=vn(e,"{2}"),a=vn(e,"{3}"),i=vn(e,"{4}"),o=vn(e,"{6}"),l=vn(e,"{1,2}"),c=vn(e,"{1,3}"),d=vn(e,"{1,6}"),h=vn(e,"{1,9}"),m=vn(e,"{2,4}"),f=vn(e,"{4,6}"),p=k=>({regex:RegExp(f2(k.val)),deser:([T])=>T,literal:!0}),E=(k=>{if(t.literal)return p(k);switch(k.val){case"G":return wn(e.eras("short",!1),0);case"GG":return wn(e.eras("long",!1),0);case"y":return Xe(d);case"yy":return Xe(m,Ol);case"yyyy":return Xe(i);case"yyyyy":return Xe(f);case"yyyyyy":return Xe(o);case"M":return Xe(l);case"MM":return Xe(r);case"MMM":return wn(e.months("short",!0,!1),1);case"MMMM":return wn(e.months("long",!0,!1),1);case"L":return Xe(l);case"LL":return Xe(r);case"LLL":return wn(e.months("short",!1,!1),1);case"LLLL":return wn(e.months("long",!1,!1),1);case"d":return Xe(l);case"dd":return Xe(r);case"o":return Xe(c);case"ooo":return Xe(a);case"HH":return Xe(r);case"H":return Xe(l);case"hh":return Xe(r);case"h":return Xe(l);case"mm":return Xe(r);case"m":return Xe(l);case"q":return Xe(l);case"qq":return Xe(r);case"s":return Xe(l);case"ss":return Xe(r);case"S":return Xe(c);case"SSS":return Xe(a);case"u":return Hl(h);case"uu":return Hl(l);case"uuu":return Xe(n);case"a":return wn(e.meridiems(),0);case"kkkk":return Xe(i);case"kk":return Xe(m,Ol);case"W":return Xe(l);case"WW":return Xe(r);case"E":case"c":return Xe(n);case"EEE":return wn(e.weekdays("short",!1,!1),1);case"EEEE":return wn(e.weekdays("long",!1,!1),1);case"ccc":return wn(e.weekdays("short",!0,!1),1);case"cccc":return wn(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return ef(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return ef(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Hl(/[a-z_+-/]{1,256}?/i);default:return p(k)}})(t)||{invalidReason:u2};return E.token=t,E}const p2={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function g2(t,e,n){const{type:r,value:a}=t;if(r==="literal")return{literal:!0,val:a};const i=n[r];let o=p2[r];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function y2(t){return[`^${t.map(e=>e.regex).reduce((e,n)=>`${e}(${n.source})`,"")}$`,t]}function v2(t,e,n){const r=t.match(e);if(r){const a={};let i=1;for(const o in n)if(fa(n,o)){const l=n[o],c=l.groups?l.groups+1:1;!l.literal&&l.token&&(a[l.token.val[0]]=l.deser(r.slice(i,i+c))),i+=c}return[r,a]}else return[r,{}]}function w2(t){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Ge(t.z)||(n=jn.create(t.z)),Ge(t.Z)||(n||(n=new Ut(t.Z)),r=t.Z),Ge(t.q)||(t.M=(t.q-1)*3+1),Ge(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ge(t.u)||(t.S=Nl(t.u)),[Object.keys(t).reduce((a,i)=>{const o=e(i);return o&&(a[o]=t[i]),a},{}),n,r]}let jl=null;function b2(){return jl||(jl=Be.fromMillis(1555555555555)),jl}function _2(t,e){if(t.literal)return t;const n=Kt.macroTokenToFormatOpts(t.val);if(!n)return t;const r=Kt.create(e,n).formatDateTimeParts(b2()).map(a=>g2(a,e,n));return r.includes(void 0)?t:r}function E2(t,e){return Array.prototype.concat(...t.map(n=>_2(n,e)))}function tf(t,e,n){const r=E2(Kt.parseFormat(n),t),a=r.map(o=>m2(o,t)),i=a.find(o=>o.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[o,l]=y2(a),c=RegExp(o,"i"),[d,h]=v2(e,c,l),[m,f,p]=h?w2(h):[null,null,void 0];if(fa(h,"a")&&fa(h,"H"))throw new hi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:d,matches:h,result:m,zone:f,specificOffset:p}}}function D2(t,e,n){const{result:r,zone:a,specificOffset:i,invalidReason:o}=tf(t,e,n);return[r,a,i,o]}const nf=[0,31,59,90,120,151,181,212,243,273,304,334],rf=[0,31,60,91,121,152,182,213,244,274,305,335];function sn(t,e){return new yn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function af(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const a=r.getUTCDay();return a===0?7:a}function of(t,e,n){return n+(fi(t)?rf:nf)[e-1]}function sf(t,e){const n=fi(t)?rf:nf,r=n.findIndex(i=>i<e),a=e-n[r];return{month:r+1,day:a}}function Yl(t){const{year:e,month:n,day:r}=t,a=of(e,n,r),i=af(e,n,r);let o=Math.floor((a-i+10)/7),l;return o<1?(l=e-1,o=wo(l)):o>wo(e)?(l=e+1,o=1):l=e,{weekYear:l,weekNumber:o,weekday:i,...Eo(t)}}function lf(t){const{weekYear:e,weekNumber:n,weekday:r}=t,a=af(e,1,4),i=mi(e);let o=n*7+r-a-3,l;o<1?(l=e-1,o+=mi(l)):o>i?(l=e+1,o-=mi(e)):l=e;const{month:c,day:d}=sf(l,o);return{year:l,month:c,day:d,...Eo(t)}}function Wl(t){const{year:e,month:n,day:r}=t,a=of(e,n,r);return{year:e,ordinal:a,...Eo(t)}}function cf(t){const{year:e,ordinal:n}=t,{month:r,day:a}=sf(e,n);return{year:e,month:r,day:a,...Eo(t)}}function S2(t){const e=yo(t.weekYear),n=Hn(t.weekNumber,1,wo(t.weekYear)),r=Hn(t.weekday,1,7);return e?n?r?!1:sn("weekday",t.weekday):sn("week",t.week):sn("weekYear",t.weekYear)}function k2(t){const e=yo(t.year),n=Hn(t.ordinal,1,mi(t.year));return e?n?!1:sn("ordinal",t.ordinal):sn("year",t.year)}function uf(t){const e=yo(t.year),n=Hn(t.month,1,12),r=Hn(t.day,1,vo(t.year,t.month));return e?n?r?!1:sn("day",t.day):sn("month",t.month):sn("year",t.year)}function df(t){const{hour:e,minute:n,second:r,millisecond:a}=t,i=Hn(e,0,23)||e===24&&n===0&&r===0&&a===0,o=Hn(n,0,59),l=Hn(r,0,59),c=Hn(a,0,999);return i?o?l?c?!1:sn("millisecond",a):sn("second",r):sn("minute",n):sn("hour",e)}const Gl="Invalid DateTime",hf=864e13;function No(t){return new yn("unsupported zone",`the zone "${t.name}" is not supported`)}function ql(t){return t.weekData===null&&(t.weekData=Yl(t.c)),t.weekData}function bi(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Be({...n,...e,old:n})}function ff(t,e,n){let r=t-e*60*1e3;const a=n.offset(r);if(e===a)return[r,e];r-=(a-e)*60*1e3;const i=n.offset(r);return a===i?[r,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function mf(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function To(t,e,n){return ff(Al(t),e,n)}function pf(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:a,day:Math.min(t.c.day,vo(r,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=qe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=Al(i);let[c,d]=ff(l,n,t.zone);return o!==0&&(c+=o,d=t.zone.offset(c)),{ts:c,o:d}}function _i(t,e,n,r,a,i){const{setZone:o,zone:l}=n;if(t&&Object.keys(t).length!==0){const c=e||l,d=Be.fromObject(t,{...n,zone:c,specificOffset:i});return o?d:d.setZone(l)}else return Be.invalid(new yn("unparsable",`the input "${a}" can't be parsed as ${r}`))}function Ao(t,e,n=!0){return t.isValid?Kt.create(ut.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Kl(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=_t(t.c.year,n?6:4),e?(r+="-",r+=_t(t.c.month),r+="-",r+=_t(t.c.day)):(r+=_t(t.c.month),r+=_t(t.c.day)),r}function gf(t,e,n,r,a,i){let o=_t(t.c.hour);return e?(o+=":",o+=_t(t.c.minute),(t.c.second!==0||!n)&&(o+=":")):o+=_t(t.c.minute),(t.c.second!==0||!n)&&(o+=_t(t.c.second),(t.c.millisecond!==0||!r)&&(o+=".",o+=_t(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=_t(Math.trunc(-t.o/60)),o+=":",o+=_t(Math.trunc(-t.o%60))):(o+="+",o+=_t(Math.trunc(t.o/60)),o+=":",o+=_t(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const yf={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},I2={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},C2={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vf=["year","month","day","hour","minute","second","millisecond"],N2=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],T2=["year","ordinal","hour","minute","second","millisecond"];function wf(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new th(t);return e}function bf(t,e){const n=pr(e.zone,Dt.defaultZone),r=ut.fromObject(e),a=Dt.now();let i,o;if(Ge(t.year))i=a;else{for(const d of vf)Ge(t[d])&&(t[d]=yf[d]);const l=uf(t)||df(t);if(l)return Be.invalid(l);const c=n.offset(a);[i,o]=To(t,c,n)}return new Be({ts:i,zone:n,loc:r,o})}function _f(t,e,n){const r=Ge(n.round)?!0:n.round,a=(o,l)=>(o=Tl(o,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,l)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return a(i(n.unit),n.unit);for(const o of n.units){const l=i(o);if(Math.abs(l)>=1)return a(l,o)}return a(t>e?-0:0,n.units[n.units.length-1])}function Ef(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Be{constructor(e){const n=e.zone||Dt.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new yn("invalid input"):null)||(n.isValid?null:No(n));this.ts=Ge(e.ts)?Dt.now():e.ts;let a=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);a=mf(this.ts,o),r=Number.isNaN(a.year)?new yn("invalid input"):null,a=r?null:a,i=r?null:o}this._zone=n,this.loc=e.loc||ut.create(),this.invalid=r,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new Be({})}static local(){const[e,n]=Ef(arguments),[r,a,i,o,l,c,d]=n;return bf({year:r,month:a,day:i,hour:o,minute:l,second:c,millisecond:d},e)}static utc(){const[e,n]=Ef(arguments),[r,a,i,o,l,c,d]=n;return e.zone=Ut.utcInstance,bf({year:r,month:a,day:i,hour:o,minute:l,second:c,millisecond:d},e)}static fromJSDate(e,n={}){const r=$w(e)?e.valueOf():NaN;if(Number.isNaN(r))return Be.invalid("invalid input");const a=pr(n.zone,Dt.defaultZone);return a.isValid?new Be({ts:r,zone:a,loc:ut.fromObject(n)}):Be.invalid(No(a))}static fromMillis(e,n={}){if(Rr(e))return e<-hf||e>hf?Be.invalid("Timestamp out of range"):new Be({ts:e,zone:pr(n.zone,Dt.defaultZone),loc:ut.fromObject(n)});throw new an(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Rr(e))return new Be({ts:e*1e3,zone:pr(n.zone,Dt.defaultZone),loc:ut.fromObject(n)});throw new an("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=pr(n.zone,Dt.defaultZone);if(!r.isValid)return Be.invalid(No(r));const a=Dt.now(),i=Ge(n.specificOffset)?r.offset(a):n.specificOffset,o=_o(e,wf),l=!Ge(o.ordinal),c=!Ge(o.year),d=!Ge(o.month)||!Ge(o.day),h=c||d,m=o.weekYear||o.weekNumber,f=ut.fromObject(n);if((h||l)&&m)throw new hi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new hi("Can't mix ordinal dates with month/day");const p=m||o.weekday&&!h;let E,k,T=mf(a,i);p?(E=N2,k=I2,T=Yl(T)):l?(E=T2,k=C2,T=Wl(T)):(E=vf,k=yf);let b=!1;for(const F of E){const V=o[F];Ge(V)?b?o[F]=k[F]:o[F]=T[F]:b=!0}const w=p?S2(o):l?k2(o):uf(o),A=w||df(o);if(A)return Be.invalid(A);const S=p?lf(o):l?cf(o):o,[N,L]=To(S,i,r),M=new Be({ts:N,zone:r,o:L,loc:f});return o.weekday&&h&&e.weekday!==M.weekday?Be.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${M.toISO()}`):M}static fromISO(e,n={}){const[r,a]=Hb(e);return _i(r,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,a]=jb(e);return _i(r,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,a]=Yb(e);return _i(r,a,n,"HTTP",n)}static fromFormat(e,n,r={}){if(Ge(e)||Ge(n))throw new an("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=r,o=ut.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[l,c,d,h]=D2(o,e,n);return h?Be.invalid(h):_i(l,c,r,`format ${n}`,e,d)}static fromString(e,n,r={}){return Be.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,a]=Xb(e);return _i(r,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new an("need to specify a reason the DateTime is invalid");const r=e instanceof yn?e:new yn(e,n);if(Dt.throwOnInvalid)throw new Ow(r);return new Be({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ql(this).weekYear:NaN}get weekNumber(){return this.isValid?ql(this).weekNumber:NaN}get weekday(){return this.isValid?ql(this).weekday:NaN}get ordinal(){return this.isValid?Wl(this.c).ordinal:NaN}get monthShort(){return this.isValid?Co.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Co.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Co.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Co.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return fi(this.year)}get daysInMonth(){return vo(this.year,this.month)}get daysInYear(){return this.isValid?mi(this.year):NaN}get weeksInWeekYear(){return this.isValid?wo(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:a}=Kt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(Ut.instance(e),n)}toLocal(){return this.setZone(Dt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=pr(e,Dt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||r){const i=e.offset(this.ts),o=this.toObject();[a]=To(o,i,e)}return bi(this,{ts:a,zone:e})}else return Be.invalid(No(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return bi(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=_o(e,wf),r=!Ge(n.weekYear)||!Ge(n.weekNumber)||!Ge(n.weekday),a=!Ge(n.ordinal),i=!Ge(n.year),o=!Ge(n.month)||!Ge(n.day),l=i||o,c=n.weekYear||n.weekNumber;if((l||a)&&c)throw new hi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new hi("Can't mix ordinal dates with month/day");let d;r?d=lf({...Yl(this.c),...n}):Ge(n.ordinal)?(d={...this.toObject(),...n},Ge(n.day)&&(d.day=Math.min(vo(d.year,d.month),d.day))):d=cf({...Wl(this.c),...n});const[h,m]=To(d,this.o,this.zone);return bi(this,{ts:h,o:m})}plus(e){if(!this.isValid)return this;const n=qe.fromDurationLike(e);return bi(this,pf(this,n))}minus(e){if(!this.isValid)return this;const n=qe.fromDurationLike(e).negate();return bi(this,pf(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=qe.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?Kt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Gl}toLocaleString(e=Cl,n={}){return this.isValid?Kt.create(this.loc.clone(n),e).formatDateTime(this):Gl}toLocaleParts(e={}){return this.isValid?Kt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let l=Kl(this,o);return l+="T",l+=gf(this,o,n,r,a,i),l}toISODate({format:e="extended"}={}){return this.isValid?Kl(this,e==="extended"):null}toISOWeekDate(){return Ao(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+gf(this,o==="extended",n,e,r,i):null}toRFC2822(){return Ao(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ao(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Kl(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let a="HH:mm:ss.SSS";return(n||e)&&(r&&(a+=" "),n?a+="z":e&&(a+="ZZ")),Ao(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Gl}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return qe.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Bw(n).map(qe.normalizeUnit),o=e.valueOf()>this.valueOf(),l=o?this:e,c=o?e:this,d=s2(l,c,i,a);return o?d.negate():d}diffNow(e="milliseconds",n={}){return this.diff(Be.now(),e,n)}until(e){return this.isValid?dt.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=r&&r<=a.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Be.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),_f(n,this.plus(r),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?_f(e.base||Be.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Be.isDateTime))throw new an("min requires all arguments be DateTimes");return Eh(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Be.isDateTime))throw new an("max requires all arguments be DateTimes");return Eh(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:a=null,numberingSystem:i=null}=r,o=ut.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return tf(o,e,n)}static fromStringExplain(e,n,r={}){return Be.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Cl}static get DATE_MED(){return nh}static get DATE_MED_WITH_WEEKDAY(){return Rw}static get DATE_FULL(){return rh}static get DATE_HUGE(){return ah}static get TIME_SIMPLE(){return ih}static get TIME_WITH_SECONDS(){return oh}static get TIME_WITH_SHORT_OFFSET(){return sh}static get TIME_WITH_LONG_OFFSET(){return lh}static get TIME_24_SIMPLE(){return ch}static get TIME_24_WITH_SECONDS(){return uh}static get TIME_24_WITH_SHORT_OFFSET(){return dh}static get TIME_24_WITH_LONG_OFFSET(){return hh}static get DATETIME_SHORT(){return fh}static get DATETIME_SHORT_WITH_SECONDS(){return mh}static get DATETIME_MED(){return ph}static get DATETIME_MED_WITH_SECONDS(){return gh}static get DATETIME_MED_WITH_WEEKDAY(){return Mw}static get DATETIME_FULL(){return yh}static get DATETIME_FULL_WITH_SECONDS(){return vh}static get DATETIME_HUGE(){return wh}static get DATETIME_HUGE_WITH_SECONDS(){return bh}}function Ei(t){if(Be.isDateTime(t))return t;if(t&&t.valueOf&&Rr(t.valueOf()))return Be.fromJSDate(t);if(t&&typeof t=="object")return Be.fromObject(t);throw new an(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function ba(t){if(t)return St(t.dateTime,t.timeZone)}function St(t,e){return Be.fromISO(t,{zone:e}).toJSDate()}function Di(t,e){if(e){const n=new Date(t.toLocaleString("en-US",{timeZone:e}));return{dateTime:Oo(n),timeZone:e}}else return{dateTime:Oo(t)}}function ln(t,e){const n=new Date(t.toLocaleString("en-US",{timeZone:e}));return n.getFullYear()+"-"+("0"+(n.getMonth()+1)).slice(-2)+"-"+("0"+n.getDate()).slice(-2)}function Oo(t,e=!1){let n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),l=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(r<10?"0"+r:r)+"/"+n:n+"-"+(r<10?"0"+r:r)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(l<10?"0"+l:l)}const A2={nbsp:" ",amp:"&",lt:"<",gt:">",quot:'"',apos:"'",cent:"\xA2",pound:"\xA3",yen:"\xA5",euro:"\u20AC",copy:"\xA9",reg:"\xAE"};function ve(t){return t==null?"":(t=t==null?void 0:t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(n)}),t=t.replace(/&([^;]+);/g,(e,n)=>A2[n]),t)}function Pe(t){return t==null?"":t==null?void 0:t.replace(/[\u0100-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function O2(t){return new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result),r.onerror=a=>n(a)})}class _a{constructor(){u(this,"name"),u(this,"startPeriod"),u(this,"endPeriod"),u(this,"monday"),u(this,"tuesday"),u(this,"wednesday"),u(this,"thursday"),u(this,"friday"),u(this,"saturday"),u(this,"sunday")}static fromSettingsPeriodWorkingDto(e){const n=new _a;return n.name=ve(e.name),n.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},n.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(n.monday=[],e.monday.forEach(r=>{var a;(a=n.monday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.tuesday&&(n.tuesday=[],e.tuesday.forEach(r=>{var a;(a=n.tuesday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.wednesday&&(n.wednesday=[],e.wednesday.forEach(r=>{var a;(a=n.wednesday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.thursday&&(n.thursday=[],e.thursday.forEach(r=>{var a;(a=n.thursday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.friday&&(n.friday=[],e.friday.forEach(r=>{var a;(a=n.friday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.saturday&&(n.saturday=[],e.saturday.forEach(r=>{var a;(a=n.saturday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.sunday&&(n.sunday=[],e.sunday.forEach(r=>{var a;(a=n.sunday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),n}static toSettingsPeriodWorkingDto(e){const n=new x2;return n.name=Pe(e.name),n.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},n.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(n.monday=[],e.monday.forEach(r=>{var a;(a=n.monday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.tuesday&&(n.tuesday=[],e.tuesday.forEach(r=>{var a;(a=n.tuesday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.wednesday&&(n.wednesday=[],e.wednesday.forEach(r=>{var a;(a=n.wednesday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.thursday&&(n.thursday=[],e.thursday.forEach(r=>{var a;(a=n.thursday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.friday&&(n.friday=[],e.friday.forEach(r=>{var a;(a=n.friday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.saturday&&(n.saturday=[],e.saturday.forEach(r=>{var a;(a=n.saturday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),e.sunday&&(n.sunday=[],e.sunday.forEach(r=>{var a;(a=n.sunday)==null||a.push(Mt.fromSettingsPeriodWorkingDayDto(r))})),n}}class Mt{constructor(){u(this,"service"),u(this,"start"),u(this,"end")}static fromSettingsPeriodWorkingDayDto(e){var n,r;const a=new Mt;return a.end=e.end,e.service&&(a.service={id:(n=e.service)==null?void 0:n.id,name:(r=e.service)==null?void 0:r.name}),a.start=e.start,a}static toSettingsPeriodWorkingDayDto(e){var n,r;const a=new L2;return a.end=e.end,e.service&&(a.service={id:(n=e.service)==null?void 0:n.id,name:(r=e.service)==null?void 0:r.name}),a.start=e.start,a}}class Zl{constructor(){u(this,"day"),u(this,"hours")}static fromCalendarWorkingDayDto(e,n){const r=new Zl;r.day=St(e.day,n);const a=[];return e.hours.forEach(i=>a.push(Jl.fromCalendarWorkingHoursDto(i,e.day,n))),r.hours=a,r}}class gr{constructor(){u(this,"day"),u(this,"hours")}static fromSettingsWorkingDayDto(e){const n=new gr;return n.day=e.day,n.hours=[],e.hours.forEach(r=>n.hours.push(xo.fromSettingsWorkingHoursDto(r))),n}static toSettingsWorkingDayDto(e){const n=new R2;return n.day=e.day,n.hours=[],e.hours.forEach(r=>n.hours.push(xo.toSettingsWorkingHoursDto(r))),n}}class xo{constructor(){u(this,"start"),u(this,"end")}static fromSettingsWorkingHoursDto(e){const n=new xo;return n.start=e.start,n.end=e.end,n}static toSettingsWorkingHoursDto(e){const n=new M2;return n.start=e.start,n.end=e.end,n}}class Jl{constructor(){u(this,"start"),u(this,"end")}static fromCalendarWorkingHoursDto(e,n,r){const a=new Jl;return a.start=St(n+"T"+e.start,r),a.end=St(n+"T"+e.end,r),a}}class x2{constructor(){u(this,"name"),u(this,"startPeriod"),u(this,"endPeriod"),u(this,"monday"),u(this,"tuesday"),u(this,"wednesday"),u(this,"thursday"),u(this,"friday"),u(this,"saturday"),u(this,"sunday")}}class L2{constructor(){u(this,"service"),u(this,"start"),u(this,"end")}}class R2{constructor(){u(this,"day"),u(this,"hours")}}class M2{constructor(){u(this,"start"),u(this,"end")}}const Df={DB_NAME:"agendize",DB_VERSION:20},P2=(t,e)=>e.some(n=>t instanceof n);let Sf,kf;function $2(){return Sf||(Sf=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function B2(){return kf||(kf=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const If=new WeakMap,Xl=new WeakMap,Cf=new WeakMap,Ql=new WeakMap,ec=new WeakMap;function F2(t){const e=new Promise((n,r)=>{const a=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(Yn(t.result)),a()},o=()=>{r(t.error),a()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&If.set(n,t)}).catch(()=>{}),ec.set(e,t),e}function z2(t){if(Xl.has(t))return;const e=new Promise((n,r)=>{const a=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),a()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Xl.set(t,e)}let tc={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Xl.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Cf.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Yn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function V2(t){tc=t(tc)}function U2(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(nc(this),e,...n);return Cf.set(r,e.sort?e.sort():[e]),Yn(r)}:B2().includes(t)?function(...e){return t.apply(nc(this),e),Yn(If.get(this))}:function(...e){return Yn(t.apply(nc(this),e))}}function H2(t){return typeof t=="function"?U2(t):(t instanceof IDBTransaction&&z2(t),P2(t,$2())?new Proxy(t,tc):t)}function Yn(t){if(t instanceof IDBRequest)return F2(t);if(Ql.has(t))return Ql.get(t);const e=H2(t);return e!==t&&(Ql.set(t,e),ec.set(e,t)),e}const nc=t=>ec.get(t);function j2(t,e,{blocked:n,upgrade:r,blocking:a,terminated:i}={}){const o=indexedDB.open(t,e),l=Yn(o);return r&&o.addEventListener("upgradeneeded",c=>{r(Yn(o.result),c.oldVersion,c.newVersion,Yn(o.transaction),c)}),n&&o.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),a&&c.addEventListener("versionchange",d=>a(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}function Y2(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",r=>e(r.oldVersion,r)),Yn(n).then(()=>{})}const W2=["get","getKey","getAll","getAllKeys","count"],G2=["put","add","delete","clear"],rc=new Map;function Nf(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(rc.get(e))return rc.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,a=G2.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||W2.includes(n)))return;const i=async function(o,...l){const c=this.transaction(o,a?"readwrite":"readonly");let d=c.store;return r&&(d=d.index(l.shift())),(await Promise.all([d[n](...l),a&&c.done]))[0]};return rc.set(e,i),i}V2(t=>({...t,get:(e,n,r)=>Nf(e,n)||t.get(e,n,r),has:(e,n)=>!!Nf(e,n)||t.has(e,n)}));class Ea{constructor(){u(this,"id"),u(this,"companies"),u(this,"anonymous")}static fromCalendarDto(e,n,r){const a=new Ea;a.id=e.userId;const i=[];return e.companies.forEach(o=>i.push(ac.fromCalendarCompanyDto(o,n))),a.companies=i,a.anonymous=!1,r&&r.forEach(o=>{a.companies.forEach(l=>{(l.companyId===o.ownerId||l.staffId===o.ownerId)&&l.workingHours.forEach((c,d,h)=>{c.day.getTime()<o.end&&c.day.getTime()>=o.start&&(c.hours=[])})})}),a}}class ac{constructor(){u(this,"companyId"),u(this,"staffId"),u(this,"ics"),u(this,"workingHours")}static fromCalendarCompanyDto(e,n){const r=new ac;r.companyId=e.companyId,r.staffId=e.staffId,r.ics=e.ics;const a=[];return e.workingHours.forEach(i=>a.push(Zl.fromCalendarWorkingDayDto(i,n))),r.workingHours=a,r}}class Si{constructor(){u(this,"id"),u(this,"name"),u(this,"company"),u(this,"managers"),u(this,"members")}static fromDto(e){var n,r;const a=new Si;return a.id=e.id,a.name=e.name,a.company=e.company,a.members=((n=e.members)!=null?n:[]).map(i=>i.id),a.managers=((r=e.managers)!=null?r:[]).map(i=>i.id),a}}class vt{constructor(e,n,r){u(this,"mimeType"),u(this,"url"),u(this,"data"),this.mimeType=e,this.url=n,this.data=r}static fromImageDto(e){if(e)return new vt(e.mimeType,e.url&&e.url.startsWith("http")?e.url+"?"+Math.random().toString(32):e.url,e.data)}static toImageDto(e){let n;if(e){const r=JSON.parse(JSON.stringify(e));r.data!==void 0&&(n=new vt(r.mimeType,r.url,r.data))}return n}static fromFileData(e,n){return e?new vt("","",""):n?new vt("","",n):void 0}}class yr{constructor(){u(this,"id"),u(this,"author"),u(this,"name"),u(this,"title"),u(this,"submitMessage"),u(this,"description"),u(this,"fields"),u(this,"followUp"),u(this,"emailNotifications"),u(this,"emailNotificationsAddresses"),u(this,"clientEmailNotifications"),u(this,"finalizeLater"),u(this,"finalizeLaterEmailMessage")}static fromFormBuilderDto(e){var n,r;let a=new yr;a.id=e.id,a.author=e.author,a.name=ve(e.name),a.title=ve(e.title),a.submitMessage=ve(e.submitMessage),a.description=ve(e.description);let i=[];(n=e.fields)==null||n.forEach(l=>i.push(Ct.fromFormDto(l))),a.fields=i,a.followUp=e.followUp,a.emailNotifications=e.emailNotifications;let o=[];return(r=e.emailNotificationsAddresses)==null||r.forEach(l=>o.push(l)),a.emailNotificationsAddresses=o,a.clientEmailNotifications=e.clientEmailNotifications,a.finalizeLater=e.finalizeLater,a.finalizeLaterEmailMessage=ve(e.finalizeLaterEmailMessage),a}static toFromBuilderDto(e){var n,r;let a=new q2;a.id=e.id,a.author=e.author,a.name=Pe(e.name),a.title=Pe(e.title),a.submitMessage=Pe(e.submitMessage),a.description=Pe(e.description);let i=[];(n=e.fields)==null||n.forEach(l=>i.push(Ct.toFormDto(l))),a.fields=i,a.followUp=e.followUp,a.emailNotifications=e.emailNotifications;let o=[];return(r=e.emailNotificationsAddresses)==null||r.forEach(l=>o.push(l)),a.emailNotificationsAddresses=o,a.clientEmailNotifications=e.clientEmailNotifications,a.finalizeLater=e.finalizeLater,a.finalizeLaterEmailMessage=Pe(e.finalizeLaterEmailMessage),a}}class q2{constructor(){u(this,"id"),u(this,"author"),u(this,"name"),u(this,"title"),u(this,"description"),u(this,"submitMessage"),u(this,"fields"),u(this,"followUp"),u(this,"emailNotifications"),u(this,"emailNotificationsAddresses"),u(this,"clientEmailNotifications"),u(this,"finalizeLater"),u(this,"finalizeLaterEmailMessage")}}class Wn{constructor(){u(this,"id"),u(this,"name"),u(this,"value"),u(this,"values")}static fromCustomFormValueDto(e){var n;const r=new Wn;r.id=e.id,r.name=ve(e.name),r.value=ve(e.value);const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(Wn.fromCustomFormValueDto(i))}),r.values=a,r}static toFormValueDto(e){var n;const r=new Z2;r.id=e.id,r.name=Pe(e.name),r.value=Pe(e.value);const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(Wn.toFormValueDto(i))}),r.values=a,r}}class Ct{constructor(){u(this,"id"),u(this,"label"),u(this,"type"),u(this,"inputType"),u(this,"visible"),u(this,"disabled"),u(this,"required"),u(this,"values"),u(this,"subItem"),u(this,"valueGroups"),u(this,"formatType"),u(this,"pattern"),u(this,"minlength"),u(this,"maxlength"),u(this,"externalId"),u(this,"help"),u(this,"placeholder"),u(this,"otherValue"),u(this,"category"),u(this,"readonly"),u(this,"value"),u(this,"fileName"),u(this,"multiple"),u(this,"bind"),u(this,"bindGroup")}static fromFormDto(e){var n,r,a,i,o,l,c;const d=new Ct;d.id=e.id,d.label=ve(e.title?e.title:e.label),d.type=e.type,d.inputType=e.inputType,d.visible=e.visible,d.disabled=e.disabled,d.required=e.mandatory;const h=[];(n=e.values)==null||n.forEach(p=>{h.push(Wn.fromCustomFormValueDto(p))}),d.values=h;const m=[];(r=e.valueGroups)==null||r.forEach(p=>{m.push(Wn.fromCustomFormValueDto(p))}),d.valueGroups=m;const f=[];return e.subItem&&((a=e.subItem)==null||a.forEach(p=>{f.push(Ct.fromFormDto(p))})),d.subItem=f,d.readonly=e.readonly,d.fileName=e.fileName,d.multiple=e.multiple,d.pattern=(i=e.valueFormat)==null?void 0:i.regexValue,d.minlength=(o=e.valueFormat)==null?void 0:o.minLength,d.maxlength=(l=e.valueFormat)==null?void 0:l.maxLength,d.formatType=(c=e.valueFormat)==null?void 0:c.type,d.externalId=e.externalId,d.help=e.help,d.placeholder=e.placeholder,d.otherValue=e.otherValue,d.category=e.category,d.bind=e.bind,d.bindGroup=e.bindGroup,d.value=ve(e.value),d}static fromWidgetFormItemDto(e){var n;const r=new Ct;r.id=e.id,r.label=ve(e.title?e.title:e.label),r.type=e.type,r.inputType=e.inputType,r.visible=e.visible,r.disabled=e.disabled,r.required=e.required;const a=[];return(n=e.values)==null||n.forEach(i=>{a.push(Wn.fromCustomFormValueDto(i))}),r.values=a,r.readonly=e.readonly,r.fileName=e.fileName,r.multiple=e.multiple,r.pattern=e.pattern,r.minlength=e.minlength,r.maxlength=e.maxlength,r.formatType=e.pattern?"regex":"none",r.externalId=e.externalId,r.help=e.help,r.placeholder=e.placeholder,r.bind=e.bind,r.bindGroup=e.bindGroup,r.value=ve(e.value),r}static toFormDto(e){var n,r,a;const i=new K2;i.id=e.id,i.label=Pe(e.label),i.title=Pe(e.label),i.type=e.type,i.inputType=e.inputType,i.visible=e.visible,i.disabled=e.disabled,i.mandatory=e.required;const o=[];(n=e.values)==null||n.forEach(d=>{o.push(Wn.toFormValueDto(d))}),i.values=o;const l=[];(r=e.valueGroups)==null||r.forEach(d=>{l.push(Wn.toFormValueDto(d))}),i.valueGroups=l,i.valueFormat={type:e.formatType,maxLength:e.maxlength,minLength:e.minlength,regexValue:e.pattern};const c=[];return e.subItem&&((a=e.subItem)==null||a.forEach(d=>{c.push(Ct.toFormDto(d))})),i.subItem=c,i.readonly=e.readonly,i.multiple=e.multiple,i.bind=e.bind,i.bindGroup=e.bindGroup,i.externalId=e.externalId,i.help=e.help,i.placeholder=e.placeholder,i.otherValue=e.otherValue,i.category=e.category,Array.isArray(e.value)?i.value=e.value.map(d=>Pe(d)):typeof e.value=="string"?i.value=Pe(e.value):i.value=e.value,i}static formItemToFormField(e){var n;return{id:e.id,inputType:e.inputType||e.type,label:e.label,mandatory:e.required,visible:e.visible,values:(n=e.values)==null?void 0:n.map(r=>{let a={label:r.name,value:r.value};return r.values&&(a.values=[],r.values.forEach(i=>a.values.push({label:i.name,value:i.value}))),a}),bind:e.bind,multiple:e.multiple,value:e.value,pattern:e.pattern,disabled:e.disabled,minlength:e.minlength,maxlength:e.maxlength}}static formItemsToFormFields(e,n=!1){if(e&&e.length>0){const r=[];return e.forEach(a=>{var i;n&&a.subItem&&a.subItem.length>0?(i=a.subItem)==null||i.forEach(o=>{r.push(Ct.formItemToFormField(o))}):r.push(Ct.formItemToFormField(a))}),r}}}class K2{constructor(){u(this,"id"),u(this,"label"),u(this,"title"),u(this,"type"),u(this,"inputType"),u(this,"visible"),u(this,"disabled"),u(this,"mandatory"),u(this,"values"),u(this,"subItem"),u(this,"valueGroups"),u(this,"valueFormat"),u(this,"externalId"),u(this,"help"),u(this,"placeholder"),u(this,"otherValue"),u(this,"category"),u(this,"readonly"),u(this,"value"),u(this,"fileName"),u(this,"multiple"),u(this,"bind"),u(this,"bindGroup")}}class Z2{constructor(){u(this,"id"),u(this,"name"),u(this,"value"),u(this,"values")}}class Nn{constructor(){u(this,"id"),u(this,"cipherId"),u(this,"userId"),u(this,"company"),u(this,"firstName"),u(this,"lastName"),u(this,"gender"),u(this,"title"),u(this,"email"),u(this,"phone"),u(this,"otherPhone"),u(this,"description"),u(this,"vacations"),u(this,"role"),u(this,"workingHours"),u(this,"customWorkingHours"),u(this,"picture"),u(this,"servicesSkill"),u(this,"color"),u(this,"availableForWidget"),u(this,"externalId"),u(this,"additionalFields"),u(this,"externalCalendars"),u(this,"calendarLink")}fullName(){return this.firstName+" "+this.lastName}static fromStaffDto(e){const n=new Nn;return n.id=e.id,n.cipherId=e.cipherId,e.company&&(n.company={id:e.company.id,name:e.company.name}),n.firstName=ve(e.firstName),n.lastName=ve(e.lastName),n.email=e.email,n.phone=e.phone,n.gender=e.gender,n.title=e.title,n.otherPhone=e.otherPhone,n.description=ve(e.description),n.role=e.role,n.externalId=e.externalId,e.vacations&&(n.vacations=[],e.vacations.forEach(r=>{var a;return(a=n.vacations)==null?void 0:a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(gr.fromSettingsWorkingDayDto(r))})),e.customWorkingHours&&(n.customWorkingHours=[],e.customWorkingHours.forEach(r=>{var a;return(a=n.customWorkingHours)==null?void 0:a.push(_a.fromSettingsPeriodWorkingDto(r))})),e.additionalFields&&(n.additionalFields=[],e.additionalFields.forEach(r=>{var a;return(a=n.additionalFields)==null?void 0:a.push(Ct.fromFormDto(r))})),e.externalCalendars&&(n.externalCalendars=[],e.externalCalendars.forEach(r=>{var a;return(a=n.externalCalendars)==null?void 0:a.push(r)})),e.calendarLink&&(n.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(n.picture=vt.fromImageDto(e.picture)),e.services&&(n.servicesSkill=[],e.services.forEach(r=>{var a;(a=n.servicesSkill)==null||a.push(r.id)})),n.color=e.color,n.availableForWidget=e.availableForWidget,n}static toStaffDto(e){const n=new J2;return n.id=e.id,e.company&&(n.company={id:e.company.id,name:e.company.name}),n.firstName=Pe(e.firstName),n.lastName=Pe(e.lastName),n.email=e.email,n.phone=e.phone,n.gender=e.gender,n.title=e.title,n.otherPhone=e.otherPhone,n.description=Pe(e.description),n.role=e.role,n.externalId=e.externalId,e.vacations&&(n.vacations=[],e.vacations.forEach(r=>{var a;return(a=n.vacations)==null?void 0:a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(gr.fromSettingsWorkingDayDto(r))})),e.customWorkingHours&&(n.customWorkingHours=[],e.customWorkingHours.forEach(r=>{var a;return(a=n.customWorkingHours)==null?void 0:a.push(_a.fromSettingsPeriodWorkingDto(r))})),e.additionalFields&&(n.additionalFields=[],e.additionalFields.forEach(r=>{var a;return(a=n.additionalFields)==null?void 0:a.push(Ct.fromFormDto(r))})),e.externalCalendars&&(n.externalCalendars=[],e.externalCalendars.forEach(r=>{var a;return(a=n.externalCalendars)==null?void 0:a.push(r)})),e.calendarLink&&(n.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(n.picture=vt.toImageDto(e.picture)),e.servicesSkill&&(n.services=[],e.servicesSkill.forEach(r=>{var a;(a=n.services)==null||a.push({id:r})})),n.color=e.color,n.availableForWidget=e.availableForWidget,n}}class J2{constructor(){u(this,"id"),u(this,"cipherId"),u(this,"company"),u(this,"firstName"),u(this,"lastName"),u(this,"gender"),u(this,"title"),u(this,"email"),u(this,"phone"),u(this,"otherPhone"),u(this,"description"),u(this,"vacations"),u(this,"role"),u(this,"workingHours"),u(this,"customWorkingHours"),u(this,"picture"),u(this,"services"),u(this,"color"),u(this,"availableForWidget"),u(this,"externalId"),u(this,"additionalFields"),u(this,"externalCalendars"),u(this,"calendarLink")}}class Gn{constructor(){u(this,"id"),u(this,"cipherId"),u(this,"company"),u(this,"name"),u(this,"description"),u(this,"capacity"),u(this,"price"),u(this,"bufferDuration"),u(this,"preparationDuration"),u(this,"validation"),u(this,"externalId"),u(this,"duration"),u(this,"locations"),u(this,"locationCustom"),u(this,"picture"),u(this,"staffsSkill"),u(this,"color"),u(this,"type"),u(this,"availability"),u(this,"minAppointmentDate"),u(this,"maxAppointmentDate"),u(this,"appointmentDateScope"),u(this,"i18n"),u(this,"resources"),u(this,"maxCancellationDelay")}static fromServiceDto(e){var n;const r=new Gn;r.id=e.id,r.cipherId=e.cipherId,r.company=e.company?{id:e.company.id,name:ve(e.company.name)}:void 0,r.name=ve(e.name),r.duration=e.duration,r.description=ve(e.description),r.capacity=e.capacity,r.price=e.price,r.bufferDuration=e.bufferDuration,r.preparationDuration=e.preparationDuration,r.validation=e.validation,r.externalId=e.externalId,r.maxAppointmentDate=e.maxAppointmentDate,r.minAppointmentDate=e.minAppointmentDate,r.appointmentDateScope=e.appointmentDateScope;const a=[];return(n=e.resource)==null||n.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),r.resources=a,r.type=e.bypassFreeBusyAvailabilities!==void 0&&e.bypassFreeBusyAvailabilities?"event":"default",r.locations=e.locations,r.locationCustom=ve(e.locationCustom),r.picture=vt.fromImageDto(e.picture),e.staff&&(r.staffsSkill=[],e.staff.forEach(i=>{var o;(o=r.staffsSkill)==null||o.push(i.id)})),e.i18n&&(r.i18n={},e.i18n.fr&&(r.i18n.fr=e.i18n.fr),e.i18n.en&&(r.i18n.en=e.i18n.en),e.i18n.es&&(r.i18n.es=e.i18n.es),e.i18n.de&&(r.i18n.de=e.i18n.de),e.i18n.it&&(r.i18n.it=e.i18n.it),e.i18n.pt&&(r.i18n.pt=e.i18n.pt),e.i18n.jp&&(r.i18n.jp=e.i18n.jp),e.i18n.nl&&(r.i18n.nl=e.i18n.nl)),r.color=e.color,r.availability=e.availability,r.maxCancellationDelay=e.maxCancellationDelay,r}static toServiceDto(e){var n;const r=new X2;r.id=e.id,r.name=Pe(e.name),r.duration=e.duration,r.description=Pe(e.description),r.capacity=e.capacity,r.price=e.price,r.bufferDuration=e.bufferDuration,r.preparationDuration=e.preparationDuration,r.validation=e.validation,r.externalId=e.externalId,r.picture=vt.toImageDto(e.picture),r.maxAppointmentDate=e.maxAppointmentDate,r.minAppointmentDate=e.minAppointmentDate,r.appointmentDateScope=e.appointmentDateScope;const a=[];return r.bypassFreeBusyAvailabilities=e.type==="event",(n=e.resources)==null||n.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),r.resource=a,r.locations=e.locations,r.locationCustom=Pe(e.locationCustom),e.staffsSkill&&(r.staff=[],e.staffsSkill.forEach(i=>{var o;(o=r.staff)==null||o.push({id:i})})),e.i18n&&(r.i18n={},e.i18n.fr&&(r.i18n.fr=e.i18n.fr),e.i18n.en&&(r.i18n.en=e.i18n.en),e.i18n.es&&(r.i18n.es=e.i18n.es),e.i18n.de&&(r.i18n.de=e.i18n.de),e.i18n.it&&(r.i18n.it=e.i18n.it),e.i18n.pt&&(r.i18n.pt=e.i18n.pt),e.i18n.jp&&(r.i18n.jp=e.i18n.jp),e.i18n.nl&&(r.i18n.nl=e.i18n.nl)),r.color=e.color,r.availability=e.availability,r.maxCancellationDelay=e.maxCancellationDelay,r}}class X2{constructor(){u(this,"id"),u(this,"cipherId"),u(this,"company"),u(this,"name"),u(this,"duration"),u(this,"locations"),u(this,"locationCustom"),u(this,"picture"),u(this,"description"),u(this,"capacity"),u(this,"price"),u(this,"bufferDuration"),u(this,"preparationDuration"),u(this,"validation"),u(this,"externalId"),u(this,"staff"),u(this,"color"),u(this,"availability"),u(this,"resource"),u(this,"bypassFreeBusyAvailabilities"),u(this,"minAppointmentDate"),u(this,"maxAppointmentDate"),u(this,"appointmentDateScope"),u(this,"i18n"),u(this,"maxCancellationDelay")}}class ic{constructor(e){u(this,"text"),this.text=e}}class Br{constructor(){u(this,"street"),u(this,"otherStreet"),u(this,"zipCode"),u(this,"city"),u(this,"country"),u(this,"state")}static fromAddressDto(e){const n=new Br;return n.street=ve(e.street),n.otherStreet=ve(e.otherStreet),n.zipCode=ve(e.zipCode),n.city=ve(e.city),n.country=ve(e.country),n.state=ve(e.state),n}static toAddressDto(e){const n=new Q2;return n.street=Pe(e.street),n.otherStreet=Pe(e.otherStreet),n.zipCode=Pe(e.zipCode),n.city=Pe(e.city),n.country=Pe(e.country),n.state=Pe(e.state),n}}class Q2{constructor(){u(this,"street"),u(this,"otherStreet"),u(this,"zipCode"),u(this,"city"),u(this,"country"),u(this,"state")}}var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function t_(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Lo={exports:{}};function n_(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tf={exports:{}};const r_={},a_=Object.freeze(Object.defineProperty({__proto__:null,default:r_},Symbol.toStringTag,{value:"Module"})),i_=t_(a_);var Af;function Ke(){return Af||(Af=1,function(t,e){(function(n,r){t.exports=r()})(Ve,function(){var n=n||function(r,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ve<"u"&&Ve.crypto&&(i=Ve.crypto),!i&&typeof n_=="function")try{i=i_}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function w(){}return function(A){var S;return w.prototype=A,S=new w,w.prototype=null,S}}(),c={},d=c.lib={},h=d.Base=function(){return{extend:function(w){var A=l(this);return w&&A.mixIn(w),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var A in w)w.hasOwnProperty(A)&&(this[A]=w[A]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),m=d.WordArray=h.extend({init:function(w,A){w=this.words=w||[],A!=a?this.sigBytes=A:this.sigBytes=w.length*4},toString:function(w){return(w||p).stringify(this)},concat:function(w){var A=this.words,S=w.words,N=this.sigBytes,L=w.sigBytes;if(this.clamp(),N%4)for(var M=0;M<L;M++){var F=S[M>>>2]>>>24-M%4*8&255;A[N+M>>>2]|=F<<24-(N+M)%4*8}else for(var V=0;V<L;V+=4)A[N+V>>>2]=S[V>>>2];return this.sigBytes+=L,this},clamp:function(){var w=this.words,A=this.sigBytes;w[A>>>2]&=4294967295<<32-A%4*8,w.length=r.ceil(A/4)},clone:function(){var w=h.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var A=[],S=0;S<w;S+=4)A.push(o());return new m.init(A,w)}}),f=c.enc={},p=f.Hex={stringify:function(w){for(var A=w.words,S=w.sigBytes,N=[],L=0;L<S;L++){var M=A[L>>>2]>>>24-L%4*8&255;N.push((M>>>4).toString(16)),N.push((M&15).toString(16))}return N.join("")},parse:function(w){for(var A=w.length,S=[],N=0;N<A;N+=2)S[N>>>3]|=parseInt(w.substr(N,2),16)<<24-N%8*4;return new m.init(S,A/2)}},E=f.Latin1={stringify:function(w){for(var A=w.words,S=w.sigBytes,N=[],L=0;L<S;L++){var M=A[L>>>2]>>>24-L%4*8&255;N.push(String.fromCharCode(M))}return N.join("")},parse:function(w){for(var A=w.length,S=[],N=0;N<A;N++)S[N>>>2]|=(w.charCodeAt(N)&255)<<24-N%4*8;return new m.init(S,A)}},k=f.Utf8={stringify:function(w){try{return decodeURIComponent(escape(E.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return E.parse(unescape(encodeURIComponent(w)))}},T=d.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=k.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var A,S=this._data,N=S.words,L=S.sigBytes,M=this.blockSize,F=M*4,V=L/F;w?V=r.ceil(V):V=r.max((V|0)-this._minBufferSize,0);var R=V*M,z=r.min(R*4,L);if(R){for(var j=0;j<R;j+=M)this._doProcessBlock(N,j);A=N.splice(0,R),S.sigBytes-=z}return new m.init(A,z)},clone:function(){var w=h.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});d.Hasher=T.extend({cfg:h.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){T.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(w){return function(A,S){return new w.init(S).finalize(A)}},_createHmacHelper:function(w){return function(A,S){return new b.HMAC.init(w,S).finalize(A)}}});var b=c.algo={};return c}(Math);return n})}(Tf)),Tf.exports}(function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,l=i.Hasher,c=a.algo,d=[],h=[];(function(){function p(b){for(var w=r.sqrt(b),A=2;A<=w;A++)if(!(b%A))return!1;return!0}function E(b){return(b-(b|0))*4294967296|0}for(var k=2,T=0;T<64;)p(k)&&(T<8&&(d[T]=E(r.pow(k,1/2))),h[T]=E(r.pow(k,1/3)),T++),k++})();var m=[],f=c.SHA256=l.extend({_doReset:function(){this._hash=new o.init(d.slice(0))},_doProcessBlock:function(p,E){for(var k=this._hash.words,T=k[0],b=k[1],w=k[2],A=k[3],S=k[4],N=k[5],L=k[6],M=k[7],F=0;F<64;F++){if(F<16)m[F]=p[E+F]|0;else{var V=m[F-15],R=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,z=m[F-2],j=(z<<15|z>>>17)^(z<<13|z>>>19)^z>>>10;m[F]=R+m[F-7]+j+m[F-16]}var B=S&N^~S&L,Z=T&b^T&w^b&w,Y=(T<<30|T>>>2)^(T<<19|T>>>13)^(T<<10|T>>>22),q=(S<<26|S>>>6)^(S<<21|S>>>11)^(S<<7|S>>>25),G=M+q+B+h[F]+m[F],ne=Y+Z;M=L,L=N,N=S,S=A+G|0,A=w,w=b,b=T,T=G+ne|0}k[0]=k[0]+T|0,k[1]=k[1]+b|0,k[2]=k[2]+w|0,k[3]=k[3]+A|0,k[4]=k[4]+S|0,k[5]=k[5]+N|0,k[6]=k[6]+L|0,k[7]=k[7]+M|0},_doFinalize:function(){var p=this._data,E=p.words,k=this._nDataBytes*8,T=p.sigBytes*8;return E[T>>>5]|=128<<24-T%32,E[(T+64>>>9<<4)+14]=r.floor(k/4294967296),E[(T+64>>>9<<4)+15]=k,p.sigBytes=E.length*4,this._process(),this._hash},clone:function(){var p=l.clone.call(this);return p._hash=this._hash.clone(),p}});a.SHA256=l._createHelper(f),a.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})})(Lo);const o_=Lo.exports,Ro=["#BBBCD4","#33357D","#1A1B3F","#FCE8C0","#F7BB42","#C58D1D","#FCC5C5","#F55151","#7B2929","#AAEAE5","#00BFB2","#006059","#BEE4F2","#3BAED9","#1E576D","#D0D0D8","#71738A","#393A45","#AD1457","#F4511E","#E4C441","#0B8043","#3F51B5","#8E24AA","#D81B60","#EF6C00","#C0CA33","#009688","#7986CB","#795548","#D50000","#F09300","#7CB342","#039BE5","#B39DDB","#616161","#E67C73","#F6BF26","#33B679","#4285F4","#9E69AF","#A79B8E"],ki=new Map;function Of(t){const e=t.replace("#",""),n=("rgb("+e.match(new RegExp("(.{"+e.length/3+"})","g")).map(function(a){return parseInt(e.length%2?a+a:a,16)}).join(",")+")").replace(/[^\d,]/g,"").split(",");var r=Math.floor((Number.parseInt(n[0])*299+Number.parseInt(n[1])*587+Number.parseInt(n[2])*114)/1e3);return r>125?"black":"white"}function s_(t){let e="";return t&&(t.id&&(e=t.id),t.firstName&&(e=e.concat(t.firstName)),t.lastName&&(e=e.concat(t.lastName))),l_(o_(e).toString())}function l_(t){if(ki.has(t))return ki.get(t);{let e=0;if([...t.toLowerCase()].forEach(a=>{e+=a.charCodeAt(0)}),ki.size===Ro.length)return Ro[e%Ro.length];const n=Ro.filter(a=>!Array.from(ki.values()).includes(a)),r=n[e%n.length];return ki.set(t,r),r}}class cn{constructor(){u(this,"id"),u(this,"owner"),u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"emailAddresses"),u(this,"phone"),u(this,"phoneNumbers"),u(this,"picture"),u(this,"externalId"),u(this,"marketingConsent"),u(this,"marketingOptins"),u(this,"title"),u(this,"gender"),u(this,"tags"),u(this,"companyName"),u(this,"jobTitle"),u(this,"address"),u(this,"birthDate"),u(this,"language"),u(this,"languageSpoken"),u(this,"languageUnderstood"),u(this,"additionalFieldsTitle"),u(this,"additionalFields"),u(this,"creationDate"),u(this,"timeZone"),u(this,"fax"),u(this,"notification"),u(this,"reminder"),u(this,"description")}static fromContactDto(e){var n,r,a,i;const o=new cn;o.id=e.id,o.owner=e.owner,o.firstName=ve(e.firstName),o.lastName=ve(e.lastName);let l=[];(n=e.emailAddresses)==null||n.forEach(m=>{l.push(Po.fromContactEmailAddressDto(m))}),l.length>0?(o.emailAddresses=l,o.email=l[0].email):o.email=e.email;let c=[];(r=e.phoneNumbers)==null||r.forEach(m=>{c.push(Mo.fromContactPhoneNumberDto(m))}),c.length>0?(o.phoneNumbers=c,o.phone=c[0].number):o.phone=e.phone,e.picture&&(o.picture=vt.fromImageDto(e.picture)),o.externalId=e.externalId,o.marketingConsent=e.marketingConsent,o.title=e.title,o.gender=e.gender,e.marketingOptins&&(o.marketingOptins={},e.marketingOptins.email&&(o.marketingOptins.email={enabled:e.marketingOptins.email.enabled}));let d=[];(a=e.tags)==null||a.forEach(m=>{d.push(Ii.fromContactTagDto(m))}),d.length>0&&(o.tags=d),o.companyName=e.companyName?ve(e.companyName):void 0,o.jobTitle=e.jobTitle?ve(e.jobTitle):void 0,e.address&&(o.address=Br.fromAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood;let h=[];if((i=e.additionalFields)==null||i.forEach(m=>{h.push(Da.fromContactAdditionalFieldDto(m))}),h.length>0&&(o.additionalFields=h),o.additionalFieldsTitle=e.additionalFieldsTitle?ve(e.additionalFieldsTitle):void 0,e.creationDate){const m=St(e.creationDate);m.setHours(0,0,0),o.creationDate=m}return o.timeZone=e.timeZone,o.fax=e.fax,o.notification=e.notificationType,o.reminder=e.reminderType,o.description=e.description,o}static toContactDto(e){var n,r,a,i;const o=new c_;o.id=e.id,o.owner=e.owner,o.firstName=Pe(e.firstName),o.lastName=Pe(e.lastName);let l=[];(n=e.emailAddresses)==null||n.forEach(m=>{l.push(Po.toContactEmailAddressDto(m))}),o.emailAddresses=l,o.email=e.email;let c=[];(r=e.phoneNumbers)==null||r.forEach(m=>{c.push(Mo.toContactPhoneNumberDto(m))}),o.phoneNumbers=c,o.phone=e.phone,e.picture&&(o.picture=vt.toImageDto(e.picture)),o.externalId=e.externalId,e.marketingConsent&&(o.marketingConsent=new ic(e.marketingConsent.text)),o.title=e.title,o.gender=e.gender;let d=[];(a=e.tags)==null||a.forEach(m=>{d.push(Ii.toContactTagDto(m))}),o.tags=d,o.companyName=Pe(e.companyName),o.jobTitle=Pe(e.jobTitle),e.address&&(o.address=Br.toAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood,o.additionalFieldsTitle=Pe(e.additionalFieldsTitle);let h=[];return(i=e.additionalFields)==null||i.forEach(m=>{h.push(Da.toContactAdditionalFieldDto(m))}),o.additionalFields=h,o.fax=e.fax,o.timeZone=e.timeZone,o.notificationType=e.notification,o.reminderType=e.reminder,o.description=e.description,o}}class Mo{constructor(){u(this,"number"),u(this,"primary"),u(this,"mobile")}static fromContactPhoneNumberDto(e){const n=new Mo;return n.number=e.number,n.primary=e.primary,n.mobile=e.mobile,n}static toContactPhoneNumberDto(e){const n=new u_;return n.number=e.number,n.primary=e.primary,n.mobile=e.mobile,n}}class Po{constructor(){u(this,"email"),u(this,"primary")}static fromContactEmailAddressDto(e){const n=new Po;return n.email=e.email,n.primary=e.primary,n}static toContactEmailAddressDto(e){const n=new d_;return n.email=e.email,n.primary=e.primary,n}}class Ii{constructor(){u(this,"id"),u(this,"tag"),u(this,"color"),u(this,"textColor")}static fromContactTagDto(e){const n=new Ii;return n.id=e.id,n.tag=ve(e.tag),n.color=e.color,e.color&&(n.textColor=Of(e.color)),n}static toContactTagDto(e){const n=new h_;return n.id=e.id,n.tag=Pe(e.tag),n.color=e.color,n}}class oc{constructor(){u(this,"title"),u(this,"fields")}static fromAdditionalFieldsDto(e){var n;const r=new oc;r.title=e.title;const a=[];return(n=e.fields)==null||n.forEach(i=>{a.push(Da.fromContactAdditionalFieldDto(i))}),r.fields=a,r}static toAdditionalFieldsDto(e){var n;const r=new m_;r.title=e.title;const a=[];return(n=e.fields)==null||n.forEach(i=>{a.push(Da.toContactAdditionalFieldDto(i))}),r.fields=a,r}}class Da{constructor(){u(this,"id"),u(this,"name"),u(this,"mandatory"),u(this,"value")}static fromContactAdditionalFieldDto(e){const n=new Da;return n.id=e.id,n.name=ve(e.name),n.mandatory=e.mandatory,n.value=ve(e.value),n}static toContactAdditionalFieldDto(e){const n=new f_;return n.id=e.id,n.name=Pe(e.name),n.mandatory=e.mandatory,n.value=Pe(e.value),n}}class c_{constructor(){u(this,"id"),u(this,"owner"),u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"emailAddresses"),u(this,"phone"),u(this,"phoneNumbers"),u(this,"picture"),u(this,"externalId"),u(this,"marketingConsent"),u(this,"marketingOptins"),u(this,"title"),u(this,"gender"),u(this,"tags"),u(this,"companyName"),u(this,"jobTitle"),u(this,"address"),u(this,"birthDate"),u(this,"language"),u(this,"languageSpoken"),u(this,"languageUnderstood"),u(this,"additionalFieldsTitle"),u(this,"additionalFields"),u(this,"creationDate"),u(this,"timeZone"),u(this,"fax"),u(this,"notificationType"),u(this,"reminderType"),u(this,"description")}}class u_{constructor(){u(this,"number"),u(this,"primary"),u(this,"mobile")}}class d_{constructor(){u(this,"email"),u(this,"primary")}}class h_{constructor(){u(this,"id"),u(this,"tag"),u(this,"color")}}class f_{constructor(){u(this,"id"),u(this,"name"),u(this,"mandatory"),u(this,"value")}}class m_{constructor(){u(this,"title"),u(this,"fields")}}class $o{constructor(){u(this,"id"),u(this,"fieldKey"),u(this,"account"),u(this,"index")}static fromPromoteFieldDto(e){let n=new $o;return n.id=e.id,n.fieldKey=e.fieldKey,n}static toPromoteFieldDto(e){let n=new p_;return n.id=e.id,n.fieldKey=e.fieldKey,n}}class p_{constructor(){u(this,"id"),u(this,"fieldKey"),u(this,"account"),u(this,"index")}}class qn{constructor(){u(this,"id"),u(this,"encryptedId"),u(this,"owner"),u(this,"name"),u(this,"photo"),u(this,"picture"),u(this,"address"),u(this,"phone"),u(this,"email"),u(this,"description"),u(this,"instagramLink"),u(this,"twitterLink"),u(this,"facebookLink"),u(this,"linkedInLink"),u(this,"websiteLink"),u(this,"timeZone"),u(this,"externalId"),u(this,"currency"),u(this,"workingHours"),u(this,"vacations"),u(this,"externalCalendars")}static fromCompanyDto(e){var n,r,a,i,o,l,c;const d=new qn;return d.id=e.id,d.encryptedId=e.encryptedId,d.owner={id:e.owner.id,userName:e.owner.userName},d.name=ve(e.name),d.address=e.address?Br.fromAddressDto(e.address):void 0,d.photo=vt.fromImageDto(e.photo),d.picture=vt.fromImageDto(e.picture),d.phone=e.phone,d.email=e.email,d.description=ve(e.description),d.instagramLink=(n=e.socialMedias)==null?void 0:n.instagramLink,d.twitterLink=(r=e.socialMedias)==null?void 0:r.twitteLink,d.facebookLink=(a=e.socialMedias)==null?void 0:a.facebookPageLink,d.linkedInLink=(i=e.socialMedias)==null?void 0:i.linkedInLink,d.websiteLink=e.websiteLink,d.timeZone=e.timeZone,d.externalId=e.externalId,d.currency=e.currency,d.workingHours=[],(o=e.workingHours)==null||o.forEach(h=>{var m;return(m=d.workingHours)==null?void 0:m.push(gr.fromSettingsWorkingDayDto(h))}),d.vacations=[],(l=e.vacations)==null||l.forEach(h=>{var m;return(m=d.vacations)==null?void 0:m.push({endDate:h.endDate,startDate:h.startDate})}),d.externalCalendars=[],(c=e.externalCalendars)==null||c.forEach(h=>{var m;return(m=d.externalCalendars)==null?void 0:m.push({address:h.address,type:h.type})}),d}static toCompanyDto(e){var n,r,a;const i=new g_;return i.id=e.id,i.encryptedId=e.encryptedId,e.owner&&(i.owner={id:e.owner.id,userName:e.owner.userName}),i.name=Pe(e.name),i.address=e.address?Br.toAddressDto(e.address):void 0,i.email=e.email,e.photo&&(i.photo=vt.toImageDto(e.photo)),e.picture&&(i.picture=vt.toImageDto(e.picture)),i.phone=e.phone,i.description=Pe(e.description),i.socialMedias={twitteLink:e.twitterLink,facebookPageLink:e.facebookLink,instagramLink:e.instagramLink,linkedInLink:e.linkedInLink},i.websiteLink=e.websiteLink,i.timeZone=e.timeZone,i.externalId=e.externalId,i.currency=e.currency,i.workingHours=[],(n=e.workingHours)==null||n.forEach(o=>{var l;return(l=i.workingHours)==null?void 0:l.push(gr.toSettingsWorkingDayDto(o))}),i.vacations=[],(r=e.vacations)==null||r.forEach(o=>{var l;return(l=i.vacations)==null?void 0:l.push({endDate:o.endDate,startDate:o.startDate})}),i.externalCalendars=[],(a=e.externalCalendars)==null||a.forEach(o=>{var l;return(l=i.externalCalendars)==null?void 0:l.push({address:o.address,type:o.type})}),i}}class g_{constructor(){u(this,"id"),u(this,"encryptedId"),u(this,"owner"),u(this,"name"),u(this,"address"),u(this,"photo"),u(this,"picture"),u(this,"phone"),u(this,"email"),u(this,"description"),u(this,"socialMedias"),u(this,"websiteLink"),u(this,"timeZone"),u(this,"externalId"),u(this,"currency"),u(this,"workingHours"),u(this,"vacations"),u(this,"externalCalendars")}}var sc=(t=>(t.PRO="normal",t.PERSO="personal",t.EXTERNAL="external",t.ICS="ics",t))(sc||{});class Pt{constructor(){u(this,"id"),u(this,"owner"),u(this,"company"),u(this,"service"),u(this,"staff"),u(this,"client"),u(this,"start"),u(this,"end"),u(this,"status"),u(this,"type"),u(this,"source"),u(this,"price"),u(this,"paid"),u(this,"notes"),u(this,"summary"),u(this,"form"),u(this,"metaEvent"),u(this,"metaEventId"),u(this,"onlineMeeting"),u(this,"parameters"),u(this,"events"),u(this,"privacyConsent"),u(this,"marketingConsent"),u(this,"location"),u(this,"locationCustom"),u(this,"preparationDuration"),u(this,"bufferDuration")}static fromEventDto(e,n){var r;const a=new Pt;a.id=e.id,e.owner&&(a.owner={id:e.owner.id,userName:e.owner.userName}),e.company&&(a.company={id:e.company.id,name:ve(e.company.name)}),e.service&&(a.service={id:e.service.id,name:ve(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:ve(e.staff.firstName),lastName:ve(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:ve(e.client.firstName),lastName:ve(e.client.lastName),email:e.client.email}),a.start=St(e.start.dateTime,e.start.timeZone),a.end=St(e.end.dateTime,e.end.timeZone),a.status=e.status,a.paid=e.paid,a.type=n||e.type,a.source=e.source,a.price=e.price,a.notes=ve(e.notes),a.summary=ve(e.summary);const i=[];if((r=e.form)==null||r.forEach(o=>i.push(Ct.fromFormDto(o))),a.form=i,a.metaEvent=e["meta-event"],a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,a.location=e.location,a.locationCustom=ve(e.locationCustom),e.events){const o=[];e.events.forEach(l=>o.push(Pt.fromEventDto(l,n))),a.events=o}return a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}static toEventDto(e,n){var r;const a=new y_;a.id=e.id,e.company&&(a.company={id:e.company.id,name:Pe(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Pe(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Pe(e.staff.firstName),lastName:Pe(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Pe(e.client.firstName),lastName:Pe(e.client.lastName),email:e.client.email}),a.start=Di(e.start,n),a.end=Di(e.end,n),a.status=e.status,a.paid=e.paid,a.type=e.type,a.source=e.source,a.price=e.price,a.notes=Pe(e.notes),a.summary=Pe(e.summary);const i=[];if((r=e.form)==null||r.forEach(o=>i.push(Ct.toFormDto(o))),a.form=i,a["meta-event"]=e.metaEvent,a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,e.events){const o=[];e.events.forEach(l=>o.push(Pt.toEventDto(l,n))),a.events=o}return e.marketingConsent&&(a.marketingConsent=new ic(e.marketingConsent.text)),e.privacyConsent&&(a.privacyConsent=new ic(e.privacyConsent.text)),a.location=e.location,a.locationCustom=Pe(e.locationCustom),a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}}class y_{constructor(){u(this,"id"),u(this,"owner"),u(this,"company"),u(this,"service"),u(this,"staff"),u(this,"client"),u(this,"start"),u(this,"end"),u(this,"status"),u(this,"type"),u(this,"source"),u(this,"paid"),u(this,"price"),u(this,"notes"),u(this,"summary"),u(this,"form"),u(this,"meta-event"),u(this,"metaEventId"),u(this,"onlineMeeting"),u(this,"parameters"),u(this,"events"),u(this,"privacyConsent"),u(this,"marketingConsent"),u(this,"location"),u(this,"locationCustom"),u(this,"preparationDuration"),u(this,"bufferDuration")}}class Fr{constructor(){u(this,"id"),u(this,"firstName"),u(this,"lastName"),u(this,"picture"),u(this,"anonymous"),u(this,"color"),u(this,"login"),u(this,"checkFilterColor"),u(this,"companies"),u(this,"staffIds")}static fromUserDto(e){const n=new Fr;if(n.id=e.id,n.firstName=ve(e.firstName),n.lastName=ve(e.lastName),e.picture&&(n.picture=new vt(e.picture.mimeType,e.picture.url)),n.anonymous=!1,n.login=e.login,n.color=s_(e),n.checkFilterColor=n.color?Of(n.color):"white",n.companies=e.companies,n.staffIds=[],e.companies)for(const r of e.companies)r.staffIds&&Array.prototype.push.apply(n.staffIds,r.staffIds);return n}}class Bo{constructor(){u(this,"id"),u(this,"privateData"),u(this,"marketing")}static fromPrivacyPolicyDto(e,n){const r=new Bo;return r.id=n,r.privateData={consentMode:e.privateData.consentMode},e.privateData.consentText&&(r.privateData.consentText=Fo.fromConsentTextDto(e.privateData.consentText)),r.marketing={consentMode:e.marketing.consentMode},e.marketing.consentText&&(r.marketing.consentText=Fo.fromConsentTextDto(e.marketing.consentText)),r}}class Fo{constructor(){u(this,"EN"),u(this,"FR"),u(this,"ES"),u(this,"DE"),u(this,"IT"),u(this,"PT"),u(this,"NL"),u(this,"JP")}static fromConsentTextDto(e){const n=new Fo;return n.EN=ve(e.EN),n.FR=ve(e.FR),n.ES=ve(e.ES),n.DE=ve(e.DE),n.IT=ve(e.IT),n.PT=ve(e.PT),n.NL=ve(e.NL),n.JP=ve(e.JP),n}}class Kn{constructor(){u(this,"id"),u(this,"name"),u(this,"color"),u(this,"picture"),u(this,"members"),u(this,"parent"),u(this,"externalId"),u(this,"companyId")}static fromServiceGroupDto(e,n){const r=new Kn;return r.id=e.id,r.name=ve(e.name),r.color=e.color,r.picture=vt.fromImageDto(e.picture),e.members&&(r.members=[],e.members.forEach(a=>{var i;(i=r.members)==null||i.push({id:a.id,name:ve(a.name)})})),e.parent&&(r.parent={id:e.parent.id,name:ve(e.parent.name)}),r.externalId=e.externalId,r.companyId=n,r}static toServiceGroupDto(e){const n=new v_;return n.id=e.id,n.name=Pe(e.name),n.color=e.color,n.picture=vt.toImageDto(e.picture),e.members&&(n.members=[],e.members.forEach(r=>{var a;(a=n.members)==null||a.push({id:r.id,name:Pe(r.name)})})),e.parent&&(n.parent={id:e.parent.id,name:Pe(e.parent.name)}),n.externalId=e.externalId,n}}class v_{constructor(){u(this,"id"),u(this,"name"),u(this,"color"),u(this,"picture"),u(this,"members"),u(this,"parent"),u(this,"externalId")}}class Zn{constructor(){u(this,"id"),u(this,"name"),u(this,"color"),u(this,"members"),u(this,"managers"),u(this,"workingHours"),u(this,"externalId"),u(this,"companyId")}static fromStaffGroupDto(e,n){const r=new Zn;return r.id=e.id,r.name=ve(e.name),r.color=e.color,e.members&&(r.members=[],e.members.forEach(a=>{var i;(i=r.members)==null||i.push(a)})),e.managers&&(r.managers=[],e.managers.forEach(a=>{var i;(i=r.managers)==null||i.push(a)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(a=>{var i;return(i=r.workingHours)==null?void 0:i.push(gr.fromSettingsWorkingDayDto(a))})),r.externalId=e.externalId,r.companyId=n,r}static toStaffGroupDto(e){const n=new w_;return n.id=e.id,n.name=Pe(e.name),n.color=e.color,e.members&&(n.members=[],e.members.forEach(r=>{var a;(a=n.members)==null||a.push(r)})),e.managers&&(n.managers=[],e.managers.forEach(r=>{var a;(a=n.managers)==null||a.push(r)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(r=>{var a;return(a=n.workingHours)==null?void 0:a.push(gr.fromSettingsWorkingDayDto(r))})),n.externalId=e.externalId,n}}class w_{constructor(){u(this,"id"),u(this,"name"),u(this,"color"),u(this,"members"),u(this,"managers"),u(this,"workingHours"),u(this,"externalId")}}class zo{constructor(){u(this,"id"),u(this,"mobilePhoneMandatory"),u(this,"otherPhoneMandatory"),u(this,"emailMandatory"),u(this,"descriptionMandatory"),u(this,"lastnameMandatory"),u(this,"titleMandatory"),u(this,"firstnameMandatory"),u(this,"genderMandatory"),u(this,"title"),u(this,"fields")}static fromStaffFormsDto(e,n){const r=new zo;return r.id=n,r.title=e.title,r.mobilePhoneMandatory=e["mobilePhone-mandatory"],r.otherPhoneMandatory=e["otherPhone-mandatory"],r.emailMandatory=e["email-mandatory"],r.descriptionMandatory=e["description-mandatory"],r.lastnameMandatory=e["lastname-mandatory"],r.titleMandatory=e["title-mandatory"],r.firstnameMandatory=e["firstname-mandatory"],r.genderMandatory=e["gender-mandatory"],e.fields&&(r.fields=[],e.fields.forEach(a=>{var i;return(i=r.fields)==null?void 0:i.push(Ct.fromFormDto(a))})),r}}class Vo{constructor(){u(this,"id"),u(this,"company"),u(this,"service"),u(this,"staff"),u(this,"staffCustomPeriod"),u(this,"resource"),u(this,"client"),u(this,"appointment"),u(this,"staffAppointment"),u(this,"form"),u(this,"queue"),u(this,"planning"),u(this,"workingPlanning"),u(this,"report")}static fromRightsDto(e){const n=new Vo;return n.id=e.id,n.company=e.company,n.service=e.service,n.staff=e.staff,n.staffCustomPeriod=e.staffCustomPeriod,n.resource=e.resource,n.client=e.client,n.appointment=e.appointment,n.staffAppointment=e.staffAppointment,n.form=e.form,n.queue=e.queue,n.planning=e.planning,n.workingPlanning=e.workingPlanning,n.report=e.report,n}static hasRead(e){return e.indexOf("r")>-1}static hasUpdate(e){return e.indexOf("u")>-1}static hasDelete(e){return e.indexOf("d")>-1}static hasWrite(e){return e.indexOf("w")>-1}static hasAcceptation(e){return e.indexOf("a")>-1}static hasChangeStatus(e){return e.indexOf("c")>-1}static hasFreeMode(e){return e.indexOf("f")>-1}}class Sa{constructor(){u(this,"id"),u(this,"clientId"),u(this,"note"),u(this,"writer"),u(this,"date")}static fromNoteDto(e){const n=new Sa;return n.id=e.id,n.clientId=e.clientId,n.note=ve(e.html),n.writer=e.writer,n.date=St(e.date.dateTime,e.date.timeZone),n}static toNoteDto(e){const n=new b_;return n.id=e.id,n.clientId=e.clientId,n.html=Pe(e.note),n.writer=e.writer,n.date=Di(e.date),n}}class b_{constructor(){u(this,"id"),u(this,"clientId"),u(this,"html"),u(this,"writer"),u(this,"date")}}class xf{}class __ extends xf{constructor(e){super(),u(this,"id"),u(this,"type"),u(this,"owner"),u(this,"start"),u(this,"end"),u(this,"staff"),u(this,"service"),u(this,"company"),u(this,"client"),u(this,"status"),this.id=e.id,this.type=e.type,this.owner={userName:e.owner.userName},this.start=St(e.start.dateTime,e.start.timeZone),this.end=St(e.end.dateTime,e.end.timeZone),this.staff={id:e.staff.id,firstName:ve(e.staff.firstName),lastName:ve(e.staff.lastName)},this.service=ve(e.service),e.company&&(this.company={id:e.company.id,name:ve(e.company.name)}),this.client={id:e.client.id,firstName:ve(e.client.firstName),lastName:ve(e.client.lastName)},this.status=e.status}}class E_ extends xf{constructor(e){super(),u(this,"id"),this.id=e.id}}class Uo{constructor(){u(this,"id"),u(this,"type"),u(this,"subType"),u(this,"notificationObject"),u(this,"date")}static fromNotificationDto(e,n){const r=new Uo;switch(r.type=e.type,r.subType=n,e.date?r.date=St(e.date.dateTime,e.date.timeZone):r.date=new Date,r.type){case"event":const a=new __(e.notificationObject);r.notificationObject=a,a.id&&(r.id=a.id);break;case"report":const i=new E_(e.notificationObject);r.notificationObject=i,i.id&&(r.id=i.id);break}return r}}class Jn{constructor(){u(this,"id"),u(this,"author"),u(this,"name"),u(this,"welcomeMessage"),u(this,"thankMessage"),u(this,"company"),u(this,"form")}static fromQueueDto(e){const n=new Jn;return n.id=e.id,n.author=ve(e.author),n.name=ve(e.name),n.welcomeMessage=ve(e.welcomeMessage),n.thankMessage=ve(e.thankMessage),e.company&&(n.company={id:e.company.id,name:ve(e.company.name)}),e.form&&(n.form={id:e.form.id,name:ve(e.form.name)}),n}static toQueueDto(e){var n;const r=new D_;return r.id=e.id,r.author=Pe(e.author),r.name=Pe(e.name),r.welcomeMessage=Pe(e.welcomeMessage),r.thankMessage=Pe(e.thankMessage),r.company={id:e.company.id},e.form&&(r.form={id:(n=e.form.id)!=null?n:""}),r}}class D_{constructor(){u(this,"id"),u(this,"author"),u(this,"name"),u(this,"welcomeMessage"),u(this,"thankMessage"),u(this,"company"),u(this,"form")}}class lc{constructor(){u(this,"id"),u(this,"lastDate")}static isExpired(e){const n=new Date;return n.setDate(n.getDate()-10),e.lastDate.getTime()<n.getTime()}}var ye=(t=>(t[t.UNKOWN=0]="UNKOWN",t[t.INTERNAL_ERROR=1]="INTERNAL_ERROR",t[t.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",t[t.INVALID_PARAMETER=3]="INVALID_PARAMETER",t[t.UNKNOWN_ENTITY=4]="UNKNOWN_ENTITY",t[t.CREDENTIAL_ERROR=100]="CREDENTIAL_ERROR",t[t.USER_ACCOUNT_LOCKED=101]="USER_ACCOUNT_LOCKED",t[t.PASSWORD_POLICY_ERROR=102]="PASSWORD_POLICY_ERROR",t[t.STAFF_NOT_AVAILABLE=1e3]="STAFF_NOT_AVAILABLE",t[t.MAX_APPOINTMENT_DAILY=1001]="MAX_APPOINTMENT_DAILY",t[t.MAX_APPOINTMENT_WEEKLY=1002]="MAX_APPOINTMENT_WEEKLY",t[t.APPOINTMENT_PERIOD_RULE=1003]="APPOINTMENT_PERIOD_RULE",t[t.RESOURCE_NOT_AVAILABLE=1004]="RESOURCE_NOT_AVAILABLE",t[t.DATE_NOT_AVAILABLE=1005]="DATE_NOT_AVAILABLE",t[t.USER_BLOCKED=1006]="USER_BLOCKED",t[t.ACCOUNT_NOT_FOUND=2e3]="ACCOUNT_NOT_FOUND",t[t.ACCOUNT_DISABLED=3003]="ACCOUNT_DISABLED",t))(ye||{});function S_(t,e){if(e.errorCode)return ye[e.errorCode];if(t==="Appointment")switch(e.reason){case"notFound":return 1e3}return 0}class Ho{constructor(){u(this,"errorCode"),u(this,"reason"),u(this,"code"),u(this,"message")}}const Tn=new Ho;Tn.reason="notFound",Tn.code=404,Tn.message="Not Found";class we{constructor(e,n){u(this,"errorCode"),u(this,"e"),this.errorCode=e,this.e=n}}var Re={};/*! *****************************************************************************
36
28
  Copyright (C) Microsoft. All rights reserved.
37
29
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
38
30
  this file except in compliance with the License. You may obtain a copy of the
@@ -45,8 +37,8 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placehold
45
37
 
46
38
  See the Apache Version 2.0 License for specific language governing permissions
47
39
  and limitations under the License.
48
- ***************************************************************************** */var Tl;(function(t){(function(e){var n=typeof Le=="object"?Le:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=a(t);typeof n.Reflect>"u"?n.Reflect=t:r=a(n.Reflect,r),e(r);function a(i,o){return function(s,l){typeof i[s]!="function"&&Object.defineProperty(i,s,{configurable:!0,writable:!0,value:l}),o&&o(s,l)}}})(function(e){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,l=!o&&!s,c={create:o?function(){return p(Object.create(null))}:s?function(){return p({__proto__:null})}:function(){return p({})},has:l?function(f,g){return n.call(f,g)}:function(f,g){return g in f},get:l?function(f,g){return n.call(f,g)?f[g]:void 0}:function(f,g){return f[g]}},h=Object.getPrototypeOf(Function),x=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!x&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:u(),w=!x&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:v(),I=!x&&typeof WeakMap=="function"?WeakMap:d(),N=new I;function k(f,g,C,O){if(F(C)){if(!Ce(f))throw new TypeError;if(!ae(g))throw new TypeError;return B(f,g)}else{if(!Ce(f))throw new TypeError;if(!K(g))throw new TypeError;if(!K(O)&&!F(O)&&!ee(O))throw new TypeError;return ee(O)&&(O=void 0),C=qe(C),W(f,g,C,O)}}e("decorate",k);function S(f,g){function C(O,j){if(!K(O))throw new TypeError;if(!F(j)&&!_(j))throw new TypeError;q(f,g,O,j)}return C}e("metadata",S);function E(f,g,C,O){if(!K(C))throw new TypeError;return F(O)||(O=qe(O)),q(f,g,C,O)}e("defineMetadata",E);function A(f,g,C){if(!K(g))throw new TypeError;return F(C)||(C=qe(C)),R(f,g,C)}e("hasMetadata",A);function D(f,g,C){if(!K(g))throw new TypeError;return F(C)||(C=qe(C)),V(f,g,C)}e("hasOwnMetadata",D);function T(f,g,C){if(!K(g))throw new TypeError;return F(C)||(C=qe(C)),G(f,g,C)}e("getMetadata",T);function P(f,g,C){if(!K(g))throw new TypeError;return F(C)||(C=qe(C)),U(f,g,C)}e("getOwnMetadata",P);function z(f,g){if(!K(f))throw new TypeError;return F(g)||(g=qe(g)),Z(f,g)}e("getMetadataKeys",z);function Y(f,g){if(!K(f))throw new TypeError;return F(g)||(g=qe(g)),se(f,g)}e("getOwnMetadataKeys",Y);function Q(f,g,C){if(!K(g))throw new TypeError;F(C)||(C=qe(C));var O=ne(g,C,!1);if(F(O)||!O.delete(f))return!1;if(O.size>0)return!0;var j=N.get(g);return j.delete(C),j.size>0||N.delete(g),!0}e("deleteMetadata",Q);function B(f,g){for(var C=f.length-1;C>=0;--C){var O=f[C],j=O(g);if(!F(j)&&!ee(j)){if(!ae(j))throw new TypeError;g=j}}return g}function W(f,g,C,O){for(var j=f.length-1;j>=0;--j){var H=f[j],J=H(g,C,O);if(!F(J)&&!ee(J)){if(!K(J))throw new TypeError;O=J}}return O}function ne(f,g,C){var O=N.get(f);if(F(O)){if(!C)return;O=new y,N.set(f,O)}var j=O.get(g);if(F(j)){if(!C)return;j=new y,O.set(g,j)}return j}function R(f,g,C){var O=V(f,g,C);if(O)return!0;var j=M(g);return ee(j)?!1:R(f,j,C)}function V(f,g,C){var O=ne(g,C,!1);return F(O)?!1:Me(O.has(f))}function G(f,g,C){var O=V(f,g,C);if(O)return U(f,g,C);var j=M(g);if(!ee(j))return G(f,j,C)}function U(f,g,C){var O=ne(g,C,!1);if(!F(O))return O.get(f)}function q(f,g,C,O){var j=ne(C,O,!0);j.set(f,g)}function Z(f,g){var C=se(f,g),O=M(f);if(O===null)return C;var j=Z(O,g);if(j.length<=0)return C;if(C.length<=0)return j;for(var H=new w,J=[],X=0,oe=C;X<oe.length;X++){var me=oe[X],pe=H.has(me);pe||(H.add(me),J.push(me))}for(var ye=0,De=j;ye<De.length;ye++){var me=De[ye],pe=H.has(me);pe||(H.add(me),J.push(me))}return J}function se(f,g){var C=[],O=ne(f,g,!1);if(F(O))return C;for(var j=O.keys(),H=L(j),J=0;;){var X=le(H);if(!X)return C.length=J,C;var oe=te(X);try{C[J]=oe}catch(me){try{de(H)}finally{throw me}}J++}}function ie(f){if(f===null)return 1;switch(typeof f){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return f===null?1:6;default:return 6}}function F(f){return f===void 0}function ee(f){return f===null}function re(f){return typeof f=="symbol"}function K(f){return typeof f=="object"?f!==null:typeof f=="function"}function _e(f,g){switch(ie(f)){case 0:return f;case 1:return f;case 2:return f;case 3:return f;case 4:return f;case 5:return f}var C=g===3?"string":g===5?"number":"default",O=b(f,a);if(O!==void 0){var j=O.call(f,C);if(K(j))throw new TypeError;return j}return Ie(f,C==="default"?"number":C)}function Ie(f,g){if(g==="string"){var C=f.toString;if($(C)){var O=C.call(f);if(!K(O))return O}var j=f.valueOf;if($(j)){var O=j.call(f);if(!K(O))return O}}else{var j=f.valueOf;if($(j)){var O=j.call(f);if(!K(O))return O}var H=f.toString;if($(H)){var O=H.call(f);if(!K(O))return O}}throw new TypeError}function Me(f){return!!f}function be(f){return""+f}function qe(f){var g=_e(f,3);return re(g)?g:be(g)}function Ce(f){return Array.isArray?Array.isArray(f):f instanceof Object?f instanceof Array:Object.prototype.toString.call(f)==="[object Array]"}function $(f){return typeof f=="function"}function ae(f){return typeof f=="function"}function _(f){switch(ie(f)){case 3:return!0;case 4:return!0;default:return!1}}function b(f,g){var C=f[g];if(C!=null){if(!$(C))throw new TypeError;return C}}function L(f){var g=b(f,i);if(!$(g))throw new TypeError;var C=g.call(f);if(!K(C))throw new TypeError;return C}function te(f){return f.value}function le(f){var g=f.next();return g.done?!1:g}function de(f){var g=f.return;g&&g.call(f)}function M(f){var g=Object.getPrototypeOf(f);if(typeof f!="function"||f===h||g!==h)return g;var C=f.prototype,O=C&&Object.getPrototypeOf(C);if(O==null||O===Object.prototype)return g;var j=O.constructor;return typeof j!="function"||j===f?g:j}function u(){var f={},g=[],C=function(){function J(X,oe,me){this._index=0,this._keys=X,this._values=oe,this._selector=me}return J.prototype["@@iterator"]=function(){return this},J.prototype[i]=function(){return this},J.prototype.next=function(){var X=this._index;if(X>=0&&X<this._keys.length){var oe=this._selector(this._keys[X],this._values[X]);return X+1>=this._keys.length?(this._index=-1,this._keys=g,this._values=g):this._index++,{value:oe,done:!1}}return{value:void 0,done:!0}},J.prototype.throw=function(X){throw this._index>=0&&(this._index=-1,this._keys=g,this._values=g),X},J.prototype.return=function(X){return this._index>=0&&(this._index=-1,this._keys=g,this._values=g),{value:X,done:!0}},J}();return function(){function J(){this._keys=[],this._values=[],this._cacheKey=f,this._cacheIndex=-2}return Object.defineProperty(J.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),J.prototype.has=function(X){return this._find(X,!1)>=0},J.prototype.get=function(X){var oe=this._find(X,!1);return oe>=0?this._values[oe]:void 0},J.prototype.set=function(X,oe){var me=this._find(X,!0);return this._values[me]=oe,this},J.prototype.delete=function(X){var oe=this._find(X,!1);if(oe>=0){for(var me=this._keys.length,pe=oe+1;pe<me;pe++)this._keys[pe-1]=this._keys[pe],this._values[pe-1]=this._values[pe];return this._keys.length--,this._values.length--,X===this._cacheKey&&(this._cacheKey=f,this._cacheIndex=-2),!0}return!1},J.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=f,this._cacheIndex=-2},J.prototype.keys=function(){return new C(this._keys,this._values,O)},J.prototype.values=function(){return new C(this._keys,this._values,j)},J.prototype.entries=function(){return new C(this._keys,this._values,H)},J.prototype["@@iterator"]=function(){return this.entries()},J.prototype[i]=function(){return this.entries()},J.prototype._find=function(X,oe){return this._cacheKey!==X&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=X)),this._cacheIndex<0&&oe&&(this._cacheIndex=this._keys.length,this._keys.push(X),this._values.push(void 0)),this._cacheIndex},J}();function O(J,X){return J}function j(J,X){return X}function H(J,X){return[J,X]}}function v(){return function(){function f(){this._map=new y}return Object.defineProperty(f.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),f.prototype.has=function(g){return this._map.has(g)},f.prototype.add=function(g){return this._map.set(g,g),this},f.prototype.delete=function(g){return this._map.delete(g)},f.prototype.clear=function(){this._map.clear()},f.prototype.keys=function(){return this._map.keys()},f.prototype.values=function(){return this._map.values()},f.prototype.entries=function(){return this._map.entries()},f.prototype["@@iterator"]=function(){return this.keys()},f.prototype[i]=function(){return this.keys()},f}()}function d(){var f=16,g=c.create(),C=O();return function(){function oe(){this._key=O()}return oe.prototype.has=function(me){var pe=j(me,!1);return pe!==void 0?c.has(pe,this._key):!1},oe.prototype.get=function(me){var pe=j(me,!1);return pe!==void 0?c.get(pe,this._key):void 0},oe.prototype.set=function(me,pe){var ye=j(me,!0);return ye[this._key]=pe,this},oe.prototype.delete=function(me){var pe=j(me,!1);return pe!==void 0?delete pe[this._key]:!1},oe.prototype.clear=function(){this._key=O()},oe}();function O(){var oe;do oe="@@WeakMap@@"+X();while(c.has(g,oe));return g[oe]=!0,oe}function j(oe,me){if(!n.call(oe,C)){if(!me)return;Object.defineProperty(oe,C,{value:c.create()})}return oe[C]}function H(oe,me){for(var pe=0;pe<me;++pe)oe[pe]=Math.random()*255|0;return oe}function J(oe){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(oe)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(oe)):H(new Uint8Array(oe),oe):H(new Array(oe),oe)}function X(){var oe=J(f);oe[6]=oe[6]&79|64,oe[8]=oe[8]&191|128;for(var me="",pe=0;pe<f;++pe){var ye=oe[pe];(pe===4||pe===6||pe===8)&&(me+="-"),ye<16&&(me+="0"),me+=ye.toString(16).toLowerCase()}return me}}function p(f){return f.__=void 0,delete f.__,f}})})(Tl||(Tl={}));var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.Channel=void 0;var Pp=function(){function t(){this.subscriptions=new Map}return t.prototype.publish=function(e,n){var r=this,a=this.subscriptions.get(e);a&&a.forEach(function(i){i(n,e,r,i)})},t.prototype.subscribe=function(e,n){var r=this.subscriptions.get(e);r||(r=[],this.subscriptions.set(e,r)),r.push(n)},t.prototype.unsubscribe=function(e,n){var r=this.subscriptions.get(e);r&&(r=r.filter(function(a){return a!==n}),r.length?this.subscriptions.set(e,r):this.subscriptions.delete(e))},t.prototype.unsubscribeAll=function(){this.subscriptions.clear()},t}();br.Channel=Pp;var Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.PubSub=void 0;var Fp=br;Er.PubSub=new Fp.Channel;var Kr={},hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.SUBSCRIPTIONS_METADATA_KEY=hn.CHANNEL_METADATA_KEY=void 0,hn.CHANNEL_METADATA_KEY=Symbol("pubsub:channel"),hn.SUBSCRIPTIONS_METADATA_KEY=Symbol("pubsub:subscriptions"),Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.Subscribe=void 0;var kl=hn;function zp(t){return function(e,n,r){var a=Reflect.getMetadata(kl.SUBSCRIPTIONS_METADATA_KEY,e)||new Set;a.add({message:t,handler:r.value}),Reflect.defineMetadata(kl.SUBSCRIPTIONS_METADATA_KEY,a,e)}}Kr.Subscribe=zp;var Jr={},Bp=Le&&Le.__spreadArray||function(t,e){for(var n=0,r=e.length,a=t.length;n<r;n++,a++)t[a]=e[n];return t};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.Subscriber=void 0;var vi=hn,jp=Er;function qp(t){var e=(t==null?void 0:t.channel)||jp.PubSub;return function(n){Reflect.defineMetadata(vi.CHANNEL_METADATA_KEY,e,n.prototype);var r=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=n,s=new(o.bind.apply(o,Bp([void 0],a))),l=Reflect.getMetadata(vi.SUBSCRIPTIONS_METADATA_KEY,n.prototype);if(l){var c=[];Reflect.defineMetadata(vi.SUBSCRIPTIONS_METADATA_KEY,c,s),l.forEach(function(h){var x=h.handler.bind(s);c.push({message:h.message,handler:x}),e.subscribe(h.message,x)})}return s};return r.prototype=n.prototype,t!=null&&t.createInstance&&new r(t.constructorParameters),r}}Jr.Subscriber=qp;var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.Unsubscribe=void 0;var Ll=hn;function Up(){return function(t,e,n){var r=n.value;return n.value=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=Reflect.getMetadata(Ll.CHANNEL_METADATA_KEY,t),s=Reflect.getMetadata(Ll.SUBSCRIPTIONS_METADATA_KEY,this);return o&&s&&s.forEach(function(l){o.unsubscribe(l.message,l.handler)}),r(a)},n}}Xr.Unsubscribe=Up,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Unsubscribe=t.Subscriber=t.Subscribe=t.PubSub=t.Channel=void 0;var e=br;Object.defineProperty(t,"Channel",{enumerable:!0,get:function(){return e.Channel}});var n=Er;Object.defineProperty(t,"PubSub",{enumerable:!0,get:function(){return n.PubSub}});var r=Kr;Object.defineProperty(t,"Subscribe",{enumerable:!0,get:function(){return r.Subscribe}});var a=Jr;Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return a.Subscriber}});var i=Xr;Object.defineProperty(t,"Unsubscribe",{enumerable:!0,get:function(){return i.Unsubscribe}})}(ve);const Vp=36e5;var je=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))(je||{}),Oe=(t=>(t[t.REMOTE_THEN_LOCAL=0]="REMOTE_THEN_LOCAL",t[t.LOCAL_THEN_REMOTE=1]="LOCAL_THEN_REMOTE",t[t.LOCAL_ONLY=2]="LOCAL_ONLY",t[t.REMOTE_ONLY=3]="REMOTE_ONLY",t))(Oe||{});const Sn=new ve.Channel,Dt=new ve.Channel,ct=new ve.Channel,Dn=new ve.Channel;new ve.Channel;const Ol=new ve.Channel,xr=new ve.Channel;new ve.Channel;const yi=new ve.Channel,Rl=new ve.Channel,Qr=class{constructor(t,e){m(this,"repositoryName"),m(this,"logger"),this.logger=e,this.repositoryName=t}static cleanLastRemoteList(){Qr.lastRemoteList={}}async list(t,e,n){var r;let a;switch(+e){case 0:return this._listRemoteFirstThenLocal(t,n);case 1:return this._isExpired(Qr.lastRemoteList[this.repositoryName])?((r=this.logger)==null||r.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._listRemoteFirstThenLocal(t,n)):this._listLocalFirstThenRemote(t,n);case 2:return a=await this.localList(n),{local:!0,results:a};case 3:return a=await this.remoteList(t,n),await this.localSaveList(n,a),{local:!1,results:a}}throw new Error("Not implemented")}async update(t,e,n,r){switch(+e){case 0:return this._updateRemoteFirstThenLocal(t,n,r);case 3:return await this.remoteUpdate(t,n,r)}throw new Error("Not implemented")}async create(t,e,n,r){switch(+e){case 0:return this._createRemoteFirstThenLocal(t,n,r);case 3:return await this.remoteCreate(t,n,r);case 2:return await this.localBulkSave(n,[r]),r}throw new Error("Not implemented")}async getById(t,e,n){var r,a;let i=!0,o;switch(+e){case 0:const s=await this._getRemoteFirstThenLocal(t,n);o=s.result,i=s.local;break;case 3:i=!1,o=await this.remoteGet(t,n),await this.localSave(n,o);break;case 2:o=await this.localGet(n);break;case 1:try{o=await this.localGet(n)}catch(l){(r=this.logger)==null||r.debug("js-calendar-api","LocalThenRemote localGet error",l)}return!o||!o.lastRemote||this._isExpired(o.lastRemote)?((a=this.logger)==null||a.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._getRemoteFirstThenLocal(t,n)):this._getLocalFirstThenRemote(t,n);default:throw new Error("Not implemented")}return{local:i,result:o}}async deleteById(t,e){await this.remoteDelete(t,e),await this.localDelete(e)}async cascadeDeleteList(t,e){const n=await this.localList(t);if(n){const r=n.filter(e);await this.localBulkDelete(r)}}async cascadeDeleteItem(t){await this.localDelete(t)}async cascadeDelete(t,e,n=!0){n&&e?await this.cascadeDeleteList(t,e):n||await this.cascadeDeleteItem(t)}async _getLocalFirstThenRemote(t,e){var n,r,a,i=!0;try{a=await this.localGet(e)}catch(o){(n=this.logger)==null||n.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(!a){i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`Get ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{result:a,local:i}}async _getRemoteFirstThenLocal(t,e){var n,r;let a,i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){i=!0,(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localGet(e),a===void 0)throw o}catch(s){throw(r=this.logger)==null||r.error("js-calendar-api",`Get ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{result:a,local:i}}async _listRemoteFirstThenLocal(t,e){var n,r;let a=[],i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){i=!0,(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localList(e),a===void 0||a.length===0)throw o}catch(s){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{results:a,local:i}}async _listLocalFirstThenRemote(t,e){var n,r;let a=[],i=!0;try{a=await this.localList(e)}catch(o){(n=this.logger)==null||n.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(a===void 0||a.length===0){i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{results:a,local:i}}async _createRemoteFirstThenLocal(t,e,n){var r;let a;try{a=await this.remoteCreate(t,e,n),await this.localSave(e,a)}catch(i){throw(r=this.logger)==null||r.error("js-calendar-api",`Create ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async _updateRemoteFirstThenLocal(t,e,n){var r;let a;try{a=await this.remoteUpdate(t,e,n),await this.localSave(e,a)}catch(i){throw(r=this.logger)==null||r.error("js-calendar-api",`Update ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async localSaveList(t,e){await this.localBulkSave(t,e),Qr.lastRemoteList[this.repositoryName]=new Date().getTime()}async localSave(t,e){await this.localBulkSave(t,[e])}_isExpired(t){return!(t&&t+Vp>new Date().getTime())}getError(t){let e=Se.UNKOWN;return t instanceof gi&&(e=Mp(this.repositoryName,t)),new ke(e,t)}};let Wt=Qr;m(Wt,"lastRemoteList",{});class fn{constructor(){m(this,"id"),m(this,"company"),m(this,"name"),m(this,"quantity"),m(this,"availability"),m(this,"services"),m(this,"customWorkingHours")}static fromServiceResourceDto(e,n){var r;const a=new fn;a.name=e.name,a.id=e.id,a.company={id:n},a.quantity=e.quantity,a.availability=e.availability,a.services=e.services;const i=[];return(r=e.customWorkingHours)==null||r.forEach(o=>{i.push(qn.fromSettingsPeriodWorkingDto(o))}),a.customWorkingHours=i,a}static toServiceResourceDto(e){var n;const r=new Hp;r.id=e.id,r.name=e.name,r.quantity=e.quantity,r.availability=e.availability,r.services=e.services;const a=[];return(n=e.customWorkingHours)==null||n.forEach(i=>{a.push(qn.toSettingsPeriodWorkingDto(i))}),r.customWorkingHours=a,r}}class Hp{constructor(){m(this,"id"),m(this,"name"),m(this,"quantity"),m(this,"availability"),m(this,"services"),m(this,"customWorkingHours")}}const Wp="calendarTeam",$p="calendarTeamDefault",Vn="staff",Hn="service",Wn="serviceResource",wr="contact",pn="event",Gp="user",Yp="userDefault",$n="serviceGroup",Gn="staffGroup";var Ml={exports:{}},bi={exports:{}},Pl=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Zp=Pl,gn=Object.prototype.toString;function Ei(t){return Array.isArray(t)}function xi(t){return typeof t>"u"}function Kp(t){return t!==null&&!xi(t)&&t.constructor!==null&&!xi(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Fl(t){return gn.call(t)==="[object ArrayBuffer]"}function Jp(t){return gn.call(t)==="[object FormData]"}function Xp(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Fl(t.buffer),e}function Qp(t){return typeof t=="string"}function e0(t){return typeof t=="number"}function zl(t){return t!==null&&typeof t=="object"}function ea(t){if(gn.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function t0(t){return gn.call(t)==="[object Date]"}function n0(t){return gn.call(t)==="[object File]"}function r0(t){return gn.call(t)==="[object Blob]"}function Bl(t){return gn.call(t)==="[object Function]"}function a0(t){return zl(t)&&Bl(t.pipe)}function i0(t){return gn.call(t)==="[object URLSearchParams]"}function o0(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function s0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function wi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ei(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function _i(){var t={};function e(a,i){ea(t[i])&&ea(a)?t[i]=_i(t[i],a):ea(a)?t[i]=_i({},a):Ei(a)?t[i]=a.slice():t[i]=a}for(var n=0,r=arguments.length;n<r;n++)wi(arguments[n],e);return t}function l0(t,e,n){return wi(e,function(r,a){n&&typeof r=="function"?t[a]=Zp(r,n):t[a]=r}),t}function c0(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var It={isArray:Ei,isArrayBuffer:Fl,isBuffer:Kp,isFormData:Jp,isArrayBufferView:Xp,isString:Qp,isNumber:e0,isObject:zl,isPlainObject:ea,isUndefined:xi,isDate:t0,isFile:n0,isBlob:r0,isFunction:Bl,isStream:a0,isURLSearchParams:i0,isStandardBrowserEnv:s0,forEach:wi,merge:_i,extend:l0,trim:o0,stripBOM:c0},Yn=It;function jl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ql=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Yn.isURLSearchParams(e))r=e.toString();else{var a=[];Yn.forEach(e,function(o,s){o===null||typeof o>"u"||(Yn.isArray(o)?s=s+"[]":o=[o],Yn.forEach(o,function(l){Yn.isDate(l)?l=l.toISOString():Yn.isObject(l)&&(l=JSON.stringify(l)),a.push(jl(s)+"="+jl(l))}))}),r=a.join("&")}if(r){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},u0=It;function ta(){this.handlers=[]}ta.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},ta.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},ta.prototype.forEach=function(t){u0.forEach(this.handlers,function(e){e!==null&&t(e)})};var d0=ta,m0=It,h0=function(t,e){m0.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})},Ul=function(t,e,n,r,a){return t.config=e,n&&(t.code=n),t.request=r,t.response=a,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Vl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ii,Hl;function Wl(){if(Hl)return Ii;Hl=1;var t=Ul;return Ii=function(e,n,r,a,i){var o=new Error(e);return t(o,n,r,a,i)},Ii}var Si,$l;function f0(){if($l)return Si;$l=1;var t=Wl();return Si=function(e,n,r){var a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):n(t("Request failed with status code "+r.status,r.config,null,r.request,r))},Si}var Di,Gl;function p0(){if(Gl)return Di;Gl=1;var t=It;return Di=t.isStandardBrowserEnv()?function(){return{write:function(e,n,r,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),t.isString(a)&&s.push("path="+a),t.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Di}var Yl,Zl;function g0(){return Zl||(Zl=1,Yl=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Yl}var Kl,Jl;function v0(){return Jl||(Jl=1,Kl=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),Kl}var Ni,Xl;function y0(){if(Xl)return Ni;Xl=1;var t=g0(),e=v0();return Ni=function(n,r){return n&&!t(r)?e(n,r):r},Ni}var Ci,Ql;function b0(){if(Ql)return Ci;Ql=1;var t=It,e=["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"];return Ci=function(n){var r={},a,i,o;return n&&t.forEach(n.split(`
49
- `),function(s){if(o=s.indexOf(":"),a=t.trim(s.substr(0,o)).toLowerCase(),i=t.trim(s.substr(o+1)),a){if(r[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?r[a]=(r[a]?r[a]:[]).concat([i]):r[a]=r[a]?r[a]+", "+i:i}}),r},Ci}var Ai,ec;function E0(){if(ec)return Ai;ec=1;var t=It;return Ai=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function a(i){var o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){var o=t.isString(i)?a(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),Ai}var Ti,tc;function na(){if(tc)return Ti;tc=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Ti=t,Ti}var ki,nc;function x0(){if(nc)return ki;nc=1;var t=It,e=f0(),n=p0(),r=ql,a=y0(),i=b0(),o=E0(),s=Wl(),l=Vl,c=na();return ki=function(h){return new Promise(function(x,y){var w=h.data,I=h.headers,N=h.responseType,k;function S(){h.cancelToken&&h.cancelToken.unsubscribe(k),h.signal&&h.signal.removeEventListener("abort",k)}t.isFormData(w)&&delete I["Content-Type"];var E=new XMLHttpRequest;if(h.auth){var A=h.auth.username||"",D=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";I.Authorization="Basic "+btoa(A+":"+D)}var T=a(h.baseURL,h.url);E.open(h.method.toUpperCase(),r(T,h.params,h.paramsSerializer),!0),E.timeout=h.timeout;function P(){if(E){var Y="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,Q=!N||N==="text"||N==="json"?E.responseText:E.response,B={data:Q,status:E.status,statusText:E.statusText,headers:Y,config:h,request:E};e(function(W){x(W),S()},function(W){y(W),S()},B),E=null}}if("onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){!E||(y(s("Request aborted",h,"ECONNABORTED",E)),E=null)},E.onerror=function(){y(s("Network Error",h,null,E)),E=null},E.ontimeout=function(){var Y=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",Q=h.transitional||l;h.timeoutErrorMessage&&(Y=h.timeoutErrorMessage),y(s(Y,h,Q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},t.isStandardBrowserEnv()){var z=(h.withCredentials||o(T))&&h.xsrfCookieName?n.read(h.xsrfCookieName):void 0;z&&(I[h.xsrfHeaderName]=z)}"setRequestHeader"in E&&t.forEach(I,function(Y,Q){typeof w>"u"&&Q.toLowerCase()==="content-type"?delete I[Q]:E.setRequestHeader(Q,Y)}),t.isUndefined(h.withCredentials)||(E.withCredentials=!!h.withCredentials),N&&N!=="json"&&(E.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&E.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(k=function(Y){!E||(y(!Y||Y&&Y.type?new c("canceled"):Y),E.abort(),E=null)},h.cancelToken&&h.cancelToken.subscribe(k),h.signal&&(h.signal.aborted?k():h.signal.addEventListener("abort",k))),w||(w=null),E.send(w)})},ki}var mt=It,rc=h0,w0=Ul,_0=Vl,I0={"Content-Type":"application/x-www-form-urlencoded"};function ac(t,e){!mt.isUndefined(t)&&mt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function S0(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=x0()),t}function D0(t,e,n){if(mt.isString(t))try{return(e||JSON.parse)(t),mt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var ra={transitional:_0,adapter:S0(),transformRequest:[function(t,e){return rc(e,"Accept"),rc(e,"Content-Type"),mt.isFormData(t)||mt.isArrayBuffer(t)||mt.isBuffer(t)||mt.isStream(t)||mt.isFile(t)||mt.isBlob(t)?t:mt.isArrayBufferView(t)?t.buffer:mt.isURLSearchParams(t)?(ac(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):mt.isObject(t)||e&&e["Content-Type"]==="application/json"?(ac(e,"application/json"),D0(t)):t}],transformResponse:[function(t){var e=this.transitional||ra.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&mt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?w0(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};mt.forEach(["delete","get","head"],function(t){ra.headers[t]={}}),mt.forEach(["post","put","patch"],function(t){ra.headers[t]=mt.merge(I0)});var Li=ra,N0=It,C0=Li,A0=function(t,e,n){var r=this||C0;return N0.forEach(n,function(a){t=a.call(r,t,e)}),t},ic,oc;function sc(){return oc||(oc=1,ic=function(t){return!!(t&&t.__CANCEL__)}),ic}var lc=It,Oi=A0,T0=sc(),k0=Li,L0=na();function Ri(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new L0("canceled")}var O0=function(t){Ri(t),t.headers=t.headers||{},t.data=Oi.call(t,t.data,t.headers,t.transformRequest),t.headers=lc.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),lc.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var e=t.adapter||k0.adapter;return e(t).then(function(n){return Ri(t),n.data=Oi.call(t,n.data,n.headers,t.transformResponse),n},function(n){return T0(n)||(Ri(t),n&&n.response&&(n.response.data=Oi.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},Nt=It,cc=function(t,e){e=e||{};var n={};function r(c,h){return Nt.isPlainObject(c)&&Nt.isPlainObject(h)?Nt.merge(c,h):Nt.isPlainObject(h)?Nt.merge({},h):Nt.isArray(h)?h.slice():h}function a(c){if(Nt.isUndefined(e[c])){if(!Nt.isUndefined(t[c]))return r(void 0,t[c])}else return r(t[c],e[c])}function i(c){if(!Nt.isUndefined(e[c]))return r(void 0,e[c])}function o(c){if(Nt.isUndefined(e[c])){if(!Nt.isUndefined(t[c]))return r(void 0,t[c])}else return r(void 0,e[c])}function s(c){if(c in e)return r(t[c],e[c]);if(c in t)return r(void 0,t[c])}var l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return Nt.forEach(Object.keys(t).concat(Object.keys(e)),function(c){var h=l[c]||a,x=h(c);Nt.isUndefined(x)&&h!==s||(n[c]=x)}),n},uc,dc;function mc(){return dc||(dc=1,uc={version:"0.26.1"}),uc}var R0=mc().version,Mi={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Mi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var hc={};Mi.transitional=function(t,e,n){function r(a,i){return"[Axios v"+R0+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return function(a,i,o){if(t===!1)throw new Error(r(i," has been removed"+(e?" in "+e:"")));return e&&!hc[i]&&(hc[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(a,i,o):!0}};function M0(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var r=Object.keys(t),a=r.length;a-- >0;){var i=r[a],o=e[i];if(o){var s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var P0={assertOptions:M0,validators:Mi},fc=It,F0=ql,pc=d0,gc=O0,aa=cc,vc=P0,Zn=vc.validators;function _r(t){this.defaults=t,this.interceptors={request:new pc,response:new pc}}_r.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=aa(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&vc.assertOptions(n,{silentJSONParsing:Zn.transitional(Zn.boolean),forcedJSONParsing:Zn.transitional(Zn.boolean),clarifyTimeoutError:Zn.transitional(Zn.boolean)},!1);var r=[],a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(e)===!1||(a=a&&x.synchronous,r.unshift(x.fulfilled,x.rejected))});var i=[];this.interceptors.response.forEach(function(x){i.push(x.fulfilled,x.rejected)});var o;if(!a){var s=[gc,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=e;r.length;){var c=r.shift(),h=r.shift();try{l=c(l)}catch(x){h(x);break}}try{o=gc(l)}catch(x){return Promise.reject(x)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},_r.prototype.getUri=function(t){return t=aa(this.defaults,t),F0(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},fc.forEach(["delete","get","head","options"],function(t){_r.prototype[t]=function(e,n){return this.request(aa(n||{},{method:t,url:e,data:(n||{}).data}))}}),fc.forEach(["post","put","patch"],function(t){_r.prototype[t]=function(e,n,r){return this.request(aa(r||{},{method:t,url:e,data:n}))}});var z0=_r,Pi,yc;function B0(){if(yc)return Pi;yc=1;var t=na();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(l){a.subscribe(l),o=l}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},n(function(i){a.reason||(a.reason=new t(i),r(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},e.prototype.unsubscribe=function(n){if(this._listeners){var r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}},e.source=function(){var n,r=new e(function(a){n=a});return{token:r,cancel:n}},Pi=e,Pi}var bc,Ec;function j0(){return Ec||(Ec=1,bc=function(t){return function(e){return t.apply(null,e)}}),bc}var Fi,xc;function q0(){if(xc)return Fi;xc=1;var t=It;return Fi=function(e){return t.isObject(e)&&e.isAxiosError===!0},Fi}var wc=It,U0=Pl,ia=z0,V0=cc,H0=Li;function _c(t){var e=new ia(t),n=U0(ia.prototype.request,e);return wc.extend(n,ia.prototype,e),wc.extend(n,e),n.create=function(r){return _c(V0(t,r))},n}var $t=_c(H0);$t.Axios=ia,$t.Cancel=na(),$t.CancelToken=B0(),$t.isCancel=sc(),$t.VERSION=mc().version,$t.all=function(t){return Promise.all(t)},$t.spread=j0(),$t.isAxiosError=q0(),bi.exports=$t,bi.exports.default=$t,function(t){t.exports=bi.exports}(Ml);const zi=yp(Ml.exports);class W0{constructor(){m(this,"printQueue"),this.printQueue=[]}makeUrl(e,n){return e&&(n&&(e=this.combineURLs(n,e)),this.printQueue.push(e)),this}makeParams(e){return e&&this.printQueue.push(JSON.stringify(e)),this}makeMethod(e){return e&&this.printQueue.push(e.toUpperCase()),this}makeData(e){const n=typeof e=="string"?e:JSON.stringify(e);return e&&this.printQueue.push(n),this}makeStatus(e,n){return e&&n?this.printQueue.push(`${e}:${n}`):e?this.printQueue.push(`${e}`):n&&this.printQueue.push(n),this}build(){const e=this.printQueue.join(" ");return this.printQueue=[],e}combineURLs(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}}const $0=["get_/api/2.3/clients","get_/api/2.3/clients/search","get_/api/2.3/audit/logs","get_/api/2.3/scheduling/workinghours"];class Qt{constructor(e,n,r){m(this,"authenticationService"),m(this,"logger"),m(this,"bearerCall",!1),m(this,"instance"),m(this,"axiosLoggerBuilder"),m(this,"baseUrl"),m(this,"abortControllers",new Map),m(this,"_initializeRequestInterceptor",()=>{this.instance.interceptors.request.use(this._handleRequest)}),m(this,"isAbortableRequest",a=>$0.includes(a.indexOf("?")!==-1?a.substring(0,a.indexOf("?")):a)),m(this,"_handleRequest",a=>{var i;const o=(a.method+"_"+a.url).toLowerCase();if(this.isAbortableRequest(o)){const s=new AbortController;a.signal=s.signal,this.abortControllers.has(o)&&((i=this.abortControllers.get(o))==null||i.abort()),this.abortControllers.set(o,s)}return a}),m(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleRefreshToken)}),m(this,"_handleResponse",a=>{var i,o,s,l,c;if(this.logger){const h=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus(a.status,a.statusText).makeData(this.filteredDataLog((c=a.config)==null?void 0:c.data)).makeData(this.filteredDataLog(a.data)).build();this.logger.debug("js-calendar-api",h)}return a.data}),m(this,"_handleError",a=>{var i,o,s,l,c,h,x,y,w,I,N,k;if(zi.isCancel(a)&&this.isAbortableRequest(((i=a.config)==null?void 0:i.method)+"_"+((o=a.config)==null?void 0:o.url))){console.log("cancelled query",a);return}if(this.logger){const S=this.axiosLoggerBuilder.makeMethod((s=a.config)==null?void 0:s.method).makeUrl((l=a.config)==null?void 0:l.url,(c=a.config)==null?void 0:c.baseURL).makeParams((h=a.config)==null?void 0:h.params).makeStatus((x=a.response)==null?void 0:x.status,(y=a.response)==null?void 0:y.statusText).makeData((w=a.config)==null?void 0:w.data).makeData((I=a.response)==null?void 0:I.data).build();this.logger.error("js-calendar-api",S)}if(zi.isAxiosError(a)&&((k=(N=a.response)==null?void 0:N.data)==null?void 0:k.error)){const S=Object.assign(new gi,a.response.data.error);return Promise.reject(S)}else return Promise.reject(a)}),m(this,"_handleRefreshToken",async a=>{if(!this.bearerCall&&a.response){const i=a.config;if(a.response.status===401||a.response.status===400&&a.response.data&&a.response.data.error&&a.response.data.error.message&&a.response.data.error.message.indexOf("Required parameter apiKey not found")>-1)if(i._retry)this.authenticationService.logout().finally(()=>window.location.href="/");else{i._retry=!0;try{return await this.authenticationService.refreshToken(),this.instance(i)}catch{this.authenticationService.logout().finally(()=>window.location.href="/")}}}return this._handleError(a)}),this.authenticationService=n,this.logger=r,this.baseUrl=e,this.instance=zi.create({baseURL:e}),this.axiosLoggerBuilder=new W0,this._initializeRequestInterceptor(),this._initializeResponseInterceptor()}filteredDataLog(e){return e}getAxiosConfig(e,n){let r={};return e?(this.bearerCall=!0,r={headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},params:{}}):(this.bearerCall=!1,r={headers:{"Content-Type":"application/json"},params:{},withCredentials:!0}),n&&(r.params.account=n),r}}class G0 extends Qt{async getAllStaffs(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/staff`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async createStaff(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async updateStaff(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/staff/${a}`;const s=this.instance.put(o,i,this.getAxiosConfig(e,n));if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async patchAllStaff(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff`;const o=this.instance.patch(i,a,this.getAxiosConfig(e,n));if(o!==null)try{await o;return}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class Ic{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async getAllStaffs(e){return(await this.indexedDb.getAllValue(Vn)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async getById(e,n){var r;const a=await this.indexedDb.getValue(Vn,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw mn}async saveAllStaffs(e){await this.indexedDb.putBulkValue(Vn,e)}async deleteById(e,n){await this.indexedDb.deleteValue(Vn,n)}async deleteByStaffIds(e){await this.indexedDb.deleteValues(Vn,e)}async drop(){await this.indexedDb.deleteAllValues(Vn)}updateServiceSkills(e,n,r){this.getAllStaffs(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.servicesSkill)==null?void 0:s.includes(n)});i&&i.length>0&&(i.forEach(o=>{var s,l,c;const h=(s=o.servicesSkill)==null?void 0:s.findIndex(x=>x===n);h!=null&&(r?(l=o.servicesSkill)==null||l.splice(h,1,r):(c=o.servicesSkill)==null||c.splice(h,1))}),await this.saveAllStaffs(i))})}}var Y0=Object.defineProperty,Z0=Object.getOwnPropertyDescriptor,Bi=(t,e,n,r)=>{for(var a=r>1?void 0:r?Z0(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&Y0(e,n,a),a};let oa=class extends Wt{constructor(t,e,n,r){super("staff",r),m(this,"staffDb"),m(this,"staffService"),this.staffDb=new Ic(e),this.staffService=new G0(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){if(n==ct&&e==je.DELETE)await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId});else if(n==Dn&&e==je.UPDATE){const a=t.entity;for(const i of a.companies)await this.cascadeDelete({account:t.organisation,companyId:i.company.id},()=>!0)}else n==Sn&&await this.cascadeDelete({account:t.organisation,companyId:t.companyId},()=>!0)}async getAllStaffs(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getStaff(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,staffId:r})}async createStaff(t,e,n,r){const a=await this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return Dt.publish(je.CREATE,{account:e,companyId:n,staff:a}),a}async updateStaff(t,e,n,r,a){const i=await this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,staffId:r},a);return Dt.publish(je.UPDATE,{account:e,companyId:n,staffId:r,staff:i}),i}async patchAllStaff(t,e,n,r,a){let i=new Jt;return r&&(i.workingHours=r),a&&(i.vacations=a),await this.staffService.patchAllStaff(t,e,n,i),this.getAllStaffs(t,e,n,Oe.REMOTE_THEN_LOCAL)}async deleteStaff(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,staffId:r}),Dt.publish(je.DELETE,{account:e,companyId:n,staffId:r})}async remoteList(t,e){return(await this.staffService.getAllStaffs(t,e.account,e.companyId)).map(n=>Jt.fromStaffDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.staffService.getById(t,e.account,e.companyId,e.staffId);return Jt.fromStaffDto(n)}async remoteCreate(t,e,n){const r=Jt.toStaffDto(n),a=await this.staffService.createStaff(t,e.account,e.companyId,r);return Jt.fromStaffDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Jt.toStaffDto(n),a=await this.staffService.updateStaff(t,e.account,e.companyId,e.staffId,r);return Jt.fromStaffDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.staffService.delete(t,e.account,e.companyId,e.staffId)}async localList(t){return this.staffDb.getAllStaffs(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffDb.getById(t.companyId,t.staffId)}async localBulkSave(t,e){await this.staffDb.saveAllStaffs(e)}async localDelete(t){this.checkNullable(t),await this.staffDb.deleteById(t.companyId,t.staffId)}async localBulkDelete(t){await this.staffDb.deleteByStaffIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffId)throw Error("Invalid state:"+JSON.stringify(t))}};Bi([ve.Unsubscribe()],oa.prototype,"dispose",1),Bi([ve.Subscribe(je.DELETE),ve.Subscribe(je.UPDATE),ve.Subscribe(je.CREATE)],oa.prototype,"onCascadeDelete",1),oa=Bi([ve.Subscriber({channel:Dn}),ve.Subscriber({channel:Sn}),ve.Subscriber({channel:ct})],oa);class K0 extends Qt{async getAllServices(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/services`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async createService(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async updateService(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/services/${a}`;const s=this.instance.put(o,i,this.getAxiosConfig(e,n));if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class Sc{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async getAllServiceGroups(e){return(await this.indexedDb.getAllValue($n)||[]).filter(n=>n.companyId===e)}async saveAllServiceGroups(e){await this.indexedDb.putBulkValue($n,e)}async getById(e,n){const r=await this.indexedDb.getValue($n,n);if((r==null?void 0:r.companyId)===e)return r;throw mn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue($n,n),new Ic(this.indexedDb).updateServiceSkills(e,n,void 0)}async deleteByServiceGroupIds(e){await this.indexedDb.deleteValues($n,e)}async drop(){await this.indexedDb.deleteAllValues($n)}updateServices(e,n,r){this.getAllServiceGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===n)});i&&i.length>0&&(i.forEach(o=>{var s,l,c;const h=(s=o.members)==null?void 0:s.findIndex(x=>x.id===n);h!=null&&(r?(l=o.members)==null||l.splice(h,1,r):(c=o.members)==null||c.splice(h,1))}),await this.saveAllServiceGroups(i))})}}class Dc{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async getAllServices(e){return(await this.indexedDb.getAllValue(Hn)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async saveAllServices(e){await this.indexedDb.putBulkValue(Hn,e)}async getById(e,n){var r;const a=await this.indexedDb.getValue(Hn,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw mn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Hn,n),new Sc(this.indexedDb).updateServices(e,n,void 0)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Hn,e)}async drop(){await this.indexedDb.deleteAllValues(Hn)}updateStaffSkills(e,n,r){this.getAllServices(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.staffsSkill)==null?void 0:s.includes(n)});i&&i.length>0&&(i.forEach(o=>{var s,l,c;const h=(s=o.staffsSkill)==null?void 0:s.findIndex(x=>x===n);h!=null&&(r?(l=o.staffsSkill)==null||l.splice(h,1,r):(c=o.staffsSkill)==null||c.splice(h,1))}),await this.saveAllServices(i))})}}var J0=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,ji=(t,e,n,r)=>{for(var a=r>1?void 0:r?X0(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&J0(e,n,a),a};let sa=class extends Wt{constructor(t,e,n,r){super("service",r),m(this,"serviceDb"),m(this,"serviceService"),this.serviceDb=new Dc(e),this.serviceService=new K0(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ct?await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId}):n==Dt&&await this.cascadeDelete({account:t.organisation,companyId:t.companyId},()=>!0)}async getAllServices(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getService(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceId:r})}async createService(t,e,n,r){const a=await super.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return Sn.publish(je.CREATE,{account:e,companyId:n,service:a}),a}async updateService(t,e,n,r,a){const i=await super.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceId:r},a);return Sn.publish(je.UPDATE,{account:e,companyId:n,serviceId:r,service:i}),i}async deleteService(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,serviceId:r}),Sn.publish(je.DELETE,{account:e,companyId:n,serviceId:r})}async remoteList(t,e){return(await this.serviceService.getAllServices(t,e.account,e.companyId)).map(n=>cn.fromServiceDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceService.getById(t,e.account,e.companyId,e.serviceId);return cn.fromServiceDto(n)}async remoteCreate(t,e,n){const r=cn.toServiceDto(n),a=await this.serviceService.createService(t,e.account,e.companyId,r);return cn.fromServiceDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=cn.toServiceDto(n),a=await this.serviceService.updateService(t,e.account,e.companyId,e.serviceId,r);return cn.fromServiceDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceService.delete(t,e.account,e.companyId,e.serviceId)}async localList(t){return this.serviceDb.getAllServices(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceDb.getById(t.companyId,t.serviceId)}async localBulkSave(t,e){await this.serviceDb.saveAllServices(e)}async localDelete(t){this.checkNullable(t),await this.serviceDb.deleteById(t.companyId,t.serviceId)}async localBulkDelete(t){await this.serviceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceId)throw Error("Invalid state:"+JSON.stringify(t))}};ji([ve.Unsubscribe()],sa.prototype,"dispose",1),ji([ve.Subscribe(je.DELETE),ve.Subscribe(je.UPDATE),ve.Subscribe(je.CREATE)],sa.prototype,"onCascadeDelete",1),sa=ji([ve.Subscriber({channel:ct}),ve.Subscriber({channel:Dt})],sa);class Q0 extends Qt{async searchContacts(e,n,r,a=100,i=!0,o=!1,s,l){let c="/api/2.3/clients",h=this.getAxiosConfig(e,n);h.params.q=r,h.params.maxResult=a,h.params.showAnonymized=o,s&&(h.params.orderBy=s),l&&(h.params.pageToken=l);const x=this.instance.get(c,h);if(x!==null)try{const y=await x;return i?y.items:y}catch(y){throw y}else throw new ke(Se.INTERNAL_ERROR)}async advancedSearchContacts(e,n,r,a=100,i=!0,o,s){let l="/api/2.3/clients/search",c=this.getAxiosConfig(e,n);c.params.maxResult=a,o&&(c.params.orderBy=o),s&&(c.params.pageToken=s);const h=this.instance.post(l,r,c);if(h!==null)try{const x=await h;return i?x.items:x}catch(x){throw x}else throw new ke(Se.INTERNAL_ERROR)}async createContact(e,n,r){const a=this.instance.post("/api/2.3/clients",r,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new ke(Se.INTERNAL_ERROR)}async updateContact(e,n,r,a){const i=this.instance.put(`/api/2.3/clients/${r}`,a,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r){let a=`/api/2.3/clients/${r}`;const i=this.instance.get(a,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new ke(Se.INTERNAL_ERROR)}async deleteBy(e,n,r){let a=`/api/2.3/clients/${r}`;const i=this.instance.delete(a,this.getAxiosConfig(e,n));if(i!==null)try{await i}catch(o){throw o}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class e1{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async getAllContacts(){return this.indexedDb.getAllValue(wr)}async saveAllContacts(e){await this.indexedDb.putBulkValue(wr,e)}async getById(e){return this.indexedDb.getValue(wr,e)}async deleteById(e){await this.indexedDb.deleteValue(wr,e)}async drop(){await this.indexedDb.deleteAllValues(wr)}}var t1=Object.defineProperty,n1=Object.getOwnPropertyDescriptor,Nc=(t,e,n,r)=>{for(var a=r>1?void 0:r?n1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&t1(e,n,a),a};const Cc=100;let qi=class extends Wt{constructor(t,e,n,r){super("contact",r),m(this,"contactDb"),m(this,"contactService"),this.contactDb=new e1(e),this.contactService=new Q0(n,t,r)}async onCascadeChange(t,e,n,r){var a,i,o,s;n==xr&&(i=(a=t.event)==null?void 0:a.client)!=null&&i.id&&await this.cascadeDeleteItem({account:t.account,contactId:(s=(o=t.event)==null?void 0:o.client)==null?void 0:s.id})}async searchContacts(t,e,n,r,a){return this.list(t,Oe.REMOTE_THEN_LOCAL,{account:e||"",query:n,showAnonymized:r,sort:a})}async searchContactWithPages(t,e,n,r,a,i){var o;let s;return typeof n=="string"?s=await this.contactService.searchContacts(t,e,n||"",Cc,!1,r,a,i):s=await this.contactService.advancedSearchContacts(t,e,n,Cc,!1,a,i),{nextPageToken:s.nextPageToken,nextSyncToken:s.nextSyncToken,totalItems:s.totalItems,items:(o=s.items)==null?void 0:o.map(l=>Xt.fromContactDto(l))}}async createContact(t,e,n){return n.address===void 0&&(n.address=new gr,n.address.country="FR"),this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e},n)}async updateContact(t,e,n,r){return this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,contactId:n},r)}async deleteContact(t,e,n){return this.deleteById(t,{account:e,contactId:n})}async getContact(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.getById(t,r,{account:e,contactId:n})}async remoteList(t,e){return(await this.contactService.searchContacts(t,e.account,e.query||"",100,!0,e.showAnonymized,e.sort)).map(n=>Xt.fromContactDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.contactService.getById(t,e.account,e.contactId);return Xt.fromContactDto(n)}async remoteCreate(t,e,n){const r=Xt.toContactDto(n),a=await this.contactService.createContact(t,e.account,r);return Xt.fromContactDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Xt.toContactDto(n),a=await this.contactService.updateContact(t,e.account,e.contactId,r);return Xt.fromContactDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.contactService.deleteBy(t,e.account,e.contactId)}async localList(t){return this.contactDb.getAllContacts()}async localGet(t){return this.checkNullable(t),this.contactDb.getById(t.contactId)}async localBulkSave(t,e){await this.contactDb.saveAllContacts(e)}async localDelete(t){this.checkNullable(t),await this.contactDb.deleteById(t.contactId)}localBulkDelete(t){return Promise.resolve(void 0)}checkNullable(t){if(!t.contactId)throw Error("Invalid state:"+JSON.stringify(t))}};Nc([ve.Subscribe(je.UPDATE),ve.Subscribe(je.CREATE)],qi.prototype,"onCascadeChange",1),qi=Nc([ve.Subscriber({channel:xr})],qi);function r1(t){t||(t=[]),i1(t);let e="",n="";for(const r of t)e+=n+r,n=",";return e}function a1(){const t=[];return t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.STAFF),t.push(Xe.SERVICE),t.push(Xe.STATUS),t.push(Xe.COMPANY),t.push(Xe.OWNER),t.push(Xe.CLIENT),t.push(Xe.ONLINE_MEETING),t.push(Xe.FORM),t.push(Xe.PRICE),t.push(Xe.SOURCE),t.push(Xe.SUMMARY),t.push(Xe.NOTES),t.push(Xe.PREPARATION_DURATION),t.push(Xe.BUFFER_DURATION),t}function i1(t){t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.SOURCE)}var Xe=(t=>(t.ID="id",t.START="start",t.END="end",t.OWNER="owner",t.NOTES="notes",t.CREATED="created",t.STAFF="staff",t.HISTORY="history",t.SOURCE="source",t.REFERENCE="reference",t.SERVICE="service",t.ENCRYPTED_ID="encryptedId",t.PAID="paid",t.CLIENT="client",t.COMPANY="company",t.STATUS="status",t.SUMMARY="summary",t.RESOURCE="resource",t.SERVICE_RESOURCE="service-resource",t.PARENT="parent",t.RESCHEDULE_LINK="rescheduleLink",t.ONLINE_MEETING="onlineMeeting",t.PRICE="price",t.FORM="form",t.PREPARATION_DURATION="preparationDuration",t.BUFFER_DURATION="bufferDuration",t))(Xe||{});class o1 extends Qt{async createEvent(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/appointments`;const s=this.getAxiosConfig(e,n);i&&(s.params.force=!0),a.form=await this._prepareFormFields(a.form);const l=this.instance.post(o,a,s);if(l!==null)try{return await l}catch(c){throw c}else throw new ke(Se.INTERNAL_ERROR)}async updateEvent(e,n,r,a,i=!1){let o=`/api/2.1/scheduling/companies/${r}/appointments/${a.id}`;const s=this.getAxiosConfig(e,n);i&&(s.params.force=!0),a.form=await this._prepareFormFields(a.form);const l=this.instance.put(o,a,s);if(l!==null)try{return await l}catch(c){throw c}else throw new ke(Se.INTERNAL_ERROR)}async updateEventStatus(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/appointments/${a}`;const s=this.instance.put(o,{status:i},this.getAxiosConfig(e,n));if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async getExternalAppointments(e,n,r,a,i,o){let s=this.getAxiosConfig(e,n);s.params.userIds=r,s.params.start=a,s.params.end=i,s.params.timeZone=o;const l=this.instance.get("/api/2.1/scheduling/externalAppointments",s);if(l!==null)try{return(await l).items}catch(c){throw c}else throw new ke(Se.INTERNAL_ERROR)}async getICS(e,n){let r=this.getAxiosConfig(e),a=n;if(n.indexOf("calendar.google.com/calendar")>0){const o=n.indexOf("://");a="/api/2.3/forward/https//"+(o>0?n.substring(o+3):n)}const i=this.instance.get(a,r);if(i!==null)try{return await i}catch(o){throw o}else throw new ke(Se.INTERNAL_ERROR)}async getAllEvents(e,n,r,a,i,o,s,l,c){let h=this.getAxiosConfig(e,n);h.params.userIds=r,h.params.start=a,h.params.end=i,h.params.levelDetail="full",o&&(h.params.personalAppointments=!0),h.params.showDeleted=s,c&&(h.params.syncToken=c),l&&l.length>0?h.params.fields=r1(l):h.params.fields=a1().map(y=>`${y}`).join(",");const x=this.instance.get("/api/2.1/scheduling/appointments",h);if(x!==null)try{return await x}catch(y){throw y}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=this.getAxiosConfig(e,n);i.params.levelDetail="full",a&&(i.params.personalAppointments=!0);let o=`/api/2.1/scheduling/appointments/${r}`;const s=this.instance.get(o,i);if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async _prepareFormFields(e){var n;if(e){const r=e.filter(a=>a.inputType!=="file"||a.inputType==="file"&&a.value!==void 0);try{r.forEach(a=>{var i;a.values&&(a.values=(i=a.values)==null?void 0:i.filter(o=>typeof a.value=="string"&&a.value===o.value||Array.isArray(a.value)&&a.value.indexOf(o.value)!==-1),Array.isArray(a.value)&&(a.value=void 0))});for(const a of r.filter(i=>i.inputType==="rating"&&i.value!==void 0&&i.value!==""))a.values=[{id:a.value,value:a.value,name:a.value}];for(const a of r.filter(i=>i.inputType==="file"))a.fileName=a.value.name,a.value=await Xf(a.value);r.filter(a=>a.inputType==="date").forEach(a=>{a.value instanceof Date&&(a.value=Ae.fromJSDate(a.value).toFormat("yyyy-MM-dd"))})}catch(a){(n=this.logger)==null||n.error("js-calendar-api","Error while prepared form fields",a)}return r}}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class la extends Map{static fromStorage(e){let n=new la;return e&&Object.entries(JSON.parse(e)).forEach(r=>{n.set(r[0],r[1])}),n}}class s1{constructor(){m(this,"STORAGE_KEY","eventCoverage")}getCoverage(e,n,r,a,i){return this.getLocalCoverage(e,n,new Ac(Ct.fromDate(r),Ct.fromDate(a)),i)}getLocalCoverage(e,n,r,a){let i=la.fromStorage(localStorage.getItem(this.STORAGE_KEY)),o=[],s=[],l=[];r.getRange().forEach(w=>{n.forEach(I=>{l.push({account:e,userId:I,year:w.year,month:w.month})})}),l.forEach(w=>{let I=i.get(w.userId);c1(new Ct(w.year,w.month),I||[])?o.push(w):s.push(w)}),a==null||a.debug("js-calendar-api","Month to load (local): ",o),a==null||a.debug("js-calendar-api","Month to load (remote): ",s);let c=Tc(o),h=Tc(s),x=Lc(c),y=Lc(h);return{local:x,remote:y}}saveCoverage(e,n,r,a,i){return this.saveLocalCoverage(e,n,new Ac(Ct.fromDate(r),Ct.fromDate(a)),i)}saveLocalCoverage(e,n,r,a){let i=la.fromStorage(localStorage.getItem(this.STORAGE_KEY));n.forEach(o=>{let s=i==null?void 0:i.get(o),l=s?s.filter(c=>{r.isIn(c.month,c.year)}):[];r.getRange().forEach(c=>{l.push({account:e,userId:o,year:c.year,month:c.month})}),a==null||a.debug("js-calendar-api",`Add coverage ${o} ${JSON.stringify(l)}`),i==null||i.set(o,l)}),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(Object.fromEntries(i)))}clearStorage(){localStorage.removeItem(this.STORAGE_KEY)}}class Ac{constructor(e,n){m(this,"start"),m(this,"end"),this.start=e,this.end=n}isIn(e,n){let r=Ct.toNumber(n,e);return this.start.toNumber()<=r&&this.end.toNumber()>=r}getRange(){let e=this.start.year,n=this.start.month,r=[];do r.push(new Ct(e,n)),n++,n==12&&(n=0,e++);while(Ct.toNumber(e,n)<=this.end.toNumber());return r}}class Ct{constructor(e,n){m(this,"month"),m(this,"year"),this.year=e,this.month=n}toNumber(){return Ct.toNumber(this.year,this.month)}static fromDate(e){return new Ct(e.getFullYear(),e.getMonth())}static toNumber(e,n){return e*12+n}}const ca=t=>{const e=t.month+1;return new Date(t.year+"-"+(e<10?"0"+e:e)+"-01")},l1=(t,e,n,r)=>t===n&&Math.abs(e-r)===1||Math.abs(t-n)===1&&Math.abs(e-r)===11,c1=(t,e)=>e.filter(n=>n.year===t.year&&n.month===t.month).length>0,Tc=t=>{const e=(a,i)=>Ct.toNumber(a.year,a.month)-Ct.toNumber(i.year,i.month);t.sort(e);let n=[];if(t.length===0)return n;let r;return t.forEach((a,i)=>{i===0?r={userId:[a.userId],month:a.month,year:a.year}:a.month===r.month&&a.year===r.year?r.userId.push(a.userId):(n.push(r),r={userId:[a.userId],month:a.month,year:a.year}),i===t.length-1&&n.push(r)}),n};function kc(t,e,n){return{userId:t.userId,start:{year:e.year,month:e.month},end:{year:n.month==11?n.year+1:n.year,month:n.month==11?0:n.month+1}}}const Lc=t=>{let e=[];if(t.length===0)return e;let n,r;return t.sort((a,i)=>a.year<i.year?-1:a.year>i.year||a.month>i.month?1:a.month<i.month?-1:0),t.forEach((a,i)=>{if(i===0)n=a,r=a;else if(l1(a.year,a.month,r.year,r.month))r=a;else{let o=kc(a,n,r);e.push(o),n=a,r=a}if(i===t.length-1){let o=kc(a,n,r);e.push(o)}}),e};class u1{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(pn,e)}async saveEvent(e){await this.indexedDb.putValue(pn,e)}async deleteEvent(e){await this.indexedDb.deleteValue(pn,e)}async deleteByEventIds(e){await this.indexedDb.deleteValues(pn,e)}async getAllEvents(e,n,r,a){return(await this.indexedDb.getAllValue(pn)||[]).filter(i=>{var o;return e===void 0||((o=i.owner)==null?void 0:o.userName)===e}).filter(i=>(r===void 0||i.start.getTime()>=r.getTime())&&(a===void 0||i.end.getTime()<=a.getTime())).filter(i=>{var o,s,l;const c=n===void 0||n.includes(((o=i.staff)==null?void 0:o.userId)||"")||((s=i.staff)==null?void 0:s.userId)==="0"&&n.includes(i.staff.id);return((l=i.staff)==null?void 0:l.userId)!==void 0&&c})}async getFirstEventByChildEventId(e){const n=(await this.indexedDb.getAllValue(pn)||[]).filter(r=>{var a;return(a=r.events)==null?void 0:a.some(i=>i.id===e)});return(n==null?void 0:n.length)>0?n[0]:void 0}async getById(e){return this.indexedDb.getValue(pn,e)}async drop(){await this.indexedDb.deleteAllValues(pn)}}var d1=Object.defineProperty,m1=Object.getOwnPropertyDescriptor,Ui=(t,e,n,r)=>{for(var a=r>1?void 0:r?m1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&d1(e,n,a),a};let ua=class extends Wt{constructor(t,e,n,r){super("event",r),m(this,"REPOSITORY_NAME","Appointment"),m(this,"eventDb"),m(this,"eventService"),m(this,"eventMetaStorage"),this.eventDb=new u1(e),this.eventService=new o1(n,t,r),this.eventMetaStorage=new s1}dispose(){}async onCascadeDelete(t,e,n,r){n==ct&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async createEvent(t,e,n,r,a,i){const o=await this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,timeZone:a,force:i},r);return xr.publish(je.CREATE,{account:e,companyId:n,event:o}),o}async updateEvent(t,e,n,r,a,i){let o=await this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,timeZone:a,force:i},r);return xr.publish(je.UPDATE,{account:e,companyId:n,event:o}),o}async updateEventStatus(t,e,n,r,a){let i=await this.remoteUpdateStatus(t,{account:e,companyId:n,eventId:r},a);return xr.publish(je.UPDATE,{account:e,companyId:n,event:i}),i}async getEvent(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{eventId:n,showPersonal:r,account:e})}async getAllEvents(t,e,n,r,a,i,o,s,l,c,h=Oe.LOCAL_THEN_REMOTE){let x=!0,y={results:[]};if(h===Oe.REMOTE_ONLY)y=await this.remoteSyncList(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:s,showPersonal:i,showDeleted:o,fields:l,syncToken:c}),await this.localBulkSave({},y.results),x=!1;else if(h===Oe.LOCAL_ONLY)y.results=await this.localList({userIds:n.join(","),account:e,start:r,end:a,showPersonal:i,showDeleted:o});else if(h==Oe.REMOTE_THEN_LOCAL){const w=await this._syncListRemoteFirstThenLocal(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:s,showPersonal:i,showDeleted:o,fields:l,syncToken:c});y=w,x=w.local}else h==Oe.LOCAL_THEN_REMOTE&&(y=await this.remoteSyncList(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:s,showPersonal:i,showDeleted:o,fields:l,syncToken:c}),await this.localBulkSave({},y.results),x=!1);return{local:x,...y}}async getEventWithCoverage(t,e,n,r,a,i,o,s,l,c=Oe.LOCAL_THEN_REMOTE){var h,x;let y=!0,w=[],I=this.eventMetaStorage.getCoverage(e,n,r,a,this.logger);for(const N of I.local){(h=this.logger)==null||h.debug("js-calendar-api",`getAllEvents coverage local: ${JSON.stringify(N)}`);const k=await this.list(t,Oe.LOCAL_THEN_REMOTE,{userIds:n.join(","),account:e,start:ca(N.start),end:ca(N.end),timeZone:s,showPersonal:i,showDeleted:o,fields:l});w=w.concat(k.results)}for(const N of I.remote){(x=this.logger)==null||x.debug("js-calendar-api",`getAllEvents coverage remote: ${JSON.stringify(N)}`);const k=await this.list(t,Oe.REMOTE_THEN_LOCAL,{userIds:n.join(","),account:e,start:ca(N.start),end:ca(N.end),timeZone:s,showPersonal:i,showDeleted:o,fields:l});w=w.concat(k.results)}return y=I.remote.length===0,{local:y,results:w}}async deleteAllEvents(){return this.eventDb.drop()}async getExternalEvent(t,e,n,r,a,i){const o=jn(r,i),s=jn(a,i);return(await this.eventService.getExternalAppointments(t,e,n.join(","),o,s,i)).map(l=>Mt.fromEventDto(l,Al.EXTERNAL))}async remoteList(t,e){return(await this.remoteSyncList(t,e)).results}async remoteSyncList(t,e){if(!e.start||!e.end||!e.userIds||!e.account)throw Error("Invalid state:"+JSON.stringify(e));const n=jn(e.start,e.timeZone),r=jn(e.end,e.timeZone),a=await this.eventService.getAllEvents(t,e.account,e.userIds,n,r,e.showPersonal,e.showDeleted,e.fields,e.syncToken);return this.eventMetaStorage.saveCoverage(e.account,e.userIds.split(","),e.start,e.end,this.logger),{nextSyncToken:a.nextSyncToken,results:a.items.map(i=>Mt.fromEventDto(i))}}async remoteGet(t,e){if(!e.eventId||!e.account)throw Error("Invalid state:"+JSON.stringify(e));const n=await this.eventService.getById(t,e.account,e.eventId,e.showPersonal);return Mt.fromEventDto(n)}async remoteCreate(t,e,n){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));const r=Mt.toEventDto(n,e.timeZone),a=await this.eventService.createEvent(t,e.account,e.companyId,r,e.force||!1);return Mt.fromEventDto(a)}async remoteUpdate(t,e,n){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));let r=Mt.toEventDto(n,e.timeZone);const a=await this.eventService.updateEvent(t,e.account,e.companyId,r,e.force);return Mt.fromEventDto(a)}async remoteUpdateStatus(t,e,n){if(!e.account||!e.companyId||!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const r=await this.eventService.updateEventStatus(t,e.account,e.companyId,e.eventId,n);return Mt.fromEventDto(r)}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){var e;return this.eventDb.getAllEvents(t.account,(e=t.userIds)==null?void 0:e.split(","),t.start,t.end)}async localGet(t){if(!t.eventId)throw Error("Invalid state:"+JSON.stringify(t));return this.eventDb.getById(t.eventId)}async localBulkSave(t,e){await this.eventDb.saveAllEvents(e)}async localDelete(t){throw new Error("Method not implemented.")}async localBulkDelete(t){await this.eventDb.deleteByEventIds(t.map(e=>e.id||""))}async _syncListRemoteFirstThenLocal(t,e){var n,r;let a={local:!1,results:[]};try{const i=await this.remoteSyncList(t,e);a.results=i.results,a.nextSyncToken=i.nextSyncToken,await this.localBulkSave(e,a.results)}catch(i){(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,i);try{if(a.results=await this.localList(e),a.results===void 0||a.results.length===0)throw i}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,o),this.getError(o)}}return a}};Ui([ve.Unsubscribe()],ua.prototype,"dispose",1),Ui([ve.Subscribe(je.DELETE)],ua.prototype,"onCascadeDelete",1),ua=Ui([ve.Subscriber({channel:ct})],ua);class Oc{constructor(e,n=Gp){m(this,"indexedDb"),m(this,"table"),this.indexedDb=e,this.table=n}async getAllUsers(){return this.indexedDb.getAllValue(this.table)}async getById(e){return this.indexedDb.getValue(this.table,e)}async saveAllUsers(e){await this.indexedDb.putBulkValue(this.table,e)}async drop(){return this.indexedDb.deleteAllValues(this.table)}async dropBulk(e){return this.indexedDb.deleteValues(this.table,e.map(n=>n.id))}}class Rc{constructor(e,n=Wp){m(this,"indexedDb"),m(this,"table"),this.indexedDb=e,this.table=n}async getAllTeams(){return await this.indexedDb.getAllValue(this.table)||[]}async saveAllTeams(e){await this.indexedDb.putBulkValue(this.table,e)}async getById(e){throw await this.indexedDb.getValue(this.table,e)}async deleteById(e){await this.getById(e),await this.indexedDb.deleteValue(this.table,e)}async drop(){await this.indexedDb.deleteAllValues(this.table)}}class h1 extends Qt{async getAllUsers(e,n,r){const a=this.getAxiosConfig(e,n);a.params.userWithoutStaff=!0,a.params.defaultUsers=r;const i=this.instance.get("/api/2.1/scheduling/users",a);if(i!==null)try{return await i}catch(o){throw o}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r){const a=this.getAxiosConfig(e,r);let i=`/api/2.1/scheduling/users/${n}`;a.params.userWithoutStaff=!0;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}var f1=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,Mc=(t,e,n,r)=>{for(var a=r>1?void 0:r?p1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&f1(e,n,a),a};class da extends Wt{constructor(e,n,r,a,i="user"){super(i,a),m(this,"userDb"),m(this,"teamDb"),m(this,"userService"),this.teamDb=this.initTeamDb(n),this.userDb=this.initUserDb(n),this.userService=new h1(r,e,a)}async getAllTeams(e,n){const r=await this.getAllUsers(e,n,Oe.LOCAL_THEN_REMOTE);return{results:await this.teamDb.getAllTeams(),local:r.local}}async getUser(e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(e,a,{userId:n,organisation:r})}async remoteList(e,n){var r;const a=await this.userService.getAllUsers(e,n.organisation,n.defaultUsers),i=a.anonymousUsers.map(s=>{const l=yr.fromUserDto(s);return l.anonymous=!0,l}).concat(a.users.map(s=>{const l=yr.fromUserDto(s);return l.anonymous=!1,l})),o=(r=a.teams)==null?void 0:r.map(s=>fi.fromDto(s));return o&&await this.teamDb.saveAllTeams(o),i}async remoteGet(e,n){this.checkNullable(n);const r=await this.userService.getById(e,n.userId,n.organisation);return yr.fromUserDto(r)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){return this.userDb.getAllUsers()}async localGet(e){return this.checkNullable(e),this.userDb.getById(e.userId)}async localBulkSave(e,n){await this.userDb.saveAllUsers(n)}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return this.userDb.dropBulk(e)}checkNullable(e){if(!e.userId)throw Error("Invalid state:"+JSON.stringify(e))}dispose(){}async onCascadeDelete(e,n,r,a){(r==Dt||r==ct||r==Dn)&&(await this.cascadeDelete({},()=>!0),await this.teamDb.drop())}}Mc([ve.Unsubscribe()],da.prototype,"dispose",1),Mc([ve.Subscribe(je.DELETE),ve.Subscribe(je.CREATE),ve.Subscribe(je.UPDATE)],da.prototype,"onCascadeDelete",1);var g1=Object.defineProperty,v1=Object.getOwnPropertyDescriptor,y1=(t,e,n,r)=>{for(var a=r>1?void 0:r?v1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&g1(e,n,a),a};let Pc=class extends da{constructor(t,e,n,r){super(t,e,n,r,"user")}initTeamDb(t){return new Rc(t)}initUserDb(t){return new Oc(t)}async getAllUsers(t,e,n=Oe.LOCAL_THEN_REMOTE){return this.list(t,n,{organisation:e})}};Pc=y1([ve.Subscriber({channel:Dt}),ve.Subscriber({channel:ct}),ve.Subscriber({channel:Dn})],Pc);var b1={exports:{}},Fc={exports:{}},zc;function ma(){return zc||(zc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(c,h){this.high=c,this.low=h}}),l.WordArray=o.extend({init:function(c,h){c=this.words=c||[],h!=r?this.sigBytes=h:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,h=c.length,x=[],y=0;y<h;y++){var w=c[y];x.push(w.high),x.push(w.low)}return s.create(x,this.sigBytes)},clone:function(){for(var c=o.clone.call(this),h=c.words=this.words.slice(0),x=h.length,y=0;y<x;y++)h[y]=h[y].clone();return c}})}(),n})}(Fc)),Fc.exports}var Bc={exports:{}},jc;function E1(){return jc||(jc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,a=r.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,h=[],x=0;x<c;x++)h[x>>>2]|=l[x]<<24-x%4*8;o.call(this,h,c)}else o.apply(this,arguments)};s.prototype=i}}(),n.lib.WordArray})}(Bc)),Bc.exports}var qc={exports:{}},Uc;function x1(){return Uc||(Uc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,h=l.sigBytes,x=[],y=0;y<h;y+=2){var w=c[y>>>2]>>>16-y%4*8&65535;x.push(String.fromCharCode(w))}return x.join("")},parse:function(l){for(var c=l.length,h=[],x=0;x<c;x++)h[x>>>1]|=l.charCodeAt(x)<<16-x%2*16;return i.create(h,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,h=l.sigBytes,x=[],y=0;y<h;y+=2){var w=s(c[y>>>2]>>>16-y%4*8&65535);x.push(String.fromCharCode(w))}return x.join("")},parse:function(l){for(var c=l.length,h=[],x=0;x<c;x++)h[x>>>1]|=s(l.charCodeAt(x)<<16-x%2*16);return i.create(h,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(qc)),qc.exports}var Vc={exports:{}},Hc;function Kn(){return Hc||(Hc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,h=l.sigBytes,x=this._map;l.clamp();for(var y=[],w=0;w<h;w+=3)for(var I=c[w>>>2]>>>24-w%4*8&255,N=c[w+1>>>2]>>>24-(w+1)%4*8&255,k=c[w+2>>>2]>>>24-(w+2)%4*8&255,S=I<<16|N<<8|k,E=0;E<4&&w+E*.75<h;E++)y.push(x.charAt(S>>>6*(3-E)&63));var A=x.charAt(64);if(A)for(;y.length%4;)y.push(A);return y.join("")},parse:function(l){var c=l.length,h=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var y=0;y<h.length;y++)x[h.charCodeAt(y)]=y}var w=h.charAt(64);if(w){var I=l.indexOf(w);I!==-1&&(c=I)}return s(l,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,h){for(var x=[],y=0,w=0;w<c;w++)if(w%4){var I=h[l.charCodeAt(w-1)]<<w%4*2,N=h[l.charCodeAt(w)]>>>6-w%4*2,k=I|N;x[y>>>2]|=k<<24-y%4*8,y++}return i.create(x,y)}}(),n.enc.Base64})}(Vc)),Vc.exports}var Wc={exports:{}},$c;function w1(){return $c||($c=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64url={stringify:function(l,c=!0){var h=l.words,x=l.sigBytes,y=c?this._safe_map:this._map;l.clamp();for(var w=[],I=0;I<x;I+=3)for(var N=h[I>>>2]>>>24-I%4*8&255,k=h[I+1>>>2]>>>24-(I+1)%4*8&255,S=h[I+2>>>2]>>>24-(I+2)%4*8&255,E=N<<16|k<<8|S,A=0;A<4&&I+A*.75<x;A++)w.push(y.charAt(E>>>6*(3-A)&63));var D=y.charAt(64);if(D)for(;w.length%4;)w.push(D);return w.join("")},parse:function(l,c=!0){var h=l.length,x=c?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var w=0;w<x.length;w++)y[x.charCodeAt(w)]=w}var I=x.charAt(64);if(I){var N=l.indexOf(I);N!==-1&&(h=N)}return s(l,h,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,h){for(var x=[],y=0,w=0;w<c;w++)if(w%4){var I=h[l.charCodeAt(w-1)]<<w%4*2,N=h[l.charCodeAt(w)]>>>6-w%4*2,k=I|N;x[y>>>2]|=k<<24-y%4*8,y++}return i.create(x,y)}}(),n.enc.Base64url})}(Wc)),Wc.exports}var Gc={exports:{}},Yc;function Jn(){return Yc||(Yc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[];(function(){for(var N=0;N<64;N++)c[N]=r.abs(r.sin(N+1))*4294967296|0})();var h=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(N,k){for(var S=0;S<16;S++){var E=k+S,A=N[E];N[E]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var D=this._hash.words,T=N[k+0],P=N[k+1],z=N[k+2],Y=N[k+3],Q=N[k+4],B=N[k+5],W=N[k+6],ne=N[k+7],R=N[k+8],V=N[k+9],G=N[k+10],U=N[k+11],q=N[k+12],Z=N[k+13],se=N[k+14],ie=N[k+15],F=D[0],ee=D[1],re=D[2],K=D[3];F=x(F,ee,re,K,T,7,c[0]),K=x(K,F,ee,re,P,12,c[1]),re=x(re,K,F,ee,z,17,c[2]),ee=x(ee,re,K,F,Y,22,c[3]),F=x(F,ee,re,K,Q,7,c[4]),K=x(K,F,ee,re,B,12,c[5]),re=x(re,K,F,ee,W,17,c[6]),ee=x(ee,re,K,F,ne,22,c[7]),F=x(F,ee,re,K,R,7,c[8]),K=x(K,F,ee,re,V,12,c[9]),re=x(re,K,F,ee,G,17,c[10]),ee=x(ee,re,K,F,U,22,c[11]),F=x(F,ee,re,K,q,7,c[12]),K=x(K,F,ee,re,Z,12,c[13]),re=x(re,K,F,ee,se,17,c[14]),ee=x(ee,re,K,F,ie,22,c[15]),F=y(F,ee,re,K,P,5,c[16]),K=y(K,F,ee,re,W,9,c[17]),re=y(re,K,F,ee,U,14,c[18]),ee=y(ee,re,K,F,T,20,c[19]),F=y(F,ee,re,K,B,5,c[20]),K=y(K,F,ee,re,G,9,c[21]),re=y(re,K,F,ee,ie,14,c[22]),ee=y(ee,re,K,F,Q,20,c[23]),F=y(F,ee,re,K,V,5,c[24]),K=y(K,F,ee,re,se,9,c[25]),re=y(re,K,F,ee,Y,14,c[26]),ee=y(ee,re,K,F,R,20,c[27]),F=y(F,ee,re,K,Z,5,c[28]),K=y(K,F,ee,re,z,9,c[29]),re=y(re,K,F,ee,ne,14,c[30]),ee=y(ee,re,K,F,q,20,c[31]),F=w(F,ee,re,K,B,4,c[32]),K=w(K,F,ee,re,R,11,c[33]),re=w(re,K,F,ee,U,16,c[34]),ee=w(ee,re,K,F,se,23,c[35]),F=w(F,ee,re,K,P,4,c[36]),K=w(K,F,ee,re,Q,11,c[37]),re=w(re,K,F,ee,ne,16,c[38]),ee=w(ee,re,K,F,G,23,c[39]),F=w(F,ee,re,K,Z,4,c[40]),K=w(K,F,ee,re,T,11,c[41]),re=w(re,K,F,ee,Y,16,c[42]),ee=w(ee,re,K,F,W,23,c[43]),F=w(F,ee,re,K,V,4,c[44]),K=w(K,F,ee,re,q,11,c[45]),re=w(re,K,F,ee,ie,16,c[46]),ee=w(ee,re,K,F,z,23,c[47]),F=I(F,ee,re,K,T,6,c[48]),K=I(K,F,ee,re,ne,10,c[49]),re=I(re,K,F,ee,se,15,c[50]),ee=I(ee,re,K,F,B,21,c[51]),F=I(F,ee,re,K,q,6,c[52]),K=I(K,F,ee,re,Y,10,c[53]),re=I(re,K,F,ee,G,15,c[54]),ee=I(ee,re,K,F,P,21,c[55]),F=I(F,ee,re,K,R,6,c[56]),K=I(K,F,ee,re,ie,10,c[57]),re=I(re,K,F,ee,W,15,c[58]),ee=I(ee,re,K,F,Z,21,c[59]),F=I(F,ee,re,K,Q,6,c[60]),K=I(K,F,ee,re,U,10,c[61]),re=I(re,K,F,ee,z,15,c[62]),ee=I(ee,re,K,F,V,21,c[63]),D[0]=D[0]+F|0,D[1]=D[1]+ee|0,D[2]=D[2]+re|0,D[3]=D[3]+K|0},_doFinalize:function(){var N=this._data,k=N.words,S=this._nDataBytes*8,E=N.sigBytes*8;k[E>>>5]|=128<<24-E%32;var A=r.floor(S/4294967296),D=S;k[(E+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,k[(E+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,N.sigBytes=(k.length+1)*4,this._process();for(var T=this._hash,P=T.words,z=0;z<4;z++){var Y=P[z];P[z]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return T},clone:function(){var N=s.clone.call(this);return N._hash=this._hash.clone(),N}});function x(N,k,S,E,A,D,T){var P=N+(k&S|~k&E)+A+T;return(P<<D|P>>>32-D)+k}function y(N,k,S,E,A,D,T){var P=N+(k&E|S&~E)+A+T;return(P<<D|P>>>32-D)+k}function w(N,k,S,E,A,D,T){var P=N+(k^S^E)+A+T;return(P<<D|P>>>32-D)+k}function I(N,k,S,E,A,D,T){var P=N+(S^(k|~E))+A+T;return(P<<D|P>>>32-D)+k}a.MD5=s._createHelper(h),a.HmacMD5=s._createHmacHelper(h)}(Math),n.MD5})}(Gc)),Gc.exports}var Zc={exports:{}},Kc;function Vi(){return Kc||(Kc=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,x){for(var y=this._hash.words,w=y[0],I=y[1],N=y[2],k=y[3],S=y[4],E=0;E<80;E++){if(E<16)l[E]=h[x+E]|0;else{var A=l[E-3]^l[E-8]^l[E-14]^l[E-16];l[E]=A<<1|A>>>31}var D=(w<<5|w>>>27)+S+l[E];E<20?D+=(I&N|~I&k)+1518500249:E<40?D+=(I^N^k)+1859775393:E<60?D+=(I&N|I&k|N&k)-1894007588:D+=(I^N^k)-899497514,S=k,k=N,N=I<<30|I>>>2,I=w,w=D}y[0]=y[0]+w|0,y[1]=y[1]+I|0,y[2]=y[2]+N|0,y[3]=y[3]+k|0,y[4]=y[4]+S|0},_doFinalize:function(){var h=this._data,x=h.words,y=this._nDataBytes*8,w=h.sigBytes*8;return x[w>>>5]|=128<<24-w%32,x[(w+64>>>9<<4)+14]=Math.floor(y/4294967296),x[(w+64>>>9<<4)+15]=y,h.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),n.SHA1})}(Zc)),Zc.exports}var Jc={exports:{}},Xc;function _1(){return Xc||(Xc=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Hr.exports)})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=s._createHelper(l),r.HmacSHA224=s._createHmacHelper(l)}(),n.SHA224})}(Jc)),Jc.exports}var Qc={exports:{}},eu;function tu(){return eu||(eu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ma())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.Hasher,o=r.x64,s=o.Word,l=o.WordArray,c=r.algo;function h(){return s.create.apply(s,arguments)}var x=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],y=[];(function(){for(var I=0;I<80;I++)y[I]=h()})();var w=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(I,N){for(var k=this._hash.words,S=k[0],E=k[1],A=k[2],D=k[3],T=k[4],P=k[5],z=k[6],Y=k[7],Q=S.high,B=S.low,W=E.high,ne=E.low,R=A.high,V=A.low,G=D.high,U=D.low,q=T.high,Z=T.low,se=P.high,ie=P.low,F=z.high,ee=z.low,re=Y.high,K=Y.low,_e=Q,Ie=B,Me=W,be=ne,qe=R,Ce=V,$=G,ae=U,_=q,b=Z,L=se,te=ie,le=F,de=ee,M=re,u=K,v=0;v<80;v++){var d,p,f=y[v];if(v<16)p=f.high=I[N+v*2]|0,d=f.low=I[N+v*2+1]|0;else{var g=y[v-15],C=g.high,O=g.low,j=(C>>>1|O<<31)^(C>>>8|O<<24)^C>>>7,H=(O>>>1|C<<31)^(O>>>8|C<<24)^(O>>>7|C<<25),J=y[v-2],X=J.high,oe=J.low,me=(X>>>19|oe<<13)^(X<<3|oe>>>29)^X>>>6,pe=(oe>>>19|X<<13)^(oe<<3|X>>>29)^(oe>>>6|X<<26),ye=y[v-7],De=ye.high,xe=ye.low,Ee=y[v-16],ce=Ee.high,Ue=Ee.low;d=H+xe,p=j+De+(d>>>0<H>>>0?1:0),d=d+pe,p=p+me+(d>>>0<pe>>>0?1:0),d=d+Ue,p=p+ce+(d>>>0<Ue>>>0?1:0),f.high=p,f.low=d}var we=_&L^~_&le,Ye=b&te^~b&de,Qe=_e&Me^_e&qe^Me&qe,pt=Ie&be^Ie&Ce^be&Ce,ge=(_e>>>28|Ie<<4)^(_e<<30|Ie>>>2)^(_e<<25|Ie>>>7),rt=(Ie>>>28|_e<<4)^(Ie<<30|_e>>>2)^(Ie<<25|_e>>>7),Gt=(_>>>14|b<<18)^(_>>>18|b<<14)^(_<<23|b>>>9),At=(b>>>14|_<<18)^(b>>>18|_<<14)^(b<<23|_>>>9),Tt=x[v],kt=Tt.high,gt=Tt.low,ut=u+At,dt=M+Gt+(ut>>>0<u>>>0?1:0),ut=ut+Ye,dt=dt+we+(ut>>>0<Ye>>>0?1:0),ut=ut+gt,dt=dt+kt+(ut>>>0<gt>>>0?1:0),ut=ut+d,dt=dt+p+(ut>>>0<d>>>0?1:0),vn=rt+pt,Xn=ge+Qe+(vn>>>0<rt>>>0?1:0);M=le,u=de,le=L,de=te,L=_,te=b,b=ae+ut|0,_=$+dt+(b>>>0<ae>>>0?1:0)|0,$=qe,ae=Ce,qe=Me,Ce=be,Me=_e,be=Ie,Ie=ut+vn|0,_e=dt+Xn+(Ie>>>0<ut>>>0?1:0)|0}B=S.low=B+Ie,S.high=Q+_e+(B>>>0<Ie>>>0?1:0),ne=E.low=ne+be,E.high=W+Me+(ne>>>0<be>>>0?1:0),V=A.low=V+Ce,A.high=R+qe+(V>>>0<Ce>>>0?1:0),U=D.low=U+ae,D.high=G+$+(U>>>0<ae>>>0?1:0),Z=T.low=Z+b,T.high=q+_+(Z>>>0<b>>>0?1:0),ie=P.low=ie+te,P.high=se+L+(ie>>>0<te>>>0?1:0),ee=z.low=ee+de,z.high=F+le+(ee>>>0<de>>>0?1:0),K=Y.low=K+u,Y.high=re+M+(K>>>0<u>>>0?1:0)},_doFinalize:function(){var I=this._data,N=I.words,k=this._nDataBytes*8,S=I.sigBytes*8;N[S>>>5]|=128<<24-S%32,N[(S+128>>>10<<5)+30]=Math.floor(k/4294967296),N[(S+128>>>10<<5)+31]=k,I.sigBytes=N.length*4,this._process();var E=this._hash.toX32();return E},clone:function(){var I=i.clone.call(this);return I._hash=this._hash.clone(),I},blockSize:1024/32});r.SHA512=i._createHelper(w),r.HmacSHA512=i._createHmacHelper(w)}(),n.SHA512})}(Qc)),Qc.exports}var nu={exports:{}},ru;function I1(){return ru||(ru=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ma(),tu())})(Le,function(n){return function(){var r=n,a=r.x64,i=a.Word,o=a.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var h=l._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(nu)),nu.exports}var au={exports:{}},iu;function S1(){return iu||(iu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ma())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,c=l.Word,h=a.algo,x=[],y=[],w=[];(function(){for(var k=1,S=0,E=0;E<24;E++){x[k+5*S]=(E+1)*(E+2)/2%64;var A=S%5,D=(2*k+3*S)%5;k=A,S=D}for(var k=0;k<5;k++)for(var S=0;S<5;S++)y[k+5*S]=S+(2*k+3*S)%5*5;for(var T=1,P=0;P<24;P++){for(var z=0,Y=0,Q=0;Q<7;Q++){if(T&1){var B=(1<<Q)-1;B<32?Y^=1<<B:z^=1<<B-32}T&128?T=T<<1^113:T<<=1}w[P]=c.create(z,Y)}})();var I=[];(function(){for(var k=0;k<25;k++)I[k]=c.create()})();var N=h.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var k=this._state=[],S=0;S<25;S++)k[S]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(k,S){for(var E=this._state,A=this.blockSize/2,D=0;D<A;D++){var T=k[S+2*D],P=k[S+2*D+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var z=E[D];z.high^=P,z.low^=T}for(var Y=0;Y<24;Y++){for(var Q=0;Q<5;Q++){for(var B=0,W=0,ne=0;ne<5;ne++){var z=E[Q+5*ne];B^=z.high,W^=z.low}var R=I[Q];R.high=B,R.low=W}for(var Q=0;Q<5;Q++)for(var V=I[(Q+4)%5],G=I[(Q+1)%5],U=G.high,q=G.low,B=V.high^(U<<1|q>>>31),W=V.low^(q<<1|U>>>31),ne=0;ne<5;ne++){var z=E[Q+5*ne];z.high^=B,z.low^=W}for(var Z=1;Z<25;Z++){var B,W,z=E[Z],se=z.high,ie=z.low,F=x[Z];F<32?(B=se<<F|ie>>>32-F,W=ie<<F|se>>>32-F):(B=ie<<F-32|se>>>64-F,W=se<<F-32|ie>>>64-F);var ee=I[y[Z]];ee.high=B,ee.low=W}var re=I[0],K=E[0];re.high=K.high,re.low=K.low;for(var Q=0;Q<5;Q++)for(var ne=0;ne<5;ne++){var Z=Q+5*ne,z=E[Z],_e=I[Z],Ie=I[(Q+1)%5+5*ne],Me=I[(Q+2)%5+5*ne];z.high=_e.high^~Ie.high&Me.high,z.low=_e.low^~Ie.low&Me.low}var z=E[0],be=w[Y];z.high^=be.high,z.low^=be.low}},_doFinalize:function(){var k=this._data,S=k.words;this._nDataBytes*8;var E=k.sigBytes*8,A=this.blockSize*32;S[E>>>5]|=1<<24-E%32,S[(r.ceil((E+1)/A)*A>>>5)-1]|=128,k.sigBytes=S.length*4,this._process();for(var D=this._state,T=this.cfg.outputLength/8,P=T/8,z=[],Y=0;Y<P;Y++){var Q=D[Y],B=Q.high,W=Q.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360,z.push(W),z.push(B)}return new o.init(z,T)},clone:function(){for(var k=s.clone.call(this),S=k._state=this._state.slice(0),E=0;E<25;E++)S[E]=S[E].clone();return k}});a.SHA3=s._createHelper(N),a.HmacSHA3=s._createHmacHelper(N)}(Math),n.SHA3})}(au)),au.exports}var ou={exports:{}},su;function D1(){return su||(su=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){/** @preserve
40
+ ***************************************************************************** */var Lf;(function(t){(function(e){var n=typeof Ve=="object"?Ve:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=a(t);typeof n.Reflect>"u"?n.Reflect=t:r=a(n.Reflect,r),e(r);function a(i,o){return function(l,c){typeof i[l]!="function"&&Object.defineProperty(i,l,{configurable:!0,writable:!0,value:c}),o&&o(l,c)}}})(function(e){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",l={__proto__:[]}instanceof Array,c=!o&&!l,d={create:o?function(){return D(Object.create(null))}:l?function(){return D({__proto__:null})}:function(){return D({})},has:c?function(I,C){return n.call(I,C)}:function(I,C){return C in I},get:c?function(I,C){return n.call(I,C)?I[C]:void 0}:function(I,C){return I[C]}},h=Object.getPrototypeOf(Function),m=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",f=!m&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:v(),p=!m&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:O(),E=!m&&typeof WeakMap=="function"?WeakMap:y(),k=new E;function T(I,C,P,H){if($(P)){if(!Ae(I))throw new TypeError;if(!ue(C))throw new TypeError;return R(I,C)}else{if(!Ae(I))throw new TypeError;if(!W(C))throw new TypeError;if(!W(H)&&!$(H)&&!Q(H))throw new TypeError;return Q(H)&&(H=void 0),P=Ne(P),z(I,C,P,H)}}e("decorate",T);function b(I,C){function P(H,ee){if(!W(H))throw new TypeError;if(!$(ee)&&!_(ee))throw new TypeError;G(I,C,H,ee)}return P}e("metadata",b);function w(I,C,P,H){if(!W(P))throw new TypeError;return $(H)||(H=Ne(H)),G(I,C,P,H)}e("defineMetadata",w);function A(I,C,P){if(!W(C))throw new TypeError;return $(P)||(P=Ne(P)),B(I,C,P)}e("hasMetadata",A);function S(I,C,P){if(!W(C))throw new TypeError;return $(P)||(P=Ne(P)),Z(I,C,P)}e("hasOwnMetadata",S);function N(I,C,P){if(!W(C))throw new TypeError;return $(P)||(P=Ne(P)),Y(I,C,P)}e("getMetadata",N);function L(I,C,P){if(!W(C))throw new TypeError;return $(P)||(P=Ne(P)),q(I,C,P)}e("getOwnMetadata",L);function M(I,C){if(!W(I))throw new TypeError;return $(C)||(C=Ne(C)),ne(I,C)}e("getMetadataKeys",M);function F(I,C){if(!W(I))throw new TypeError;return $(C)||(C=Ne(C)),oe(I,C)}e("getOwnMetadataKeys",F);function V(I,C,P){if(!W(C))throw new TypeError;$(P)||(P=Ne(P));var H=j(C,P,!1);if($(H)||!H.delete(I))return!1;if(H.size>0)return!0;var ee=k.get(C);return ee.delete(P),ee.size>0||k.delete(C),!0}e("deleteMetadata",V);function R(I,C){for(var P=I.length-1;P>=0;--P){var H=I[P],ee=H(C);if(!$(ee)&&!Q(ee)){if(!ue(ee))throw new TypeError;C=ee}}return C}function z(I,C,P,H){for(var ee=I.length-1;ee>=0;--ee){var re=I[ee],se=re(C,P,H);if(!$(se)&&!Q(se)){if(!W(se))throw new TypeError;H=se}}return H}function j(I,C,P){var H=k.get(I);if($(H)){if(!P)return;H=new f,k.set(I,H)}var ee=H.get(C);if($(ee)){if(!P)return;ee=new f,H.set(C,ee)}return ee}function B(I,C,P){var H=Z(I,C,P);if(H)return!0;var ee=K(C);return Q(ee)?!1:B(I,ee,P)}function Z(I,C,P){var H=j(C,P,!1);return $(H)?!1:Te(H.has(I))}function Y(I,C,P){var H=Z(I,C,P);if(H)return q(I,C,P);var ee=K(C);if(!Q(ee))return Y(I,ee,P)}function q(I,C,P){var H=j(C,P,!1);if(!$(H))return H.get(I)}function G(I,C,P,H){var ee=j(P,H,!0);ee.set(I,C)}function ne(I,C){var P=oe(I,C),H=K(I);if(H===null)return P;var ee=ne(H,C);if(ee.length<=0)return P;if(P.length<=0)return ee;for(var re=new p,se=[],le=0,he=P;le<he.length;le++){var ke=he[le],Ce=re.has(ke);Ce||(re.add(ke),se.push(ke))}for(var Oe=0,ie=ee;Oe<ie.length;Oe++){var ke=ie[Oe],Ce=re.has(ke);Ce||(re.add(ke),se.push(ke))}return se}function oe(I,C){var P=[],H=j(I,C,!1);if($(H))return P;for(var ee=H.keys(),re=x(ee),se=0;;){var le=ce(re);if(!le)return P.length=se,P;var he=X(le);try{P[se]=he}catch(ke){try{me(re)}finally{throw ke}}se++}}function J(I){if(I===null)return 1;switch(typeof I){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return I===null?1:6;default:return 6}}function $(I){return I===void 0}function Q(I){return I===null}function ae(I){return typeof I=="symbol"}function W(I){return typeof I=="object"?I!==null:typeof I=="function"}function Ee(I,C){switch(J(I)){case 0:return I;case 1:return I;case 2:return I;case 3:return I;case 4:return I;case 5:return I}var P=C===3?"string":C===5?"number":"default",H=g(I,a);if(H!==void 0){var ee=H.call(I,P);if(W(ee))throw new TypeError;return ee}return _e(I,P==="default"?"number":P)}function _e(I,C){if(C==="string"){var P=I.toString;if(te(P)){var H=P.call(I);if(!W(H))return H}var ee=I.valueOf;if(te(ee)){var H=ee.call(I);if(!W(H))return H}}else{var ee=I.valueOf;if(te(ee)){var H=ee.call(I);if(!W(H))return H}var re=I.toString;if(te(re)){var H=re.call(I);if(!W(H))return H}}throw new TypeError}function Te(I){return!!I}function De(I){return""+I}function Ne(I){var C=Ee(I,3);return ae(C)?C:De(C)}function Ae(I){return Array.isArray?Array.isArray(I):I instanceof Object?I instanceof Array:Object.prototype.toString.call(I)==="[object Array]"}function te(I){return typeof I=="function"}function ue(I){return typeof I=="function"}function _(I){switch(J(I)){case 3:return!0;case 4:return!0;default:return!1}}function g(I,C){var P=I[C];if(P!=null){if(!te(P))throw new TypeError;return P}}function x(I){var C=g(I,i);if(!te(C))throw new TypeError;var P=C.call(I);if(!W(P))throw new TypeError;return P}function X(I){return I.value}function ce(I){var C=I.next();return C.done?!1:C}function me(I){var C=I.return;C&&C.call(I)}function K(I){var C=Object.getPrototypeOf(I);if(typeof I!="function"||I===h||C!==h)return C;var P=I.prototype,H=P&&Object.getPrototypeOf(P);if(H==null||H===Object.prototype)return C;var ee=H.constructor;return typeof ee!="function"||ee===I?C:ee}function v(){var I={},C=[],P=function(){function se(le,he,ke){this._index=0,this._keys=le,this._values=he,this._selector=ke}return se.prototype["@@iterator"]=function(){return this},se.prototype[i]=function(){return this},se.prototype.next=function(){var le=this._index;if(le>=0&&le<this._keys.length){var he=this._selector(this._keys[le],this._values[le]);return le+1>=this._keys.length?(this._index=-1,this._keys=C,this._values=C):this._index++,{value:he,done:!1}}return{value:void 0,done:!0}},se.prototype.throw=function(le){throw this._index>=0&&(this._index=-1,this._keys=C,this._values=C),le},se.prototype.return=function(le){return this._index>=0&&(this._index=-1,this._keys=C,this._values=C),{value:le,done:!0}},se}();return function(){function se(){this._keys=[],this._values=[],this._cacheKey=I,this._cacheIndex=-2}return Object.defineProperty(se.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),se.prototype.has=function(le){return this._find(le,!1)>=0},se.prototype.get=function(le){var he=this._find(le,!1);return he>=0?this._values[he]:void 0},se.prototype.set=function(le,he){var ke=this._find(le,!0);return this._values[ke]=he,this},se.prototype.delete=function(le){var he=this._find(le,!1);if(he>=0){for(var ke=this._keys.length,Ce=he+1;Ce<ke;Ce++)this._keys[Ce-1]=this._keys[Ce],this._values[Ce-1]=this._values[Ce];return this._keys.length--,this._values.length--,le===this._cacheKey&&(this._cacheKey=I,this._cacheIndex=-2),!0}return!1},se.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=I,this._cacheIndex=-2},se.prototype.keys=function(){return new P(this._keys,this._values,H)},se.prototype.values=function(){return new P(this._keys,this._values,ee)},se.prototype.entries=function(){return new P(this._keys,this._values,re)},se.prototype["@@iterator"]=function(){return this.entries()},se.prototype[i]=function(){return this.entries()},se.prototype._find=function(le,he){return this._cacheKey!==le&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=le)),this._cacheIndex<0&&he&&(this._cacheIndex=this._keys.length,this._keys.push(le),this._values.push(void 0)),this._cacheIndex},se}();function H(se,le){return se}function ee(se,le){return le}function re(se,le){return[se,le]}}function O(){return function(){function I(){this._map=new f}return Object.defineProperty(I.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),I.prototype.has=function(C){return this._map.has(C)},I.prototype.add=function(C){return this._map.set(C,C),this},I.prototype.delete=function(C){return this._map.delete(C)},I.prototype.clear=function(){this._map.clear()},I.prototype.keys=function(){return this._map.keys()},I.prototype.values=function(){return this._map.values()},I.prototype.entries=function(){return this._map.entries()},I.prototype["@@iterator"]=function(){return this.keys()},I.prototype[i]=function(){return this.keys()},I}()}function y(){var I=16,C=d.create(),P=H();return function(){function he(){this._key=H()}return he.prototype.has=function(ke){var Ce=ee(ke,!1);return Ce!==void 0?d.has(Ce,this._key):!1},he.prototype.get=function(ke){var Ce=ee(ke,!1);return Ce!==void 0?d.get(Ce,this._key):void 0},he.prototype.set=function(ke,Ce){var Oe=ee(ke,!0);return Oe[this._key]=Ce,this},he.prototype.delete=function(ke){var Ce=ee(ke,!1);return Ce!==void 0?delete Ce[this._key]:!1},he.prototype.clear=function(){this._key=H()},he}();function H(){var he;do he="@@WeakMap@@"+le();while(d.has(C,he));return C[he]=!0,he}function ee(he,ke){if(!n.call(he,P)){if(!ke)return;Object.defineProperty(he,P,{value:d.create()})}return he[P]}function re(he,ke){for(var Ce=0;Ce<ke;++Ce)he[Ce]=Math.random()*255|0;return he}function se(he){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(he)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(he)):re(new Uint8Array(he),he):re(new Array(he),he)}function le(){var he=se(I);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var ke="",Ce=0;Ce<I;++Ce){var Oe=he[Ce];(Ce===4||Ce===6||Ce===8)&&(ke+="-"),Oe<16&&(ke+="0"),ke+=Oe.toString(16).toLowerCase()}return ke}}function D(I){return I.__=void 0,delete I.__,I}})})(Lf||(Lf={}));var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.Channel=void 0;var k_=function(){function t(){this.subscriptions=new Map}return t.prototype.publish=function(e,n){var r=this,a=this.subscriptions.get(e);a&&a.forEach(function(i){i(n,e,r,i)})},t.prototype.subscribe=function(e,n){var r=this.subscriptions.get(e);r||(r=[],this.subscriptions.set(e,r)),r.push(n)},t.prototype.unsubscribe=function(e,n){var r=this.subscriptions.get(e);r&&(r=r.filter(function(a){return a!==n}),r.length?this.subscriptions.set(e,r):this.subscriptions.delete(e))},t.prototype.unsubscribeAll=function(){this.subscriptions.clear()},t}();Ci.Channel=k_;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.PubSub=void 0;var I_=Ci;Ni.PubSub=new I_.Channel;var jo={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.SUBSCRIPTIONS_METADATA_KEY=vr.CHANNEL_METADATA_KEY=void 0,vr.CHANNEL_METADATA_KEY=Symbol("pubsub:channel"),vr.SUBSCRIPTIONS_METADATA_KEY=Symbol("pubsub:subscriptions"),Object.defineProperty(jo,"__esModule",{value:!0}),jo.Subscribe=void 0;var Rf=vr;function C_(t){return function(e,n,r){var a=Reflect.getMetadata(Rf.SUBSCRIPTIONS_METADATA_KEY,e)||new Set;a.add({message:t,handler:r.value}),Reflect.defineMetadata(Rf.SUBSCRIPTIONS_METADATA_KEY,a,e)}}jo.Subscribe=C_;var Yo={},N_=Ve&&Ve.__spreadArray||function(t,e){for(var n=0,r=e.length,a=t.length;n<r;n++,a++)t[a]=e[n];return t};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.Subscriber=void 0;var cc=vr,T_=Ni;function A_(t){var e=(t==null?void 0:t.channel)||T_.PubSub;return function(n){Reflect.defineMetadata(cc.CHANNEL_METADATA_KEY,e,n.prototype);var r=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=n,l=new(o.bind.apply(o,N_([void 0],a))),c=Reflect.getMetadata(cc.SUBSCRIPTIONS_METADATA_KEY,n.prototype);if(c){var d=[];Reflect.defineMetadata(cc.SUBSCRIPTIONS_METADATA_KEY,d,l),c.forEach(function(h){var m=h.handler.bind(l);d.push({message:h.message,handler:m}),e.subscribe(h.message,m)})}return l};return r.prototype=n.prototype,t!=null&&t.createInstance&&new r(t.constructorParameters),r}}Yo.Subscriber=A_;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.Unsubscribe=void 0;var Mf=vr;function O_(){return function(t,e,n){var r=n.value;return n.value=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=Reflect.getMetadata(Mf.CHANNEL_METADATA_KEY,t),l=Reflect.getMetadata(Mf.SUBSCRIPTIONS_METADATA_KEY,this);return o&&l&&l.forEach(function(c){o.unsubscribe(c.message,c.handler)}),r(a)},n}}Wo.Unsubscribe=O_,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Unsubscribe=t.Subscriber=t.Subscribe=t.PubSub=t.Channel=void 0;var e=Ci;Object.defineProperty(t,"Channel",{enumerable:!0,get:function(){return e.Channel}});var n=Ni;Object.defineProperty(t,"PubSub",{enumerable:!0,get:function(){return n.PubSub}});var r=jo;Object.defineProperty(t,"Subscribe",{enumerable:!0,get:function(){return r.Subscribe}});var a=Yo;Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return a.Subscriber}});var i=Wo;Object.defineProperty(t,"Unsubscribe",{enumerable:!0,get:function(){return i.Unsubscribe}})}(Re);const x_=36e5;var He=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))(He||{}),pe=(t=>(t[t.REMOTE_THEN_LOCAL=0]="REMOTE_THEN_LOCAL",t[t.LOCAL_THEN_REMOTE=1]="LOCAL_THEN_REMOTE",t[t.LOCAL_ONLY=2]="LOCAL_ONLY",t[t.REMOTE_ONLY=3]="REMOTE_ONLY",t))(pe||{});const wr=new Re.Channel,tn=new Re.Channel,ht=new Re.Channel,br=new Re.Channel;new Re.Channel;const Pf=new Re.Channel,Ti=new Re.Channel;new Re.Channel;const uc=new Re.Channel,$f=new Re.Channel,Go=class{constructor(t,e){u(this,"repositoryName"),u(this,"logger"),this.logger=e,this.repositoryName=t}static cleanLastRemoteList(){Go.lastRemoteList={}}async list(t,e,n){var r;let a;switch(+e){case 0:return this._listRemoteFirstThenLocal(t,n);case 1:return this._isExpired(Go.lastRemoteList[this.repositoryName])?((r=this.logger)==null||r.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._listRemoteFirstThenLocal(t,n)):this._listLocalFirstThenRemote(t,n);case 2:return a=await this.localList(n),{local:!0,results:a};case 3:return a=await this.remoteList(t,n),await this.localSaveList(n,a),{local:!1,results:a}}throw new Error("Not implemented")}async update(t,e,n,r){switch(+e){case 0:return this._updateRemoteFirstThenLocal(t,n,r);case 3:return await this.remoteUpdate(t,n,r)}throw new Error("Not implemented")}async create(t,e,n,r){switch(+e){case 0:return this._createRemoteFirstThenLocal(t,n,r);case 3:return await this.remoteCreate(t,n,r);case 2:return await this.localBulkSave(n,[r]),r}throw new Error("Not implemented")}async getById(t,e,n){var r,a;let i=!0,o;switch(+e){case 0:const l=await this._getRemoteFirstThenLocal(t,n);o=l.result,i=l.local;break;case 3:i=!1,o=await this.remoteGet(t,n),await this.localSave(n,o);break;case 2:o=await this.localGet(n);break;case 1:try{o=await this.localGet(n)}catch(c){(r=this.logger)==null||r.debug("js-calendar-api","LocalThenRemote localGet error",c)}return!o||!o.lastRemote||this._isExpired(o.lastRemote)?((a=this.logger)==null||a.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._getRemoteFirstThenLocal(t,n)):this._getLocalFirstThenRemote(t,n);default:throw new Error("Not implemented")}return{local:i,result:o}}async deleteById(t,e){await this.remoteDelete(t,e),await this.localDelete(e)}async cascadeDeleteList(t,e){const n=await this.localList(t);if(n){const r=n.filter(e);await this.localBulkDelete(r)}}async cascadeDeleteItem(t){await this.localDelete(t)}async cascadeDelete(t,e,n=!0){n&&e?await this.cascadeDeleteList(t,e):n||await this.cascadeDeleteItem(t)}async _getLocalFirstThenRemote(t,e){var n,r,a,i=!0;try{a=await this.localGet(e)}catch(o){(n=this.logger)==null||n.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(!a){i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`Get ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{result:a,local:i}}async _getRemoteFirstThenLocal(t,e){var n,r;let a,i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){i=!0,(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localGet(e),a===void 0)throw o}catch(l){throw(r=this.logger)==null||r.error("js-calendar-api",`Get ${this.repositoryName} remote then local failed: `,l),this.getError(l)}}return{result:a,local:i}}async _listRemoteFirstThenLocal(t,e){var n,r;let a=[],i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){i=!0,(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localList(e),a===void 0||a.length===0)throw o}catch(l){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,l),this.getError(l)}}return{results:a,local:i}}async _listLocalFirstThenRemote(t,e){var n,r;let a=[],i=!0;try{a=await this.localList(e)}catch(o){(n=this.logger)==null||n.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(a===void 0||a.length===0){i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{results:a,local:i}}async _createRemoteFirstThenLocal(t,e,n){var r;let a;try{a=await this.remoteCreate(t,e,n),await this.localSave(e,a)}catch(i){throw(r=this.logger)==null||r.error("js-calendar-api",`Create ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async _updateRemoteFirstThenLocal(t,e,n){var r;let a;try{a=await this.remoteUpdate(t,e,n),await this.localSave(e,a)}catch(i){throw(r=this.logger)==null||r.error("js-calendar-api",`Update ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async localSaveList(t,e){await this.localBulkSave(t,e),Go.lastRemoteList[this.repositoryName]=new Date().getTime()}async localSave(t,e){await this.localBulkSave(t,[e])}_isExpired(t){return!(t&&t+x_>new Date().getTime())}getError(t){let e=ye.UNKOWN;return t instanceof Ho&&(e=S_(this.repositoryName,t)),new we(e,t)}};let Fe=Go;u(Fe,"lastRemoteList",{});class L_{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllNotificationStatus(e){await this.indexedDb.putBulkValue(qr,e)}async saveNotificationStatus(e){await this.indexedDb.putValue(qr,e)}async getById(e){return this.indexedDb.getValue(qr,e)}async getAll(){return await this.indexedDb.getAllValue(qr)||[]}async clear(){const e=await this.getAll();for(const n of e)lc.isExpired(n)&&await this.indexedDb.deleteValue(qr,n.id)}}class Bf extends Fe{constructor(e,n){super("notificationStatus",n),u(this,"notificationStatusDb"),this.notificationStatusDb=new L_(e)}async refreshesNotificationStatus(e,n,r){const a=await super.getById(e,pe.LOCAL_ONLY,{userId:n});if(a&&a.result&&a.result.lastDate.getTime()>r.getTime())return a.result;const i=new lc;return i.id=n,i.lastDate=r,super.create(e,pe.LOCAL_ONLY,{},i)}async getNotificationStatus(e,n){return super.getById(e,pe.LOCAL_ONLY,{userId:n})}async localClear(){await this.notificationStatusDb.clear()}async localGet(e){if(!e.userId)throw Error("Invalid state:"+JSON.stringify(e));return this.notificationStatusDb.getById(e.userId)}async localBulkSave(e,n){await this.notificationStatusDb.saveAllNotificationStatus(n)}async localList(e){throw new Error("Method not implemented.")}localBulkDelete(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}}class Xn{constructor(){u(this,"id"),u(this,"company"),u(this,"name"),u(this,"quantity"),u(this,"availability"),u(this,"services"),u(this,"customWorkingHours")}static fromServiceResourceDto(e,n){var r;const a=new Xn;a.name=e.name,a.id=e.id,a.company={id:n},a.quantity=e.quantity,a.availability=e.availability,a.services=e.services;const i=[];return(r=e.customWorkingHours)==null||r.forEach(o=>{i.push(_a.fromSettingsPeriodWorkingDto(o))}),a.customWorkingHours=i,a}static toServiceResourceDto(e){var n;const r=new R_;r.id=e.id,r.name=e.name,r.quantity=e.quantity,r.availability=e.availability,r.services=e.services;const a=[];return(n=e.customWorkingHours)==null||n.forEach(i=>{a.push(_a.toSettingsPeriodWorkingDto(i))}),r.customWorkingHours=a,r}}class R_{constructor(){u(this,"id"),u(this,"name"),u(this,"quantity"),u(this,"availability"),u(this,"services"),u(this,"customWorkingHours")}}class qo{constructor(){u(this,"start"),u(this,"end")}static toDto(e){const n=new M_;return n.start=e.start,n.end=e.end,n}static fromDto(e){const n=new qo;return n.start=e.start,n.end=e.end,n}}class M_{constructor(){u(this,"start"),u(this,"end")}}class Ko{constructor(){u(this,"day"),u(this,"hours")}static toDto(e){const n=new P_;n.day=e.day;const r=[];return e.hours&&e.hours.forEach(a=>r.push(qo.toDto(a))),n.hours=r,n}static fromDto(e){const n=new Ko;n.day=e.day;const r=[];return e.hours&&e.hours.forEach(a=>r.push(qo.fromDto(a))),n.hours=r,n}}class P_{constructor(){u(this,"day"),u(this,"hours")}}class Zo{constructor(){u(this,"index"),u(this,"name"),u(this,"workingHours")}static toDto(e){const n=new $_;n.name=ve(e.name),n.index=e.index;const r=[];return e.workingHours&&e.workingHours.forEach(a=>r.push(Ko.toDto(a))),n.workingHours=r,n}static fromDto(e){const n=new Zo;n.name=Pe(e.name),n.index=e.index;const r=[];return e.workingHours&&e.workingHours.forEach(a=>r.push(Ko.fromDto(a))),n.workingHours=r,n}}class $_{constructor(){u(this,"index"),u(this,"name"),u(this,"workingHours")}}class Qn{constructor(){u(this,"id"),u(this,"name"),u(this,"author"),u(this,"notes"),u(this,"weeks")}static toDto(e){const n=new B_;n.id=e.id,n.name=Pe(e.name),e.notes!==void 0&&(n.notes=Pe(e.notes)),n.author=e.author;const r=[];return e.weeks&&e.weeks.forEach(a=>r.push(Zo.toDto(a))),n.weeks=r,n}static fromDto(e){const n=new Qn;n.id=e.id,n.name=ve(e.name),n.notes=ve(e.notes),n.author=e.author;const r=[];return e.weeks&&e.weeks.forEach(a=>r.push(Zo.fromDto(a))),n.weeks=r,n}}class B_{constructor(){u(this,"id"),u(this,"name"),u(this,"author"),u(this,"notes"),u(this,"weeks")}}class zr{constructor(){u(this,"user"),u(this,"companies")}static fromSchedulingRightsDto(e){let n=new zr;return e.user&&(n.user=e.user),n.companies=[],e.companies.forEach(r=>n.companies.push(Jo.fromCompanySchedulingRightsDto(r))),n}static toSchedulingRightsDto(e){let n=new F_;return e.user&&(n.user=e.user),n.companies=[],e.companies.forEach(r=>n.companies.push(Jo.toCompanySchedulingRightsDto(r))),n}static getUserName(e){var n;let r="";return e.user&&(e.user.firstName&&e.user.firstName.length>0&&(r=e.user.firstName),e.user.lastName&&e.user.lastName.length>0&&(r+=r.length===0?"":" ",r+=e.user.lastName),r.length==0&&(r=(n=e.user.email)!=null?n:"")),r}}class F_{constructor(){u(this,"user"),u(this,"companies")}}class Jo{constructor(){u(this,"company"),u(this,"right")}static fromCompanySchedulingRightsDto(e){const n=new Jo;return n.right=e.right,n.company={id:e.company.id,name:e.company.name},n}static toCompanySchedulingRightsDto(e){const n=new z_;return n.right=e.right,n.company={id:e.company.id,name:e.company.name},n}}class z_{constructor(){u(this,"company"),u(this,"right")}}class Xo{constructor(){u(this,"id"),u(this,"type"),u(this,"appointment"),u(this,"content"),u(this,"date"),u(this,"recipients")}static fromNotificationDto(e){const n=new Xo;return n.id=e.id,n.type=e.type,n.appointment=e.appointment,e.content&&(n.content={content:e.content.content,subject:ve(e.content.subject),contentType:e.content.contentType}),e.date&&(n.date=St(e.date.dateTime,e.date.timeZone)),n}static toNotificationDto(e){const n=new V_;return n.id=e.id,n.type=e.type,n.appointment=e.appointment,n.content=e.content,e.date&&(n.date=Di(e.date)),n}}class V_{constructor(){u(this,"id"),u(this,"type"),u(this,"appointment"),u(this,"content"),u(this,"date"),u(this,"recipients")}}const Ai="calendar",Ff="calendarTeam",zf="calendarTeamDefault",Vr="staff",Oi="staffForms",Ur="service",Hr="serviceResource",ka="contact",Ia="company",er="event",xi="externalEvent",Li="icsEvent",Vf="user",Uf="userDefault",Ri="form",Ca="formBuilder",Qo="privacyPolicy",jr="planning",es="promoteField",Yr="serviceGroup",Wr="staffGroup",ts="rights",U_="schedulingRights",Gr="note",ns="schedulingNotification",Na="notification",qr="notificationStatus",Kr="queue",dc=[{name:Ai,entity:Ea},{name:Ff,entity:Si},{name:zf,entity:Si},{name:Vr,entity:Nn},{name:Ur,entity:Gn},{name:ka,entity:cn},{name:Ia,entity:qn},{name:er,entity:Pt},{name:xi,entity:Pt},{name:Li,entity:Pt},{name:Vf,entity:Fr},{name:Uf,entity:Fr},{name:Ri,entity:Ct},{name:Ca,entity:yr},{name:Qo,entity:Bo},{name:jr,entity:Qn},{name:es,entity:$o},{name:Yr,entity:Kn},{name:Hr,entity:Xn},{name:Wr,entity:Zn},{name:Oi,entity:zo},{name:ts,entity:Vo},{name:U_,entity:zr},{name:Gr,entity:Sa},{name:ns,entity:Xo},{name:Na,entity:Uo},{name:qr,entity:lc},{name:Kr,entity:Jn}];class H_{constructor(e,n){u(this,"database"),u(this,"version"),u(this,"db"),this.database=e,this.version=n}async initDB(){this.db=await j2(this.database,this.version,{upgrade(e){dc.forEach(n=>{var r;if(!e.objectStoreNames.contains(n.name)){let a=e.createObjectStore(n.name,{autoIncrement:!0,keyPath:"id"});(r=n.indexes)==null||r.forEach(i=>{a.createIndex(i.name,i.props,i.options)})}})},blocked(e,n,r){console.error("DB blocked: ",e,n,r)},blocking(e,n,r){console.error("DB blocking: ",e,n,r)},terminated(){}})}async getDB(){if(!this.db)try{await this.initDB()}catch{console.log("try to delete database before re-open"),await Y2(this.database);try{await this.initDB()}catch{console.log("failed to open db")}}return this.db}async getValue(e,n){const r=(await this.getDB()).transaction(e,"readonly"),a=await r.objectStore(e).get(n);await r.done;let i;return a&&(i=this._instanceOfEntity(e),Object.assign(i,a)),i}async getAllValue(e,n){const r=(await this.getDB()).transaction(e,"readonly"),a=await r.objectStore(e).getAll(n);return await r.done,a&&a.forEach(i=>{if(i){const o=this._instanceOfEntity(e);Object.assign(o,i)}}),a}async putValue(e,n){const r=(await this.getDB()).transaction(e,"readwrite"),a=await r.objectStore(e).put({...n,lastRemote:new Date().getTime()});await r.done;let i;return a&&(i=this._instanceOfEntity(e),Object.assign(i,a)),i}async putBulkValue(e,n){const r=(await this.getDB()).transaction(e,"readwrite"),a=r.objectStore(e);for(const i of n)await a.put({...i,lastRemote:new Date().getTime()});return await r.done,this.getAllValue(e)}async deleteValue(e,n){const r=(await this.getDB()).transaction(e,"readwrite");await r.objectStore(e).delete(n),await r.done}async deleteValues(e,n){const r=(await this.getDB()).transaction(e,"readwrite"),a=r.objectStore(e);n==null||n.forEach(i=>{a.delete(i)}),await r.done}async deleteAllValues(e){const n=(await this.getDB()).transaction(e,"readwrite"),r=n.objectStore(e);if(r.name===qr)try{await new Bf(this,void 0).localClear()}catch{}else await r.clear();await n.done}async deleteAllTables(){dc.forEach(e=>{this.deleteAllValues(e.name)})}_instanceOfEntity(e){var n;const r=(n=dc.find(a=>a.name===e))==null?void 0:n.entity;return new r}}var Hf={exports:{}},hc={exports:{}},jf=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},j_=jf,_r=Object.prototype.toString;function fc(t){return Array.isArray(t)}function mc(t){return typeof t>"u"}function Y_(t){return t!==null&&!mc(t)&&t.constructor!==null&&!mc(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Yf(t){return _r.call(t)==="[object ArrayBuffer]"}function W_(t){return _r.call(t)==="[object FormData]"}function G_(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Yf(t.buffer),e}function q_(t){return typeof t=="string"}function K_(t){return typeof t=="number"}function Wf(t){return t!==null&&typeof t=="object"}function rs(t){if(_r.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Z_(t){return _r.call(t)==="[object Date]"}function J_(t){return _r.call(t)==="[object File]"}function X_(t){return _r.call(t)==="[object Blob]"}function Gf(t){return _r.call(t)==="[object Function]"}function Q_(t){return Wf(t)&&Gf(t.pipe)}function eE(t){return _r.call(t)==="[object URLSearchParams]"}function tE(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function nE(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function pc(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),fc(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function gc(){var t={};function e(a,i){rs(t[i])&&rs(a)?t[i]=gc(t[i],a):rs(a)?t[i]=gc({},a):fc(a)?t[i]=a.slice():t[i]=a}for(var n=0,r=arguments.length;n<r;n++)pc(arguments[n],e);return t}function rE(t,e,n){return pc(e,function(r,a){n&&typeof r=="function"?t[a]=j_(r,n):t[a]=r}),t}function aE(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var Zt={isArray:fc,isArrayBuffer:Yf,isBuffer:Y_,isFormData:W_,isArrayBufferView:G_,isString:q_,isNumber:K_,isObject:Wf,isPlainObject:rs,isUndefined:mc,isDate:Z_,isFile:J_,isBlob:X_,isFunction:Gf,isStream:Q_,isURLSearchParams:eE,isStandardBrowserEnv:nE,forEach:pc,merge:gc,extend:rE,trim:tE,stripBOM:aE},Ta=Zt;function qf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Kf=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Ta.isURLSearchParams(e))r=e.toString();else{var a=[];Ta.forEach(e,function(o,l){o===null||typeof o>"u"||(Ta.isArray(o)?l=l+"[]":o=[o],Ta.forEach(o,function(c){Ta.isDate(c)?c=c.toISOString():Ta.isObject(c)&&(c=JSON.stringify(c)),a.push(qf(l)+"="+qf(c))}))}),r=a.join("&")}if(r){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},iE=Zt;function as(){this.handlers=[]}as.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},as.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},as.prototype.forEach=function(t){iE.forEach(this.handlers,function(e){e!==null&&t(e)})};var oE=as,sE=Zt,lE=function(t,e){sE.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})},Zf=function(t,e,n,r,a){return t.config=e,n&&(t.code=n),t.request=r,t.response=a,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Jf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yc,Xf;function Qf(){if(Xf)return yc;Xf=1;var t=Zf;return yc=function(e,n,r,a,i){var o=new Error(e);return t(o,n,r,a,i)},yc}var vc,em;function cE(){if(em)return vc;em=1;var t=Qf();return vc=function(e,n,r){var a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):n(t("Request failed with status code "+r.status,r.config,null,r.request,r))},vc}var wc,tm;function uE(){if(tm)return wc;tm=1;var t=Zt;return wc=t.isStandardBrowserEnv()?function(){return{write:function(e,n,r,a,i,o){var l=[];l.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),t.isString(a)&&l.push("path="+a),t.isString(i)&&l.push("domain="+i),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),wc}var nm,rm;function dE(){return rm||(rm=1,nm=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),nm}var am,im;function hE(){return im||(im=1,am=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),am}var bc,om;function fE(){if(om)return bc;om=1;var t=dE(),e=hE();return bc=function(n,r){return n&&!t(r)?e(n,r):r},bc}var _c,sm;function mE(){if(sm)return _c;sm=1;var t=Zt,e=["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"];return _c=function(n){var r={},a,i,o;return n&&t.forEach(n.split(`
41
+ `),function(l){if(o=l.indexOf(":"),a=t.trim(l.substr(0,o)).toLowerCase(),i=t.trim(l.substr(o+1)),a){if(r[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?r[a]=(r[a]?r[a]:[]).concat([i]):r[a]=r[a]?r[a]+", "+i:i}}),r},_c}var Ec,lm;function pE(){if(lm)return Ec;lm=1;var t=Zt;return Ec=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function a(i){var o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){var o=t.isString(i)?a(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),Ec}var Dc,cm;function is(){if(cm)return Dc;cm=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Dc=t,Dc}var Sc,um;function gE(){if(um)return Sc;um=1;var t=Zt,e=cE(),n=uE(),r=Kf,a=fE(),i=mE(),o=pE(),l=Qf(),c=Jf,d=is();return Sc=function(h){return new Promise(function(m,f){var p=h.data,E=h.headers,k=h.responseType,T;function b(){h.cancelToken&&h.cancelToken.unsubscribe(T),h.signal&&h.signal.removeEventListener("abort",T)}t.isFormData(p)&&delete E["Content-Type"];var w=new XMLHttpRequest;if(h.auth){var A=h.auth.username||"",S=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";E.Authorization="Basic "+btoa(A+":"+S)}var N=a(h.baseURL,h.url);w.open(h.method.toUpperCase(),r(N,h.params,h.paramsSerializer),!0),w.timeout=h.timeout;function L(){if(w){var F="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,V=!k||k==="text"||k==="json"?w.responseText:w.response,R={data:V,status:w.status,statusText:w.statusText,headers:F,config:h,request:w};e(function(z){m(z),b()},function(z){f(z),b()},R),w=null}}if("onloadend"in w?w.onloadend=L:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(L)},w.onabort=function(){!w||(f(l("Request aborted",h,"ECONNABORTED",w)),w=null)},w.onerror=function(){f(l("Network Error",h,null,w)),w=null},w.ontimeout=function(){var F=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",V=h.transitional||c;h.timeoutErrorMessage&&(F=h.timeoutErrorMessage),f(l(F,h,V.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},t.isStandardBrowserEnv()){var M=(h.withCredentials||o(N))&&h.xsrfCookieName?n.read(h.xsrfCookieName):void 0;M&&(E[h.xsrfHeaderName]=M)}"setRequestHeader"in w&&t.forEach(E,function(F,V){typeof p>"u"&&V.toLowerCase()==="content-type"?delete E[V]:w.setRequestHeader(V,F)}),t.isUndefined(h.withCredentials)||(w.withCredentials=!!h.withCredentials),k&&k!=="json"&&(w.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&w.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(T=function(F){!w||(f(!F||F&&F.type?new d("canceled"):F),w.abort(),w=null)},h.cancelToken&&h.cancelToken.subscribe(T),h.signal&&(h.signal.aborted?T():h.signal.addEventListener("abort",T))),p||(p=null),w.send(p)})},Sc}var Ot=Zt,dm=lE,yE=Zf,vE=Jf,wE={"Content-Type":"application/x-www-form-urlencoded"};function hm(t,e){!Ot.isUndefined(t)&&Ot.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function bE(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=gE()),t}function _E(t,e,n){if(Ot.isString(t))try{return(e||JSON.parse)(t),Ot.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var os={transitional:vE,adapter:bE(),transformRequest:[function(t,e){return dm(e,"Accept"),dm(e,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t)?t:Ot.isArrayBufferView(t)?t.buffer:Ot.isURLSearchParams(t)?(hm(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ot.isObject(t)||e&&e["Content-Type"]==="application/json"?(hm(e,"application/json"),_E(t)):t}],transformResponse:[function(t){var e=this.transitional||os.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?yE(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],function(t){os.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){os.headers[t]=Ot.merge(wE)});var kc=os,EE=Zt,DE=kc,SE=function(t,e,n){var r=this||DE;return EE.forEach(n,function(a){t=a.call(r,t,e)}),t},fm,mm;function pm(){return mm||(mm=1,fm=function(t){return!!(t&&t.__CANCEL__)}),fm}var gm=Zt,Ic=SE,kE=pm(),IE=kc,CE=is();function Cc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CE("canceled")}var NE=function(t){Cc(t),t.headers=t.headers||{},t.data=Ic.call(t,t.data,t.headers,t.transformRequest),t.headers=gm.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),gm.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var e=t.adapter||IE.adapter;return e(t).then(function(n){return Cc(t),n.data=Ic.call(t,n.data,n.headers,t.transformResponse),n},function(n){return kE(n)||(Cc(t),n&&n.response&&(n.response.data=Ic.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},nn=Zt,ym=function(t,e){e=e||{};var n={};function r(d,h){return nn.isPlainObject(d)&&nn.isPlainObject(h)?nn.merge(d,h):nn.isPlainObject(h)?nn.merge({},h):nn.isArray(h)?h.slice():h}function a(d){if(nn.isUndefined(e[d])){if(!nn.isUndefined(t[d]))return r(void 0,t[d])}else return r(t[d],e[d])}function i(d){if(!nn.isUndefined(e[d]))return r(void 0,e[d])}function o(d){if(nn.isUndefined(e[d])){if(!nn.isUndefined(t[d]))return r(void 0,t[d])}else return r(void 0,e[d])}function l(d){if(d in e)return r(t[d],e[d]);if(d in t)return r(void 0,t[d])}var c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l};return nn.forEach(Object.keys(t).concat(Object.keys(e)),function(d){var h=c[d]||a,m=h(d);nn.isUndefined(m)&&h!==l||(n[d]=m)}),n},vm,wm;function bm(){return wm||(wm=1,vm={version:"0.26.1"}),vm}var TE=bm().version,Nc={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Nc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var _m={};Nc.transitional=function(t,e,n){function r(a,i){return"[Axios v"+TE+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return function(a,i,o){if(t===!1)throw new Error(r(i," has been removed"+(e?" in "+e:"")));return e&&!_m[i]&&(_m[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(a,i,o):!0}};function AE(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var r=Object.keys(t),a=r.length;a-- >0;){var i=r[a],o=e[i];if(o){var l=t[i],c=l===void 0||o(l,i,t);if(c!==!0)throw new TypeError("option "+i+" must be "+c);continue}if(n!==!0)throw Error("Unknown option "+i)}}var OE={assertOptions:AE,validators:Nc},Em=Zt,xE=Kf,Dm=oE,Sm=NE,ss=ym,km=OE,Aa=km.validators;function Mi(t){this.defaults=t,this.interceptors={request:new Dm,response:new Dm}}Mi.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ss(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&km.assertOptions(n,{silentJSONParsing:Aa.transitional(Aa.boolean),forcedJSONParsing:Aa.transitional(Aa.boolean),clarifyTimeoutError:Aa.transitional(Aa.boolean)},!1);var r=[],a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(a=a&&m.synchronous,r.unshift(m.fulfilled,m.rejected))});var i=[];this.interceptors.response.forEach(function(m){i.push(m.fulfilled,m.rejected)});var o;if(!a){var l=[Sm,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var c=e;r.length;){var d=r.shift(),h=r.shift();try{c=d(c)}catch(m){h(m);break}}try{o=Sm(c)}catch(m){return Promise.reject(m)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Mi.prototype.getUri=function(t){return t=ss(this.defaults,t),xE(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Em.forEach(["delete","get","head","options"],function(t){Mi.prototype[t]=function(e,n){return this.request(ss(n||{},{method:t,url:e,data:(n||{}).data}))}}),Em.forEach(["post","put","patch"],function(t){Mi.prototype[t]=function(e,n,r){return this.request(ss(r||{},{method:t,url:e,data:n}))}});var LE=Mi,Tc,Im;function RE(){if(Im)return Tc;Im=1;var t=is();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i});var a=this;this.promise.then(function(i){if(a._listeners){var o,l=a._listeners.length;for(o=0;o<l;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,l=new Promise(function(c){a.subscribe(c),o=c}).then(i);return l.cancel=function(){a.unsubscribe(o)},l},n(function(i){a.reason||(a.reason=new t(i),r(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},e.prototype.unsubscribe=function(n){if(this._listeners){var r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}},e.source=function(){var n,r=new e(function(a){n=a});return{token:r,cancel:n}},Tc=e,Tc}var Cm,Nm;function ME(){return Nm||(Nm=1,Cm=function(t){return function(e){return t.apply(null,e)}}),Cm}var Ac,Tm;function PE(){if(Tm)return Ac;Tm=1;var t=Zt;return Ac=function(e){return t.isObject(e)&&e.isAxiosError===!0},Ac}var Am=Zt,$E=jf,ls=LE,BE=ym,FE=kc;function Om(t){var e=new ls(t),n=$E(ls.prototype.request,e);return Am.extend(n,ls.prototype,e),Am.extend(n,e),n.create=function(r){return Om(BE(t,r))},n}var An=Om(FE);An.Axios=ls,An.Cancel=is(),An.CancelToken=RE(),An.isCancel=pm(),An.VERSION=bm().version,An.all=function(t){return Promise.all(t)},An.spread=ME(),An.isAxiosError=PE(),hc.exports=An,hc.exports.default=An,function(t){t.exports=hc.exports}(Hf);const Pi=e_(Hf.exports);class xm{constructor(){u(this,"printQueue"),this.printQueue=[]}makeUrl(e,n){return e&&(n&&(e=this.combineURLs(n,e)),this.printQueue.push(e)),this}makeParams(e){return e&&this.printQueue.push(JSON.stringify(e)),this}makeMethod(e){return e&&this.printQueue.push(e.toUpperCase()),this}makeData(e){const n=typeof e=="string"?e:JSON.stringify(e);return e&&this.printQueue.push(n),this}makeStatus(e,n){return e&&n?this.printQueue.push(`${e}:${n}`):e?this.printQueue.push(`${e}`):n&&this.printQueue.push(n),this}build(){const e=this.printQueue.join(" ");return this.printQueue=[],e}combineURLs(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}}const zE=["get_/api/2.3/clients","get_/api/2.3/clients/search","get_/api/2.3/audit/logs","get_/api/2.3/scheduling/workinghours"];class Ue{constructor(e,n,r){u(this,"authenticationService"),u(this,"logger"),u(this,"bearerCall",!1),u(this,"instance"),u(this,"axiosLoggerBuilder"),u(this,"baseUrl"),u(this,"abortControllers",new Map),u(this,"_initializeRequestInterceptor",()=>{this.instance.interceptors.request.use(this._handleRequest)}),u(this,"isAbortableRequest",a=>zE.includes(a.indexOf("?")!==-1?a.substring(0,a.indexOf("?")):a)),u(this,"_handleRequest",a=>{var i;const o=(a.method+"_"+a.url).toLowerCase();if(this.isAbortableRequest(o)){const l=new AbortController;a.signal=l.signal,this.abortControllers.has(o)&&((i=this.abortControllers.get(o))==null||i.abort()),this.abortControllers.set(o,l)}return a}),u(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleRefreshToken)}),u(this,"_handleResponse",a=>{var i,o,l,c,d;if(this.logger){const h=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(l=a.config)==null?void 0:l.baseURL).makeParams((c=a.config)==null?void 0:c.params).makeStatus(a.status,a.statusText).makeData(this.filteredDataLog((d=a.config)==null?void 0:d.data)).makeData(this.filteredDataLog(a.data)).build();this.logger.debug("js-calendar-api",h)}return a.data}),u(this,"_handleError",a=>{var i,o,l,c,d,h,m,f,p,E,k,T;if(Pi.isCancel(a)&&this.isAbortableRequest(((i=a.config)==null?void 0:i.method)+"_"+((o=a.config)==null?void 0:o.url))){console.log("cancelled query",a);return}if(this.logger){const b=this.axiosLoggerBuilder.makeMethod((l=a.config)==null?void 0:l.method).makeUrl((c=a.config)==null?void 0:c.url,(d=a.config)==null?void 0:d.baseURL).makeParams((h=a.config)==null?void 0:h.params).makeStatus((m=a.response)==null?void 0:m.status,(f=a.response)==null?void 0:f.statusText).makeData((p=a.config)==null?void 0:p.data).makeData((E=a.response)==null?void 0:E.data).build();this.logger.error("js-calendar-api",b)}if(Pi.isAxiosError(a)&&((T=(k=a.response)==null?void 0:k.data)==null?void 0:T.error)){const b=Object.assign(new Ho,a.response.data.error);return Promise.reject(b)}else return Promise.reject(a)}),u(this,"_handleRefreshToken",async a=>{if(!this.bearerCall&&a.response){const i=a.config;if(a.response.status===401||a.response.status===400&&a.response.data&&a.response.data.error&&a.response.data.error.message&&a.response.data.error.message.indexOf("Required parameter apiKey not found")>-1)if(i._retry)this.authenticationService.logout().finally(()=>window.location.href="/");else{i._retry=!0;try{return await this.authenticationService.refreshToken(),this.instance(i)}catch{this.authenticationService.logout().finally(()=>window.location.href="/")}}}return this._handleError(a)}),this.authenticationService=n,this.logger=r,this.baseUrl=e,this.instance=Pi.create({baseURL:e}),this.axiosLoggerBuilder=new xm,this._initializeRequestInterceptor(),this._initializeResponseInterceptor()}filteredDataLog(e){return e}getAxiosConfig(e,n){let r={};return e?(this.bearerCall=!0,r={headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},params:{}}):(this.bearerCall=!1,r={headers:{"Content-Type":"application/json"},params:{},withCredentials:!0}),n&&(r.params.account=n),r}}class VE extends Ue{async getCalendars(e,n,r,a,i,o,l){let c=this.getAxiosConfig(e),d=new URLSearchParams;d.append("account",n),d.append("start",ln(r,i)),d.append("end",ln(a,i)),o==null||o.forEach(m=>{d.append("userIds",m)}),l==null||l.forEach(m=>{d.append("anonymousUserIds",m)}),c.params=d;const h=this.instance.get("/api/2.1/scheduling/calendars",c);if(h!==null)try{return await h}catch(m){throw m}else throw new we(ye.INTERNAL_ERROR)}}class UE{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getCalendars(){return this.indexedDb.getAllValue(Ai)}async getById(e){return this.indexedDb.getValue(Ai,e)}async saveAllCalendars(e){await this.indexedDb.putBulkValue(Ai,e)}async drop(){await this.indexedDb.deleteAllValues(Ai)}}class HE extends Fe{constructor(e,n,r,a){super("calendar",a),u(this,"calendarDb"),u(this,"calendarService"),this.calendarDb=new UE(n),this.calendarService=new VE(r,e,a)}async getCalendars(e,n,r,a,i,o,l,c=pe.LOCAL_THEN_REMOTE){return this.list(e,c,{start:r,end:a,timeZone:i,userIdList:o,anonymousUserIdList:l,account:n})}async remoteList(e,n){if(!n.start||!n.end)throw Error("Invalid state:"+JSON.stringify(n));const r=await this.calendarService.getCalendars(e,n.account,n.start,n.end,n.timeZone,n.userIdList,n.anonymousUserIdList);return r.calendars.anonymousUsers.map(a=>{const i=Ea.fromCalendarDto(a,r.timeZone,r.vacations);return i.anonymous=!0,i}).concat(r.calendars.users.map(a=>{const i=Ea.fromCalendarDto(a,r.timeZone,r.vacations);return i.anonymous=!1,i}))}async remoteGet(e,n){if(!n.start||!n.end)throw Error("Invalid state:"+JSON.stringify(n));const r=await this.calendarService.getCalendars(e,n.account,n.start,n.end,n.timeZone);return Ea.fromCalendarDto(r.calendars.users[0],r.timeZone,r.vacations)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){return this.calendarDb.getCalendars()}async localBulkSave(e,n){await this.calendarDb.saveAllCalendars(n)}async localGet(e){if(!e.calendarId)throw Error("Invalid state:"+JSON.stringify(e));return this.calendarDb.getById(e.calendarId)}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}}class jE extends Ue{async getAllCompanies(e,n){const r=this.getAxiosConfig(e,n);r.params.version=2;let a="/api/2.1/scheduling/companies";const i=this.instance.get(a,r);if(i!==null)try{return(await i).items}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r){let a=`/api/2.1/scheduling/companies/${r}`;const i=this.instance.get(a,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async createCompany(e,n,r){let a="/api/2.1/scheduling/companies";const i=this.instance.post(a,r,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async cloneCompany(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/functions/clone`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateCompany(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}`;const o=this.instance.put(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r){let a=`/api/2.1/scheduling/companies/${r}`;const i=this.instance.delete(a,this.getAxiosConfig(e,n));if(i!==null)try{return await i,!0}catch{return!1}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class YE{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllCompanies(e){let n=await this.indexedDb.getAllValue(Ia);return e?Promise.resolve(n.filter(r=>r.owner.userName===e)):Promise.resolve(n)}async saveAllCompanies(e){await this.indexedDb.putBulkValue(Ia,e)}async getById(e){return this.indexedDb.getValue(Ia,e)}async deleteById(e){await this.indexedDb.deleteValue(Ia,e)}async drop(){await this.indexedDb.deleteAllValues(Ia)}}class WE extends Fe{constructor(e,n,r,a){super("company",a),u(this,"companyDb"),u(this,"companyService"),this.companyDb=new YE(n),this.companyService=new jE(r,e,a)}async getAllCompanies(e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(e,r,{account:n,companyId:void 0})}async getCompany(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{account:n,companyId:r})}async createCompany(e,n,r){const a=await this.create(e,pe.REMOTE_THEN_LOCAL,{account:n},r);return ht.publish(He.CREATE,{company:a}),a}async cloneCompany(e,n,r,a){const i=await this.create(e,pe.REMOTE_THEN_LOCAL,{account:n,companyId:r},a);return ht.publish(He.CREATE,{account:n,company:i}),i}async updateCompany(e,n,r,a){const i=await this.update(e,pe.REMOTE_THEN_LOCAL,{account:n,companyId:r},a);return ht.publish(He.UPDATE,{account:n,companyId:r,company:i}),i}async deleteCompany(e,n,r){await this.deleteById(e,{account:n,companyId:r}),ht.publish(He.DELETE,{account:n,companyId:r})}async remoteList(e,n){return(await this.companyService.getAllCompanies(e,n.account)).map(r=>qn.fromCompanyDto(r))}async remoteGet(e,n){this.checkNullable(n);const r=await this.companyService.getById(e,n.account,n.companyId);return qn.fromCompanyDto(r)}async remoteCreate(e,n,r){const a=qn.toCompanyDto(r);let i;return n.companyId?i=await this.companyService.cloneCompany(e,n.account,n.companyId,a):i=await this.companyService.createCompany(e,n.account,a),qn.fromCompanyDto(i)}async remoteUpdate(e,n,r){this.checkNullable(n);const a=qn.toCompanyDto(r),i=await this.companyService.updateCompany(e,n.account,n.companyId,a);return qn.fromCompanyDto(i)}async remoteDelete(e,n){this.checkNullable(n),await this.companyService.delete(e,n.account,n.companyId)}async localList(e){return this.companyDb.getAllCompanies(e.account)}async localGet(e){return this.checkNullable(e),this.companyDb.getById(e.companyId)}async localBulkSave(e,n){await this.companyDb.saveAllCompanies(n)}async localDelete(e){this.checkNullable(e),await this.companyDb.deleteById(e.companyId)}localBulkDelete(e){return Promise.resolve(void 0)}checkNullable(e){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e))}}class GE extends Ue{async getAllStaffs(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/staff`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async createStaff(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateStaff(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/staff/${a}`;const l=this.instance.put(o,i,this.getAxiosConfig(e,n));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async patchAllStaff(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff`;const o=this.instance.patch(i,a,this.getAxiosConfig(e,n));if(o!==null)try{await o;return}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staff/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class Lm{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllStaffs(e){return(await this.indexedDb.getAllValue(Vr)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async getById(e,n){var r;const a=await this.indexedDb.getValue(Vr,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw Tn}async saveAllStaffs(e){await this.indexedDb.putBulkValue(Vr,e)}async deleteById(e,n){await this.indexedDb.deleteValue(Vr,n)}async deleteByStaffIds(e){await this.indexedDb.deleteValues(Vr,e)}async drop(){await this.indexedDb.deleteAllValues(Vr)}updateServiceSkills(e,n,r){this.getAllStaffs(e).then(async a=>{const i=a.filter(o=>{var l;return(l=o.servicesSkill)==null?void 0:l.includes(n)});i&&i.length>0&&(i.forEach(o=>{var l,c,d;const h=(l=o.servicesSkill)==null?void 0:l.findIndex(m=>m===n);h!=null&&(r?(c=o.servicesSkill)==null||c.splice(h,1,r):(d=o.servicesSkill)==null||d.splice(h,1))}),await this.saveAllStaffs(i))})}}var qE=Object.defineProperty,KE=Object.getOwnPropertyDescriptor,Oc=(t,e,n,r)=>{for(var a=r>1?void 0:r?KE(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&qE(e,n,a),a};let $i=class extends Fe{constructor(t,e,n,r){super("staff",r),u(this,"staffDb"),u(this,"staffService"),this.staffDb=new Lm(e),this.staffService=new GE(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){if(n==ht||n===wr)await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId});else if(n==br&&e==He.UPDATE){const a=t.entity;for(const i of a.companies)await this.cascadeDelete({account:t.organisation,companyId:i.company.id},()=>!0)}else n==wr&&await this.cascadeDelete({account:t.organisation,companyId:t.companyId},()=>!0)}async getAllStaffs(t,e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getStaff(t,e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,staffId:r})}async createStaff(t,e,n,r){const a=await this.create(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return tn.publish(He.CREATE,{account:e,companyId:n,staff:a}),a}async updateStaff(t,e,n,r,a){const i=await this.update(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,staffId:r},a);return tn.publish(He.UPDATE,{account:e,companyId:n,staffId:r,staff:i}),i}async patchAllStaff(t,e,n,r,a){let i=new Nn;return r&&(i.workingHours=r),a&&(i.vacations=a),await this.staffService.patchAllStaff(t,e,n,i),this.getAllStaffs(t,e,n,pe.REMOTE_THEN_LOCAL)}async deleteStaff(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,staffId:r}),tn.publish(He.DELETE,{account:e,companyId:n,staffId:r})}async remoteList(t,e){return(await this.staffService.getAllStaffs(t,e.account,e.companyId)).map(n=>Nn.fromStaffDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.staffService.getById(t,e.account,e.companyId,e.staffId);return Nn.fromStaffDto(n)}async remoteCreate(t,e,n){const r=Nn.toStaffDto(n),a=await this.staffService.createStaff(t,e.account,e.companyId,r);return Nn.fromStaffDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Nn.toStaffDto(n),a=await this.staffService.updateStaff(t,e.account,e.companyId,e.staffId,r);return Nn.fromStaffDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.staffService.delete(t,e.account,e.companyId,e.staffId)}async localList(t){return this.staffDb.getAllStaffs(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffDb.getById(t.companyId,t.staffId)}async localBulkSave(t,e){await this.staffDb.saveAllStaffs(e)}async localDelete(t){this.checkNullable(t),await this.staffDb.deleteById(t.companyId,t.staffId)}async localBulkDelete(t){await this.staffDb.deleteByStaffIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffId)throw Error("Invalid state:"+JSON.stringify(t))}};Oc([Re.Unsubscribe()],$i.prototype,"dispose",1),Oc([Re.Subscribe(He.DELETE),Re.Subscribe(He.UPDATE),Re.Subscribe(He.CREATE)],$i.prototype,"onCascadeDelete",1),$i=Oc([Re.Subscriber({channel:br}),Re.Subscriber({channel:wr}),Re.Subscriber({channel:ht})],$i);class ZE extends Ue{async getAllServices(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/services`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async createService(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateService(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/services/${a}`;const l=this.instance.put(o,i,this.getAxiosConfig(e,n));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/services/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class Rm{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllServiceGroups(e){return(await this.indexedDb.getAllValue(Yr)||[]).filter(n=>n.companyId===e)}async saveAllServiceGroups(e){await this.indexedDb.putBulkValue(Yr,e)}async getById(e,n){const r=await this.indexedDb.getValue(Yr,n);if((r==null?void 0:r.companyId)===e)return r;throw Tn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Yr,n),new Lm(this.indexedDb).updateServiceSkills(e,n,void 0)}async deleteByServiceGroupIds(e){await this.indexedDb.deleteValues(Yr,e)}async drop(){await this.indexedDb.deleteAllValues(Yr)}updateServices(e,n,r){this.getAllServiceGroups(e).then(async a=>{const i=a.filter(o=>{var l;return(l=o.members)==null?void 0:l.find(c=>c.id===n)});i&&i.length>0&&(i.forEach(o=>{var l,c,d;const h=(l=o.members)==null?void 0:l.findIndex(m=>m.id===n);h!=null&&(r?(c=o.members)==null||c.splice(h,1,r):(d=o.members)==null||d.splice(h,1))}),await this.saveAllServiceGroups(i))})}}class Mm{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllServices(e){return(await this.indexedDb.getAllValue(Ur)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async saveAllServices(e){await this.indexedDb.putBulkValue(Ur,e)}async getById(e,n){var r;const a=await this.indexedDb.getValue(Ur,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw Tn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Ur,n),new Rm(this.indexedDb).updateServices(e,n,void 0)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Ur,e)}async drop(){await this.indexedDb.deleteAllValues(Ur)}updateStaffSkills(e,n,r){this.getAllServices(e).then(async a=>{const i=a.filter(o=>{var l;return(l=o.staffsSkill)==null?void 0:l.includes(n)});i&&i.length>0&&(i.forEach(o=>{var l,c,d;const h=(l=o.staffsSkill)==null?void 0:l.findIndex(m=>m===n);h!=null&&(r?(c=o.staffsSkill)==null||c.splice(h,1,r):(d=o.staffsSkill)==null||d.splice(h,1))}),await this.saveAllServices(i))})}}var JE=Object.defineProperty,XE=Object.getOwnPropertyDescriptor,xc=(t,e,n,r)=>{for(var a=r>1?void 0:r?XE(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&JE(e,n,a),a};let Bi=class extends Fe{constructor(t,e,n,r){super("service",r),u(this,"serviceDb"),u(this,"serviceService"),this.serviceDb=new Mm(e),this.serviceService=new ZE(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht?await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId}):n==tn&&await this.cascadeDelete({account:t.organisation,companyId:t.companyId},()=>!0)}async getAllServices(t,e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getService(t,e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceId:r})}async createService(t,e,n,r){const a=await super.create(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return wr.publish(He.CREATE,{account:e,companyId:n,service:a}),a}async updateService(t,e,n,r,a){const i=await super.update(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceId:r},a);return wr.publish(He.UPDATE,{account:e,companyId:n,serviceId:r,service:i}),i}async deleteService(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,serviceId:r}),wr.publish(He.DELETE,{account:e,companyId:n,serviceId:r})}async remoteList(t,e){return(await this.serviceService.getAllServices(t,e.account,e.companyId)).map(n=>Gn.fromServiceDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceService.getById(t,e.account,e.companyId,e.serviceId);return Gn.fromServiceDto(n)}async remoteCreate(t,e,n){const r=Gn.toServiceDto(n),a=await this.serviceService.createService(t,e.account,e.companyId,r);return Gn.fromServiceDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Gn.toServiceDto(n),a=await this.serviceService.updateService(t,e.account,e.companyId,e.serviceId,r);return Gn.fromServiceDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceService.delete(t,e.account,e.companyId,e.serviceId)}async localList(t){return this.serviceDb.getAllServices(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceDb.getById(t.companyId,t.serviceId)}async localBulkSave(t,e){await this.serviceDb.saveAllServices(e)}async localDelete(t){this.checkNullable(t),await this.serviceDb.deleteById(t.companyId,t.serviceId)}async localBulkDelete(t){await this.serviceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceId)throw Error("Invalid state:"+JSON.stringify(t))}};xc([Re.Unsubscribe()],Bi.prototype,"dispose",1),xc([Re.Subscribe(He.DELETE),Re.Subscribe(He.UPDATE),Re.Subscribe(He.CREATE)],Bi.prototype,"onCascadeDelete",1),Bi=xc([Re.Subscriber({channel:ht}),Re.Subscriber({channel:tn})],Bi);class QE extends Ue{async searchContacts(e,n,r,a=100,i=!0,o=!1,l,c){let d="/api/2.3/clients",h=this.getAxiosConfig(e,n);h.params.q=r,h.params.maxResult=a,h.params.showAnonymized=o,l&&(h.params.orderBy=l),c&&(h.params.pageToken=c);const m=this.instance.get(d,h);if(m!==null)try{const f=await m;return i?f.items:f}catch(f){throw f}else throw new we(ye.INTERNAL_ERROR)}async advancedSearchContacts(e,n,r,a=100,i=!0,o,l){let c="/api/2.3/clients/search",d=this.getAxiosConfig(e,n);d.params.maxResult=a,o&&(d.params.orderBy=o),l&&(d.params.pageToken=l);const h=this.instance.post(c,r,d);if(h!==null)try{const m=await h;return i?m.items:m}catch(m){throw m}else throw new we(ye.INTERNAL_ERROR)}async createContact(e,n,r){const a=this.instance.post("/api/2.3/clients",r,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async updateContact(e,n,r,a){const i=this.instance.put(`/api/2.3/clients/${r}`,a,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r){let a=`/api/2.3/clients/${r}`;const i=this.instance.get(a,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async deleteBy(e,n,r){let a=`/api/2.3/clients/${r}`;const i=this.instance.delete(a,this.getAxiosConfig(e,n));if(i!==null)try{await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class eD{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllContacts(){return this.indexedDb.getAllValue(ka)}async saveAllContacts(e){await this.indexedDb.putBulkValue(ka,e)}async getById(e){return this.indexedDb.getValue(ka,e)}async deleteById(e){await this.indexedDb.deleteValue(ka,e)}async drop(){await this.indexedDb.deleteAllValues(ka)}}var tD=Object.defineProperty,nD=Object.getOwnPropertyDescriptor,Pm=(t,e,n,r)=>{for(var a=r>1?void 0:r?nD(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&tD(e,n,a),a};const $m=100;let cs=class extends Fe{constructor(t,e,n,r){super("contact",r),u(this,"contactDb"),u(this,"contactService"),this.contactDb=new eD(e),this.contactService=new QE(n,t,r)}async onCascadeChange(t,e,n,r){var a,i,o,l;n==Ti&&(i=(a=t.event)==null?void 0:a.client)!=null&&i.id&&await this.cascadeDeleteItem({account:t.account,contactId:(l=(o=t.event)==null?void 0:o.client)==null?void 0:l.id})}async searchContacts(t,e,n,r,a){return this.list(t,pe.REMOTE_THEN_LOCAL,{account:e||"",query:n,showAnonymized:r,sort:a})}async searchContactWithPages(t,e,n,r,a,i){var o;let l;return typeof n=="string"?l=await this.contactService.searchContacts(t,e,n||"",$m,!1,r,a,i):l=await this.contactService.advancedSearchContacts(t,e,n,$m,!1,a,i),{nextPageToken:l.nextPageToken,nextSyncToken:l.nextSyncToken,totalItems:l.totalItems,items:(o=l.items)==null?void 0:o.map(c=>cn.fromContactDto(c))}}async createContact(t,e,n){return n.address===void 0&&(n.address=new Br,n.address.country="FR"),this.create(t,pe.REMOTE_THEN_LOCAL,{account:e},n)}async updateContact(t,e,n,r){return this.update(t,pe.REMOTE_THEN_LOCAL,{account:e,contactId:n},r)}async deleteContact(t,e,n){return this.deleteById(t,{account:e,contactId:n})}async getContact(t,e,n,r=pe.LOCAL_THEN_REMOTE){return this.getById(t,r,{account:e,contactId:n})}async remoteList(t,e){return(await this.contactService.searchContacts(t,e.account,e.query||"",100,!0,e.showAnonymized,e.sort)).map(n=>cn.fromContactDto(n))}async remoteGet(t,e){this.checkNullable(e);const n=await this.contactService.getById(t,e.account,e.contactId);return cn.fromContactDto(n)}async remoteCreate(t,e,n){const r=cn.toContactDto(n),a=await this.contactService.createContact(t,e.account,r);return cn.fromContactDto(a)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=cn.toContactDto(n),a=await this.contactService.updateContact(t,e.account,e.contactId,r);return cn.fromContactDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.contactService.deleteBy(t,e.account,e.contactId)}async localList(t){return this.contactDb.getAllContacts()}async localGet(t){return this.checkNullable(t),this.contactDb.getById(t.contactId)}async localBulkSave(t,e){await this.contactDb.saveAllContacts(e)}async localDelete(t){this.checkNullable(t),await this.contactDb.deleteById(t.contactId)}localBulkDelete(t){return Promise.resolve(void 0)}checkNullable(t){if(!t.contactId)throw Error("Invalid state:"+JSON.stringify(t))}};Pm([Re.Subscribe(He.UPDATE),Re.Subscribe(He.CREATE)],cs.prototype,"onCascadeChange",1),cs=Pm([Re.Subscriber({channel:Ti})],cs);class rD extends Ue{async getAllForms(e,n,r,a){let i="/api/2.1/scheduling/widgetForms/fields";const o=this.getAxiosConfig(e,n);o.params.companyId=r,a&&(o.params.serviceId=a);const l=this.instance.get(i,o);if(l!==null)try{const c=await l,d=[];let h=0;return c.pages.forEach(m=>{h>0?m.fields.forEach(f=>d.push(f)):h++}),d}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}}class aD{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllForms(e){await this.indexedDb.putBulkValue(Ri,e)}async getAllForms(){return this.indexedDb.getAllValue(Ri)}async getById(e){return this.indexedDb.getValue(Ri,e)}async drop(){await this.indexedDb.deleteAllValues(Ri)}}class iD extends Fe{constructor(e,n,r,a){super("form",a),u(this,"widgetFormDb"),u(this,"widgetFormService"),this.widgetFormDb=new aD(n),this.widgetFormService=new rD(r,e,a)}async getAllWidgetForms(e,n,r,a,i=pe.REMOTE_ONLY){return this.list(e,i,{account:n,companyId:r,serviceId:a})}async getWidgetForm(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{account:n,formId:r})}async remoteList(e,n){if(!n.companyId||!n.serviceId)throw Error("Invalid state:"+JSON.stringify(n));return(await this.widgetFormService.getAllForms(e,n.account,n.companyId,n.serviceId)).map(r=>Ct.fromWidgetFormItemDto(r))}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){return this.widgetFormDb.getAllForms()}async localGet(e){if(!e.formId)throw Error("Invalid state:"+JSON.stringify(e));return this.widgetFormDb.getById(e.formId)}async localBulkSave(e,n){await this.widgetFormDb.saveAllForms(n)}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}}function oD(t){t||(t=[]),lD(t);let e="",n="";for(const r of t)e+=n+r,n=",";return e}function sD(){const t=[];return t.push(ft.ID),t.push(ft.START),t.push(ft.END),t.push(ft.STAFF),t.push(ft.SERVICE),t.push(ft.STATUS),t.push(ft.COMPANY),t.push(ft.OWNER),t.push(ft.CLIENT),t.push(ft.ONLINE_MEETING),t.push(ft.FORM),t.push(ft.PRICE),t.push(ft.SOURCE),t.push(ft.SUMMARY),t.push(ft.NOTES),t.push(ft.PREPARATION_DURATION),t.push(ft.BUFFER_DURATION),t}function lD(t){t.push(ft.ID),t.push(ft.START),t.push(ft.END),t.push(ft.SOURCE)}var ft=(t=>(t.ID="id",t.START="start",t.END="end",t.OWNER="owner",t.NOTES="notes",t.CREATED="created",t.STAFF="staff",t.HISTORY="history",t.SOURCE="source",t.REFERENCE="reference",t.SERVICE="service",t.ENCRYPTED_ID="encryptedId",t.PAID="paid",t.CLIENT="client",t.COMPANY="company",t.STATUS="status",t.SUMMARY="summary",t.RESOURCE="resource",t.SERVICE_RESOURCE="service-resource",t.PARENT="parent",t.RESCHEDULE_LINK="rescheduleLink",t.ONLINE_MEETING="onlineMeeting",t.PRICE="price",t.FORM="form",t.PREPARATION_DURATION="preparationDuration",t.BUFFER_DURATION="bufferDuration",t))(ft||{});class Lc extends Ue{async createEvent(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/appointments`;const l=this.getAxiosConfig(e,n);i&&(l.params.force=!0),a.form=await this._prepareFormFields(a.form);const c=this.instance.post(o,a,l);if(c!==null)try{return await c}catch(d){throw d}else throw new we(ye.INTERNAL_ERROR)}async updateEvent(e,n,r,a,i=!1){let o=`/api/2.1/scheduling/companies/${r}/appointments/${a.id}`;const l=this.getAxiosConfig(e,n);i&&(l.params.force=!0),a.form=await this._prepareFormFields(a.form);const c=this.instance.put(o,a,l);if(c!==null)try{return await c}catch(d){throw d}else throw new we(ye.INTERNAL_ERROR)}async updateEventStatus(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/appointments/${a}`;const l=this.instance.put(o,{status:i},this.getAxiosConfig(e,n));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async getExternalAppointments(e,n,r,a,i,o){let l=this.getAxiosConfig(e,n);l.params.userIds=r,l.params.start=a,l.params.end=i,l.params.timeZone=o;const c=this.instance.get("/api/2.1/scheduling/externalAppointments",l);if(c!==null)try{return(await c).items}catch(d){throw d}else throw new we(ye.INTERNAL_ERROR)}async getICS(e,n){let r=this.getAxiosConfig(e),a=n;if(n.indexOf("calendar.google.com/calendar")>0){const o=n.indexOf("://");a="/api/2.3/forward/https//"+(o>0?n.substring(o+3):n)}const i=this.instance.get(a,r);if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async getAllEvents(e,n,r,a,i,o,l,c,d){let h=this.getAxiosConfig(e,n);h.params.userIds=r,h.params.start=a,h.params.end=i,h.params.levelDetail="full",o&&(h.params.personalAppointments=!0),h.params.showDeleted=l,d&&(h.params.syncToken=d),c&&c.length>0?h.params.fields=oD(c):h.params.fields=sD().map(f=>`${f}`).join(",");const m=this.instance.get("/api/2.1/scheduling/appointments",h);if(m!==null)try{return await m}catch(f){throw f}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r,a){let i=this.getAxiosConfig(e,n);i.params.levelDetail="full",a&&(i.params.personalAppointments=!0);let o=`/api/2.1/scheduling/appointments/${r}`;const l=this.instance.get(o,i);if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async _prepareFormFields(e){var n;if(e){let r=[];try{e.forEach(a=>{var i;a.values&&(a.values=(i=a.values)==null?void 0:i.filter(o=>typeof a.value=="string"&&a.value===o.value||Array.isArray(a.value)&&a.value.indexOf(o.value)!==-1),Array.isArray(a.value)&&(a.value=void 0))});for(const a of e.filter(i=>i.inputType==="rating"&&i.value!==void 0&&i.value!==""))a.values=[{id:a.value,value:a.value,name:a.value}];for(const a of e.filter(i=>i.inputType==="file"))a.value==null?(a.fileName="",a.value=""):a.value instanceof File?(a.fileName=a.value.name,a.value=await O2(a.value)):r.push(a);e.filter(a=>a.inputType==="date").forEach(a=>{a.value instanceof Date?a.value=Be.fromJSDate(a.value).toFormat("yyyy-MM-dd"):r.push(a)});for(const a of e.filter(i=>i.bind==="crm-notifications"||i.bind==="crm-reminder"))a.value==="all"&&(a.value=void 0,a.values=[{value:"sms",id:""},{value:"email",id:""}])}catch(a){(n=this.logger)==null||n.error("js-calendar-api","Error while prepared form fields",a)}return e.filter(a=>!r.includes(a))}}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class cD{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(xi,e)}async getAllEvents(e,n,r){return(await this.indexedDb.getAllValue(xi)).filter(a=>(n===void 0||a.start.getTime()>=n.getTime())&&(r===void 0||a.end.getTime()<=r.getTime())).filter(a=>{var i,o,l;const c=e===void 0||e.includes(((i=a.staff)==null?void 0:i.userId)||"")||((o=a.staff)==null?void 0:o.userId)==="0"&&e.includes(a.staff.id);return((l=a.staff)==null?void 0:l.userId)!==void 0&&c})}async getById(e){return this.indexedDb.getValue(xi,e)}async drop(){await this.indexedDb.deleteAllValues(xi)}}class us extends Map{static fromStorage(e){let n=new us;return e&&Object.entries(JSON.parse(e)).forEach(r=>{n.set(r[0],r[1])}),n}}class Rc{constructor(){u(this,"STORAGE_KEY","eventCoverage")}getCoverage(e,n,r,a,i){return this.getLocalCoverage(e,n,new Bm(rn.fromDate(r),rn.fromDate(a)),i)}getLocalCoverage(e,n,r,a){let i=us.fromStorage(localStorage.getItem(this.STORAGE_KEY)),o=[],l=[],c=[];r.getRange().forEach(p=>{n.forEach(E=>{c.push({account:e,userId:E,year:p.year,month:p.month})})}),c.forEach(p=>{let E=i.get(p.userId);dD(new rn(p.year,p.month),E||[])?o.push(p):l.push(p)}),a==null||a.debug("js-calendar-api","Month to load (local): ",o),a==null||a.debug("js-calendar-api","Month to load (remote): ",l);let d=Fm(o),h=Fm(l),m=Vm(d),f=Vm(h);return{local:m,remote:f}}saveCoverage(e,n,r,a,i){return this.saveLocalCoverage(e,n,new Bm(rn.fromDate(r),rn.fromDate(a)),i)}saveLocalCoverage(e,n,r,a){let i=us.fromStorage(localStorage.getItem(this.STORAGE_KEY));n.forEach(o=>{let l=i==null?void 0:i.get(o),c=l?l.filter(d=>{r.isIn(d.month,d.year)}):[];r.getRange().forEach(d=>{c.push({account:e,userId:o,year:d.year,month:d.month})}),a==null||a.debug("js-calendar-api",`Add coverage ${o} ${JSON.stringify(c)}`),i==null||i.set(o,c)}),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(Object.fromEntries(i)))}clearStorage(){localStorage.removeItem(this.STORAGE_KEY)}}class Bm{constructor(e,n){u(this,"start"),u(this,"end"),this.start=e,this.end=n}isIn(e,n){let r=rn.toNumber(n,e);return this.start.toNumber()<=r&&this.end.toNumber()>=r}getRange(){let e=this.start.year,n=this.start.month,r=[];do r.push(new rn(e,n)),n++,n==12&&(n=0,e++);while(rn.toNumber(e,n)<=this.end.toNumber());return r}}class rn{constructor(e,n){u(this,"month"),u(this,"year"),this.year=e,this.month=n}toNumber(){return rn.toNumber(this.year,this.month)}static fromDate(e){return new rn(e.getFullYear(),e.getMonth())}static toNumber(e,n){return e*12+n}}const ds=t=>{const e=t.month+1;return new Date(t.year+"-"+(e<10?"0"+e:e)+"-01")},uD=(t,e,n,r)=>t===n&&Math.abs(e-r)===1||Math.abs(t-n)===1&&Math.abs(e-r)===11,dD=(t,e)=>e.filter(n=>n.year===t.year&&n.month===t.month).length>0,Fm=t=>{const e=(a,i)=>rn.toNumber(a.year,a.month)-rn.toNumber(i.year,i.month);t.sort(e);let n=[];if(t.length===0)return n;let r;return t.forEach((a,i)=>{i===0?r={userId:[a.userId],month:a.month,year:a.year}:a.month===r.month&&a.year===r.year?r.userId.push(a.userId):(n.push(r),r={userId:[a.userId],month:a.month,year:a.year}),i===t.length-1&&n.push(r)}),n};function zm(t,e,n){return{userId:t.userId,start:{year:e.year,month:e.month},end:{year:n.month==11?n.year+1:n.year,month:n.month==11?0:n.month+1}}}const Vm=t=>{let e=[];if(t.length===0)return e;let n,r;return t.sort((a,i)=>a.year<i.year?-1:a.year>i.year||a.month>i.month?1:a.month<i.month?-1:0),t.forEach((a,i)=>{if(i===0)n=a,r=a;else if(uD(a.year,a.month,r.year,r.month))r=a;else{let o=zm(a,n,r);e.push(o),n=a,r=a}if(i===t.length-1){let o=zm(a,n,r);e.push(o)}}),e};class hD extends Fe{constructor(e,n,r,a){super("externalEvent",a),u(this,"REPOSITORY_NAME","ExternalAppointment"),u(this,"externalEventDb"),u(this,"eventService"),u(this,"eventMetaStorage"),this.externalEventDb=new cD(n),this.eventService=new Lc(r,e,a),this.eventMetaStorage=new Rc}async getEvent(e,n,r,a,i=pe.LOCAL_THEN_REMOTE){return this.getById(e,i,{account:n,eventId:r,timeZone:a})}async getEvents(e,n,r,a,i,o,l=pe.REMOTE_THEN_LOCAL){return this.list(e,l,{userIds:r,account:n,start:a,end:i,timeZone:o})}async getIcs(e,n){return this.eventService.getICS(e,n)}async remoteList(e,n){if(!n.userIds||!n.start||!n.end||!n.account)throw Error("Invalid state:"+JSON.stringify(n));return(await this.eventService.getExternalAppointments(e,n.account,n.userIds.join(","),ln(n.start,n.timeZone),ln(n.end,n.timeZone),n.timeZone)).map(r=>Pt.fromEventDto(r,sc.EXTERNAL))}async remoteGet(e,n){throw new Error("not implemented")}async remoteCreate(e,n,r){throw new Error("not implemented")}async remoteUpdate(e,n,r){throw new Error("not implemented")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){if(!e.userIds||!e.start||!e.end)throw Error("Invalid state:"+JSON.stringify(e));return this.externalEventDb.getAllEvents(e.userIds,e.start,e.end)}async localGet(e){if(!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));return this.externalEventDb.getById(e.eventId)}async localBulkSave(e,n){await this.externalEventDb.saveAllEvents(n)}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}}class fD{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(Li,e)}async getAllEvents(e,n,r,a){return this.indexedDb.getAllValue(Li)}async getById(e){return this.indexedDb.getValue(Li,e)}async drop(){await this.indexedDb.deleteAllValues(Li)}}class mD extends Fe{constructor(e,n,r,a){super("icsEvent"),u(this,"REPOSITORY_NAME","IcsAppointment"),u(this,"icsEventDb"),u(this,"eventService"),u(this,"eventMetaStorage"),this.icsEventDb=new fD(n),this.eventService=new Lc(r,e,a),this.eventMetaStorage=new Rc}async getEvent(e,n,r,a=pe.LOCAL_ONLY){return this.getById(e,a,{eventId:n,timeZone:r})}async getEvents(e,n,r,a,i){return this.list(e,pe.LOCAL_ONLY,{userIds:n.join(","),start:r,end:a,timeZone:i})}async replaceEvents(e){await this.localDrop(),await this.localBulkSave({},e)}async remoteList(e,n){throw new Error("not implemented")}async remoteGet(e,n){throw new Error("not implemented")}async remoteCreate(e,n,r){throw new Error("not implemented")}async remoteUpdate(e,n,r){throw new Error("not implemented")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){if(!e.userIds||!e.start||!e.end)throw Error("Invalid state:"+JSON.stringify(e));return this.icsEventDb.getAllEvents(e.userIds,e.start,e.end,e.timeZone)}async localGet(e){if(!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));return this.icsEventDb.getById(e.eventId)}async localBulkSave(e,n){await this.icsEventDb.saveAllEvents(n)}async localDrop(){await this.icsEventDb.drop()}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}}class pD{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(er,e)}async saveEvent(e){await this.indexedDb.putValue(er,e)}async deleteEvent(e){await this.indexedDb.deleteValue(er,e)}async deleteByEventIds(e){await this.indexedDb.deleteValues(er,e)}async getAllEvents(e,n,r,a){return(await this.indexedDb.getAllValue(er)||[]).filter(i=>{var o;return e===void 0||((o=i.owner)==null?void 0:o.userName)===e}).filter(i=>(r===void 0||i.start.getTime()>=r.getTime())&&(a===void 0||i.end.getTime()<=a.getTime())).filter(i=>{var o,l,c;const d=n===void 0||n.includes(((o=i.staff)==null?void 0:o.userId)||"")||((l=i.staff)==null?void 0:l.userId)==="0"&&n.includes(i.staff.id);return((c=i.staff)==null?void 0:c.userId)!==void 0&&d})}async getFirstEventByChildEventId(e){const n=(await this.indexedDb.getAllValue(er)||[]).filter(r=>{var a;return(a=r.events)==null?void 0:a.some(i=>i.id===e)});return(n==null?void 0:n.length)>0?n[0]:void 0}async getById(e){return this.indexedDb.getValue(er,e)}async drop(){await this.indexedDb.deleteAllValues(er)}}var gD=Object.defineProperty,yD=Object.getOwnPropertyDescriptor,Mc=(t,e,n,r)=>{for(var a=r>1?void 0:r?yD(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&gD(e,n,a),a};let Fi=class extends Fe{constructor(t,e,n,r){super("event",r),u(this,"REPOSITORY_NAME","Appointment"),u(this,"eventDb"),u(this,"eventService"),u(this,"eventMetaStorage"),this.eventDb=new pD(e),this.eventService=new Lc(n,t,r),this.eventMetaStorage=new Rc}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async createEvent(t,e,n,r,a,i){const o=await this.create(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,timeZone:a,force:i},r);return Ti.publish(He.CREATE,{account:e,companyId:n,event:o}),o}async updateEvent(t,e,n,r,a,i){let o=await this.update(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,timeZone:a,force:i},r);return Ti.publish(He.UPDATE,{account:e,companyId:n,event:o}),o}async updateEventStatus(t,e,n,r,a){let i=await this.remoteUpdateStatus(t,{account:e,companyId:n,eventId:r},a);return Ti.publish(He.UPDATE,{account:e,companyId:n,event:i}),i}async getEvent(t,e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(t,a,{eventId:n,showPersonal:r,account:e})}async getAllEvents(t,e,n,r,a,i,o,l,c,d,h=pe.LOCAL_THEN_REMOTE){let m=!0,f={results:[]};if(h===pe.REMOTE_ONLY)f=await this.remoteSyncList(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:l,showPersonal:i,showDeleted:o,fields:c,syncToken:d}),await this.localBulkSave({},f.results),m=!1;else if(h===pe.LOCAL_ONLY)f.results=await this.localList({userIds:n.join(","),account:e,start:r,end:a,showPersonal:i,showDeleted:o});else if(h==pe.REMOTE_THEN_LOCAL){const p=await this._syncListRemoteFirstThenLocal(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:l,showPersonal:i,showDeleted:o,fields:c,syncToken:d});f=p,m=p.local}else h==pe.LOCAL_THEN_REMOTE&&(f=await this.remoteSyncList(t,{userIds:n.join(","),account:e,start:r,end:a,timeZone:l,showPersonal:i,showDeleted:o,fields:c,syncToken:d}),await this.localBulkSave({},f.results),m=!1);return{local:m,...f}}async getEventWithCoverage(t,e,n,r,a,i,o,l,c,d=pe.LOCAL_THEN_REMOTE){var h,m;let f=!0,p=[],E=this.eventMetaStorage.getCoverage(e,n,r,a,this.logger);for(const k of E.local){(h=this.logger)==null||h.debug("js-calendar-api",`getAllEvents coverage local: ${JSON.stringify(k)}`);const T=await this.list(t,pe.LOCAL_THEN_REMOTE,{userIds:n.join(","),account:e,start:ds(k.start),end:ds(k.end),timeZone:l,showPersonal:i,showDeleted:o,fields:c});p=p.concat(T.results)}for(const k of E.remote){(m=this.logger)==null||m.debug("js-calendar-api",`getAllEvents coverage remote: ${JSON.stringify(k)}`);const T=await this.list(t,pe.REMOTE_THEN_LOCAL,{userIds:n.join(","),account:e,start:ds(k.start),end:ds(k.end),timeZone:l,showPersonal:i,showDeleted:o,fields:c});p=p.concat(T.results)}return f=E.remote.length===0,{local:f,results:p}}async deleteAllEvents(){return this.eventDb.drop()}async getExternalEvent(t,e,n,r,a,i){const o=ln(r,i),l=ln(a,i);return(await this.eventService.getExternalAppointments(t,e,n.join(","),o,l,i)).map(c=>Pt.fromEventDto(c,sc.EXTERNAL))}async remoteList(t,e){return(await this.remoteSyncList(t,e)).results}async remoteSyncList(t,e){if(!e.start||!e.end||!e.userIds||!e.account)throw Error("Invalid state:"+JSON.stringify(e));const n=ln(e.start,e.timeZone),r=ln(e.end,e.timeZone),a=await this.eventService.getAllEvents(t,e.account,e.userIds,n,r,e.showPersonal,e.showDeleted,e.fields,e.syncToken);return this.eventMetaStorage.saveCoverage(e.account,e.userIds.split(","),e.start,e.end,this.logger),{nextSyncToken:a.nextSyncToken,results:a.items.map(i=>Pt.fromEventDto(i))}}async remoteGet(t,e){if(!e.eventId||!e.account)throw Error("Invalid state:"+JSON.stringify(e));const n=await this.eventService.getById(t,e.account,e.eventId,e.showPersonal);return Pt.fromEventDto(n)}async remoteCreate(t,e,n){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));const r=Pt.toEventDto(n,e.timeZone),a=await this.eventService.createEvent(t,e.account,e.companyId,r,e.force||!1);return Pt.fromEventDto(a)}async remoteUpdate(t,e,n){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));let r=Pt.toEventDto(n,e.timeZone);const a=await this.eventService.updateEvent(t,e.account,e.companyId,r,e.force);return Pt.fromEventDto(a)}async remoteUpdateStatus(t,e,n){if(!e.account||!e.companyId||!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const r=await this.eventService.updateEventStatus(t,e.account,e.companyId,e.eventId,n);return Pt.fromEventDto(r)}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){var e;return this.eventDb.getAllEvents(t.account,(e=t.userIds)==null?void 0:e.split(","),t.start,t.end)}async localGet(t){if(!t.eventId)throw Error("Invalid state:"+JSON.stringify(t));return this.eventDb.getById(t.eventId)}async localBulkSave(t,e){await this.eventDb.saveAllEvents(e)}async localDelete(t){throw new Error("Method not implemented.")}async localBulkDelete(t){await this.eventDb.deleteByEventIds(t.map(e=>e.id||""))}async _syncListRemoteFirstThenLocal(t,e){var n,r;let a={local:!1,results:[]};try{const i=await this.remoteSyncList(t,e);a.results=i.results,a.nextSyncToken=i.nextSyncToken,await this.localBulkSave(e,a.results)}catch(i){(n=this.logger)==null||n.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,i);try{if(a.results=await this.localList(e),a.results===void 0||a.results.length===0)throw i}catch(o){throw(r=this.logger)==null||r.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,o),this.getError(o)}}return a}};Mc([Re.Unsubscribe()],Fi.prototype,"dispose",1),Mc([Re.Subscribe(He.DELETE)],Fi.prototype,"onCascadeDelete",1),Fi=Mc([Re.Subscriber({channel:ht})],Fi);class Um{constructor(e,n=Vf){u(this,"indexedDb"),u(this,"table"),this.indexedDb=e,this.table=n}async getAllUsers(){return this.indexedDb.getAllValue(this.table)}async getById(e){return this.indexedDb.getValue(this.table,e)}async saveAllUsers(e){await this.indexedDb.putBulkValue(this.table,e)}async drop(){return this.indexedDb.deleteAllValues(this.table)}async dropBulk(e){return this.indexedDb.deleteValues(this.table,e.map(n=>n.id))}}class Hm{constructor(e,n=Ff){u(this,"indexedDb"),u(this,"table"),this.indexedDb=e,this.table=n}async getAllTeams(){return await this.indexedDb.getAllValue(this.table)||[]}async saveAllTeams(e){await this.indexedDb.putBulkValue(this.table,e)}async getById(e){throw await this.indexedDb.getValue(this.table,e)}async deleteById(e){await this.getById(e),await this.indexedDb.deleteValue(this.table,e)}async drop(){await this.indexedDb.deleteAllValues(this.table)}}class vD extends Ue{async getAllUsers(e,n,r){const a=this.getAxiosConfig(e,n);a.params.userWithoutStaff=!0,a.params.defaultUsers=r;const i=this.instance.get("/api/2.1/scheduling/users",a);if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r){const a=this.getAxiosConfig(e,r);let i=`/api/2.1/scheduling/users/${n}`;a.params.userWithoutStaff=!0;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}var wD=Object.defineProperty,bD=Object.getOwnPropertyDescriptor,jm=(t,e,n,r)=>{for(var a=r>1?void 0:r?bD(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&wD(e,n,a),a};class hs extends Fe{constructor(e,n,r,a,i="user"){super(i,a),u(this,"userDb"),u(this,"teamDb"),u(this,"userService"),this.teamDb=this.initTeamDb(n),this.userDb=this.initUserDb(n),this.userService=new vD(r,e,a)}async getAllTeams(e,n){const r=await this.getAllUsers(e,n,pe.LOCAL_THEN_REMOTE);return{results:await this.teamDb.getAllTeams(),local:r.local}}async getUser(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{userId:n,organisation:r})}async remoteList(e,n){var r;const a=await this.userService.getAllUsers(e,n.organisation,n.defaultUsers),i=a.anonymousUsers.map(l=>{const c=Fr.fromUserDto(l);return c.anonymous=!0,c}).concat(a.users.map(l=>{const c=Fr.fromUserDto(l);return c.anonymous=!1,c})),o=(r=a.teams)==null?void 0:r.map(l=>Si.fromDto(l));return o&&await this.teamDb.saveAllTeams(o),i}async remoteGet(e,n){this.checkNullable(n);const r=await this.userService.getById(e,n.userId,n.organisation);return Fr.fromUserDto(r)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){return this.userDb.getAllUsers()}async localGet(e){return this.checkNullable(e),this.userDb.getById(e.userId)}async localBulkSave(e,n){await this.userDb.saveAllUsers(n)}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return this.userDb.dropBulk(e)}checkNullable(e){if(!e.userId)throw Error("Invalid state:"+JSON.stringify(e))}dispose(){}async onCascadeDelete(e,n,r,a){(r==tn||r==ht||r==br)&&(await this.cascadeDelete({},()=>!0),await this.teamDb.drop())}}jm([Re.Unsubscribe()],hs.prototype,"dispose",1),jm([Re.Subscribe(He.DELETE),Re.Subscribe(He.CREATE),Re.Subscribe(He.UPDATE)],hs.prototype,"onCascadeDelete",1);var _D=Object.defineProperty,ED=Object.getOwnPropertyDescriptor,DD=(t,e,n,r)=>{for(var a=r>1?void 0:r?ED(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&_D(e,n,a),a};let Pc=class extends hs{constructor(t,e,n,r){super(t,e,n,r,"user")}initTeamDb(t){return new Hm(t)}initUserDb(t){return new Um(t)}async getAllUsers(t,e,n=pe.LOCAL_THEN_REMOTE){return this.list(t,n,{organisation:e})}};Pc=DD([Re.Subscriber({channel:tn}),Re.Subscriber({channel:ht}),Re.Subscriber({channel:br})],Pc);var fs={exports:{}},Ym={exports:{}},Wm;function ms(){return Wm||(Wm=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(r){var a=n,i=a.lib,o=i.Base,l=i.WordArray,c=a.x64={};c.Word=o.extend({init:function(d,h){this.high=d,this.low=h}}),c.WordArray=o.extend({init:function(d,h){d=this.words=d||[],h!=r?this.sigBytes=h:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,h=d.length,m=[],f=0;f<h;f++){var p=d[f];m.push(p.high),m.push(p.low)}return l.create(m,this.sigBytes)},clone:function(){for(var d=o.clone.call(this),h=d.words=this.words.slice(0),m=h.length,f=0;f<m;f++)h[f]=h[f].clone();return d}})}(),n})}(Ym)),Ym.exports}var Gm={exports:{}},qm;function SD(){return qm||(qm=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,a=r.lib,i=a.WordArray,o=i.init,l=i.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var d=c.byteLength,h=[],m=0;m<d;m++)h[m>>>2]|=c[m]<<24-m%4*8;o.call(this,h,d)}else o.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Gm)),Gm.exports}var Km={exports:{}},Zm;function kD(){return Zm||(Zm=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(c){for(var d=c.words,h=c.sigBytes,m=[],f=0;f<h;f+=2){var p=d[f>>>2]>>>16-f%4*8&65535;m.push(String.fromCharCode(p))}return m.join("")},parse:function(c){for(var d=c.length,h=[],m=0;m<d;m++)h[m>>>1]|=c.charCodeAt(m)<<16-m%2*16;return i.create(h,d*2)}},o.Utf16LE={stringify:function(c){for(var d=c.words,h=c.sigBytes,m=[],f=0;f<h;f+=2){var p=l(d[f>>>2]>>>16-f%4*8&65535);m.push(String.fromCharCode(p))}return m.join("")},parse:function(c){for(var d=c.length,h=[],m=0;m<d;m++)h[m>>>1]|=l(c.charCodeAt(m)<<16-m%2*16);return i.create(h,d*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(Km)),Km.exports}var Jm={exports:{}},Xm;function Oa(){return Xm||(Xm=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,m=this._map;c.clamp();for(var f=[],p=0;p<h;p+=3)for(var E=d[p>>>2]>>>24-p%4*8&255,k=d[p+1>>>2]>>>24-(p+1)%4*8&255,T=d[p+2>>>2]>>>24-(p+2)%4*8&255,b=E<<16|k<<8|T,w=0;w<4&&p+w*.75<h;w++)f.push(m.charAt(b>>>6*(3-w)&63));var A=m.charAt(64);if(A)for(;f.length%4;)f.push(A);return f.join("")},parse:function(c){var d=c.length,h=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var f=0;f<h.length;f++)m[h.charCodeAt(f)]=f}var p=h.charAt(64);if(p){var E=c.indexOf(p);E!==-1&&(d=E)}return l(c,d,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,d,h){for(var m=[],f=0,p=0;p<d;p++)if(p%4){var E=h[c.charCodeAt(p-1)]<<p%4*2,k=h[c.charCodeAt(p)]>>>6-p%4*2,T=E|k;m[f>>>2]|=T<<24-f%4*8,f++}return i.create(m,f)}}(),n.enc.Base64})}(Jm)),Jm.exports}var Qm={exports:{}},ep;function ID(){return ep||(ep=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64url={stringify:function(c,d=!0){var h=c.words,m=c.sigBytes,f=d?this._safe_map:this._map;c.clamp();for(var p=[],E=0;E<m;E+=3)for(var k=h[E>>>2]>>>24-E%4*8&255,T=h[E+1>>>2]>>>24-(E+1)%4*8&255,b=h[E+2>>>2]>>>24-(E+2)%4*8&255,w=k<<16|T<<8|b,A=0;A<4&&E+A*.75<m;A++)p.push(f.charAt(w>>>6*(3-A)&63));var S=f.charAt(64);if(S)for(;p.length%4;)p.push(S);return p.join("")},parse:function(c,d=!0){var h=c.length,m=d?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<m.length;p++)f[m.charCodeAt(p)]=p}var E=m.charAt(64);if(E){var k=c.indexOf(E);k!==-1&&(h=k)}return l(c,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,d,h){for(var m=[],f=0,p=0;p<d;p++)if(p%4){var E=h[c.charCodeAt(p-1)]<<p%4*2,k=h[c.charCodeAt(p)]>>>6-p%4*2,T=E|k;m[f>>>2]|=T<<24-f%4*8,f++}return i.create(m,f)}}(),n.enc.Base64url})}(Qm)),Qm.exports}var tp={exports:{}},np;function xa(){return np||(np=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,l=i.Hasher,c=a.algo,d=[];(function(){for(var k=0;k<64;k++)d[k]=r.abs(r.sin(k+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,T){for(var b=0;b<16;b++){var w=T+b,A=k[w];k[w]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var S=this._hash.words,N=k[T+0],L=k[T+1],M=k[T+2],F=k[T+3],V=k[T+4],R=k[T+5],z=k[T+6],j=k[T+7],B=k[T+8],Z=k[T+9],Y=k[T+10],q=k[T+11],G=k[T+12],ne=k[T+13],oe=k[T+14],J=k[T+15],$=S[0],Q=S[1],ae=S[2],W=S[3];$=m($,Q,ae,W,N,7,d[0]),W=m(W,$,Q,ae,L,12,d[1]),ae=m(ae,W,$,Q,M,17,d[2]),Q=m(Q,ae,W,$,F,22,d[3]),$=m($,Q,ae,W,V,7,d[4]),W=m(W,$,Q,ae,R,12,d[5]),ae=m(ae,W,$,Q,z,17,d[6]),Q=m(Q,ae,W,$,j,22,d[7]),$=m($,Q,ae,W,B,7,d[8]),W=m(W,$,Q,ae,Z,12,d[9]),ae=m(ae,W,$,Q,Y,17,d[10]),Q=m(Q,ae,W,$,q,22,d[11]),$=m($,Q,ae,W,G,7,d[12]),W=m(W,$,Q,ae,ne,12,d[13]),ae=m(ae,W,$,Q,oe,17,d[14]),Q=m(Q,ae,W,$,J,22,d[15]),$=f($,Q,ae,W,L,5,d[16]),W=f(W,$,Q,ae,z,9,d[17]),ae=f(ae,W,$,Q,q,14,d[18]),Q=f(Q,ae,W,$,N,20,d[19]),$=f($,Q,ae,W,R,5,d[20]),W=f(W,$,Q,ae,Y,9,d[21]),ae=f(ae,W,$,Q,J,14,d[22]),Q=f(Q,ae,W,$,V,20,d[23]),$=f($,Q,ae,W,Z,5,d[24]),W=f(W,$,Q,ae,oe,9,d[25]),ae=f(ae,W,$,Q,F,14,d[26]),Q=f(Q,ae,W,$,B,20,d[27]),$=f($,Q,ae,W,ne,5,d[28]),W=f(W,$,Q,ae,M,9,d[29]),ae=f(ae,W,$,Q,j,14,d[30]),Q=f(Q,ae,W,$,G,20,d[31]),$=p($,Q,ae,W,R,4,d[32]),W=p(W,$,Q,ae,B,11,d[33]),ae=p(ae,W,$,Q,q,16,d[34]),Q=p(Q,ae,W,$,oe,23,d[35]),$=p($,Q,ae,W,L,4,d[36]),W=p(W,$,Q,ae,V,11,d[37]),ae=p(ae,W,$,Q,j,16,d[38]),Q=p(Q,ae,W,$,Y,23,d[39]),$=p($,Q,ae,W,ne,4,d[40]),W=p(W,$,Q,ae,N,11,d[41]),ae=p(ae,W,$,Q,F,16,d[42]),Q=p(Q,ae,W,$,z,23,d[43]),$=p($,Q,ae,W,Z,4,d[44]),W=p(W,$,Q,ae,G,11,d[45]),ae=p(ae,W,$,Q,J,16,d[46]),Q=p(Q,ae,W,$,M,23,d[47]),$=E($,Q,ae,W,N,6,d[48]),W=E(W,$,Q,ae,j,10,d[49]),ae=E(ae,W,$,Q,oe,15,d[50]),Q=E(Q,ae,W,$,R,21,d[51]),$=E($,Q,ae,W,G,6,d[52]),W=E(W,$,Q,ae,F,10,d[53]),ae=E(ae,W,$,Q,Y,15,d[54]),Q=E(Q,ae,W,$,L,21,d[55]),$=E($,Q,ae,W,B,6,d[56]),W=E(W,$,Q,ae,J,10,d[57]),ae=E(ae,W,$,Q,z,15,d[58]),Q=E(Q,ae,W,$,ne,21,d[59]),$=E($,Q,ae,W,V,6,d[60]),W=E(W,$,Q,ae,q,10,d[61]),ae=E(ae,W,$,Q,M,15,d[62]),Q=E(Q,ae,W,$,Z,21,d[63]),S[0]=S[0]+$|0,S[1]=S[1]+Q|0,S[2]=S[2]+ae|0,S[3]=S[3]+W|0},_doFinalize:function(){var k=this._data,T=k.words,b=this._nDataBytes*8,w=k.sigBytes*8;T[w>>>5]|=128<<24-w%32;var A=r.floor(b/4294967296),S=b;T[(w+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T[(w+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,k.sigBytes=(T.length+1)*4,this._process();for(var N=this._hash,L=N.words,M=0;M<4;M++){var F=L[M];L[M]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}return N},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function m(k,T,b,w,A,S,N){var L=k+(T&b|~T&w)+A+N;return(L<<S|L>>>32-S)+T}function f(k,T,b,w,A,S,N){var L=k+(T&w|b&~w)+A+N;return(L<<S|L>>>32-S)+T}function p(k,T,b,w,A,S,N){var L=k+(T^b^w)+A+N;return(L<<S|L>>>32-S)+T}function E(k,T,b,w,A,S,N){var L=k+(b^(T|~w))+A+N;return(L<<S|L>>>32-S)+T}a.MD5=l._createHelper(h),a.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(tp)),tp.exports}var rp={exports:{}},ap;function $c(){return ap||(ap=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.Hasher,l=r.algo,c=[],d=l.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,m){for(var f=this._hash.words,p=f[0],E=f[1],k=f[2],T=f[3],b=f[4],w=0;w<80;w++){if(w<16)c[w]=h[m+w]|0;else{var A=c[w-3]^c[w-8]^c[w-14]^c[w-16];c[w]=A<<1|A>>>31}var S=(p<<5|p>>>27)+b+c[w];w<20?S+=(E&k|~E&T)+1518500249:w<40?S+=(E^k^T)+1859775393:w<60?S+=(E&k|E&T|k&T)-1894007588:S+=(E^k^T)-899497514,b=T,T=k,k=E<<30|E>>>2,E=p,p=S}f[0]=f[0]+p|0,f[1]=f[1]+E|0,f[2]=f[2]+k|0,f[3]=f[3]+T|0,f[4]=f[4]+b|0},_doFinalize:function(){var h=this._data,m=h.words,f=this._nDataBytes*8,p=h.sigBytes*8;return m[p>>>5]|=128<<24-p%32,m[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),m[(p+64>>>9<<4)+15]=f,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=o._createHelper(d),r.HmacSHA1=o._createHmacHelper(d)}(),n.SHA1})}(rp)),rp.exports}var ip={exports:{}},op;function CD(){return op||(op=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Lo.exports)})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.algo,l=o.SHA256,c=o.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(c),r.HmacSHA224=l._createHmacHelper(c)}(),n.SHA224})}(ip)),ip.exports}var sp={exports:{}},lp;function cp(){return lp||(lp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),ms())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.Hasher,o=r.x64,l=o.Word,c=o.WordArray,d=r.algo;function h(){return l.create.apply(l,arguments)}var m=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],f=[];(function(){for(var E=0;E<80;E++)f[E]=h()})();var p=d.SHA512=i.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(E,k){for(var T=this._hash.words,b=T[0],w=T[1],A=T[2],S=T[3],N=T[4],L=T[5],M=T[6],F=T[7],V=b.high,R=b.low,z=w.high,j=w.low,B=A.high,Z=A.low,Y=S.high,q=S.low,G=N.high,ne=N.low,oe=L.high,J=L.low,$=M.high,Q=M.low,ae=F.high,W=F.low,Ee=V,_e=R,Te=z,De=j,Ne=B,Ae=Z,te=Y,ue=q,_=G,g=ne,x=oe,X=J,ce=$,me=Q,K=ae,v=W,O=0;O<80;O++){var y,D,I=f[O];if(O<16)D=I.high=E[k+O*2]|0,y=I.low=E[k+O*2+1]|0;else{var C=f[O-15],P=C.high,H=C.low,ee=(P>>>1|H<<31)^(P>>>8|H<<24)^P>>>7,re=(H>>>1|P<<31)^(H>>>8|P<<24)^(H>>>7|P<<25),se=f[O-2],le=se.high,he=se.low,ke=(le>>>19|he<<13)^(le<<3|he>>>29)^le>>>6,Ce=(he>>>19|le<<13)^(he<<3|le>>>29)^(he>>>6|le<<26),Oe=f[O-7],ie=Oe.high,de=Oe.low,be=f[O-16],U=be.high,fe=be.low;y=re+de,D=ee+ie+(y>>>0<re>>>0?1:0),y=y+Ce,D=D+ke+(y>>>0<Ce>>>0?1:0),y=y+fe,D=D+U+(y>>>0<fe>>>0?1:0),I.high=D,I.low=y}var ge=_&x^~_&ce,Me=g&X^~g&me,ze=Ee&Te^Ee&Ne^Te&Ne,et=_e&De^_e&Ae^De&Ae,Se=(Ee>>>28|_e<<4)^(Ee<<30|_e>>>2)^(Ee<<25|_e>>>7),Qe=(_e>>>28|Ee<<4)^(_e<<30|Ee>>>2)^(_e<<25|Ee>>>7),zt=(_>>>14|g<<18)^(_>>>18|g<<14)^(_<<23|g>>>9),Nt=(g>>>14|_<<18)^(g>>>18|_<<14)^(g<<23|_>>>9),it=m[O],Tt=it.high,pt=it.low,gt=v+Nt,bt=K+zt+(gt>>>0<v>>>0?1:0),gt=gt+Me,bt=bt+ge+(gt>>>0<Me>>>0?1:0),gt=gt+pt,bt=bt+Tt+(gt>>>0<pt>>>0?1:0),gt=gt+y,bt=bt+D+(gt>>>0<y>>>0?1:0),Ar=Qe+et,si=Se+ze+(Ar>>>0<Qe>>>0?1:0);K=ce,v=me,ce=x,me=X,x=_,X=g,g=ue+gt|0,_=te+bt+(g>>>0<ue>>>0?1:0)|0,te=Ne,ue=Ae,Ne=Te,Ae=De,Te=Ee,De=_e,_e=gt+Ar|0,Ee=bt+si+(_e>>>0<gt>>>0?1:0)|0}R=b.low=R+_e,b.high=V+Ee+(R>>>0<_e>>>0?1:0),j=w.low=j+De,w.high=z+Te+(j>>>0<De>>>0?1:0),Z=A.low=Z+Ae,A.high=B+Ne+(Z>>>0<Ae>>>0?1:0),q=S.low=q+ue,S.high=Y+te+(q>>>0<ue>>>0?1:0),ne=N.low=ne+g,N.high=G+_+(ne>>>0<g>>>0?1:0),J=L.low=J+X,L.high=oe+x+(J>>>0<X>>>0?1:0),Q=M.low=Q+me,M.high=$+ce+(Q>>>0<me>>>0?1:0),W=F.low=W+v,F.high=ae+K+(W>>>0<v>>>0?1:0)},_doFinalize:function(){var E=this._data,k=E.words,T=this._nDataBytes*8,b=E.sigBytes*8;k[b>>>5]|=128<<24-b%32,k[(b+128>>>10<<5)+30]=Math.floor(T/4294967296),k[(b+128>>>10<<5)+31]=T,E.sigBytes=k.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var E=i.clone.call(this);return E._hash=this._hash.clone(),E},blockSize:1024/32});r.SHA512=i._createHelper(p),r.HmacSHA512=i._createHmacHelper(p)}(),n.SHA512})}(sp)),sp.exports}var up={exports:{}},dp;function ND(){return dp||(dp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),ms(),cp())})(Ve,function(n){return function(){var r=n,a=r.x64,i=a.Word,o=a.WordArray,l=r.algo,c=l.SHA512,d=l.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var h=c._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=c._createHelper(d),r.HmacSHA384=c._createHmacHelper(d)}(),n.SHA384})}(up)),up.exports}var hp={exports:{}},fp;function TD(){return fp||(fp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),ms())})(Ve,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,l=i.Hasher,c=a.x64,d=c.Word,h=a.algo,m=[],f=[],p=[];(function(){for(var T=1,b=0,w=0;w<24;w++){m[T+5*b]=(w+1)*(w+2)/2%64;var A=b%5,S=(2*T+3*b)%5;T=A,b=S}for(var T=0;T<5;T++)for(var b=0;b<5;b++)f[T+5*b]=b+(2*T+3*b)%5*5;for(var N=1,L=0;L<24;L++){for(var M=0,F=0,V=0;V<7;V++){if(N&1){var R=(1<<V)-1;R<32?F^=1<<R:M^=1<<R-32}N&128?N=N<<1^113:N<<=1}p[L]=d.create(M,F)}})();var E=[];(function(){for(var T=0;T<25;T++)E[T]=d.create()})();var k=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var T=this._state=[],b=0;b<25;b++)T[b]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(T,b){for(var w=this._state,A=this.blockSize/2,S=0;S<A;S++){var N=T[b+2*S],L=T[b+2*S+1];N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360;var M=w[S];M.high^=L,M.low^=N}for(var F=0;F<24;F++){for(var V=0;V<5;V++){for(var R=0,z=0,j=0;j<5;j++){var M=w[V+5*j];R^=M.high,z^=M.low}var B=E[V];B.high=R,B.low=z}for(var V=0;V<5;V++)for(var Z=E[(V+4)%5],Y=E[(V+1)%5],q=Y.high,G=Y.low,R=Z.high^(q<<1|G>>>31),z=Z.low^(G<<1|q>>>31),j=0;j<5;j++){var M=w[V+5*j];M.high^=R,M.low^=z}for(var ne=1;ne<25;ne++){var R,z,M=w[ne],oe=M.high,J=M.low,$=m[ne];$<32?(R=oe<<$|J>>>32-$,z=J<<$|oe>>>32-$):(R=J<<$-32|oe>>>64-$,z=oe<<$-32|J>>>64-$);var Q=E[f[ne]];Q.high=R,Q.low=z}var ae=E[0],W=w[0];ae.high=W.high,ae.low=W.low;for(var V=0;V<5;V++)for(var j=0;j<5;j++){var ne=V+5*j,M=w[ne],Ee=E[ne],_e=E[(V+1)%5+5*j],Te=E[(V+2)%5+5*j];M.high=Ee.high^~_e.high&Te.high,M.low=Ee.low^~_e.low&Te.low}var M=w[0],De=p[F];M.high^=De.high,M.low^=De.low}},_doFinalize:function(){var T=this._data,b=T.words;this._nDataBytes*8;var w=T.sigBytes*8,A=this.blockSize*32;b[w>>>5]|=1<<24-w%32,b[(r.ceil((w+1)/A)*A>>>5)-1]|=128,T.sigBytes=b.length*4,this._process();for(var S=this._state,N=this.cfg.outputLength/8,L=N/8,M=[],F=0;F<L;F++){var V=S[F],R=V.high,z=V.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,M.push(z),M.push(R)}return new o.init(M,N)},clone:function(){for(var T=l.clone.call(this),b=T._state=this._state.slice(0),w=0;w<25;w++)b[w]=b[w].clone();return T}});a.SHA3=l._createHelper(k),a.HmacSHA3=l._createHmacHelper(k)}(Math),n.SHA3})}(hp)),hp.exports}var mp={exports:{}},pp;function AD(){return pp||(pp=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){/** @preserve
50
42
  (c) 2012 by Cédric Mesnil. All rights reserved.
51
43
 
52
44
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -55,8 +47,31 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placehold
55
47
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
56
48
 
57
49
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58
- */return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),w=o.create([0,1518500249,1859775393,2400959708,2840853838]),I=o.create([1352829926,1548603684,1836072691,2053994217,0]),N=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,z){for(var Y=0;Y<16;Y++){var Q=z+Y,B=P[Q];P[Q]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var W=this._hash.words,ne=w.words,R=I.words,V=c.words,G=h.words,U=x.words,q=y.words,Z,se,ie,F,ee,re,K,_e,Ie,Me;re=Z=W[0],K=se=W[1],_e=ie=W[2],Ie=F=W[3],Me=ee=W[4];for(var be,Y=0;Y<80;Y+=1)be=Z+P[z+V[Y]]|0,Y<16?be+=k(se,ie,F)+ne[0]:Y<32?be+=S(se,ie,F)+ne[1]:Y<48?be+=E(se,ie,F)+ne[2]:Y<64?be+=A(se,ie,F)+ne[3]:be+=D(se,ie,F)+ne[4],be=be|0,be=T(be,U[Y]),be=be+ee|0,Z=ee,ee=F,F=T(ie,10),ie=se,se=be,be=re+P[z+G[Y]]|0,Y<16?be+=D(K,_e,Ie)+R[0]:Y<32?be+=A(K,_e,Ie)+R[1]:Y<48?be+=E(K,_e,Ie)+R[2]:Y<64?be+=S(K,_e,Ie)+R[3]:be+=k(K,_e,Ie)+R[4],be=be|0,be=T(be,q[Y]),be=be+Me|0,re=Me,Me=Ie,Ie=T(_e,10),_e=K,K=be;be=W[1]+ie+Ie|0,W[1]=W[2]+F+Me|0,W[2]=W[3]+ee+re|0,W[3]=W[4]+Z+K|0,W[4]=W[0]+se+_e|0,W[0]=be},_doFinalize:function(){var P=this._data,z=P.words,Y=this._nDataBytes*8,Q=P.sigBytes*8;z[Q>>>5]|=128<<24-Q%32,z[(Q+64>>>9<<4)+14]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,P.sigBytes=(z.length+1)*4,this._process();for(var B=this._hash,W=B.words,ne=0;ne<5;ne++){var R=W[ne];W[ne]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return B},clone:function(){var P=s.clone.call(this);return P._hash=this._hash.clone(),P}});function k(P,z,Y){return P^z^Y}function S(P,z,Y){return P&z|~P&Y}function E(P,z,Y){return(P|~z)^Y}function A(P,z,Y){return P&Y|z&~Y}function D(P,z,Y){return P^(z|~Y)}function T(P,z){return P<<z|P>>>32-z}a.RIPEMD160=s._createHelper(N),a.HmacRIPEMD160=s._createHmacHelper(N)}(),n.RIPEMD160})}(ou)),ou.exports}var lu={exports:{}},cu;function Hi(){return cu||(cu=1,function(t,e){(function(n,r){t.exports=r(Be())})(Le,function(n){(function(){var r=n,a=r.lib,i=a.Base,o=r.enc,s=o.Utf8,l=r.algo;l.HMAC=i.extend({init:function(c,h){c=this._hasher=new c.init,typeof h=="string"&&(h=s.parse(h));var x=c.blockSize,y=x*4;h.sigBytes>y&&(h=c.finalize(h)),h.clamp();for(var w=this._oKey=h.clone(),I=this._iKey=h.clone(),N=w.words,k=I.words,S=0;S<x;S++)N[S]^=1549556828,k[S]^=909522486;w.sigBytes=I.sigBytes=y,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var h=this._hasher,x=h.finalize(c);h.reset();var y=h.finalize(this._oKey.clone().concat(x));return y}})})()})}(lu)),lu.exports}var uu={exports:{}},du;function N1(){return du||(du=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Vi(),Hi())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,s=r.algo,l=s.SHA1,c=s.HMAC,h=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,y){for(var w=this.cfg,I=c.create(w.hasher,x),N=o.create(),k=o.create([1]),S=N.words,E=k.words,A=w.keySize,D=w.iterations;S.length<A;){var T=I.update(y).finalize(k);I.reset();for(var P=T.words,z=P.length,Y=T,Q=1;Q<D;Q++){Y=I.finalize(Y),I.reset();for(var B=Y.words,W=0;W<z;W++)P[W]^=B[W]}N.concat(T),E[0]++}return N.sigBytes=A*4,N}});r.PBKDF2=function(x,y,w){return h.create(w).compute(x,y)}}(),n.PBKDF2})}(uu)),uu.exports}var mu={exports:{}},hu;function Nn(){return hu||(hu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Vi(),Hi())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,x){for(var y,w=this.cfg,I=w.hasher.create(),N=o.create(),k=N.words,S=w.keySize,E=w.iterations;k.length<S;){y&&I.update(y),y=I.update(h).finalize(x),I.reset();for(var A=1;A<E;A++)y=I.finalize(y),I.reset();N.concat(y)}return N.sigBytes=S*4,N}});r.EvpKDF=function(h,x,y){return c.create(y).compute(h,x)}}(),n.EvpKDF})}(mu)),mu.exports}var fu={exports:{}},pu;function ht(){return pu||(pu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Nn())})(Le,function(n){n.lib.Cipher||function(r){var a=n,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var h=c.Base64,x=a.algo,y=x.EvpKDF,w=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(B,W){return this.create(this._ENC_XFORM_MODE,B,W)},createDecryptor:function(B,W){return this.create(this._DEC_XFORM_MODE,B,W)},init:function(B,W,ne){this.cfg=this.cfg.extend(ne),this._xformMode=B,this._key=W,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var W=this._doFinalize();return W},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(W){return typeof W=="string"?Q:P}return function(W){return{encrypt:function(ne,R,V){return B(R).encrypt(W,ne,R,V)},decrypt:function(ne,R,V){return B(R).decrypt(W,ne,R,V)}}}}()});i.StreamCipher=w.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var I=a.mode={},N=i.BlockCipherMode=o.extend({createEncryptor:function(B,W){return this.Encryptor.create(B,W)},createDecryptor:function(B,W){return this.Decryptor.create(B,W)},init:function(B,W){this._cipher=B,this._iv=W}}),k=I.CBC=function(){var B=N.extend();B.Encryptor=B.extend({processBlock:function(ne,R){var V=this._cipher,G=V.blockSize;W.call(this,ne,R,G),V.encryptBlock(ne,R),this._prevBlock=ne.slice(R,R+G)}}),B.Decryptor=B.extend({processBlock:function(ne,R){var V=this._cipher,G=V.blockSize,U=ne.slice(R,R+G);V.decryptBlock(ne,R),W.call(this,ne,R,G),this._prevBlock=U}});function W(ne,R,V){var G,U=this._iv;U?(G=U,this._iv=r):G=this._prevBlock;for(var q=0;q<V;q++)ne[R+q]^=G[q]}return B}(),S=a.pad={},E=S.Pkcs7={pad:function(B,W){for(var ne=W*4,R=ne-B.sigBytes%ne,V=R<<24|R<<16|R<<8|R,G=[],U=0;U<R;U+=4)G.push(V);var q=s.create(G,R);B.concat(q)},unpad:function(B){var W=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=W}};i.BlockCipher=w.extend({cfg:w.cfg.extend({mode:k,padding:E}),reset:function(){var B;w.reset.call(this);var W=this.cfg,ne=W.iv,R=W.mode;this._xformMode==this._ENC_XFORM_MODE?B=R.createEncryptor:(B=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,ne&&ne.words):(this._mode=B.call(R,this,ne&&ne.words),this._mode.__creator=B)},_doProcessBlock:function(B,W){this._mode.processBlock(B,W)},_doFinalize:function(){var B,W=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(W.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),W.unpad(B)),B},blockSize:128/32});var A=i.CipherParams=o.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),D=a.format={},T=D.OpenSSL={stringify:function(B){var W,ne=B.ciphertext,R=B.salt;return R?W=s.create([1398893684,1701076831]).concat(R).concat(ne):W=ne,W.toString(h)},parse:function(B){var W,ne=h.parse(B),R=ne.words;return R[0]==1398893684&&R[1]==1701076831&&(W=s.create(R.slice(2,4)),R.splice(0,4),ne.sigBytes-=16),A.create({ciphertext:ne,salt:W})}},P=i.SerializableCipher=o.extend({cfg:o.extend({format:T}),encrypt:function(B,W,ne,R){R=this.cfg.extend(R);var V=B.createEncryptor(ne,R),G=V.finalize(W),U=V.cfg;return A.create({ciphertext:G,key:ne,iv:U.iv,algorithm:B,mode:U.mode,padding:U.padding,blockSize:B.blockSize,formatter:R.format})},decrypt:function(B,W,ne,R){R=this.cfg.extend(R),W=this._parse(W,R.format);var V=B.createDecryptor(ne,R).finalize(W.ciphertext);return V},_parse:function(B,W){return typeof B=="string"?W.parse(B,this):B}}),z=a.kdf={},Y=z.OpenSSL={execute:function(B,W,ne,R){R||(R=s.random(64/8));var V=y.create({keySize:W+ne}).compute(B,R),G=s.create(V.words.slice(W),ne*4);return V.sigBytes=W*4,A.create({key:V,iv:G,salt:R})}},Q=i.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:Y}),encrypt:function(B,W,ne,R){R=this.cfg.extend(R);var V=R.kdf.execute(ne,B.keySize,B.ivSize);R.iv=V.iv;var G=P.encrypt.call(this,B,W,V.key,R);return G.mixIn(V),G},decrypt:function(B,W,ne,R){R=this.cfg.extend(R),W=this._parse(W,R.format);var V=R.kdf.execute(ne,B.keySize,B.ivSize,W.salt);R.iv=V.iv;var G=P.decrypt.call(this,B,W,V.key,R);return G}})}()})}(fu)),fu.exports}var gu={exports:{}},vu;function C1(){return vu||(vu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=c}});function a(i,o,s,l){var c,h=this._iv;h?(c=h.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var x=0;x<s;x++)i[o+x]^=c[x]}return r}(),n.mode.CFB})}(gu)),gu.exports}var yu={exports:{}},bu;function A1(){return bu||(bu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=this._iv,h=this._counter;c&&(h=this._counter=c.slice(0),this._iv=void 0);var x=h.slice(0);s.encryptBlock(x,0),h[l-1]=h[l-1]+1|0;for(var y=0;y<l;y++)i[o+y]^=x[y]}});return r.Decryptor=a,r}(),n.mode.CTR})}(yu)),yu.exports}var Eu={exports:{}},xu;function T1(){return xu||(xu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){/** @preserve
50
+ */return function(r){var a=n,i=a.lib,o=i.WordArray,l=i.Hasher,c=a.algo,d=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=o.create([0,1518500249,1859775393,2400959708,2840853838]),E=o.create([1352829926,1548603684,1836072691,2053994217,0]),k=c.RIPEMD160=l.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(L,M){for(var F=0;F<16;F++){var V=M+F,R=L[V];L[V]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var z=this._hash.words,j=p.words,B=E.words,Z=d.words,Y=h.words,q=m.words,G=f.words,ne,oe,J,$,Q,ae,W,Ee,_e,Te;ae=ne=z[0],W=oe=z[1],Ee=J=z[2],_e=$=z[3],Te=Q=z[4];for(var De,F=0;F<80;F+=1)De=ne+L[M+Z[F]]|0,F<16?De+=T(oe,J,$)+j[0]:F<32?De+=b(oe,J,$)+j[1]:F<48?De+=w(oe,J,$)+j[2]:F<64?De+=A(oe,J,$)+j[3]:De+=S(oe,J,$)+j[4],De=De|0,De=N(De,q[F]),De=De+Q|0,ne=Q,Q=$,$=N(J,10),J=oe,oe=De,De=ae+L[M+Y[F]]|0,F<16?De+=S(W,Ee,_e)+B[0]:F<32?De+=A(W,Ee,_e)+B[1]:F<48?De+=w(W,Ee,_e)+B[2]:F<64?De+=b(W,Ee,_e)+B[3]:De+=T(W,Ee,_e)+B[4],De=De|0,De=N(De,G[F]),De=De+Te|0,ae=Te,Te=_e,_e=N(Ee,10),Ee=W,W=De;De=z[1]+J+_e|0,z[1]=z[2]+$+Te|0,z[2]=z[3]+Q+ae|0,z[3]=z[4]+ne+W|0,z[4]=z[0]+oe+Ee|0,z[0]=De},_doFinalize:function(){var L=this._data,M=L.words,F=this._nDataBytes*8,V=L.sigBytes*8;M[V>>>5]|=128<<24-V%32,M[(V+64>>>9<<4)+14]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,L.sigBytes=(M.length+1)*4,this._process();for(var R=this._hash,z=R.words,j=0;j<5;j++){var B=z[j];z[j]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return R},clone:function(){var L=l.clone.call(this);return L._hash=this._hash.clone(),L}});function T(L,M,F){return L^M^F}function b(L,M,F){return L&M|~L&F}function w(L,M,F){return(L|~M)^F}function A(L,M,F){return L&F|M&~F}function S(L,M,F){return L^(M|~F)}function N(L,M){return L<<M|L>>>32-M}a.RIPEMD160=l._createHelper(k),a.HmacRIPEMD160=l._createHmacHelper(k)}(),n.RIPEMD160})}(mp)),mp.exports}var gp={exports:{}},yp;function Bc(){return yp||(yp=1,function(t,e){(function(n,r){t.exports=r(Ke())})(Ve,function(n){(function(){var r=n,a=r.lib,i=a.Base,o=r.enc,l=o.Utf8,c=r.algo;c.HMAC=i.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var m=d.blockSize,f=m*4;h.sigBytes>f&&(h=d.finalize(h)),h.clamp();for(var p=this._oKey=h.clone(),E=this._iKey=h.clone(),k=p.words,T=E.words,b=0;b<m;b++)k[b]^=1549556828,T[b]^=909522486;p.sigBytes=E.sigBytes=f,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var h=this._hasher,m=h.finalize(d);h.reset();var f=h.finalize(this._oKey.clone().concat(m));return f}})})()})}(gp)),gp.exports}var vp={exports:{}},wp;function OD(){return wp||(wp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),$c(),Bc())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,l=r.algo,c=l.SHA1,d=l.HMAC,h=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:c,iterations:1}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,f){for(var p=this.cfg,E=d.create(p.hasher,m),k=o.create(),T=o.create([1]),b=k.words,w=T.words,A=p.keySize,S=p.iterations;b.length<A;){var N=E.update(f).finalize(T);E.reset();for(var L=N.words,M=L.length,F=N,V=1;V<S;V++){F=E.finalize(F),E.reset();for(var R=F.words,z=0;z<M;z++)L[z]^=R[z]}k.concat(N),w[0]++}return k.sigBytes=A*4,k}});r.PBKDF2=function(m,f,p){return h.create(p).compute(m,f)}}(),n.PBKDF2})}(vp)),vp.exports}var bp={exports:{}},_p;function Zr(){return _p||(_p=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),$c(),Bc())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,l=r.algo,c=l.MD5,d=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:c,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,m){for(var f,p=this.cfg,E=p.hasher.create(),k=o.create(),T=k.words,b=p.keySize,w=p.iterations;T.length<b;){f&&E.update(f),f=E.update(h).finalize(m),E.reset();for(var A=1;A<w;A++)f=E.finalize(f),E.reset();k.concat(f)}return k.sigBytes=b*4,k}});r.EvpKDF=function(h,m,f){return d.create(f).compute(h,m)}}(),n.EvpKDF})}(bp)),bp.exports}var Ep={exports:{}},Dp;function xt(){return Dp||(Dp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Zr())})(Ve,function(n){n.lib.Cipher||function(r){var a=n,i=a.lib,o=i.Base,l=i.WordArray,c=i.BufferedBlockAlgorithm,d=a.enc;d.Utf8;var h=d.Base64,m=a.algo,f=m.EvpKDF,p=i.Cipher=c.extend({cfg:o.extend(),createEncryptor:function(R,z){return this.create(this._ENC_XFORM_MODE,R,z)},createDecryptor:function(R,z){return this.create(this._DEC_XFORM_MODE,R,z)},init:function(R,z,j){this.cfg=this.cfg.extend(j),this._xformMode=R,this._key=z,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var z=this._doFinalize();return z},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(z){return typeof z=="string"?V:L}return function(z){return{encrypt:function(j,B,Z){return R(B).encrypt(z,j,B,Z)},decrypt:function(j,B,Z){return R(B).decrypt(z,j,B,Z)}}}}()});i.StreamCipher=p.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var E=a.mode={},k=i.BlockCipherMode=o.extend({createEncryptor:function(R,z){return this.Encryptor.create(R,z)},createDecryptor:function(R,z){return this.Decryptor.create(R,z)},init:function(R,z){this._cipher=R,this._iv=z}}),T=E.CBC=function(){var R=k.extend();R.Encryptor=R.extend({processBlock:function(j,B){var Z=this._cipher,Y=Z.blockSize;z.call(this,j,B,Y),Z.encryptBlock(j,B),this._prevBlock=j.slice(B,B+Y)}}),R.Decryptor=R.extend({processBlock:function(j,B){var Z=this._cipher,Y=Z.blockSize,q=j.slice(B,B+Y);Z.decryptBlock(j,B),z.call(this,j,B,Y),this._prevBlock=q}});function z(j,B,Z){var Y,q=this._iv;q?(Y=q,this._iv=r):Y=this._prevBlock;for(var G=0;G<Z;G++)j[B+G]^=Y[G]}return R}(),b=a.pad={},w=b.Pkcs7={pad:function(R,z){for(var j=z*4,B=j-R.sigBytes%j,Z=B<<24|B<<16|B<<8|B,Y=[],q=0;q<B;q+=4)Y.push(Z);var G=l.create(Y,B);R.concat(G)},unpad:function(R){var z=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=z}};i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:T,padding:w}),reset:function(){var R;p.reset.call(this);var z=this.cfg,j=z.iv,B=z.mode;this._xformMode==this._ENC_XFORM_MODE?R=B.createEncryptor:(R=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,j&&j.words):(this._mode=R.call(B,this,j&&j.words),this._mode.__creator=R)},_doProcessBlock:function(R,z){this._mode.processBlock(R,z)},_doFinalize:function(){var R,z=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(z.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),z.unpad(R)),R},blockSize:128/32});var A=i.CipherParams=o.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),S=a.format={},N=S.OpenSSL={stringify:function(R){var z,j=R.ciphertext,B=R.salt;return B?z=l.create([1398893684,1701076831]).concat(B).concat(j):z=j,z.toString(h)},parse:function(R){var z,j=h.parse(R),B=j.words;return B[0]==1398893684&&B[1]==1701076831&&(z=l.create(B.slice(2,4)),B.splice(0,4),j.sigBytes-=16),A.create({ciphertext:j,salt:z})}},L=i.SerializableCipher=o.extend({cfg:o.extend({format:N}),encrypt:function(R,z,j,B){B=this.cfg.extend(B);var Z=R.createEncryptor(j,B),Y=Z.finalize(z),q=Z.cfg;return A.create({ciphertext:Y,key:j,iv:q.iv,algorithm:R,mode:q.mode,padding:q.padding,blockSize:R.blockSize,formatter:B.format})},decrypt:function(R,z,j,B){B=this.cfg.extend(B),z=this._parse(z,B.format);var Z=R.createDecryptor(j,B).finalize(z.ciphertext);return Z},_parse:function(R,z){return typeof R=="string"?z.parse(R,this):R}}),M=a.kdf={},F=M.OpenSSL={execute:function(R,z,j,B){B||(B=l.random(64/8));var Z=f.create({keySize:z+j}).compute(R,B),Y=l.create(Z.words.slice(z),j*4);return Z.sigBytes=z*4,A.create({key:Z,iv:Y,salt:B})}},V=i.PasswordBasedCipher=L.extend({cfg:L.cfg.extend({kdf:F}),encrypt:function(R,z,j,B){B=this.cfg.extend(B);var Z=B.kdf.execute(j,R.keySize,R.ivSize);B.iv=Z.iv;var Y=L.encrypt.call(this,R,z,Z.key,B);return Y.mixIn(Z),Y},decrypt:function(R,z,j,B){B=this.cfg.extend(B),z=this._parse(z,B.format);var Z=B.kdf.execute(j,R.keySize,R.ivSize,z.salt);B.iv=Z.iv;var Y=L.decrypt.call(this,R,z,Z.key,B);return Y}})}()})}(Ep)),Ep.exports}var Sp={exports:{}},kp;function xD(){return kp||(kp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,o){var l=this._cipher,c=l.blockSize;a.call(this,i,o,c,l),this._prevBlock=i.slice(o,o+c)}}),r.Decryptor=r.extend({processBlock:function(i,o){var l=this._cipher,c=l.blockSize,d=i.slice(o,o+c);a.call(this,i,o,c,l),this._prevBlock=d}});function a(i,o,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var m=0;m<l;m++)i[o+m]^=d[m]}return r}(),n.mode.CFB})}(Sp)),Sp.exports}var Ip={exports:{}},Cp;function LD(){return Cp||(Cp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var l=this._cipher,c=l.blockSize,d=this._iv,h=this._counter;d&&(h=this._counter=d.slice(0),this._iv=void 0);var m=h.slice(0);l.encryptBlock(m,0),h[c-1]=h[c-1]+1|0;for(var f=0;f<c;f++)i[o+f]^=m[f]}});return r.Decryptor=a,r}(),n.mode.CTR})}(Ip)),Ip.exports}var Np={exports:{}},Tp;function RD(){return Tp||(Tp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){/** @preserve
59
51
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
60
52
  * derived from CryptoJS.mode.CTR
61
53
  * Jan Hruby jhruby.web@gmail.com
62
- */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,c=s>>8&255,h=s&255;l===255?(l=0,c===255?(c=0,h===255?h=0:++h):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=h}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=r.Encryptor=r.extend({processBlock:function(s,l){var c=this._cipher,h=c.blockSize,x=this._iv,y=this._counter;x&&(y=this._counter=x.slice(0),this._iv=void 0),i(y);var w=y.slice(0);c.encryptBlock(w,0);for(var I=0;I<h;I++)s[l+I]^=w[I]}});return r.Decryptor=o,r}(),n.mode.CTRGladman})}(Eu)),Eu.exports}var wu={exports:{}},_u;function k1(){return _u||(_u=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=this._iv,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(h,0);for(var x=0;x<l;x++)i[o+x]^=h[x]}});return r.Decryptor=a,r}(),n.mode.OFB})}(wu)),wu.exports}var Iu={exports:{}},Su;function L1(){return Su||(Su=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),r.Decryptor=r.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),r}(),n.mode.ECB})}(Iu)),Iu.exports}var Du={exports:{}},Nu;function O1(){return Nu||(Nu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.pad.AnsiX923={pad:function(r,a){var i=r.sigBytes,o=a*4,s=o-i%o,l=i+s-1;r.clamp(),r.words[l>>>2]|=s<<24-l%4*8,r.sigBytes+=s},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(Du)),Du.exports}var Cu={exports:{}},Au;function R1(){return Au||(Au=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.pad.Iso10126={pad:function(r,a){var i=a*4,o=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(Cu)),Cu.exports}var Tu={exports:{}},ku;function M1(){return ku||(ku=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Tu)),Tu.exports}var Lu={exports:{}},Ou;function P1(){return Ou||(Ou=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.pad.ZeroPadding={pad:function(r,a){var i=a*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var a=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(Lu)),Lu.exports}var Ru={exports:{}},Mu;function F1(){return Mu||(Mu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Ru)),Ru.exports}var Pu={exports:{}},Fu;function z1(){return Fu||(Fu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),ht())})(Le,function(n){return function(r){var a=n,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,c=a.format;c.Hex={stringify:function(h){return h.ciphertext.toString(l)},parse:function(h){var x=l.parse(h);return o.create({ciphertext:x})}}}(),n.format.Hex})}(Pu)),Pu.exports}var zu={exports:{}},Bu;function B1(){return Bu||(Bu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Kn(),Jn(),Nn(),ht())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.BlockCipher,o=r.algo,s=[],l=[],c=[],h=[],x=[],y=[],w=[],I=[],N=[],k=[];(function(){for(var A=[],D=0;D<256;D++)D<128?A[D]=D<<1:A[D]=D<<1^283;for(var T=0,P=0,D=0;D<256;D++){var z=P^P<<1^P<<2^P<<3^P<<4;z=z>>>8^z&255^99,s[T]=z,l[z]=T;var Y=A[T],Q=A[Y],B=A[Q],W=A[z]*257^z*16843008;c[T]=W<<24|W>>>8,h[T]=W<<16|W>>>16,x[T]=W<<8|W>>>24,y[T]=W;var W=B*16843009^Q*65537^Y*257^T*16843008;w[z]=W<<24|W>>>8,I[z]=W<<16|W>>>16,N[z]=W<<8|W>>>24,k[z]=W,T?(T=Y^A[A[A[B^Y]]],P^=A[A[P]]):T=P=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],E=o.AES=i.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,T=D.words,P=D.sigBytes/4,z=this._nRounds=P+6,Y=(z+1)*4,Q=this._keySchedule=[],B=0;B<Y;B++)B<P?Q[B]=T[B]:(A=Q[B-1],B%P?P>6&&B%P==4&&(A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255]):(A=A<<8|A>>>24,A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255],A^=S[B/P|0]<<24),Q[B]=Q[B-P]^A);for(var W=this._invKeySchedule=[],ne=0;ne<Y;ne++){var B=Y-ne;if(ne%4)var A=Q[B];else var A=Q[B-4];ne<4||B<=4?W[ne]=A:W[ne]=w[s[A>>>24]]^I[s[A>>>16&255]]^N[s[A>>>8&255]]^k[s[A&255]]}}},encryptBlock:function(A,D){this._doCryptBlock(A,D,this._keySchedule,c,h,x,y,s)},decryptBlock:function(A,D){var T=A[D+1];A[D+1]=A[D+3],A[D+3]=T,this._doCryptBlock(A,D,this._invKeySchedule,w,I,N,k,l);var T=A[D+1];A[D+1]=A[D+3],A[D+3]=T},_doCryptBlock:function(A,D,T,P,z,Y,Q,B){for(var W=this._nRounds,ne=A[D]^T[0],R=A[D+1]^T[1],V=A[D+2]^T[2],G=A[D+3]^T[3],U=4,q=1;q<W;q++){var Z=P[ne>>>24]^z[R>>>16&255]^Y[V>>>8&255]^Q[G&255]^T[U++],se=P[R>>>24]^z[V>>>16&255]^Y[G>>>8&255]^Q[ne&255]^T[U++],ie=P[V>>>24]^z[G>>>16&255]^Y[ne>>>8&255]^Q[R&255]^T[U++],F=P[G>>>24]^z[ne>>>16&255]^Y[R>>>8&255]^Q[V&255]^T[U++];ne=Z,R=se,V=ie,G=F}var Z=(B[ne>>>24]<<24|B[R>>>16&255]<<16|B[V>>>8&255]<<8|B[G&255])^T[U++],se=(B[R>>>24]<<24|B[V>>>16&255]<<16|B[G>>>8&255]<<8|B[ne&255])^T[U++],ie=(B[V>>>24]<<24|B[G>>>16&255]<<16|B[ne>>>8&255]<<8|B[R&255])^T[U++],F=(B[G>>>24]<<24|B[ne>>>16&255]<<16|B[R>>>8&255]<<8|B[V&255])^T[U++];A[D]=Z,A[D+1]=se,A[D+2]=ie,A[D+3]=F},keySize:256/32});r.AES=i._createHelper(E)}(),n.AES})}(zu)),zu.exports}var ju={exports:{}},qu;function j1(){return qu||(qu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Kn(),Jn(),Nn(),ht())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.BlockCipher,s=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],w=s.DES=o.extend({_doReset:function(){for(var S=this._key,E=S.words,A=[],D=0;D<56;D++){var T=l[D]-1;A[D]=E[T>>>5]>>>31-T%32&1}for(var P=this._subKeys=[],z=0;z<16;z++){for(var Y=P[z]=[],Q=h[z],D=0;D<24;D++)Y[D/6|0]|=A[(c[D]-1+Q)%28]<<31-D%6,Y[4+(D/6|0)]|=A[28+(c[D+24]-1+Q)%28]<<31-D%6;Y[0]=Y[0]<<1|Y[0]>>>31;for(var D=1;D<7;D++)Y[D]=Y[D]>>>(D-1)*4+3;Y[7]=Y[7]<<5|Y[7]>>>27}for(var B=this._invSubKeys=[],D=0;D<16;D++)B[D]=P[15-D]},encryptBlock:function(S,E){this._doCryptBlock(S,E,this._subKeys)},decryptBlock:function(S,E){this._doCryptBlock(S,E,this._invSubKeys)},_doCryptBlock:function(S,E,A){this._lBlock=S[E],this._rBlock=S[E+1],I.call(this,4,252645135),I.call(this,16,65535),N.call(this,2,858993459),N.call(this,8,16711935),I.call(this,1,1431655765);for(var D=0;D<16;D++){for(var T=A[D],P=this._lBlock,z=this._rBlock,Y=0,Q=0;Q<8;Q++)Y|=x[Q][((z^T[Q])&y[Q])>>>0];this._lBlock=z,this._rBlock=P^Y}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,I.call(this,1,1431655765),N.call(this,8,16711935),N.call(this,2,858993459),I.call(this,16,65535),I.call(this,4,252645135),S[E]=this._lBlock,S[E+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function I(S,E){var A=(this._lBlock>>>S^this._rBlock)&E;this._rBlock^=A,this._lBlock^=A<<S}function N(S,E){var A=(this._rBlock>>>S^this._lBlock)&E;this._lBlock^=A,this._rBlock^=A<<S}r.DES=o._createHelper(w);var k=s.TripleDES=o.extend({_doReset:function(){var S=this._key,E=S.words;if(E.length!==2&&E.length!==4&&E.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=E.slice(0,2),D=E.length<4?E.slice(0,2):E.slice(2,4),T=E.length<6?E.slice(0,2):E.slice(4,6);this._des1=w.createEncryptor(i.create(A)),this._des2=w.createEncryptor(i.create(D)),this._des3=w.createEncryptor(i.create(T))},encryptBlock:function(S,E){this._des1.encryptBlock(S,E),this._des2.decryptBlock(S,E),this._des3.encryptBlock(S,E)},decryptBlock:function(S,E){this._des3.decryptBlock(S,E),this._des2.encryptBlock(S,E),this._des1.decryptBlock(S,E)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(k)}(),n.TripleDES})}(ju)),ju.exports}var Uu={exports:{}},Vu;function q1(){return Vu||(Vu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Kn(),Jn(),Nn(),ht())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=o.RC4=i.extend({_doReset:function(){for(var h=this._key,x=h.words,y=h.sigBytes,w=this._S=[],I=0;I<256;I++)w[I]=I;for(var I=0,N=0;I<256;I++){var k=I%y,S=x[k>>>2]>>>24-k%4*8&255;N=(N+w[I]+S)%256;var E=w[I];w[I]=w[N],w[N]=E}this._i=this._j=0},_doProcessBlock:function(h,x){h[x]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var h=this._S,x=this._i,y=this._j,w=0,I=0;I<4;I++){x=(x+1)%256,y=(y+h[x])%256;var N=h[x];h[x]=h[y],h[y]=N,w|=h[(h[x]+h[y])%256]<<24-I*8}return this._i=x,this._j=y,w}r.RC4=i._createHelper(s);var c=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)l.call(this)}});r.RC4Drop=i._createHelper(c)}(),n.RC4})}(Uu)),Uu.exports}var Hu={exports:{}},Wu;function U1(){return Wu||(Wu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Kn(),Jn(),Nn(),ht())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=[],l=[],c=[],h=o.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,w=this.cfg.iv,I=0;I<4;I++)y[I]=(y[I]<<8|y[I]>>>24)&16711935|(y[I]<<24|y[I]>>>8)&4278255360;var N=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],k=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var I=0;I<4;I++)x.call(this);for(var I=0;I<8;I++)k[I]^=N[I+4&7];if(w){var S=w.words,E=S[0],A=S[1],D=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=D>>>16|T&4294901760,z=T<<16|D&65535;k[0]^=D,k[1]^=P,k[2]^=T,k[3]^=z,k[4]^=D,k[5]^=P,k[6]^=T,k[7]^=z;for(var I=0;I<4;I++)x.call(this)}},_doProcessBlock:function(y,w){var I=this._X;x.call(this),s[0]=I[0]^I[5]>>>16^I[3]<<16,s[1]=I[2]^I[7]>>>16^I[5]<<16,s[2]=I[4]^I[1]>>>16^I[7]<<16,s[3]=I[6]^I[3]>>>16^I[1]<<16;for(var N=0;N<4;N++)s[N]=(s[N]<<8|s[N]>>>24)&16711935|(s[N]<<24|s[N]>>>8)&4278255360,y[w+N]^=s[N]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,I=0;I<8;I++)l[I]=w[I];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<l[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<l[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<l[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<l[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<l[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<l[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<l[6]>>>0?1:0)|0,this._b=w[7]>>>0<l[7]>>>0?1:0;for(var I=0;I<8;I++){var N=y[I]+w[I],k=N&65535,S=N>>>16,E=((k*k>>>17)+k*S>>>15)+S*S,A=((N&4294901760)*N|0)+((N&65535)*N|0);c[I]=E^A}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=i._createHelper(h)}(),n.Rabbit})}(Hu)),Hu.exports}var $u={exports:{}},Gu;function V1(){return Gu||(Gu=1,function(t,e){(function(n,r,a){t.exports=r(Be(),Kn(),Jn(),Nn(),ht())})(Le,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=[],l=[],c=[],h=o.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,w=this.cfg.iv,I=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],N=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var k=0;k<4;k++)x.call(this);for(var k=0;k<8;k++)N[k]^=I[k+4&7];if(w){var S=w.words,E=S[0],A=S[1],D=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=D>>>16|T&4294901760,z=T<<16|D&65535;N[0]^=D,N[1]^=P,N[2]^=T,N[3]^=z,N[4]^=D,N[5]^=P,N[6]^=T,N[7]^=z;for(var k=0;k<4;k++)x.call(this)}},_doProcessBlock:function(y,w){var I=this._X;x.call(this),s[0]=I[0]^I[5]>>>16^I[3]<<16,s[1]=I[2]^I[7]>>>16^I[5]<<16,s[2]=I[4]^I[1]>>>16^I[7]<<16,s[3]=I[6]^I[3]>>>16^I[1]<<16;for(var N=0;N<4;N++)s[N]=(s[N]<<8|s[N]>>>24)&16711935|(s[N]<<24|s[N]>>>8)&4278255360,y[w+N]^=s[N]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,I=0;I<8;I++)l[I]=w[I];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<l[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<l[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<l[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<l[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<l[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<l[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<l[6]>>>0?1:0)|0,this._b=w[7]>>>0<l[7]>>>0?1:0;for(var I=0;I<8;I++){var N=y[I]+w[I],k=N&65535,S=N>>>16,E=((k*k>>>17)+k*S>>>15)+S*S,A=((N&4294901760)*N|0)+((N&65535)*N|0);c[I]=E^A}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=i._createHelper(h)}(),n.RabbitLegacy})}($u)),$u.exports}(function(t,e){(function(n,r,a){t.exports=r(Be(),ma(),E1(),x1(),Kn(),w1(),Jn(),Vi(),Hr.exports,_1(),tu(),I1(),S1(),D1(),Hi(),N1(),Nn(),ht(),C1(),A1(),T1(),k1(),L1(),O1(),R1(),M1(),P1(),F1(),z1(),B1(),j1(),q1(),U1(),V1())})(Le,function(n){return n})})(b1);var H1=Object.defineProperty,W1=Object.getOwnPropertyDescriptor,Wi=(t,e,n,r)=>{for(var a=r>1?void 0:r?W1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&H1(e,n,a),a};const qt=new Map;qt.set("agenda_users","local"),qt.set("organisation_id","local"),qt.set("organisation","session"),qt.set("currentUser","local"),qt.set("recent_services","local"),qt.set("recent_staffs","local"),qt.set("recent_contacts","local"),qt.set("recent_companies","local"),qt.set("recent_users","local"),qt.set("working_planning_company","local");let ha=class{constructor(t){m(this,"logger"),this.logger=t}dispose(){}getItem(t){const e=this.getKeyStorage(t);return e?e.getItem(t):null}setItem(t,e){const n=this.getKeyStorage(t);n&&n.setItem(t,e)}clear(){localStorage.clear()}clearAllBut(t){if(t===void 0||t.length===0)localStorage.clear(),sessionStorage.clear();else{let e=t.filter(i=>i==="local").length>0,n=t.filter(i=>i==="session").length>0;const r=this,a=t.map(i=>{if(i!=="local"&&i!=="session"){const o=r.getKeyStorage(i);if(o)return{key:i,value:o.getItem(i)}}});e||localStorage.clear(),n||sessionStorage.clear(),a&&a.length>0&&a.forEach(i=>{if(i&&i.key&&i.value){const o=r.getKeyStorage(i.key);if(o)return o.setItem(i.key,i.value)}})}}removeItem(t){localStorage.removeItem(t)}getItems(t){const e=localStorage.getItem(t);return e&&JSON.parse(e)}setItems(t,e){localStorage.setItem(t,JSON.stringify(e))}getKeyStorage(t){const e=qt.get(t);if(e)return e==="local"?localStorage:sessionStorage}async _onCascadeDelete(t,e,n,r){var a,i,o,s,l;switch(n){case ct:(a=this.logger)==null||a.debug("js-calendar-api","Company deleted (clean localStorage)",t),this._cleanRecentsCompanies(t.companyId);break;case Sn:(i=this.logger)==null||i.debug("js-calendar-api","Service deleted (clean localStorage)",t),this._cleanRecentsServices(t.serviceId);break;case Dt:(o=this.logger)==null||o.debug("js-calendar-api","Staff deleted (clean localStorage)",t),this._cleanRecentsStaffs(t.staffId);break;case Ol:(s=this.logger)==null||s.debug("js-calendar-api","Contact deleted (clean localStorage)",t),this._cleanRecentsContacts(t.contactId);break;case Rl:(l=this.logger)==null||l.debug("js-calendar-api","User deleted (clean localStorage)",t),this._cleanRecentsUsers(t.userId);break}}_cleanRecentsCompanies(t){const e=this.getItems("recent_companies"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_companies",n||[])}_cleanRecentsServices(t){const e=this.getItems("recent_services"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_services",n||[])}_cleanRecentsStaffs(t){const e=this.getItems("recent_staffs"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_staffs",n||[])}_cleanRecentsContacts(t){const e=this.getItems("recent_contacts"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_contacts",n||[])}_cleanRecentsUsers(t){const e=this.getItems("recent_users"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_users",n||[])}};Wi([ve.Unsubscribe()],ha.prototype,"dispose",1),Wi([ve.Subscribe(je.DELETE)],ha.prototype,"_onCascadeDelete",1),ha=Wi([ve.Subscriber({channel:ct}),ve.Subscriber({channel:Sn}),ve.Subscriber({channel:Dt}),ve.Subscriber({channel:Ol}),ve.Subscriber({channel:Rl})],ha);class $1 extends Qt{async getAllServiceGroups(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/serviceGroups`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async createServiceGroup(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async updateServiceGroup(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}`;const s=this.instance.put(o,i,this.getAxiosConfig(e,n));if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}var G1=Object.defineProperty,Y1=Object.getOwnPropertyDescriptor,$i=(t,e,n,r)=>{for(var a=r>1?void 0:r?Y1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&G1(e,n,a),a};let fa=class extends Wt{constructor(t,e,n,r){super("serviceGroup",r),m(this,"serviceGroupDb"),m(this,"serviceGroupService"),this.serviceGroupDb=new Sc(e),this.serviceGroupService=new $1(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ct&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllServiceGroups(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getServiceGroup(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceGroupId:r})}async createServiceGroup(t,e,n,r){return super.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r)}async updateServiceGroup(t,e,n,r,a){return super.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceGroupId:r},a)}async deleteServiceGroup(t,e,n,r){return this.deleteById(t,{account:e,companyId:n,serviceGroupId:r})}async remoteList(t,e){return(await this.serviceGroupService.getAllServiceGroups(t,e.account,e.companyId)).map(n=>un.fromServiceGroupDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceGroupService.getById(t,e.account,e.companyId,e.serviceGroupId);return un.fromServiceGroupDto(n,e.companyId)}async remoteCreate(t,e,n){const r=un.toServiceGroupDto(n),a=await this.serviceGroupService.createServiceGroup(t,e.account,e.companyId,r);return un.fromServiceGroupDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=un.toServiceGroupDto(n),a=await this.serviceGroupService.updateServiceGroup(t,e.account,e.companyId,e.serviceGroupId,r);return un.fromServiceGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceGroupService.delete(t,e.account,e.companyId,e.serviceGroupId)}async localList(t){return this.serviceGroupDb.getAllServiceGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceGroupDb.getById(t.companyId,t.serviceGroupId)}async localBulkSave(t,e){await this.serviceGroupDb.saveAllServiceGroups(e)}async localDelete(t){this.checkNullable(t),await this.serviceGroupDb.deleteById(t.companyId,t.serviceGroupId)}async localBulkDelete(t){await this.serviceGroupDb.deleteByServiceGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};$i([ve.Unsubscribe()],fa.prototype,"dispose",1),$i([ve.Subscribe(je.DELETE)],fa.prototype,"onCascadeDelete",1),fa=$i([ve.Subscriber({channel:ct})],fa);class Z1 extends Qt{async getAllStaffGroups(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/staffGroups`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async createStaffGroup(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async updateStaffGroup(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}`;const s=this.instance.put(o,i,this.getAxiosConfig(e,n));if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class K1{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async getAllStaffGroups(e){return(await this.indexedDb.getAllValue(Gn)||[]).filter(n=>n.companyId===e)}async saveAllStaffGroups(e){await this.indexedDb.putBulkValue(Gn,e)}async getById(e,n){const r=await this.indexedDb.getValue(Gn,n);if((r==null?void 0:r.companyId)===e)return r;throw mn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Gn,n),await new Dc(this.indexedDb).updateStaffSkills(e,n,void 0)}async deleteByStaffGroupIds(e){await this.indexedDb.deleteValues(Gn,e)}async drop(){await this.indexedDb.deleteAllValues(Gn)}updateStaffs(e,n,r){this.getAllStaffGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===n)});i&&i.length>0&&(i.forEach(o=>{var s,l,c;const h=(s=o.members)==null?void 0:s.findIndex(x=>x.id===n);h!=null&&(r?(l=o.members)==null||l.splice(h,1,r):(c=o.members)==null||c.splice(h,1))}),await this.saveAllStaffGroups(i))})}}var J1=Object.defineProperty,X1=Object.getOwnPropertyDescriptor,Gi=(t,e,n,r)=>{for(var a=r>1?void 0:r?X1(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&J1(e,n,a),a};let pa=class extends Wt{constructor(t,e,n,r){super("staffGroup",r),m(this,"staffGroupDb"),m(this,"staffGroupService"),this.staffGroupDb=new K1(e),this.staffGroupService=new Z1(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){if(n==ct&&e===je.DELETE&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId),n==Dn){const a=t.entity;for(const i of a.companies)await this.cascadeDelete({account:t.organisation,companyId:i.company.id},()=>!0)}n==Dt&&await this.cascadeDelete({account:t.organisation,companyId:t.companyId},()=>!0)}async getAllStaffGroups(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getStaffGroup(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,staffGroupId:r})}async createStaffGroup(t,e,n,r){return this.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r)}async updateStaffGroup(t,e,n,r,a){return this.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,staffGroupId:r},a)}async deleteStaffGroup(t,e,n,r){return this.deleteById(t,{account:e,companyId:n,staffGroupId:r})}async remoteList(t,e){return(await this.staffGroupService.getAllStaffGroups(t,e.account,e.companyId)).map(n=>dn.fromStaffGroupDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.staffGroupService.getById(t,e.account,e.companyId,e.staffGroupId);return dn.fromStaffGroupDto(n,e.companyId)}async remoteCreate(t,e,n){const r=dn.toStaffGroupDto(n),a=await this.staffGroupService.createStaffGroup(t,e.account,e.companyId,r);return dn.fromStaffGroupDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=dn.toStaffGroupDto(n),a=await this.staffGroupService.updateStaffGroup(t,e.account,e.companyId,e.staffGroupId,r);return dn.fromStaffGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.staffGroupService.delete(t,e.account,e.companyId,e.staffGroupId)}async localList(t){return this.staffGroupDb.getAllStaffGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffGroupDb.getById(t.companyId,t.staffGroupId)}async localBulkSave(t,e){await this.staffGroupDb.saveAllStaffGroups(e)}async localDelete(t){this.checkNullable(t),await this.staffGroupDb.deleteById(t.companyId,t.staffGroupId)}async localBulkDelete(t){await this.staffGroupDb.deleteByStaffGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Gi([ve.Unsubscribe()],pa.prototype,"dispose",1),Gi([ve.Subscribe(je.DELETE),ve.Subscribe(je.UPDATE),ve.Subscribe(je.CREATE)],pa.prototype,"onCascadeDelete",1),pa=Gi([ve.Subscriber({channel:ct}),ve.Subscriber({channel:Dn}),ve.Subscriber({channel:Dt})],pa);class Q1 extends Qt{async getAllServiceResources(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/service-resources`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new ke(Se.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async createService(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}async updateService(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/service-resources/${a}`;const s=this.instance.put(o,i,this.getAxiosConfig(e,n));if(s!==null)try{return await s}catch(l){throw l}else throw new ke(Se.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(s){throw s}else throw new ke(Se.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class eg{constructor(e){m(this,"indexedDb"),this.indexedDb=e}async getAllServiceResources(e){return(await this.indexedDb.getAllValue(Wn)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async saveAllServiceResources(e){await this.indexedDb.putBulkValue(Wn,e)}async getById(e,n){var r;const a=await this.indexedDb.getValue(Wn,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw mn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Wn,n)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Wn,e)}async drop(){await this.indexedDb.deleteAllValues(Wn)}}var tg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,Yi=(t,e,n,r)=>{for(var a=r>1?void 0:r?ng(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&tg(e,n,a),a};let ga=class extends Wt{constructor(t,e,n,r){super("serviceResource",r),m(this,"serviceResourceDb"),m(this,"serviceResourceService"),this.serviceResourceDb=new eg(e),this.serviceResourceService=new Q1(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ct&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServiceResources(t,e,n,r=Oe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getServiceResource(t,e,n,r,a=Oe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceResourceId:r})}async createServiceResource(t,e,n,r){const a=await super.create(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return yi.publish(je.CREATE,{account:e,companyId:n,resource:a}),a}async updateServiceResource(t,e,n,r,a){const i=await super.update(t,Oe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceResourceId:r},a);return yi.publish(je.UPDATE,{account:e,companyId:n,serviceResourceId:r,resource:i}),i}async deleteServiceResource(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,serviceResourceId:r}),yi.publish(je.DELETE,{account:e,companyId:n,serviceResourceId:r})}async remoteList(t,e){return(await this.serviceResourceService.getAllServiceResources(t,e.account,e.companyId)).map(n=>fn.fromServiceResourceDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceResourceService.getById(t,e.account,e.companyId,e.serviceResourceId);return fn.fromServiceResourceDto(n,e.companyId)}async remoteCreate(t,e,n){const r=fn.toServiceResourceDto(n),a=await this.serviceResourceService.createService(t,e.account,e.companyId,r);return fn.fromServiceResourceDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=fn.toServiceResourceDto(n),a=await this.serviceResourceService.updateService(t,e.account,e.companyId,e.serviceResourceId,r);return fn.fromServiceResourceDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceResourceService.delete(t,e.account,e.companyId,e.serviceResourceId)}async localList(t){return this.serviceResourceDb.getAllServiceResources(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceResourceDb.getById(t.companyId,t.serviceResourceId)}async localBulkSave(t,e){await this.serviceResourceDb.saveAllServiceResources(e)}async localDelete(t){this.checkNullable(t),await this.serviceResourceDb.deleteById(t.companyId,t.serviceResourceId)}async localBulkDelete(t){await this.serviceResourceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceResourceId)throw Error("Invalid state:"+JSON.stringify(t))}};Yi([ve.Unsubscribe()],ga.prototype,"dispose",1),Yi([ve.Subscribe(je.DELETE)],ga.prototype,"onCascadeDelete",1),ga=Yi([ve.Subscriber({channel:ct})],ga);class Zi{constructor(){m(this,"company"),m(this,"days"),m(this,"planningId"),m(this,"planningStartWeek"),m(this,"start"),m(this,"end"),m(this,"saveMode")}static fromWorkingPlanningDto(e){var n;switch(e.objectOwner.type){case"staff":let r=new rg;return r.company=Ki.fromCompanyDto(e.company),r.staffId=e.objectOwner.id,e.objectOwner.properties&&(r.user=Ji.fromPropertiesDto(e.objectOwner.properties)),r.days=(n=e.days)==null?void 0:n.map(a=>va.fromWorkingPlanningDayDto(a)),r.planningId=e.planningId,r.planningStartWeek=e.planningStartWeek,r}throw new Error("Unknow working planning type:"+e.objectOwner.type)}static toWorkingPlanningDto(e){let n=new ig;return n.companyId=e.company.id,n.objectOwners=[{id:e.staffId,type:"staff"}],e.days&&(n.days=va.toWorkingPlanningDayDto(e.days)),n.planningId=e.planningId,n.planningStartWeek=e.planningStartWeek,n.start=Ae.fromJSDate(e.start).toFormat("yyyy-MM-dd"),n.end=Ae.fromJSDate(e.end).toFormat("yyyy-MM-dd"),n.saveMode=e.saveMode,n}}class rg extends Zi{constructor(){super(...arguments),m(this,"user"),m(this,"staffId")}}class va{constructor(){m(this,"date"),m(this,"hours"),m(this,"occupancyRate"),m(this,"durationInMinutes"),m(this,"isOnVacation")}static fromWorkingPlanningDayDto(e){var n;let r=new va;return r.hours=e.hours,r.durationInMinutes=ze.fromISOTime(e.duration).as("minutes"),r.date=Ae.fromISO(e.date).toJSDate(),r.isOnVacation=(n=e.isOnVacation)!=null?n:!1,e.occupancyRate&&(r.occupancyRate=new ag(e.occupancyRate)),r}static toWorkingPlanningDayDto(e){let n={};return e.forEach((r,a)=>{r&&(n[a]=r)}),n}}class ag{constructor(e=new og){m(this,"total"),m(this,"pro"),m(this,"perso"),m(this,"external");var n,r,a,i;this.total=(n=e.total)!=null?n:0,this.pro=(r=e.pro)!=null?r:0,this.perso=(a=e.perso)!=null?a:0,this.external=(i=e.external)!=null?i:0}}class ig{constructor(){m(this,"objectOwner"),m(this,"objectOwners"),m(this,"company"),m(this,"companyId"),m(this,"days"),m(this,"planningId"),m(this,"planningStartWeek"),m(this,"start"),m(this,"end"),m(this,"saveMode")}}class og{constructor(){m(this,"total"),m(this,"pro"),m(this,"perso"),m(this,"external")}}class Ki{constructor(){m(this,"id"),m(this,"name")}static fromCompanyDto(e){let n=new Ki;return n.id=e.id,n.name=Ne(e.name),n}}class Ji{constructor(){m(this,"id"),m(this,"firstName"),m(this,"lastName"),m(this,"email")}static fromPropertiesDto(e){let n=new Ji;return n.id=e.userId,n.email=Ne(e.email),n.firstName=Ne(e.firstName),n.lastName=Ne(e.lastName),n}}class sg extends Qt{async getAllCompanyWorkingPlanning(e,n,r,a,i,o){const s=this.getAxiosConfig(e,n);s.params.companyIds=r,s.params.start=a,s.params.end=i,s.params.occupancy=o;const l=this.instance.get("/api/2.3/scheduling/workingHours",s);if(l!==null)try{return(await l).items}catch(c){throw c}else throw new ke(Se.INTERNAL_ERROR)}async createWorkingPlanning(e,n,r){let a="/api/2.3/scheduling/workingHours";const i=this.instance.post(a,r,this.getAxiosConfig(e,n));if(i!==null)try{await i;return}catch(o){throw o}else throw new ke(Se.INTERNAL_ERROR)}}var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,ug=(t,e,n,r)=>{for(var a=r>1?void 0:r?cg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&lg(e,n,a),a};let Yu=class extends Wt{constructor(t,e,n){super("workingPlanning",n),m(this,"workingPlanningService"),this.workingPlanningService=new sg(e,t,n)}async getAllCompanyWorkingPlannings(t,e,n,r,a,i){return this.remoteList(t,{account:e,companyId:n,start:r,end:a,withOccupancy:i})}async createWorkingPlanning(t,e,n){return await super.create(t,Oe.REMOTE_ONLY,{account:e},n)}localBulkDelete(t){throw new Error("Method not implemented.")}localBulkSave(t,e){throw new Error("Method not implemented.")}localDelete(t){throw new Error("Method not implemented.")}localGet(t){throw new Error("Method not implemented.")}localList(t){throw new Error("Method not implemented.")}async remoteCreate(t,e,n){const r=Zi.toWorkingPlanningDto(n);return await this.workingPlanningService.createWorkingPlanning(t,e.account,r),n}remoteDelete(t,e){throw new Error("Method not implemented.")}remoteGet(t,e){throw new Error("Method not implemented.")}async remoteList(t,e){var n;const r=jn(e.start),a=jn(e.end);return(await this.workingPlanningService.getAllCompanyWorkingPlanning(t,e.account,e.companyId,r,a,(n=e.withOccupancy)!=null?n:!1)).map(i=>Zi.fromWorkingPlanningDto(i))}remoteUpdate(t,e,n){throw new Error("Method not implemented.")}};Yu=ug([ve.Subscriber({channel:Dt}),ve.Subscriber({channel:ct})],Yu);class dg extends Oc{constructor(e){super(e,Yp)}}class mg extends Rc{constructor(e){super(e,$p)}}var hg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,pg=(t,e,n,r)=>{for(var a=r>1?void 0:r?fg(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&hg(e,n,a),a};let Zu=class extends da{constructor(t,e,n,r){super(t,e,n,r,"userDefault")}initTeamDb(t){return new mg(t)}initUserDb(t){return new dg(t)}async getAllUsers(t,e,n=Oe.LOCAL_THEN_REMOTE){return this.list(t,n,{organisation:e,defaultUsers:!0})}};Zu=pg([ve.Subscriber({channel:Dt}),ve.Subscriber({channel:ct}),ve.Subscriber({channel:Dn})],Zu);let ya,Xi;const gg=(t,e)=>(ya=t,Xi=e,en.createPinia()),vg=en.defineStore({id:"account",state:()=>({account:{}}),actions:{async updateAccount(t){if(!!t)return ya.updateAccount(t).then(e=>{const n=e;Object.keys(n).forEach(function(r){n[r]===void 0&&delete n[r]}),Object.assign(this.account,n)})},fetchAccount(t,e,n){return ya.getAccount(void 0,t).then(r=>{r.result?(this.account=r.result,e&&e(r.result)):n&&n(Se.INTERNAL_ERROR)}).catch(()=>{n&&n(Se.INTERNAL_ERROR)})},async updatePassword(t,e){return ya.updatePassword(t,e)},async hasAbility(t,e){return Xi.can(t,e)},async hasAnyRoles(t){return Xi.role.any(t)}}});async function yg(t,e,n,r){let a=0;const i=async(o,s)=>{const l=await t();if(a++,e(l))return o(l);if(r&&a===r)return s(new Error("Exceeded max attempts"));setTimeout(i,n,o,s)};return new Promise(i)}class bg{constructor(e){Qi(this,"internalState");Qi(this,"listeners",[]);this.internalState=e}get state(){return this.internalState}changeState(e){this.internalState=e,this.listeners.length>0&&this.listeners.forEach(n=>n(this.state))}subscribe(e){this.listeners.push(e)}unsubscribe(e){const n=this.listeners.indexOf(e);n>-1&&this.listeners.splice(n,1)}}function Eg(t){let e="ffffff",n="000000",r=t.substr(1);const a=[{id:25,weight:95,base:e},{id:50,weight:90,base:e},{id:100,weight:80,base:e},{id:200,weight:60,base:e},{id:300,weight:40,base:e},{id:400,weight:20,base:e},{id:600,weight:20,base:n},{id:700,weight:40,base:n},{id:800,weight:60,base:n},{id:900,weight:90,base:n}],i=[];return a.forEach(o=>{i.push({key:`--az-primary-${o.id}`,code:xg(o.base,r,o.weight)})}),i.push({key:"--az-primary-500",code:t}),i}function xg(t,e,n){function r(o){return o.toString(16)}function a(o){return parseInt(o,16)}n=typeof n!="undefined"?n:50;let i="#";for(let o=0;o<=5;o+=2){let s=a(t.substr(o,2)),l=a(e.substr(o,2)),c=r(Math.floor(l+(s-l)*(n/100)));for(;c.length<2;)c="0"+c;i+=c}return i}const wg=[{label:"English",value:"en"},{label:"Fran\xE7ais",value:"fr"},{label:"Espa\xF1ol",value:"es"},{label:"Portugu\xEAs",value:"pt"},{label:"Deutsch",value:"de"},{label:"Nederlands",value:"nl"},{label:"Italiano",value:"it"}];Ve.Bloc=bg,Ve.QRCode=Ym,Ve.createStore=gg,Ve.dateToString=Ju,Ve.decodeHtml=nd,Ve.formatDate=td,Ve.generateShadesFromColor=Eg,Ve.languages=wg,Ve.onPictureUpdated=Xu,Ve.pad=ba,Ve.parseToInt=ed,Ve.personToInitials=rd,Ve.poll=yg,Ve.readBlobFromUrl=Qu,Ve.toBase64=eo,Ve.useAccountStore=vg,Ve.useBlocState=Ku,Object.defineProperties(Ve,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
54
+ */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(l){if((l>>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function i(l){return(l[0]=a(l[0]))===0&&(l[1]=a(l[1])),l}var o=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,m=this._iv,f=this._counter;m&&(f=this._counter=m.slice(0),this._iv=void 0),i(f);var p=f.slice(0);d.encryptBlock(p,0);for(var E=0;E<h;E++)l[c+E]^=p[E]}});return r.Decryptor=o,r}(),n.mode.CTRGladman})}(Np)),Np.exports}var Ap={exports:{}},Op;function MD(){return Op||(Op=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var l=this._cipher,c=l.blockSize,d=this._iv,h=this._keystream;d&&(h=this._keystream=d.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var m=0;m<c;m++)i[o+m]^=h[m]}});return r.Decryptor=a,r}(),n.mode.OFB})}(Ap)),Ap.exports}var xp={exports:{}},Lp;function PD(){return Lp||(Lp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),r.Decryptor=r.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),r}(),n.mode.ECB})}(xp)),xp.exports}var Rp={exports:{}},Mp;function $D(){return Mp||(Mp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.pad.AnsiX923={pad:function(r,a){var i=r.sigBytes,o=a*4,l=o-i%o,c=i+l-1;r.clamp(),r.words[c>>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(Rp)),Rp.exports}var Pp={exports:{}},$p;function BD(){return $p||($p=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.pad.Iso10126={pad:function(r,a){var i=a*4,o=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(Pp)),Pp.exports}var Bp={exports:{}},Fp;function FD(){return Fp||(Fp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Bp)),Bp.exports}var zp={exports:{}},Vp;function zD(){return Vp||(Vp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.pad.ZeroPadding={pad:function(r,a){var i=a*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var a=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(zp)),zp.exports}var Up={exports:{}},Hp;function VD(){return Hp||(Hp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Up)),Up.exports}var jp={exports:{}},Yp;function UD(){return Yp||(Yp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),xt())})(Ve,function(n){return function(r){var a=n,i=a.lib,o=i.CipherParams,l=a.enc,c=l.Hex,d=a.format;d.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var m=c.parse(h);return o.create({ciphertext:m})}}}(),n.format.Hex})}(jp)),jp.exports}var Wp={exports:{}},Gp;function HD(){return Gp||(Gp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Oa(),xa(),Zr(),xt())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.BlockCipher,o=r.algo,l=[],c=[],d=[],h=[],m=[],f=[],p=[],E=[],k=[],T=[];(function(){for(var A=[],S=0;S<256;S++)S<128?A[S]=S<<1:A[S]=S<<1^283;for(var N=0,L=0,S=0;S<256;S++){var M=L^L<<1^L<<2^L<<3^L<<4;M=M>>>8^M&255^99,l[N]=M,c[M]=N;var F=A[N],V=A[F],R=A[V],z=A[M]*257^M*16843008;d[N]=z<<24|z>>>8,h[N]=z<<16|z>>>16,m[N]=z<<8|z>>>24,f[N]=z;var z=R*16843009^V*65537^F*257^N*16843008;p[M]=z<<24|z>>>8,E[M]=z<<16|z>>>16,k[M]=z<<8|z>>>24,T[M]=z,N?(N=F^A[A[A[R^F]]],L^=A[A[L]]):N=L=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],w=o.AES=i.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,N=S.words,L=S.sigBytes/4,M=this._nRounds=L+6,F=(M+1)*4,V=this._keySchedule=[],R=0;R<F;R++)R<L?V[R]=N[R]:(A=V[R-1],R%L?L>6&&R%L==4&&(A=l[A>>>24]<<24|l[A>>>16&255]<<16|l[A>>>8&255]<<8|l[A&255]):(A=A<<8|A>>>24,A=l[A>>>24]<<24|l[A>>>16&255]<<16|l[A>>>8&255]<<8|l[A&255],A^=b[R/L|0]<<24),V[R]=V[R-L]^A);for(var z=this._invKeySchedule=[],j=0;j<F;j++){var R=F-j;if(j%4)var A=V[R];else var A=V[R-4];j<4||R<=4?z[j]=A:z[j]=p[l[A>>>24]]^E[l[A>>>16&255]]^k[l[A>>>8&255]]^T[l[A&255]]}}},encryptBlock:function(A,S){this._doCryptBlock(A,S,this._keySchedule,d,h,m,f,l)},decryptBlock:function(A,S){var N=A[S+1];A[S+1]=A[S+3],A[S+3]=N,this._doCryptBlock(A,S,this._invKeySchedule,p,E,k,T,c);var N=A[S+1];A[S+1]=A[S+3],A[S+3]=N},_doCryptBlock:function(A,S,N,L,M,F,V,R){for(var z=this._nRounds,j=A[S]^N[0],B=A[S+1]^N[1],Z=A[S+2]^N[2],Y=A[S+3]^N[3],q=4,G=1;G<z;G++){var ne=L[j>>>24]^M[B>>>16&255]^F[Z>>>8&255]^V[Y&255]^N[q++],oe=L[B>>>24]^M[Z>>>16&255]^F[Y>>>8&255]^V[j&255]^N[q++],J=L[Z>>>24]^M[Y>>>16&255]^F[j>>>8&255]^V[B&255]^N[q++],$=L[Y>>>24]^M[j>>>16&255]^F[B>>>8&255]^V[Z&255]^N[q++];j=ne,B=oe,Z=J,Y=$}var ne=(R[j>>>24]<<24|R[B>>>16&255]<<16|R[Z>>>8&255]<<8|R[Y&255])^N[q++],oe=(R[B>>>24]<<24|R[Z>>>16&255]<<16|R[Y>>>8&255]<<8|R[j&255])^N[q++],J=(R[Z>>>24]<<24|R[Y>>>16&255]<<16|R[j>>>8&255]<<8|R[B&255])^N[q++],$=(R[Y>>>24]<<24|R[j>>>16&255]<<16|R[B>>>8&255]<<8|R[Z&255])^N[q++];A[S]=ne,A[S+1]=oe,A[S+2]=J,A[S+3]=$},keySize:256/32});r.AES=i._createHelper(w)}(),n.AES})}(Wp)),Wp.exports}var qp={exports:{}},Kp;function jD(){return Kp||(Kp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Oa(),xa(),Zr(),xt())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.BlockCipher,l=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=l.DES=o.extend({_doReset:function(){for(var b=this._key,w=b.words,A=[],S=0;S<56;S++){var N=c[S]-1;A[S]=w[N>>>5]>>>31-N%32&1}for(var L=this._subKeys=[],M=0;M<16;M++){for(var F=L[M]=[],V=h[M],S=0;S<24;S++)F[S/6|0]|=A[(d[S]-1+V)%28]<<31-S%6,F[4+(S/6|0)]|=A[28+(d[S+24]-1+V)%28]<<31-S%6;F[0]=F[0]<<1|F[0]>>>31;for(var S=1;S<7;S++)F[S]=F[S]>>>(S-1)*4+3;F[7]=F[7]<<5|F[7]>>>27}for(var R=this._invSubKeys=[],S=0;S<16;S++)R[S]=L[15-S]},encryptBlock:function(b,w){this._doCryptBlock(b,w,this._subKeys)},decryptBlock:function(b,w){this._doCryptBlock(b,w,this._invSubKeys)},_doCryptBlock:function(b,w,A){this._lBlock=b[w],this._rBlock=b[w+1],E.call(this,4,252645135),E.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),E.call(this,1,1431655765);for(var S=0;S<16;S++){for(var N=A[S],L=this._lBlock,M=this._rBlock,F=0,V=0;V<8;V++)F|=m[V][((M^N[V])&f[V])>>>0];this._lBlock=M,this._rBlock=L^F}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,E.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),E.call(this,16,65535),E.call(this,4,252645135),b[w]=this._lBlock,b[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function E(b,w){var A=(this._lBlock>>>b^this._rBlock)&w;this._rBlock^=A,this._lBlock^=A<<b}function k(b,w){var A=(this._rBlock>>>b^this._lBlock)&w;this._lBlock^=A,this._rBlock^=A<<b}r.DES=o._createHelper(p);var T=l.TripleDES=o.extend({_doReset:function(){var b=this._key,w=b.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=w.slice(0,2),S=w.length<4?w.slice(0,2):w.slice(2,4),N=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=p.createEncryptor(i.create(A)),this._des2=p.createEncryptor(i.create(S)),this._des3=p.createEncryptor(i.create(N))},encryptBlock:function(b,w){this._des1.encryptBlock(b,w),this._des2.decryptBlock(b,w),this._des3.encryptBlock(b,w)},decryptBlock:function(b,w){this._des3.decryptBlock(b,w),this._des2.encryptBlock(b,w),this._des1.decryptBlock(b,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(T)}(),n.TripleDES})}(qp)),qp.exports}var Zp={exports:{}},Jp;function YD(){return Jp||(Jp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Oa(),xa(),Zr(),xt())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,l=o.RC4=i.extend({_doReset:function(){for(var h=this._key,m=h.words,f=h.sigBytes,p=this._S=[],E=0;E<256;E++)p[E]=E;for(var E=0,k=0;E<256;E++){var T=E%f,b=m[T>>>2]>>>24-T%4*8&255;k=(k+p[E]+b)%256;var w=p[E];p[E]=p[k],p[k]=w}this._i=this._j=0},_doProcessBlock:function(h,m){h[m]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,m=this._i,f=this._j,p=0,E=0;E<4;E++){m=(m+1)%256,f=(f+h[m])%256;var k=h[m];h[m]=h[f],h[f]=k,p|=h[(h[m]+h[f])%256]<<24-E*8}return this._i=m,this._j=f,p}r.RC4=i._createHelper(l);var d=o.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=i._createHelper(d)}(),n.RC4})}(Zp)),Zp.exports}var Xp={exports:{}},Qp;function WD(){return Qp||(Qp=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Oa(),xa(),Zr(),xt())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,l=[],c=[],d=[],h=o.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,p=this.cfg.iv,E=0;E<4;E++)f[E]=(f[E]<<8|f[E]>>>24)&16711935|(f[E]<<24|f[E]>>>8)&4278255360;var k=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],T=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var E=0;E<4;E++)m.call(this);for(var E=0;E<8;E++)T[E]^=k[E+4&7];if(p){var b=p.words,w=b[0],A=b[1],S=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,N=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,L=S>>>16|N&4294901760,M=N<<16|S&65535;T[0]^=S,T[1]^=L,T[2]^=N,T[3]^=M,T[4]^=S,T[5]^=L,T[6]^=N,T[7]^=M;for(var E=0;E<4;E++)m.call(this)}},_doProcessBlock:function(f,p){var E=this._X;m.call(this),l[0]=E[0]^E[5]>>>16^E[3]<<16,l[1]=E[2]^E[7]>>>16^E[5]<<16,l[2]=E[4]^E[1]>>>16^E[7]<<16,l[3]=E[6]^E[3]>>>16^E[1]<<16;for(var k=0;k<4;k++)l[k]=(l[k]<<8|l[k]>>>24)&16711935|(l[k]<<24|l[k]>>>8)&4278255360,f[p+k]^=l[k]},blockSize:128/32,ivSize:64/32});function m(){for(var f=this._X,p=this._C,E=0;E<8;E++)c[E]=p[E];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<c[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<c[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<c[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<c[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<c[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<c[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<c[6]>>>0?1:0)|0,this._b=p[7]>>>0<c[7]>>>0?1:0;for(var E=0;E<8;E++){var k=f[E]+p[E],T=k&65535,b=k>>>16,w=((T*T>>>17)+T*b>>>15)+b*b,A=((k&4294901760)*k|0)+((k&65535)*k|0);d[E]=w^A}f[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,f[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,f[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,f[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,f[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,f[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,f[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,f[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=i._createHelper(h)}(),n.Rabbit})}(Xp)),Xp.exports}var eg={exports:{}},tg;function GD(){return tg||(tg=1,function(t,e){(function(n,r,a){t.exports=r(Ke(),Oa(),xa(),Zr(),xt())})(Ve,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,l=[],c=[],d=[],h=o.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,p=this.cfg.iv,E=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],k=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var T=0;T<4;T++)m.call(this);for(var T=0;T<8;T++)k[T]^=E[T+4&7];if(p){var b=p.words,w=b[0],A=b[1],S=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,N=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,L=S>>>16|N&4294901760,M=N<<16|S&65535;k[0]^=S,k[1]^=L,k[2]^=N,k[3]^=M,k[4]^=S,k[5]^=L,k[6]^=N,k[7]^=M;for(var T=0;T<4;T++)m.call(this)}},_doProcessBlock:function(f,p){var E=this._X;m.call(this),l[0]=E[0]^E[5]>>>16^E[3]<<16,l[1]=E[2]^E[7]>>>16^E[5]<<16,l[2]=E[4]^E[1]>>>16^E[7]<<16,l[3]=E[6]^E[3]>>>16^E[1]<<16;for(var k=0;k<4;k++)l[k]=(l[k]<<8|l[k]>>>24)&16711935|(l[k]<<24|l[k]>>>8)&4278255360,f[p+k]^=l[k]},blockSize:128/32,ivSize:64/32});function m(){for(var f=this._X,p=this._C,E=0;E<8;E++)c[E]=p[E];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<c[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<c[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<c[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<c[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<c[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<c[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<c[6]>>>0?1:0)|0,this._b=p[7]>>>0<c[7]>>>0?1:0;for(var E=0;E<8;E++){var k=f[E]+p[E],T=k&65535,b=k>>>16,w=((T*T>>>17)+T*b>>>15)+b*b,A=((k&4294901760)*k|0)+((k&65535)*k|0);d[E]=w^A}f[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,f[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,f[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,f[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,f[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,f[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,f[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,f[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=i._createHelper(h)}(),n.RabbitLegacy})}(eg)),eg.exports}(function(t,e){(function(n,r,a){t.exports=r(Ke(),ms(),SD(),kD(),Oa(),ID(),xa(),$c(),Lo.exports,CD(),cp(),ND(),TD(),AD(),Bc(),OD(),Zr(),xt(),xD(),LD(),RD(),MD(),PD(),$D(),BD(),FD(),zD(),VD(),UD(),HD(),jD(),YD(),WD(),GD())})(Ve,function(n){return n})})(fs);function qD(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=ZD(t),n=KD(e);return{code_verifier:e,code_challenge:n}}function KD(t){return fs.exports.SHA256(t).toString(fs.exports.enc.Base64url)}function ZD(t){return JD(t)}function JD(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";let n="";const r=XD(t);for(let a=0;a<t;a++){const i=r[a]%e.length;n+=e[i]}return n}function XD(t){const e=fs.exports.lib.WordArray.random(t),n=[];return e.words.forEach(r=>{const a=QD(r),i=new Uint8Array(a);for(let o=0;o<4;o++)n.push(i[o])}),n}function QD(t){const e=new ArrayBuffer(4);return new DataView(e).setUint32(0,t,!1),e}var e4=Object.defineProperty,t4=Object.getOwnPropertyDescriptor,Fc=(t,e,n,r)=>{for(var a=r>1?void 0:r?t4(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&e4(e,n,a),a},un=(t=>(t.AGENDA_USERS="agenda_users",t.ORGANISATION_ID="organisation_id",t.ORGANISATION="organisation",t.CURRENT_USER="currentUser",t.RECENT_SERVICES="recent_services",t.RECENT_STAFFS="recent_staffs",t.RECENT_CONTACTS="recent_contacts",t.RECENT_COMPANIES="recent_companies",t.RECENT_USERS="recent_users",t.WORKING_PLANNING_COMPANY="working_planning_company",t))(un||{});const bn=new Map;bn.set("agenda_users","local"),bn.set("organisation_id","local"),bn.set("organisation","session"),bn.set("currentUser","local"),bn.set("recent_services","local"),bn.set("recent_staffs","local"),bn.set("recent_contacts","local"),bn.set("recent_companies","local"),bn.set("recent_users","local"),bn.set("working_planning_company","local");let Jr=class{constructor(t){u(this,"logger"),this.logger=t}dispose(){}getItem(t){const e=this.getKeyStorage(t);return e?e.getItem(t):null}setItem(t,e){const n=this.getKeyStorage(t);n&&n.setItem(t,e)}clear(){localStorage.clear()}clearAllBut(t){if(t===void 0||t.length===0)localStorage.clear(),sessionStorage.clear();else{let e=t.filter(i=>i==="local").length>0,n=t.filter(i=>i==="session").length>0;const r=this,a=t.map(i=>{if(i!=="local"&&i!=="session"){const o=r.getKeyStorage(i);if(o)return{key:i,value:o.getItem(i)}}});e||localStorage.clear(),n||sessionStorage.clear(),a&&a.length>0&&a.forEach(i=>{if(i&&i.key&&i.value){const o=r.getKeyStorage(i.key);if(o)return o.setItem(i.key,i.value)}})}}removeItem(t){localStorage.removeItem(t)}getItems(t){const e=localStorage.getItem(t);return e&&JSON.parse(e)}setItems(t,e){localStorage.setItem(t,JSON.stringify(e))}getKeyStorage(t){const e=bn.get(t);if(e)return e==="local"?localStorage:sessionStorage}async _onCascadeDelete(t,e,n,r){var a,i,o,l,c;switch(n){case ht:(a=this.logger)==null||a.debug("js-calendar-api","Company deleted (clean localStorage)",t),this._cleanRecentsCompanies(t.companyId);break;case wr:(i=this.logger)==null||i.debug("js-calendar-api","Service deleted (clean localStorage)",t),this._cleanRecentsServices(t.serviceId);break;case tn:(o=this.logger)==null||o.debug("js-calendar-api","Staff deleted (clean localStorage)",t),this._cleanRecentsStaffs(t.staffId);break;case Pf:(l=this.logger)==null||l.debug("js-calendar-api","Contact deleted (clean localStorage)",t),this._cleanRecentsContacts(t.contactId);break;case $f:(c=this.logger)==null||c.debug("js-calendar-api","User deleted (clean localStorage)",t),this._cleanRecentsUsers(t.userId);break}}_cleanRecentsCompanies(t){const e=this.getItems("recent_companies"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_companies",n||[])}_cleanRecentsServices(t){const e=this.getItems("recent_services"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_services",n||[])}_cleanRecentsStaffs(t){const e=this.getItems("recent_staffs"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_staffs",n||[])}_cleanRecentsContacts(t){const e=this.getItems("recent_contacts"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_contacts",n||[])}_cleanRecentsUsers(t){const e=this.getItems("recent_users"),n=e==null?void 0:e.filter(r=>r.id!==t);this.setItems("recent_users",n||[])}};Fc([Re.Unsubscribe()],Jr.prototype,"dispose",1),Fc([Re.Subscribe(He.DELETE)],Jr.prototype,"_onCascadeDelete",1),Jr=Fc([Re.Subscriber({channel:ht}),Re.Subscriber({channel:wr}),Re.Subscriber({channel:tn}),Re.Subscriber({channel:Pf}),Re.Subscriber({channel:$f})],Jr);class n4{constructor(e,n,r,a){u(this,"logger"),u(this,"instance"),u(this,"indexedDb"),u(this,"baseURL"),u(this,"clientId"),u(this,"axiosLoggerBuilder"),u(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleError)}),u(this,"_handleResponse",i=>{if(this.logger){const o=this.axiosLoggerBuilder.makeMethod(i.config.method).makeUrl(i.config.url,i.config.baseURL).makeParams(i.config.params).makeStatus(i.status,i.statusText).makeData(i.data).build();this.logger.debug("js-calendar-api",o)}return i.data}),u(this,"_handleError",i=>{var o,l,c,d,h;if(this.logger){const m=this.axiosLoggerBuilder.makeMethod(i.config.method).makeUrl(i.config.url,i.config.baseURL).makeParams(i.config.params).makeStatus((o=i.response)==null?void 0:o.status,(l=i.response)==null?void 0:l.statusText).makeData((c=i.response)==null?void 0:c.data).build();this.logger.error("js-calendar-api",m)}if(Pi.isAxiosError(i)&&((h=(d=i.response)==null?void 0:d.data)==null?void 0:h.error)){const m=Object.assign(new Ho,i.response.data.error);return Promise.reject(m)}else return Promise.reject(i)}),this.instance=Pi.create({baseURL:n}),this.indexedDb=e,this.baseURL=n,this.clientId=r,this.logger=a,this.axiosLoggerBuilder=new xm,this._initializeResponseInterceptor()}loginWithRedirect(e,n="en",r,a=!0){var i;(i=this.logger)==null||i.info("js-calendar-api","Login attempt (pkce)");const o=qD();sessionStorage.setItem("challenge",o.code_verifier);const l=this.baseURL+"/o/oauth2/authorize?client_id="+this.clientId+"&redirect_uri="+encodeURI(e)+"&scope=calendar&code_challenge_method=S256&code_challenge="+o.code_challenge+"&locale="+n+(r?"&error="+r:"");return a&&window.location.assign(l),l}async getAccessToken(e){var n;(n=this.logger)==null||n.info("js-calendar-api","Get AccessToken"),sessionStorage.removeItem("authenticated");const r=this.instance.post("/o/oauth2/token",new URLSearchParams({grant_type:"authorization_code",client_id:this.clientId,code_verifier:sessionStorage.getItem("challenge")||"",code:e}),{headers:{"Content-Type":"application/x-www-form-urlencoded"},params:{},withCredentials:!0});if(sessionStorage.removeItem("challenge"),r!==null)try{return sessionStorage.setItem("authenticated","true"),await r}catch(a){throw a}else throw new we(ye.INTERNAL_ERROR)}async refreshUserSession(e,n,r){const a=new Jr;a.getItem(un.ORGANISATION_ID)!==e.id&&(a.removeItem(un.AGENDA_USERS),a.setItem(un.ORGANISATION_ID,e.id)),a.setItem(un.ORGANISATION,JSON.stringify(e));const i=a.getItem(un.AGENDA_USERS);if(i){const o=JSON.parse(i),l=n==null?void 0:n.map(c=>c.id);l&&a.setItem(un.AGENDA_USERS,JSON.stringify(o.filter(c=>l.includes(c.id))))}a.setItem(un.CURRENT_USER,JSON.stringify(r))}async clearAfterAccountSwitch(){var e;(e=this.logger)==null||e.info("js-calendar-api","ClearAfterAccountSwitch");try{new Jr().clearAllBut([un.ORGANISATION_ID,un.AGENDA_USERS,"session"]),await this.indexedDb.deleteAllTables(),Fe.cleanLastRemoteList()}catch{}}async logout(){var e;(e=this.logger)==null||e.info("js-calendar-api","Logout");try{new Jr().clearAllBut([un.ORGANISATION_ID,un.AGENDA_USERS]),await this.indexedDb.deleteAllTables()}catch{}const n=this.instance.post("/o/oauth2/revoke",void 0,{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0});if(n!==null)try{return await n,Promise.resolve()}catch{return Promise.resolve()}else throw new we(ye.INTERNAL_ERROR)}async refreshToken(){var e;(e=this.logger)==null||e.info("js-calendar-api","Refresh token attempt"),sessionStorage.removeItem("authenticated");const n=this.instance.post("/o/oauth2/token",new URLSearchParams({grant_type:"refresh_token",client_id:this.clientId}),{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0});if(n!==null)try{return sessionStorage.setItem("authenticated","true"),await n}catch(r){throw r}else throw new we(ye.INTERNAL_ERROR)}}class zc{constructor(){u(this,"items")}static fromFreeSlotDto(e){const n=new zc,r=[];return e.items.forEach(a=>r.push(Vc.fromFreeSlotItemDto(a))),n.items=r,n}}class Vc{constructor(){u(this,"day"),u(this,"slots"),u(this,"timeZone")}static fromFreeSlotItemDto(e){const n=new Vc;n.day=e.day;const r=[];return e.slots.forEach(a=>r.push(St(a,e.timeZone))),n.slots=r,n.timeZone=e.timeZone,n}getMorningSlots(){let e=[];return this.slots.forEach(n=>{n.getHours()<12&&e.push(n)}),e}getAfternoonSlots(){let e=[];return this.slots.forEach(n=>{n.getHours()>=12&&e.push(n)}),e}}class r4 extends Ue{async getFreeSlots(e,n,r,a,i,o,l,c,d){let h=`/api/2.1/scheduling/companies/${r}/widget/freeSlots`,m=this.getAxiosConfig(e,n);m.params.startDate=a,m.params.endDate=i,m.params.serviceId=o,m.params.staffId=l,m.params.timeZone=c,m.params.iterationCount=d;const f=this.instance.get(h,m);if(f!==null)try{return await f}catch(p){throw p}else throw new we(ye.INTERNAL_ERROR)}}class a4 extends Fe{constructor(e,n,r,a){super("freeSlot",a),u(this,"indexedDb"),u(this,"freeSlotService"),this.indexedDb=n,this.freeSlotService=new r4(r,e,a)}async getFreeSlots(e,n,r,a,i,o,l,c,d){return this.getById(e,pe.REMOTE_ONLY,{account:n,companyId:r,start:a,end:i,serviceId:o,staffId:l,timeZone:c,iterationCount:d})}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){if(!n.account||!n.companyId||!n.start||!n.end||!n.serviceId)throw Error("Invalid state:"+JSON.stringify(n));const r=await this.freeSlotService.getFreeSlots(e,n.account,n.companyId,n.start,n.end,n.serviceId,n.staffId,n.timeZone,n.iterationCount);return zc.fromFreeSlotDto(r)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localBulkSave(e,n){}async localGet(e){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}}class i4 extends Ue{async getByOwner(e,n){let r="/api/2.0/accounts/privacy",a=this.getAxiosConfig(e);a.params.owner=n,a.params.replace=!0;const i=this.instance.get(r,a);if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}}class o4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async savePrivacyPolicy(e){await this.indexedDb.putValue(Qo,e)}async getByOwnerId(e){return this.indexedDb.getValue(Qo,e)}async drop(){await this.indexedDb.deleteAllValues(Qo)}}class s4 extends Fe{constructor(e,n,r,a){super("privacyPolicy",a),u(this,"privacyPolicyDb"),u(this,"privacyPolicyService"),this.privacyPolicyDb=new o4(n),this.privacyPolicyService=new i4(r,e,a)}async getPrivacyPolicy(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{ownerId:n,ownerLogin:r})}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){const r=await this.privacyPolicyService.getByOwner(e,n.ownerLogin);return Bo.fromPrivacyPolicyDto(r,n.ownerId)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localGet(e){return this.privacyPolicyDb.getByOwnerId(e.ownerId)}async localBulkSave(e,n){if(n.length!=1)throw new Error("Invalid state");await this.privacyPolicyDb.savePrivacyPolicy(n[0])}async localList(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}}class ng{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveNotification(e){await this.indexedDb.putValue(Na,e)}async deleteNotification(e){await this.indexedDb.deleteValue(Na,e)}async getById(e){return this.indexedDb.getValue(Na,e)}async getAll(){return this.indexedDb.getAllValue(Na)}async drop(){await this.indexedDb.deleteAllValues(Na)}}class l4{constructor(e,n,r,a,i=10){u(this,"logger"),u(this,"url"),u(this,"listeners"),u(this,"args"),u(this,"maxAttempt"),u(this,"sseSource"),u(this,"state"),u(this,"reconnectCount"),this.state=EventSource.CONNECTING,this.reconnectCount=0,this.url=e,this.listeners=n,this.maxAttempt=i,this.logger=a,this.args=r,this.sseSource=this.initSSE()}close(){var e;(e=this.sseSource)==null||e.close()}initSSE(){const e=new EventSource(this.url,{withCredentials:!0});return e.addEventListener("open",this.openListener),e.addEventListener("error",this.errorListener),this.listeners.forEach(n=>{e.addEventListener(n.messageInputType,r=>n.eventAction(r,n.messageInputType,n.messageOutputType,this.args))}),e}openListener(e){var n;(n=this.logger)==null||n.info("js-calendar-api","SSE connected",e),this.state==EventSource.CONNECTING&&(this.state=EventSource.OPEN,this.reconnectCount=0)}errorListener(e){var n;(n=this.logger)==null||n.error("js-calendar-api","SSE error: ",e),this.reconnectCount++,this.state==EventSource.OPEN&&(this.state=EventSource.CONNECTING),this.sseSource&&this.sseSource.readyState==EventSource.CLOSED&&(this.sseSource.close(),this.sseSource=void 0,this.reconnectCount<this.maxAttempt?setTimeout(this.initSSE,500*Math.pow(2,this.reconnectCount)):this.state=EventSource.CLOSED)}}class Xr{constructor(e,n,r){u(this,"messageInputType"),u(this,"messageOutputType"),u(this,"eventAction"),this.messageInputType=n,this.messageOutputType=r,this.eventAction=e}}class c4{constructor(e,n,r,a,i,o){u(this,"notificationDb"),u(this,"sseSource"),u(this,"logger"),u(this,"callback"),this.notificationDb=new ng(n),this.logger=i,this.callback=o;const l=[new Xr(this.eventAction,"sch-event-add","new"),new Xr(this.eventAction,"sch-event-update","update"),new Xr(this.eventAction,"sch-event-rm","delete"),new Xr(this.eventAction,"sch-event-accept","accept"),new Xr(this.eventAction,"sch-event-decline","decline")];a&&(l.push(new Xr(this.eventAction,"sch-report-available","new")),l.push(new Xr(this.eventAction,"sch-report-fail","fail")));const c={self:this};this.sseSource=new l4(e+`/sse/v1/notifications?organisation=${encodeURIComponent(r)}`,l,c,i)}close(){this.sseSource.close()}async eventAction(e,n,r,a){const i=a.self;if(!i){console.error("unknown self");return}const o=JSON.parse(e.data),l=Uo.fromNotificationDto(o,r);await i.notificationDb.saveNotification(l),i.callback&&i.callback(r,l)}}class u4 extends Ue{async getAllServiceGroups(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/serviceGroups`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async createServiceGroup(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateServiceGroup(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}`;const l=this.instance.put(o,i,this.getAxiosConfig(e,n));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/serviceGroups/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}var d4=Object.defineProperty,h4=Object.getOwnPropertyDescriptor,Uc=(t,e,n,r)=>{for(var a=r>1?void 0:r?h4(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&d4(e,n,a),a};let zi=class extends Fe{constructor(t,e,n,r){super("serviceGroup",r),u(this,"serviceGroupDb"),u(this,"serviceGroupService"),this.serviceGroupDb=new Rm(e),this.serviceGroupService=new u4(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllServiceGroups(t,e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getServiceGroup(t,e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceGroupId:r})}async createServiceGroup(t,e,n,r){return super.create(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r)}async updateServiceGroup(t,e,n,r,a){return super.update(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceGroupId:r},a)}async deleteServiceGroup(t,e,n,r){return this.deleteById(t,{account:e,companyId:n,serviceGroupId:r})}async remoteList(t,e){return(await this.serviceGroupService.getAllServiceGroups(t,e.account,e.companyId)).map(n=>Kn.fromServiceGroupDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceGroupService.getById(t,e.account,e.companyId,e.serviceGroupId);return Kn.fromServiceGroupDto(n,e.companyId)}async remoteCreate(t,e,n){const r=Kn.toServiceGroupDto(n),a=await this.serviceGroupService.createServiceGroup(t,e.account,e.companyId,r);return Kn.fromServiceGroupDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Kn.toServiceGroupDto(n),a=await this.serviceGroupService.updateServiceGroup(t,e.account,e.companyId,e.serviceGroupId,r);return Kn.fromServiceGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceGroupService.delete(t,e.account,e.companyId,e.serviceGroupId)}async localList(t){return this.serviceGroupDb.getAllServiceGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceGroupDb.getById(t.companyId,t.serviceGroupId)}async localBulkSave(t,e){await this.serviceGroupDb.saveAllServiceGroups(e)}async localDelete(t){this.checkNullable(t),await this.serviceGroupDb.deleteById(t.companyId,t.serviceGroupId)}async localBulkDelete(t){await this.serviceGroupDb.deleteByServiceGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Uc([Re.Unsubscribe()],zi.prototype,"dispose",1),Uc([Re.Subscribe(He.DELETE)],zi.prototype,"onCascadeDelete",1),zi=Uc([Re.Subscriber({channel:ht})],zi);class f4 extends Ue{async getAllStaffGroups(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/staffGroups`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async createStaffGroup(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateStaffGroup(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}`;const l=this.instance.put(o,i,this.getAxiosConfig(e,n));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/staffGroups/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class m4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllStaffGroups(e){return(await this.indexedDb.getAllValue(Wr)||[]).filter(n=>n.companyId===e)}async saveAllStaffGroups(e){await this.indexedDb.putBulkValue(Wr,e)}async getById(e,n){const r=await this.indexedDb.getValue(Wr,n);if((r==null?void 0:r.companyId)===e)return r;throw Tn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Wr,n),await new Mm(this.indexedDb).updateStaffSkills(e,n,void 0)}async deleteByStaffGroupIds(e){await this.indexedDb.deleteValues(Wr,e)}async drop(){await this.indexedDb.deleteAllValues(Wr)}updateStaffs(e,n,r){this.getAllStaffGroups(e).then(async a=>{const i=a.filter(o=>{var l;return(l=o.members)==null?void 0:l.find(c=>c.id===n)});i&&i.length>0&&(i.forEach(o=>{var l,c,d;const h=(l=o.members)==null?void 0:l.findIndex(m=>m.id===n);h!=null&&(r?(c=o.members)==null||c.splice(h,1,r):(d=o.members)==null||d.splice(h,1))}),await this.saveAllStaffGroups(i))})}}var p4=Object.defineProperty,g4=Object.getOwnPropertyDescriptor,Hc=(t,e,n,r)=>{for(var a=r>1?void 0:r?g4(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&p4(e,n,a),a};let Vi=class extends Fe{constructor(t,e,n,r){super("staffGroup",r),u(this,"staffGroupDb"),u(this,"staffGroupService"),this.staffGroupDb=new m4(e),this.staffGroupService=new f4(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){if(n==ht&&e===He.DELETE&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId),n==br){const a=t.entity;for(const i of a.companies)await this.cascadeDelete({account:t.organisation,companyId:i.company.id},()=>!0)}n==tn&&await this.cascadeDelete({account:t.organisation,companyId:t.companyId},()=>!0)}async getAllStaffGroups(t,e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getStaffGroup(t,e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,staffGroupId:r})}async createStaffGroup(t,e,n,r){return this.create(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r)}async updateStaffGroup(t,e,n,r,a){return this.update(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,staffGroupId:r},a)}async deleteStaffGroup(t,e,n,r){return this.deleteById(t,{account:e,companyId:n,staffGroupId:r})}async remoteList(t,e){return(await this.staffGroupService.getAllStaffGroups(t,e.account,e.companyId)).map(n=>Zn.fromStaffGroupDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.staffGroupService.getById(t,e.account,e.companyId,e.staffGroupId);return Zn.fromStaffGroupDto(n,e.companyId)}async remoteCreate(t,e,n){const r=Zn.toStaffGroupDto(n),a=await this.staffGroupService.createStaffGroup(t,e.account,e.companyId,r);return Zn.fromStaffGroupDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Zn.toStaffGroupDto(n),a=await this.staffGroupService.updateStaffGroup(t,e.account,e.companyId,e.staffGroupId,r);return Zn.fromStaffGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.staffGroupService.delete(t,e.account,e.companyId,e.staffGroupId)}async localList(t){return this.staffGroupDb.getAllStaffGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffGroupDb.getById(t.companyId,t.staffGroupId)}async localBulkSave(t,e){await this.staffGroupDb.saveAllStaffGroups(e)}async localDelete(t){this.checkNullable(t),await this.staffGroupDb.deleteById(t.companyId,t.staffGroupId)}async localBulkDelete(t){await this.staffGroupDb.deleteByStaffGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Hc([Re.Unsubscribe()],Vi.prototype,"dispose",1),Hc([Re.Subscribe(He.DELETE),Re.Subscribe(He.UPDATE),Re.Subscribe(He.CREATE)],Vi.prototype,"onCascadeDelete",1),Vi=Hc([Re.Subscriber({channel:ht}),Re.Subscriber({channel:br}),Re.Subscriber({channel:tn})],Vi);class y4 extends Ue{async getByAccount(e,n){let r="/api/2.1/scheduling/companies/0/staff/form";const a=this.instance.get(r,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}}class v4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getByAccount(e){const n=await this.indexedDb.getValue(Oi,e);if((n==null?void 0:n.id)===e)return n;throw Tn}async saveAllStaffs(e){await this.indexedDb.putBulkValue(Oi,e)}async deleteById(e){await this.getByAccount(e),await this.indexedDb.deleteValue(Oi,e)}async drop(){await this.indexedDb.deleteAllValues(Oi)}}class w4 extends Fe{constructor(e,n,r,a){super("staffForms",a),u(this,"staffFormsDb"),u(this,"staffFormsService"),this.staffFormsDb=new v4(n),this.staffFormsService=new y4(r,e,a)}async getByAccount(e,n,r=pe.LOCAL_THEN_REMOTE){return this.getById(e,r,{account:n})}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){const r=await this.staffFormsService.getByAccount(e,n.account);return zo.fromStaffFormsDto(r,n.account)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){return this.staffFormsDb.getByAccount(e.account)}async localBulkSave(e,n){await this.staffFormsDb.saveAllStaffs(n)}async localDelete(e){await this.staffFormsDb.deleteById(e.account)}localBulkDelete(e){return Promise.resolve(void 0)}}class b4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getById(e){return this.indexedDb.getValue(ts,e)}async drop(){await this.indexedDb.deleteAllValues(ts)}async saveAllRights(e){await this.indexedDb.putBulkValue(ts,e)}}class _4 extends Ue{async getById(e,n,r){let a=this.getAxiosConfig(e,r),i=`/api/2.3/rights/${n}`;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}}class E4 extends Fe{constructor(e,n,r,a){super("rights",a),u(this,"rightsDb"),u(this,"rightsService"),this.rightsDb=new b4(n),this.rightsService=new _4(r,e,a)}async getRights(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{rightsId:n,organisation:r})}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){this.checkNullable(n);const r=await this.rightsService.getById(e,n.rightsId,n.organisation);return Vo.fromRightsDto(r)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){return this.checkNullable(e),this.rightsDb.getById(e.rightsId)}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}async localBulkSave(e,n){await this.rightsDb.saveAllRights(n)}checkNullable(e){if(!e.rightsId||!e.organisation)throw Error("Invalid state:"+JSON.stringify(e))}}class D4 extends Ue{async getAllActivities(e,n,r){const a=this.instance.get(`/api/2.3/clients/${r}/activities`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async getAllEventActivities(e,n,r,a){const i=this.getAxiosConfig(e,n);i.params.appointmentId=a;const o=this.instance.get(`/api/2.3/clients/${r}/activities`,i);if(o!==null)try{return(await o).items}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class S4 extends Fe{constructor(e,n,r,a){super("activity",a),u(this,"activityService"),this.activityService=new D4(r,e,a)}async getAllActivities(e,n,r){return this.list(e,pe.REMOTE_ONLY,{account:n,clientId:r})}async getAllEventActivities(e,n,r,a){return this.list(e,pe.REMOTE_ONLY,{account:n,clientId:r,eventId:a})}async remoteList(e,n){this.checkNullable(n);let r;return n.eventId?r=await this.activityService.getAllEventActivities(e,n.account,n.clientId,n.eventId):r=await this.activityService.getAllActivities(e,n.account,n.clientId),r.map(a=>Er.fromActivityDto(a)).filter(a=>a!==void 0)}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}checkNullable(e){if(!e.clientId)throw Error("Invalid state:"+JSON.stringify(e))}}class k4 extends Ue{async getAllNotes(e,n,r){const a=this.getAxiosConfig(e,n);a.params.clientId=r;const i=this.instance.get("/api/2.0/notes",a);if(i!==null)try{return(await i).items}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async createNote(e,n,r,a){let i="/api/2.0/notes";a.clientId=r;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class I4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllNotes(e){await this.indexedDb.putBulkValue(Gr,e)}async saveNote(e){await this.indexedDb.putValue(Gr,e)}async deleteNote(e){await this.indexedDb.deleteValue(Gr,e)}async getAllNotes(e){return(await this.indexedDb.getAllValue(Gr)||[]).filter(n=>n.clientId===e)}async getById(e){return this.indexedDb.getValue(Gr,e)}async drop(){await this.indexedDb.deleteAllValues(Gr)}}class C4 extends Fe{constructor(e,n,r,a){super("note",a),u(this,"noteDb"),u(this,"noteService"),this.noteDb=new I4(n),this.noteService=new k4(r,e,a)}async getAllNotes(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.list(e,a,{account:n,clientId:r})}async createClientNote(e,n,r,a){return super.create(e,pe.REMOTE_THEN_LOCAL,{account:n,clientId:r},a)}async remoteList(e,n){return(await this.noteService.getAllNotes(e,n.account,n.clientId)).map(r=>Sa.fromNoteDto(r))}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){const a=Sa.toNoteDto(r),i=await this.noteService.createNote(e,n.account,n.clientId,a);return Sa.fromNoteDto(i)}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){return this.noteDb.getAllNotes(e.clientId)}async localGet(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){await this.noteDb.saveAllNotes(n)}localBulkDelete(e){return Promise.resolve(void 0)}async localDelete(e){throw new Error("Method not implemented.")}}class N4 extends Fe{constructor(e,n){super("sse_notification",n),u(this,"notificationDb"),this.notificationDb=new ng(e)}async getAllNotifications(e,n=pe.LOCAL_THEN_REMOTE){return this.list(e,n,{})}async getNotification(e,n,r=pe.LOCAL_THEN_REMOTE){return this.getById(e,r,{notificationId:n})}async deleteNotification(e,n){return this.deleteById(e,{notificationId:n})}async remoteList(e){throw new Error("Method not implemented.")}async remoteGet(e){throw new Error("Method not implemented.")}async remoteCreate(e){throw new Error("Method not implemented.")}async remoteUpdate(e){throw new Error("Method not implemented.")}async remoteDelete(e){throw new Error("Method not implemented.")}async localList(){return this.notificationDb.getAll()}async localGet(e){return this.checkNullable(e),this.notificationDb.getById(e.notificationId)}async localDelete(e){return this.checkNullable(e),this.notificationDb.deleteNotification(e.notificationId)}localBulkDelete(e){return Promise.resolve(void 0)}async localBulkSave(){throw new Error("Method not implemented.")}checkNullable(e){if(!e.notificationId)throw Error("Invalid state:"+JSON.stringify(e))}}class T4 extends Ue{async getAllForms(e,n){let r="/api/2.3/forms";const a=this.instance.get(r,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r){let a=`/api/2.3/forms/${n}`;const i=this.instance.delete(a,this.getAxiosConfig(e,r));if(i!==null)try{await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async update(e,n,r,a){let i=`/api/2.3/forms/${n}`;const o=this.instance.put(i,r,this.getAxiosConfig(e,a));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async create(e,n,r){let a="/api/2.3/forms/";const i=this.instance.post(a,n,this.getAxiosConfig(e,r));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}}class A4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveAllForms(e){await this.indexedDb.putBulkValue(Ca,e)}async getAllForms(e){const n=await this.indexedDb.getAllValue(Ca);return e?n.filter(r=>r.author===e):n}async getById(e){return this.indexedDb.getValue(Ca,e)}async deleteById(e){await this.indexedDb.deleteValue(Ca,e)}async drop(){await this.indexedDb.deleteAllValues(Ca)}}class O4 extends Fe{constructor(e,n,r,a){super("formBuilder",a),u(this,"formBuilderDb"),u(this,"formBuilderService"),this.formBuilderDb=new A4(n),this.formBuilderService=new T4(r,e,a)}async getAllForms(e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(e,r,{account:n})}async getFormById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{formId:n,account:r})}async deleteFormById(e,n,r){return this.deleteById(e,{formId:n,account:r})}async updateFormById(e,n,r,a){return this.update(e,pe.REMOTE_THEN_LOCAL,{formId:n,account:a},r)}async createForm(e,n,r){return this.create(e,pe.REMOTE_THEN_LOCAL,{account:n},r)}async remoteList(e,n){return(await this.formBuilderService.getAllForms(e,n.account)).map(r=>yr.fromFormBuilderDto(r))}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){const a=yr.toFromBuilderDto(r),i=await this.formBuilderService.create(e,a,n.account);return yr.fromFormBuilderDto(i)}async remoteUpdate(e,n,r){this.checkNullable(n);const a=yr.toFromBuilderDto(r),i=await this.formBuilderService.update(e,n.formId,a,n.account);return yr.fromFormBuilderDto(i)}async remoteDelete(e,n){this.checkNullable(n),await this.formBuilderService.delete(e,n.formId,n.account)}async localList(e){return this.formBuilderDb.getAllForms(e.account)}async localGet(e){return this.checkNullable(e),this.formBuilderDb.getById(e.formId)}async localBulkSave(e,n){await this.formBuilderDb.saveAllForms(n)}async localDelete(e){this.checkNullable(e),await this.formBuilderDb.deleteById(e.formId)}localBulkDelete(e){throw new Error("Method not implemented.")}checkNullable(e){if(!e.formId)throw Error("Invalid state:"+JSON.stringify(e))}}class x4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async saveQueue(e){await this.indexedDb.putValue(Kr,e)}async deleteQueue(e){await this.indexedDb.deleteValue(Kr,e)}async getAllQueues(e){return(await this.indexedDb.getAllValue(Kr)).filter(n=>n.author===e)}async getById(e){return this.indexedDb.getValue(Kr,e)}async saveAllQueue(e){await this.indexedDb.putBulkValue(Kr,e)}async drop(){await this.indexedDb.deleteAllValues(Kr)}}class L4 extends Ue{async getAllQueues(e,n){const r=this.instance.get("/api/2.0/queues",this.getAxiosConfig(n,e));if(r!==null)try{return(await r).items}catch(a){throw a}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r){let a=`/api/2.0/queues/${n}`;const i=this.instance.get(a,this.getAxiosConfig(e,r));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r){let a=`/api/2.0/queues/${n}`;const i=this.instance.delete(a,this.getAxiosConfig(e,r));if(i!==null)try{await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async createQueue(e,n,r){let a="/api/2.0/queues";const i=this.instance.post(a,r,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async updateQueue(e,n,r,a){let i=`/api/2.0/queues/${r}`;const o=this.instance.put(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class R4 extends Fe{constructor(e,n,r,a){super("queue",a),u(this,"queueDb"),u(this,"queueService"),this.queueDb=new x4(n),this.queueService=new L4(r,e,a)}async getAllQueues(e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(n,r,{account:e})}async getQueue(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{queueId:n,account:r})}async createQueue(e,n,r){return this.create(e,pe.REMOTE_THEN_LOCAL,{account:n},r)}async updateQueue(e,n,r,a){return this.update(e,pe.REMOTE_THEN_LOCAL,{account:n,queueId:r},a)}async deleteQueue(e,n,r,a=pe.LOCAL_THEN_REMOTE){await this.deleteById(e,{queueId:n,account:r})}async remoteList(e,n){if(!n.account)throw Error("Invalid state:"+JSON.stringify(n));return(await this.queueService.getAllQueues(n.account,e)).map(r=>Jn.fromQueueDto(r))}async remoteGet(e,n){this.checkNullable(n);const r=await this.queueService.getById(e,n.queueId,n.account);return Jn.fromQueueDto(r)}async remoteCreate(e,n,r){if(!n.account)throw Error("Invalid state:"+JSON.stringify(n));const a=Jn.toQueueDto(r);let i=await this.queueService.createQueue(e,n.account,a);return Jn.fromQueueDto(i)}async remoteDelete(e,n){this.checkNullable(n),await this.queueService.delete(e,n.queueId,n.account)}async remoteUpdate(e,n,r){this.checkNullable(n);const a=Jn.toQueueDto(r),i=await this.queueService.updateQueue(e,n.account,n.queueId,a);return Jn.fromQueueDto(i)}async localList(e){if(!e.account)throw Error("Invalid state:"+JSON.stringify(e));return this.queueDb.getAllQueues(e.account)}async localBulkSave(e,n){await this.queueDb.saveAllQueue(n)}async localDelete(e){return this.checkNullable(e),this.queueDb.deleteQueue(e.queueId)}localBulkDelete(e){return Promise.resolve(void 0)}async localGet(e){return this.checkNullable(e),this.queueDb.getById(e.queueId)}checkNullable(e){if(!e.queueId||!e.account)throw Error("Invalid state:"+JSON.stringify(e))}}class La{constructor(){u(this,"id"),u(this,"form"),u(this,"ipAddress"),u(this,"date"),u(this,"client"),u(this,"eventId"),u(this,"result"),u(this,"emailResult"),u(this,"author"),u(this,"currentStatus")}static fromFormResultDto(e,n){var r,a;let i=new La;i.id=e.id,i.form=e.form,i.ipAddress=e.ipAddress,i.date=St(e.date+"Z",n),e.client&&(i.client={id:e.client,email:e.clientEmailAddress}),i.eventId=e.eventId;let o=[];return(r=e.result)==null||r.forEach(l=>o.push(Ct.fromFormDto(l))),i.result=o,(a=i.result)==null||a.forEach(l=>{if(l.type==="email"&&l.value){i.emailResult=l.value;return}}),i.author=e.author,i.currentStatus=e.currentStatus,i}static toFormResultDto(e){var n,r,a;let i=new M4;i.id=e.id,i.form=e.form,i.ipAddress=e.ipAddress,i.client=(n=e.client)==null?void 0:n.id,i.eventId=e.eventId;let o=[];return(r=e.result)==null||r.forEach(l=>o.push(Ct.toFormDto(l))),i.result=o,i.clientEmailAddress=(a=e.client)==null?void 0:a.email,i.author=e.author,i.currentStatus=e.currentStatus,i}}class M4{constructor(){u(this,"id"),u(this,"form"),u(this,"ipAddress"),u(this,"date"),u(this,"client"),u(this,"eventId"),u(this,"result"),u(this,"clientEmailAddress"),u(this,"author"),u(this,"currentStatus")}}class P4 extends Ue{async getAllResults(e,n,r){let a=`/api/2.3/forms/${n}/results`;const i=this.instance.get(a,this.getAxiosConfig(e,r));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async getFormResultById(e,n,r,a){let i=`/api/2.3/forms/${n}/results/${r}`;const o=this.instance.get(i,this.getAxiosConfig(e,a));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.3/forms/${n}/results/${r}`;const o=this.instance.delete(i,this.getAxiosConfig(e,a));if(o!==null)try{await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateResult(e,n,r,a,i){let o=`/api/2.3/forms/${n}/results/${r}`;const l=this.instance.put(o,a,this.getAxiosConfig(e,i));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}}class $4 extends Fe{constructor(e,n,r,a){super("formResult",a),u(this,"formResultService"),this.formResultService=new P4(r,e,a)}async getAllResultByForm(e,n,r,a,i=pe.REMOTE_ONLY){return await this.list(e,i,{formId:n,timeZone:r,account:a})}async getResultById(e,n,r,a,i,o=pe.REMOTE_ONLY){return await this.getById(e,o,{formId:n,resultId:r,timeZone:a,account:i})}async updateResultById(e,n,r,a,i,o){return await this.update(e,pe.REMOTE_ONLY,{formId:n,resultId:r,timeZone:i,account:o},a)}async deleteResultById(e,n,r,a){return await this.deleteById(e,{formId:n,resultId:r,account:a})}localBulkDelete(e){return Promise.resolve(void 0)}async localBulkSave(e,n){}async localDelete(e){}localGet(e){throw new Error("Method not implemented.")}localList(e){throw new Error("Method not implemented.")}remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){this.checkNullable(n,!0,!1),await this.formResultService.delete(e,n.formId,n.resultId,n.account)}async remoteGet(e,n){this.checkNullable(n);const r=await this.formResultService.getFormResultById(e,n.formId,n.resultId,n.account);return La.fromFormResultDto(r,n.timeZone)}async remoteList(e,n){return this.checkNullable(n,!1),(await this.formResultService.getAllResults(e,n.formId,n.account)).map(r=>La.fromFormResultDto(r,n.timeZone))}async remoteUpdate(e,n,r){this.checkNullable(n);const a=La.toFormResultDto(r),i=await this.formResultService.updateResult(e,n.formId,n.resultId,a,n.account);return La.fromFormResultDto(i,n.timeZone)}checkNullable(e,n=!0,r=!0){if(!e.formId||!e.account||!e.resultId&&n||!e.timeZone&&r)throw Error("Invalid state:"+JSON.stringify(e))}}class ps{constructor(){u(this,"resultId"),u(this,"login"),u(this,"status"),u(this,"date"),u(this,"connectedUser")}static fromFormResultStatusDto(e,n){let r=new ps;return r.resultId=e.resultId,r.login=e.login,r.connectedUser=e.connectedUser,r.status=e.status,r.date=St(e.date+"Z",n),r}static toFormResultStatusDto(e){let n=new B4;return n.resultId=e.resultId,n.login=e.login,n.connectedUser=e.connectedUser,n.status=e.status,n}}class B4{constructor(){u(this,"resultId"),u(this,"login"),u(this,"status"),u(this,"date"),u(this,"connectedUser")}}class F4 extends Ue{async getStatusByResultId(e,n,r,a){let i=`/api/2.3/forms/${n}/results/${r}/status`;const o=this.instance.get(i,this.getAxiosConfig(e,a));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async createStatus(e,n,r,a,i){let o=`/api/2.3/forms/${n}/results/${r}/status`;const l=this.instance.post(o,a,this.getAxiosConfig(e,i));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}}class z4 extends Fe{constructor(e,n,r,a){super("formResultStatus",a),u(this,"formResultStatusService"),this.formResultStatusService=new F4(r,e,a)}async getStatusByFormResult(e,n,r,a,i,o=pe.REMOTE_ONLY){return this.list(e,o,{formId:n,resultId:r,timeZone:a,account:i})}async addNewStatus(e,n,r,a,i,o){return this.create(e,pe.REMOTE_ONLY,{formId:n,resultId:r,timeZone:i,account:o},a)}localBulkDelete(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){}localDelete(e){throw new Error("Method not implemented.")}localGet(e){throw new Error("Method not implemented.")}localList(e){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){this.checkNullable(n);const a=await this.formResultStatusService.createStatus(e,n.formId,n.resultId,r,n.account);return ps.fromFormResultStatusDto(a,n.timeZone)}remoteDelete(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteList(e,n){return this.checkNullable(n),(await this.formResultStatusService.getStatusByResultId(e,n.formId,n.resultId,n.account)).map(r=>ps.fromFormResultStatusDto(r,n.timeZone))}remoteUpdate(e,n,r){throw new Error("Method not implemented.")}checkNullable(e){if(!e.formId||!e.resultId||!e.timeZone||!e.account)throw Error("Invalid state:"+JSON.stringify(e))}}class rg extends Ue{async getAccount(e,n,r){let a=this.getAxiosConfig(e,n);a.params.showCrossAccount=r;const i=this.instance.get("/api/2.3/accounts",a);if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async updateAccount(e,n){const r=this.instance.put("/api/2.0/accounts",n,this.getAxiosConfig(e));if(r!==null)try{return await r}catch(a){throw a}else throw new we(ye.INTERNAL_ERROR)}async updatePassword(e,n,r){const a=this.instance.put("/o/oauth2/reset/password",{currentPassword:n,newPassword:r},this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}}class Ui{constructor(){u(this,"id"),u(this,"owner"),u(this,"client"),u(this,"registeredDate"),u(this,"status"),u(this,"rank")}static fromQueueRegistrationDto(e){const n=new Ui;return n.id=e.id,e.owner&&(n.owner={id:e.owner.id,userName:e.owner.userName}),e.client&&(n.client=cn.fromContactDto(e.client)),e.registered&&(n.registeredDate=St(e.registered.dateTime,e.registered.timeZone)),n.status=e.status,n.rank=e.rank,n}static toQueueRegistrationDto(e){const n=new V4;return n.id=e.id,e.owner&&(n.owner={id:e.owner.id,userName:e.owner.userName}),e.client&&(n.client=cn.toContactDto(e.client)),e.registeredDate&&(n.registered=Di(e.registeredDate)),n.status=e.status,n.rank=e.rank,n}}class V4{constructor(){u(this,"id"),u(this,"owner"),u(this,"client"),u(this,"registered"),u(this,"status"),u(this,"rank")}}class U4 extends Ue{async getAllQueueRegistrations(e,n,r,a){let i=`/api/2.3/queues/${r}/registrations`;const o=this.getAxiosConfig(e);a&&(o.params.status=a);const l=this.instance.get(i,o);if(l!==null)try{return(await l).items}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async updateRegistration(e,n,r,a,i){const o=this.instance.put(`/api/2.3/queues/${r}/registrations/${a}`,i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class H4 extends Fe{constructor(e,n,r,a){super("company",a),u(this,"queueRegistrationsService"),this.queueRegistrationsService=new U4(r,e,a)}async getAllQueueRegistrations(e,n,r,a){return this.list(e,pe.REMOTE_ONLY,{account:n,queueId:r,status:a})}async updateQueueRegistration(e,n,r,a,i){return this.update(e,pe.REMOTE_ONLY,{account:n,queueId:r,registrationId:a},i)}async remoteList(e,n){return this.checkNullable(n),(await this.queueRegistrationsService.getAllQueueRegistrations(e,n.account,n.queueId,n.status)).map(r=>Ui.fromQueueRegistrationDto(r))}async remoteGet(e,n){throw Error("Not implemented")}async remoteCreate(e,n,r){throw Error("Not implemented")}async remoteUpdate(e,n,r){this.checkNullable(n);const a=Ui.toQueueRegistrationDto(r),i=await this.queueRegistrationsService.updateRegistration(e,n.account,n.queueId,n.registrationId,a);return Ui.fromQueueRegistrationDto(i)}async remoteDelete(e,n){}async localList(){throw Error("Not implemented")}async localGet(e){throw Error("Not implemented")}async localBulkSave(e,n){}async localDelete(e){}localBulkDelete(e){throw Error("Not implemented")}checkNullable(e){if(!e.account||!e.queueId)throw Error("Invalid state:"+JSON.stringify(e))}}class j4 extends Ue{async getAllTags(e,n){let r="/api/2.3/tags";const a=this.instance.get(r,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}}class Y4 extends Fe{constructor(e,n,r,a){super("company",a),u(this,"tagService"),this.tagService=new j4(r,e)}async getAllTags(e,n){return this.list(e,pe.REMOTE_ONLY,{account:n})}localBulkDelete(e){return Promise.resolve(void 0)}localBulkSave(e,n){return Promise.resolve(void 0)}localDelete(e){return Promise.resolve(void 0)}localGet(e){throw Error("Not implemented")}localList(e){return Promise.resolve([])}remoteCreate(e,n,r){throw Error("Not implemented")}remoteDelete(e,n){return Promise.resolve(void 0)}remoteGet(e,n){throw Error("Not implemented")}async remoteList(e,n){return(await this.tagService.getAllTags(e,n.account)).map(r=>Ii.fromContactTagDto(r))}remoteUpdate(e,n,r){throw Error("Not implemented")}}class W4 extends Ue{async getFields(e,n){let r="/api/2.3/clients/fields";const a=this.instance.get(r,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}}class G4 extends Fe{constructor(e,n,r,a){super("additionalFields",a),u(this,"additionalFieldsService"),this.additionalFieldsService=new W4(r,e)}async getAdditionalFields(e,n){return this.remoteGet(e,{account:n})}localBulkDelete(e){throw Error("Not implemented")}localBulkSave(e,n){throw Error("Not implemented")}localDelete(e){throw Error("Not implemented")}localGet(e){throw Error("Not implemented")}localList(e){throw Error("Not implemented")}remoteCreate(e,n,r){throw Error("Not implemented")}remoteDelete(e,n){throw Error("Not implemented")}async remoteGet(e,n){let r=await this.additionalFieldsService.getFields(e,n.account);return oc.fromAdditionalFieldsDto(r)}remoteList(e,n){throw Error("Not implemented")}remoteUpdate(e,n,r){throw Error("Not implemented")}}class q4 extends Ue{async getAllServiceResources(e,n,r){const a=this.instance.get(`/api/2.1/scheduling/companies/${r}/service-resources`,this.getAxiosConfig(e,n));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources/${a}`;const o=this.instance.get(i,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async createService(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources`;const o=this.instance.post(i,a,this.getAxiosConfig(e,n));if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async updateService(e,n,r,a,i){let o=`/api/2.1/scheduling/companies/${r}/service-resources/${a}`;const l=this.instance.put(o,i,this.getAxiosConfig(e,n));if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r,a){let i=`/api/2.1/scheduling/companies/${r}/service-resources/${a}`;const o=this.instance.delete(i,this.getAxiosConfig(e,n));if(o!==null)try{await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class K4{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAllServiceResources(e){return(await this.indexedDb.getAllValue(Hr)||[]).filter(n=>{var r;return((r=n.company)==null?void 0:r.id)===e})}async saveAllServiceResources(e){await this.indexedDb.putBulkValue(Hr,e)}async getById(e,n){var r;const a=await this.indexedDb.getValue(Hr,n);if(((r=a==null?void 0:a.company)==null?void 0:r.id)===e)return a;throw Tn}async deleteById(e,n){await this.getById(e,n),await this.indexedDb.deleteValue(Hr,n)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Hr,e)}async drop(){await this.indexedDb.deleteAllValues(Hr)}}var Z4=Object.defineProperty,J4=Object.getOwnPropertyDescriptor,jc=(t,e,n,r)=>{for(var a=r>1?void 0:r?J4(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&Z4(e,n,a),a};let Hi=class extends Fe{constructor(t,e,n,r){super("serviceResource",r),u(this,"serviceResourceDb"),u(this,"serviceResourceService"),this.serviceResourceDb=new K4(e),this.serviceResourceService=new q4(n,t,r)}dispose(){}async onCascadeDelete(t,e,n,r){n==ht&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServiceResources(t,e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(t,r,{account:e,companyId:n})}async getServiceResource(t,e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:n,serviceResourceId:r})}async createServiceResource(t,e,n,r){const a=await super.create(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n},r);return uc.publish(He.CREATE,{account:e,companyId:n,resource:a}),a}async updateServiceResource(t,e,n,r,a){const i=await super.update(t,pe.REMOTE_THEN_LOCAL,{account:e,companyId:n,serviceResourceId:r},a);return uc.publish(He.UPDATE,{account:e,companyId:n,serviceResourceId:r,resource:i}),i}async deleteServiceResource(t,e,n,r){await this.deleteById(t,{account:e,companyId:n,serviceResourceId:r}),uc.publish(He.DELETE,{account:e,companyId:n,serviceResourceId:r})}async remoteList(t,e){return(await this.serviceResourceService.getAllServiceResources(t,e.account,e.companyId)).map(n=>Xn.fromServiceResourceDto(n,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const n=await this.serviceResourceService.getById(t,e.account,e.companyId,e.serviceResourceId);return Xn.fromServiceResourceDto(n,e.companyId)}async remoteCreate(t,e,n){const r=Xn.toServiceResourceDto(n),a=await this.serviceResourceService.createService(t,e.account,e.companyId,r);return Xn.fromServiceResourceDto(a,e.companyId)}async remoteUpdate(t,e,n){this.checkNullable(e);const r=Xn.toServiceResourceDto(n),a=await this.serviceResourceService.updateService(t,e.account,e.companyId,e.serviceResourceId,r);return Xn.fromServiceResourceDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceResourceService.delete(t,e.account,e.companyId,e.serviceResourceId)}async localList(t){return this.serviceResourceDb.getAllServiceResources(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceResourceDb.getById(t.companyId,t.serviceResourceId)}async localBulkSave(t,e){await this.serviceResourceDb.saveAllServiceResources(e)}async localDelete(t){this.checkNullable(t),await this.serviceResourceDb.deleteById(t.companyId,t.serviceResourceId)}async localBulkDelete(t){await this.serviceResourceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceResourceId)throw Error("Invalid state:"+JSON.stringify(t))}};jc([Re.Unsubscribe()],Hi.prototype,"dispose",1),jc([Re.Subscribe(He.DELETE)],Hi.prototype,"onCascadeDelete",1),Hi=jc([Re.Subscriber({channel:ht})],Hi);class gs{constructor(){u(this,"cipherUrl"),u(this,"shortenerUrl")}static fromWidgetUrlCipherDto(e){const n=new gs;return n.shortenerUrl=e.shortenerUrl,n.cipherUrl=e.cipherUrl,n}}class X4{constructor(){u(this,"url"),u(this,"shortener")}}class Q4 extends Ue{async cipherUrl(e,n,r,a,i=!0){let o=`/api/2.3/companies/${r}/cipherUrl`,l=new X4;l.shortener=i,l.url=this.baseUrl+a;const c=this.instance.post(o,l,this.getAxiosConfig(e));if(c!==null)try{return await c}catch(d){throw d}else throw new we(ye.INTERNAL_ERROR)}}class eS extends Fe{constructor(e,n,r,a){super("widget-url-cipher",a),u(this,"widgetUrlCipherService"),this.widgetUrlCipherService=new Q4(r,e,a)}async cipherUrl(e,n,r,a,i=!0){return super.create(e,pe.REMOTE_ONLY,{account:n,companyId:r,urlToCipher:a,shortener:i},new gs)}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){this.checkNullable(n);const a=await this.widgetUrlCipherService.cipherUrl(e,n.account,n.companyId,n.urlToCipher,n.shortener);return gs.fromWidgetUrlCipherDto(a)}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){throw new Error("Method not implemented.")}localBulkDelete(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}checkNullable(e){if(!e.companyId||!e.urlToCipher||e.urlToCipher.startsWith("http"))throw Error("Invalid state:"+JSON.stringify(e))}}class tS{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getPromoteField(e){return this.indexedDb.getValue(es,e)}async getAllPromoteField(){return this.indexedDb.getAllValue(es)}async saveAllPromoteFields(e){await this.indexedDb.putBulkValue(es,e)}}class nS extends Ue{async getPromoteFields(e,n){const r=this.instance.get("/api/2.3/clients/promote",this.getAxiosConfig(e,n));if(r!==null)try{return(await r).items}catch(a){throw a}else throw new we(ye.INTERNAL_ERROR)}}class rS extends Fe{constructor(e,n,r,a){super("promoteField",a),u(this,"promoteFieldDb"),u(this,"promoteFieldService"),this.promoteFieldDb=new tS(n),this.promoteFieldService=new nS(r,e,a)}async getAllPromoteFields(e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(e,r,{account:n})}localBulkDelete(e){throw Error("Not implemented")}localBulkSave(e,n){return this.promoteFieldDb.saveAllPromoteFields(n)}localDelete(e){throw Error("Not implemented")}localGet(e){if(!e.promoteFieldId)throw Error("Invalid state:"+JSON.stringify(e));return this.promoteFieldDb.getPromoteField(e.promoteFieldId)}localList(e){return this.promoteFieldDb.getAllPromoteField()}remoteCreate(e,n,r){throw Error("Not implemented")}remoteDelete(e,n){throw Error("Not implemented")}remoteGet(e,n){throw Error("Not implemented")}async remoteList(e,n){return(await this.promoteFieldService.getPromoteFields(e,n.account)).map(r=>$o.fromPromoteFieldDto(r))}remoteUpdate(e,n,r){throw Error("Not implemented")}}class aS extends Fe{constructor(e,n,r,a){super("account",a),u(this,"accountService"),this.accountService=new rg(r,e,a)}dispose(){}async getAccount(e,n,r){return this.getById(e,pe.REMOTE_ONLY,{account:n,crossAccount:r})}async updateAccount(e,n){return await this.update(e,pe.REMOTE_THEN_LOCAL,{},n)}async updatePassword(e,n,r){var a;try{await this.accountService.updatePassword(e,n,r)}catch(i){throw(a=this.logger)==null||a.error("js-calendar-api","Update password failed: ",i),this.getError(i)}}async remoteList(e,n){throw Error("Not implemented")}async remoteGet(e,n){const r=await this.accountService.getAccount(e,n.account,n.crossAccount);return Ra.fromAccountDto(r)}async remoteCreate(e,n,r){throw Error("Not implemented")}async remoteUpdate(e,n,r){const a=Ra.toAccountDto(r),i=await this.accountService.updateAccount(e,a);return Ra.fromAccountDto2(i)}async remoteDelete(e,n){}async localList(e){throw Error("Not implemented")}async localGet(e){throw Error("Not implemented")}async localBulkSave(e,n){}async localDelete(e){}async localBulkDelete(e){}}class Yc{constructor(){u(this,"id"),u(this,"token"),u(this,"dashboards")}static fromDto(e){var n;const r=new Yc;r.id=e.id,r.token=e.token;const a=[];return(n=e.dashboards)==null||n.forEach(i=>a.push({id:i.id,name:i.name,subTitle:i.subTitle})),r.dashboards=a,r}}class iS extends Ue{async getReports(e,n,r){let a="/api/2.3/reporting/reports";const i=this.instance.post(a,r,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}}class oS extends Fe{constructor(e,n,r,a){super("reporting",a),u(this,"reportingService"),this.reportingService=new iS(r,e,a)}async getReports(e,n,r,a=pe.REMOTE_ONLY){return this.getById(e,a,{account:n,filters:r})}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){this.checkNullable(n);const r=await this.reportingService.getReports(e,n.account,n.filters);return Yc.fromDto(r)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}async localBulkSave(e,n){}checkNullable(e){if(!e.account)throw Error("Invalid state:"+JSON.stringify(e))}}class Wc{constructor(){u(this,"appointmentMade"),u(this,"appointmentCancel"),u(this,"appointmentFinish")}static fromCompanyPerformanceDto(e){const n=new Wc;return n.appointmentMade=e.appointmentMade,n.appointmentCancel=e.appointmentCancel,n.appointmentFinish=e.appointmentFinish,n}}class sS extends Ue{async getPerformance(e,n,r){const a=this.instance.get(`/api/2.3/performance/${r}`,this.getAxiosConfig(e,n));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}}class lS extends Fe{constructor(e,n,r){super("calendar",r),u(this,"companyPerformanceService"),this.companyPerformanceService=new sS(n,e,r)}async getPerformance(e,n,r){return Wc.fromCompanyPerformanceDto(await this.companyPerformanceService.getPerformance(e,n,r))}localBulkDelete(e){throw new Error("Method not implemented.")}localBulkSave(e,n){throw new Error("Method not implemented.")}localDelete(e){throw new Error("Method not implemented.")}localGet(e){throw new Error("Method not implemented.")}localList(e){throw new Error("Method not implemented.")}remoteCreate(e,n,r){throw new Error("Method not implemented.")}remoteDelete(e,n){throw new Error("Method not implemented.")}remoteGet(e,n){throw new Error("Method not implemented.")}remoteList(e,n){throw new Error("Method not implemented.")}remoteUpdate(e,n,r){throw new Error("Method not implemented.")}}class cS{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getAll(){return await this.indexedDb.getAllValue(jr)||[]}async saveAllPlannings(e){await this.indexedDb.putBulkValue(jr,e)}async getById(e){const n=await this.indexedDb.getValue(jr,e);if(n)return n;throw Tn}async deleteById(e){await this.getById(e),await this.indexedDb.deleteValue(jr,e)}async deleteByPlanningsIds(e){await this.indexedDb.deleteValues(jr,e)}async drop(){await this.indexedDb.deleteAllValues(jr)}}class uS extends Ue{async getAllPlanning(e,n){const r=this.instance.get("/api/2.3/scheduling/plannings",this.getAxiosConfig(e,n));if(r!==null)return await r;throw new we(ye.INTERNAL_ERROR)}async getById(e,n,r){let a=`/api/2.3/scheduling/plannings/${r}`;const i=this.instance.get(a,this.getAxiosConfig(e,n));if(i!==null)return await i;throw new we(ye.INTERNAL_ERROR)}async createPlanning(e,n,r){let a="/api/2.3/scheduling/plannings";const i=this.instance.post(a,r,this.getAxiosConfig(e,n));if(i!==null)return await i;throw new we(ye.INTERNAL_ERROR)}async updatePlanning(e,n,r,a){let i=`/api/2.3/scheduling/plannings/${r}`;const o=this.instance.put(i,a,this.getAxiosConfig(e,n));if(o!==null)return await o;throw new we(ye.INTERNAL_ERROR)}async delete(e,n,r){let a=`/api/2.3/scheduling/plannings/${r}`;const i=this.instance.delete(a,this.getAxiosConfig(e,n));if(i!==null)return await i;throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class dS extends Fe{constructor(e,n,r,a){super("planning",a),u(this,"planningDb"),u(this,"planningService"),this.planningDb=new cS(n),this.planningService=new uS(r,e,a)}async getAllPlannings(e,n,r=pe.LOCAL_THEN_REMOTE){return this.list(e,r,{account:n})}async getPlanning(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.getById(e,a,{account:n,planningId:r})}async createPlanning(e,n,r){return super.create(e,pe.REMOTE_THEN_LOCAL,{account:n},r)}async updatePlanning(e,n,r,a){return super.update(e,pe.REMOTE_THEN_LOCAL,{account:n,planningId:r},a)}async deletePlanning(e,n,r){await this.deleteById(e,{account:n,planningId:r})}async remoteList(e,n){return(await this.planningService.getAllPlanning(e,n.account)).map(r=>Qn.fromDto(r))}async remoteGet(e,n){this.checkNullable(n);const r=await this.planningService.getById(e,n.account,n.planningId);return Qn.fromDto(r)}async remoteCreate(e,n,r){const a=Qn.toDto(r),i=await this.planningService.createPlanning(e,n.account,a);return Qn.fromDto(i)}async remoteUpdate(e,n,r){this.checkNullable(n);const a=Qn.toDto(r),i=await this.planningService.updatePlanning(e,n.account,n.planningId,a);return Qn.fromDto(i)}async remoteDelete(e,n){this.checkNullable(n),await this.planningService.delete(e,n.account,n.planningId)}async localList(e){return this.planningDb.getAll()}async localGet(e){return this.checkNullable(e),this.planningDb.getById(e.planningId)}async localBulkSave(e,n){await this.planningDb.saveAllPlannings(n)}async localDelete(e){this.checkNullable(e),await this.planningDb.deleteById(e.planningId)}async localBulkDelete(e){await this.planningDb.deleteByPlanningsIds(e.map(n=>n.id||""))}checkNullable(e){if(!e.planningId)throw Error("Invalid state:"+JSON.stringify(e))}}class hS extends Ue{async getSchedules(e,n,r,a){let i=this.getAxiosConfig(e,n);i.params.start=r,i.params.end=a;const o=this.instance.get("/api/2.3/scheduling/schedule",i);if(o!==null)try{return(await o).items}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}}class Gc{constructor(){u(this,"day"),u(this,"hours")}static fromScheduleWorkingDayDto(e){const n=new Gc;n.day=St(e.day,"UTC");const r=[];return e.hours.forEach(a=>r.push(qc.fromScheduleWorkingHourDto(a))),n.hours=r,n}}class qc{constructor(){u(this,"start"),u(this,"end")}static fromScheduleWorkingHourDto(e){const n=new qc;return n.start=e.start,n.end=e.end,n}}class Kc{constructor(){u(this,"company"),u(this,"staffId"),u(this,"workingHours")}static fromCompanyScheduleDto(e){const n=new Kc;n.company={id:e.company.id,name:ve(e.company.name)},n.staffId=e.staffId;const r=[];return e.workingHours&&e.workingHours.forEach(a=>r.push(Gc.fromScheduleWorkingDayDto(a))),n.workingHours=r,n}}class Zc{constructor(){u(this,"user"),u(this,"companies")}static fromUserSchedulesDto(e){const n=new Zc;n.user={id:e.user.id,firstName:ve(e.user.firstName),lastName:ve(e.user.lastName),email:ve(e.user.email)};const r=[];return e.companies&&e.companies.forEach(a=>r.push(Kc.fromCompanyScheduleDto(a))),n.companies=r,n}}class fS extends Fe{constructor(e,n,r){super("schedule",r),u(this,"scheduleService"),this.scheduleService=new hS(n,e,r)}async getSchedules(e,n,r,a){return this.list(e,pe.REMOTE_ONLY,{organisation:n,start:r,end:a})}async remoteList(e,n){if(!n.start||!n.end||!n.organisation)throw Error("Invalid state:"+JSON.stringify(n));return(await this.scheduleService.getSchedules(e,n.organisation,n.start,n.end)).map(r=>Zc.fromUserSchedulesDto(r))}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){}async localGet(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}localBulkDelete(e){throw new Error("Method not implemented.")}}class ys extends Ue{async exportAsXlsx(e,n,r,a,i,o,l){let c=this.getAxiosConfig(e,n);o&&(c.params.userIds=o.join(",")),l&&(c.params.companyIds=l.join(",")),c.params.start=r,c.params.end=a,c.params.showDeleted=i,c.responseType="blob";let d="/api/2.3/scheduling/export/calendar";const h=this.instance.get(d,c);if(h!==null)try{ys.downloadBlob(await h,"appointments.xlsx")}catch(m){throw m}else throw new we(ye.INTERNAL_ERROR)}static downloadBlob(e,n){let r=document.createElement("a");r.href=window.URL.createObjectURL(e),r.download=n,r.click(),setTimeout(()=>{window.URL.revokeObjectURL(r.href)},350)}}class mS extends Fe{constructor(e,n,r){super("event",r),u(this,"exportCalendarService"),this.exportCalendarService=new ys(n,e,r)}async exportCalendarAsXlsx(e,n,r,a,i,o,l,c){await this.remoteGet(e,{account:n,userIds:l,companyIds:c,startDate:r,endDate:a,timezone:i,showDeleted:o})}localDelete(e){throw new Error("Method not implemented.")}localGet(e){throw new Error("Method not implemented.")}localList(e){throw new Error("Method not implemented.")}remoteCreate(e,n,r){throw new Error("Method not implemented.")}remoteDelete(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){const r=ln(n.startDate,n.timezone),a=ln(n.endDate,n.timezone);await this.exportCalendarService.exportAsXlsx(e,n.account,r,a,n.showDeleted,n.userIds,n.companyIds)}remoteList(e,n){throw new Error("Method not implemented.")}remoteUpdate(e,n,r){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}localBulkSave(e,n){return Promise.resolve(void 0)}}var ag=(t=>(t.REQUESTED="requested",t.IN_PROGRESS="inProgress",t.FINISHED="finished",t.FAILED="failed",t))(ag||{});class Jc{constructor(){u(this,"id"),u(this,"status")}static fromReportingDto(e){const n=new Jc;return n.id=e.id,e.status?n.status=e.status:n.status="failed",n}}class pS extends Ue{async generateAppointmentsExport(e,n,r){let a=this.getAxiosConfig(e,n),i="/api/2.3/reporting/export/appointments";const o=this.instance.post(i,r,a);if(o!==null)try{const l=await o;if(l&&l.status!=ag.FAILED)return l}catch(l){throw l}throw new we(ye.INTERNAL_ERROR)}async getExport(e,n,r,a){let i=this.getAxiosConfig(e,n);i.responseType="blob";let o=`/api/2.3/reporting/exports/getFile/${r}`;const l=this.instance.get(o,i);if(l!==null)try{ys.downloadBlob(await l,a+".zip")}catch(c){throw c instanceof Error&&c.message.includes("404")?new we(ye.UNKNOWN_ENTITY):c}else throw new we(ye.INTERNAL_ERROR)}}class gS{constructor(){u(this,"timeZone"),u(this,"fields"),u(this,"filter"),this.fields=new vs,this.filter=new ig}static toReportingExportBodyDto(e){const n=new yS;return n.timeZone=e.timeZone,e.fields&&(n.fields=vs.toReportingExportBodyFieldsDto(e.fields)),e.filter&&(n.filter=ig.toReportingExportBodyFilterDto(e.filter)),n}}class ig{constructor(){u(this,"start"),u(this,"end"),u(this,"companyIds"),this.start=void 0,this.end=void 0,this.companyIds=[]}static toReportingExportBodyFilterDto(e){const n=new vS;return e.start&&(n.start=Oo(e.start,!1)),e.end&&(n.end=Oo(e.end,!1)),n.companyIds=e.companyIds,n}}class vs{constructor(){u(this,"company"),u(this,"service"),u(this,"staff"),u(this,"client"),u(this,"appointment"),this.company=new ws,this.service=new sg,this.staff=new lg,this.client=new cg,this.appointment=new ug}static toReportingExportBodyFieldsDto(e){const n=new vs;return e.company&&(n.company=ws.toReportingExportBodyFieldCompanyDto(e.company)),e.service&&(n.service=sg.toReportingExportBodyFieldServiceDto(e.service)),e.staff&&(n.staff=lg.toReportingExportBodyFieldStaffDto(e.staff)),e.client&&(n.client=cg.toReportingExportBodyFieldClientDto(e.client)),e.appointment&&(n.appointment=ug.toReportingExportBodyFieldAppointmentDto(e.appointment)),n}}class ws{constructor(){u(this,"name"),u(this,"address"),u(this,"email"),u(this,"phone"),u(this,"latitude"),u(this,"longitude"),u(this,"externalId"),u(this,"id"),this.name=!1,this.address=new og,this.email=!1,this.phone=!1,this.latitude=!1,this.longitude=!1,this.externalId=!1,this.id=!1}static toReportingExportBodyFieldCompanyDto(e){const n=new ws;return n.name=e.name,e.address&&(n.address=og.toReportingExportBodyFieldCompanyAddressDto(e.address)),n.email=e.email,n.phone=e.phone,n.latitude=e.latitude,n.longitude=e.longitude,n.externalId=e.externalId,n.id=e.id,n}}class og{constructor(){u(this,"street"),u(this,"additionalStreet"),u(this,"zipCode"),u(this,"city"),u(this,"country"),u(this,"state"),this.street=!1,this.additionalStreet=!1,this.zipCode=!1,this.city=!1,this.country=!1,this.state=!1}static toReportingExportBodyFieldCompanyAddressDto(e){const n=new wS;return n.street=e.street,n.additionalStreet=e.additionalStreet,n.zipCode=e.zipCode,n.city=e.city,n.country=e.country,n.state=e.state,n}}class sg{constructor(){u(this,"name"),u(this,"duration"),u(this,"capacity"),u(this,"price"),u(this,"categoryLevel1Name"),u(this,"categoryLevel2Name"),u(this,"externalId"),u(this,"id"),u(this,"categoryLevel1ExternalId"),u(this,"categoryLevel1Id"),u(this,"categoryLevel2ExternalId"),u(this,"categoryLevel2Id"),this.name=!1,this.duration=!1,this.capacity=!1,this.price=!1,this.categoryLevel1Name=!1,this.categoryLevel2Name=!1,this.externalId=!1,this.id=!1,this.categoryLevel1ExternalId=!1,this.categoryLevel2ExternalId=!1,this.categoryLevel1Id=!1,this.categoryLevel2Id=!1}static toReportingExportBodyFieldServiceDto(e){const n=new bS;return n.name=e.name,n.duration=e.duration,n.capacity=e.capacity,n.price=e.price,n.categoryLevel1Name=e.categoryLevel1Name,n.categoryLevel2Name=e.categoryLevel2Name,n.externalId=e.externalId,n.id=e.id,n.categoryLevel1ExternalId=e.categoryLevel1ExternalId,n.categoryLevel2ExternalId=e.categoryLevel2ExternalId,n.categoryLevel1Id=e.categoryLevel1Id,n.categoryLevel2Id=e.categoryLevel2Id,n}}class lg{constructor(){u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"phone"),u(this,"groupName"),u(this,"externalId"),u(this,"id"),u(this,"groupExternalId"),u(this,"groupId"),this.firstName=!1,this.lastName=!1,this.email=!1,this.phone=!1,this.groupName=!1,this.externalId=!1,this.id=!1,this.groupExternalId=!1,this.groupId=!1}static toReportingExportBodyFieldStaffDto(e){const n=new _S;return n.firstName=e.firstName,n.lastName=e.lastName,n.email=e.email,n.phone=e.phone,n.groupName=e.groupName,n.externalId=e.externalId,n.id=e.id,n.groupExternalId=e.groupExternalId,n.groupId=e.groupId,n}}class cg{constructor(){u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"phone"),u(this,"id"),this.firstName=!1,this.lastName=!1,this.email=!1,this.phone=!1,this.id=!1}static toReportingExportBodyFieldClientDto(e){const n=new ES;return n.firstName=e.firstName,n.lastName=e.lastName,n.email=e.lastName,n.phone=e.phone,n.id=e.id,n}}class ug{constructor(){u(this,"start"),u(this,"end"),u(this,"location"),u(this,"status"),u(this,"notes"),u(this,"customFields"),u(this,"id"),this.start=!1,this.end=!1,this.location=!1,this.status=!1,this.notes=!1,this.customFields=!1,this.id=!1}static toReportingExportBodyFieldAppointmentDto(e){const n=new DS;return n.start=e.start,n.end=e.end,n.location=e.location,n.status=e.status,n.notes=e.notes,n.customFields=e.customFields,n.id=e.id,n}}class yS{constructor(){u(this,"timeZone"),u(this,"fields"),u(this,"filter")}}class vS{constructor(){u(this,"start"),u(this,"end"),u(this,"companyIds")}}class wS{constructor(){u(this,"street"),u(this,"additionalStreet"),u(this,"zipCode"),u(this,"city"),u(this,"country"),u(this,"state")}}class bS{constructor(){u(this,"name"),u(this,"duration"),u(this,"capacity"),u(this,"price"),u(this,"categoryLevel1Name"),u(this,"categoryLevel2Name"),u(this,"externalId"),u(this,"id"),u(this,"categoryLevel1ExternalId"),u(this,"categoryLevel1Id"),u(this,"categoryLevel2ExternalId"),u(this,"categoryLevel2Id")}}class _S{constructor(){u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"phone"),u(this,"groupName"),u(this,"externalId"),u(this,"id"),u(this,"groupExternalId"),u(this,"groupId")}}class ES{constructor(){u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"phone"),u(this,"id")}}class DS{constructor(){u(this,"start"),u(this,"end"),u(this,"location"),u(this,"status"),u(this,"notes"),u(this,"customFields"),u(this,"id")}}class SS extends Fe{constructor(e,n,r){super("exportAppointments",r),u(this,"exportAppointmentsService"),this.exportAppointmentsService=new pS(n,e,r)}async generateAppointmentsExport(e,n,r){const a=gS.toReportingExportBodyDto(r),i=await this.exportAppointmentsService.generateAppointmentsExport(e,n,a);return Jc.fromReportingDto(i)}async getExport(e,n,r,a){await this.exportAppointmentsService.getExport(e,n,r,a)}localDelete(e){throw new Error("Method not implemented.")}localGet(e){throw new Error("Method not implemented.")}localList(e){throw new Error("Method not implemented.")}remoteCreate(e,n,r){throw new Error("Method not implemented.")}remoteDelete(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){throw new Error("Method not implemented.")}remoteList(e,n){throw new Error("Method not implemented.")}remoteUpdate(e,n,r){throw new Error("Method not implemented.")}localBulkDelete(e){return Promise.resolve(void 0)}localBulkSave(e,n){return Promise.resolve(void 0)}}class kS extends Ue{async getById(e,n,r){let a=this.getAxiosConfig(e,n),i=`/api/2.3/rights/scheduling/${r}`;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}async getList(e,n){let r=this.getAxiosConfig(e,n),a="/api/2.3/rights/scheduling";const i=this.instance.get(a,r);if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}async update(e,n,r,a){let i=this.getAxiosConfig(e,n),o=`/api/2.3/rights/scheduling/${r}`;const l=this.instance.put(o,a,i);if(l!==null)try{return await l}catch(c){throw c}else throw new we(ye.INTERNAL_ERROR)}}class IS extends Fe{constructor(e,n,r){super("schedulingRights",r),u(this,"schedulingRightsService"),this.schedulingRightsService=new kS(n,e,r)}async getSchedulingRightsByUser(e,n,r){return this.remoteGet(e,{organisation:n,userId:r})}async updateSchedulingRights(e,n,r,a){const i=await this.remoteUpdate(e,{organisation:n,userId:r},a);return br.publish(He.UPDATE,{organisation:n,entity:i}),i}async getSchedulingRights(e,n){return this.remoteList(e,{organisation:n})}localBulkDelete(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){throw new Error("Method not implemented.")}localDelete(e){throw new Error("Method not implemented.")}localGet(e){throw new Error("Method not implemented.")}localList(e){throw new Error("Method not implemented.")}remoteCreate(e,n,r){throw new Error("Method not implemented.")}remoteDelete(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){if(!n.userId||!n.organisation)throw Error("Invalid state:"+JSON.stringify(n));const r=await this.schedulingRightsService.getById(e,n.organisation,n.userId);return zr.fromSchedulingRightsDto(r)}async remoteList(e,n){if(!n.organisation)throw Error("Invalid state:"+JSON.stringify(n));return(await this.schedulingRightsService.getList(e,n.organisation)).map(r=>zr.fromSchedulingRightsDto(r))}async remoteUpdate(e,n,r){if(!n.userId||!n.organisation)throw Error("Invalid state:"+JSON.stringify(n));const a=zr.toSchedulingRightsDto(r),i=await this.schedulingRightsService.update(e,n.organisation,n.userId,a);return zr.fromSchedulingRightsDto(i)}}class CS extends Ue{async searchLogs(e,n,r,a=100,i,o){let l="/api/2.3/audit/logs",c=this.getAxiosConfig(e,n);c.params.q=r,c.params.maxResult=a,i&&(c.params.orderBy=i),o&&(c.params.pageToken=o);const d=this.instance.get(l,c);if(d!==null)try{return await d}catch(h){throw h}else throw new we(ye.INTERNAL_ERROR)}}class Xc{constructor(){u(this,"id"),u(this,"date"),u(this,"user"),u(this,"actionType"),u(this,"action"),u(this,"company"),u(this,"simpleObject"),u(this,"changeLogId")}static fromLogDto(e){const n=new Xc;return n.id=e.id,n.date=St(e.date.dateTime,e.date.timeZone),n.user={id:e.id,firstName:ve(e.user.firstName),lastName:ve(e.user.lastName),email:ve(e.user.email)},n.actionType=e.actionType,n.action=e.action,e.company&&(n.company={id:e.company.id,name:ve(e.company.name)}),e.simpleObject&&(n.simpleObject={id:e.simpleObject.id,name:ve(e.simpleObject.name)},e.simpleObject.misc1&&(n.simpleObject.misc1=ve(e.simpleObject.misc1))),n.changeLogId=e.changeLogId,n}}const NS=500;class TS extends Fe{constructor(e,n,r,a){super("log",a),u(this,"logService"),this.logService=new CS(r,e,a)}async searchLogWithPages(e,n,r,a,i){var o;let l=await this.logService.searchLogs(e,n,r||"",NS,a,i);return{nextPageToken:l.nextPageToken,nextSyncToken:l.nextSyncToken,totalItems:l.totalItems,items:(o=l.items)==null?void 0:o.map(c=>Xc.fromLogDto(c))}}localBulkDelete(e){throw Error("Not implemented")}localBulkSave(e,n){throw Error("Not implemented")}localDelete(e){throw Error("Not implemented")}localGet(e){throw Error("Not implemented")}localList(e){throw Error("Not implemented")}remoteCreate(e,n,r){throw Error("Not implemented")}remoteDelete(e,n){throw Error("Not implemented")}remoteGet(e,n){throw Error("Not implemented")}async remoteList(e,n){throw Error("Not implemented")}remoteUpdate(e,n,r){throw Error("Not implemented")}}class AS extends Ue{async getById(e,n,r,a){const i=this.instance.get(`/api/2.1/scheduling/companies/${r}/notifications/${a}`,this.getAxiosConfig(e,n));if(i!==null)try{return await i}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(n=>({id:n.id})):e}}class OS{constructor(e){u(this,"indexedDb"),this.indexedDb=e}async getById(e){return this.indexedDb.getValue(ns,e)}async saveAllNotifications(e){await this.indexedDb.putBulkValue(ns,e)}async drop(){await this.indexedDb.deleteAllValues(ns)}}class xS extends Fe{constructor(e,n,r,a){super("notification",a),u(this,"notificationDb"),u(this,"notificationService"),this.notificationDb=new OS(n),this.notificationService=new AS(r,e,a)}async getNotification(e,n,r,a,i=pe.LOCAL_THEN_REMOTE){return this.getById(e,i,{account:n,companyId:r,notificationId:a})}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){const r=await this.notificationService.getById(e,n.account,n.companyId,n.notificationId);return Xo.fromNotificationDto(r)}async remoteCreate(e,n,r){throw new Error("Method not implemented.")}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){return this.notificationDb.getById(e.notificationId)}async localBulkSave(e,n){await this.notificationDb.saveAllNotifications(n)}localBulkDelete(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}}class Qc{constructor(){u(this,"company"),u(this,"days"),u(this,"planningId"),u(this,"planningStartWeek"),u(this,"start"),u(this,"end"),u(this,"saveMode")}static fromWorkingPlanningDto(e){var n;switch(e.objectOwner.type){case"staff":let r=new LS;return r.company=eu.fromCompanyDto(e.company),r.staffId=e.objectOwner.id,e.objectOwner.properties&&(r.user=tu.fromPropertiesDto(e.objectOwner.properties)),r.days=(n=e.days)==null?void 0:n.map(a=>bs.fromWorkingPlanningDayDto(a)),r.planningId=e.planningId,r.planningStartWeek=e.planningStartWeek,r}throw new Error("Unknow working planning type:"+e.objectOwner.type)}static toWorkingPlanningDto(e){let n=new MS;return n.companyId=e.company.id,n.objectOwners=[{id:e.staffId,type:"staff"}],e.days&&(n.days=bs.toWorkingPlanningDayDto(e.days)),n.planningId=e.planningId,n.planningStartWeek=e.planningStartWeek,n.start=Be.fromJSDate(e.start).toFormat("yyyy-MM-dd"),n.end=Be.fromJSDate(e.end).toFormat("yyyy-MM-dd"),n.saveMode=e.saveMode,n}}class LS extends Qc{constructor(){super(...arguments),u(this,"user"),u(this,"staffId")}}class bs{constructor(){u(this,"date"),u(this,"hours"),u(this,"occupancyRate"),u(this,"durationInMinutes"),u(this,"isOnVacation")}static fromWorkingPlanningDayDto(e){var n;let r=new bs;return r.hours=e.hours,r.durationInMinutes=qe.fromISOTime(e.duration).as("minutes"),r.date=Be.fromISO(e.date).toJSDate(),r.isOnVacation=(n=e.isOnVacation)!=null?n:!1,e.occupancyRate&&(r.occupancyRate=new RS(e.occupancyRate)),r}static toWorkingPlanningDayDto(e){let n={};return e.forEach((r,a)=>{r&&(n[a]=r)}),n}}class RS{constructor(e=new PS){u(this,"total"),u(this,"pro"),u(this,"perso"),u(this,"external");var n,r,a,i;this.total=(n=e.total)!=null?n:0,this.pro=(r=e.pro)!=null?r:0,this.perso=(a=e.perso)!=null?a:0,this.external=(i=e.external)!=null?i:0}}class MS{constructor(){u(this,"objectOwner"),u(this,"objectOwners"),u(this,"company"),u(this,"companyId"),u(this,"days"),u(this,"planningId"),u(this,"planningStartWeek"),u(this,"start"),u(this,"end"),u(this,"saveMode")}}class PS{constructor(){u(this,"total"),u(this,"pro"),u(this,"perso"),u(this,"external")}}class eu{constructor(){u(this,"id"),u(this,"name")}static fromCompanyDto(e){let n=new eu;return n.id=e.id,n.name=ve(e.name),n}}class tu{constructor(){u(this,"id"),u(this,"firstName"),u(this,"lastName"),u(this,"email")}static fromPropertiesDto(e){let n=new tu;return n.id=e.userId,n.email=ve(e.email),n.firstName=ve(e.firstName),n.lastName=ve(e.lastName),n}}class $S extends Ue{async getAllCompanyWorkingPlanning(e,n,r,a,i,o){const l=this.getAxiosConfig(e,n);l.params.companyIds=r,l.params.start=a,l.params.end=i,l.params.occupancy=o;const c=this.instance.get("/api/2.3/scheduling/workingHours",l);if(c!==null)try{return(await c).items}catch(d){throw d}else throw new we(ye.INTERNAL_ERROR)}async createWorkingPlanning(e,n,r){let a="/api/2.3/scheduling/workingHours";const i=this.instance.post(a,r,this.getAxiosConfig(e,n));if(i!==null)try{await i;return}catch(o){throw o}else throw new we(ye.INTERNAL_ERROR)}}var BS=Object.defineProperty,FS=Object.getOwnPropertyDescriptor,zS=(t,e,n,r)=>{for(var a=r>1?void 0:r?FS(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&BS(e,n,a),a};let nu=class extends Fe{constructor(t,e,n){super("workingPlanning",n),u(this,"workingPlanningService"),this.workingPlanningService=new $S(e,t,n)}async getAllCompanyWorkingPlannings(t,e,n,r,a,i){return this.remoteList(t,{account:e,companyId:n,start:r,end:a,withOccupancy:i})}async createWorkingPlanning(t,e,n){return await super.create(t,pe.REMOTE_ONLY,{account:e},n)}localBulkDelete(t){throw new Error("Method not implemented.")}localBulkSave(t,e){throw new Error("Method not implemented.")}localDelete(t){throw new Error("Method not implemented.")}localGet(t){throw new Error("Method not implemented.")}localList(t){throw new Error("Method not implemented.")}async remoteCreate(t,e,n){const r=Qc.toWorkingPlanningDto(n);return await this.workingPlanningService.createWorkingPlanning(t,e.account,r),n}remoteDelete(t,e){throw new Error("Method not implemented.")}remoteGet(t,e){throw new Error("Method not implemented.")}async remoteList(t,e){var n;const r=ln(e.start),a=ln(e.end);return(await this.workingPlanningService.getAllCompanyWorkingPlanning(t,e.account,e.companyId,r,a,(n=e.withOccupancy)!=null?n:!1)).map(i=>Qc.fromWorkingPlanningDto(i))}remoteUpdate(t,e,n){throw new Error("Method not implemented.")}};nu=zS([Re.Subscriber({channel:tn}),Re.Subscriber({channel:ht})],nu);class ru{constructor(){u(this,"id"),u(this,"changes")}static fromChangelogDto(e){const n=new ru;return n.id=e.id,n.changes=e.changes,n}}class VS extends Ue{async get(e,n,r){let a=`/api/2.3/audit/changelogs/${r}`,i=this.getAxiosConfig(e,n);const o=this.instance.get(a,i);if(o!==null)try{return await o}catch(l){throw l}else throw new we(ye.INTERNAL_ERROR)}}class US extends Fe{constructor(e,n,r){super("changelog",r),u(this,"changelogService"),this.changelogService=new VS(n,e,r)}async getChangelog(e,n,r){return this.getById(e,pe.REMOTE_ONLY,{account:n,changeLogId:r})}localBulkDelete(e){throw Error("Not implemented")}localBulkSave(e,n){return Promise.resolve()}localDelete(e){throw Error("Not implemented")}localGet(e){throw Error("Not implemented")}localList(e){throw Error("Not implemented")}remoteCreate(e,n,r){throw Error("Not implemented")}remoteDelete(e,n){throw Error("Not implemented")}async remoteGet(e,n){if(!n.changeLogId)throw Error("Invalid state:"+JSON.stringify(n));const r=await this.changelogService.get(e,n.account,n.changeLogId);return ru.fromChangelogDto(r)}async remoteList(e,n){throw Error("Not implemented")}remoteUpdate(e,n,r){throw Error("Not implemented")}}class HS extends Um{constructor(e){super(e,Uf)}}class jS extends Hm{constructor(e){super(e,zf)}}var YS=Object.defineProperty,WS=Object.getOwnPropertyDescriptor,GS=(t,e,n,r)=>{for(var a=r>1?void 0:r?WS(e,n):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(r?o(e,n,a):o(a))||a);return r&&a&&YS(e,n,a),a};let au=class extends hs{constructor(t,e,n,r){super(t,e,n,r,"userDefault")}initTeamDb(t){return new jS(t)}initUserDb(t){return new HS(t)}async getAllUsers(t,e,n=pe.LOCAL_THEN_REMOTE){return this.list(t,n,{organisation:e,defaultUsers:!0})}};au=GS([Re.Subscriber({channel:tn}),Re.Subscriber({channel:ht}),Re.Subscriber({channel:br})],au);class _s{constructor(){u(this,"url")}static fromShortenerDto(e){const n=new _s;return n.url=e.shortAddress,n}}class qS extends Ue{async shorten(e,n){let r="/api/2.3/shorten";const a=this.instance.post(r,{address:n},this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new we(ye.INTERNAL_ERROR)}}class KS extends Fe{constructor(e,n,r){super("shortener",r),u(this,"shortenerService"),this.shortenerService=new qS(n,e,r)}async shorten(e,n){return super.create(e,pe.REMOTE_ONLY,{url:n},new _s)}async remoteList(e,n){throw new Error("Method not implemented.")}async remoteGet(e,n){throw new Error("Method not implemented.")}async remoteCreate(e,n,r){this.checkNullable(n);const a=await this.shortenerService.shorten(e,n.url);return _s.fromShortenerDto(a)}async remoteUpdate(e,n,r){throw new Error("Method not implemented.")}async remoteDelete(e,n){throw new Error("Method not implemented.")}async localList(e){throw new Error("Method not implemented.")}async localGet(e){throw new Error("Method not implemented.")}async localBulkSave(e,n){throw new Error("Method not implemented.")}localBulkDelete(e){throw new Error("Method not implemented.")}async localDelete(e){throw new Error("Method not implemented.")}checkNullable(e){if(!e.url.startsWith("http"))throw Error("Invalid state:"+JSON.stringify(e))}}class ZS{constructor({baseURL:e,clientId:n,logger:r}){u(this,"authenticationService"),u(this,"accountService"),u(this,"accountRepository"),u(this,"calendarRepository"),u(this,"companyRepository"),u(this,"staffRepository"),u(this,"serviceRepository"),u(this,"contactRepository"),u(this,"externalEventRepository"),u(this,"icsEventRepository"),u(this,"eventRepository"),u(this,"userRepository"),u(this,"userDefaultRepository"),u(this,"widgetFormRepository"),u(this,"formBuilderRepository"),u(this,"freeSlotRepository"),u(this,"planningRepository"),u(this,"privacyPolicyRepository"),u(this,"promoteFieldRepository"),u(this,"serviceGroupRepository"),u(this,"serviceResourceRepository"),u(this,"staffGroupRepository"),u(this,"staffFormsRepository"),u(this,"rightsRepository"),u(this,"schedulingRightsRepository"),u(this,"activityRepository"),u(this,"noteRepository"),u(this,"sseNotificationRepository"),u(this,"notificationStatusRepository"),u(this,"queueRepository"),u(this,"queueRegistrationRepository"),u(this,"formResultRepository"),u(this,"formResultStatusRepository"),u(this,"tagRepository"),u(this,"additionalFieldsRepository"),u(this,"widgetUrlCipherRepository"),u(this,"reportingRepository"),u(this,"companyPerformanceRepository"),u(this,"scheduleRepository"),u(this,"exportCalendarRepository"),u(this,"exportAppointmentsRepository"),u(this,"notificationRepository"),u(this,"workingPlanningRepository"),u(this,"logRepository"),u(this,"changelogRepository"),u(this,"shortenerRepository"),u(this,"indexedDb"),u(this,"companyIdsAccount",{}),u(this,"formIdsAccount",{}),u(this,"queueIdsAccount",{}),u(this,"logger"),u(this,"baseURL"),u(this,"clientId"),u(this,"bearer"),u(this,"sseNotificationService"),this.baseURL=e,this.clientId=n,this.logger=r,this.initIndexedDb(),this.authenticationService=new n4(this.indexedDb,e,this.clientId,this.logger),this.accountService=new rg(e,this.authenticationService,this.logger),this.accountRepository=new aS(this.authenticationService,this.indexedDb,e,this.logger),this.calendarRepository=new HE(this.authenticationService,this.indexedDb,e,this.logger),this.companyRepository=new WE(this.authenticationService,this.indexedDb,e,this.logger),this.serviceRepository=new Bi(this.authenticationService,this.indexedDb,e,this.logger),this.staffRepository=new $i(this.authenticationService,this.indexedDb,e,this.logger),this.contactRepository=new cs(this.authenticationService,this.indexedDb,e,this.logger),this.externalEventRepository=new hD(this.authenticationService,this.indexedDb,e,this.logger),this.icsEventRepository=new mD(this.authenticationService,this.indexedDb,e,this.logger),this.eventRepository=new Fi(this.authenticationService,this.indexedDb,e,this.logger),this.userRepository=new Pc(this.authenticationService,this.indexedDb,e,this.logger),this.userDefaultRepository=new au(this.authenticationService,this.indexedDb,e,this.logger),this.widgetFormRepository=new iD(this.authenticationService,this.indexedDb,e,this.logger),this.formBuilderRepository=new O4(this.authenticationService,this.indexedDb,e,this.logger),this.freeSlotRepository=new a4(this.authenticationService,this.indexedDb,e,this.logger),this.planningRepository=new dS(this.authenticationService,this.indexedDb,e,this.logger),this.privacyPolicyRepository=new s4(this.authenticationService,this.indexedDb,e,this.logger),this.promoteFieldRepository=new rS(this.authenticationService,this.indexedDb,e,this.logger),this.serviceGroupRepository=new zi(this.authenticationService,this.indexedDb,e,this.logger),this.serviceResourceRepository=new Hi(this.authenticationService,this.indexedDb,e,this.logger),this.staffGroupRepository=new Vi(this.authenticationService,this.indexedDb,e,this.logger),this.staffFormsRepository=new w4(this.authenticationService,this.indexedDb,e,this.logger),this.rightsRepository=new E4(this.authenticationService,this.indexedDb,e,this.logger),this.schedulingRightsRepository=new IS(this.authenticationService,e,this.logger),this.activityRepository=new S4(this.authenticationService,this.indexedDb,e,this.logger),this.noteRepository=new C4(this.authenticationService,this.indexedDb,e,this.logger),this.sseNotificationRepository=new N4(this.indexedDb,this.logger),this.notificationStatusRepository=new Bf(this.indexedDb,this.logger),this.queueRepository=new R4(this.authenticationService,this.indexedDb,e,this.logger),this.queueRegistrationRepository=new H4(this.authenticationService,this.indexedDb,e,this.logger),this.formResultRepository=new $4(this.authenticationService,this.indexedDb,e,this.logger),this.formResultStatusRepository=new z4(this.authenticationService,this.indexedDb,e,this.logger),this.tagRepository=new Y4(this.authenticationService,this.indexedDb,e,this.logger),this.additionalFieldsRepository=new G4(this.authenticationService,this.indexedDb,e,this.logger),this.widgetUrlCipherRepository=new eS(this.authenticationService,this.indexedDb,e,this.logger),this.reportingRepository=new oS(this.authenticationService,this.indexedDb,e,this.logger),this.companyPerformanceRepository=new lS(this.authenticationService,e,this.logger),this.scheduleRepository=new fS(this.authenticationService,e,this.logger),this.exportCalendarRepository=new mS(this.authenticationService,e,this.logger),this.exportAppointmentsRepository=new SS(this.authenticationService,e,this.logger),this.notificationRepository=new xS(this.authenticationService,this.indexedDb,e,this.logger),this.logRepository=new TS(this.authenticationService,this.indexedDb,e,this.logger),this.workingPlanningRepository=new nu(this.authenticationService,e,this.logger),this.changelogRepository=new US(this.authenticationService,e,this.logger),this.shortenerRepository=new KS(this.authenticationService,e,this.logger)}getBaseURL(){return this.baseURL}startSSENotificationClient(e,n,r,a=!1){(!this.sseNotificationService||a)&&(a&&this.sseNotificationService&&this.sseNotificationService.close(),this.sseNotificationService=new c4(this.baseURL,this.indexedDb,e,n,this.logger,r))}loginWithRedirect(e,n,r,a=!0){return this.authenticationService.loginWithRedirect(e,n,r,a)}async getAccessToken(e){return this.authenticationService.getAccessToken(e)}async refreshToken(){return this.authenticationService.refreshToken()}useBearerToken(e){this.bearer=e}async refreshUserSession(e,n,r){return this.authenticationService.refreshUserSession(e,n,r)}async clearAfterAccountSwitch(){return this.authenticationService.clearAfterAccountSwitch()}async logout(){return this.authenticationService.logout()}getSchedulingRights(e){return this.schedulingRightsRepository.getSchedulingRights(this.bearer,e)}getSchedulingRightsById(e,n){return this.schedulingRightsRepository.getSchedulingRightsByUser(this.bearer,e,n)}updateSchedulingRights(e,n,r){return this.schedulingRightsRepository.updateSchedulingRights(this.bearer,e,n,r)}getRights(e,n,r=pe.LOCAL_THEN_REMOTE){return this.rightsRepository.getRights(this.bearer,e,n,r)}cipherUrl(e,n,r=!0){return this.widgetUrlCipherRepository.cipherUrl(this.bearer,this.getCompanyAccount(e),e,n,r)}async getAccount(e,n){return this.accountRepository.getAccount(this.bearer,e,n)}async updateAccount(e){return this.accountRepository.updateAccount(this.bearer,e)}async updatePassword(e,n){return this.accountRepository.updatePassword(this.bearer,e,n)}getAllCompanies(e,n=pe.LOCAL_THEN_REMOTE){return this.companyRepository.getAllCompanies(this.bearer,e,n).then(r=>{if(r){const a=r.results;a&&a.forEach(i=>{if(i.id&&i.owner){const o=i.id;this.companyIdsAccount[`${o}`]=i.owner.userName}})}return r})}getCompanyById(e,n,r=pe.LOCAL_THEN_REMOTE){return this.companyRepository.getCompany(this.bearer,n!=null?n:this.getCompanyAccount(e),e,r)}createCompany(e,n){return this.companyRepository.createCompany(this.bearer,e,n)}cloneCompany(e,n){return this.companyRepository.cloneCompany(this.bearer,this.getCompanyAccount(e),e,n)}updateCompany(e,n){return this.companyRepository.updateCompany(this.bearer,this.getCompanyAccount(e),e,n)}deleteCompany(e){return this.companyRepository.deleteCompany(this.bearer,this.getCompanyAccount(e),e)}getUserById(e,n,r=pe.LOCAL_THEN_REMOTE){return this.userRepository.getUser(this.bearer,n,e,r)}getDefaultAgendaUsers(e){return this.userDefaultRepository.getAllUsers(this.bearer,e)}getAllUsers(e){return this.userRepository.getAllUsers(this.bearer,e)}getDefaultTeams(e){return this.userDefaultRepository.getAllTeams(this.bearer,e)}getAllTeams(e){return this.userRepository.getAllTeams(this.bearer,e)}getAllStaffs(e,n,r=pe.LOCAL_THEN_REMOTE){return this.staffRepository.getAllStaffs(this.bearer,n!=null?n:this.getCompanyAccount(e),e,r)}getStaffById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.staffRepository.getStaff(this.bearer,r!=null?r:this.getCompanyAccount(e),e,n,a)}createStaff(e,n){return this.staffRepository.createStaff(this.bearer,this.getCompanyAccount(e),e,n)}updateStaff(e,n,r){return this.staffRepository.updateStaff(this.bearer,this.getCompanyAccount(e),e,n,r)}patchAllStaff(e,n,r){return this.staffRepository.patchAllStaff(this.bearer,this.getCompanyAccount(e),e,n,r)}deleteStaff(e,n){return this.staffRepository.deleteStaff(this.bearer,this.getCompanyAccount(e),e,n)}getAllServices(e,n,r=pe.LOCAL_THEN_REMOTE){return this.serviceRepository.getAllServices(this.bearer,n!=null?n:this.getCompanyAccount(e),e,r)}getServiceById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.serviceRepository.getService(this.bearer,r!=null?r:this.getCompanyAccount(e),e,n,a)}createService(e,n){return this.serviceRepository.createService(this.bearer,this.getCompanyAccount(e),e,n)}updateService(e,n,r){return this.serviceRepository.updateService(this.bearer,this.getCompanyAccount(e),e,n,r)}deleteService(e,n){return this.serviceRepository.deleteService(this.bearer,this.getCompanyAccount(e),e,n)}getServiceResourceById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.serviceResourceRepository.getServiceResource(this.bearer,r!=null?r:this.getCompanyAccount(e),e,n,a)}getAllServiceResources(e,n){return this.serviceResourceRepository.getAllServiceResources(this.bearer,n!=null?n:this.getCompanyAccount(e),e)}createServiceResource(e,n){return this.serviceResourceRepository.createServiceResource(this.bearer,this.getCompanyAccount(e),e,n)}updateServiceResource(e,n,r){return this.serviceResourceRepository.updateServiceResource(this.bearer,this.getCompanyAccount(e),e,n,r)}deleteServiceResource(e,n){return this.serviceResourceRepository.deleteServiceResource(this.bearer,this.getCompanyAccount(e),e,n)}getServiceGroupById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.serviceGroupRepository.getServiceGroup(this.bearer,r!=null?r:this.getCompanyAccount(e),e,n,a)}getAllServiceGroups(e,n){return this.serviceGroupRepository.getAllServiceGroups(this.bearer,n!=null?n:this.getCompanyAccount(e),e)}createServiceGroup(e,n){return this.serviceGroupRepository.createServiceGroup(this.bearer,this.getCompanyAccount(e),e,n)}updateServiceGroup(e,n,r){return this.serviceGroupRepository.updateServiceGroup(this.bearer,this.getCompanyAccount(e),e,n,r)}deleteServiceGroup(e,n){return this.serviceGroupRepository.deleteServiceGroup(this.bearer,this.getCompanyAccount(e),e,n)}getEventById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.eventRepository.getEvent(this.bearer,e,n,r,a)}getAllEvents(e,n,r,a,i,o,l,c,d,h=pe.LOCAL_THEN_REMOTE){return this.eventRepository.getAllEvents(this.bearer,e,a,n,r,i,o,l,c,d,h)}getExternalEventById(e,n,r){return this.externalEventRepository.getEvent(this.bearer,e,n,r)}getExternalEvents(e,n,r,a,i,o){return this.externalEventRepository.getEvents(this.bearer,e,a,n,r,i,o)}getIcs(e){return this.externalEventRepository.getIcs(this.bearer,e)}createEvent(e,n,r,a){return this.eventRepository.createEvent(this.bearer,this.getCompanyAccount(e),e,n,r,a)}updateEvent(e,n,r,a){return this.eventRepository.updateEvent(this.bearer,this.getCompanyAccount(e),e,n,r,a)}updateEventStatus(e,n,r){return this.eventRepository.updateEventStatus(this.bearer,this.getCompanyAccount(e),e,n,r)}getContactById(e,n,r=pe.LOCAL_THEN_REMOTE){return this.contactRepository.getContact(this.bearer,e,n,r)}searchContacts(e,n,r,a="lastName asc"){return this.contactRepository.searchContacts(this.bearer,e,n,r,a)}searchContactWithPages(e,n,r,a,i){return this.contactRepository.searchContactWithPages(this.bearer,e,n,r,a,i)}createContact(e,n){return this.contactRepository.createContact(this.bearer,e,n)}updateContact(e,n,r){return this.contactRepository.updateContact(this.bearer,e,n,r)}deleteContact(e,n){return this.contactRepository.deleteContact(this.bearer,e,n)}getWidgetForm(e,n,r){return this.widgetFormRepository.getAllWidgetForms(this.bearer,e,n,r)}getFormBuilders(e){return this.formBuilderRepository.getAllForms(this.bearer,e).then(n=>{if(n.results){const r=n.results;r&&r.forEach(a=>{const i=a.id;this.formIdsAccount[`${i}`]=a.author})}return n})}getFormBuilder(e,n){return this.formBuilderRepository.getFormById(this.bearer,e,n!=null?n:this.getFormAccount(e))}deleteFormBuilder(e){return this.formBuilderRepository.deleteFormById(this.bearer,e,this.getFormAccount(e))}createFormBuilder(e,n){return this.formBuilderRepository.createForm(this.bearer,e,n)}updateFormBuilder(e,n){return this.formBuilderRepository.updateFormById(this.bearer,e,n,this.getFormAccount(e))}getCalendars(e,n,r,a,i,o,l=pe.LOCAL_THEN_REMOTE){return this.calendarRepository.getCalendars(this.bearer,e,n,r,a,i,o,l)}getFreeSlots(e,n,r,a,i,o,l){return this.freeSlotRepository.getFreeSlots(this.bearer,this.getCompanyAccount(e),e,n,r,a,i,o,l)}getPrivacyPolicy(e,n,r=pe.LOCAL_THEN_REMOTE){return this.privacyPolicyRepository.getPrivacyPolicy(this.bearer,e,n,r)}getStaffGroupById(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.staffGroupRepository.getStaffGroup(this.bearer,r!=null?r:this.getCompanyAccount(e),e,n,a)}getAllStaffGroups(e,n){return this.staffGroupRepository.getAllStaffGroups(this.bearer,n!=null?n:this.getCompanyAccount(e),e)}deleteStaffGroup(e,n){return this.staffGroupRepository.deleteStaffGroup(this.bearer,this.getCompanyAccount(e),e,n)}createStaffGroup(e,n){return this.staffGroupRepository.createStaffGroup(this.bearer,this.getCompanyAccount(e),e,n)}updateStaffGroup(e,n,r){return this.staffGroupRepository.updateStaffGroup(this.bearer,this.getCompanyAccount(e),e,n,r)}getStaffFormsByAccount(e,n=pe.LOCAL_THEN_REMOTE){return this.staffFormsRepository.getByAccount(this.bearer,e,n)}getAllClientActivities(e,n){return this.activityRepository.getAllActivities(this.bearer,e,n)}getAllEventActivities(e,n,r){return this.activityRepository.getAllEventActivities(this.bearer,e,n,r)}getAllClientNotes(e,n){return this.noteRepository.getAllNotes(this.bearer,e,n)}createClientNote(e,n,r){return this.noteRepository.createClientNote(this.bearer,e,n,r)}createQueue(e,n){return this.queueRepository.createQueue(this.bearer,e,n).then(r=>(r&&(this.queueIdsAccount[`${r.id}`]=r.author),r))}updateQueue(e,n){return this.queueRepository.updateQueue(this.bearer,this.getQueueAccount(e),e,n)}getAllQueues(e,n=pe.LOCAL_THEN_REMOTE){return this.queueRepository.getAllQueues(e,this.bearer,n).then(r=>{if(r.results){const a=r.results;a&&a.forEach(i=>{const o=i.id;this.queueIdsAccount[`${o}`]=i.author})}return r})}getQueue(e,n,r=pe.LOCAL_THEN_REMOTE){return this.queueRepository.getQueue(this.bearer,e,n!=null?n:this.getQueueAccount(e),r)}deleteQueue(e){return this.queueRepository.deleteQueue(this.bearer,e,this.getQueueAccount(e))}getAllQueueRegistrations(e,n,r){return this.queueRegistrationRepository.getAllQueueRegistrations(this.bearer,n!=null?n:this.getQueueAccount(e),e,r).then(a=>a.results)}updateQueueRegistration(e,n,r){return this.queueRegistrationRepository.updateQueueRegistration(this.bearer,this.getQueueAccount(e),e,n,r)}getAllSSENotification(){return this.sseNotificationRepository.getAllNotifications(this.bearer,pe.LOCAL_ONLY)}getSSENotification(e){return this.sseNotificationRepository.getNotification(this.bearer,e)}deleteSSENotification(e){return this.sseNotificationRepository.deleteNotification(this.bearer,e)}getIcsEvents(e,n,r,a){return this.icsEventRepository.getEvents(this.bearer,r,e,n,a)}getIcsEventById(e,n){return this.icsEventRepository.getEvent(this.bearer,e,n)}saveIcsEvents(e){this.icsEventRepository.replaceEvents(e)}getAllFormResultByForm(e,n,r){return this.formResultRepository.getAllResultByForm(this.bearer,e,n,r)}getFormResultById(e,n,r,a){return this.formResultRepository.getResultById(this.bearer,e,n,r,a)}updateFormResultById(e,n,r,a,i){return this.formResultRepository.updateResultById(this.bearer,e,n,r,a,i)}deleteFormResultById(e,n,r){return this.formResultRepository.deleteResultById(this.bearer,e,n,r)}getStatusByFormResultId(e,n,r,a){return this.formResultStatusRepository.getStatusByFormResult(this.bearer,e,n,r,a)}createNewStatus(e,n,r,a,i){return this.formResultStatusRepository.addNewStatus(this.bearer,e,n,r,a,i)}getAllTags(e){return this.tagRepository.getAllTags(this.bearer,e)}getAdditionalFields(e){return this.additionalFieldsRepository.getAdditionalFields(this.bearer,e)}getNotificationStatus(e){return this.notificationStatusRepository.getNotificationStatus(this.bearer,e)}refreshesNotificationStatus(e,n){return this.notificationStatusRepository.refreshesNotificationStatus(this.bearer,e,n)}getAllPromoteFields(e){return this.promoteFieldRepository.getAllPromoteFields(this.bearer,e)}initIndexedDb(){this.indexedDb=new H_(Df.DB_NAME,Df.DB_VERSION)}getCompanyAccount(e){var n;return this.companyIdsAccount[e]||((n=this.logger)==null||n.error("js-calendar-api","Account company ["+e+"] not found. Have you call api getAllCompanies before?"),"unknown")}getFormAccount(e){var n;return this.formIdsAccount[e]||((n=this.logger)==null||n.error("js-calendar-api","Account form ["+e+"] not found. Have you call api getFormBuilders before?"),"unknown")}getQueueAccount(e){var n;return this.queueIdsAccount[e]||((n=this.logger)==null||n.error("js-calendar-api","Account queue ["+e+"] not found. Have you call api getAllQueues before?"),"unknown")}searchLogWithPages(e,n,r,a){return this.logRepository.searchLogWithPages(this.bearer,e,n,r,a)}getChangeLog(e,n){return this.changelogRepository.getChangelog(this.bearer,e,n)}getReports(e,n){return this.reportingRepository.getReports(this.bearer,e,n)}getPerformance(e,n){return this.companyPerformanceRepository.getPerformance(this.bearer,e,n)}getPlannings(e){return this.planningRepository.getAllPlannings(this.bearer,e)}getPlanning(e,n){return this.planningRepository.getPlanning(this.bearer,n,e)}createPlanning(e,n){return this.planningRepository.createPlanning(this.bearer,n,e)}updatePlanning(e,n,r){return this.planningRepository.updatePlanning(this.bearer,r,e,n)}deletePlanning(e,n){return this.planningRepository.deletePlanning(this.bearer,n,e)}getSchedules(e,n,r){return this.scheduleRepository.getSchedules(this.bearer,e,n,r)}async getExportCalendarToXlsx(e,n,r,a,i,o,l){await this.exportCalendarRepository.exportCalendarAsXlsx(this.bearer,e,n,r,a,i,o,l)}async generateAppointmentsExport(e,n){return await this.exportAppointmentsRepository.generateAppointmentsExport(this.bearer,e,n)}async getExport(e,n,r){await this.exportAppointmentsRepository.getExport(this.bearer,e,n,r)}async getNotification(e,n,r,a=pe.LOCAL_THEN_REMOTE){return this.notificationRepository.getNotification(this.bearer,e,n,r,a)}async getAllCompanyWorkingPlannings(e,n,r,a,i){return this.workingPlanningRepository.getAllCompanyWorkingPlannings(this.bearer,e,n,r,a,i)}async createWorkingPlanning(e,n){return this.workingPlanningRepository.createWorkingPlanning(this.bearer,e,n)}async shorten(e){return this.shortenerRepository.shorten(this.bearer,e)}}var dg=(t=>(t.FINE="fine",t.TRACE="trace",t.DEBUG="debug",t.WARN="warn",t.INFO="info",t.ERROR="error",t))(dg||{});class JS{constructor(e){u(this,"level"),u(this,"logger"),this.logger=e,this.level="error"}setLevel(e,n){if(n){const r=Date.now();if(n.getTime()>r){const a=this.level;setTimeout(()=>{this.setLevel(a)},n.getTime()-Date.now()),this.level=e}}else this.level=e}fine(e,...n){this.isLogLevelHigher("fine")&&this.logger.debug(e,n)}trace(e,...n){this.isLogLevelHigher("trace")&&this.logger.trace(e,n)}debug(e,...n){this.isLogLevelHigher("debug")&&this.logger.debug(e,n)}info(e,...n){this.isLogLevelHigher("info")&&this.logger.info(e,n)}warn(e,...n){this.isLogLevelHigher("warn")&&this.logger.warn(e,n)}error(e,...n){this.isLogLevelHigher("error")&&this.logger.error(e,n)}isLogLevelHigher(e){const n=Object.values(dg);return n.indexOf(this.level)>=n.indexOf(e)}}class Ra{constructor(){u(this,"id"),u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"picture"),u(this,"userDomain"),u(this,"acls"),u(this,"profileSettings"),u(this,"calendarSettings")}static fromAccountDto(e){var n,r;const a=new Ra;if(a.id=e.id,a.firstName=ve(e.firstName),a.lastName=ve(e.lastName),a.email=e.email,a.userDomain=((n=e.userDomain)==null?void 0:n.replace("http://","https://"))||"",a.picture=vt.fromImageDto(e.picture),e.profileSettings){const i=new hg;i.locale=e.profileSettings.language,i.timeZone=e.profileSettings.timeZone,i.country=e.profileSettings.country,i.defaultAccount=e.profileSettings.defaultAccount,i.accountName=e.profileSettings.accountName,i.betaNh=e.profileSettings.betaNh,a.profileSettings=i}if(e.calendarSettings){const i=new fg;i.minTime=e.calendarSettings.minTime,i.maxTime=e.calendarSettings.maxTime,i.eventColor=e.calendarSettings.eventColor,i.displayDays=e.calendarSettings.displayedDays,i.eventName=e.calendarSettings.eventName,i.slotDuration=e.calendarSettings.slotDuration,i.showBuffer=e.calendarSettings.showBuffer,a.calendarSettings=i}return a.acls=(r=e.acls)==null?void 0:r.filter(i=>i&&i.account&&(i.rights||i.specificRights)).map(i=>{const o=new XS;return o.account=i.account,o.id=i.id,o.rights=i.rights,o.specificRights=i.specificRights,o.active=i.active,o.accountName=ve(i.accountName),o}),a}static fromAccountDto2(e){var n,r,a,i,o;const l=new Ra;l.id=e.id,l.firstName=ve(e.firstName),l.lastName=ve(e.lastName),l.email=e.email,l.userDomain=((n=e.userDomain)==null?void 0:n.replace("http://","https://"))||"";const c=new hg;if(c.defaultAccount=e.defaultAccount,c.locale=(r=e.profileSettings)==null?void 0:r.preferences.language,c.timeZone=(a=e.profileSettings)==null?void 0:a.preferences.timeZone,c.country=(i=e.profileSettings)==null?void 0:i.preferences.country,c.betaNh=(o=e.profileSettings)==null?void 0:o.betaNh,l.profileSettings=c,l.picture=vt.fromImageDto(e.picture),e.profileSettings&&e.profileSettings.calendar){const d=new fg;d.minTime=e.profileSettings.calendar.minTime,d.maxTime=e.profileSettings.calendar.maxTime,d.eventColor=e.profileSettings.calendar.eventColor,d.displayDays=e.profileSettings.calendar.displayedDays,d.eventName=e.profileSettings.calendar.eventName,d.slotDuration=e.profileSettings.calendar.slotDuration,d.showBuffer=e.profileSettings.calendar.showBuffer,l.calendarSettings=d}return l}static toAccountDto(e){var n,r,a,i,o,l;const c=new QS;return c.id=e.id,c.firstName=Pe(e.firstName),c.lastName=Pe(e.lastName),c.email=e.email,c.userDomain=((n=e.userDomain)==null?void 0:n.replace("http://","https://"))||"",c.picture=vt.toImageDto(e.picture),c.profileSettings={preferences:{language:(r=e.profileSettings)==null?void 0:r.locale,timeZone:(a=e.profileSettings)==null?void 0:a.timeZone,country:(i=e.profileSettings)==null?void 0:i.country},betaNh:(o=e.profileSettings)==null?void 0:o.betaNh},c.defaultAccount=(l=e.profileSettings)==null?void 0:l.defaultAccount,e.calendarSettings&&(c.profileSettings.calendar={minTime:e.calendarSettings.minTime,maxTime:e.calendarSettings.maxTime,eventColor:e.calendarSettings.eventColor,displayedDays:e.calendarSettings.displayDays,eventName:e.calendarSettings.eventName,slotDuration:e.calendarSettings.slotDuration,showBuffer:e.calendarSettings.showBuffer}),c}}class hg{constructor(){u(this,"locale"),u(this,"timeZone"),u(this,"country"),u(this,"defaultAccount"),u(this,"accountName"),u(this,"betaNh")}}class fg{constructor(){u(this,"minTime"),u(this,"maxTime"),u(this,"eventColor"),u(this,"displayDays"),u(this,"eventName"),u(this,"slotDuration"),u(this,"showBuffer")}}class XS{constructor(){u(this,"id"),u(this,"account"),u(this,"active"),u(this,"rights"),u(this,"accountName"),u(this,"specificRights")}}class QS{constructor(){u(this,"id"),u(this,"firstName"),u(this,"lastName"),u(this,"email"),u(this,"userDomain"),u(this,"picture"),u(this,"profileSettings"),u(this,"calendarSettings"),u(this,"acls"),u(this,"defaultAccount")}}class Er{constructor(e,n,r,a){u(this,"id"),u(this,"date"),u(this,"user"),u(this,"marketingConsent"),u(this,"type"),u(this,"event"),u(this,"updatedAttributes"),this.id=e,this.date=n,r&&(this.user={id:r.id,userName:ve(r.userName),emailAddress:ve(r.emailAddress),firstName:ve(r.firstName),lastName:ve(r.lastName)}),this.marketingConsent=ve(a)}static fromActivityDto(e){var n,r,a,i,o,l,c;const d=e.id,h=St(e.date.dateTime,e.date.timeZone),m=e.user;let f;switch(e.type){case"appointment":f=Ht.fromAppointmentDto(d,h,m,e.appointment,e.event,e.updatedAttributes,(n=e.marketingConsent)==null?void 0:n.text);break;case"note":f=new hk(d,h,m,(r=e.note)==null?void 0:r.body);break;case"consent":f=new mk(d,h,m,(a=e.note)==null?void 0:a.body);break;case"email":f=new pk(d,h,m,e.email.subject,e.email.body);break;case"emailNotification":f=new gk(d,h,m,e.email.subject,e.email.body,e.email.id,e.email.selfLink,e.email.companyId);break;case"formResult":f=new fk(d,h,m,(o=(i=e.formResult)==null?void 0:i.form)==null?void 0:o.id,(c=(l=e.formResult)==null?void 0:l.form)==null?void 0:c.name);break;case"textMessageNotification":f=new yk(d,h,m,e.textMessage.body);break}return f&&(f.event=e.event,f.updatedAttributes=e.updatedAttributes),f}}class Ht extends Er{constructor(e,n,r,a,i){super(e,n,r,i),u(this,"start"),u(this,"end"),u(this,"service"),u(this,"resource"),u(this,"staff"),u(this,"company"),u(this,"client"),u(this,"location"),u(this,"notes"),u(this,"status"),u(this,"activityType"),this.start=ba(a.start),this.end=ba(a.end),this.status=a.status,this.service=a.service,this.resource=a.resource,this.staff=a.staff,this.company=a.company,this.client=a.client,this.notes=a.notes,this.location=a.location,this.type="appointment"}static fromAppointmentDto(e,n,r,a,i,o,l){if(!i)return new Ht(e,n,r,a,l);switch(i){case"created":return new uk(e,n,r,a,l);case"deleted":return new dk(e,n,r,a,l);case"updated":let c=o!=null?o:[];if(c.length===2){if(c.includes(mt.START)&&c.includes(mt.END)&&a.changeType===mt.START)return new ek(e,n,r,a,l)}else{if(c.includes(mt.STATUS)&&a.changeType===mt.STATUS)return new rk(e,n,r,a,l);if(c.includes(mt.START)&&a.changeType===mt.START)return new tk(e,n,r,a,l);if(c.includes(mt.END)&&a.changeType===mt.END)return new nk(e,n,r,a,l);if(c.includes(mt.FORM)||a.changeType===mt.FORM)return new ck(e,n,r,a,l);if(c.includes(mt.STAFF)&&a.changeType===mt.STAFF)return new ak(e,n,r,a,l);if(c.includes(mt.SERVICE)&&a.changeType===mt.SERVICE)return new ik(e,n,r,a,l);if(c.includes(mt.RESOURCE)&&a.changeType===mt.RESOURCE)return new ok(e,n,r,a,l);if(c.includes(mt.NOTES)&&a.changeType===mt.NOTES)return new sk(e,n,r,a,l);if(c.includes(mt.LOCATION)&&a.changeType===mt.LOCATION)return new lk(e,n,r,a,l)}}}}class ek extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousStart"),u(this,"previousEnd"),this.previousStart=ba(a.previousStart),this.previousEnd=ba(a.previousEnd),this.activityType="appointment-dates-update"}}class tk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousStart"),this.previousStart=ba(a.previousStart),this.activityType="appointment-start-update"}}class nk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousEnd"),this.previousEnd=ba(a.previousEnd),this.activityType="appointment-end-update"}}class rk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousStatus"),this.previousStatus=a.previousStatus,this.activityType="appointment-status-update"}}class ak extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousStaff"),this.previousStaff=a.previousStaff,this.activityType="appointment-staff-update"}}class ik extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousService"),this.previousService=a.previousService,this.activityType="appointment-service-update"}}class ok extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),this.activityType="appointment-resource-update"}}class sk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousNotes"),this.activityType="appointment-note-update",this.previousNotes=a.previousNotes}}class lk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"previousLocation"),this.activityType="appointment-location-update",this.previousLocation=a.previousLocation}}class ck extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),u(this,"formValues"),u(this,"previousFormValues"),this.activityType="appointment-form-update",this.previousFormValues=a.previousFormValues,this.formValues=a.formValues}}class uk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),this.activityType="appointment-creation"}}class dk extends Ht{constructor(e,n,r,a,i){super(e,n,r,a,i),this.activityType="appointment-delete"}}class hk extends Er{constructor(e,n,r,a){super(e,n,r,void 0),u(this,"body"),this.body=ve(a),this.type="note"}}class fk extends Er{constructor(e,n,r,a,i,o){super(e,n,r,o),u(this,"formId"),u(this,"formName"),this.formId=a,this.formName=ve(i),this.type="formResult"}}class mk extends Er{constructor(e,n,r,a){super(e,n,r),u(this,"note"),this.note=ve(a),this.type="consent"}}class pk extends Er{constructor(e,n,r,a,i){super(e,n,r),u(this,"subject"),u(this,"body"),this.subject=ve(a),this.body=ve(i),this.type="email"}}class gk extends Er{constructor(e,n,r,a,i,o,l,c){super(e,n,r),u(this,"subject"),u(this,"body"),u(this,"emailId"),u(this,"selfLink"),u(this,"companyId"),this.subject=ve(a),this.body=ve(i),this.type="emailNotification",this.emailId=o,this.selfLink=l,this.companyId=c}}class yk extends Er{constructor(e,n,r,a){super(e,n,r),u(this,"body"),this.body=ve(a),this.type="textMessageNotification"}}var mt=(t=>(t.START="start",t.END="end",t.STAFF="staff",t.LOCATION="location",t.SERVICE="service",t.RESOURCE="resource",t.FORM="form",t.STATUS="status",t.NOTES="notes",t))(mt||{});let Es,iu;const vk=(t,e)=>(Es=t,iu=e,ur.createPinia()),wk=ur.defineStore({id:"account",state:()=>({account:{}}),actions:{async updateAccount(t){if(!!t)return Es.updateAccount(t).then(e=>{const n=e;Object.keys(n).forEach(function(r){n[r]===void 0&&delete n[r]}),Object.assign(this.account,n)})},fetchAccount(t,e,n){return Es.getAccount(void 0,t).then(r=>{r.result?(this.account=r.result,e&&e(r.result)):n&&n(ye.INTERNAL_ERROR)}).catch(()=>{n&&n(ye.INTERNAL_ERROR)})},async updatePassword(t,e){return Es.updatePassword(t,e)},async hasAbility(t,e){return iu.can(t,e)},async hasAnyRoles(t){return iu.role.any(t)}}}),ji={options:{},api:{},logger:{}},bk=t=>({install(e,n){ji.options=t,ji.api=new ZS({baseURL:t.baseURL,clientId:t.clientId})}}),_k=(t,e)=>({install(n){let r=new JS(t);r.setLevel(e),ji.logger=r}}),Ek=()=>ji.api,Dk=()=>ji.logger;async function Sk(t,e,n,r,a){let i=0,o;const l=async(d,h)=>{if(a===void 0||!a()){const m=await t();if(i++,e(m))return d(m);if(r&&i===r)return h(new Error("Exceeded max attempts"));o=setTimeout(l,n,d,h)}else c()},c=()=>{o&&clearTimeout(o)};return new Promise(l)}class kk{constructor(e){dd(this,"internalState");dd(this,"listeners",[]);this.internalState=e}get state(){return this.internalState}changeState(e){this.internalState=e,this.listeners.length>0&&this.listeners.forEach(n=>n(this.state))}subscribe(e){this.listeners.push(e)}unsubscribe(e){const n=this.listeners.indexOf(e);n>-1&&this.listeners.splice(n,1)}}function Ik(t){let e="ffffff",n="000000",r=t.substr(1);const a=[{id:25,weight:95,base:e},{id:50,weight:90,base:e},{id:100,weight:80,base:e},{id:200,weight:60,base:e},{id:300,weight:40,base:e},{id:400,weight:20,base:e},{id:600,weight:20,base:n},{id:700,weight:40,base:n},{id:800,weight:60,base:n},{id:900,weight:90,base:n}],i=[];return a.forEach(o=>{i.push({key:`--az-primary-${o.id}`,code:Ck(o.base,r,o.weight)})}),i.push({key:"--az-primary-500",code:t}),i}function Ck(t,e,n){function r(o){return o.toString(16)}function a(o){return parseInt(o,16)}n=typeof n!="undefined"?n:50;let i="#";for(let o=0;o<=5;o+=2){let l=a(t.substr(o,2)),c=a(e.substr(o,2)),d=r(Math.floor(c+(l-c)*(n/100)));for(;d.length<2;)d="0"+d;i+=d}return i}const Nk=[{label:"English",value:"en"},{label:"Fran\xE7ais",value:"fr"},{label:"Espa\xF1ol",value:"es"},{label:"Portugu\xEAs",value:"pt"},{label:"Deutsch",value:"de"},{label:"Nederlands",value:"nl"},{label:"Italiano",value:"it"}];function mg({field:t,values:e,validationRegEx:n,emitter:r,customCheck:a,format:i}){const o=s.ref();function l(f){let p="";if(a)return a();if(typeof e=="function"){const E=e();return d(E)?typeof E=="string"&&!h(E)?p="system.error.regex":i&&!m(E,i,t.mandatory)&&(p="system.error.format"):p="system.error.empty",(f==null||f===!0)&&(o.value=p),{isValid:p==="",id:t.id,values:E}}return{isValid:!1,id:t.id}}function c(){const f=l();r!==void 0&&(r("validated",f),f.isValid||r("error",o))}function d(f){let p=!0;return(t==null?void 0:t.mandatory)===oi.mandatory&&(f===void 0||typeof f=="string"&&f.trim().length<=0||Array.isArray(f)&&f.length<=0||Array.isArray(f)&&f.length==1&&f[0]=="")&&(p=!1),p}function h(f){let p=!1;return(n===void 0||f===void 0||f.length<=0||n.test(f))&&(p=!0),p}function m(f,p,E){let k=!0;return k&&p&&p.pattern&&(k=new RegExp(p.pattern).test(f)),(((f==null?void 0:f.length)||0)>0||E===oi.mandatory)&&k&&p&&p.minlength&&(k=((f==null?void 0:f.length)||0)>=p.minlength),k&&p&&p.maxlength&&(k=((f==null?void 0:f.length)||0)<=p.maxlength),k&&typeof f=="number"&&p&&(k&&p.min&&(k=f>=p.min),k&&p.max&&(k=f<=p.max)),k}return{error:o,validateField:c,checkField:l}}var Jt="top",dn="bottom",hn="right",Xt="left",ou="auto",Yi=[Jt,dn,hn,Xt],Ma="start",Wi="end",Tk="clippingParents",pg="viewport",Gi="popper",Ak="reference",gg=Yi.reduce(function(t,e){return t.concat([e+"-"+Ma,e+"-"+Wi])},[]),yg=[].concat(Yi,[ou]).reduce(function(t,e){return t.concat([e,e+"-"+Ma,e+"-"+Wi])},[]),Ok="beforeRead",xk="read",Lk="afterRead",Rk="beforeMain",Mk="main",Pk="afterMain",$k="beforeWrite",Bk="write",Fk="afterWrite",zk=[Ok,xk,Lk,Rk,Mk,Pk,$k,Bk,Fk];function On(t){return t?(t.nodeName||"").toLowerCase():null}function fn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Qr(t){var e=fn(t).Element;return t instanceof e||t instanceof Element}function mn(t){var e=fn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function su(t){if(typeof ShadowRoot=="undefined")return!1;var e=fn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Vk(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},i=e.elements[n];!mn(i)||!On(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var l=a[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function Uk(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var a=e.elements[r],i=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=o.reduce(function(c,d){return c[d]="",c},{});!mn(a)||!On(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}var Hk={name:"applyStyles",enabled:!0,phase:"write",fn:Vk,effect:Uk,requires:["computeStyles"]};function xn(t){return t.split("-")[0]}var ea=Math.max,Ds=Math.min,Pa=Math.round;function lu(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function vg(){return!/^((?!chrome|android).)*safari/i.test(lu())}function $a(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,i=1;e&&mn(t)&&(a=t.offsetWidth>0&&Pa(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Pa(r.height)/t.offsetHeight||1);var o=Qr(t)?fn(t):window,l=o.visualViewport,c=!vg()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/a,h=(r.top+(c&&l?l.offsetTop:0))/i,m=r.width/a,f=r.height/i;return{width:m,height:f,top:h,right:d+m,bottom:h+f,left:d,x:d,y:h}}function cu(t){var e=$a(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function wg(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&su(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function tr(t){return fn(t).getComputedStyle(t)}function jk(t){return["table","td","th"].indexOf(On(t))>=0}function Dr(t){return((Qr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ss(t){return On(t)==="html"?t:t.assignedSlot||t.parentNode||(su(t)?t.host:null)||Dr(t)}function bg(t){return!mn(t)||tr(t).position==="fixed"?null:t.offsetParent}function Yk(t){var e=/firefox/i.test(lu()),n=/Trident/i.test(lu());if(n&&mn(t)){var r=tr(t);if(r.position==="fixed")return null}var a=Ss(t);for(su(a)&&(a=a.host);mn(a)&&["html","body"].indexOf(On(a))<0;){var i=tr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function qi(t){for(var e=fn(t),n=bg(t);n&&jk(n)&&tr(n).position==="static";)n=bg(n);return n&&(On(n)==="html"||On(n)==="body"&&tr(n).position==="static")?e:n||Yk(t)||e}function uu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ki(t,e,n){return ea(t,Ds(e,n))}function Wk(t,e,n){var r=Ki(t,e,n);return r>n?n:r}function _g(){return{top:0,right:0,bottom:0,left:0}}function Eg(t){return Object.assign({},_g(),t)}function Dg(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Gk=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Eg(typeof e!="number"?e:Dg(e,Yi))};function qk(t){var e,n=t.state,r=t.name,a=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,l=xn(n.placement),c=uu(l),d=[Xt,hn].indexOf(l)>=0,h=d?"height":"width";if(!(!i||!o)){var m=Gk(a.padding,n),f=cu(i),p=c==="y"?Jt:Xt,E=c==="y"?dn:hn,k=n.rects.reference[h]+n.rects.reference[c]-o[c]-n.rects.popper[h],T=o[c]-n.rects.reference[c],b=qi(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,A=k/2-T/2,S=m[p],N=w-f[h]-m[E],L=w/2-f[h]/2+A,M=Ki(S,L,N),F=c;n.modifiersData[r]=(e={},e[F]=M,e.centerOffset=M-L,e)}}function Kk(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||!wg(e.elements.popper,a)||(e.elements.arrow=a))}var Zk={name:"arrow",enabled:!0,phase:"main",fn:qk,effect:Kk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ba(t){return t.split("-")[1]}var Jk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xk(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:Pa(e*a)/a||0,y:Pa(n*a)/a||0}}function Sg(t){var e,n=t.popper,r=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,l=t.position,c=t.gpuAcceleration,d=t.adaptive,h=t.roundOffsets,m=t.isFixed,f=o.x,p=f===void 0?0:f,E=o.y,k=E===void 0?0:E,T=typeof h=="function"?h({x:p,y:k}):{x:p,y:k};p=T.x,k=T.y;var b=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),A=Xt,S=Jt,N=window;if(d){var L=qi(n),M="clientHeight",F="clientWidth";if(L===fn(n)&&(L=Dr(n),tr(L).position!=="static"&&l==="absolute"&&(M="scrollHeight",F="scrollWidth")),L=L,a===Jt||(a===Xt||a===hn)&&i===Wi){S=dn;var V=m&&L===N&&N.visualViewport?N.visualViewport.height:L[M];k-=V-r.height,k*=c?1:-1}if(a===Xt||(a===Jt||a===dn)&&i===Wi){A=hn;var R=m&&L===N&&N.visualViewport?N.visualViewport.width:L[F];p-=R-r.width,p*=c?1:-1}}var z=Object.assign({position:l},d&&Jk),j=h===!0?Xk({x:p,y:k}):{x:p,y:k};if(p=j.x,k=j.y,c){var B;return Object.assign({},z,(B={},B[S]=w?"0":"",B[A]=b?"0":"",B.transform=(N.devicePixelRatio||1)<=1?"translate("+p+"px, "+k+"px)":"translate3d("+p+"px, "+k+"px, 0)",B))}return Object.assign({},z,(e={},e[S]=w?k+"px":"",e[A]=b?p+"px":"",e.transform="",e))}function Qk(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:xn(e.placement),variation:Ba(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Sg(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Sg(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var eI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qk,data:{}},ks={passive:!0};function tI(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,l=o===void 0?!0:o,c=fn(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(h){h.addEventListener("scroll",n.update,ks)}),l&&c.addEventListener("resize",n.update,ks),function(){i&&d.forEach(function(h){h.removeEventListener("scroll",n.update,ks)}),l&&c.removeEventListener("resize",n.update,ks)}}var nI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tI,data:{}},rI={left:"right",right:"left",bottom:"top",top:"bottom"};function Is(t){return t.replace(/left|right|bottom|top/g,function(e){return rI[e]})}var aI={start:"end",end:"start"};function kg(t){return t.replace(/start|end/g,function(e){return aI[e]})}function du(t){var e=fn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hu(t){return $a(Dr(t)).left+du(t).scrollLeft}function iI(t,e){var n=fn(t),r=Dr(t),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;var d=vg();(d||!d&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l+hu(t),y:c}}function oI(t){var e,n=Dr(t),r=du(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=ea(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ea(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+hu(t),c=-r.scrollTop;return tr(a||n).direction==="rtl"&&(l+=ea(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:l,y:c}}function fu(t){var e=tr(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ig(t){return["html","body","#document"].indexOf(On(t))>=0?t.ownerDocument.body:mn(t)&&fu(t)?t:Ig(Ss(t))}function Zi(t,e){var n;e===void 0&&(e=[]);var r=Ig(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),i=fn(r),o=a?[i].concat(i.visualViewport||[],fu(r)?r:[]):r,l=e.concat(o);return a?l:l.concat(Zi(Ss(o)))}function mu(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sI(t,e){var n=$a(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Cg(t,e,n){return e===pg?mu(iI(t,n)):Qr(e)?sI(e,n):mu(oI(Dr(t)))}function lI(t){var e=Zi(Ss(t)),n=["absolute","fixed"].indexOf(tr(t).position)>=0,r=n&&mn(t)?qi(t):t;return Qr(r)?e.filter(function(a){return Qr(a)&&wg(a,r)&&On(a)!=="body"}):[]}function cI(t,e,n,r){var a=e==="clippingParents"?lI(t):[].concat(e),i=[].concat(a,[n]),o=i[0],l=i.reduce(function(c,d){var h=Cg(t,d,r);return c.top=ea(h.top,c.top),c.right=Ds(h.right,c.right),c.bottom=Ds(h.bottom,c.bottom),c.left=ea(h.left,c.left),c},Cg(t,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ng(t){var e=t.reference,n=t.element,r=t.placement,a=r?xn(r):null,i=r?Ba(r):null,o=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(a){case Jt:c={x:o,y:e.y-n.height};break;case dn:c={x:o,y:e.y+e.height};break;case hn:c={x:e.x+e.width,y:l};break;case Xt:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var d=a?uu(a):null;if(d!=null){var h=d==="y"?"height":"width";switch(i){case Ma:c[d]=c[d]-(e[h]/2-n[h]/2);break;case Wi:c[d]=c[d]+(e[h]/2-n[h]/2);break}}return c}function Ji(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,i=n.strategy,o=i===void 0?t.strategy:i,l=n.boundary,c=l===void 0?Tk:l,d=n.rootBoundary,h=d===void 0?pg:d,m=n.elementContext,f=m===void 0?Gi:m,p=n.altBoundary,E=p===void 0?!1:p,k=n.padding,T=k===void 0?0:k,b=Eg(typeof T!="number"?T:Dg(T,Yi)),w=f===Gi?Ak:Gi,A=t.rects.popper,S=t.elements[E?w:f],N=cI(Qr(S)?S:S.contextElement||Dr(t.elements.popper),c,h,o),L=$a(t.elements.reference),M=Ng({reference:L,element:A,strategy:"absolute",placement:a}),F=mu(Object.assign({},A,M)),V=f===Gi?F:L,R={top:N.top-V.top+b.top,bottom:V.bottom-N.bottom+b.bottom,left:N.left-V.left+b.left,right:V.right-N.right+b.right},z=t.modifiersData.offset;if(f===Gi&&z){var j=z[a];Object.keys(R).forEach(function(B){var Z=[hn,dn].indexOf(B)>=0?1:-1,Y=[Jt,dn].indexOf(B)>=0?"y":"x";R[B]+=j[Y]*Z})}return R}function uI(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?yg:c,h=Ba(r),m=h?l?gg:gg.filter(function(E){return Ba(E)===h}):Yi,f=m.filter(function(E){return d.indexOf(E)>=0});f.length===0&&(f=m);var p=f.reduce(function(E,k){return E[k]=Ji(t,{placement:k,boundary:a,rootBoundary:i,padding:o})[xn(k)],E},{});return Object.keys(p).sort(function(E,k){return p[E]-p[k]})}function dI(t){if(xn(t)===ou)return[];var e=Is(t);return[kg(t),e,kg(e)]}function hI(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,l=o===void 0?!0:o,c=n.fallbackPlacements,d=n.padding,h=n.boundary,m=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,E=p===void 0?!0:p,k=n.allowedAutoPlacements,T=e.options.placement,b=xn(T),w=b===T,A=c||(w||!E?[Is(T)]:dI(T)),S=[T].concat(A).reduce(function(W,Ee){return W.concat(xn(Ee)===ou?uI(e,{placement:Ee,boundary:h,rootBoundary:m,padding:d,flipVariations:E,allowedAutoPlacements:k}):Ee)},[]),N=e.rects.reference,L=e.rects.popper,M=new Map,F=!0,V=S[0],R=0;R<S.length;R++){var z=S[R],j=xn(z),B=Ba(z)===Ma,Z=[Jt,dn].indexOf(j)>=0,Y=Z?"width":"height",q=Ji(e,{placement:z,boundary:h,rootBoundary:m,altBoundary:f,padding:d}),G=Z?B?hn:Xt:B?dn:Jt;N[Y]>L[Y]&&(G=Is(G));var ne=Is(G),oe=[];if(i&&oe.push(q[j]<=0),l&&oe.push(q[G]<=0,q[ne]<=0),oe.every(function(W){return W})){V=z,F=!1;break}M.set(z,oe)}if(F)for(var J=E?3:1,$=function(Ee){var _e=S.find(function(Te){var De=M.get(Te);if(De)return De.slice(0,Ee).every(function(Ne){return Ne})});if(_e)return V=_e,"break"},Q=J;Q>0;Q--){var ae=$(Q);if(ae==="break")break}e.placement!==V&&(e.modifiersData[r]._skip=!0,e.placement=V,e.reset=!0)}}var fI={name:"flip",enabled:!0,phase:"main",fn:hI,requiresIfExists:["offset"],data:{_skip:!1}};function Tg(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ag(t){return[Jt,hn,dn,Xt].some(function(e){return t[e]>=0})}function mI(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=Ji(e,{elementContext:"reference"}),l=Ji(e,{altBoundary:!0}),c=Tg(o,r),d=Tg(l,a,i),h=Ag(c),m=Ag(d);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}var pI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mI};function gI(t,e,n){var r=xn(t),a=[Xt,Jt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=i[0],l=i[1];return o=o||0,l=(l||0)*a,[Xt,hn].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function yI(t){var e=t.state,n=t.options,r=t.name,a=n.offset,i=a===void 0?[0,0]:a,o=yg.reduce(function(h,m){return h[m]=gI(m,e.rects,i),h},{}),l=o[e.placement],c=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=o}var vI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yI};function wI(t){var e=t.state,n=t.name;e.modifiersData[n]=Ng({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var bI={name:"popperOffsets",enabled:!0,phase:"read",fn:wI,data:{}};function _I(t){return t==="x"?"y":"x"}function EI(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,l=o===void 0?!1:o,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,m=n.padding,f=n.tether,p=f===void 0?!0:f,E=n.tetherOffset,k=E===void 0?0:E,T=Ji(e,{boundary:c,rootBoundary:d,padding:m,altBoundary:h}),b=xn(e.placement),w=Ba(e.placement),A=!w,S=uu(b),N=_I(S),L=e.modifiersData.popperOffsets,M=e.rects.reference,F=e.rects.popper,V=typeof k=="function"?k(Object.assign({},e.rects,{placement:e.placement})):k,R=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(!!L){if(i){var B,Z=S==="y"?Jt:Xt,Y=S==="y"?dn:hn,q=S==="y"?"height":"width",G=L[S],ne=G+T[Z],oe=G-T[Y],J=p?-F[q]/2:0,$=w===Ma?M[q]:F[q],Q=w===Ma?-F[q]:-M[q],ae=e.elements.arrow,W=p&&ae?cu(ae):{width:0,height:0},Ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:_g(),_e=Ee[Z],Te=Ee[Y],De=Ki(0,M[q],W[q]),Ne=A?M[q]/2-J-De-_e-R.mainAxis:$-De-_e-R.mainAxis,Ae=A?-M[q]/2+J+De+Te+R.mainAxis:Q+De+Te+R.mainAxis,te=e.elements.arrow&&qi(e.elements.arrow),ue=te?S==="y"?te.clientTop||0:te.clientLeft||0:0,_=(B=z==null?void 0:z[S])!=null?B:0,g=G+Ne-_-ue,x=G+Ae-_,X=Ki(p?Ds(ne,g):ne,G,p?ea(oe,x):oe);L[S]=X,j[S]=X-G}if(l){var ce,me=S==="x"?Jt:Xt,K=S==="x"?dn:hn,v=L[N],O=N==="y"?"height":"width",y=v+T[me],D=v-T[K],I=[Jt,Xt].indexOf(b)!==-1,C=(ce=z==null?void 0:z[N])!=null?ce:0,P=I?y:v-M[O]-F[O]-C+R.altAxis,H=I?v+M[O]+F[O]-C-R.altAxis:D,ee=p&&I?Wk(P,v,H):Ki(p?P:y,v,p?H:D);L[N]=ee,j[N]=ee-v}e.modifiersData[r]=j}}var DI={name:"preventOverflow",enabled:!0,phase:"main",fn:EI,requiresIfExists:["offset"]};function SI(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kI(t){return t===fn(t)||!mn(t)?du(t):SI(t)}function II(t){var e=t.getBoundingClientRect(),n=Pa(e.width)/t.offsetWidth||1,r=Pa(e.height)/t.offsetHeight||1;return n!==1||r!==1}function CI(t,e,n){n===void 0&&(n=!1);var r=mn(e),a=mn(e)&&II(e),i=Dr(e),o=$a(t,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((On(e)!=="body"||fu(i))&&(l=kI(e)),mn(e)?(c=$a(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=hu(i))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function NI(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&a(c)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||a(i)}),r}function TI(t){var e=NI(t);return zk.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function AI(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function OI(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Og={placement:"bottom",modifiers:[],strategy:"absolute"};function xg(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function xI(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,i=a===void 0?Og:a;return function(l,c,d){d===void 0&&(d=i);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Og,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],f=!1,p={state:h,setOptions:function(b){var w=typeof b=="function"?b(h.options):b;k(),h.options=Object.assign({},i,h.options,w),h.scrollParents={reference:Qr(l)?Zi(l):l.contextElement?Zi(l.contextElement):[],popper:Zi(c)};var A=TI(OI([].concat(r,h.options.modifiers)));return h.orderedModifiers=A.filter(function(S){return S.enabled}),E(),p.update()},forceUpdate:function(){if(!f){var b=h.elements,w=b.reference,A=b.popper;if(!!xg(w,A)){h.rects={reference:CI(w,qi(A),h.options.strategy==="fixed"),popper:cu(A)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(R){return h.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<h.orderedModifiers.length;S++){if(h.reset===!0){h.reset=!1,S=-1;continue}var N=h.orderedModifiers[S],L=N.fn,M=N.options,F=M===void 0?{}:M,V=N.name;typeof L=="function"&&(h=L({state:h,options:F,name:V,instance:p})||h)}}}},update:AI(function(){return new Promise(function(T){p.forceUpdate(),T(h)})}),destroy:function(){k(),f=!0}};if(!xg(l,c))return p;p.setOptions(d).then(function(T){!f&&d.onFirstUpdate&&d.onFirstUpdate(T)});function E(){h.orderedModifiers.forEach(function(T){var b=T.name,w=T.options,A=w===void 0?{}:w,S=T.effect;if(typeof S=="function"){var N=S({state:h,name:b,instance:p,options:A}),L=function(){};m.push(N||L)}})}function k(){m.forEach(function(T){return T()}),m=[]}return p}}var LI=[nI,bI,eI,Hk,vI,fI,DI,Zk,pI],RI=xI({defaultModifiers:LI}),MI=Object.defineProperty,PI=(t,e,n)=>e in t?MI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$e=(t,e,n)=>(PI(t,typeof e!="symbol"?e+"":e,n),n);const nr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},$I={},BI={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},FI=[s.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function zI(t,e){return s.openBlock(),s.createElementBlock("svg",BI,FI)}const VI=nr($I,[["render",zI]]),UI={},HI={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},jI=[s.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function YI(t,e){return s.openBlock(),s.createElementBlock("svg",HI,jI)}const WI=nr(UI,[["render",YI]]),GI={},qI={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},KI=[s.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function ZI(t,e){return s.openBlock(),s.createElementBlock("svg",qI,KI)}const JI=nr(GI,[["render",ZI]]),XI={},QI={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},eC=[s.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function tC(t,e){return s.openBlock(),s.createElementBlock("svg",QI,eC)}const nC=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:JI,IconChevronLeft:WI,IconChevronRight:VI,IconClock:nr(XI,[["render",tC]])},Symbol.toStringTag,{value:"Module"})),Fa=s.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=s.computed(()=>e.width||e.size),r=s.computed(()=>e.height||e.size),a=s.computed(()=>nC[`Icon${e.name}`]);return(i,o)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(a)),{width:s.unref(n),height:s.unref(r),class:"vc-base-icon"},null,8,["width","height"]))}});function Lg(){return typeof window!="undefined"}function rC(t){return Lg()&&t in window}function aC(t){const e=s.ref(!1),n=s.computed(()=>e.value?"dark":"light");let r,a;function i(p){e.value=p.matches}function o(){rC("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",i),e.value=r.matches)}function l(){const{selector:p=":root",darkClass:E="dark"}=t.value,k=document.querySelector(p);e.value=k.classList.contains(E)}function c(p){const{selector:E=":root",darkClass:k="dark"}=p;if(Lg()&&E&&k){const T=document.querySelector(E);T&&(a=new MutationObserver(l),a.observe(T,{attributes:!0,attributeFilter:["class"]}),e.value=T.classList.contains(k))}}function d(){m();const p=typeof t.value;p==="string"&&t.value.toLowerCase()==="system"?o():p==="object"?c(t.value):e.value=!!t.value}const h=s.watch(()=>t.value,()=>d(),{immediate:!0});function m(){r&&(r.removeEventListener("change",i),r=void 0),a&&(a.disconnect(),a=void 0)}function f(){m(),h()}return s.onUnmounted(()=>f()),{isDark:e,displayMode:n,cleanup:f}}var Cs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function iC(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oC=typeof Cs=="object"&&Cs&&Cs.Object===Object&&Cs,Rg=oC,sC=Rg,lC=typeof self=="object"&&self&&self.Object===Object&&self,cC=sC||lC||Function("return this")(),Ln=cC,uC=Ln,dC=uC.Symbol,Ns=dC,Mg=Ns,Pg=Object.prototype,hC=Pg.hasOwnProperty,fC=Pg.toString,Xi=Mg?Mg.toStringTag:void 0;function mC(t){var e=hC.call(t,Xi),n=t[Xi];try{t[Xi]=void 0;var r=!0}catch{}var a=fC.call(t);return r&&(e?t[Xi]=n:delete t[Xi]),a}var pC=mC,gC=Object.prototype,yC=gC.toString;function vC(t){return yC.call(t)}var wC=vC,$g=Ns,bC=pC,_C=wC,EC="[object Null]",DC="[object Undefined]",Bg=$g?$g.toStringTag:void 0;function SC(t){return t==null?t===void 0?DC:EC:Bg&&Bg in Object(t)?bC(t):_C(t)}var Rn=SC;function kC(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var rr=kC,IC=Rn,CC=rr,NC="[object AsyncFunction]",TC="[object Function]",AC="[object GeneratorFunction]",OC="[object Proxy]";function xC(t){if(!CC(t))return!1;var e=IC(t);return e==TC||e==AC||e==NC||e==OC}var ta=xC,LC=Array.isArray,_n=LC;function RC(t){return t!=null&&typeof t=="object"}var En=RC,MC=Rn,PC=_n,$C=En,BC="[object String]";function FC(t){return typeof t=="string"||!PC(t)&&$C(t)&&MC(t)==BC}var Mn=FC,zC=Rn,VC=En,UC="[object Boolean]";function HC(t){return t===!0||t===!1||VC(t)&&zC(t)==UC}var jC=HC,YC=Rn,WC=En,GC="[object Number]";function qC(t){return typeof t=="number"||WC(t)&&YC(t)==GC}var Dn=qC,KC=Rn,ZC=En,JC="[object Date]";function XC(t){return ZC(t)&&KC(t)==JC}var QC=XC;function eN(t){return function(e){return t(e)}}var Fg=eN,Qi={},tN={get exports(){return Qi},set exports(t){Qi=t}};(function(t,e){var n=Rg,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();t.exports=l})(tN,Qi);var nN=QC,rN=Fg,zg=Qi,Vg=zg&&zg.isDate,aN=Vg?rN(Vg):nN,iN=aN,oN=Rn,sN=En,lN="[object Symbol]";function cN(t){return typeof t=="symbol"||sN(t)&&oN(t)==lN}var pu=cN,uN=_n,dN=pu,hN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fN=/^\w*$/;function mN(t,e){if(uN(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||dN(t)?!0:fN.test(t)||!hN.test(t)||e!=null&&t in Object(e)}var gu=mN,pN=Ln,gN=pN["__core-js_shared__"],yN=gN,yu=yN,Ug=function(){var t=/[^.]+$/.exec(yu&&yu.keys&&yu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function vN(t){return!!Ug&&Ug in t}var wN=vN,bN=Function.prototype,_N=bN.toString;function EN(t){if(t!=null){try{return _N.call(t)}catch{}try{return t+""}catch{}}return""}var Hg=EN,DN=ta,SN=wN,kN=rr,IN=Hg,CN=/[\\^$.*+?()[\]{}|]/g,NN=/^\[object .+?Constructor\]$/,TN=Function.prototype,AN=Object.prototype,ON=TN.toString,xN=AN.hasOwnProperty,LN=RegExp("^"+ON.call(xN).replace(CN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function RN(t){if(!kN(t)||SN(t))return!1;var e=DN(t)?LN:NN;return e.test(IN(t))}var MN=RN;function PN(t,e){return t==null?void 0:t[e]}var $N=PN,BN=MN,FN=$N;function zN(t,e){var n=FN(t,e);return BN(n)?n:void 0}var na=zN,VN=na,UN=VN(Object,"create"),Ts=UN,jg=Ts;function HN(){this.__data__=jg?jg(null):{},this.size=0}var jN=HN;function YN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var WN=YN,GN=Ts,qN="__lodash_hash_undefined__",KN=Object.prototype,ZN=KN.hasOwnProperty;function JN(t){var e=this.__data__;if(GN){var n=e[t];return n===qN?void 0:n}return ZN.call(e,t)?e[t]:void 0}var XN=JN,QN=Ts,e3=Object.prototype,t3=e3.hasOwnProperty;function n3(t){var e=this.__data__;return QN?e[t]!==void 0:t3.call(e,t)}var r3=n3,a3=Ts,i3="__lodash_hash_undefined__";function o3(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=a3&&e===void 0?i3:e,this}var s3=o3,l3=jN,c3=WN,u3=XN,d3=r3,h3=s3;function za(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}za.prototype.clear=l3,za.prototype.delete=c3,za.prototype.get=u3,za.prototype.has=d3,za.prototype.set=h3;var f3=za;function m3(){this.__data__=[],this.size=0}var p3=m3;function g3(t,e){return t===e||t!==t&&e!==e}var Va=g3,y3=Va;function v3(t,e){for(var n=t.length;n--;)if(y3(t[n][0],e))return n;return-1}var As=v3,w3=As,b3=Array.prototype,_3=b3.splice;function E3(t){var e=this.__data__,n=w3(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():_3.call(e,n,1),--this.size,!0}var D3=E3,S3=As;function k3(t){var e=this.__data__,n=S3(e,t);return n<0?void 0:e[n][1]}var I3=k3,C3=As;function N3(t){return C3(this.__data__,t)>-1}var T3=N3,A3=As;function O3(t,e){var n=this.__data__,r=A3(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var x3=O3,L3=p3,R3=D3,M3=I3,P3=T3,$3=x3;function Ua(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ua.prototype.clear=L3,Ua.prototype.delete=R3,Ua.prototype.get=M3,Ua.prototype.has=P3,Ua.prototype.set=$3;var Os=Ua,B3=na,F3=Ln,z3=B3(F3,"Map"),vu=z3,Yg=f3,V3=Os,U3=vu;function H3(){this.size=0,this.__data__={hash:new Yg,map:new(U3||V3),string:new Yg}}var j3=H3;function Y3(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var W3=Y3,G3=W3;function q3(t,e){var n=t.__data__;return G3(e)?n[typeof e=="string"?"string":"hash"]:n.map}var xs=q3,K3=xs;function Z3(t){var e=K3(this,t).delete(t);return this.size-=e?1:0,e}var J3=Z3,X3=xs;function Q3(t){return X3(this,t).get(t)}var e6=Q3,t6=xs;function n6(t){return t6(this,t).has(t)}var r6=n6,a6=xs;function i6(t,e){var n=a6(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o6=i6,s6=j3,l6=J3,c6=e6,u6=r6,d6=o6;function Ha(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ha.prototype.clear=s6,Ha.prototype.delete=l6,Ha.prototype.get=c6,Ha.prototype.has=u6,Ha.prototype.set=d6;var wu=Ha,Wg=wu,h6="Expected a function";function bu(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(h6);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(bu.Cache||Wg),n}bu.Cache=Wg;var f6=bu,m6=f6,p6=500;function g6(t){var e=m6(t,function(r){return n.size===p6&&n.clear(),r}),n=e.cache;return e}var y6=g6,v6=y6,w6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b6=/\\(\\)?/g,_6=v6(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(w6,function(n,r,a,i){e.push(a?i.replace(b6,"$1"):r||n)}),e}),E6=_6;function D6(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var S6=D6,Gg=Ns,k6=S6,I6=_n,C6=pu,N6=1/0,qg=Gg?Gg.prototype:void 0,Kg=qg?qg.toString:void 0;function Zg(t){if(typeof t=="string")return t;if(I6(t))return k6(t,Zg)+"";if(C6(t))return Kg?Kg.call(t):"";var e=t+"";return e=="0"&&1/t==-N6?"-0":e}var T6=Zg,A6=T6;function O6(t){return t==null?"":A6(t)}var x6=O6,L6=_n,R6=gu,M6=E6,P6=x6;function $6(t,e){return L6(t)?t:R6(t,e)?[t]:M6(P6(t))}var Jg=$6,B6=pu,F6=1/0;function z6(t){if(typeof t=="string"||B6(t))return t;var e=t+"";return e=="0"&&1/t==-F6?"-0":e}var Ls=z6,V6=Jg,U6=Ls;function H6(t,e){e=V6(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[U6(e[n++])];return n&&n==r?t:void 0}var Xg=H6,j6=Xg;function Y6(t,e,n){var r=t==null?void 0:j6(t,e);return r===void 0?n:r}var ra=Y6,W6=na,G6=function(){try{var t=W6(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Qg=G6,ey=Qg;function q6(t,e,n){e=="__proto__"&&ey?ey(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Rs=q6,K6=Rs,Z6=Va,J6=Object.prototype,X6=J6.hasOwnProperty;function Q6(t,e,n){var r=t[e];(!(X6.call(t,e)&&Z6(r,n))||n===void 0&&!(e in t))&&K6(t,e,n)}var eT=Q6,tT=9007199254740991,nT=/^(?:0|[1-9]\d*)$/;function rT(t,e){var n=typeof t;return e=e==null?tT:e,!!e&&(n=="number"||n!="symbol"&&nT.test(t))&&t>-1&&t%1==0&&t<e}var _u=rT;function aT(t){return function(e,n,r){for(var a=-1,i=Object(e),o=r(e),l=o.length;l--;){var c=o[t?l:++a];if(n(i[c],c,i)===!1)break}return e}}var iT=aT,oT=iT,sT=oT(),ty=sT;function lT(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var cT=lT,uT=Rn,dT=En,hT="[object Arguments]";function fT(t){return dT(t)&&uT(t)==hT}var mT=fT,ny=mT,pT=En,ry=Object.prototype,gT=ry.hasOwnProperty,yT=ry.propertyIsEnumerable,vT=ny(function(){return arguments}())?ny:function(t){return pT(t)&&gT.call(t,"callee")&&!yT.call(t,"callee")},Eu=vT,ja={},wT={get exports(){return ja},set exports(t){ja=t}};function bT(){return!1}var _T=bT;(function(t,e){var n=Ln,r=_T,a=e&&!e.nodeType&&e,i=a&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===a,l=o?n.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||r;t.exports=d})(wT,ja);var ET=9007199254740991;function DT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ET}var Du=DT,ST=Rn,kT=Du,IT=En,CT="[object Arguments]",NT="[object Array]",TT="[object Boolean]",AT="[object Date]",OT="[object Error]",xT="[object Function]",LT="[object Map]",RT="[object Number]",MT="[object Object]",PT="[object RegExp]",$T="[object Set]",BT="[object String]",FT="[object WeakMap]",zT="[object ArrayBuffer]",VT="[object DataView]",UT="[object Float32Array]",HT="[object Float64Array]",jT="[object Int8Array]",YT="[object Int16Array]",WT="[object Int32Array]",GT="[object Uint8Array]",qT="[object Uint8ClampedArray]",KT="[object Uint16Array]",ZT="[object Uint32Array]",ot={};ot[UT]=ot[HT]=ot[jT]=ot[YT]=ot[WT]=ot[GT]=ot[qT]=ot[KT]=ot[ZT]=!0,ot[CT]=ot[NT]=ot[zT]=ot[TT]=ot[VT]=ot[AT]=ot[OT]=ot[xT]=ot[LT]=ot[RT]=ot[MT]=ot[PT]=ot[$T]=ot[BT]=ot[FT]=!1;function JT(t){return IT(t)&&kT(t.length)&&!!ot[ST(t)]}var XT=JT,QT=XT,eA=Fg,ay=Qi,iy=ay&&ay.isTypedArray,tA=iy?eA(iy):QT,Su=tA,nA=cT,rA=Eu,aA=_n,iA=ja,oA=_u,sA=Su,lA=Object.prototype,cA=lA.hasOwnProperty;function uA(t,e){var n=aA(t),r=!n&&rA(t),a=!n&&!r&&iA(t),i=!n&&!r&&!a&&sA(t),o=n||r||a||i,l=o?nA(t.length,String):[],c=l.length;for(var d in t)(e||cA.call(t,d))&&!(o&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||oA(d,c)))&&l.push(d);return l}var oy=uA,dA=Object.prototype;function hA(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||dA;return t===n}var ku=hA;function fA(t,e){return function(n){return t(e(n))}}var sy=fA,mA=sy,pA=mA(Object.keys,Object),gA=pA,yA=ku,vA=gA,wA=Object.prototype,bA=wA.hasOwnProperty;function _A(t){if(!yA(t))return vA(t);var e=[];for(var n in Object(t))bA.call(t,n)&&n!="constructor"&&e.push(n);return e}var EA=_A,DA=ta,SA=Du;function kA(t){return t!=null&&SA(t.length)&&!DA(t)}var eo=kA,IA=oy,CA=EA,NA=eo;function TA(t){return NA(t)?IA(t):CA(t)}var Iu=TA,AA=ty,OA=Iu;function xA(t,e){return t&&AA(t,e,OA)}var ly=xA,LA=Os;function RA(){this.__data__=new LA,this.size=0}var MA=RA;function PA(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var $A=PA;function BA(t){return this.__data__.get(t)}var FA=BA;function zA(t){return this.__data__.has(t)}var VA=zA,UA=Os,HA=vu,jA=wu,YA=200;function WA(t,e){var n=this.__data__;if(n instanceof UA){var r=n.__data__;if(!HA||r.length<YA-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new jA(r)}return n.set(t,e),this.size=n.size,this}var GA=WA,qA=Os,KA=MA,ZA=$A,JA=FA,XA=VA,QA=GA;function Ya(t){var e=this.__data__=new qA(t);this.size=e.size}Ya.prototype.clear=KA,Ya.prototype.delete=ZA,Ya.prototype.get=JA,Ya.prototype.has=XA,Ya.prototype.set=QA;var Cu=Ya,eO="__lodash_hash_undefined__";function tO(t){return this.__data__.set(t,eO),this}var nO=tO;function rO(t){return this.__data__.has(t)}var aO=rO,iO=wu,oO=nO,sO=aO;function Ms(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new iO;++e<n;)this.add(t[e])}Ms.prototype.add=Ms.prototype.push=oO,Ms.prototype.has=sO;var lO=Ms;function cO(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var cy=cO;function uO(t,e){return t.has(e)}var dO=uO,hO=lO,fO=cy,mO=dO,pO=1,gO=2;function yO(t,e,n,r,a,i){var o=n&pO,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var d=i.get(t),h=i.get(e);if(d&&h)return d==e&&h==t;var m=-1,f=!0,p=n&gO?new hO:void 0;for(i.set(t,e),i.set(e,t);++m<l;){var E=t[m],k=e[m];if(r)var T=o?r(k,E,m,e,t,i):r(E,k,m,t,e,i);if(T!==void 0){if(T)continue;f=!1;break}if(p){if(!fO(e,function(b,w){if(!mO(p,w)&&(E===b||a(E,b,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(E===k||a(E,k,n,r,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var uy=yO,vO=Ln,wO=vO.Uint8Array,dy=wO;function bO(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}var _O=bO;function EO(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var DO=EO,hy=Ns,fy=dy,SO=Va,kO=uy,IO=_O,CO=DO,NO=1,TO=2,AO="[object Boolean]",OO="[object Date]",xO="[object Error]",LO="[object Map]",RO="[object Number]",MO="[object RegExp]",PO="[object Set]",$O="[object String]",BO="[object Symbol]",FO="[object ArrayBuffer]",zO="[object DataView]",my=hy?hy.prototype:void 0,Nu=my?my.valueOf:void 0;function VO(t,e,n,r,a,i,o){switch(n){case zO:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case FO:return!(t.byteLength!=e.byteLength||!i(new fy(t),new fy(e)));case AO:case OO:case RO:return SO(+t,+e);case xO:return t.name==e.name&&t.message==e.message;case MO:case $O:return t==e+"";case LO:var l=IO;case PO:var c=r&NO;if(l||(l=CO),t.size!=e.size&&!c)return!1;var d=o.get(t);if(d)return d==e;r|=TO,o.set(t,e);var h=kO(l(t),l(e),r,a,i,o);return o.delete(t),h;case BO:if(Nu)return Nu.call(t)==Nu.call(e)}return!1}var UO=VO;function HO(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var jO=HO,YO=jO,WO=_n;function GO(t,e,n){var r=e(t);return WO(t)?r:YO(r,n(t))}var qO=GO;function KO(t,e){for(var n=-1,r=t==null?0:t.length,a=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[a++]=o)}return i}var ZO=KO;function JO(){return[]}var XO=JO,QO=ZO,ex=XO,tx=Object.prototype,nx=tx.propertyIsEnumerable,py=Object.getOwnPropertySymbols,rx=py?function(t){return t==null?[]:(t=Object(t),QO(py(t),function(e){return nx.call(t,e)}))}:ex,ax=rx,ix=qO,ox=ax,sx=Iu;function lx(t){return ix(t,sx,ox)}var cx=lx,gy=cx,ux=1,dx=Object.prototype,hx=dx.hasOwnProperty;function fx(t,e,n,r,a,i){var o=n&ux,l=gy(t),c=l.length,d=gy(e),h=d.length;if(c!=h&&!o)return!1;for(var m=c;m--;){var f=l[m];if(!(o?f in e:hx.call(e,f)))return!1}var p=i.get(t),E=i.get(e);if(p&&E)return p==e&&E==t;var k=!0;i.set(t,e),i.set(e,t);for(var T=o;++m<c;){f=l[m];var b=t[f],w=e[f];if(r)var A=o?r(w,b,f,e,t,i):r(b,w,f,t,e,i);if(!(A===void 0?b===w||a(b,w,n,r,i):A)){k=!1;break}T||(T=f=="constructor")}if(k&&!T){var S=t.constructor,N=e.constructor;S!=N&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof N=="function"&&N instanceof N)&&(k=!1)}return i.delete(t),i.delete(e),k}var mx=fx,px=na,gx=Ln,yx=px(gx,"DataView"),vx=yx,wx=na,bx=Ln,_x=wx(bx,"Promise"),Ex=_x,Dx=na,Sx=Ln,kx=Dx(Sx,"Set"),Ix=kx,Cx=na,Nx=Ln,Tx=Cx(Nx,"WeakMap"),Ax=Tx,Tu=vx,Au=vu,Ou=Ex,xu=Ix,Lu=Ax,yy=Rn,Wa=Hg,vy="[object Map]",Ox="[object Object]",wy="[object Promise]",by="[object Set]",_y="[object WeakMap]",Ey="[object DataView]",xx=Wa(Tu),Lx=Wa(Au),Rx=Wa(Ou),Mx=Wa(xu),Px=Wa(Lu),aa=yy;(Tu&&aa(new Tu(new ArrayBuffer(1)))!=Ey||Au&&aa(new Au)!=vy||Ou&&aa(Ou.resolve())!=wy||xu&&aa(new xu)!=by||Lu&&aa(new Lu)!=_y)&&(aa=function(t){var e=yy(t),n=e==Ox?t.constructor:void 0,r=n?Wa(n):"";if(r)switch(r){case xx:return Ey;case Lx:return vy;case Rx:return wy;case Mx:return by;case Px:return _y}return e});var $x=aa,Ru=Cu,Bx=uy,Fx=UO,zx=mx,Dy=$x,Sy=_n,ky=ja,Vx=Su,Ux=1,Iy="[object Arguments]",Cy="[object Array]",Ps="[object Object]",Hx=Object.prototype,Ny=Hx.hasOwnProperty;function jx(t,e,n,r,a,i){var o=Sy(t),l=Sy(e),c=o?Cy:Dy(t),d=l?Cy:Dy(e);c=c==Iy?Ps:c,d=d==Iy?Ps:d;var h=c==Ps,m=d==Ps,f=c==d;if(f&&ky(t)){if(!ky(e))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ru),o||Vx(t)?Bx(t,e,n,r,a,i):Fx(t,e,c,n,r,a,i);if(!(n&Ux)){var p=h&&Ny.call(t,"__wrapped__"),E=m&&Ny.call(e,"__wrapped__");if(p||E){var k=p?t.value():t,T=E?e.value():e;return i||(i=new Ru),a(k,T,n,r,i)}}return f?(i||(i=new Ru),zx(t,e,n,r,a,i)):!1}var Yx=jx,Wx=Yx,Ty=En;function Ay(t,e,n,r,a){return t===e?!0:t==null||e==null||!Ty(t)&&!Ty(e)?t!==t&&e!==e:Wx(t,e,n,r,Ay,a)}var Oy=Ay,Gx=Cu,qx=Oy,Kx=1,Zx=2;function Jx(t,e,n,r){var a=n.length,i=a,o=!r;if(t==null)return!i;for(t=Object(t);a--;){var l=n[a];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<i;){l=n[a];var c=l[0],d=t[c],h=l[1];if(o&&l[2]){if(d===void 0&&!(c in t))return!1}else{var m=new Gx;if(r)var f=r(d,h,c,t,e,m);if(!(f===void 0?qx(h,d,Kx|Zx,r,m):f))return!1}}return!0}var Xx=Jx,Qx=rr;function eL(t){return t===t&&!Qx(t)}var xy=eL,tL=xy,nL=Iu;function rL(t){for(var e=nL(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,tL(a)]}return e}var aL=rL;function iL(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var Ly=iL,oL=Xx,sL=aL,lL=Ly;function cL(t){var e=sL(t);return e.length==1&&e[0][2]?lL(e[0][0],e[0][1]):function(n){return n===t||oL(n,t,e)}}var uL=cL;function dL(t,e){return t!=null&&e in Object(t)}var hL=dL,fL=Jg,mL=Eu,pL=_n,gL=_u,yL=Du,vL=Ls;function wL(t,e,n){e=fL(e,t);for(var r=-1,a=e.length,i=!1;++r<a;){var o=vL(e[r]);if(!(i=t!=null&&n(t,o)))break;t=t[o]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&yL(a)&&gL(o,a)&&(pL(t)||mL(t)))}var Ry=wL,bL=hL,_L=Ry;function EL(t,e){return t!=null&&_L(t,e,bL)}var DL=EL,SL=Oy,kL=ra,IL=DL,CL=gu,NL=xy,TL=Ly,AL=Ls,OL=1,xL=2;function LL(t,e){return CL(t)&&NL(e)?TL(AL(t),e):function(n){var r=kL(n,t);return r===void 0&&r===e?IL(n,t):SL(e,r,OL|xL)}}var RL=LL;function ML(t){return t}var Mu=ML;function PL(t){return function(e){return e==null?void 0:e[t]}}var $L=PL,BL=Xg;function FL(t){return function(e){return BL(e,t)}}var zL=FL,VL=$L,UL=zL,HL=gu,jL=Ls;function YL(t){return HL(t)?VL(jL(t)):UL(t)}var WL=YL,GL=uL,qL=RL,KL=Mu,ZL=_n,JL=WL;function XL(t){return typeof t=="function"?t:t==null?KL:typeof t=="object"?ZL(t)?qL(t[0],t[1]):GL(t):JL(t)}var My=XL,QL=Rs,e5=ly,t5=My;function n5(t,e){var n={};return e=t5(e),e5(t,function(r,a,i){QL(n,a,e(r,a,i))}),n}var r5=n5;function a5(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Py=a5,i5=Py,$y=Math.max;function o5(t,e,n){return e=$y(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=$y(r.length-e,0),o=Array(i);++a<i;)o[a]=r[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=r[a];return l[e]=n(o),i5(t,this,l)}}var s5=o5;function l5(t){return function(){return t}}var c5=l5,u5=c5,By=Qg,d5=Mu,h5=By?function(t,e){return By(t,"toString",{configurable:!0,enumerable:!1,value:u5(e),writable:!0})}:d5,f5=h5,m5=800,p5=16,g5=Date.now;function y5(t){var e=0,n=0;return function(){var r=g5(),a=p5-(r-n);if(n=r,a>0){if(++e>=m5)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var v5=y5,w5=f5,b5=v5,_5=b5(w5),E5=_5,D5=Mu,S5=s5,k5=E5;function I5(t,e){return k5(S5(t,e,D5),t+"")}var Pu=I5,C5=Va,N5=eo,T5=_u,A5=rr;function O5(t,e,n){if(!A5(n))return!1;var r=typeof e;return(r=="number"?N5(n)&&T5(e,n.length):r=="string"&&e in n)?C5(n[e],t):!1}var $u=O5;function x5(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var L5=x5,R5=rr,M5=ku,P5=L5,$5=Object.prototype,B5=$5.hasOwnProperty;function F5(t){if(!R5(t))return P5(t);var e=M5(t),n=[];for(var r in t)r=="constructor"&&(e||!B5.call(t,r))||n.push(r);return n}var z5=F5,V5=oy,U5=z5,H5=eo;function j5(t){return H5(t)?V5(t,!0):U5(t)}var Bu=j5,Y5=Pu,W5=Va,G5=$u,q5=Bu,Fy=Object.prototype,K5=Fy.hasOwnProperty,Z5=Y5(function(t,e){t=Object(t);var n=-1,r=e.length,a=r>2?e[2]:void 0;for(a&&G5(e[0],e[1],a)&&(r=1);++n<r;)for(var i=e[n],o=q5(i),l=-1,c=o.length;++l<c;){var d=o[l],h=t[d];(h===void 0||W5(h,Fy[d])&&!K5.call(t,d))&&(t[d]=i[d])}return t}),zy=Z5,J5=Rs,X5=Va;function Q5(t,e,n){(n!==void 0&&!X5(t[e],n)||n===void 0&&!(e in t))&&J5(t,e,n)}var Vy=Q5,$s={},eR={get exports(){return $s},set exports(t){$s=t}};(function(t,e){var n=Ln,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===r,o=i?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function c(d,h){if(h)return d.slice();var m=d.length,f=l?l(m):new d.constructor(m);return d.copy(f),f}t.exports=c})(eR,$s);var Uy=dy;function tR(t){var e=new t.constructor(t.byteLength);return new Uy(e).set(new Uy(t)),e}var nR=tR,rR=nR;function aR(t,e){var n=e?rR(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var iR=aR;function oR(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var sR=oR,lR=rr,Hy=Object.create,cR=function(){function t(){}return function(e){if(!lR(e))return{};if(Hy)return Hy(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),uR=cR,dR=sy,hR=dR(Object.getPrototypeOf,Object),jy=hR,fR=uR,mR=jy,pR=ku;function gR(t){return typeof t.constructor=="function"&&!pR(t)?fR(mR(t)):{}}var yR=gR,vR=eo,wR=En;function bR(t){return wR(t)&&vR(t)}var _R=bR,ER=Rn,DR=jy,SR=En,kR="[object Object]",IR=Function.prototype,CR=Object.prototype,Yy=IR.toString,NR=CR.hasOwnProperty,TR=Yy.call(Object);function AR(t){if(!SR(t)||ER(t)!=kR)return!1;var e=DR(t);if(e===null)return!0;var n=NR.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Yy.call(n)==TR}var OR=AR;function xR(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Wy=xR,LR=eT,RR=Rs;function MR(t,e,n,r){var a=!n;n||(n={});for(var i=-1,o=e.length;++i<o;){var l=e[i],c=r?r(n[l],t[l],l,n,t):void 0;c===void 0&&(c=t[l]),a?RR(n,l,c):LR(n,l,c)}return n}var PR=MR,$R=PR,BR=Bu;function FR(t){return $R(t,BR(t))}var zR=FR,Gy=Vy,VR=$s,UR=iR,HR=sR,jR=yR,qy=Eu,Ky=_n,YR=_R,WR=ja,GR=ta,qR=rr,KR=OR,ZR=Su,Zy=Wy,JR=zR;function XR(t,e,n,r,a,i,o){var l=Zy(t,n),c=Zy(e,n),d=o.get(c);if(d){Gy(t,n,d);return}var h=i?i(l,c,n+"",t,e,o):void 0,m=h===void 0;if(m){var f=Ky(c),p=!f&&WR(c),E=!f&&!p&&ZR(c);h=c,f||p||E?Ky(l)?h=l:YR(l)?h=HR(l):p?(m=!1,h=VR(c,!0)):E?(m=!1,h=UR(c,!0)):h=[]:KR(c)||qy(c)?(h=l,qy(l)?h=JR(l):(!qR(l)||GR(l))&&(h=jR(c))):m=!1}m&&(o.set(c,h),a(h,c,r,i,o),o.delete(c)),Gy(t,n,h)}var QR=XR,e8=Cu,t8=Vy,n8=ty,r8=QR,a8=rr,i8=Bu,o8=Wy;function Jy(t,e,n,r,a){t!==e&&n8(e,function(i,o){if(a||(a=new e8),a8(i))r8(t,e,o,n,Jy,r,a);else{var l=r?r(o8(t,o),i,o+"",t,e,a):void 0;l===void 0&&(l=i),t8(t,o,l)}},i8)}var Xy=Jy,s8=Xy,Qy=rr;function e0(t,e,n,r,a,i){return Qy(t)&&Qy(e)&&(i.set(e,t),s8(t,e,void 0,e0,i),i.delete(e)),t}var l8=e0,c8=Pu,u8=$u;function d8(t){return c8(function(e,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&u8(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++r<a;){var l=n[r];l&&t(e,l,r,i)}return e})}var h8=d8,f8=Xy,m8=h8,p8=m8(function(t,e,n,r){f8(t,e,n,r)}),g8=p8,y8=Py,v8=Pu,w8=l8,b8=g8,_8=v8(function(t){return t.push(void 0,w8),y8(b8,void 0,t)}),to=_8,E8=Object.prototype,D8=E8.hasOwnProperty;function S8(t,e){return t!=null&&D8.call(t,e)}var k8=S8,I8=k8,C8=Ry;function N8(t,e){return t!=null&&C8(t,e,I8)}var t0=N8,T8=eo;function A8(t,e){return function(n,r){if(n==null)return n;if(!T8(n))return t(n,r);for(var a=n.length,i=e?a:-1,o=Object(n);(e?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var O8=A8,x8=ly,L8=O8,R8=L8(x8),M8=R8;function P8(t){return t&&t.length?t[0]:void 0}var n0=P8;function $8(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var Ga=$8,B8=M8;function F8(t,e){var n;return B8(t,function(r,a,i){return n=e(r,a,i),!n}),!!n}var z8=F8,V8=cy,U8=My,H8=z8,j8=_n,Y8=$u;function W8(t,e,n){var r=j8(t)?V8:H8;return n&&Y8(t,e,n)&&(e=void 0),r(t,U8(e))}var G8=W8;const q8=t=>Object.prototype.toString.call(t).slice(8,-1),qa=t=>iN(t)&&!isNaN(t.getTime()),ar=t=>q8(t)==="Object",Fu=t0,r0=(t,e)=>G8(e,n=>t0(t,n)),tt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},pn=t=>Array.isArray(t),ir=t=>pn(t)&&t.length>0,Bs=t=>{var e;return t==null?t!=null?t:null:document&&Mn(t)?document.querySelector(t):(e=t.$el)!=null?e:t},Sr=(t,e,n,r=void 0)=>{t.removeEventListener(e,n,r)},kr=(t,e,n,r=void 0)=>(t.addEventListener(e,n,r),()=>Sr(t,e,n,r)),Fs=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),zs=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},a0=(t,...e)=>{const n={};let r;for(r in t)e.includes(r)||(n[r]=t[r]);return n},i0=(t,e)=>{const n={};return e.forEach(r=>{r in t&&(n[r]=t[r])}),n};function K8(t,e,n){return Math.min(Math.max(t,e),n)}const Vs=()=>{function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`},Z8=["base","start","end","startEnd"],J8=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],X8={base:{},start:{},end:{}};function zu(t,e,n=X8){let r=t,a={};e===!0||Mn(e)?(r=Mn(e)?e:r,a={...n}):ar(e)&&(r0(e,Z8)?a={...e}:a={base:{...e},start:{...e},end:{...e}});const i=to(a,{start:a.startEnd,end:a.startEnd},n);return Object.entries(i).forEach(([o,l])=>{let c=r;l===!0||Mn(l)?(c=Mn(l)?l:c,i[o]={color:c}):ar(l)&&(r0(l,J8)?i[o]={...l}:i[o]={}),to(i[o],{color:c})}),i}class Q8{constructor(){$e(this,"type","highlight")}normalizeConfig(e,n){return zu(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:r},a){const{key:i,highlight:o}=e;if(!o)return;const{highlights:l}=a,{base:c,start:d,end:h}=o;n&&r?l.push({...d,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]}):n?(l.push({...c,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${c.fillMode}`,c.class]}),l.push({...d,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})):r?(l.push({...c,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${c.fillMode}`,c.class]}),l.push({...h,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):l.push({...c,key:`${i}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})}}class Vu{constructor(e,n){$e(this,"type",""),$e(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return zu(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:r},a){const{key:i}=e,o=e[this.type];if(!i||!o)return;const l=a[this.collectionType],{base:c,start:d,end:h}=o;n?l.push({...d,key:i,class:[`vc-${this.type} vc-${this.type}-start vc-${d.color} vc-attr`,d.class]}):r?l.push({...h,key:i,class:[`vc-${this.type} vc-${this.type}-end vc-${h.color} vc-attr`,h.class]}):l.push({...c,key:i,class:[`vc-${this.type} vc-${this.type}-base vc-${c.color} vc-attr`,c.class]})}}class eM extends Vu{constructor(){super("content","content")}normalizeConfig(e,n){return zu("base",n)}}class tM extends Vu{constructor(){super("dot","dots")}}class nM extends Vu{constructor(){super("bar","bars")}}class rM{constructor(e){$e(this,"color"),$e(this,"renderers",[new eM,new Q8,new tM,new nM]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(n=>{const r=n.type;e[r]!=null&&(e[r]=n.normalizeConfig(this.color,e[r]))})}prepareRender(e={}){return this.renderers.forEach(n=>{n.prepareRender(e)}),e}render(e,n){this.renderers.forEach(r=>{r.render(e,n)})}}const aM={maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},iM={title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},or={ar:{dow:7,L:"D/\u200FM/\u200FYYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY\u5E74M\u6708D\u65E5"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};or.en=or["en-US"],or.es=or["es-ES"],or.no=or.nb,or.zh=or["zh-CN"];const oM=Object.entries(or).reduce((t,[e,{dow:n,L:r}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:r}},t),{}),sM={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:aM,masks:iM,locales:oM,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},Uu=s.reactive(sM),lM=s.computed(()=>r5(Uu.locales,t=>(t.masks=to(t.masks,Uu.masks),t))),Ir=t=>typeof window!="undefined"&&Fu(window.__vcalendar__,t)?ra(window.__vcalendar__,t):ra(Uu,t);var Us={},cM={get exports(){return Us},set exports(t){Us=t}},Hs={},uM={get exports(){return Hs},set exports(t){Hs=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}t.exports=e.default})(uM,Hs);var js={},dM={get exports(){return js},set exports(t){js=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}t.exports=e.default})(dM,js);var Ys={},hM={get exports(){return Ys},set exports(t){Ys=t}},Ws={},fM={get exports(){return Ws},set exports(t){Ws=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(c,d){var h=l(d);return h.formatToParts?a(h,c):i(h,c)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(c,d){try{for(var h=c.formatToParts(d),m=[],f=0;f<h.length;f++){var p=r[h[f].type];p>=0&&(m[p]=parseInt(h[f].value,10))}return m}catch(E){if(E instanceof RangeError)return[NaN];throw E}}function i(c,d){var h=c.format(d).replace(/\u200E/g,""),m=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(h);return[m[3],m[1],m[2],m[4],m[5],m[6]]}var o={};function l(c){if(!o[c]){var d=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),h=d==="06/25/2014, 00:00:00"||d==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";o[c]=h?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:c,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:c,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[c]}t.exports=e.default})(fM,Ws);var Gs={},mM={get exports(){return Gs},set exports(t){Gs=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r,a,i,o,l,c,d){var h=new Date(0);return h.setUTCFullYear(r,a,i),h.setUTCHours(o,l,c,d),h}t.exports=e.default})(mM,Gs),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var n=a(Ws),r=a(Gs);function a(k){return k&&k.__esModule?k:{default:k}}var i=36e5,o=6e4,l={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function c(k,T,b){var w,A;if(!k||(w=l.timezoneZ.exec(k),w))return 0;var S;if(w=l.timezoneHH.exec(k),w)return S=parseInt(w[1],10),f(S)?-(S*i):NaN;if(w=l.timezoneHHMM.exec(k),w){S=parseInt(w[1],10);var N=parseInt(w[2],10);return f(S,N)?(A=Math.abs(S)*i+N*o,S>0?-A:A):NaN}if(E(k)){T=new Date(T||Date.now());var L=b?T:d(T),M=h(L,k),F=b?M:m(T,M,k);return-F}return NaN}function d(k){return(0,r.default)(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds(),k.getMilliseconds())}function h(k,T){var b=(0,n.default)(k,T),w=(0,r.default)(b[0],b[1]-1,b[2],b[3]%24,b[4],b[5],0).getTime(),A=k.getTime(),S=A%1e3;return A-=S>=0?S:1e3+S,w-A}function m(k,T,b){var w=k.getTime(),A=w-T,S=h(new Date(A),b);if(T===S)return T;A-=S-T;var N=h(new Date(A),b);return S===N?S:Math.max(S,N)}function f(k,T){return-23<=k&&k<=23&&(T==null||0<=T&&T<=59)}var p={};function E(k){if(p[k])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:k}),p[k]=!0,!0}catch{return!1}}t.exports=e.default}(hM,Ys);var qs={},pM={get exports(){return qs},set exports(t){qs=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=n;e.default=r,t.exports=e.default})(pM,qs),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var n=o(Hs),r=o(js),a=o(Ys),i=o(qs);function o(F){return F&&F.__esModule?F:{default:F}}var l=36e5,c=6e4,d=2,h={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function m(F,V){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(F===null)return new Date(NaN);var R=V||{},z=R.additionalDigits==null?d:(0,n.default)(R.additionalDigits);if(z!==2&&z!==1&&z!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(F instanceof Date||typeof F=="object"&&Object.prototype.toString.call(F)==="[object Date]")return new Date(F.getTime());if(typeof F=="number"||Object.prototype.toString.call(F)==="[object Number]")return new Date(F);if(!(typeof F=="string"||Object.prototype.toString.call(F)==="[object String]"))return new Date(NaN);var j=f(F),B=p(j.date,z),Z=B.year,Y=B.restDateString,q=E(Y,Z);if(isNaN(q))return new Date(NaN);if(q){var G=q.getTime(),ne=0,oe;if(j.time&&(ne=k(j.time),isNaN(ne)))return new Date(NaN);if(j.timeZone||R.timeZone){if(oe=(0,a.default)(j.timeZone||R.timeZone,new Date(G+ne)),isNaN(oe))return new Date(NaN)}else oe=(0,r.default)(new Date(G+ne)),oe=(0,r.default)(new Date(G+ne+oe));return new Date(G+ne+oe)}else return new Date(NaN)}function f(F){var V={},R=h.dateTimePattern.exec(F),z;if(R?(V.date=R[1],z=R[3]):(R=h.datePattern.exec(F),R?(V.date=R[1],z=R[2]):(V.date=null,z=F)),z){var j=h.timeZone.exec(z);j?(V.time=z.replace(j[1],""),V.timeZone=j[1].trim()):V.time=z}return V}function p(F,V){var R=h.YYY[V],z=h.YYYYY[V],j;if(j=h.YYYY.exec(F)||z.exec(F),j){var B=j[1];return{year:parseInt(B,10),restDateString:F.slice(B.length)}}if(j=h.YY.exec(F)||R.exec(F),j){var Z=j[1];return{year:parseInt(Z,10)*100,restDateString:F.slice(Z.length)}}return{year:null}}function E(F,V){if(V===null)return null;var R,z,j,B;if(F.length===0)return z=new Date(0),z.setUTCFullYear(V),z;if(R=h.MM.exec(F),R)return z=new Date(0),j=parseInt(R[1],10)-1,S(V,j)?(z.setUTCFullYear(V,j),z):new Date(NaN);if(R=h.DDD.exec(F),R){z=new Date(0);var Z=parseInt(R[1],10);return N(V,Z)?(z.setUTCFullYear(V,0,Z),z):new Date(NaN)}if(R=h.MMDD.exec(F),R){z=new Date(0),j=parseInt(R[1],10)-1;var Y=parseInt(R[2],10);return S(V,j,Y)?(z.setUTCFullYear(V,j,Y),z):new Date(NaN)}if(R=h.Www.exec(F),R)return B=parseInt(R[1],10)-1,L(V,B)?T(V,B):new Date(NaN);if(R=h.WwwD.exec(F),R){B=parseInt(R[1],10)-1;var q=parseInt(R[2],10)-1;return L(V,B,q)?T(V,B,q):new Date(NaN)}return null}function k(F){var V,R,z;if(V=h.HH.exec(F),V)return R=parseFloat(V[1].replace(",",".")),M(R)?R%24*l:NaN;if(V=h.HHMM.exec(F),V)return R=parseInt(V[1],10),z=parseFloat(V[2].replace(",",".")),M(R,z)?R%24*l+z*c:NaN;if(V=h.HHMMSS.exec(F),V){R=parseInt(V[1],10),z=parseInt(V[2],10);var j=parseFloat(V[3].replace(",","."));return M(R,z,j)?R%24*l+z*c+j*1e3:NaN}return null}function T(F,V,R){V=V||0,R=R||0;var z=new Date(0);z.setUTCFullYear(F,0,4);var j=z.getUTCDay()||7,B=V*7+R+1-j;return z.setUTCDate(z.getUTCDate()+B),z}var b=[31,28,31,30,31,30,31,31,30,31,30,31],w=[31,29,31,30,31,30,31,31,30,31,30,31];function A(F){return F%400===0||F%4===0&&F%100!==0}function S(F,V,R){if(V<0||V>11)return!1;if(R!=null){if(R<1)return!1;var z=A(F);if(z&&R>w[V]||!z&&R>b[V])return!1}return!0}function N(F,V){if(V<1)return!1;var R=A(F);return!(R&&V>366||!R&&V>365)}function L(F,V,R){return!(V<0||V>52||R!=null&&(R<0||R>6))}function M(F,V,R){return!(F!=null&&(F<0||F>=25)||V!=null&&(V<0||V>=60)||R!=null&&(R<0||R>=60))}t.exports=e.default}(cM,Us);const gM=iC(Us);function $t(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Ks(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ks=function(n){return typeof n}:Ks=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ks(t)}function sr(t){$t(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ks(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ka(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var yM={};function Hu(){return yM}function ia(t,e){var n,r,a,i,o,l,c,d;$t(1,arguments);var h=Hu(),m=Ka((n=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=sr(t),p=f.getDay(),E=(p<m?7:0)+p-m;return f.setDate(f.getDate()-E),f.setHours(0,0,0,0),f}function o0(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var vM=6048e5;function wM(t,e,n){$t(2,arguments);var r=ia(t,n),a=ia(e,n),i=r.getTime()-o0(r),o=a.getTime()-o0(a);return Math.round((i-o)/vM)}function bM(t){$t(1,arguments);var e=sr(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function _M(t){$t(1,arguments);var e=sr(t);return e.setDate(1),e.setHours(0,0,0,0),e}function EM(t,e){return $t(1,arguments),wM(bM(t),_M(t),e)+1}function DM(t,e){var n,r,a,i,o,l,c,d;$t(1,arguments);var h=sr(t),m=h.getFullYear(),f=Hu(),p=Ka((n=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=new Date(0);E.setFullYear(m+1,0,p),E.setHours(0,0,0,0);var k=ia(E,e),T=new Date(0);T.setFullYear(m,0,p),T.setHours(0,0,0,0);var b=ia(T,e);return h.getTime()>=k.getTime()?m+1:h.getTime()>=b.getTime()?m:m-1}function SM(t,e){var n,r,a,i,o,l,c,d;$t(1,arguments);var h=Hu(),m=Ka((n=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:h.firstWeekContainsDate)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=DM(t,e),p=new Date(0);p.setFullYear(f,0,m),p.setHours(0,0,0,0);var E=ia(p,e);return E}var kM=6048e5;function IM(t,e){$t(1,arguments);var n=sr(t),r=ia(n,e).getTime()-SM(n,e).getTime();return Math.round(r/kM)+1}function Zs(t){return $t(1,arguments),ia(t,{weekStartsOn:1})}function CM(t){$t(1,arguments);var e=sr(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=Zs(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var o=Zs(i);return e.getTime()>=a.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function NM(t){$t(1,arguments);var e=CM(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=Zs(n);return r}var TM=6048e5;function AM(t){$t(1,arguments);var e=sr(t),n=Zs(e).getTime()-NM(e).getTime();return Math.round(n/TM)+1}function jt(t,e){$t(2,arguments);var n=sr(t),r=Ka(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Js(t,e){$t(2,arguments);var n=sr(t),r=Ka(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function s0(t,e){$t(2,arguments);var n=Ka(e);return Js(t,n*12)}var Za=(t=>(t.Any="any",t.All="all",t))(Za||{}),l0=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(l0||{}),c0=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(c0||{}),u0=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(u0||{});class OM{constructor(e,n,r){$e(this,"validated",!0),this.type=e,this.interval=n,this.from=r,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:n}=e;switch(this.type){case"days":return Yu(this.from.date,n)%this.interval===0;case"weeks":return KM(this.from.date,n)%this.interval===0;case"months":return ZM(this.from.date,n)%this.interval===0;case"years":return D0(this.from.date,n)%this.interval===0;default:return!1}}}class Ja{constructor(e,n,r,a){$e(this,"components",[]),this.type=e,this.validator=r,this.getter=a,this.components=this.normalizeComponents(n)}static create(e,n){switch(e){case"days":return new xM(n);case"weekdays":return new LM(n);case"weeks":return new RM(n);case"months":return new MM(n);case"years":return new PM(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!pn(e))return[];const n=[];return e.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(e){return this.getter(e).some(a=>this.components.includes(a))}}class xM extends Ja{constructor(e){super("days",e,FM,({day:n,dayFromEnd:r})=>[n,-r])}}class LM extends Ja{constructor(e){super("weekdays",e,ju,({weekday:n})=>[n])}}class RM extends Ja{constructor(e){super("weeks",e,zM,({week:n,weekFromEnd:r})=>[n,-r])}}class MM extends Ja{constructor(e){super("months",e,VM,({month:n})=>[n])}}class PM extends Ja{constructor(e){super("years",e,Dn,({year:n})=>[n])}}class $M{constructor(e,n){$e(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((r,a)=>{if(Dn(r)){if(a===0)return;if(!d0(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!ju(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],r])}else pn(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(e){const n=[];return e.forEach((r,a)=>{if(Dn(r)){if(a===0)return;if(!d0(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!ju(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],r])}else pn(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(e){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:a}=e;return this.components.some(([i,o])=>(i===r||i===-a)&&n===o)}}class BM{constructor(e){$e(this,"type","function"),$e(this,"validated",!0),this.fn=e,ta(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return this.validated?this.fn(e):!0}}class Xs{constructor(e,n={},r){$e(this,"validated",!0),$e(this,"config"),$e(this,"type",Za.Any),$e(this,"from"),$e(this,"until"),$e(this,"rules",[]),$e(this,"locale",new tl),this.parent=r,n.locale&&(this.locale=n.locale),this.config=e,ta(e)?(this.type=Za.All,this.rules=[new BM(e)]):pn(e)?(this.type=Za.Any,this.rules=e.map(a=>new Xs(a,n,this))):ar(e)?(this.type=Za.All,this.from=e.from?this.locale.getDateParts(e.from):r==null?void 0:r.from,this.until=e.until?this.locale.getDateParts(e.until):r==null?void 0:r.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const n=[];if(e.every&&(Mn(e.every)&&(e.every=[1,`${e.every}s`]),pn(e.every))){const[r=1,a=l0.Days]=e.every;n.push(new OM(a,r,this.from))}return Object.values(c0).forEach(r=>{r in e&&n.push(Ja.create(r,e[r]))}),Object.values(u0).forEach(r=>{r in e&&n.push(new $M(r,e[r]))}),e.on!=null&&(pn(e.on)||(e.on=[e.on]),n.push(new Xs(e.on,{locale:this.locale},this.parent))),n}passes(e){return this.validated?this.from&&e.dayIndex<=this.from.dayIndex||this.until&&e.dayIndex>=this.until.dayIndex?!1:this.type===Za.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function FM(t){return Dn(t)?t>=1&&t<=31:!1}function ju(t){return Dn(t)?t>=1&&t<=7:!1}function zM(t){return Dn(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function VM(t){return Dn(t)?t>=1&&t<=12:!1}function d0(t){return!(!Dn(t)||t<-5||t>5||t===0)}const UM={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Bt=7,HM=6,h0=1e3,f0=h0*60,m0=f0*60,Qs=m0*24,jM=[31,28,31,30,31,30,31,31,30,31,30,31],YM=["L","iso"],no={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},p0=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,WM=/\[([^]*?)\]/gm,g0={D(t){return t.day},DD(t){return tt(t.day,2)},d(t){return t.weekday-1},dd(t){return tt(t.weekday-1,2)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return tt(t.month,2)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substr(2)},YYYY(t){return tt(t.year,4)},h(t){return t.hours%12||12},hh(t){return tt(t.hours%12||12,2)},H(t){return t.hours},HH(t){return tt(t.hours,2)},m(t){return t.minutes},mm(t){return tt(t.minutes,2)},s(t){return t.seconds},ss(t){return tt(t.seconds,2)},S(t){return Math.round(t.milliseconds/100)},SS(t){return tt(Math.round(t.milliseconds/10),2)},SSS(t){return tt(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${tt(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${tt(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${tt(Math.floor(Math.abs(e)/60),2)}:${tt(Math.abs(e)%60,2)}`}},Cr=/\d\d?/,GM=/\d{3}/,qM=/\d{4}/,ro=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,y0=()=>{},v0=t=>(e,n,r)=>{const a=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(e.month=a)},nt={D:[Cr,(t,e)=>{t.day=e}],Do:[new RegExp(Cr.source+ro.source),(t,e)=>{t.day=parseInt(e,10)}],d:[Cr,y0],W:[ro,y0],M:[Cr,(t,e)=>{t.month=e-1}],MMM:[ro,v0("monthNamesShort")],MMMM:[ro,v0("monthNames")],YY:[Cr,(t,e)=>{const r=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?r-1:r}${e}`}],YYYY:[qM,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[GM,(t,e)=>{t.milliseconds=e}],h:[Cr,(t,e)=>{t.hours=e}],m:[Cr,(t,e)=>{t.minutes=e}],s:[Cr,(t,e)=>{t.seconds=e}],a:[ro,(t,e,n)=>{const r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{e==="Z"&&(e="+00:00");const n=`${e}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);t.timezoneOffset=n[0]==="+"?r:-r}}]};nt.DD=nt.D,nt.dd=nt.d,nt.WWWW=nt.WWW=nt.WW=nt.W,nt.MM=nt.M,nt.mm=nt.m,nt.hh=nt.H=nt.HH=nt.h,nt.ss=nt.s,nt.A=nt.a,nt.ZZZZ=nt.ZZZ=nt.ZZ=nt.Z;function w0(t,e){return(ir(t)&&t||[Mn(t)&&t||"YYYY-MM-DD"]).map(n=>YM.reduce((r,a)=>r.replace(a,e.masks[a]||""),n))}function b0(t){return ar(t)&&"year"in t&&"month"in t&&"day"in t}function _0(t,e=1){const n=t.getDay()+1,r=n>=e?e-n:-(7-(e-n));return jt(t,r)}function E0(t,e,n){const r=Date.UTC(t,e-1,n);return Yu(new Date(0),new Date(r))}function Yu(t,e){return Math.round((e.getTime()-t.getTime())/Qs)}function KM(t,e){return Math.ceil(Yu(_0(t),_0(e))/7)}function D0(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function ZM(t,e){return D0(t,e)*12+(e.getMonth()-t.getMonth())}function S0(t,e=""){const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:i=n.getDate(),hours:o=0,minutes:l=0,seconds:c=0,milliseconds:d=0}=t;if(e){const h=`${tt(r,4)}-${tt(a,2)}-${tt(i,2)}T${tt(o,2)}:${tt(l,2)}:${tt(c,2)}.${tt(d,3)}`;return gM(h,{timeZone:e})}return new Date(r,a-1,i,o,l,c,d)}function JM(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const r=n.getMilliseconds(),a=n.getSeconds(),i=n.getMinutes(),o=n.getHours(),l=r+a*h0+i*f0+o*m0,c=n.getMonth()+1,d=n.getFullYear(),h=e.getMonthParts(c,d),m=n.getDate(),f=h.numDays-m+1,p=n.getDay()+1,E=Math.floor((m-1)/7+1),k=Math.floor((h.numDays-m)/7+1),T=Math.ceil((m+Math.abs(h.firstWeekday-h.firstDayOfWeek))/7),b=h.numWeeks-T+1,w=h.weeknumbers[T],A=E0(d,c,m);return{milliseconds:r,seconds:a,minutes:i,hours:o,time:l,day:m,dayFromEnd:f,weekday:p,weekdayOrdinal:E,weekdayOrdinalFromEnd:k,week:T,weekFromEnd:b,weeknumber:w,month:c,year:d,date:n,dateTime:n.getTime(),dayIndex:A,timezoneOffset:0,isValid:!0}}function XM(t,e,n){return`${e}-${t}-${n}`}function QM(t,e,n){const r=e%4===0&&e%100!==0||e%400===0,a=new Date(e,t-1,1),i=a.getDay()+1,o=t===2&&r?29:jM[t-1],l=n-1,c=EM(a,{weekStartsOn:l}),d=[],h=[];for(let m=0;m<c;m++){const f=jt(a,m*7);d.push(IM(f,{weekStartsOn:l})),h.push(AM(f))}return{firstDayOfWeek:n,firstDayOfMonth:a,inLeapYear:r,firstWeekday:i,numDays:o,numWeeks:c,month:t,year:e,weeknumbers:d,isoWeeknumbers:h}}function eP(){const t=[];for(let a=0;a<Bt;a++)t.push(S0({year:2020,month:1,day:5+a,hours:12}));return t}function Wu(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return eP().map(r=>n.format(r))}function tP(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function nP(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((r,a)=>{const i=n.formatToParts(100,a);return r[a]=i[1].unit,r},{})}function k0(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function I0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return k0().map(r=>n.format(r))}function rP(t,e,n){return Dn(e)?e===t:pn(e)?e.includes(t):ta(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function ao(t,e,n){const r=[],[a,i,o]=e;for(let l=a;l<=i;l++)(n==null||rP(l,n,t))&&r.push({value:l,label:tt(l,o)});return r}function aP(t,e){return{milliseconds:ao(t,no.milliseconds,e.milliseconds),seconds:ao(t,no.seconds,e.seconds),minutes:ao(t,no.minutes,e.minutes),hours:ao(t,no.hours,e.hours)}}function iP(t,e,n,r){const i=ao(t,e,r).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const c=Math.abs(o-n);return Math.abs(l.value-n)<c?l.value:o},NaN);return isNaN(i)?n:i}function oP(t,e){const n={...t};return Object.entries(e).forEach(([r,a])=>{const i=no[r],o=t[r];n[r]=iP(t,i,o,a)}),n}function C0(t,e,n){return w0(e,n).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let i=t;if(i.length>1e3)return!1;let o=!0;const l={};if(a.replace(p0,h=>{if(nt[h]){const m=nt[h],f=i.search(m[0]);~f?i.replace(m[0],p=>(m[1](l,p,n),i=i.substr(f+p.length),p)):o=!1}return nt[h]?"":h.slice(1,h.length-1)}),!o)return!1;const c=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let d;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,d=new Date(Date.UTC(l.year||c.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):d=n.getDateFromParts({year:l.year||c.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),d}).find(a=>a)||new Date(t)}function sP(t,e,n){if(t==null)return"";let r=w0(e,n)[0];/Z$/.test(r)&&(n.timezone="utc");const a=[];r=r.replace(WM,(o,l)=>(a.push(l),"??"));const i=n.getDateParts(t);return r=r.replace(p0,o=>o in g0?g0[o](i,n):o.slice(1,o.length-1)),r.replace(/\?\?/g,()=>a.shift())}const lP={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function cP({monthComps:t,prevMonthComps:e,nextMonthComps:n},r){const a=[],{firstDayOfWeek:i,firstWeekday:o,isoWeeknumbers:l,weeknumbers:c,numDays:d,numWeeks:h}=t,m=o+(o<i?Bt:0)-i;let f=!0,p=!1,E=!1,k=0;const T=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let b=e.numDays-m+1,w=e.numDays-b+1,A=Math.floor((b-1)/Bt+1),S=1,N=e.numWeeks,L=1,M=e.month,F=e.year;const V=new Date,R=V.getDate(),z=V.getMonth()+1,j=V.getFullYear();for(let B=1;B<=HM;B++){for(let Z=1,Y=i;Z<=Bt;Z++,Y+=Y===Bt?1-Bt:1){f&&Y===o&&(b=1,w=t.numDays,A=Math.floor((b-1)/Bt+1),S=Math.floor((d-b)/Bt+1),N=1,L=h,M=t.month,F=t.year,f=!1,p=!0);const q=r.getDateFromParams(F,M,b,0,0,0,0),G=r.getDateFromParams(F,M,b,12,0,0,0),ne=r.getDateFromParams(F,M,b,23,59,59,999),oe=q,J=`${tt(F,4)}-${tt(M,2)}-${tt(b,2)}`,$=Z,Q=Bt-Z,ae=c[B-1],W=l[B-1],Ee=b===R&&M===z&&F===j,_e=p&&b===1,Te=p&&b===d,De=B===1,Ne=B===h,Ae=Z===1,te=Z===Bt,ue=E0(F,M,b);a.push({locale:r,id:J,position:++k,label:b.toString(),ariaLabel:T.format(new Date(F,M-1,b)),day:b,dayFromEnd:w,weekday:Y,weekdayPosition:$,weekdayPositionFromEnd:Q,weekdayOrdinal:A,weekdayOrdinalFromEnd:S,week:N,weekFromEnd:L,weekPosition:B,weeknumber:ae,isoWeeknumber:W,month:M,year:F,date:oe,startDate:q,endDate:ne,noonDate:G,dayIndex:ue,isToday:Ee,isFirstDay:_e,isLastDay:Te,isDisabled:!p,isFocusable:!p,isFocused:!1,inMonth:p,inPrevMonth:f,inNextMonth:E,onTop:De,onBottom:Ne,onLeft:Ae,onRight:te,classes:[`id-${J}`,`day-${b}`,`day-from-end-${w}`,`weekday-${Y}`,`weekday-position-${$}`,`weekday-ordinal-${A}`,`weekday-ordinal-from-end-${S}`,`week-${N}`,`week-from-end-${L}`,{"is-today":Ee,"is-first-day":_e,"is-last-day":Te,"in-month":p,"in-prev-month":f,"in-next-month":E,"on-top":De,"on-bottom":Ne,"on-left":Ae,"on-right":te}]}),p&&Te?(p=!1,E=!0,b=1,w=d,A=1,S=Math.floor((d-b)/Bt+1),N=1,L=n.numWeeks,M=n.month,F=n.year):(b++,w--,A=Math.floor((b-1)/Bt+1),S=Math.floor((d-b)/Bt+1))}N++,L--}return a}function uP(t,e,n,r){const a=t.reduce((i,o,l)=>{const c=Math.floor(l/7);let d=i[c];return d||(d={id:`week-${c+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},i[c]=d),d.days.push(o),i},Array(t.length/Bt));return a.forEach(i=>{const o=i.days[0],l=i.days[i.days.length-1];o.month===l.month?i.title=`${r.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?i.title=`${r.formatDate(o.date,"MMM")} - ${r.formatDate(l.date,"MMM YYYY")}`:i.title=`${r.formatDate(o.date,"MMM YYYY")} - ${r.formatDate(l.date,"MMM YYYY")}`}),a}function dP(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function N0(t,e,n){return i0(n.getDateParts(n.toDate(t)),lP[e])}function T0({day:t,week:e,month:n,year:r},a,i,o){if(i==="daily"&&t){const l=new Date(r,n-1,t),c=jt(l,a);return{day:c.getDate(),month:c.getMonth()+1,year:c.getFullYear()}}else if(i==="weekly"&&e){const c=o.getMonthParts(n,r).firstDayOfMonth,d=jt(c,(e-1+a)*7),h=o.getDateParts(d);return{week:h.week,month:h.month,year:h.year}}else{const l=new Date(r,n-1,1),c=Js(l,a);return{month:c.getMonth()+1,year:c.getFullYear()}}}function Pn(t){return t!=null&&t.month!=null&&t.year!=null}function Gu(t,e){return!Pn(t)||!Pn(e)?!1:(t=t,e=e,t.year!==e.year?t.year<e.year:t.month&&e.month&&t.month!==e.month?t.month<e.month:t.week&&e.week&&t.week!==e.week?t.week<e.week:t.day&&e.day&&t.day!==e.day?t.day<e.day:!1)}function el(t,e){return!Pn(t)||!Pn(e)?!1:(t=t,e=e,t.year!==e.year?t.year>e.year:t.month&&e.month&&t.month!==e.month?t.month>e.month:t.week&&e.week&&t.week!==e.week?t.week>e.week:t.day&&e.day&&t.day!==e.day?t.day>e.day:!1)}function A0(t,e,n){return(t||!1)&&!Gu(t,e)&&!el(t,n)}function hP(t,e){return!t&&e||t&&!e?!1:!t&&!e?!0:(t=t,e=e,t.year===e.year&&t.month===e.month&&t.week===e.week&&t.day===e.day)}function fP(t,e,n,r){if(!Pn(t)||!Pn(e))return[];const a=[];for(;!el(t,e);)a.push(t),t=T0(t,1,n,r);return a}function O0(t){const{day:e,week:n,month:r,year:a}=t;let i=`${a}-${tt(r,2)}`;return n&&(i=`${i}-w${n}`),e&&(i=`${i}-${tt(e,2)}`),i}function mP(t,e){const{month:n,year:r,showWeeknumbers:a,showIsoWeeknumbers:i}=t,o=new Date(r,n-1,15),l=e.getMonthParts(n,r),c=e.getPrevMonthParts(n,r),d=e.getNextMonthParts(n,r),h=cP({monthComps:l,prevMonthComps:c,nextMonthComps:d},e),m=uP(h,a,i,e),f=dP(m[0],e);return{id:O0(t),month:n,year:r,monthTitle:e.formatDate(o,e.masks.title),shortMonthLabel:e.formatDate(o,"MMM"),monthLabel:e.formatDate(o,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:l,prevMonthComps:c,nextMonthComps:d,days:h,weeks:m,weekdays:f}}function pP(t,e){const{day:n,week:r,view:a,trimWeeks:i}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let l=o.days.find(d=>d.inMonth);n?l=o.days.find(d=>d.day===n&&d.inMonth)||l:r&&(l=o.days.find(d=>d.week===r&&d.inMonth));const c=o.weeks[l.week-1];o.viewWeeks=[c],o.viewDays=[l],o.week=l.week,o.weekTitle=c.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=r||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,i?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class x0{constructor(e,n,r){$e(this,"keys",[]),$e(this,"store",{}),this.size=e,this.createKey=n,this.createItem=r}get(...e){const n=this.createKey(...e);return this.store[n]}getOrSet(...e){const n=this.createKey(...e);if(this.store[n])return this.store[n];const r=this.createItem(...e);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(n),this.store[n]=r,r}}class Xa{constructor(e,n=new tl){$e(this,"order"),$e(this,"locale"),$e(this,"start",null),$e(this,"end",null),$e(this,"repeat",null);var r;this.locale=n;const{start:a,end:i,span:o,order:l,repeat:c}=e;qa(a)&&(this.start=n.getDateParts(a)),qa(i)?this.end=n.getDateParts(i):this.start!=null&&o&&(this.end=n.getDateParts(jt(this.start.date,o-1))),this.order=l!=null?l:0,c&&(this.repeat=new Xs({from:(r=this.start)==null?void 0:r.date,...c},{locale:this.locale}))}static fromMany(e,n){return(pn(e)?e:[e]).filter(r=>r).map(r=>Xa.from(r,n))}static from(e,n){var r,a;if(e instanceof Xa)return e;const i={start:null,end:null};return e!=null&&(pn(e)?(i.start=(r=e[0])!=null?r:null,i.end=(a=e[1])!=null?a:null):ar(e)?Object.assign(i,e):(i.start=e,i.end=e)),i.start!=null&&(i.start=new Date(i.start)),i.end!=null&&(i.end=new Date(i.end)),new Xa(i,n)}get opts(){const{order:e,locale:n}=this;return{order:e,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:n}=this;return e&&n&&e.year===n.year&&e.month===n.month&&e.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var n,r;return((n=this.start)==null?void 0:n.dayIndex)===e.dayIndex||!!((r=this.repeat)!=null&&r.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var n,r,a,i;return this.intersectsDayRange((n=(a=e.start)==null?void 0:a.dayIndex)!=null?n:-1/0,(r=(i=e.end)==null?void 0:i.dayIndex)!=null?r:1/0)}intersectsDayRange(e,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<e)}}class gP{constructor(){$e(this,"records",{})}render(e,n,r){var a,i,o,l,c,d,h,m;let f=null;const p=r[0].dayIndex,E=r[r.length-1].dayIndex;return n.hasRepeat?r.forEach(k=>{var T,b,w,A;if(n.startsOnDay(k)){const S=n.daySpan<1/0?n.daySpan:1;f={startDay:k.dayIndex,startTime:(T=(w=n.start)==null?void 0:w.time)!=null?T:0,endDay:k.dayIndex+S-1,endTime:(b=(A=n.end)==null?void 0:A.time)!=null?b:Qs},this.getRangeRecords(e).push(f)}}):n.intersectsDayRange(p,E)&&(f={startDay:(a=(c=n.start)==null?void 0:c.dayIndex)!=null?a:-1/0,startTime:(i=(d=n.start)==null?void 0:d.time)!=null?i:-1/0,endDay:(o=(h=n.end)==null?void 0:h.dayIndex)!=null?o:1/0,endTime:(l=(m=n.end)==null?void 0:m.time)!=null?l:1/0},this.getRangeRecords(e).push(f)),f}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(i=>i.data.key===e)}cellExists(e,n){const r=this.records[e];return r==null?!1:r.ranges.some(a=>a.startDay<=n&&a.endDay>=n)}getCells(e){const n=Object.values(this.records),r=[],{dayIndex:a}=e;return n.forEach(({data:i,ranges:o})=>{o.filter(l=>l.startDay<=a&&l.endDay>=a).forEach(l=>{const c=a===l.startDay,d=a===l.endDay,h=c?l.startTime:0,m=new Date(e.startDate.getTime()+h),f=d?l.endTime:Qs,p=new Date(e.endDate.getTime()+f),E=h===0&&f===Qs,k=i.order||0;r.push({...l,data:i,onStart:c,onEnd:d,startTime:h,startDate:m,endTime:f,endDate:p,allDay:E,order:k})})}),r.sort((i,o)=>i.order-o.order),r}}const yP=12,vP=5;function wP(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;Mn(t)?r=t:Fu(t,"id")&&(r=t.id),r=(r||n).toLowerCase();const a=Object.keys(e),i=c=>a.find(d=>d.toLowerCase()===c);r=i(r)||i(r.substring(0,2))||n;const o={...e["en-IE"],...e[r],id:r,monthCacheSize:yP,pageCacheSize:vP};return ar(t)?to(t,o):o}class tl{constructor(e=void 0,n){$e(this,"id"),$e(this,"daysInWeek"),$e(this,"firstDayOfWeek"),$e(this,"masks"),$e(this,"timezone"),$e(this,"hourLabels"),$e(this,"dayNames"),$e(this,"dayNamesShort"),$e(this,"dayNamesShorter"),$e(this,"dayNamesNarrow"),$e(this,"monthNames"),$e(this,"monthNamesShort"),$e(this,"relativeTimeNames"),$e(this,"amPm",["am","pm"]),$e(this,"monthCache"),$e(this,"pageCache");const{id:r,firstDayOfWeek:a,masks:i,monthCacheSize:o,pageCacheSize:l}=wP(e,lM.value);this.monthCache=new x0(o,XM,QM),this.pageCache=new x0(l,O0,mP),this.id=r,this.daysInWeek=Bt,this.firstDayOfWeek=K8(a,1,Bt),this.masks=i,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Wu("long",this.id),this.dayNamesShort=Wu("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(c=>c.substring(0,2)),this.dayNamesNarrow=Wu("narrow",this.id),this.monthNames=I0("long",this.id),this.monthNamesShort=I0("short",this.id),this.relativeTimeNames=nP(this.id)}formatDate(e,n){return sP(e,n,this)}parseDate(e,n){return C0(e,n,this)}toDate(e,n={}){const r=new Date(NaN);let a=r;const{fillDate:i,mask:o,patch:l,rules:c}=n;if(Dn(e)?(n.type="number",a=new Date(+e)):Mn(e)?(n.type="string",a=e?C0(e,o||"iso",this):r):qa(e)?(n.type="date",a=new Date(e.getTime())):b0(e)&&(n.type="object",a=this.getDateFromParts(e)),a&&(l||c)){let d=this.getDateParts(a);if(l&&i!=null){const h=this.getDateParts(this.toDate(i));d=this.getDateParts(this.toDate({...h,...i0(d,UM[l])}))}c&&(d=oP(d,c)),a=this.getDateFromParts(d)}return a||r}toDateOrNull(e,n={}){const r=this.toDate(e,n);return isNaN(r.getTime())?null:r}fromDate(e,{type:n,mask:r}={}){switch(n){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,r||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return Xa.from(e,this)}ranges(e){return Xa.fromMany(e,this)}getDateParts(e){return JM(e,this)}getDateFromParts(e){return S0(e,this.timezone)}getDateFromParams(e,n,r,a,i,o,l){return this.getDateFromParts({year:e,month:n,day:r,hours:a,minutes:i,seconds:o,milliseconds:l})}getPage(e){const n=this.pageCache.getOrSet(e,this);return pP(e,n)}getMonthParts(e,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(e,n,r)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,n){return e===1?this.getMonthParts(12,n-1):this.getMonthParts(e-1,n)}getNextMonthParts(e,n){return e===12?this.getMonthParts(1,n+1):this.getMonthParts(e+1,n)}getHourLabels(){return tP().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}class L0{constructor(e,n,r){$e(this,"key",""),$e(this,"hashcode",""),$e(this,"highlight",null),$e(this,"content",null),$e(this,"dot",null),$e(this,"bar",null),$e(this,"event",null),$e(this,"popover",null),$e(this,"customData",null),$e(this,"ranges"),$e(this,"hasRanges",!1),$e(this,"order",0),$e(this,"pinPage",!1),$e(this,"maxRepeatSpan",0),$e(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=Vs()),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(a!=null?a:[]),this.hasRanges=!!ir(this.ranges),this.maxRepeatSpan=this.ranges.filter(i=>i.hasRepeat).map(i=>i.daySpan).reduce((i,o)=>Math.max(i,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const r=this.ranges.filter(o=>!o.hasRepeat);for(const o of r)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const a=this.ranges.filter(o=>o.hasRepeat);if(!a.length)return!1;let i=e;for(this.maxRepeatSpan>1&&(i=this.locale.getDateParts(jt(i.date,-this.maxRepeatSpan)));i.dayIndex<=n.dayIndex;){for(const o of a)if(o.startsOnDay(i))return!0;i=this.locale.getDateParts(jt(i.date,1))}return!1}}const R0="__vc_base_context__",M0={color:{type:String,default:()=>Ir("color")},isDark:{type:[Boolean,String,Object],default:()=>Ir("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function P0(t){const e=s.computed(()=>{var h;return(h=t.color)!=null?h:""}),n=s.computed(()=>{var h;return(h=t.isDark)!=null?h:!1}),{displayMode:r}=aC(n),a=s.computed(()=>new rM(e.value)),i=s.computed(()=>{if(t.locale instanceof tl)return t.locale;const h=ar(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new tl(h,t.timezone)}),o=s.computed(()=>i.value.masks),l=s.computed(()=>{var h;const m=(h=t.disabledDates)!=null?h:[];return t.minDate!=null&&m.push({start:null,end:jt(i.value.toDate(t.minDate),-1)}),t.maxDate!=null&&m.push({start:jt(i.value.toDate(t.maxDate),1),end:null}),i.value.ranges(m)}),c=s.computed(()=>new L0({key:"disabled",dates:l.value,order:100},a.value,i.value)),d={color:e,isDark:n,displayMode:r,theme:a,locale:i,masks:o,disabledDates:l,disabledAttribute:c};return s.provide(R0,d),d}function bP(t){return s.inject(R0,P0(t))}const _P=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!t||!t.addEventListener||!ta(e))return null;let i=0,o=0,l=null,c=!1;function d(m){const f=m.changedTouches[0];i=f.screenX,o=f.screenY,l=new Date().getTime(),c=!0}function h(m){if(!c||!l)return;c=!1;const f=m.changedTouches[0],p=f.screenX-i,E=f.screenY-o;if(new Date().getTime()-l<n&&Math.abs(p)>=r&&Math.abs(E)<=a){const T={toLeft:!1,toRight:!1};p<0?T.toLeft=!0:T.toRight=!0,e(T)}}return kr(t,"touchstart",d,{passive:!0}),kr(t,"touchend",h,{passive:!0}),()=>{Sr(t,"touchstart",d),Sr(t,"touchend",h)}},nl={},EP=(t,e=10)=>{nl[t]=Date.now()+e},DP=(t,e)=>{if(t in nl){const n=nl[t];if(Date.now()<n)return;delete nl[t]}e()},SP={...M0,view:{type:String,default:"monthly",validator(t){return["daily","weekly","monthly"].includes(t)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>Ir("titlePosition")},navVisibility:{type:String,default:()=>Ir("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},kP=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],$0="__vc_calendar_context__";function IP(t,{emit:e,slots:n}){const r=s.ref(null),a=s.ref(null),i=s.ref(null),o=s.ref(new Date().getDate()),l=s.ref(!1),c=s.ref(Vs()),d=s.ref(Vs()),h=s.ref(t.view),m=s.ref([]),f=s.ref("");let p=null,E=null;const{theme:k,color:T,displayMode:b,locale:w,masks:A,disabledAttribute:S,disabledDates:N}=bP(t),L=s.computed(()=>t.rows*t.columns),M=s.computed(()=>t.step||L.value),F=s.computed(()=>{var ie;return(ie=n0(m.value))!=null?ie:null}),V=s.computed(()=>{var ie;return(ie=Ga(m.value))!=null?ie:null}),R=s.computed(()=>t.minPage||(t.minDate?$(t.minDate):null)),z=s.computed(()=>t.maxPage||(t.maxDate?$(t.maxDate):null)),j=s.computed(()=>t.navVisibility),B=s.computed(()=>!!t.showWeeknumbers),Z=s.computed(()=>!!t.showIsoWeeknumbers),Y=s.computed(()=>h.value==="monthly"),q=s.computed(()=>h.value==="weekly"),G=s.computed(()=>h.value==="daily"),ne=()=>{l.value=!0,e("transition-start")},oe=()=>{l.value=!1,e("transition-end"),p&&(p.resolve(!0),p=null)},J=(ie,de,be=h.value)=>T0(ie,de,be,w.value),$=ie=>N0(ie,h.value,w.value),Q=ie=>{!S.value||!De.value||(ie.isDisabled=De.value.cellExists(S.value.key,ie.dayIndex))},ae=ie=>{ie.isFocusable=ie.inMonth&&ie.day===o.value},W=(ie,de)=>{for(const be of ie)for(const U of be.days)if(de(U)===!1)return},Ee=s.computed(()=>m.value.reduce((ie,de)=>(ie.push(...de.viewDays),ie),[])),_e=s.computed(()=>{const ie=[];return(t.attributes||[]).forEach((de,be)=>{if(!de||!de.dates)return;const U=Fu(de,"key")?de.key:be,fe=de.order||0;ie.push(new L0({...de,key:U,order:fe},k.value,w.value))}),S.value&&ie.push(S.value),ie}),Te=s.computed(()=>ir(_e.value)),De=s.computed(()=>{const ie=new gP;return _e.value.forEach(de=>{de.ranges.forEach(be=>{ie.render(de,be,Ee.value)})}),ie}),Ne=s.computed(()=>Ee.value.reduce((ie,de)=>(ie[de.dayIndex]={day:de,cells:[]},ie[de.dayIndex].cells.push(...De.value.getCells(de)),ie),{})),Ae=(ie,de)=>{const be=t.showWeeknumbers||t.showIsoWeeknumbers;return be==null?"":jC(be)?be?"left":"":be.startsWith("right")?de>1?"right":be:ie>1?"left":be},te=()=>{var ie,de;if(!Te.value)return null;const be=_e.value.find(ge=>ge.pinPage)||_e.value[0];if(!be||!be.hasRanges)return null;const[U]=be.ranges,fe=((ie=U.start)==null?void 0:ie.date)||((de=U.end)==null?void 0:de.date);return fe?$(fe):null},ue=()=>{if(Pn(F.value))return F.value;const ie=te();return Pn(ie)?ie:$(new Date)},_=(ie,de={})=>{const{view:be=h.value,position:U=1,force:fe}=de,ge=U>0?1-U:-(L.value+U);let Me=J(ie,ge,be),ze=J(Me,L.value-1,be);return fe||(Gu(Me,R.value)?Me=R.value:el(ze,z.value)&&(Me=J(z.value,1-L.value)),ze=J(Me,L.value-1)),{fromPage:Me,toPage:ze}},g=(ie,de,be="")=>{if(be==="none"||be==="fade")return be;if((ie==null?void 0:ie.view)!==(de==null?void 0:de.view))return"fade";const U=el(de,ie),fe=Gu(de,ie);return!U&&!fe?"fade":be==="slide-v"?fe?"slide-down":"slide-up":fe?"slide-right":"slide-left"},x=(ie={})=>new Promise((de,be)=>{const{position:U=1,force:fe=!1,transition:ge}=ie,Me=Pn(ie.page)?ie.page:ue(),{fromPage:ze}=_(Me,{position:U,force:fe}),et=[];for(let Se=0;Se<L.value;Se++){const Qe=J(ze,Se),zt=Se+1,Nt=Math.ceil(zt/t.columns),it=t.rows-Nt+1,Tt=zt%t.columns||t.columns,pt=t.columns-Tt+1,gt=Ae(Tt,pt);et.push(w.value.getPage({...Qe,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:zt,row:Nt,rowFromEnd:it,column:Tt,columnFromEnd:pt,showWeeknumbers:B.value,showIsoWeeknumbers:Z.value,weeknumberPosition:gt}))}f.value=g(m.value[0],et[0],ge),m.value=et,f.value&&f.value!=="none"?p={resolve:de,reject:be}:de(!0)}),X=ie=>{var de;const be=(de=F.value)!=null?de:$(new Date);return J(be,ie)},ce=(ie,de={})=>{const be=Pn(ie)?ie:$(ie);return Object.assign(de,_(be,{...de,force:!0})),fP(de.fromPage,de.toPage,h.value,w.value).map(fe=>A0(fe,R.value,z.value)).every(fe=>fe)},me=(ie,de={})=>ce(X(ie),de),K=s.computed(()=>me(-M.value)),v=s.computed(()=>me(M.value)),O=async(ie,de={})=>!de.force&&!ce(ie,de)?!1:(de.fromPage&&!hP(de.fromPage,F.value)&&(a.value&&a.value.hide({hideDelay:0}),de.view&&(EP("view",10),h.value=de.view),await x({...de,page:de.fromPage,position:1,force:!0}),e("did-move",m.value)),!0),y=(ie,de={})=>O(X(ie),de),D=()=>y(-M.value),I=()=>y(M.value),C=ie=>{const de=Y.value?".in-month":"",be=`.id-${w.value.getDayId(ie)}${de}`,U=`${be}.vc-focusable, ${be} .vc-focusable`,fe=r.value;if(fe){const ge=fe.querySelector(U);if(ge)return ge.focus(),!0}return!1},P=async(ie,de={})=>C(ie)?!0:(await O(ie,de),C(ie)),H=(ie,de)=>{o.value=ie.day,e("dayclick",ie,de)},ee=(ie,de)=>{e("daymouseenter",ie,de)},re=(ie,de)=>{e("daymouseleave",ie,de)},se=(ie,de)=>{o.value=ie.day,i.value=ie,ie.isFocused=!0,e("dayfocusin",ie,de)},le=(ie,de)=>{i.value=null,ie.isFocused=!1,e("dayfocusout",ie,de)},he=(ie,de)=>{e("daykeydown",ie,de);const be=ie.noonDate;let U=null;switch(de.key){case"ArrowLeft":{U=jt(be,-1);break}case"ArrowRight":{U=jt(be,1);break}case"ArrowUp":{U=jt(be,-7);break}case"ArrowDown":{U=jt(be,7);break}case"Home":{U=jt(be,-ie.weekdayPosition+1);break}case"End":{U=jt(be,ie.weekdayPositionFromEnd);break}case"PageUp":{de.altKey?U=s0(be,-1):U=Js(be,-1);break}case"PageDown":{de.altKey?U=s0(be,1):U=Js(be,1);break}}U&&(de.preventDefault(),P(U).catch())},ke=ie=>{const de=i.value;de!=null&&he(de,ie)},Ce=(ie,de)=>{e("weeknumberclick",ie,de)};x({page:t.initialPage,position:t.initialPagePosition}),s.onMounted(()=>{!t.disablePageSwipe&&r.value&&(E=_P(r.value,({toLeft:ie=!1,toRight:de=!1})=>{ie?I():de&&D()},Ir("touch")))}),s.onUnmounted(()=>{m.value=[],E&&E()}),s.watch(()=>w.value,()=>{x()}),s.watch(()=>L.value,()=>x()),s.watch(()=>t.view,()=>h.value=t.view),s.watch(()=>h.value,()=>{DP("view",()=>{x()}),e("update:view",h.value)}),s.watch(()=>o.value,()=>{W(m.value,ie=>ae(ie))}),s.watchEffect(()=>{e("update:pages",m.value),W(m.value,ie=>{Q(ie),ae(ie)})});const Oe={emit:e,slots:n,containerRef:r,navPopoverRef:a,focusedDay:i,inTransition:l,navPopoverId:c,dayPopoverId:d,view:h,pages:m,transitionName:f,theme:k,color:T,displayMode:b,locale:w,masks:A,attributes:_e,disabledAttribute:S,disabledDates:N,attributeContext:De,days:Ee,dayCells:Ne,count:L,step:M,firstPage:F,lastPage:V,canMovePrev:K,canMoveNext:v,minPage:R,maxPage:z,isMonthly:Y,isWeekly:q,isDaily:G,navVisibility:j,showWeeknumbers:B,showIsoWeeknumbers:Z,getDateAddress:$,canMove:ce,canMoveBy:me,move:O,moveBy:y,movePrev:D,moveNext:I,onTransitionBeforeEnter:ne,onTransitionAfterEnter:oe,tryFocusDate:C,focusDate:P,onKeydown:ke,onDayKeydown:he,onDayClick:H,onDayMouseenter:ee,onDayMouseleave:re,onDayFocusin:se,onDayFocusout:le,onWeeknumberClick:Ce};return s.provide($0,Oe),Oe}function oa(){const t=s.inject($0);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const CP={inheritAttrs:!1},Qa=s.defineComponent({...CP,__name:"CalendarSlot",props:{name:null},setup(t){const{slots:e}=oa();return(n,r)=>s.unref(e)[t.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(e)[t.name]),s.normalizeProps(s.mergeProps({key:0},n.$attrs)),null,16)):s.renderSlot(n.$slots,"default",{key:1})}});function qu(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function rl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function B0(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function F0(t){const{visibility:e}=t,n=e==="click",r=e==="hover",a=e==="hover-focus",i=e==="focus";t.autoHide=!n;let o=!1,l=!1;const c=E=>{n&&(B0({...t,target:t.target||E.currentTarget}),E.stopPropagation())},d=E=>{o||(o=!0,(r||a)&&qu({...t,target:t.target||E.currentTarget}))},h=()=>{o&&(o=!1,(r||a&&!l)&&rl(t))},m=E=>{l||(l=!0,(i||a)&&qu({...t,target:t.target||E.currentTarget}))},f=E=>{l&&!Fs(E.currentTarget,E.relatedTarget)&&(l=!1,(i||a&&!o)&&rl(t))},p={};switch(t.visibility){case"click":p.click=c;break;case"hover":p.mousemove=d,p.mouseleave=h;break;case"focus":p.focusin=m,p.focusout=f;break;case"hover-focus":p.mousemove=d,p.mouseleave=h,p.focusin=m,p.focusout=f;break}return p}const z0=t=>{const e=Bs(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete e.popoverHandlers)},V0=(t,e)=>{const n=Bs(t);if(n==null)return;const r=[],a=F0(e);Object.entries(a).forEach(([i,o])=>{r.push(kr(n,i,o))}),n.popoverHandlers=r},U0={mounted(t,e){const{value:n}=e;!n||V0(t,n)},updated(t,e){const{oldValue:n,value:r}=e,a=n==null?void 0:n.visibility,i=r==null?void 0:r.visibility;a!==i&&(a&&(z0(t),i||rl(n)),i&&V0(t,r))},unmounted(t){z0(t)}},NP=["disabled"],TP={key:1,type:"button",class:"vc-title"},AP=["disabled"],H0=s.defineComponent({__name:"CalendarHeader",props:{page:{type:Object,required:!0},layout:String,isLg:Boolean,isXl:Boolean,is2xl:Boolean,hideTitle:Boolean,hideArrows:Boolean},setup(t){const e=t,{navPopoverId:n,navVisibility:r,canMovePrev:a,movePrev:i,canMoveNext:o,moveNext:l}=oa(),c=s.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),d=s.computed(()=>{const{page:k}=e;return{id:n.value,visibility:r.value,placement:c.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:k},isInteractive:!0}}),h=s.computed(()=>e.page.titlePosition.includes("left")),m=s.computed(()=>e.page.titlePosition.includes("right")),f=s.computed(()=>e.layout?e.layout:h.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),p=s.computed(()=>({prev:f.value.includes("p")&&!e.hideArrows,title:f.value.includes("t")&&!e.hideTitle,next:f.value.includes("n")&&!e.hideArrows})),E=s.computed(()=>({gridTemplateColumns:f.value.split("").map(T=>{switch(T){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(k,T)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:s.normalizeStyle(s.unref(E))},[s.unref(p).prev?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!s.unref(a),onClick:T[0]||(T[0]=(...b)=>s.unref(i)&&s.unref(i)(...b)),onKeydown:T[1]||(T[1]=s.withKeys((...b)=>s.unref(i)&&s.unref(i)(...b),["space","enter"]))},[s.createVNode(Qa,{name:"header-prev-button",disabled:!s.unref(a)},{default:s.withCtx(()=>[s.createVNode(Fa,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,NP)):s.createCommentVNode("",!0),s.unref(p).title?s.withDirectives((s.openBlock(),s.createElementBlock("button",TP,[s.createVNode(Qa,{name:"header-title",title:t.page.title},{default:s.withCtx(()=>[s.createElementVNode("span",null,s.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[s.unref(U0),s.unref(d)]]):s.createCommentVNode("",!0),s.unref(p).next?(s.openBlock(),s.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!s.unref(o),onClick:T[2]||(T[2]=(...b)=>s.unref(l)&&s.unref(l)(...b)),onKeydown:T[3]||(T[3]=s.withKeys((...b)=>s.unref(l)&&s.unref(l)(...b),["space","enter"]))},[s.createVNode(Qa,{name:"header-next-button",disabled:!s.unref(o)},{default:s.withCtx(()=>[s.createVNode(Fa,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,AP)):s.createCommentVNode("",!0)],6))}}),OP=s.defineComponent({directives:{popover:U0},components:{CalendarSlot:Qa},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:r,dayPopoverId:a,slots:i,onDayClick:o,onDayMouseenter:l,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:m}=oa(),f=s.computed(()=>t.day),p=s.computed(()=>r.value.getCells(f.value)),E=s.computed(()=>p.value.map(Y=>Y.data)),k=s.computed(()=>({...f.value,attributes:E.value,attributeCells:p.value}));function T({data:Y},{popovers:q}){const{key:G,customData:ne,popover:oe}=Y;if(!oe)return;const J=zy({key:G,customData:ne,attribute:Y},{...oe},{visibility:oe.label?"hover":"click",placement:"bottom",isInteractive:!oe.label});q.splice(0,0,J)}const b=s.computed(()=>{const Y={...n.value.prepareRender({}),popovers:[]};return p.value.forEach(q=>{n.value.render(q,Y),T(q,Y)}),Y}),w=s.computed(()=>b.value.highlights),A=s.computed(()=>!!ir(w.value)),S=s.computed(()=>b.value.content),N=s.computed(()=>b.value.dots),L=s.computed(()=>!!ir(N.value)),M=s.computed(()=>b.value.bars),F=s.computed(()=>!!ir(M.value)),V=s.computed(()=>b.value.popovers),R=s.computed(()=>V.value.map(Y=>Y.attribute)),z=s.computed(()=>["vc-day",...f.value.classes,{"vc-day-box-center-center":!i["day-content"]},{"is-not-in-month":!t.day.inMonth}]),j=s.computed(()=>{let Y;f.value.isFocusable?Y="0":Y="-1";const q=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":f.value.isDisabled},ra(Ga(w.value),"contentClass"),ra(Ga(S.value),"class")||""],G={...ra(Ga(w.value),"contentStyle"),...ra(Ga(S.value),"style")};return{class:q,style:G,tabindex:Y,"aria-label":f.value.ariaLabel,"aria-disabled":!!f.value.isDisabled,role:"button"}}),B=s.computed(()=>({click(Y){o(k.value,Y)},mouseenter(Y){l(k.value,Y)},mouseleave(Y){c(k.value,Y)},focusin(Y){d(k.value,Y)},focusout(Y){h(k.value,Y)},keydown(Y){m(k.value,Y)}})),Z=s.computed(()=>ir(V.value)?zy({id:a.value,data:{day:f,attributes:R.value}},...V.value):null);return{attributes:E,attributeCells:p,bars:M,dayClasses:z,dayContentProps:j,dayContentEvents:B,dayPopover:Z,glyphs:b,dots:N,hasDots:L,hasBars:F,highlights:w,hasHighlights:A,locale:e,popovers:V}}}),xP={key:0,class:"vc-highlights vc-day-layer"},LP={key:1,class:"vc-day-layer vc-day-box-center-bottom"},RP={class:"vc-dots"},MP={key:2,class:"vc-day-layer vc-day-box-center-bottom"},PP={class:"vc-bars"};function $P(t,e,n,r,a,i){const o=s.resolveComponent("CalendarSlot"),l=s.resolveDirective("popover");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(t.dayClasses)},[t.hasHighlights?(s.openBlock(),s.createElementBlock("div",xP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.highlights,({key:c,wrapperClass:d,class:h,style:m})=>(s.openBlock(),s.createElementBlock("div",{key:c,class:s.normalizeClass(d)},[s.createElementVNode("div",{class:s.normalizeClass(h),style:s.normalizeStyle(m)},null,6)],2))),128))])):s.createCommentVNode("",!0),s.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:s.withCtx(()=>[s.withDirectives((s.openBlock(),s.createElementBlock("div",s.mergeProps(t.dayContentProps,s.toHandlers(t.dayContentEvents,!0)),[s.createTextVNode(s.toDisplayString(t.day.label),1)],16)),[[l,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(s.openBlock(),s.createElementBlock("div",LP,[s.createElementVNode("div",RP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.dots,({key:c,class:d,style:h})=>(s.openBlock(),s.createElementBlock("span",{key:c,class:s.normalizeClass(d),style:s.normalizeStyle(h)},null,6))),128))])])):s.createCommentVNode("",!0),t.hasBars?(s.openBlock(),s.createElementBlock("div",MP,[s.createElementVNode("div",PP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.bars,({key:c,class:d,style:h})=>(s.openBlock(),s.createElementBlock("span",{key:c,class:s.normalizeClass(d),style:s.normalizeStyle(h)},null,6))),128))])])):s.createCommentVNode("",!0)],2)}const BP={name:"CalendarPane",inheritAttrs:!1,components:{CalendarHeader:H0,CalendarDay:nr(OP,[["render",$P]])},props:{page:{type:Object,required:!0}},setup(){const{onWeeknumberClick:t}=oa();return{onWeeknumberClick:t}}},FP={class:"vc-weekdays"},zP=["onClick"];function VP(t,e,n,r,a,i){const o=s.resolveComponent("CalendarHeader"),l=s.resolveComponent("CalendarDay");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vc-pane",`row-${n.page.row}`,`row-from-end-${n.page.rowFromEnd}`,`column-${n.page.column}`,`column-from-end-${n.page.columnFromEnd}`]),ref:"pane"},[s.createVNode(o,{page:n.page,"is-lg":"","hide-arrows":""},null,8,["page"]),s.createElementVNode("div",{class:s.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${n.page.weeknumberPosition}`]:n.page.weeknumberPosition}])},[s.createElementVNode("div",FP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.page.weekdays,({weekday:c,label:d},h)=>(s.openBlock(),s.createElementBlock("div",{key:h,class:s.normalizeClass(`vc-weekday vc-weekday-${c}`)},s.toDisplayString(d),3))),128))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.page.viewWeeks,c=>(s.openBlock(),s.createElementBlock("div",{key:`weeknumber-${c.weeknumber}`,class:"vc-week"},[n.page.weeknumberPosition?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vc-weeknumber",`is-${n.page.weeknumberPosition}`])},[s.createElementVNode("span",{class:s.normalizeClass(["vc-weeknumber-content"]),onClick:d=>r.onWeeknumberClick(c,d)},s.toDisplayString(c.weeknumberDisplay),9,zP)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.days,d=>(s.openBlock(),s.createBlock(l,{key:d.id,day:d},null,8,["day"]))),128))]))),128))],2)],2)}const UP=nr(BP,[["render",VP]]),HP=s.defineComponent({name:"Popover",inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:String,required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const r=s.ref();let a=null,i=null;const o=s.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function l(J){J&&(o.direction=J.split("-")[0])}function c({placement:J,options:$}){l(J||($==null?void 0:$.placement))}const d=s.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:c},...o.modifiers||[]],onFirstUpdate:c})),h=s.computed(()=>{const J=o.direction==="left"||o.direction==="right";let $="";if(o.placement){const Q=o.placement.split("-");Q.length>1&&($=Q[1])}return["start","top","left"].includes($)?J?"top":"left":["end","bottom","right"].includes($)?J?"bottom":"right":J?"middle":"center"});function m(){i&&(i.destroy(),i=null)}function f(){s.nextTick(()=>{const J=Bs(o.target);!J||!r.value||(i&&i.state.elements.reference!==J&&m(),i?i.update():i=RI(J,r.value,d.value))})}function p(J){Object.assign(o,a0(J,"force"))}function E(J,$){clearTimeout(n),J>0?n=setTimeout($,J):$()}function k(J){return!J||!i?!1:Bs(J)===i.state.elements.reference}async function T(J={}){var $;o.force||(J.force&&(o.force=!0),E(($=J.showDelay)!=null?$:t.showDelay,()=>{o.isVisible&&(o.force=!1,e("after-show")),p({...J,isVisible:!0}),f()}))}function b(J={}){var $;!i||J.target&&!k(J.target)||o.force||(J.force&&(o.force=!0),E(($=J.hideDelay)!=null?$:t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1}))}function w(J={}){J.target!=null&&(o.isVisible&&k(J.target)?b(J):T(J))}function A(J){if(!i)return;const $=i.state.elements.reference;if(!r.value||!$)return;const Q=J.target;Fs(r.value,Q)||Fs($,Q)||b({force:!0})}function S(J){(J.key==="Esc"||J.key==="Escape")&&b()}function N({detail:J}){!J.id||J.id!==t.id||T(J)}function L({detail:J}){!J.id||J.id!==t.id||b(J)}function M({detail:J}){!J.id||J.id!==t.id||w(J)}function F(){kr(document,"keydown",S),kr(document,"click",A),kr(document,"show-popover",N),kr(document,"hide-popover",L),kr(document,"toggle-popover",M)}function V(){Sr(document,"keydown",S),Sr(document,"click",A),Sr(document,"show-popover",N),Sr(document,"hide-popover",L),Sr(document,"toggle-popover",M)}function R(J){e("before-show",J)}function z(J){o.force=!1,e("after-show",J)}function j(J){e("before-hide",J)}function B(J){o.force=!1,m(),e("after-hide",J)}function Z(J){J.stopPropagation()}function Y(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&T()}function q(){if(o.isHovered=!1,!i)return;const J=i.state.elements.reference;o.autoHide&&!o.isFocused&&(!J||J!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&b()}function G(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&T()}function ne(J){["focus","hover-focus"].includes(o.visibility)&&(!J.relatedTarget||!Fs(r.value,J.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&b())}function oe(){a!=null&&(a.disconnect(),a=null)}return s.watch(()=>r.value,J=>{oe(),J&&(a=new ResizeObserver(()=>{i&&i.update()}),a.observe(J))}),s.watch(()=>o.placement,l,{immediate:!0}),s.onMounted(()=>{F()}),s.onUnmounted(()=>{m(),oe(),V()}),{...s.toRefs(o),popoverRef:r,alignment:h,hide:b,setupPopper:f,beforeEnter:R,afterEnter:z,beforeLeave:j,afterLeave:B,onClick:Z,onMouseOver:Y,onMouseLeave:q,onFocusIn:G,onFocusOut:ne}}});function jP(t,e,n,r,a,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[s.createVNode(s.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:s.withCtx(()=>[t.isVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[s.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[s.createTextVNode(s.toDisplayString(t.data),1)]),s.createElementVNode("span",{class:s.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):s.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Ku=nr(HP,[["render",jP]]),YP={value:{type:Object,required:!0}},WP=["input"],GP="__vc_calendar_nav_context__";function qP(t,{emit:e}){const n=s.ref(!0),r=s.ref(0),a=s.ref(0),i=12,o=s.ref(null),{locale:l,masks:c,canMove:d,getDateAddress:h}=oa();function m(){setTimeout(()=>{if(o.value==null)return;const W=o.value.querySelector(".vc-nav-item:not(:disabled)");W&&W.focus()},10)}function f(W,Ee){e("input",{month:W,year:Ee},{position:R.value})}function p(W){r.value=W,n.value=!0,m()}function E(W){const{year:Ee}=h(new Date),_e=W*i,Te=_e+i,De=[];for(let Ne=_e;Ne<Te;Ne+=1){let Ae=!1;for(let te=1;te<12&&(Ae=d({month:te,year:Ne},{position:R.value}),!Ae);te++);De.push({year:Ne,id:Ne.toString(),label:Ne.toString(),ariaLabel:Ne.toString(),isActive:Ne===V.value,isCurrent:Ne===Ee,isDisabled:!Ae,click:()=>p(Ne)})}return De}function k(W){const{month:Ee,year:_e}=h(new Date);return k0().map((Te,De)=>{const Ne=De+1;return{month:Ne,year:W,id:`${W}.${tt(Ne,2)}`,label:l.value.formatDate(Te,c.value.navMonths),ariaLabel:l.value.formatDate(Te,"MMMM YYYY"),isActive:Ne===F.value&&W===V.value,isCurrent:Ne===Ee&&W===_e,isDisabled:!d({month:Ne,year:W},{position:R.value}),click:()=>f(Ne,W)}})}function T(W){return Math.floor(W/i)}function b(){n.value=!n.value}function w(){!ne.value||(n.value&&S(),L())}function A(){!$.value||(n.value&&N(),M())}function S(){r.value--}function N(){r.value++}function L(){a.value--}function M(){a.value++}const F=s.computed(()=>{var W;return((W=t.value)==null?void 0:W.month)||0}),V=s.computed(()=>{var W;return((W=t.value)==null?void 0:W.year)||0}),R=s.computed(()=>{var W;return((W=t.value)==null?void 0:W.position)||1}),z=s.computed(()=>k(r.value)),j=s.computed(()=>E(a.value)),B=s.computed(()=>n0(j.value.map(W=>W.year))),Z=s.computed(()=>Ga(j.value.map(W=>W.year))),Y=s.computed(()=>n.value?r.value:`${B.value} - ${Z.value}`),q=s.computed(()=>k(r.value-1).some(W=>!W.isDisabled)),G=s.computed(()=>E(a.value-1).some(W=>!W.isDisabled)),ne=s.computed(()=>n.value?q.value:G.value),oe=s.computed(()=>k(r.value+1).some(W=>!W.isDisabled)),J=s.computed(()=>E(a.value+1).some(W=>!W.isDisabled)),$=s.computed(()=>n.value?oe.value:J.value),Q=s.computed(()=>n.value?z.value:j.value);s.watch(()=>V.value,()=>{r.value=V.value}),s.watch(()=>r.value,W=>{a.value=T(W)}),r.value=V.value,s.onMounted(()=>m());const ae={navContainer:o,title:Y,monthMode:n,currentMonth:F,currentYear:V,activeItems:Q,prevItemsEnabled:ne,nextItemsEnabled:$,toggleMode:b,movePrev:w,moveNext:A,movePrevYear:S,moveNextYear:N,movePrevYearGroup:L,moveNextYearGroup:M};return s.provide(GP,ae),ae}const KP={class:"vc-nav-header"},ZP=["disabled"],JP=["disabled"],XP={class:"vc-nav-items"},QP=["data-id","aria-label","disabled","onClick","onKeydown"],e7=s.defineComponent({__name:"CalendarNav",props:YP,emits:WP,setup(t,{emit:e}){const n=t,{navContainer:r,title:a,prevItemsEnabled:i,nextItemsEnabled:o,activeItems:l,toggleMode:c,movePrev:d,moveNext:h}=qP(n,{emit:e});return(m,f)=>(s.openBlock(),s.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:r},[s.createElementVNode("div",KP,[s.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!s.unref(i),onClick:f[0]||(f[0]=(...p)=>s.unref(d)&&s.unref(d)(...p)),onKeydown:f[1]||(f[1]=p=>s.unref(zs)(p,s.unref(d)))},[s.createVNode(Qa,{name:"nav-prev-button",move:s.unref(d),disabled:!s.unref(i)},{default:s.withCtx(()=>[s.createVNode(Fa,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["move","disabled"])],40,ZP),s.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:f[2]||(f[2]=(...p)=>s.unref(c)&&s.unref(c)(...p)),onKeydown:f[3]||(f[3]=p=>s.unref(zs)(p,s.unref(c)))},s.toDisplayString(s.unref(a)),33),s.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!s.unref(o),onClick:f[4]||(f[4]=(...p)=>s.unref(h)&&s.unref(h)(...p)),onKeydown:f[5]||(f[5]=p=>s.unref(zs)(p,s.unref(h)))},[s.createVNode(Qa,{name:"nav-next-button",move:s.unref(h),disabled:!s.unref(o)},{default:s.withCtx(()=>[s.createVNode(Fa,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["move","disabled"])],40,JP)]),s.createElementVNode("div",XP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(l),p=>(s.openBlock(),s.createElementBlock("button",{key:p.label,type:"button","data-id":p.id,"aria-label":p.ariaLabel,class:s.normalizeClass(["vc-nav-item vc-focus",[p.isActive?"is-active":p.isCurrent?"is-current":""]]),disabled:p.isDisabled,onClick:p.click,onKeydown:E=>s.unref(zs)(E,p.click)},s.toDisplayString(p.label),43,QP))),128))])],512))}}),t7={__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:r,navPopoverRef:a,move:i}=oa();return(o,l)=>(s.openBlock(),s.createBlock(Ku,{id:s.unref(e),class:s.normalizeClass(["vc-nav-popover-container",`vc-${s.unref(n)}`,`vc-${s.unref(r)}`]),ref_key:"navPopoverRef",ref:a},{default:s.withCtx(({data:c})=>[s.createVNode(e7,{value:c.page,onInput:s.unref(i)},null,8,["value","onInput"])]),_:1},8,["id","class"]))}},n7=s.defineComponent({name:"PopoverRow",props:{attribute:{type:Object,required:!0}},setup(t){return{indicator:s.computed(()=>{const{content:n,highlight:r,dot:a,bar:i,popover:o}=t.attribute;return o&&o.hideIndicator?null:n?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${n.base.color}`}:r?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${r.base.color}`}:a?{class:`vc-dot vc-attr vc-${a.base.color}`}:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:null})}}}),r7={class:"vc-day-popover-row"},a7={key:0,class:"vc-day-popover-row-indicator"},i7={class:"vc-day-popover-row-label"};function o7(t,e,n,r,a,i){return s.openBlock(),s.createElementBlock("div",r7,[t.indicator?(s.openBlock(),s.createElementBlock("div",a7,[s.createElementVNode("span",{class:s.normalizeClass(t.indicator.class)},null,2)])):s.createCommentVNode("",!0),s.createElementVNode("div",i7,[s.renderSlot(t.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])])}const s7=nr(n7,[["render",o7]]),l7={class:"vc-day-popover-container"},c7={key:0,class:"vc-day-popover-header"},u7=s.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:r,masks:a,locale:i}=oa();function o(c,d){return i.value.formatDate(c,d)}function l(c){return i.value.formatDate(c.date,a.value.dayPopover)}return(c,d)=>(s.openBlock(),s.createBlock(Ku,{id:s.unref(e),class:s.normalizeClass([`vc-${s.unref(r)}`,`vc-${s.unref(n)}`])},{default:s.withCtx(({data:{day:h,attributes:m},hide:f})=>[s.renderSlot(c.$slots,"default",{day:h,dayTitle:l(h),attributes:m,format:o,masks:s.unref(a),hide:f},()=>[s.createElementVNode("div",l7,[s.unref(a).dayPopover?(s.openBlock(),s.createElementBlock("div",c7,s.toDisplayString(l(h)),1)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(m,p=>(s.openBlock(),s.createBlock(s7,{key:p.key,attribute:p},null,8,["attribute"]))),128))])])]),_:3},8,["id","class"]))}}),d7=s.defineComponent({name:"Calendar",components:{CalendarHeader:H0,CalendarPane:UP,CalendarNavPopover:t7,CalendarDayPopover:u7},emits:kP,props:SP,setup(t,{emit:e,slots:n}){return IP(t,{emit:e,slots:n})}}),h7={class:"vc-pane-header-wrapper"};function f7(t,e,n,r,a,i){const o=s.resolveComponent("CalendarHeader"),l=s.resolveComponent("CalendarPane"),c=s.resolveComponent("CalendarDayPopover"),d=s.resolveComponent("CalendarNavPopover");return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",s.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=s.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[s.createElementVNode("div",{class:s.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[s.createElementVNode("div",h7,[t.firstPage?(s.openBlock(),s.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):s.createCommentVNode("",!0)]),s.createVNode(s.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:s.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.pages,h=>(s.openBlock(),s.createBlock(l,{key:h.id,page:h},null,8,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),s.renderSlot(t.$slots,"footer")],2)],16),s.createVNode(c,null,{default:s.withCtx(h=>[s.renderSlot(t.$slots,"day-popover",s.normalizeProps(s.guardReactiveProps(h)))]),_:3}),s.createVNode(d)],64)}const m7=nr(d7,[["render",f7]]),p7={class:"vc-base-select"},g7=["value"],y7=["value","disabled"],io=Object.assign({inheritAttrs:!1},{__name:"BaseSelect",props:{options:Array,modelValue:null,alignRight:Boolean,alignLeft:Boolean,showIcon:Boolean,small:Boolean},emits:["update:modelValue"],setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("div",p7,[t.showIcon?(s.openBlock(),s.createBlock(Fa,{key:0,name:"ChevronDown",size:t.small?"16":"18"},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("select",s.mergeProps(e.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-has-icon":t.showIcon,"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft,"vc-small":t.small}],onChange:n[0]||(n[0]=r=>e.$emit("update:modelValue",r.target.value))}),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.options,r=>(s.openBlock(),s.createElementBlock("option",{key:r.value,value:r.value,disabled:r.disabled},s.toDisplayString(r.label),9,y7))),128))],16,g7)]))}}),j0="__vc_date_picker_context__",v7={...M0,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>Ir("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>Ir("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},w7=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function b7(t,e){const n=P0(t),{locale:r,masks:a,disabledAttribute:i}=n,{emit:o}=e,l=s.ref(!1),c=s.ref(Vs()),d=s.ref(null),h=s.ref(null),m=s.ref(["",""]),f=s.ref(null),p=s.ref(null);let E,k,T=!0;const b=s.computed(()=>t.isRange||t.modelModifiers.range===!0),w=s.computed(()=>b.value&&d.value!=null?d.value.start:null),A=s.computed(()=>b.value&&d.value!=null?d.value.end:null),S=s.computed(()=>t.mode.toLowerCase()==="date"),N=s.computed(()=>t.mode.toLowerCase()==="datetime"),L=s.computed(()=>t.mode.toLowerCase()==="time"),M=s.computed(()=>!!h.value),F=s.computed(()=>{let U="date";t.modelModifiers.number&&(U="number"),t.modelModifiers.string&&(U="string");const fe=a.value.modelValue||"iso";return ae({type:U,mask:fe})}),V=s.computed(()=>{var U;return K((U=h.value)!=null?U:d.value)}),R=s.computed(()=>L.value?t.is24hr?a.value.inputTime24hr:a.value.inputTime:N.value?t.is24hr?a.value.inputDateTime24hr:a.value.inputDateTime:a.value.input),z=s.computed(()=>/[Hh]/g.test(R.value)),j=s.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(R.value)),B=s.computed(()=>{if(z.value&&j.value)return"dateTime";if(j.value)return"date";if(z.value)return"time"}),Z=s.computed(()=>{var U,fe;const ge=(U=(fe=f.value)==null?void 0:fe.$el.previousElementSibling)!=null?U:void 0;return to({},t.popover,Ir("datePicker.popover"),{target:ge})}),Y=s.computed(()=>F0({...Z.value,id:c.value})),q=s.computed(()=>b.value?{start:m.value[0],end:m.value[1]}:m.value[0]),G=s.computed(()=>{const U=["start","end"].map(fe=>({input:X(fe),change:ce(fe),keyup:me,...t.popover&&Y.value}));return b.value?{start:U[0],end:U[1]}:U[0]}),ne=s.computed(()=>{if(!_e(d.value))return null;const U={key:"select-drag",...t.selectAttribute,dates:d.value,pinPage:!0},{dot:fe,bar:ge,highlight:Me,content:ze}=U;return!fe&&!ge&&!Me&&!ze&&(U.highlight=!0),U}),oe=s.computed(()=>{if(!b.value||!_e(h.value))return null;const U={key:"select-drag",...t.dragAttribute,dates:h.value},{dot:fe,bar:ge,highlight:Me,content:ze}=U;return!fe&&!ge&&!Me&&!ze&&(U.highlight={startEnd:{fillMode:"outline"}}),U}),J=s.computed(()=>{const U=pn(t.attributes)?[...t.attributes]:[];return oe.value?U.unshift(oe.value):ne.value&&U.unshift(ne.value),U}),$=s.computed(()=>{var U;return ae(t.rules==="auto"?Q():(U=t.rules)!=null?U:{})});function Q(){const U={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},fe=S.value?0:t.timeAccuracy;return[0,1].map(ge=>{switch(fe){case 0:return{hours:U.hr[ge],minutes:U.min[ge],seconds:U.sec[ge],milliseconds:U.ms[ge]};case 1:return{minutes:U.min[ge],seconds:U.sec[ge],milliseconds:U.ms[ge]};case 3:return{milliseconds:U.ms[ge]};case 4:return{};default:return{seconds:U.sec[ge],milliseconds:U.ms[ge]}}})}function ae(U){return pn(U)?U.length===1?[U[0],U[0]]:U:[U,U]}function W(U){return ae(U).map((fe,ge)=>({...fe,rules:$.value[ge]}))}function Ee(U){return Dn(U)?!isNaN(U):qa(U)?!isNaN(U.getTime()):Mn(U)?U!=="":U!=null}function _e(U){return b.value?ar(U)&&Ee(U.start)&&Ee(U.end):Ee(U)}function Te(U,fe){const ge=qa(U),Me=qa(fe);return!ge&&!Me?!0:ge!==Me?!1:U.getTime()===fe.getTime()}function De(U,fe){if(b.value){const ge=_e(U),Me=_e(fe);return!ge&&!Me?!0:ge!==Me?!1:Te(U.start,fe.start)&&Te(U.end,fe.end)}return Te(U,fe)}function Ne(U){return!_e(U)||!i.value?!1:i.value.intersectsRange(r.value.range(U))}function Ae(U,fe,ge,Me){var ze,et;if(!_e(U))return null;if(b.value){const Se=r.value.toDate(U.start,{...fe[0],fillDate:(ze=w.value)!=null?ze:void 0,patch:ge}),Qe=r.value.toDate(U.end,{...fe[1],fillDate:(et=A.value)!=null?et:void 0,patch:ge});return he({start:Se,end:Qe},Me)}return r.value.toDateOrNull(U,{...fe[0],fillDate:d.value,patch:ge})}function te(U,fe){return b.value?_e(U)?{start:r.value.fromDate(U.start,fe[0]),end:r.value.fromDate(U.end,fe[1])}:null:r.value.fromDate(U,fe[0])}function ue(U,fe={}){return clearTimeout(E),new Promise(ge=>{const{debounce:Me=0,...ze}=fe;Me>0?E=window.setTimeout(()=>{ge(_(U,ze))},Me):ge(_(U,ze))})}function _(U,{config:fe=F.value,patch:ge="dateTime",clearIfEqual:Me=!1,formatInput:ze=!0,hidePopover:et=!1,dragging:Se=M.value,targetPriority:Qe,moveToValue:zt=!1}={}){const Nt=W(fe);let it=Ae(U,Nt,ge,Qe);if(Ne(it)){if(Se)return null;it=d.value,et=!1}else it==null&&t.isRequired?it=d.value:it!=null&&De(d.value,it)&&Me&&(it=null);const pt=Se?h:d,gt=!De(pt.value,it);pt.value=it,Se||(h.value=null);const bt=te(it,F.value);return gt&&(T=!1,o(Se?"drag":"update:modelValue",bt),s.nextTick(()=>T=!0)),et&&!Se&&se(),ze&&g(),zt&&s.nextTick(()=>ie(Qe!=null?Qe:"start")),bt}function g(){s.nextTick(()=>{const U=W({type:"string",mask:R.value}),fe=te(h.value||d.value,U);b.value?m.value=[fe&&fe.start,fe&&fe.end]:m.value=[fe,""]})}function x(U,fe,ge){m.value.splice(fe==="start"?0:1,1,U);const Me=b.value?{start:m.value[0],end:m.value[1]||m.value[0]}:U,ze={type:"string",mask:R.value};ue(Me,{...ge,config:ze,patch:B.value,targetPriority:fe,moveToValue:!0})}function X(U){return fe=>{!t.updateOnInput||x(fe.currentTarget.value,U,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function ce(U){return fe=>{x(fe.currentTarget.value,U,{formatInput:!0,hidePopover:!1})}}function me(U){U.key==="Escape"&&ue(d.value,{formatInput:!0,hidePopover:!0})}function K(U){return b.value?[U&&U.start?r.value.getDateParts(U.start):null,U&&U.end?r.value.getDateParts(U.end):null]:[U?r.value.getDateParts(U):null]}function v(){h.value=null,g()}function O(U){o("popover-will-show",U)}function y(U){o("popover-did-show",U)}function D(U){v(),o("popover-will-hide",U)}function I(U){o("popover-did-hide",U)}function C(U){const fe={patch:"date",formatInput:!0,hidePopover:!0};if(b.value){const ge=!M.value;ge?k={start:U.startDate,end:U.endDate}:k!=null&&(k.end=U.date),ue(k,{...fe,dragging:ge})}else ue(U.date,{...fe,clearIfEqual:!t.isRequired})}function P(U,fe){C(U),o("dayclick",U,fe)}function H(U,fe){switch(fe.key){case" ":case"Enter":{C(U),fe.preventDefault();break}case"Escape":se()}o("daykeydown",U,fe)}function ee(U,fe){!M.value||k==null||(k.end=U.date,ue(he(k),{patch:"date",formatInput:!0}))}function re(U={}){qu({...Z.value,...U,isInteractive:!0,id:c.value})}function se(U={}){rl({hideDelay:10,force:!0,...Z.value,...U,id:c.value})}function le(U){B0({...Z.value,...U,isInteractive:!0,id:c.value})}function he(U,fe){const{start:ge,end:Me}=U;if(ge>Me)switch(fe){case"start":return{start:ge,end:ge};case"end":return{start:Me,end:Me};default:return{start:Me,end:ge}}return{start:ge,end:Me}}function ke(U){if(_e(d.value)){const fe=b.value?U?w.value:A.value:d.value;return N0(fe,"monthly",r.value)}return null}async function Ce(U,fe={}){return p.value==null?!1:p.value.move(U,fe)}async function Oe(U,fe={}){return p.value==null?!1:p.value.moveBy(U,fe)}async function ie(U,fe={}){if(p.value==null)return!1;const{firstPage:ge,lastPage:Me,move:ze}=p.value,et=U!=="end",Se=ke(et),Qe=et?1:-1;return!Se||A0(Se,ge,Me)?!1:ze(Se,{position:Qe,...fe})}s.watch(()=>t.isRange,U=>{U&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),s.watch(()=>R.value,()=>g()),s.watch(()=>t.modelValue,U=>{!T||_(U,{formatInput:!0,hidePopover:!1})}),s.watch(()=>$.value,()=>{ar(t.rules)&&_(t.modelValue,{formatInput:!0,hidePopover:!1})}),s.watch(()=>t.timezone,()=>{_(d.value,{formatInput:!0})});const de=ae(F.value);d.value=Ae(t.modelValue,de,"dateTime"),s.onMounted(()=>{_(t.modelValue,{formatInput:!0,hidePopover:!1})}),s.nextTick(()=>l.value=!0);const be={...n,showCalendar:l,datePickerPopoverId:c,popoverRef:f,popoverEvents:Y,calendarRef:p,isRange:b,isTimeMode:L,isDateTimeMode:N,is24hr:s.toRef(t,"is24hr"),hideTimeHeader:s.toRef(t,"hideTimeHeader"),timeAccuracy:s.toRef(t,"timeAccuracy"),isDragging:M,inputValue:q,inputEvents:G,dateParts:V,attributes:J,rules:$,move:Ce,moveBy:Oe,moveToValue:ie,updateValue:ue,showPopover:re,hidePopover:se,togglePopover:le,onDayClick:P,onDayKeydown:H,onDayMouseEnter:ee,onPopoverBeforeShow:O,onPopoverAfterShow:y,onPopoverBeforeHide:D,onPopoverAfterHide:I};return s.provide(j0,be),be}function _7(){const t=s.inject(j0);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const E7=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],D7=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function S7(t){const e=_7(),{locale:n,isRange:r,isTimeMode:a,dateParts:i,rules:o,is24hr:l,hideTimeHeader:c,timeAccuracy:d,updateValue:h}=e;function m(j){j=Object.assign(p.value,j);let B=null;if(r.value){const Z=f.value?j:i.value[0],Y=f.value?i.value[1]:j;B={start:Z,end:Y}}else B=j;h(B,{patch:"time",targetPriority:f.value?"start":"end",moveToValue:!0})}const f=s.computed(()=>t.position===0),p=s.computed(()=>i.value[t.position]||{isValid:!1}),E=s.computed(()=>b0(p.value)),k=s.computed(()=>!!p.value.isValid),T=s.computed(()=>!c.value&&k.value),b=s.computed(()=>{if(!E.value)return null;let j=n.value.toDate(p.value);return p.value.hours===24&&(j=new Date(j.getTime()-1)),j}),w=s.computed({get(){return p.value.hours},set(j){m({hours:j})}}),A=s.computed({get(){return p.value.minutes},set(j){m({minutes:j})}}),S=s.computed({get(){return p.value.seconds},set(j){m({seconds:j})}}),N=s.computed({get(){return p.value.milliseconds},set(j){m({milliseconds:j})}}),L=s.computed({get(){return p.value.hours<12},set(j){j=String(j).toLowerCase()=="true";let B=w.value;j&&B>=12?B-=12:!j&&B<12&&(B+=12),m({hours:B})}}),M=s.computed(()=>aP(p.value,o.value[t.position])),F=s.computed(()=>E7.filter(j=>M.value.hours.some(B=>B.value===j.value))),V=s.computed(()=>D7.filter(j=>M.value.hours.some(B=>B.value===j.value))),R=s.computed(()=>l.value?M.value.hours:L.value?F.value:V.value),z=s.computed(()=>{const j=[];return ir(F.value)&&j.push({value:!0,label:"AM"}),ir(V.value)&&j.push({value:!1,label:"PM"}),j});return{...e,showHeader:T,timeAccuracy:d,parts:p,isValid:k,date:b,hours:w,minutes:A,seconds:S,milliseconds:N,options:M,hourOptions:R,isAM:L,isAMOptions:z,is24hr:l}}const k7={key:0,class:"vc-time-header"},I7={class:"vc-time-weekday"},C7={class:"vc-time-month"},N7={class:"vc-time-day"},T7={class:"vc-time-year"},A7={class:"vc-time-select-group"},O7=s.createElementVNode("span",{class:"vc-time-colon"},":",-1),x7=s.createElementVNode("span",{class:"vc-time-colon"},":",-1),L7=s.createElementVNode("span",{class:"vc-time-decimal"},".",-1),R7=s.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const r=S7(t);e(r);const{locale:a,isValid:i,date:o,hours:l,minutes:c,seconds:d,milliseconds:h,options:m,hourOptions:f,isTimeMode:p,isAM:E,isAMOptions:k,is24hr:T,showHeader:b,timeAccuracy:w}=r;return(A,S)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vc-time-picker",[{"vc-invalid":!s.unref(i),"vc-attached":!s.unref(p)}]])},[s.renderSlot(A.$slots,"time-header",{},()=>[s.unref(b)&&s.unref(o)?(s.openBlock(),s.createElementBlock("div",k7,[s.createElementVNode("span",I7,s.toDisplayString(s.unref(a).formatDate(s.unref(o),"WWW")),1),s.createElementVNode("span",C7,s.toDisplayString(s.unref(a).formatDate(s.unref(o),"MMM")),1),s.createElementVNode("span",N7,s.toDisplayString(s.unref(a).formatDate(s.unref(o),"D")),1),s.createElementVNode("span",T7,s.toDisplayString(s.unref(a).formatDate(s.unref(o),"YYYY")),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",A7,[s.createVNode(Fa,{name:"Clock",size:"17"}),s.createVNode(io,{modelValue:s.unref(l),"onUpdate:modelValue":S[0]||(S[0]=N=>s.isRef(l)?l.value=N:null),modelModifiers:{number:!0},options:s.unref(f),"align-right":""},null,8,["modelValue","options"]),s.unref(w)>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[O7,s.createVNode(io,{modelValue:s.unref(c),"onUpdate:modelValue":S[1]||(S[1]=N=>s.isRef(c)?c.value=N:null),modelModifiers:{number:!0},options:s.unref(m).minutes,"align-left":s.unref(w)===2},null,8,["modelValue","options","align-left"])],64)):s.createCommentVNode("",!0),s.unref(w)>2?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[x7,s.createVNode(io,{modelValue:s.unref(d),"onUpdate:modelValue":S[2]||(S[2]=N=>s.isRef(d)?d.value=N:null),modelModifiers:{number:!0},options:s.unref(m).seconds,"align-left":s.unref(w)===3},null,8,["modelValue","options","align-left"])],64)):s.createCommentVNode("",!0),s.unref(w)>3?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[L7,s.createVNode(io,{modelValue:s.unref(h),"onUpdate:modelValue":S[3]||(S[3]=N=>s.isRef(h)?h.value=N:null),modelModifiers:{number:!0},options:s.unref(m).milliseconds,"align-left":""},null,8,["modelValue","options"])],64)):s.createCommentVNode("",!0),s.unref(T)?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(io,{key:3,modelValue:s.unref(E),"onUpdate:modelValue":S[4]||(S[4]=N=>s.isRef(E)?E.value=N:null),options:s.unref(k)},null,8,["modelValue","options"]))])],2))}});s.defineComponent({name:"DatePicker",inheritAttrs:!1,emits:w7,props:v7,setup(t,e){const n=b7(t,e),{slots:r,attrs:a}=e,{isTimeMode:i,isRange:o,isDateTimeMode:l,color:c,displayMode:d,dateParts:h,datePickerPopoverId:m,attributes:f,calendarRef:p,popoverRef:E,showCalendar:k,onDayClick:T,onDayMouseEnter:b,onDayKeydown:w,onPopoverBeforeShow:A,onPopoverAfterShow:S,onPopoverBeforeHide:N,onPopoverAfterHide:L}=n;e.expose(n);const M=s.reactive(a0(n,"calendarRef","popoverRef")),F=()=>(o.value?[0,1]:[0]).map(j=>s.h(R7,{position:j})),V=()=>{if(!h.value)return null;const z=l.value?{...r,footer:F}:r;return s.h(m7,{...a,attributes:f.value,ref:p,onDayclick:T,onDaymouseenter:b,onDaykeydown:w},z)},R=()=>{if(i.value)return s.h("div",{class:`vc-container vc-bordered vc-${c.value} vc-${d.value}`},[F()]);if(k.value)return V()};return r.default?()=>[r.default(M),s.h(Ku,{id:m.value,placement:"bottom-start",class:`vc-date-picker-content vc-${c.value} vc-${d.value}`,ref:E,"onBefore-show":A,"onAfter-show":S,"onBefore-hide":N,"onAfter-hide":L},{default:R})]:R}});/*!
55
+ * shared v9.2.2
56
+ * (c) 2022 kazuya kawaguchi
57
+ * Released under the MIT License.
58
+ */const M7=typeof window!="undefined",P7=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",ei=t=>P7?Symbol(t):t,$7=(t,e,n)=>B7({l:t,k:e,s:n}),B7=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ft=t=>typeof t=="number"&&isFinite(t),F7=t=>Ju(t)==="[object Date]",ti=t=>Ju(t)==="[object RegExp]",al=t=>We(t)&&Object.keys(t).length===0;function z7(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Lt=Object.assign;let Y0;const oo=()=>Y0||(Y0=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function W0(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const V7=Object.prototype.hasOwnProperty;function Zu(t,e){return V7.call(t,e)}const wt=Array.isArray,kt=t=>typeof t=="function",Le=t=>typeof t=="string",ct=t=>typeof t=="boolean",at=t=>t!==null&&typeof t=="object",G0=Object.prototype.toString,Ju=t=>G0.call(t),We=t=>Ju(t)==="[object Object]",U7=t=>t==null?"":wt(t)||We(t)&&t.toString===G0?JSON.stringify(t,null,2):String(t);/*!
59
+ * message-compiler v9.2.2
60
+ * (c) 2022 kazuya kawaguchi
61
+ * Released under the MIT License.
62
+ */const Je={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function il(t,e,n={}){const{domain:r,messages:a,args:i}=n,o=t,l=new SyntaxError(String(o));return l.code=t,e&&(l.location=e),l.domain=r,l}function H7(t){throw t}function j7(t,e,n){return{line:t,column:e,offset:n}}function Xu(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const lr=" ",Y7="\r",Yt=`
63
+ `,W7=String.fromCharCode(8232),G7=String.fromCharCode(8233);function q7(t){const e=t;let n=0,r=1,a=1,i=0;const o=M=>e[M]===Y7&&e[M+1]===Yt,l=M=>e[M]===Yt,c=M=>e[M]===G7,d=M=>e[M]===W7,h=M=>o(M)||l(M)||c(M)||d(M),m=()=>n,f=()=>r,p=()=>a,E=()=>i,k=M=>o(M)||c(M)||d(M)?Yt:e[M],T=()=>k(n),b=()=>k(n+i);function w(){return i=0,h(n)&&(r++,a=0),o(n)&&n++,n++,a++,e[n]}function A(){return o(n+i)&&i++,i++,e[n+i]}function S(){n=0,r=1,a=1,i=0}function N(M=0){i=M}function L(){const M=n+i;for(;M!==n;)w();i=0}return{index:m,line:f,column:p,peekOffset:E,charAt:k,currentChar:T,currentPeek:b,next:w,peek:A,reset:S,resetPeek:N,skipToPeek:L}}const Nr=void 0,q0="'",K7="tokenizer";function Z7(t,e={}){const n=e.location!==!1,r=q7(t),a=()=>r.index(),i=()=>j7(r.line(),r.column(),r.index()),o=i(),l=a(),c={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:h}=e;function m(_,g,x,...X){const ce=d();if(g.column+=x,g.offset+=x,h){const me=Xu(ce.startLoc,g),K=il(_,me,{domain:K7,args:X});h(K)}}function f(_,g,x){_.endLoc=i(),_.currentType=g;const X={type:g};return n&&(X.loc=Xu(_.startLoc,_.endLoc)),x!=null&&(X.value=x),X}const p=_=>f(_,14);function E(_,g){return _.currentChar()===g?(_.next(),g):(m(Je.EXPECTED_TOKEN,i(),0,g),"")}function k(_){let g="";for(;_.currentPeek()===lr||_.currentPeek()===Yt;)g+=_.currentPeek(),_.peek();return g}function T(_){const g=k(_);return _.skipToPeek(),g}function b(_){if(_===Nr)return!1;const g=_.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function w(_){if(_===Nr)return!1;const g=_.charCodeAt(0);return g>=48&&g<=57}function A(_,g){const{currentType:x}=g;if(x!==2)return!1;k(_);const X=b(_.currentPeek());return _.resetPeek(),X}function S(_,g){const{currentType:x}=g;if(x!==2)return!1;k(_);const X=_.currentPeek()==="-"?_.peek():_.currentPeek(),ce=w(X);return _.resetPeek(),ce}function N(_,g){const{currentType:x}=g;if(x!==2)return!1;k(_);const X=_.currentPeek()===q0;return _.resetPeek(),X}function L(_,g){const{currentType:x}=g;if(x!==8)return!1;k(_);const X=_.currentPeek()===".";return _.resetPeek(),X}function M(_,g){const{currentType:x}=g;if(x!==9)return!1;k(_);const X=b(_.currentPeek());return _.resetPeek(),X}function F(_,g){const{currentType:x}=g;if(!(x===8||x===12))return!1;k(_);const X=_.currentPeek()===":";return _.resetPeek(),X}function V(_,g){const{currentType:x}=g;if(x!==10)return!1;const X=()=>{const me=_.currentPeek();return me==="{"?b(_.peek()):me==="@"||me==="%"||me==="|"||me===":"||me==="."||me===lr||!me?!1:me===Yt?(_.peek(),X()):b(me)},ce=X();return _.resetPeek(),ce}function R(_){k(_);const g=_.currentPeek()==="|";return _.resetPeek(),g}function z(_){const g=k(_),x=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:x,hasSpace:g.length>0}}function j(_,g=!0){const x=(ce=!1,me="",K=!1)=>{const v=_.currentPeek();return v==="{"?me==="%"?!1:ce:v==="@"||!v?me==="%"?!0:ce:v==="%"?(_.peek(),x(ce,"%",!0)):v==="|"?me==="%"||K?!0:!(me===lr||me===Yt):v===lr?(_.peek(),x(!0,lr,K)):v===Yt?(_.peek(),x(!0,Yt,K)):!0},X=x();return g&&_.resetPeek(),X}function B(_,g){const x=_.currentChar();return x===Nr?Nr:g(x)?(_.next(),x):null}function Z(_){return B(_,x=>{const X=x.charCodeAt(0);return X>=97&&X<=122||X>=65&&X<=90||X>=48&&X<=57||X===95||X===36})}function Y(_){return B(_,x=>{const X=x.charCodeAt(0);return X>=48&&X<=57})}function q(_){return B(_,x=>{const X=x.charCodeAt(0);return X>=48&&X<=57||X>=65&&X<=70||X>=97&&X<=102})}function G(_){let g="",x="";for(;g=Y(_);)x+=g;return x}function ne(_){T(_);const g=_.currentChar();return g!=="%"&&m(Je.EXPECTED_TOKEN,i(),0,g),_.next(),"%"}function oe(_){let g="";for(;;){const x=_.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x==="%")if(j(_))g+=x,_.next();else break;else if(x===lr||x===Yt)if(j(_))g+=x,_.next();else{if(R(_))break;g+=x,_.next()}else g+=x,_.next()}return g}function J(_){T(_);let g="",x="";for(;g=Z(_);)x+=g;return _.currentChar()===Nr&&m(Je.UNTERMINATED_CLOSING_BRACE,i(),0),x}function $(_){T(_);let g="";return _.currentChar()==="-"?(_.next(),g+=`-${G(_)}`):g+=G(_),_.currentChar()===Nr&&m(Je.UNTERMINATED_CLOSING_BRACE,i(),0),g}function Q(_){T(_),E(_,"'");let g="",x="";const X=me=>me!==q0&&me!==Yt;for(;g=B(_,X);)g==="\\"?x+=ae(_):x+=g;const ce=_.currentChar();return ce===Yt||ce===Nr?(m(Je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ce===Yt&&(_.next(),E(_,"'")),x):(E(_,"'"),x)}function ae(_){const g=_.currentChar();switch(g){case"\\":case"'":return _.next(),`\\${g}`;case"u":return W(_,g,4);case"U":return W(_,g,6);default:return m(Je.UNKNOWN_ESCAPE_SEQUENCE,i(),0,g),""}}function W(_,g,x){E(_,g);let X="";for(let ce=0;ce<x;ce++){const me=q(_);if(!me){m(Je.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${g}${X}${_.currentChar()}`);break}X+=me}return`\\${g}${X}`}function Ee(_){T(_);let g="",x="";const X=ce=>ce!=="{"&&ce!=="}"&&ce!==lr&&ce!==Yt;for(;g=B(_,X);)x+=g;return x}function _e(_){let g="",x="";for(;g=Z(_);)x+=g;return x}function Te(_){const g=(x=!1,X)=>{const ce=_.currentChar();return ce==="{"||ce==="%"||ce==="@"||ce==="|"||!ce||ce===lr?X:ce===Yt?(X+=ce,_.next(),g(x,X)):(X+=ce,_.next(),g(!0,X))};return g(!1,"")}function De(_){T(_);const g=E(_,"|");return T(_),g}function Ne(_,g){let x=null;switch(_.currentChar()){case"{":return g.braceNest>=1&&m(Je.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),x=f(g,2,"{"),T(_),g.braceNest++,x;case"}":return g.braceNest>0&&g.currentType===2&&m(Je.EMPTY_PLACEHOLDER,i(),0),_.next(),x=f(g,3,"}"),g.braceNest--,g.braceNest>0&&T(_),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),x;case"@":return g.braceNest>0&&m(Je.UNTERMINATED_CLOSING_BRACE,i(),0),x=Ae(_,g)||p(g),g.braceNest=0,x;default:let ce=!0,me=!0,K=!0;if(R(_))return g.braceNest>0&&m(Je.UNTERMINATED_CLOSING_BRACE,i(),0),x=f(g,1,De(_)),g.braceNest=0,g.inLinked=!1,x;if(g.braceNest>0&&(g.currentType===5||g.currentType===6||g.currentType===7))return m(Je.UNTERMINATED_CLOSING_BRACE,i(),0),g.braceNest=0,te(_,g);if(ce=A(_,g))return x=f(g,5,J(_)),T(_),x;if(me=S(_,g))return x=f(g,6,$(_)),T(_),x;if(K=N(_,g))return x=f(g,7,Q(_)),T(_),x;if(!ce&&!me&&!K)return x=f(g,13,Ee(_)),m(Je.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),T(_),x;break}return x}function Ae(_,g){const{currentType:x}=g;let X=null;const ce=_.currentChar();switch((x===8||x===9||x===12||x===10)&&(ce===Yt||ce===lr)&&m(Je.INVALID_LINKED_FORMAT,i(),0),ce){case"@":return _.next(),X=f(g,8,"@"),g.inLinked=!0,X;case".":return T(_),_.next(),f(g,9,".");case":":return T(_),_.next(),f(g,10,":");default:return R(_)?(X=f(g,1,De(_)),g.braceNest=0,g.inLinked=!1,X):L(_,g)||F(_,g)?(T(_),Ae(_,g)):M(_,g)?(T(_),f(g,12,_e(_))):V(_,g)?(T(_),ce==="{"?Ne(_,g)||X:f(g,11,Te(_))):(x===8&&m(Je.INVALID_LINKED_FORMAT,i(),0),g.braceNest=0,g.inLinked=!1,te(_,g))}}function te(_,g){let x={type:14};if(g.braceNest>0)return Ne(_,g)||p(g);if(g.inLinked)return Ae(_,g)||p(g);switch(_.currentChar()){case"{":return Ne(_,g)||p(g);case"}":return m(Je.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),f(g,3,"}");case"@":return Ae(_,g)||p(g);default:if(R(_))return x=f(g,1,De(_)),g.braceNest=0,g.inLinked=!1,x;const{isModulo:ce,hasSpace:me}=z(_);if(ce)return me?f(g,0,oe(_)):f(g,4,ne(_));if(j(_))return f(g,0,oe(_));break}return x}function ue(){const{currentType:_,offset:g,startLoc:x,endLoc:X}=c;return c.lastType=_,c.lastOffset=g,c.lastStartLoc=x,c.lastEndLoc=X,c.offset=a(),c.startLoc=i(),r.currentChar()===Nr?f(c,14):te(r,c)}return{nextToken:ue,currentOffset:a,currentPosition:i,context:d}}const J7="parser",X7=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Q7(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function e$(t={}){const e=t.location!==!1,{onError:n}=t;function r(b,w,A,S,...N){const L=b.currentPosition();if(L.offset+=S,L.column+=S,n){const M=Xu(A,L),F=il(w,M,{domain:J7,args:N});n(F)}}function a(b,w,A){const S={type:b,start:w,end:w};return e&&(S.loc={start:A,end:A}),S}function i(b,w,A,S){b.end=w,S&&(b.type=S),e&&b.loc&&(b.loc.end=A)}function o(b,w){const A=b.context(),S=a(3,A.offset,A.startLoc);return S.value=w,i(S,b.currentOffset(),b.currentPosition()),S}function l(b,w){const A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(5,S,N);return L.index=parseInt(w,10),b.nextToken(),i(L,b.currentOffset(),b.currentPosition()),L}function c(b,w){const A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(4,S,N);return L.key=w,b.nextToken(),i(L,b.currentOffset(),b.currentPosition()),L}function d(b,w){const A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(9,S,N);return L.value=w.replace(X7,Q7),b.nextToken(),i(L,b.currentOffset(),b.currentPosition()),L}function h(b){const w=b.nextToken(),A=b.context(),{lastOffset:S,lastStartLoc:N}=A,L=a(8,S,N);return w.type!==12?(r(b,Je.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),L.value="",i(L,S,N),{nextConsumeToken:w,node:L}):(w.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,$n(w)),L.value=w.value||"",i(L,b.currentOffset(),b.currentPosition()),{node:L})}function m(b,w){const A=b.context(),S=a(7,A.offset,A.startLoc);return S.value=w,i(S,b.currentOffset(),b.currentPosition()),S}function f(b){const w=b.context(),A=a(6,w.offset,w.startLoc);let S=b.nextToken();if(S.type===9){const N=h(b);A.modifier=N.node,S=N.nextConsumeToken||b.nextToken()}switch(S.type!==10&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(S)),S=b.nextToken(),S.type===2&&(S=b.nextToken()),S.type){case 11:S.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(S)),A.key=m(b,S.value||"");break;case 5:S.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(S)),A.key=c(b,S.value||"");break;case 6:S.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(S)),A.key=l(b,S.value||"");break;case 7:S.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(S)),A.key=d(b,S.value||"");break;default:r(b,Je.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const N=b.context(),L=a(7,N.offset,N.startLoc);return L.value="",i(L,N.offset,N.startLoc),A.key=L,i(A,N.offset,N.startLoc),{nextConsumeToken:S,node:A}}return i(A,b.currentOffset(),b.currentPosition()),{node:A}}function p(b){const w=b.context(),A=w.currentType===1?b.currentOffset():w.offset,S=w.currentType===1?w.endLoc:w.startLoc,N=a(2,A,S);N.items=[];let L=null;do{const V=L||b.nextToken();switch(L=null,V.type){case 0:V.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(V)),N.items.push(o(b,V.value||""));break;case 6:V.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(V)),N.items.push(l(b,V.value||""));break;case 5:V.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(V)),N.items.push(c(b,V.value||""));break;case 7:V.value==null&&r(b,Je.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,$n(V)),N.items.push(d(b,V.value||""));break;case 8:const R=f(b);N.items.push(R.node),L=R.nextConsumeToken||null;break}}while(w.currentType!==14&&w.currentType!==1);const M=w.currentType===1?w.lastOffset:b.currentOffset(),F=w.currentType===1?w.lastEndLoc:b.currentPosition();return i(N,M,F),N}function E(b,w,A,S){const N=b.context();let L=S.items.length===0;const M=a(1,w,A);M.cases=[],M.cases.push(S);do{const F=p(b);L||(L=F.items.length===0),M.cases.push(F)}while(N.currentType!==14);return L&&r(b,Je.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(M,b.currentOffset(),b.currentPosition()),M}function k(b){const w=b.context(),{offset:A,startLoc:S}=w,N=p(b);return w.currentType===14?N:E(b,A,S,N)}function T(b){const w=Z7(b,Lt({},t)),A=w.context(),S=a(0,A.offset,A.startLoc);return e&&S.loc&&(S.loc.source=b),S.body=k(w),A.currentType!==14&&r(w,Je.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,b[A.offset]||""),i(S,w.currentOffset(),w.currentPosition()),S}return{parse:T}}function $n(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function t$(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function K0(t,e){for(let n=0;n<t.length;n++)Qu(t[n],e)}function Qu(t,e){switch(t.type){case 1:K0(t.cases,e),e.helper("plural");break;case 2:K0(t.items,e);break;case 6:Qu(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function n$(t,e={}){const n=t$(t);n.helper("normalize"),t.body&&Qu(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function r$(t,e){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},l=()=>o;function c(k,T){o.code+=k}function d(k,T=!0){const b=T?a:"";c(i?b+" ".repeat(k):b)}function h(k=!0){const T=++o.indentLevel;k&&d(T)}function m(k=!0){const T=--o.indentLevel;k&&d(T)}function f(){d(o.indentLevel)}return{context:l,push:c,indent:h,deindent:m,newline:f,helper:k=>`_${k}`,needIndent:()=>o.needIndent}}function a$(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),ni(t,e.key),e.modifier?(t.push(", "),ni(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function i$(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const a=e.items.length;for(let i=0;i<a&&(ni(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function o$(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const a=e.cases.length;for(let i=0;i<a&&(ni(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function s$(t,e){e.body?ni(t,e.body):t.push("null")}function ni(t,e){const{helper:n}=t;switch(e.type){case 0:s$(t,e);break;case 1:o$(t,e);break;case 2:i$(t,e);break;case 6:a$(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const l$=(t,e={})=>{const n=Le(e.mode)?e.mode:"normal",r=Le(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
64
+ `,o=e.needIndent?e.needIndent:n!=="arrow",l=t.helpers||[],c=r$(t,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),l.length>0&&(c.push(`const { ${l.map(m=>`${m}: _${m}`).join(", ")} } = ctx`),c.newline()),c.push("return "),ni(c,t),c.deindent(o),c.push("}");const{code:d,map:h}=c.context();return{ast:t,code:d,map:h?h.toJSON():void 0}};function c$(t,e={}){const n=Lt({},e),a=e$(n).parse(t);return n$(a,n),l$(a,n)}/*!
65
+ * devtools-if v9.2.2
66
+ * (c) 2022 kazuya kawaguchi
67
+ * Released under the MIT License.
68
+ */const Z0={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
69
+ * core-base v9.2.2
70
+ * (c) 2022 kazuya kawaguchi
71
+ * Released under the MIT License.
72
+ */const Tr=[];Tr[0]={w:[0],i:[3,0],["["]:[4],o:[7]},Tr[1]={w:[1],["."]:[2],["["]:[4],o:[7]},Tr[2]={w:[2],i:[3,0],[0]:[3,0]},Tr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},Tr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},Tr[5]={["'"]:[4,0],o:8,l:[5,0]},Tr[6]={['"']:[4,0],o:8,l:[6,0]};const u$=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function d$(t){return u$.test(t)}function h$(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function f$(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function m$(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:d$(e)?h$(e):"*"+e}function p$(t){const e=[];let n=-1,r=0,a=0,i,o,l,c,d,h,m;const f=[];f[0]=()=>{o===void 0?o=l:o+=l},f[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},f[2]=()=>{f[0](),a++},f[3]=()=>{if(a>0)a--,r=4,f[0]();else{if(a=0,o===void 0||(o=m$(o),o===!1))return!1;f[1]()}};function p(){const E=t[n+1];if(r===5&&E==="'"||r===6&&E==='"')return n++,l="\\"+E,f[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(c=f$(i),m=Tr[r],d=m[c]||m.l||8,d===8||(r=d[0],d[1]!==void 0&&(h=f[d[1]],h&&(l=i,h()===!1))))return;if(r===7)return e}}const J0=new Map;function g$(t,e){return at(t)?t[e]:null}function y$(t,e){if(!at(t))return null;let n=J0.get(e);if(n||(n=p$(e),n&&J0.set(e,n)),!n)return null;const r=n.length;let a=t,i=0;for(;i<r;){const o=a[n[i]];if(o===void 0)return null;a=o,i++}return a}const v$=t=>t,w$=t=>"",b$="text",_$=t=>t.length===0?"":t.join(""),E$=U7;function X0(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function D$(t){const e=Ft(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ft(t.named.count)||Ft(t.named.n))?Ft(t.named.count)?t.named.count:Ft(t.named.n)?t.named.n:e:e}function S$(t,e){e.count||(e.count=t),e.n||(e.n=t)}function k$(t={}){const e=t.locale,n=D$(t),r=at(t.pluralRules)&&Le(e)&&kt(t.pluralRules[e])?t.pluralRules[e]:X0,a=at(t.pluralRules)&&Le(e)&&kt(t.pluralRules[e])?X0:void 0,i=b=>b[r(n,b.length,a)],o=t.list||[],l=b=>o[b],c=t.named||{};Ft(t.pluralIndex)&&S$(n,c);const d=b=>c[b];function h(b){const w=kt(t.messages)?t.messages(b):at(t.messages)?t.messages[b]:!1;return w||(t.parent?t.parent.message(b):w$)}const m=b=>t.modifiers?t.modifiers[b]:v$,f=We(t.processor)&&kt(t.processor.normalize)?t.processor.normalize:_$,p=We(t.processor)&&kt(t.processor.interpolate)?t.processor.interpolate:E$,E=We(t.processor)&&Le(t.processor.type)?t.processor.type:b$,T={list:l,named:d,plural:i,linked:(b,...w)=>{const[A,S]=w;let N="text",L="";w.length===1?at(A)?(L=A.modifier||L,N=A.type||N):Le(A)&&(L=A||L):w.length===2&&(Le(A)&&(L=A||L),Le(S)&&(N=S||N));let M=h(b)(T);return N==="vnode"&&wt(M)&&L&&(M=M[0]),L?m(L)(M,N):M},message:h,type:E,interpolate:p,normalize:f};return T}let so=null;function I$(t){so=t}function C$(t,e,n){so&&so.emit(Z0.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const N$=T$(Z0.FunctionTranslate);function T$(t){return e=>so&&so.emit(t,e)}function A$(t,e,n){return[...new Set([n,...wt(e)?e:at(e)?Object.keys(e):Le(e)?[e]:[n]])]}function Q0(t,e,n){const r=Le(n)?n:sl,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;wt(o);)o=e1(i,o,e);const l=wt(e)||!We(e)?e:e.default?e.default:null;o=Le(l)?[l]:l,wt(o)&&e1(i,o,!1),a.__localeChainCache.set(r,i)}return i}function e1(t,e,n){let r=!0;for(let a=0;a<e.length&&ct(r);a++){const i=e[a];Le(i)&&(r=O$(t,e[a],n))}return r}function O$(t,e,n){let r;const a=e.split("-");do{const i=a.join("-");r=x$(t,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function x$(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),(wt(n)||We(n))&&n[a]&&(r=n[a])}return r}const L$="9.2.2",ol=-1,sl="en-US",t1="",n1=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function R$(){return{upper:(t,e)=>e==="text"&&Le(t)?t.toUpperCase():e==="vnode"&&at(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Le(t)?t.toLowerCase():e==="vnode"&&at(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Le(t)?n1(t):e==="vnode"&&at(t)&&"__v_isVNode"in t?n1(t.children):t}}let r1;function M$(t){r1=t}let a1;function P$(t){a1=t}let i1;function $$(t){i1=t}let o1=null;const s1=t=>{o1=t},B$=()=>o1;let l1=null;const c1=t=>{l1=t},F$=()=>l1;let u1=0;function z$(t={}){const e=Le(t.version)?t.version:L$,n=Le(t.locale)?t.locale:sl,r=wt(t.fallbackLocale)||We(t.fallbackLocale)||Le(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=We(t.messages)?t.messages:{[n]:{}},i=We(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=We(t.numberFormats)?t.numberFormats:{[n]:{}},l=Lt({},t.modifiers||{},R$()),c=t.pluralRules||{},d=kt(t.missing)?t.missing:null,h=ct(t.missingWarn)||ti(t.missingWarn)?t.missingWarn:!0,m=ct(t.fallbackWarn)||ti(t.fallbackWarn)?t.fallbackWarn:!0,f=!!t.fallbackFormat,p=!!t.unresolving,E=kt(t.postTranslation)?t.postTranslation:null,k=We(t.processor)?t.processor:null,T=ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,w=kt(t.messageCompiler)?t.messageCompiler:r1,A=kt(t.messageResolver)?t.messageResolver:a1||g$,S=kt(t.localeFallbacker)?t.localeFallbacker:i1||A$,N=at(t.fallbackContext)?t.fallbackContext:void 0,L=kt(t.onWarn)?t.onWarn:z7,M=t,F=at(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,V=at(M.__numberFormatters)?M.__numberFormatters:new Map,R=at(M.__meta)?M.__meta:{};u1++;const z={version:e,cid:u1,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:d,missingWarn:h,fallbackWarn:m,fallbackFormat:f,unresolving:p,postTranslation:E,processor:k,warnHtmlMessage:T,escapeParameter:b,messageCompiler:w,messageResolver:A,localeFallbacker:S,fallbackContext:N,onWarn:L,__meta:R};return z.datetimeFormats=i,z.numberFormats=o,z.__datetimeFormatters=F,z.__numberFormatters=V,__INTLIFY_PROD_DEVTOOLS__&&C$(z,e,R),z}function ed(t,e,n,r,a){const{missing:i,onWarn:o}=t;if(i!==null){const l=i(t,n,e,a);return Le(l)?l:e}else return e}function lo(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const V$=t=>t;let d1=Object.create(null);function U$(t,e={}){{const r=(e.onCacheKey||V$)(t),a=d1[r];if(a)return a;let i=!1;const o=e.onError||H7;e.onError=d=>{i=!0,o(d)};const{code:l}=c$(t,e),c=new Function(`return ${l}`)();return i?c:d1[r]=c}}let h1=Je.__EXTEND_POINT__;const td=()=>++h1,ri={INVALID_ARGUMENT:h1,INVALID_DATE_ARGUMENT:td(),INVALID_ISO_DATE_ARGUMENT:td(),__EXTEND_POINT__:td()};function ai(t){return il(t,null,void 0)}const f1=()=>"",Bn=t=>kt(t);function m1(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:l}=t,[c,d]=nd(...e),h=ct(d.missingWarn)?d.missingWarn:t.missingWarn,m=ct(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,f=ct(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,E=Le(d.default)||ct(d.default)?ct(d.default)?i?c:()=>c:d.default:n?i?c:()=>c:"",k=n||E!=="",T=Le(d.locale)?d.locale:t.locale;f&&H$(d);let[b,w,A]=p?[c,T,l[T]||{}]:p1(t,c,T,o,m,h),S=b,N=c;if(!p&&!(Le(S)||Bn(S))&&k&&(S=E,N=S),!p&&(!(Le(S)||Bn(S))||!Le(w)))return a?ol:c;let L=!1;const M=()=>{L=!0},F=Bn(S)?S:g1(t,c,w,S,N,M);if(L)return S;const V=W$(t,w,A,d),R=k$(V),z=j$(t,F,R),j=r?r(z,c):z;if(__INTLIFY_PROD_DEVTOOLS__){const B={timestamp:Date.now(),key:Le(c)?c:Bn(S)?S.key:"",locale:w||(Bn(S)?S.locale:""),format:Le(S)?S:Bn(S)?S.source:"",message:j};B.meta=Lt({},t.__meta,B$()||{}),N$(B)}return j}function H$(t){wt(t.list)?t.list=t.list.map(e=>Le(e)?W0(e):e):at(t.named)&&Object.keys(t.named).forEach(e=>{Le(t.named[e])&&(t.named[e]=W0(t.named[e]))})}function p1(t,e,n,r,a,i){const{messages:o,onWarn:l,messageResolver:c,localeFallbacker:d}=t,h=d(t,r,n);let m={},f,p=null;const E="translate";for(let k=0;k<h.length&&(f=h[k],m=o[f]||{},(p=c(m,e))===null&&(p=m[e]),!(Le(p)||kt(p)));k++){const T=ed(t,e,f,i,E);T!==e&&(p=T)}return[p,f,m]}function g1(t,e,n,r,a,i){const{messageCompiler:o,warnHtmlMessage:l}=t;if(Bn(r)){const d=r;return d.locale=d.locale||n,d.key=d.key||e,d}if(o==null){const d=()=>r;return d.locale=n,d.key=e,d}const c=o(r,Y$(t,n,a,r,l,i));return c.locale=n,c.key=e,c.source=r,c}function j$(t,e,n){return e(n)}function nd(...t){const[e,n,r]=t,a={};if(!Le(e)&&!Ft(e)&&!Bn(e))throw ai(ri.INVALID_ARGUMENT);const i=Ft(e)?String(e):(Bn(e),e);return Ft(n)?a.plural=n:Le(n)?a.default=n:We(n)&&!al(n)?a.named=n:wt(n)&&(a.list=n),Ft(r)?a.plural=r:Le(r)?a.default=r:We(r)&&Lt(a,r),[i,a]}function Y$(t,e,n,r,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>$7(e,n,o)}}function W$(t,e,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:d,fallbackContext:h}=t,f={locale:e,modifiers:a,pluralRules:i,messages:p=>{let E=o(n,p);if(E==null&&h){const[,,k]=p1(h,p,e,l,c,d);E=o(k,p)}if(Le(E)){let k=!1;const b=g1(t,p,e,E,p,()=>{k=!0});return k?f1:b}else return Bn(E)?E:f1}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),Ft(r.plural)&&(f.pluralIndex=r.plural),f}function y1(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:l}=t,[c,d,h,m]=rd(...e),f=ct(h.missingWarn)?h.missingWarn:t.missingWarn;ct(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const p=!!h.part,E=Le(h.locale)?h.locale:t.locale,k=o(t,a,E);if(!Le(c)||c==="")return new Intl.DateTimeFormat(E,m).format(d);let T={},b,w=null;const A="datetime format";for(let L=0;L<k.length&&(b=k[L],T=n[b]||{},w=T[c],!We(w));L++)ed(t,c,b,f,A);if(!We(w)||!Le(b))return r?ol:c;let S=`${b}__${c}`;al(m)||(S=`${S}__${JSON.stringify(m)}`);let N=l.get(S);return N||(N=new Intl.DateTimeFormat(b,Lt({},w,m)),l.set(S,N)),p?N.formatToParts(d):N.format(d)}const v1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function rd(...t){const[e,n,r,a]=t,i={};let o={},l;if(Le(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw ai(ri.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(d);try{l.toISOString()}catch{throw ai(ri.INVALID_ISO_DATE_ARGUMENT)}}else if(F7(e)){if(isNaN(e.getTime()))throw ai(ri.INVALID_DATE_ARGUMENT);l=e}else if(Ft(e))l=e;else throw ai(ri.INVALID_ARGUMENT);return Le(n)?i.key=n:We(n)&&Object.keys(n).forEach(c=>{v1.includes(c)?o[c]=n[c]:i[c]=n[c]}),Le(r)?i.locale=r:We(r)&&(o=r),We(a)&&(o=a),[i.key||"",l,i,o]}function w1(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__datetimeFormatters.has(i)||r.__datetimeFormatters.delete(i)}}function b1(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:l}=t,[c,d,h,m]=ad(...e),f=ct(h.missingWarn)?h.missingWarn:t.missingWarn;ct(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const p=!!h.part,E=Le(h.locale)?h.locale:t.locale,k=o(t,a,E);if(!Le(c)||c==="")return new Intl.NumberFormat(E,m).format(d);let T={},b,w=null;const A="number format";for(let L=0;L<k.length&&(b=k[L],T=n[b]||{},w=T[c],!We(w));L++)ed(t,c,b,f,A);if(!We(w)||!Le(b))return r?ol:c;let S=`${b}__${c}`;al(m)||(S=`${S}__${JSON.stringify(m)}`);let N=l.get(S);return N||(N=new Intl.NumberFormat(b,Lt({},w,m)),l.set(S,N)),p?N.formatToParts(d):N.format(d)}const _1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ad(...t){const[e,n,r,a]=t,i={};let o={};if(!Ft(e))throw ai(ri.INVALID_ARGUMENT);const l=e;return Le(n)?i.key=n:We(n)&&Object.keys(n).forEach(c=>{_1.includes(c)?o[c]=n[c]:i[c]=n[c]}),Le(r)?i.locale=r:We(r)&&(o=r),We(a)&&(o=a),[i.key||"",l,i,o]}function E1(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;!r.__numberFormatters.has(i)||r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(oo().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
73
+ * vue-i18n v9.2.2
74
+ * (c) 2022 kazuya kawaguchi
75
+ * Released under the MIT License.
76
+ */const G$="9.2.2";function q$(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(oo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(oo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(oo().__INTLIFY_PROD_DEVTOOLS__=!1)}let D1=Je.__EXTEND_POINT__;const Qt=()=>++D1,Fn={UNEXPECTED_RETURN_TYPE:D1,INVALID_ARGUMENT:Qt(),MUST_BE_CALL_SETUP_TOP:Qt(),NOT_INSLALLED:Qt(),NOT_AVAILABLE_IN_LEGACY_MODE:Qt(),REQUIRED_VALUE:Qt(),INVALID_VALUE:Qt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Qt(),NOT_INSLALLED_WITH_PROVIDE:Qt(),UNEXPECTED_ERROR:Qt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Qt(),BRIDGE_SUPPORT_VUE_2_ONLY:Qt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Qt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Qt(),__EXTEND_POINT__:Qt()};function cr(t,...e){return il(t,null,void 0)}const id=ei("__transrateVNode"),od=ei("__datetimeParts"),sd=ei("__numberParts"),K$=ei("__setPluralRules"),S1=ei("__injectWithOption");function ld(t){if(!at(t))return t;for(const e in t)if(!!Zu(t,e))if(!e.includes("."))at(t[e])&&ld(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i<r;i++)n[i]in a||(a[n[i]]={}),a=a[n[i]];a[n[r]]=t[e],delete t[e],at(a[n[r]])&&ld(a[n[r]])}return t}function cd(t,e){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=e,o=We(n)?n:wt(r)?{}:{[t]:{}};if(wt(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:d}=l;c?(o[c]=o[c]||{},co(d,o[c])):co(d,o)}else Le(l)&&co(JSON.parse(l),o)}),a==null&&i)for(const l in o)Zu(o,l)&&ld(o[l]);return o}const ll=t=>!at(t)||wt(t);function co(t,e){if(ll(t)||ll(e))throw cr(Fn.INVALID_VALUE);for(const n in t)Zu(t,n)&&(ll(t[n])||ll(e[n])?e[n]=t[n]:co(t[n],e[n]))}function k1(t){return t.type}function Z$(t,e,n){let r=at(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=cd(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(at(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(at(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function I1(t){return s.createVNode(s.Text,null,t,0)}const C1="__INTLIFY_META__";let N1=0;function T1(t){return(e,n,r,a)=>t(n,r,s.getCurrentInstance()||void 0,a)}const J$=()=>{const t=s.getCurrentInstance();let e=null;return t&&(e=k1(t)[C1])?{[C1]:e}:null};function X$(t={},e){const{__root:n}=t,r=n===void 0;let a=ct(t.inheritLocale)?t.inheritLocale:!0;const i=s.ref(n&&a?n.locale.value:Le(t.locale)?t.locale:sl),o=s.ref(n&&a?n.fallbackLocale.value:Le(t.fallbackLocale)||wt(t.fallbackLocale)||We(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),l=s.ref(cd(i.value,t)),c=s.ref(We(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),d=s.ref(We(t.numberFormats)?t.numberFormats:{[i.value]:{}});let h=n?n.missingWarn:ct(t.missingWarn)||ti(t.missingWarn)?t.missingWarn:!0,m=n?n.fallbackWarn:ct(t.fallbackWarn)||ti(t.fallbackWarn)?t.fallbackWarn:!0,f=n?n.fallbackRoot:ct(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,E=kt(t.missing)?t.missing:null,k=kt(t.missing)?T1(t.missing):null,T=kt(t.postTranslation)?t.postTranslation:null,b=n?n.warnHtmlMessage:ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,w=!!t.escapeParameter;const A=n?n.modifiers:We(t.modifiers)?t.modifiers:{};let S=t.pluralRules||n&&n.pluralRules,N;N=(()=>{r&&c1(null);const y={version:G$,locale:i.value,fallbackLocale:o.value,messages:l.value,modifiers:A,pluralRules:S,missing:k===null?void 0:k,missingWarn:h,fallbackWarn:m,fallbackFormat:p,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:b,escapeParameter:w,messageResolver:t.messageResolver,__meta:{framework:"vue"}};y.datetimeFormats=c.value,y.numberFormats=d.value,y.__datetimeFormatters=We(N)?N.__datetimeFormatters:void 0,y.__numberFormatters=We(N)?N.__numberFormatters:void 0;const D=z$(y);return r&&c1(D),D})(),lo(N,i.value,o.value);function M(){return[i.value,o.value,l.value,c.value,d.value]}const F=s.computed({get:()=>i.value,set:y=>{i.value=y,N.locale=i.value}}),V=s.computed({get:()=>o.value,set:y=>{o.value=y,N.fallbackLocale=o.value,lo(N,i.value,y)}}),R=s.computed(()=>l.value),z=s.computed(()=>c.value),j=s.computed(()=>d.value);function B(){return kt(T)?T:null}function Z(y){T=y,N.postTranslation=y}function Y(){return E}function q(y){y!==null&&(k=T1(y)),E=y,N.missing=k}const G=(y,D,I,C,P,H)=>{M();let ee;if(__INTLIFY_PROD_DEVTOOLS__)try{s1(J$()),r||(N.fallbackContext=n?F$():void 0),ee=y(N)}finally{s1(null),r||(N.fallbackContext=void 0)}else ee=y(N);if(Ft(ee)&&ee===ol){const[re,se]=D();return n&&f?C(n):P(re)}else{if(H(ee))return ee;throw cr(Fn.UNEXPECTED_RETURN_TYPE)}};function ne(...y){return G(D=>Reflect.apply(m1,null,[D,...y]),()=>nd(...y),"translate",D=>Reflect.apply(D.t,D,[...y]),D=>D,D=>Le(D))}function oe(...y){const[D,I,C]=y;if(C&&!at(C))throw cr(Fn.INVALID_ARGUMENT);return ne(D,I,Lt({resolvedMessage:!0},C||{}))}function J(...y){return G(D=>Reflect.apply(y1,null,[D,...y]),()=>rd(...y),"datetime format",D=>Reflect.apply(D.d,D,[...y]),()=>t1,D=>Le(D))}function $(...y){return G(D=>Reflect.apply(b1,null,[D,...y]),()=>ad(...y),"number format",D=>Reflect.apply(D.n,D,[...y]),()=>t1,D=>Le(D))}function Q(y){return y.map(D=>Le(D)||Ft(D)||ct(D)?I1(String(D)):D)}const W={normalize:Q,interpolate:y=>y,type:"vnode"};function Ee(...y){return G(D=>{let I;const C=D;try{C.processor=W,I=Reflect.apply(m1,null,[C,...y])}finally{C.processor=null}return I},()=>nd(...y),"translate",D=>D[id](...y),D=>[I1(D)],D=>wt(D))}function _e(...y){return G(D=>Reflect.apply(b1,null,[D,...y]),()=>ad(...y),"number format",D=>D[sd](...y),()=>[],D=>Le(D)||wt(D))}function Te(...y){return G(D=>Reflect.apply(y1,null,[D,...y]),()=>rd(...y),"datetime format",D=>D[od](...y),()=>[],D=>Le(D)||wt(D))}function De(y){S=y,N.pluralRules=S}function Ne(y,D){const I=Le(D)?D:i.value,C=ue(I);return N.messageResolver(C,y)!==null}function Ae(y){let D=null;const I=Q0(N,o.value,i.value);for(let C=0;C<I.length;C++){const P=l.value[I[C]]||{},H=N.messageResolver(P,y);if(H!=null){D=H;break}}return D}function te(y){const D=Ae(y);return D!=null?D:n?n.tm(y)||{}:{}}function ue(y){return l.value[y]||{}}function _(y,D){l.value[y]=D,N.messages=l.value}function g(y,D){l.value[y]=l.value[y]||{},co(D,l.value[y]),N.messages=l.value}function x(y){return c.value[y]||{}}function X(y,D){c.value[y]=D,N.datetimeFormats=c.value,w1(N,y,D)}function ce(y,D){c.value[y]=Lt(c.value[y]||{},D),N.datetimeFormats=c.value,w1(N,y,D)}function me(y){return d.value[y]||{}}function K(y,D){d.value[y]=D,N.numberFormats=d.value,E1(N,y,D)}function v(y,D){d.value[y]=Lt(d.value[y]||{},D),N.numberFormats=d.value,E1(N,y,D)}N1++,n&&M7&&(s.watch(n.locale,y=>{a&&(i.value=y,N.locale=y,lo(N,i.value,o.value))}),s.watch(n.fallbackLocale,y=>{a&&(o.value=y,N.fallbackLocale=y,lo(N,i.value,o.value))}));const O={id:N1,locale:F,fallbackLocale:V,get inheritLocale(){return a},set inheritLocale(y){a=y,y&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,lo(N,i.value,o.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:R,get modifiers(){return A},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(y){h=y,N.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(y){m=y,N.fallbackWarn=m},get fallbackRoot(){return f},set fallbackRoot(y){f=y},get fallbackFormat(){return p},set fallbackFormat(y){p=y,N.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(y){b=y,N.warnHtmlMessage=y},get escapeParameter(){return w},set escapeParameter(y){w=y,N.escapeParameter=y},t:ne,getLocaleMessage:ue,setLocaleMessage:_,mergeLocaleMessage:g,getPostTranslationHandler:B,setPostTranslationHandler:Z,getMissingHandler:Y,setMissingHandler:q,[K$]:De};return O.datetimeFormats=z,O.numberFormats=j,O.rt=oe,O.te=Ne,O.tm=te,O.d=J,O.n=$,O.getDateTimeFormat=x,O.setDateTimeFormat=X,O.mergeDateTimeFormat=ce,O.getNumberFormat=me,O.setNumberFormat=K,O.mergeNumberFormat=v,O[S1]=t.__injectWithOption,O[id]=Ee,O[od]=Te,O[sd]=_e,O}const ud={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Q$({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>r=[...r,...wt(a.children)?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function A1(t){return s.Fragment}Lt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ft(t)||!isNaN(t)}},ud);function eB(t){return wt(t)&&!Le(t[0])}function O1(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let l={};t.locale&&(o.locale=t.locale),Le(t.format)?o.key=t.format:at(t.format)&&(Le(t.format.key)&&(o.key=t.format.key),l=Object.keys(t.format).reduce((f,p)=>n.includes(p)?Lt({},f,{[p]:t.format[p]}):f,{}));const c=r(t.value,o,l);let d=[o.key];wt(c)?d=c.map((f,p)=>{const E=a[f.type],k=E?E({[f.type]:f.value,index:p,parts:c}):[f.value];return eB(k)&&(k[0].key=`${f.type}-${p}`),k}):Le(c)&&(d=[c]);const h=Lt({},i),m=Le(t.tag)||at(t.tag)?t.tag:A1();return s.h(m,h,d)}}Lt({value:{type:Number,required:!0},format:{type:[String,Object]}},ud),Lt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ud);const tB=ei("global-vue-i18n");function zn(t={}){const e=s.getCurrentInstance();if(e==null)throw cr(Fn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw cr(Fn.NOT_INSLALLED);const n=nB(e),r=aB(n),a=k1(e),i=rB(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw cr(Fn.NOT_AVAILABLE_IN_LEGACY_MODE);return sB(e,i,r,t)}if(i==="global")return Z$(r,t,a),r;if(i==="parent"){let c=iB(n,e,t.__useComponent);return c==null&&(c=r),c}const o=n;let l=o.__getInstance(e);if(l==null){const c=Lt({},t);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=X$(c),oB(o,e),o.__setInstance(e,l)}return l}function nB(t){{const e=s.inject(t.isCE?tB:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw cr(t.isCE?Fn.NOT_INSLALLED_WITH_PROVIDE:Fn.UNEXPECTED_ERROR);return e}}function rB(t,e){return al(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function aB(t){return t.mode==="composition"?t.global:t.global.__composer}function iB(t,e,n=!1){let r=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[S1]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function oB(t,e,n){s.onMounted(()=>{},e),s.onUnmounted(()=>{t.__deleteInstance(e)},e)}function sB(t,e,n,r={}){const a=e==="local",i=s.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw cr(Fn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=ct(r.inheritLocale)?r.inheritLocale:!0,l=s.ref(a&&o?n.locale.value:Le(r.locale)?r.locale:sl),c=s.ref(a&&o?n.fallbackLocale.value:Le(r.fallbackLocale)||wt(r.fallbackLocale)||We(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),d=s.ref(cd(l.value,r)),h=s.ref(We(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),m=s.ref(We(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=a?n.missingWarn:ct(r.missingWarn)||ti(r.missingWarn)?r.missingWarn:!0,p=a?n.fallbackWarn:ct(r.fallbackWarn)||ti(r.fallbackWarn)?r.fallbackWarn:!0,E=a?n.fallbackRoot:ct(r.fallbackRoot)?r.fallbackRoot:!0,k=!!r.fallbackFormat,T=kt(r.missing)?r.missing:null,b=kt(r.postTranslation)?r.postTranslation:null,w=a?n.warnHtmlMessage:ct(r.warnHtmlMessage)?r.warnHtmlMessage:!0,A=!!r.escapeParameter,S=a?n.modifiers:We(r.modifiers)?r.modifiers:{},N=r.pluralRules||a&&n.pluralRules;function L(){return[l.value,c.value,d.value,h.value,m.value]}const M=s.computed({get:()=>i.value?i.value.locale.value:l.value,set:g=>{i.value&&(i.value.locale.value=g),l.value=g}}),F=s.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:g=>{i.value&&(i.value.fallbackLocale.value=g),c.value=g}}),V=s.computed(()=>i.value?i.value.messages.value:d.value),R=s.computed(()=>h.value),z=s.computed(()=>m.value);function j(){return i.value?i.value.getPostTranslationHandler():b}function B(g){i.value&&i.value.setPostTranslationHandler(g)}function Z(){return i.value?i.value.getMissingHandler():T}function Y(g){i.value&&i.value.setMissingHandler(g)}function q(g){return L(),g()}function G(...g){return i.value?q(()=>Reflect.apply(i.value.t,null,[...g])):q(()=>"")}function ne(...g){return i.value?Reflect.apply(i.value.rt,null,[...g]):""}function oe(...g){return i.value?q(()=>Reflect.apply(i.value.d,null,[...g])):q(()=>"")}function J(...g){return i.value?q(()=>Reflect.apply(i.value.n,null,[...g])):q(()=>"")}function $(g){return i.value?i.value.tm(g):{}}function Q(g,x){return i.value?i.value.te(g,x):!1}function ae(g){return i.value?i.value.getLocaleMessage(g):{}}function W(g,x){i.value&&(i.value.setLocaleMessage(g,x),d.value[g]=x)}function Ee(g,x){i.value&&i.value.mergeLocaleMessage(g,x)}function _e(g){return i.value?i.value.getDateTimeFormat(g):{}}function Te(g,x){i.value&&(i.value.setDateTimeFormat(g,x),h.value[g]=x)}function De(g,x){i.value&&i.value.mergeDateTimeFormat(g,x)}function Ne(g){return i.value?i.value.getNumberFormat(g):{}}function Ae(g,x){i.value&&(i.value.setNumberFormat(g,x),m.value[g]=x)}function te(g,x){i.value&&i.value.mergeNumberFormat(g,x)}const ue={get id(){return i.value?i.value.id:-1},locale:M,fallbackLocale:F,messages:V,datetimeFormats:R,numberFormats:z,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(g){i.value&&(i.value.inheritLocale=g)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:S},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(g){i.value&&(i.value.missingWarn=g)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(g){i.value&&(i.value.missingWarn=g)},get fallbackRoot(){return i.value?i.value.fallbackRoot:E},set fallbackRoot(g){i.value&&(i.value.fallbackRoot=g)},get fallbackFormat(){return i.value?i.value.fallbackFormat:k},set fallbackFormat(g){i.value&&(i.value.fallbackFormat=g)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:w},set warnHtmlMessage(g){i.value&&(i.value.warnHtmlMessage=g)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(g){i.value&&(i.value.escapeParameter=g)},t:G,getPostTranslationHandler:j,setPostTranslationHandler:B,getMissingHandler:Z,setMissingHandler:Y,rt:ne,d:oe,n:J,tm:$,te:Q,getLocaleMessage:ae,setLocaleMessage:W,mergeLocaleMessage:Ee,getDateTimeFormat:_e,setDateTimeFormat:Te,mergeDateTimeFormat:De,getNumberFormat:Ne,setNumberFormat:Ae,mergeNumberFormat:te};function _(g){g.locale.value=l.value,g.fallbackLocale.value=c.value,Object.keys(d.value).forEach(x=>{g.mergeLocaleMessage(x,d.value[x])}),Object.keys(h.value).forEach(x=>{g.mergeDateTimeFormat(x,h.value[x])}),Object.keys(m.value).forEach(x=>{g.mergeNumberFormat(x,m.value[x])}),g.escapeParameter=A,g.fallbackFormat=k,g.fallbackRoot=E,g.fallbackWarn=p,g.missingWarn=f,g.warnHtmlMessage=w}return s.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw cr(Fn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const g=i.value=t.proxy.$i18n.__composer;e==="global"?(l.value=g.locale.value,c.value=g.fallbackLocale.value,d.value=g.messages.value,h.value=g.datetimeFormats.value,m.value=g.numberFormats.value):a&&_(g)}),ue}if(M$(U$),P$(y$),$$(Q0),q$(),__INTLIFY_PROD_DEVTOOLS__){const t=oo();t.__INTLIFY__=!0,I$(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}async function lB(t,e){if(t){if(navigator&&navigator.clipboard)await navigator.clipboard.writeText(t),e==null||e.select();else{let n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.value=t,document.body.appendChild(n),n.focus(),n.setSelectionRange(0,n.value.length),document.execCommand("Copy"),n.remove()}return}}var cB=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93"],["Albania (Shqip\xEBri)","al","355"],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374"],["Aruba","aw","297"],["Australia","au","61"],["Austria (\xD6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973"],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880"],["Barbados","bb","1246"],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375"],["Belgium (Belgi\xEB)","be","32"],["Belize","bz","501"],["Benin (B\xE9nin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1"],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599"],["Cayman Islands","ky","1345"],["Central African Republic (R\xE9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4E2D\u56FD)","cn","86"],["Christmas Island","cx","61"],["Cocos (Keeling) Islands","cc","61"],["Colombia","co","57"],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xF4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599"],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357"],["Czech Republic (\u010Cesk\xE1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (Rep\xFAblica Dominicana)","do","1"],["Ecuador","ec","593"],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xF8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358"],["France","fr","33"],["French Guiana (Guyane fran\xE7aise)","gf","594"],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590"],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guin\xE9e)","gn","224"],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6E2F)","hk","852"],["Hungary (Magyarorsz\xE1g)","hu","36"],["Iceland (\xCDsland)","is","354"],["India (\u092D\u093E\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98"],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44"],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972"],["Italy (Italia)","it","39"],["Jamaica","jm","1876"],["Japan (\u65E5\u672C)","jp","81"],["Jersey","je","44"],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962"],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7"],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965"],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996"],["Laos (\u0EA5\u0EB2\u0EA7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6FB3\u9580)","mo","853"],["Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262"],["Mexico (M\xE9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212"],["Mozambique (Mo\xE7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95"],["Namibia (Namibi\xEB)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47"],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968"],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92"],["Palau","pw","680"],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970"],["Panama (Panam\xE1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xFA)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1"],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974"],["R\xE9union (La R\xE9union)","re","262"],["Romania (Rom\xE2nia)","ro","40"],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7"],["Rwanda","rw","250"],["Saint Barth\xE9lemy","bl","590"],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590"],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239"],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966"],["Senegal (S\xE9n\xE9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82"],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211"],["Spain (Espa\xF1a)","es","34"],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94"],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47"],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963"],["Taiwan (\u53F0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0E44\u0E17\u0E22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216"],["Turkey (T\xFCrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380"],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971"],["United Kingdom","gb","44"],["United States","us","1"],["Uruguay","uy","598"],["Uzbekistan (O\u02BBzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xE0 del Vaticano)","va","39"],["Venezuela","ve","58"],["Vietnam (Vi\u1EC7t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (\u202B\u0627\u0644\u0635\u062D\u0631\u0627\u0621 \u0627\u0644\u063A\u0631\u0628\u064A\u0629\u202C\u200E)","eh","212"],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xC5land Islands","ax","358"]].map(([t,e,n])=>({name:t,iso2:e.toUpperCase(),dialCode:n}));({...[...[{name:"allCountries",type:Array,default:cB,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}]].reduce((t,e)=>{if(e.name.includes(".")){const[n,r]=e.name.split(".");t[n]?Object.assign(t[n],{[r]:e.default}):Object.assign(t,{[n]:{[r]:e.default}})}else Object.assign(t,{[e.name]:e.default});return t},{})});var uB=Object.defineProperty,dB=Object.defineProperties,hB=Object.getOwnPropertyDescriptors,x1=Object.getOwnPropertySymbols,fB=Object.prototype.hasOwnProperty,mB=Object.prototype.propertyIsEnumerable,L1=(t,e,n)=>e in t?uB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ii=(t,e)=>{for(var n in e||(e={}))fB.call(e,n)&&L1(t,n,e[n]);if(x1)for(var n of x1(e))mB.call(e,n)&&L1(t,n,e[n]);return t},R1=(t,e)=>dB(t,hB(e));const pB={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:a,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(a>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},gB={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},yB={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},M1=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},vB={},wB={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},bB=s.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),_B=[bB];function EB(t,e){return s.openBlock(),s.createElementBlock("svg",wB,_B)}const DB=M1(vB,[["render",EB]]),SB={},kB={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},IB=s.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),CB=[IB];function NB(t,e){return s.openBlock(),s.createElementBlock("svg",kB,CB)}const TB=M1(SB,[["render",NB]]),P1={Deselect:DB,OpenIndicator:TB},AB={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:a,width:i}=e.$refs.toggle.getBoundingClientRect();let o=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:o+a+"px",top:l+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function OB(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let xB=0;function LB(){return++xB}ii({},P1);const RB={class:"az-relative"},MB=["id","placeholder","readonly","disabled"],PB=s.defineComponent({__name:"View",props:{id:null,label:null,modelValue:null,helperMessage:null,placeholder:null,mandatory:null,pattern:null,minlength:null,maxlength:null,disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},copyOnClick:{type:Boolean,default:!1},noTranslationTitle:{type:Boolean},noTranslationHelper:{type:Boolean}},emits:["update:modelValue","error","validated","copy"],setup(t,{expose:e,emit:n}){const r=t,{t:a}=zn(),i=s.ref(r.modelValue||""),o=s.ref(!1),l=s.computed({get(){return i.value},set(k){n("update:modelValue",k),i.value=k}});function c(k){!r.copyOnClick||lB(l.value,k.target).then(()=>{o.value=!0,n("copy"),setTimeout(()=>{o.value=!1},3e3)})}function d(){return i.value}s.watch(()=>r.modelValue,(k,T)=>{i.value=k||"",p()});const h=s.ref(),m=function(){var k;(k=h.value)==null||k.focus()},{checkField:f,validateField:p,error:E}=mg({field:r,values:d,emitter:n,format:{pattern:r.pattern,minlength:r.minlength,maxlength:r.maxlength}});return e({checkField:f,focus:m}),(k,T)=>(s.openBlock(),s.createBlock($1,{id:`${r.id}_field`,label:r.label,helperMessage:r.helperMessage,error:s.unref(E),mandatory:r.mandatory,noTranslationTitle:r.noTranslationTitle,noTranslationHelper:r.noTranslationHelper},{default:s.withCtx(()=>[s.createElementVNode("div",RB,[s.withDirectives(s.createElementVNode("textarea",{ref_key:"textArea",ref:h,class:s.normalizeClass(["az-field exclude-weglot",{"az-error":s.unref(E)}]),"onUpdate:modelValue":T[0]||(T[0]=b=>s.isRef(l)?l.value=b:null),onClick:c,id:r.id,placeholder:r.placeholder,readonly:t.readOnly,disabled:r.disabled},`
77
+ `,10,MB),[[s.vModelText,s.unref(l)]]),s.withDirectives(s.createElementVNode("div",{class:"az-copy-to-clipboard-toast"},s.toDisplayString(s.unref(a)("common.copy")),513),[[s.vShow,o.value]])])]),_:1},8,["id","label","helperMessage","error","mandatory","noTranslationTitle","noTranslationHelper"]))}});var oi=(t=>(t[t.mandatory=0]="mandatory",t[t.optional=1]="optional",t[t.ignore=2]="ignore",t))(oi||{});function $B(t,e,n="modelValue"){t&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t.matches('[type="checkbox"]')?e("update:"+n,t.value!=="true"):e("update:"+n,t.value):t instanceof HTMLSelectElement&&console.log(t))}const BB=["for"],FB=["id","data-tooltip"],zB={key:0,class:"az-field-sub-label"},VB={key:1,class:"az-error-label"},$1=s.defineComponent({__name:"View",props:{id:null,label:null,helperMessage:null,mandatory:null,error:null,titleLevel:null,noTranslationTitle:{type:Boolean},noTranslationHelper:{type:Boolean}},emits:["update:modelValue","onError","onValidated"],setup(t,{emit:e}){const n=t,{t:r}=zn();return(a,i)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("label",{for:n.id,class:s.normalizeClass((n.titleLevel!==void 0?"az-title-h"+n.titleLevel:"az-field-label")+" "+(t.noTranslationTitle?"exclude-weglot":""))},[s.createTextVNode(s.toDisplayString(n.label)+" ",1),n.label?(s.openBlock(),s.createElementBlock("span",{key:0,tabindex:"-1",id:"az-tooltip"+n.id,class:"az-tooltip include-weglot-tooltip","data-tooltip":s.unref(r)("system.fields.mandatory"),"data-position":"bottom",role:"tooltip"},[n.mandatory===s.unref(oi).mandatory?(s.openBlock(),s.createElementBlock("span",zB,"*")):s.createCommentVNode("",!0)],8,FB)):s.createCommentVNode("",!0)],10,BB),s.renderSlot(a.$slots,"default"),n.helperMessage?(s.openBlock(),s.createElementBlock("p",{key:0,class:s.normalizeClass(["az-field-helper",t.noTranslationHelper?"exclude-weglot":""])},s.toDisplayString(n.helperMessage),3)):s.createCommentVNode("",!0),n.error?(s.openBlock(),s.createElementBlock("p",VB,s.toDisplayString(s.unref(r)(n.error)),1)):s.createCommentVNode("",!0)]))}}),UB={class:"az-field-slot-container"},HB=["id","name","placeholder","disabled"],jB=["id"],YB=s.defineComponent({__name:"View",props:{id:null,label:null,modelValue:null,helperMessage:null,placeholder:null,mandatory:null,pattern:null,minlength:null,maxlength:null,disabled:{type:Boolean,default:!1},noTranslationTitle:{type:Boolean},noTranslationHelper:{type:Boolean}},emits:["update:modelValue","error","validated"],setup(t,{expose:e,emit:n}){const r=t,a=s.ref(r.modelValue||""),i=s.computed({get(){return a.value},set(E){n("update:modelValue",E),a.value=E}});function o(){return a.value}const l=s.ref();function c(){return l.value?l.value.children.length==0:!0}s.watch(()=>r.modelValue,(E,k)=>{a.value=E||"",f()});const d=s.ref(),h=function(){var E;(E=d.value)==null||E.focus()},{checkField:m,validateField:f,error:p}=mg({field:r,values:o,emitter:n,format:{pattern:r.pattern,minlength:r.minlength,maxlength:r.maxlength}});return e({checkField:m,focus:h}),(E,k)=>(s.openBlock(),s.createBlock($1,{id:`${r.id}_field`,label:r.label,helperMessage:r.helperMessage,error:s.unref(p),mandatory:r.mandatory,noTranslationTitle:r.noTranslationTitle,noTranslationHelper:r.noTranslationHelper},{default:s.withCtx(()=>[s.createElementVNode("div",UB,[s.withDirectives(s.createElementVNode("input",{ref_key:"inputField",ref:d,id:r.id,name:r.id,type:"text",class:s.normalizeClass(["az-field exclude-weglot",{"az-error":s.unref(p)}]),placeholder:r.placeholder,"onUpdate:modelValue":k[0]||(k[0]=T=>s.isRef(i)?i.value=T:null),disabled:r.disabled},null,10,HB),[[s.vModelText,s.unref(i)]]),s.withDirectives(s.createElementVNode("div",{ref_key:"slot",ref:l,id:`${r.id}_slot`,class:"az-field-slot"},[s.renderSlot(E.$slots,"default")],8,jB),[[s.vShow,!c()]])])]),_:3},8,["id","label","helperMessage","error","mandatory","noTranslationTitle","noTranslationHelper"]))}}),WB={class:"az-field-container",role:"search"},GB=["id","placeholder","aria-label","value","disabled"],qB={class:"az-field-search-actions"},KB=["aria-label","disabled"],ZB=[s.createElementVNode("i",{class:"fa-solid fa-search","aria-hidden":"true"},null,-1)],JB=s.defineComponent({__name:"View",props:{id:null,alt:null,modelValue:null,placeholder:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue","onSearch"],setup(t,{expose:e,emit:n}){const r=t,a=s.ref();return e({focus:function(){var o;(o=a.value)==null||o.focus()}}),(o,l)=>(s.openBlock(),s.createElementBlock("div",WB,[s.createElementVNode("input",{ref_key:"input",ref:a,id:r.id,class:"az-field-search",placeholder:r.placeholder,type:"search","aria-label":r.placeholder,value:r.modelValue,disabled:t.disabled,onInput:l[0]||(l[0]=c=>s.unref($B)(c.target,n))},null,40,GB),s.createElementVNode("div",qB,[s.createElementVNode("button",{class:"az-btn az-btn-icon-alone az-btn-color-transparent az-btn-shape-circle","aria-label":r.alt,disabled:t.disabled,onClick:l[1]||(l[1]=c=>n("onSearch"))},ZB,8,KB)])]))}});var B1=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const XB={id:"az-modal-container"},QB={class:"az-modal-panel-header"},eF={class:"az-modal-panel-header-title"},tF={class:"az-modal-panel-header-close"},nF=["aria-label","disabled"],rF=[s.createElementVNode("i",{class:"fa-solid fa-xmark","aria-hidden":"true"},null,-1)],aF=["id"],iF={class:"az-modal-panel-footer"},oF=["id","disabled"],sF=["id","disabled"],lF={key:0,class:"az-animate-spin fa-solid fa-spinner-third","aria-hidden":"true"},cF=s.defineComponent({__name:"View",props:{id:null,title:null,icon:null,primaryLabel:null,primaryAction:null,primaryDisabled:{type:Boolean,default:!1},neutralLabel:null,neutralAction:null,neutralDisabled:{type:Boolean,default:!1},neutralClass:null,closeOnBlurClick:{type:Boolean,default:!0},closeDisabled:{type:Boolean,default:!1},hasNeutral:{type:Boolean,default:!0},size:null},emits:["close","action"],setup(t,{expose:e,emit:n}){const r=t;function a(){r.closeOnBlurClick&&!l.value&&i()}function i(){f()}const{t:o}=zn(),l=s.ref(!1),c=s.ref(r.primaryDisabled);s.onMounted(()=>{m()});function d(){document.body.classList.remove("az-modal-open"),r.neutralAction?r.neutralAction():i()}async function h(){n("action"),document.body.classList.remove("az-modal-open"),r.primaryAction&&r.primaryAction()}function m(){document.body.classList.add("az-modal-open")}function f(){n("close"),document.body.classList.remove("az-modal-open")}const p=s.ref(),E=function(){var T;(T=p.value)==null||T.focus()},k=function(T){l.value=T};return s.watch(()=>r.primaryDisabled,T=>{c.value=T}),e({focus:E,actionInProgress:k}),(T,b)=>(s.openBlock(),s.createElementBlock("div",XB,[s.createElementVNode("div",{id:"az-modal-content",class:s.normalizeClass(["az-modal-panel",{"az-modal-resize":!!r.size,"az-modal-size-600":r.size===600,"az-modal-size-700":r.size===700}])},[s.createElementVNode("div",QB,[s.renderSlot(T.$slots,"header",{},()=>[s.createElementVNode("div",eF,[r.icon?(s.openBlock(),s.createElementBlock("i",{key:0,class:s.normalizeClass(r.icon),"aria-hidden":"true"},null,2)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(r.title),1)]),s.createElementVNode("div",tF,[r.closeDisabled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:0,class:"az-icon az-btn az-btn-icon-alone az-btn-color-transparent az-icon-cross","aria-label":s.unref(o)("system.buttons.close"),disabled:l.value,onClick:i},rF,8,nF))])])]),s.createElementVNode("div",{class:"az-modal-panel-content",id:r.id},[s.renderSlot(T.$slots,"content")],8,aF),s.createElementVNode("div",iF,[s.renderSlot(T.$slots,"footer",{},()=>{var w;return[r.hasNeutral?(s.openBlock(),s.createElementBlock("button",{key:0,id:t.id+"_neutral_button",class:s.normalizeClass(["az-btn az-btn-color-neutral az-btn-stretch",(w=t.neutralClass)!=null?w:""]),disabled:r.neutralDisabled||l.value,onClick:d},s.toDisplayString(r.neutralLabel||s.unref(o)("system.buttons.cancel")),11,oF)):s.createCommentVNode("",!0),t.primaryLabel&&t.primaryAction?(s.openBlock(),s.createElementBlock("button",{key:1,ref_key:"primaryButton",ref:p,id:t.id+"_primary_button",class:"az-btn az-btn-color-primary az-btn-stretch",disabled:c.value||l.value,onClick:h},[l.value?(s.openBlock(),s.createElementBlock("i",lF)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(r.primaryLabel),1)],8,sF)):s.createCommentVNode("",!0)]})])],2),s.createElementVNode("div",{id:"az-modal-blur",onClick:a})]))}});var cl=(t=>(t[t.INITIAL=0]="INITIAL",t[t.WAITING=1]="WAITING",t[t.READY=2]="READY",t[t.RUNNING=3]="RUNNING",t[t.ACTION_OK=4]="ACTION_OK",t[t.ACTION_KO=5]="ACTION_KO",t))(cl||{});function uF(t,e){if(!t)return;let n=r=>{r.target===t.value||r.composedPath().includes(t.value)||e&&e()};return s.onMounted(()=>{window.addEventListener("click",n)}),s.onBeforeUnmount(()=>{window.removeEventListener("click",n)}),{listener:n}}function dF(t,e){const n=s.ref(0),r=s.ref(e.getStateLabel(n.value)),a=s.ref(e.buttonClass),i=s.ref(""),o=s.ref(e.getAriaLabel(n.value)),l=s.ref(""),c=s.ref(null);uF(c,()=>d());function d(){n.value===2&&f(0)}function h(p){n.value!==1&&(n.value===0?(f(1),setTimeout(()=>{f(2)},e.waitingTimer)):n.value===2&&(f(3),a.value=[e.buttonClass,"az-btn-loading"].join(" "),i.value="az-btn-loading",m()))}function m(){e.action().then(()=>{i.value="check-img",f(4),t("onSucceed")}).catch(p=>{f(5),l.value=p,t("onError",p),setTimeout(()=>{f(0)},1e4)}).finally(()=>a.value=e.buttonClass)}function f(p){n.value=p,r.value=e.getStateLabel(n.value),o.value=e.getAriaLabel(n.value)}return{state:n,btnLabel:r,btnClasses:a,iconClasses:i,ariaLabel:o,errorMessage:l,onClick:h}}const hF={key:0,class:"az-flex az-p-4 az-justify-center az-font-medium az-gap-2"},fF=["id","disabled","aria-Label"],mF={key:0,class:"az-error-label"};s.defineComponent({__name:"View",props:{id:null,action:null,getStateLabel:null,getAriaLabel:null,buttonClass:{default:"az-btn-color-primary az-btn-stretch"},waitingTimer:{default:500},errorResetTimer:{default:1e4}},emits:["onError","onSucceed"],setup(t,{expose:e,emit:n}){const r=t,a=s.ref();e({focus:function(){var p;(p=a.value)==null||p.focus()}});const{state:o,btnLabel:l,btnClasses:c,iconClasses:d,ariaLabel:h,errorMessage:m,onClick:f}=dF(n,r);return(p,E)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(o)===s.unref(cl).ACTION_OK?(s.openBlock(),s.createElementBlock("div",hF,[s.unref(d)?(s.openBlock(),s.createElementBlock("i",{key:0,class:s.normalizeClass(["fa-solid fa-check",s.unref(d)]),"aria-hidden":"true"},null,2)):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(s.unref(l)),1)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",{ref_key:"button",ref:a,class:s.normalizeClass(["az-btn",s.unref(c)]),id:r.id,disabled:s.unref(o)===s.unref(cl).WAITING||s.unref(o)===s.unref(cl).RUNNING,"aria-Label":s.unref(h),onClick:E[0]||(E[0]=(...k)=>s.unref(f)&&s.unref(f)(...k))},[s.unref(d)?(s.openBlock(),s.createElementBlock("i",{key:0,class:s.normalizeClass(["fa-solid fa-spinner-third",s.unref(d)]),"aria-hidden":"true"},null,2)):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(s.unref(l)),1)],10,fF),s.unref(m)?(s.openBlock(),s.createElementBlock("div",mF,s.toDisplayString(s.unref(m)),1)):s.createCommentVNode("",!0)],64))]))}});const pF=200;function gF(t,e,n,r,a,i,o,l,c,d,h,m,f){const p=s.reactive({isCheckAll:!1,order:r.order,sort:r.sort,search:""}),E=s.ref([]);a&&s.onBeforeUpdate(()=>{z.value.forEach($=>$.chekbox=void 0)});const k=s.ref(!1);function T($){let Q="";return $.width&&$.width!=="auto"&&($.width.startsWith("flex-")||(Q+=`width:${$.width}`)),Q}function b($,Q=!1){let ae=$.columnClasses||"";return!$.translatable&&!Q&&(ae+=" exclude-weglot "),$.width&&$.width!=="auto"?$.width.startsWith("flex-")?`${ae} az-${$.width}`:ae:`${ae} az-table-flex-cell`}function w($){let Q="asc";$==p.order&&p.sort=="asc"&&(Q="desc"),p.order=$,p.sort=Q,f?j():Z(!1)}function A($){const Q=$.target;let ae=[],W=[];z.value.forEach((Ee,_e)=>{N(Ee.chekbox,_e,Q.checked,ae,W)}),E.value=W,t("select",ae)}function S($){const Q=$.target;if(Q.type!=="checkbox")return;let ae=[],W=[];z.value.forEach((_e,Te)=>{!m&&_e.chekbox&&Q!==_e.chekbox&&(_e.chekbox.checked=!1),L(_e.chekbox,Te,ae,W)});let Ee=z.value.length>0&&z.value.length===W.length;Ee!==p.isCheckAll&&(p.isCheckAll=Ee),E.value=W,t("select",ae)}function N($,Q,ae,W,Ee){!$||($.checked=ae,L($,Q,W,Ee))}function L($,Q,ae,W){!$||!$.checked||(ae.push(z.value[Q]),W.push(Object.assign({},z.value[Q]).id))}function M($){$&&$.checked&&($.checked=!1)}function F(){z.value.forEach($=>{M($.checkbox)})}let V=0;const R=s.ref((l==null?void 0:l.value)||[]),z=s.ref([]),j=()=>{k.value=!0,V=0,z.value=[],R.value=[],E.value=[],p.isCheckAll=!1,F(),B()};function B(){k.value=!0;const $=d?d(p.search,V,p.order+" "+p.sort):c?c(V,p.order+" "+p.sort):Promise.all((l==null?void 0:l.value)||[]);$&&$.then(Q=>{i&&(d||c)?R.value=R.value.concat(Q):R.value=Q,Z(!1),V++}).finally(()=>k.value=!1)}function Z($){let Q=[];if(Object.assign(Q,R.value),h&&(Q=h(Q,p.search)),!f){const ae=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),W=p.sort==="desc"?-1:1,Ee=n.find(_e=>_e.field==p.order);Ee&&Ee.sortCompareFn?(Q.sort(Ee.sortCompareFn),W===-1&&(Q=Q.reverse())):Q.sort((_e,Te)=>ae.compare(_e[p.order],Te[p.order])*W)}z.value=Q,$&&E.value.length>0&&(p.isCheckAll=!1,E.value=[],F(),t("select",[]))}function Y($){m=$}s.watch(()=>p.search,$=>{ne(o?()=>{j()}:()=>{Z(!0)},250)}),s.onBeforeMount(()=>{B()}),s.onMounted(()=>{(d||c)&&q(e.value).addEventListener("scroll",function(Q){const ae=Q.target;!k.value&&Q.target&&ae.scrollTop+ae.offsetHeight+pF>ae.scrollHeight&&J(()=>{B()},500)})});function q($){for(var Q=$;Q&&Q.tagName!=="HTML"&&Q.tagName!=="BODY"&&Q.nodeType===1;){var ae=getComputedStyle(Q).overflowY;if(ae==="scroll"||ae==="auto")return Q;Q=Q.parentNode}return window}const G=new Map;function ne($,Q){G.get($.name)&&(clearTimeout(G.get($.name)),G.delete($.name)),G.set($.name,setTimeout($,Q))}const oe=new Map;function J($,Q){oe.get($.name)||(oe.set($.name,setTimeout($,1)),setTimeout(()=>{oe.delete($.name)},Q))}return{settings:p,rows:z,selectedRow:E,doSort:w,check:S,checkAll:A,loading:k,reload:j,columnClasses:b,columnStyles:T,fetchMoreResults:B,changeCanSelectMultiLine:Y}}const yF=["id"],vF={key:0,class:"az-custom-table-search az-flex az-flex-row az-w-full az-gap-2"},wF=["id"],bF=["id"],_F=["id"],EF={class:"az-flex az-w-full az-gap-4"},DF={key:0,class:"az-custom-table-cell az-custom-table-header az-flex az-justify-center az-w-[40px]"},SF=s.createElementVNode("label",{for:"checkAll"},null,-1),kF=["onClick","onKeyup","tabindex"],IF=["id"],CF=["onClick","onKeyup"],NF=["id","checked","value"],TF=["for"],AF={key:2,class:"az-flex az-flex-col az-items-center az-w-full"},OF={class:"az-flex az-w-full az-cell-focusable az-cursor-pointer",style:{background:"transparent"}},xF={key:0,class:"az-p-[22px] az-h-full az-bg-white"},LF={class:"az-custom-table-cell az-bg-white exclude-weglot az-text-left az-w-full"},RF=[s.createElementVNode("div",{class:"az-animate-pulse az-bg-grey-50 az-rounded-200 az-w-1/2",style:{height:"24px"}},null,-1)],MF=["id"];Math.random().toString(32);function PF(t,e){const n=s.ref(l()),r=s.ref(o(e));function a(c){return r.value.find(d=>d===c)!==void 0}function i(c){a(c)?(r.value=r.value.filter(d=>d.index!==c.index),t("daySelected",c,!1)):(r.value.push(c),t("daySelected",c,!0)),t("update:modelValue",r.value.map(d=>d.name),r.value)}function o(c){return n.value||(n.value=l()),n.value.filter(d=>(c!=null?c:[]).indexOf(d.name)>=0)}function l(){const{locale:c}=zn(),d=new Intl.Locale(c.value),h=typeof d.weekInfo!="undefined"?d.weekInfo.firstDay:c.value==="en"?7:1,m=new Date,f=m.getDay();m.setDate(m.getDate()+h-f);const p=[];for(let E=0;E<7;++E){let k=new Intl.DateTimeFormat(c.value,{weekday:"long"}).format(m),T=new Intl.DateTimeFormat("en",{weekday:"long"}).format(m).toLowerCase();p.push({index:E,name:T,trad:k}),m.setDate(m.getDate()+1)}return p}return{weekDayNames:n,values:r,isDaySelected:a,selectDay:i,applyToFormat:o}}const $F={class:"az-flex az-flex-col"},BF=["for"],FF={class:"az-flex az-gap-2 az-flex-wrap"},zF=["id","aria-Label","onClick"],VF={key:0,class:"az-field-helper"};Math.random().toString(36),s.defineComponent({__name:"View",props:{title:null,label:null,modelValue:null,type:{default:"text"},confirmation:null,closeOnBlurClick:{type:Boolean}},emits:["confirm","cancel","update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,a=s.ref(),i=s.ref(r.modelValue||""),o=s.computed({get(){return i.value},set(h){n("update:modelValue",h),i.value=h}});function l(){n("confirm",o.value)}function c(){n("cancel")}function d(){var h,m;(h=a.value)!=null&&h.focus&&((m=a.value)==null||m.focus())}return s.onMounted(()=>{d()}),e({focus:d}),(h,m)=>(s.openBlock(),s.createBlock(cF,{id:"az-confirm-modal",ref_key:"modalDialogBox",ref:a,"close-on-blur-click":r.closeOnBlurClick,"primary-action":l,"primary-label":r.confirmation,title:r.title,class:"az-confirm-modal",onClose:c,onKeydown:s.withKeys(c,["esc"])},{content:s.withCtx(()=>[s.createElementVNode("div",null,[r.type==="text"?(s.openBlock(),s.createBlock(s.unref(YB),{key:0,id:"box-input-text",modelValue:s.unref(o),"onUpdate:modelValue":m[0]||(m[0]=f=>s.isRef(o)?o.value=f:null),label:r.label,mandatory:s.unref(oi).optional},null,8,["modelValue","label","mandatory"])):(s.openBlock(),s.createBlock(s.unref(PB),{key:1,id:"box-input-text",modelValue:s.unref(o),"onUpdate:modelValue":m[1]||(m[1]=f=>s.isRef(o)?o.value=f:null),label:r.label,mandatory:s.unref(oi).optional},null,8,["modelValue","label","mandatory"]))])]),_:1},8,["close-on-blur-click","primary-label","title","onKeydown"]))}});function UF(t,e,n){const r=s.computed(()=>m("mobileActions")),a=s.ref(e),i=s.ref(),o=s.ref(!1),l=s.ref(!1);f();function c(){t("panelClose")}async function d(E){n!==void 0?await n(E)===!0&&h(E):h(E)}function h(E){i.value=E,t("panelClose"),t("tabClick",E),o.value=!1}function m(E){return s.useSlots()[E]!==void 0}function f(){i.value||(a.value.tabs.length==0?i.value=void 0:a.value.initialTabId?i.value=a.value.tabs.find(E=>E.id==a.value.initialTabId):i.value=a.value.tabs[0])}function p(E){a.value=E,f()}return{hasMobileActions:r,pageOptions:a,currentTab:i,displayMobileHelper:o,isPanelOpen:l,onPanelClose:c,onTabHeaderClick:d,hasSlot:m,updatePageOptions:p}}function ul(){return Math.random().toString(36)}const HF=["id"],jF={id:"az-header-mobile",class:"az-flex az-flex-row az-gap-4 az-w-full az-justify-between az-items-center az-px-3 az-py-2 az-border-b az-border-grey-50 az-sticky az-top-0 az-bg-white"},YF={class:"az-flex-1 az-flex az-flex-row az-gap-2 az-justify-start"},WF=[s.createElementVNode("i",{class:"fa fa-chevron-left","aria-hidden":"true"},null,-1)],GF=s.createElementVNode("span",{id:"az-logo"},"agendize",-1),qF={class:"az-flex-1 az-flex az-flex-row az-gap-2 az-justify-end"},KF={id:"az-page"},ZF={key:0,class:"az-p-4 az-flex az-flex-col az-gap-6 az-w-full"},JF=[s.createStaticVNode('<div class="az-flex az-flex-col az-gap-2 az-w-full"><div class="az-animate-pulse az-w-1/2 az-bg-grey-50 az-h-[33px] az-rounded-200"></div><div class="az-animate-pulse az-w-1/3 az-bg-grey-50 az-h-[24px] az-rounded-200"></div></div><div class="az-flex az-flex-row az-gap-2 az-w-full"><div class="az-animate-pulse az-w-[120px] az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-[160px] az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-[130px] az-bg-grey-50 az-h-[24px] az-rounded-200"></div></div><div class="az-flex az-flex-col az-gap-5 az-w-full"><div class="az-flex az-flex-col az-gap-3 az-w-full"><div class="az-animate-pulse az-w-1/2 az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-3/4 az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-1/3 az-bg-grey-50 az-h-[18px] az-rounded-200"></div><div class="az-animate-pulse az-w-3/4 az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-3/4 az-bg-grey-50 az-h-[18px] az-rounded-200"></div></div><div class="az-flex az-flex-col az-gap-4 az-w-full"><div class="az-animate-pulse az-w-2/6 az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-4/6 az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-1/3 az-bg-grey-50 az-h-[24px] az-rounded-200"></div><div class="az-animate-pulse az-w-3/4 az-bg-grey-50 az-h-[24px] az-rounded-200"></div></div></div>',3)],XF={key:0,id:"az-page-header",class:"az-flex az-flex-row az-gap-4 az-items-stretch az-w-full az-justify-between"},QF={key:0,class:"az-flex az-flex-col az-gap-1"},e9={key:1,id:"az-page-header-action",class:"az-flex az-flex-row az-gap-3 az-items-center"},t9={id:"az-page-content"},n9={class:"az-tabs az-tabs-min-content",id:"az-page-tabs"},r9={key:0,class:"az-tabs-header az-bg-grey-25",role:"listbox"},a9=["id","onClick"],i9={class:"az-tab-contents",id:"az-page-tab-content"},o9={class:"az-flex az-flex-row az-gap-6 az-flex-1 az-min-h-0 az-min-w-0 az-w-full"},s9={key:0,class:"az-item-pulse",style:{height:"10000px",width:"100%","background-color":"var(--az-grey-100)"}},l9=["id"],c9=["id"],u9=["aria-Label"],d9=s.createElementVNode("div",{id:"az-page-footer",class:"az-flex az-border-t az-border-grey-50 az-text-caption1 az-px-4 az-py-2 az-items-center az-justify-between az-w-full"},[s.createElementVNode("div",{id:"az-page-footer-menu",class:"az-flex az-gap-4"},[s.createElementVNode("a",{href:"https://agendize.com/nos-conditions-dutilisation/",target:"_blank"},"Conditions g\xE9n\xE9rales")]),s.createElementVNode("span",null,"\xA9 2023 Agendize. All rights reserved.")],-1),h9={key:2,id:"az-page-panel","data-position":"right"};ul();const f9=["id"],m9=["id"],p9=["src","aria-Label","alt"],g9={key:1},y9=["id"],v9={key:0,class:"az-font-medium exclude-weglot"},w9={key:1,class:"az-text-grey-500 exclude-weglot az-break-all"},b9={key:1,class:"az-flex az-flex-col az-gap-1"};Math.random().toString(32);const _9=["id"],E9={key:0,class:"az-section-header"},D9={key:0,class:"az-section-header-text"},S9={key:0,class:"az-section-header-title"},k9={key:1,class:"az-section-header-subtitle"},I9={key:1,class:"az-section-header-action"},C9={class:"az-section-body"};ul();const N9={class:"az-flex az-flex-col az-relative az-contextual-menu-closable"},T9=["data-position"],A9=["id","onClick"],O9=s.createElementVNode("div",{class:"az-divider"},null,-1);ul();const x9=["id"],L9={key:0,class:"az-stepper az-rounded-200 az-bg-grey-25 az-p-4 az-flex az-gap-4 az-items-center az-gap-5"},R9={class:"az-flex az-flex-col az-text-body2 az-flex-1 az-gap-1"},M9={class:"az-font-medium"},P9={key:0,class:"az-text-grey-500 az-text-body3"},$9={class:"az-stepper-jauge"},B9={class:"az-stepper-jauge-progress",width:"80",height:"80",viewBox:"0 0 20 20"},F9={class:"az-stepper-jauge-label az-font-medium az-text-body3"},z9={class:"az-mt-4"},V9=["aria-Label"];ul();const U9={},H9={class:"az-flex az-items-center az-h-full az-justify-center"},j9=s.createElementVNode("i",{class:"fa fa-warning","aria-hidden":"true"},null,-1);function Y9(t,e){return s.openBlock(),s.createElementBlock("div",H9,[j9,s.createTextVNode(" Error while loading page component, please try again by reloading this page ")])}var W9=B1(U9,[["render",Y9]]);const G9={},q9={class:"az-flex az-items-center az-h-full az-justify-center"},K9=s.createElementVNode("i",{class:"fa fa-loader fa-spin","aria-hidden":"true"},null,-1);function Z9(t,e){return s.openBlock(),s.createElementBlock("div",q9,[s.renderSlot(t.$slots,"default",{},()=>[K9])])}var J9=B1(G9,[["render",Z9]]);const X9={loading:J9,error:W9,delay:600,timeout:1e4};function Q9(t,e=X9){return s.defineAsyncComponent({loader:t,errorComponent:e.error,loadingComponent:e.loading,delay:e.delay,timeout:e.timeout})}je.Bloc=kk,je.QRCode=Nw,je.createApi=bk,je.createLogger=_k,je.createStore=vk,je.dateToString=z1,je.decodeHtml=Y1,je.defineAsyncComponentWithLoading=Q9,je.formatDate=j1,je.generateShadesFromColor=Ik,je.languages=Nk,je.onPictureUpdated=V1,je.pad=dl,je.parseToInt=H1,je.personToInitials=W1,je.poll=Sk,je.readBlobFromUrl=U1,je.toBase64=hd,je.useAccountStore=wk,je.useApi=Ek,je.useBlocState=F1,je.useLogger=Dk,Object.defineProperties(je,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});