PageSourceSearch

https://www.ace.de/etc.clientlibs/ace/clientlibs/clientlib-site/resources/events.a2d2d961.js

js ace.de collected 2026-09-24 19:00:33 UTC 957,984 bytes, 2 lines download raw bytes

vendor: 9,387 bytes, lines 1-2
1/*! For license information please see events.a2d2d961.js.LICENSE.txt */
2(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["events"],{5606:function(e){var t=-1;function n(e,m,f,_,p){if(e===m)return e?[[0,e]]:[];if(null!=f){var y=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,a=e.length,s=t.length;if(0===r.length&&(null===i||0===i.length)){var o=r.index,l=e.slice(0,o),c=e.slice(o),u=i?i.index:null,d=o+s-a;if((null===u||u===d)&&!(d<0||d>s)){var h=t.slice(0,d);if((_=t.slice(d))===c){var m=Math.min(o,d);if((y=l.slice(0,m))===(b=h.slice(0,m)))return g(y,l.slice(m),h.slice(m),c)}}if(null===u||u===o){var f=o,_=(h=t.slice(0,f),t.slice(f));if(h===l){var p=Math.min(a-f,s-f);if((v=c.slice(c.length-p))===(w=_.slice(_.length-p)))return g(l,c.slice(0,c.length-p),_.slice(0,_.length-p),v)}}}if(r.length>0&&i&&0===i.length){var y=e.slice(0,r.index),v=e.slice(r.index+r.length);if(!(s<(m=y.length)+(p=v.length))){var b=t.slice(0,m),w=t.slice(s-p);if(y===b&&v===w)return g(y,e.slice(m,a-p),t.slice(m,s-p),v)}}return null}(e,m,f);if(y)return y}var v=i(e,m),b=e.substring(0,v);v=s(e=e.substring(v),m=m.substring(v));var w=e.substring(e.length-v),M=function(e,a){var o;if(!e)return[[1,a]];if(!a)return[[t,e]];var l=e.length>a.length?e:a,c=e.length>a.length?a:e,u=l.indexOf(c);if(-1!==u)return o=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>a.length&&(o[0][0]=o[2][0]=t),o;if(1===c.length)return[[t,e],[1,a]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function a(e,t,n){for(var r,a,o,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(c,u+1));){var h=i(e.substring(n),t.substring(u)),m=s(e.substring(0,n),t.substring(0,u));d.length<m+h&&(d=t.substring(u-m,u)+t.substring(u,u+h),r=e.substring(0,n-m),a=e.substring(n+h),o=t.substring(0,u-m),l=t.substring(u+h))}return 2*d.length>=e.length?[r,a,o,l,d]:null}var o,l,c,u,d,h=a(n,r,Math.ceil(n.length/4)),m=a(n,r,Math.ceil(n.length/2));if(!h&&!m)return null;o=m?h&&h[4].length>m[4].length?h:m:h;e.length>t.length?(l=o[0],c=o[1],u=o[2],d=o[3]):(u=o[0],d=o[1],l=o[2],c=o[3]);var f=o[4];return[l,c,u,d,f]}(e,a);if(d){var h=d[0],m=d[1],f=d[2],_=d[3],p=d[4],g=n(h,f),y=n(m,_);return g.concat([[0,p]],y)}return function(e,n){for(var i=e.length,a=n.length,s=Math.ceil((i+a)/2),o=s,l=2*s,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[o+1]=0,u[o+1]=0;for(var h=i-a,m=h%2!=0,f=0,_=0,p=0,g=0,y=0;y<s;y++){for(var v=-y+f;v<=y-_;v+=2){for(var b=o+v,w=(S=v===-y||v!==y&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-v;S<i&&w<a&&e.charAt(S)===n.charAt(w);)S++,w++;if(c[b]=S,S>i)_+=2;else if(w>a)f+=2;else if(m){if((L=o+h-v)>=0&&L<l&&-1!==u[L])if(S>=(k=i-u[L]))return r(e,n,S,w)}}for(var M=-y+p;M<=y-g;M+=2){for(var k,L=o+M,T=(k=M===-y||M!==y&&u[L-1]<u[L+1]?u[L+1]:u[L-1]+1)-M;k<i&&T<a&&e.charAt(i-k-1)===n.charAt(a-T-1);)k++,T++;if(u[L]=k,k>i)g+=2;else if(T>a)p+=2;else if(!m){if((b=o+h-M)>=0&&b<l&&-1!==c[b]){var S;w=o+(S=c[b])-b;if(S>=(k=i-k))return r(e,n,S,w)}}}}return[[t,e],[1,n]]}(e,a)}(e=e.substring(0,e.length-v),m=m.substring(0,m.length-v));return b&&M.unshift([0,b]),w&&M.push([0,w]),h(M,p),_&&function(e){var n=!1,r=[],i=0,m=null,f=0,_=0,p=0,g=0,y=0;for(;f<e.length;)0==e[f][0]?(r[i++]=f,_=g,p=y,g=0,y=0,m=e[f][1]):(1==e[f][0]?g+=e[f][1].length:y+=e[f][1].length,m&&m.length<=Math.max(_,p)&&m.length<=Math.max(g,y)&&(e.splice(r[i-1],0,[t,m]),e[r[i-1]+1][0]=1,i--,f=--i>0?r[i-1]:-1,_=0,p=0,g=0,y=0,m=null,n=!0)),f++;n&&h(e);(function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(o),a=r.match(o),s=i&&n.match(l),h=a&&r.match(l),m=s&&n.match(c),f=h&&r.match(c),_=m&&e.match(u),p=f&&t.match(d);return _||p?5:m||f?4:i&&!s&&h?3:s||h?2:i||a?1:0}var n=1;for(;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],i=e[n][1],a=e[n+1][1],h=s(r,i);if(h){var m=i.substring(i.length-h);r=r.substring(0,r.length-h),i=m+i.substring(0,i.length-h),a=m+a}for(var f=r,_=i,p=a,g=t(r,i)+t(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var y=t(r,i)+t(i,a);y>=g&&(g=y,f=r,_=i,p=a)}e[n-1][1]!=f&&(f?e[n-1][1]=f:(e.splice(n-1,1),n--),e[n][1]=_,p?e[n+1][1]=p:(e.splice(n+1,1),n--))}n++}})(e),f=1;for(;f<e.length;){if(e[f-1][0]==t&&1==e[f][0]){var v=e[f-1][1],b=e[f][1],w=a(v,b),M=a(b,v);w>=M?(w>=v.length/2||w>=b.length/2)&&(e.splice(f,0,[0,b.substring(0,w)]),e[f-1][1]=v.substring(0,v.length-w),e[f+1][1]=b.substring(w),f++):(M>=v.length/2||M>=b.length/2)&&(e.splice(f,0,[0,v.substring(0,M)]),e[f-1][0]=1,e[f-1][1]=b.substring(0,b.length-M),e[f+1][0]=t,e[f+1][1]=v.substring(M),f++),f++}f++}}(M),M}function r(e,t,r,i){var a=e.substring(0,r),s=t.substring(0,i),o=e.substring(r),l=t.substring(i),c=n(a,s),u=n(o,l);return c.concat(u)}function i(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;n<i;)e.substring(a,i)==t.substring(a,i)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return m(e.charCodeAt(i-1))&&i--,i}function a(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var a=0,s=1;;){var o=e.substring(i-s),l=t.indexOf(o);if(-1==l)return a;s+=l,0!=l&&e.substring(i-s)!=t.substring(0,s)||(a=s,s++)}}function s(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;n<i;)e.substring(e.length-i,e.length-a)==t.substring(t.length-i,t.length-a)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return f(e.charCodeAt(e.length-i))&&i--,i}var o=/[^a-zA-Z0-9]/,l=/\s/,c=/[\r\n]/,u=/\n\r?\n$/,d=/^\r?\n\r?\n/;function h(e,n){e.push([0,""]);for(var r,a=0,o=0,l=0,c="",u="";a<e.length;)if(a<e.length-1&&!e[a][1])e.splice(a,1);else switch(e[a][0]){case 1:l++,u+=e[a][1],a++;break;case t:o++,c+=e[a][1],a++;break;case 0:var d=a-l-o-1;if(n){if(d>=0&&p(e[d][1])){var m=e[d][1].slice(-1);if(e[d][1]=e[d][1].slice(0,-1),c=m+c,u=m+u,!e[d][1]){e.splice(d,1),a--;var f=d-1;e[f]&&1===e[f][0]&&(l++,u=e[f][1]+u,f--),e[f]&&e[f][0]===t&&(o++,c=e[f][1]+c,f--),d=f}}if(_(e[a][1])){m=e[a][1].charAt(0);e[a][1]=e[a][1].slice(1),c+=m,u+=m}}if(a<e.length-1&&!e[a][1]){e.splice(a,1);break}if(c.length>0||u.length>0){c.length>0&&u.length>0&&(0!==(r=i(u,c))&&(d>=0?e[d][1]+=u.substring(0,r):(e.splice(0,0,[0,u.substring(0,r)]),a++),u=u.substring(r),c=c.substring(r)),0!==(r=s(u,c))&&(e[a][1]=u.substring(u.length-r)+e[a][1],u=u.substring(0,u.length-r),c=c.substring(0,c.length-r)));var g=l+o;0===c.length&&0===u.length?(e.splice(a-g,g),a-=g):0===c.length?(e.splice(a-g,g,[1,u]),a=a-g+1):0===u.length?(e.splice(a-g,g,[t,c]),a=a-g+1):(e.splice(a-g,g,[t,c],[1,u]),a=a-g+2)}0!==a&&0===e[a-1][0]?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,l=0,o=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var y=!1;for(a=1;a<e.length-1;)0===e[a-1][0]&&0===e[a+1][0]&&(e[a][1].substring(e[a][1].length-e[a-1][1].length)===e[a-1][1]?(e[a][1]=e[a-1][1]+e[a][1].substring(0,e[a][1].length-e[a-1][1].length),e[a+1][1]=e[a-1][1]+e[a+1][1],e.splice(a-1,1),y=!0):e[a][1].substring(0,e[a+1][1].length)==e[a+1][1]&&(e[a-1][1]+=e[a+1][1],e[a][1]=e[a][1].substring(e[a+1][1].length)+e[a+1][1],e.splice(a+1,1),y=!0)),a++;y&&h(e,n)}function m(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function _(e){return f(e.charCodeAt(0))}function p(e){return m(e.charCodeAt(e.length-1))}function g(e,n,r,i){return p(e)||_(i)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[t,n],[1,r],[0,i]])}function y(e,t,r,i){return n(e,t,r,i,!0)}y.INSERT=1,y.DELETE=t,y.EQUAL=0,e.exports=y},7193:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Boolean]",o="[object Date]",l="[object Function]",c="[object GeneratorFunction]",u="[object Map]",d="[object Number]",h="[object Object]",m="[object Promise]",f="[object RegExp]",_="[object Set]",p="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",M="[object Float64Array]",k="[object Int8Array]",L="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",C="[object Uint8ClampedArray]",A="[object Uint16Array]",D="[object Uint32Array]",Y=/\w*$/,E=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,O={};O[a]=O["[object Array]"]=O[v]=O[b]=O[s]=O[o]=O[w]=O[M]=O[k]=O[L]=O[T]=O[u]=O[d]=O[h]=O[f]=O[_]=O[p]=O[g]=O[S]=O[C]=O[A]=O[D]=!0,O["[object Error]"]=O[l]=O[y]=!1;var I="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,N="object"==typeof self&&self&&self.Object===Object&&self,R=I||N||Function("return this")(),j=t&&!t.nodeType&&t,P=j&&e&&!e.nodeType&&e,H=P&&P.exports===j;function q(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function F(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function z(e,t){return function(n){return e(t(n))}}function K(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var $,G=Array.prototype,V=Function.prototype,J=Object.prototype,Q=R["__core-js_shared__"],Z=($=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+$:"",X=V.toString,ee=J.hasOwnProperty,te=J.toString,ne=RegExp("^"+X.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=H?R.Buffer:void 0,ie=R.Symbol,ae=R.Uint8Array,se=z(Object.getPrototypeOf,Object),oe=Object.create,le=J.propertyIsEnumerable,ce=G.splice,ue=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,he=z(Object.keys,Object),me=Pe(R,"DataView"),fe=Pe(R,"Map"),_e=Pe(R,"Promise"),pe=Pe(R,"Set"),ge=Pe(R,"WeakMap"),ye=Pe(Object,"create"),ve=Be(me),be=Be(fe),we=Be(_e),Me=Be(pe),ke=Be(ge),Le=ie?ie.prototype:void 0,Te=Le?Le.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function De(e){this.__data__=new Ce(e)}function Ye(e,t){var n=ze(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==a)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var s in e)!t&&!ee.call(e,s)||i&&("length"==s||Ue(s,r))||n.push(s);return n}function Ee(e,t,n){var r=e[t];ee.call(e,t)&&We(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function xe(e,t){for(var n=e.length;n--;)if(We(e[n][0],t))return n;return-1}function Oe(e,t,n,r,i,m,y){var E;if(r&&(E=m?r(e,i,m,y):r(e)),void 0!==E)return E;if(!Ve(e))return e;var x=ze(e);if(x){if(E=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,E)}else{var I=qe(e),N=I==l||I==c;if($e(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(I==h||I==a||N&&!m){if(B(e))return m?e:{};if(E=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:(t=se(e),Ve(t)?oe(t):{});var t}(N?{}:e),!t)return function(e,t){return Re(e,He(e),t)}(e,function(e,t){return e&&Re(t,Je(t),e)}(E,e))}else{if(!O[I])return m?e:{};E=function(e,t,n,r){var i=e.constructor;switch(t){case v:return Ne(e);case s:case o:return new i(+e);case b:return function(e,t){var n=t?Ne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case M:case k:case L:case T:case S:case C:case A:case D:return function(e,t){var n=t?Ne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(W(e),!0):W(e);return F(r,q,new e.constructor)}(e,r,n);case d:case p:return new i(e);case f:return function(e){var t=new e.constructor(e.source,Y.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return function(e,t,n){var r=t?n(K(e),!0):K(e);return F(r,U,new e.constructor)}(e,r,n);case g:return a=e,Te?Object(Te.call(a)):{}}var a}(e,I,Oe,t)}}y||(y=new De);var R=y.get(e);if(R)return R;if(y.set(e,E),!x)var j=n?function(e){return function(e,t,n){var r=t(e);return ze(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Je,He)}(e):Je(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(j||e,function(i,a){j&&(i=e[a=i]),Ee(E,a,Oe(i,t,n,r,a,e,y))}),E}function Ie(e){return!(!Ve(e)||(t=e,Z&&Z in t))&&(Ge(e)||B(e)?ne:E).test(Be(e));var t}function Ne(e){var t=new e.constructor(e.byteLength);return new ae(t).set(new ae(e)),t}function Re(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],o=r?r(n[s],e[s],s,n,e):void 0;Ee(n,s,void 0===o?e[s]:o)}return n}function je(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Se.prototype.clear=function(){this.__data__=ye?ye(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:ee.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},Ce.prototype.clear=function(){this.__data__=[]},Ce.prototype.delete=function(e){var t=this.__data__,n=xe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ce.call(t,n,1),!0)},Ce.prototype.get=function(e){var t=this.__data__,n=xe(t,e);return n<0?void 0:t[n][1]},Ce.prototype.has=function(e){return xe(this.__data__,e)>-1},Ce.prototype.set=function(e,t){var n=this.__data__,r=xe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new Se,map:new(fe||Ce),string:new Se}},Ae.prototype.delete=function(e){return je(this,e).delete(e)},Ae.prototype.get=function(e){return je(this,e).get(e)},Ae.prototype.has=function(e){return je(this,e).has(e)},Ae.prototype.set=function(e,t){return je(this,e).set(e,t),this},De.prototype.clear=function(){this.__data__=new Ce},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ce){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var He=ue?z(ue,Object):function(){return[]},qe=function(e){return te.call(e)};function Ue(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||J)}function Be(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function We(e,t){return e===t||e!=e&&t!=t}(me&&qe(new me(new ArrayBuffer(1)))!=b||fe&&qe(new fe)!=u||_e&&qe(_e.resolve())!=m||pe&&qe(new pe)!=_||ge&&qe(new ge)!=y)&&(qe=function(e){var t=te.call(e),n=t==h?e.constructor:void 0,r=n?Be(n):void 0;if(r)switch(r){case ve:return b;case be:return u;case we:return m;case Me:return _;case ke:return y}return t});var ze=Array.isArray;function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!Ge(e)}var $e=de||function(){return!1};function Ge(e){var t=Ve(e)?te.call(e):"";return t==l||t==c}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return Ke(e)?Ye(e):function(e){if(!Fe(e))return he(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Oe(e,!0,!0)}},8142:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",f="[object Promise]",_="[object RegExp]",p="[object Set]",g="[object String]",y="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",M=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,L={};
vendor: 8,156 bytes, line 2
2L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L[a]=L[s]=L[b]=L[o]=L[w]=L[l]=L[c]=L[u]=L[d]=L[h]=L[m]=L[_]=L[p]=L[g]=L[v]=!1;var T="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,C=T||S||Function("return this")(),A=t&&!t.nodeType&&t,D=A&&e&&!e.nodeType&&e,Y=D&&D.exports===A,E=Y&&T.process,x=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),O=x&&x.isTypedArray;function I(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function R(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var j,P,H,q=Array.prototype,U=Function.prototype,F=Object.prototype,B=C["__core-js_shared__"],W=U.toString,z=F.hasOwnProperty,K=(j=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",$=F.toString,G=RegExp("^"+W.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=Y?C.Buffer:void 0,J=C.Symbol,Q=C.Uint8Array,Z=F.propertyIsEnumerable,X=q.splice,ee=J?J.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=V?V.isBuffer:void 0,re=(P=Object.keys,H=Object,function(e){return P(H(e))}),ie=xe(C,"DataView"),ae=xe(C,"Map"),se=xe(C,"Promise"),oe=xe(C,"Set"),le=xe(C,"WeakMap"),ce=xe(Object,"create"),ue=Re(ie),de=Re(ae),he=Re(se),me=Re(oe),fe=Re(le),_e=J?J.prototype:void 0,pe=_e?_e.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ye(e);this.size=t.size}function Me(e,t){var n=He(e),r=!n&&Pe(e),i=!n&&!r&&qe(e),a=!n&&!r&&!i&&ze(e),s=n||r||i||a,o=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=o.length;for(var c in e)!t&&!z.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ne(c,l))||o.push(c);return o}function ke(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function Le(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=z.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var i=$.call(e);r&&(t?e[ee]=n:delete e[ee]);return i}(e):function(e){return $.call(e)}(e)}function Te(e){return We(e)&&Le(e)==a}function Se(e,t,n,r,i){return e===t||(null==e||null==t||!We(e)&&!We(t)?e!=e&&t!=t:function(e,t,n,r,i,u){var f=He(e),v=He(t),M=f?s:Ie(e),k=v?s:Ie(t),L=(M=M==a?m:M)==m,T=(k=k==a?m:k)==m,S=M==k;if(S&&qe(e)){if(!qe(t))return!1;f=!0,L=!1}if(S&&!L)return u||(u=new we),f||ze(e)?De(e,t,n,r,i,u):function(e,t,n,r,i,a,s){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!a(new Q(e),new Q(t)));case o:case l:case h:return je(+e,+t);case c:return e.name==t.name&&e.message==t.message;case _:case g:return e==t+"";case d:var u=N;case p:var m=1&r;if(u||(u=R),e.size!=t.size&&!m)return!1;var f=s.get(e);if(f)return f==t;r|=2,s.set(e,t);var v=De(u(e),u(t),r,i,a,s);return s.delete(e),v;case y:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,M,n,r,i,u);if(!(1&n)){var C=L&&z.call(e,"__wrapped__"),A=T&&z.call(t,"__wrapped__");if(C||A){var D=C?e.value():e,Y=A?t.value():t;return u||(u=new we),i(D,Y,n,r,u)}}if(!S)return!1;return u||(u=new we),function(e,t,n,r,i,a){var s=1&n,o=Ye(e),l=o.length,c=Ye(t),u=c.length;if(l!=u&&!s)return!1;var d=l;for(;d--;){var h=o[d];if(!(s?h in t:z.call(t,h)))return!1}var m=a.get(e);if(m&&a.get(t))return m==t;var f=!0;a.set(e,t),a.set(t,e);var _=s;for(;++d<l;){var p=e[h=o[d]],g=t[h];if(r)var y=s?r(g,p,h,t,e,a):r(p,g,h,e,t,a);if(!(void 0===y?p===g||i(p,g,n,r,a):y)){f=!1;break}_||(_="constructor"==h)}if(f&&!_){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,i,u)}(e,t,n,r,Se,i))}function Ce(e){return!(!Be(e)||function(e){return!!K&&K in e}(e))&&(Ue(e)?G:M).test(Re(e))}function Ae(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||F,t!==r)return re(e);var t,n,r,i=[];for(var a in Object(e))z.call(e,a)&&"constructor"!=a&&i.push(a);return i}function De(e,t,n,r,i,a){var s=1&n,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,h=2&n?new be:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var m=e[u],f=t[u];if(r)var _=s?r(f,m,u,t,e,a):r(m,f,u,e,t,a);if(void 0!==_){if(_)continue;d=!1;break}if(h){if(!I(t,function(e,t){if(s=t,!h.has(s)&&(m===e||i(m,e,n,r,a)))return h.push(t);var s})){d=!1;break}}else if(m!==f&&!i(m,f,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Ye(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ke,Oe)}function Ee(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function xe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:z.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?r:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():X.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return ke(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(ae||ye),string:new ge}},ve.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Ee(this,e).get(e)},ve.prototype.has=function(e){return Ee(this,e).has(e)},ve.prototype.set=function(e,t){var n=Ee(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Oe=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}(te(e),function(t){return Z.call(e,t)}))}:function(){return[]},Ie=Le;function Ne(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}
2(ie&&Ie(new ie(new ArrayBuffer(1)))!=w||ae&&Ie(new ae)!=d||se&&Ie(se.resolve())!=f||oe&&Ie(new oe)!=p||le&&Ie(new le)!=v)&&(Ie=function(e){var t=Le(e),n=t==m?e.constructor:void 0,r=n?Re(n):"";if(r)switch(r){case ue:return w;case de:return d;case he:return f;case me:return p;case fe:return v}return t});var Pe=Te(function(){return arguments}())?Te:function(e){return We(e)&&z.call(e,"callee")&&!Z.call(e,"callee")},He=Array.isArray;var qe=ne||function(){return!1};function Ue(e){if(!Be(e))return!1;var t=Le(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function We(e){return null!=e&&"object"==typeof e}var ze=O?function(e){return function(t){return e(t)}}(O):function(e){return We(e)&&Fe(e.length)&&!!L[Le(e)]};function Ke(e){return null!=(t=e)&&Fe(t.length)&&!Ue(t)?Me(e):Ae(e);var t}e.exports=function(e,t){return Se(e,t)}},2201:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,o)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(714));function s(e,t="maxAge"){let n,i,s;const o=()=>r(this,void 0,void 0,function*(){if(void 0!==n)return;const o=o=>r(this,void 0,void 0,function*(){s=a.default();const r=o[1][t]-Date.now();return r<=0?(e.delete(o[0]),void s.resolve()):(n=o[0],i=setTimeout(()=>{e.delete(o[0]),s&&s.resolve()},r),"function"==typeof i.unref&&i.unref(),s.promise)});try{for(const t of e)yield o(t)}catch(e){}n=void 0}),l=e.set.bind(e);return e.set=(t,r)=>{e.has(t)&&e.delete(t);const a=l(t,r);return n&&n===t&&(n=void 0,void 0!==i&&(clearTimeout(i),i=void 0),void 0!==s&&(s.reject(void 0),s=void 0)),o(),a},o(),e}t.default=s,e.exports=s,e.exports.default=s},119:function(e,t,n){"use strict";const r=n(2986),i=n(2201),a=new WeakMap,s=new WeakMap,o=(e,{cacheKey:t,cache:n=new Map,maxAge:a}={})=>{"number"==typeof a&&i(n);const o=function(...r){const i=t?t(r):r[0],s=n.get(i);if(s)return s.data;const o=e.apply(this,r);return n.set(i,{data:o,maxAge:a?Date.now()+a:Number.POSITIVE_INFINITY}),o};return r(o,e,{ignoreNonConfigurable:!0}),s.set(o,n),o};o.decorator=(e={})=>(t,n,r)=>{const i=t[n];if("function"!=typeof i)throw new TypeError("The decorated value must be a function");delete r.value,delete r.writable,r.get=function(){if(!a.has(this)){const t=o(i,e);return a.set(this,t),t}return a.get(this)}},o.clear=e=>{const t=s.get(e);if(!t)throw new TypeError("Can't clear a function that was not memoized!");if("function"!=typeof t.clear)throw new TypeError("The cache Map can't be cleared!");t.clear()},e.exports=o},2986:function(e){"use strict";const t=(e,t,r,i)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const a=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!n(a,s)&&i||Object.defineProperty(e,r,s)},n=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},r=(e,t)=>`/* Wrapped ${e}*/\n${t}`,i=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),a=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");e.exports=(e,n,{ignoreNonConfigurable:s=!1}={})=>{const{name:o}=e;for(const r of Reflect.ownKeys(n))t(e,n,r,s);return((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,n),((e,t,n)=>{const s=""===n?"":`with ${n.trim()}() `,o=r.bind(null,s,t.toString());Object.defineProperty(o,"name",a),Object.defineProperty(e,"toString",{...i,value:o})})(e,n,o),e}},5177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},1488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,i,a,s){var o=t(r),l=n[e][t(r)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(5093))},8676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(5093))}
vendor: 25,197 bytes, line 2
2,2353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,s){var o=n(t),l=r[e][n(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},4496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(5093))},6947:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,function(e){return n[e]}).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(5093))},2682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(5093))},9756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(5093))},1509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,s){var o=r(t),l=i[e][r(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},5533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}})}(n(5093))},8959:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(5093))},7777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(5093))},4903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(5093))},7357:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(5093))},1290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(5093))},1545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%
2d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(5093))},1470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+i({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function i(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],h=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:h,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:h,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:l,monthsShortStrictRegex:c,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(5093))},4429:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){if("m"===n)return t?"jedna minuta":r?"jednu minutu":"jedne minute"}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
2d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},6464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%
2d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(5093))},4226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(5093))},3601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6111:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4697:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
2d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7853:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(5093))},4691:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LT
vendor: 23,569 bytes, line 2
2S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],i=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(5093))},3872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(5093))},8298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},6195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},5543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(5093))},9402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},3004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},2934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(5093))},838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},6575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(5093))},7650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},2500:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%
2d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(5093))},527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":a=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return a=i(e,r)+" "+a}function i(e,r){return e<10?r?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},5995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},2477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(5093))},7892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},5498:function(e,t,n){!function(e){"use strict";
vendor: 3,289 bytes, line 2
2var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},7071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},1734:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["E
2an","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},217:function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},7329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},2124:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्राà
2¤°_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(5093))},3383:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(5093))},5050:function(e,t,n){!function(e){"use strict";var t={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«­",8:"à«®",9:"૯",0:"૦"},n={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«­":"7","à«®":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(5093))},1713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",
vendor: 4,747 bytes, line 2
2ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(5093))},3861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"राà
2¤¤"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(5093))},6308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[proÅ¡lu] [nedjelju] [u] LT";case 3:return"[proÅ¡lu] [srijedu] [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_Õ´Õ¡ÕµÕ«Õ½Õ«_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_Õ´Õ¡ÕµÕ«Õ½_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"Õ°Õ¶Õ¾_փտր_մրտ_ապր_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_օգս_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_ուրբաթ_Õ·Õ¡Õ¢Õ¡Õ©".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_Õ°Õ¶Õ£_ուրբ_Õ·Õ¢Õ©".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_Õ°Õ¶Õ£_ուրբ_Õ·Õ¢Õ©".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Õ©.",LLL:"D MMMM YYYY Õ©., HH:mm",LLLL:"dddd, D MMMM YYYY Õ©., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[Õ¾Õ¡Õ²Õ¨] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ÕªÕ¡Õ´Õ¨] LT"},lastWeek:function(){return"[անցած] dddd [օրը ÕªÕ¡Õ´Õ¨] LT"},sameElse:"L"},relativeTime:{future:"%s Õ°Õ¥Õ¿Õ¸",past:"%s Õ¡Õ¼Õ¡Õ»",s:"Õ´Õ« քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ÕªÕ¡Õ´",hh:"%d ÕªÕ¡Õ´",d:"օր",dd:"%d օր",M:"Õ¡Õ´Õ«Õ½",MM:"%d Õ¡Õ´Õ«Õ½",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(Õ«Õ¶|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-Õ«Õ¶":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(5093))},4063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(5093))},9374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";
vendor: 11,308 bytes, line 2
2case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},1827:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},8383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},3827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(5093))},9722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(5093))},1794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"})},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(5093))},7088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%
2d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(5093))},6870:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(5093))},4451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂ
2ದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(5093))},3164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(5093))},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?i[n][0]:i[n][1]}function n(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var r=t.toLowerCase();return r.includes("w")||r.includes("m")?e+".":e+n(e)},week:{dow:1,doy:4}})}(n(5093))},8174:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%
2d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},8474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%
2d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(5093))},9680:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return i(e)}return i(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},5867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(5093))},5766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_die
2nų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function i(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function s(e,t,n,s){var o=e+" ";return 1===e?o+r(e,t,n[0],s):t?o+(i(e)?a(n)[1]:a(n)[0]):s?o+a(n)[1]:o+(i(e)?a(n)[1]:a(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(5093))},9532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:a,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},8076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i
vendor: 4,540 bytes, line 2
2)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[proÅ¡le] [nedjelje] [u] LT","[proÅ¡log] [ponedjeljka] [u] LT","[proÅ¡log] [utorka] [u] LT","[proÅ¡le] [srijede] [u] LT","[proÅ¡log] [četvrtka] [u] LT","[proÅ¡log] [petka] [u] LT","[proÅ¡le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},1848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_PoutÅ«-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_TÅ«rei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_TÅ«_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_TÅ«_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(5093))},3739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ചà
2µ_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_à´¶".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(5093))},9053:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/Ò®Ó¨|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"Ò®Ó¨":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(5093))},6169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}
vendor: 7,593 bytes, line 2
2else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(5093))},2297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},3386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},7075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},2264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနညá€
2ºá€¸á€„ယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(5093))},2274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(5093))},3784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},2572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},4566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._mÃ¥._t
2y._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},9849:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(5093))},2037:function(e,t,n){!function(e){"use strict";
vendor: 4,251 bytes, line 2
2var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},8303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(5093))},9834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
2d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},4457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(5093))},2271:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|ок
vendor: 12,391 bytes, line 2
2т\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(5093))},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},3478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(5093))},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6637:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,s=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===r&&n&&"годину"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_ок
2тобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},8100:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,s=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===r&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
vendor: 9,945 bytes, line 2
2S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(5093))},1011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_mÃ¥ndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mÃ¥n_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_mÃ¥_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[IgÃ¥r] LT",nextWeek:"[PÃ¥] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"nÃ¥gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en mÃ¥nad",MM:"%d mÃ¥nader",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(5093))},748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(5093))},1025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(5093))},1885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_à°¶".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}à°µ/,ordinal:"%dà°µ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(5093))},8861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6571:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Ñ
2ÐºÑˆÐ°Ð½Ð±Ðµ_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(5093))},5802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(5093))},9527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
vendor: 10,502 bytes, line 2
2,calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}})}(n(5093))},9231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},1052:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function i(e,t,n,r){var i=a(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function a(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},5096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}})}(n(5093))},9846:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(5093))},1765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ â´´] LT",nextDay:"[ⴰⵙⴽⴰ â´´] LT",nextWeek:"dddd [â´´] LT",lastDay:"[ⴰⵚⴰⵏⵜ â´´] LT",lastWeek:"dddd [â´´] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"â´°âµ¢oⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(5093))},8414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىÙ
2† بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(5093))},6618:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r],+e)}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(5093))},158:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},2475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(5093))},7609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%
2d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(5093))},1135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},4051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~út
2é",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},2218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(5093))},2648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(5093))},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;
vendor: 6,549 bytes, line 2
2return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},1541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},5358:function(e,t,n){var r={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":2500,"./fa.js":2500,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":25
vendor: 6,182 bytes, line 2
272,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":2037,"./pl.js":2037,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":8100,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":8100,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=5358},5093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,r){return Vn(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function y(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=g(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function v(e){var t=_(NaN);return null!=e?f(g(t),e):g(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=i.momentProperties=[],w=!1;function M(e,t){var n,r,i,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(i=t[r=b[n]])||(e[r]=i);return e}function k(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,i.updateOffset(this),w=!1)}function L(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function T(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function S(e,t){var n=!0;return f(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,a,s,o=[],c=arguments.length;for(a=0;a<c;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])l(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];o.push(r)}T(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var C,A={};function D(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),A[e]||(T(t),A[e]=!0)}function Y(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)l(e,n)&&(Y(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n,r=f({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Y(r)?r.call(t,n):r}function R(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 56,348 bytes, line 2
2|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},q={};function U(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(q[e]=i),t&&(q[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(q[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function F(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(j);for(t=0,n=r.length;t<n;t++)q[r[t]]?r[t]=q[r[t]]:r[t]=F(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=Y(r[i])?r[i].call(t,e):r[i];return a}}function W(e,t){return e.isValid()?(t=z(t,e.localeData()),H[t]=H[t]||B(t),H[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var K={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var G="Invalid date";function V(){return this._invalidDate}var J="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return Y(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return Y(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ae={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function se(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var oe,le=/\d/,ce=/\d\d/,ue=/\d{3}/,de=/\d{4}/,he=/[+-]?\d{6}/,me=/\d\d?/,fe=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,pe=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Te=/^[1-9]\d?/,Se=/^([1-9]\d|\d)/;function Ce(e,t,n){oe[e]=Y(t)?t:function(e,r){return e&&n?n:t}}function Ae(e,t){return l(oe,e)?oe[e](t._strict,t._locale):new RegExp(De(e))}function De(e){return Ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ee(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function xe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ee(t)),n}oe={};var Oe={};function Ie(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=xe(e)}),r=e.length,n=0;n<r;n++)Oe[e[n]]=i}function Ne(e,t){Ie(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Re(e,t,n){null!=t&&l(Oe,e)&&Oe[e](t,n._a,n,e)}function je(e){return e%4==0&&e%100!=0||e%400==0}var Pe=0,He=1,qe=2,Ue=3,Fe=4,Be=5,We=6,ze=7,Ke=8;function $e(e){return je(e)?366:365}U("Y",0,0,function(){var e=this.year();return e<=9999?R(e,4):"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),Ce("Y",be),Ce("YY",me,ce),Ce("YYYY",ge,de),Ce("YYYYY",ye,he),Ce("YYYYYY",ye,he),Ie(["YYYYY","YYYYYY"],Pe),Ie("YYYY",function(e,t){t[Pe]=2===e.length?i.parseTwoDigitYear(e):xe(e)}),Ie("YY",function(e,t){t[Pe]=i.parseTwoDigitYear(e)}),Ie("Y",function(e,t){t[Pe]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return xe(e)+(xe(e)>68?1900:2e3)};var Ge,Ve=Qe("FullYear",!0);function Je(){return je(this.year())}function Qe(e,t){return function(n){return null!=n?(Xe(this,e,n),i.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Xe(e,t,n){var r,i,a,s,o;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=29!==(o=e.date())||1!==s||je(a)?o:28,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function et(e){return Y(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(Y(this[e=re(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?je(e)?29:28:31-n%7%2}Ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ce("M",me,Te),Ce("MM",me,ce),Ce("MMM",function(e,t){return t.monthsShortRegex(e)}),Ce("MMMM",function(e,t){return t.monthsRegex(e)}),Ie(["M","MM"],function(e,t){t[He]=xe(e)-1}),Ie(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[He]=i:g(n).invalidMonth=e});var it="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),at="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Le,lt=Le;function ct(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ut(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ge.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,s))||-1!==(i=Ge.call(this._longMonthsParse,s))?i:null:-1!==(i=Ge.call(this._longMonthsParse,s))||-1!==(i=Ge.call(this._shortMonthsParse,s))?i:null}function ht(e,t,n){var r,i,a;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function mt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=xe(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function ft(e){return null!=e?(mt(this,e),i.updateOffset(this,!0),this):Ze(this,"Month")}function _t(){return rt(this.year(),this.month())}function pt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],s=[],o=[];for(t=0;t<12;t++)n=_([2e3,t]),r=Ye(this.monthsShort(n,"")),i=Ye(this.months(n,"")),a.push(r),s.push(i),o.push(i),o.push(r);a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function Mt(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return o<=0?s=$e(a=e-1)+o:o>$e(e)?(a=e+1,s=o-$e(e)):(a=e,s=o),{year:a,dayOfYear:s}}function kt(e,t,n){var r,i,a=wt(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Lt(i=e.year()-1,t,n):s>Lt(e.year(),t,n)?(r=s-Lt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Lt(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return($e(e)-r+i)/7}function Tt(e){return kt(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),Ce("w",me,Te),Ce("ww",me,ce),Ce("W",me,Te),Ce("WW",me,ce),Ne(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=xe(e)});var St={dow:0,doy:6};function Ct(){return this._week.dow}function At(){return this._week.doy}function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Yt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Et(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function xt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),Ce("d",me),Ce("e",me),Ce("E",me),Ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ce("dddd",function(e,t){return t.weekdaysRegex(e)}),Ne(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),Ne(["d","e","E"],function(e,t,n,r){t[r]=xe(e)});var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=Le,Pt=Le,Ht=Le;function qt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ft(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null}function Wt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Et(e,this.localeData()),this.add(e-t,"d")):t}function Kt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=xt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,s=[],o=[],l=[],c=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=Ye(this.weekdaysMin(n,"")),i=Ye(this.weekdaysShort(n,"")),a=Ye(this.weekdays(n,"")),s.push(r),o.push(i),l.push(a),c.push(r),c.push(i),c.push(a);s.sort(e),o.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function en(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Zt),U("k",["kk",2],0,Xt),U("hmm",0,0,function(){return""+Zt.apply(this)+R(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Zt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),en("a",!0),en("A",!1),Ce("a",tn),Ce("A",tn),Ce("H",me,Se),Ce("h",me,Te),Ce("k",me,Te),Ce("HH",me,ce),Ce("hh",me,ce),Ce("kk",me,ce),Ce("hmm",fe),Ce("hmmss",_e),Ce("Hmm",fe),Ce("Hmmss",_e),Ie(["H","HH"],Ue),Ie(["k","kk"],function(e,t,n){var r=xe(e);t[Ue]=24===r?0:r}),Ie(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Ie(["h","hh"],function(e,t,n){t[Ue]=xe(e),g(n).bigHour=!0}),Ie("hmm",function(e,t,n){var r=e.length-2;t[Ue]=xe(e.substr(0,r)),t[Fe]=xe(e.substr(r)),g(n).bigHour=!0}),Ie("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ue]=xe(e.substr(0,r)),t[Fe]=xe(e.substr(r,2)),t[Be]=xe(e.substr(i)),g(n).bigHour=!0}),Ie("Hmm",function(e,t,n){var r=e.length-2;t[Ue]=xe(e.substr(0,r)),t[Fe]=xe(e.substr(r))}),Ie("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ue]=xe(e.substr(0,r)),t[Fe]=xe(e.substr(r,2)),t[Be]=xe(e.substr(i))});var rn=/[ap]\.?m?\.?/i,an=Qe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,ln={calendar:I,longDateFormat:K,invalidDate:G,ordinal:J,dayOfMonthOrdinalParse:Q,relativeTime:X,months:it,monthsShort:at,week:St,weekdays:It,weekdaysMin:Rt,weekdaysShort:Nt,meridiemParse:rn},cn={},un={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=hn(e[a]).split("-")).length,n=(n=hn(e[a+1]))?n.split("-"):null;t>0;){if(r=_n(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}a++}return on}function fn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function _n(t){var r=null;if(void 0===cn[t]&&e&&e.exports&&fn(t))try{r=on._abbr,n(5358)("./"+t),pn(r)}catch(e){cn[t]=null}return cn[t]}function pn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?on=n:"undefined"!=typeof console&&console.warn),on._abbr}function gn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=_n(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new O(x(r,t)),un[e]&&un[e].forEach(function(e){gn(e.name,e.config)}),pn(e),cn[e]}return delete cn[e],null}function yn(e,t){if(null!=t){var n,r,i=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(x(cn[e]._config,t)):(null!=(r=_n(e))&&(i=r._config),t=x(i,t),null==r&&(t.abbr=e),(n=new O(t)).parentLocale=cn[e],cn[e]=n),pn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===pn()&&pn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!s(e)){if(t=_n(e))return t;e=[e]}return mn(e)}function bn(){return C(cn)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[He]<0||n[He]>11?He:n[qe]<1||n[qe]>rt(n[Pe],n[He])?qe:n[Ue]<0||n[Ue]>24||24===n[Ue]&&(0!==n[Fe]||0!==n[Be]||0!==n[We])?Ue:n[Fe]<0||n[Fe]>59?Fe:n[Be]<0||n[Be]>59?Be:n[We]<0||n[We]>999?We:-1,g(e)._overflowDayOfYear&&(t<Pe||t>qe)&&(t=qe),g(e)._overflowWeeks&&-1===t&&(t=ze),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}var Mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,An=/^(?:(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{4}))$/,Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yn(e){var t,n,r,i,a,s,o=e._i,l=Mn.exec(o)||kn.exec(o),c=Tn.length,u=Sn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(Tn[t][1].exec(l[1])){i=Tn[t][0],r=!1!==Tn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Sn[t][1].exec(l[3])){a=(l[2]||" ")+Sn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Ln.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),Fn(e)}else e._isValid=!1}function En(e,t,n,r,i,a){var s=[xn(e),at.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function xn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function On(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(e,t,n){if(e)return Dn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Rn(e){var t,n=An.exec(On(e._i));if(n){if(t=En(n[4],n[3],n[2],n[5],n[6],n[7]),!In(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function jn(e){var t=Cn.exec(e._i);null===t?(Yn(e),!1===e._isValid&&(delete e._isValid,Rn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Pn(e,t,n){return null!=e?e:null!=t?t:n}function Hn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function qn(e){var t,n,r,i,a,s=[];if(!e._d){for(r=Hn(e),e._w&&null==e._a[qe]&&null==e._a[He]&&Un(e),null!=e._dayOfYear&&(a=Pn(e._a[Pe],r[Pe]),(e._dayOfYear>$e(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[qe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[Fe]&&0===e._a[Be]&&0===e._a[We]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?bt:vt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,a,s,o,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,n=Pn(t.GG,e._a[Pe],kt(Jn(),1,4).year),r=Pn(t.W,1),((i=Pn(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=kt(Jn(),a,s),n=Pn(t.gg,e._a[Pe],c.year),r=Pn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Lt(n,a,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=Mt(n,r,i,a,s),e._a[Pe]=o.year,e._dayOfYear=o.dayOfYear)}function Fn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],g(e).empty=!0;var t,n,r,a,s,o,l,c=""+e._i,u=c.length,d=0;for(l=(r=z(e._f,e._locale).match(j)||[]).length,t=0;t<l;t++)a=r[t],(n=(c.match(Ae(a,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),d+=n.length),q[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Re(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);g(e).charsLeftOver=u-d,c.length>0&&g(e).unusedInput.push(c),e._a[Ue]<=12&&!0===g(e).bigHour&&e._a[Ue]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Ue]=Bn(e._locale,e._a[Ue],e._meridiem),null!==(o=g(e).era)&&(e._a[Pe]=e._locale.erasConvertYear(o,e._a[Pe])),qn(e),wn(e)}else Rn(e);else Yn(e)}function Bn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Wn(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,s=!1,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Fn(t),y(t)&&(s=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));f(e,n||t)}function zn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),qn(e)}}function Kn(e){var t=new k(wn($n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new k(wn(t)):(h(t)?e._d=t:s(n)?Wn(e):n?Fn(e):Gn(e),y(e)||(e._d=null),e))}function Gn(e){var t=e._i;u(t)?e._d=new Date(i.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?jn(e):s(t)?(e._a=m(t.slice(0),function(e){return parseInt(e,10)}),qn(e)):o(t)?zn(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Vn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,Kn(a)}function Jn(e,t,n,r){return Vn(e,t,n,r,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Qn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Zn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Xn(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Xn("isBefore",[].slice.call(arguments,0))}function tr(){return Xn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(l(e,t)&&(-1===Ge.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==xe(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return Dr(NaN)}function or(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ir(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function lr(e){return e instanceof or}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&xe(e[r])!==xe(t[r]))&&s++;return s+a}function dr(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)})}dr("Z",":"),dr("ZZ",""),Ce("Z",Me),Ce("ZZ",Me),Ie(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=mr(Me,e)});var hr=/([\+\-]|\d\d)/gi;function mr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(hr)||["-",0,0])[1]+xe(n[2]))?0:"+"===n[0]?r:-r}function fr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(L(e)||h(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Jn(e).local()}function _r(e){return-Math.round(e._d.getTimezoneOffset())}function pr(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Me,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=_r(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Ir(this,Dr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:_r(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_r(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Mr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=$n(t))._a?(e=t._isUTC?_(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Lr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(e,t){var n,r,i,a=e,s=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=Cr.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:xe(s[qe])*n,h:xe(s[Ue])*n,m:xe(s[Fe])*n,s:xe(s[Be])*n,ms:xe(cr(1e3*s[We]))*n}):(s=Ar.exec(e))?(n="-"===s[1]?-1:1,a={y:Yr(s[2],n),M:Yr(s[3],n),w:Yr(s[4],n),d:Yr(s[5],n),h:Yr(s[6],n),m:Yr(s[7],n),s:Yr(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=xr(Jn(a.from),Jn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Yr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Er(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function xr(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Er(e,t):((n=Er(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Or(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Ir(this,Dr(n,r),e),this}}function Ir(e,t,n,r){var a=t._milliseconds,s=cr(t._days),o=cr(t._months);e.isValid()&&(r=null==r||r,o&&mt(e,Ze(e,"Month")+o*n),s&&Xe(e,"Date",Ze(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,s||o))}Dr.fn=or.prototype,Dr.invalid=sr;var Nr=Or(1,"add"),Rr=Or(-1,"subtract");function jr(e){return"string"==typeof e||e instanceof String}function Pr(e){return L(e)||h(e)||jr(e)||d(e)||qr(e)||Hr(e)||null==e}function Hr(e){var t,n,r=o(e)&&!c(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(t=0;t<s;t+=1)n=a[t],i=i||l(e,n);return r&&i}function qr(e){var t=s(e),n=!1;return t&&(n=0===e.filter(function(t){return!d(t)&&jr(e)}).length),t&&n}function Ur(e){var t,n,r=o(e)&&!c(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||l(e,n);return r&&i}function Fr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Br(e,t){1===arguments.length&&(arguments[0]?Pr(arguments[0])?(e=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),r=fr(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",s=t&&(Y(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Jn(n)))}function Wr(){return new k(this)}function zr(e,t){var n=L(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Kr(e,t){var n=L(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $r(e,t,n,r){var i=L(e)?e:Jn(e),a=L(t)?t:Jn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Gr(e,t){var n,r=L(e)?e:Jn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Vr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Jr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Zr(this,r)/12;break;case"month":a=Zr(this,r);break;case"quarter":a=Zr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Ee(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Y(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(L(e)&&e.isValid()||Jn(e).isValid())?Dr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Jn(),e)}function ai(e,t){return this.isValid()&&(L(e)&&e.isValid()||Jn(e).isValid())?Dr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Jn(),e)}function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function ci(){return this._locale}var ui=1e3,di=60*ui,hi=60*di,mi=3506328*hi;function fi(e,t){return(e%t+t)%t}function _i(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mi:new Date(e,t,n).valueOf()}function pi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pi:_i,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=fi(t,di);break;case"second":t=this._d.valueOf(),t-=fi(t,ui)}return this._d.setTime(t),i.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pi:_i,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-fi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-fi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ui-fi(t,ui)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Mi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ki(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Li(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function Si(){return f({},g(this))}function Ci(){return g(this).overflow}function Ai(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Di(e,t){var n,r,a,s=this._eras||vn("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(a=i(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=i(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function Yi(e,t,n){var r,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),o=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(o===e)return l[r]}else if([a,s,o].indexOf(e)>=0)return l[r]}function Ei(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function xi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Oi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ii(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ni(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-i(a[e].since).year())*n+a[e].offset;return this.year()}function Ri(e){return l(this,"_erasNameRegex")||Bi.call(this),e?this._erasNameRegex:this._erasRegex}function ji(e){return l(this,"_erasAbbrRegex")||Bi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pi(e){return l(this,"_erasNarrowRegex")||Bi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hi(e,t){return t.erasAbbrRegex(e)}function qi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Fi(e,t){return t._eraYearOrdinalRegex||ve}function Bi(){var e,t,n,r,i,a=[],s=[],o=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=Ye(c[e].name),r=Ye(c[e].abbr),i=Ye(c[e].narrow),s.push(n),a.push(r),o.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Wi(e,t){U(0,[e,e.length],0,t)}function zi(e){return Qi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ki(e){return Qi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $i(){return Lt(this.year(),1,4)}function Gi(){return Lt(this.isoWeekYear(),1,4)}function Vi(){var e=this.localeData()._week;return Lt(this.year(),e.dow,e.doy)}function Ji(){var e=this.localeData()._week;return Lt(this.weekYear(),e.dow,e.doy)}function Qi(e,t,n,r,i){var a;return null==e?kt(this,r,i).year:(t>(a=Lt(e,r,i))&&(t=a),Zi.call(this,e,t,n,r,i))}function Zi(e,t,n,r,i){var a=Mt(e,t,n,r,i),s=bt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ce("N",Hi),Ce("NN",Hi),Ce("NNN",Hi),Ce("NNNN",qi),Ce("NNNNN",Ui),Ie(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e}),Ce("y",ve),Ce("yy",ve),Ce("yyy",ve),Ce("yyyy",ve),Ce("yo",Fi),Ie(["y","yy","yyy","yyyy"],Pe),Ie(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Pe]=n._locale.eraYearOrdinalParse(e,i):t[Pe]=parseInt(e,10)}),U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Wi("gggg","weekYear"),Wi("ggggg","weekYear"),Wi("GGGG","isoWeekYear"),Wi("GGGGG","isoWeekYear"),Ce("G",be),Ce("g",be),Ce("GG",me,ce),Ce("gg",me,ce),Ce("GGGG",ge,de),Ce("gggg",ge,de),Ce("GGGGG",ye,he),Ce("ggggg",ye,he),Ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=xe(e)}),Ne(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),Ce("Q",le),Ie("Q",function(e,t){t[He]=3*(xe(e)-1)}),U("D",["DD",2],"Do","date"),Ce("D",me,Te),Ce("DD",me,ce),Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Ie(["D","DD"],qe),Ie("Do",function(e,t){t[qe]=xe(e.match(me)[0])});var ea=Qe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),Ce("DDD",pe),Ce("DDDD",ue),Ie(["DDD","DDDD"],function(e,t,n){n._dayOfYear=xe(e)}),U("m",["mm",2],0,"minute"),Ce("m",me,Se),Ce("mm",me,ce),Ie(["m","mm"],Fe);var na=Qe("Minutes",!1);U("s",["ss",2],0,"second"),Ce("s",me,Se),Ce("ss",me,ce),Ie(["s","ss"],Be);var ra,ia,aa=Qe("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ce("S",pe,le),Ce("SS",pe,ce),Ce("SSS",pe,ue),ra="SSSS";ra.length<=9;ra+="S")Ce(ra,ve);function sa(e,t){t[We]=xe(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")Ie(ra,sa);function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=Qe("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ca=k.prototype;function ua(e){return Jn(1e3*e)}function da(){return Jn.apply(null,arguments).parseZone()}function ha(e){return e}ca.add=Nr,ca.calendar=Br,ca.clone=Wr,ca.diff=Qr,ca.endOf=yi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=si,ca.get=et,ca.invalidAt=Ci,ca.isAfter=zr,ca.isBefore=Kr,ca.isBetween=$r,ca.isSame=Gr,ca.isSameOrAfter=Vr,ca.isSameOrBefore=Jr,ca.isValid=Ti,ca.lang=li,ca.locale=oi,ca.localeData=ci,ca.max=Zn,ca.min=Qn,ca.parsingFlags=Si,ca.set=tt,ca.startOf=gi,ca.subtract=Rr,ca.toArray=Mi,ca.toObject=ki,ca.toDate=wi,ca.toISOString=ei,ca.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Li,ca.toString=Xr,ca.unix=bi,ca.valueOf=vi,ca.creationData=Ai,ca.eraName=xi,ca.eraNarrow=Oi,ca.eraAbbr=Ii,ca.eraYear=Ni,ca.year=Ve,ca.isLeapYear=Je,ca.weekYear=zi,ca.isoWeekYear=Ki,ca.quarter=ca.quarters=Xi,ca.month=ft,ca.daysInMonth=_t,ca.week=ca.weeks=Dt,ca.isoWeek=ca.isoWeeks=Yt,ca.weeksInYear=Vi,ca.weeksInWeekYear=Ji,ca.isoWeeksInYear=$i,ca.isoWeeksInISOWeekYear=Gi,ca.date=ea,ca.day=ca.days=zt,ca.weekday=Kt,ca.isoWeekday=$t,ca.dayOfYear=ta,ca.hour=ca.hours=an,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ia,ca.utcOffset=pr,ca.utc=yr,ca.local=vr,ca.parseZone=br,ca.hasAlignedHourOffset=wr,ca.isDST=Mr,ca.isLocal=Lr,ca.isUtcOffset=Tr,ca.isUtc=Sr,ca.isUTC=Sr,ca.zoneAbbr=oa,ca.zoneName=la,ca.dates=S("dates accessor is deprecated. Use date instead.",ea),ca.months=S("months accessor is deprecated. Use month instead",ft),ca.years=S("years accessor is deprecated. Use year instead",Ve),ca.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ca.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var ma=O.prototype;function fa(e,t,n,r){var i=vn(),a=_().set(r,t);return i[n](a,e)}function _a(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fa(e,r,n,"month");return i}function pa(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,a=vn(),s=e?a._week.dow:0,o=[];if(null!=n)return fa(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=fa(t,(i+s)%7,r,"day");return o}function ga(e,t){return _a(e,t,"months")}function ya(e,t){return _a(e,t,"monthsShort")}function va(e,t,n){return pa(e,t,n,"weekdays")}function ba(e,t,n){return pa(e,t,n,"weekdaysShort")}function wa(e,t,n){return pa(e,t,n,"weekdaysMin")}ma.calendar=N,ma.longDateFormat=$,ma.invalidDate=V,ma.ordinal=Z,ma.preparse=ha,ma.postformat=ha,ma.relativeTime=ee,ma.pastFuture=te,ma.set=E,ma.eras=Di,ma.erasParse=Yi,ma.erasConvertYear=Ei,ma.erasAbbrRegex=ji,ma.erasNameRegex=Ri,ma.erasNarrowRegex=Pi,ma.months=ct,ma.monthsShort=ut,ma.monthsParse=ht,ma.monthsRegex=gt,ma.monthsShortRegex=pt,ma.week=Tt,ma.firstDayOfYear=At,ma.firstDayOfWeek=Ct,ma.weekdays=qt,ma.weekdaysMin=Ft,ma.weekdaysShort=Ut,ma.weekdaysParse=Wt,ma.weekdaysRegex=Gt,ma.weekdaysShortRegex=Vt,ma.weekdaysMinRegex=Jt,ma.isPM=nn,ma.meridiem=sn,pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===xe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",pn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ma=Math.abs;function ka(){var e=this._data;return this._milliseconds=Ma(this._milliseconds),this._days=Ma(this._days),this._months=Ma(this._months),e.milliseconds=Ma(e.milliseconds),e.seconds=Ma(e.seconds),e.minutes=Ma(e.minutes),e.hours=Ma(e.hours),e.months=Ma(e.months),e.years=Ma(e.years),this}function La(e,t,n,r){var i=Dr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ta(e,t){return La(this,e,t,1)}function Sa(e,t){return La(this,e,t,-1)}function Ca(e){return e<0?Math.floor(e):Math.ceil(e)}function Aa(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ca(Ya(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=Ee(a/1e3),l.seconds=e%60,t=Ee(e/60),l.minutes=t%60,n=Ee(t/60),l.hours=n%24,s+=Ee(n/24),o+=i=Ee(Da(s)),s-=Ca(Ya(i)),r=Ee(o/12),o%=12,l.days=s,l.months=o,l.years=r,this}function Da(e){return 4800*e/146097}function Ya(e){return 146097*e/4800}function Ea(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Da(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ya(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function xa(e){return function(){return this.as(e)}}var Oa=xa("ms"),Ia=xa("s"),Na=xa("m"),Ra=xa("h"),ja=xa("d"),Pa=xa("w"),Ha=xa("M"),qa=xa("Q"),Ua=xa("y"),Fa=Oa;function Ba(){return Dr(this)}function Wa(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function za(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ka=za("milliseconds"),$a=za("seconds"),Ga=za("minutes"),Va=za("hours"),Ja=za("days"),Qa=za("months"),Za=za("years");function Xa(){return Ee(this.days()/7)}var es=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ns(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function rs(e,t,n,r){var i=Dr(e).abs(),a=es(i.as("s")),s=es(i.as("m")),o=es(i.as("h")),l=es(i.as("d")),c=es(i.as("M")),u=es(i.as("w")),d=es(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ns.apply(null,h)}function is(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ts;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=rs(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var os=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function cs(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,s,o,l=os(this._milliseconds)/1e3,c=os(this._days),u=os(this._months),d=this.asSeconds();return d?(e=Ee(l/60),t=Ee(e/60),l%=60,e%=60,n=Ee(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=ls(this._months)!==ls(d)?"-":"",s=ls(this._days)!==ls(d)?"-":"",o=ls(this._milliseconds)!==ls(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var us=or.prototype;return us.isValid=ar,us.abs=ka,us.add=Ta,us.subtract=Sa,us.as=Ea,us.asMilliseconds=Oa,us.asSeconds=Ia,us.asMinutes=Na,us.asHours=Ra,us.asDays=ja,us.asWeeks=Pa,us.asMonths=Ha,us.asQuarters=qa,us.asYears=Ua,us.valueOf=Fa,us._bubble=Aa,us.clone=Ba,us.get=Wa,us.milliseconds=Ka,us.seconds=$a,us.minutes=Ga,us.hours=Va,us.days=Ja,us.weeks=Xa,us.months=Qa,us.years=Za,us.humanize=ss,us.toISOString=cs,us.toString=cs,us.toJSON=cs,us.locale=oi,us.localeData=ci,us.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),us.lang=li,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ce("x",be),Ce("X",ke),Ie("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Ie("x",function(e,t,n){n._d=new Date(xe(e))}),i.version="2.30.1",a(Jn),i.fn=ca,i.min=er,i.max=tr,i.now=nr,i.utc=_,i.unix=ua,i.months=ga,i.isDate=h,i.locale=pn,i.invalid=v,i.duration=Dr,i.isMoment=L,i.weekdays=va,i.parseZone=da,i.localeData=vn,i.isDuration=lr,i.monthsShort=ya,i.weekdaysMin=wa,i.defineLocale=gn,i.updateLocale=yn,i.locales=bn,i.weekdaysShort=ba,i.normalizeUnits=re,i.relativeTimeRounding=is,i.relativeTimeThreshold=as,i.calendarFormat=Fr,i.prototype=ca,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},714:function(e){"use strict";e.exports=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}},9106:function(e,t,n){"use strict";
vendor: 12,315 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});const r=n(7193),i=n(8142);var a;!function(e){e.compose=function(e={},t={},n=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let i=r(t);n||(i=Object.keys(i).reduce((e,t)=>(null!=i[t]&&(e[t]=i[t]),e),{}));for(const n in e)void 0!==e[n]&&void 0===t[n]&&(i[n]=e[n]);return Object.keys(i).length>0?i:void 0},e.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});const n=Object.keys(e).concat(Object.keys(t)).reduce((n,r)=>(i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n),{});return Object.keys(n).length>0?n:void 0},e.invert=function(e={},t={}){e=e||{};const n=Object.keys(t).reduce((n,r)=>(t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n),{});return Object.keys(e).reduce((n,r)=>(e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n),n)},e.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;const r=Object.keys(t).reduce((n,r)=>(void 0===e[r]&&(n[r]=t[r]),n),{});return Object.keys(r).length>0?r:void 0}}(a||(a={})),t.default=a},2660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const r=n(5606),i=n(7193),a=n(8142),s=n(9106);t.AttributeMap=s.default;const o=n(5759);t.Op=o.default;const l=n(8317);t.OpIterator=l.default;const c=String.fromCharCode(0),u=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class d{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=i(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!=typeof n))return this.ops.unshift(e),this;if(a(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(r=>{(e(r)?t:n).push(r)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+o.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+o.default.length(t),0)}slice(e=0,t=1/0){const n=[],r=new l.default(this.ops);let i=0;for(;i<t&&r.hasNext();){let a;i<e?a=r.next(e-i):(a=r.next(t-i),n.push(a)),i+=o.default.length(a)}return new d(n)}compose(e){const t=new l.default(this.ops),n=new l.default(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){let e=i.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),r.push(t.next());i.retain-e>0&&n.next(i.retain-e)}const o=new d(r);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())o.push(n.next());else if("delete"===t.peekType())o.push(t.next());else{const e=Math.min(t.peekLength(),n.peekLength()),r=t.next(e),i=n.next(e);if(i.retain){const l={};if("number"==typeof r.retain)l.retain="number"==typeof i.retain?e:i.retain;else if("number"==typeof i.retain)null==r.retain?l.insert=r.insert:l.retain=r.retain;else{const e=null==r.retain?"insert":"retain",[t,n,a]=u(r[e],i.retain),s=d.getHandler(t);l[e]={[t]:s.compose(n,a,"retain"===e)}}const c=s.default.compose(r.attributes,i.attributes,"number"==typeof r.retain);if(c&&(l.attributes=c),o.push(l),!n.hasNext()&&a(o.ops[o.ops.length-1],l)){const e=new d(t.rest());return o.concat(e).chop()}}else"number"==typeof i.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&o.push(i)}return o.chop()}concat(e){const t=new d(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new d;const n=[this,e].map(t=>t.map(n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:c;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")),i=new d,o=r(n[0],n[1],t,!0),u=new l.default(this.ops),h=new l.default(e.ops);return o.forEach(e=>{let t=e[1].length;for(;t>0;){let n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),i.push(h.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);const e=u.next(n),o=h.next(n);a(e.insert,o.insert)?i.retain(n,s.default.diff(e.attributes,o.attributes)):i.push(o).delete(n)}t-=n}}),i.chop()}eachLine(e,t="\n"){const n=new l.default(this.ops);let r=new d,i=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const a=n.peek(),s=o.default.length(a)-n.peekLength(),l="string"==typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new d}}r.length()>0&&e(r,{},i)}invert(e){const t=new d;return this.reduce((n,r)=>{if(r.insert)t.delete(o.default.length(r));else{if("number"==typeof r.retain&&null==r.attributes)return t.retain(r.retain),n+r.retain;if(r.delete||"number"==typeof r.retain){const i=r.delete||r.retain;return e.slice(n,n+i).forEach(e=>{r.delete?t.push(e):r.retain&&r.attributes&&t.retain(o.default.length(e),s.default.invert(r.attributes,e.attributes))}),n+i}if("object"==typeof r.retain&&null!==r.retain){const i=e.slice(n,n+1),a=new l.default(i.ops).next(),[o,c,h]=u(r.retain,a.insert),m=d.getHandler(o);return t.retain({[o]:m.invert(c,h)},s.default.invert(r.attributes,a.attributes)),n+1}}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const n=e,r=new l.default(this.ops),i=new l.default(n.ops),a=new d;for(;r.hasNext()||i.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())a.push(i.next());else{const e=Math.min(r.peekLength(),i.peekLength()),n=r.next(e),o=i.next(e);if(n.delete)continue;if(o.delete)a.push(o);else{const r=n.retain,i=o.retain;let l="object"==typeof i&&null!==i?i:e;if("object"==typeof r&&null!==r&&"object"==typeof i&&null!==i){const e=Object.keys(r)[0];if(e===Object.keys(i)[0]){const n=d.getHandler(e);n&&(l={[e]:n.transform(r[e],i[e],t)})}}a.retain(l,s.default.transform(n.attributes,o.attributes,t))}}else a.retain(o.default.length(r.next()));return a.chop()}transformPosition(e,t=!1){t=!!t;const n=new l.default(this.ops);let r=0;for(;n.hasNext()&&r<=e;){const i=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e}}d.Op=o.default,d.OpIterator=l.default,d.AttributeMap=s.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d},5759:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1}}(n||(n={})),t.default=n},8317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5759);t.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const t=this.ops[this.index];if(t){const n=this.offset,i=r.default.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{const r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"object"==typeof t.retain&&null!==t.retain?r.retain=t.retain:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}}return[]}}},3697:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new i(r,a||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i<a;i++)s[i]=r[i].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var l,c,u=this._events[o],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,a),!0;case 6:return u.fn.call(u.context,t,r,i,a,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,m=u.length;for(c=0;c<m;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,a);else{for(var l=0,c=[],u=o.length;l<u;l++)(o[l].fn!==t||i&&!o[l].once||r&&o[l].context!==r)&&c.push(o[l]);c.length?this._events[a]=1===c.length?c[0]:c:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},1020:function(e,t,n){"use strict";var r=n(6540),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:a,_owner:o.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4848:function(e,t,n){"use strict";e.exports=n(1020)},5719:function(e,t,n){"use strict";var r=n(1083),i=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},a=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};t.A=function(e){var t,n,s,o=r.A.create({baseURL:(t=window.location.protocol,n=window.location.hostname,s=window.location.port,"".concat(t,"//").concat(n).concat(s?":".concat(s):"")),headers:{"Content-Type":"application/json; charset=UTF-8"},timeout:3e4,withCredentials:!0});o.interceptors.request.use(function(t){return e&&(t.headers.Authorization="Bearer ".concat(e)),t.headers["X-Requested-With"]="XMLHttpRequest",t},function(e){return Promise.reject(e)}),o.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});var l=function(e){return e.data};return{get:function(e,t){return i(void 0,void 0,void 0,function(){var n,r;return a(this,function(i){switch(i.label){case 0:return n=function(e){if(!e)return"";var t=Array.from(e.keys()).map(function(t){return"".concat(t,"=").concat(encodeURIComponent("".concat(e.get(t))))}).join("&");return"?".concat(t)}(t),[4,o.get("".concat(e).concat(n),void 0)];case 1:return r=i.sent(),[2,l(r)]}})})},patch:function(e,t){return i(void 0,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:return[4,o.patch(e,t,void 0)];case 1:return n=r.sent(),[2,l(n)]}})})},post:function(e,t){return i(void 0,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:return[4,o.post(e,t,void 0)];case 1:return n=r.sent(),[2,l(n)]}})})},put:function(e,t){return i(void 0,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:return[4,o.put(e,t,void 0)];case 1:return n=r.sent(),[2,l(n)]}})})},delete:function(e,t){return i(void 0,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:return[4,o.delete(e,void 0!==t?{data:t}:void 0)];case 1:return n=r.sent(),[2,l(n)]}})})}}}},9940:function(e,t,n){"use strict";var r=n(5719),i=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},a=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;
2function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},s={getUserInfo:function(e){return i(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,r.A)(e).get("/api/membership-service/api/user/userInfo")];case 1:return[2,n.sent()];case 2:throw t=n.sent(),console.error("Error fetching data:",t),t;case 3:return[2]}})})}};t.A=s},4333:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var r=(0,n(6540).createContext)({isAuthenticated:!1,login:function(){},register:function(){},logout:function(){},userAccount:null,getAccessToken:function(){return Promise.reject()},changeEmail:function(){},changeName:function(){},changePassword:function(){},deleteAccount:function(){}})},1583:function(e,t,n){"use strict";n.d(t,{O:function(){return Fc}});var r=n(4848),i=n(6540);const a={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},s=400,o=499,l=500,c=599,u=[a.OPENID_SCOPE,a.PROFILE_SCOPE,a.OFFLINE_ACCESS_SCOPE],d=[...u,a.EMAIL_SCOPE],h="Content-Type",m="Content-Length",f="Retry-After",_="X-AnchorMailbox",p="x-ms-request-id",g="x-ms-httpver",y="active-account-filters",v="common",b="organizations",w="consumers",M="access_token",k="xms_cc",L={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},T={PLAIN:"plain",S256:"S256"},S={QUERY:"query",FRAGMENT:"fragment"},C={...S,FORM_POST:"form_post"},A="authorization_code",D="refresh_token",Y="MSSTS",E="ADFS",x="Generic",O="-",I=".",N={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},R="appmetadata",j="1",P="authority-metadata",H=86400,q="config",U="cache",F="network",B="hardcoded_values",W={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},z={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},K=60,$=3600,G="throttling",V="retry-after, h429",J="invalid_grant",Q="client_mismatch",Z="username",X="password",ee=200,te=400,ne="1",re="3",ie="4",ae="2",se="4",oe="5",le="0",ce="1",ue="2",de="3",he="4",me="pop",fe="invalid_grant",_e=483,pe=600,ge="msal",ye=30,ve="msal.js.browser",be="53ee284d-920a-4b59-9d30-a60315b26836",we="ppnbnpeolgkicgegkbkbjmhlideopiji",Me="MATS",ke="Handshake",Le="HandshakeResponse",Te="GetToken",Se="Response",Ce="localStorage",Ae="sessionStorage",De="memoryStorage",Ye="GET",Ee="POST",xe="authority",Oe="request.state",Ie="nonce.id_token",Ne="request.origin",Re="urlHash",je="request.params",Pe="interaction.status",He="ccs.credential",qe="request.correlationId",Ue="request.native",Fe="msal.account.keys",Be="msal.token.keys",We="wrapper.sku",ze="wrapper.version",Ke=861,$e=862,Ge=863,Ve=865,Je=866,Qe=61,Ze=961,Xe=962;var et;!function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(et||(et={}));const tt={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},nt={scopes:u},rt={React:"@azure/msal-react",Angular:"@azure/msal-angular"},it="msal.db",at=`${it}.keys`,st=0,ot=1,lt=2,ct=3,ut=4,dt=5,ht=[st,dt,ut];var mt;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"}(mt||(mt={}));class ft{constructor(e,t,n){this.level=mt.Info;const r=e||ft.createDefaultLoggerOptions();this.localCallback=r.loggerCallback||(()=>{}),this.piiLoggingEnabled=r.piiLoggingEnabled||!1,this.level="number"==typeof r.logLevel?r.logLevel:mt.Info,this.correlationId=r.correlationId||a.EMPTY_STRING,this.packageName=t||a.EMPTY_STRING,this.packageVersion=n||a.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:mt.Info}}clone(e,t,n){return new ft({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)}logMessage(e,t){if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)return;const n=`${`[${(new Date).toUTCString()}] : [${t.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${mt[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,n,t.containsPii||!1)}executeCallback(e,t,n){this.localCallback&&this.localCallback(e,t,n)}error(e,t){this.logMessage(e,{logLevel:mt.Error,containsPii:!1,correlationId:t||a.EMPTY_STRING})}errorPii(e,t){this.logMessage(e,{logLevel:mt.Error,containsPii:!0,correlationId:t||a.EMPTY_STRING})}warning(e,t){this.logMessage(e,{logLevel:mt.Warning,containsPii:!1,correlationId:t||a.EMPTY_STRING})}warningPii(e,t){this.logMessage(e,{logLevel:mt.Warning,containsPii:!0,correlationId:t||a.EMPTY_STRING})}info(e,t){this.logMessage(e,{logLevel:mt.Info,containsPii:!1,correlationId:t||a.EMPTY_STRING})}infoPii(e,t){this.logMessage(e,{logLevel:mt.Info,containsPii:!0,correlationId:t||a.EMPTY_STRING})}verbose(e,t){this.logMessage(e,{logLevel:mt.Verbose,containsPii:!1,correlationId:t||a.EMPTY_STRING})}verbosePii(e,t){this.logMessage(e,{logLevel:mt.Verbose,containsPii:!0,correlationId:t||a.EMPTY_STRING})}trace(e,t){this.logMessage(e,{logLevel:mt.Trace,containsPii:!1,correlationId:t||a.EMPTY_STRING})}tracePii(e,t){this.logMessage(e,{logLevel:mt.Trace,containsPii:!0,correlationId:t||a.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}const _t="AAD",pt="OIDC",gt="none",yt="unexpected_error",vt="post_request_failed",bt={[yt]:"Unexpected error in authentication.",[vt]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};
2class wt extends Error{constructor(e,t,n){super(t?`${e}: ${t}`:e),Object.setPrototypeOf(this,wt.prototype),this.errorCode=e||a.EMPTY_STRING,this.errorMessage=t||a.EMPTY_STRING,this.subError=n||a.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function Mt(e,t){return new wt(e,t?`${bt[e]} ${t}`:bt[e])}const kt="client_info_decoding_error",Lt="client_info_empty_error",Tt="token_parsing_error",St="null_or_empty_token",Ct="endpoints_resolution_error",At="network_error",Dt="openid_config_error",Yt="hash_not_deserialized",Et="invalid_state",xt="state_mismatch",Ot="state_not_found",It="nonce_mismatch",Nt="auth_time_not_found",Rt="max_age_transpired",jt="multiple_matching_tokens",Pt="multiple_matching_accounts",Ht="multiple_matching_appMetadata",qt="request_cannot_be_made",Ut="cannot_remove_empty_scope",Ft="cannot_append_scopeset",Bt="empty_input_scopeset",Wt="device_code_polling_cancelled",zt="device_code_expired",Kt="device_code_unknown_error",$t="no_account_in_silent_request",Gt="invalid_cache_record",Vt="invalid_cache_environment",Jt="no_account_found",Qt="no_crypto_object",Zt="unexpected_credential_type",Xt="invalid_assertion",en="invalid_client_credential",tn="token_refresh_required",nn="user_timeout_reached",rn="token_claims_cnf_required_for_signedjwt",an="authorization_code_missing_from_server_response",sn="binding_key_not_removed",on="end_session_endpoint_not_supported",ln="key_id_missing",cn="no_network_connectivity",un="user_canceled",dn="missing_tenant_id_error",hn="method_not_implemented",mn="nested_app_auth_bridge_disabled",fn={[kt]:"The client info could not be parsed/decoded correctly",[Lt]:"The client info was empty",[Tt]:"Token cannot be parsed",[St]:"The token is null or empty",[Ct]:"Endpoints cannot be resolved",[At]:"Network request failed",[Dt]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[Yt]:"The hash parameters could not be deserialized",[Et]:"State was not the expected format",[xt]:"State mismatch error",[Ot]:"State not found",[It]:"Nonce mismatch error",[Nt]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[Rt]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[jt]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[Pt]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[Ht]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[qt]:"Token request cannot be made without authorization code or refresh token.",[Ut]:"Cannot remove null or empty scope from ScopeSet",[Ft]:"Cannot append ScopeSet",[Bt]:"Empty input ScopeSet cannot be processed",[Wt]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[zt]:"Device code is expired.",[Kt]:"Device code stopped polling for unknown reasons.",[$t]:"Please pass an account object, silent flow is not supported without account information",[Gt]:"Cache record object was null or undefined.",[Vt]:"Invalid environment when attempting to create cache entry",[Jt]:"No account found in cache for given key.",[Qt]:"No crypto object detected.",[Zt]:"Unexpected credential type.",[Xt]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[en]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[tn]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[nn]:"User defined timeout for device code polling reached",[rn]:"
2Cannot generate a POP jwt if the token_claims are not populated",[an]:"Server response does not contain an authorization code to proceed",[sn]:"Could not remove the credential's binding key from storage.",[on]:"The provided authority does not support logout",[ln]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[cn]:"No network connectivity. Check your internet connection.",[un]:"User cancelled the flow.",[dn]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[hn]:"This method has not been implemented",[mn]:"The nested app auth bridge is disabled"};class _n extends wt{constructor(e,t){super(e,t?`${fn[e]}: ${t}`:fn[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,_n.prototype)}}function pn(e,t){return new _n(e,t)}const gn={createNewGuid:()=>{throw pn(hn)},base64Decode:()=>{throw pn(hn)},base64Encode:()=>{throw pn(hn)},base64UrlEncode:()=>{throw pn(hn)},encodeKid:()=>{throw pn(hn)},async getPublicKeyThumbprint(){throw pn(hn)},async removeTokenBindingKey(){throw pn(hn)},async clearKeystore(){throw pn(hn)},async signJwt(){throw pn(hn)},async hashString(){throw pn(hn)}},yn="@azure/msal-common",vn="15.0.2";function bn(e,t){const n=function(e){if(!e)throw pn(St);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!t||t.length<4)throw pn(Tt);return t[2]}(e);try{const e=t(n);return JSON.parse(e)}catch(e){throw pn(Tt)}}function wn(e,t){if(0===t||Date.now()-3e5>e+t)throw pn(Rt)}function Mn(){return Math.round((new Date).getTime()/1e3)}function kn(e,t){const n=Number(e)||0;return Mn()+t>n}function Ln(e){return[Dn(e),Yn(e),En(e),xn(e),On(e)].join(O).toLowerCase()}function Tn(e,t,n,r,i){return{credentialType:N.ID_TOKEN,homeAccountId:e,environment:t,clientId:r,secret:n,realm:i}}function Sn(e,t,n,r,i,a,s,o,l,c,u,d,h,m,f){const _={homeAccountId:e,credentialType:N.ACCESS_TOKEN,secret:n,cachedAt:Mn().toString(),expiresOn:s.toString(),extendedExpiresOn:o.toString(),environment:t,clientId:r,realm:i,target:a,tokenType:u||z.BEARER};if(d&&(_.userAssertionHash=d),c&&(_.refreshOn=c.toString()),m&&(_.requestedClaims=m,_.requestedClaimsHash=f),_.tokenType?.toLowerCase()!==z.BEARER.toLowerCase())switch(_.credentialType=N.ACCESS_TOKEN_WITH_AUTH_SCHEME,_.tokenType){case z.POP:const e=bn(n,l);if(!e?.cnf?.kid)throw pn(rn);_.keyId=e.cnf.kid;break;case z.SSH:_.keyId=h}return _}function Cn(e,t,n,r,i,a,s){const o={credentialType:N.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:r,secret:n};return a&&(o.userAssertionHash=a),i&&(o.familyId=i),s&&(o.expiresOn=s.toString()),o}function An(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function Dn(e){return[e.homeAccountId,e.environment].join(O).toLowerCase()}function Yn(e){const t=e.credentialType===N.REFRESH_TOKEN&&e.familyId||e.clientId;return[e.credentialType,t,e.realm||""].join(O).toLowerCase()}function En(e){return(e.target||"").toLowerCase()}function xn(e){return(e.requestedClaimsHash||"").toLowerCase()}function On(e){return e.tokenType&&e.tokenType.toLowerCase()!==z.BEARER.toLowerCase()?e.tokenType.toLowerCase():""}function In(){return Mn()+H}function Nn(e,t,n){e.authorization_endpoint=t.authorization_endpoint,e.token_endpoint=t.token_endpoint,e.end_session_endpoint=t.end_session_endpoint,e.issuer=t.issuer,e.endpointsFromNetwork=n,e.jwks_uri=t.jwks_uri}function Rn(e,t,n){e.aliases=t.aliases,e.preferred_cache=t.preferred_cache,e.preferred_network=t.preferred_network,e.aliasesFromNetwork=n}function jn(e){return e.expiresAt<=Mn()}const Pn="redirect_uri_empty",Hn="claims_request_parsing_error",qn="authority_uri_insecure",Un="url_parse_error",Fn="empty_url_error",Bn="empty_input_scopes_error",Wn="invalid_prompt_value",zn="invalid_claims",Kn="token_request_empty",$n="logout_request_empty",Gn="invalid_code_challenge_method",Vn="pkce_params_missing",Jn="invalid_cloud_discovery_metadata",Qn="invalid_authority_metadata",Zn="untrusted_authority",Xn="missing_ssh_jwk",er="missing_ssh_kid",tr="missing_nonce_authentication_header",nr="invalid_authentication_header",rr="cannot_set_OIDCOptions",ir="cannot_allow_platform_broker",ar="authority_mismatch",sr={[Pn]:"A redirect URI is required for all calls, and none has been set.",[Hn]:"Could not parse the given claims request object.",[qn]:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us
2/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[Un]:"URL could not be parsed into appropriate segments.",[Fn]:"URL was empty or null.",[Bn]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[Wn]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[zn]:"Given claims parameter must be a stringified JSON object.",[Kn]:"Token request was empty and not found in cache.",[$n]:"The logout request was null or undefined.",[Gn]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Vn]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Jn]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[Qn]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[Zn]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Xn]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[er]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[tr]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[nr]:"Invalid authentication header provided",[rr]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[ir]:"Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.",[ar]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class or extends wt{constructor(e){super(e,sr[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,or.prototype)}}function lr(e){return new or(e)}class cr{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return 0===Object.keys(t).length}catch(e){}return!0}static startsWith(e,t){return 0===e.indexOf(t)}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},n=e.split("&"),r=e=>decodeURIComponent(e.replace(/\+/g," "));return n.forEach(e=>{if(e.trim()){const[n,i]=e.split(/=(.+)/g,2);n&&i&&(t[r(n)]=r(i))}}),t}static trimArrayEntries(e){return e.map(e=>e.trim())}static removeEmptyStringsFromArray(e){return e.filter(e=>!!e)}static jsonParseHelper(e){try{return JSON.parse(e)}catch(e){return null}}static matchPattern(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)}}class ur{constructor(e){const t=e?cr.trimArrayEntries([...e]):[],n=t?cr.removeEmptyStringsFromArray(t):[];if(!n||!n.length)throw lr(Bn);this.scopes=new Set,n.forEach(e=>this.scopes.add(e))}static fromString(e){const t=(e||a.EMPTY_STRING).split(" ");return new ur(t)}static createSearchScopes(e){const t=new ur(e);return t.containsOnlyOIDCScopes()?t.removeScope(a.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}containsScope(e){const t=this.printScopesLowerCase().split(" "),n=new ur(t);return!!e&&n.scopes.has(e.toLowerCase())}containsScopeSet(e){return!(!e||e.scopes.size<=0)&&(this.scopes.size>=e.scopes.size&&e.asArray().every(e=>this.containsScope(e)))}containsOnlyOIDCScopes(){let e=0;return d.forEach(t=>{this.containsScope(t)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(e=>this.appendScope(e))}catch(e){throw pn(Ft)}}removeScope(e){if(!e)throw pn(Ut);this.scopes.delete(e.trim())}
2removeOIDCScopes(){d.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw pn(Bt);const t=new Set;return e.scopes.forEach(e=>t.add(e.toLowerCase())),this.scopes.forEach(e=>t.add(e.toLowerCase())),t}intersectingScopeSets(e){if(!e)throw pn(Bt);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount();return t.size<r+n}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(t=>e.push(t)),e}printScopes(){if(this.scopes){return this.asArray().join(" ")}return a.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}function dr(e,t){if(!e)throw pn(Lt);try{const n=t(e);return JSON.parse(n)}catch(e){throw pn(kt)}}function hr(e){if(!e)throw pn(kt);const t=e.split(I,2);return{uid:t[0],utid:t.length<2?a.EMPTY_STRING:t[1]}}function mr(e,t){return!!e&&!!t&&e===t.split(".")[1]}function fr(e,t,n,r){if(r){const{oid:t,sub:n,tid:i,name:a,tfp:s,acr:o}=r,l=i||s||o||"";return{tenantId:l,localAccountId:t||n||"",name:a,isHomeTenant:mr(l,e)}}return{tenantId:n,localAccountId:t,isHomeTenant:mr(n,e)}}function _r(e,t,n,r){let i=e;if(t){const{isHomeTenant:n,...r}=t;i={...e,...r}}if(n){const{isHomeTenant:t,...a}=fr(e.homeAccountId,e.localAccountId,e.tenantId,n);return i={...i,...a,idTokenClaims:n,idToken:r},i}return i}const pr=0,gr=1,yr=2,vr=3;function br(e){if(e){return e.tid||e.tfp||e.acr||null}return null}class wr{generateAccountId(){return[this.homeAccountId,this.environment].join(O).toLowerCase()}generateAccountKey(){return wr.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(O).toLowerCase()}static createAccount(e,t,n){const r=new wr;let i;t.authorityType===gr?r.authorityType=E:t.protocolMode===_t?r.authorityType=Y:r.authorityType=x,e.clientInfo&&n&&(i=dr(e.clientInfo,n)),r.clientInfo=e.clientInfo,r.homeAccountId=e.homeAccountId,r.nativeAccountId=e.nativeAccountId;const a=e.environment||t&&t.getPreferredCache();if(!a)throw pn(Vt);r.environment=a,r.realm=i?.utid||br(e.idTokenClaims)||"",r.localAccountId=i?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"";const s=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn,o=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null;if(r.username=s||o||"",r.name=e.idTokenClaims?.name||"",r.cloudGraphHostName=e.cloudGraphHostName,r.msGraphHost=e.msGraphHost,e.tenantProfiles)r.tenantProfiles=e.tenantProfiles;else{const t=fr(e.homeAccountId,r.localAccountId,r.realm,e.idTokenClaims);r.tenantProfiles=[t]}return r}static createFromAccountInfo(e,t,n){const r=new wr;return r.authorityType=e.authorityType||x,r.homeAccountId=e.homeAccountId,r.localAccountId=e.localAccountId,r.nativeAccountId=e.nativeAccountId,r.realm=e.tenantId,r.environment=e.environment,r.username=e.username,r.name=e.name,r.cloudGraphHostName=t,r.msGraphHost=n,r.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),r}static generateHomeAccountId(e,t,n,r,i){if(t!==gr&&t!==yr){if(e)try{const t=dr(e,r.base64Decode);if(t.uid&&t.utid)return`${t.uid}.${t.utid}`}catch(e){}n.warning("No client info in response")}return i?.sub||""}static isAccountEntity(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"))}static accountInfoIsEqual(e,t,n){if(!e||!t)return!1;let r=!0;if(n){const n=e.idTokenClaims||{},i=t.idTokenClaims||{};r=n.iat===i.iat&&n.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r}}function Mr(e){return e.startsWith("#/")?e.substring(2):e.startsWith("#")||e.startsWith("?")?e.substring(1):e}function kr(e){if(!e||e.indexOf("=")<0)return null;try{const t=Mr(e),n=Object.fromEntries(new URLSearchParams(t));if(n.code||n.error||n.error_description||n.state)return n}catch(e){throw pn(Yt)}return null}class Lr{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw lr(Fn);e.includes("#")||(this._urlString=Lr.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return cr.endsWith(t,"?")?t=t.slice(0,-1):cr.endsWith(t,"?/")&&(t=t.
2slice(0,-2)),cr.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch(e){throw lr(Un)}if(!e.HostNameAndPort||!e.PathSegments)throw lr(Un);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw lr(qn)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return Lr.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),n=t.PathSegments;return!e||0===n.length||n[0]!==v&&n[0]!==b||(n[0]=e),Lr.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw lr(Un);const n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let r=n.AbsolutePath.split("/");return r=r.filter(e=>e&&e.length>0),n.PathSegments=r,n.QueryString&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw lr(Un);return n[2]}static getAbsoluteUrl(e,t){if(e[0]===a.FORWARD_SLASH){const n=new Lr(t).getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new Lr(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!kr(e)}}const Tr={"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},Sr={tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},Cr=new Set;function Ar(e,t,n,r){if(r?.trace(`getAliasesFromMetadata called with source: ${n}`),e&&t){const i=Dr(t,e);if(i)return r?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${n}, returning aliases`),i.aliases;r?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${n}`)}return null}function Dr(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.aliases.includes(t))return r}return null}Sr.metadata.forEach(e=>{e.aliases.forEach(e=>{Cr.add(e)})});const Yr="cache_quota_exceeded",Er="cache_error_unknown",xr={[Yr]:"Exceeded cache storage c
2apacity.",[Er]:"Unexpected error occurred when using cache storage."};class Or extends Error{constructor(e,t){const n=t||(xr[e]?xr[e]:xr[Er]);super(`${e}: ${n}`),Object.setPrototypeOf(this,Or.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=n}}class Ir{constructor(e,t,n,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(yn,vn),this.staticAuthorityOptions=r}getAllAccounts(e){return this.buildTenantProfiles(this.getAccountsFilteredBy(e||{}),e)}getAccountInfoFilteredBy(e){const t=this.getAllAccounts(e);if(t.length>1){return t.sort(e=>e.idTokenClaims?-1:1)[0]}return 1===t.length?t[0]:null}getBaseAccountInfo(e){const t=this.getAccountsFilteredBy(e);return t.length>0?t[0].getAccountInfo():null}buildTenantProfiles(e,t){return e.flatMap(e=>this.getTenantProfilesFromAccountEntity(e,t?.tenantId,t))}getTenantedAccountInfoByFilter(e,t,n,r){let i,a=null;if(r&&!this.tenantProfileMatchesFilter(n,r))return null;const s=this.getIdToken(e,t,n.tenantId);return s&&(i=bn(s.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(i,r))?null:(a=_r(e,n,i,s?.secret),a)}getTenantProfilesFromAccountEntity(e,t,n){const r=e.getAccountInfo();let i=r.tenantProfiles||new Map;const a=this.getTokenKeys();if(t){const e=i.get(t);if(!e)return[];i=new Map([[t,e]])}const s=[];return i.forEach(e=>{const t=this.getTenantedAccountInfoByFilter(r,a,e,n);t&&s.push(t)}),s}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId))&&((!t.name||e.name===t.name)&&(void 0===t.isHomeTenant||e.isHomeTenant===t.isHomeTenant))}idTokenClaimsMatchTenantProfileFilter(e,t){if(t){if(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId))return!1;if(t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint))return!1;if(t.username&&!this.matchUsername(e.preferred_username,t.username))return!1;if(t.name&&!this.matchName(e,t.name))return!1;if(t.sid&&!this.matchSid(e,t.sid))return!1}return!0}async saveCacheRecord(e,t,n){if(!e)throw pn(Gt);try{e.account&&await this.setAccount(e.account,t),e.idToken&&!1!==n?.idToken&&await this.setIdTokenCredential(e.idToken,t),e.accessToken&&!1!==n?.accessToken&&await this.saveAccessToken(e.accessToken,t),e.refreshToken&&!1!==n?.refreshToken&&await this.setRefreshTokenCredential(e.refreshToken,t),e.appMetadata&&this.setAppMetadata(e.appMetadata)}catch(e){throw this.commonLogger?.error("CacheManager.saveCacheRecord: failed"),e instanceof Error?(this.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${e.message}`,t),"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||e.message.includes("exceeded the quota")?(this.commonLogger?.error("CacheManager.saveCacheRecord: exceeded storage quota",t),new Or(Yr)):new Or(e.name,e.message)):(this.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${e}`,t),new Or(Er))}}async saveAccessToken(e,t){const n={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},r=this.getTokenKeys(),i=ur.fromString(e.target),a=[];r.accessToken.forEach(e=>{if(!this.accessTokenKeyMatchesFilter(e,n,!1))return;const t=this.getAccessTokenCredential(e);if(t&&this.credentialMatchesFilter(t,n)){ur.fromString(t.target).intersectingScopeSets(i)&&a.push(this.removeAccessToken(e))}}),await Promise.all(a),await this.setAccessTokenCredential(e,t)}getAccountsFilteredBy(e){const t=this.getAccountKeys(),n=[];return t.forEach(t=>{if(!this.isAccountKey(t,e.homeAccountId))return;const r=this.getAccount(t,this.commonLogger);if(!r)return;if(e.homeAccountId&&!this.matchHomeAccountId(r,e.homeAccountId))return;if(e.username&&!this.matchUsername(r.username,e.username))return;if(e.environment&&!this.matchEnvironment(r,e.environment))return;if(e.realm&&!this.matchRealm(r,e.realm))return;if(e.nativeAccountId&&!this.matchNativeAccountId(r,e.nativeAccountId))return;if(e.authorityType&&!this.matchAuthorityType(r,e.authorityType))return;const i={localAccountId:e?.localAccountId,name:e?.name},a=r.tenantProfiles?.filter(e=>this.tenantProfileMatchesFilter(e,i));a&&0===a.length||n.push(r)}),n}isAccountKey(e,t,n){return!(e.split(O).length<3)&&(!(t&&!e.toLowerCase().includes(t.toLowerCase()))&&!(n&&!e.toLowerCase().includes(n.toLowerCase())))}isCredentialKey(e){if(e.split(O).length<6)return!1;const t=e.toLowerCase();if(-1===t.indexOf(N.ID_TOKEN.toLowerCase())&&-1===t.indexOf(N.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(N.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(N.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(N.REFRESH_TOKEN.toLowerCase())>-1){const e=`${N.REFRESH_TOKEN}${O}${this.clientId}${O}`,n=`${N.REFRESH_TOKEN}${O}${j}${O}`;if(-1===t.indexOf(e.toLowerCase())&&-1===t.indexOf(n.toLowerCase()))return!1}else if(-1===t.indexOf(this.clientId.toLowerCase()))return!1;return!0}credentialMatchesFilter(e,t){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"==typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if((t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash)return!1;if(e.credentialType===N.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===z.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0}getAppMetadataFilteredBy(e){const t=this.getKeys(),n={};return t.forEach(t=>{if(!this.isAppMetadata(t))return;const r=this.getAppMetadata(t);r&&(e.environment&&!this.matchEnvironment(r,e.environment)||e.clientId&&!this.matchClientId(r,e.clientId)||(n[t]=r))}),n}getAuthorityMetadataByAlias(e){const t=this.getAuthorityMetadataKeys();let n=null;return t.forEach(t=>{if(!this.isAuthorityMetadata(t)||-1===t.indexOf(this.clientId))return;const r=this.getAuthorityMetadata(t);r&&-1!==r.aliases.indexOf(e)&&(n=r)}),n}async removeAllAccounts(){const e=this.getAccountKeys(),t=[];
2e.forEach(e=>{t.push(this.removeAccount(e))}),await Promise.all(t)}async removeAccount(e){const t=this.getAccount(e,this.commonLogger);t&&(await this.removeAccountContext(t),this.removeItem(e))}async removeAccountContext(e){const t=this.getTokenKeys(),n=e.generateAccountId(),r=[];t.idToken.forEach(e=>{0===e.indexOf(n)&&this.removeIdToken(e)}),t.accessToken.forEach(e=>{0===e.indexOf(n)&&r.push(this.removeAccessToken(e))}),t.refreshToken.forEach(e=>{0===e.indexOf(n)&&this.removeRefreshToken(e)}),await Promise.all(r)}async removeAccessToken(e){const t=this.getAccessTokenCredential(e);if(t){if(t.credentialType.toLowerCase()===N.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&t.tokenType===z.POP){const e=t.keyId;if(e)try{await this.cryptoImpl.removeTokenBindingKey(e)}catch(e){throw pn(sn)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(e=>{this.isAppMetadata(e)&&this.removeItem(e)}),!0}readAccountFromCache(e){const t=wr.generateAccountCacheKey(e);return this.getAccount(t,this.commonLogger)}getIdToken(e,t,n,r,i){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:N.ID_TOKEN,clientId:this.clientId,realm:n},s=this.getIdTokensByFilter(a,t),o=s.size;if(o<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(o>1){let t=s;if(!n){const n=new Map;s.forEach((t,r)=>{t.realm===e.tenantId&&n.set(r,t)});const r=n.size;if(r<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),s.values().next().value;if(1===r)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),n.values().next().value;t=n}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),t.forEach((e,t)=>{this.removeIdToken(t)}),r&&i&&r.addFields({multiMatchedID:s.size},i),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),s.values().next().value}getIdTokensByFilter(e,t){const n=t&&t.idToken||this.getTokenKeys().idToken,r=new Map;return n.forEach(t=>{if(!this.idTokenKeyMatchesFilter(t,{clientId:this.clientId,...e}))return;const n=this.getIdTokenCredential(t);n&&this.credentialMatchesFilter(n,e)&&r.set(t,n)}),r}idTokenKeyMatchesFilter(e,t){const n=e.toLowerCase();return(!t.clientId||-1!==n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase()))}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,t,n,r,i,a){this.commonLogger.trace("CacheManager - getAccessToken called");const s=ur.createSearchScopes(t.scopes),o=t.authenticationScheme||z.BEARER,l=o&&o.toLowerCase()!==z.BEARER.toLowerCase()?N.ACCESS_TOKEN_WITH_AUTH_SCHEME:N.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:l,clientId:this.clientId,realm:r||e.tenantId,target:s,tokenType:o,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},u=n&&n.accessToken||this.getTokenKeys().accessToken,d=[];u.forEach(e=>{if(this.accessTokenKeyMatchesFilter(e,c,!0)){const t=this.getAccessTokenCredential(e);t&&this.credentialMatchesFilter(t,c)&&d.push(t)}});const h=d.length;return h<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):h>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),d.forEach(e=>{this.removeAccessToken(Ln(e))}),i&&a&&i.addFields({multiMatchedAT:d.length},a),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),d[0])}accessTokenKeyMatchesFilter(e,t,n){const r=e.toLowerCase();if(t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===r.indexOf(t.realm.toLowerCase()))return!1;if(t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target){const e=t.target.asArray();for(let t=0;t<e.length;t++){if(n&&!r.includes(e[t].toLowerCase()))return!1;if(!n&&r.includes(e[t].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e){const t=this.getTokenKeys(),n=[];
2return t.accessToken.forEach(t=>{if(!this.accessTokenKeyMatchesFilter(t,e,!0))return;const r=this.getAccessTokenCredential(t);r&&this.credentialMatchesFilter(r,e)&&n.push(r)}),n}getRefreshToken(e,t,n,r,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=t?j:void 0,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:N.REFRESH_TOKEN,clientId:this.clientId,familyId:a},o=n&&n.refreshToken||this.getTokenKeys().refreshToken,l=[];o.forEach(e=>{if(this.refreshTokenKeyMatchesFilter(e,s)){const t=this.getRefreshTokenCredential(e);t&&this.credentialMatchesFilter(t,s)&&l.push(t)}});const c=l.length;return c<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(c>1&&r&&i&&r.addFields({multiMatchedRT:c},i),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])}refreshTokenKeyMatchesFilter(e,t){const n=e.toLowerCase();return(!t.familyId||-1!==n.indexOf(t.familyId.toLowerCase()))&&(!(!t.familyId&&t.clientId&&-1===n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase())))}readAppMetadataFromCache(e){const t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),r=Object.keys(n).map(e=>n[e]),i=r.length;if(i<1)return null;if(i>1)throw pn(Ht);return r[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==j)}matchHomeAccountId(e,t){return!("string"!=typeof e.homeAccountId||t!==e.homeAccountId)}matchLocalAccountIdFromTokenClaims(e,t){return t===(e.oid||e.sub)}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){return!(t.toLowerCase()!==e.name?.toLowerCase())}matchUsername(e,t){return!(!e||"string"!=typeof e||t?.toLowerCase()!==e.toLowerCase())}matchUserAssertionHash(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)}matchEnvironment(e,t){if(this.staticAuthorityOptions){const n=function(e,t){let n;const r=e.canonicalAuthority;if(r){const i=new Lr(r).getUrlComponents().HostNameAndPort;n=Ar(i,e.cloudDiscoveryMetadata?.metadata,q,t)||Ar(i,Sr.metadata,B,t)||e.knownAuthorities}return n||[]}(this.staticAuthorityOptions,this.commonLogger);if(n.includes(t)&&n.includes(e.environment))return!0}const n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!(!e.clientId||t!==e.clientId)}matchFamilyId(e,t){return!(!e.familyId||t!==e.familyId)}matchRealm(e,t){return!(e.realm?.toLowerCase()!==t.toLowerCase())}matchNativeAccountId(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||(e.preferred_username===t||e.upn===t)}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!(!e.authorityType||t.toLowerCase()!==e.authorityType.toLowerCase())}matchTarget(e,t){if(e.credentialType!==N.ACCESS_TOKEN&&e.credentialType!==N.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)return!1;return ur.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!(!e.tokenType||e.tokenType!==t)}matchKeyId(e,t){return!(!e.keyId||e.keyId!==t)}isAppMetadata(e){return-1!==e.indexOf(R)}isAuthorityMetadata(e){return-1!==e.indexOf(P)}generateAuthorityMetadataCacheKey(e){return`${P}-${this.clientId}-${e}`}static toObject(e,t){for(const n in t)e[n]=t[n];return e}}class Nr extends Ir{async setAccount(){throw pn(hn)}getAccount(){throw pn(hn)}async setIdTokenCredential(){throw pn(hn)}getIdTokenCredential(){throw pn(hn)}async setAccessTokenCredential(){throw pn(hn)}getAccessTokenCredential(){throw pn(hn)}async setRefreshTokenCredential(){throw pn(hn)}getRefreshTokenCredential(){throw pn(hn)}setAppMetadata(){throw pn(hn)}getAppMetadata(){throw pn(hn)}setServerTelemetry(){throw pn(hn)}getServerTelemetry(){throw pn(hn)}setAuthorityMetadata(){throw pn(hn)}getAuthorityMetadata(){throw pn(hn)}getAuthorityMetadataKeys(){throw pn(hn)}setThrottlingCache(){throw pn(hn)}getThrottlingCache(){throw pn(hn)}removeItem(){throw pn(hn)}getKeys(){throw pn(hn)}getAccountKeys(){throw pn(hn)}getTokenKeys(){throw pn(hn)}}const Rr={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},jr={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:mt.Info,correlationId:a.EMPTY_STRING},Pr={claimsBasedCachingEnabled:!1},Hr={async sendGetRequestAsync(){throw pn(hn)},async sendPostRequestAsync(){throw pn(hn)}}
2,qr={sku:a.SKU,version:vn,cpu:a.EMPTY_STRING,os:a.EMPTY_STRING},Ur={clientSecret:a.EMPTY_STRING,clientAssertion:void 0},Fr={azureCloudInstance:gt,tenant:`${a.DEFAULT_COMMON_TENANT}`},Br={application:{appName:"",appVersion:""}};function Wr(e){return e.authOptions.authority.options.protocolMode===pt}const zr={sendGetRequestAsync:()=>Promise.reject(pn(hn)),sendPostRequestAsync:()=>Promise.reject(pn(hn))},Kr="acquireTokenByCode",$r="acquireTokenByRefreshToken",Gr="acquireTokenSilent",Vr="acquireTokenSilentAsync",Jr="acquireTokenPopup",Qr="acquireTokenPreRedirect",Zr="acquireTokenRedirect",Xr="cryptoOptsGetPublicKeyThumbprint",ei="cryptoOptsSignJwt",ti="silentCacheClientAcquireToken",ni="silentIframeClientAcquireToken",ri="awaitConcurrentIframe",ii="silentRefreshClientAcquireToken",ai="ssoSilent",si="standardInteractionClientGetDiscoveredAuthority",oi="fetchAccountIdWithNativeBroker",li="nativeInteractionClientAcquireToken",ci="networkClientSendPostRequestAsync",ui="refreshTokenClientExecutePostToTokenEndpoint",di="authorizationCodeClientExecutePostToTokenEndpoint",hi="refreshTokenClientExecuteTokenRequest",mi="refreshTokenClientAcquireToken",fi="refreshTokenClientAcquireTokenWithCachedRefreshToken",_i="refreshTokenClientAcquireTokenByRefreshToken",pi="refreshTokenClientCreateTokenRequestBody",gi="acquireTokenFromCache",yi="silentFlowClientAcquireCachedToken",vi="silentFlowClientGenerateResultFromCacheRecord",bi="acquireTokenBySilentIframe",wi="initializeBaseRequest",Mi="initializeSilentRequest",ki="initializeClientApplication",Li="initializeCache",Ti="silentIframeClientTokenHelper",Si="silentHandlerInitiateAuthRequest",Ci="silentHandlerMonitorIframeForHash",Ai="silentHandlerLoadFrame",Di="silentHandlerLoadFrameSync",Yi="standardInteractionClientCreateAuthCodeClient",Ei="standardInteractionClientGetClientConfiguration",xi="standardInteractionClientInitializeAuthorizationRequest",Oi="standardInteractionClientInitializeAuthorizationCodeRequest",Ii="getAuthCodeUrl",Ni="handleCodeResponseFromServer",Ri="handleCodeResponse",ji="updateTokenEndpointAuthority",Pi="authClientAcquireToken",Hi="authClientExecuteTokenRequest",qi="authClientCreateTokenRequestBody",Ui="authClientCreateQueryString",Fi="popTokenGenerateCnf",Bi="popTokenGenerateKid",Wi="handleServerTokenResponse",zi="deserializeResponse",Ki="authorityFactoryCreateDiscoveredInstance",$i="authorityResolveEndpointsAsync",Gi="authorityGetCloudDiscoveryMetadataFromNetwork",Vi="authorityUpdateCloudDiscoveryMetadata",Ji="authorityGetEndpointMetadataFromNetwork",Qi="authorityUpdateEndpointMetadata",Zi="authorityUpdateMetadataWithRegionalInformation",Xi="regionDiscoveryDetectRegion",ea="regionDiscoveryGetRegionFromIMDS",ta="regionDiscoveryGetCurrentVersion",na="acquireTokenByCodeAsync",ra="handleRedirectPromise",ia="handleNativeRedirectPromise",aa="nativeMessageHandlerHandshake",sa="removeHiddenIframe",oa="clearTokensAndKeysWithClaims",la="cacheManagerGetRefreshToken",ca="importExistingCache",ua="setUserData",da="generatePkceCodes",ha="generateCodeVerifier",ma="generateCodeChallengeFromVerifier",fa="sha256Digest",_a="getRandomValues",pa="generateHKDF",ga="generateBaseKey",ya="base64Decode",va="urlEncodeArr",ba="encrypt",wa="decrypt",Ma=(new Map([[Kr,"ATByCode"],[$r,"ATByRT"],[Gr,"ATS"],[Vr,"ATSAsync"],[Jr,"ATPopup"],[Zr,"ATRedirect"],[Xr,"CryptoGetPKThumb"],[ei,"CryptoSignJwt"],[ti,"SltCacheClientAT"],[ni,"SltIframeClientAT"],[ii,"SltRClientAT"],[ai,"SsoSlt"],[si,"StdIntClientGetDiscAuth"],[oi,"FetchAccIdWithNtvBroker"],[li,"NtvIntClientAT"],["baseClientCreateTokenRequestHeaders","BaseClientCreateTReqHead"],[ci,"NetClientSendPost"],[ui,"RTClientExecPost"],[di,"AuthCodeClientExecPost"],["brokerHandshake","BrokerHandshake"],["acquireTokenByRefreshTokenInBroker","ATByRTInBroker"],["acquireTokenByBroker","ATByBroker"],[hi,"RTClientExecTReq"],[mi,"RTClientAT"],[fi,"RTClientATWithCachedRT"],[_i,"RTClientATByRT"],[pi,"RTClientCreateTReqBody"],[gi,"ATFromCache"],[yi,"SltFlowClientATCached"],[vi,"SltFlowClientGenResFromCache"],[bi,"ATBySltIframe"],[wi,"InitBaseReq"],[Mi,"InitSltReq"],[ki,"InitClientApplication"],[Li,"InitCache"],[ca,"importCache"],[ua,"setUserData"],[Ti,"SIClientTHelper"],[Si,"SHandlerInitAuthReq"],[Ci,"SltHandlerMonitorIframeForHash"],[Ai,"SHandlerLoadFrame"],[Di,"SHandlerLoadFrameSync"],[Yi,"StdIntClientCreateAuthCodeClient"],[Ei,"StdIntClientGetClientConf"],[xi,"StdIntClientInitAuthReq"],[Oi,"StdIntClientInitAuthCodeReq"],[Ii,"GetAuthCodeUrl"],[Ni,"HandleCodeResFromServer"],[Ri,"HandleCodeResp"],[ji,"UpdTEndpointAuth"],[Pi,"AuthClientAT"],[Hi,"AuthClientExecTReq"],[qi,"AuthClientCreateTReqBody"],[Ui,"AuthClientCreateQueryStr"],[Fi,"PopTGenCnf"],[Bi,"PopTGenKid"],[Wi,"HandleServerTRes"],[zi,"DeserializeRes"],[Ki,"AuthFactCreateDiscInst"],[$i,"AuthResolveEndpointsAsync"],["authorityResolveEndpointsFromLocalSources","AuthResolveEndpointsFromLocal"],[Gi,"AuthGetCDMetaFromNet"],[Vi,"AuthUpdCDMeta"],[Ji,"AuthUpdCDMetaFromNet"],[Qi,"AuthUpdEndpointMeta"],[Zi,"AuthUpdMetaWithRegInfo"],[Xi,"RegDiscDetectReg"],[ea,"RegDiscGetRegFromIMDS"],[ta,"RegDiscGetCurrentVer"],[na,"ATByCodeAsync"],["getEndpointMetadataFromNetwork","GetEndpointMetaFromNet"],["getCloudDiscoveryMetadataFromNetworkMeasurement","GetCDMetaFromNet"],[ra,"HandleRedirectPromise"],[ia,"HandleNtvRedirectPromise"],["updateCloudDiscoveryMetadataMeasurement","UpdateCDMeta"],["usernamePasswordCl
2ientAcquireToken","UserPassClientAT"],[aa,"NtvMsgHandlerHandshake"],["nativeGenerateAuthResult","NtvGenAuthRes"],[sa,"RemoveHiddenIframe"],[oa,"ClearTAndKeysWithClaims"],[la,"CacheManagerGetRT"],[da,"GenPkceCodes"],[ha,"GenCodeVerifier"],[ma,"GenCodeChallengeFromVerifier"],[fa,"Sha256Digest"],[_a,"GetRandomValues"],[pa,"genHKDF"],[ga,"genBaseKey"],[ya,"b64Decode"],[va,"urlEncArr"],[ba,"encrypt"],[wa,"decrypt"]]),1);new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status","multiMatchedAT","multiMatchedID","multiMatchedRT","unencryptedCacheCount","encryptedCacheExpiredCount"]);class ka{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class La{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Ma,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new ka}}startPerformanceMeasurement(){return new ka}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}class Ta{navigateInternal(e,t){return Ta.defaultNavigateWindow(e,t)}navigateExternal(e,t){return Ta.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(e=>{setTimeout(()=>{e(!0)},t.timeout)})}}class Sa extends wt{constructor(e,t,n){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,Sa.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=n}}function Ca(e,t,n){return new Sa(e,t,n)}const Aa="pkce_not_created",Da="crypto_nonexistent",Ya="empty_navigate_uri",Ea="hash_empty_error",xa="no_state_in_hash",Oa="hash_does_not_contain_known_properties",Ia="unable_to_parse_state",Na="state_interaction_type_mismatch",Ra="interaction_in_progress",ja="popup_window_error",Pa="empty_window_error",Ha="user_cancelled",qa="monitor_popup_timeout",Ua="monitor_window_timeout",Fa="redirect_in_iframe",Ba="block_iframe_reload",Wa="block_nested_popups",za="iframe_closed_prematurely",Ka="silent_logout_unsupported",$a="no_account_error",Ga="silent_prompt_value_error",Va="no_token_request_cache_error",Ja="unable_to_parse_token_request_cache_error",Qa="no_cached_authority_error",Za="auth_request_not_set_error",Xa="invalid_cache_type",es="non_browser_environment",ts="database_not_open",ns="no_network_connectivity",rs="post_request_failed",is="get_request_failed",as="failed_to_parse_response",ss="unable_to_load_token",os="crypto_key_not_found",ls="auth_code_required",cs="auth_code_or_nativeAccountId_required",us="spa_code_and_nativeAccountId_present",ds="database_unavailable",hs="unable_to_acquire_token_from_native_platform",ms="native_handshake_timeout",fs="native_extension_not_installed",_s="native_connection_not_established",ps="uninitialized_public_client_application",gs="native_prompt_not_supported",ys="invalid_base64_string",vs="invalid_pop_token_request",bs="failed_to_build_headers",ws="failed_to_parse_headers",Ms="For more visit: aka.ms/msaljs/browser-errors",ks={[Aa]:"The PKCE code challenge and verifier could not be generated.",[Da]:"The crypto object or function is not available.",[Ya]:"Navigation URI is empty. Please check stack trace for more info.",[Ea]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${Ms}`,[xa]:"Hash does not contain state. Please verify that the request originated from msal.",[Oa]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.  ${Ms}`,[Ia]:"Unable to parse state. Please verify that the request originated from msal.",[Na]:"Hash contains state but the interaction type does not match the caller.",[Ra]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.   ${Ms}`,[ja]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Pa]:"window.open returned null or undefined window object.",[Ha]:"User cancelled the flow.",[qa]:`Token acquisition in popup failed due to timeout.  ${Ms}`,[Ua]:`Token acquisition in iframe failed due to timeout.  ${Ms}
2`,[Fa]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[Ba]:`Request was blocked inside an iframe because MSAL detected an authentication response.  ${Ms}`,[Wa]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[za]:"The iframe being monitored was closed prematurely.",[Ka]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[$a]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[Ga]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[Va]:"No token request found in cache.",[Ja]:"The cached token request could not be parsed.",[Qa]:"No cached authority found.",[Za]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[Xa]:"Invalid cache type",[es]:"Login and token requests are not supported in non-browser environments.",[ts]:"Database is not open!",[ns]:"No network connectivity. Check your internet connection.",[rs]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[is]:"Network request failed. Please check the network trace to determine root cause.",[as]:"Failed to parse network response. Check network trace.",[ss]:"Error loading token to cache.",[os]:"Cryptographic Key or Keypair not found in browser storage.",[ls]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[cs]:"An authorization code or nativeAccountId must be provided to this flow.",[us]:"Request cannot contain both spa code and native account id.",[ds]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[hs]:`Unable to acquire token from native platform.  ${Ms}`,[ms]:"Timed out while attempting to establish connection to browser extension",[fs]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[_s]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize().  ${Ms}`,[ps]:`You must call and await the initialize function before attempting to call any other MSAL API.  ${Ms}`,[gs]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[ys]:"Invalid base64 encoded string.",[vs]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[bs]:"Failed to build request headers object.",[ws]:"Failed to parse response headers"};class Ls extends wt{constructor(e,t){super(e,ks[e],t),Object.setPrototypeOf(this,Ls.prototype),this.name="BrowserAuthError"}}function Ts(e,t){return new Ls(e,t)}class Ss{async sendGetRequestAsync(e,t){let n,r={},i=0;const a=Cs(t);try{n=await fetch(e,{method:Ye,headers:a})}catch(e){throw Ts(window.navigator.onLine?is:ns)}r=As(n.headers);try{return i=n.status,{headers:r,body:await n.json(),status:i}}catch(e){throw Ca(Ts(as),i,r)}}async sendPostRequestAsync(e,t){const n=t&&t.body||"",r=Cs(t);let i,a=0,s={};try{i=await fetch(e,{method:Ee,headers:r,body:n})}catch(e){throw Ts(window.navigator.onLine?rs:ns)}s=As(i.headers);try{return a=i.status,{headers:s,body:await i.json(),status:a}}catch(e){throw Ca(Ts(as),a,s)}}}function Cs(e){try{const t=new Headers;if(!e||!e.headers)return t;const n=e.headers;return Object.entries(n).forEach(([e,n])=>{t.append(e,n)}),t}catch(e){throw Ts(bs)}}function As(e){try{const t={};return e.forEach((e,n)=>{t[n]=e}),t}catch(e){throw Ts(ws)}}function Ds(e){return encodeURIComponent(Es(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Ys(e){return xs(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Es(e){return xs((new TextEncoder).encode(e))}function xs(e){const t=Array.from(e,e=>String.fromCodePoint(e)).join("");return btoa(t)}function Os(e){return(new TextDecoder).decode(Is(e))}function Is(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Ts(ys)}const n=atob(t);return Uint8Array.from(n,e=>e.codePointAt(0)||0)}const Ns="AES-GCM",Rs="HKDF",js="SHA-256",Ps=new Uint8Array([1,0,1]),Hs="0123456789abcdef",qs=new Uint32Array(1),Us="encrypt",Fs="decrypt",Bs={name:"RSASSA-PKCS1-v1_5",hash:js,modulusLength:2048,publicExponent:Ps};async function Ws(e,t,n){t?.addQueueMeasurement(fa,n);const r=(new TextEncoder).encode(e);return window.crypto.subtle.digest(js,r)}function zs(e){return window.crypto.getRandomValues(e)}function Ks(){return window.crypto.getRandomValues(qs),qs[0]}function $s(){const e=Date.now(),t=1024*Ks()+(1023&Ks()),n=new Uint8Array(16),r=Math.trunc(t/2**30),i=t&2**30-1,a=Ks();n[0]=e/2**40,n[1]=e/2**32,n[2]=e/2**24,n[3]=e/65536,n[4]=e/256,n[5]=e,n[6]=112|r>>>8,n[7]=r,n[8]=128|i>>>24,n[9]=i>>>16,n[10]=i>>>8,n[11]=i,n[12]=a>>>24,n[13]=a>>>16,n[14]=a>>>8,n[15]=a;let s="";for(let e=0;e<n.length;e++)s+=Hs.charAt(n[e]>>>4),s+=Hs.charAt(15&n[e]),3!==e&&5!==e&&7!==e&&9!==e||(s+="-");return s}async function Gs(e){return window.crypto.subtle.exportKey("jwk",e)}async function Vs(){const e=await window.crypto.subtle.generateKey({name:Ns,length:256},!0,[Us,Fs]);return window.crypto.subtle.exportKey("raw",e)}async function Js(e){return window.crypto.subtle.importKey("raw",e,Rs,!1,["deriveKey"])}async function Qs(e,t,n){return window.crypto.subtle.deriveKey({name:Rs,salt:t,hash:js,info:(new TextEncoder).encode(n)},e,{name:Ns,length:256},!1,[Us,Fs])}async function Zs(e,t,n){const r=(new TextEncoder).encode(t),i=window.crypto.getRandomValues(new Uint8Array(16)),a=await Qs(e,i,n),s=await window.crypto.subtle.encrypt({name:Ns,iv:new Uint8Array(12)},a,r);return{data:Ys(new Uint8Array(s)),nonce:Ys(i)}}async function Xs(e,t,n,r){const i=Is(r),a=await Qs(e,Is(t),n),s=await window.crypto.subtle.decrypt({
2name:Ns,iv:new Uint8Array(12)},a,i);return(new TextDecoder).decode(s)}async function eo(e){const t=await Ws(e);return Ys(new Uint8Array(t))}const to="storage_not_supported",no="stubbed_public_client_application_called",ro="in_mem_redirect_unavailable",io={[to]:"Given storage configuration option was not supported.",[no]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[ro]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class ao extends wt{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,ao.prototype)}}function so(e){return new ao(e,io[e])}function oo(){return window.parent!==window}function lo(){return"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function co(){if("undefined"!=typeof window&&window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(`${ge}.`))throw Ts(Wa)}function uo(){if("undefined"==typeof window)throw Ts(es)}function ho(e){if(!e)throw Ts(ps)}function mo(e){uo(),function(){if(Lr.hashContainsKnownProperties(window.location.hash)&&oo())throw Ts(Ba)}(),co(),ho(e)}function fo(e,t){if(mo(e),function(e){if(oo()&&!e)throw Ts(Fa)}(t.system.allowRedirectInIframe),t.cache.cacheLocation===De&&!t.cache.storeAuthStateInCookie)throw so(ro)}function _o(e){const t=document.createElement("link");t.rel="preconnect",t.href=new URL(e).origin,t.crossOrigin="anonymous",document.head.appendChild(t),window.setTimeout(()=>{try{document.head.removeChild(t)}catch{}},1e4)}const po=1e4;const go="4.0.2";class yo{static loggerCallback(e,t){switch(e){case mt.Error:return void console.error(t);case mt.Info:case mt.Verbose:case mt.Warning:default:return}}constructor(e){let t;this.browserEnvironment="undefined"!=typeof window,this.config=function({auth:e,cache:t,system:n,telemetry:r},i){const s={clientId:a.EMPTY_STRING,authority:`${a.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:a.EMPTY_STRING,authorityMetadata:a.EMPTY_STRING,redirectUri:"undefined"!=typeof window?lo():"",postLogoutRedirectUri:a.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:_t,OIDCOptions:{serverResponseType:S.FRAGMENT,defaultScopes:[a.OPENID_SCOPE,a.PROFILE_SCOPE,a.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:gt,tenant:a.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},o={cacheLocation:Ae,temporaryCacheLocation:Ae,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!t||t.cacheLocation!==Ce),claimsBasedCachingEnabled:!1},l={loggerCallback:()=>{},logLevel:mt.Info,piiLoggingEnabled:!1},c={...{...Rr,loggerOptions:l,networkClient:i?new Ss:zr,navigationClient:new Ta,loadFrameTimeout:0,windowHashTimeout:n?.loadFrameTimeout||6e4,iframeHashTimeout:n?.loadFrameTimeout||po,navigateFrameWait:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:n?.nativeBrokerHandshakeTimeout||2e3,pollIntervalMilliseconds:ye},...n,loggerOptions:n?.loggerOptions||l},u={application:{appName:a.EMPTY_STRING,appVersion:a.EMPTY_STRING},client:new La};e?.protocolMode!==pt&&e?.OIDCOptions&&new ft(c.loggerOptions).warning(JSON.stringify(lr(rr)));if(e?.protocolMode&&e.protocolMode!==_t&&c?.allowPlatformBroker)throw lr(ir);return{auth:{...s,...e,OIDCOptions:{...s.OIDCOptions,...e?.OIDCOptions}},cache:{...o,...t},system:c,telemetry:{...u,...r}}}(e,this.browserEnvironment);try{t=window[Ae]}catch(e){}const n=t?.getItem("msal.browser.log.level"),r=t?.getItem("msal.browser.log.pii")?.toLowerCase(),i="true"===r||"false"!==r&&void 0,s={...this.config.system.loggerOptions},o=n&&Object.keys(mt).includes(n)?mt[n]:void 0;o&&(s.loggerCallback=yo.loggerCallback,s.logLevel=o),void 0!==i&&(s.piiLoggingEnabled=i),this.logger=new ft(s,"@azure/msal-browser",go),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}class vo extends yo{getModuleName(){return vo.MODULE_NAME}getId(){return vo.ID}async initialize(){return this.available="undefined"!=typeof window,this.available}}vo.MODULE_NAME="",vo.ID="StandardOperatingContext";const bo="missing_kid_error",wo="missing_alg_error",Mo={[bo]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[wo]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class ko extends wt{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,ko.prototype)}}function Lo(e){return new ko(e,Mo[e])}class To{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw Lo(bo);if(!e.alg)throw Lo(wo);const t=new To({typ:e.typ||me,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}class So{constructor(){this.dbName=it,this.version=1,this.tableName=at,this.dbOpen=!1}async open(){return new Promise((e,t)=>
2{const n=window.indexedDB.open(this.dbName,this.version);n.addEventListener("upgradeneeded",e=>{e.target.result.createObjectStore(this.tableName)}),n.addEventListener("success",t=>{const n=t;this.db=n.target.result,this.dbOpen=!0,e()}),n.addEventListener("error",()=>t(Ts(ds)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(Ts(ts));const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);r.addEventListener("success",e=>{const n=e;this.closeConnection(),t(n.target.result)}),r.addEventListener("error",e=>{this.closeConnection(),n(e)})})}async setItem(e,t){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(Ts(ts));const i=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);i.addEventListener("success",()=>{this.closeConnection(),n()}),i.addEventListener("error",e=>{this.closeConnection(),r(e)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(Ts(ts));const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);r.addEventListener("success",()=>{this.closeConnection(),t()}),r.addEventListener("error",e=>{this.closeConnection(),n(e)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,t)=>{if(!this.db)return t(Ts(ts));const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();n.addEventListener("success",t=>{const n=t;this.closeConnection(),e(n.target.result)}),n.addEventListener("error",e=>{this.closeConnection(),t(e)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(Ts(ts));const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);r.addEventListener("success",e=>{const n=e;this.closeConnection(),t(1===n.target.result)}),r.addEventListener("error",e=>{this.closeConnection(),n(e)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,t)=>{const n=window.indexedDB.deleteDatabase(it),r=setTimeout(()=>t(!1),200);n.addEventListener("success",()=>(clearTimeout(r),e(!0))),n.addEventListener("blocked",()=>(clearTimeout(r),e(!0))),n.addEventListener("error",()=>(clearTimeout(r),t(!1)))})}}class Co{constructor(){this.cache=new Map}async initialize(){}getItem(e){return this.cache.get(e)||null}getUserData(e){return this.getItem(e)}setItem(e,t){this.cache.set(e,t)}async setUserData(e,t){this.setItem(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((t,n)=>{e.push(n)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}class Ao{constructor(e){this.inMemoryCache=new Co,this.indexedDBCache=new So,this.logger=e}handleDatabaseAccessError(e){if(!(e instanceof Ls&&e.errorCode===ds))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")}async getItem(e){const t=this.inMemoryCache.getItem(e);if(!t)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(e){this.handleDatabaseAccessError(e)}return t}async setItem(e,t){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(e){this.handleDatabaseAccessError(e)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(e){this.handleDatabaseAccessError(e)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(0===e.length)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(e){this.handleDatabaseAccessError(e)}return e}async containsKey(e){const t=this.inMemoryCache.containsKey(e);if(!t)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(e){this.handleDatabaseAccessError(e)}return t}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}
2async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}class Do{constructor(e,t,n){this.logger=e,function(e){if(!window)throw Ts(es);if(!window.crypto)throw Ts(Da);if(!e&&!window.crypto.subtle)throw Ts(Da,"crypto_subtle_undefined")}(n??!1),this.cache=new Ao(this.logger),this.performanceClient=t}createNewGuid(){return $s()}base64Encode(e){return Es(e)}base64Decode(e){return Os(e)}base64UrlEncode(e){return Ds(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){const t=this.performanceClient?.startMeasurement(Xr,e.correlationId),n=await async function(e,t){return window.crypto.subtle.generateKey(Bs,e,t)}(Do.EXTRACTABLE,Do.POP_KEY_USAGES),r=await Gs(n.publicKey),i=Yo({e:r.e,kty:r.kty,n:r.n}),a=await this.hashString(i),s=await Gs(n.privateKey),o=await async function(e,t,n){return window.crypto.subtle.importKey("jwk",e,Bs,t,n)}(s,!1,["sign"]);return await this.cache.setItem(a,{privateKey:o,publicKey:n.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),t&&t.end({success:!0}),a}async removeTokenBindingKey(e){await this.cache.removeItem(e);return!await this.cache.containsKey(e)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,t,n,r){const i=this.performanceClient?.startMeasurement(ei,r),a=await this.cache.getItem(t);if(!a)throw Ts(os);const s=await Gs(a.publicKey),o=Yo(s),l=Ds(JSON.stringify({kid:t})),c=Ds(To.getShrHeaderString({...n?.header,alg:s.alg,kid:l}));e.cnf={jwk:JSON.parse(o)};const u=`${c}.${Ds(JSON.stringify(e))}`,d=(new TextEncoder).encode(u),h=await async function(e,t){return window.crypto.subtle.sign(Bs,e,t)}(a.privateKey,d),m=`${u}.${Ys(new Uint8Array(h))}`;return i&&i.end({success:!0}),m}async hashString(e){return eo(e)}}function Yo(e){return JSON.stringify(e,Object.keys(e).sort())}Do.POP_KEY_USAGES=["sign","verify"],Do.EXTRACTABLE=!0;const Eo=(e,t,n,r,i)=>(...a)=>{n.trace(`Executing function ${t}`);const s=r?.startMeasurement(t,i);if(i){const e=t+"CallCount";r?.incrementFields({[e]:1},i)}try{const r=e(...a);return s?.end({success:!0}),n.trace(`Returning result from ${t}`),r}catch(e){n.trace(`Error occurred in ${t}`);try{n.trace(JSON.stringify(e))}catch(e){n.trace("Unable to print error message.")}throw s?.end({success:!1},e),e}},xo=(e,t,n,r,i)=>(...a)=>{n.trace(`Executing function ${t}`);const s=r?.startMeasurement(t,i);if(i){const e=t+"CallCount";r?.incrementFields({[e]:1},i)}return r?.setPreQueueTime(t,i),e(...a).then(e=>(n.trace(`Returning result from ${t}`),s?.end({success:!0}),e)).catch(e=>{n.trace(`Error occurred in ${t}`);try{n.trace(JSON.stringify(e))}catch(e){n.trace("Unable to print error message.")}throw s?.end({success:!1},e),e})};class Oo{constructor(e,t,n,r){this.networkInterface=e,this.logger=t,this.performanceClient=n,this.correlationId=r}async detectRegion(e,t){this.performanceClient?.addQueueMeasurement(Xi,this.correlationId);let n=e;if(n)t.region_source=re;else{const e=Oo.IMDS_OPTIONS;try{const r=await xo(this.getRegionFromIMDS.bind(this),ea,this.logger,this.performanceClient,this.correlationId)(a.IMDS_VERSION,e);if(r.status===ee&&(n=r.body,t.region_source=ie),r.status===te){const r=await xo(this.getCurrentVersion.bind(this),ta,this.logger,this.performanceClient,this.correlationId)(e);if(!r)return t.region_source=ne,null;const i=await xo(this.getRegionFromIMDS.bind(this),ea,this.logger,this.performanceClient,this.correlationId)(r,e);i.status===ee&&(n=i.body,t.region_source=ie)}}catch(e){return t.region_source=ne,null}}return n||(t.region_source=ne),n||null}async getRegionFromIMDS(e,t){return this.performanceClient?.addQueueMeasurement(ea,this.correlationId),this.networkInterface.sendGetRequestAsync(`${a.IMDS_ENDPOINT}?api-version=${e}&format=text`,t,a.IMDS_TIMEOUT)}async getCurrentVersion(e){this.performanceClient?.addQueueMeasurement(ta,this.correlationId);try{const t=await this.networkInterface.sendGetRequestAsync(`${a.IMDS_ENDPOINT}?format=json`,e);return t.status===te&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?t.body["newest-versions"][0]:null}catch(e){return null}}}Oo.IMDS_OPTIONS={headers:{Metadata:"true"}};class Io{constructor(e,t,n,r,i,a,s,o){this.canonicalAuthority=e,this._canonicalAuthority.val
2idateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=s,this.correlationId=a,this.managedIdentity=o||!1,this.regionDiscovery=new Oo(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(a.CIAM_AUTH_URL))return vr;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case a.ADFS:return gr;case a.DSTS:return yr}return pr}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Lr(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw pn(Ct)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw pn(Ct)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw pn(Ct)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw pn(on);return this.replacePath(this.metadata.end_session_endpoint)}throw pn(Ct)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw pn(Ct)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw pn(Ct)}canReplaceTenant(e){return 1===e.PathSegments.length&&!Io.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===pr&&this.protocolMode===_t}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const n=new Lr(this.metadata.canonical_authority).getUrlComponents(),r=n.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((e,i)=>{let a=r[i];if(0===i&&this.canReplaceTenant(n)){const e=new Lr(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];a!==e&&(this.logger.verbose(`Replacing tenant domain name ${a} with id ${e}`),a=e)}e!==a&&(t=t.replace(`/${a}/`,`/${e}/`))}),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===gr||this.protocolMode!==_t&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){this.performanceClient?.addQueueMeasurement($i,this.correlationId);const e=this.getCurrentMetadataEntity(),t=await xo(this.updateCloudDiscoveryMetadata.bind(this),Vi,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const n=await xo(this.updateEndpointMetadata.bind(this),Qi,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:n}),this.performanceClient?.addFields({cloudDiscoverySource:t,authorityEndpointSource:n},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:In(),jwks_uri:""}),e}updateCachedMetadata(e,t,n){t!==U&&n?.source!==U&&(e.expiresAt=In(),e.canonical_authority=this.canonicalAuthority);const r=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(r,e),this.metadata=e}async updateEndpointMetadata(e){this.performanceClient?.addQueueMeasurement(Qi,this.correlationId);const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===B&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&t.metadata){Nn(e,await xo(this.updateMetadataWithRegionalInformation.bind(this),Zi,this.logger,this.performanceClient,this.correlationId)(t.metadata),!1),e.canonical_authority=this.canonicalAuthority}return t.source}let n=await xo(this.getEndpointMetadataFromNetwork.bind(this),Ji,this.logger,this.performanceClient,this.correlationId)();if(n)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(n=await xo(this.updateMetadataWithRegionalInformation.bind(this),Zi,this.logger,this.performanceClient,this.correlationId)(n)),Nn(e,n,!0),F;throw pn(Dt,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("Found endpoint metadata in authority configuration"),Nn(e,t,!1),{source:q};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const t=this.getEndpointMetadataFromHardcodedValues();if(t)return Nn(e,t,!1),{source:B,metadata:t};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const n=jn(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!n?(this.logger.verbose("Found endpoint metadata in the cache."),{source:U}):(n&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Lr(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw lr(Qn)}return null}async getEndpointMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(Ji,this.correlationId);const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${t}`);try{const n=await this.networkInterface.sendGetRequestAsync(t,e),r=function(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}(n.body);return r?n.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(e){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${e}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Tr?Tr[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){this.performanceClient?.addQueueMeasurement(Zi,this.correlationId);const t=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(t){if(t!==a.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=ae,this.regionDiscoveryMetadata.region_used=t,Io.replaceWithRegionalInformation(e,t);const n=await xo(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),Xi,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(n)return this.regionDiscoveryMetadata.region_outcome=se,this.regionDiscoveryMetadata.region_used=n,Io.replaceWithRegionalInformation(e,n);this.regionDiscoveryMetadata.region_outcome=oe}return e}async updateCloudDiscoveryMetadata(e){this.performanceClient?.addQueueMeasurement(Vi,this.correlationId);const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const n=await xo(this.getCloudDiscoveryMetadataFromNetwork.bind(this),Gi,this.logger,this.performanceClient,this.correlationId)();if(n)return Rn(e,n,!0),F;throw lr(Zn)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata  from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||a.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||a.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||a.NOT_APPLICABLE}`);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),Rn(e,t,!1),q;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const t=(n=this.hostnameAndPort,Dr(Sr.metadata,n));if(t)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),Rn(e,t,!1),B;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}var n;const r=jn(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!r?(this.logger.verbose("Found cloud discovery metadata in the cache."),U):(r&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===vr)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),Io.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=Dr(JSON.parse(this.authorityOptions.cloudDiscoveryMetadata).metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),e)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),e;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch(e){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),lr(Jn)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),Io.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(Gi,this.correlationId);const e=`${a.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let n=null;try{const r=await this.networkInterface.sendGetRequestAsync(e,t);let i,s;if(function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(r.body))i=r.body,s=i.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${i.tenant_discovery_endpoint}`);else{if(!function(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}(r.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${r.status}`),i=r.body,i.error===a.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invali
2d_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${i.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${i.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),n=Dr(s,this.hostnameAndPort)}catch(e){if(e instanceof wt)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.\nError: ${e.errorCode}\nError Description: ${e.errorMessage}`);else{const t=e;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: ${t.name}\nError Description: ${t.message}`)}return null}return n||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),n=Io.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),n}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(e=>e&&Lr.getDomainFromUrl(e).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,t){let n;if(t&&t.azureCloudInstance!==gt){const e=t.tenant?t.tenant:a.DEFAULT_COMMON_TENANT;n=`${t.azureCloudInstance}/${e}/`}return n||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return a.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw pn(Ct)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Cr.has(e)}static isPublicCloudAuthority(e){return a.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,n){const r=new Lr(e);r.validateAsUri();const i=r.getUrlComponents();let s=`${t}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(s=`${t}.${a.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const o=Lr.constructAuthorityUriFromObject({...r.getUrlComponents(),HostNameAndPort:s}).urlString;return n?`${o}?${n}`:o}static replaceWithRegionalInformation(e,t){const n={...e};return n.authorization_endpoint=Io.buildRegionalAuthorityString(n.authorization_endpoint,t),n.token_endpoint=Io.buildRegionalAuthorityString(n.token_endpoint,t),n.end_session_endpoint&&(n.end_session_endpoint=Io.buildRegionalAuthorityString(n.end_session_endpoint,t)),n}static transformCIAMAuthority(e){let t=e;const n=new Lr(e).getUrlComponents();if(0===n.PathSegments.length&&n.HostNameAndPort.endsWith(a.CIAM_AUTH_URL)){t=`${t}${n.HostNameAndPort.split(".")[0]}${a.AAD_TENANT_DOMAIN_SUFFIX}`}return t}}function No(e){return e.endsWith(a.FORWARD_SLASH)?e:`${e}${a.FORWARD_SLASH}`}Io.reservedTenantDomains=new Set(["{tenant}","{tenantid}",v,w,b]);const Ro="no_tokens_found",jo="native_account_unavailable",Po="refresh_token_expired",Ho="bad_token",qo=["interaction_required","consent_required","login_required",Ho],Uo=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],Fo={[Ro]:"No refresh token found in the cache. Please sign-in.",[jo]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[Po]:"Refresh token has expired.",[Ho]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class Bo extends wt{constructor(e,t,n,r,i,s,o,l){super(e,t,n),Object.setPrototypeOf(this,Bo.prototype),this.timestamp=r||a.EMPTY_STRING,this.traceId=i||a.EMPTY_STRING,this.correlationId=s||a.EMPTY_STRING,this.claims=o||a.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=l}}function Wo(e,t,n){const r=!!e&&qo.indexOf(e)>-1,i=!!n&&Uo.indexOf(n)>-1,a=!!t&&qo.some(e=>t.indexOf(e)>-1);return r||a||i}function zo(e){return new Bo(e,Fo[e])}class Ko{static setRequestState(e,t,n){const r=Ko.generateLibraryState(e,n);return t?`${r}${a.RESOURCE_DELIM}${t}`:r}static generateLibraryState(e,t){if(!e)throw pn(Qt);const n={id:e.createNewGuid()};t&&(n.meta=t);const r=JSON.stringify(n);return e.base64Encode(r)}static parseRequestState(e,t){if(!e)throw pn(Qt);if(!t)throw pn(Et);try{const n=t.split(a.RESOURCE_DELIM),r=n[0],i=n.length>1?n.slice(1).join(a.RESOURCE_DELIM):a.EMPTY_STRING,s=e.base64Decode(r),o=JSON.parse(s);return{userRequestState:i||a.EMPTY_STRING,libraryState:o}}catch(e){throw pn(Et)}}}const $o="home_account_id",Go="UPN",Vo=864e5;class Jo{initialize(){return Promise.resolve()}getItem(e){const t=`${encodeURIComponent(e)}`,n=document.cookie.split(";");for(let e=0;e<n.length;e++){const r=n[e],[i,...a]=decodeURIComponent(r).trim().split("="),s=a.join("=");if(i===t)return s}return""}getUserData(){throw pn(hn)}setItem(e,t,n,r=!0){let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=Lax;`;if(n){const e=function(e){const t=new Date,n=new Date(t.getTime()+e*Vo);return n.toUTCString()}(n);i+=`expires=${e};`}r&&(i+="Secure;"),document.cookie=i}async setUserData(){return Promise.reject(pn(hn))}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];
2return e.forEach(e=>{const n=decodeURIComponent(e).trim().split("=");t.push(n[0])}),t}containsKey(e){return this.getKeys().includes(e)}}function Qo(e){const t=e.getItem(Fe);return t?JSON.parse(t):[]}function Zo(e,t){const n=t.getItem(`${Be}.${e}`);if(n){const e=JSON.parse(n);if(e&&e.hasOwnProperty("idToken")&&e.hasOwnProperty("accessToken")&&e.hasOwnProperty("refreshToken"))return e}return{idToken:[],accessToken:[],refreshToken:[]}}const Xo="msal.cache.encryption";class el{constructor(e,t,n){if(!window.localStorage)throw so(to);this.memoryStorage=new Co,this.initialized=!1,this.clientId=e,this.logger=t,this.performanceClient=n}async initialize(e){this.initialized=!0;const t=new Jo,n=t.getItem(Xo);let r={key:"",id:""};if(n)try{r=JSON.parse(n)}catch(e){}if(r.key&&r.id){const t=Eo(Is,ya,this.logger,this.performanceClient,e)(r.key);this.encryptionCookie={id:r.id,key:await xo(Js,pa,this.logger,this.performanceClient,e)(t)},await xo(this.importExistingCache.bind(this),ca,this.logger,this.performanceClient,e)(e)}else{this.clear();const n=$s(),r=await xo(Vs,ga,this.logger,this.performanceClient,e)(),i=Eo(Ys,va,this.logger,this.performanceClient,e)(new Uint8Array(r));this.encryptionCookie={id:n,key:await xo(Js,pa,this.logger,this.performanceClient,e)(r)};const a={id:n,key:i};t.setItem(Xo,JSON.stringify(a))}}getItem(e){return window.localStorage.getItem(e)}getUserData(e){if(!this.initialized)throw Ts(ps);return this.memoryStorage.getItem(e)}setItem(e,t){window.localStorage.setItem(e,t)}async setUserData(e,t,n){if(!this.initialized||!this.encryptionCookie)throw Ts(ps);const{data:r,nonce:i}=await xo(Zs,ba,this.logger,this.performanceClient,n)(this.encryptionCookie.key,t,this.getContext(e)),a={id:this.encryptionCookie.id,nonce:i,data:r};this.memoryStorage.setItem(e,t),this.setItem(e,JSON.stringify(a))}removeItem(e){this.memoryStorage.removeItem(e),window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}clear(){this.memoryStorage.clear();Qo(this).forEach(e=>this.removeItem(e));const e=Zo(this.clientId,this);e.idToken.forEach(e=>this.removeItem(e)),e.accessToken.forEach(e=>this.removeItem(e)),e.refreshToken.forEach(e=>this.removeItem(e)),this.getKeys().forEach(e=>{(e.startsWith(a.CACHE_PREFIX)||-1!==e.indexOf(this.clientId))&&this.removeItem(e)})}async importExistingCache(e){if(!this.encryptionCookie)return;let t=Qo(this);t=await this.importArray(t,e),this.setItem(Fe,JSON.stringify(t));const n=Zo(this.clientId,this);n.idToken=await this.importArray(n.idToken,e),n.accessToken=await this.importArray(n.accessToken,e),n.refreshToken=await this.importArray(n.refreshToken,e),this.setItem(`${Be}.${this.clientId}`,JSON.stringify(n))}async getItemFromEncryptedCache(e,t){if(!this.encryptionCookie)return null;const n=this.getItem(e);if(!n)return null;let r;try{r=JSON.parse(n)}catch(e){return null}return r.id&&r.nonce&&r.data?r.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},t),null):xo(Xs,wa,this.logger,this.performanceClient,t)(this.encryptionCookie.key,r.nonce,this.getContext(e),r.data):(this.performanceClient.incrementFields({unencryptedCacheCount:1},t),null)}async importArray(e,t){const n=[],r=[];return e.forEach(e=>{const i=this.getItemFromEncryptedCache(e,t).then(t=>{t?(this.memoryStorage.setItem(e,t),n.push(e)):this.removeItem(e)});r.push(i)}),await Promise.all(r),n}getContext(e){let t="";return e.includes(this.clientId)&&(t=this.clientId),t}}class tl{constructor(){if(!window.sessionStorage)throw so(to)}async initialize(){}getItem(e){return window.sessionStorage.getItem(e)}getUserData(e){return this.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}async setUserData(e,t){this.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}function nl(e,t){if(!t)return null;try{return Ko.parseRequestState(e,t).libraryState.meta}catch(e){throw pn(Et)}}class rl extends Ir{constructor(e,t,n,r,i,a){super(e,n,r,a),this.cacheConfig=t,this.logger=r,this.internalStorage=new Co,this.browserStorage=il(e,t.cacheLocation,r,i),this.temporaryCacheStorage=il(e,t.temporaryCacheLocation,r,i),this.cookieStorage=new Jo,this.performanceClient=i}async initialize(e){await this.browserStorage.initialize(e)}validateAndParseJson(e){try{const t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}}getAccount(e){this.logger.trace("BrowserCacheManager.getAccount called");const t=this.browserStorage.getUserData(e);if(!t)return this.removeAccountKeyFromMap(e),null;const n=this.validateAndParseJson(t);return n&&wr.isAccountEntity(n)?Ir.toObject(new wr,n):(this.removeAccountKeyFromMap(e),null)}async setAccount(e,t){this.logger.trace("BrowserCacheManager.setAccount called");const n=e.generateAccountKey();await xo(this.browserStorage.setUserData.bind(this.browserStorage),ua,this.logger,this.performanceClient)(n,JSON.stringify(e),t),this.addAccountKeyToMap(n)}getAccountKeys(){return Qo(this.browserStorage)}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const t=this.getAccountKeys();-1===t.indexOf(e)?(t.push(e),this.browserStorage.setItem(Fe,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const t=this.getAccountKeys(),n=t.indexOf(e);n>-1?(t.splice(n,1),this.browserStorage.setItem(Fe,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap ke
2y not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,N.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,N.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,N.REFRESH_TOKEN)}getTokenKeys(){return Zo(this.clientId,this.browserStorage)}addTokenKey(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");const n=this.getTokenKeys();switch(t){case N.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case N.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case N.REFRESH_TOKEN:-1===n.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),n.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${t}`),pn(Zt)}this.browserStorage.setItem(`${Be}.${this.clientId}`,JSON.stringify(n))}removeTokenKey(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");const n=this.getTokenKeys();switch(t){case N.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const r=n.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),n.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case N.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const i=n.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case N.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const a=n.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${t}`),pn(Zt)}this.browserStorage.setItem(`${Be}.${this.clientId}`,JSON.stringify(n))}getIdTokenCredential(e){const t=this.browserStorage.getUserData(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,N.ID_TOKEN),null;const n=this.validateAndParseJson(t);return n&&((r=n)&&An(r)&&r.hasOwnProperty("realm")&&r.credentialType===N.ID_TOKEN)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),n):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,N.ID_TOKEN),null);var r}async setIdTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const n=Ln(e);await xo(this.browserStorage.setUserData.bind(this.browserStorage),ua,this.logger,this.performanceClient)(n,JSON.stringify(e),t),this.addTokenKey(n,N.ID_TOKEN)}getAccessTokenCredential(e){const t=this.browserStorage.getUserData(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,N.ACCESS_TOKEN),null;const n=this.validateAndParseJson(t);return n&&(r=n)&&An(r)&&r.hasOwnProperty("realm")&&r.hasOwnProperty("target")&&(r.credentialType===N.ACCESS_TOKEN||r.credentialType===N.ACCESS_TOKEN_WITH_AUTH_SCHEME)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),n):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,N.ACCESS_TOKEN),null);var r}async setAccessTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const n=Ln(e);await xo(this.browserStorage.setUserData.bind(this.browserStorage),ua,this.logger,this.performanceClient)(n,JSON.stringify(e),t),this.addTokenKey(n,N.ACCESS_TOKEN)}getRefreshTokenCredential(e){const t=this.browserStorage.getUserData(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,N.REFRESH_TOKEN),null;const n=this.validateAndParseJson(t);return n&&(r=n)&&An(r)&&r.credentialType===N.REFRESH_TOKEN?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),n):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,N.REFRESH_TOKEN),null);var r}async setRefreshTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const n=Ln(e);await xo(this.browserStorage.setUserData.bind(this.browserStorage),ua,this.logger,this.performanceClient)(n,JSON.stringify(e),t),this.addTokenKey(n,N.REFRESH_TOKEN)}getAppMetadata(e){const t=this.browserStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const n=this.validateAndParseJson(t);return n&&(r=e,(i=n)&&0===r.indexOf(R)&&i.hasOwnProperty("clientId")&&i.hasOwnProperty("environment"))?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),n):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null);var r,i}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const t=function({environment:e,clientId:t}){return[R,e,t].join(O).toLowerCase()}(e);this.browserStorage.setItem(t,JSON.stringify(e))}getServerTelemetry(e){const t=this.browserStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const n=this.validateAndParseJson(t);return n&&function(e,t){const n=0===e.indexOf(W.CACHE_KEY);let r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r}(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),n):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)}setServerTelemetry(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.browserStorage.setItem(e,JSON.stringify(t))}getAuthorityMetadata(e){const t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const n=this.validateAndParseJson(t);return n&&function(e,t){return!!t&&0===e.indexOf(P)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri")}(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),n):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(e=>this.isAuthorityMetadata(e))}setWrapperMetadata(e,t){this.internalStorage.setItem(We,e),this.internalStorage.setItem(ze,t)}getWrapperMetadata(){return[this.internalStorage.getItem(We)||a.EMPTY_STRING,this.internalStorage.getItem(ze)||a.EMPTY_STRING]}setAuthorityMetadata(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(){const e=this.generateCacheKey(y),t=this.browserStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters found"),null;const n=this.validateAndParseJson(t);return n?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:n.homeAccountId,localAccountId:n.localAccountId,tenantId:n.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const t=this.generateCacheKey(y);if(e){this.logger.verbose("setActiveAccount: Active account set");const n={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(t,JSON.stringify(n))}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t)}getThrottlingCache(e){const t=this.browserStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const n=this.validateAndParseJson(t);return n&&function(e,t){let n=!1;e&&(n=0===e.indexOf(G));let r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r}(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),n):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)}setThrottlingCache(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.browserStorage.setItem(e,JSON.stringify(t))}getTemporaryCache(e,t){const n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const e=this.cookieStorage.getItem(n);if(e)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),e}const r=this.temporaryCacheStorage.getItem(n);if(!r){if(this.cacheConfig.cacheLocation===Ce){const e=this.browserStorage.getItem(n);if(e)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),e}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),r}setTemporaryCache(e,t,n){const r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(r,t,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.temporaryCacheStorage.getKeys().forEac
2h(e=>{-1===e.indexOf(a.CACHE_PREFIX)&&-1===e.indexOf(this.clientId)||this.removeTemporaryItem(e)}),this.browserStorage.getKeys().forEach(e=>{-1===e.indexOf(a.CACHE_PREFIX)&&-1===e.indexOf(this.clientId)||this.browserStorage.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e,t){e.addQueueMeasurement(oa,t);const n=this.getTokenKeys(),r=[];n.accessToken.forEach(e=>{const t=this.getAccessTokenCredential(e);t?.requestedClaimsHash&&e.includes(t.requestedClaimsHash.toLowerCase())&&r.push(this.removeAccessToken(e))}),await Promise.all(r),r.length>0&&this.logger.warning(`${r.length} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):cr.startsWith(e,a.CACHE_PREFIX)?e:`${a.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=Ko.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${xe}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=Ko.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=Ko.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Oe}.${t}`)}getCachedAuthority(e){const t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;const r=this.generateAuthorityKey(n);return this.getTemporaryCache(r)}updateCacheEntries(e,t,n,r,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);const s=this.generateNonceKey(e);this.setTemporaryCache(s,t,!1);const o=this.generateAuthorityKey(e);if(this.setTemporaryCache(o,n,!1),i){const e={credential:i.homeAccountId,type:$o};this.setTemporaryCache(He,JSON.stringify(e),!0)}else if(r){const e={credential:r,type:Go};this.setTemporaryCache(He,JSON.stringify(e),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(t=>{-1!==t.indexOf(e)&&this.removeTemporaryItem(t)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(je)),this.removeTemporaryItem(this.generateCacheKey(Ne)),this.removeTemporaryItem(this.generateCacheKey(Re)),this.removeTemporaryItem(this.generateCacheKey(qe)),this.removeTemporaryItem(this.generateCacheKey(He)),this.removeTemporaryItem(this.generateCacheKey(Ue)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${n}`),this.resetRequestCache(n||a.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(t=>{if(-1===t.indexOf(Oe))return;const n=this.temporaryCacheStorage.getItem(t);if(!n)return;const r=nl(this.cryptoImpl,n);r&&r.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${n}`),this.resetRequestCache(n))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const t=Es(JSON.stringify(e));this.setTemporaryCache(je,t,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const t=this.getTemporaryCache(je,!0);if(!t)throw Ts(Va);let n;try{n=JSON.parse(Os(t))}catch(e){throw this.logger.errorPii(`Attempted to parse: ${t}`),this.logger.error(`Parsing cached token request threw with error: ${e}`),Ts(Ja)}if(this.removeTemporaryItem(this.generateCacheKey(je)),!n.authority){const t=this.generateAuthorityKey(e),r=this.getTemporaryCache(t);if(!r)throw Ts(Qa);n.authority=r}return n}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Ue,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress();return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${a.CACHE_PREFIX}.${Pe}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const t=`${a.CACHE_PREFIX}.${Pe}`;if(e){if(this.getInteractionInProgress())throw Ts(Ra);this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeTemporaryItem(t)}async hydrateCache(e,t){const n=Tn(e.account?.homeAccountId,e.account?.environment,e.idToken,this.clientId,e.tenantId);let r;
2t.claims&&(r=await this.cryptoImpl.hashString(t.claims));const i={idToken:n,accessToken:Sn(e.account?.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,Os,void 0,e.tokenType,void 0,t.sshKid,t.claims,r)};return this.saveCacheRecord(i,e.correlationId)}async saveCacheRecord(e,t,n){try{await super.saveCacheRecord(e,t,n)}catch(e){if(e instanceof Or&&this.performanceClient&&t)try{const e=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:e.refreshToken.length,cacheIdCount:e.idToken.length,cacheAtCount:e.accessToken.length},t)}catch(e){}throw e}}}function il(e,t,n,r){try{switch(t){case Ce:return new el(e,n,r);case Ae:return new tl}}catch(e){n.error(e)}return new Co}const al={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};class sl{constructor(e){this.eventCallbacks=new Map,this.logger=e||new ft({})}addEventCallback(e,t,n){if("undefined"!=typeof window){const r=n||$s();return this.eventCallbacks.has(r)?(this.logger.error(`Event callback with id: ${r} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(r,[e,t||[]]),this.logger.verbose(`Event callback registered with id: ${r}`),r)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,t,n,r){if("undefined"!=typeof window){const i={eventType:e,interactionType:t||null,payload:n||null,error:r||null,timestamp:Date.now()};this.eventCallbacks.forEach(([t,n],r)=>{(0===n.length||n.includes(e))&&(this.logger.verbose(`Emitting event to callback ${r}: ${e}`),t.apply(null,[i]))})}}}class ol extends wt{constructor(e,t,n,r,i){super(e,t,n),this.name="ServerError",this.errorNo=r,this.status=i,Object.setPrototypeOf(this,ol.prototype)}}class ll{static generateThrottlingStorageKey(e){return`${G}.${JSON.stringify(e)}`}static preProcess(e,t){const n=ll.generateThrottlingStorageKey(t),r=e.getThrottlingCache(n);if(r){if(r.throttleTime<Date.now())return void e.removeItem(n);throw new ol(r.errorCodes?.join(" ")||a.EMPTY_STRING,r.errorMessage,r.subError)}}static postProcess(e,t,n){if(ll.checkResponseStatus(n)||ll.checkResponseForRetryAfter(n)){const r={throttleTime:ll.calculateThrottleTime(parseInt(n.headers[f])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(ll.generateThrottlingStorageKey(t),r)}}static checkResponseStatus(e){return 429===e.status||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return!!e.headers&&(e.headers.hasOwnProperty(f)&&(e.status<200||e.status>=300))}static calculateThrottleTime(e){const t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||K),n+$))}static removeThrottle(e,t,n,r){const i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)}}const cl="client_id",ul="redirect_uri",dl="response_type",hl="token_type",ml="req_cnf",fl="return_spa_code",_l="x-client-xtra-sku",pl="brk_client_id",gl="brk_redirect_uri";class yl{static validateRedirectUri(e){if(!e)throw lr(Pn)}static validatePrompt(e){const t=[];for(const e in L)t.push(L[e]);if(t.indexOf(e)<0)throw lr(Wn)}static validateClaims(e){try{JSON.parse(e)}catch(e){throw lr(zn)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw lr(Vn);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([T.PLAIN,T.S256].indexOf(e)<0)throw lr(Gn)}}class vl{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(dl,encodeURIComponent(a.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(dl,encodeURIComponent(`${a.TOKEN_RESPONSE_TYPE} ${a.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set("response_mode",encodeURIComponent(e||C.QUERY))}addNativeBroker(){this.parameters.set("nativebroker",encodeURIComponent("1"))}addScopes(e,t=!0,n=u){!t||n.includes("openid")||e.includes("openid")||n.push("openid");const r=t?[...e||[],...n]:e||[],i=new ur(r);this.parameters.set("scope",encodeURIComponent(i.printScopes()))}addClientId(e){this.parameters.set(cl,encodeURIComponent(e))}addRedirectUri(e){yl.validateRedirectUri(e),this.parameters.set(ul,encodeURIComponent(e))}addPostLogoutRedirectUri(e){yl.validateRedirectUri(e),this.parameters.set("post_logout_redirect_uri",encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set("id_token_hint",encodeURIComponent(e))}addDomainHint(e){this.parameters.set("domain_hint",encodeURIComponent(e))}addLoginHint(e){this.parameters.set("login_hint",encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(_,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(_,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set("sid",encodeURIComponent(e))}addClaims(e,t){const n=this.addClientCapabilitiesToClaims(e,t);yl.validateClaims(n),this.parameters.set("claims",encodeURIComponent(n))}addCorrelationId(e){this.parameters.set("client-request-id",encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set("x-client-SKU",e.sku),this.parameters.set("x-client-VER",e.version),e.os&&this.parameters.set("x-client-OS",e.os),e.cpu&&this.parameters.set("x-client-CPU",e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set("x-app-name",e.appName),e?.appVersion&&this.parameters.set("x-app-ver",e.appVersion)}
2addPrompt(e){yl.validatePrompt(e),this.parameters.set("prompt",encodeURIComponent(e))}addState(e){e&&this.parameters.set("state",encodeURIComponent(e))}addNonce(e){this.parameters.set("nonce",encodeURIComponent(e))}addCodeChallengeParams(e,t){if(yl.validateCodeChallengeParams(e,t),!e||!t)throw lr(Vn);this.parameters.set("code_challenge",encodeURIComponent(e)),this.parameters.set("code_challenge_method",encodeURIComponent(t))}addAuthorizationCode(e){this.parameters.set("code",encodeURIComponent(e))}addDeviceCode(e){this.parameters.set("device_code",encodeURIComponent(e))}addRefreshToken(e){this.parameters.set("refresh_token",encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set("code_verifier",encodeURIComponent(e))}addClientSecret(e){this.parameters.set("client_secret",encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set("client_assertion",encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set("client_assertion_type",encodeURIComponent(e))}addOboAssertion(e){this.parameters.set("assertion",encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set("requested_token_use",encodeURIComponent(e))}addGrantType(e){this.parameters.set("grant_type",encodeURIComponent(e))}addClientInfo(){this.parameters.set("client_info","1")}addExtraQueryParameters(e){Object.entries(e).forEach(([e,t])=>{!this.parameters.has(e)&&t&&this.parameters.set(e,t)})}addClientCapabilitiesToClaims(e,t){let n;if(e)try{n=JSON.parse(e)}catch(e){throw lr(zn)}else n={};return t&&t.length>0&&(n.hasOwnProperty(M)||(n[M]={}),n[M][k]={values:t}),JSON.stringify(n)}addUsername(e){this.parameters.set(Z,encodeURIComponent(e))}addPassword(e){this.parameters.set(X,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(hl,z.POP),this.parameters.set(ml,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(hl,z.SSH),this.parameters.set(ml,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set("x-client-current-telemetry",e.generateCurrentRequestHeaderValue()),this.parameters.set("x-client-last-telemetry",e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set("x-ms-lib-capability",V)}addLogoutHint(e){this.parameters.set("logout_hint",encodeURIComponent(e))}addBrokerParameters(e){const t={};t[pl]=e.brokerClientId,t[gl]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;return this.parameters.forEach((t,n)=>{e.push(`${n}=${t}`)}),function(e,t,n){if(!t)return;const r=e.get(cl);r&&e.has(pl)&&n?.addFields({embeddedClientId:r,embeddedRedirectUri:e.get(ul)},t)}(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}async function bl(e,t,n,r,i,a,s){s?.addQueueMeasurement(Ki,a);const o=Io.transformCIAMAuthority(No(e)),l=new Io(o,t,n,r,i,a,s);try{return await xo(l.resolveEndpointsAsync.bind(l),$i,i,s,a)(),l}catch(e){throw pn(Ct)}}class wl{constructor(e,t){this.config=function({authOptions:e,systemOptions:t,loggerOptions:n,cacheOptions:r,storageInterface:i,networkInterface:a,cryptoInterface:s,clientCredentials:o,libraryInfo:l,telemetry:c,serverTelemetryManager:u,persistencePlugin:d,serializableCache:h}){const m={...jr,...n};return{authOptions:(f=e,{clientCapabilities:[],azureCloudOptions:Fr,skipAuthorityMetadataCache:!1,instanceAware:!1,...f}),systemOptions:{...Rr,...t},loggerOptions:m,cacheOptions:{...Pr,...r},storageInterface:i||new Nr(e.clientId,gn,new ft(m)),networkInterface:a||Hr,cryptoInterface:s||gn,clientCredentials:o||Ur,libraryInfo:{...qr,...l},telemetry:{...Br,...c},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null};var f}(e),this.logger=new ft(this.config.loggerOptions,yn,vn),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}createTokenRequestHeaders(e){const t={};if(t[h]=a.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case $o:try{const n=hr(e.credential);t[_]=`Oid:${n.uid}@${n.utid}`}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case Go:t[_]=`UPN: ${e.credential}`}return t}async executePostToTokenEndpoint(e,t,n,r,i,a){a&&this.performanceClient?.addQueueMeasurement(a,i);const s=await this.sendPostRequest(r,e,{body:t,headers:n},i);return this.config.serverTelemetryManager&&s.status<500&&429!==s.status&&this.config.serverTelemetryManager.clearTelemetryCache(),s}async sendPostRequest(e,t,n,r){let i;ll.preProcess(this.cacheManager,e);try{i=await xo(this.networkClient.sendPostRequestAsync.bind(this.networkClient),ci,this.logger,this.performanceClient,r)(t,n);const e=i.headers||{};this.performanceClient?.addFields({refreshTokenSize:i.body.refresh_token?.length||0,httpVerToken:e[g]||"",requestId:e[p]||""},r)}catch(e){if(e instanceof Sa){const t=e.responseHeaders;throw t&&this.performanceClient?.addFields({httpVerToken:t[g]||"",requestId:t[p]||"",contentTypeHeader:t[h]||void 0,contentLengthHeader:t[m]||void 0,httpStatus:e.httpStatus},r),e.error}throw e instanceof wt?e:pn(At)}return ll.postProcess(this.cacheManager,e,i),i}async updateAuthority(e,t){this.performanceClient?.addQueueMeasurement(ji,t);const n=`https://${e}/${this.authority.tenant}/`,r=await bl(n,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=r}createTokenQueryParameters(e){const t=new vl(e.correlationId,this.performanceClient);return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.addCorrelationId(e.correlationId),t.createQueryString()}}const Ml="sw";class kl{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){this.performanceClient?.addQueueMeasurement(Fi,e.correlationId);const n=await xo(this.generateKid.bind(this),Fi,t,this.performanceClient,e.correlationId)(e),r=this.cryptoUtils.base64UrlEncode(JSON.stringify(n));return{kid:n.kid,reqCnfString:r}}async generateKid(e){this.performanceClient?.addQueueMeasurement(Bi,e.correlationId);return{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:Ml}}async signPopToken(e,t,n){return this.signPayload(e,t,n)}async signPayload(e,t,n,r){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:s,shrNonce:o,shrOptions:l}=n,c=a?new Lr(a):void 0,u=c?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:Mn(),m:i?.toUpperCase(),u:u?.HostNameAndPort,nonce:o||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0,...r},t,l,n.correlationId)}}class Ll{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}class Tl{constructor(e,t,n,r,i,a,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}validateServerAuthorizationCodeResponse(e,t){if(!e.state||!t)throw e.state?pn(Ot,"Cached State"):pn(Ot,"Server State");let n,r;try{n=decodeURIComponent(e.state)}catch(t){throw pn(Et,e.state)}try{r=decodeURIComponent(t)}catch(t){throw pn(Et,e.state)}if(n!==r)throw pn(xt);if(e.error||e.error_description||e.suberror){const t=function(e){const t="code=",n=e.error_uri?.lastIndexOf(t);return n&&n>=0?e.error_uri?.substring(n+5):void 0}(e);if(Wo(e.error,e.error_description,e.suberror))throw new Bo(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",t);throw new ol(e.error||"",e.error_description,e.suberror,t)}}validateTokenResponse(e,t){if(e.error||e.error_description||e.suberror){const n=`Error(s): ${e.error_codes||a.NOT_AVAILABLE} - Timestamp: ${e.timestamp||a.NOT_AVAILABLE} - Description: ${e.error_description||a.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||a.NOT_AVAILABLE} - Trace ID: ${e.trace_id||a.NOT_AVAILABLE}`,r=e.error_codes?.length?e.error_codes[0]:void 0,i=new ol(e.error,n,e.suberror,r,e.status);if(t&&e.status&&e.status>=l&&e.status<=c)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.\n${i}`);if(t&&e.status&&e.status>=s&&e.status<=o)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.\n${i}`);if(Wo(e.error,e.error_description,e.suberror))throw new Bo(e.error,e.error_description,e.suberror,e.timestamp||a.EMPTY_STRING,e.trace_id||a.EMPTY_STRING,e.correlation_id||a.EMPTY_STRING,e.claims||a.EMPTY_STRING,r);throw i}}async handleServerTokenResponse(e,t,n,r,i,s,o,l,c){let u,d;if(this.performanceClient?.addQueueMeasurement(Wi,e.correlation_id),e.id_token){if(u=bn(e.id_token||a.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&u.nonce!==i.nonce)throw pn(It);if(r.maxAge||0===r.maxAge){const e=u.auth_time;if(!e)throw pn(Nt);
2wn(e,r.maxAge)}}this.homeAccountIdentifier=wr.generateHomeAccountId(e.client_info||a.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,u),i&&i.state&&(d=Ko.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||r.sshKid||void 0;const h=this.generateCacheRecord(e,t,n,r,u,s,i);let m;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new Ll(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(m)),o&&!l&&h.account){const e=h.account.generateAccountKey();if(!this.cacheStorage.getAccount(e))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Tl.generateAuthenticationResult(this.cryptoObj,t,h,!1,r,u,d,void 0,c)}await this.cacheStorage.saveCacheRecord(h,r.correlationId,r.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&m&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(m))}return Tl.generateAuthenticationResult(this.cryptoObj,t,h,!1,r,u,d,e,c)}generateCacheRecord(e,t,n,r,i,a,s){const o=t.getPreferredCache();if(!o)throw pn(Vt);const l=br(i);let c,u;e.id_token&&i&&(c=Tn(this.homeAccountIdentifier,o,e.id_token,this.clientId,l||""),u=Sl(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,i,e.client_info,o,l,s,void 0,this.logger));let d=null;if(e.access_token){const i=e.scope?ur.fromString(e.scope):new ur(r.scopes||[]),s=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,c=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,u=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,h=n+s,m=h+c,f=u&&u>0?n+u:void 0;d=Sn(this.homeAccountIdentifier,o,e.access_token,this.clientId,l||t.tenant||"",i.printScopes(),h,m,this.cryptoObj.base64Decode,f,e.token_type,a,e.key_id,r.claims,r.requestedClaimsHash)}let h=null;if(e.refresh_token){let t;if(e.refresh_token_expires_in){t=n+("string"==typeof e.refresh_token_expires_in?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in)}h=Cn(this.homeAccountIdentifier,o,e.refresh_token,this.clientId,e.foci,a,t)}let m=null;return e.foci&&(m={clientId:this.clientId,environment:o,familyId:e.foci}),{account:u,idToken:c,accessToken:d,refreshToken:h,appMetadata:m}}static async generateAuthenticationResult(e,t,n,r,i,s,o,l,c){let u,d,h=a.EMPTY_STRING,m=[],f=null,_=a.EMPTY_STRING;if(n.accessToken){if(n.accessToken.tokenType!==z.POP||i.popKid)h=n.accessToken.secret;else{const t=new kl(e),{secret:r,keyId:a}=n.accessToken;if(!a)throw pn(ln);h=await t.signPopToken(r,a,i)}m=ur.fromString(n.accessToken.target).asArray(),f=new Date(1e3*Number(n.accessToken.expiresOn)),u=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),n.accessToken.refreshOn&&(d=new Date(1e3*Number(n.accessToken.refreshOn)))}n.appMetadata&&(_=n.appMetadata.familyId===j?j:"");const p=s?.oid||s?.sub||"",g=s?.tid||"";l?.spa_accountid&&n.account&&(n.account.nativeAccountId=l?.spa_accountid);const y=n.account?_r(n.account.getAccountInfo(),void 0,s,n.idToken?.secret):null;return{authority:t.canonicalAuthority,uniqueId:p,tenantId:g,scopes:m,account:y,idToken:n?.idToken?.secret||"",idTokenClaims:s||{},accessToken:h,fromCache:r,expiresOn:f,extExpiresOn:u,refreshOn:d,correlationId:i.correlationId,requestId:c||a.EMPTY_STRING,familyId:_,tokenType:n.accessToken?.tokenType||a.EMPTY_STRING,state:o?o.userRequestState:a.EMPTY_STRING,cloudGraphHostName:n.account?.cloudGraphHostName||a.EMPTY_STRING,msGraphHost:n.account?.msGraphHost||a.EMPTY_STRING,code:l?.spa_code,fromNativeBroker:!1}}}function Sl(e,t,n,r,i,a,s,o,l,c,u){u?.verbose("setCachedAccount called");const d=e.getAccountKeys().find(e=>e.startsWith(n));let h=null;d&&(h=e.getAccount(d));const m=h||wr.createAccount({homeAccountId:n,idTokenClaims:i,clientInfo:a,environment:s,cloudGraphHostName:l?.cloud_graph_host_name,msGraphHost:l?.msgraph_host,nativeAccountId:c},t,r),f=m.tenantProfiles||[],_=o||m.realm;if(_&&!f.find(e=>e.tenantId===_)){const e=fr(n,m.localAccountId,_,i);f.push(e)}return m.tenantProfiles=f,m}async function Cl(e,t,n){if("string"==typeof e)return e;return e({clientId:t,tokenEndpoint:n})}class Al extends wl{constructor(e,t){super(e,t),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async getAuthCodeUrl(e){this.performanceClient?.addQueueMeasurement(Ii,e.correlationId);const t=await xo(this.createAuthCodeUrlQueryString.bind(this),Ui,this.logger,this.performanceClient,e.correlationId)(e);return Lr.appendQueryString(this.authority.authorizationEndpoint,t)}async acquireToken(e,t){if(this.performanceClient?.addQueueMeasurement(Pi,e.correlationId),!e.code)throw pn(qt);const n=Mn(),r=await xo(this.executeTokenRequest.bind(this),Hi,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=r.headers?.[p],a=new Tl(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(r.body),xo(a.handleServerTokenResponse.bind(a),Wi,this.logger,this.performanceClient,e.correlationId)(r.body,this.authority,n,e,t,void 0,void 0,void 0,i)}handleFragmentResponse(e,t){if(new Tl(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,t),!e.code)throw pn(an);return e}getLogoutUri(e){if(!e)throw lr($n);const t=this.createLogoutUrlQueryString(e);return Lr.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t){this.performanceClient?.addQueueMeasurement(Hi,t.correlationId);const n=this.createTokenQueryParameters(t),r=Lr.appendQueryString(e.tokenEndpoint,n),i=await xo(this.createTokenRequestBody.bind(this),qi,this.logger,this.performanceClient,t.correlationId)(t);let a;if(t.clientInfo)try{const e=dr(t.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${e.uid}${I}${e.utid}`,type:$o}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}const s=this.createTokenRequestHeaders(a||t.ccsCredential),o={clientId:t.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return xo(this.executePostToTokenEndpoint.bind(this),di,this.logger,this.performanceClient,t.correlationId)(r,i,s,o,t.correlationId,di)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(qi,e.correlationId);const t=new vl(e.correlationId,this.performanceClient);if(t.addClientId(e.embeddedClientId||e.tokenBodyParameters?.[cl]||this.config.authOptions.clientId),this.includeRedirectUri?t.addRedirectUri(e.redirectUri):yl.validateRedirectUri(e.redirectUri),t.addScopes(e.scopes,!0,this.oidcDefaultScopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&!Wr(this.config)&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;t.addClientAssertion(await Cl(n.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(n.assertionType)}if(t.addGrantType(A),t.addClientInfo(),e.authenticationScheme===z.POP){const n=new kl(this.cryptoUtils,this.performanceClient);let r;if(e.popKid)r=this.cryptoUtils.encodeKid(e.popKid);else{r=(await xo(n.generateCnf.bind(n),Fi,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}t.addPopToken(r)}else if(e.authenticationScheme===z.SSH){if(!e.sshJwk)throw lr(Xn);t.addSshJwk(e.sshJwk)}let n;if((!cr.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.clientInfo)try{const t=dr(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${t.uid}${I}${t.utid}`,type:$o}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case $o:try{const e=hr(n.credential);t.addCcsOid(e)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case Go:t.addCcsUpn(n.credential)}return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[fl]||t.addExtraQueryParameters({[fl]:"1"}),t.createQueryString()}async createAuthCodeUrlQueryString(e){const t=e.correlationId||this.config.cryptoInterface.createNewGuid();this.performanceClient?.addQueueMeasurement(Ui,t);const n=new vl(t,this.performanceClient);n.addClientId(e.embeddedClientId||e.extraQueryParameters?.[cl]||this.config.authOptions.clientId);const r=[...e.scopes||[],...e.extraScopesToConsent||[]];if(n.addScopes(r,!0,this.oidcDefaultScopes),n.addRedirectUri(e.redirectUri),n.addCorrelationId(t),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),Wr(this.config)||n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==L.SELECT_ACCOUNT)if(e.sid&&e.prompt===L.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){const t=this.extractAccountSid(e.account);let r=this.extractLoginHint(e.account);if(r&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),r=null),r){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(r);try{const t=hr(e.account.homeAccountId);n.addCcsOid(t)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t&&e.prompt===L.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(t);try{const t=hr(e.account.homeAccountId);n.addCcsOid(t)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{const t=hr(e.account.homeAccountId);n.addCcsOid(t)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(e,n),e.platformBroker&&(n.addNativeBroker(),e.authenticationScheme===z.POP)){const t=new kl(this.cryptoUtils);let r;if(e.popKid)r=this.cryptoUtils.encodeKid(e.popKid);else{r=(await xo(t.generateCnf.bind(t),Fi,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}n.addPopToken(r)}return n.createQueryString()}createLogoutUrlQueryString(e){const t=new vl(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,t),t.createQueryString()}addExtraQueryParams(e,t){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}}function Dl(e){const{skus:t,libraryName:n,libraryVersion:r,extensionName:i,extensionVersion:a}=e,s=new Map([[0,[n,r]],[2,[i,a]]]);let o=[];if(t?.length){if(o=t.split(","),o.length<4)return t}else o=Array.from({length:4},()=>"|");
2return s.forEach((e,t)=>{2===e.length&&e[0]?.length&&e[1]?.length&&function(e){const{skuArr:t,index:n,skuName:r,skuVersion:i}=e;if(n>=t.length)return;t[n]=[r,i].join("|")}({skuArr:o,index:t,skuName:e[0],skuVersion:e[1]})}),o.join(",")}class Yl{constructor(e,t){this.cacheOutcome=le,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||a.EMPTY_STRING,this.wrapperVer=e.wrapperVer||a.EMPTY_STRING,this.telemetryCacheKey=W.CACHE_KEY+O+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${W.VALUE_SEPARATOR}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],n=this.getNativeBrokerErrorCode();n?.length&&t.push(`broker_error=${n}`);const r=t.join(W.VALUE_SEPARATOR),i=[e,this.getRegionDiscoveryFields()].join(W.VALUE_SEPARATOR);return[W.SCHEMA_VERSION,i,r].join(W.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=Yl.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(W.VALUE_SEPARATOR),r=e.errors.slice(0,t).join(W.VALUE_SEPARATOR),i=e.errors.length,a=[i,t<i?W.OVERFLOW_TRUE:W.OVERFLOW_FALSE].join(W.VALUE_SEPARATOR);return[W.SCHEMA_VERSION,e.cacheHits,n,r,a].join(W.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const t=this.getLastRequests();t.errors.length>=W.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof wt?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push(W.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){const e=this.getLastRequests(),t=Yl.maxErrorsToSend(e);if(t===e.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{const n={failedRequests:e.failedRequests.slice(2*t),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}}static maxErrorsToSend(e){let t,n=0,r=0;const i=e.errors.length;for(t=0;t<i;t++){const i=e.failedRequests[2*t]||a.EMPTY_STRING,s=e.failedRequests[2*t+1]||a.EMPTY_STRING,o=e.errors[t]||a.EMPTY_STRING;if(r+=i.toString().length+s.toString().length+o.length+3,!(r<W.MAX_LAST_HEADER_BYTES))break;n+=1}return n}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||a.EMPTY_STRING),e.push(this.regionSource||a.EMPTY_STRING),e.push(this.regionOutcome||a.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)}static makeExtraSkuString(e){return Dl(e)}}class El{constructor(e,t,n,r,i,a,s,o,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=o,this.correlationId=l||$s(),this.logger=r.clone(ve,go,this.correlationId),this.performanceClient=s}async clearCacheOnLogout(e){if(e){wr.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(wr.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch(e){this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch(e){this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const t=e||this.config.auth.redirectUri;return Lr.getAbsoluteUrl(t,lo())}initializeServerTelemetryManager(e,t){this.logger.verbose("initializeServerTelemetryManager called");const n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Yl(n,this.browserStorage)}async getDiscoveredAuthority(e){const{account:t}=e,n=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(si,this.correlationId);const r={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},i=e.requestAuthority||this.config.auth.authority,a=n?.length?"true"===n:this.config.auth.instanceAware,s=t&&a?this.config.auth.authority.replace(Lr.getDomainFromUrl(i),t.environment):i,o=Io.generateAuthority(s,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),l=await xo(bl,Ki,this.logger,this.performanceClient,this.correlationId)(o,this.config.system.networkClient,this.browserStorage,r,this.logger,this.correlationId,this.performanceClient);if(t&&!l.isAlias(t.environment))throw lr(ar);return l}}async function xl(e,t,n){e.addQueueMeasurement(da,n);const r=Eo(Ol,ha,t,e,n)(e,t,n);return{verifier:r,challenge:await xo(Il,ma,t,e,n)(r,e,t,n)}}
2function Ol(e,t,n){try{const r=new Uint8Array(32);Eo(zs,_a,t,e,n)(r);return Ys(r)}catch(e){throw Ts(Aa)}}async function Il(e,t,n,r){t.addQueueMeasurement(ma,r);try{const i=await xo(Ws,fa,n,t,r)(e,t,r);return Ys(new Uint8Array(i))}catch(e){throw Ts(Aa)}}async function Nl(e,t,n,r){n.addQueueMeasurement(wi,e.correlationId);const i=e.authority||t.auth.authority,a=[...e&&e.scopes||[]],s={...e,correlationId:e.correlationId,authority:i,scopes:a};if(s.authenticationScheme){if(s.authenticationScheme===z.SSH){if(!e.sshJwk)throw lr(Xn);if(!e.sshKid)throw lr(er)}r.verbose(`Authentication Scheme set to "${s.authenticationScheme}" as configured in Auth request`)}else s.authenticationScheme=z.BEARER,r.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return t.cache.claimsBasedCachingEnabled&&e.claims&&!cr.isEmptyObj(e.claims)&&(s.requestedClaimsHash=await eo(e.claims)),s}async function Rl(e,t,n,r,i){r.addQueueMeasurement(Mi,e.correlationId);const a=await xo(Nl,wi,i,r,e.correlationId)(e,n,r,i);return{...e,...a,account:t,forceRefresh:e.forceRefresh||!1}}class jl extends El{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(Oi,this.correlationId);const t=await xo(xl,da,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),n={...e,redirectUri:e.redirectUri,code:a.EMPTY_STRING,codeVerifier:t.verifier};return e.codeChallenge=t.challenge,e.codeChallengeMethod=a.S256_CODE_CHALLENGE_METHOD,n}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);const t={correlationId:this.correlationId||$s(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=Lr.getAbsoluteUrl(e.postLogoutRedirectUri,lo())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=Lr.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,lo())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=Lr.getAbsoluteUrl(lo(),lo())),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(Yi,this.correlationId);const t=await xo(this.getClientConfiguration.bind(this),Ei,this.logger,this.performanceClient,this.correlationId)(e);return new Al(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:n,requestAzureCloudOptions:r,requestExtraQueryParameters:i,account:s}=e;this.performanceClient.addQueueMeasurement(Ei,this.correlationId);const o=await xo(this.getDiscoveredAuthority.bind(this),si,this.logger,this.performanceClient,this.correlationId)({requestAuthority:n,requestAzureCloudOptions:r,requestExtraQueryParameters:i,account:s}),l=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:l.loggerCallback,piiLoggingEnabled:l.piiLoggingEnabled,logLevel:l.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:ve,version:go,cpu:a.EMPTY_STRING,os:a.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,t){this.performanceClient.addQueueMeasurement(xi,this.correlationId);const n=this.getRedirectUri(e.redirectUri),r={interactionType:t},i=Ko.setRequestState(this.browserCrypto,e&&e.state||a.EMPTY_STRING,r),s={...await xo(Nl,wi,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:n,state:i,nonce:e.nonce||$s(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return s;const o=e.account||this.browserStorage.getActiveAccount();return o&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${o.homeAccountId}`,this.correlationId),s.account=o),s}}const Pl="user_switch",Hl={[Pl]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class ql extends wt{constructor(e,t,n){super(e,t),Object.setPrototypeOf(this,ql.prototype),this.name="NativeAuthError",this.ext=n}}function Ul(e){return!(!e.ext||!e.ext.status||"PERSISTENT_ERROR"!==e.ext.status&&"DISABLED"!==e.ext.status)||(!(!e.ext||!e.ext.error||-2147186943!==e.ext.error)||"ContentError"===e.errorCode)}function Fl(e,t,n){if(n&&n.status)switch(n.status){case"ACCOUNT_UNAVAILABLE":return zo(jo);case"USER_INTERACTION_REQUIRED":return new Bo(e,t);case"USER_CANCEL":return Ts(Ha);case"NO_NETWORK":return Ts(ns)}return new ql(e,Hl[e]||t,n)}class Bl extends wl{constructor(e,t){super(e,t)}async acquireToken(e){this.performanceClient?.addQueueMeasurement(mi,e.correlationId);const t=Mn(),n=await xo(this.executeTokenRequest.bind(this),hi,this.logger,this.performanceClient,e.correlationId)(e,this.authority),r=n.headers?.[p],i=new Tl(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(n.body),xo(i.handleServerTokenResponse.bind(i),Wi,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,t,e,void 0,void 0,!0,e.forceCache,r)}async acquireTokenByRefreshToken(e){if(!e)throw lr(Kn);if(this.performanceClient?.addQueueMeasurement(_i,e.correlationId),!e.account)throw pn($t);
2if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await xo(this.acquireTokenWithCachedRefreshToken.bind(this),fi,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(t){const n=t instanceof Bo&&t.errorCode===Ro,r=t instanceof ol&&t.errorCode===J&&t.subError===Q;if(n||r)return xo(this.acquireTokenWithCachedRefreshToken.bind(this),fi,this.logger,this.performanceClient,e.correlationId)(e,!1);throw t}return xo(this.acquireTokenWithCachedRefreshToken.bind(this),fi,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,t){this.performanceClient?.addQueueMeasurement(fi,e.correlationId);const n=Eo(this.cacheManager.getRefreshToken.bind(this.cacheManager),la,this.logger,this.performanceClient,e.correlationId)(e.account,t,void 0,this.performanceClient,e.correlationId);if(!n)throw zo(Ro);if(n.expiresOn&&kn(n.expiresOn,e.refreshTokenExpirationOffsetSeconds||300))throw zo(Po);const r={...e,refreshToken:n.secret,authenticationScheme:e.authenticationScheme||z.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:$o}};try{return await xo(this.acquireToken.bind(this),mi,this.logger,this.performanceClient,e.correlationId)(r)}catch(e){if(e instanceof Bo&&e.subError===Ho){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const e=Ln(n);this.cacheManager.removeRefreshToken(e)}throw e}}async executeTokenRequest(e,t){this.performanceClient?.addQueueMeasurement(hi,e.correlationId);const n=this.createTokenQueryParameters(e),r=Lr.appendQueryString(t.tokenEndpoint,n),i=await xo(this.createTokenRequestBody.bind(this),pi,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),s={clientId:e.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return xo(this.executePostToTokenEndpoint.bind(this),ui,this.logger,this.performanceClient,e.correlationId)(r,i,a,s,e.correlationId,ui)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(pi,e.correlationId);const t=e.correlationId,n=new vl(t,this.performanceClient);if(n.addClientId(e.embeddedClientId||e.tokenBodyParameters?.[cl]||this.config.authOptions.clientId),e.redirectUri&&n.addRedirectUri(e.redirectUri),n.addScopes(e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),n.addGrantType(D),n.addClientInfo(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&!Wr(this.config)&&n.addServerTelemetry(this.serverTelemetryManager),n.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const t=this.config.clientCredentials.clientAssertion;n.addClientAssertion(await Cl(t.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),n.addClientAssertionType(t.assertionType)}if(e.authenticationScheme===z.POP){const t=new kl(this.cryptoUtils,this.performanceClient);let r;if(e.popKid)r=this.cryptoUtils.encodeKid(e.popKid);else{r=(await xo(t.generateCnf.bind(t),Fi,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString}n.addPopToken(r)}else if(e.authenticationScheme===z.SSH){if(!e.sshJwk)throw lr(Xn);n.addSshJwk(e.sshJwk)}if((!cr.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case $o:try{const t=hr(e.ccsCredential.credential);n.addCcsOid(t)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case Go:n.addCcsUpn(e.ccsCredential.credential)}return e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&n.addExtraQueryParameters(e.tokenBodyParameters),n.createQueryString()}}class Wl extends wl{constructor(e,t){super(e,t)}async acquireToken(e){try{const[t,n]=await this.acquireCachedToken({...e,scopes:e.scopes?.length?e.scopes:[...u]});if(n===he){this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.");new Bl(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})}return t}catch(t){if(t instanceof _n&&t.errorCode===tn){return new Bl(this.config,this.performanceClient).acquireTokenByRefreshToken(e)}throw t}}async acquireCachedToken(e){this.performanceClient?.addQueueMeasurement(yi,e.correlationId);let t=le;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!cr.isEmptyObj(e.claims))throw this.setCacheOutcome(ce,e.correlationId),pn(tn);if(!e.account)throw pn($t);const n=e.account.tenantId||function(e){const t=new Lr(e).getUrlComponents(),n=t.PathSegments.slice(-1)[0]?.toLowerCase();switch(n){case v:case b:case w:return;default:return n}}(e.authority),r=this.cacheManager.getTokenKeys(),i=this.cacheManager.getAccessToken(e.account,e,r,n,this.performanceClient,e.correlationId);if(!i)throw this.setCacheOutcome(ue,e.correlationId),pn(tn);if(a=i.cachedAt,Number(a)>Mn()||kn(i.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(de,e.correlationId),pn(tn);var a;i.refreshOn&&kn(i.refreshOn,0)&&(t=he);const s=e.authority||this.authority.getPreferredCache(),o={account:this.cacheManager.readAccountFromCache(e.account),accessToken:i,idToken:this.cacheManager.getIdToken(e.account,r,n,this.performanceClient,e.correlationId),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCac
2he(s)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await xo(this.generateResultFromCacheRecord.bind(this),vi,this.logger,this.performanceClient,e.correlationId)(o,e),t]}setCacheOutcome(e,t){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},t),e!==le&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,t){let n;if(this.performanceClient?.addQueueMeasurement(vi,t.correlationId),e.idToken&&(n=bn(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||0===t.maxAge){const e=n?.auth_time;if(!e)throw pn(Nt);wn(e,t.maxAge)}return Tl.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)}}class zl extends jl{async acquireToken(e){this.performanceClient.addQueueMeasurement(ti,e.correlationId);const t=this.initializeServerTelemetryManager(Qe),n=await xo(this.getClientConfiguration.bind(this),Ei,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),r=new Wl(n,this.performanceClient);this.logger.verbose("Silent auth client created");try{const t=(await xo(r.acquireCachedToken.bind(r),yi,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),t}catch(e){throw e instanceof Ls&&e.errorCode===os&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),e}}logout(e){this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(t?.account)}}class Kl extends El{constructor(e,t,n,r,i,a,s,o,l,c,u,d){super(e,t,n,r,i,a,o,l,d),this.apiId=s,this.accountId=c,this.nativeMessageHandler=l,this.nativeStorageManager=u,this.silentCacheClient=new zl(e,this.nativeStorageManager,n,r,i,a,o,l,d);const h=this.nativeMessageHandler.getExtensionId()===we?"chrome":this.nativeMessageHandler.getExtensionId()?.length?"unknown":void 0;this.skus=Yl.makeExtraSkuString({libraryName:ve,libraryVersion:go,extensionName:h,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[_l]:this.skus}}async acquireToken(e){this.performanceClient.addQueueMeasurement(li,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const t=this.performanceClient.startMeasurement(li,e.correlationId),n=Mn(),r=this.initializeServerTelemetryManager(this.apiId);try{const i=await this.initializeNativeRequest(e);try{const e=await this.acquireTokensFromCache(this.accountId,i);return t.end({success:!0,isNativeBroker:!1,fromCache:!0}),e}catch(e){this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...a}=i,s={method:Te,request:a},o=await this.nativeMessageHandler.sendMessage(s),l=this.validateNativeResponse(o);return await this.handleNativeResponse(l,i,n).then(e=>(t.end({success:!0,isNativeBroker:!0,requestId:e.requestId}),r.clearNativeBrokerErrorCode(),e)).catch(e=>{throw t.end({success:!1,errorCode:e.errorCode,subErrorCode:e.subError,isNativeBroker:!0}),e})}catch(e){throw e instanceof ql&&r.setNativeBrokerErrorCode(e.errorCode),e}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:ur.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),pn(Jt);const n=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!n)throw pn(Jt);try{const e=this.createSilentCacheRequest(t,n),r=await this.silentCacheClient.acquireToken(e),i={...n,idTokenClaims:r?.idTokenClaims,idToken:r?.idToken};return{...r,account:i}}catch(e){throw e}}async acquireTokenRedirect(e,t){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...n}=e;delete n.onRedirectNavigate;const r=await this.initializeNativeRequest(n),i={method:Te,request:r};try{const e=await this.nativeMessageHandler.sendMessage(i);this.validateNativeResponse(e)}catch(e){if(e instanceof ql){if(this.initializeServerTelemetryManager(this.apiId).setNativeBrokerErrorCode(e.errorCode),Ul(e))throw e}}this.browserStorage.setTemporaryCache(Ue,JSON.stringify(r),!0);const a={apiId:Ke,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},s=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);t.end({success:!0}),await this.navigationClient.navigateExternal(s,a)}async handleRedirectPromise(e,t){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const n=this.browserStorage.getCachedNativeRequest();if(!n)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&t&&e?.addFields({errorCode:"no_cached_request"},t),null;const{prompt:r,...i}=n;r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, remov
2ing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ue));const a={method:Te,request:i},s=Mn();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const e=await this.nativeMessageHandler.sendMessage(a);this.validateNativeResponse(e);const t=this.handleNativeResponse(e,i,s);this.browserStorage.setInteractionInProgress(!1);const n=await t;return this.initializeServerTelemetryManager(this.apiId).clearNativeBrokerErrorCode(),n}catch(e){throw this.browserStorage.setInteractionInProgress(!1),e}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,n){this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const r=bn(e.id_token,Os),i=this.createHomeAccountIdentifier(e,r),a=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId})?.homeAccountId;if(i!==a&&e.account.id!==t.accountId)throw Fl(Pl);const s=await this.getDiscoveredAuthority({requestAuthority:t.authority}),o=Sl(this.browserStorage,s,i,Os,r,e.client_info,void 0,r.tid,void 0,e.account.id,this.logger),l=await this.generateAuthenticationResult(e,t,r,o,s.canonicalAuthority,n);return await this.cacheAccount(o),await this.cacheNativeTokens(e,t,i,r,e.access_token,l.tenantId,n),l}createHomeAccountIdentifier(e,t){return wr.generateHomeAccountId(e.client_info||a.EMPTY_STRING,pr,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?ur.fromString(e.scope):ur.fromString(t.scope)}async generatePopAccessToken(e,t){if(t.tokenType===z.POP&&t.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const n=new kl(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw pn(ln);return n.signPopToken(e.access_token,t.keyId,r)}return e.access_token}async generateAuthenticationResult(e,t,n,r,i,s){const o=this.addTelemetryFromNativeResponse(e),l=e.scope?ur.fromString(e.scope):ur.fromString(t.scope),c=e.account.properties||{},u=c.UID||n.oid||n.sub||a.EMPTY_STRING,d=c.TenantId||n.tid||a.EMPTY_STRING,h=_r(r.getAccountInfo(),void 0,n,e.id_token);h.nativeAccountId!==e.account.id&&(h.nativeAccountId=e.account.id);const m=await this.generatePopAccessToken(e,t),f=t.tokenType===z.POP?z.POP:z.BEARER;return{authority:i,uniqueId:u,tenantId:d,scopes:l.asArray(),account:h,idToken:e.id_token,idTokenClaims:n,accessToken:m,fromCache:!!o&&this.isResponseFromCache(o),expiresOn:new Date(1e3*Number(s+e.expires_in)),tokenType:f,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}async cacheAccount(e){await this.browserStorage.setAccount(e,this.correlationId),this.browserStorage.removeAccountContext(e).catch(e=>{this.logger.error(`Error occurred while removing account context from browser storage. ${e}`)})}cacheNativeTokens(e,t,n,r,i,s,o){const l=Tn(n,t.authority,e.id_token||"",t.clientId,r.tid||""),c=o+(t.tokenType===z.POP?a.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),u=this.generateScopes(e,t),d={idToken:l,accessToken:Sn(n,t.authority,i,t.clientId,r.tid||s,u.printScopes(),c,0,Os,void 0,t.tokenType,void 0,t.keyId)};return this.nativeStorageManager.saveCacheRecord(d,this.correlationId,t.storeInCache)}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_c
2ount},this.correlationId),t):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Mt(yt,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(e){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return void 0===e.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const t=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:t,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const n=new Lr(t);n.validateAsUri();const{scopes:r,...i}=e,a=new ur(r||[]);a.appendScopes(u);const s={...i,accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:a.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:(()=>{switch(this.apiId){case Ge:case Qe:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),L.NONE}if(e.prompt)switch(e.prompt){case L.NONE:case L.CONSENT:case L.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),Ts(gs)}else this.logger.trace("initializeNativeRequest: prompt was not provided")})(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(s.signPopToken&&e.popKid)throw Ts(vs);if(this.handleExtraBrokerParams(s),s.extraParameters=s.extraParameters||{},s.extraParameters.telemetry=Me,e.authenticationScheme===z.POP){const t={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},n=new kl(this.browserCrypto);let r;if(s.keyId)r=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:s.keyId})),s.signPopToken=!1;else{const i=await xo(n.generateCnf.bind(n),Fi,this.logger,this.performanceClient,e.correlationId)(t,this.logger);
2r=i.reqCnfString,s.keyId=i.kid,s.signPopToken=!0}s.reqCnf=r}return this.addRequestSKUs(s),s}handleExtraBrokerParams(e){const t=e.extraParameters&&e.extraParameters.hasOwnProperty(pl)&&e.extraParameters.hasOwnProperty(gl)&&e.extraParameters.hasOwnProperty(cl);if(!e.embeddedClientId&&!t)return;let n="";const r=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,n=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[gl],n=e.extraParameters[cl]),e.extraParameters={child_client_id:n,child_redirect_uri:r},this.performanceClient?.addFields({embeddedClientId:n,embeddedRedirectUri:r},e.correlationId)}}class $l{constructor(e,t,n,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(aa)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const t={channel:be,extensionId:this.extensionId,responseId:$s(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(t)}`),this.messageChannel.port1.postMessage(t),new Promise((e,n)=>{this.resolvers.set(t.responseId,{resolve:e,reject:n})})}static async createProvider(e,t,n){e.trace("NativeMessageHandler - createProvider called.");try{const r=new $l(e,t,n,we);return await r.sendHandshakeRequest(),r}catch(r){const i=new $l(e,t,n);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:be,extensionId:this.extensionId,responseId:$s(),body:{method:ke}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=e=>{this.onChannelMessage(e)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((t,n)=>{this.handshakeResolvers.set(e.responseId,{resolve:t,reject:n}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),n(Ts(ms)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const t=e.data;if(t.channel&&t.channel===be&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===ke){const e=this.handshakeResolvers.get(t.responseId);if(!e)return void this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${t.responseId}`);this.logger.verbose(t.extensionId?`Extension with id: ${t.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),e.reject(Ts(fs))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const t=e.data,n=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{const e=t.body.method;if(e===Se){if(!n)return;const e=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(e)}`),"Success"!==e.status)n.reject(Fl(e.code,e.description,e.ext));else{if(!e.result)throw Mt(yt,"Event does not contain result.");e.result.code&&e.result.description?n.reject(Fl(e.result.code,e.result.description,e.result.ext)):n.resolve(e.result)}this.resolvers.delete(t.responseId)}else if(e===Le){if(!r)return void this.logger.trace(`NativeMessageHandler.onCh
2annelMessage - resolver can't be found for request ${t.responseId}`);clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(t){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${t}`),this.logger.errorPii(`Unable to parse ${e}`),n?n.reject(t):r&&r.reject(t)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isPlatformBrokerAvailable(e,t,n,r){if(t.trace("isPlatformBrokerAvailable called"),!e.system.allowPlatformBroker)return t.trace("isPlatformBrokerAvailable: allowPlatformBroker is not enabled, returning false"),!1;if(!n)return t.trace("isPlatformBrokerAvailable: Platform extension provider is not initialized, returning false"),!1;if(r)switch(r){case z.BEARER:case z.POP:return t.trace("isPlatformBrokerAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isPlatformBrokerAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}class Gl{constructor(e,t,n,r,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=i}async handleCodeResponse(e,t){let n;this.performanceClient.addQueueMeasurement(Ri,t.correlationId);try{n=this.authModule.handleFragmentResponse(e,t.state)}catch(e){throw e instanceof ol&&e.subError===Ha?Ts(Ha):e}return xo(this.handleCodeResponseFromServer.bind(this),Ni,this.logger,this.performanceClient,t.correlationId)(n,t)}async handleCodeResponseFromServer(e,t,n=!0){if(this.performanceClient.addQueueMeasurement(Ni,t.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await xo(this.authModule.updateAuthority.bind(this.authModule),ji,this.logger,this.performanceClient,t.correlationId)(e.cloud_instance_host_name,t.correlationId),n&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const e=this.createCcsCredentials(t);e&&(this.authCodeRequest.ccsCredential=e)}return await xo(this.authModule.acquireToken.bind(this.authModule),Pi,this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:$o}:e.loginHint?{credential:e.loginHint,type:Go}:null}}function Vl(e,t,n){const r=kr(e);if(!r)throw Mr(e)?(n.error(`A ${t} is present in the iframe but it does not contain known properties. It's likely that the ${t} has been replaced by code running on the redirectUri page.`),n.errorPii(`The ${t} detected is: ${e}`),Ts(Oa)):(n.error(`The request has returned to the redirectUri but a ${t} is not present. It's likely that the ${t} has been removed or the page has been redirected by code running on the redirectUri page.`),Ts(Ea));return r}class Jl extends jl{constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r,i,a,s,l,c),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=o}acquireToken(e){try{const t={popupName:this.generatePopupName(e.scopes||u,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),t.popup=this.openSizedPopup("about:blank",t),this.acquireTokenPopupAsync(e,t))}catch(e){return Promise.reject(e)}}logout(e){try{this.logger.verbose("logoutPopup called");const t=this.initializeLogoutRequest(e),n={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:e?.popupWindowAttributes||{},popupWindowParent:e?.popupWindowParent??window},r=e&&e.authority,i=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,r,i)):(this.logger.verbose("asyncPopup set to false, opening popup"),n.popup=this.openSizedPopup("about:blank",n),this.logoutPopupAsync(t,n,r,i))}catch(e){return Promise.reject(e)}}async acquireTokenPopupAsync(e,t){this.logger.verbose("acquireTokenPopupAsync called");const n=this.initializeServerTelemetryManager($e),r=await xo(this.initializeAuthorizationRequest.bind(this),xi,this.logger,this.performanceClient,this.correlationId)(e,et.Popup);_o(r.authority);try{const i=await xo(this.initializeAuthorizationCodeRequest.bind(this),Oi,this.logger,this.performanceClient,this.correlationId)(r),a=await xo(this.createAuthCodeClient.bind(this),Yi,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),s=$l.isPlatformBrokerAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let o;s&&(o=this.performanceClient.startMeasurement(oi,e.correlationId));const l=await a.getAuthCodeUrl({...r,platformBroker:s}
2),c=new Gl(a,this.browserStorage,i,this.logger,this.performanceClient),u=this.initiateAuthRequest(l,t);this.eventHandler.emitEvent(al.POPUP_OPENED,et.Popup,{popupWindow:u},null);const d=await this.monitorPopupForHash(u,t.popupWindowParent),h=Eo(Vl,zi,this.logger,this.performanceClient,this.correlationId)(d,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(ll.removeThrottle(this.browserStorage,this.config.auth.clientId,i),h.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),o&&o.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Ts(_s);const e=new Kl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,$e,this.performanceClient,this.nativeMessageHandler,h.accountId,this.nativeStorage,r.correlationId),{userRequestState:t}=Ko.parseRequestState(this.browserCrypto,r.state);return await e.acquireToken({...r,state:t,prompt:void 0})}return await c.handleCodeResponse(h,r)}catch(e){throw t.popup?.close(),e instanceof wt&&(e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e)),e}}async logoutPopupAsync(e,t,n,r){this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(al.LOGOUT_START,et.Popup,e);const i=this.initializeServerTelemetryManager(Xe);try{await this.clearCacheOnLogout(e.account);const a=await xo(this.createAuthCodeClient.bind(this),Yi,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:i,requestAuthority:n,account:e.account||void 0});try{a.authority.endSessionEndpoint}catch{if(e.account?.homeAccountId&&e.postLogoutRedirectUri&&a.authority.protocolMode===pt){if(this.browserStorage.removeAccount(e.account?.homeAccountId),this.eventHandler.emitEvent(al.LOGOUT_SUCCESS,et.Popup,e),r){const e={apiId:Xe,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},t=Lr.getAbsoluteUrl(r,lo());await this.navigationClient.navigateInternal(t,e)}return void t.popup?.close()}}const s=a.getLogoutUri(e);this.eventHandler.emitEvent(al.LOGOUT_SUCCESS,et.Popup,e);const o=this.openPopup(s,t);if(this.eventHandler.emitEvent(al.POPUP_OPENED,et.Popup,{popupWindow:o},null),await this.monitorPopupForHash(o,t.popupWindowParent).catch(()=>{}),r){const e={apiId:Xe,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},t=Lr.getAbsoluteUrl(r,lo());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${t}`),await this.navigationClient.navigateInternal(t,e)}else this.logger.verbose("No main window navigation requested")}catch(e){throw t.popup?.close(),e instanceof wt&&(e.setCorrelationId(this.correlationId),i.cacheFailedRequest(e)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(al.LOGOUT_FAILURE,et.Popup,null,e),this.eventHandler.emitEvent(al.LOGOUT_END,et.Popup),e}this.eventHandler.emitEvent(al.LOGOUT_END,et.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),Ts(Ya)}monitorPopupForHash(e,t){return new Promise((t,n)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const r=setInterval(()=>{if(e.closed)return this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(r),void n(Ts(Ha));let i="";try{i=e.location.href}catch(e){}if(!i||"about:blank"===i)return;clearInterval(r);let a="";const s=this.config.auth.OIDCOptions.serverResponseType;e&&(a=s===S.QUERY?e.location.search:e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),t(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,t)})}openPopup(e,t){try{let n;if(t.popup?(n=t.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),n.location.assign(e)):void 0===t.popup&&(this.logger.verbosePii(`Opening popup window to: ${e}`),n=this.openSizedPopup(e,t)),!n)throw Ts(Pa);return n.focus&&n.focus(),this.currentWindow=n,t.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),n}catch(e){throw this.logger.error("error opening popup "+e.message),this.browserStorage.setInteractionInProgress(!1),Ts(ja)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:n,popupWindowParent:r}){const i=r.screenLeft?r.screenLeft:r.screenX,a=r.screenTop?r.screenTop:r.screenY,s=r.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=r.innerHe
2ight||document.documentElement.clientHeight||document.body.clientHeight;let l=n.popupSize?.width,c=n.popupSize?.height,u=n.popupPosition?.top,d=n.popupPosition?.left;return(!l||l<0||l>s)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),l=_e),(!c||c<0||c>o)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),c=pe),(!u||u<0||u>o)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),u=Math.max(0,o/2-pe/2+a)),(!d||d<0||d>s)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),d=Math.max(0,s/2-_e/2+i)),r.open(e,t,`width=${l}, height=${c}, top=${u}, left=${d}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(et.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,t){e.close(),t.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,t){return`${ge}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${ge}.${this.config.auth.clientId}.${t}.${this.correlationId}`}}class Ql{constructor(e,t,n,r,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=i}async initiateAuthRequest(e,t){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ne,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(qe,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const n={apiId:Ke,timeout:t.redirectTimeout,noHistory:!1};if("function"==typeof t.onRedirectNavigate){this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback");return!1!==t.onRedirectNavigate(e)?(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),void await t.navigationClient.navigateExternal(e,n)):void this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation")}return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),void await t.navigationClient.navigateExternal(e,n)}throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Ts(Ya)}async handleCodeResponse(e,t){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const n=this.browserStorage.generateStateKey(t),r=this.browserStorage.getTemporaryCache(n);if(!r)throw pn(Ot,"Cached State");let i;try{i=this.authModule.handleFragmentResponse(e,r)}catch(e){throw e instanceof ol&&e.subError===Ha?Ts(Ha):e}const a=this.browserStorage.generateNonceKey(r),s=this.browserStorage.getTemporaryCache(a);if(this.authCodeRequest.code=i.code,i.cloud_instance_host_name&&await xo(this.authModule.updateAuthority.bind(this.authModule),ji,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(i.cloud_instance_host_name,this.authCodeRequest.correlationId),i.nonce=s||void 0,i.state=r,i.client_info)this.authCodeRequest.clientInfo=i.client_info;else{const e=this.checkCcsCredentials();e&&(this.authCodeRequest.ccsCredential=e)}const o=await this.authModule.acquireToken(this.authCodeRequest,i);return this.browserStorage.cleanRequestByState(t),o}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(He,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache 
2credential could not be parsed: ${e}`)}return null}}class Zl extends jl{constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r,i,a,s,l,c),this.nativeStorage=o}async acquireToken(e){const t=await xo(this.initializeAuthorizationRequest.bind(this),xi,this.logger,this.performanceClient,this.correlationId)(e,et.Redirect);this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null);const n=this.initializeServerTelemetryManager(Ke),r=e=>{e.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(t.state),this.eventHandler.emitEvent(al.RESTORE_FROM_BFCACHE,et.Redirect))};try{const i=await xo(this.initializeAuthorizationCodeRequest.bind(this),Oi,this.logger,this.performanceClient,this.correlationId)(t),a=await xo(this.createAuthCodeClient.bind(this),Yi,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),s=new Ql(a,this.browserStorage,i,this.logger,this.performanceClient),o=await a.getAuthCodeUrl({...t,platformBroker:$l.isPlatformBrokerAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),l=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${l}`),window.addEventListener("pageshow",r),await s.initiateAuthRequest(o,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:e.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(e){throw e instanceof wt&&(e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e)),window.removeEventListener("pageshow",r),this.browserStorage.cleanRequestByState(t.state),e}}async handleRedirectPromise(e="",t){const n=this.initializeServerTelemetryManager(Ve);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[r,i]=this.getRedirectResponse(e||"");if(!r)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(et.Redirect),"back_forward"!==function(){if("undefined"==typeof window||void 0===window.performance||"function"!=typeof window.performance.getEntriesByType)return;const e=window.performance.getEntriesByType("navigation"),t=e.length?e[0]:void 0;return t?.type}()?t.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const s=this.browserStorage.getTemporaryCache(Ne,!0)||a.EMPTY_STRING,o=Lr.removeHashFromUrl(s);if(o===Lr.removeHashFromUrl(window.location.href)&&this.config.auth.navigateToLoginRequestUrl){this.logger.verbose("Current page is loginRequestUrl, handling response"),s.indexOf("#")>-1&&function(e){const t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""}(s);return await this.handleResponse(r,n)}if(!this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(r,n);if(!oo()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Re,i,!0);const e={apiId:Ve,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let t=!0;if(s&&"null"!==s)this.logger.verbose(`Navigating to loginRequestUrl: ${s}`),t=await this.navigationClient.navigateInternal(s,e);else{const n=function(){const e=new Lr(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}();this.browserStorage.setTemporaryCache(Ne,n,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),t=await this.navigationClient.navigateInternal(n,e)}if(!t)return await this.handleResponse(r,n)}return null}catch(e){throw e instanceof wt&&(e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e)),this.browserStorage.cleanRequestByInteractionType(et.Redirect),e}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let t=e;t||(t=this.config.auth.OIDCOptions.serverResponseType===S.QUERY?window.location.search:window.location.hash);let n=kr(t);if(n){try{!function(e,t,n){if(!e.state)throw Ts(xa);const r=nl(t,e.state);if(!r)throw Ts(Ia);if(r.interactionType!==n)throw Ts(Na)}(n,this.browserCrypto,et.Redirect)}catch(e){return e instanceof wt&&this.logger.error(`Interaction type validation failed due to ${e.errorCode}: ${e.errorMessage}`),[null,""]}return(r=window).location.hash="","function"==typeof r.history.replaceState&&r.history.replaceState(null,"",`${r.location.origin}${r.location.pathname}${r.location.search}`),this.logger.verbose("Hash contains known properties, returning response hash"),[n,t]}var r;const i=this.browserStorage.getTemporaryCache(Re,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Re)),i&&(n=kr(i),n)?(this.logger.verbose("Hash does not contain known properties, returning c
2ached hash"),[n,i]):[null,""]}async handleResponse(e,t){const n=e.state;if(!n)throw Ts(xa);const r=this.browserStorage.getCachedRequest(n);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ts(_s);const t=new Kl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,$e,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,r.correlationId),{userRequestState:i}=Ko.parseRequestState(this.browserCrypto,n);return t.acquireToken({...r,state:i,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(n)})}const i=this.browserStorage.getCachedAuthority(n);if(!i)throw Ts(Qa);const a=await xo(this.createAuthCodeClient.bind(this),Yi,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:i});ll.removeThrottle(this.browserStorage,this.config.auth.clientId,r);return new Ql(a,this.browserStorage,r,this.logger,this.performanceClient).handleCodeResponse(e,n)}async logout(e){this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(Ze);try{this.eventHandler.emitEvent(al.LOGOUT_START,et.Redirect,e),await this.clearCacheOnLogout(t.account);const r={apiId:Ze,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await xo(this.createAuthCodeClient.bind(this),Yi,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:e&&e.authority,requestExtraQueryParameters:e?.extraQueryParameters,account:e&&e.account||void 0});if(i.authority.protocolMode===pt)try{i.authority.endSessionEndpoint}catch{if(t.account?.homeAccountId)return this.browserStorage.removeAccount(t.account?.homeAccountId),void this.eventHandler.emitEvent(al.LOGOUT_SUCCESS,et.Redirect,t)}const a=i.getLogoutUri(t);if(this.eventHandler.emitEvent(al.LOGOUT_SUCCESS,et.Redirect,t),!e||"function"!=typeof e.onRedirectNavigate)return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),void await this.navigationClient.navigateExternal(a,r);if(!1!==e.onRedirectNavigate(a))return this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),void await this.navigationClient.navigateExternal(a,r);this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation")}catch(e){throw e instanceof wt&&(e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e)),this.eventHandler.emitEvent(al.LOGOUT_FAILURE,et.Redirect,null,e),this.eventHandler.emitEvent(al.LOGOUT_END,et.Redirect),e}this.eventHandler.emitEvent(al.LOGOUT_END,et.Redirect)}getRedirectStartPage(e){const t=e||window.location.href;return Lr.getAbsoluteUrl(t,lo())}}async function Xl(e,t,n,r,i){if(t.addQueueMeasurement(Si,r),!e)throw n.info("Navigate url is empty"),Ts(Ya);return i?xo(tc,Ai,n,t,r)(e,i,t,r):Eo(nc,Di,n,t,r)(e)}async function ec(e,t,n,r,i,a,s){return r.addQueueMeasurement(Ci,a),new Promise((r,a)=>{t<po&&i.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${t}ms) than the default (10000ms). This may result in timeouts.`);const o=window.setTimeout(()=>{window.clearInterval(l),a(Ts(Ua))},t),l=window.setInterval(()=>{let t="";const n=e.contentWindow;try{t=n?n.location.href:""}catch(e){}if(!t||"about:blank"===t)return;let i="";n&&(i=s===S.QUERY?n.location.search:n.location.hash),window.clearTimeout(o),window.clearInterval(l),r(i)},n)}).finally(()=>{Eo(ic,sa,i,r,a)(e)})}function tc(e,t,n,r){return n.addQueueMeasurement(Ai,r),new Promise((n,r)=>{const i=rc();window.setTimeout(()=>{i?(i.src=e,n(i)):r("Unable to load iframe")},t)})}function nc(e){const t=rc();return t.src=e,t}function rc(){const e=document.createElement("iframe");return e.className="msalSilentIframe",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(e),e}function ic(e){document.body===e.parentNode&&document.body.removeChild(e)}class ac extends jl{constructor(e,t,n,r,i,a,s,o,l,c,u){super(e,t,n,r,i,a,o,c,u),this.apiId=s,this.nativeStorage=l}async acquireToken(e){this.performanceClient.addQueueMeasurement(ni,e.correlationId),e.loginHint||e.sid||e.account&&e.account.username||this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const t={...e};t.prompt?t.prompt!==L.NONE&&t.prompt!==L.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${t.prompt} with ${L.NONE}`),t.prompt=L.NONE):t.prompt=L.NONE;const n=await xo(this.initializeAuthorizationRequest.bind(this),xi,this.logger,this.performanceClient,e.correlationId)(t,et.Silent);_o(n.authority);const r=this.initializeServerTelemetryManager(this.apiId);let i;try{return i=await xo(this.createAuthCodeClient.bind(this),Yi,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),await xo(this.silentTokenHelper.bind(this),Ti,this.logger,this.performanceClient,e.correlationId)(i,n)}catch(n){if(n instanceof wt&&(n.setCorrelationId(this.correlationId),r.cacheFailedRequest(n)),!(i&&n instanceof wt&&n.errorCode===fe))throw n;this.performanceClient.addFields({retryError:n.errorCode},this.correlationId);const a=await xo(this.initializeAuthorizationRequest.bind(this),xi,this.logger,this.performanceClient,e.correlationId)(t,et.Silent);return await xo(this.silentTokenHelper.bind(this),Ti,this.logger,this.performanceClient,this.correlationId)(i,a)}}logout(){return Promise.reject(Ts(Ka))}async silentTokenHelper(e,t){const n=t.correlationId;this.performanceClient.addQueueMeasurement(Ti,n);const r=await xo(this.initializeAuthorizationCodeRequest.bind(this),Oi,this.logger,this.performanceClient,n)(t),i=await xo(e.getAuthCodeUrl.bind(e),Ii,this.logger,this.performanceClient,n)({...t,platformBroker:$l.isPlatformBrokerAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}),a=new Gl(e,this.browserStorage,r,this.logger,this.performanceClient),s=await xo(Xl,Si,this.logger,this.performanceClient,n)(i,this.performanceClient,this.logger,n,this.config.system.navigateFrameWait),o=this.config.auth.OIDCOptions.serverResponseType,l=await xo(ec,Ci,this.logger,this.performanceClient,n)(s,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,n,o),c=Eo(Vl,zi,this.logger,this.performanceClient,this.correlationId)(l,o,this.logger);
2if(c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ts(_s);const e=new Kl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,n),{userRequestState:r}=Ko.parseRequestState(this.browserCrypto,t.state);return xo(e.acquireToken.bind(e),li,this.logger,this.performanceClient,n)({...t,state:r,prompt:t.prompt||L.NONE})}return xo(a.handleCodeResponse.bind(a),Ri,this.logger,this.performanceClient,n)(c,t)}}class sc extends jl{async acquireToken(e){this.performanceClient.addQueueMeasurement(ii,e.correlationId);const t=await xo(Nl,wi,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),n={...e,...t};e.redirectUri&&(n.redirectUri=this.getRedirectUri(e.redirectUri));const r=this.initializeServerTelemetryManager(Qe),i=await this.createRefreshTokenClient({serverTelemetryManager:r,authorityUrl:n.authority,azureCloudOptions:n.azureCloudOptions,account:n.account});return xo(i.acquireTokenByRefreshToken.bind(i),_i,this.logger,this.performanceClient,e.correlationId)(n).catch(e=>{throw e.setCorrelationId(this.correlationId),r.cacheFailedRequest(e),e})}logout(){return Promise.reject(Ts(Ka))}async createRefreshTokenClient(e){const t=await xo(this.getClientConfiguration.bind(this),Ei,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new Bl(t,this.performanceClient)}}class oc{constructor(e,t,n,r){this.isBrowserEnvironment="undefined"!=typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}async loadExternalTokens(e,t,n){if(!this.isBrowserEnvironment)throw Ts(es);const r=e.correlationId||$s(),i=t.id_token?bn(t.id_token,Os):void 0,a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=e.authority?new Io(Io.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,a,this.logger,e.correlationId||$s()):void 0,o=await this.loadAccount(e,n.clientInfo||t.client_info||"",r,i,s),l=await this.loadIdToken(t,o.homeAccountId,o.environment,o.realm,r),c=await this.loadAccessToken(e,t,o.homeAccountId,o.environment,o.realm,n,r),u=await this.loadRefreshToken(t,o.homeAccountId,o.environment,r);return this.generateAuthenticationResult(e,{account:o,idToken:l,accessToken:c,refreshToken:u},i,s)}async loadAccount(e,t,n,r,i){if(this.logger.verbose("TokenCache - loading account"),e.account){const t=wr.createFromAccountInfo(e.account);return await this.storage.setAccount(t,n),t}if(!i||!t&&!r)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),Ts(ss);const a=wr.generateHomeAccountId(t,i.authorityType,this.logger,this.cryptoObj,r),s=r?.tid,o=Sl(this.storage,i,a,Os,r,t,i.hostnameAndPort,s,void 0,void 0,this.logger);return await this.storage.setAccount(o,n),o}async loadIdToken(e,t,n,r,i){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const a=Tn(t,n,e.id_token,this.config.auth.clientId,r);return await this.storage.setIdTokenCredential(a,i),a}async loadAccessToken(e,t,n,r,i,a,s){if(!t.access_token)return this.logger.verbose("TokenCache - no access token found in response"),null;if(!t.expires_in)return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;if(!(t.scope||e.scopes&&e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null;this.logger.verbose("TokenCache - loading access token");const o=t.scope?ur.fromString(t.scope):new ur(e.scopes),l=a.expiresOn||t.expires_in+(new Date).getTime()/1e3,c=a.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+(new Date).getTime()/1e3,u=Sn(n,r,t.access_token,this.config.auth.clientId,i,o.printScopes(),l,c,Os);return await this.storage.setAccessTokenCredential(u,s),u}async loadRefreshToken(e,t,n,r){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const i=Cn(t,n,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return await this.storage.setRefreshTokenCredential(i,r),i}generateAuthenticationResult(e,t,n,r){let i,a="",s=[],o=null;t?.accessToken&&(a=t.accessToken.secret,s=ur.fromString(t.accessToken.target).asArray(),o=new Date(1e3*Number(t.accessToken.expiresOn)),i=new Date(1e3*Number(t.accessToken.extendedExpiresOn)));const l=t.account;return{authority:r?r.canonicalAuthority:"",uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:s,account:l.getAccountInfo(),idToken:t.idToken?.secret||"",idTokenClaims:n||{},accessToken:a,fromCache:!0,expiresOn:o,correlationId:e.correlationId||"",requestId:"",extExpiresOn:i,familyId:t.refreshToken?.familyId||"",tokenType:t?.accessToken?.tokenType||"",state:e.state||"",cloudGraphHostName:l.cloudGraphHostName||"",msGraphHost:l.msGraphHost||"",fromNativeBroker:!1}}}class lc extends Al{constructor(e){super(e),this.includeRedirectUri=!1}}class cc extends jl{constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r,i,a,o,l,c),this.apiId=s}async acquireToken(e){if(!e.code)throw Ts(ls);const t=await xo(this.initializeAuthorizationRequest.bind(this),xi,this.logger,this.performanceClient,e.correlationId)(e,et.Silent),n=this.initializeServerTelemetryManager(this.apiId);try{const r={...t,code:e.code},i=await xo(this.getClientConfiguration.bind(this),Ei,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),a=new lc(i);this.logger.verbose("Auth code client created");
2const s=new Gl(a,this.browserStorage,r,this.logger,this.performanceClient);return await xo(s.handleCodeResponseFromServer.bind(s),Ni,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t,!1)}catch(e){throw e instanceof wt&&(e.setCorrelationId(this.correlationId),n.cacheFailedRequest(e)),e}}logout(){return Promise.reject(Ts(Ka))}}function uc(e){const t=e?.idTokenClaims;return t?.tfp||t?.acr?"B2C":t?.tid?"9188040d-6c67-4c5b-b112-36a304b66dad"===t?.tid?"MSA":"AAD":void 0}function dc(e,t){try{mo(e)}catch(e){throw t.end({success:!1},e),e}}class hc{constructor(e){var t,n,r;this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Do(this.logger,this.performanceClient):gn,this.eventHandler=new sl(this.logger),this.browserStorage=this.isBrowserEnvironment?new rl(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,function(e){const t=e.cloudDiscoveryMetadata;let n;if(t)try{n=JSON.parse(t)}catch(e){throw lr(Jn)}return{canonicalAuthority:e.authority?No(e.authority):void 0,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:n}}(this.config.auth)):(t=this.config.auth.clientId,n=this.logger,r=this.performanceClient,new rl(t,{cacheLocation:De,temporaryCacheLocation:De,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},gn,n,r));const i={cacheLocation:De,temporaryCacheLocation:De,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new rl(this.config.auth.clientId,i,this.browserCrypto,this.logger,this.performanceClient),this.tokenCache=new oc(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(e,t){const n=new hc(e);return await n.initialize(t),n}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e){if(this.logger.trace("initialize called"),this.initialized)return void this.logger.info("initialize has already been called, exiting early.");if(!this.isBrowserEnvironment)return this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,void this.eventHandler.emitEvent(al.INITIALIZE_END);const t=e?.correlationId||this.getRequestCorrelationId(),n=this.config.system.allowPlatformBroker,r=this.performanceClient.startMeasurement(ki,t);if(this.eventHandler.emitEvent(al.INITIALIZE_START),await xo(this.browserStorage.initialize.bind(this.browserStorage),Li,this.logger,this.performanceClient,t)(t),n)try{this.nativeExtensionProvider=await $l.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(e){this.logger.verbose(e)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await xo(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),oa,this.logger,this.performanceClient,t)(this.performanceClient,t)),this.initialized=!0,this.eventHandler.emitEvent(al.INITIALIZE_END),r.end({allowPlatformBroker:n,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),ho(this.initialized),this.isBrowserEnvironment){const t=e||"";let n=this.redirectResponse.get(t);return void 0===n?(n=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,n),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){const t=this.getAllAccounts(),n=this.browserStorage.getCachedNativeRequest(),r=n&&$l.isPlatformBrokerAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,i=r?n?.correlationId:this.browserStorage.getTemporaryCache(qe,!0)||"",a=this.performanceClient.startMeasurement(Zr,i);let s;if(this.eventHandler.emitEvent(al.HANDLE_REDIRECT_START,et.Redirect),r&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const e=new Kl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ve,this.performanceClient,this.nativeExtensionProvider,n.accountId,this.nativeInternalStorage,n.correlationId);s=xo(e.handleRedirectPromise.bind(e),ia,this.logger,this.performanceClient,a.event.correlationId)(this.performanceClient,a.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const t=this.createRedirectClient(i);s=xo(t.handleRedirectPromise.bind(t),ra,this.logger,this.performanceClient,a.event.correlationId)(e,a)}return s.then(e=>{if(e){t.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(al.LOGIN_SUCCESS,et.Redirect,e),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_SUCCESS,et.Redirect,e),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),a.end({success:!0,accountType:uc(e.account)})}else a.event.errorCode?a.end({success:!1}):a.discard();return this.eventHandler.emitEvent(al.HANDLE_REDIRECT_END,et.Redirect),e}).catch(e=>{const n=e;throw t.length>0?this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_FAILURE,et.Redirect,null,n):this.eventHandler.emitEvent(al.LOGIN_FAILURE,et.Redirect,null,n),this.eventHandler.emitEvent(al.HANDLE_REDIRECT_END,et.Redirect),a.end({success:!1},n),e})}async acquireTokenRedirect(e){const t=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",t);const n=this.performanceClient.startMeasurement(Qr,t);n.add({accountType:uc(e.account),scenarioId:e.scenarioId});const r=e.onRedirectNavigate;if(r)e.onRedirectNavigate=e=>{const t="function"==typeof r?r(e):void 0;return!1!==t?n.end({success:!0}):n.discard(),t};else{const e=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=t=>{const r="function"==typeof e?e(t):void 0;return!1!==r?n.end({success:!0}):n.discard(),r}}const i=this.getAllAccounts().length>0;try{let r;if(fo(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),i?this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_START,et.Redirect,e):this.eventHandler.emitEvent(al.LOGIN_START,et.Redirect,e),this.nativeExtensionProvider&&this.canUsePlatformBroker(e)){r=new Kl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ke,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,t).acquireTokenRedirect(e,n).catch(n=>{if(n instanceof ql&&Ul(n)){this.nativeExtensionProvider=void 0;return this.createRedirectClient(t).acquireToken(e)}if(n instanceof Bo){this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");return this.createRedirectClient(t).acquireToken(e)}throw this.browserStorage.setInteractionInProgress(!1),n})}else{r=this.createRedirectClient(t).acquireToken(e)}return await r}catch(e){throw n.end({success:!1},e),i?this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_FAILURE,et.Redirect,null,e):this.eventHandler.emitEvent(al.LOGIN_FAILURE,et.Redirect,null,e),e}}acquireTokenPopup(e){const t=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(Jr,t);n.add({scenarioId:e.scenarioId,accountType:uc(e.account)});try{this.logger.verbose("acquireTokenPopup called",t),dc(this.initialized,n),this.browserStorage.setInteractionInProgress(!0)}catch(e){return Promise.reject(e)}const r=this.getAllAccounts();let i;if(r.length>0?this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_START,et.Popup,e):this.eventHandler.emitEvent(al.LOGIN_START,et.Popup,e),this.canUsePlatformBroker(e))i=this.acquireTokenNative({...e,correlationId:t},$e).then(e=>(this.browserStorage.setInteractionInProgress(!1),n.end({success:!0,isNativeBroker:!0,accountType:uc(e.account)}),e)).catch(n=>{if(n instanceof ql&&Ul(n)){this.nativeExtensionProvider=void 0;return this.createPopupClient(t).acquireToken(e)}if(n instanceof Bo){this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");return this.createPopupClient(t).acquireToken(e)}throw this.browserStorage.setInteractionInProgress(!1),n});else{i=this.createPopupClient(t).acquireToken(e)}return i.then(e=>(r.length<this.getAllAccounts().length?this.eventHandler.emitEvent(al.LOGIN_SUCCESS,et.Popup,e):this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_SUCCESS,et.Popup,e),n.end({success:!0,accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length,accountType:uc(e.account)}),e)).catch(e=>(r.length>0?this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_FAILURE,et.Popup,null,e):this.eventHandler.emitEvent(al.LOGIN_FAILURE,et.Popup,null,e),n.end({success:!1},e),Promise.reject(e)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){const t=this.getRequestCorrelationId(e),n={...e,prompt:e.prompt,correlationId:t};let r;if(this.ssoSilentMeasurement=this.performanceClient.startMeasurement(ai,t),this.ssoSilentMeasurement?.add({scenarioId:e.scenarioId,accountType:uc(e.account)}),dc(this.initialized,this.ssoSilentMeasurement),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(al.SSO_SILENT_START,et.Silent,n),this.canUsePlatformBroker(n))r=this.acquireTokenNative(n,Ge).catch(e=>{if(e instanceof ql&&Ul(e)){this.nativeExtensionProvider=void 0;return this.createSilentIframeClient(n.correlationId).acquireToken(n)}throw e});else{r=this.createSilentIframeClient(n.correlationId).acquireToken(n)}return r.then(e=>(this.eventHandler.emitEvent(al.SSO_SILENT_SUCCESS,et.Silent,e),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:e.fromNativeBroker,accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length,accountType:uc(e.account)}),e)).catch(e=>{throw this.eventHandler.emitEvent(al.SSO_SILENT_FAILURE,et.Silent,null,e),this.ssoSilentMeasurement?.end({success:!1},e),e}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const t=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",t);const n=this.performanceClient.startMeasurement(Kr,t);dc(this.initialized,n),this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_BY_CODE_START,et.Silent,e),n.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw Ts(us);if(e.code){const r=e.code;let i=this.hybridAuthCodeResponses.get(r);return i?(this.logger.verbose("Existing acquireTokenByCode request found",t),n.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync({...e,correlationId:t}).then(e=>(this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_BY_CODE_SUCCESS,et.Silent,e),this.hybridAuthCodeResponses.delete(r),n.end({success:!0,isNativeBroker:e.fromNativeBroker,accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length,accountType:uc(e.account)}),e)).catch(e=>{throw this.hybridAuthCodeResponses.delete(r),this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_BY_CODE_FAILURE,et.Silent,null,e),n.end({success:!1},e),e}),this.hybridAuthCodeResponses.set(r,i)),await i}
2if(e.nativeAccountId){if(this.canUsePlatformBroker(e,e.nativeAccountId)){const r=await this.acquireTokenNative({...e,correlationId:t},Je,e.nativeAccountId).catch(e=>{throw e instanceof ql&&Ul(e)&&(this.nativeExtensionProvider=void 0),e});return n.end({accountType:uc(r.account),success:!0}),r}throw Ts(hs)}throw Ts(cs)}catch(e){throw this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_BY_CODE_FAILURE,et.Silent,null,e),n.end({success:!1},e),e}}async acquireTokenByCodeAsync(e){this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(na,e.correlationId),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement);const t=this.createSilentAuthCodeClient(e.correlationId);return await t.acquireToken(e).then(e=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker}),e)).catch(e=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},e),e}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,t){switch(this.performanceClient.addQueueMeasurement(gi,e.correlationId),t){case st:case ot:case lt:const t=this.createSilentCacheClient(e.correlationId);return xo(t.acquireToken.bind(t),ti,this.logger,this.performanceClient,e.correlationId)(e);default:throw pn(tn)}}async acquireTokenByRefreshToken(e,t){switch(this.performanceClient.addQueueMeasurement($r,e.correlationId),t){case st:case lt:case ct:case ut:const t=this.createSilentRefreshClient(e.correlationId);return xo(t.acquireToken.bind(t),ii,this.logger,this.performanceClient,e.correlationId)(e);default:throw pn(tn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(bi,e.correlationId);const t=this.createSilentIframeClient(e.correlationId);return xo(t.acquireToken.bind(t),ni,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const t=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),this.logoutRedirect({correlationId:t,...e})}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);fo(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0);return this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);mo(this.initialized),this.browserStorage.setInteractionInProgress(!0);return this.createPopupClient(t).logout(e)}catch(e){return Promise.reject(e)}}async clearCache(e){if(!this.isBrowserEnvironment)return void this.logger.info("in non-browser environment, returning early.");const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){return function(e,t,n,r){return e.verbose("getAllAccounts called"),n?t.getAllAccounts(r):[]}(this.logger,this.browserStorage,this.isBrowserEnvironment,e)}getAccount(e){return function(e,t,n){if(t.trace("getAccount called"),0===Object.keys(e).length)return t.warning("getAccount: No accountFilter provided"),null;const r=n.getAccountInfoFilteredBy(e);return r?(t.verbose("getAccount: Account matching provided filter found, returning"),r):(t.verbose("getAccount: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage)}getAccountByUsername(e){return function(e,t,n){if(t.trace("getAccountByUsername called"),!e)return t.warning("getAccountByUsername: No username provided"),null;const r=n.getAccountInfoFilteredBy({username:e});return r?(t.verbose("getAccountByUsername: Account matching username found, returning"),t.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${e}`),r):(t.verbose("getAccountByUsername: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage)}getAccountByHomeId(e){return function(e,t,n){if(t.trace("getAccountByHomeId called"),!e)return t.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=n.getAccountInfoFilteredBy({homeAccountId:e});return r?(t.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),t.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${e}`),r):(t.verbose("getAccountByHomeId: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage)}getAccountByLocalId(e){return function(e,t,n){if(t.trace("getAccountByLocalId called"),!e)return t.warning("getAccountByLocalId: No localAccountId provided"),null;const r=n.getAccountInfoFilteredBy({localAccountId:e});return r?(t.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),t.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${e}`),r):(t.verbose("getAccountByLocalId: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage)}setActiveAccount(e){!function(e,t){t.setActiveAccount(e)}(e,this.browserStorage)}getActiveAccount(){return this.browserStorage.getActiveAccount()}async hydrateCache(e,t){this.logger.verbose("hydrateCache called");const n=wr.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return await this.browserStorage.setAccount(n,e.correlationId),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,t)):this.browserStorage.hydrateCache(e,t)}async acquireTokenNative(e,t,n){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Ts(_s);return new Kl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUsePlatformBroker(e,t){if(this.logger.trace("canUsePlatformBroker called"),!$l.isPlatformBrokerAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUsePlatformBroker: isPlatformBrokerAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case L.NONE:case L.CONSENT:case L.LOGIN:this.logger.trace("canUsePlatformBroker: prompt is compatible with platform broker flow");break;default:return this.logger.trace(`canUsePlatformBroker: prompt = ${e.prompt} is not compatible with platform broker flow, returning false`),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("canUsePlatformBroker: nativeAccountId is not available, returning false"),!1)}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return t&&t.nativeAccountId||""}createPopupClient(e){return new Jl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new Zl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new ac(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ge,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new zl(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new sc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new cc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Je,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return uo(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){"undefined"!=typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){"undefined"!=typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(e){try{e.key?.includes(y)&&this.eventHandler.emitEvent(al.ACTIVE_ACCOUNT_CHANGED);const t=e.newValue||e.oldValue;if(!t)return;const n=JSON.parse(t);if("object"!=typeof n||!wr.isAccountEntity(n))return;const r=Ir.toObject(new wr,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(al.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(al.ACCOUNT_REMOVED,void 0,r))}catch(e){return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?$s():a.EMPTY_STRING}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",t),this.acquireTokenRedirect({correlationId:t,...e||nt})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||nt})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(Gr,t);n.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),dc(this.initialized,n),this.logger.verbose("acquireTokenSilent called",t);const r=e.account||this.getActiveAccount();if(!r)throw Ts($a);n.add({accountType:uc(r)});const i={clientId:this.config.auth.clientId,authority:e.authority||a.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},s=JSON.stringify(i),o=this.activeSilentTokenRequests.get(s);if(void 0===o){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t);const i=xo(this.acquireTokenSilentAsync.bind(this),Vr,this.logger,this.performanceClient,t)({...e,correlationId:t},r).then(t=>(this.activeSilentTokenRequests.delete(s),n.end({success:!0,fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length}),t)).catch(e=>{throw this.activeSilentTokenRequests.delete(s),n.end({success:!1},e),e});return this.activeSilentTokenRequests.set(s,i),{...await i,state:e.state}}return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discard(),{...await o,state:e.state}}async acquireTokenSilentAsync(e,t){const n=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(Vr,e.correlationId),this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_START,et.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",n);const r=await xo(Rl,Mi,this.logger,this.performanceClient,e.correlationId)(e,t,this.config,this.performanceClient,this.logger),i=e.cacheLookupPolicy||st;return this.acquireTokenSilentNoIframe(r,i).catch(async e=>
2{const t=function(e,t){const n=!(e instanceof Bo&&e.subError!==Ho),r=e.errorCode===fe||e.errorCode===tn,i=n&&r||e.errorCode===Ro||e.errorCode===Po,a=ht.includes(t);return i&&a}(e,i);if(t){if(this.activeIframeRequest){if(i!==dt){const[t,n]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${n}`,r.correlationId);const a=this.performanceClient.startMeasurement(ri,r.correlationId);a.add({awaitIframeCorrelationId:n});const s=await t;if(a.end({success:s}),s)return this.logger.verbose(`Parallel iframe request with correlationId: ${n} succeeded. Retrying cache and/or RT redemption`,r.correlationId),this.acquireTokenSilentNoIframe(r,i);throw this.logger.info(`Iframe request with correlationId: ${n} failed. Interaction is required.`),e}return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",r.correlationId),xo(this.acquireTokenBySilentIframe.bind(this),bi,this.logger,this.performanceClient,r.correlationId)(r)}{let e;return this.activeIframeRequest=[new Promise(t=>{e=t}),r.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),xo(this.acquireTokenBySilentIframe.bind(this),bi,this.logger,this.performanceClient,r.correlationId)(r).then(t=>(e(!0),t)).catch(t=>{throw e(!1),t}).finally(()=>{this.activeIframeRequest=void 0})}}throw e}).then(t=>(this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_SUCCESS,et.Silent,t),e.correlationId&&this.performanceClient.addFields({fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker},e.correlationId),t)).catch(e=>{throw this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_FAILURE,et.Silent,null,e),e}).finally(()=>{document.removeEventListener("visibilitychange",n)})}async acquireTokenSilentNoIframe(e,t){return $l.isPlatformBrokerAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,Qe).catch(async e=>{if(e instanceof ql&&Ul(e))throw this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,pn(tn);throw e})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),xo(this.acquireTokenFromCache.bind(this),gi,this.logger,this.performanceClient,e.correlationId)(e,t).catch(n=>{if(t===ot)throw n;return this.eventHandler.emitEvent(al.ACQUIRE_TOKEN_NETWORK_START,et.Silent,e),xo(this.acquireTokenByRefreshToken.bind(this),$r,this.logger,this.performanceClient,e.correlationId)(e,t)}))}}class mc{static async createPublicClientApplication(e){const t=await async function(e,t){const n=new vo(e);return await n.initialize(),hc.createController(n,t)}(e);return new mc(e,t)}constructor(e,t){this.controller=t||new hc(new vo(e))}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}}var fc=window.navigator.userAgent,_c=fc.indexOf("MSIE "),pc=fc.indexOf("Trident/"),gc=fc.indexOf("Edge/"),yc=fc.indexOf("Firefox"),vc=_c>0||pc>0,bc=gc>0,wc=yc>0;function Mc(e){var t="https://".concat(e.domain,"/").concat(e.domain);return{authorities:{signUpSignIn:{authority:"".concat(t,"/B2C_1A_SIGNUP_SIGNIN")},signUp:{authority:"".concat(t,"/B2C_1A_SIGNUP")},changeSignInName:{authority:"".concat(t,"/B2C_1A_SIGNINNAMECHANGE")},changeName:{authority:"".concat(t,"/B2C_1A_NAMECHANGE")},passwordChange:{authority:"".concat(t,"/B2C_1A_PASSWORDCHANGE")},deleteAccount:{authority:"".concat(t,"/B2C_1A_DELETEACCOUNT")}},authorityDomain:e.domain}}var kc=Tc();function Lc(e){var t,n,r="undefined"!=typeof window&&window.location&&window.location.href?window.location.href:void 0,i=null!==(n=null!==(t=null!=e?e:r)&&void 0!==t?t:kc.myAceUrl)&&void 0!==n?n:"";return{authority:Mc(kc).authorities.signUpSignIn.authority,scopes:[kc.scopes],state:i}}function Tc(){var e=document.getElementById("authConfig");if(e){var t=e.textContent;if(t)return JSON.parse(t);throw new Error("Auth config is empty")}throw new Error("Auth config not found")}var Sc,Cc,Ac=new mc((Sc=Tc(),Cc=Mc(Sc),{auth:{clientId:Sc.clientId,authority:Cc.authorities.signUpSignIn.authority,knownAuthorities:[Cc.authorityDomain],redirectUri:Sc.redirectUrl,postLogoutRedirectUri:Sc.postLogoutRedirectUrl},cache:{cacheLocation:Ae,storeAuthStateInCookie:vc||bc||wc},system:{allowNativeBroker:!1,loggerOptions:{loggerCallback:function(e,t,n){if(!n)switch(e){case mt.Error:return void console.error(t);case mt.Info:case mt.Verbose:case mt.Warning:default:return}}}}}));Ac.initialize().then(function(){!Ac.getActiveAccount()&&Ac.getAllAccounts().length>0&&Ac.setActiveAccount(Ac.getAllAccounts()[0]),Ac.handleRedirectPromise().then(function(e){var t;e&&e.state&&e.state!==window.location.href&&(window.location.href=(null===(t=window.AppSelector)||void 0===t?void 0:t.addAppSelector(e.state))||e.state)}).catch(function(e){console.error("Redirect error",e)})});var Dc=n(4333);const Yc={instance:{initialize:()=>Promise.reject(so(no)),acquireTokenPopup:()=>Promise.reject(so(no)),acquireTokenRedirect:()=>Promise.reject(so(no)),acquireTokenSilent:()=>Promise.reject(so(no)),acquireTokenByCode:()=>Promise.reject(so(no)),getAllAccounts:()=>[],getAccount:()=>null,getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(so(no)),loginPopup:()=>Promise.reject(so(no)),loginRedirect:()=>Promise.reject(so(no)),logout:()=>Promise.reject(so(no)),logoutRedirect:()=>Promise.reject(so(no)),logoutPopup:()=>Promise.reject(so(no)),ssoSilent:()=>Promise.reject(so(no)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw so(no)},getLogger:()=>{throw so(no)}
2,setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw so(no)},hydrateCache:()=>Promise.reject(so(no)),clearCache:()=>Promise.reject(so(no))},inProgress:tt.None,accounts:[],logger:new ft({})},Ec=i.createContext(Yc);Ec.Consumer;class xc{static getInteractionStatusFromEvent(e,t){switch(e.eventType){case al.LOGIN_START:return tt.Login;case al.SSO_SILENT_START:return tt.SsoSilent;case al.ACQUIRE_TOKEN_START:if(e.interactionType===et.Redirect||e.interactionType===et.Popup)return tt.AcquireToken;break;case al.HANDLE_REDIRECT_START:return tt.HandleRedirect;case al.LOGOUT_START:return tt.Logout;case al.SSO_SILENT_SUCCESS:case al.SSO_SILENT_FAILURE:if(t&&t!==tt.SsoSilent)break;return tt.None;case al.LOGOUT_END:if(t&&t!==tt.Logout)break;return tt.None;case al.HANDLE_REDIRECT_END:if(t&&t!==tt.HandleRedirect)break;return tt.None;case al.LOGIN_SUCCESS:case al.LOGIN_FAILURE:case al.ACQUIRE_TOKEN_SUCCESS:case al.ACQUIRE_TOKEN_FAILURE:case al.RESTORE_FROM_BFCACHE:if(e.interactionType===et.Redirect||e.interactionType===et.Popup){if(t&&t!==tt.Login&&t!==tt.AcquireToken)break;return tt.None}}return null}}function Oc(e,t){if(e.length!==t.length)return!1;const n=[...t];return e.every(e=>{const t=n.shift();return!(!e||!t)&&(e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username)})}const Ic="@azure/msal-react",Nc="3.0.2",Rc={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},jc=(e,t)=>{const{type:n,payload:r}=t;let i=e.inProgress;switch(n){case Rc.UNBLOCK_INPROGRESS:e.inProgress===tt.Startup&&(i=tt.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case Rc.EVENT:const t=r.message,a=xc.getInteractionStatusFromEvent(t,e.inProgress);a&&(r.logger.info(`MsalProvider - ${t.eventType} results in setting inProgress from ${e.inProgress} to ${a}`),i=a);break;default:throw new Error(`Unknown action type: ${n}`)}const a=r.instance.getAllAccounts();return i===e.inProgress||Oc(a,e.accounts)?i!==e.inProgress?{...e,inProgress:i}:Oc(a,e.accounts)?e:{...e,accounts:a}:{...e,inProgress:i,accounts:a}};function Pc({instance:e,children:t}){(0,i.useEffect)(()=>{e.initializeWrapperLibrary(rt.React,Nc)},[e]);const n=(0,i.useMemo)(()=>e.getLogger().clone(Ic,Nc),[e]),[r,a]=(0,i.useReducer)(jc,void 0,()=>({inProgress:tt.Startup,accounts:e.getAllAccounts()}));(0,i.useEffect)(()=>{const t=e.addEventCallback(t=>{a({payload:{instance:e,logger:n,message:t},type:Rc.EVENT})});return n.verbose(`MsalProvider - Registered event callback with id: ${t}`),e.initialize().then(()=>{e.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:e,logger:n},type:Rc.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{t&&(n.verbose(`MsalProvider - Removing event callback ${t}`),e.removeEventCallback(t))}},[e,n]);const s={instance:e,inProgress:r.inProgress,accounts:r.accounts,logger:n};return i.createElement(Ec.Provider,{value:s},t)}var Hc=function(){return Hc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Hc.apply(this,arguments)},qc=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},Uc=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};function Fc(e){var t=this,n=e.children,a=(0,i.useState)(null),s=a[0],o=a[1],l=(0,i.useState)(!1),c=l[0],u=l[1],d=function(){var e,t,n,r,i=Ac.getAllAccounts();if(i.length>0){var a=i[0];
2Ac.setActiveAccount(a);var s=(null===(e=null==a?void 0:a.idTokenClaims)||void 0===e?void 0:e.given_name)||"",l=(null===(t=null==a?void 0:a.idTokenClaims)||void 0===t?void 0:t.family_name)||"",c=(null===(n=null==a?void 0:a.idTokenClaims)||void 0===n?void 0:n.memberNumber)||"",d=(null===(r=null==a?void 0:a.idTokenClaims)||void 0===r?void 0:r.email)||"",h=a?{name:"".concat(s," ").concat(l).trim(),memberNumber:"".concat(c).trim(),email:"".concat(d).trim(),isMember:!!c}:null;o(h),u(!!h)}else o(null),u(!1)};(0,i.useEffect)(function(){Ac.enableAccountStorageEvents(),Ac.initialize().then(function(){Ac.getAllAccounts()[0]?d():Ac.ssoSilent(Lc()).then(function(){d()}).catch(function(e){d()})});var e=Ac.addEventCallback(function(e){new Set([al.LOGIN_SUCCESS,al.ACQUIRE_TOKEN_SUCCESS,al.LOGOUT_SUCCESS,al.ACCOUNT_ADDED,al.ACCOUNT_REMOVED,al.ACTIVE_ACCOUNT_CHANGED]).has(e.eventType)&&d()});return function(){e&&Ac.removeEventCallback(e),Ac.disableAccountStorageEvents()}},[Ac]);return(0,r.jsx)(Pc,Hc({instance:Ac},{children:(0,r.jsx)(Dc.c.Provider,Hc({value:{isAuthenticated:c,login:function(e){return qc(t,void 0,void 0,function(){var t;return Uc(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Ac.loginRedirect(Lc(e))];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}})})},logout:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Ac.logoutRedirect()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error("Logout failed",e),[3,3];case 3:return[2]}})})},register:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Ac.loginRedirect({authority:Mc(kc).authorities.signUp.authority,scopes:[kc.scopes],state:window.location.href})];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error("Register failed",e),[3,3];case 3:return[2]}})})},userAccount:s,getAccessToken:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Ac.acquireTokenSilent(Hc({account:Ac.getActiveAccount()},Lc()))];case 1:return[2,t.sent().accessToken];case 2:throw e=t.sent(),console.error("Failed to acquire access token",e),e;case 3:return[2]}})})},changeEmail:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ac.loginRedirect({authority:Mc(kc).authorities.changeSignInName.authority,scopes:[kc.scopes],state:window.location.href})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Change mail failed",e),[3,4];case 4:return[2]}})})},changeName:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ac.loginRedirect({authority:Mc(kc).authorities.changeName.authority,scopes:[kc.scopes],state:window.location.href})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Change name failed",e),[3,4];case 4:return[2]}})})},changePassword:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ac.loginRedirect({authority:Mc(kc).authorities.passwordChange.authority,scopes:[kc.scopes],state:window.location.href})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Change password failed",e),[3,4];case 4:return[2]}})})},deleteAccount:function(){return qc(t,void 0,void 0,function(){var e;return Uc(this,function(t){switch(t.label){case 0:t.label=1;case 1:return t.trys.push([1,4,,5]),[4,Ac.logoutRedirect({onRedirectNavigate:function(){return!1}})];case 2:return t.sent(),[4,Ac.loginRedirect({authority:Mc(kc).authorities.deleteAccount.authority,scopes:[kc.scopes],state:window.location.href})];case 3:return t.sent(),[3,5];case 4:return e=t.sent(),console.error("Delete account failed",e),[3,5];case 5:return[2]}})})}}},{children:n}))}))}},9153:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(6540),i=n(4333);function a(){return(0,r.useContext)(i.c)}},4768:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return zc}});var r={};n.r(r),n.d(r,{Attributor:function(){return Qi},AttributorStore:function(){return aa},BlockBlot:function(){return ga},ClassAttributor:function(){return na},ContainerBlot:function(){return va},EmbedBlot:function(){return ba},InlineBlot:function(){return _a},LeafBlot:function(){return ca},ParentBlot:function(){return ma},Registry:function(){return ea},Scope:function(){return Ji},ScrollBlot:function(){return ka},StyleAttributor:function(){return ia},TextBlot:function(){return Ta}});var i=n(4848),a=n(1583),s=n(6540);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}
vendor: 6,083 bytes, line 2
2finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,u=Object.setPrototypeOf,d=Object.isFrozen,h=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor;let f=Object.freeze,_=Object.seal,p=Object.create,g="undefined"!=typeof Reflect&&Reflect,y=g.apply,v=g.construct;f||(f=function(e){return e}),_||(_=function(e){return e}),y||(y=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),v||(v=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const b=U(Array.prototype.forEach),w=U(Array.prototype.lastIndexOf),M=U(Array.prototype.pop),k=U(Array.prototype.push),L=U(Array.prototype.splice),T=Array.isArray,S=U(String.prototype.toLowerCase),C=U(String.prototype.toString),A=U(String.prototype.match),D=U(String.prototype.replace),Y=U(String.prototype.indexOf),E=U(String.prototype.trim),x=U(Number.prototype.toString),O=U(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:U(BigInt.prototype.toString),N="undefined"==typeof Symbol?null:U(Symbol.prototype.toString),R=U(Object.prototype.hasOwnProperty),j=U(Object.prototype.toString),P=U(RegExp.prototype.test),H=(q=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v(q,t)});var q;function U(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return y(e,t,r)}}function F(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(u&&u(e,null),!T(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(d(t)||(t[r]=e),i=e)}e[i]=!0}return e}function B(e){for(let t=0;t<e.length;t++){R(e,t)||(e[t]=null)}return e}function W(e){const t=p(null);for(const r of c(e)){var n=l(r,2);const i=n[0],a=n[1];R(e,i)&&(T(a)?t[i]=B(a):a&&"object"==typeof a&&a.constructor===Object?t[i]=W(a):t[i]=a)}return t}function z(e,t){for(;null!==e;){const n=m(e,t);if(n){if(n.get)return U(n.get);if("function"==typeof n.value)return U(n.value)}e=h(e)}return function(){return null}}const K=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=f(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),J=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Q=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=f(["#text"]),X=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=f(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),te=f(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ne=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=_(/{{[\w\W]*|^[\w\W]*}}/g),ie=_(/<%[\w\W]*|^[\w\W]*%>/g),ae=_(/\${[\w\W]*/g),se=_(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=_(/^aria-[\-\w]+$/),le=_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=_(/^(?:\w+script|data):/i),ue=_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),de=_(/^html$/i),he=_(/^[a-z][.\w]*(-[.\w]+)+$/i),me=_(/<[/\w!]/g),fe=_(/<[/\w]/g),_e=_(/<\/no(script|embed|frames)/i),pe=_(/\/>/i),ge=1,ye=3,ve=7,be=8,we=9,Me=11,ke=function(){return"undefined"==typeof window?null:window},Le=function(e,t,n,r){return R(e,t)&&T(e[t])?F(r.base?W(r.base):{},e[t],r.transform):n};var Te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke();const n=t=>e(t);if(n.version="3.4.11",n.removed=[],!t||!t.document||t.document.nodeType!==we||!t.Element)return n.isSupported=!1,n;let r=t.document;const i=r,a=i.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,o=t.Node,l=t.Element,u=t.NodeFilter,d=t.NamedNodeMap;void 0===d&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,m=t.trustedTypes,g=l.prototype,y=z(g,"cloneNode"),v=z(g,"remove"),q=z(g,"nextSibling"),U=z(g,"childNodes"),B=z(g,"parentNode"),Te=z(g,"shadowRoot"),Se=z(g,"attributes"),Ce=o&&o.prototype?z(o.prototype,"nodeType"):null,Ae=o&&o.prototype?z(o.prototype,"nodeName"):null;if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}
vendor: 4,818 bytes, line 2
2let De,Ye,Ee="",xe=!1,Oe=0;const Ie=function(){if(Oe>0)throw H('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ne=function(e){Ie(),Oe++;try{return De.createHTML(e)}finally{Oe--}},Re=r,je=Re.implementation,Pe=Re.createNodeIterator,He=Re.createDocumentFragment,qe=Re.getElementsByTagName,Ue=i.importNode;let Fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof B&&je&&void 0!==je.createHTMLDocument;const Be=re,We=ie,ze=ae,Ke=se,$e=oe,Ge=ce,Ve=ue,Je=he;let Qe=le,Ze=null;const Xe=F({},[...K,...$,...G,...J,...Z]);let et=null;const tt=F({},[...X,...ee,...te,...ne]);let nt=Object.seal(p(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rt=null,it=null;const at=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let st=!0,ot=!0,lt=!1,ct=!0,ut=!1,dt=!0,ht=!1,mt=!1,ft=null,_t=null,pt=!1,gt=!1,yt=!1,vt=!1,bt=!0,wt=!1;const Mt="user-content-";let kt=!0,Lt=!1,Tt={},St=null;const Ct=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let At=null;const Dt=F({},["audio","video","img","source","image","track"]);let Yt=null;const Et=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let Nt=It,Rt=!1,jt=null;const Pt=F({},[xt,Ot,It],C),Ht=f(["mi","mo","mn","ms","mtext"]);let qt=F({},Ht);const Ut=f(["annotation-xml"]);let Ft=F({},Ut);const Bt=F({},["title","style","font","a","script"]);let Wt=null;const zt=["application/xhtml+xml","text/html"];let Kt=null,$t=null;const Gt=r.createElement("form"),Vt=function(e){return e instanceof RegExp||e instanceof Function},Jt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($t&&$t===e)return;e&&"object"==typeof e||(e={}),e=W(e),Wt=-1===zt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Kt="application/xhtml+xml"===Wt?C:S,Ze=Le(e,"ALLOWED_TAGS",Xe,{transform:Kt}),et=Le(e,"ALLOWED_ATTR",tt,{transform:Kt}),jt=Le(e,"ALLOWED_NAMESPACES",Pt,{transform:C}),Yt=Le(e,"ADD_URI_SAFE_ATTR",Et,{transform:Kt,base:Et}),At=Le(e,"ADD_DATA_URI_TAGS",Dt,{transform:Kt,base:Dt}),St=Le(e,"FORBID_CONTENTS",Ct,{transform:Kt}),rt=Le(e,"FORBID_TAGS",W({}),{transform:Kt}),it=Le(e,"FORBID_ATTR",W({}),{transform:Kt}),Tt=!!R(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),st=!1!==e.ALLOW_ARIA_ATTR,ot=!1!==e.ALLOW_DATA_ATTR,lt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ct=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ut=e.SAFE_FOR_TEMPLATES||!1,dt=!1!==e.SAFE_FOR_XML,ht=e.WHOLE_DOCUMENT||!1,gt=e.RETURN_DOM||!1,yt=e.RETURN_DOM_FRAGMENT||!1,vt=e.RETURN_TRUSTED_TYPE||!1,pt=e.FORCE_BODY||!1,bt=!1!==e.SANITIZE_DOM,wt=e.SANITIZE_NAMED_PROPS||!1,kt=!1!==e.KEEP_CONTENT,Lt=e.IN_PLACE||!1,Qe=function(e){try{return P(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,Nt="string"==typeof e.NAMESPACE?e.NAMESPACE:It,qt=R(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?W(e.MATHML_TEXT_INTEGRATION_POINTS):F({},Ht),Ft=R(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?W(e.HTML_INTEGRATION_POINTS):F({},Ut);const t=R(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?W(e.CUSTOM_ELEMENT_HANDLING):p(null);if(nt=p(null),R(t,"tagNameCheck")&&Vt(t.tagNameCheck)&&(nt.tagNameCheck=t.tagNameCheck),R(t,"attributeNameCheck")&&Vt(t.attributeNameCheck)&&(nt.attributeNameCheck=t.attributeNameCheck),R(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(nt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),_(nt),ut&&(ot=!1),yt&&(gt=!0),Tt&&(Ze=F({},Z),et=p(null),!0===Tt.html&&(F(Ze,K),F(et,X)),!0===Tt.svg&&(F(Ze,$),F(et,ee),F(et,ne)),!0===Tt.svgFilters&&
vendor: 6,357 bytes, line 2
2(F(Ze,G),F(et,ee),F(et,ne)),!0===Tt.mathMl&&(F(Ze,J),F(et,te),F(et,ne))),at.tagCheck=null,at.attributeCheck=null,R(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?at.tagCheck=e.ADD_TAGS:T(e.ADD_TAGS)&&(Ze===Xe&&(Ze=W(Ze)),F(Ze,e.ADD_TAGS,Kt))),R(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?at.attributeCheck=e.ADD_ATTR:T(e.ADD_ATTR)&&(et===tt&&(et=W(et)),F(et,e.ADD_ATTR,Kt))),R(e,"ADD_URI_SAFE_ATTR")&&T(e.ADD_URI_SAFE_ATTR)&&F(Yt,e.ADD_URI_SAFE_ATTR,Kt),R(e,"FORBID_CONTENTS")&&T(e.FORBID_CONTENTS)&&(St===Ct&&(St=W(St)),F(St,e.FORBID_CONTENTS,Kt)),R(e,"ADD_FORBID_CONTENTS")&&T(e.ADD_FORBID_CONTENTS)&&(St===Ct&&(St=W(St)),F(St,e.ADD_FORBID_CONTENTS,Kt)),kt&&(Ze["#text"]=!0),ht&&F(Ze,["html","head","body"]),Ze.table&&(F(Ze,["tbody"]),delete rt.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=De;De=e.TRUSTED_TYPES_POLICY;try{Ee=Ne("")}catch(e){throw De=t,e}}else null===e.TRUSTED_TYPES_POLICY?(De=void 0,Ee=""):(void 0===De&&(xe||(Ye=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return null}}(m,a),xe=!0),De=Ye),De&&"string"==typeof Ee&&(Ee=Ne("")));f&&f(e),$t=e},Qt=F({},[...$,...G,...V]),Zt=F({},[...J,...Q]),Xt=function(e){let t=B(e);t&&t.tagName||(t={namespaceURI:Nt,tagName:"template"});const n=S(e.tagName),r=S(t.tagName);return!!jt[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===It?"svg"===e:t.namespaceURI===xt?"svg"===e&&("annotation-xml"===n||qt[n]):Boolean(Qt[e])}(n,t,r):e.namespaceURI===xt?function(e,t,n){return t.namespaceURI===It?"math"===e:t.namespaceURI===Ot?"math"===e&&Ft[n]:Boolean(Zt[e])}(n,t,r):e.namespaceURI===It?function(e,t,n){return!(t.namespaceURI===Ot&&!Ft[n])&&!(t.namespaceURI===xt&&!qt[n])&&!Zt[e]&&(Bt[e]||!Qt[e])}(n,t,r):!("application/xhtml+xml"!==Wt||!jt[e.namespaceURI]))},en=function(e){k(n.removed,{element:e});try{B(e).removeChild(e)}catch(t){if(v(e),!B(e))throw H("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(e){const t=U(e);if(t){const e=[];b(t,t=>{k(e,t)}),b(e,e=>{try{v(e)}catch(e){}})}const n=Se(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],i=r&&r.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},nn=function(e,t){try{k(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){k(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(gt||yt)try{en(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},rn=function(e){const t=Se(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],i=r&&r.name;if("string"==typeof i&&!et[Kt(i)])try{e.removeAttribute(i)}catch(e){}}},an=function(e){let t=null,n=null;if(pt)e="<remove></remove>"+e;else{const t=A(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Wt&&Nt===It&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=De?Ne(e):e;if(Nt===It)try{t=(new h).parseFromString(i,Wt)}catch(e){}if(!t||!t.documentElement){t=je.createDocument(Nt,"template",null);try{t.documentElement.innerHTML=Rt?Ee:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Nt===It?qe.call(t,ht?"html":"body")[0]:ht?t.documentElement:a},sn=function(e){return Pe.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},on=function(e){return e=D(e,Be," "),e=D(e,We," "),e=D(e,ze," ")},ln=function(e){var t;e.normalize();const n=Pe.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=on(r.data),r=n.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&b(i,e=>{un(e.content)&&ln(e.content)})},cn=function(e){const t=Ae?Ae(e):null;return"string"==typeof t&&("form"===Kt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Se(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Ce(e)||e.childNodes!==U(e)))},un=function(e){if(!Ce||"object"!=typeof e||null===e)return!1;try{return Ce(e)===Me}catch(e){return!1}},dn=function(e){if(!Ce||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ce(e)}catch(e){return!1}};function hn(e,t,r){0!==e.length&&b(e,e=>{e.call(n,t,r,$t)})}const mn=function(e){if(hn(Fe.beforeSanitizeElements,e,null),cn(e))return en(e),!0;const t=Kt(Ae?Ae(e):e.nodeName);if(hn(Fe.uponSanitizeElement,e,{tagName:t,allowedTags:Ze}),function(e,t){return!!(dt&&e.hasChildNodes()&&!dn(e.firstElementChild)&&P(me,e.textContent)&&P(me,e.innerHTML))||!(!dt||e.namespaceURI!==It||"style"!==t||!dn(e.firstElementChild))||e.nodeType===ve||!(!dt||e.nodeType!==be||!P(fe,e.data))}(e,t))return en(e),!0;if(rt[t]||!(at.tagCheck instanceof Function&&at.tagCheck(t))&&!Ze[t])return function(e,t){if(!rt[t]&&pn(t)){if(nt.tagNameCheck instanceof RegExp&&P(nt.tagNameCheck,t))return!1;if(nt.tagNameCheck instanceof Function&&nt.tagNameCheck(t))return!1}if(kt&&!St[t]){const t=B(e),n=U(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const i=Lt?n[r]:y(n[r],!0);t.insertBefore(i,q(e))}}return en(e),!0}(e,t);if((Ce?Ce(e):e.nodeType)===ge&&!Xt(e))return en(e),!0;if(("noscript"===t||"noembed"===t||"noframes"===t)&&P(_e,e.innerHTML))return en(e),!0;if(ut&&e.nodeType===ye){const t=on(e.textContent);e.textContent!==t&&(k(n.removed,{element:e.cloneNode()}),e.textContent=t)}return hn(Fe.afterSanitizeElements,e,null),!1},fn=function(e,t,n){if(it[t])return!1;if(bt&&("id"===t||"name"===t)&&(n in r||n in Gt))return!1;const i=et[t]||at.attributeCheck instanceof Function&&at.attributeCheck(t,e);if(ot&&P(Ke,t));else if(st&&P($e,t));else if(i)if(Yt[t]);else if(P(Qe,D(n,Ve,"")));
vendor: 5,213 bytes, line 2
2else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Y(n,"data:")||!At[e]){if(lt&&!P(Ge,D(n,Ve,"")));else if(n)return!1}else;else if(!(pn(e)&&(nt.tagNameCheck instanceof RegExp&&P(nt.tagNameCheck,e)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(e))&&(nt.attributeNameCheck instanceof RegExp&&P(nt.attributeNameCheck,t)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(t,e))||"is"===t&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&P(nt.tagNameCheck,n)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(n))))return!1;return!0},_n=F({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pn=function(e){return!_n[S(e)]&&P(Je,e)},gn=function(e,t,n,r){if(De&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return Ne(r);case"TrustedScriptURL":return function(e){Ie(),Oe++;try{return De.createScriptURL(e)}finally{Oe--}}(r)}return r},yn=function(e,t,r,i){try{r?e.setAttributeNS(r,t,i):e.setAttribute(t,i),cn(e)?en(e):M(n.removed)}catch(n){nn(t,e)}},vn=function(e){hn(Fe.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||cn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:et,forceKeepAttr:void 0};let r=t.length;const i=Kt(e.nodeName);for(;r--;){const a=t[r],s=a.name,o=a.namespaceURI,l=a.value,c=Kt(s),u=l;let d="value"===s?u:E(u);n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,hn(Fe.uponSanitizeAttribute,e,n),d=n.attrValue,!wt||"id"!==c&&"name"!==c||0===Y(d,Mt)||(nn(s,e),d=Mt+d),dt&&P(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)?nn(s,e):"attributename"===c&&A(d,"href")?nn(s,e):n.forceKeepAttr||(n.keepAttr&&(ct||!P(pe,d))?(ut&&(d=on(d)),fn(i,c,d)?(d=gn(i,c,o,d),d!==u&&yn(e,s,o,d)):nn(s,e)):nn(s,e))}hn(Fe.afterSanitizeAttributes,e,null)},bn=function(e){let t=null;const n=sn(e);for(hn(Fe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){hn(Fe.uponSanitizeShadowNode,t,null),mn(t),vn(t),un(t.content)&&bn(t.content);if((Ce?Ce(t):t.nodeType)===ge){const e=Te(t);un(e)&&(wn(e),bn(e))}}hn(Fe.afterSanitizeShadowDOM,e,null)},wn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){bn(e.shadow);continue}const n=e.node,r=(Ce?Ce(n):n.nodeType)===ge,i=U(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){const e=Ae?Ae(n):null;if("string"==typeof e&&"template"===Kt(e)){const e=n.content;un(e)&&t.push({node:e,shadow:null})}}if(r){const e=Te(n);un(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,o=null;if(Rt=!e,Rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return x(e);case"boolean":return O(e);case"bigint":return I?I(e):"0";case"symbol":return N?N(e):"Symbol()";case"undefined":default:return j(e);case"function":case"object":{if(null===e)return j(e);const t=e,n=z(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:j(e)}return j(e)}}}(e)))throw H("dirty is not a string, aborting");if(!n.isSupported)return e;mt?(Ze=ft,et=_t):Jt(t),(Fe.uponSanitizeElement.length>0||Fe.uponSanitizeAttribute.length>0)&&(Ze=W(Ze)),Fe.uponSanitizeAttribute.length>0&&(et=W(et)),n.removed=[];const l=Lt&&"string"!=typeof e&&dn(e);if(l){const t=Ae?Ae(e):e.nodeName;if("string"==typeof t){const e=Kt(t);if(!Ze[e]||rt[e])throw H("root node is forbidden and cannot be sanitized in-place")}if(cn(e))throw H("root node is clobbered and cannot be sanitized in-place");try{wn(e)}catch(t){throw tn(e),t}}else if(dn(e))r=an("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===ge&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),wn(a);else{if(!gt&&!ut&&!ht&&-1===e.indexOf("<"))return De&&vt?Ne(e):e;if(r=an(e),!r)return gt?null:vt?Ee:""}r&&pt&&en(r.firstChild);const c=sn(l?e:r);try{for(;s=c.nextNode();)mn(s),vn(s),un(s.content)&&bn(s.content)}catch(t){throw l&&tn(e),t}if(l)return b(n.removed,e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();(Ce?Ce(e):e.nodeType)===ge&&rn(e);const n=U(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}}(e.element)}),ut&&ln(e),e;if(gt){if(ut&&ln(r),yt)for(o=He.call(r.ownerDocument);r.firstChild;)o.appendChild(r.firstChild);else o=r;return(et.shadowroot||et.shadowrootmode)&&(o=Ue.call(i,o,!0)),o}let u=ht?r.outerHTML:r.innerHTML;return ht&&Ze["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(de,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ut&&(u=on(u)),De&&vt?Ne(u):u},n.setConfig=function(){Jt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),mt=!0,ft=Ze,_t=et},n.clearConfig=function(){$t=null,mt=!1,ft=null,_t=null,De=Ye,Ee=""},n.isValidAttribute=function(e,t,n){$t||Jt({});const r=Kt(e),i=Kt(t);return fn(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&R(Fe,e)&&k(Fe[e],t)},n.removeHook=function(e,t){if(R(Fe,e)){if(void 0!==t){const n=w(Fe[e],t);
2return-1===n?void 0:L(Fe[e],n,1)[0]}return M(Fe[e])}},n.removeHooks=function(e){R(Fe,e)&&(Fe[e]=[])},n.removeAllHooks=function(){Fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Se=n(5093),Ce=n.n(Se),Ae=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},De=["p","br","strong","b","em","i","sub","sup","ul","ol","li","a","img","h1","h2","h3","h4","h5","h6"],Ye=["href","src","alt","target","rel"],Ee=["eventName","eventDateTime","postalCode","city","address","contactPerson","contactEmail","contactPhone"],xe=function(e,t){var n=Ce().utc([e,t]).endOf("month").startOf("day");return n.clone().subtract(n.day(),"days").hour(1).minute(0).second(0).millisecond(0)},Oe=function(e){void 0===e&&(e=new Date);var t=Ce().utc(e);return t.utcOffset(function(e){var t=e.year(),n=xe(t,2),r=xe(t,9);return!e.isBefore(n)&&e.isBefore(r)?120:60}(t))},Ie=function(){return Oe()},Ne=function(e){return Ae([],e,!0).sort(function(e,t){return Ce()(e.eventDateTime).valueOf()-Ce()(t.eventDateTime).valueOf()})},Re=function(e){if(!(null==e?void 0:e.trim()))return"—";var t=Ce()(e);return t.isValid()?t.format("DD-MM-YYYY HH:mm"):"—"},je=function(e){if(!(null==e?void 0:e.trim()))return"—";var t=Ce()(e);return t.isValid()?t.format("DD.MM.YYYY"):"—"},Pe=function(e){return(null==e?void 0:e.trim())||"—"},He=function(e){var t=[Pe(e.postalCode),Pe(e.city)].filter(function(e){return"—"!==e}).join(" ")||"—",n=Pe(e.address),r=function(e){if(!(null==e?void 0:e.trim()))return"—";var t=Ce()(e);return t.isValid()?"".concat(t.format("HH:mm")," Uhr"):"—"}(e.eventDateTime);return"".concat(t," | ").concat(n,", ").concat(r)},qe=function(e){var t=Pe(e.contactPerson),n=Pe(e.contactEmail),r=Pe(e.contactPhone);return"".concat(t," | ").concat(n," | ").concat(r)};var Ue=function(e,t,n){void 0===n&&(n=2);var r=t.trim();return r.length<n||!e?[]:e instanceof Map?e.size?Array.from(e.keys()).filter(function(e){return e.startsWith(r)}):[]:e.length?e.map(function(e){return e.postalCode}).filter(function(e){return e.startsWith(r)}):[]},Fe=function(e){if(null==e?void 0:e.length)return new Map(e.map(function(e){return[e.postalCode,e.centroidCoordinates]}))},Be=function(e,t){var n,r=t.trim();if(r&&e){if(e instanceof Map)return e.get(r);if(e.length)return null===(n=e.find(function(e){return e.postalCode===r}))||void 0===n?void 0:n.centroidCoordinates}},We=function(e){if(!(e.length<2)){var t=e[0],n=e[1];if(Number.isFinite(n)&&Number.isFinite(t))return{lat:n,lng:t}}},ze=function(e,t){var n;if(null===(n=e.coordinates)||void 0===n?void 0:n.length){var r=function(e){if(!(e.length<2)){var t=e[0],n=e[1];if(Number.isFinite(t)&&Number.isFinite(n))return{lat:t,lng:n}}}(e.coordinates);if(r)return r}var i=Be(t,e.postalCode);return i?We(i):void 0},Ke=function(e,t){var n=t.postalCode.trim();if(!n)return e;var r=function(e){if(e)return e instanceof Map?e.size?e:void 0:Fe(e)}(t.centroidCoordinates),i=Be(r,n),a=i?We(i):void 0;return a?e.filter(function(e){var n,i,s,o,l,c,u=ze(e,r);return!!u&&(n=a,o=(s=function(e){return e*Math.PI/180})((i=u).lat-n.lat),l=s(i.lng-n.lng),c=Math.sin(o/2)*Math.sin(o/2)+Math.cos(s(n.lat))*Math.cos(s(i.lat))*Math.sin(l/2)*Math.sin(l/2),2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))*6371<=t.radiusKm)}):e},$e=function(e,t){if(!t)return e;var n=function(e){var t=Ce()({year:e.getFullYear(),month:e.getMonth(),day:1,hour:0,minute:0,second:0,millisecond:0});return{startOfMonth:t,endOfMonth:t.clone().endOf("month")}}(t),r=n.startOfMonth,i=n.endOfMonth;return e.filter(function(e){var t;if(!(null===(t=e.eventDateTime)||void 0===t?void 0:t.trim()))return!1;var n=Ce()(e.eventDateTime);return n.isValid()&&!n.isBefore(r)&&!n.isAfter(i)})},Ge=function(e,t,n){var r=t.trim();if(!e||r.length<n)return e;var i=e.split(new RegExp("(".concat(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")"),"gi"));return 1===i.length?e:i.map(function(e,t){return t%2==1?(0,s.createElement)("b",{key:t},e):e})},Ve=function(e){var t,n,r=e.trim();return r&&null!==(n=null===(t=(new DOMParser).parseFromString(r,"text/html").body.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==n?n:""},Je=function(e){var t=e.trim();return t?Te.sanitize(t,{ALLOWED_TAGS:De,ALLOWED_ATTR:Ye,ALLOW_DATA_ATTR:!1}).trim():""},Qe=function(){return Qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qe.apply(this,arguments)},Ze=function(e){var t,n,r=e.event,a=e.isHighlighted,s=void 0!==a&&a,o=e.searchTerm,l=e.minSearchLength,c=e.onEdit,u=e.onDelete,d=function(e){if(!(null==e?void 0:e.trim()))return!1;var t=Ce()(e);return t.isValid()&&t.isBefore(Ie())}(r.eventDateTime),h=function(e){return Ge(function(e){return(null==e?void 0:e.trim())||"—"}(e),o,l)},m=function(e){return Ge(e,o,l)};return(0,i.jsxs)("li",Qe({className:"ace-events__table__row".concat(d?" ace-events__table__row--past":"").concat(s?" ace-events__table__row--highlight":""),role:"row","data-id":r.id},{children:[(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.eventName)})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(Ve(null!==(t=r.eventDescription)&&void 0!==t?t:""))})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:m(Re(r.eventDateTime))})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.postalCode)})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.city)})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.address)})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:m((n=r.coordinates,!n||n.length<2?"—":"".concat(n[0],", ").concat(n[1])))})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.contactPerson)})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.contactEmail)})),(0,i.jsx)("span",Qe({className:"ace-events__table__cell",role:"cell"},{children:h(r.contactPhone)})),(0,i.jsxs)("span",Qe({className:"ace-events__table__cell ace-events__table__cell--actions",role:"cell"},{children:[(0,i.jsx)("button",Qe({type:"button",className:"button button--secondary-subtle button--secondary-subtle--icon-only ace-events__table__action-button","aria-label":"Edit",onClick:function(){return c(r)}},{children:(0,i.jsx)("i",{className:"iconoir-edit-pencil","aria-hidden":"true"})})),(0,i.jsx)("button",Qe({type:"button",className:"button button--primary button--primary--icon-only ace-events__table__action-button","aria-label":"Delete",onClick:function(){return u(r)}},{children:(0,i.jsx)("i",{className:"iconoir-trash","aria-hidden":"true"})}))]}))]}))}
2,Xe=n(5719),et=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},tt=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},nt=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},rt="/bin/servlet/nitrite",it="events",at="".concat(rt,"?db=").concat(it),st="/bin/servlet/nitrite/export",ot="/content/dam/ace/nitrite/events/events.json",lt="/bin/servlet/nitrite/backup",ct=function(){var e=Ie().format("YYYY-MM-DD");return"eventDateTime gte '".concat(e,"'")},ut="/bin/servlet/replication/activate?node=/content/dam/ace/nitrite/events/events.json",dt=function(e){var t=new Map;return t.set("db",it),e.forEach(function(e){var n=e.key,r=e.value;return t.set(n,r)}),t},ht={createEvent:function(e){return et(this,void 0,void 0,function(){var t;return tt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,Xe.A)().post(at,e)];case 1:return[2,n.sent()];case 2:throw t=n.sent(),console.error("Error creating event: ".concat(t)),t;case 3:return[2]}})})},getEvent:function(e){return et(this,void 0,void 0,function(){var t,n;return tt(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),(t=new Map).set("db",it),t.set("id",e),[4,(0,Xe.A)().get(rt,t)];case 1:return[2,r.sent()];case 2:throw n=r.sent(),console.error("Error fetching event ".concat(e,": ").concat(n)),n;case 3:return[2]}})})},getUpcomingEvents:function(){return et(this,void 0,void 0,function(){var e;return tt(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,ht.getAllEvents([{key:"q",value:ct()},{key:"sort",value:"eventDateTime"}])];case 1:return[2,t.sent()];case 2:throw e=t.sent(),console.error("Error fetching upcoming events: ".concat(e)),e;case 3:return[2]}})})},getAllEvents:function(e){return void 0===e&&(e=[]),et(this,void 0,void 0,function(){var t,n,r;return tt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t=e.some(function(e){return"size"===e.key}),n=t?e:nt(nt([],e,!0),[{key:"size",value:"1000"}],!1),[4,(0,Xe.A)().get(rt,dt(n))];case 1:return[2,i.sent()];case 2:throw r=i.sent(),console.error("Error fetching events: ".concat(r)),r;case 3:return[2]}})})},updateEvent:function(e){return et(this,void 0,void 0,function(){var t;return tt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,Xe.A)().put(at,e)];case 1:return[2,n.sent()];case 2:throw t=n.sent(),console.error("Error updating event: ".concat(t)),t;case 3:return[2]}})})},deleteEvent:function(e){return et(this,void 0,void 0,function(){var t;return tt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,Xe.A)().delete(at,e)];case 1:return[2,n.sent()];case 2:throw t=n.sent(),console.error("Error deleting event: ".concat(t)),t;case 3:return[2]}})})},exportEvents:function(){return et(this,void 0,void 0,function(){var e;return tt(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,Xe.A)().post((n=ct(),r=new 
2URLSearchParams({db:it,size:"10000",q:n,sort:"eventDateTime",file:ot}),"".concat(st,"?").concat(r.toString())))];case 1:return[2,t.sent()];case 2:throw e=t.sent(),console.error("Error exporting events: ".concat(e)),e;case 3:return[2]}var n,r})})},activateEvents:function(){return et(this,void 0,void 0,function(){var e;return tt(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,Xe.A)().post(ut)];case 1:return[2,t.sent()];case 2:throw e=t.sent(),console.error("Error activating events: ".concat(e)),e;case 3:return[2]}})})},unpublishEvents:function(){return et(this,void 0,void 0,function(){var e,t;return tt(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,(0,Xe.A)().post((r=new URLSearchParams({db:it,size:"1",q:"id eq '__empty__'",file:ot}),"".concat(st,"?").concat(r.toString())))];case 1:return 200!==(e=n.sent()).status?[2,e]:[4,(0,Xe.A)().post(ut)];case 2:return[2,n.sent()];case 3:throw t=n.sent(),console.error("Error unpublishing events: ".concat(t)),t;case 4:return[2]}var r})})},listBackups:function(){var e;return et(this,void 0,void 0,function(){var t,n,r;return tt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),(t=new Map).set("db",it),[4,(0,Xe.A)().get(lt,t)];case 1:return n=i.sent(),[2,null!==(e=n.backups)&&void 0!==e?e:[]];case 2:throw r=i.sent(),console.error("Error listing backups: ".concat(r)),r;case 3:return[2]}})})},restoreBackup:function(e){return et(this,void 0,void 0,function(){var t,n;return tt(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t="".concat(lt,"?db=").concat(encodeURIComponent(it),"&name=").concat(encodeURIComponent(e)),[4,(0,Xe.A)().post(t)];case 1:return[2,r.sent()];case 2:throw n=r.sent(),console.error("Error restoring backup: ".concat(n)),n;case 3:return[2]}})})},getCentroidCoordinates:function(e){return et(this,void 0,void 0,function(){var t;return tt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,Xe.A)().get(e)];case 1:return[2,n.sent()];case 2:throw t=n.sent(),console.error("Error fetching centroid coordinates: ".concat(t)),t;case 3:return[2]}})})}},mt=ht,ft=n(2857),_t=n(1921);var pt=function(){this.__data__=[],this.size=0};var gt=function(e,t){return e===t||e!=e&&t!=t};var yt=function(e,t){for(var n=e.length;n--;)if(gt(e[n][0],t))return n;return-1},vt=Array.prototype.splice;var bt=function(e){var t=this.__data__,n=yt(t,e);return!(n<0)&&(n==t.length-1?t.pop():vt.call(t,n,1),--this.size,!0)};var wt=function(e){var t=this.__data__,n=yt(t,e);return n<0?void 0:t[n][1]};var Mt=function(e){return yt(this.__data__,e)>-1};var kt=function(e,t){var n=this.__data__,r=yt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Lt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lt.prototype.clear=pt,Lt.prototype.delete=bt,Lt.prototype.get=wt,Lt.prototype.has=Mt,Lt.prototype.set=kt;var Tt=Lt;var St=function(){this.__data__=new Tt,this.size=0};var Ct=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var At=function(e){return this.__data__.get(e)};var Dt=function(e){return this.__data__.has(e)},Yt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Et="object"==typeof self&&self&&self.Object===Object&&self,xt=Yt||Et||Function("return this")(),Ot=xt.Symbol,It=Object.prototype,Nt=It.hasOwnProperty,Rt=It.toString,jt=Ot?Ot.toStringTag:void 0;var Pt=function(e){var t=Nt.call(e,jt),n=e[jt];try{e[jt]=void 0;var r=!0}catch(e){}var i=Rt.call(e);return r&&(t?e[jt]=n:delete e[jt]),i},Ht=Object.prototype.toString;var qt=function(e){return Ht.call(e)},Ut=Ot?Ot.toStringTag:void 0;var Ft=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ut&&Ut in Object(e)?Pt(e):qt(e)};var Bt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Wt,zt=function(e){if(!Bt(e))return!1;var t=Ft(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Kt=xt["__core-js_shared__"],$t=(Wt=/[^.]+$/.exec(Kt&&Kt.keys&&Kt.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+Wt:"";var Gt=function(e){return!!$t&&$t in e},Vt=Function.prototype.toString;var Jt=function(e){if(null!=e){try{return Vt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Qt=/^\[object .+?Constructor\]$/,Zt=Function.prototype,Xt=Object.prototype,en=Zt.toString,tn=Xt.hasOwnProperty,nn=RegExp("^"+en.call(tn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var rn=function(e){return!(!Bt(e)||Gt(e))&&(zt(e)?nn:Qt).test(Jt(e))};var an=function(e,t){return null==e?void 0:e[t]};var sn=function(e,t){var n=an(e,t);return rn(n)?n:void 0},on=sn(xt,"Map"),ln=sn(Object,"create");var cn=function(){this.__data__=ln?ln(null):{},this.size=0};var un=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dn=Object.prototype.hasOwnProperty;var hn=function(e){var t=this.__data__;if(ln){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return dn.call(t,e)?t[e]:void 0},mn=Object.prototype.hasOwnProperty;var fn=function(e){var t=this.__data__;return ln?void 0!==t[e]:mn.call(t,e)};var _n=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ln&&void 0===t?"__lodash_hash_undefined__":t,this};function pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pn.prototype.clear=cn,pn.prototype.delete=un,pn.prototype.get=hn,pn.prototype.has=fn,pn.prototype.set=_n;var gn=pn;var yn=function(){this.size=0,this.__data__={hash:new gn,map:new(on||Tt),string:new gn}};var vn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var bn=function(e,t){var n=e.__data__;return vn(t)?n["string"==typeof t?"string":"hash"]:n.map};var wn=function(e){var t=bn(this,e).delete(e);return this.size-=t?1:0,t};var Mn=function(e){return bn(this,e).get(e)};var kn=function(e){return bn(this,e).has(e)};var Ln=function(e,t){var n=bn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Tn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tn.prototype.clear=yn,Tn.prototype.delete=wn,Tn.prototype.get=Mn,Tn.prototype.has=kn,Tn.prototype.set=Ln;var Sn=Tn;var Cn=function(e,t){var n=this.__data__;if(n instanceof Tt){var r=n.__data__;if(!on||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sn(r)}return n.set(e,t),this.size=n.size,this};function An(e){var t=this.__data__=new Tt(e);this.size=t.size}An.prototype.clear=St,An.prototype.delete=Ct,An.prototype.get=At,An.prototype.has=Dt,An.prototype.set=Cn;var Dn=An;var Yn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var En=function(e){return this.__data__.has(e)};function xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Sn;++t<n;)this.add(e[t])}xn.prototype.add=xn.prototype.push=Yn,xn.prototype.has=En;var On=xn;var In=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Nn=function(e,t){return e.has(t)};var Rn=function(e,t,n,r,i,a){var s=1&n,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,m=2&n?new On:void 0;for(a.set(e,t),a.set(t,e);++d<o;){var f=e[d],_=t[d];if(r)var p=s?r(_,f,d,t,e,a):r(f,_,d,e,t,a);if(void 0!==p){if(p)continue;h=!1;break}if(m){if(!In(t,function(e,t){if(!Nn(m,t)&&(f===e||i(f,e,n,r,a)))return m.push(t)})){h=!1;break}}else if(f!==_&&!i(f,_,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h},jn=xt.Uint8Array;var Pn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var Hn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}
vendor: 5,575 bytes, line 2
2,qn=Ot?Ot.prototype:void 0,Un=qn?qn.valueOf:void 0;var Fn=function(e,t,n,r,i,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new jn(e),new jn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=Pn;case"[object Set]":var l=1&r;if(o||(o=Hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var u=Rn(o(e),o(t),r,i,a,s);return s.delete(e),u;case"[object Symbol]":if(Un)return Un.call(e)==Un.call(t)}return!1};var Bn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Wn=Array.isArray;var zn=function(e,t,n){var r=t(e);return Wn(e)?r:Bn(r,n(e))};var Kn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a};var $n=function(){return[]},Gn=Object.prototype.propertyIsEnumerable,Vn=Object.getOwnPropertySymbols,Jn=Vn?function(e){return null==e?[]:(e=Object(e),Kn(Vn(e),function(t){return Gn.call(e,t)}))}:$n;var Qn=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Zn=function(e){return null!=e&&"object"==typeof e};var Xn=function(e){return Zn(e)&&"[object Arguments]"==Ft(e)},er=Object.prototype,tr=er.hasOwnProperty,nr=er.propertyIsEnumerable,rr=Xn(function(){return arguments}())?Xn:function(e){return Zn(e)&&tr.call(e,"callee")&&!nr.call(e,"callee")},ir=rr;var ar=function(){return!1},sr="object"==typeof exports&&exports&&!exports.nodeType&&exports,or=sr&&"object"==typeof module&&module&&!module.nodeType&&module,lr=or&&or.exports===sr?xt.Buffer:void 0,cr=(lr?lr.isBuffer:void 0)||ar,ur=/^(?:0|[1-9]\d*)$/;var dr=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ur.test(e))&&e>-1&&e%1==0&&e<t};var hr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},mr={};mr["[object Float32Array]"]=mr["[object Float64Array]"]=mr["[object Int8Array]"]=mr["[object Int16Array]"]=mr["[object Int32Array]"]=mr["[object Uint8Array]"]=mr["[object Uint8ClampedArray]"]=mr["[object Uint16Array]"]=mr["[object Uint32Array]"]=!0,mr["[object Arguments]"]=mr["[object Array]"]=mr["[object ArrayBuffer]"]=mr["[object Boolean]"]=mr["[object DataView]"]=mr["[object Date]"]=mr["[object Error]"]=mr["[object Function]"]=mr["[object Map]"]=mr["[object Number]"]=mr["[object Object]"]=mr["[object RegExp]"]=mr["[object Set]"]=mr["[object String]"]=mr["[object WeakMap]"]=!1;var fr=function(e){return Zn(e)&&hr(e.length)&&!!mr[Ft(e)]};var _r=function(e){return function(t){return e(t)}},pr="object"==typeof exports&&exports&&!exports.nodeType&&exports,gr=pr&&"object"==typeof module&&module&&!module.nodeType&&module,yr=gr&&gr.exports===pr&&Yt.process,vr=function(){try{var e=gr&&gr.require&&gr.require("util").types;return e||yr&&yr.binding&&yr.binding("util")}catch(e){}}(),br=vr&&vr.isTypedArray,wr=br?_r(br):fr,Mr=Object.prototype.hasOwnProperty;var kr=function(e,t){var n=Wn(e),r=!n&&ir(e),i=!n&&!r&&cr(e),a=!n&&!r&&!i&&wr(e),s=n||r||i||a,o=s?Qn(e.length,String):[],l=o.length;for(var c in e)!t&&!Mr.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||dr(c,l))||o.push(c);return o},Lr=Object.prototype;var Tr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Lr)};var Sr=function(e,t){return function(n){return e(t(n))}},Cr=Sr(Object.keys,Object),Ar=Object.prototype.hasOwnProperty;var Dr=function(e){if(!Tr(e))return Cr(e);var t=[];for(var n in Object(e))Ar.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Yr=function(e){return null!=e&&hr(e.length)&&!zt(e)};var Er=function(e){return Yr(e)?kr(e):Dr(e)};var xr=function(e){return zn(e,Er,Jn)},Or=Object.prototype.hasOwnProperty;var Ir=function(e,t,n,r,i,a){var s=1&n,o=xr(e),l=o.length;if(l!=xr(t).length&&!s)return!1;for(var c=l;c--;){var u=o[c];if(!(s?u in t:Or.call(t,u)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);for(var f=s;++c<l;){var _=e[u=o[c]],p=t[u];if(r)var g=s?r(p,_,u,t,e,a):r(_,p,u,e,t,a);if(!(void 0===g?_===p||i(_,p,n,r,a):g)){m=!1;break}f||(f="constructor"==u)}if(m&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(m=!1)}return a.delete(e),a.delete(t),m},Nr=sn(xt,"DataView"),Rr=sn(xt,"Promise"),jr=sn(xt,"Set"),Pr=sn(xt,"WeakMap"),Hr="[object Map]",qr="[object Promise]",Ur="[object Set]",Fr="[object WeakMap]",Br="[object DataView]",Wr=Jt(Nr),zr=Jt(on),Kr=Jt(Rr),$r=Jt(jr),Gr=Jt(Pr),Vr=Ft;(Nr&&Vr(new Nr(new ArrayBuffer(1)))!=Br||on&&Vr(new on)!=Hr||Rr&&Vr(Rr.resolve())!=qr||jr&&Vr(new jr)!=Ur||Pr&&Vr(new Pr)!=Fr)&&(Vr=function(e){var t=Ft(e),n="[object Object]"==t?e.constructor:void 0,r=n?Jt(n):"";if(r)switch(r){case Wr:return Br;case zr:return Hr;case Kr:return qr;case $r:return Ur;case Gr:return Fr}return t});var Jr=Vr,Qr="[object Arguments]",Zr="[object Array]",Xr="[object Object]",ei=Object.prototype.hasOwnProperty;var ti=function(e,t,n,r,i,a){var s=Wn(e),o=Wn(t),l=s?Zr:Jr(e),c=o?Zr:Jr(t),u=(l=l==Qr?Xr:l)==Xr,d=(c=c==Qr?Xr:c)==Xr,h=l==c;if(h&&cr(e)){if(!cr(t))return!1;s=!0,u=!1}if(h&&!u)return a||(a=new Dn),s||wr(e)?Rn(e,t,n,r,i,a):Fn(e,t,l,n,r,i,a);if(!(1&n)){var m=u&&ei.call(e,"__wrapped__"),f=d&&ei.call(t,"__wrapped__");
2if(m||f){var _=m?e.value():e,p=f?t.value():t;return a||(a=new Dn),i(_,p,n,r,a)}}return!!h&&(a||(a=new Dn),Ir(e,t,n,r,i,a))};var ni=function e(t,n,r,i,a){return t===n||(null==t||null==n||!Zn(t)&&!Zn(n)?t!=t&&n!=n:ti(t,n,r,i,e,a))};var ri=function(e,t){return ni(e,t)},ii=function(){try{var e=sn(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var ai=function(e,t,n){"__proto__"==t&&ii?ii(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var si=function(e,t,n){(void 0!==n&&!gt(e[t],n)||void 0===n&&!(t in e))&&ai(e,t,n)};var oi=function(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===n(a[l],l,a))break}return t}}(),li="object"==typeof exports&&exports&&!exports.nodeType&&exports,ci=li&&"object"==typeof module&&module&&!module.nodeType&&module,ui=ci&&ci.exports===li?xt.Buffer:void 0,di=ui?ui.allocUnsafe:void 0;var hi=function(e,t){if(t)return e.slice();var n=e.length,r=di?di(n):new e.constructor(n);return e.copy(r),r};var mi=function(e){var t=new e.constructor(e.byteLength);return new jn(t).set(new jn(e)),t};var fi=function(e,t){var n=t?mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var _i=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},pi=Object.create,gi=function(){function e(){}return function(t){if(!Bt(t))return{};if(pi)return pi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),yi=Sr(Object.getPrototypeOf,Object);var vi=function(e){return"function"!=typeof e.constructor||Tr(e)?{}:gi(yi(e))};var bi=function(e){return Zn(e)&&Yr(e)},wi=Function.prototype,Mi=Object.prototype,ki=wi.toString,Li=Mi.hasOwnProperty,Ti=ki.call(Object);var Si=function(e){if(!Zn(e)||"[object Object]"!=Ft(e))return!1;var t=yi(e);if(null===t)return!0;var n=Li.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ki.call(n)==Ti};var Ci=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ai=Object.prototype.hasOwnProperty;var Di=function(e,t,n){var r=e[t];Ai.call(e,t)&&gt(r,n)&&(void 0!==n||t in e)||ai(e,t,n)};var Yi=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=r?r(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),i?ai(n,o,l):Di(n,o,l)}return n};var Ei=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},xi=Object.prototype.hasOwnProperty;var Oi=function(e){if(!Bt(e))return Ei(e);var t=Tr(e),n=[];for(var r in e)("constructor"!=r||!t&&xi.call(e,r))&&n.push(r);return n};var Ii=function(e){return Yr(e)?kr(e,!0):Oi(e)};var Ni=function(e){return Yi(e,Ii(e))};var Ri=function(e,t,n,r,i,a,s){var o=Ci(e,n),l=Ci(t,n),c=s.get(l);if(c)si(e,n,c);else{var u=a?a(o,l,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=Wn(l),m=!h&&cr(l),f=!h&&!m&&wr(l);u=l,h||m||f?Wn(o)?u=o:bi(o)?u=_i(o):m?(d=!1,u=hi(l,!0)):f?(d=!1,u=fi(l,!0)):u=[]:Si(l)||ir(l)?(u=o,ir(o)?u=Ni(o):Bt(o)&&!zt(o)||(u=vi(l))):d=!1}d&&(s.set(l,u),i(u,l,r,a,s),s.delete(l)),si(e,n,u)}};var ji=function e(t,n,r,i,a){t!==n&&oi(n,function(s,o){if(a||(a=new Dn),Bt(s))Ri(t,n,o,r,e,i,a);else{var l=i?i(Ci(t,o),s,o+"",t,n,a):void 0;void 0===l&&(l=s),si(t,o,l)}},Ii)};var Pi=function(e){return e};var Hi=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},qi=Math.max;var Ui=function(e,t,n){return t=qi(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=qi(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),Hi(e,this,o)}};var Fi=function(e){return function(){return e}},Bi=ii?function(e,t){return ii(e,"toString",{configurable:!0,enumerable:!1,value:Fi(t),writable:!0})}:Pi,Wi=Date.now;var zi=function(e){var t=0,n=0;return function(){var r=Wi(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ki=zi(Bi);var $i=function(e,t){return Ki(Ui(e,t,Pi),e+"")};var Gi=function(e,t,n){if(!Bt(n))return!1;var r=typeof t;return!!("number"==r?Yr(n)&&dr(t,n.length):"string"==r&&t in n)&&gt(n[t],e)};var Vi=function(e){return $i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&Gi(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,a)}return t})}(function(e,t,n){ji(e,t,n)}),Ji=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(Ji||{});class Qi{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const r=Ji.TYPE&Ji.ATTRIBUTE;this.scope=null!=n.scope?n.scope&Ji.LEVEL|r:Ji.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(e=>e.name)}
2add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class Zi extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}const Xi=class e{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(t,n,r){const i=this.query(n);if(null==i)throw new Zi(`Unable to create ${n} blot`);const a=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),o=new a(t,s,r);return e.blots.set(o.domNode,o),o}find(t,n=!1){return e.find(t,n)}query(e,t=Ji.ANY){let n;return"string"==typeof e?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof e?e&Ji.LEVEL&Ji.BLOCK?n=this.types.block:e&Ji.LEVEL&Ji.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(e=>(n=this.classes[e],!!n)),n=n||this.tags[e.tagName]),null==n?null:"scope"in n&&t&Ji.LEVEL&n.scope&&t&Ji.TYPE&n.scope?n:null}register(...e){return e.map(e=>{const t="blotName"in e,n="attrName"in e;if(!t&&!n)throw new Zi("Invalid definition");if(t&&"abstract"===e.blotName)throw new Zi("Cannot register abstract class");const r=t?e.blotName:n?e.attrName:void 0;return this.types[r]=e,n?"string"==typeof e.keyName&&(this.attributes[e.keyName]=e):t&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(e=>e.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(t=>{(null==this.tags[t]||null==e.className)&&(this.tags[t]=e)}))),e})}};Xi.blots=new WeakMap;let ea=Xi;function ta(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(e=>0===e.indexOf(`${t}-`))}const na=class extends Qi{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){ta(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(ta(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function ra(e){const t=e.split("-"),n=t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("");return t[0]+n}const ia=class extends Qi{static keys(e){return(e.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[ra(this.keyName)]=t,!0)}remove(e){e.style[ra(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[ra(this.keyName)];return this.canAdd(e,t)?t:""}};const aa=class{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=ea.find(this.domNode);if(null==e)return;const t=Qi.keys(this.domNode),n=na.keys(this.domNode),r=ia.keys(this.domNode);t.concat(n).concat(r).forEach(t=>{const n=e.scroll.query(t,Ji.ATTRIBUTE);n instanceof Qi&&(this.attributes[n.attrName]=n)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}},sa=class{constructor(e,t){this.scroll=e,this.domNode=t,ea.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new Zi("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])
vendor: 4,058 bytes, line 2
2):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),ea.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,r){const i=this.isolate(e,t);if(null!=this.scroll.query(n,Ji.BLOT)&&r)i.wrap(n,r);else if(null!=this.scroll.query(n,Ji.ATTRIBUTE)){const e=this.scroll.create(this.statics.scope);i.wrap(e),e.format(n,r)}}insertAt(e,t,n){const r=null==n?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(r,i||void 0)}isolate(e,t){const n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new Zi(`Cannot wrap ${e}`);return n.appendChild(this),n}};sa.blotName="abstract";let oa=sa;const la=class extends oa{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};la.scope=Ji.INLINE_BLOT;const ca=la;class ua{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),r=0;for(;n;){if(n===e)return r;r+=1,n=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let r=n();for(;r;){const i=r.length();if(e<i||t&&e===i&&(null==r.next||0!==r.next.length()))return[r,e];e-=i,r=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[r,i]=this.find(e);let a=e-i;const s=this.iterator(r);let o=s();for(;o&&a<e+t;){const r=o.length();e>a?n(o,e-a,Math.min(t,a+r-e)):n(o,0,Math.min(r,e+t-a)),a+=r,o=s()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let r=n();for(;r;)t=e(t,r),r=n();return t}}function da(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const n=t.create(Ji.INLINE);return Array.from(e.childNodes).forEach(e=>{n.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const ha=class e extends oa{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}
2attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new ua,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=da(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(e){if(e instanceof Zi)return;throw e}})}deleteAt(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(e,t,n)=>{e.deleteAt(t,n)})}descendant(t,n=0){const[r,i]=this.children.find(n);return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,i]:r instanceof e?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(n,r,s)=>{(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,a))),a-=s}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(e=>n instanceof e)||(n.statics.scope===Ji.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof e?n.unwrap():n.remove())})}formatAt(e,t,n,r){this.children.forEachAt(e,t,(e,t,i)=>{e.formatAt(t,i,n,r)})}insertAt(e,t,n){const[r,i]=this.children.find(e);if(r)r.insertAt(i,t,n);else{const e=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(e)}}insertBefore(e,t){null!=e.parent&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),a=[[this,t]];return r instanceof e?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)}removeChild(e){this.children.remove(e)}replaceWith(t,n){const r="string"==typeof t?this.scroll.create(t,n):t;return r instanceof e&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(e,r,i)=>{const a=e.split(r,t);null!=a&&n.appendChild(a)}),n}splitAfter(e){const t=this.clone();for(;null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],r=[];e.forEach(e=>{e.target===this.domNode&&"childList"===e.type&&(n.push(...e.addedNodes),r.push(...e.removedNodes))}),r.forEach(e=>{if(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const t=this.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===this.domNode)&&t.detach()}),n.filter(e=>e.parentNode===this.domNode&&e!==this.uiNode).sort((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(e=>{let t=null;null!=e.nextSibling&&(t=this.scroll.find(e.nextSibling));const n=da(e,this.scroll);(n.next!==t||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,t||void 0))}),this.enforceAllowedChildren()}};ha.uiClass="";const ma=ha;const fa=class e extends ma{static create(e){return super.create(e)}static formats(t,n){const r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;
vendor: 4,272 bytes, line 2
2if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new aa(this.domNode)}format(t,n){if(t!==this.statics.blotName||n){const e=this.scroll.query(t,Ji.INLINE);if(null==e)return;e instanceof Qi?this.attributes.attribute(e,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}else this.children.forEach(t=>{t instanceof e||(t=t.wrap(e.blotName,!0)),this.attributes.copy(t)}),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.formats()[n]||this.scroll.query(n,Ji.ATTRIBUTE)?this.isolate(e,t).format(n,r):super.formatAt(e,t,n,r)}optimize(t){super.optimize(t);const n=this.formats();if(0===Object.keys(n).length)return this.unwrap();const r=this.next;r instanceof e&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof e&&this.attributes.move(r),r}};fa.allowedChildren=[fa,ca],fa.blotName="inline",fa.scope=Ji.INLINE_BLOT,fa.tagName="SPAN";const _a=fa,pa=class e extends ma{static create(e){return super.create(e)}static formats(t,n){const r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new aa(this.domNode)}format(t,n){const r=this.scroll.query(t,Ji.BLOCK);null!=r&&(r instanceof Qi?this.attributes.attribute(r,n):t!==this.statics.blotName||n?n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n):this.replaceWith(e.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.scroll.query(n,Ji.BLOCK)?this.format(n,r):super.formatAt(e,t,n,r)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,Ji.INLINE))super.insertAt(e,t,n);else{const r=this.split(e);if(null==r)throw new Error("Attempt to insertAt after block boundaries");{const e=this.scroll.create(t,n);r.parent.insertBefore(e,r)}}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}};pa.blotName="block",pa.scope=Ji.BLOCK_BLOT,pa.tagName="P",pa.allowedChildren=[_a,pa,ca];const ga=pa,ya=class extends ma{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};ya.blotName="container",ya.scope=Ji.BLOCK_BLOT;const va=ya;const ba=class extends ca{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,r){0===e&&t===this.length()?this.format(n,r):super.formatAt(e,t,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},wa={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ma=class extends ma{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(e=>{this.update(e)}),this.observer.observe(this.domNode,wa),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=Ji.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEac
2h(e=>{e.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,r){this.update(),super.formatAt(e,t,n,r)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)e.push(r.pop());const i=(e,t=!0)=>{null==e||e===this||null!=e.domNode.parentNode&&(n.has(e.domNode)||n.set(e.domNode,[]),t&&i(e.parent))},a=e=>{n.has(e.domNode)&&(e instanceof ma&&e.children.forEach(a),n.delete(e.domNode),e.optimize(t))};let s=e;for(let t=0;s.length>0;t+=1){if(t>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(e=>{const t=this.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(i(this.find(e.previousSibling,!1)),Array.from(e.addedNodes).forEach(e=>{const t=this.find(e,!1);i(t,!1),t instanceof ma&&t.children.forEach(e=>{i(e,!1)})})):"attributes"===e.type&&i(t.prev)),i(t))}),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),r=s.slice();r.length>0;)e.push(r.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(e=>{const t=this.find(e.target,!0);return null==t?null:n.has(t.domNode)?(n.get(t.domNode).push(e),null):(n.set(t.domNode,[e]),t)}).forEach(e=>{null!=e&&e!==this&&n.has(e.domNode)&&e.update(n.get(e.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};Ma.blotName="scroll",Ma.defaultChild=ga,Ma.allowedChildren=[ga,va],Ma.scope=Ji.BLOCK_BLOT,Ma.tagName="DIV";const ka=Ma,La=class e extends ca{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(e=>"characterData"===e.type&&e.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};La.blotName="text",La.scope=Ji.INLINE_BLOT;const Ta=La;var Sa=n(2660);var Ca=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var Aa=function(e,t){return e&&Yi(t,Er(t),e)};var Da=function(e,t){return e&&Yi(t,Ii(t),e)};var Ya=function(e,t){return Yi(e,Jn(e),t)},Ea=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Bn(t,Jn(e)),e=yi(e);return t}:$n;var xa=function(e,t){return Yi(e,Ea(e),t)};var Oa=function(e){return zn(e,Ii,Ea)},Ia=Object.prototype.hasOwnProperty;var Na=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ia.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var Ra=function(e,t){var n=t?mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},ja=/\w*$/;var Pa=function(e){var t=new e.constructor(e.source,ja.exec(e));return t.lastIndex=e.lastIndex,t},Ha=Ot?Ot.prototype:void 0,qa=Ha?Ha.valueOf:void 0;var Ua=function(e){return qa?Object(qa.call(e)):{}};var Fa=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return mi(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Ra(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fi(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Pa(e);case"[object Symbol]":return Ua(e)}};var Ba=function(e){return Zn(e)&&"[object Map]"==Jr(e)},Wa=vr&&vr.isMap,za=Wa?_r(Wa):Ba;var Ka=function(e){return Zn(e)&&"[object Set]"==Jr(e)},$a=vr&&vr.isSet,Ga=$a?_r($a):Ka,Va="[object Arguments]",Ja="[object Function]",Qa="[object Object]",Za={};Za[Va]=Za["[object Array]"]=Za["[object ArrayBuffer]"]=Za["[object DataView]"]=Za["[object Boolean]"]=Za["[object Date]"]=Za["[object Float32Array]"]=Za["[object Float64Array
2]"]=Za["[object Int8Array]"]=Za["[object Int16Array]"]=Za["[object Int32Array]"]=Za["[object Map]"]=Za["[object Number]"]=Za[Qa]=Za["[object RegExp]"]=Za["[object Set]"]=Za["[object String]"]=Za["[object Symbol]"]=Za["[object Uint8Array]"]=Za["[object Uint8ClampedArray]"]=Za["[object Uint16Array]"]=Za["[object Uint32Array]"]=!0,Za["[object Error]"]=Za[Ja]=Za["[object WeakMap]"]=!1;var Xa=function e(t,n,r,i,a,s){var o,l=1&n,c=2&n,u=4&n;if(r&&(o=a?r(t,i,a,s):r(t)),void 0!==o)return o;if(!Bt(t))return t;var d=Wn(t);if(d){if(o=Na(t),!l)return _i(t,o)}else{var h=Jr(t),m=h==Ja||"[object GeneratorFunction]"==h;if(cr(t))return hi(t,l);if(h==Qa||h==Va||m&&!a){if(o=c||m?{}:vi(t),!l)return c?xa(t,Da(o,t)):Ya(t,Aa(o,t))}else{if(!Za[h])return a?t:{};o=Fa(t,h,l)}}s||(s=new Dn);var f=s.get(t);if(f)return f;s.set(t,o),Ga(t)?t.forEach(function(i){o.add(e(i,n,r,i,t,s))}):za(t)&&t.forEach(function(i,a){o.set(a,e(i,n,r,a,t,s))});var _=d?void 0:(u?c?Oa:xr:c?Ii:Er)(t);return Ca(_||t,function(i,a){_&&(i=t[a=i]),Di(o,a,e(i,n,r,a,t,s))}),o};var es=function(e){return Xa(e,5)};class ts extends ba{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}ts.blotName="break",ts.tagName="BR";var ns=ts;class rs extends Ta{}const is={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function as(e){return e.replace(/[&<>"']/g,e=>is[e])}class ss extends _a{static allowedChildren=[ss,ns,ba,rs];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,t){const n=ss.order.indexOf(e),r=ss.order.indexOf(t);return n>=0||r>=0?n-r:e===t?0:e<t?-1:1}formatAt(e,t,n,r){if(ss.compare(this.statics.blotName,n)<0&&this.scroll.query(n,Ji.BLOT)){const i=this.isolate(e,t);r&&i.wrap(n,r)}else super.formatAt(e,t,n,r)}optimize(e){if(super.optimize(e),this.parent instanceof ss&&ss.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}var os=ss;class ls extends ga{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=us(this)),this.cache.delta}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}formatAt(e,t,n,r){t<=0||(this.scroll.query(n,Ji.BLOCK)?e+t===this.length()&&this.format(n,r):super.formatAt(e,Math.min(t,this.length()-e-1),n,r),this.cache={})}insertAt(e,t,n){if(null!=n)return super.insertAt(e,t,n),void(this.cache={});if(0===t.length)return;const r=t.split("\n"),i=r.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?super.insertAt(Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let a=this;r.reduce((e,t)=>(a=a.split(e,!0),a.insertAt(0,t),t.length),e+i.length)}insertBefore(e,t){const{head:n}=this.children;super.insertBefore(e,t),n instanceof ns&&n.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(e,t){super.moveChildren(e,t),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&(0===e||e>=this.length()-1)){const t=this.clone();return 0===e?(this.parent.insertBefore(t,this),this):(this.parent.insertBefore(t,this.next),t)}const n=super.split(e,t);return this.cache={},n}}ls.blotName="block",ls.tagName="P",ls.defaultChild=ns,ls.allowedChildren=[ns,os,ba,rs];class cs extends ba{attach(){super.attach(),this.attributes=new aa(this.domNode)}delta(){return(new Sa).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,Ji.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}formatAt(e,t,n,r){this.format(n,r)}insertAt(e,t,n){if(null!=n)return void super.insertAt(e,t,n);const r=t.split("\n"),i=r.pop(),a=r.map(e=>{const t=this.scroll.create(ls.blotName);return t.insertAt(0,e),t}),s=this.split(e);a.forEach(e=>{this.parent.insertBefore(e,s)}),i&&this.parent.insertBefore(this.scroll.create("text",i),s)}}function us(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.descendants(ca).reduce((e,n)=>0===n.length()?e:e.insert(n.value(),ds(n,{},t)),new Sa).insert("\n",ds(e))}function ds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==e?t:("formats"in e&&"function"==typeof e.formats&&(t={...t,...e.formats()},n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope?t:ds(e.parent,t,n))}cs.scope=Ji.BLOCK_BLOT;class hs extends ba{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(hs.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(e,t){if(0!==this.savedLength)return void super.format(e,t);let n=this,r=0;for(;null!=n&&n.statics.scope!==Ji.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this.savedLength=hs.CONTENTS.length,n.optimize(),n.formatAt(r,hs.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const e=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof rs?this.prev:null,n=t?t.length():0,r=this.next instanceof rs?this.next:null,i=r?r.text:"",{textNode:a}=this,s=a.data.split(hs.CONTENTS).join("");let o;if(a.data=hs.CONTENTS,t)o=t,(s||r)&&(t.insertAt(t.length(),s+i),r&&r.remove());else if(r)o=r,r.insertAt(0,s);else{const e=document.createTextNode(s);o=this.scroll.create(e),this.parent.insertBefore(o,this)}if(this.remove(),e){const i=(e,i)=>t&&e===t.domNode?i:e===a?n+i-1:r&&e===r.domNode?n+s.length+i:null,l=i(e.start.node,e.start.offset),c=i(e.end.node,e.end.offset);if(null!==l&&null!==c)return{startNode:o.domNode,startOffset:l,endNode:o.domNode,endOffset:c}}return null}update(e,t){if(e.some(e=>
2"characterData"===e.type&&e.target===this.textNode)){const e=this.restore();e&&(t.range=e)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if("A"===t.domNode.tagName){this.savedLength=hs.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}}var ms=hs,fs=n(3697),_s=new WeakMap;const ps=["error","warn","log","info"];let gs="warn";function ys(e){if(gs&&ps.indexOf(e)<=ps.indexOf(gs)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console[e](...n)}}function vs(e){return ps.reduce((t,n)=>(t[n]=ys.bind(console,n,e),t),{})}vs.level=e=>{gs=e},ys.level=vs.level;var bs=vs;const ws=bs("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(e=>{document.addEventListener(e,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(e=>{const n=_s.get(e);n&&n.emitter&&n.emitter.handleDOM(...t)})})});var Ms=class extends fs{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",ws.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ws.log.call(ws,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.domListeners[e.type]||[]).forEach(t=>{let{node:r,handler:i}=t;(e.target===r||r.contains(e.target))&&i(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}};const ks=bs("quill:selection");class Ls{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=e,this.length=t}}function Ts(e,t){try{t.parentNode}catch(e){return!1}return e.contains(t)}var Ss=class{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Ls(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,Ms.sources.USER),1)}),this.emitter.on(Ms.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const e=this.getNativeRange();null!=e&&e.start.node!==this.cursor.textNode&&this.emitter.once(Ms.events.SCROLL_UPDATE,(t,n)=>{try{this.root.contains(e.start.node)&&this.root.contains(e.end.node)&&this.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);const r=n.some(e=>"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===this.root);this.update(r?Ms.sources.SILENT:t)}catch(e){}})}),this.emitter.on(Ms.events.SCROLL_OPTIMIZE,(e,t)=>{if(t.range){const{startNode:e,startOffset:n,endNode:r,endOffset:i}=t.range;this.setNativeRange(e,n,r,i),this.update(Ms.sources.SILENT)}}),this.update(Ms.sources.SILENT)}handleComposition(){this.emitter.on(Ms.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Ms.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Ms.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}
vendor: 4,624 bytes, line 2
2format(e,t){this.scroll.update();const n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,Ji.BLOCK)){if(n.start.node!==this.cursor.textNode){const e=this.scroll.find(n.start.node,!1);if(null==e)return;if(e instanceof ca){const t=e.split(n.start.offset);e.parent.insertBefore(this.cursor,t)}else e.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.scroll.length();let r;e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let[i,a]=this.scroll.leaf(e);if(null==i)return null;if(t>0&&a===i.length()){const[t]=this.scroll.leaf(e+1);if(t){const[n]=this.scroll.line(e),[r]=this.scroll.line(e+1);n===r&&(i=t,a=0)}}[r,a]=i.position(a,!0);const s=document.createRange();if(t>0)return s.setStart(r,a),[i,a]=this.scroll.leaf(e+t),null==i?null:([r,a]=i.position(a,!0),s.setEnd(r,a),s.getBoundingClientRect());let o,l="left";if(r instanceof Text){if(!r.data.length)return null;a<r.data.length?(s.setStart(r,a),s.setEnd(r,a+1)):(s.setStart(r,a-1),s.setEnd(r,a),l="right"),o=s.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;o=i.domNode.getBoundingClientRect(),a>0&&(l="right")}return{bottom:o.top+o.height,height:o.height,left:o[l],right:o[l],top:o.top,width:0}}getNativeRange(){const e=document.getSelection();if(null==e||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(null==t)return null;const n=this.normalizeNative(t);return ks.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();if(null==t)return[null,null];return[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&Ts(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(e=>{const[t,n]=e,r=this.scroll.find(t,!0),i=r.offset(this.scroll);return 0===n?i:r instanceof ca?i+r.index(t,n):i+r.length()}),r=Math.min(Math.max(...n),this.scroll.length()-1),i=Math.min(r,...n);return new Ls(i,r-i)}normalizeNative(e){if(!Ts(this.root,e.startContainer)||!e.collapsed&&!Ts(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(e=>{let{node:t,offset:n}=e;for(;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}rangeToNative(e){const t=this.scroll.length(),n=(e,n)=>{e=Math.min(t-1,e);const[r,i]=this.scroll.leaf(e);return r?r.position(i,n):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(ks.info("setNativeRange",e,t,n,r),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==n.parentNode))return;const a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:s}=this.getNativeRange()||{};if(null==s||i||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||r!==s.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const i=document.createRange();i.setStart(e,t),i.setEnd(n,r),a.removeAllRanges(),a.addRange(i)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ms.sources.API;if("string"==typeof t&&(n=t,t=!1),ks.info("setRange",e),null!=e){const n=this.rangeToNative(e);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms.sources.USER;const t=this.lastRange,[n,r]=this.getRange();if(this.lastRange=n,this.lastNative=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!ri(t,this.lastRange)){if(!this.composing&&null!=r&&r.native.collapsed&&r.start.node!==this.cursor.textNode){const e=this.cursor.restore(
2);e&&this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}const n=[Ms.events.SELECTION_CHANGE,es(this.lastRange),es(t),e];this.emitter.emit(Ms.events.EDITOR_CHANGE,...n),e!==Ms.sources.SILENT&&this.emitter.emit(...n)}}};const Cs=/^[ -~]*$/;function As(e,t,n){if(0===e.length){const[e]=Es(n.pop());return t<=0?`</li></${e}>`:`</li></${e}>${As([],t-1,n)}`}const[{child:r,offset:i,length:a,indent:s,type:o},...l]=e,[c,u]=Es(o);if(s>t)return n.push(o),s===t+1?`<${c}><li${u}>${Ds(r,i,a)}${As(l,s,n)}`:`<${c}><li>${As(e,t+1,n)}`;const d=n[n.length-1];if(s===t&&o===d)return`</li><li${u}>${Ds(r,i,a)}${As(l,s,n)}`;const[h]=Es(n.pop());return`</li></${h}>${As(e,t-1,n)}`}function Ds(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"==typeof e.html)return e.html(t,n);if(e instanceof rs){return as(e.value().slice(t,t+n)).replaceAll(" ","&nbsp;")}if(e instanceof ma){if("list-container"===e.statics.blotName){const r=[];return e.children.forEachAt(t,n,(e,t,n)=>{const i="formats"in e&&"function"==typeof e.formats?e.formats():{};r.push({child:e,offset:t,length:n,indent:i.indent||0,type:i.list})}),As(r,-1,[])}const i=[];if(e.children.forEachAt(t,n,(e,t,n)=>{i.push(Ds(e,t,n))}),r||"list"===e.statics.blotName)return i.join("");const{outerHTML:a,innerHTML:s}=e.domNode,[o,l]=a.split(`>${s}<`);return"<table"===o?`<table style="border: 1px solid #000;">${i.join("")}<${l}`:`${o}>${i.join("")}<${l}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function Ys(e,t){return Object.keys(t).reduce((n,r)=>{if(null==e[r])return n;const i=t[r];return i===e[r]?n[r]=i:Array.isArray(i)?i.indexOf(e[r])<0?n[r]=i.concat([e[r]]):n[r]=i:n[r]=[i,e[r]],n},{})}function Es(e){const t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function xs(e){return e.reduce((e,t)=>{if("string"==typeof t.insert){const n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new Sa)}function Os(e,t){let{index:n,length:r}=e;return new Ls(n+t,r)}var Is=class{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=xs(e),r=new Sa;return function(e){const t=[];return e.forEach(e=>{if("string"==typeof e.insert){e.insert.split("\n").forEach((n,r)=>{r&&t.push({insert:"\n",attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})})}else t.push(e)}),t}(n.ops.slice()).reduce((e,n)=>{const i=Sa.Op.length(n);let a=n.attributes||{},s=!1,o=!1;if(null!=n.insert){if(r.retain(i),"string"==typeof n.insert){const r=n.insert;o=!r.endsWith("\n")&&(t<=e||!!this.scroll.descendant(cs,e)[0]),this.scroll.insertAt(e,r);const[i,s]=this.scroll.line(e);let l=Vi({},ds(i));if(i instanceof ls){const[e]=i.descendant(ca,s);e&&(l=Vi(l,ds(e)))}a=Sa.AttributeMap.diff(l,a)||{}}else if("object"==typeof n.insert){const r=Object.keys(n.insert)[0];if(null==r)return e;const i=null!=this.scroll.query(r,Ji.INLINE);if(i)(t<=e||this.scroll.descendant(cs,e)[0])&&(o=!0);else if(e>0){const[t,n]=this.scroll.descendant(ca,e-1);if(t instanceof rs){"\n"!==t.value()[n]&&(s=!0)}else t instanceof ba&&t.statics.scope===Ji.INLINE_BLOT&&(s=!0)}if(this.scroll.insertAt(e,r,n.insert[r]),i){const[t]=this.scroll.descendant(ca,e);if(t){const e=Vi({},ds(t));a=Sa.AttributeMap.diff(e,a)||{}}}}t+=i}else if(r.push(n),null!==n.retain&&"object"==typeof n.retain){const t=Object.keys(n.retain)[0];if(null==t)return e;this.scroll.updateEmbedAt(e,t,n.retain[t])}Object.keys(a).forEach(t=>{this.scroll.formatAt(e,i,t,a[t])});const l=s?1:0,c=o?1:0;return t+=l+c,r.retain(l),r.delete(c),e+i+l+c},0),r.reduce((e,t)=>"number"==typeof t.delete?(this.scroll.deleteAt(e,t.delete),e):e+Sa.Op.length(t),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update((new Sa).retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
2this.scroll.update(),Object.keys(n).forEach(r=>{this.scroll.lines(e,Math.max(t,1)).forEach(e=>{e.format(r,n[r])})}),this.scroll.optimize();const r=(new Sa).retain(e).retain(t,es(n));return this.update(r)}formatText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(r=>{this.scroll.formatAt(e,t,r,n[r])});const r=(new Sa).retain(e).retain(t,es(n));return this.update(r)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Sa)}getFormat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(e=>{const[t]=e;t instanceof ls?n.push(t):t instanceof ca&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(ca,e,t));const[i,a]=[n,r].map(e=>{const t=e.shift();if(null==t)return{};let n=ds(t);for(;Object.keys(n).length>0;){const t=e.shift();if(null==t)return n;n=Ys(ds(t),n)}return n});return{...i,...a}}getHTML(e,t){const[n,r]=this.scroll.line(e);if(n){const i=n.length();return!(n.length()>=r+t)||0===r&&t===i?Ds(this.scroll,e,t,!0):Ds(n,r,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(e=>"string"==typeof e.insert).map(e=>e.insert).join("")}insertContents(e,t){const n=xs(t),r=(new Sa).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(r)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new Sa).retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach(r=>{this.scroll.formatAt(e,t.length,r,n[r])}),this.update((new Sa).retain(e).insert(t,es(n)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if(e?.statics.blotName!==ls.blotName)return!1;const t=e;return!(t.children.length>1)&&t.children.head instanceof ns}removeFormat(e,t){const n=this.getText(e,t),[r,i]=this.scroll.line(e+t);let a=0,s=new Sa;null!=r&&(a=r.length()-i,s=r.delta().slice(i,i+a-1).insert("\n"));const o=this.getContents(e,t+a).diff((new Sa).insert(n).concat(s)),l=(new Sa).retain(e).concat(o);return this.applyDelta(l)}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(Cs)&&this.scroll.find(t[0].target)){const i=this.scroll.find(t[0].target),a=ds(i),s=i.offset(this.scroll),o=t[0].oldValue.replace(ms.CONTENTS,""),l=(new Sa).insert(o),c=(new Sa).insert(i.value()),u=n&&{oldRange:Os(n.oldRange,-s),newRange:Os(n.newRange,-s)};e=(new Sa).retain(s).concat(l.diff(c,u)).reduce((e,t)=>t.insert?e.insert(t.insert,a):e.push(t),new Sa),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&ri(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}};var Ns=class{static DEFAULTS={};constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=e,this.options=t}};const Rs="\ufeff";var js=class extends ba{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(e=>{this.contentNode.appendChild(e)}),this.leftGuard=document.createTextNode(Rs),this.rightGuard=document.createTextNode(Rs),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t,n=null;const r=e.data.split(Rs).join("");if(e===this.leftGuard)if(this.prev instanceof rs){const e=this.prev.length();this.prev.insertAt(e,r),n={startNode:this.prev.domNode,startOffset:e+r.length}}else t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this),n={startNode:t,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof rs?(this.next.insertAt(0,r),n={startNode:this.next.domNode,startOffset:r.length}):(t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this.next),n={startNode:t,startOffset:r.length}));return e.data=Rs,n}
2update(e,t){e.forEach(e=>{if("characterData"===e.type&&(e.target===this.leftGuard||e.target===this.rightGuard)){const n=this.restore(e.target);n&&(t.range=n)}})}};var Ps=class{isComposing=!1;constructor(e,t){this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;!t||t instanceof js||(this.emitter.emit(Ms.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Ms.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Ms.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Ms.events.COMPOSITION_END,e),this.isComposing=!1}};class Hs{static DEFAULTS={modules:{}};static themes={default:Hs};modules={};constructor(e,t){this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{null==this.modules[e]&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}var qs=Hs;const Us=e=>e.parentElement||e.getRootNode().host||null,Fs=e=>{const t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}},Bs=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},Ws=(e,t,n,r,i,a)=>e<n&&t>r?0:e<n?-(n-e+i):t>r?t-e>r-n?e+i-n:t-r+a:0;var zs=(e,t)=>{const n=e.ownerDocument;let r=t,i=e;for(;i;){const e=i===n.body,t=e?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualViewport?.height??n.documentElement.clientHeight,left:0}:Fs(i),a=getComputedStyle(i),s=Ws(r.left,r.right,t.left,t.right,Bs(a.scrollPaddingLeft),Bs(a.scrollPaddingRight)),o=Ws(r.top,r.bottom,t.top,t.bottom,Bs(a.scrollPaddingTop),Bs(a.scrollPaddingBottom));if(s||o)if(e)n.defaultView?.scrollBy(s,o);else{const{scrollLeft:e,scrollTop:t}=i;o&&(i.scrollTop+=o),s&&(i.scrollLeft+=s);const n=i.scrollLeft-e,a=i.scrollTop-t;r={left:r.left-n,top:r.top-a,right:r.right-n,bottom:r.bottom-a}}i=e||"fixed"===a.position?null:Us(i)}};const Ks=["block","break","cursor","inline","scroll","text"];var $s=(e,t,n)=>{const r=new ea;return Ks.forEach(e=>{const n=t.query(e);n&&r.register(n)}),e.forEach(e=>{let i=t.query(e);i||n.error(`Cannot register "${e}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;i;)if(r.register(i),i="blotName"in i?i.requiredContainer??null:null,a+=1,a>100){n.error(`Cycle detected in registering blot requiredContainer: "${e}"`);break}}),r};const Gs=bs("quill"),Vs=new ea;ma.uiClass="ql-ui";class Js{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Vs,theme:"default"};static events=Ms.events;static sources=Ms.sources;static version="2.0.3";static imports={delta:Sa,parchment:r,"core/module":Ns,"core/theme":qs};static debug(e){!0===e&&(e="log"),bs.level(e)}static find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _s.get(e)||Vs.find(e,t)}static import(e){return null==this.imports[e]&&Gs.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const e=arguments.length<=0?void 0:arguments[0],t=!!(arguments.length<=1?void 0:arguments[1]),n="attrName"in e?e.attrName:e.blotName;"string"==typeof n?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(n=>{this.register(n,e[n],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[e]||n||Gs.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&"boolean"!=typeof t&&"abstract"!==t.blotName&&Vs.register(t),"function"==typeof t.register&&t.register(Vs)}}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(e,t){const n=Qs(e);if(!n)throw new Error("Invalid Quill container");const r=!t.theme||t.theme===Js.DEFAULTS.theme,i=r?qs:Js.import(`themes/${t.theme}`);if(!i)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:a,...s}=Js.DEFAULTS,{modules:o,...l}=i.DEFAULTS;let c=Zs(t.modules);null!=c&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const u=Vi({},Zs(a),Zs(o),c),d={...s,...Xs(l),...Xs(t)};let h=t.registry;h?t.formats&&Gs.warn('Ignoring "formats" option because "registry" is specified'):h=t.formats?$
2s(t.formats,d.registry,Gs):d.registry;return{...d,registry:h,container:n,theme:i,modules:Object.entries(u).reduce((e,t)=>{let[n,r]=t;if(!r)return e;const i=Js.import(`modules/${n}`);return null==i?(Gs.error(`Cannot load ${n} module. Are you sure you registered it?`),e):{...e,[n]:Vi({},i.DEFAULTS||{},r)}},{}),bounds:Qs(d.bounds)}}(e,t),this.container=this.options.container,null==this.container)return void Gs.error("Invalid Quill container",e);this.options.debug&&Js.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",_s.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Ms;const r=ka.blotName,i=this.options.registry.query(r);if(!i||!("blotName"in i))throw new Error(`Cannot initialize Quill without "${r}" blot`);if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Is(this.scroll),this.selection=new Ss(this.scroll,this.emitter),this.composition=new Ps(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Ms.events.EDITOR_CHANGE,e=>{e===Ms.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Ms.events.SCROLL_UPDATE,(e,t)=>{const n=this.selection.lastRange,[r]=this.selection.getRange(),i=n&&r?{oldRange:n,newRange:r}:void 0;eo.call(this,()=>this.editor.update(null,t,i),e)}),this.emitter.on(Ms.events.SCROLL_EMBED_UPDATE,(e,t)=>{const n=this.selection.lastRange,[r]=this.selection.getRange(),i=n&&r?{oldRange:n,newRange:r}:void 0;eo.call(this,()=>{const n=(new Sa).retain(e.offset(this)).retain({[e.statics.blotName]:t});return this.editor.update(n,[],i)},Js.sources.USER)}),n){const e=this.clipboard.convert({html:`${n}<p><br></p>`,text:"\n"});this.setContents(e)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){const t=e;(e=document.createElement("div")).classList.add(t)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=to(e,t,n),eo.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ms.sources.API;return eo.call(this,()=>{const n=this.getSelection(!0);let r=new Sa;if(null==n)return r;if(this.scroll.query(e,Ji.BLOCK))r=this.editor.formatLine(n.index,n.length,{[e]:t});else{if(0===n.length)return this.selection.format(e,t),r;r=this.editor.formatText(n.index,n.length,{[e]:t})}return this.setSelection(n,Ms.sources.SILENT),r},n)}formatLine(e,t,n,r,i){let a;return[e,t,a,i]=to(e,t,n,r,i),eo.call(this,()=>this.editor.formatLine(e,t,a),i,e,0)}formatText(e,t,n,r,i){let a;return[e,t,a,i]=to(e,t,n,r,i),eo.call(this,()=>this.editor.formatText(e,t,a),i,e,0)}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length),!n)return null;const r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}getContents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;return[e,t]=to(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=to(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=to(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Js.sources.API;return eo.call(this,()=>this.editor.insertEmbed(e,t,n),r,e)}insertText(e,t,n,r,i){let a;return[e,,a,i]=to(e,0,n,r,i),eo.call(this,()=>this.editor.insertText(e,t,a),i,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=to(e,t,n),eo.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){zs(this.root,e)}scrollIntoView(){this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms.sources.API;return eo.call(this,()=>{e=new Sa(e);const t=this.getLength(),n=this.editor.deleteText(0,t),r=this.editor.insertContents(0,e),i=this.editor.deleteText(this.getLength()-1,1);return n.compose(r).compose(i)},t)}setSelection(e,t,n){null==e?this.selection.setRange(null,t||Js.sources.API):([e,t,,n]=to(e,t,n),this.selection.setRange(new Ls(Math.max(0,e),t),n),n!==Ms.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms.sources.API;const n=(new Sa).insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms.sources.API;return eo.call(this,()=>(e=new Sa(e),this.editor.applyDelta(e)),t,!0)}}function Qs(e){return"string"==typeof e?document.querySelector(e):e}function Zs(e){return Object.entries(e??{}).reduce((e,t)=>
2{let[n,r]=t;return{...e,[n]:!0===r?{}:r}},{})}function Xs(e){return Object.fromEntries(Object.entries(e).filter(e=>void 0!==e[1]))}function eo(e,t,n,r){if(!this.isEnabled()&&t===Ms.sources.USER&&!this.allowReadOnlyEdits)return new Sa;let i=null==n?null:this.getSelection();const a=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=no(i,s,t):0!==r&&(i=no(i,n,r,t)),this.setSelection(i,Ms.sources.SILENT)),s.length()>0){const e=[Ms.events.TEXT_CHANGE,s,a,t];this.emitter.emit(Ms.events.EDITOR_CHANGE,...e),t!==Ms.sources.SILENT&&this.emitter.emit(...e)}return s}function to(e,t,n,r,i){let a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"==typeof n?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||Ms.sources.API]}function no(e,t,n,r){const i="number"==typeof n?n:0;if(null==e)return null;let a,s;return t&&"function"==typeof t.transformPosition?[a,s]=[e.index,e.index+e.length].map(e=>t.transformPosition(e,r!==Ms.sources.USER)):[a,s]=[e.index,e.index+e.length].map(e=>e<t||e===t&&r===Ms.sources.USER?e:i>=0?e+i:Math.max(t,e+i)),new Ls(a,s-a)}var ro=class extends va{};function io(e){return e instanceof ls||e instanceof cs}function ao(e){return"function"==typeof e.updateContent}function so(e,t,n){n.reduce((t,n)=>{const r=Sa.Op.length(n);let i=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){const r=n.insert;e.insertAt(t,r);
2const[a]=e.descendant(ca,t),s=ds(a);i=Sa.AttributeMap.diff(s,i)||{}}else if("object"==typeof n.insert){const r=Object.keys(n.insert)[0];if(null==r)return t;e.insertAt(t,r,n.insert[r]);if(null!=e.scroll.query(r,Ji.INLINE)){const[n]=e.descendant(ca,t),r=ds(n);i=Sa.AttributeMap.diff(r,i)||{}}}return Object.keys(i).forEach(n=>{e.formatAt(t,r,n,i[n])}),t+r},t)}var oo=class extends ka{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=ls;static allowedChildren=[ls,cs,ro];constructor(e,t,n){let{emitter:r}=n;super(e,t),this.emitter=r,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",e=>this.handleDragStart(e))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Ms.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Ms.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Ms.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,r]=this.line(e),[i]=this.line(e+t);if(super.deleteAt(e,t),null!=i&&n!==i&&r>0){if(n instanceof cs||i instanceof cs)return void this.optimize();const e=i.children.head instanceof ns?null:i.children.head;n.moveChildren(i,e),n.remove()}this.optimize()}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(null==n||null==this.scroll.query(t,Ji.BLOCK)){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e),null==n&&t.endsWith("\n")?e.insertAt(0,t.slice(0,-1),n):e.insertAt(0,t,n)}else{const e=this.scroll.create(t,n);this.appendChild(e)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===Ji.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){const n=this.deltaToRenderBlocks(t.concat((new Sa).insert("\n"))),r=n.pop();if(null==r)return;this.batchStart();const i=n.shift();if(i){const t="block"===i.type&&(0===i.delta.length()||!this.descendant(cs,e)[0]&&e<this.length()),n="block"===i.type?i.delta:(new Sa).insert({[i.key]:i.value});so(this,e,n);const r="block"===i.type?1:0,a=e+n.length()+r;t&&this.insertAt(a-1,"\n");const s=ds(this.line(e)[0]),o=Sa.AttributeMap.diff(s,i.attributes)||{};Object.keys(o).forEach(e=>{this.formatAt(a-1,1,e,o[e])}),e=a}let[a,s]=this.children.find(e);if(n.length&&(a&&(a=a.split(s),s=0),n.forEach(e=>{if("block"===e.type){so(this.createBlock(e.attributes,a||void 0),0,e.delta)}else{const t=this.create(e.key,e.value);this.insertBefore(t,a||void 0),Object.keys(e.attributes).forEach(n=>{t.format(n,e.attributes[n])})}})),"block"===r.type&&r.delta.length()){so(this,a?a.offset(a.scroll)+s:this.length(),r.delta)}this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[n,r]=t;return n instanceof ca?[n,r]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(io,e)}lines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;const n=(e,t,r)=>{let i=[],a=r;return e.children.forEachAt(t,r,(e,t,r)=>{io(e)?i.push(e):e instanceof va&&(i=i.concat(n(e,t,a))),a-=r}),i};return n(this,e,t)}optimize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Ms.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch)return void(Array.isArray(e)&&(this.batch=this.batch.concat(e)));let t=Ms.sources.USER;"string"==typeof e&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter(e=>{let{target:t}=e;const n=this.find(t,!0);return n&&!ao(n)})).length>0&&this.emitter.emit(Ms.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Ms.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){const[r]=this.descendant(e=>e instanceof cs,e);r&&r.statics.blotName===t&&ao(r)&&r.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let n=new Sa;
2return e.forEach(e=>{const r=e?.insert;if(r)if("string"==typeof r){const i=r.split("\n");i.slice(0,-1).forEach(r=>{n.insert(r,e.attributes),t.push({type:"block",delta:n,attributes:e.attributes??{}}),n=new Sa});const a=i[i.length-1];a&&n.insert(a,e.attributes)}else{const i=Object.keys(r)[0];if(!i)return;this.query(i,Ji.INLINE)?n.push(e):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new Sa,t.push({type:"blockEmbed",key:i,value:r[i],attributes:e.attributes??{}}))}}),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n;const r={};Object.entries(e).forEach(e=>{let[t,i]=e;null!=this.query(t,Ji.BLOCK&Ji.BLOT)?n=t:r[t]=i});const i=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(i,t||void 0);const a=i.length();return Object.entries(r).forEach(e=>{let[t,n]=e;i.formatAt(0,a,t,n)}),i}};const lo={scope:Ji.BLOCK,whitelist:["right","center","justify"]},co=new Qi("align","align",lo),uo=new na("align","ql-align",lo),ho=new ia("align","text-align",lo);class mo extends ia{value(e){let t=super.value(e);if(!t.startsWith("rgb("))return t;t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return`#${t.split(",").map(e=>`00${parseInt(e,10).toString(16)}`.slice(-2)).join("")}`}}const fo=new na("color","ql-color",{scope:Ji.INLINE}),_o=new mo("color","color",{scope:Ji.INLINE}),po=new na("background","ql-bg",{scope:Ji.INLINE}),go=new mo("background","background-color",{scope:Ji.INLINE});class yo extends ro{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(e=>e.length()<=1?"":e.domNode.innerText).join("\n").slice(e,e+t)}html(e,t){return`<pre>\n${as(this.code(e,t))}\n</pre>`}}class vo extends ls{static TAB="  ";static register(){Js.register(yo)}}class bo extends os{}bo.blotName="code",bo.tagName="CODE",vo.blotName="code-block",vo.className="ql-code-block",vo.tagName="DIV",yo.blotName="code-block-container",yo.className="ql-code-block-container",yo.tagName="DIV",yo.allowedChildren=[vo],vo.allowedChildren=[rs,ns,ms],vo.requiredContainer=yo;const wo={scope:Ji.BLOCK,whitelist:["rtl"]},Mo=new Qi("direction","dir",wo),ko=new na("direction","ql-direction",wo),Lo=new ia("direction","direction",wo),To={scope:Ji.INLINE,whitelist:["serif","monospace"]},So=new na("font","ql-font",To);const Co=new class extends ia{value(e){return super.value(e).replace(/["']/g,"")}}("font","font-family",To),Ao=new na("size","ql-size",{scope:Ji.INLINE,whitelist:["small","large","huge"]}),Do=new ia("size","font-size",{scope:Ji.INLINE,whitelist:["10px","18px","32px"]}),Yo=bs("quill:keyboard"),Eo=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class xo extends Ns{static match(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&null!==t[n])&&(t.key===e.key||t.key===e.which)}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(e=>{this.options.bindings[e]&&this.addBinding(this.options.bindings[e])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(e){if("string"==typeof e||"number"==typeof e)e={key:e};else{if("object"!=typeof e)return null;e=es(e)}e.shortKey&&(e[Eo]=e.shortKey,delete e.shortKey);return e}(e);if(null==r)return void Yo.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n});
2(Array.isArray(r.key)?r.key:[r.key]).forEach(e=>{const i={...r,key:e,...t,...n};this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing)return;if(229===e.keyCode&&("Enter"===e.key||"Backspace"===e.key))return;const t=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(t=>xo.match(e,t));if(0===t.length)return;const n=Js.find(e.target,!0);if(n&&n.scroll!==this.quill.scroll)return;const r=this.quill.getSelection();if(null==r||!this.quill.hasFocus())return;const[i,a]=this.quill.getLine(r.index),[s,o]=this.quill.getLeaf(r.index),[l,c]=0===r.length?[s,o]:this.quill.getLeaf(r.index+r.length),u=s instanceof Ta?s.value().slice(0,o):"",d=l instanceof Ta?l.value().slice(c):"",h={collapsed:0===r.length,empty:0===r.length&&i.length()<=1,format:this.quill.getFormat(r),line:i,offset:a,prefix:u,suffix:d,event:e};t.some(e=>{if(null!=e.collapsed&&e.collapsed!==h.collapsed)return!1;if(null!=e.empty&&e.empty!==h.empty)return!1;if(null!=e.offset&&e.offset!==h.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(e=>null==h.format[e]))return!1}else if("object"==typeof e.format&&!Object.keys(e.format).every(t=>!0===e.format[t]?null!=h.format[t]:!1===e.format[t]?null==h.format[t]:ri(e.format[t],h.format[t])))return!1;return!(null!=e.prefix&&!e.prefix.test(h.prefix))&&(!(null!=e.suffix&&!e.suffix.test(h.suffix))&&!0!==e.handler.call(this,r,h,e))})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(0===e.index||this.quill.getLength()<=1)return;let r={};const[i]=this.quill.getLine(e.index);let a=(new Sa).retain(e.index-n).delete(n);if(0===t.offset){const[t]=this.quill.getLine(e.index-1);if(t){if(!("block"===t.statics.blotName&&t.length()<=1)){const t=i.formats(),n=this.quill.getFormat(e.index-1,1);if(r=Sa.AttributeMap.diff(t,n)||{},Object.keys(r).length>0){const t=(new Sa).retain(e.index+i.length()-2).retain(1,r);a=a.compose(t)}}}}this.quill.updateContents(a,Js.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let r={};const[i]=this.quill.getLine(e.index);let a=(new Sa).retain(e.index).delete(n);if(t.offset>=i.length()-1){const[t]=this.quill.getLine(e.index+1);if(t){const n=i.formats(),s=this.quill.getFormat(e.index,1);r=Sa.AttributeMap.diff(n,s)||{},Object.keys(r).length>0&&(a=a.retain(t.length()-1).retain(1,r))}}this.quill.updateContents(a,Js.sources.USER),this.quill.focus()}handleDeleteRange(e){Po({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((e,n)=>(this.quill.scroll.query(n,Ji.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e),{}),r=(new Sa).retain(e.index).delete(e.length).insert("\n",n);this.quill.updateContents(r,Js.sources.USER),this.quill.setSelection(e.index+1,Js.sources.SILENT),this.quill.focus()}}const Oo={bindings:{bold:Ro("bold"),italic:Ro("italic"),underline:Ro("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","+1",Js.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","-1",Js.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){null!=t.format.indent?this.quill.format("indent","-1",Js.sources.USER):null!=t.format.list&&this.quill.format("list",!1,Js.sources.USER)}},"indent code-block":Io(!0),"outdent code-block":Io(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,Js.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=(new Sa).retain(e.index).delete(e.length).insert("\t");return this.quill.updateContents(n,Js.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,Js.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Js.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,Js.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,n]=this.quill.getLine(e.index),r={...t.formats(),list:"checked"},i=(new Sa).retain(e.index).insert("\n",r).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Js.sources.USER),this.quill.setSelection(e.index+1,Js.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[n,r]=this.quill.getLine(e.index),i=(new Sa).retain(e.index).insert("\n",t.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,Js.sources.USER),this.quill.setSelection(e.index+1,Js.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[n,r,i,a]=t.getTable(e),s=function(e,t,n,r){if(null==t.prev&&null==t.next)return null==n.prev&&null==n.next?0===r?-1:1:null==n.prev?-1:1;if(null==t.prev)return-1;if(null==t.next)return 1;return null}(0,r,i,a);if(null==s)return;let o=n.offset();if(s<0){const t=(new Sa).retain(o).insert("\n");this.quill.updateContents(t,Js.sources.USER),this.quill.setSelection(e.index+1,e.length,Js.sources.SILENT)}else if(s>0){o+=n.length();const e=(new Sa).retain(o).insert("\n");this.quill.updateContents(e,Js.sources.USER),this.quill.setSelection(o,Js.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:n,line:r}=t,i=r.offset(this.quill.scroll);
vendor: 1,868 bytes, line 2
2n.shiftKey?this.quill.setSelection(i-1,Js.sources.USER):this.quill.setSelection(i+r.length(),Js.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(null==this.quill.scroll.query("list"))return!0;const{length:n}=t.prefix,[r,i]=this.quill.getLine(e.index);if(i>n)return!0;let a;switch(t.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(e.index," ",Js.sources.USER),this.quill.history.cutoff();const s=(new Sa).retain(e.index-i).delete(n+1).retain(r.length()-2-i).retain(1,{list:a});return this.quill.updateContents(s,Js.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,Js.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,n]=this.quill.getLine(e.index);let r=2,i=t;for(;null!=i&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const r=(new Sa).retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(r,Js.sources.USER),this.quill.setSelection(e.index-1,Js.sources.SILENT),!1}return!0}},"embed left":No("ArrowLeft",!1),"embed left shift":No("ArrowLeft",!0),"embed right":No("ArrowRight",!1),"embed right shift":No("ArrowRight",!0),"table down":jo(!1),"table up":jo(!0)}};function Io(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:r}=n;const i=this.quill.scroll.query("code-block"),{TAB:a}=i;if(0===t.length&&!r.shiftKey)return this.quill.insertText(t.index,a,Js.sources.USER),void this.quill.setSelection(t.index+a.length,Js.sources.SILENT);const s=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:o,length:l}=t;
2s.forEach((t,n)=>{e?(t.insertAt(0,a),0===n?o+=a.length:l+=a.length):t.domNode.textContent.startsWith(a)&&(t.deleteAt(0,a.length),0===n?o-=a.length:l-=a.length)}),this.quill.update(Js.sources.USER),this.quill.setSelection(o,l,Js.sources.SILENT)}}}function No(e,t){const n="ArrowLeft"===e?"prefix":"suffix";return{key:e,shiftKey:t,altKey:null,[n]:/^$/,handler(n){let{index:r}=n;"ArrowRight"===e&&(r+=n.length+1);const[i]=this.quill.getLeaf(r);return!(i instanceof ba)||("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,Js.sources.USER):this.quill.setSelection(n.index-1,Js.sources.USER):t?this.quill.setSelection(n.index,n.length+1,Js.sources.USER):this.quill.setSelection(n.index+n.length+1,Js.sources.USER),!1)}}}function Ro(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],Js.sources.USER)}}}function jo(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const r=e?"prev":"next",i=n.line,a=i.parent[r];if(null!=a){if("table-row"===a.statics.blotName){let e=a.children.head,t=i;for(;null!=t.prev;)t=t.prev,e=e.next;const r=e.offset(this.quill.scroll)+Math.min(n.offset,e.length()-1);this.quill.setSelection(r,0,Js.sources.USER)}}else{const t=i.table()[r];null!=t&&(e?this.quill.setSelection(t.offset(this.quill.scroll)+t.length()-1,0,Js.sources.USER):this.quill.setSelection(t.offset(this.quill.scroll),0,Js.sources.USER))}return!1}}}function Po(e){let{quill:t,range:n}=e;const r=t.getLines(n);let i={};if(r.length>1){const e=r[0].formats(),t=r[r.length-1].formats();i=Sa.AttributeMap.diff(t,e)||{}}t.deleteText(n,Js.sources.USER),Object.keys(i).length>0&&t.formatLine(n.index,1,i,Js.sources.USER),t.setSelection(n.index,Js.sources.SILENT)}xo.DEFAULTS=Oo;const Ho=/font-weight:\s*normal/,qo=["P","OL","UL"],Uo=e=>e&&qo.includes(e.tagName);const Fo=/\bmso-list:[^;]*ignore/i,Bo=/\bmso-list:[^;]*\bl(\d+)/i,Wo=/\bmso-list:[^;]*\blevel(\d+)/i,zo=e=>{const t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],r=[];t.forEach(e=>{(e.getAttribute("style")||"").match(Fo)?n.push(e):r.push(e)}),n.forEach(e=>e.parentNode?.removeChild(e));const i=e.documentElement.innerHTML,a=r.map(e=>((e,t)=>{const n=e.getAttribute("style"),r=n?.match(Bo);if(!r)return null;const i=Number(r[1]),a=n?.match(Wo),s=a?Number(a[1]):1,o=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=t.match(o);return{id:i,indent:s,type:l&&"bullet"===l[1]?"bullet":"ordered",element:e}})(e,i)).filter(e=>e);for(;a.length;){const e=[];let t=a.shift();for(;t;)e.push(t),t=a.length&&a[0]?.element===t.element.nextElementSibling&&a[0].id===t.id?a.shift():null;const n=document.createElement("ul");e.forEach(e=>{const t=document.createElement("li");t.setAttribute("data-list",e.type),e.indent>1&&t.setAttribute("class","ql-indent-"+(e.indent-1)),t.innerHTML=e.element.innerHTML,n.appendChild(t)});const r=e[0]?.element,{parentNode:i}=r??{};r&&i?.replaceChild(n,r),e.slice(1).forEach(e=>{let{element:t}=e;i?.removeChild(t)})}};const Ko=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&zo(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&((e=>{Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(Ho)).forEach(t=>{const n=e.createDocumentFragment();n.append(...t.childNodes),t.parentNode?.replaceChild(n,t)})})(e),(e=>{Array.from(e.querySelectorAll("br")).filter(e=>Uo(e.previousElementSibling)&&Uo(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})})(e))}];var $o=e=>{e.documentElement&&Ko.forEach(t=>{t(e)})};const Go=bs("quill:clipboard"),Vo=[[Node.TEXT_NODE,function(e,t,n){let r=e.data;if("O:P"===e.parentElement?.tagName)return t.insert(r.trim());if(!nl(e)){if(0===r.trim().length&&r.includes("\n")&&!function(e,t){return e.previousElementSibling&&e.nextElementSibling&&!el(e.previousElementSibling,t)&&!el(e.nextElementSibling,t)}(e,n))return t;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(null==e.previousSibling&&null!=e.parentElement&&el(e.parentElement,n)||e.previousSibling instanceof Element&&el(e.previousSibling,n))&&(r=r.replace(/^ /,"")),(null==e.nextSibling&&null!=e.parentElement&&el(e.parentElement,n)||e.nextSibling instanceof Element&&el(e.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return t.insert(r)}],[Node.TEXT_NODE,al],["br",function(e,t){Xo(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,al],[Node.ELEMENT_NODE,function(e,t,n){const r=n.query(e);if(null==r)return t;if(r.prototype instanceof ba){const t={},i=r.value(e);if(null!=i)return t[r.blotName]=i,(new Sa).insert(t,r.formats(e,n))}else if(r.prototype instanceof ga&&!Xo(t,"\n")&&t.insert("\n"),"blotName"in r&&"formats"in r&&"function"==typeof r.formats)return Zo(t,r.blotName,r.formats(e,n),n);return t}],[Node.ELEMENT_NODE,function(e,t,n){const r=Qi.keys(e),i=na.keys(e),a=ia.keys(e),s={};
2return r.concat(i).concat(a).forEach(t=>{let r=n.query(t,Ji.ATTRIBUTE);null!=r&&(s[r.attrName]=r.value(e),s[r.attrName])||(r=Jo[t],null==r||r.attrName!==t&&r.keyName!==t||(s[r.attrName]=r.value(e)||void 0),r=Qo[t],null==r||r.attrName!==t&&r.keyName!==t||(r=Qo[t],s[r.attrName]=r.value(e)||void 0))}),Object.entries(s).reduce((e,t)=>{let[r,i]=t;return Zo(e,r,i,n)},t)}],[Node.ELEMENT_NODE,function(e,t,n){const r={},i=e.style||{};"italic"===i.fontStyle&&(r.italic=!0);"underline"===i.textDecoration&&(r.underline=!0);"line-through"===i.textDecoration&&(r.strike=!0);(i.fontWeight?.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0);if(t=Object.entries(r).reduce((e,t)=>{let[r,i]=t;return Zo(e,r,i,n)},t),parseFloat(i.textIndent||0)>0)return(new Sa).insert("\t").concat(t);return t}],["li",function(e,t,n){const r=n.query(e);if(null==r||"list"!==r.blotName||!Xo(t,"\n"))return t;let i=-1,a=e.parentNode;for(;null!=a;)["OL","UL"].includes(a.tagName)&&(i+=1),a=a.parentNode;return i<=0?t:t.reduce((e,t)=>t.insert?t.attributes&&"number"==typeof t.attributes.indent?e.push(t):e.insert(t.insert,{indent:i,...t.attributes||{}}):e,new Sa)}],["ol, ul",function(e,t,n){const r=e;let i="OL"===r.tagName?"ordered":"bullet";const a=r.getAttribute("data-checked");a&&(i="true"===a?"checked":"unchecked");return Zo(t,"list",i,n)}],["pre",function(e,t,n){const r=n.query("code-block"),i=!r||!("formats"in r)||"function"!=typeof r.formats||r.formats(e,n);return Zo(t,"code-block",i,n)}],["tr",function(e,t,n){const r="TABLE"===e.parentElement?.tagName?e.parentElement:e.parentElement?.parentElement;if(null!=r){return Zo(t,"table",Array.from(r.querySelectorAll("tr")).indexOf(e)+1,n)}return t}],["b",il("bold")],["i",il("italic")],["strike",il("strike")],["style",function(){return new Sa}]],Jo=[co,Mo].reduce((e,t)=>(e[t.keyName]=t,e),{}),Qo=[ho,go,_o,Lo,Co,Do].reduce((e,t)=>(e[t.keyName]=t,e),{});function Zo(e,t,n,r){return r.query(t)?e.reduce((e,r)=>{if(!r.insert)return e;if(r.attributes&&r.attributes[t])return e.push(r);const i=n?{[t]:n}:{};return e.insert(r.insert,{...i,...r.attributes})},new Sa):e}function Xo(e,t){let n="";for(let r=e.ops.length-1;r>=0&&n.length<t.length;--r){const t=e.ops[r];if("string"!=typeof t.insert)break;n=t.insert+n}return n.slice(-1*t.length)===t}function el(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return!(n&&n.prototype instanceof ba)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}const tl=new WeakMap;function nl(e){return null!=e&&(tl.has(e)||("PRE"===e.tagName?tl.set(e,!0):tl.set(e,nl(e.parentNode))),tl.get(e))}function rl(e,t,n,r,i){return t.nodeType===t.TEXT_NODE?r.reduce((n,r)=>r(t,n,e),new Sa):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((a,s)=>{let o=rl(e,s,n,r,i);return s.nodeType===t.ELEMENT_NODE&&(o=n.reduce((t,n)=>n(s,t,e),o),o=(i.get(s)||[]).reduce((t,n)=>n(s,t,e),o)),a.concat(o)},new Sa):new Sa}function il(e){return(t,n,r)=>Zo(n,e,!0,r)}function al(e,t,n){if(!Xo(t,"\n")){if(el(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling){let r=e.nextSibling;for(;null!=r;){if(el(r,n))return t.insert("\n");const e=n.query(r);if(e&&e.prototype instanceof cs)return t.insert("\n");r=r.firstChild}}}return t}function sl(e,t){let n=t;for(let t=e.length-1;t>=0;t-=1){const r=e[t];e[t]={delta:n.transform(r.delta,!0),range:r.range&&ol(r.range,n)},n=r.delta.transform(n),0===e[t].delta.length()&&e.splice(t,1)}}function ol(e,t){if(!e)return e;const n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}class ll extends Ns{constructor(e,t){super(e,t),e.root.addEventListener("drop",t=>{t.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t.clientX,t.clientY);n=document.createRange(),n.setStart(e.offsetNode,e.offset),n.setEnd(e.offsetNode,e.offset)}const r=n&&e.selection.normalizeNative(n);if(r){const n=e.selection.normalizedToRange(r);t.dataTransfer?.files&&this.upload(n,t.dataTransfer.files)}})}upload(e,t){const n=[];
2Array.from(t).forEach(e=>{e&&this.options.mimetypes?.includes(e.type)&&n.push(e)}),n.length>0&&this.options.handler.call(this,e,n)}}ll.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map(e=>new Promise(t=>{const n=new FileReader;n.onload=()=>{t(n.result)},n.readAsDataURL(e)}));Promise.all(n).then(t=>{const n=t.reduce((e,t)=>e.insert({image:t}),(new Sa).retain(e.index).delete(e.length));this.quill.updateContents(n,Ms.sources.USER),this.quill.setSelection(e.index+t.length,Ms.sources.SILENT)})}};var cl=ll;const ul=["insertText","insertReplacementText"];var dl=class extends Ns{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",e=>{this.handleBeforeInput(e)}),/Android/i.test(navigator.userAgent)||e.on(Js.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Po({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new Sa).retain(e.index).insert(t,n),Js.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,Js.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!ul.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||!0===t.collapsed)return;const n=function(e){if("string"==typeof e.data)return e.data;if(e.dataTransfer?.types.includes("text/plain"))return e.dataTransfer.getData("text/plain");return null}(e);if(null==n)return;const r=this.quill.selection.normalizeNative(t),i=r?this.quill.selection.normalizedToRange(r):null;i&&this.replaceText(i,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}};const hl=/Mac/i.test(navigator.platform);var ml=class extends Ns{isListening=!1;selectionChangeDeadline=0;constructor(e,t){super(e,t),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:n,event:r}=t;if(!(n instanceof ma&&n.uiNode))return!0;const i="rtl"===getComputedStyle(n.domNode).direction;return!!(i&&"ArrowRight"!==r.key||!i&&"ArrowLeft"!==r.key)||(this.quill.setSelection(e.index-1,e.length+(r.shiftKey?1:0),Js.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&(e=>"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"Home"===e.key||!(!hl||"a"!==e.key||!0!==e.ctrlKey))(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+100,this.isListening)return;this.isListening=!0;document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const t=e.getRangeAt(0);if(!0!==t.collapsed||0!==t.startOffset)return;const n=this.quill.scroll.find(t.startContainer);if(!(n instanceof ma&&n.uiNode))return;const r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(r)}};Js.register({"blots/block":ls,"blots/block/embed":cs,"blots/break":ns,"blots/container":ro,"blots/cursor":ms,"blots/embed":js,"blots/inline":os,"blots/scroll":oo,"blots/text":rs,"modules/clipboard":class extends Ns{static DEFAULTS={matchers:[]};constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",e=>this.onCaptureCopy(e,!1)),this.quill.root.addEventListener("cut",e=>this.onCaptureCopy(e,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Vo.concat(this.options.matchers??[]).forEach(e=>{let[t,n]=e;this.addMatcher(t,n)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r[vo.blotName])return(new Sa).insert(n||"",{[vo.blotName]:r[vo.blotName]});if(!t)return(new Sa).insert(n||"",r);const i=this.convertHTML(t);return Xo(i,"\n")&&(null==i.ops[i.ops.length-1].attributes||r.table)?i.compose((new Sa).retain(i.length()-1).delete(1)):i}normalizeHTML(e){$o(e)}convertHTML(e){const t=(new DOMParser).parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,r=new WeakMap,[i,a]=this.prepareMatching(n,r);return rl(this.quill.scroll,n,i,a,r)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Js.sources.API;if("string"==typeof e){const n=this.convert({html:e,text:""});this.quill.setContents(n,t),this.quill.setSelection(0,Js.sources.SILENT)}else{const r=this.convert({html:t,text:""});this.quill.updateContents((new Sa).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),Js.sources.SILENT)}}onCaptureCopy(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.defaultPrevented)return;e.preventDefault();const[n]=this.quill.selection.getRange();if(null==n)return;const{html:r,text:i}=this.onCopy(n,t);e.clipboardData?.setData("text/plain",i),e.clipboardData?.setData("text/html",r),t&&Po({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(e=>"#"!==e[0]).join("\n")}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(null==t)return;const n=e.clipboardData?.getData("text/html");let r=e.clipboardData?.getData("text/plain");
2if(!n&&!r){const t=e.clipboardData?.getData("text/uri-list");t&&(r=this.normalizeURIList(t))}const i=Array.from(e.clipboardData?.files||[]);if(!n&&i.length>0)this.quill.uploader.upload(t,i);else{if(n&&i.length>0){const e=(new DOMParser).parseFromString(n,"text/html");if(1===e.body.childElementCount&&"IMG"===e.body.firstElementChild?.tagName)return void this.quill.uploader.upload(t,i)}this.onPaste(t,{html:n,text:r})}}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:r}=t;const i=this.quill.getFormat(e.index),a=this.convert({text:n,html:r},i);Go.log("onPaste",a,{text:n,html:r});const s=(new Sa).retain(e.index).delete(e.length).concat(a);this.quill.updateContents(s,Js.sources.USER),this.quill.setSelection(s.length()-e.length,Js.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],r=[];return this.matchers.forEach(i=>{const[a,s]=i;switch(a){case Node.TEXT_NODE:r.push(s);break;case Node.ELEMENT_NODE:n.push(s);break;default:Array.from(e.querySelectorAll(a)).forEach(e=>{if(t.has(e)){const n=t.get(e);n?.push(s)}else t.set(e,[s])})}}),[n,r]}},"modules/history":class extends Ns{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(e,t){super(e,t),this.quill.on(Js.events.EDITOR_CHANGE,(e,t,n,r)=>{e===Js.events.SELECTION_CHANGE?t&&r!==Js.sources.SILENT&&(this.currentRange=t):e===Js.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&r!==Js.sources.USER?this.transform(t):this.record(t,n)),this.currentRange=ol(this.currentRange,t))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",e=>{"historyUndo"===e.inputType?(this.undo(),e.preventDefault()):"historyRedo"===e.inputType&&(this.redo(),e.preventDefault())})}change(e,t){if(0===this.stack[e].length)return;const n=this.stack[e].pop();if(!n)return;const r=this.quill.getContents(),i=n.delta.invert(r);this.stack[t].push({delta:i,range:ol(n.range,i)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,Js.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,t){if(0===e.ops.length)return;this.stack.redo=[];let n=e.invert(t),r=this.currentRange;const i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){const e=this.stack.undo.pop();e&&(n=n.compose(e.delta),r=e.range)}else this.lastRecorded=i;0!==n.length()&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){sl(this.stack.undo,e),sl(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,Js.sources.USER);else{const t=function(e,t){const n=t.reduce((e,t)=>e+(t.delete||0),0);let r=t.length()-n;(function(e,t){const n=t.ops[t.ops.length-1];if(null==n)return!1;if(null!=n.insert)return"string"==typeof n.insert&&n.insert.endsWith("\n");if(null!=n.attributes)return Object.keys(n.attributes).some(t=>null!=e.query(t,Ji.BLOCK));return!1})(e,t)&&(r-=1);return r}(this.quill.scroll,e.delta);this.quill.setSelection(t,Js.sources.USER)}}},"modules/keyboard":xo,"modules/uploader":cl,"modules/input":dl,"modules/uiNode":ml});var fl=Js;const _l=new class extends na{add(e,t){let n=0;if("+1"===t||"-1"===t){const r=this.value(e)||0;n="+1"===t?r+1:r-1}else"number"==typeof t&&(n=t);return 0===n?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}("indent","ql-indent",{scope:Ji.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});var pl=_l;var gl=class extends ls{static blotName="blockquote";static tagName="blockquote"};var yl=class extends ls{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}};class vl extends ro{}vl.blotName="list-container",vl.tagName="OL";class bl extends ls{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){Js.register(vl)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),r=n=>{if(!e.isEnabled())return;const r=this.statics.formats(t,e);"checked"===r?(this.format("list","unchecked"),n.preventDefault()):"unchecked"===r&&(this.format("list","checked"),n.preventDefault())};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}bl.blotName="list",bl.tagName="LI",vl.allowedChildren=[bl],bl.requiredContainer=vl;var wl=class extends os{static blotName="bold";static tagName=["STRONG","B"];
2static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};var Ml=class extends wl{static blotName="italic";static tagName=["EM","I"]};class kl extends os{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Ll(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("href",this.constructor.sanitize(t)):super.format(e,t)}}function Ll(e,t){const n=document.createElement("a");n.href=e;const r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}var Tl=class extends os{static blotName="script";static tagName=["SUB","SUP"];static create(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):super.create(e)}static formats(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}};var Sl=class extends wl{static blotName="strike";static tagName=["S","STRIKE"]};var Cl=class extends os{static blotName="underline";static tagName="U"};var Al=class extends js{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}};const Dl=["alt","height","width"];var Yl=class extends ba{static blotName="image";static tagName="IMG";static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Dl.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Ll(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Dl.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}};const El=["height","width"];var xl=class extends cs{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return El.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return kl.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){El.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}};const Ol=new na("code-token","hljs",{scope:Ji.INLINE});class Il extends os{static formats(e,t){for(;null!=e&&e!==t.domNode;){if(e.classList&&e.classList.contains(vo.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),Ol.add(this.domNode,n)}format(e,t){e!==Il.blotName?super.format(e,t):t?Ol.add(this.domNode,t):(Ol.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Ol.value(this.domNode)||this.unwrap()}}Il.blotName="code-token",Il.className="ql-token";class Nl extends vo{static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),Il.blotName,!1),super.replaceWith(e,t)}}class Rl extends yo{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Nl.blotName&&(this.forceNext=!0,this.children.forEac
2h(n=>{n.format(e,t)}))}formatAt(e,t,n,r){n===Nl.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,r)}highlight(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const n=`${Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).map(e=>e.textContent).join("\n")}\n`,r=Nl.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==n){if(n.trim().length>0||null==this.cachedText){const t=this.children.reduce((e,t)=>e.concat(us(t,!1)),new Sa),i=e(n,r);t.diff(i).reduce((e,t)=>{let{retain:n,attributes:r}=t;return n?(r&&Object.keys(r).forEach(t=>{[Nl.blotName,Il.blotName].includes(t)&&this.formatAt(e,n,t,r[t])}),e+n):e},0)}this.cachedText=n,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?Nl.formats(n.domNode):"plain"}">\n${as(this.code(e,t))}\n</pre>`}optimize(e){if(super.optimize(e),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const e=Nl.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}Rl.allowedChildren=[Nl],Nl.requiredContainer=Rl,Nl.allowedChildren=[Il,ms,rs,ns];class jl extends Ns{static register(){Js.register(Il,!0),Js.register(Nl,!0),Js.register(Rl,!0)}constructor(e,t){if(super(e,t),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((e,t)=>{let{key:n}=t;return e[n]=!0,e},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Js.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Rl))return;const t=this.quill.root.ownerDocument.createElement("select");
2this.options.languages.forEach(e=>{let{key:n,label:r}=e;const i=t.ownerDocument.createElement("option");i.textContent=r,i.setAttribute("value",n),t.appendChild(i)}),t.addEventListener("change",()=>{e.format(Nl.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),null==e.uiNode&&(e.attachUI(t),e.children.head&&(t.value=Nl.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(Js.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(Js.sources.USER);const n=this.quill.getSelection();(null==e?this.quill.scroll.descendants(Rl):[e]).forEach(e=>{e.highlight(this.highlightBlot,t)}),this.quill.update(Js.sources.SILENT),null!=n&&this.quill.setSelection(n,Js.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(t=this.languages[t]?t:"plain","plain"===t)return as(e).split("\n").reduce((e,n,r)=>(0!==r&&e.insert("\n",{[vo.blotName]:t}),e.insert(n)),new Sa);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(vo.className),n.innerHTML=((e,t,n)=>{if("string"==typeof e.versionString){const r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value})(this.options.hljs,t,e),rl(this.quill.scroll,n,[(e,t)=>{const n=Ol.value(e);return n?t.compose((new Sa).retain(t.length(),{[Il.blotName]:n})):t}],[(e,n)=>e.data.split("\n").reduce((e,n,r)=>(0!==r&&e.insert("\n",{[vo.blotName]:t}),e.insert(n)),n)],new WeakMap)}}jl.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class Pl extends ls{static blotName="table";static tagName="TD";static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Fl()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Pl.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class Hl extends ro{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),r=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===r.table}return!1}optimize(e){super.optimize(e),this.children.forEach(e=>{if(null==e.next)return;const t=e.formats(),n=e.next.formats();if(t.table!==n.table){const t=this.splitAfter(e);t&&t.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class ql extends ro{static blotName="table-body";static tagName="TBODY"}class Ul extends ro{static blotName="table-container";static tagName="TABLE";balanceCells(){const e=this.descendants(Hl),t=e.reduce((e,t)=>Math.max(t.children.length,e),0);e.forEach(e=>{new Array(t-e.children.length).fill(0).forEach(()=>{let t;null!=e.children.head&&(t=Pl.formats(e.children.head.domNode));const n=this.scroll.create(Pl.blotName,t);e.appendChild(n),n.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(ql);null!=t&&null!=t.children.head&&t.children.forEach(t=>{const n=t.children.at(e);null!=n&&n.remove()})}insertColumn(e){const[t]=this.descendant(ql);
2null!=t&&null!=t.children.head&&t.children.forEach(t=>{const n=t.children.at(e),r=Pl.formats(t.children.head.domNode),i=this.scroll.create(Pl.blotName,r);t.insertBefore(i,n)})}insertRow(e){const[t]=this.descendant(ql);if(null==t||null==t.children.head)return;const n=Fl(),r=this.scroll.create(Hl.blotName);t.children.head.children.forEach(()=>{const e=this.scroll.create(Pl.blotName,n);r.appendChild(e)});const i=t.children.at(e);t.insertBefore(r,i)}rows(){const e=this.children.head;return null==e?[]:e.children.map(e=>e)}}function Fl(){return`row-${Math.random().toString(36).slice(2,6)}`}Ul.allowedChildren=[ql],ql.requiredContainer=Ul,ql.allowedChildren=[Hl],Hl.requiredContainer=ql,Hl.allowedChildren=[Pl],Pl.requiredContainer=Hl;var Bl=class extends Ns{static register(){Js.register(Pl),Js.register(Hl),Js.register(ql),Js.register(Ul)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Ul).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();null!=t&&(e.deleteColumn(t.cellOffset()),this.quill.update(Js.sources.USER))}deleteRow(){const[,e]=this.getTable();null!=e&&(e.remove(),this.quill.update(Js.sources.USER))}deleteTable(){const[e]=this.getTable();if(null==e)return;const t=e.offset();e.remove(),this.quill.update(Js.sources.USER),this.quill.setSelection(t,Js.sources.SILENT)}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==Pl.blotName)return[null,null,null,-1];const r=t.parent;return[r.parent.parent,r,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,r,i]=this.getTable(t);if(null==i)return;const a=i.cellOffset();n.insertColumn(a+e),this.quill.update(Js.sources.USER);let s=r.rowOffset();0===e&&(s+=1),this.quill.setSelection(t.index+s,t.length,Js.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,r,i]=this.getTable(t);if(null==i)return;const a=r.rowOffset();n.insertRow(a+e),this.quill.update(Js.sources.USER),e>0?this.quill.setSelection(t,Js.sources.SILENT):this.quill.setSelection(t.index+r.children.length,t.length,Js.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(null==n)return;const r=new Array(e).fill(0).reduce(e=>{const n=new Array(t).fill("\n").join("");return e.insert(n,{table:Fl()})},(new Sa).retain(n.index));this.quill.updateContents(r,Js.sources.USER),this.quill.setSelection(n.index,Js.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Js.events.SCROLL_OPTIMIZE,e=>{e.some(e=>!!["TD","TR","TBODY","TABLE"].includes(e.target.tagName)&&(this.quill.once(Js.events.TEXT_CHANGE,(e,t,n)=>{n===Js.sources.USER&&this.balanceTables()}),!0))})}};const Wl=bs("quill:toolbar");class zl extends Ns{constructor(e,t){if(super(e,t),Array.isArray(this.options.container)){const t=document.createElement("div");t.setAttribute("role","toolbar"),function(e,t){Array.isArray(t[0])||(t=[t]);t.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(e=>{if("string"==typeof e)Kl(n,e);else{const t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(e=>{const t=document.createElement("option");!1!==e?t.setAttribute("value",String(e)):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):Kl(n,t,r)}}),e.appendChild(n)})}(t,this.options.container),e.container?.parentNode?.insertBefore(t,e.container),this.container=t}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(e=>{const t=this.options.handlers?.[e];t&&this.addHandler(e,t)}),Array.from(this.container.querySelectorAll("button, select")).forEac
2h(e=>{this.attach(e)}),this.quill.on(Js.events.EDITOR_CHANGE,()=>{const[e]=this.quill.selection.getRange();this.update(e)})):Wl.error("Container required for toolbar",this.options)}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(e=>0===e.indexOf("ql-"));if(!t)return;if(t=t.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[t]&&null==this.quill.scroll.query(t))return void Wl.warn("ignoring attaching to nonexistent format",t,e);const n="SELECT"===e.tagName?"change":"click";e.addEventListener(n,n=>{let r;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;const t=e.options[e.selectedIndex];r=!t.hasAttribute("selected")&&(t.value||!1)}else r=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),n.preventDefault();this.quill.focus();const[i]=this.quill.selection.getRange();if(null!=this.handlers[t])this.handlers[t].call(this,r);else if(this.quill.scroll.query(t).prototype instanceof ba){if(r=prompt(`Enter ${t}`),!r)return;this.quill.updateContents((new Sa).retain(i.index).delete(i.length).insert({[t]:r}),Js.sources.USER)}else this.quill.format(t,r,Js.sources.USER);this.update(i)}),this.controls.push([t,e])}update(e){const t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[r,i]=n;if("SELECT"===i.tagName){let n=null;if(null==e)n=null;else if(null==t[r])n=i.querySelector("option[selected]");else if(!Array.isArray(t[r])){let e=t[r];"string"==typeof e&&(e=e.replace(/"/g,'\\"')),n=i.querySelector(`option[value="${e}"]`)}null==n?(i.value="",i.selectedIndex=-1):n.selected=!0}else if(null==e)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const e=t[r],n=e===i.getAttribute("value")||null!=e&&e.toString()===i.getAttribute("value")||null==e&&!i.getAttribute("value");i.classList.toggle("ql-active",n),i.setAttribute("aria-pressed",n.toString())}else{const e=null!=t[r];i.classList.toggle("ql-active",e),i.setAttribute("aria-pressed",e.toString())}})}}function Kl(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),null!=n?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}zl.DEFAULTS={},zl.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(null!=e)if(0===e.length){const e=this.quill.getFormat();Object.keys(e).forEach(e=>{null!=this.quill.scroll.query(e,Ji.INLINE)&&this.quill.format(e,!1,Js.sources.USER)})}else this.quill.removeFormat(e.index,e.length,Js.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();"rtl"===e&&null==t?this.quill.format("align","right",Js.sources.USER):e||"right"!==t||this.quill.format("align",!1,Js.sources.USER),this.quill.format("direction",e,Js.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if("+1"===e||"-1"===e){let t="+1"===e?1:-1;"rtl"===n.direction&&(t*=-1),this.quill.format("indent",r+t,Js.sources.USER)}},link(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,Js.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,Js.sources.USER):this.quill.format("list","unchecked",Js.sources.USER):this.quill.format("list",e,Js.sources.USER)}}};const $l='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>';var Gl={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/>
2<path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:$l,"code-block":$l
vendor: 12,565 bytes, line 2
2,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let 
2Vl=0;function Jl(e,t){e.setAttribute(t,`${!("true"===e.getAttribute(t))}`)}var Ql=class{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Jl(this.label,"aria-expanded"),Jl(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.selectItem(t,!0),e.preventDefault();break;case"Escape":this.escape(),e.preventDefault()}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","fal
2se"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${Vl}`,Vl+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),!0===t.selected&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);const t=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}};var Zl=class extends Ql{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(e=>{e.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}};var Xl=class extends Ql{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(e=>{e.innerHTML=t[e.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(null!=n){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}};var ec=class{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(e=>{const{overflowY:t}=getComputedStyle(e,null);return"visible"!==t&&"clip"!==t})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>r.right&&(a=r.right-i.right,this.root.style.left=`${t+a}px`),i.left<r.left&&(a=r.left-i.left,this.root.style.left=`${t+a}px`),i.bottom>r.bottom){const t=i.bottom-i.top,r=e.bottom-e.top+t;this.root.style.top=n-r+"px",this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}};const tc=[!1,"center","right","justify"],nc=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],rc=[!1,"serif","monospace"],ic=["1","2","3",!1],ac=["small",!1,"large","huge"];class sc extends qs{constructor(e,t){super(e,t);const n=t=>{document.body.contains(e.root)?(null==this.tooltip||this.tooltip.root.contains(t.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEac
vendor: 8,527 bytes, line 2
2h(e=>{e.container.contains(t.target)||e.close()})):document.body.removeEventListener("click",n)};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return"toolbar"===e&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(e=>{(e.getAttribute("class")||"").split(/\s+/).forEach(n=>{if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{const r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(e=>{if(e.classList.contains("ql-align")&&(null==e.querySelector("option")&&lc(e,tc),"object"==typeof t.align))return new Xl(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){const n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&lc(e,nc,"background"===n?"#ffffff":"#000000"),new Zl(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?lc(e,rc):e.classList.contains("ql-header")?lc(e,ic):e.classList.contains("ql-size")&&lc(e,ac)),new Ql(e)});this.quill.on(Ms.events.EDITOR_CHANGE,()=>{this.pickers.forEach(e=>{e.update()})})}}sc.DEFAULTS=Vi({},qs.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class oc extends ec{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{"Enter"===e.key?(this.save(),e.preventDefault()):"Escape"===e.key&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Ms.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Ms.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=function(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`;if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`;return e}(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(null!=t){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,Ms.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",Ms.sources.USER),this.quill.setSelection(n+2,Ms.sources.USER)}break}}this.textbox.value="",this.hide()}}function lc(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(t=>{const r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(t)),e.appendChild(r)})}const cc=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class uc extends oc{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,t){super(e,t),this.quill.on(Ms.events.EDITOR_CHANGE,(e,t,n,r)=>{if(e===Ms.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===Ms.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const e=this.quill.getLines(t.index,t.length);if(1===e.length){const e=this.quill.getBounds(t);null!=e&&this.position(e)}else{const n=e[e.length-1],r=this.quill.getIndex(n),i=Math.min(n.length()-1,t.index+t.length-r),a=this.quill.getBounds(new Ls(r,i));null!=a&&this.position(a)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Ms.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(null!=e){const t=this.quill.getBounds(e);null!=t&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",0!==t&&(n.style.marginLeft=-1*t-n.offsetWidth/2+"px"),t}}class dc extends sc{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=cc),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new uc(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Gl),this.buildPickers(e.container.querySelectorAll("select"),Gl))}}dc.DEFAULTS=Vi({},sc.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Js.sources.USER)}}}}});const hc=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class mc extends oc{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(null!=this.linkRange){const e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,Ms.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(Ms.events.SELECTION_CHANGE,(e,t,n)=>{if(null!=e){if(0===e.length&&n===Ms.sources.USER){const[t,n]=this.quill.scroll.descendant(kl,e.index);if(null!=t){this.linkRange=new Ls(e.index-n,t.length());const r=kl.formats(t.domNode);this.preview.textContent=r,this.preview.setAttribute("href",r),this.show();const i=this.quill.getBounds(this.linkRange);return void(null!=i&&this.position(i))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class fc extends sc{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=hc),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Gl),this.buildPickers(e.container.querySelectorAll("select"),Gl),this.tooltip=new mc(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}fc.DEFAULTS=Vi({},sc.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const e=this.quill.getSelection();if(null==e||0===e.length)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,Js.sources.USER)}}}}});var _c=fc;
2fl.register({"attributors/attribute/direction":Mo,"attributors/class/align":uo,"attributors/class/background":po,"attributors/class/color":fo,"attributors/class/direction":ko,"attributors/class/font":So,"attributors/class/size":Ao,"attributors/style/align":ho,"attributors/style/background":go,"attributors/style/color":_o,"attributors/style/direction":Lo,"attributors/style/font":Co,"attributors/style/size":Do},!0),fl.register({"formats/align":uo,"formats/direction":ko,"formats/indent":pl,"formats/background":go,"formats/color":_o,"formats/font":So,"formats/size":Ao,"formats/blockquote":gl,"formats/code-block":vo,"formats/header":yl,"formats/list":bl,"formats/bold":wl,"formats/code":bo,"formats/italic":Ml,"formats/link":kl,"formats/script":Tl,"formats/strike":Sl,"formats/underline":Cl,"formats/formula":Al,"formats/image":Yl,"formats/video":xl,"modules/syntax":jl,"modules/table":Bl,"modules/toolbar":zl,"themes/bubble":dc,"themes/snow":_c,"ui/icons":Gl,"ui/picker":Ql,"ui/icon-picker":Xl,"ui/color-picker":Zl,"ui/tooltip":ec},!0);var pc=fl,gc=class extends s.Component{constructor(e){super(e),this.editingAreaRef=(0,s.createRef)(),this.containerRef=(0,s.createRef)(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp","useSemanticHTML"],this.state={generation:0},this.selection=null,this.onEditorChange=(e,t,n,r)=>{"text-change"===e?this.onEditorChangeText?.(!1!==this.props.useSemanticHTML?this.editor.getSemanticHTML():this.editor.root.innerHTML,t,r,this.unprivilegedEditor):"selection-change"===e&&this.onEditorChangeSelection?.(t,r,this.unprivilegedEditor)};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(s.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.Children.count(e.children)){const t=s.Children.only(e.children);if("textarea"===t?.type)throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const t=this.getEditorContents(),n=e.value??"";this.isEqualValue(n,t)||this.setEditorContents(this.editor,n)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(t=>!ri(e[t],this.props[t]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!ri(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const e=this.editor.getContents(),t=this.editor.getSelection();this.regenerationSnapshot={delta:e,selection:t},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&e.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==t.generation){const{delta:e,selection:t}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const n=this.editor;n.setContents(e),yc(()=>this.setEditorSelection(n,t))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){if(!this.editor)return;this.unhookEditor(this.editor);const e=this.props.modules?.toolbar;if(!("object"==typeof e&&e&&"container"in e&&"string"==typeof e.container||"string"==typeof e)){const e=this.containerRef.current?.querySelector(".ql-toolbar");e&&e.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new pc(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?ri(e.ops,t.ops):ri(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),yc(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){e?.scroll?.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state;return s.Children.count(e)?s.cloneElement(s.Children.only(e),{key:n,ref:this.editingAreaRef}):t?(0,i.jsx)("pre",{ref:this.editingAreaRef},n):(0,i.jsx)("div",{ref:this.editingAreaRef},n)}render(){return(0,i.jsx)("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,children:this.renderEditingArea()},this.state.generation)}onEditorChangeText(e,t,n,r){if(!this.editor)return;const i=this.isDelta(this.value)?r.getContents():!1!==this.props.useSemanticHTML?r.getSemanticHTML():r.getHTML();i!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=i,this.props.onChange?.(e,t,n,r))}onEditorChangeSelection(e,t,n){if(!this.editor)return;const r=this.getEditorSelection(),i=!r&&e,a=r&&!e;ri(e,r)||(this.selection=e,this.props.onChangeSelection?.(e,t,n),i?this.props.onFocus?.(e,t,n):a&&this.props.onBlur?.(r,t,n))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}};function yc(e){Promise.resolve().then(e)}gc.displayName="React Quill",gc.Quill=pc,gc.defaultProps={theme:"snow",modules:{},readOnly:!1};var vc=gc,bc=function(){return bc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bc.apply(this,arguments)},wc="ace-events-description-toolbar",Mc=function(e){var t;return(null===(t=window.prompt(e))||void 0===t?void 0:t.trim())||null},kc=function(e){var t=e.isSourceMode,n=e.onToggleSourceMode;return(0,i.jsxs)("div",bc({id:wc},{children:[(0,i.jsx)("span",bc({className:"ql-formats"},{children:(0,i.jsxs)("select",bc({className:"ql-header",defaultValue:"",disabled:t,"aria-disabled":t},{children:[(0,i.jsx)("option",{value:"1"}),(0,i.jsx)("option",{value:"2"}),(0,i.jsx)("option",{value:"3"}),(0,i.jsx)("option",{value:"4"}),(0,i.jsx)("option",{value:"5"}),(0,i.jsx)("option",{value:"6"}),(0,i.jsx)("option",{value:""})]}))})),(0,i.jsxs)("span",bc({className:"ql-formats"},{children:[(0,i.jsx)("button",{type:"button",className:"ql-bold",disabled:t,"aria-disabled":t}),(0,i.jsx)("button",{type:"button",className:"ql-italic",disabled:t,"aria-disabled":t}),(0,i.jsx)("button",{type:"button",className:"ql-script",value:"sub",disabled:t,"aria-disabled":t}),(0,i.jsx)("button",{type:"button",className:"ql-script",value:"super",disabled:t,"aria-disabled":t})]})),(0,i.jsxs)("span",bc({className:"ql-formats"},{children:[(0,i.jsx)("button",{type:"button",className:"ql-list",value:"ordered",disabled:t,"aria-disabled":t}),(0,i.jsx)("button",{type:"button",className:"ql-list",value:"bullet",disabled:t,"aria-disabled":t})]})),(0,i.jsxs)("span",bc({className:"ql-formats"},{children:[(0,i.jsx)("button",{type:"button",className:"ql-link",disabled:t,"aria-disabled":t}),(0,i.jsx)("button",{type:"button",className:"ql-image",disabled:t,"aria-disabled":t})]})),(0,i.jsx)("span",bc({className:"ql-formats"},{children:(0,i.jsx)("button",{type:"button",className:"ql-clean",disabled:t,"aria-disabled":t})})),(0,i.jsx)("span",bc({className:"ql-formats"},{children:(0,i.jsx)("button",bc({type:"button",className:"ace-events__description-editor__source-toggle","aria-pressed":t,"aria-label":t?"Switch to visual editor":"Edit HTML source",title:t?"Switch to visual editor":"Edit HTML source",onClick:n},{children:(0,i.jsx)("i",{className:t?"iconoir-page-edit":"iconoir-code","aria-hidden":"true"})}))}))]}))},Lc=function(e){var t=e.label,n=e.placeholder,r=e.value,a=e.onValueChanged,o=(0,s.use
2State)(!1),l=o[0],c=o[1],u=(0,s.useCallback)(function(){c(function(e){return!e})},[]),d=(0,s.useMemo)(function(){return{toolbar:{container:"#".concat(wc),handlers:{link:function(e){if(e){var t=Mc("Enter the link URL:");t&&this.quill.format("link",t)}else this.quill.format("link",!1)},image:function(){var e=Mc("Enter the image URL:");if(e){var t=this.quill.getSelection(!0);this.quill.insertEmbed(t.index,"image",e,"user")}}}}}},[]),h=(0,s.useMemo)(function(){return["header","bold","italic","script","list","link","image"]},[]);return(0,i.jsxs)("div",bc({className:"ace-label ace-events__description-editor"},{children:[(0,i.jsx)("p",{children:t}),(0,i.jsxs)("div",bc({className:"ace-events__description-editor__quill".concat(l?" ace-events__description-editor__quill--source":"")},{children:[(0,i.jsx)(kc,{isSourceMode:l,onToggleSourceMode:u}),l?(0,i.jsx)("textarea",{className:"ace-events__description-editor__source ace-input",value:r,onChange:function(e){return a(e.target.value)},placeholder:n,rows:6,"aria-label":t}):(0,i.jsx)(vc,{theme:"snow",value:r,onChange:a,modules:d,formats:h,placeholder:n,useSemanticHTML:!1})]}))]}))},Tc=n(248),Sc=n(8119),Cc=n(4203),Ac=function(){return Ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ac.apply(this,arguments)};function Dc(e){var t=e.isOpen,n=e.title,r=e.children,a=e.submitButtonText,o=e.closeButtonText,l=e.onSubmit,c=e.onCloseCallback,u=e.buttonsOnLeft,d=void 0!==u&&u,h=e.saveFirst,m=["modal__footer",d?"modal__footer--buttons-left":"modal__footer--buttons-right",void 0===h||h?"modal__footer--save-first":"modal__footer--close-first"].join(" "),f=(0,s.useState)(t),_=f[0],p=f[1];(0,s.useEffect)(function(){p(t)},[t]);var g=function(){p(!1),null==c||c()};return _?(0,i.jsx)("div",Ac({className:"modal"},{children:(0,i.jsxs)("div",Ac({className:"modal__dialog"},{children:[(0,i.jsxs)("header",Ac({className:"modal__header"},{children:[(0,i.jsx)("h2",Ac({className:"modal__header__title"},{children:n})),(0,i.jsx)("button",Ac({type:"button",className:"button button--secondary-subtle modal__header__close",onClick:g,"aria-label":o},{children:(0,i.jsx)("i",{className:"icon icon--xl iconoir-xmark"})}))]})),(0,i.jsx)("div",Ac({className:"modal__body"},{children:r})),(0,i.jsxs)("footer",Ac({className:m},{children:[(0,i.jsx)(ft.$,{text:o,onClick:g,className:"button--neutral-subtle modal__footer__close"}),(0,i.jsx)(ft.$,{text:a,onClick:l,className:"button--primary modal__footer__save"})]}))]}))})):null}var Yc=function(){return Yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yc.apply(this,arguments)},Ec=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},xc=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},Oc={eventName:"",eventDescription:"",eventDateTime:"",postalCode:"",city:"",address:"",latitude:"",longitude:"",contactPerson:"",contactEmail:"",contactPhone:""},Ic=function(e,t){return t<=0?[]:(n=function(e,t){var n=new Set,r=function(e){e>=1&&e<=t&&n.add(e)};if(e<=4){for(var i=1;i<=Math.min(3,t);i+=1)r(i);for(i=e-1;i<=e+1;i+=1)r(i)}else{for(i=1;i<=Math.min(2,t);i+=1)r(i);for(i=e;i<=e+1;i+=1)r(i)}t>=2?(r(t-1),r(t)):r(t);for(var a=Array.from(n).sort(function(e,t){return e-t}
2),s=new Set(a),o=0;o<a.length-1;o+=1){var l=a[o],c=a[o+1],u=c-l;if(u>1&&u<=4&&!(e>=5&&l<=2&&c>=e))for(i=l+1;i<c;i+=1)s.add(i)}return Array.from(s).sort(function(e,t){return e-t})}(e,t),r=[],n.forEach(function(e,t){t>0&&e-n[t-1]>1&&r.push("ellipsis"),r.push(e)}),r);var n,r},Nc=["eventName","eventDescription","eventDateTime","postalCode","city","address","coordinates","contactPerson","contactEmail","contactPhone","actions"],Rc=function(e){var t=e.author,n=e.onModalClose,r=(0,s.useMemo)(function(){return function(e){return function(e){return[null==e?void 0:e.tableHeaderEventName,null==e?void 0:e.tableHeaderEventDescription,null==e?void 0:e.tableHeaderEventDateTime,null==e?void 0:e.tableHeaderPostalCode,null==e?void 0:e.tableHeaderCity,null==e?void 0:e.tableHeaderAddress,null==e?void 0:e.tableHeaderCoordinates,null==e?void 0:e.tableHeaderContactPerson,null==e?void 0:e.tableHeaderContactEmail,null==e?void 0:e.tableHeaderContactPhone,null==e?void 0:e.tableHeaderActions]}(e).map(function(e,t){return{key:Nc[t],label:e}})}(t)},[null==t?void 0:t.tableHeaderEventName,null==t?void 0:t.tableHeaderEventDescription,null==t?void 0:t.tableHeaderEventDateTime,null==t?void 0:t.tableHeaderPostalCode,null==t?void 0:t.tableHeaderCity,null==t?void 0:t.tableHeaderAddress,null==t?void 0:t.tableHeaderCoordinates,null==t?void 0:t.tableHeaderContactPerson,null==t?void 0:t.tableHeaderContactEmail,null==t?void 0:t.tableHeaderContactPhone,null==t?void 0:t.tableHeaderActions]),a=(0,s.useState)(""),o=a[0],l=a[1],c=(0,s.useState)(3)[0],u=(0,s.useState)(20)[0],d=(0,s.useState)(1),h=d[0],m=d[1],f=(0,s.useState)(!1),_=f[0],p=f[1],g=(0,s.useState)(null),y=g[0],v=g[1],b=(0,s.useState)(Oc),w=b[0],M=b[1],k=(0,s.use
2State)([]),L=k[0],T=k[1],S=(0,s.useState)(!1),C=S[0],A=S[1],D=(0,s.useState)(null),Y=D[0],E=D[1],x=(0,s.useState)(!1),O=x[0],I=x[1],N=(0,s.useState)(!1),R=N[0],j=N[1],P=(0,s.useState)(!1),H=P[0],q=P[1],U=(0,s.useState)([]),F=U[0],B=U[1],W=(0,s.useState)(""),z=W[0],K=W[1],$=(0,s.useState)(!1),G=$[0],V=$[1],J=(0,s.useState)(!1),Q=J[0],Z=J[1],X=(0,s.useState)(!1),ee=X[0],te=X[1],ne=(0,s.useState)(void 0),re=ne[0],ie=ne[1],ae=(0,s.useState)(void 0),se=ae[0],oe=ae[1],le=function(e,t){M(function(n){var r;return Yc(Yc({},n),((r={})[e]=t,r))})},ce=function(){M(Oc),v(null)},ue=function(e,t){ie(e),oe(t),te(!0)},de=function(){return Ec(void 0,void 0,void 0,function(){var e,t;return xc(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,mt.getAllEvents()];case 1:return e=n.sent(),T(e),[3,3];case 2:return t=n.sent(),console.error("Error loading events:",t),[3,3];case 3:return[2]}})})},he=function(e){e.id?(M(function(e){var t,n,r,i,a,s,o,l,c,u,d,h,m,f,_;return{eventName:null!==(t=e.eventName)&&void 0!==t?t:"",eventDescription:null!==(n=e.eventDescription)&&void 0!==n?n:"",eventDateTime:(_=e.eventDateTime,_?_.length>=16?_.slice(0,16):_:""),postalCode:null!==(r=e.postalCode)&&void 0!==r?r:"",city:null!==(i=e.city)&&void 0!==i?i:"",address:null!==(a=e.address)&&void 0!==a?a:"",latitude:null!==(l=null===(o=null===(s=e.coordinates)||void 0===s?void 0:s[0])||void 0===o?void 0:o.toString())&&void 0!==l?l:"",longitude:null!==(d=null===(u=null===(c=e.coordinates)||void 0===c?void 0:c[1])||void 0===u?void 0:u.toString())&&void 0!==d?d:"",contactPerson:null!==(h=e.contactPerson)&&void 0!==h?h:"",contactEmail:null!==(m=e.contactEmail)&&void 0!==m?m:"",contactPhone:null!==(f=e.contactPhone)&&void 0!==f?f:""}}(e)),v(e.id),p(!0)):console.error("Cannot edit event without id")},me=function(e){E(e),A(!0)};(0,s.useEffect)(function(){de()},[]),(0,s.useEffect)(function(){m(1)},[o]);var fe=(0,s.useMemo)(function(){return function(e,t,n){var r=t.trim().toLowerCase();return r.length<n?e:e.filter(function(e){return Ee.some(function(t){var n=e[t];return null!=n&&String(n).toLowerCase().includes(r)})})}(L,o,c)},[L,o,c]),_e=(0,s.useMemo)(function(){return Ne(fe)},[fe]),pe=Math.max(1,Math.ceil(_e.length/u));(0,s.useEffect)(function(){h>pe&&m(pe)},[h,pe]);var ge=_e.slice((h-1)*u,h*u),ye=Ic(h,pe),ve=function(e){m(Math.min(Math.max(e,1),pe))};return(0,i.jsxs)("div",Yc({className:"ace-events"},{children:[(0,i.jsxs)("article",Yc({className:"ace-events__container"},{children:[(0,i.jsx)("h3",Yc({className:"ace-events_title"},{children:null==t?void 0:t.title})),(0,i.jsxs)("section",Yc({className:"ace-events__content"},{children:[(0,i.jsxs)("div",Yc({className:"ace-events__content__header"},{children:[(0,i.jsxs)("div",Yc({className:"ace-events__content__header__search"},{children:[(0,i.jsx)(Tc.k,{required:!1,placeholder:null==t?void 0:t.searchPlaceholder,label:"",value:o,onValueChanged:function(e){return l(e)}}),o.length>0&&(0,i.jsx)(ft.$,{text:"",icon:_t.I.XMark,iconPosition:_t.f.Start,onClick:function(){return l("")},ariaLabel:"Clear search",className:"button--neutral-subtle button--neutral-subtle--icon-only ace-events__content__header__search__clear"})]})),(0,i.jsxs)("div",Yc({className:"ace-events__content__header__actions"},{children:[(0,i.jsx)(ft.$,{text:null==t?void 0:t.publishEventsButtonText,icon:_t.I.Upload,iconPosition:_t.f.Start,onClick:function(){return I(!0)},disabled:Q||G,className:"button--secondary ace-events__content__header__publish-events"}),(0,i.jsx)(ft.$,{text:null==t?void 0:t.unpublishEventsButtonText,icon:_t.I.Prohibition,iconPosition:_t.f.Start,onClick:function(){return j(!0)},disabled:Q||G,className:"button--secondary ace-events__content__header__unpublish-events"}),(0,i.jsx)(ft.$,{text:(null==t?void 0:t.restoreBackupButtonText)||"Restore backup",icon:_t.I.RefreshDouble,iconPosition:_t.f.Start,onClick:function(){Ec(void 0,void 0,void 0,function(){var e,n;return xc(this,function(r){switch(r.label){case 0:V(!0),K(""),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,mt.listBackups()];case 2:return e=r.sent(),B(e),q(!0),[3,5];case 3:return n=r.sent(),console.error("Error loading backups:",n),ue((null==t?void 0:t.restoreBackupInfoDialogTitle)||"Restore backup",(null==t?void 0:t.restoreBackupErrorMessage)||"Something went wrong while trying to restore the backup."),[3,5];case 4:return V(!1),[7];case 5:return[2]}})})},disabled:Q||G,className:"button--secondary ace-events__content__header__restore-backup"}),(0,i.jsx)(ft.$,{text:null==t?void 0:t.addEventButtonText,icon:_t.I.Plus,iconPosition:_t.f.Start,onClick:function(){ce(),p(!0)},className:"button--primary ace-events__content__header__add-event"})]}))]})),(0,i.jsx)("div",Yc({className:"ace-events__content__body"},{children:(0,i.jsx)("div",Yc({className:"ace-events__table-container"},{children:(0,i.jsxs)("ul",Yc({className:"ace-events__table",role:"table"},{children:[(0,i.jsx)("li",Yc({className:"ace-events__table__header",role:"row"},{children:r.map(function(e){var t=e.key,n=e.label;return(0,i.jsx)("span",Yc({className:"ace-events__table__cell ace-events__table__cell--header",role:"columnheader"},{children:n}),t)})})),_e.length>0?ge.map(function(e,t){return(0,i.jsx)(Ze,{event:e,isHighlighted:t%2==1,searchTerm:o,minSearchLength:c,onEdit:he,onDelete:me},e.id)}):(0,i.jsx)("li",Yc({className:"ace-events__table__empty",role:"row"},{children:(0,i.jsx)("span",Yc({className:"ace-events__table__cell ace-events__table__cell--empty",role:"cell"},{children:null==t?void 0:t.emptyStateMessage}))}))]}))}))})),_e.length>0&&(0,i.jsx)("div",Yc({className:"ace-events__content__footer"},{children:(0,i.jsxs)("nav",Yc({className:"ace-events__pagination","aria-label":"Events pagination"},{children:[(0,i.jsx)(ft.$,{text:"",icon:_t.I.FastArrowLeft,iconPosition:_t.f.Start,onClick:function(){return ve(1)},disabled:1===h,ariaLabel:"First page",className:"button--secondary-subtle button--secondary-subtle--icon-only ace-events__pagination__button"}),(0,i.jsx)(ft.$,{text:"",icon:_t.I.NavArrowLeft,iconPosition:_t.f.Start,onClick:function(){return ve(h-1)},disabled:1===h,ariaLabel:"Previous page",className:"button--secondary-subtle button--secondary-subtle--icon-only ace-events__pagination__button"}),(0,i.jsx)("div",Yc({className:"ace-events__pagination__pages"},{children:ye.map(function(e,t){return"ellipsis"===e?(0,i.jsx)("span",Yc({className:"ace-events__pagination__ellipsis","aria-hidden":"true"},{children:"..."}),"ellipsis-".concat(t)):(0,i.jsx)("button",Yc({type:"button",className:"ace-events__pagination__page".concat(e===h?" ace-events__pagination__page--active":""),onClick:function(){return ve(e)},"aria-label":"Page ".concat(e),"aria-current":e===h?"page":void 0},{children:e}),e)})})),(0,i.jsx)(ft.$,{text:"",icon:_t.I.NavArrowRight,iconPosition:_t.f.Start,onClick:function(){return ve(h+1)},disabled:h===pe,ariaLabel:"Next page",className:"button--secondary-subtle button--secondary-subtle--icon-only ace-events__pagination__button"}),(0,i.jsx)(ft.$,{text:"",icon:_t.I.FastArrowRight,iconPosition:_t.f.Start,onClick:function(){return ve(pe)},disabled:h===pe,ariaLabel:"Last page",className:"button--secondary-subtle button--secondary-subtle--icon-only ace-events__pagination__button"})]}))}))]}))]})),(0,i.jsx)(Dc,Yc({isOpen:_,title:y?null==t?void 0:t.modalEditTitle:null==t?void 0:t.modalTitle,submitButtonText:null==t?void 0:t.saveButtonText,closeButtonText:null==t?void 0:t.cancelButtonText,onSubmit:function(){return Ec(void 0,void 0,void 0,function(){var e,t;return xc(this,function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),e=function(e,t){var n={eventName:e.eventName.trim(),eventDateTime:e.eventDateTime,postalCode:e.postalCode.trim(),city:e.city.trim()};t&&(n.id=t);var r=Je(e.eventDescription);r&&(n.eventDescription=r),e.address.trim()&&(n.address=e.address.trim()),e.contactPerson.trim()&&(n.contactPerson=e.contactPerson.trim()),e.contactEmail.trim()&&(n.contactEmail=e.contactEmail.trim()),e.contactPhone.trim()&&(n.contactPhone=e.contactPhone.trim());var i=Number.parseFloat(e.latitude),a=Number.parseFloat(e.longitude);
2return Number.isNaN(i)||Number.isNaN(a)||(n.coordinates=[i,a]),n}(w,null!=y?y:void 0),y?[4,mt.updateEvent(e)]:[3,2];case 1:return r.sent(),[3,4];case 2:return[4,mt.createEvent(e)];case 3:r.sent(),r.label=4;case 4:return p(!1),ce(),null==n||n(),[4,de()];case 5:return r.sent(),[3,7];case 6:return t=r.sent(),console.error("Error ".concat(y?"updating":"creating"," event:"),t),[3,7];case 7:return[2]}})})},onCloseCallback:function(){p(!1),ce(),null==n||n()}},{children:(0,i.jsxs)("div",Yc({className:"ace-events__modal-form"},{children:[(0,i.jsx)(Tc.k,{required:!0,label:null==t?void 0:t.modalEventNameLabel,placeholder:null==t?void 0:t.modalEventNamePlaceholder,value:w.eventName,onValueChanged:function(e){return le("eventName",e)}}),(0,i.jsx)(Lc,{label:null==t?void 0:t.modalEventDescriptionLabel,placeholder:null==t?void 0:t.modalEventDescriptionPlaceholder,value:w.eventDescription,onValueChanged:function(e){return le("eventDescription",e)}},null!=y?y:"new-event"),(0,i.jsxs)("label",Yc({className:"ace-label ace-events__modal-form__datetime"},{children:[(0,i.jsx)("p",Yc({className:"ace-label--required"},{children:null==t?void 0:t.modalEventDateTimeLabel})),(0,i.jsx)("input",{className:"ace-input",type:"datetime-local",placeholder:null==t?void 0:t.modalEventDateTimePlaceholder,title:null==t?void 0:t.modalEventDateTimePlaceholder,value:w.eventDateTime,onChange:function(e){le("eventDateTime",e.target.value)},required:!0})]})),(0,i.jsx)(Tc.k,{required:!0,label:null==t?void 0:t.modalPostalCodeLabel,placeholder:null==t?void 0:t.modalPostalCodePlaceholder,value:w.postalCode,onValueChanged:function(e){return le("postalCode",e)}}),(0,i.jsx)(Tc.k,{required:!0,label:null==t?void 0:t.modalCityLabel,placeholder:null==t?void 0:t.modalCityPlaceholder,value:w.city,onValueChanged:function(e){return le("city",e)}}),(0,i.jsx)(Tc.k,{required:!1,label:null==t?void 0:t.modalAddressLabel,placeholder:null==t?void 0:t.modalAddressPlaceholder,value:w.address,onValueChanged:function(e){return le("address",e)}}),(0,i.jsxs)("div",Yc({className:"ace-events__modal-form__coordinates"},{children:[(0,i.jsx)(Tc.k,{required:!1,label:null==t?void 0:t.modalLatitudeLabel,placeholder:null==t?void 0:t.modalLatitudePlaceholder,type:"text",inputMode:"decimal",value:w.latitude,onValueChanged:function(e){return le("latitude",e)}}),(0,i.jsx)(Tc.k,{required:!1,label:null==t?void 0:t.modalLongitudeLabel,placeholder:null==t?void 0:t.modalLongitudePlaceholder,type:"text",inputMode:"decimal",value:w.longitude,onValueChanged:function(e){return le("longitude",e)}})]})),(0,i.jsx)(Tc.k,{required:!1,label:null==t?void 0:t.modalContactPersonLabel,placeholder:null==t?void 0:t.modalContactPersonPlaceholder,value:w.contactPerson,onValueChanged:function(e){return le("contactPerson",e)}}),(0,i.jsx)(Tc.k,{required:!1,label:null==t?void 0:t.modalContactEmailLabel,placeholder:null==t?void 0:t.modalContactEmailPlaceholder,type:"email",value:w.contactEmail,onValueChanged:function(e){return le("contactEmail",e)}}),(0,i.jsx)(Tc.k,{required:!1,label:null==t?void 0:t.modalContactPhoneLabel,placeholder:null==t?void 0:t.modalContactPhonePlaceholder,type:"tel",value:w.contactPhone,onValueChanged:function(e){return le("contactPhone",e)}})]}))})),(0,i.jsx)(Sc.T,{isOpen:C,title:null==t?void 0:t.confirmDialogTitle,bodyText:Y?"".concat(null==t?void 0:t.confirmDialogBodyText,' "').concat(Y.eventName,'"?'):"",agreeButtonText:null==t?void 0:t.confirmDialogAgreeButtonText,disagreeButtonText:null==t?void 0:t.confirmDialogDisagreeButtonText,onResult:function(e){A(!1),"agree"===e&&Y?Ec(void 0,void 0,void 0,function(){var e;return xc(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,4,5]),[4,mt.deleteEvent(Y)];case 1:return t.sent(),[4,de()];case 2:return t.sent(),[3,5];case 3:return e=t.sent(),console.error("Error deleting event:",e),[3,5];case 4:return E(null),[7];case 5:return[2]}})}):E(null)}}),(0,i.jsx)(Sc.T,{isOpen:O,title:null==t?void 0:t.publishConfirmDialogTitle,bodyText:null==t?void 0:t.publishConfirmDialogBodyText,agreeButtonText:null==t?void 0:t.publishConfirmDialogAgreeButtonText,disagreeButtonText:null==t?void 0:t.publishConfirmDialogDisagreeButtonText,onResult:function(e){I(!1),"agree"===e&&Ec(void 0,void 0,void 0,function(){var e;return xc(this,function(n){switch(n.label){case 0:Z(!0),n.label=1;case 1:return n.trys.push([1,4,5,6]),[4,mt.exportEvents()];case 2:return 200!==n.sent().status?(ue(null==t?void 0:t.publishInfoDialogTitle,null==t?void 0:t.publishErrorMessage),[2]):[4,mt.activateEvents()];case 3:return 200!==n.sent().status?(ue(null==t?void 0:t.publishInfoDialogTitle,null==t?void 0:t.publishErrorMessage),[2]):(ue(null==t?void 0:t.publishInfoDialogTitle,null==t?void 0:t.publishSuccessMessage),[3,6]);case 4:return e=n.sent(),console.error("Error publishing events:",e),ue(null==t?void 0:t.publishInfoDialogTitle,null==t?void 0:t.publishErrorMessage),[3,6];case 5:return Z(!1),[7];case 6:return[2]}})})}}),(0,i.jsx)(Sc.T,{isOpen:R,title:null==t?void 0:t.unpublishConfirmDialogTitle,bodyText:null==t?void 0:t.unpublishConfirmDialogBodyText,agreeButtonText:null==t?void 0:t.unpublishConfirmDialogAgreeButtonText,disagreeButtonText:null==t?void 0:t.unpublishConfirmDialogDisagreeButtonText,onResult:function(e){j(!1),"agree"===e&&Ec(void 0,void 0,void 0,function(){var e;return xc(this,function(n){switch(n.label){case 0:Z(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,mt.unpublishEvents()];case 2:return 200!==n.sent().status?(ue(null==t?void 0:t.unpublishInfoDialogTitle,null==t?void 0:t.unpublishErrorMessage),[2]):(ue(null==t?void 0:t.unpublishInfoDialogTitle,null==t?void 0:t.unpublishSuccessMessage),[3,5]);case 3:return e=n.sent(),console.error("Error unpublishing events:",e),ue(null==t?void 0:t.unpublishInfoDialogTitle,null==t?void 0:t.unpublishErrorMessage),[3,5];case 4:return Z(!1),[7];case 5:return[2]}})})}}),(0,i.jsx)(Sc.T,Yc({isOpen:H,title:(null==t?void 0:t.restoreBackupConfirmDialogTitle)||"Restore from backup",agreeButtonText:(null==t?void 0:t.restoreBackupConfirmDialogAgreeButtonText)||"OK",disagreeButtonText:(null==t?void 0:t.restoreBackupConfirmDialogDisagreeButtonText)||"Cancel",agreeDisabled:!z,onResult:function(e){q(!1);var n=z;K(""),"agree"===e&&n&&function(e){Ec(void 0,void 0,void 0,function(){var n,r;return xc(this,function(i){switch(i.label){case 0:V(!0),i.label=1;case 1:return i.trys.push([1,4,5,6]),[4,mt.restoreBackup(e)];case 2:return 200!==i.sent().status?(ue((null==t?void 0:t.restoreBackupInfoDialogTitle)||"Restore backup",(null==t?void 0:t.restoreBackupErrorMessage)||"Something went wrong while trying to restore the backup."),[2]):[4,de()];case 3:return i.sent(),n=(null==t?void 0:t.restoreBackupSuccessMessage)||"Backup restored: ",ue((null==t?void 0:t.restoreBackupInfoDialogTitle)||"Restore backup","".concat(n).concat(e)),[3,6];case 4:return r=i.sent(),console.error("Error restoring backup:",r),ue((null==t?void 0:t.restoreBackupInfoDialogTitle)||"Restore backup",(null==t?void 0:t.restoreBackupErrorMessage)||"Something went wrong while trying to restore the backup."),[3,6];case 5:return V(!1),[7];case 6:return[2]}})})}(n)}},{children:F.length>0?(0,i.jsx)("div",Yc({className:"ace-events__restore-backup-select"},{children:(0,i.jsx)(Cc.A,{name:"restoreBackup",value:z,fieldLabel:(null==t?void 0:t.restoreBackupSelectPlaceholder)||"Select a backup",defaultOption:{value:"",label:(null==t?void 0:t.restoreBackupSelectPlaceholder)||"Select a backup"},options:F.map(function(e){return{value:e.name,label:e.name}}),onChange:function(e){var t;K(null!==(t=e[0])&&void 0!==t?t:"")}})})):(0,i.jsx)("p",Yc({className:"confirm-dialog__body__text"},{children:(null==t?void 0:t.restoreBackupEmptyListMessage)||"No backup files are available."}))})),(0,i.jsx)(Sc.T,{isOpen:ee,title:re,bodyText:se,disagreeButtonText:null==t?void 0:t.publishInfoDialogOkButtonText,isInfoDialog:!0,onResult:function(){te(!1),ie(void 0),oe(void 0)}})]}))},jc=n(9940),Pc=n(9153),Hc=n(7342),qc=n(8994),Uc=function(){return Uc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Uc.apply(this,arguments)}
2,Fc=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},Bc=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},Wc=function(e){var t,n,r,a,o,l,c,u=e.publish,d=(0,Pc.A)(),h=(0,s.useRef)({eventName:"",eventDate:void 0,postalCode:"",selectedRadius:"".concat(100)}).current,m=(0,s.useState)(h.eventName),f=m[0],_=m[1],p=(0,s.useState)(h.eventDate),g=p[0],y=p[1],v=(0,s.useState)(h.postalCode),b=v[0],w=v[1],M=(0,s.useState)(h.selectedRadius),k=M[0],L=M[1],T=(0,s.useState)(void 0),S=T[0],C=T[1],A=(0,s.useState)([]),D=A[0],Y=A[1],E=(0,s.useState)(void 0),x=E[0],O=E[1],I=(0,s.useRef)(null),N=(0,s.useRef)(!0);(0,s.useEffect)(function(){Fc(void 0,void 0,void 0,function(){var e,t;return Bc(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,mt.getUpcomingEvents()];case 1:return e=n.sent(),Y(e),[3,3];case 2:return t=n.sent(),console.error("EventsPublish error loading events:",t),[3,3];case 3:return[2]}})}),Fc(void 0,void 0,void 0,function(){var e,t,n;return Bc(this,function(r){switch(r.label){case 0:if(!(e=null==u?void 0:u.centroidCoordinatesFile))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,mt.getCentroidCoordinates(e)];case 2:return t=r.sent(),C(Fe(t)),[3,4];case 3:return n=r.sent(),console.error("EventsPublish error loading centroid coordinates:",n),[3,4];case 4:return[2]}})})},[]),(0,s.useEffect)(function(){var e;if(!(null===(e=window.Granite)||void 0===e?void 0:e.author)){Fc(void 0,void 0,void 0,function(){var e,t,n,r,i,a;return Bc(this,function(s){switch(s.label){case 0:if(!d.isAuthenticated)return[2];s.label=1;case 1:return s.trys.push([1,4,,5]),[4,d.getAccessToken()];case 2:return e=s.sent(),[4,jc.A.getUserInfo(e)];case 3:return t=s.sent(),(n=null===(a=null===(i=null==t?void 0:t.memberInfo)||void 0===i?void 0:i.postCode)||void 0===a?void 0:a.trim())?(w(n),[3,5]):[2];case 4:return r=s.sent(),console.error("EventsPublish error fetching user info:",r),[3,5];case 5:return[2]}})})}},[d.isAuthenticated,h]);var R=(null!==(t=null==u?void 0:u.range)&&void 0!==t?t:[]).map(function(e){return{value:"".concat(e),label:"".concat(e," Km")}}),j=(0,s.useMemo)(function(){return f!==h.eventName||b!==h.postalCode||k!==h.selectedRadius||(e=g,t=h.eventDate,!(!e&&!t||e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()));var e,t},[h,g,f,b,k]),P=(0,s.useMemo)(function(){return function(e,t){var n,r=function(e,t,n){void 0===n&&(n=2);var r=t.trim().toLowerCase();return r.length<n?e:e.filter(function(e){return e.eventName.toLowerCase().includes(r)})}($e(e,t.eventDate),t.eventName),i=(null===(n=t.postalCode)||void 0===n?void 0:n.trim())&&void 0!==t.radiusKm?Ke(r,{postalCode:t.postalCode,radiusKm:t.radiusKm,centroidCoordinates:t.centroidCoordinates}):r;return Ne(i)}(D,{eventDate:g,eventName:f,postalCode:b,radiusKm:k?Number(k):void 0,centroidCoordinates:S})},[D,g,f,b,k,S]),H=0===P.length;(0,s.useLayoutEffect)(function(){var e;N.current?N.current=!1:null===(e=I.current)||void 0===e||e.scrollTo({top:0})},[f,g,b,k]);var q=(0,s.useCallback)(function(){var e=I.current;if(e&&!H){var t=Array.from(e.querySelectorAll(".ace-events__event"));O(function(e,t){return e.slice(0,t).reduce(function(e,t){return e+t.offsetHeight},0)+48}(t,3))}else O(void 0)},[H,P]);(0,s.useLayoutEffect)(function(){q()},[q]),(0,s.useEffect)(function(){var e=I.current;if(e&&!H){var t=new ResizeObserver(function(){q()});return t.observe(e),e.querySelectorAll(".ace-events__event").forEach(function(e){t.observe(e)}),function(){return t.disconnect()}}},[H,P,q]);var U=(0,s.useCallback)(function(e){return Fc(void 0,void 0,void 0,function(){return Bc(this,function(t){return[2,Ue(S,e)]})})},[S]);return(0,i.jsx)("div",Uc({className:"ace-events ace-events--publish"},{children:(0,i.jsxs)("article",Uc({className:"ace-events__container"},{children:[(0,i.jsx)("h3",Uc({className:"ace-events_title"},{children:null==u?void 0:u.title})),(0,i.jsxs)("section",Uc({className:"ace-events__content"},{children:[(0,i.jsx)("div",Uc({className:"ace-events__content__header"},{children:(null===(n=null==u?void 0:u.headerImage)||void 0===n?void 0:n.url)&&(0,i.jsx)("div",Uc({className:"content-image ace-events__publish-header-image"},{children:(0,i.jsx)("img",{className:"content-image__image",src:u.headerImage.url,alt:u.headerImage.alt})}))})),(0,i.jsx)("div",Uc({className:"ace-events__content__body".concat((null===(r=null==u?void 0:u.headerImage)||void 0===r?void 0:r.url)?" ace-events__content__body--has-top-margin":"")},{children:(0,i.jsxs)("div",Uc({className:"ace-events__publish-search"},{children:[(0,i.jsxs)("div",Uc({className:"ace-events__publish-search__filters"},{children:[(0,i.jsx)(Tc.k,{required:!1,label:"",placeholder:null!==(a=null==u?void 0:u.eventNamePlaceholder)&&void 0!==a?a:"",value:f,onValueChanged:_}),(0,i.jsxs)("div",Uc({className:"ace-events__publish-search__date-field"},{children:[!g&&(null==u?void 0:u.datePlaceholder)&&(0,i.jsx)("span",Uc({className:"ace-events__publish-search__date-placeholder","aria-hidden":"true"},{children:u.datePlaceholder})),(0,i.jsx)(qc.J,{required:!1,showRequired:!1,label:"",date:g,onChange:y,format:"MM.yyyy",maxDetail:"year",showLeadingZeros:!0})]})),(0,i.jsx)(Hc.R,{required:!1,label:"",placeholder:null!==(o=null==u?void 0:u.postalCodePlaceholder)&&void 0!==o?o:"",value:b,onValueChanged:w,suggestionMinLength:2,maxSuggestions:10,onGetSuggestions:U}),(null==u?void 0:u.range)&&u.range.length>0&&(0,i.jsx)(Cc.A,{value:k,name:"radius",fieldLabel:"",onChange:function(e){return L(e[0])},options:R,defaultOption:{value:"".concat(100),label:null!==(l=u.radiu
2sPlaceholder)&&void 0!==l?l:""}})]})),(0,i.jsxs)("div",Uc({className:"ace-events__publish-search__actions"},{children:[(0,i.jsx)("div",Uc({className:"ace-events__publish-search__actions-center"},{children:(0,i.jsx)(ft.$,{text:null==u?void 0:u.searchButtonText,onClick:function(){var e,t,n=I.current;if(n){var r=null!==(t=null===(e=document.querySelector(".ace-header"))||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==t?t:0,i=n.getBoundingClientRect().top+window.scrollY-r-48;window.scrollTo({top:i})}},className:"button--primary button__anchor--full-width ace-events__publish-search__submit"})})),(0,i.jsx)("div",Uc({className:"ace-events__publish-search__actions-end".concat(j?"":" ace-events__publish-search__actions-end--hidden")},{children:(0,i.jsx)(ft.$,{text:null!==(c=null==u?void 0:u.resetButtonText)&&void 0!==c?c:"Filter zurücksetzen",onClick:function(){_(h.eventName),w(h.postalCode),y(h.eventDate),L(h.selectedRadius)},className:"button--neutral-subtle button__anchor text--underline"})}))]})),(0,i.jsxs)("div",Uc({className:"ace-events__content__body__list__counter"},{children:[P.length,(null==u?void 0:u.eventsCounterSuffix)&&" ".concat(u.eventsCounterSuffix)]})),(0,i.jsx)("div",Uc({ref:I,className:"ace-events__content__body__list".concat(H?" ace-events__content__body__list--empty":""),style:void 0!==x?{maxHeight:"".concat(x,"px")}:void 0},{children:H?(0,i.jsx)("p",Uc({className:"ace-events__content__body__list__empty-message"},{children:null==u?void 0:u.emptyEventListMessage})):P.map(function(e){return function(e){var t,n;return(0,i.jsxs)("article",Uc({className:"ace-events__event"},{children:[(0,i.jsx)("div",Uc({className:"ace-events__event__icon"},{children:(0,i.jsx)("i",{className:"iconoir-calendar","aria-hidden":"true"})})),(0,i.jsxs)("div",Uc({className:"ace-events__event__content"},{children:[(0,i.jsx)("div",Uc({className:"ace-events__event__date"},{children:je(e.eventDateTime)})),(0,i.jsx)("h4",Uc({className:"ace-events__event__name"},{children:e.eventName})),(0,i.jsx)("div",{className:"ace-events__event__description",dangerouslySetInnerHTML:{__html:Je(null!==(t=e.eventDescription)&&void 0!==t?t:"")||"—"}}),(0,i.jsx)("div",Uc({className:"ace-events__event__location"},{children:He(e)})),(0,i.jsx)("div",Uc({className:"ace-events__event__contact"},{children:qe(e)}))]}))]}),null!==(n=e.id)&&void 0!==n?n:"".concat(e.eventDateTime,"-").concat(e.eventName))}(e)})}))]}))}))]}))]}))}))};var zc=function(e){return(0,i.jsx)(a.O,{children:"true"===e.wcmmode||"edit"===e.wcmmode?(0,i.jsx)(Rc,{author:e.author}):(0,i.jsx)(Wc,{publish:e.publish})})}},1921:function(e,t,n){"use strict";var r,i;n.d(t,{I:function(){return r},f:function(){return i}}),function(e){e.NavArrowLeft="nav-arrow-left",e.NavArrowRight="nav-arrow-right",e.FastArrowLeft="fast-arrow-left",e.FastArrowRight="fast-arrow-right",e.Plus="plus",e.Upload="upload",e.Prohibition="prohibition",e.XMark="xmark",e.MapPin="map-pin",e.Check="check",e.EditPencil="edit-pencil",e.Trash="trash",e.RefreshDouble="refresh-double"}(r||(r={})),function(e){e[e.Start=0]="Start",e[e.End=1]="End"}(i||(i={}))},2857:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(4848),i=n(1921),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function s(e){var t=e.text,n=e.onClick,s=e.type,o=void 0===s?"button":s,l=e.className,c=e.small,u=void 0!==c&&c,d=e.icon,h=e.iconPosition,m=void 0===h?i.f.End:h,f=e.disabled,_=e.ariaLabel;return(0,r.jsxs)("button",a({type:o,onClick:n,disabled:f,"aria-label":_,className:"button ".concat(u?"button--small":""," ").concat(l||"").trim()},{children:[d&&m===i.f.Start&&(0,r.jsx)("i",{className:"iconoir-".concat(d," button__icon--left")}),(0,r.jsx)("span",a({className:"button__label-wrapper ".concat(u?"button__label-wrapper--small":"")},{children:t})),d&&m===i.f.End&&(0,r.jsx)("i",{className:"iconoir-".concat(d," button__icon--right")})]}))}},8119:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var r=n(4848),i=n(6540),a=n(2857),s=n(1921),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function l(e){return"left"===e?s.f.Start:s.f.End}function c(e){var t=e.isOpen,n=e.smallTitle,s=e.title,c=e.bodyText,u=e.bodyHtml,d=e.agreeButtonText,h=e.disagreeButtonText,m=e.isInfoDialog,f
2=void 0!==m&&m,_=e.redirectButtonText,p=e.redirectButtonUrl,g=e.titleTextJustify,y=e.okButtonStyle,v=e.cancelButtonStyle,b=e.redirectButtonStyle,w=e.okButtonIcon,M=e.cancelButtonIcon,k=e.redirectButtonIcon,L=e.okButtonIconPosition,T=e.cancelButtonIconPosition,S=e.redirectButtonIconPosition,C=e.wide,A=void 0!==C&&C,D=e.agreeDisabled,Y=void 0!==D&&D,E=e.children,x=e.onResult,O=(0,i.useState)(t),I=O[0],N=O[1];(0,i.useEffect)(function(){N(t)},[t]);var R=function(){N(!1),x("disagree")};if(!I)return null;var j,P=Boolean(h),H=Boolean(_)&&Boolean(p),q=["confirm-dialog__header__titles",(j=g,j&&"left"!==j?"center"===j||"middle"===j?"confirm-dialog__header__titles--center":"right"===j?"confirm-dialog__header__titles--right":"":"")].filter(Boolean).join(" "),U=[y||"button--primary","confirm-dialog__footer__agree"].join(" "),F=[v||"button--neutral-subtle","confirm-dialog__footer__disagree"].join(" "),B=[b||"button--neutral-subtle","confirm-dialog__footer__redirect"].join(" "),W=["confirm-dialog",A?"confirm-dialog--wide":""].filter(
2Boolean).join(" ");return(0,r.jsx)("div",o({className:W},{children:(0,r.jsxs)("div",o({className:"confirm-dialog__dialog"},{children:[(0,r.jsxs)("header",o({className:"confirm-dialog__header"},{children:[(0,r.jsxs)("div",o({className:q},{children:[n?(0,r.jsx)("p",o({className:"confirm-dialog__header__small-title"},{children:n})):null,(0,r.jsx)("h2",o({className:"confirm-dialog__header__title"},{children:s}))]})),(0,r.jsx)("button",o({type:"button",className:"button button--secondary-subtle confirm-dialog__header__close",onClick:R,"aria-label":h||"Close"},{children:(0,r.jsx)("i",{className:"icon icon--xl iconoir-xmark"})}))]})),(0,r.jsx)("div",o({className:"confirm-dialog__body"},{children:E?(0,r.jsx)("div",o({className:"confirm-dialog__body__content"},{children:E})):u?(0,r.jsx)("div",{className:"confirm-dialog__body__text",dangerouslySetInnerHTML:{__html:u}}):(0,r.jsx)("p",o({className:"confirm-dialog__body__text"},{children:c}))})),(0,r.jsxs)("footer",o({className:"confirm-dialog__footer confirm-dialog__footer--buttons-right".concat(f?"":" confirm-dialog__footer--disagree-first").concat(H?" confirm-dialog__footer--has-redirect":"").trim()},{children:[H?(0,r.jsx)(a.$,{text:_,onClick:function(){var e;if(p){var t=(null===(e=window.AppSelector)||void 0===e?void 0:e.addAppSelector(p))||p;window.location.href=t}},className:B,icon:k,iconPosition:l(S)}):null,P?(0,r.jsx)(a.$,{text:h,onClick:R,className:F,icon:M,iconPosition:l(T)}):null,!f&&(0,r.jsx)(a.$,{text:d,onClick:function(){N(!1),x("agree")},className:U,icon:w,iconPosition:l(L),disabled:Y})]}))]}))}))}},4203:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(4848),i=n(6540),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function s(e){var t,n=(0,i.useState)(null),s=n[0],o=n[1];return(0,r.jsxs)("label",a({className:"ace-label"},{children:[(0,r.jsx)("p",a({className:e.required?"ace-label--required":"ace-label--not-required"},{children:e.fieldLabel})),(0,r.jsxs)("div",a({className:"ace-input__select"},{children:[(0,r.jsxs)("select",a({className:"ace-input ace-input--light ace-input__select-control".concat(s?" ace-input--error":""),name:e.name,onChange:function(t){var n=e.multiple?Array.from(t.target.selectedOptions,function(e){return e.value}):t.target.value;e.onChange(Array.isArray(n)?n:[n])},onInvalid:function(t){t.preventDefault(),t.target.value||o(e.requiredErrorMessage)},required:e.required,value:e.value,onBlur:function(t){e.validateOnBlur&&(t.target.value?o(null):t.target.required?o(e.requiredErrorMessage):o(null))},multiple:e.multiple,size:e.size},{children:[(null===(t=e.defaultOption)||void 0===t?void 0:t.label)?(0,r.jsx)("option",a({value:e.defaultOption.value||""},{children:e.defaultOption.label})):"",e.options&&e.options.map(function(e){return(0,r.jsx)("option",a({value:e.value||""},{children:e.label}),e.value)})]})),!e.multiple&&(0,r.jsx)("i",{className:"iconoir-nav-arrow-down ace-input__select-icon","aria-hidden":"true"})]})),(0,r.jsx)("p",a({className:"ace-input__error",style:{visibility:s?"visible":"hidden"}},{children:s}))]}))}},7342:function(e,t,n){"use strict";n.d(t,{R:function(){return h}});var r=n(4848),i=n(6540),a=n(248),s=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function o(e,t){var n=(0,i.useRef)();return(0,i.useEffect)(function(){n.current=t},[t]),(0,i.useMemo)(function(){return function(e,t){void 0===t&&(t=300);var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){e.apply(void 0,r)},t)};return r}(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];null===(e=n.current)||void 0===e||e.call.apply(e,s([n],t,!1))},e)},[e])}var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)}
2,c=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function h(e){var t=this,n=e.onGetSuggestions,s=e.suggestionMinLength,h=e.maxSuggestions,m=d(e,["onGetSuggestions","suggestionMinLength","maxSuggestions"]),f=(0,i.useState)([]),_=f[0],p=f[1],g=function(){p([])};function y(e){return c(this,void 0,void 0,function(){var t,r,i;return u(this,function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),s&&e&&e.trim().length>=s?[4,n(e)]:[3,2];case 1:return t=a.sent(),1===(r=void 0!==h?t.slice(0,h):t).length&&r[0]===e?g():p(r),[3,3];case 2:g(),a.label=3;case 3:return[3,5];case 4:return i=a.sent(),console.error(i),g(),[3,5];case 5:return[2]}})})}var v=o(300,function(e){return c(t,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,y(e)];case 1:return t.sent(),[2]}})})});return(0,r.jsxs)("div",l({className:"autocomplete-wrapper",onBlur:g,tabIndex:-1},{children:[(0,r.jsx)(a.k,l({},m,{onValueChanged:function(e){return c(t,void 0,void 0,function(){return u(this,function(t){return v(e),m.onValueChanged(e),[2]})})},onFocus:function(){return y(m.value)}})),_.length>0&&(0,r.jsx)("ul",l({className:"autocomplete-dropdown"},{children:_.map(function(e,t){return(0,r.jsx)("li",l({className:"autocomplete-item",onMouseDown:function(){m.onValueChanged(e),p([])}},{children:e}),t)})}))]}))}},8994:function(e,t,n){"use strict";n.d(t,{J:function(){return _r}});var r=n(4848),i=n(6540),a=n(961),s=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),["onKeyDown","onKeyPress","onKeyUp"],!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function l(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var c=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=" "),r+=t);return r},u=n(119);function d(e){return"string"==typeof e}function h(e,t,n){return n.indexOf(e)===t}function m(e){return-1===e.indexOf(",")?e:e.split(",")}function f(e){if(!e)return e;if("C"===e||"posix"===e||"POSIX"===e)return"en-US";if(-1!==e.indexOf(".")){var t=e.split(".")[0];return f(void 0===t?"":t)}if(-1!==e.indexOf("@")){var n=e.split("@")[0];return f(void 0===n?"":n)}if(-1===e.indexOf("-")||(r=e).toLowerCase()!==r)return e;var r,i=e.split("-"),a=i[0],s=i[1],o=void 0===s?"":s;return"".concat(a,"-").concat(o.toUpperCase())}var _=u(function(e){var t=void 0===e?{}:e,n=t.useFallbackLocale,r=void 0===n||n,i=t.fallbackLocale,a=void 0===i?"en-US":i,s=[];if("undefined"!=typeof navigator){for(var o=[],l=0,c=navigator.languages||[];l<c.length;l++){var u=c[l];o=o.concat(m(u))}var _=navigator.language,p=_?m(_):_;s=s.concat(o,p)}return r&&s.push(a),s.filter(d).map(f).filter(h)},{cacheKey:JSON.stringify});var p=u(function(e){return _(e)[0]||null},{cacheKey:JSON.stringify}),g=p;function y(e,t,n){return function(r,i){void 0===i&&(i=n);var a=e(r)+i;return t(a)}}function v(e){return function(t){return new Date(e(t).getTime()-1)}}function b(e,t){return function(n){return[e(n),t(n)]}}function w(e){if(e instanceof Date)return e.getFullYear();if("number"==typeof e)return e;var t=parseInt(e,10);if("string"==typeof e&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function M(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function k(e){if(e instanceof Date)return e.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(e,"."))}function L(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function T(e){var t=w(e),n=t+(1-t)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var S=y(w,T,-100),C=y(w,T,100),A=v(C),D=y(w,A,-100),Y=(y(w,A,100),b(T,A));function E(e){var t=w(e),n=t+(1-t)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var x=y(w,E,-10),O=y(w,E,10),I=v(O),N=y(w,I,-10),R=(y(w,I,10),b(E,I));function j(e){var t=w(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var P=y(w,j,-1),H=y(w,j,1),q=v(H),U=y(w,q,-1),F=(y(w,q,1),b(j,q));function B(e,t){return function(n,r){void 0===r&&(r=t);var i=w(n),a=M(n)+r,s=new Date;return s.setFullYear(i,a,1),s.setHours(0,0,0,0),e(s)}}function W(e){var t=w(e),n=M(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var z=B(W,-1),K=B(W,1),$=v(K),G=B($,-1),V=(B($,1),b(W,$));function J(e,t){return function(n,r){void 0===r&&(r=t);var i=w(n),a=M(n),s=L(n)+r,o=new Date;return o.setFullYear(i,a,s),o.setHours(0,0,0,0),e(o)}}function Q(e){var t=w(e),n=M(e),r=L(e),i=new Date;return i.setFullYear(t,n,r),i.setHours(0,0,0,0),i}J(Q,-1);var Z=v(J(Q,1)),X=(J(Z,-1),J(Z,1),b(Q,Z));function ee(e){return L($(e))}function te(e,t){void 0===t&&(t=2);var n="".concat(e);return n.length>=t?e:"0000".concat(n).slice(-t)}function ne(e){var t=te(w(e),4),n=te(k(e));return"".concat(t,"-").concat(n)}function re(e){var t=te(w(e),4),n=te(k(e)),r=te(L(e));return"".concat(t,"-").concat(n,"-").concat(r)}var ie="gregory",ae="hebrew",se="islamic",oe="iso8601",le={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-B
2R"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},ce=[0,1,2,3,4,5,6],ue=new Map;function de(e){return function(t,n){return function(e){return function(t,n){var r=t||g();ue.has(r)||ue.set(r,new Map);var i=ue.get(r);return i.has(e)||i.set(e,new Intl.DateTimeFormat(r||void 0,e).format),i.get(e)(n)}}(e)(t,function(e){var t=new Date(e);return new Date(t.setHours(12))}(n))}}de({day:"numeric",month:"numeric",year:"numeric"});var he=de({day:"numeric"}),me=de({day:"numeric",month:"long",year:"numeric"}),fe=de({month:"long"}),_e=de({month:"long",year:"numeric"}),pe=de({weekday:"short"}),ge=de({weekday:"long"}),ye=de({year:"numeric"}),ve=ce[0],be=ce[5],we=ce[6];function Me(e,t){void 0===t&&(t=oe);var n=e.getDay();switch(t){case oe:return(n+6)%7;case se:return(n+1)%7;case ae:case ie:return n;default:throw new Error("Unsupported calendar type.")}}function ke(e,t){void 0===t&&(t=oe);var n=w(e),r=M(e),i=e.getDate()-Me(e,t);return new Date(n,r,i)}function Le(e,t){switch(e){case"century":return T(t);case"decade":return E(t);case"year":return j(t);case"month":return W(t);case"day":return Q(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Te(e,t){switch(e){case"century":return C(t);case"decade":return O(t);case"year":return H(t);case"month":return K(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Se(e,t){switch(e){case"century":return A(t);case"decade":return I(t);case"year":return q(t);case"month":return $(t);case"day":return Z(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Ce(e,t){switch(e){case"century":return Y(t);case"decade":return R(t);case"year":return F(t);case"month":return V(t);case"day":return X(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Ae(e,t,n){return n.map(function(n){return(t||ye)(e,n)}).join(" – ")}function De(e,t,n){return Ae(e,t,R(n))}function Ye(e){return e.getDay()===(new Date).getDay()}function Ee(e,t){void 0===t&&(t=oe);var n=e.getDay();switch(t){case se:case ae:return n===be||n===we;case oe:case ie:return n===we||n===ve;default:throw new Error("Unsupported calendar type.")}}var xe="react-calendar__navigation";function Oe(e){var t,n=e.activeStartDate,i=e.drillUp,a=e.formatMonthYear,s=void 0===a?_e:a,o=e.formatYear,l=void 0===o?ye:o,c=e.locale,u=e.maxDate,d=e.minDate,h=e.navigationAriaLabel,m=void 0===h?"":h,f=e.navigationAriaLive,_=e.navigationLabel,g=e.next2AriaLabel,y=void 0===g?"":g,v=e.next2Label,b=void 0===v?"»":v,w=e.nextAriaLabel,M=void 0===w?"":w,k=e.nextLabel,L=void 0===k?"›":k,T=e.prev2AriaLabel,C=void 0===T?"":T,A=e.prev2Label,E=void 0===A?"«":A,I=e.prevAriaLabel,R=void 0===I?"":I,j=e.prevLabel,q=void 0===j?"‹":j,F=e.setActiveStartDate,B=e.showDoubleView,W=e.view,$=e.views.indexOf(W)>0,V="century"!==W,J=function(e,t){switch(e){case"century":return S(t);case"decade":return x(t);case"year":return P(t);case"month":return z(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,n),Q=V?function(e,t){switch(e){case"decade":return x(t,-100);case"year":return P(t,-10);case"month":return z(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,n):void 0,Z=Te(W,n),X=V?function(e,t){switch(e){case"decade":return O(t,100);case"year":return H(t,10);case"month":return K(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,n):void 0,ee=function(){if(J.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"century":return D(t);case"decade":return N(t);case"year":return U(t);case"month":return G(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,n);return d&&d>=e}(),te=V&&function(){if(Q.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"decade":return N(t,-100);case"year":return U(t,-10);case"month":return G(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,n);return d&&d>=e}(),ne=u&&u<Z,re=V&&u&&u<X;function ie(e){var t=function(){switch(W){case"century":return function(e,t,n){return Ae(e,t,Y(n))}(c,l,e);case"decade":return De(c,l,e);case"year":return l(c,e);case"month":return s(c,e);default:throw new Error("Invalid view: ".concat(W,"."))}}();return _?_({date:e,label:t,locale:c||p()||void 0,view:W}):t}return(0,r.jsxs)("div",{className:xe,children:[null!==E&&V?(0,r.jsx)("button",{"aria-label":C,className:"".concat(xe,"__arrow ").concat(xe,"__prev2-button"),disabled:te,onClick:function(){F(Q,"prev2")},type:"button",children:E}):null,null!==q&&(0,r.jsx)("button",{"aria-label":R,className:"".concat(xe,"__arrow ").concat(xe,"__prev-button"),disabled:ee,onClick:function(){F(J,"prev")},type:"button",children:q}),(t="".concat(xe,"__label"),(0,r.jsxs)("button",{"aria-label":m,"aria-live":f,className:t,disabled:!$,onClick:i,style:{flexGrow:1},type:"button",children:[(0,r.jsx)("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--from"),children:ie(n)}),B?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"".concat(t,"__divider"),children:" – "}),(0,r.jsx)("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--to"),children:ie(Z)})]}):null]})),null!==L&&(0,r.jsx)("button",{"aria-label":M,className:"".concat(xe,"__arrow ").concat(xe,"__next-button"),disabled:ne,onClick:function(){F(Z,"next")},type:"button",children:L}),null!==b&&V?(0,r.jsx)("button",{"aria-label":y,className:"".concat(xe,"__arrow ").concat(xe,"__next2-button"),disabled:re,onClick:function(){F(X,"next2")},type:"button",children:b}):null]})}var Ie=function(){return Ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ie.apply(this,arguments)},Ne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Re(e){return"".concat(e,"%")}function je(e){var t=e.children,n=e.className,a=e.count,s=e.direction,o=e.offset,l=e.style,c=e.wrap,u=Ne(e,["children","className","count","direction","offset","style","wrap"]);return(0,r.jsx)("div",Ie({className:n,style:Ie({display:"flex",flexDirection:s,flexWrap:c?"wrap":"nowrap"},l)},u,{children:i.Children.map(t,function(e,t){var n=o&&0===t?Re(100*o/a):null;return(0,i.cloneElement)(e,Ie(Ie({},e.props),{style:{flexBasis:Re(100/a),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:n,marginInlineStart:n,marginInlineEnd:0}}))})}))}function Pe(e,t){return t[0]<=e&&t[1]>=e}function He(e,t){return Pe(e[0],t)||Pe(e[1],t)}function qe(e,t,n){var r=[];if(He(t,e)){r.push(n);var i=Pe(e[0],t),a=Pe(e[1],t);i&&r.push("".concat(n,"Start")),a&&r.push("".concat(n,"End")),i&&a&&r.push("".concat(n,"BothEnds"))}return r}function Ue(e){if(!e)throw new Error("args is required");var t=e.value,n=e.date,r=e.hover,i="react-calendar__tile",a=[i];if(!n)return a;var s=new Date,o=function(){if(Array.isArray(n))return n;var t=e.dateType;if(!t)throw new Error("dateType is required when date is not an array of two dates");return Ce(t,n)}();if(Pe(s,o)&&a.push("".concat(i,"--now")),!t||!function(e){return Array.isArray(e)?null!==e[0]&&null!==e[1]:null!==e}(t))return a;var l,c,u=function(){if(Array.isArray(t))return t;var n=e.valueType;if(!n)throw new Error("valueType is required when value is not an array of two dates");return Ce(n,t)}();c=o,(l=u)[0]<=c[0]&&l[1]>=c[1]?a.push("".concat(i,"--active")):He(u,o)&&a.push("".concat(i,"--hasActive"));var d=qe(u,o,"".concat(i,"--range"));a.push.apply(a,d);var h=Array.isArray(t)?t:[t];if(r&&1===h.length){var m=qe(r>u[0]?[u[0],r]:[r,u[0]],o,"".concat(i,"--hover"));a.push.apply(a,m)}return a}function Fe(e){for(var t=e.className,n=e.count,i=void 0===n?3:n,a=e.dateTransform,s=e.dateType,o=e.end,l=e.hover,c=e.offset,u=e.renderTile,d=e.start,h=e.step,m=void 0===h?1:h,f=e.value,_=e.valueType,p=[],g=d;g<=o;g+=m){var y=a(g);p.push(u({classes:Ue({date:y,dateType:s,hover:l,value:f,valueType:_}),date:y}))}return(0,r.jsx)(je,{className:t,count:i,offset:c,wrap:!0,children:p})}function Be(e){var t=e.activeStartDate,n=e.children,a=e.classes,s=e.date,o=e.formatAbbr,l=e.locale,u=e.maxDate,d=e.maxDateTransform,h=e.minDate,m=e.minDateTransform,f=e.onClick,_=e.onMouseOver,p=e.style,g=e.tileClassName,y=e.tileContent,v=e.tileDisabled,b=e.view,w=(0,i.useMemo)(function(){return"function"==typeof g?g({activeStartDate:t,date:s,view:b}):g},[t,s,g,b]),M=(0,i.useMemo)(function(){return"function"==typeof y?y({activeStartDate:t,date:s,view:b}):y},[t,s,y,b]);return(0,r.jsxs)("button",{className:c(a,w),disabled:h&&m(h)>s||u&&d(u)<s||(null==v?void 0:v({activeStartDate:t,date:s,view:b})),onClick:f?function(e){return f(s,e)}:void 0,onFocus:_?function(){return _(s)}:void 0,onMouseOver:_?function(){return _(s)}:void 0,style:p,type:"button",children:[o?(0,r.jsx)("abbr",{"aria-label":o(l,s),children:n}):n,M]})}var We=function(){return We=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},We.apply(this,arguments)},ze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ke="react-calendar__century-view__decades__decade";function $e(e){var t=e.classes,n=void 0===t?[]:t,i=e.currentCentury,a=e.formatYear,s=void 0===a?ye:a,o=ze(e,["classes","currentCentury","formatYear"]),l=o.date,c=o.locale,u=[];return n&&u.push.apply(u,n),Ke&&u.push(Ke),T(l).getFullYear()!==i&&u.push("".concat(Ke,"--neighboringCentury")),(0,r.jsx)(Be,We({},o,{classes:u,maxDateTransform:I,minDateTransform:E,view:"century",children:De(c,s,l)}))}var Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ge.apply(this,arguments)},Ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Je(e){var t=e.activeStartDate,n=e.hover,i=e.showNeighboringCentury,a=e.value,s=e.valueType,o=Ve(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),l=w(T(t)),c=l+(i?119:99);return(0,r.jsx)(Fe,{className:"react-calendar__century-view__decades",dateTransform:E,dateType:"decade",end:c,hover:n,renderTile:function(e){var n=e.date,i=Ve(e,["date"]);return(0,r.jsx)($e,Ge({},o,i,{activeStartDate:t,currentCentury:l,date:n}),n.getTime())},start:l,step:10,value:a,valueType:s})}var Qe=function(){return Qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qe.apply(this,arguments)};function Ze(e){return(0,r.jsx)("div",{className:"react-calendar__century-view",children:(0,r.jsx)(Je,Qe({},e))})}var Xe=function(){return Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xe.apply(this,arguments)},et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},tt="react-calendar__decade-view__years__year";function nt(e){var t=e.classes,n=void 0===t?[]:t,i=e.currentDecade,a=e.formatYear,s=void 0===a?ye:a,o=et(e,["classes","currentDecade","formatYear"]),l=o.date,c=o.locale,u=[];return n&&u.push.apply(u,n),tt&&u.push(tt),E(l).getFullYear()!==i&&u.push("".concat(tt,"--neighboringDecade")),(0,r.jsx)(Be,Xe({},o,{classes:u,maxDateTransform:q,minDateTransform:j,view:"decade",children:s(c,l)}))}var rt=function(){return rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rt.apply(this,arguments)},it=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function at(e){var t=e.activeStartDate,n=e.hover,i=e.showNeighboringDecade,a=e.value,s=e.valueType,o=it(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),l=w(E(t)),c=l+(i?11:9);return(0,r.jsx)(Fe,{className:"react-calendar__decade-view__years",dateTransform:j,dateType:"year",end:c,hover:n,renderTile:function(e){var n=e.date,i=it(e,["date"]);return(0,r.jsx)(nt,rt({},o,i,{activeStartDate:t,currentDecade:l,date:n}),n.getTime())},start:l,value:a,valueType:s})}var st=function(){return st=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},st.apply(this,arguments)};function ot(e){return(0,r.jsx)("div",{className:"react-calendar__decade-view",children:(0,r.jsx)(at,st({},e))})}var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lt.apply(this,arguments)},ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},ut=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function dt(e){var t=e.classes,n=void 0===t?[]:t,i=e.formatMonth,a=void 0===i?fe:i,s=e.formatMonthYear,o=void 0===s?_e:s,l=ct(e,["classes","formatMonth","formatMonthYear"]),c=l.date,u=l.locale;return(0,r.jsx)(Be,lt({},l,{classes:ut(ut([],n,!0),["react-calendar__year-view__months__month"],!1),formatAbbr:o,maxDateTransform:$,minDateTransform:W,view:"year",children:a(u,c)}))}var ht=function(){return ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ht.apply(this,arguments)},mt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ft(e){var t=e.activeStartDate,n=e.hover,i=e.value,a=e.valueType,s=mt(e,["activeStartDate","hover","value","valueType"]),o=w(t);return(0,r.jsx)(Fe,{className:"react-calendar__year-view__months",dateTransform:function(e){var t=new Date;return t.setFullYear(o,e,1),W(t)},dateType:"month",end:11,hover:n,renderTile:function(e){var n=e.date,i=mt(e,["date"]);return(0,r.jsx)(dt,ht({},s,i,{activeStartDate:t,date:n}),n.getTime())},start:0,value:i,valueType:a})}var _t=function(){return _t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_t.apply(this,arguments)};function pt(e){return(0,r.jsx)("div",{className:"react-calendar__year-view",children:(0,r.jsx)(ft,_t({},e))})}var gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnPrope
2rty.call(t,i)&&(e[i]=t[i]);return e},gt.apply(this,arguments)},yt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},vt="react-calendar__month-view__days__day";function bt(e){var t=e.calendarType,n=e.classes,i=void 0===n?[]:n,a=e.currentMonthIndex,s=e.formatDay,o=void 0===s?he:s,l=e.formatLongDate,c=void 0===l?me:l,u=yt(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),d=u.date,h=u.locale,m=[];return i&&m.push.apply(m,i),vt&&m.push(vt),Ee(d,t)&&m.push("".concat(vt,"--weekend")),d.getMonth()!==a&&m.push("".concat(vt,"--neighboringMonth")),(0,r.jsx)(Be,gt({},u,{classes:m,formatAbbr:c,maxDateTransform:Z,minDateTransform:Q,view:"month",children:o(h,d)}))}var wt=function(){return wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wt.apply(this,arguments)},Mt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function kt(e){var t=e.activeStartDate,n=e.calendarType,i=e.hover,a=e.showFixedNumberOfWeeks,s=e.showNeighboringMonth,o=e.value,l=e.valueType,c=Mt(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),u=w(t),d=M(t),h=a||s,m=Me(t,n),f=h?0:m,_=1+(h?-m:0),p=function(){if(a)return _+42-1;var e=ee(t);if(s){var r=new Date;
2return r.setFullYear(u,d,e),r.setHours(0,0,0,0),e+(7-Me(r,n)-1)}return e}();return(0,r.jsx)(Fe,{className:"react-calendar__month-view__days",count:7,dateTransform:function(e){var t=new Date;return t.setFullYear(u,d,e),Q(t)},dateType:"day",hover:i,end:p,renderTile:function(e){var i=e.date,a=Mt(e,["date"]);return(0,r.jsx)(bt,wt({},c,a,{activeStartDate:t,calendarType:n,currentMonthIndex:d,date:i}),i.getTime())},offset:f,start:_,value:o,valueType:l})}var Lt="react-calendar__month-view__weekdays",Tt="".concat(Lt,"__weekday");function St(e){for(var t=e.calendarType,n=e.formatShortWeekday,i=void 0===n?pe:n,a=e.formatWeekday,s=void 0===a?ge:a,o=e.locale,l=e.onMouseLeave,u=W(new Date),d=w(u),h=M(u),m=[],f=1;f<=7;f+=1){var _=new Date(d,h,f-Me(u,t)),p=s(o,_);m.push((0,r.jsx)("div",{className:c(Tt,Ye(_)&&"".concat(Tt,"--current"),Ee(_,t)&&"".concat(Tt,"--weekend")),children:(0,r.jsx)("abbr",{"aria-label":p,title:p,children:i(o,_).replace(".","")})},f))}return(0,r.jsx)(je,{className:Lt,count:7,onFocus:l,onMouseOver:l,children:m})}var Ct=function(){return Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ct.apply(this,arguments)},At=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Dt="react-calendar__tile";function Yt(e){var t=e.onClickWeekNumber,n=e.weekNumber,i=(0,r.jsx)("span",{children:n});if(t){var a=e.date,s=e.onClickWeekNumber,o=e.weekNumber,l=At(e,["date","onClickWeekNumber","weekNumber"]);return(0,r.jsx)("button",Ct({},l,{className:Dt,onClick:function(e){return s(o,a,e)},type:"button",children:i}))}e.date,e.onClickWeekNumber,e.weekNumber,l=At(e,["date","onClickWeekNumber","weekNumber"]);return(0,r.jsx)("div",Ct({},l,{className:Dt,children:i}))}function Et(e){var t=e.activeStartDate,n=e.calendarType,i=e.onClickWeekNumber,a=e.onMouseLeave,s=e.showFixedNumberOfWeeks,o=function(){if(s)return 6;var e=ee(t)-(7-Me(t,n));return 1+Math.ceil(e/7)}(),l=function(){for(var e=w(t),r=M(t),i=L(t),a=[],s=0;s<o;s+=1)a.push(ke(new Date(e,r,i+7*s),n));return a}(),c=l.map(function(e){return function(e,t){void 0===t&&(t=oe);var n,r=t===ie?ie:oe,i=ke(e,t),a=w(e)+1;do{n=ke(new Date(a,0,r===oe?4:1),t),a-=1}while(e<n);return Math.round((i.getTime()-n.getTime())/6048e5)+1}(e,n)});return(0,r.jsx)(je,{className:"react-calendar__month-view__weekNumbers",count:o,direction:"column",onFocus:a,onMouseOver:a,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:c.map(function(e,t){var n=l[t];if(!n)throw new Error("date is not defined");return(0,r.jsx)(Yt,{date:n,onClickWeekNumber:i,weekNumber:e},e)})})}var xt=function(){return xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xt.apply(this,arguments)},Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function It(e){var t=e.activeStartDate,n=e.locale,i=e.onMouseLeave,a=e.showFixedNumberOfWeeks,s=e.calendarType,o=void 0===s?function(e){if(e)for(var t=0,n=Object.entries(le);t<n.length;t++){var r=n[t],i=r[0];if(r[1].includes(e))return i}return oe}(n):s,l=e.formatShortWeekday,u=e.formatWeekday,d=e.onClickWeekNumber,h=e.showWeekNumbers,m=Ot(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);var f="react-calendar__month-view";return(0,r.jsx)("div",{className:c(f,h?"".concat(f,"--weekNumbers"):""),children:(0,r.jsxs)("div",{style:{display:"flex",alignItems:"flex-end"}
2,children:[h?(0,r.jsx)(Et,{activeStartDate:t,calendarType:o,onClickWeekNumber:d,onMouseLeave:i,showFixedNumberOfWeeks:a}):null,(0,r.jsxs)("div",{style:{flexGrow:1,width:"100%"},children:[(0,r.jsx)(St,{calendarType:o,formatShortWeekday:l,formatWeekday:u,locale:n,onMouseLeave:i}),(0,r.jsx)(kt,xt({calendarType:o},m))]})]})})}var Nt=function(){return Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Nt.apply(this,arguments)},Rt="react-calendar",jt=["century","decade","year","month"],Pt=["decade","year","month","day"],Ht=new Date;Ht.setFullYear(1,0,1),Ht.setHours(0,0,0,0);var qt=new Date(864e13);function Ut(e){return e instanceof Date?e:new Date(e)}function Ft(e,t){return jt.slice(jt.indexOf(e),jt.indexOf(t)+1)}function Bt(e,t,n){return e&&function(e,t,n){return-1!==Ft(t,n).indexOf(e)}(e,t,n)?e:n}function Wt(e){var t=jt.indexOf(e);return Pt[t]}function zt(e,t){var n=e.value,r=e.minDate,i=e.maxDate,a=e.maxDetail,s=function(e,t){var n=Array.isArray(e)?e[t]:e;if(!n)return null;var r=Ut(n);if(Number.isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}(n,t);if(!s)return null;var o=Wt(a);return function(e,t,n){return t&&t>e?t:n&&n<e?n:e}(function(){switch(t){case 0:return Le(o,s);case 1:return Se(o,s);default:throw new Error("Invalid index value: ".concat(t))}}(),r,i)}var Kt=function(e){return zt(e,0)},$t=function(e){return zt(e,1)},Gt=function(e){return[Kt,$t].map(function(t){return t(e)})};function Vt(e){var t=e.maxDate,n=e.maxDetail,r=e.minDate,i=e.minDetail,a=e.value;return Le(Bt(e.view,i,n),Kt({value:a,minDate:r,maxDate:t,maxDetail:n})||new Date)}function Jt(e){return e&&(!Array.isArray(e)||1===e.length)}function Qt(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var Zt=(0,i.forwardRef)(function(e,t){var n,a=e.activeStartDate,s=e.allowPartialRange,o=e.calendarType,l=e.className,u=e.defaultActiveStartDate,d=e.defaultValue,h=e.defaultView,m=e.formatDay,f=e.formatLongDate,_=e.formatMonth,p=e.formatMonthYear,g=e.formatShortWeekday,y=e.formatWeekday,v=e.formatYear,b=e.goToRangeStartOnSelect,w=void 0===b||b,M=e.inputRef,k=e.locale,L=e.maxDate,T=void 0===L?qt:L,S=e.maxDetail,C=void 0===S?"month":S,A=e.minDate,D=void 0===A?Ht:A,Y=e.minDetail,E=void 0===Y?"century":Y,x=e.navigationAriaLabel,O=e.navigationAriaLive,I=e.navigationLabel,N=e.next2AriaLabel,R=e.next2Label,j=e.nextAriaLabel,P=e.nextLabel,H=e.onActiveStartDateChange,q=e.onChange,U=e.onClickDay,F=e.onClickDecade,B=e.onClickMonth,W=e.onClickWeekNumber,z=e.onClickYear,K=e.onDrillDown,$=e.onDrillUp,G=e.onViewChange,V=e.prev2AriaLabel,J=e.prev2Label,Q=e.prevAriaLabel,Z=e.prevLabel,X=e.returnValue,ee=void 0===X?"start":X,te=e.selectRange,ne=e.showDoubleView,re=e.showFixedNumberOfWeeks,ie=e.showNavigation,ae=void 0===ie||ie,se=e.showNeighboringCentury,oe=e.showNeighboringDecade,le=e.showNeighboringMonth,ce=void 0===le||le,ue=e.showWeekNumbers,de=e.tileClassName,he=e.tileContent,me=e.tileDisabled,fe=e.value,_e=e.view,pe=(0,i.useState)(u),ge=pe[0],ye=pe[1],ve=(0,i.useState)(null),be=ve[0],we=ve[1],Me=(0,i.useState)(Array.isArray(d)?d.map(function(e){return null!==e?Ut(e):null}):null!=d?Ut(d):null),ke=Me[0],Ce=Me[1],Ae=(0,i.useState)(h),De=Ae[0],Ye=Ae[1],Ee=a||ge||function(e){var t=e.activeStartDate,n=e.defaultActiveStartDate,r=e.defaultValue,i=e.defaultView,a=e.maxDate,s=e.maxDetail,o=e.minDate,l=e.minDetail,c=e.value,u=e.view,d=Bt(u,l,s),h=t||n;return h?Le(d,h):Vt({maxDate:a,maxDetail:s,minDate:o,minDetail:l,value:c||r,view:u||i})}({activeStartDate:a,defaultActiveStartDate:u,defaultValue:d,defaultView:h,maxDate:T,maxDetail:C,minDate:D,minDetail:E,value:fe,view:_e}),xe=(n=te&&Jt(ke)?ke:void 0!==fe?fe:ke)?Array.isArray(n)?n.map(function(e){return null!==e?Ut(e):null}):null!==n?Ut(n):null:null,Ie=Wt(C),Ne=Bt(_e||De,E,C),Re=Ft(E,C),je=te?be:null,Pe=Re.indexOf(Ne)<Re.length-1,He=Re.indexOf(Ne)>0,qe=(0,i.useCallback)(function(e){return function(){switch(ee){case"start":return Kt;case"end":return $t;case"range":return Gt;default:throw new Error("Invalid returnValue.")}}()({maxDate:T,maxDetail:C,minDate:D,value:e})},[T,C,D,ee]),Ue=(0,i.useCallback)(function(e,t){ye(e);var n={action:t,activeStartDate:e,value:xe,view:Ne};H&&!Qt(Ee,e)&&H(n)},[Ee,H,xe,Ne]),Fe=(0,i.useCallback)(function(e,t){var n=function(){switch(Ne){case"century":return F;case"decade":return z;case"year":return B;case"month":return U;default:throw new Error("Invalid view: ".concat(Ne,"."))}}();n&&n(e,t)},[U,F,B,z,Ne]),Be=(0,i.useCallback)(function(e,t){if(Pe){Fe(e,t);var n=Re[Re.indexOf(Ne)+1];if(!n)throw new Error("Attempted to drill down from the lowest view.");ye(e),Ye(n);var r={action:"drillDown",activeStartDate:e,value:xe,view:n};H&&!Qt(Ee,e)&&H(r),G&&Ne!==n&&G(r),K&&K(r)}},[Ee,Pe,H,Fe,K,G,xe,Ne,Re]),We=(0,i.useCallback)(function(){if(He){var e=Re[Re.indexOf(Ne)-1];if(!e)throw new Error("Attempted to drill up from the highest view.");var t=Le(e,Ee);ye(t),Ye(e);var n={action:"drillUp",activeStartDate:t,value:xe,view:e};H&&!Qt(Ee,t)&&H(n),G&&Ne!==e&&G(n),$&&$(n)}},[Ee,He,H,$,G,xe,Ne,Re]),ze=(0,i.useCallback)(function(e,t){var n=xe;Fe(e,t);var r,i=te&&!Jt(n);if(te)if(i)r=Le(Ie,e);else{if(!n)throw new Error("previousValue is required");if(Array.isArray(n))throw new Error("previousValue must not be an array");r=function(e,t,n){var r=[t,n].sort(function(e,t){return e.getTime()-t.getTime()});return[Le(e,r[0]),Se(e,r[1])]}(Ie,n,e)}
2else r=qe(e);var a=!te||i||w?Vt({maxDate:T,maxDetail:C,minDate:D,minDetail:E,value:r,view:Ne}):null;t.persist(),ye(a),Ce(r);var o={action:"onChange",activeStartDate:a,value:r,view:Ne};if(H&&!Qt(Ee,a)&&H(o),q)if(te)if(Jt(r)){if(s){if(Array.isArray(r))throw new Error("value must not be an array");q([r||null,null],t)}}else q(r||null,t);else q(r||null,t)},[Ee,s,qe,w,T,C,D,E,H,q,Fe,te,xe,Ie,Ne]);function Ke(e){we(e)}function $e(){we(null)}function Ge(e){var t={activeStartDate:e?Te(Ne,Ee):Le(Ne,Ee),hover:je,locale:k,maxDate:T,minDate:D,onClick:Pe?Be:ze,onMouseOver:te?Ke:void 0,tileClassName:de,tileContent:he,tileDisabled:me,value:xe,valueType:Ie};switch(Ne){case"century":return(0,r.jsx)(Ze,Nt({formatYear:v,showNeighboringCentury:se},t));case"decade":return(0,r.jsx)(ot,Nt({formatYear:v,showNeighboringDecade:oe},t));case"year":return(0,r.jsx)(pt,Nt({formatMonth:_,formatMonthYear:p},t));case"month":return(0,r.jsx)(It,Nt({calendarType:o,formatDay:m,formatLongDate:f,formatShortWeekday:g,formatWeekday:y,onClickWeekNumber:W,onMouseLeave:te?$e:void 0,showFixedNumberOfWeeks:void 0!==re?re:ne,showNeighboringMonth:ce,showWeekNumbers:ue},t));default:throw new Error("Invalid view: ".concat(Ne,"."))}}(0,i.useImperativeHandle)(t,function(){return{activeStartDate:Ee,drillDown:Be,drillUp:We,onChange:ze,setActiveStartDate:Ue,value:xe,view:Ne}},[Ee,Be,We,ze,Ue,xe,Ne]);var Ve=Array.isArray(xe)?xe:[xe];return(0,r.jsxs)("div",{className:c(Rt,te&&1===Ve.length&&"".concat(Rt,"--selectRange"),ne&&"".concat(Rt,"--doubleView"),l),ref:M,children:[ae?(0,r.jsx)(Oe,{activeStartDate:Ee,drillUp:We,formatMonthYear:p,formatYear:v,locale:k,maxDate:T,minDate:D,navigationAriaLabel:x,navigationAriaLive:O,navigationLabel:I,next2AriaLabel:N,next2Label:R,nextAriaLabel:j,nextLabel:P,prev2AriaLabel:V,prev2Label:J,prevAriaLabel:Q,prevLabel:Z,setActiveStartDate:Ue,showDoubleView:ne,view:Ne,views:Re}):null,(0,r.jsxs)("div",{className:"".concat(Rt,"__viewContainer"),onBlur:te?$e:void 0,onMouseLeave:te?$e:void 0,children:[Ge(),ne?Ge(!0):null]})]})}),Xt=Zt;function en(e){return e.getBoundingClientRect()}function tn(e,t){return{get collidedTop(){return en(e).top<en(t).top},get collidedBottom(){return en(e).bottom>en(t).bottom},get collidedLeft(){return en(e).left<en(t).left},get collidedRight(){return en(e).right>en(t).right},get overflowTop(){return en(t).top-en(e).top},get overflowBottom(){return en(e).bottom-en(t).bottom},get overflowLeft(){return en(t).left-en(e).left},get overflowRight(){return en(e).right-en(t).right}}}var nn=n(9771),rn=function(){return rn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rn.apply(this,arguments)},an=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},sn="undefined"!=typeof document&&"MutationObserver"in window;function on(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ln(e){var t=e.axis,n=e.container,r=e.element,i=e.invertAxis,a=e.scrollContainer,s=e.secondary,o=e.spacing,l=window.getComputedStyle(r),c=n.parentElement;if(c){var u=tn(c,a),d=tn(c,document.documentElement),h="x"===t,m=h?"left":"top",f=h?"right":"bottom",_=h?"width":"height",p="overflow".concat(on(m)),g="overflow".concat(on(f)),y="scroll".concat(on(m)),v=on(_),b="offset".concat(v),w="client".concat(v),M="min-".concat(_),k=a[b]-a[w],L="object"==typeof o?o[m]:o,T=-Math.max(u[p],d[p]+document.documentElement[y])-L,S="object"==typeof o?o[f]:o,C=-Math.max(u[g],d[g]-document.documentElement[y])-S-k;s&&(T+=c[w],C+=c[w]);var A=r[b];(i?x()||O():O()||x())||function(){var e=T>C,t=l.getPropertyValue(M),n=t?parseInt(t,10):null;function i(e){nn(!n||e>=n,"<Fit />'s child will not fit anywhere with its current ".concat(M," of ").concat(n,"px."));var t=Math.max(e,n||0);nn(!1,"<Fit />'s child needed to have its ".concat(_," decreased to ").concat(t,"px.")),r.style[_]="".concat(t,"px")}e?(i(T),D()):(i(C),Y())}()}function D(){r.style[m]="auto",r.style[f]=s?"0":"100%"}function Y(){r.style[m]=s?"0":"100%",r.style[f]="auto"}function E(e,t){var n=A<=e;return n&&t(),n}function x(){return E(T,D)}function O(){return E(C,Y)}}function cn(e){var t=e.invertAxis,n=e.invertSecondaryAxis,r=an(e,["invertAxis","invertSecondaryAxis"]);!function(e){ln(e)}(rn(rn({},r),{invertAxis:t})),function(e){ln(rn(rn({},e),{axis:"x"===e.axis?"y":"x",secondary:!0}))}(rn(rn({},r),{invertAxis:n}))}var un=function(e){var t=e.children,n=e.invertAxis,a=e.invertSecondaryAxis,s=e.mainAxis,o=void 0===s?"y":s,l=e.spacing,c=void 0===l?8:l,u=(0,i.useRef)(void 0),d=(0,i.useRef)(void 0),h=(0,i.useRef)(void 0),m=(0,i.useRef)(void 0),f=(0,i.useRef)(void 0),_=(0,i.useCallback)(function(){if(f.current&&u.current&&d.current){var e=d.current.clientWidth,t=d.current.clientHeight;if(h.current!==e||m.current!==t){h.current=e,m.current=t;var r=u.current.parentElement;if(r){"absolute"!==window.getComputedStyle(d.current).position&&(d.current.style.position="absolute");var i=window.getComputedStyle(r).position;"relative"!==i&&"absolute"!==i&&(r.style.position="relative"),cn({axis:o,container:u.current,element:d.current,invertAxis:n,invertSecondaryAxis:a,scrollContainer:f.current,spacing:c})}}}},[n,a,o,c]),p=i.Children.only(t);function g(e){e&&e instanceof HTMLElement&&(d.current=e,f.current=function(e){for(var t=e.parentElement;t;){if(window.getComputedStyle(t).overflow.split(" ").every(function(e){return"auto"===e||"scroll"===e}))return t;t=t.parentElement}return document.documentElement}(e))}return(0,i.useEffect)(function(){(_(),sn&&d.current)&&new MutationObserver(function(){_()}).observe(d.current,{attributes:!0,attributeFilter:["class","style"]})},[_]),(0,r.jsx)("span",{ref:function(e){e&&(u.current=e,g(null==e?void 0:e.firstElementChild))},style:{display:"contents"},children:p})};function dn(e){var t=e.children;return(0,r.jsx)("span",{className:"react-date-picker__inputGroup__divider",children:t})}var hn,mn=["normal","small-caps"];function fn(e){if(!e)return"";var t=window.getComputedStyle(e);
2if(t.font)return t.font;if(!(""!==t.fontFamily))return"";var n=mn.includes(t.fontVariant)?t.fontVariant:"normal";return"".concat(t.fontStyle," ").concat(n," ").concat(t.fontWeight," ").concat(t.fontSize," / ").concat(t.lineHeight," ").concat(t.fontFamily)}var _n=function(e){if("undefined"==typeof document||!e)return null;var t=fn(e),n=function(e,t){var n=(hn||(hn=document.createElement("canvas"))).getContext("2d");if(!n)return null;n.font=t;var r=n.measureText(e).width;return Math.ceil(r)}(e.value||e.placeholder,t);return null===n?null:(e.style.width="".concat(n,"px"),n)},pn="undefined"!=typeof document,gn=pn?i.useLayoutEffect:i.useEffect,yn=pn&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),vn=pn&&/Firefox/.test(navigator.userAgent);function bn(e){var t=e.target;yn?requestAnimationFrame(function(){return t.select()}):t.select()}function wn(e){if(null!==e)return function(t){if(!vn){var n=t.key,r=t.target,i=r.value,a=1===n.length&&/\d/.test(n),s=function(e){if(e&&"selectionStart"in e&&null!==e.selectionStart&&"selectionEnd"in e&&null!==e.selectionEnd)return e.value.slice(e.selectionStart,e.selectionEnd);if("getSelection"in window){var t=window.getSelection();return t&&t.toString()}return null}(r);a&&(s||i.length<e)||t.preventDefault()}}}function Mn(e){var t=e.ariaLabel,n=e.autoFocus,i=e.className,a=e.disabled,s=e.inputRef,o=e.max,l=e.min,u=e.name,d=e.nameForClass,h=e.onChange,m=e.onKeyDown,f=e.onKeyUp,_=e.placeholder,p=void 0===_?"--":_,g=e.required,y=e.showLeadingZeros,v=e.step,b=e.value;gn(function(){var e;s&&s.current&&(_n(s.current),e=s.current,"complete"!==document.readyState&&window.addEventListener("load",function(){_n(e)}),function(e){if(document.fonts){var t=fn(e);t&&(document.fonts.check(t)||document.fonts.addEventListener("loadingdone",function(){_n(e)}))}}(s.current))},[s,b]);var w=y&&b&&Number(b)<10&&("0"===b||!b.toString().startsWith("0")),M=o?o.toString().length:null;return(0,r.jsxs)(r.Fragment,{children:[w?(0,r.jsx)("span",{className:"".concat(i,"__leadingZero"),children:"0"}):null,(0,r.jsx)("input",{"aria-label":t,autoComplete:"off",autoFocus:n,className:c("".concat(i,"__input"),"".concat(i,"__").concat(d||u),w&&"".concat(i,"__input--hasLeadingZero")),"data-input":"true",disabled:a,inputMode:"numeric",max:o,min:l,name:u,onChange:h,onFocus:bn,onKeyDown:m,onKeyPress:wn(M),onKeyUp:function(e){_n(e.target),f&&f(e)},placeholder:p,ref:s,required:g,step:v,type:"number",value:null!==b?b:""})]})}function kn(e){return null!==e&&!1!==e&&!Number.isNaN(Number(e))}function Ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Math.min.apply(Math,e.filter(kn))}function Tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Math.max.apply(Math,e.filter(kn))}var Sn=function(){return Sn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Sn.apply(this,arguments)},Cn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function An(e){var t=e.maxDate,n=e.minDate,i=e.month,a=e.year,s=Cn(e,["maxDate","minDate","month","year"]);function o(e){return a===w(e).toString()&&i===k(e).toString()}var l=Ln(i?ee(new Date(Number(a),Number(i)-1,1)):31,t&&o(t)&&L(t)),c=Tn(1,n&&o(n)&&L(n));return(0,r.jsx)(Mn,Sn({max:l,min:c,name:"day"},s))}var Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dn.apply(this,arguments)},Yn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function En(e){var t=e.maxDate,n=e.minDate,i=e.year,a=Yn(e,["maxDate","minDate","year"]);function s(e){return e&&i===w(e).toString()}var o=Ln(12,t&&s(t)&&k(t)),l=Tn(1,n&&s(n)&&k(n));return(0,r.jsx)(Mn,Dn({max:o,min:l,name:"month"},a))}var xn=new Map;function On(e){return function(t,n){var r=t||g();xn.has(r)||xn.set(r,new Map);var i=xn.get(r);return i.has(e)||i.set(e,new Intl.DateTimeFormat(r||void 0,e).format),i.get(e)(n)}}function In(e){return function(t,n){return On(e)(t,function(e){var t=new Date(e);return new Date(t.setHours(12))}(n))}}var Nn=In({month:"long"}),Rn=In({month:"short"}),jn=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Pn(e){var t=e.ariaLabel,n=e.autoFocus,i=e.className,a=e.disabled,s=e.inputRef,o=e.locale,l=e.maxDate,u=e.minDate,d=e.onChange,h=e.onKeyDown,m=e.placeholder,f=void 0===m?"--":m,_=e.required,p=e.short,g=e.value,y=e.year;function v(e){return e&&y===w(e).toString()}var b=Ln(12,l&&v(l)&&k(l)),M=Tn(1,u&&v(u)&&k(u)),L=jn([],Array(12),!0).map(function(e,t){return new Date(2019,t,1)}),T="month",S=p?Rn:Nn;
2return(0,r.jsxs)("select",{"aria-label":t,autoFocus:n,className:c("".concat(i,"__input"),"".concat(i,"__").concat(T)),"data-input":"true","data-select":"true",disabled:a,name:T,onChange:d,onKeyDown:h,ref:s,required:_,value:null!==g?g:"",children:[!g&&(0,r.jsx)("option",{value:"",children:f}),L.map(function(e){var t=k(e),n=t<M||t>b;return(0,r.jsx)("option",{disabled:n,value:t,children:S(o,e)},t)})]})}var Hn=function(){return Hn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Hn.apply(this,arguments)},qn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Un(e){var t=e.maxDate,n=e.minDate,i=e.placeholder,a=void 0===i?"----":i,s=e.valueType,o=qn(e,["maxDate","minDate","placeholder","valueType"]),l=Ln(275760,t&&w(t)),c=Tn(1,n&&w(n)),u="century"===s?10:1;return(0,r.jsx)(Mn,Hn({max:l,min:c,name:"year",placeholder:a,step:u},o))}function Fn(e){var t=e.ariaLabel,n=e.disabled,i=e.maxDate,a=e.minDate,s=e.name,o=e.onChange,l=e.required,c=e.value,u=e.valueType,d=function(){switch(u){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType")}}(),h=function(){switch(u){case"decade":case"year":return w;case"month":return ne;case"day":return re;default:throw new Error("Invalid valueType")}}();return(0,r.jsx)("input",{"aria-label":t,disabled:n,hidden:!0,max:i?h(i):void 0,min:a?h(a):void 0,name:s,onChange:o,onFocus:function(e){e.stopPropagation()},required:l,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:d,value:c?h(c):""})}var Bn=function(){return Bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Bn.apply(this,arguments)},Wn=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},zn={},Kn=new Date;Kn.setFullYear(1,0,1),Kn.setHours(0,0,0,0);var $n=new Date(864e13),Gn=["century","decade","year","month"],Vn=Wn(Wn([],Gn.slice(1),!0),["day"],!1);function Jn(e){var t=Gn.indexOf(e);return Vn[t]}function Qn(e,t){var n=Array.isArray(e)?e[t]:e;if(!n)return null;var r=function(e){return e instanceof Date?e:new Date(e)}(n);if(isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}function Zn(e,t){var n=e.value,r=e.minDate,i=e.maxDate,a=e.maxDetail,s=Qn(n,t);if(!s)return null;var o=Jn(a);return function(e,t,n){return t&&t>e?t:n&&n<e?n:e}(function(){switch(t){case 0:return function(e,t){switch(e){case"decade":return E(t);case"year":return j(t);case"month":return W(t);case"day":return Q(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(o,s);case 1:return function(e,t){switch(e){case"decade":return I(t);case"year":return q(t);case"month":return $(t);case"day":return Z(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(o,s);default:throw new Error("Invalid index value: ".concat(t))}}(),r,i)}var Xn=function(e){return Zn(e,0)},er=function(e){return Zn(e,1)},tr=function(e){return[Xn,er].map(function(t){return t(e)})};function nr(e){return"true"===e.dataset.input}function rr(e,t){var n=e;do{n=n[t]}while(n&&!nr(n));return n}function ir(e){e&&e.focus()}function ar(e){var t=e.autoFocus,n=e.className,a=e.dayAriaLabel,s=e.dayPlaceholder,o=e.disabled,l=e.format,c=e.isCalendarOpen,u=void 0===c?null:c,d=e.locale,h=e.maxDate,m=e.maxDetail,f=void 0===m?"month":m,_=e.minDate,p=e.monthAriaLabel,g=e.monthPlaceholder,y=e.name,v=void 0===y?"date":y,b=e.nativeInputAriaLabel,M=e.onChange,T=e.onInvalidChange,S=e.required,C=e.returnValue,A=void 0===C?"start":C,D=e.showLeadingZeros,Y=e.value,E=e.yearAriaLabel,x=e.yearPlaceholder,O=(0,i.useState)(null),I=O[0],N=O[1],R=(0,i.useState)(null),j=R[0],P=R[1],H=(0,i.useState)(null),q=H[0],U=H[1],F=(0,i.useState)(null),B=F[0],W=F[1],z=(0,i.useRef)(null),K=(0,i.useRef)(null),$=(0,i.useRef)(null),G=(0,i.useRef)(null),V=(0,i.useState)(u),J=V[0],Q=V[1],Z=(0,i.useRef)(void 0);(0,i.useEffect)(function(){Q(u)},[u]),(0,i.useEffect)(function(){var e=Xn({value:Y,minDate:_,maxDate:h,maxDetail:f});e?(N(w(e).toString()),P(k(e).toString()),U(L(e).toString()),W(e)):(N(null),P(null),U(null),W(null))},[Y,_,h,f,J]);var X,ee,te=Jn(f),ne=(ee=Gn.indexOf(f),On(zn[ee]||(X={year:"numeric"},ee>=2&&(X.month="numeric"),ee>=3&&(X.day="numeric"),zn[ee]=X,X)));var re,ie=l||function(){var e=new Date(2017,11,11),t=ne(d,e),n=["y","M","d"];var r=t;return["year","month","day"].forEach(function(t,i){var a=function(e,t){var n=zn[e]||function(){var t,n=((t={})[e]="numeric",t);return zn[e]=n,n}();return On(n)(d,t).match(/\d{1,}/)}(t,e);if(a){var s=a[0],o=n[i];r=r.replace(s,o)}}),r=r.replace("17","y")}(),ae=(re=ie.match(/[^0-9a-z]/i))?re[0]:null;function se(){if(M){var e=[G.current,K.current,$.current,z.current].filter(function(e){return Boolean(e)}),t={};if(e.forEach(function(e){t[e.name]="valueAsNumber"in e?e.valueAsNumber:Number(e.value)}),e.every(function(e){return!e.value}))M(null,!1);else{var n=e.every(function(e){return e.value}),r=e.every(function(e){return e.validity.valid});if(n&&r){var i=Number(t.year||(new Date).getFullYear()),a=Number(t.month||1)-1,s=Number(t.day||1),o=new Date;o.setFullYear(i,a,s),o.setHours(0,0,0,0);var l=function(e){return function(){switch(A){case"start":return Xn;case"end":return er;case"range":return tr;default:throw new Error("Invalid returnValue.")}}()({value:e,minDate:_,maxDate:h,maxDetail:f})}(o);M(l,!1)}else T&&T()}}}function oe(e){var t=e.target.value;if(M){var n=function(){if(!t)return null;var e=t.split("-"),n=e[0],r=e[1],i=e[2],a=Number(n),s=Number(r)-1||0,o=Number(i)||1,l=new Date;return l.setFullYear(a,s,o),l.setHours(0,0,0,0),l}();M(n,!1)}}var le={className:n,disabled:o,maxDate:h||$n,minDate:_||Kn,onChange:function(e){var t=e.target,n=t.name,r=t.value;switch(n){case"year":N(r);break;case"month":P(r);break;case"day":U(r)}se()},onKeyDown:function(e){switch(Z.current=e.key,e.key){case"ArrowLeft":case"ArrowRight":case ae:e.preventDefault(),ir(rr(e.target,"ArrowLeft"===e.key?"previousElementSibling":"nextElementSibling"))}},onKeyUp:function(e){var t=e.key,n=e.target;if(Z.current===t&&!isNaN(Number(t))){var r=n.getAttribute("max");if(r){var i=n.value;if(10*Number(i)>Number(r)||i.length>=r.length){ir(rr(n,"nextElementSibling"))}}}},required:Boolean(S||J)};function ce(e,n){if(e&&e.length>2)throw new Error("Unsupported token: ".concat(e));var i=e&&2===e.length;return(0,r.jsx)(An,Bn({},le,{ariaLabel:a,autoFocus:0===n&&t,inputRef:G,month:j,placeholder:s,showLeadingZeros:i||D,value:q,year:I}),"day")}function ue(e,n){if(e&&e.length>4)throw new Error("Unsupported token: ".concat(e));if(e.length>2)return(0,r.jsx)(Pn,Bn({},le,{ariaLabel:p,autoFocus:0===n&&t,inputRef:$,locale:d,placeholder:g,short:3===e.length,value:j,year:I}),"month");var i=e&&2===e.length;return(0,r.jsx)(En,Bn({},le,{ariaLabel:p,autoFocus:0===n&&t,inputRef:K,placeholder:g,showLeadingZeros:i||D,value:j,year:I}),"month")}function de(e,n){return(0,r.jsx)(Un,Bn({},le,{ariaLabel:E,autoFocus:0===n&&t,inputRef:z,placeholder:x,value:I,valueType:te}),"year")}return(0,r.jsxs)("div",{className:n,onClick:function(e){e.target===e.currentTarget&&ir(e.target.children[1])},children:[(0,r.jsx)(Fn,{ariaLabel:b,disabled:o,maxDate:h||$n,minDate:_||Kn,name:v,onCh
2ange:oe,required:S,value:B,valueType:te},"date"),function(e,t,n){var i=[],a=new RegExp(Object.keys(t).map(function(e){return"".concat(e,"+")}).join("|"),"g"),s=e.match(a);return e.split(a).reduce(function(e,a,o){var l=a&&(0,r.jsx)(dn,{children:a},"separator_".concat(o));e.push(l);var c=s&&s[o];if(c){var u=t[c]||t[Object.keys(t).find(function(e){return c.match(e)})];if(!u)return e;!n&&i.includes(u)?e.push(c):(e.push(u(c,o)),i.push(u))}return e},[])}(ie,{d:ce,M:ue,y:de},void 0!==l)]})}var sr=function(){return sr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},sr.apply(this,arguments)},or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},lr="react-date-picker",cr=["mousedown","focusin","touchstart"],ur={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},dr=(0,r.jsxs)("svg",sr({},ur,{className:"".concat(lr,"__calendar-button__icon ").concat(lr,"__button__icon"),children:[(0,r.jsx)("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),(0,r.jsx)("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),(0,r.jsx)("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]})),hr=(0,r.jsxs)("svg",sr({},ur,{className:"".concat(lr,"__clear-button__icon ").concat(lr,"__button__icon"),children:[(0,r.jsx)("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),(0,r.jsx)("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]}));var mr=function(e){var t=e.autoFocus,n=e.calendarAriaLabel,s=e.calendarIcon,l=void 0===s?dr:s,u=e.className,d=e.clearAriaLabel,h=e.clearIcon,m=void 0===h?hr:h,f=e.closeCalendar,_=void 0===f||f,p=e["data-testid"],g=e.dayAriaLabel,y=e.dayPlaceholder,v=e.disableCalendar,b=e.disabled,w=e.format,M=e.id,k=e.isOpen,L=void 0===k?null:k,T=e.locale,S=e.maxDate,C=e.maxDetail,A=void 0===C?"month":C,D=e.minDate,Y=e.monthAriaLabel,E=e.monthPlaceholder,x=e.name,O=void 0===x?"date":x,I=e.nativeInputAriaLabel,N=e.onCalendarClose,R=e.onCalendarOpen,j=e.onChange,P=e.onFocus,H=e.onInvalidChange,q=e.openCalendarOnFocus,U=void 0===q||q,F=e.required,B=e.returnValue,W=void 0===B?"start":B,z=e.shouldCloseCalendar,K=e.shouldOpenCalendar,$=e.showLeadingZeros,G=e.value,V=e.yearAriaLabel,J=e.yearPlaceholder,Q=or(e,["autoFocus","calendarAriaLabel","calendarIcon","className","clearAriaLabel","clearIcon","closeCalendar","data-testid","dayAriaLabel","dayPlaceholder","disableCalendar","disabled","format","id","isOpen","locale","maxDate","maxDetail","minDate","monthAriaLabel","monthPlaceholder","name","nativeInputAriaLabel","onCalendarClose","onCalendarOpen","onChange","onFocus","onInvalidChange","openCalendarOnFocus","required","returnValue","shouldCloseCalendar","shouldOpenCalendar","showLeadingZeros","value","yearAriaLabel","yearPlaceholder"]),Z=(0,i.useState)(L),X=Z[0],ee=Z[1],te=(0,i.useRef)(null),ne=(0,i.useRef)(null);function re(e){var t=e.reason;K&&!K({reason:t})||(ee(!0),R&&R())}(0,i.useEffect)(function(){ee(L)},[L]);var ie=(0,i.useCallback)(function(e){var t=e.reason;z&&!z({reason:t})||(ee(!1),N&&N())},[N,z]);function ae(){X?ie({reason:"buttonClick"}):re({reason:"buttonClick"})}function se(e,t){void 0===t&&(t=_),t&&ie({reason:"select"}),j&&j(e)}var oe=(0,i.useCallback)(function(e){"Escape"===e.key&&ie({reason:"escape"})},[ie]);function le(){se(null)}function ce(e){e.stopPropagation()}var ue=(0,i.useCallback)(function(e){var t=te.current,n=ne.current,r="composedPath"in e?e.composedPath()[0]:e.target;!r||!t||t.contains(r)||n&&n.contains(r)||ie({reason:"outsideAction"})},[ne,ie,te]),de=(0,i.useCallback)(function(e){void 0===e&&(e=X),cr.forEach(function(t){e?document.addEventListener(t,ue):document.removeEventListener(t,ue)}),e?document.addEventListener("keydown",oe):document.removeEventListener("keydown",oe)},[X,ue,oe]);(0,i.useEffect)(function(){return de(),function(){de(!1)}},[de]);var he,me,fe,_e=(0,i.useMemo)(function(){return function(e,t){var n={};return o.forEach(function(r){var i=e[r];i&&(n[r]=t?function(e){return i(e,t(r))}:i)}),n}(Q)},[Q]);return(0,r.jsxs)("div",sr({className:c(lr,"".concat(lr,"--").concat(X?"open":"closed"),"".concat(lr,"--").concat(b?"disabled":"enabled"),u),"data-testid":p,id:M},_e,{onFocus:function(e){P&&P(e),b||X||!U||"true"===e.target.dataset.select||re({reason:"focus"})},ref:te,children:[(he=(Array.isArray(G)?G:[G])[0],me={dayAriaLabel:g,monthAriaLabel:Y,nativeInputAriaLabel:I,yearAriaLabel:V},fe={dayPlaceholder:y,monthPlaceholder:E,yearPlaceholder:J},(0,r.jsxs)("div",{className:"".concat(lr,"__wrapper"),children:[(0,r.jsx)(ar,sr({},me,fe,{autoFocus:t,className:"".concat(lr,"__inputGroup"),disabled:b,format:w,isCalendarOpen:X,locale:T,maxDate:S,maxDetail:A,minDate:D,name:O,onChange:se,onInvalidChange:H,required:F,returnValue:W,showLeadingZeros:$,value:he})),null!==m&&(0,r.jsx)("button",{"aria-label":d,className:"".concat(lr,"__clear-button ").concat(lr,"__button"),disabled:b,onClick:le,onF
2ocus:ce,type:"button",children:"function"==typeof m?(0,i.createElement)(m):m}),null!==l&&!v&&(0,r.jsx)("button",{"aria-expanded":X||!1,"aria-label":n,className:"".concat(lr,"__calendar-button ").concat(lr,"__button"),disabled:b,onClick:ae,onFocus:ce,type:"button",children:"function"==typeof l?(0,i.createElement)(l):l})]})),function(){if(null===X||v)return null;var t=e.calendarProps,n=e.portalContainer,i=e.value,s="".concat(lr,"__calendar"),o=c(s,"".concat(s,"--").concat(X?"open":"closed")),l=(0,r.jsx)(Xt,sr({locale:T,maxDate:S,maxDetail:A,minDate:D,onChange:function(e){return se(e)},value:i},t));return n?(0,a.createPortal)((0,r.jsx)("div",{ref:ne,className:o,children:l}),n):(0,r.jsx)(un,{children:(0,r.jsx)("div",{ref:function(e){e&&!X&&e.removeAttribute("style")},className:o,children:l})})}()]}))},fr=function(){return fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},fr.apply(this,arguments)},_r=(0,i.forwardRef)(function(e,t){var n=e.autocomplete,a=e.label,s=e.name,o=e.id,l=e.date,c=e.onChange,u=e.minDate,d=e.maxDate,h=e.required,m=void 0!==h&&h,f=e.showRequired,_=void 0===f||f,p=e.requiredErrorMessage,g=void 0===p?"This field is required.":p,y=e.invalidErrorMessage,v=void 0===y?"Enter a valid date":y,b=e.disabled,w=void 0!==b&&b,M=e.format,k=void 0===M?"dd.MM.yyyy":M,L=e.maxDetail,T=void 0===L?"month":L,S=e.showLeadingZeros,C=void 0!==S&&S,A=e.calendarProps,D=void 0===A?{}:A,Y=(0,i.useState)(null),E=Y[0],x=Y[1],O=function(){x(null)};(0,i.useImperativeHandle)(t,function(){return{clearError:O}});return(0,r.jsxs)("label",fr({className:"ace-label"},{children:[(0,r.jsx)("p",fr({className:m&&_?"ace-label--required":""},{children:a})),(0,r.jsx)("input",{autoComplete:n,className:"ace-input--hidden",type:"date",name:s,id:o,defaultValue:l?pr(l):"",onInvalid:function(e){e.preventDefault(),m&&!e.target.value&&x(g)},required:m}),(0,r.jsx)(mr,{className:"ace-input".concat(E?" ace-input--error":""),disabled:w,maxDate:d?new Date(pr(d)):void 0,minDate:u?new Date(pr(u)):void 0,onChange:function(e){!function(e){e?isNaN(e.getTime())?(x(v),c(void 0)):(x(null),c(e)):(x(m?g:null),c(void 0))}(e?new Date(null==e?void 0:e.toString()):null)},locale:"de-DE",format:k,maxDetail:T,showLeadingZeros:C,dayPlaceholder:"TT",dayAriaLabel:"tag",monthPlaceholder:"MM",monthAriaLabel:"monat",yearPlaceholder:"JJJJ",yearAriaLabel:"jahr",clearIcon:null,calendarIcon:(0,r.jsxs)("svg",fr({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},{children:[(0,r.jsx)("path",{d:"M12.5 3.33341V1.66675M12.5 3.33341V5.00008M12.5 3.33341H8.75M2.5 8.33341V15.8334C2.5 16.7539 \n                            3.24619 17.5001 4.16667 17.5001H15.8333C16.7538 17.5001 17.5 16.7539 17.5 15.8334V8.33341H2.5Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M2.5 8.33325V4.99992C2.5 4.07944 3.24619 3.33325 4.16667 3.33325H5.83333",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.83337 1.66675V5.00008",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M17.5 8.33325V4.99992C17.5 4.07944 16.7538 3.33325 15.8333 3.33325H15.4166",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})),value:l?new Date(pr(l)):"",calendarProps:D,shouldOpenCalendar:function(e){return"focus"!==e.reason}}),(0,r.jsx)("p",fr({className:"ace-input__error",style:{visibility:E?"visible":"hidden"}},{children:null!=E?E:"Empty"}))]}))});function pr(e){var t=60*e.getTimezoneOffset()*1e3;return new Date(e.getTime()-t).toISOString().split("T")[0]}},248:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(4848),i=n(6540),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function s(e){var t=e.autocomplete,n=e.value,s=e.type,o=e.inputMode,l=e.placeholder,c=e.label,u=e.name,d=e.onValueChanged,h=e.required,m=void 0!==h&&h,f=e.requiredErrorMessage,_=void 0===f?"This field is required.":f,p=e.regexPattern,g=e.regexErrorMessage,y=void 0===g?"Invalid format":g,v=e.validateOnBlur,b=void 0===v||v,w=e.onBlur,M=e.onFocus,k=e.minLength,L=e.maxLength,T=e.min,S=e.max,C=e.error,A=e.disabled,D=void 0!==A&&A,Y=(0,i.useState)(null),E=Y[0],x=Y[1],O=E||C,I=(0,i.useRef)(null);(0,i.useEffect)(function(){x(null)},[n]),(0,i.useEffect)(function(){I.current&&I.current.setCustomValidity(O||"")},[O]);return(0,r.jsxs)("label",a({className:"ace-label"},{children:[(0,r.jsx)("p",a({className:m?"ace-label--required":""},{children:c})),(0,r.jsx)("input",{ref:I,name:u,className:"ace-input".concat(O?" ace-input--error":""),"aria-invalid":!!O,autoComplete:t,type:s,inputMode:o,placeholder:l,required:m,pattern:null==p?void 0:p.source,onInvalid:function(e){e.preventDefault(),m&&!e.target.value.trim()?x(_):p&&e.target.value&&!p.test(e.target.value)?x(y):e.target.validity.rangeUnderflow?x(null==T?void 0:T.error):e.target.validity.rangeOverflow?x(null==S?void 0:S.error):e.target.validity.tooShort?x(k.error):e.target.validity.tooLong&&x(L.error)},onChange:function(e){var t=e.target.value;d(t.trimStart())},onKeyDown:function(e){"number"===s&&("e"!==e.key.toLowerCase()&&"."!==e.key&&"-"!==e.key||e.preventDefault())},onBlur:function(){b&&I.current&&I.current.reportValidity(),w&&w()},onFocus:M,value:n||"",minLength:null==k?void 0:k.value,maxLength:null==L?void 0:L.value,min:null==T?void 0:T.value,max:null==S?void 0:S.value,disabled:D}),D&&(0,r.jsx)("i",{className:"iconoir-lock ace-input__disabled-icon","aria-hidden":"true"}),(0,r.jsx)("p",a({className:"ace-input__error",style:{visibility:O?"visible":"hidden"}},{children:null!=O?O:"Empty"}))]}))}},9771:function(e){"use strict";var t=function(){};e.exports=t},1083:function(e,t,n){"use strict";n.d(t,{A:function(){return vt}});var r={};function i(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:function(){return de},hasStandardBrowserEnv:function(){return me},hasStandardBrowserWebWorkerEnv:function(){return fe},navigator:function(){return he},origin:function(){return _e}});const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:o,toStringTag:l}=Symbol,c=(u=Object.create(null),e=>{const t=a.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),h=e=>t=>typeof t===e,{isArray:m}=Array,f=h("undefined");function _(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=d("ArrayBuffer");const g=h("string"),y=h("function"),v=h("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l in e||o in e)},M=d("Date"),k=d("File"),L=d("Blob"),T=d("FileList"),S=d("URLSearchParams"),[C,A,D,Y]=["ReadableStream","Request","Response","Headers"].map(d);function E(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),m(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(_(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function x(e,t){if(_(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,I=e=>!f(e)&&e!==O;
vendor: 8,365 bytes, line 2
2const N=(R="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>R&&e instanceof R);var R;const j=d("HTMLFormElement"),P=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H=d("RegExp"),q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};E(n,(n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)}),Object.defineProperties(e,r)};const U=d("AsyncFunction"),F=(B="function"==typeof setImmediate,W=y(O.postMessage),B?setImmediate:W?(z=`axios@${Math.random()}`,K=[],O.addEventListener("message",({source:e,data:t})=>{e===O&&t===z&&K.length&&K.shift()()},!1),e=>{K.push(e),O.postMessage(z,"*")}):e=>setTimeout(e));var B,W,z,K;const $="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):"undefined"!=typeof process&&process.nextTick||F;var G={isArray:m,isArrayBuffer:p,isBuffer:_,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isEmptyObject:e=>{if(!b(e)||_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:C,isRequest:A,isResponse:D,isHeaders:Y,isUndefined:f,isDate:M,isFile:k,isBlob:L,isRegExp:H,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:S,isTypedArray:N,isFileList:T,forEach:E,merge:function e(){const{caseless:t,skipUndefined:n}=I(this)&&this||{},r={},i=(i,a)=>{const s=t&&x(r,a)||a;w(r[s])&&w(i)?r[s]=e(r[s],i):w(i)?r[s]=e({},i):m(i)?r[s]=i.slice():n&&f(i)||(r[s]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],i);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(E(t,(t,r)=>{n&&y(t)?Object.defineProperty(e,r,{value:i(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,o;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],r&&!r(o,e,t)||l[o]||(t[o]=e[o],l[o]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[o]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:q,freezeMethods:e=>{q(e,(t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return m(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:O,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[l]&&e[o])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(_(e))return e;if(!("toJSON"in e)){t[r]=e;const i=m(e)?[]:{};return E(e,(e,t)=>{const a=n(e,r+1);!f(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:F,asap:$,isIterable:e=>null!=e&&y(e[o])};class V extends Error{static from(e,t,n,r,i,a){const s=new V(e.message,t||e.code,n,r,i);return s.cause=e,s.name=e.name,a&&Object.assign(s,a),s}constructor(e,t,n,r,i){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){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:G.toJSONObject(this.config),code:this.code,status:this.status}}}V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",V.ERR_BAD_OPTION="ERR_BAD_OPTION",V.ECONNABORTED="ECONNABORTED",V.ETIMEDOUT="ETIMEDOUT",V.ERR_NETWORK="ERR_NETWORK",V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",V.ERR_DEPRECATED="ERR_DEPRECATED",V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",V.ERR_BAD_REQUEST="ERR_BAD_REQUEST",V.ERR_CANCELED="ERR_CANCELED",V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",V.ERR_INVALID_URL="ERR_INVALID_URL";var J=V;function Q(e){return G.isPlainObject(e)||G.isArray(e)}function Z(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map(function(e,t){return e=Z(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ee=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});var te=function(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,i=n.visitor||c,a=n.dots,s=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!o&&G.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let o=e;if(e&&!i&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(Q)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(o=G.toArray(e)))return n=Z(n),o.forEach(function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===s?X([n],r,a):null===s?n:n+"[]",l(e))}),!1;return!!Q(e)||(t.append(X(i,n,a),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Q});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),G.forEach(n,function(n,a){!0===(!(G.isUndefined(n)||null===n)&&i.call(t,n,G.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ie=re.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ae=re;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function oe(e,t,n){if(!t)return e;const r=n&&n.encode||se,i=G.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let s;if(s=a?a(t,i):G.isURLSearchParams(t)?t.toString():new ae(t,i).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}var le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}
vendor: 4,907 bytes, line 2
2,ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,he="object"==typeof navigator&&navigator||void 0,me=de&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_e=de&&window.location.href||"http://localhost";var pe={...r,...ue};var ge=function(e){function t(e,n,r,i){let a=e[i++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),o=i>=e.length;if(a=!a&&G.isArray(r)?r.length:a,o)return G.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s;r[a]&&G.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],i)&&G.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!s}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=G.isObject(e);i&&G.isHTMLForm(e)&&(e=new FormData(e));if(G.isFormData(e))return r?JSON.stringify(ge(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new pe.classes.URLSearchParams,{visitor:function(e,t,n,r){return pe.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});var ve=ye;const be=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const we=Symbol("internals");function Me(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:G.isArray(e)?e.map(ke):String(e)}function Le(e,t,n,r,i){return G.isFunction(r)?r.call(this,t,n):(i&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class Te{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Me(t);if(!i)throw new Error("header name must be a non-empty string");const a=G.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=ke(e))}const a=(e,t)=>G.forEach(e,(e,n)=>i(e,n,t));if(G.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&be[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n,r,i={};for(const t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?G.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=Me(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Me(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Le(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Me(e)){const i=G.findKey(n,e);!i||t&&!Le(0,n[i],i,t)||(delete n[i],r=!0)}}return G.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Le(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,(r,i)=>{const a=G.findKey(n,i);if(a)return t[a]=ke(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=ke(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Me(e);t[r]||(!function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),G.freezeMethods(Te);var Se=Te;function Ce(e,t){const n=this||ve,r=t||n,i=Se.from(r.headers);let a=r.data;return G.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ae(e){return!(!e||!e.__CANCEL__)}var De=class extends J{constructor(e,t,n){super(null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ye(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ee=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,s=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=r[s];i||(i=l),n[a]=o,r[a]=l;let u=s,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-i<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}};var xe=function(e,t){let n,r,i=0,a=1e3/t;const s=(t,a=Date.now())=>{i=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),o=t-i;o>=a?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},a-o)))},()=>n&&s(n)]};const Oe=(e,t,n=3)=>{let r=0;const i=Ee(50,250);return xe(n=>{const a=n.loaded,s=n.lengthComputable?n.total:void 0,o=a-r,l=i(o);r=a;e({loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Ie=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ne=e=>(...t)=>G.asap(()=>e(...t));var Re=pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,je=pe.hasStandardBrowserEnv?{write(e,t,n,r,i,a,s){if("undefined"==typeof document)return;const o=[`${e}=${encodeURIComponent(t)}`];G.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),G.isString(r)&&o.push(`path=${r}`),G.isString(i)&&o.push(`domain=${i}`),!0===a&&o.push("secure"),G.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Pe(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const He=e=>e instanceof Se?{...e}:e;function qe(e,t){t=t||{};const n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function i(e,t,n,i){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!G.isUndefined(t))return r(void 0,t)}function s(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,i,a){return a in t?r(n,i):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t,n)=>
vendor: 4,984 bytes, line 2
2i(He(e),He(t),0,!0)};return G.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||i,s=a(e[r],t[r],r);G.isUndefined(s)&&a!==o||(n[r]=s)}),n}var Ue=e=>{const t=qe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;if(t.headers=s=Se.from(s),t.url=oe(Pe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),G.isFormData(n))if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(pe.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(t)),r||!1!==r&&Re(t.url))){const e=i&&a&&je.read(a);e&&s.set(i,e)}return t};var Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ue(e);let i=r.data;const a=Se.from(r.headers).normalize();let s,o,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:m}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let _=new XMLHttpRequest;function p(){if(!_)return;const r=Se.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());Ye(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:e,request:_}),_=null}_.open(r.method.toUpperCase(),r.url,!0),_.timeout=r.timeout,"onloadend"in _?_.onloadend=p:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(p)},_.onabort=function(){_&&(n(new J("Request aborted",J.ECONNABORTED,e,_)),_=null)},_.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new J(r,J.ERR_NETWORK,e,_);i.event=t||null,n(i),_=null},_.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,i.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,_)),_=null},void 0===i&&a.setContentType(null),"setRequestHeader"in _&&G.forEach(a.toJSON(),function(e,t){_.setRequestHeader(t,e)}),G.isUndefined(r.withCredentials)||(_.withCredentials=!!r.withCredentials),d&&"json"!==d&&(_.responseType=r.responseType),m&&([l,u]=Oe(m,!0),_.addEventListener("progress",l)),h&&_.upload&&([o,c]=Oe(h),_.upload.addEventListener("progress",o),_.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=t=>{_&&(n(!t||t.type?new De(null,e,_):t),_.abort(),_=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===pe.protocols.indexOf(g)?n(new J("Unsupported protocol "+g+":",J.ERR_BAD_REQUEST,e)):_.send(i||null)})};var Be=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new De(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,i(new J(`timeout of ${t}ms exceeded`,J.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:o}=r;return o.unsubscribe=()=>G.asap(s),o}};const We=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ze=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of ze(e))yield*We(n,t)}(e,t);let a,s=0,o=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return o(),void e.close();let a=r.byteLength;if(n){let e=s+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw o(e),e}},cancel(e){return o(e),i.return()}},{highWaterMark:2})},{isFunction:$e}=G,Ge=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:Ve,TextEncoder:Je}=G.global,Qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ze=e=>{e=G.merge.call({skipUndefined:!0},Ge,e);const{fetch:t,Request:n,Response:r}=e,i=t?$e(t):"function"==typeof fetch,a=$e(n),s=$e(r);if(!i)return!1;const o=i&&$e(Ve),l=i&&("function"==typeof Je?(c=new Je,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=a&&o&&Qe(()=>{let e=!1;const t=new n(pe.origin,{body:new Ve,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&o&&Qe(()=>G.isReadableStream(new r("").body)),h={stream:d&&(e=>e.body)};
2i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!h[e]&&(h[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})});const m=async(e,t)=>{const r=G.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new n(pe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:i,method:s,data:o,signal:l,cancelToken:c,timeout:f,onDownloadProgress:_,onUploadProgress:p,responseType:g,headers:y,withCredentials:v="same-origin",fetchOptions:b}=Ue(e),w=t||fetch;g=g?(g+"").toLowerCase():"text";let M=Be([l,c&&c.toAbortSignal()],f),k=null;const L=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let T;try{if(p&&u&&"get"!==s&&"head"!==s&&0!==(T=await m(y,o))){let e,t=new n(i,{method:"POST",body:o,duplex:"half"});if(G.isFormData(o)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Ie(T,Oe(Ne(p)));o=Ke(t.body,65536,e,n)}}G.isString(v)||(v=v?"include":"omit");const t=a&&"credentials"in n.prototype,l={...b,signal:M,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:t?v:void 0};k=a&&new n(i,l);let c=await(a?w(k,b):w(i,l));const f=d&&("stream"===g||"response"===g);if(d&&(_||f&&L)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});const t=G.toFiniteNumber(c.headers.get("content-length")),[n,i]=_&&Ie(t,Oe(Ne(_),!0))||[];c=new r(Ke(c.body,65536,n,()=>{i&&i(),L&&L()}),e)}g=g||"text";let S=await h[G.findKey(h,g)||"text"](c,e);return!f&&L&&L(),await new Promise((t,n)=>{Ye(t,n,{data:S,headers:Se.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:k})})}catch(t){if(L&&L(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,k),{cause:t.cause||t});throw J.from(t,t&&t.code,e,k)}}},Xe=new Map,et=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let s,o,l=a.length,c=Xe;for(;l--;)s=a[l],o=c.get(s),void 0===o&&c.set(s,o=l?new Map:Ze(t)),c=o;return o};et();const tt={http:null,xhr:Fe,fetch:{get:et}};G.forEach(tt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const nt=e=>`- ${e}`,rt=e=>G.isFunction(e)||null===e||!1===e;var it={getAdapter:function(e,t){e=G.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let s=0;s<n;s++){let n;if(r=e[s],i=r,!rt(r)&&(i=tt[(n=String(r)).toLowerCase()],void 0===i))throw new J(`Unknown adapter '${n}'`);if(i&&(G.isFunction(i)||(i=i.get(t))))break;a[n||"#"+s]=i}if(!i){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(nt).join("\n"):" "+nt(e[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:tt};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new De(null,e)}function st(e){at(e),e.headers=Se.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return it.getAdapter(e.adapter||ve.adapter,e)(e).then(function(t){return at(e),t.data=Ce.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t},function(t){return Ae(t)||(at(e),t&&t.response&&(t.response.data=Ce.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)})}const ot="1.13.4",lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ct={};lt.transitional=function(e,t,n){return(r,i,a)=>{if(!1===e)throw new J(function(e,t){return"[Axios v"+ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(i," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!ct[i]&&(ct[i]=!0),!e||e(r,i,a)}},lt.spelling=function(e){return(e,t)=>!0};var ut={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new J("option "+a+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}},validators:lt};const dt=ut.validators;class ht{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&ut.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)}
vendor: 2,882 bytes, line 2
2,!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:ut.assertOptions(r,{encode:dt.function,serialize:dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ut.assertOptions(t,{baseUrl:dt.spelling("baseURL"),withXsrfToken:dt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&G.merge(i.common,i[t.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Se.concat(a,i);const s=[];let o=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!o){const e=[st.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let h=t;for(;d<u;){const e=s[d++],t=s[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=st.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return oe(Pe((e=qe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){ht.prototype[e]=function(t,n){return this.request(qe(n||{},{method:e,url:t,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(qe(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ht.prototype[e]=t(),ht.prototype[e+"Form"]=t(!0)});var mt=ht;class ft{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new De(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ft(function(t){e=t}),cancel:e}}}var _t=ft;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});var gt=pt;const yt=function e(t){const n=new mt(t),r=i(mt.prototype.request,n);return G.extend(r,mt.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(qe(t,n))},r}(ve);yt.Axios=mt,yt.CanceledError=De,yt.CancelToken=_t,yt.isCancel=Ae,yt.VERSION=ot,yt.toFormData=te,yt.AxiosError=J,yt.Cancel=yt.CanceledError,yt.all=function(e){return Promise.all(e)},yt.spread=function(e){return function(t){return e.apply(null,t)}},yt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=qe,yt.AxiosHeaders=Se,yt.formToJSON=e=>ge(G.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=it.getAdapter,yt.HttpStatusCode=gt,yt.default=yt;var vt=yt}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.