forked from sylvainjule/kirby-pagetable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 159 KB
/
index.js
1
(function () {var Fa=this;var kc=pc;var hb=sc;for(var na=[],la=[],lc="undefined"!=typeof Uint8Array?Uint8Array:Array,Va="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xa=0,mc=Va.length;xa<mc;++xa)na[xa]=Va[xa],la[Va.charCodeAt(xa)]=xa;function nc($){var r=$.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=$.indexOf("=");return-1===p&&(p=r),[p,p===r?0:4-p%4]}function oc($,r,p){return 3*(r+p)/4-p}function pc($){var r,p,o=nc($),e=o[0],y=o[1],h=new lc(oc($,e,y)),a=0,t=y>0?e-4:e;for(p=0;p<t;p+=4)r=la[$.charCodeAt(p)]<<18|la[$.charCodeAt(p+1)]<<12|la[$.charCodeAt(p+2)]<<6|la[$.charCodeAt(p+3)],h[a++]=r>>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===y&&(r=la[$.charCodeAt(p)]<<2|la[$.charCodeAt(p+1)]>>4,h[a++]=255&r),1===y&&(r=la[$.charCodeAt(p)]<<10|la[$.charCodeAt(p+1)]<<4|la[$.charCodeAt(p+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h}function qc($){return na[$>>18&63]+na[$>>12&63]+na[$>>6&63]+na[63&$]}function rc($,r,p){for(var o,e=[],y=r;y<p;y+=3)o=($[y]<<16&16711680)+($[y+1]<<8&65280)+(255&$[y+2]),e.push(qc(o));return e.join("")}function sc($){for(var r,p=$.length,o=p%3,e=[],y=0,h=p-o;y<h;y+=16383)e.push(rc($,y,y+16383>h?h:y+16383));return 1===o?(r=$[p-1],e.push(na[r>>2]+na[r<<4&63]+"==")):2===o&&(r=($[p-2]<<8)+$[p-1],e.push(na[r>>10]+na[r>>4&63]+na[r<<2&63]+"=")),e.join("")}la["-".charCodeAt(0)]=62,la["_".charCodeAt(0)]=63;var Ga=function(t,r,o,a,$){var e,p,J=8*$-a-1,N=(1<<J)-1,h=N>>1,M=-7,w=o?$-1:0,f=o?-1:1,i=t[r+w];for(w+=f,e=i&(1<<-M)-1,i>>=-M,M+=J;M>0;e=256*e+t[r+w],w+=f,M-=8);for(p=e&(1<<-M)-1,e>>=-M,M+=a;M>0;p=256*p+t[r+w],w+=f,M-=8);if(0===e)e=1-h;else{if(e===N)return p?NaN:1/0*(i?-1:1);p+=Math.pow(2,a),e-=h}return(i?-1:1)*p*Math.pow(2,e-a)};var ib=function(t,r,o,a,$,e){var p,J,N,h=8*e-$-1,M=(1<<h)-1,w=M>>1,f=23===$?Math.pow(2,-24)-Math.pow(2,-77):0,i=a?0:e-1,g=a?1:-1,s=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(J=isNaN(r)?1:0,p=M):(p=Math.floor(Math.log(r)/Math.LN2),r*(N=Math.pow(2,-p))<1&&(p--,N*=2),(r+=p+w>=1?f/N:f*Math.pow(2,1-w))*N>=2&&(p++,N/=2),p+w>=M?(J=0,p=M):p+w>=1?(J=(r*N-1)*Math.pow(2,$),p+=w):(J=r*Math.pow(2,w-1)*Math.pow(2,$),p=0));$>=8;t[o+i]=255&J,i+=g,J/=256,$-=8);for(p=p<<$|J,h+=$;h>0;t[o+i]=255&p,i+=g,p/=256,h-=8);t[o+i-g]|=128*s};var jb={},tc={}.toString;jb=Array.isArray||function(r){return"[object Array]"==tc.call(r)};var uc=50;aa.TYPED_ARRAY_SUPPORT=void 0!==Fa.TYPED_ARRAY_SUPPORT?Fa.TYPED_ARRAY_SUPPORT:vc();var a=Ha();function vc(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===r.foo()&&"function"==typeof r.subarray&&0===r.subarray(1,1).byteLength}catch(e){return!1}}function Ha(){return aa.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function qa(r,e){if(Ha()<e)throw new RangeError("Invalid typed array length");return aa.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e)).__proto__=aa.prototype:(null===r&&(r=new aa(e)),r.length=e),r}function aa(r,e,t){if(!(aa.TYPED_ARRAY_SUPPORT||this instanceof aa))return new aa(r,e,t);if("number"==typeof r){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return Wa(this,r)}return kb(this,r,e,t)}function kb(r,e,t,$){if("number"==typeof e)throw new TypeError("\"value\" argument must not be a number");return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?yc(r,e,t,$):"string"==typeof e?xc(r,e,t):zc(r,e)}function lb(r){if("number"!=typeof r)throw new TypeError("\"size\" argument must be a number");if(r<0)throw new RangeError("\"size\" argument must not be negative")}function wc(r,e,t,$){return lb(e),e<=0?qa(r,e):void 0!==t?"string"==typeof $?qa(r,e).fill(t,$):qa(r,e).fill(t):qa(r,e)}function Wa(r,e){if(lb(e),r=qa(r,e<0?0:0|Ya(e)),!aa.TYPED_ARRAY_SUPPORT)for(var t=0;t<e;++t)r[t]=0;return r}function xc(r,e,t){if("string"==typeof t&&""!==t||(t="utf8"),!aa.isEncoding(t))throw new TypeError("\"encoding\" must be a valid string encoding");var $=0|mb(e,t),n=(r=qa(r,$)).write(e,t);return n!==$&&(r=r.slice(0,n)),r}function Xa(r,e){var t=e.length<0?0:0|Ya(e.length);r=qa(r,t);for(var $=0;$<t;$+=1)r[$]=255&e[$];return r}function yc(r,e,t,$){if(e.byteLength,t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+($||0))throw new RangeError("'length' is out of bounds");return e=void 0===t&&void 0===$?new Uint8Array(e):void 0===$?new Uint8Array(e,t):new Uint8Array(e,t,$),aa.TYPED_ARRAY_SUPPORT?(r=e).__proto__=aa.prototype:r=Xa(r,e),r}function zc(r,e){if(aa.isBuffer(e)){var t=0|Ya(e.length);return 0===(r=qa(r,t)).length?r:(e.copy(r,0,0,t),r)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Sc(e.length)?qa(r,0):Xa(r,e);if("Buffer"===e.type&&jb(e.data))return Xa(r,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ya(r){if(r>=Ha())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ha().toString(16)+" bytes");return 0|r}function mb(r,e){if(aa.isBuffer(r))return r.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;"string"!=typeof r&&(r=""+r);var t=r.length;if(0===t)return 0;for(var $=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return Ka(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return vb(r).length;default:if($)return Ka(r).length;e=(""+e).toLowerCase(),$=!0;}}function Ac(r,e,t){var $=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return Kc(this,e,t);case"utf8":case"utf-8":return qb(this,e,t);case"ascii":return Ic(this,e,t);case"latin1":case"binary":return Jc(this,e,t);case"base64":return Gc(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lc(this,e,t);default:if($)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),$=!0;}}function sa(r,e,t){var $=r[e];r[e]=r[t],r[t]=$}function nb(r,e,t,$,n){if(0===r.length)return-1;if("string"==typeof t?($=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0){if(!n)return-1;t=0}if("string"==typeof e&&(e=aa.from(e,$)),aa.isBuffer(e))return 0===e.length?-1:ob(r,e,t,$,n);if("number"==typeof e)return e&=255,aa.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):ob(r,[e],t,$,n);throw new TypeError("val must be string, number or Buffer")}function ob(r,e,t,$,n){var s,f=1,h=r.length,a=e.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(r.length<2||e.length<2)return-1;f=2,h/=2,a/=2,t/=2}function i(r,e){return 1===f?r[e]:r.readUInt16BE(e*f)}if(n){var o=-1;for(s=t;s<h;s++)if(i(r,s)===i(e,-1===o?0:s-o)){if(-1===o&&(o=s),s-o+1===a)return o*f}else-1!==o&&(s-=s-o),o=-1}else for(t+a>h&&(t=h-a),s=t;s>=0;s--){for(var u=!0,d=0;d<a;d++)if(i(r,s+d)!==i(e,d)){u=!1;break}if(u)return s}return-1}function Bc(r,e,t,$){t=Number(t)||0;var n=r.length-t;$?($=Number($))>n&&($=n):$=n;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");$>s/2&&($=s/2);for(var f=0;f<$;++f){var h=parseInt(e.substr(2*f,2),16);if(isNaN(h))return f;r[t+f]=h}return f}function Cc(r,e,t,$){return La(Ka(e,r.length-t),r,t,$)}function pb(r,e,t,$){return La(Qc(e),r,t,$)}function Dc(r,e,t,$){return pb(r,e,t,$)}function Ec(r,e,t,$){return La(vb(e),r,t,$)}function Fc(r,e,t,$){return La(Rc(e,r.length-t),r,t,$)}function Gc(r,e,t){return 0===e&&t===r.length?hb(r):hb(r.slice(e,t))}function qb(r,e,t){t=Math.min(r.length,t);for(var $=[],n=e;n<t;){var s,f,h,a,i=r[n],o=null,u=i>239?4:i>223?3:i>191?2:1;if(n+u<=t)switch(u){case 1:i<128&&(o=i);break;case 2:128==(192&(s=r[n+1]))&&(a=(31&i)<<6|63&s)>127&&(o=a);break;case 3:s=r[n+1],f=r[n+2],128==(192&s)&&128==(192&f)&&(a=(15&i)<<12|(63&s)<<6|63&f)>2047&&(a<55296||a>57343)&&(o=a);break;case 4:s=r[n+1],f=r[n+2],h=r[n+3],128==(192&s)&&128==(192&f)&&128==(192&h)&&(a=(15&i)<<18|(63&s)<<12|(63&f)<<6|63&h)>65535&&a<1114112&&(o=a);}null===o?(o=65533,u=1):o>65535&&(o-=65536,$.push(o>>>10&1023|55296),o=56320|1023&o),$.push(o),n+=u}return Hc($)}aa.poolSize=8192,aa._augment=function(r){return r.__proto__=aa.prototype,r},aa.from=function(r,e,t){return kb(null,r,e,t)},aa.TYPED_ARRAY_SUPPORT&&(aa.prototype.__proto__=Uint8Array.prototype,aa.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&aa[Symbol.species]===aa&&Object.defineProperty(aa,Symbol.species,{value:null,configurable:!0})),aa.alloc=function(r,e,t){return wc(null,r,e,t)},aa.allocUnsafe=function(r){return Wa(null,r)},aa.allocUnsafeSlow=function(r){return Wa(null,r)},aa.isBuffer=function(r){return!(null==r||!r._isBuffer)},aa.compare=function(r,e){if(!aa.isBuffer(r)||!aa.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var t=r.length,$=e.length,n=0,s=Math.min(t,$);n<s;++n)if(r[n]!==e[n]){t=r[n],$=e[n];break}return t<$?-1:$<t?1:0},aa.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1;}},aa.concat=function(r,e){if(!jb(r))throw new TypeError("\"list\" argument must be an Array of Buffers");if(0===r.length)return aa.alloc(0);var t;if(void 0===e)for(e=0,t=0;t<r.length;++t)e+=r[t].length;var $=aa.allocUnsafe(e),n=0;for(t=0;t<r.length;++t){var s=r[t];if(!aa.isBuffer(s))throw new TypeError("\"list\" argument must be an Array of Buffers");s.copy($,n),n+=s.length}return $},aa.byteLength=mb,aa.prototype._isBuffer=!0,aa.prototype.swap16=function(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)sa(this,e,e+1);return this},aa.prototype.swap32=function(){var r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)sa(this,e,e+3),sa(this,e+1,e+2);return this},aa.prototype.swap64=function(){var r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)sa(this,e,e+7),sa(this,e+1,e+6),sa(this,e+2,e+5),sa(this,e+3,e+4);return this},aa.prototype.toString=function(){var r=0|this.length;return 0===r?"":0===arguments.length?qb(this,0,r):Ac.apply(this,arguments)},aa.prototype.equals=function(r){if(!aa.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||0===aa.compare(this,r)},aa.prototype.inspect=function(){var r="",e=uc;return this.length>0&&(r=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(r+=" ... ")),"<Buffer "+r+">"},aa.prototype.compare=function(r,e,t,$,n){if(!aa.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=r?r.length:0),void 0===$&&($=0),void 0===n&&(n=this.length),e<0||t>r.length||$<0||n>this.length)throw new RangeError("out of range index");if($>=n&&e>=t)return 0;if($>=n)return-1;if(e>=t)return 1;if(this===r)return 0;for(var s=(n>>>=0)-($>>>=0),f=(t>>>=0)-(e>>>=0),h=Math.min(s,f),a=this.slice($,n),i=r.slice(e,t),o=0;o<h;++o)if(a[o]!==i[o]){s=a[o],f=i[o];break}return s<f?-1:f<s?1:0},aa.prototype.includes=function(r,e,t){return-1!==this.indexOf(r,e,t)},aa.prototype.indexOf=function(r,e,t){return nb(this,r,e,t,!0)},aa.prototype.lastIndexOf=function(r,e,t){return nb(this,r,e,t,!1)},aa.prototype.write=function(r,e,t,$){if(void 0===e)$="utf8",t=this.length,e=0;else if(void 0===t&&"string"==typeof e)$=e,t=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(t)?(t|=0,void 0===$&&($="utf8")):($=t,t=void 0)}var n=this.length-e;if((void 0===t||t>n)&&(t=n),r.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var s=!1;;)switch($){case"hex":return Bc(this,r,e,t);case"utf8":case"utf-8":return Cc(this,r,e,t);case"ascii":return pb(this,r,e,t);case"latin1":case"binary":return Dc(this,r,e,t);case"base64":return Ec(this,r,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fc(this,r,e,t);default:if(s)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),s=!0;}},aa.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var rb=4096;function Hc(r){var e=r.length;if(e<=rb)return String.fromCharCode.apply(String,r);for(var t="",$=0;$<e;)t+=String.fromCharCode.apply(String,r.slice($,$+=rb));return t}function Ic(r,e,t){var $="";t=Math.min(r.length,t);for(var n=e;n<t;++n)$+=String.fromCharCode(127&r[n]);return $}function Jc(r,e,t){var $="";t=Math.min(r.length,t);for(var n=e;n<t;++n)$+=String.fromCharCode(r[n]);return $}function Kc(r,e,t){var $=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>$)&&(t=$);for(var n="",s=e;s<t;++s)n+=Pc(r[s]);return n}function Lc(r,e,t){for(var $=r.slice(e,t),n="",s=0;s<$.length;s+=2)n+=String.fromCharCode($[s]+256*$[s+1]);return n}function ha(r,e,t){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}function ja(r,e,t,$,n,s){if(!aa.isBuffer(r))throw new TypeError("\"buffer\" argument must be a Buffer instance");if(e>n||e<s)throw new RangeError("\"value\" argument is out of bounds");if(t+$>r.length)throw new RangeError("Index out of range")}function Ia(r,e,t,$){e<0&&(e=65535+e+1);for(var n=0,s=Math.min(r.length-t,2);n<s;++n)r[t+n]=(e&255<<8*($?n:1-n))>>>8*($?n:1-n)}function Ja(r,e,t,$){e<0&&(e=4294967295+e+1);for(var n=0,s=Math.min(r.length-t,4);n<s;++n)r[t+n]=e>>>8*($?n:3-n)&255}function sb(r,e,t,$,n,s){if(t+$>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function tb(r,e,t,$,n){return n||sb(r,e,t,4,3.4028234663852886e38,-3.4028234663852886e38),ib(r,e,t,$,23,4),t+4}function ub(r,e,t,$,n){return n||sb(r,e,t,8,1.7976931348623157e308,-1.7976931348623157e308),ib(r,e,t,$,52,8),t+8}aa.prototype.slice=function(r,e){var t,$=this.length;if((r=~~r)<0?(r+=$)<0&&(r=0):r>$&&(r=$),(e=void 0===e?$:~~e)<0?(e+=$)<0&&(e=0):e>$&&(e=$),e<r&&(e=r),aa.TYPED_ARRAY_SUPPORT)(t=this.subarray(r,e)).__proto__=aa.prototype;else{var n=e-r;t=new aa(n,void 0);for(var s=0;s<n;++s)t[s]=this[s+r]}return t},aa.prototype.readUIntLE=function(r,e,t){r|=0,e|=0,t||ha(r,e,this.length);for(var $=this[r],n=1,s=0;++s<e&&(n*=256);)$+=this[r+s]*n;return $},aa.prototype.readUIntBE=function(r,e,t){r|=0,e|=0,t||ha(r,e,this.length);for(var $=this[r+--e],n=1;e>0&&(n*=256);)$+=this[r+--e]*n;return $},aa.prototype.readUInt8=function(r,e){return e||ha(r,1,this.length),this[r]},aa.prototype.readUInt16LE=function(r,e){return e||ha(r,2,this.length),this[r]|this[r+1]<<8},aa.prototype.readUInt16BE=function(r,e){return e||ha(r,2,this.length),this[r]<<8|this[r+1]},aa.prototype.readUInt32LE=function(r,e){return e||ha(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},aa.prototype.readUInt32BE=function(r,e){return e||ha(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},aa.prototype.readIntLE=function(r,e,t){r|=0,e|=0,t||ha(r,e,this.length);for(var $=this[r],n=1,s=0;++s<e&&(n*=256);)$+=this[r+s]*n;return $>=(n*=128)&&($-=Math.pow(2,8*e)),$},aa.prototype.readIntBE=function(r,e,t){r|=0,e|=0,t||ha(r,e,this.length);for(var $=e,n=1,s=this[r+--$];$>0&&(n*=256);)s+=this[r+--$]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},aa.prototype.readInt8=function(r,e){return e||ha(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},aa.prototype.readInt16LE=function(r,e){e||ha(r,2,this.length);var t=this[r]|this[r+1]<<8;return 32768&t?4294901760|t:t},aa.prototype.readInt16BE=function(r,e){e||ha(r,2,this.length);var t=this[r+1]|this[r]<<8;return 32768&t?4294901760|t:t},aa.prototype.readInt32LE=function(r,e){return e||ha(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},aa.prototype.readInt32BE=function(r,e){return e||ha(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},aa.prototype.readFloatLE=function(r,e){return e||ha(r,4,this.length),Ga(this,r,!0,23,4)},aa.prototype.readFloatBE=function(r,e){return e||ha(r,4,this.length),Ga(this,r,!1,23,4)},aa.prototype.readDoubleLE=function(r,e){return e||ha(r,8,this.length),Ga(this,r,!0,52,8)},aa.prototype.readDoubleBE=function(r,e){return e||ha(r,8,this.length),Ga(this,r,!1,52,8)},aa.prototype.writeUIntLE=function(r,e,t,$){(r=+r,e|=0,t|=0,$)||ja(this,r,e,t,Math.pow(2,8*t)-1,0);var n=1,s=0;for(this[e]=255&r;++s<t&&(n*=256);)this[e+s]=r/n&255;return e+t},aa.prototype.writeUIntBE=function(r,e,t,$){(r=+r,e|=0,t|=0,$)||ja(this,r,e,t,Math.pow(2,8*t)-1,0);var n=t-1,s=1;for(this[e+n]=255&r;--n>=0&&(s*=256);)this[e+n]=r/s&255;return e+t},aa.prototype.writeUInt8=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,1,255,0),aa.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=255&r,e+1},aa.prototype.writeUInt16LE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,2,65535,0),aa.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8):Ia(this,r,e,!0),e+2},aa.prototype.writeUInt16BE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,2,65535,0),aa.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=255&r):Ia(this,r,e,!1),e+2},aa.prototype.writeUInt32LE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,4,4294967295,0),aa.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=255&r):Ja(this,r,e,!0),e+4},aa.prototype.writeUInt32BE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,4,4294967295,0),aa.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r):Ja(this,r,e,!1),e+4},aa.prototype.writeIntLE=function(r,e,t,$){if(r=+r,e|=0,!$){var n=Math.pow(2,8*t-1);ja(this,r,e,t,n-1,-n)}var s=0,f=1,h=0;for(this[e]=255&r;++s<t&&(f*=256);)r<0&&0===h&&0!==this[e+s-1]&&(h=1),this[e+s]=(r/f>>0)-h&255;return e+t},aa.prototype.writeIntBE=function(r,e,t,$){if(r=+r,e|=0,!$){var n=Math.pow(2,8*t-1);ja(this,r,e,t,n-1,-n)}var s=t-1,f=1,h=0;for(this[e+s]=255&r;--s>=0&&(f*=256);)r<0&&0===h&&0!==this[e+s+1]&&(h=1),this[e+s]=(r/f>>0)-h&255;return e+t},aa.prototype.writeInt8=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,1,127,-128),aa.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=255&r,e+1},aa.prototype.writeInt16LE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,2,32767,-32768),aa.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8):Ia(this,r,e,!0),e+2},aa.prototype.writeInt16BE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,2,32767,-32768),aa.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=255&r):Ia(this,r,e,!1),e+2},aa.prototype.writeInt32LE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,4,2147483647,-2147483648),aa.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):Ja(this,r,e,!0),e+4},aa.prototype.writeInt32BE=function(r,e,t){return r=+r,e|=0,t||ja(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),aa.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r):Ja(this,r,e,!1),e+4},aa.prototype.writeFloatLE=function(r,e,t){return tb(this,r,e,!0,t)},aa.prototype.writeFloatBE=function(r,e,t){return tb(this,r,e,!1,t)},aa.prototype.writeDoubleLE=function(r,e,t){return ub(this,r,e,!0,t)},aa.prototype.writeDoubleBE=function(r,e,t){return ub(this,r,e,!1,t)},aa.prototype.copy=function(r,e,t,$){if(t||(t=0),$||0===$||($=this.length),e>=r.length&&(e=r.length),e||(e=0),$>0&&$<t&&($=t),$===t)return 0;if(0===r.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),r.length-e<$-t&&($=r.length-e+t);var n,s=$-t;if(this===r&&t<e&&e<$)for(n=s-1;n>=0;--n)r[n+e]=this[n+t];else if(s<1e3||!aa.TYPED_ARRAY_SUPPORT)for(n=0;n<s;++n)r[n+e]=this[n+t];else Uint8Array.prototype.set.call(r,this.subarray(t,t+s),e);return s},aa.prototype.fill=function(r,e,t,$){if("string"==typeof r){if("string"==typeof e?($=e,e=0,t=this.length):"string"==typeof t&&($=t,t=this.length),1===r.length){var n=r.charCodeAt(0);n<256&&(r=n)}if(void 0!==$&&"string"!=typeof $)throw new TypeError("encoding must be a string");if("string"==typeof $&&!aa.isEncoding($))throw new TypeError("Unknown encoding: "+$)}else"number"==typeof r&&(r&=255);if(e<0||this.length<e||this.length<t)throw new RangeError("Out of range index");if(t<=e)return this;var s;if(e>>>=0,t=void 0===t?this.length:t>>>0,r||(r=0),"number"==typeof r)for(s=e;s<t;++s)this[s]=r;else{var f=aa.isBuffer(r)?r:Ka(new aa(r,$).toString()),h=f.length;for(s=0;s<t-e;++s)this[s+e]=f[s%h]}return this};var Mc=/[^+\/0-9A-Za-z-_]/g;function Nc(r){if((r=Oc(r).replace(Mc,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}function Oc(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function Pc(r){return r<16?"0"+r.toString(16):r.toString(16)}function Ka(r,e){var t;e=e||1/0;for(var $=r.length,n=null,s=[],f=0;f<$;++f){if((t=r.charCodeAt(f))>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(f+1===$){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=65536+(n-55296<<10|t-56320)}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return s}function Qc(r){for(var e=[],t=0;t<r.length;++t)e.push(255&r.charCodeAt(t));return e}function Rc(r,e){for(var t,$,n,s=[],f=0;f<r.length&&!((e-=2)<0);++f)$=(t=r.charCodeAt(f))>>8,n=t%256,s.push(n),s.push($);return s}function vb(r){return kc(Nc(r))}function La(r,e,t,$){for(var n=0;n<$&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function Sc(r){return r!=r}function Ma(e){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tc(e,t){return Vc(e)||Xc(e,t)||Zc()}function wb(e){return Uc(e)||Wc(e)||Yc()}function Uc(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function Vc(e){if(Array.isArray(e))return e}function Wc(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function Xc(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){a=!0,o=u}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}function Yc(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Zc(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var xb=9007199254740991,$c="[object Arguments]",ad="[object Function]",bd="[object GeneratorFunction]",cd=/^(?:0|[1-9]\d*)$/;function dd(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););return e}function ed(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function fd(e,t){return function(r){return e(t(r))}}var Na=Object.prototype,Za=Na.hasOwnProperty,yb=Na.toString,gd=Na.propertyIsEnumerable,hd=fd(Object.keys,Object);function id(e,t){var r=zb(e)||sd(e)?ed(e.length,String):[],n=r.length,a=!!n;for(var o in e)!t&&!Za.call(e,o)||a&&("length"==o||pd(o,n))||r.push(o);return r}var jd=nd(ld),kd=od();function ld(e,t){return e&&kd(e,t,yd)}function md(e){if(!qd(e))return hd(e);var t=[];for(var r in Object(e))Za.call(e,r)&&"constructor"!=r&&t.push(r);return t}function nd(e,t){return function(r,n){if(null==r)return r;if(!$a(r))return e(r,n);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&!1!==n(s[o],o,s););return r}}function od(e){return function(t,r,n){for(var a=-1,o=Object(t),s=n(t),i=s.length;i--;){var u=s[e?i:++a];if(!1===r(o[u],u,o))break}return t}}function pd(e,t){return!!(t=null==t?xb:t)&&("number"==typeof e||cd.test(e))&&e>-1&&e%1==0&&e<t}function qd(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Na)}function rd(e,t){return(zb(e)?dd:jd)(e,"function"==typeof t?t:zd)}function sd(e){return td(e)&&Za.call(e,"callee")&&(!gd.call(e,"callee")||yb.call(e)==$c)}var zb=Array.isArray;function $a(e){return null!=e&&vd(e.length)&&!ud(e)}function td(e){return xd(e)&&$a(e)}function ud(e){var t=wd(e)?yb.call(e):"";return t==ad||t==bd}function vd(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=xb}function wd(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function xd(e){return!!e&&"object"==typeof e}function yd(e){return $a(e)?id(e):md(e)}function zd(e){return e}var da=rd,Ab=9007199254740991,Ad="[object Arguments]",Bd="[object Function]",Cd="[object GeneratorFunction]",Dd=/^(?:0|[1-9]\d*)$/;function Ed(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2]);}return e.apply(t,r)}function Fd(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Gd(e,t){return function(r){return e(t(r))}}var Oa=Object.prototype,Ba=Oa.hasOwnProperty,Bb=Oa.toString,Cb=Oa.propertyIsEnumerable,Hd=Gd(Object.keys,Object),Db=Math.max,Id=!Cb.call({valueOf:1},"valueOf");function Jd(e,t){var r=Qd(e)||Pd(e)?Fd(e.length,String):[],n=r.length,a=!!n;for(var o in e)!t&&!Ba.call(e,o)||a&&("length"==o||Fb(o,n))||r.push(o);return r}function Eb(e,t,r){var n=e[t];Ba.call(e,t)&&Hb(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Kd(e){if(!Gb(e))return Hd(e);var t=[];for(var r in Object(e))Ba.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Ld(e,t){return t=Db(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,a=Db(r.length-t,0),o=Array(a);++n<a;)o[n]=r[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=r[n];return s[t]=o,Ed(e,this,s)}}function Md(e,t,r,n){r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],i=n?n(r[s],e[s],s,r,e):void 0;Eb(r,s,void 0===i?e[s]:i)}return r}function Nd(e){return Ld(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&Od(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++n<a;){var i=r[n];i&&e(t,i,n,o)}return t})}function Fb(e,t){return!!(t=null==t?Ab:t)&&("number"==typeof e||Dd.test(e))&&e>-1&&e%1==0&&e<t}function Od(e,t,r){if(!Ib(r))return!1;var n=typeof t;return!!("number"==n?Pa(r)&&Fb(t,r.length):"string"==n&&t in r)&&Hb(r[t],e)}function Gb(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oa)}function Hb(e,t){return e===t||e!=e&&t!=t}function Pd(e){return Rd(e)&&Ba.call(e,"callee")&&(!Cb.call(e,"callee")||Bb.call(e)==Ad)}var Qd=Array.isArray;function Pa(e){return null!=e&&Td(e.length)&&!Sd(e)}function Rd(e){return Ud(e)&&Pa(e)}function Sd(e){var t=Ib(e)?Bb.call(e):"";return t==Bd||t==Cd}function Td(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ab}function Ib(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ud(e){return!!e&&"object"==typeof e}var Vd=Nd(function(e,t){if(Id||Gb(t)||Pa(t))Md(t,Wd(t),e);else for(var r in t)Ba.call(t,r)&&Eb(e,r,t[r])});function Wd(e){return Pa(e)?Jd(e):Kd(e)}var Jb=Vd,ma="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof Fa?Fa:"undefined"!=typeof self?self:{};function _a(e,t){return e(t={exports:{}},t.exports),t.exports}var ka=_a(function(e,t){var r=200,n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",s="[object Boolean]",i="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",$="[object Number]",d="[object Object]",f="[object RegExp]",v="[object Set]",h="[object String]",w="[object Symbol]",p="[object ArrayBuffer]",g="[object DataView]",m="[object Float32Array]",C="[object Float64Array]",_="[object Int8Array]",y="[object Int16Array]",b="[object Int32Array]",J="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",x="[object Uint32Array]",S=/\w*$/,O=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,E={};E[o]=E["[object Array]"]=E[p]=E[g]=E[s]=E[i]=E[m]=E[C]=E[_]=E[y]=E[b]=E[l]=E[$]=E[d]=E[f]=E[v]=E[h]=E[w]=E[J]=E[T]=E[P]=E[x]=!0,E["[object Error]"]=E[u]=E["[object WeakMap]"]=!1;var D="object"==typeof ma&&ma&&ma.Object===Object&&ma,j="object"==typeof self&&self&&self.Object===Object&&self,R=D||j||Function("return this")(),I=t&&!t.nodeType&&t,F=I&&e&&!e.nodeType&&e,A=F&&F.exports===I;function M(e,t){return e.set(t[0],t[1]),e}function N(e,t){return e.add(t),e}function L(e,t,r,n){var a=-1,o=e?e.length:0;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function z(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function W(e,t){return function(r){return e(t(r))}}function Y(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var q,B=Array.prototype,H=Function.prototype,G=Object.prototype,Q=R["__core-js_shared__"],K=(q=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",V=H.toString,X=G.hasOwnProperty,Z=G.toString,ee=RegExp("^"+V.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=A?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,ae=W(Object.getPrototypeOf,Object),oe=Object.create,se=G.propertyIsEnumerable,ie=B.splice,ue=Object.getOwnPropertySymbols,ce=te?te.isBuffer:void 0,le=W(Object.keys,Object),$e=Fe(R,"DataView"),de=Fe(R,"Map"),fe=Fe(R,"Promise"),ve=Fe(R,"Set"),he=Fe(R,"WeakMap"),we=Fe(Object,"create"),pe=Ue($e),ge=Ue(de),me=Ue(fe),Ce=Ue(ve),_e=Ue(he),ye=re?re.prototype:void 0,be=ye?ye.valueOf:void 0;function Je(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e){this.__data__=new Te(e)}function Se(e,t){var r=We(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ye(e)}(e)&&X.call(e,"callee")&&(!se.call(e,"callee")||Z.call(e)==o)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,a=!!n;for(var s in e)!t&&!X.call(e,s)||a&&("length"==s||Ne(s,n))||r.push(s);return r}function Oe(e,t,r){var n=e[t];X.call(e,t)&&ze(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function ke(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1}function Ee(e,t,r,n,a,O,k){var D;if(n&&(D=O?n(e,a,O,k):n(e)),void 0!==D)return D;if(!He(e))return e;var j=We(e);if(j){if(D=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&X.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(e,D)}else{var R=Me(e),I=R==u||R==c;if(qe(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(R==d||R==o||I&&!O){if(U(e))return O?e:{};if(D=function(e){return"function"!=typeof e.constructor||Le(e)?{}:(t=ae(e),He(t)?oe(t):{});var t}(I?{}:e),!t)return function(e,t){return Re(e,Ae(e),t)}(e,function(e,t){return e&&Re(t,Ge(t),e)}(D,e))}else{if(!E[R])return O?e:{};D=function(e,t,r,n){var a=e.constructor;switch(t){case p:return je(e);case s:case i:return new a(+e);case g:return function(e,t){var r=t?je(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case m:case C:case _:case y:case b:case J:case T:case P:case x:return function(e,t){var r=t?je(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){return L(t?r(z(e),!0):z(e),M,new e.constructor)}(e,n,r);case $:case h:return new a(e);case f:return(c=new(u=e).constructor(u.source,S.exec(u))).lastIndex=u.lastIndex,c;case v:return function(e,t,r){return L(t?r(Y(e),!0):Y(e),N,new e.constructor)}(e,n,r);case w:return o=e,be?Object(be.call(o)):{};}var o;var u,c}(e,R,Ee,t)}}k||(k=new xe);var F=k.get(e);if(F)return F;if(k.set(e,D),!j)var A=r?function(e){return function(e,t,r){var n=t(e);return We(e)?n:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(n,r(e))}(e,Ge,Ae)}(e):Ge(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(A||e,function(a,o){A&&(a=e[o=a]),Oe(D,o,Ee(a,t,r,n,o,e,k))}),D}function De(e){return!(!He(e)||(t=e,K&&K in t))&&(Be(e)||U(e)?ee:O).test(Ue(e));var t}function je(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Re(e,t,r,n){r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],i=n?n(r[s],e[s],s,r,e):void 0;Oe(r,s,void 0===i?e[s]:i)}return r}function Ie(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Fe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return De(r)?r:void 0}Je.prototype.clear=function(){this.__data__=we?we(null):{}},Je.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Je.prototype.get=function(e){var t=this.__data__;if(we){var r=t[e];return r===n?void 0:r}return X.call(t,e)?t[e]:void 0},Je.prototype.has=function(e){var t=this.__data__;return we?void 0!==t[e]:X.call(t,e)},Je.prototype.set=function(e,t){return this.__data__[e]=we&&void 0===t?n:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,r=ke(t,e);return!(r<0||(r==t.length-1?t.pop():ie.call(t,r,1),0))},Te.prototype.get=function(e){var t=this.__data__,r=ke(t,e);return r<0?void 0:t[r][1]},Te.prototype.has=function(e){return ke(this.__data__,e)>-1},Te.prototype.set=function(e,t){var r=this.__data__,n=ke(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Je,map:new(de||Te),string:new Je}},Pe.prototype.delete=function(e){return Ie(this,e).delete(e)},Pe.prototype.get=function(e){return Ie(this,e).get(e)},Pe.prototype.has=function(e){return Ie(this,e).has(e)},Pe.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},xe.prototype.clear=function(){this.__data__=new Te},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var a=n.__data__;if(!de||a.length<r-1)return a.push([e,t]),this;n=this.__data__=new Pe(a)}return n.set(e,t),this};var Ae=ue?W(ue,Object):function(){return[]},Me=function(e){return Z.call(e)};function Ne(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Ue(e){if(null!=e){try{return V.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}($e&&Me(new $e(new ArrayBuffer(1)))!=g||de&&Me(new de)!=l||fe&&"[object Promise]"!=Me(fe.resolve())||ve&&Me(new ve)!=v||he&&"[object WeakMap]"!=Me(new he))&&(Me=function(e){var t=Z.call(e),r=t==d?e.constructor:void 0,n=r?Ue(r):void 0;if(n)switch(n){case pe:return g;case ge:return l;case me:return"[object Promise]";case Ce:return v;case _e:return"[object WeakMap]";}return t});var We=Array.isArray;function Ye(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}(e.length)&&!Be(e)}var qe=ce||function(){return!1};function Be(e){var t=He(e)?Z.call(e):"";return t==u||t==c}function He(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return Ye(e)?Se(e):function(e){if(!Le(e))return le(e);var t=[];for(var r in Object(e))X.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Ee(e,!0,!0)}}),Xd=_a(function(e,t){var r=200,n="Expected a function",a="__lodash_hash_undefined__",o=1,s=2,i=1/0,u=9007199254740991,c="[object Arguments]",l="[object Array]",$="[object Boolean]",d="[object Date]",f="[object Error]",v="[object Function]",h="[object GeneratorFunction]",w="[object Map]",p="[object Number]",g="[object Object]",m="[object RegExp]",C="[object Set]",_="[object String]",y="[object Symbol]",b="[object ArrayBuffer]",J="[object DataView]",T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/,x=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,k=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[c]=D[l]=D[b]=D[$]=D[J]=D[d]=D[f]=D[v]=D[w]=D[p]=D[g]=D[m]=D[C]=D[_]=D["[object WeakMap]"]=!1;var j="object"==typeof ma&&ma&&ma.Object===Object&&ma,R="object"==typeof self&&self&&self.Object===Object&&self,I=j||R||Function("return this")(),F=t&&!t.nodeType&&t,A=F&&e&&!e.nodeType&&e,M=A&&A.exports===F&&j.process,N=function(){try{return M&&M.binding("util")}catch(e){}}(),L=N&&N.isTypedArray;function U(e,t){for(var r=-1,n=e?e.length:0,a=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[a++]=s)}return o}function z(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function W(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function Y(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var B,H,G,Q=Array.prototype,K=Function.prototype,V=Object.prototype,X=I["__core-js_shared__"],Z=(B=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",ee=K.toString,te=V.hasOwnProperty,re=V.toString,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ae=I.Symbol,oe=I.Uint8Array,se=V.propertyIsEnumerable,ie=Q.splice,ue=(H=Object.keys,G=Object,function(e){return H(G(e))}),ce=Ye(I,"DataView"),le=Ye(I,"Map"),$e=Ye(I,"Promise"),de=Ye(I,"Set"),fe=Ye(I,"WeakMap"),ve=Ye(Object,"create"),he=Xe(ce),we=Xe(le),pe=Xe($e),ge=Xe(de),me=Xe(fe),Ce=ae?ae.prototype:void 0,_e=Ce?Ce.valueOf:void 0,ye=Ce?Ce.toString:void 0;function be(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Je(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Pe(e){var t=-1,r=e?e.length:0;for(this.__data__=new Te;++t<r;)this.add(e[t])}function xe(e){this.__data__=new Je(e)}function Se(e,t){var r=rt(e)||tt(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,a=!!n;for(var o in e)!t&&!te.call(e,o)||a&&("length"==o||Be(o,n))||r.push(o);return r}function Oe(e,t){for(var r=e.length;r--;)if(et(e[r][0],t))return r;return-1}be.prototype.clear=function(){this.__data__=ve?ve(null):{}},be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},be.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===a?void 0:r}return te.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:te.call(t,e)},be.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?a:t,this},Je.prototype.clear=function(){this.__data__=[]},Je.prototype.delete=function(e){var t=this.__data__,r=Oe(t,e);return!(r<0||(r==t.length-1?t.pop():ie.call(t,r,1),0))},Je.prototype.get=function(e){var t=this.__data__,r=Oe(t,e);return r<0?void 0:t[r][1]},Je.prototype.has=function(e){return Oe(this.__data__,e)>-1},Je.prototype.set=function(e,t){var r=this.__data__,n=Oe(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new be,map:new(le||Je),string:new be}},Te.prototype.delete=function(e){return We(this,e).delete(e)},Te.prototype.get=function(e){return We(this,e).get(e)},Te.prototype.has=function(e){return We(this,e).has(e)},Te.prototype.set=function(e,t){return We(this,e).set(e,t),this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,a),this},Pe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new Je},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Je){var a=n.__data__;if(!le||a.length<r-1)return a.push([e,t]),this;n=this.__data__=new Te(a)}return n.set(e,t),this};var ke,Ee,De=(ke=function(e,t){return e&&Re(e,t,lt)},function(e,t){if(null==e)return e;if(!nt(e))return ke(e,t);for(var r=e.length,n=Ee?r:-1,a=Object(e);(Ee?n--:++n<r)&&!1!==t(a[n],n,a););return e});function je(e,t){var r=[];return De(e,function(e,n,a){t(e,n,a)&&r.push(e)}),r}var Re=function(e){return function(t,r,n){for(var a=-1,o=Object(t),s=n(t),i=s.length;i--;){var u=s[e?i:++a];if(!1===r(o[u],u,o))break}return t}}();function Ie(e,t){for(var r=0,n=(t=He(t,e)?[t]:Ue(t)).length;null!=e&&r<n;)e=e[Ve(t[r++])];return r&&r==n?e:void 0}function Fe(e,t){return null!=e&&t in Object(e)}function Ae(e,t,r,n,a){return e===t||(null==e||null==t||!st(e)&&!it(t)?e!=e&&t!=t:function(e,t,r,n,a,i){var u=rt(e),v=rt(t),h=l,T=l;u||(h=(h=qe(e))==c?g:h);v||(T=(T=qe(t))==c?g:T);var P=h==g&&!W(e),x=T==g&&!W(t),S=h==T;if(S&&!P)return i||(i=new xe),u||ct(e)?ze(e,t,r,n,a,i):function(e,t,r,n,a,i,u){switch(r){case J:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!n(new oe(e),new oe(t)));case $:case d:case p:return et(+e,+t);case f:return e.name==t.name&&e.message==t.message;case m:case _:return e==t+"";case w:var c=Y;case C:var l=i&s;if(c||(c=q),e.size!=t.size&&!l)return!1;var v=u.get(e);if(v)return v==t;i|=o,u.set(e,t);var h=ze(c(e),c(t),n,a,i,u);return u.delete(e),h;case y:if(_e)return _e.call(e)==_e.call(t);}return!1}(e,t,h,r,n,a,i);if(!(a&s)){var O=P&&te.call(e,"__wrapped__"),k=x&&te.call(t,"__wrapped__");if(O||k){var E=O?e.value():e,D=k?t.value():t;return i||(i=new xe),r(E,D,n,a,i)}}if(!S)return!1;return i||(i=new xe),function(e,t,r,n,a,o){var i=a&s,u=lt(e),c=u.length,l=lt(t).length;if(c!=l&&!i)return!1;for(var $=c;$--;){var d=u[$];if(!(i?d in t:te.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var v=!0;o.set(e,t),o.set(t,e);for(var h=i;++$<c;){d=u[$];var w=e[d],p=t[d];if(n)var g=i?n(p,w,d,t,e,o):n(w,p,d,e,t,o);if(!(void 0===g?w===p||r(w,p,n,a,o):g)){v=!1;break}h||(h="constructor"==d)}if(v&&!h){var m=e.constructor,C=t.constructor;m!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof C&&C instanceof C)&&(v=!1)}return o.delete(e),o.delete(t),v}(e,t,r,n,a,i)}(e,t,Ae,r,n,a))}function Me(e){return!(!st(e)||(t=e,Z&&Z in t))&&(at(e)||W(e)?ne:k).test(Xe(e));var t}function Ne(e){return"function"==typeof e?e:null==e?$t:"object"==typeof e?rt(e)?function(e,t){if(He(e)&&Ge(t))return Qe(Ve(e),t);return function(r){var n=function(e,t,r){var n=null==e?void 0:Ie(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=He(t,e)?[t]:Ue(t);var n,a=-1,o=t.length;for(;++a<o;){var s=Ve(t[a]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}if(n)return n;return!!(o=e?e.length:0)&&ot(o)&&Be(s,o)&&(rt(e)||tt(e))}(e,t,Fe)}(r,e):Ae(t,n,void 0,o|s)}}(e[0],e[1]):function(e){var t=function(e){var t=lt(e),r=t.length;for(;r--;){var n=t[r],a=e[n];t[r]=[n,a,Ge(a)]}return t}(e);if(1==t.length&&t[0][2])return Qe(t[0][0],t[0][1]);return function(r){return r===e||function(e,t,r,n){var a=r.length,i=a,u=!n;if(null==e)return!i;for(e=Object(e);a--;){var c=r[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<i;){var l=(c=r[a])[0],$=e[l],d=c[1];if(u&&c[2]){if(void 0===$&&!(l in e))return!1}else{var f=new xe;if(n)var v=n($,d,l,e,t,f);if(!(void 0===v?Ae(d,$,n,o|s,f):v))return!1}}return!0}(r,e,t)}}(e):He(t=e)?(r=Ve(t),function(e){return null==e?void 0:e[r]}):function(e){return function(t){return Ie(t,e)}}(t);var t,r}function Le(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||V,t!==n)return ue(e);var t,r,n,a=[];for(var o in Object(e))te.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Ue(e){return rt(e)?e:Ke(e)}function ze(e,t,r,n,a,i){var u=a&s,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var $=i.get(e);if($&&i.get(t))return $==t;var d=-1,f=!0,v=a&o?new Pe:void 0;for(i.set(e,t),i.set(t,e);++d<c;){var h=e[d],w=t[d];if(n)var p=u?n(w,h,d,t,e,i):n(h,w,d,e,t,i);if(void 0!==p){if(p)continue;f=!1;break}if(v){if(!z(t,function(e,t){if(!v.has(t)&&(h===e||r(h,e,n,a,i)))return v.add(t)})){f=!1;break}}else if(h!==w&&!r(h,w,n,a,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function We(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Ye(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(r)?r:void 0}var qe=function(e){return re.call(e)};function Be(e,t){return!!(t=null==t?u:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function He(e,t){if(rt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ut(e))||P.test(e)||!T.test(e)||null!=t&&e in Object(t)}function Ge(e){return e==e&&!st(e)}function Qe(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(ce&&qe(new ce(new ArrayBuffer(1)))!=J||le&&qe(new le)!=w||$e&&"[object Promise]"!=qe($e.resolve())||de&&qe(new de)!=C||fe&&"[object WeakMap]"!=qe(new fe))&&(qe=function(e){var t=re.call(e),r=t==g?e.constructor:void 0,n=r?Xe(r):void 0;if(n)switch(n){case he:return J;case we:return w;case pe:return"[object Promise]";case ge:return C;case me:return"[object WeakMap]";}return t});var Ke=Ze(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ut(e))return ye?ye.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(t);var r=[];return x.test(e)&&r.push(""),e.replace(S,function(e,t,n,a){r.push(n?a.replace(O,"$1"):t||e)}),r});function Ve(e){if("string"==typeof e||ut(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function Xe(e){if(null!=e){try{return ee.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ze(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s),s};return r.cache=new(Ze.Cache||Te),r}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return it(e)&&nt(e)}(e)&&te.call(e,"callee")&&(!se.call(e,"callee")||re.call(e)==c)}Ze.Cache=Te;var rt=Array.isArray;function nt(e){return null!=e&&ot(e.length)&&!at(e)}function at(e){var t=st(e)?re.call(e):"";return t==v||t==h}function ot(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function ut(e){return"symbol"==typeof e||it(e)&&re.call(e)==y}var ct=L?function(e){return function(t){return e(t)}}(L):function(e){return it(e)&&ot(e.length)&&!!D[re.call(e)]};function lt(e){return nt(e)?Se(e):Le(e)}function $t(e){return e}e.exports=function(e,t){return(rt(e)?U:je)(e,Ne(t))}}),ab=_a(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,i="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",l="[object Boolean]",$="[object Date]",d="[object Error]",f="[object Function]",v="[object GeneratorFunction]",h="[object Map]",w="[object Number]",p="[object Null]",g="[object Object]",m="[object Proxy]",C="[object RegExp]",_="[object Set]",y="[object String]",b="[object Symbol]",J="[object Undefined]",T="[object ArrayBuffer]",P="[object DataView]",x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[i]=O[u]=O[T]=O[l]=O[P]=O[$]=O[d]=O[f]=O[h]=O[w]=O[g]=O[C]=O[_]=O[y]=O["[object WeakMap]"]=!1;var k="object"==typeof ma&&ma&&ma.Object===Object&&ma,E="object"==typeof self&&self&&self.Object===Object&&self,D=k||E||Function("return this")(),j=t&&!t.nodeType&&t,R=j&&e&&!e.nodeType&&e,I=R&&R.exports===j,F=I&&k.process,A=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),M=A&&A.isTypedArray;function N(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function U(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var z,W,Y,q=Array.prototype,B=Function.prototype,H=Object.prototype,G=D["__core-js_shared__"],Q=B.toString,K=H.hasOwnProperty,V=(z=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",X=H.toString,Z=RegExp("^"+Q.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=I?D.Buffer:void 0,te=D.Symbol,re=D.Uint8Array,ne=H.propertyIsEnumerable,ae=q.splice,oe=te?te.toStringTag:void 0,se=Object.getOwnPropertySymbols,ie=ee?ee.isBuffer:void 0,ue=(W=Object.keys,Y=Object,function(e){return W(Y(e))}),ce=Ae(D,"DataView"),le=Ae(D,"Map"),$e=Ae(D,"Promise"),de=Ae(D,"Set"),fe=Ae(D,"WeakMap"),ve=Ae(Object,"create"),he=Ue(ce),we=Ue(le),pe=Ue($e),ge=Ue(de),me=Ue(fe),Ce=te?te.prototype:void 0,_e=Ce?Ce.valueOf:void 0;function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Je(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Je;++t<r;)this.add(e[t])}function Pe(e){var t=this.__data__=new be(e);this.size=t.size}function xe(e,t){var r=Ye(e),n=!r&&We(e),a=!r&&!n&&qe(e),o=!r&&!n&&!a&&Ke(e),s=r||n||a||o,i=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=i.length;for(var c in e)!t&&!K.call(e,c)||s&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Le(c,u))||i.push(c);return i}function Se(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1}function Oe(e){return null==e?void 0===e?J:p:oe&&oe in Object(e)?function(e){var t=K.call(e,oe),r=e[oe];try{e[oe]=void 0;var n=!0}catch(o){}var a=X.call(e);n&&(t?e[oe]=r:delete e[oe]);return a}(e):function(e){return X.call(e)}(e)}function ke(e){return Qe(e)&&Oe(e)==i}function Ee(e,t,r,n,s){return e===t||(null==e||null==t||!Qe(e)&&!Qe(t)?e!=e&&t!=t:function(e,t,r,n,s,c){var f=Ye(e),v=Ye(t),p=f?u:Ne(e),m=v?u:Ne(t),J=(p=p==i?g:p)==g,x=(m=m==i?g:m)==g,S=p==m;if(S&&qe(e)){if(!qe(t))return!1;f=!0,J=!1}if(S&&!J)return c||(c=new Pe),f||Ke(e)?Re(e,t,r,n,s,c):function(e,t,r,n,s,i,u){switch(r){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new re(e),new re(t)));case l:case $:case w:return ze(+e,+t);case d:return e.name==t.name&&e.message==t.message;case C:case y:return e==t+"";case h:var c=L;case _:var f=n&a;if(c||(c=U),e.size!=t.size&&!f)return!1;var v=u.get(e);if(v)return v==t;n|=o,u.set(e,t);var p=Re(c(e),c(t),n,s,i,u);return u.delete(e),p;case b:if(_e)return _e.call(e)==_e.call(t);}return!1}(e,t,p,r,n,s,c);if(!(r&a)){var O=J&&K.call(e,"__wrapped__"),k=x&&K.call(t,"__wrapped__");if(O||k){var E=O?e.value():e,D=k?t.value():t;return c||(c=new Pe),s(E,D,r,n,c)}}if(!S)return!1;return c||(c=new Pe),function(e,t,r,n,o,s){var i=r&a,u=Ie(e),c=u.length,l=Ie(t).length;if(c!=l&&!i)return!1;for(var $=c;$--;){var d=u[$];if(!(i?d in t:K.call(t,d)))return!1}var f=s.get(e);if(f&&s.get(t))return f==t;var v=!0;s.set(e,t),s.set(t,e);for(var h=i;++$<c;){d=u[$];var w=e[d],p=t[d];if(n)var g=i?n(p,w,d,t,e,s):n(w,p,d,e,t,s);if(!(void 0===g?w===p||o(w,p,r,n,s):g)){v=!1;break}h||(h="constructor"==d)}if(v&&!h){var m=e.constructor,C=t.constructor;m!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof C&&C instanceof C)&&(v=!1)}return s.delete(e),s.delete(t),v}(e,t,r,n,s,c)}(e,t,r,n,Ee,s))}function De(e){return!(!Ge(e)||(t=e,V&&V in t))&&(Be(e)?Z:x).test(Ue(e));var t}function je(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||H,t!==n)return ue(e);var t,r,n,a=[];for(var o in Object(e))K.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Re(e,t,r,n,s,i){var u=r&a,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var $=i.get(e);if($&&i.get(t))return $==t;var d=-1,f=!0,v=r&o?new Te:void 0;for(i.set(e,t),i.set(t,e);++d<c;){var h=e[d],w=t[d];if(n)var p=u?n(w,h,d,t,e,i):n(h,w,d,e,t,i);if(void 0!==p){if(p)continue;f=!1;break}if(v){if(!N(t,function(e,t){if(a=t,!v.has(a)&&(h===e||s(h,e,r,n,i)))return v.push(t);var a})){f=!1;break}}else if(h!==w&&!s(h,w,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Ie(e){return function(e,t,r){var n=t(e);return Ye(e)?n:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(n,r(e))}(e,Ve,Me)}function Fe(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return De(r)?r:void 0}ye.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return K.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:K.call(t,e)},ye.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&void 0===t?n:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():ae.call(t,r,1),--this.size,0))},be.prototype.get=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]},be.prototype.has=function(e){return Se(this.__data__,e)>-1},be.prototype.set=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Je.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(le||be),string:new ye}},Je.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Je.prototype.get=function(e){return Fe(this,e).get(e)},Je.prototype.has=function(e){return Fe(this,e).has(e)},Je.prototype.set=function(e,t){var r=Fe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,n),this},Te.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new be,this.size=0},Pe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof be){var a=n.__data__;if(!le||a.length<r-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(a)}return n.set(e,t),this.size=n.size,this};var Me=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[a++]=s)}return o}(se(e),function(t){return ne.call(e,t)}))}:function(){return[]},Ne=Oe;function Le(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(ce&&Ne(new ce(new ArrayBuffer(1)))!=P||le&&Ne(new le)!=h||$e&&"[object Promise]"!=Ne($e.resolve())||de&&Ne(new de)!=_||fe&&"[object WeakMap]"!=Ne(new fe))&&(Ne=function(e){var t=Oe(e),r=t==g?e.constructor:void 0,n=r?Ue(r):"";if(n)switch(n){case he:return P;case we:return h;case pe:return"[object Promise]";case ge:return _;case me:return"[object WeakMap]";}return t});var We=ke(function(){return arguments}())?ke:function(e){return Qe(e)&&K.call(e,"callee")&&!ne.call(e,"callee")},Ye=Array.isArray;var qe=ie||function(){return!1};function Be(e){if(!Ge(e))return!1;var t=Oe(e);return t==f||t==v||t==c||t==m}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ge(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return null!=e&&"object"==typeof e}var Ke=M?function(e){return function(t){return e(t)}}(M):function(e){return Qe(e)&&He(e.length)&&!!O[Oe(e)]};function Ve(e){return null!=(t=e)&&He(t.length)&&!Be(t)?xe(e):je(e);var t}e.exports=function(e,t){return Ee(e,t)}}),Kb={a:["a","\xE0","\xE1","\xE2","\xE3","\xE4","\xE5","\xE6","\u0101","\u0103","\u0105","\u01CE","\u01DF","\u01E1","\u01FB","\u0201","\u0203","\u0227","\u0250","\u0251","\u0252","\u0363","\u0430","\u04D1","\u04D3","\u1D43","\u1D44","\u1D8F","\u1E01","\u1E9A","\u1EA1","\u1EA3","\u1EA5","\u1EA7","\u1EA9","\u1EAB","\u1EAD","\u1EAF","\u1EB1","\u1EB3","\u1EB5","\u1EB7","\u2090","\u2C65","\uFF41"],A:["A","\xC0","\xC1","\xC2","\xC3","\xC4","\xC5","\u0100","\u0102","\u0104","\u01CD","\u01DE","\u01E0","\u01FA","\u0200","\u0202","\u0226","\u023A","\u0410","\u04D0","\u04D2","\u1D00","\u1D2C","\u1E00","\u1EA0","\u1EA2","\u1EA4","\u1EA6","\u1EA8","\u1EAA","\u1EAC","\u1EAE","\u1EB0","\u1EB2","\u1EB4","\u1EB6","\uFF21"],b:["b","\u0180","\u0183","\u0253","\u15AF","\u1D47","\u1D6C","\u1D80","\u1E03","\u1E05","\u1E07","\uFF42"],B:["B","\u0181","\u0182","\u0243","\u0299","\u16D2","\u1D03","\u1D2E","\u1D2F","\u1E02","\u1E04","\u1E06","\uFF22"],c:["c","\xE7","\u0107","\u0109","\u010B","\u010D","\u0188","\u023C","\u0255","\u0368","\u1D04","\u1D9C","\u1E09","\u2184","\uFF43"],C:["C","\xC7","\u0106","\u0108","\u010A","\u010C","\u0187","\u023B","\u0297","\u1E08","\uFF23"],d:["d","\u010F","\u0111","\u018B","\u018C","\u0221","\u0256","\u0257","\u0369","\u1D48","\u1D6D","\u1D81","\u1D91","\u1E0B","\u1E0D","\u1E0F","\u1E11","\u1E13","\uFF44"],D:["D","\u010E","\u0110","\u0189","\u018A","\u1D30","\u1E0A","\u1E0C","\u1E0E","\u1E10","\u1E12","\uFF24"],e:["e","\xE8","\xE9","\xEA","\xEB","\u0113","\u0115","\u0117","\u0119","\u011B","\u01DD","\u0205","\u0207","\u0229","\u0247","\u0258","\u0364","\u1D49","\u1D92","\u1E15","\u1E17","\u1E19","\u1E1B","\u1E1D","\u1EB9","\u1EBB","\u1EBD","\u1EBF","\u1EC1","\u1EC3","\u1EC5","\u1EC7","\u2091","\uFF45"],E:["E","\xC8","\xC9","\xCA","\xCB","\u0112","\u0114","\u0116","\u0118","\u011A","\u0152","\u018E","\u0190","\u0204","\u0206","\u0228","\u0246","\u025B","\u025C","\u0276","\u0404","\u042D","\u044D","\u0454","\u04EC","\u04ED","\u1D07","\u1D08","\u1D31","\u1D32","\u1D4B","\u1D4C","\u1D93","\u1D94","\u1D9F","\u1E14","\u1E16","\u1E18","\u1E1A","\u1E1C","\u1EB8","\u1EBA","\u1EBC","\u1EBE","\u1EC0","\u1EC2","\u1EC4","\u1EC6","\uFF25","\uD801\uDC01","\uD801\uDC29"],f:["f","\u0192","\u1D6E","\u1D82","\u1DA0","\u1E1F","\uFF46"],F:["F","\u0191","\u1E1E","\u214E","\uFF26"],g:["g","\u011D","\u011F","\u0121","\u0123","\u01E5","\u01E7","\u01F5","\u0260","\u0261","\u1D4D","\u1D77","\u1D79","\u1D83","\u1DA2","\u1E21","\uFF47"],G:["G","\u011C","\u011E","\u0120","\u0122","\u0193","\u01E4","\u01E6","\u01F4","\u0262","\u029B","\u1D33","\u1E20","\uFF27"],h:["h","\u0125","\u0127","\u0195","\u021F","\u0265","\u0266","\u02AE","\u02AF","\u02B0","\u02B1","\u036A","\u04BA","\u04BB","\u144B","\u1DA3","\u1E23","\u1E25","\u1E27","\u1E29","\u1E2B","\u2C68","\uFF48"],H:["H","\u0124","\u0126","\u021E","\u029C","\u157C","\u16BA","\u16BB","\u1D34","\u1E22","\u1E24","\u1E26","\u1E28","\u1E2A","\u2C67","\uFF28"],i:["i","\xEC","\xED","\xEE","\xEF","\u0129","\u012B","\u012D","\u012F","\u01D0","\u0209","\u020B","\u0268","\u0365","\u1D09","\u1D4E","\u1D62","\u1D96","\u1DA4","\u1E2D","\u1E2F","\u1EC9","\u1ECB","\uFF49"],I:["I","\xCC","\xCD","\xCE","\xCF","\u0128","\u012A","\u012C","\u012E","\u0130","\u01CF","\u0208","\u020A","\u026A","\u0406","\u1D35","\u1D7B","\u1DA6","\u1DA7","\u1E2C","\u1E2E","\u1EC8","\u1ECA","\uFF29"],j:["j","\u0135","\u01F0","\u0249","\u029D","\u02B2","\u1DA1","\u1DA8","\uFF4A"],J:["J","\u0134","\u1D0A","\u1D36","\uFF2A"],k:["k","\u0137","\u0199","\u01E9","\u029E","\u1D4F","\u1D84","\u1E31","\u1E33","\u1E35","\u2C6A","\uFF4B"],K:["K","\u0136","\u0198","\u01E8","\u1D37","\u1E30","\u1E32","\u1E34","\u2C69","\uFF2B"],l:["l","\u013A","\u013C","\u013E","\u0140","\u0142","\u019A","\u0234","\u026B","\u026C","\u026D","\u02E1","\u1D85","\u1DA9","\u1DAA","\u1E37","\u1E39","\u1E3B","\u1E3D","\u2113","\u2C61"],L:["L","\u0139","\u013B","\u013D","\u013F","\u0141","\u023D","\u029F","\u1D0C","\u1D38","\u1DAB","\u1E36","\u1E38","\u1E3A","\u1E3C","\u2C60","\u2C62"],m:["m","\u026F","\u0270","\u0271","\u036B","\u1D1F","\u1D50","\u1D5A","\u1D6F","\u1D86","\u1DAC","\u1DAD","\u1E3F","\u1E41","\u1E43","\u33A1","\u33A5","\uFF4D"],M:["M","\u019C","\u1D0D","\u1D39","\u1E3E","\u1E40","\u1E42","\uFF2D"],n:["n","\xF1","\u0144","\u0146","\u0148","\u0149","\u019E","\u01F9","\u0235","\u0272","\u0273","\u1D70","\u1D87","\u1DAE","\u1DAF","\u1E45","\u1E47","\u1E49","\u1E4B","\u207F","\uFF4E"],N:["N","\xD1","\u0143","\u0145","\u0147","\u019D","\u01F8","\u0220","\u0274","\u1D0E","\u1D3A","\u1D3B","\u1DB0","\u1E44","\u1E46","\u1E48","\u1E4A","\uFF2E"],o:["o","\xF2","\xF3","\xF4","\xF5","\xF6","\xF8","\u014D","\u014F","\u0151","\u01A1","\u01D2","\u01EB","\u01ED","\u01FF","\u020D","\u020F","\u022B","\u022D","\u022F","\u0231","\u0275","\u0366","\u043E","\u04E7","\u04E9","\u1D0F","\u1D11","\u1D13","\u1D3C","\u1D52","\u1DB1","\u1E4D","\u1E4F","\u1E51","\u1E53","\u1ECD","\u1ECF","\u1ED1","\u1ED3","\u1ED5","\u1ED7","\u1ED9","\u1EDB","\u1EDD","\u1EDF","\u1EE1","\u1EE3","\u2092","\uFF4F","\uD801\uDC2C"],O:["O","\xD2","\xD3","\xD4","\xD5","\xD6","\xD8","\u014C","\u014E","\u0150","\u019F","\u01A0","\u01D1","\u01EA","\u01EC","\u01FE","\u020C","\u020E","\u022A","\u022C","\u022E","\u0230","\u041E","\u04E6","\u04E8","\u1E4C","\u1E4E","\u1E50","\u1E52","\u1ECC","\u1ECE","\u1ED0","\u1ED2","\u1ED4","\u1ED6","\u1ED8","\u1EDA","\u1EDC","\u1EDE","\u1EE0","\u1EE2","\uFF2F","\uD801\uDC04"],p:["p","\u1D56","\u1D71","\u1D7D","\u1D88","\u1E55","\u1E57","\uFF50"],P:["P","\u01A4","\u1D18","\u1D3E","\u1E54","\u1E56","\u2C63","\uFF30"],q:["q","\u024B","\u02A0","\u16E9","\uFF51"],Q:["Q","\u024A","\uFF31"],r:["r","\u0155","\u0157","\u0159","\u0211","\u0213","\u024D","\u0279","\u027B","\u02B3","\u02B4","\u02B5","\u036C","\u1D63","\u1D72","\u1D89","\u1E59","\u1E5B","\u1E5D","\u1E5F"],R:["R","\u0154","\u0156","\u0158","\u01A6","\u0210","\u0212","\u024C","\u0280","\u0281","\u02B6","\u16B1","\u1D19","\u1D1A","\u1D3F","\u1E58","\u1E5A","\u1E5C","\u1E5E","\u2C64"],s:["s","\u015B","\u015D","\u015F","\u0161","\u0219","\u0282","\u1506","\u1D8A","\u1E61","\u1E63","\u1E65","\u1E67","\u1E69","\uFF53"],S:["S","\u015A","\u015C","\u015E","\u0160","\u0218","\u023F","\u02E2","\u1D74","\u1E60","\u1E62","\u1E64","\u1E66","\u1E68","\uFF33"],t:["t","\u0163","\u0165","\u0167","\u01AB","\u01AD","\u021B","\u0287","\u036D","\u1D40","\u1D57","\u1D75","\u1DB5","\u1E6B","\u1E6D","\u1E6F","\u1E71","\u1E97","\uFF54"],T:["T","\u0162","\u0164","\u01AC","\u01AE","\u021A","\u023E","\u1D1B","\u1D40","\u1E6A","\u1E6C","\u1E6E","\u1E70","\uFF34"],u:["u","\xF9","\xFA","\xFB","\xFC","\u0169","\u016B","\u016D","\u016F","\u0171","\u0173","\u01B0","\u01D4","\u01D6","\u01D8","\u01DA","\u01DC","\u0215","\u0217","\u0367","\u07CE","\u1D58","\u1D64","\u1E73","\u1E75","\u1E77","\u1E79","\u1E7B","\u1EE5","\u1EE7","\u1EE9","\u1EEB","\u1EED","\u1EEF","\u1EF1","\uFF55"],U:["U","\xD9","\xDA","\xDB","\xDC","\u0168","\u016A","\u016C","\u016E","\u0170","\u0172","\u01AF","\u01D3","\u01D5","\u01D7","\u01D9","\u01DB","\u0214","\u0216","\u0244","\u1D1C","\u1D41","\u1D7E","\u1E72","\u1E74","\u1E76","\u1E78","\u1E7A","\u1EE4","\u1EE6","\u1EE8","\u1EEA","\u1EEC","\u1EEE","\u1EF0","\uFF35"],v:["v","\u028B","\u036E","\u1D5B","\u1D65","\u1DB9","\u1E7D","\u1E7F","\u2C71","\uFF56","\u2C74"],V:["V","\u01B2","\u0245","\u028C","\u1D20","\u1D8C","\u1E7C","\u1E7E","\uFF36"],w:["w","\u0175","\u02B7","\u1D42","\u1E81","\u1E83","\u1E85","\u1E87","\u1E89","\u1E98","\u2C73","\uFF57"],W:["W","\u0174","\u028D","\u1D21","\u1E80","\u1E82","\u1E84","\u1E86","\u1E88","\u2C72","\uFF37"],x:["x","\u033D","\u0353","\u1D8D","\u036F","\u1E8B","\u1E8D","\u2093","\uFF58"],X:["X","\u02E3","\u036F","\u1E8A","\u1E8C","\u2612","\u2715","\u2716","\u2717","\u2718","\uFF38"],y:["y","\xFD","\xFF","\u0177","\u0233","\u024F","\u02B8","\u1E8F","\u1EF3","\u1EF5","\u1EF7","\u1EF9","\uFF59"],Y:["Y","\xDD","\u0176","\u0178","\u01B3","\u01B4","\u0232","\u024E","\u028E","\u028F","\u1E8E","\u1EF2","\u1EF4","\u1EF6","\u1EF8","\uFF39"],z:["z","\u017A","\u017C","\u017E","\u01B6","\u0225","\u0240","\u0290","\u0291","\u1646","\u1647","\u1DBB","\u1DBC","\u1DBD","\u1E91","\u1E93","\u1E95","\u2C6C","\uFF5A"],Z:["Z","\u0179","\u017B","\u017D","\u01B5","\u0224","\u1D22","\u1D76","\u1E90","\u1E92","\u1E94","\u2C6B","\uFF3A"]},bb=function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charAt(r),a=!1;for(var o in Kb){if(-1!==Kb[o].indexOf(n)){t.push(o),a=!0;break}}a||t.push(n)}return t.join("")},Lb=function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")},ya={format:function(e){return e},filterPredicate:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)return!1;var a=r?String(e).toLowerCase():bb(Lb(String(e)).toLowerCase()),o=r?t.toLowerCase():bb(Lb(t).toLowerCase());return n?a===o:a.indexOf(o)>-1},compare:function(e,t){function r(e){return null==e?"":bb(e.toLowerCase())}return(e=r(e))<(t=r(t))?-1:e>t?1:0}},Yd={name:"VgtPaginationPageInfo",props:{currentPage:{default:1},lastPage:{default:1},totalRecords:{default:0},ofText:{default:"of",type:String},pageText:{default:"page",type:String}},data:function(){return{}},computed:{pageInfo:function(){return"".concat(this.ofText," ").concat(this.lastPage)}},methods:{changePage:function(e){var t=parseInt(e.target.value,10);if(Number.isNaN(t)||t>this.lastPage||t<1)return e.target.value=this.currentPage,!1;e.target.value=t,this.$emit("page-changed",t)}},mounted:function(){},components:{}};function ta(e,t,r,n,a,o,s,i,u,c){"boolean"!=typeof s&&(u=i,i=s,s=!1);const l="function"==typeof r?r.options:r;let $;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,a&&(l.functional=!0)),n&&(l._scopeId=n),o?($=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=$):t&&($=s?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,i(e))}),$)if(l.functional){const e=l.render;l.render=function(t,r){return $.call(r),e(t,r)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,$):[$]}return r}var Zd=Yd,$d=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"footer__navigation__page-info"},[e._v("\n "+e._s(e.pageText)+" "),r("input",{staticClass:"footer__navigation__page-info__current-entry",attrs:{type:"text"},domProps:{value:e.currentPage},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.changePage(t))}}}),e._v(" "+e._s(e.pageInfo)+"\n")])},_d=[],af=void 0,bf="data-v-9a8cd1f4",cf=void 0,df=!1,ef=ta({render:$d,staticRenderFns:_d},af,Zd,bf,df,cf,!1,void 0,void 0,void 0),ff=[10,20,30,40,50],gf={name:"VgtPagination",props:{styleClass:{default:"table table-bordered"},total:{default:null},perPage:{},rtl:{default:!1},customRowsPerPageDropdown:{default:function(){return[]}},paginateDropdownAllowAll:{default:!0},mode:{default:"records"},nextText:{default:"Next"},prevText:{default:"Prev"},rowsPerPageText:{default:"Rows per page:"},ofText:{default:"of"},pageText:{default:"page"},allText:{default:"All"}},data:function(){return{currentPage:1,prevPage:0,currentPerPage:10,rowsPerPageOptions:[]}},watch:{perPage:{handler:function(e,t){this.handlePerPage(),this.perPageChanged(t)},immediate:!0},customRowsPerPageDropdown:function(){this.handlePerPage()},total:{handler:function(e,t){-1===this.rowsPerPageOptions.indexOf(this.currentPerPage)&&(this.currentPerPage=e)}}},computed:{pagesCount:function(){var e=Math.floor(this.total/this.currentPerPage);return 0===this.total%this.currentPerPage?e:e+1},paginatedInfo:function(){var e=(this.currentPage-1)*this.currentPerPage+1,t=Math.min(this.total,this.currentPage*this.currentPerPage);return 0===t&&(e=0),"".concat(e," - ").concat(t," ").concat(this.ofText," ").concat(this.total)},nextIsPossible:function(){return this.currentPage<this.pagesCount},prevIsPossible:function(){return this.currentPage>1}},methods:{changePage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e>0&&this.total>this.currentPerPage*(e-1)&&(this.prevPage=this.currentPage,this.currentPage=e,t&&this.pageChanged())},nextPage:function(){this.nextIsPossible&&(this.prevPage=this.currentPage,++this.currentPage,this.pageChanged())},previousPage:function(){this.prevIsPossible&&(this.prevPage=this.currentPage,--this.currentPage,this.pageChanged())},pageChanged:function(){this.$emit("page-changed",{currentPage:this.currentPage,prevPage:this.prevPage})},perPageChanged:function(e){e&&this.$emit("per-page-changed",{currentPerPage:this.currentPerPage}),this.changePage(1,!1)},handlePerPage:function(){if(null!==this.customRowsPerPageDropdown&&Array.isArray(this.customRowsPerPageDropdown)&&0!==this.customRowsPerPageDropdown.length?this.rowsPerPageOptions=ka(this.customRowsPerPageDropdown):this.rowsPerPageOptions=ka(ff),this.perPage){this.currentPerPage=this.perPage;for(var e=!1,t=0;t<this.rowsPerPageOptions.length;t++)this.rowsPerPageOptions[t]===this.perPage&&(e=!0);e||-1===this.perPage||this.rowsPerPageOptions.unshift(this.perPage)}else this.currentPerPage=10}},mounted:function(){},components:{"pagination-page-info":ef}},hf=gf,jf=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vgt-wrap__footer vgt-clearfix"},[r("div",{staticClass:"footer__row-count vgt-pull-left"},[r("span",{staticClass:"footer__row-count__label"},[e._v(e._s(e.rowsPerPageText))]),e._v(" "),r("select",{directives:[{name:"model",rawName:"v-model",value:e.currentPerPage,expression:"currentPerPage"}],staticClass:"footer__row-count__select",attrs:{autocomplete:"off",name:"perPageSelect"},on:{change:[function(t){var r=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.currentPerPage=t.target.multiple?r:r[0]},e.perPageChanged]}},[e._l(e.rowsPerPageOptions,function(t,n){return r("option",{key:"rows-dropdown-option-"+n,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])}),e._v(" "),e.paginateDropdownAllowAll?r("option",{domProps:{value:e.total}},[e._v(e._s(e.allText))]):e._e()],2)]),e._v(" "),r("div",{staticClass:"footer__navigation vgt-pull-right"},[r("a",{staticClass:"footer__navigation__page-btn",class:{disabled:!e.prevIsPossible},attrs:{href:"javascript:undefined",tabindex:"0"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.previousPage(t)}}},[r("span",{staticClass:"chevron",class:{left:!e.rtl,right:e.rtl}}),e._v(" "),r("span",[e._v(e._s(e.prevText))])]),e._v(" "),"pages"===e.mode?r("pagination-page-info",{attrs:{totalRecords:e.total,lastPage:e.pagesCount,currentPage:e.currentPage,ofText:e.ofText,pageText:e.pageText},on:{"page-changed":e.changePage}}):r("div",{staticClass:"footer__navigation__info"},[e._v(e._s(e.paginatedInfo))]),e._v(" "),r("a",{staticClass:"footer__navigation__page-btn",class:{disabled:!e.nextIsPossible},attrs:{href:"javascript:undefined",tabindex:"0"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.nextPage(t)}}},[r("span",[e._v(e._s(e.nextText))]),e._v(" "),r("span",{staticClass:"chevron",class:{right:!e.rtl,left:e.rtl}})])],1)])},kf=[],lf=void 0,mf=void 0,nf=void 0,of=!1,pf=ta({render:jf,staticRenderFns:kf},lf,hf,mf,of,nf,!1,void 0,void 0,void 0),qf={name:"VgtGlobalSearch",props:["value","searchEnabled","globalSearchPlaceholder"],data:function(){return{globalSearchTerm:null}},computed:{showControlBar:function(){return!!this.searchEnabled||!(!this.$slots||!this.$slots["internal-table-actions"])}},methods:{updateValue:function(e){this.$emit("input",e),this.$emit("on-keyup",e)},entered:function(e){this.$emit("on-enter",e)}}},rf=qf,sf=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.showControlBar?r("div",{staticClass:"vgt-global-search vgt-clearfix"},[r("div",{staticClass:"vgt-global-search__input vgt-pull-left"},[e.searchEnabled?r("span",{staticClass:"input__icon"},[r("div",{staticClass:"magnifying-glass"})]):e._e(),e._v(" "),e.searchEnabled?r("input",{staticClass:"vgt-input vgt-pull-left",attrs:{type:"text",placeholder:e.globalSearchPlaceholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.entered(t.target.value)}}}):e._e()]),e._v(" "),r("div",{staticClass:"vgt-global-search__actions vgt-pull-right"},[e._t("internal-table-actions")],2)]):e._e()},tf=[],uf=void 0,vf=void 0,wf=void 0,xf=!1,yf=ta({render:sf,staticRenderFns:tf},uf,rf,vf,xf,wf,!1,void 0,void 0,void 0),zf={name:"VgtFilterRow",props:["lineNumbers","columns","typedColumns","globalSearchEnabled","selectable","mode"],watch:{columns:{handler:function(e,t){this.populateInitialFilters()},deep:!0,immediate:!0}},data:function(){return{columnFilters:{},timer:null}},computed:{hasFilterRow:function(){for(var e=0;e<this.columns.length;e++){var t=this.columns[e];if(t.filterOptions&&t.filterOptions.enabled)return!0}return!1}},methods:{reset:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.columnFilters={},e&&this.$emit("filter-changed",this.columnFilters)},isFilterable:function(e){return e.filterOptions&&e.filterOptions.enabled},isDropdown:function(e){return this.isFilterable(e)&&e.filterOptions.filterDropdownItems&&e.filterOptions.filterDropdownItems.length},isDropdownObjects:function(e){return this.isDropdown(e)&&"object"===Ma(e.filterOptions.filterDropdownItems[0])},isDropdownArray:function(e){return this.isDropdown(e)&&"object"!==Ma(e.filterOptions.filterDropdownItems[0])},getPlaceholder:function(e){return this.isFilterable(e)&&e.filterOptions.placeholder||"Filter ".concat(e.label)},updateFiltersOnEnter:function(e,t){this.timer&&clearTimeout(this.timer),this.updateFiltersImmediately(e.field,t)},updateFiltersOnKeyup:function(e,t){"enter"!==e.filterOptions.trigger&&this.updateFilters(e,t)},updateSlotFilter:function(e,t){var r=e.filterOptions.slotFilterField||e.field;"function"==typeof e.filterOptions.formatValue&&(t=e.filterOptions.formatValue(t)),this.updateFiltersImmediately(r,t)},updateFilters:function(e,t){var r=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){r.updateFiltersImmediately(e.field,t)},400)},updateFiltersImmediately:function(e,t){this.$set(this.columnFilters,e,t),this.$emit("filter-changed",this.columnFilters)},populateInitialFilters:function(){for(var e=0;e<this.columns.length;e++){var t=this.columns[e];this.isFilterable(t)&&void 0!==t.filterOptions.filterValue&&null!==t.filterOptions.filterValue&&this.$set(this.columnFilters,t.field,t.filterOptions.filterValue)}this.$emit("filter-changed",this.columnFilters)}}},Af=zf,Bf=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.hasFilterRow?r("tr",[e.lineNumbers?r("th"):e._e(),e._v(" "),e.selectable?r("th"):e._e(),e._v(" "),e._l(e.columns,function(t,n){return t.hidden?e._e():r("th",{key:n,staticClass:"filter-th"},[e._t("column-filter",[e.isFilterable(t)?r("div",[e.isDropdown(t)?e._e():r("input",{staticClass:"vgt-input",attrs:{type:"text",placeholder:e.getPlaceholder(t)},domProps:{value:e.columnFilters[t.field]},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.updateFiltersOnEnter(t,r.target.value)},input:function(r){return e.updateFiltersOnKeyup(t,r.target.value)}}}),e._v(" "),e.isDropdownArray(t)?r("select",{staticClass:"vgt-select",domProps:{value:e.columnFilters[t.field]},on:{change:function(r){return e.updateFilters(t,r.target.value)}}},[r("option",{key:"-1",attrs:{value:""}},[e._v(e._s(e.getPlaceholder(t)))]),e._v(" "),e._l(t.filterOptions.filterDropdownItems,function(t,n){return r("option",{key:n,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})],2):e._e(),e._v(" "),e.isDropdownObjects(t)?r("select",{staticClass:"vgt-select",domProps:{value:e.columnFilters[t.field]},on:{change:function(r){return e.updateFilters(t,r.target.value,!0)}}},[r("option",{key:"-1",attrs:{value:""}},[e._v(e._s(e.getPlaceholder(t)))]),e._v(" "),e._l(t.filterOptions.filterDropdownItems,function(t,n){return r("option",{key:n,domProps:{value:t.value}},[e._v(e._s(t.text))])})],2):e._e()]):e._e()],{column:t,updateFilters:e.updateSlotFilter})],2)})],2):e._e()},Cf=[],Df=void 0,Ef="data-v-1c6bfd21",Ff=void 0,Gf=!1,Hf=ta({render:Bf,staticRenderFns:Cf},Df,Af,Ef,Gf,Ff,!1,void 0,void 0,void 0),Mb="asc";function Nb(e){return e.firstSortType||Mb}function If(e,t){return 1===e.length&&e[0].field===t.field?e[0].type:void 0}function Ob(e){return"asc"===e?"desc":Mb}function Jf(e,t){for(var r=0;r<e.length;r++)if(t.field===e[r].field)return r;return-1}var Kf=function(e,t){var r=If(e,t);return[{field:t.field,type:r?Ob(r):Nb(t)}]},Lf=function(e,t){var r=Jf(e,t);return-1===r?e.push({field:t.field,type:Nb(t)}):e[r].type=Ob(e[r].type),e},Mf={name:"VgtTableHeader",props:{lineNumbers:{default:!1,type:Boolean},selectable:{default:!1,type:Boolean},allSelected:{default:!1,type:Boolean},allSelectedIndeterminate:{default:!1,type:Boolean},columns:{type:Array},mode:{type:String},typedColumns:{},sortable:{type:Boolean},getClasses:{type:Function},searchEnabled:{type:Boolean},tableRef:{},paginated:{}},watch:{columns:{handler:function(){this.setColumnStyles()},immediate:!0},tableRef:{handler:function(){this.setColumnStyles()},immediate:!0},paginated:{handler:function(){this.tableRef&&this.setColumnStyles()},deep:!0}},data:function(){return{checkBoxThStyle:{},lineNumberThStyle:{},columnStyles:[],sorts:[],ro:null}},computed:{},methods:{reset:function(){this.$refs["filter-row"].reset(!0)},toggleSelectAll:function(){this.$emit("on-toggle-select-all")},isSortableColumn:function(e){var t=e.sortable;return"boolean"==typeof t?t:this.sortable},sort:function(e,t){this.isSortableColumn(t)&&(e.shiftKey?this.sorts=Lf(this.sorts,t):this.sorts=Kf(this.sorts,t),this.$emit("on-sort-change",this.sorts))},setInitialSort:function(e){this.sorts=e,this.$emit("on-sort-change",this.sorts)},getColumnSort:function(e){for(var t=0;t<this.sorts.length;t+=1)if(this.sorts[t].field===e.field)return this.sorts[t].type||"asc";return null},getHeaderClasses:function(e,t){return Jb({},this.getClasses(t,"th"),{sortable:this.isSortableColumn(e),"sorting sorting-desc":"desc"===this.getColumnSort(e),"sorting sorting-asc":"asc"===this.getColumnSort(e)})},filterRows:function(e){this.$emit("filter-changed",e)},getWidthStyle:function(e){return window&&window.getComputedStyle&&e?{width:window.getComputedStyle(e,null).width}:{width:"auto"}},setColumnStyles:function(){for(var e=[],t=0;t<this.columns.length;t++)if(this.tableRef){var r=0;this.selectable&&r++,this.lineNumbers&&r++;var n=this.tableRef.rows[0].cells[t+r];e.push(this.getWidthStyle(n))}else e.push({minWidth:this.columns[t].width?this.columns[t].width:"auto",maxWidth:this.columns[t].width?this.columns[t].width:"auto",width:this.columns[t].width?this.columns[t].width:"auto"});this.columnStyles=e},getColumnStyle:function(e,t){var r={minWidth:e.width?e.width:"auto",maxWidth:e.width?e.width:"auto",width:e.width?e.width:"auto"};if(this.tableRef){this.selectable&&t++,this.lineNumbers&&t++;var n=this.tableRef.rows[0].cells[t],a=window.getComputedStyle(n,null);r.width=a.width}return r}},mounted:function(){var e=this;this.$nextTick(function(){e.ro=new ResizeObserver(function(){e.setColumnStyles()}),e.ro.observe(e.$parent.$el),e.tableRef&&Array.from(e.$parent.$refs["table-header-primary"].$el.children[0].children).forEach(function(t){e.ro.observe(t)})})},beforeDestroy:function(){this.ro.disconnect()},components:{"vgt-filter-row":Hf}},Nf=Mf,Of=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[e.lineNumbers?r("th",{staticClass:"line-numbers"}):e._e(),e._v(" "),e.selectable?r("th",{staticClass:"vgt-checkbox-col"},[r("input",{attrs:{type:"checkbox"},domProps:{checked:e.allSelected,indeterminate:e.allSelectedIndeterminate},on:{change:e.toggleSelectAll}})]):e._e(),e._v(" "),e._l(e.columns,function(t,n){return t.hidden?e._e():r("th",{key:n,class:e.getHeaderClasses(t,n),style:e.columnStyles[n],on:{click:function(r){return e.sort(r,t)}}},[e._t("table-column",[r("span",[e._v(e._s(t.label))])],{column:t})],2)})],2),e._v(" "),r("vgt-filter-row",{ref:"filter-row",tag:"tr",attrs:{"global-search-enabled":e.searchEnabled,"line-numbers":e.lineNumbers,selectable:e.selectable,columns:e.columns,mode:e.mode,"typed-columns":e.typedColumns},on:{"filter-changed":e.filterRows},scopedSlots:e._u([{key:"column-filter",fn:function(t){return[e._t("column-filter",null,{column:t.column,updateFilters:t.updateFilters})]}}],null,!0)})],1)},Pf=[],Qf=void 0,Rf=void 0,Sf=void 0,Tf=!1,Uf=ta({render:Of,staticRenderFns:Pf},Qf,Nf,Rf,Tf,Sf,!1,void 0,void 0,void 0),Vf={name:"VgtHeaderRow",props:{headerRow:{type:Object},columns:{type:Array},lineNumbers:{type:Boolean},selectable:{type:Boolean},selectAllByGroup:{type:Boolean},collapsable:{type:[Boolean,Number],default:!1},collectFormatted:{type:Function},formattedRow:{type:Function},getClasses:{type:Function},fullColspan:{type:Number},groupIndex:{type:Number}},data:function(){return{}},computed:{allSelected:function(){var e=this.headerRow;this.groupChildObject;return e.children.filter(function(e){return e.vgtSelected}).length===e.children.length}},methods:{columnCollapsable:function(e){return!0===this.collapsable?0===e:e===this.collapsable},toggleSelectGroup:function(e){this.$emit("on-select-group-change",{groupIndex:this.groupIndex,checked:e.target.checked})}},mounted:function(){},components:{}},Wf=Vf,Xf=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("tr",["span"===e.headerRow.mode?r("th",{staticClass:"vgt-left-align vgt-row-header",attrs:{colspan:e.fullColspan}},[e.selectAllByGroup?[e._t("table-header-group-select",[r("input",{attrs:{type:"checkbox"},domProps:{checked:e.allSelected},on:{change:function(t){return e.toggleSelectGroup(t)}}})],{columns:e.columns,row:e.headerRow})]:e._e(),e._v(" "),r("span",{on:{click:function(t){e.collapsable&&e.$emit("vgtExpand",!e.headerRow.vgtIsExpanded)}}},[e.collapsable?r("span",{staticClass:"triangle",class:{expand:e.headerRow.vgtIsExpanded}}):e._e(),e._v(" "),e._t("table-header-row",[e.headerRow.html?r("span",{domProps:{innerHTML:e._s(e.headerRow.label)}}):r("span",[e._v("\n "+e._s(e.headerRow.label)+"\n ")])],{row:e.headerRow})],2)],2):e._e(),e._v(" "),"span"!==e.headerRow.mode&&e.lineNumbers?r("th",{staticClass:"vgt-row-header"}):e._e(),e._v(" "),"span"!==e.headerRow.mode&&e.selectable?r("th",{staticClass:"vgt-row-header"},[e.selectAllByGroup?[e._t("table-header-group-select",[r("input",{attrs:{type:"checkbox"},domProps:{checked:e.allSelected},on:{change:function(t){return e.toggleSelectGroup(t)}}})],{columns:e.columns,row:e.headerRow})]:e._e()],2):e._e(),e._v(" "),e._l(e.columns,function(t,n){return"span"===e.headerRow.mode||t.hidden?e._e():r("th",{key:n,staticClass:"vgt-row-header",class:e.getClasses(n,"td"),on:{click:function(t){e.columnCollapsable(n)&&e.$emit("vgtExpand",!e.headerRow.vgtIsExpanded)}}},[e.columnCollapsable(n)?r("span",{staticClass:"triangle",class:{expand:e.headerRow.vgtIsExpanded}}):e._e(),e._v(" "),e._t("table-header-row",[t.html?e._e():r("span",[e._v("\n "+e._s(e.collectFormatted(e.headerRow,t,!0))+"\n ")]),e._v(" "),t.html?r("span",{domProps:{innerHTML:e._s(e.collectFormatted(e.headerRow,t,!0))}}):e._e()],{row:e.headerRow,column:t,formattedRow:e.formattedRow(e.headerRow,!0)})],2)})],2)},Yf=[],Zf=void 0,$f=void 0,_f=void 0,ag=!1,bg=ta({render:Xf,staticRenderFns:Yf},Zf,Wf,$f,ag,_f,!1,void 0,void 0,void 0);function ia(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function ea(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function cg(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ia(e).getTime(),n=ea(t);return new Date(r+n)}var Pb=6e4;function Qb(e){var t=new Date(e.getTime()),r=t.getTimezoneOffset();t.setSeconds(0,0);var n=t.getTime()%Pb;return r*Pb+n}function dg(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ia(e),n=ia(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function Qa(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=ia(e);return!isNaN(t)}var Ra={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function eg(e,t,r){var n;return r=r||{},n="string"==typeof Ra[e]?Ra[e]:1===t?Ra[e].one:Ra[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?"in "+n:n+" ago":n}function cb(e){return function(t){var r=t||{},n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var fg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ig={date:cb({formats:fg,defaultWidth:"full"}),time:cb({formats:gg,defaultWidth:"full"}),dateTime:cb({formats:hg,defaultWidth:"full"})},jg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kg(e,t,r,n){return jg[e]}function Ca(e){return function(t,r){var n,a=r||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=a.width?String(a.width):o;n=e.formattingValues[s]||e.formattingValues[o]}else{var i=e.defaultWidth,u=a.width?String(a.width):e.defaultWidth;n=e.values[u]||e.values[i]}return n[e.argumentCallback?e.argumentCallback(t):t]}}var lg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ng={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},og={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},qg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function rg(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";}return r+"th"}var sg={ordinalNumber:rg,era:Ca({values:lg,defaultWidth:"wide"}),quarter:Ca({values:mg,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Ca({values:ng,defaultWidth:"wide"}),day:Ca({values:og,defaultWidth:"wide"}),dayPeriod:Ca({values:pg,defaultWidth:"wide",formattingValues:qg,defaultFormattingWidth:"wide"})};function tg(e){return function(t,r){var n=String(t),a=r||{},o=n.match(e.matchPattern);if(!o)return null;var s=o[0],i=n.match(e.parsePattern);if(!i)return null;var u=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:u=a.valueCallback?a.valueCallback(u):u,rest:n.slice(s.length)}}}function Da(e){return function(t,r){var n=String(t),a=r||{},o=a.width,s=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=n.match(s);if(!i)return null;var u,c=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?l.findIndex(function(e){return e.test(n)}):ug(l,function(e){return e.test(n)}),u=e.valueCallback?e.valueCallback(u):u,{value:u=a.valueCallback?a.valueCallback(u):u,rest:n.slice(c.length)}}}function ug(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}var vg=/^(\d+)(th|st|nd|rd)?/i,wg=/\d+/i,xg={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yg={any:[/^b/i,/^(a|c)/i]},zg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ag={any:[/1/i,/2/i,/3/i,/4/i]},Bg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Cg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Dg={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Eg={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Hg={ordinalNumber:tg({matchPattern:vg,parsePattern:wg,valueCallback:function(e){return parseInt(e,10)}}),era:Da({matchPatterns:xg,defaultMatchWidth:"wide",parsePatterns:yg,defaultParseWidth:"any"}),quarter:Da({matchPatterns:zg,defaultMatchWidth:"wide",parsePatterns:Ag,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Da({matchPatterns:Bg,defaultMatchWidth:"wide",parsePatterns:Cg,defaultParseWidth:"any"}),day:Da({matchPatterns:Dg,defaultMatchWidth:"wide",parsePatterns:Eg,defaultParseWidth:"any"}),dayPeriod:Da({matchPatterns:Fg,defaultMatchWidth:"any",parsePatterns:Gg,defaultParseWidth:"any"})},Rb={formatDistance:eg,formatLong:ig,formatRelative:kg,localize:sg,match:Hg,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Sb(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return cg(e,-ea(t))}function ba(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var ra={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return ba("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):ba(r+1,2)},d:function(e,t){return ba(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m.";}},h:function(e,t){return ba(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ba(e.getUTCHours(),t.length)},m:function(e,t){return ba(e.getUTCMinutes(),t.length)},s:function(e,t){return ba(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds();return ba(Math.floor(n*Math.pow(10,r-3)),t.length)}},Ig=864e5;function Jg(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=ia(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=r-t.getTime();return Math.floor(n/Ig)+1}function za(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=ia(e),r=t.getUTCDay(),n=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Tb(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=ia(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=za(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var s=za(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function Kg(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Tb(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),za(r)}var Lg=6048e5;function Ub(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=ia(e),r=za(t).getTime()-Kg(t).getTime();return Math.round(r/Lg)+1}function ua(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=t||{},n=r.locale,a=n&&n.options&&n.options.weekStartsOn,o=null==a?0:ea(a),s=null==r.weekStartsOn?o:ea(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var i=ia(e),u=i.getUTCDay(),c=(u<s?7:0)+u-s;return i.setUTCDate(i.getUTCDate()-c),i.setUTCHours(0,0,0,0),i}function db(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=ia(e,t),n=r.getUTCFullYear(),a=t||{},o=a.locale,s=o&&o.options&&o.options.firstWeekContainsDate,i=null==s?1:ea(s),u=null==a.firstWeekContainsDate?i:ea(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(n+1,0,u),c.setUTCHours(0,0,0,0);var l=ua(c,t),$=new Date(0);$.setUTCFullYear(n,0,u),$.setUTCHours(0,0,0,0);var d=ua($,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=d.getTime()?n:n-1}function Mg(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=t||{},n=r.locale,a=n&&n.options&&n.options.firstWeekContainsDate,o=null==a?1:ea(a),s=null==r.firstWeekContainsDate?o:ea(r.firstWeekContainsDate),i=db(e,t),u=new Date(0);return u.setUTCFullYear(i,0,s),u.setUTCHours(0,0,0,0),ua(u,t)}var Ng=6048e5;function Vb(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=ia(e),n=ua(r,t).getTime()-Mg(r,t).getTime();return Math.round(n/Ng)+1}var Aa={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Og={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"});}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return ra.y(e,t)},Y:function(e,t,r,n){var a=db(e,n),o=a>0?a:1-a;return"YY"===t?ba(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):ba(o,t.length)},R:function(e,t){return ba(Tb(e),t.length)},u:function(e,t){return ba(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ba(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"});}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ba(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"});}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return ra.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"});}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return ba(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"});}},w:function(e,t,r,n){var a=Vb(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):ba(a,t.length)},I:function(e,t,r){var n=Ub(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):ba(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ra.d(e,t)},D:function(e,t,r){var n=Jg(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):ba(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"});}},e:function(e,t,r,n){var a=e.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ba(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"});}},c:function(e,t,r,n){var a=e.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ba(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"});}},i:function(e,t,r){var n=e.getUTCDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return ba(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"});}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"});}},b:function(e,t,r){var n,a=e.getUTCHours();switch(n=12===a?Aa.noon:0===a?Aa.midnight:a/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"});}},B:function(e,t,r){var n,a=e.getUTCHours();switch(n=a>=17?Aa.evening:a>=12?Aa.afternoon:a>=4?Aa.morning:Aa.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"});}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ra.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ra.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):ba(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):ba(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ra.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ra.s(e,t)},S:function(e,t){return ra.S(e,t)},X:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return Xb(a);case"XXXX":case"XX":return va(a);case"XXXXX":case"XXX":default:return va(a,":");}},x:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Xb(a);case"xxxx":case"xx":return va(a);case"xxxxx":case"xxx":default:return va(a,":");}},O:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wb(a,":");case"OOOO":default:return"GMT"+va(a,":");}},z:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wb(a,":");case"zzzz":default:return"GMT"+va(a,":");}},t:function(e,t,r,n){var a=n._originalDate||e;return ba(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,r,n){return ba((n._originalDate||e).getTime(),t.length)}};function Wb(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(0===o)return r+String(a);var s=t||"";return r+String(a)+s+ba(o,2)}function Xb(e,t){return e%60==0?(e>0?"-":"+")+ba(Math.abs(e)/60,2):va(e,t)}function va(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e);return n+ba(Math.floor(a/60),2)+r+ba(a%60,2)}function Yb(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"});}}function Zb(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"});}}function Pg(e,t){var r,n=e.match(/(P+)(p+)?/),a=n[1],o=n[2];if(!o)return Yb(e,t);switch(a){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});}return r.replace("{{date}}",Yb(a,t)).replace("{{time}}",Zb(o,t))}var $b={p:Zb,P:Pg},Qg=["D","DD"],Rg=["YY","YYYY"];function _b(e){return-1!==Qg.indexOf(e)}function ac(e){return-1!==Rg.indexOf(e)}function Sa(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var Sg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ug=/^'(.*?)'?$/,Vg=/''/g,Wg=/[a-zA-Z]/;function Xg(e,t,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=String(t),a=r||{},o=a.locale||Rb,s=o.options&&o.options.firstWeekContainsDate,i=null==s?1:ea(s),u=null==a.firstWeekContainsDate?i:ea(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:ea(c),$=null==a.weekStartsOn?l:ea(a.weekStartsOn);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var d=ia(e);if(!Qa(d))throw new RangeError("Invalid time value");var f=Sb(d,Qb(d)),v={firstWeekContainsDate:u,weekStartsOn:$,locale:o,_originalDate:d};return n.match(Tg).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,$b[t])(e,o.formatLong,v):e}).join("").match(Sg).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return Yg(e);var r=Og[t];if(r)return!a.useAdditionalWeekYearTokens&&ac(e)&&Sa(e),!a.useAdditionalDayOfYearTokens&&_b(e)&&Sa(e),r(f,e,o.localize,v);if(t.match(Wg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}function Yg(e){return e.match(Ug)[1].replace(Vg,"'")}function Zg(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function eb(e,t,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=r||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,s=null==o?0:ea(o),i=null==n.weekStartsOn?s:ea(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=ia(e),c=ea(t),l=((c%7+7)%7<i?7:0)+c-u.getUTCDay();return u.setUTCDate(u.getUTCDate()+l),u}function $g(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ea(t);r%7==0&&(r-=7);var n=ia(e),a=((r%7+7)%7<1?7:0)+r-n.getUTCDay();return n.setUTCDate(n.getUTCDate()+a),n}function _g(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ia(e),n=ea(t),a=Ub(r)-n;return r.setUTCDate(r.getUTCDate()-7*a),r}function ah(e,t,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ia(e),a=ea(t),o=Vb(n,r)-a;return n.setUTCDate(n.getUTCDate()-7*o),n}var bh=36e5,ch=6e4,dh=1e3,ga={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},oa={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ca(e,t,r){var n=t.match(e);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:t.slice(n[0].length)}}function pa(e,t){var r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};var n="+"===r[1]?1:-1,a=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(a*bh+o*ch+s*dh),rest:t.slice(r[0].length)}}function bc(e,t){return ca(ga.anyDigitsSigned,e,t)}function fa(e,t,r){switch(e){case 1:return ca(ga.singleDigit,t,r);case 2:return ca(ga.twoDigits,t,r);case 3:return ca(ga.threeDigits,t,r);case 4:return ca(ga.fourDigits,t,r);default:return ca(new RegExp("^\\d{1,"+e+"}"),t,r);}}function cc(e,t,r){switch(e){case 1:return ca(ga.singleDigitSigned,t,r);case 2:return ca(ga.twoDigitsSigned,t,r);case 3:return ca(ga.threeDigitsSigned,t,r);case 4:return ca(ga.fourDigitsSigned,t,r);default:return ca(new RegExp("^-?\\d{1,"+e+"}"),t,r);}}function fb(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0;}}function dc(e,t){var r,n=t>0,a=n?t:1-t;if(a<=50)r=e||100;else{var o=a+50;r=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return n?r:1-r}var eh=[31,28,31,30,31,30,31,31,30,31,30,31],fh=[31,29,31,30,31,30,31,31,30,31,30,31];function ec(e){return e%400==0||e%4==0&&e%100!=0}var gh={G:{priority:140,parse:function(e,t,r,n){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});}},set:function(e,t,r,n){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,r,n){var a=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return fa(4,e,a);case"yo":return r.ordinalNumber(e,{unit:"year",valueCallback:a});default:return fa(t.length,e,a);}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var a=e.getUTCFullYear();if(r.isTwoDigitYear){var o=dc(r.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var s="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(s,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,r,n){var a=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return fa(4,e,a);case"Yo":return r.ordinalNumber(e,{unit:"year",valueCallback:a});default:return fa(t.length,e,a);}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var a=db(e,n);if(r.isTwoDigitYear){var o=dc(r.year,a);return e.setUTCFullYear(o,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ua(e,n)}var s="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(s,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ua(e,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,r,n){return cc("R"===t?4:t.length,e)},set:function(e,t,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),za(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,r,n){return cc("u"===t?4:t.length,e)},set:function(e,t,r,n){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,r,n){switch(t){case"Q":case"QQ":return fa(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,r,n){switch(t){case"q":case"qq":return fa(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,r,n){var a=function(e){return e-1};switch(t){case"M":return ca(ga.month,e,a);case"MM":return fa(2,e,a);case"Mo":return r.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,r,n){var a=function(e){return e-1};switch(t){case"L":return ca(ga.month,e,a);case"LL":return fa(2,e,a);case"Lo":return r.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,r,n){switch(t){case"w":return ca(ga.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return ua(ah(e,r,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,r,n){switch(t){case"I":return ca(ga.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return za(_g(e,r,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,r,n){switch(t){case"d":return ca(ga.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return fa(t.length,e);}},validate:function(e,t,r){var n=ec(e.getUTCFullYear()),a=e.getUTCMonth();return n?t>=1&&t<=fh[a]:t>=1&&t<=eh[a]},set:function(e,t,r,n){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,r,n){switch(t){case"D":case"DD":return ca(ga.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return fa(t.length,e);}},validate:function(e,t,r){return ec(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,r,n){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,r,n){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return(e=eb(e,r,n)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,r,n){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return fa(t.length,e,a);case"eo":return r.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return(e=eb(e,r,n)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,r,n){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return fa(t.length,e,a);case"co":return r.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return(e=eb(e,r,n)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,r,n){var a=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return fa(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return r.day(e,{width:"wide",context:"formatting",valueCallback:a})||r.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});}},validate:function(e,t,r){return t>=1&&t<=7},set:function(e,t,r,n){return(e=$g(e,r,n)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,r,n){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,n){return e.setUTCHours(fb(r),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,r,n){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,n){return e.setUTCHours(fb(r),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,r,n){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,n){return e.setUTCHours(fb(r),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,r,n){switch(t){case"h":return ca(ga.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=12},set:function(e,t,r,n){var a=e.getUTCHours()>=12;return a&&r<12?e.setUTCHours(r+12,0,0,0):a||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,r,n){switch(t){case"H":return ca(ga.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=23},set:function(e,t,r,n){return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,r,n){switch(t){case"K":return ca(ga.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,r,n){switch(t){case"k":return ca(ga.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=24},set:function(e,t,r,n){var a=r<=24?r%24:r;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,r,n){switch(t){case"m":return ca(ga.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCMinutes(r,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,r,n){switch(t){case"s":return ca(ga.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return fa(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCSeconds(r,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,r,n){return fa(t.length,e,function(e){return Math.floor(e*Math.pow(10,3-t.length))})},set:function(e,t,r,n){return e.setUTCMilliseconds(r),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,r,n){switch(t){case"X":return pa(oa.basicOptionalMinutes,e);case"XX":return pa(oa.basic,e);case"XXXX":return pa(oa.basicOptionalSeconds,e);case"XXXXX":return pa(oa.extendedOptionalSeconds,e);case"XXX":default:return pa(oa.extended,e);}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,r,n){switch(t){case"x":return pa(oa.basicOptionalMinutes,e);case"xx":return pa(oa.basic,e);case"xxxx":return pa(oa.basicOptionalSeconds,e);case"xxxxx":return pa(oa.extendedOptionalSeconds,e);case"xxx":default:return pa(oa.extended,e);}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,r,n){return bc(e)},set:function(e,t,r,n){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,r,n){return bc(e)},set:function(e,t,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},hh=10,ih=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kh=/^'(.*?)'?$/,lh=/''/g,mh=/\S/,nh=/[a-zA-Z]/;function fc(e,t,r,n){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var a=String(e),o=String(t),s=n||{},i=s.locale||Rb;if(!i.match)throw new RangeError("locale must contain match property");var u=i.options&&i.options.firstWeekContainsDate,c=null==u?1:ea(u),l=null==s.firstWeekContainsDate?c:ea(s.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=i.options&&i.options.weekStartsOn,d=null==$?0:ea($),f=null==s.weekStartsOn?d:ea(s.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===a?ia(r):new Date(NaN);var v,h={firstWeekContainsDate:l,weekStartsOn:f,locale:i},w=[{priority:hh,set:oh,index:0}],p=o.match(jh).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,$b[t])(e,i.formatLong,h):e}).join("").match(ih),g=[];for(v=0;v<p.length;v++){var m=p[v];!s.useAdditionalWeekYearTokens&&ac(m)&&Sa(m),!s.useAdditionalDayOfYearTokens&&_b(m)&&Sa(m);var C=m[0],_=gh[C];if(_){var y=_.incompatibleTokens;if(Array.isArray(y)){for(var b=void 0,J=0;J<g.length;J++){var T=g[J].token;if(-1!==y.indexOf(T)||T===C){b=g[J];break}}if(b)throw new RangeError("The format string mustn't contain `".concat(b.fullToken,"` and `").concat(m,"` at the same time"))}else if("*"===_.incompatibleTokens&&g.length)throw new RangeError("The format string mustn't contain `".concat(m,"` and any other token at the same time"));g.push({token:C,fullToken:m});var P=_.parse(a,m,i.match,h);if(!P)return new Date(NaN);w.push({priority:_.priority,set:_.set,validate:_.validate,value:P.value,index:w.length}),a=P.rest}else{if(C.match(nh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===m?m="'":"'"===C&&(m=ph(m)),0!==a.indexOf(m))return new Date(NaN);a=a.slice(m.length)}}if(a.length>0&&mh.test(a))return new Date(NaN);var x=w.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,r){return r.indexOf(e)===t}).map(function(e){return w.filter(function(t){return t.priority===e}).reverse()}).map(function(e){return e[0]}),S=ia(r);if(isNaN(S))return new Date(NaN);var O=Sb(S,Qb(S)),k={};for(v=0;v<x.length;v++){var E=x[v];if(E.validate&&!E.validate(O,E.value,h))return new Date(NaN);var D=E.set(O,k,E.value,h);D[0]?(O=D[0],Zg(k,D[1])):O=D}return O}function oh(e,t){if(t.timestampIsSet)return e;var r=new Date(0);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}function ph(e){return e.match(kh)[1].replace(lh,"'")}var Ta=ka(ya);Ta.isRight=!0,Ta.compare=function(e,t,r){function n(e){return r&&r.dateInputFormat?fc("".concat(e),"".concat(r.dateInputFormat),new Date):e}return e=n(e),t=n(t),Qa(e)?Qa(t)?dg(e,t):1:-1},Ta.format=function(e,t){if(null==e)return"";var r=fc(e,t.dateInputFormat,new Date);return Qa(r)?Xg(r,t.dateOutputFormat):(console.error("Not a valid date: \"".concat(e,"\"")),null)};var qh=Object.freeze({default:Ta}),wa=ka(ya);wa.isRight=!0,wa.filterPredicate=function(e,t){return 0===wa.compare(e,t)},wa.compare=function(e,t){function r(e){return null==e?-1/0:e.indexOf(".")>=0?parseFloat(e):parseInt(e,10)}return(e="number"==typeof e?e:r(e))<(t="number"==typeof t?t:r(t))?-1:e>t?1:0};var rh=Object.freeze({default:wa}),gc=ka(wa);gc.format=function(e){return null==e?"":parseFloat(Math.round(100*e)/100).toFixed(2)};var sh=Object.freeze({default:gc}),hc=ka(wa);hc.format=function(e){return null==e?"":"".concat(parseFloat(100*e).toFixed(2),"%")};var th=Object.freeze({default:hc}),Ea=ka(ya);Ea.isRight=!0,Ea.filterPredicate=function(e,t){return 0===Ea.compare(e,t)},Ea.compare=function(e,t){function r(e){return"boolean"==typeof e?e?1:0:"string"==typeof e?"true"===e?1:0:-1/0}return(e=r(e))<(t=r(t))?-1:e>t?1:0};var uh=Object.freeze({default:Ea}),vh={date:qh,decimal:sh,number:rh,percentage:th,boolean:uh},ic={},jc=vh;da(Object.keys(jc),function(e){var t=e.replace(/^\.\//,"").replace(/\.js/,"");ic[t]=jc[e].default});var wh={name:"vue-good-table",props:{isLoading:{default:null,type:Boolean},maxHeight:{default:null,type:String},fixedHeader:Boolean,theme:{default:""},mode:{default:"local"},totalRows:{},styleClass:{default:"vgt-table bordered"},columns:{},rows:{},lineNumbers:Boolean,responsive:{default:!0,type:Boolean},rtl:Boolean,rowStyleClass:{default:null,type:[Function,String]},compactMode:Boolean,groupOptions:{default:function(){return{enabled:!1,collapsable:!1,rowKey:null}}},selectOptions:{default:function(){return{enabled:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",disableSelectInfo:!1,selectAllByGroup:!1}}},sortOptions:{default:function(){return{enabled:!0,initialSortBy:{}}}},paginationOptions:{default:function(){return{enabled:!1,perPage:10,perPageDropdown:null,position:"bottom",dropdownAllowAll:!0,mode:"records"}}},searchOptions:{default:function(){return{enabled:!1,trigger:null,externalQuery:null,searchFn:null,placeholder:"Search Table"}}}},data:function(){return{tableLoading:!1,nextText:"Next",prevText:"Prev",rowsPerPageText:"Rows per page",ofText:"of",allText:"All",pageText:"page",selectable:!1,selectOnCheckboxOnly:!1,selectAllByPage:!0,disableSelectInfo:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",maintainExpanded:!0,expandedRowKeys:new Set,sortable:!0,defaultSortBy:null,searchEnabled:!1,searchTrigger:null,externalSearchQuery:null,searchFn:null,searchPlaceholder:"Search Table",searchSkipDiacritics:!1,perPage:null,paginate:!1,paginateOnTop:!1,paginateOnBottom:!0,customRowsPerPageDropdown:[],paginateDropdownAllowAll:!0,paginationMode:"records",currentPage:1,currentPerPage:10,sorts:[],globalSearchTerm:"",filteredRows:[],columnFilters:{},forceSearch:!1,sortChanged:!1,dataTypes:ic||{}}},watch:{rows:{handler:function(){this.$emit("update:isLoading",!1),this.filterRows(this.columnFilters,!1)},deep:!0,immediate:!0},selectOptions:{handler:function(){this.initializeSelect()},deep:!0,immediate:!0},paginationOptions:{handler:function(e,t){ab(e,t)||this.initializePagination()},deep:!0,immediate:!0},searchOptions:{handler:function(){void 0!==this.searchOptions.externalQuery&&this.searchOptions.externalQuery!==this.searchTerm&&(this.externalSearchQuery=this.searchOptions.externalQuery,this.handleSearch()),this.initializeSearch()},deep:!0,immediate:!0},sortOptions:{handler:function(e,t){ab(e,t)||this.initializeSort()},deep:!0},selectedRows:function(e,t){ab(e,t)||this.$emit("on-selected-rows-change",{selectedRows:this.selectedRows})}},computed:{tableStyles:function(){return this.compactMode?this.tableStyleClasses+"vgt-compact":this.tableStyleClasses},hasFooterSlot:function(){return!!this.$slots["table-actions-bottom"]},wrapperStyles:function(){return{overflow:"scroll-y",maxHeight:this.maxHeight?this.maxHeight:"auto"}},rowKeyField:function(){return this.groupOptions.rowKey||"vgt_header_id"},hasHeaderRowTemplate:function(){return!!this.$slots["table-header-row"]||!!this.$scopedSlots["table-header-row"]},showEmptySlot:function(){return!this.paginated.length||"no groups"===this.paginated[0].label&&!this.paginated[0].children.length},allSelected:function(){return this.selectedRowCount>0&&(this.selectAllByPage&&this.selectedPageRowsCount===this.totalPageRowCount||!this.selectAllByPage&&this.selectedRowCount===this.totalRowCount)},allSelectedIndeterminate:function(){return!this.allSelected&&(this.selectAllByPage&&this.selectedPageRowsCount>0||!this.selectAllByPage&&this.selectedRowCount>0)},selectionInfo:function(){return"".concat(this.selectedRowCount," ").concat(this.selectionText)},selectedRowCount:function(){return this.selectedRows.length},selectedPageRowsCount:function(){return this.selectedPageRows.length},selectedPageRows:function(){var e=[];return da(this.paginated,function(t){da(t.children,function(t){t.vgtSelected&&e.push(t)})}),e},selectedRows:function(){var e=[];return da(this.processedRows,function(t){da(t.children,function(t){t.vgtSelected&&e.push(t)})}),e.sort(function(e,t){return e.originalIndex-t.originalIndex})},fullColspan:function(){for(var e=0,t=0;t<this.columns.length;t+=1)this.columns[t].hidden||(e+=1);return this.lineNumbers&&e++,this.selectable&&e++,e},groupHeaderOnTop:function(){return!(this.groupOptions&&this.groupOptions.enabled&&this.groupOptions.headerPosition&&"bottom"===this.groupOptions.headerPosition)&&!(!this.groupOptions||!this.groupOptions.enabled)},groupHeaderOnBottom:function(){return!!(this.groupOptions&&this.groupOptions.enabled&&this.groupOptions.headerPosition&&"bottom"===this.groupOptions.headerPosition)},totalRowCount:function(){var e=0;return da(this.processedRows,function(t){e+=t.children?t.children.length:0}),e},totalPageRowCount:function(){var e=0;return da(this.paginated,function(t){e+=t.children?t.children.length:0}),e},wrapStyleClasses:function(){var e="vgt-wrap";return this.rtl&&(e+=" rtl"),e+=" ".concat(this.theme)},tableStyleClasses:function(){var e=this.styleClass;return e+=" ".concat(this.theme)},searchTerm:function(){return null!=this.externalSearchQuery?this.externalSearchQuery:this.globalSearchTerm},globalSearchAllowed:function(){return!(!this.searchEnabled||!this.globalSearchTerm||"enter"===this.searchTrigger)||null!=this.externalSearchQuery&&"enter"!==this.searchTrigger||!!this.forceSearch&&(this.forceSearch=!1,!0)},processedRows:function(){var e=this,t=this.filteredRows;if("remote"===this.mode)return t;if(this.globalSearchAllowed){var r=[];da(this.filteredRows,function(e){r.push.apply(r,wb(e.children))});var n=[];da(r,function(t){da(e.columns,function(r){if(!r.globalSearchDisabled)if(e.searchFn){if(e.searchFn(t,r,e.collectFormatted(t,r),e.searchTerm))return n.push(t),!1}else if(ya.filterPredicate(e.collectFormatted(t,r),e.searchTerm,e.searchSkipDiacritics))return n.push(t),!1})}),this.$emit("on-search",{searchTerm:this.searchTerm,rowCount:n.length}),t=[],da(this.filteredRows,function(e){var r=e.vgt_header_id,a=Xd(n,["vgt_id",r]);if(a.length){var o=ka(e);o.children=a,t.push(o)}})}return this.sorts.length&&t.forEach(function(t){t.children.sort(function(t,r){for(var n,a=0;a<e.sorts.length;a+=1){var o=e.getColumnForField(e.sorts[a].field),s=e.collect(t,e.sorts[a].field),i=e.collect(r,e.sorts[a].field),u=o.sortFn;n=u&&"function"==typeof u?n||u(s,i,o,t,r)*("desc"===e.sorts[a].type?-1:1):n||o.typeDef.compare(s,i,o)*("desc"===e.sorts[a].type?-1:1)}return n})}),"enter"===this.searchTrigger&&(this.filteredRows=t),t},paginated:function(){var e=this;if(!this.processedRows.length)return[];if("remote"===this.mode)return this.processedRows;var t=[];if(da(this.processedRows,function(r){var n;e.groupOptions.enabled&&t.push(r),(n=t).push.apply(n,wb(r.children))}),this.paginate){var r=(this.currentPage-1)*this.currentPerPage;(r>=t.length||-1===this.currentPerPage)&&(this.currentPage=1,r=0);var n=t.length+1;-1!==this.currentPerPage&&(n=this.currentPage*this.currentPerPage),t=t.slice(r,n)}var a=[];return t.forEach(function(t){if(void 0!==t.vgt_header_id){e.handleExpanded(t);var r=ka(t);r.children=[],a.push(r)}else{var n=a.find(function(e){return e.vgt_header_id===t.vgt_id});n||(n=e.processedRows.find(function(e){return e.vgt_header_id===t.vgt_id}))&&((n=ka(n)).children=[],a.push(n)),n.children.push(t)}}),a},originalRows:function(){var e=ka(this.rows),t=[];t=this.groupOptions.enabled?this.handleGrouped(e):this.handleGrouped([{label:"no groups",children:e}]);var r=0;return da(t,function(e,t){da(e.children,function(e,t){e.originalIndex=r++})}),t},typedColumns:function(){for(var e=Jb(this.columns,[]),t=0;t<this.columns.length;t++){var r=e[t];r.typeDef=this.dataTypes[r.type]||ya}return e},hasRowClickListener:function(){return this.$listeners&&this.$listeners["on-row-click"]}},methods:{handleExpanded:function(e){this.maintainExpanded&&this.expandedRowKeys.has(e[this.rowKeyField])?this.$set(e,"vgtIsExpanded",!0):this.$set(e,"vgtIsExpanded",!1)},toggleExpand:function(e){var t=this,r=this.filteredRows.find(function(r){return r[t.rowKeyField]===e});r&&this.$set(r,"vgtIsExpanded",!r.vgtIsExpanded),this.maintainExpanded&&r.vgtIsExpanded?this.expandedRowKeys.add(r[this.rowKeyField]):this.expandedRowKeys.delete(r[this.rowKeyField])},expandAll:function(){var e=this;this.filteredRows.forEach(function(t){e.$set(t,"vgtIsExpanded",!0),e.maintainExpanded&&e.expandedRowKeys.add(t[e.rowKeyField])})},collapseAll:function(){var e=this;this.filteredRows.forEach(function(t){e.$set(t,"vgtIsExpanded",!1),e.expandedRowKeys.clear()})},getColumnForField:function(e){for(var t=0;t<this.typedColumns.length;t+=1)if(this.typedColumns[t].field===e)return this.typedColumns[t]},handleSearch:function(){this.resetTable(),"remote"===this.mode&&this.$emit("on-search",{searchTerm:this.searchTerm})},reset:function(){this.initializeSort(),this.changePage(1),this.$refs["table-header-primary"].reset(!0),this.$refs["table-header-secondary"]&&this.$refs["table-header-secondary"].reset(!0)},emitSelectedRows:function(){this.$emit("on-select-all",{selected:this.selectedRowCount===this.totalRowCount,selectedRows:this.selectedRows})},unselectAllInternal:function(e){var t=this,r=this.selectAllByPage&&!e?this.paginated:this.filteredRows;da(r,function(e,r){da(e.children,function(e,r){t.$set(e,"vgtSelected",!1)})}),this.emitSelectedRows()},toggleSelectAll:function(){var e=this;if(this.allSelected)this.unselectAllInternal();else{var t=this.selectAllByPage?this.paginated:this.filteredRows;da(t,function(t){da(t.children,function(t){e.$set(t,"vgtSelected",!0)})}),this.emitSelectedRows()}},toggleSelectGroup:function(e,t){var r=this;da(t.children,function(t){r.$set(t,"vgtSelected",e.checked)})},changePage:function(e){if(this.paginationOptions.enabled){var t=this.$refs.paginationBottom;"top"===this.paginationOptions.position&&(t=this.$refs.paginationTop),t&&(t.currentPage=e,this.currentPage=e)}},pageChangedEvent:function(){return{currentPage:this.currentPage,currentPerPage:this.currentPerPage,total:Math.floor(this.totalRowCount/this.currentPerPage)}},pageChanged:function(e){this.currentPage=e.currentPage;var t=this.pageChangedEvent();t.prevPage=e.prevPage,this.$emit("on-page-change",t),"remote"===this.mode&&this.$emit("update:isLoading",!0)},perPageChanged:function(e){this.currentPerPage=e.currentPerPage;var t=this.pageChangedEvent();this.$emit("on-per-page-change",t),"remote"===this.mode&&this.$emit("update:isLoading",!0)},changeSort:function(e){this.sorts=e,this.$emit("on-sort-change",e),this.changePage(1),"remote"!==this.mode?this.sortChanged=!0:this.$emit("update:isLoading",!0)},onCheckboxClicked:function(e,t,r){this.$set(e,"vgtSelected",!e.vgtSelected),this.$emit("on-row-click",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:r})},onRowDoubleClicked:function(e,t,r){this.$emit("on-row-dblclick",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:r})},onRowClicked:function(e,t,r){this.selectable&&!this.selectOnCheckboxOnly&&this.$set(e,"vgtSelected",!e.vgtSelected),this.$emit("on-row-click",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:r})},onRowAuxClicked:function(e,t,r){this.$emit("on-row-aux-click",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:r})},onCellClicked:function(e,t,r,n){this.$emit("on-cell-click",{row:e,column:t,rowIndex:r,event:n})},onMouseenter:function(e,t){this.$emit("on-row-mouseenter",{row:e,pageIndex:t})},onMouseleave:function(e,t){this.$emit("on-row-mouseleave",{row:e,pageIndex:t})},searchTableOnEnter:function(){"enter"===this.searchTrigger&&(this.handleSearch(),this.filteredRows=ka(this.originalRows),this.forceSearch=!0,this.sortChanged=!0)},searchTableOnKeyUp:function(){"enter"!==this.searchTrigger&&this.handleSearch()},resetTable:function(){this.unselectAllInternal(!0),this.changePage(1)},collect:function(e,t){return"function"==typeof t?t(e):"string"==typeof t?function(e,t){for(var r=e,n=t.split("."),a=0;a<n.length;a++){if(null==r)return;r=r[n[a]]}return r}(e,t):void 0},collectFormatted:function(e,t){var r;if(void 0===(r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&t.headerField?this.collect(e,t.headerField):this.collect(e,t.field)))return"";if(t.formatFn&&"function"==typeof t.formatFn)return t.formatFn(r,e);var n=t.typeDef;n||(n=this.dataTypes[t.type]||ya);var a=n.format(r,t);return!this.compactMode||""!=a&&null!=a?a:"-"},formattedRow:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},n=0;n<this.typedColumns.length;n++){var a=this.typedColumns[n];a.field&&(r[a.field]=this.collectFormatted(e,a,t))}return r},getClasses:function(e,t,r){var n=this.typedColumns[e],a=n.typeDef,o=n["".concat(t,"Class")],s=a.isRight;this.rtl&&(s=!0);var i={"vgt-right-align":s,"vgt-left-align":!s};return"function"==typeof o?i[o(r)]=!0:"string"==typeof o&&(i[o]=!0),i},filterRows:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.columnFilters=e;var n=ka(this.originalRows);if(this.columnFilters&&Object.keys(this.columnFilters).length){if(("remote"!==this.mode||r)&&this.changePage(1),r&&this.$emit("on-column-filter",{columnFilters:this.columnFilters}),"remote"===this.mode)return void(r?this.$emit("update:isLoading",!0):this.filteredRows=n);for(var a=function(e){var r=t.typedColumns[e];t.columnFilters[r.field]&&(n=da(n,function(e){var n=e.children.filter(function(e){return r.filterOptions&&"function"==typeof r.filterOptions.filterFn?r.filterOptions.filterFn(t.collect(e,r.field),t.columnFilters[r.field]):r.typeDef.filterPredicate(t.collect(e,r.field),t.columnFilters[r.field],!1,r.filterOptions&&"object"===Ma(r.filterOptions.filterDropdownItems))});e.children=n}))},o=0;o<this.typedColumns.length;o++)a(o)}this.filteredRows=n},getCurrentIndex:function(e){return(this.currentPage-1)*this.currentPerPage+e+1},getRowStyleClass:function(e){var t,r="";return this.hasRowClickListener&&(r+="clickable"),(t="function"==typeof this.rowStyleClass?this.rowStyleClass(e):this.rowStyleClass)&&(r+=" ".concat(t)),r},handleGrouped:function(e){var t=this;return da(e,function(e,r){e.vgt_header_id=r,t.groupOptions.maintainExpanded&&t.expandedRowKeys.has(e[t.groupOptions.rowKey])&&t.$set(e,"vgtIsExpanded",!0),da(e.children,function(e){e.vgt_id=r})}),e},initializePagination:function(){var e=this,t=this.paginationOptions,r=t.enabled,n=t.perPage,a=t.position,o=t.perPageDropdown,s=t.dropdownAllowAll,i=t.nextLabel,u=t.prevLabel,c=t.rowsPerPageLabel,l=t.ofLabel,$=t.pageLabel,d=t.allLabel,f=t.setCurrentPage,v=t.mode;if("boolean"==typeof r&&(this.paginate=r),"number"==typeof n&&(this.perPage=n),"top"===a?(this.paginateOnTop=!0,this.paginateOnBottom=!1):"both"===a&&(this.paginateOnTop=!0,this.paginateOnBottom=!0),Array.isArray(o)&&o.length&&(this.customRowsPerPageDropdown=o,!this.perPage)){var h=Tc(o,1);this.perPage=h[0]}"boolean"==typeof s&&(this.paginateDropdownAllowAll=s),"string"==typeof v&&(this.paginationMode=v),"string"==typeof i&&(this.nextText=i),"string"==typeof u&&(this.prevText=u),"string"==typeof c&&(this.rowsPerPageText=c),"string"==typeof l&&(this.ofText=l),"string"==typeof $&&(this.pageText=$),"string"==typeof d&&(this.allText=d),"number"==typeof f&&setTimeout(function(){e.changePage(f)},500)},initializeSearch:function(){var e=this.searchOptions,t=e.enabled,r=e.trigger,n=e.externalQuery,a=e.searchFn,o=e.placeholder,s=e.skipDiacritics;"boolean"==typeof t&&(this.searchEnabled=t),"enter"===r&&(this.searchTrigger=r),"string"==typeof n&&(this.externalSearchQuery=n),"function"==typeof a&&(this.searchFn=a),"string"==typeof o&&(this.searchPlaceholder=o),"boolean"==typeof s&&(this.searchSkipDiacritics=s)},initializeSort:function(){var e=this.sortOptions,t=e.enabled,r=e.initialSortBy;if("boolean"==typeof t&&(this.sortable=t),"object"===Ma(r)){var n=this.fixedHeader?this.$refs["table-header-secondary"]:this.$refs["table-header-primary"];if(Array.isArray(r))n.setInitialSort(r);else Object.prototype.hasOwnProperty.call(r,"field")&&n.setInitialSort([r])}},initializeSelect:function(){var e=this.selectOptions,t=e.enabled,r=e.selectionInfoClass,n=e.selectionText,a=e.clearSelectionText,o=e.selectOnCheckboxOnly,s=e.selectAllByPage,i=e.disableSelectInfo,u=e.selectAllByGroup;"boolean"==typeof t&&(this.selectable=t),"boolean"==typeof o&&(this.selectOnCheckboxOnly=o),"boolean"==typeof s&&(this.selectAllByPage=s),"boolean"==typeof u&&(this.selectAllByGroup=u),"boolean"==typeof i&&(this.disableSelectInfo=i),"string"==typeof r&&(this.selectionInfoClass=r),"string"==typeof n&&(this.selectionText=n),"string"==typeof a&&(this.clearSelectionText=a)}},mounted:function(){this.perPage&&(this.currentPerPage=this.perPage),this.initializeSort()},components:{"vgt-pagination":pf,"vgt-global-search":yf,"vgt-header-row":bg,"vgt-table-header":Uf}},xh=wh,yh=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:e.wrapStyleClasses},[e.isLoading?r("div",{staticClass:"vgt-loading vgt-center-align"},[e._t("loadingContent",[r("span",{staticClass:"vgt-loading__content"},[e._v("\n Loading...\n ")])])],2):e._e(),e._v(" "),r("div",{staticClass:"vgt-inner-wrap",class:{"is-loading":e.isLoading}},[e.paginate&&e.paginateOnTop?e._t("pagination-top",[r("vgt-pagination",{ref:"paginationTop",attrs:{perPage:e.perPage,rtl:e.rtl,total:e.totalRows||e.totalRowCount,mode:e.paginationMode,nextText:e.nextText,prevText:e.prevText,rowsPerPageText:e.rowsPerPageText,customRowsPerPageDropdown:e.customRowsPerPageDropdown,paginateDropdownAllowAll:e.paginateDropdownAllowAll,ofText:e.ofText,pageText:e.pageText,allText:e.allText},on:{"page-changed":e.pageChanged,"per-page-changed":e.perPageChanged}})],{pageChanged:e.pageChanged,perPageChanged:e.perPageChanged,total:e.totalRows||e.totalRowCount}):e._e(),e._v(" "),r("vgt-global-search",{attrs:{"search-enabled":e.searchEnabled&&null==e.externalSearchQuery,"global-search-placeholder":e.searchPlaceholder},on:{"on-keyup":e.searchTableOnKeyUp,"on-enter":e.searchTableOnEnter},model:{value:e.globalSearchTerm,callback:function(t){e.globalSearchTerm=t},expression:"globalSearchTerm"}},[r("template",{slot:"internal-table-actions"},[e._t("table-actions")],2)],2),e._v(" "),e.selectedRowCount&&!e.disableSelectInfo?r("div",{staticClass:"vgt-selection-info-row clearfix",class:e.selectionInfoClass},[e._v("\n "+e._s(e.selectionInfo)+"\n "),r("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.unselectAllInternal(!0)}}},[e._v("\n "+e._s(e.clearSelectionText)+"\n ")]),e._v(" "),r("div",{staticClass:"vgt-selection-info-row__actions vgt-pull-right"},[e._t("selected-row-actions")],2)]):e._e(),e._v(" "),r("div",{staticClass:"vgt-fixed-header"},[e.fixedHeader?r("table",{class:e.tableStyleClasses},[r("vgt-table-header",{ref:"table-header-secondary",tag:"thead",attrs:{columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"all-selected":e.allSelected,"all-selected-indeterminate":e.allSelectedIndeterminate,mode:e.mode,sortable:e.sortable,"typed-columns":e.typedColumns,getClasses:e.getClasses,searchEnabled:e.searchEnabled,paginated:e.paginated,"table-ref":e.$refs.table},on:{"on-toggle-select-all":e.toggleSelectAll,"on-sort-change":e.changeSort,"filter-changed":e.filterRows},scopedSlots:e._u([{key:"table-column",fn:function(t){return[e._t("table-column",[r("span",[e._v(e._s(t.column.label))])],{column:t.column})]}}],null,!0)})],1):e._e()]),e._v(" "),r("div",{class:{"vgt-responsive":e.responsive},style:e.wrapperStyles},[r("table",{ref:"table",class:e.tableStyles},[r("vgt-table-header",{ref:"table-header-primary",tag:"thead",attrs:{columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"all-selected":e.allSelected,"all-selected-indeterminate":e.allSelectedIndeterminate,mode:e.mode,sortable:e.sortable,"typed-columns":e.typedColumns,getClasses:e.getClasses,searchEnabled:e.searchEnabled},on:{"on-toggle-select-all":e.toggleSelectAll,"on-sort-change":e.changeSort,"filter-changed":e.filterRows},scopedSlots:e._u([{key:"table-column",fn:function(t){return[e._t("table-column",[r("span",[e._v(e._s(t.column.label))])],{column:t.column})]}},{key:"column-filter",fn:function(t){return[e._t("column-filter",null,{column:t.column,updateFilters:t.updateFilters})]}}],null,!0)}),e._v(" "),e._l(e.paginated,function(t,n){return r("tbody",{key:n},[e.groupHeaderOnTop?r("vgt-header-row",{class:e.getRowStyleClass(t),attrs:{"header-row":t,columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"select-all-by-group":e.selectAllByGroup,collapsable:e.groupOptions.collapsable,"collect-formatted":e.collectFormatted,"formatted-row":e.formattedRow,"get-classes":e.getClasses,"full-colspan":e.fullColspan,groupIndex:n},on:{vgtExpand:function(r){return e.toggleExpand(t[e.rowKeyField])},"on-select-group-change":function(r){return e.toggleSelectGroup(r,t)}},scopedSlots:e._u([{key:"table-header-row",fn:function(t){return e.hasHeaderRowTemplate?[e._t("table-header-row",null,{column:t.column,formattedRow:t.formattedRow,row:t.row})]:void 0}}],null,!0)}):e._e(),e._v(" "),e._l(t.children,function(n,a){return!e.groupOptions.collapsable||t.vgtIsExpanded?r("tr",{key:n.originalIndex,class:e.getRowStyleClass(n),on:{mouseenter:function(t){return e.onMouseenter(n,a)},mouseleave:function(t){return e.onMouseleave(n,a)},dblclick:function(t){return e.onRowDoubleClicked(n,a,t)},click:function(t){return e.onRowClicked(n,a,t)},auxclick:function(t){return e.onRowAuxClicked(n,a,t)}}},[e.lineNumbers?r("th",{staticClass:"line-numbers"},[e._v("\n "+e._s(e.getCurrentIndex(a))+"\n ")]):e._e(),e._v(" "),e.selectable?r("th",{staticClass:"vgt-checkbox-col",on:{click:function(t){return t.stopPropagation(),e.onCheckboxClicked(n,a,t)}}},[r("input",{attrs:{type:"checkbox"},domProps:{checked:n.vgtSelected}})]):e._e(),e._v(" "),e._l(e.columns,function(t,o){return!t.hidden&&t.field?r("td",{key:o,class:e.getClasses(o,"td",n),attrs:{"data-label":e.compactMode?t.label:void 0},on:{click:function(r){return e.onCellClicked(n,t,a,r)}}},[e._t("table-row",[t.html?e._e():r("span",[e._v("\n "+e._s(e.collectFormatted(n,t))+"\n ")]),e._v(" "),t.html?r("span",{domProps:{innerHTML:e._s(e.collect(n,t.field))}}):e._e()],{row:n,column:t,formattedRow:e.formattedRow(n),index:a})],2):e._e()})],2):e._e()}),e._v(" "),e.groupHeaderOnBottom?r("vgt-header-row",{attrs:{"header-row":t,columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"select-all-by-group":e.selectAllByGroup,"collect-formatted":e.collectFormatted,"formatted-row":e.formattedRow,"get-classes":e.getClasses,"full-colspan":e.fullColspan,groupIndex:n},on:{"on-select-group-change":function(r){return e.toggleSelectGroup(r,t)}},scopedSlots:e._u([{key:"table-header-row",fn:function(t){return e.hasHeaderRowTemplate?[e._t("table-header-row",null,{column:t.column,formattedRow:t.formattedRow,row:t.row})]:void 0}}],null,!0)}):e._e()],2)}),e._v(" "),e.showEmptySlot?r("tbody",[r("tr",[r("td",{attrs:{colspan:e.fullColspan}},[e._t("emptystate",[r("div",{staticClass:"vgt-center-align vgt-text-disabled"},[e._v("\n No data for table\n ")])])],2)])]):e._e()],2)]),e._v(" "),e.hasFooterSlot?r("div",{staticClass:"vgt-wrap__actions-footer"},[e._t("table-actions-bottom")],2):e._e(),e._v(" "),e.paginate&&e.paginateOnBottom?e._t("pagination-bottom",[r("vgt-pagination",{ref:"paginationBottom",attrs:{perPage:e.perPage,rtl:e.rtl,total:e.totalRows||e.totalRowCount,mode:e.paginationMode,nextText:e.nextText,prevText:e.prevText,rowsPerPageText:e.rowsPerPageText,customRowsPerPageDropdown:e.customRowsPerPageDropdown,paginateDropdownAllowAll:e.paginateDropdownAllowAll,ofText:e.ofText,pageText:e.pageText,allText:e.allText},on:{"page-changed":e.pageChanged,"per-page-changed":e.perPageChanged}})],{pageChanged:e.pageChanged,perPageChanged:e.perPageChanged,total:e.totalRows||e.totalRowCount}):e._e()],2)])},zh=[],Ah=void 0,Bh=void 0,Ch=void 0,Dh=!1,gb=ta({render:yh,staticRenderFns:zh},Ah,xh,Bh,Dh,Ch,!1,void 0,void 0,void 0),Eh={install:function(e,t){e.component(gb.name,gb)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Eh);var Ua={extends:"k-pages-section",components:{VueGoodTable:gb},data:function(){return{columns:[],rows:[],searchTerm:"",showReset:!1,error:null,isLoading:!1,storedState:{searchTerm:void 0,sort:void 0,page:void 0},options:{empty:null,headline:null,layout:"list",link:null,max:null,min:null,size:null,sortable:null,limit:10,limitOptions:[],search:!0,showImage:!0,showStatus:!0,showActions:!0},translations:{rowsPerPage:this.$t("pagetable.rowsPerPage"),of:this.$t("pagetable.of"),all:this.$t("pagetable.all"),empty:this.$t("pages.empty"),filter:this.$t("pagetable.filter-pages"),reset:this.$t("pagetable.reset"),loading:this.$t("pagetable.loading")}}},props:{parent:String,blueprint:String,name:String},computed:{searchOptions:function(){return{enabled:!0,externalQuery:this.searchTerm}},sortOptions:function(){return{enabled:!0,initialSortBy:this.storedState.sort||!1}},storedPerPage:function(){return this.storedState.page&&this.storedState.page.currentPerPage||this.options.limit},storedPage:function(){return this.storedState.page&&this.storedState.page.currentPage||!1},paginationOptions:function(){return{enabled:!0,perPage:this.storedPerPage,setCurrentPage:this.storedPage,perPageDropdown:this.options.limitOptions,nextLabel:this.$t("next"),prevLabel:this.$t("prev"),rowsPerPageLabel:this.translations.rowsPerPage,ofLabel:this.$t("pagetable.of"),allLabel:this.translations.all}},showSearch:function(){return this.columns.filter(function(t){return 0==t.globalSearchDisabled}).length>0&&this.options.search&&this.rows.length},storeName:function(){return"kirby$plugin$pagetable"+this.parent+"-"+this.name},showOptions:function(){return this.options.showStatus||this.options.showActions}},watch:{language:function(){this.reload()}},created:function(){this.load(),this.loadStoredState()},methods:{replaceInvalidDate:function(t){return t.replace("Invalid Date","-")},load:function(t){var e=this;t||(this.isLoading=!0),this.$api.get(this.parent+"/sections/"+this.name).then(function(t){e.isLoading=!1,e.options=t.options,e.columns=t.data.columns,e.rows=e.items(t.data.rows);var s=t.translations;Object.keys(s).forEach(function(t){null==s[t]&&delete s[t]}),e.translations=Object.assign({},e.translations,s)}).catch(function(t){e.isLoading=!1,e.error=t.message})},openRef:function(t){this.$refs[t].toggle()},onSearch:function(t){this.storeCurrentState(),this.checkReset()},onPerPageChange:function(t){this.$refs.table&&this.$refs.table.changePage(1)},onPageChange:function(t){this.storeCurrentState(),this.checkReset()},onSortChange:function(t){this.storeCurrentState(),this.checkReset()},checkReset:function(){this.showReset=this.rows.length&&(this.searchTerm.length>0||this.$refs.table&&this.$refs.table.sorts.length||this.$refs.table&&1!=this.$refs.table.currentPage)},loadStoredState:function(){var t=JSON.parse(sessionStorage.getItem(this.storeName));null!==t&&(this.storedState=t,t.searchTerm&&t.searchTerm.length>0&&(this.searchTerm=t.searchTerm))},storeCurrentState:function(){if(this.$refs.table){var t={};t.page={currentPage:this.$refs.table.currentPage,currentPerPage:this.$refs.table.currentPerPage},this.$refs.table.sorts[0]&&(t.sort={field:this.$refs.table.sorts[0].field,type:this.$refs.table.sorts[0].type}),t.searchTerm=this.searchTerm,sessionStorage.setItem(this.storeName,JSON.stringify(t))}},resetTable:function(){this.$refs.table.changeSort([]),document.querySelectorAll(".sorting").forEach(function(t){"TH"==t.tagName&&t.classList.remove("sorting","sorting-asc","sorting-desc")}),this.searchTerm="",this.$refs.table.currentPerPage=this.options.limit,this.$refs.table.perPage=this.options.limit,this.$refs.table.changePage(1),this.storeCurrentState()},imageOptions:function(t){if(!t||0===t.length||!t.url)return!1;var e=t.list.url,s=t.list.srcset;return!!e&&{src:e,srcset:s,back:t.back||"black",cover:t.cover}}}};if(typeof Ua==="function"){Ua=Ua.options}Object.assign(Ua,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("section",{staticClass:"k-pagetable-section"},[_c("header",{staticClass:"k-section-header"},[_c("k-headline",{attrs:{"link":_vm.options.link}},[_vm.isLoading?_c("span",[_vm._v("\u2026")]):_c("span",[_vm._v(_vm._s(_vm.headline))])]),_vm._v(" "),_c("k-button-group",[_vm.showReset?_c("button",{staticClass:"pagetable-reset-button",domProps:{"innerHTML":_vm._s(_vm.translations.reset)},on:{"click":_vm.resetTable}}):_vm._e(),_vm._v(" "),_vm.showSearch?_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.searchTerm,expression:"searchTerm"}],staticClass:"pagetable-search-input",attrs:{"type":"text","placeholder":_vm.translations.filter},domProps:{"value":_vm.searchTerm},on:{"input":function($event){if($event.target.composing){return}_vm.searchTerm=$event.target.value}}}):_vm._e(),_vm._v(" "),_vm.add?_c("k-button",{attrs:{"icon":"add"},on:{"click":_vm.create}},[_vm._v(_vm._s(_vm.$t("add")))]):_vm._e()],1)],1),_vm._v(" "),_vm.rows.length&&!_vm.isLoading?_c("vue-good-table",{ref:"table",attrs:{"columns":_vm.columns,"rows":_vm.rows,"sort-options":_vm.sortOptions,"search-options":_vm.searchOptions,"pagination-options":_vm.paginationOptions},on:{"on-search":_vm.onSearch,"on-sort-change":_vm.onSortChange,"on-page-change":_vm.onPageChange,"on-per-page-change":_vm.onPerPageChange},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="p-cover-image"&&_vm.options.showImage?_c("span",[_c("k-link",{attrs:{"to":props.row.link}},[_c("figure",{staticClass:"k-list-item-image"},[_vm.imageOptions(props.row.image)?_c("k-image",_vm._b({},"k-image",_vm.imageOptions(props.row.image),false)):_c("k-icon",_vm._b({},"k-icon",props.row.icon,false))],1)])],1):props.column.field=="p-options"&&_vm.showOptions?_c("span",[_c("div",{staticClass:"k-list-item-options"},[_vm._t("options",[props.row.statusIcon&&_vm.options.showStatus?_c("k-status-icon",_vm._b({staticClass:"k-list-item-status"},"k-status-icon",props.row.statusIcon,false)):_vm._e(),_vm._v(" "),props.row.options&&_vm.options.showActions?_c("k-button",{staticClass:"k-list-item-toggle",attrs:{"tooltip":_vm.$t("options"),"icon":"dots","alt":"Options"},on:{"click":function($event){$event.stopPropagation();return _vm.openRef("dropdown-"+props.row.originalIndex)}}}):_vm._e(),_vm._v(" "),_vm.options.showActions?_c("k-dropdown-content",{ref:"dropdown-"+props.row.originalIndex,attrs:{"options":props.row.options,"align":"right"},on:{"action":function($event){return _vm.action(props.row,$event)}}}):_vm._e()])],2)]):_c("k-link",{attrs:{"to":props.row.link},domProps:{"innerHTML":_vm._s(_vm.replaceInvalidDate(props.formattedRow[props.column.field]))}})]}}],null,false,2945208707)}):!_vm.rows.length&&!_vm.isLoading?[_c("k-empty",{attrs:{"layout":_vm.options.layout,"data-invalid":_vm.isInvalid,"icon":"page"},on:{"click":_vm.create}},[_vm._v(" "+_vm._s(_vm.translations.empty)+" ")]),_vm._v(" "),_c("footer",{staticClass:"k-collection-footer"},[_vm.help?_c("k-text",{staticClass:"k-collection-help",attrs:{"theme":"help"},domProps:{"innerHTML":_vm._s(_vm.help)}}):_vm._e()],1)]:_vm.isLoading?_c("div",{staticClass:"loading"},[_c("k-empty",{attrs:{"layout":_vm.options.layout,"icon":"pagetableLoader"}},[_vm._v(" "+_vm._s(_vm.translations.loading)+" ")])],1):_vm._e(),_vm._v(" "),_c("k-page-create-dialog",{ref:"create"}),_vm._v(" "),_c("k-page-duplicate-dialog",{ref:"duplicate"}),_vm._v(" "),_c("k-page-rename-dialog",{ref:"rename",on:{"success":_vm.update}}),_vm._v(" "),_c("k-page-sort-dialog",{ref:"sort",on:{"success":_vm.update}}),_vm._v(" "),_c("k-page-status-dialog",{ref:"status",on:{"success":_vm.update}}),_vm._v(" "),_c("k-page-template-dialog",{ref:"template",on:{"success":_vm.update}}),_vm._v(" "),_c("k-page-remove-dialog",{ref:"remove",on:{"success":_vm.update}})],2)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());panel.plugin("sylvainjule/pagetable",{sections:{pagetable:Ua},icons:{pagetableLoader:"<g fill=\"none\" fill-rule=\"evenodd\"><g transform=\"translate(1 1)\" stroke-width=\"1.75\"><circle cx=\"7\" cy=\"7\" r=\"7.2\" stroke=\"#000\" stroke-opacity=\".2\"/><path d=\"M14.2,7c0-4-3.2-7.2-7.2-7.2\" stroke=\"#000\"><animateTransform attributeName=\"transform\" type=\"rotate\" from=\"0 7 7\" to=\"360 7 7\" dur=\"1s\" repeatCount=\"indefinite\"/></path></g></g>"}});})();