403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/penpalamerica.com/backup/newpal3/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpalamerica.com/backup/newpal3/js/app.js
/*! For license information please see app.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=286)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var r="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,i="undefined"==typeof window?{document:r,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window},function(e,t,n){"use strict";var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;n(225),n(226),n(227),n(229),n(230),n(231),n(232),n(233),n(234);i.registerVersion("firebase","7.14.2","app");console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),i.registerVersion("firebase","7.14.2"),e.exports=i},function(e,t,n){e.exports=n(213)},function(e,t,n){var r=n(18),i=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Tt(e,t,n,r,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=p(NaN);return null!=e?h(f(t),e):f(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=f(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)s(i=t[r=g[n]])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function E(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function T(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&E(e[r])!==E(t[r]))&&o++;return o+a}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,M={};function $(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),M[e]||(S(t),M[e]=!0)}function L(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e,t){var n,r=h({},e);for(n in t)d(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var D={};function I(e,t){var n=e.toLowerCase();D[n]=D[n+"s"]=D[t]=e}function A(e){return"string"==typeof e?D[e]||D[e.toLowerCase()]:void 0}function N(e){var t,n,r={};for(n in e)d(e,n)&&(t=A(n))&&(r[t]=e[n]);return r}var R={};function Y(e,t){R[e]=t}function B(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},U={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(j);for(t=0,n=i.length;t<n;t++)U[i[t]]?i[t]=U[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=L(i[r])?i[r].call(t,e):i[r];return a}}(t),H[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W=/\d/,G=/\d\d/,K=/\d{3}/,J=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=L(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=E(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){fe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function ve(e,t,n){null!=t&&d(pe,e)&&pe[e](t,n._a,n,e)}function ge(e){return ye(e)?366:365}function ye(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),I("year","y"),Y("year",1),ue("Y",ae),ue("YY",Q,G),ue("YYYY",ne,J),ue("YYYYY",re,X),ue("YYYYYY",re,X),fe(["YYYYY","YYYYYY"],0),fe("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):E(e)})),fe("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),fe("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return E(e)+(E(e)>68?1900:2e3)};var be,_e=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ee(this,e,n),i.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ee(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ye(e)?29:28:31-r%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),I("month","M"),Y("month",8),ue("M",Q),ue("MM",Q,G),ue("MMM",(function(e,t){return t.monthsShortRegex(e)})),ue("MMMM",(function(e,t){return t.monthsRegex(e)})),fe(["M","MM"],(function(e,t){t[1]=E(e)-1})),fe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:f(n).invalidMonth=e}));var Se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Me(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,o))?i:null:-1!==(i=be.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,o))||-1!==(i=be.call(this._longMonthsParse,o))?i:null:-1!==(i=be.call(this._longMonthsParse,o))||-1!==(i=be.call(this._shortMonthsParse,o))?i:null}function $e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=E(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Te(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?($e(this,e),i.updateOffset(this,!0),this):ke(this,"Month")}var Pe=le,Oe=le;function De(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=he(r[t]),i[t]=he(i[t]);for(t=0;t<24;t++)a[t]=he(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ie(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ae(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Ne(e,r,i);return s<=0?o=ge(a=e-1)+s:s>ge(e)?(a=e+1,o=s-ge(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Ye(e,t,n){var r,i,a=Ne(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Be(i=e.year()-1,t,n):o>Be(e.year(),t,n)?(r=o-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Be(e,t,n){var r=Ne(e,t,n),i=Ne(e+1,t,n);return(ge(e)-r+i)/7}function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),Y("week",5),Y("isoWeek",5),ue("w",Q),ue("ww",Q,G),ue("W",Q),ue("WW",Q,G),me(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=E(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,r){t[r]=E(e)}));var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=be.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=be.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=be.call(this._weekdaysParse,o))||-1!==(i=be.call(this._shortWeekdaysParse,o))||-1!==(i=be.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,o))||-1!==(i=be.call(this._weekdaysParse,o))||-1!==(i=be.call(this._minWeekdaysParse,o))?i:null:-1!==(i=be.call(this._minWeekdaysParse,o))||-1!==(i=be.call(this._weekdaysParse,o))||-1!==(i=be.call(this._shortWeekdaysParse,o))?i:null}var Ve=le,qe=le,We=le;function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),l.push(a),c.push(r),c.push(i),c.push(a);for(o.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=he(s[t]),l[t]=he(l[t]),c[t]=he(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Je(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ke),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Ke.apply(this)+B(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Ke.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Je("a",!0),Je("A",!1),I("hour","h"),Y("hour",13),ue("a",Xe),ue("A",Xe),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,G),ue("hh",Q,G),ue("kk",Q,G),ue("hmm",Z),ue("hmmss",ee),ue("Hmm",Z),ue("Hmmss",ee),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var r=E(e);t[3]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=E(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(i)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(i))}));var Qe,Ze=we("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ce,monthsShort:xe,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ue,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Qe._abbr,n(246)("./"+t),at(r)}catch(e){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):ot(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function ot(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])$("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new O(P(r,t)),nt[e]&&nt[e].forEach((function(e){ot(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!a(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=rt(e[a]).split("-")).length,n=(n=rt(e[a+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(i,n,!0)>=t-1)break;t--}a++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Te(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ct(t.GG,e._a[0],Ye(St(),1,4).year),r=ct(t.W,1),((i=ct(t.E,1))<1||i>7)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var c=Ye(St(),a,o);n=ct(t.gg,e._a[0],c.year),r=ct(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a}r<1||r>Be(n,a,o)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=Re(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ct(e._a[0],r[0]),(e._dayOfYear>ge(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ae(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Ie).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,r,i,a,o,s=e._i,l=dt.exec(s)||ht.exec(s);if(l){for(f(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){i=ft[t][0],r=!1!==ft[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){a=(l[2]||" ")+mt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),kt(e)}else e._isValid=!1}var yt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var _t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e){var t,n,r,i,a,o,s,l=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],r=l[2],i=l[5],a=l[6],o=l[7],s=[bt(t),xe.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(a,10)],o&&s.push(parseInt(o,10)),s);if(!function(e,t,n){return!e||He.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Ae.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],f(e).empty=!0;var t,n,r,a,o,s=""+e._i,l=s.length,c=0;for(r=q(e._f,e._locale).match(j)||[],t=0;t<r.length;t++)a=r[t],(n=(s.match(de(a,e))||[])[0])&&((o=s.substr(0,s.indexOf(n))).length>0&&f(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),c+=n.length),U[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),ve(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=l-c,s.length>0&&f(e).unusedInput.push(s),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ut(e),lt(e)}else wt(e);else gt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(lt(t)):(c(t)?e._d=t:a(n)?function(e){var t,n,r,i,a;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),m(t)&&(a+=f(t).charsLeftOver,a+=10*f(t).unusedTokens.length,f(t).score=a,(null==r||a<r)&&(r=a,n=t));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=vt.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,wt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=u(t.slice(0),(function(e){return parseInt(e,10)})),ut(e)):o(t)?function(e){if(!e._d){var t=N(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),ut(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Tt(e,t,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(lt(Et(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,r){return Tt(e,t,n,r,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ct=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),xt=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Mt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=N(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===be.call($t,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<$t.length;++r)if(e[$t[r]]){if(n)return!1;parseFloat(e[$t[r]])!==E(e[$t[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Pt(e){return e instanceof Lt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Dt(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)}))}Dt("Z",":"),Dt("ZZ",""),ue("Z",se),ue("ZZ",se),fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=At(se,e)}));var It=/([\+\-]|\d\d)/gi;function At(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(It)||["-",0,0],i=60*r[1]+E(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Nt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):St(e).local()}function Rt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Bt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var n,r,i,a,o,s,c=e,u=null;return Pt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Bt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:E(u[2])*n,h:E(u[3])*n,m:E(u[4])*n,s:E(u[5])*n,ms:E(Ot(1e3*u[6]))*n}):(u=jt.exec(e))?(n="-"===u[1]?-1:1,c={y:Ht(u[2],n),M:Ht(u[3],n),w:Ht(u[4],n),d:Ht(u[5],n),h:Ht(u[6],n),m:Ht(u[7],n),s:Ht(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(a=St(c.from),o=St(c.to),i=a.isValid()&&o.isValid()?(o=Nt(o,a),a.isBefore(o)?s=Ut(a,o):((s=Ut(o,a)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Lt(c),Pt(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||($(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,Ft(n="string"==typeof n?+n:n,r),e),this}}function Vt(e,t,n,r){var a=t._milliseconds,o=Ot(t._days),s=Ot(t._months);e.isValid()&&(r=null==r||r,s&&$e(e,ke(e,"Month")+s*n),o&&Ee(e,"Date",ke(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,o||s))}Ft.fn=Lt.prototype,Ft.invalid=function(){return Ft(NaN)};var qt=zt(1,"add"),Wt=zt(-1,"subtract");function Gt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jt=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Xt(){return this._locale}function Qt(e,t){return(e%t+t)%t}function Zt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){z(0,[e,e.length],0,t)}function nn(e,t,n,r,i){var a;return null==e?Ye(this,r,i).year:(t>(a=Be(e,r,i))&&(t=a),rn.call(this,e,t,n,r,i))}function rn(e,t,n,r,i){var a=Re(e,t,n,r,i),o=Ae(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ue("G",ae),ue("g",ae),ue("GG",Q,G),ue("gg",Q,G),ue("GGGG",ne,J),ue("gggg",ne,J),ue("GGGGG",re,X),ue("ggggg",re,X),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=E(e)})),me(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),I("quarter","Q"),Y("quarter",7),ue("Q",W),fe("Q",(function(e,t){t[1]=3*(E(e)-1)})),z("D",["DD",2],"Do","date"),I("date","D"),Y("date",9),ue("D",Q),ue("DD",Q,G),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=E(e.match(Q)[0])}));var an=we("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),Y("dayOfYear",4),ue("DDD",te),ue("DDDD",K),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=E(e)})),z("m",["mm",2],0,"minute"),I("minute","m"),Y("minute",14),ue("m",Q),ue("mm",Q,G),fe(["m","mm"],4);var on=we("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),Y("second",15),ue("s",Q),ue("ss",Q,G),fe(["s","ss"],5);var sn,ln=we("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),Y("millisecond",16),ue("S",te,W),ue("SS",te,G),ue("SSS",te,K),sn="SSSS";sn.length<=9;sn+="S")ue(sn,ie);function cn(e,t){t[6]=E(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")fe(sn,cn);var un=we("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var dn=_.prototype;function hn(e){return e}dn.add=qt,dn.calendar=function(e,t){var n=e||St(),r=Nt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(L(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,St(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":a=Gt(this,r)/12;break;case"month":a=Gt(this,r);break;case"quarter":a=Gt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:k(a)},dn.endOf=function(e){var t;if(void 0===(e=A(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Zt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(St(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(St(),e)},dn.get=function(e){return L(this[e=A(e)])?this[e]():this},dn.invalidAt=function(){return f(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var i=w(e)?e:St(e),a=w(t)?t:St(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},dn.isSame=function(e,t){var n,r=w(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=Jt,dn.locale=Kt,dn.localeData=Xt,dn.max=xt,dn.min=Ct,dn.parsingFlags=function(){return h({},f(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=N(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(L(this[e=A(e)]))return this[e](t);return this},dn.startOf=function(e){var t;if(void 0===(e=A(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Zt;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Qt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Qt(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.subtract=Wt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=_e,dn.isLeapYear=function(){return ye(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Le,dn.daysInMonth=function(){return Te(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Be(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=Ze,dn.minute=dn.minutes=on,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=un,dn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=At(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Rt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Vt(this,Ft(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Rt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=At(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Yt,dn.isUTC=Yt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=C("dates accessor is deprecated. Use date instead.",an),dn.months=C("months accessor is deprecated. Use month instead",Le),dn.years=C("years accessor is deprecated. Use year instead",_e),dn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Et(e))._a){var t=e._isUTC?p(e._a):St(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var pn=O.prototype;function fn(e,t,n,r){var i=st(),a=p().set(r,t);return i[n](a,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,a=st(),o=e?a._week.dow:0;if(null!=n)return fn(t,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=fn(t,(i+o)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)L(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return Me.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},pn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||De.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||De.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n},pn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===E(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",at),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",st);var gn=Math.abs;function yn(e,t,n,r){var i=Ft(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var En=kn("ms"),Tn=kn("s"),Sn=kn("m"),Cn=kn("h"),xn=kn("d"),Mn=kn("w"),$n=kn("M"),Ln=kn("Q"),Pn=kn("y");function On(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dn=On("milliseconds"),In=On("seconds"),An=On("minutes"),Nn=On("hours"),Rn=On("days"),Yn=On("months"),Bn=On("years"),jn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function Hn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Un=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Un(this._milliseconds)/1e3,r=Un(this._days),i=Un(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var a=k(i/12),o=i%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",p=zn(this._months)!==zn(d)?"-":"",f=zn(this._days)!==zn(d)?"-":"",m=zn(this._milliseconds)!==zn(d)?"-":"";return h+"P"+(a?p+a+"Y":"")+(o?p+o+"M":"")+(s?f+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var qn=Lt.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},qn.add=function(e,t){return yn(this,e,t,1)},qn.subtract=function(e,t){return yn(this,e,t,-1)},qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},qn.asMilliseconds=En,qn.asSeconds=Tn,qn.asMinutes=Sn,qn.asHours=Cn,qn.asDays=xn,qn.asWeeks=Mn,qn.asMonths=$n,qn.asQuarters=Ln,qn.asYears=Pn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},qn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*bn(wn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=k(a/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,o+=k(n/24),i=k(_n(o)),s+=i,o-=bn(wn(i)),r=k(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},qn.clone=function(){return Ft(this)},qn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},qn.milliseconds=Dn,qn.seconds=In,qn.minutes=An,qn.hours=Nn,qn.days=Rn,qn.weeks=function(){return k(this.days()/7)},qn.months=Yn,qn.years=Bn,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),i=jn(r.as("s")),a=jn(r.as("m")),o=jn(r.as("h")),s=jn(r.as("d")),l=jn(r.as("M")),c=jn(r.as("y")),u=i<=Fn.ss&&["s",i]||i<Fn.s&&["ss",i]||a<=1&&["m"]||a<Fn.m&&["mm",a]||o<=1&&["h"]||o<Fn.h&&["hh",o]||s<=1&&["d"]||s<Fn.d&&["dd",s]||l<=1&&["M"]||l<Fn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,Hn.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},qn.toISOString=Vn,qn.toString=Vn,qn.toJSON=Vn,qn.locale=Kt,qn.localeData=Xt,qn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),qn.lang=Jt,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ue("x",ae),ue("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(E(e))})),i.version="2.24.0",t=St,i.fn=dn,i.min=function(){var e=[].slice.call(arguments,0);return Mt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Mt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return St(1e3*e)},i.months=function(e,t){return mn(e,t,"months")},i.isDate=c,i.locale=at,i.invalid=v,i.duration=Ft,i.isMoment=w,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return St.apply(null,arguments).parseZone()},i.localeData=st,i.isDuration=Pt,i.monthsShort=function(e,t){return mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=ot,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=(r=it(e))&&(i=r._config),t=P(i,t),(n=new O(t)).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return x(tt)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=A,i.relativeTimeRounding=function(e){return void 0===e?jn:"function"==typeof e&&(jn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(64)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return g})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return k})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return T})),n.d(t,"__classPrivateFieldSet",(function(){return S}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof g?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.r(t),function(e,n){var r=Object.freeze({});function i(e){return null==e}function a(e){return null!=e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var g=v("slot,component",!0),y=v("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function w(e,t){return _.call(e,t)}function k(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var E=/-(\w)/g,T=k((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),S=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,x=k((function(e){return e.replace(C,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function $(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function L(e,t){for(var n in t)e[n]=t[n];return e}function P(e){for(var t={},n=0;n<e.length;n++)e[n]&&L(t,e[n]);return t}function O(e,t,n){}var D=function(e,t,n){return!1},I=function(e){return e};function A(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return A(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return A(e[n],t[n])}))}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(A(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var Y=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:O,parsePlatformTagName:I,mustUseProp:D,async:!0,_lifecycleHooks:B},F=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+F.source+".$_\\d]");var V,q="__proto__"in{},W="undefined"!=typeof window,G="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=G&&WXEnvironment.platform.toLowerCase(),J=W&&window.navigator.userAgent.toLowerCase(),X=J&&/msie|trident/.test(J),Q=J&&J.indexOf("msie 9.0")>0,Z=J&&J.indexOf("edge/")>0,ee=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),te=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(W)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===V&&(V=!W&&!G&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),V},oe=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ce="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=O,de=0,he=function(){this.id=de++,this.subs=[]};he.prototype.addSub=function(e){this.subs.push(e)},he.prototype.removeSub=function(e){b(this.subs,e)},he.prototype.depend=function(){he.target&&he.target.addDep(this)},he.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},he.target=null;var pe=[];function fe(e){pe.push(e),he.target=e}function me(){pe.pop(),he.target=pe[pe.length-1]}var ve=function(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ge={child:{configurable:!0}};ge.child.get=function(){return this.componentInstance},Object.defineProperties(ve.prototype,ge);var ye=function(e){void 0===e&&(e="");var t=new ve;return t.text=e,t.isComment=!0,t};function be(e){return new ve(void 0,void 0,void 0,String(e))}function _e(e){var t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var we=Array.prototype,ke=Object.create(we);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=we[e];U(ke,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),a}))}));var Ee=Object.getOwnPropertyNames(ke),Te=!0;function Se(e){Te=e}var Ce=function(e){this.value=e,this.dep=new he,this.vmCount=0,U(e,"__ob__",this),Array.isArray(e)?(q?function(e,t){e.__proto__=t}(e,ke):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];U(e,a,t[a])}}(e,ke,Ee),this.observeArray(e)):this.walk(e)};function xe(e,t){var n;if(l(e)&&!(e instanceof ve))return w(e,"__ob__")&&e.__ob__ instanceof Ce?n=e.__ob__:Te&&!ae()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ce(e)),t&&n&&n.vmCount++,n}function Me(e,t,n,r,i){var a=new he,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(n=e[t]);var c=!i&&xe(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return he.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Pe(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!l||(l?l.call(e,t):n=t,c=!i&&xe(t),a.notify())}})}}function $e(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Me(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Le(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Pe(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Pe(t)}Ce.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Me(e,t[n])},Ce.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)xe(e[t])};var Oe=j.optionMergeStrategies;function De(e,t){if(!t)return e;for(var n,r,i,a=ce?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)"__ob__"!==(n=a[o])&&(r=e[n],i=t[n],w(e,n)?r!==i&&u(r)&&u(i)&&De(r,i):$e(e,n,i));return e}function Ie(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?De(r,i):i}:t?e?function(){return De("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ae(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ne(e,t,n,r){var i=Object.create(e||null);return t?L(i,t):i}Oe.data=function(e,t,n){return n?Ie(e,t,n):t&&"function"!=typeof t?e:Ie(e,t)},B.forEach((function(e){Oe[e]=Ae})),Y.forEach((function(e){Oe[e+"s"]=Ne})),Oe.watch=function(e,t,n,r){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in L(i,e),t){var o=i[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},Oe.props=Oe.methods=Oe.inject=Oe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return L(i,e),t&&L(i,t),i},Oe.provide=Ie;var Re=function(e,t){return void 0===t?e:t};function Ye(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,a={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(a[T(i)]={type:null});else if(u(n))for(var o in n)i=n[o],a[T(o)]=u(i)?i:{type:i};else 0;e.props=a}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var a in n){var o=n[a];r[a]=u(o)?L({from:a},o):{from:o}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Ye(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ye(e,t.mixins[r],n);var a,o={};for(a in e)s(a);for(a in t)w(e,a)||s(a);function s(r){var i=Oe[r]||Re;o[r]=i(e[r],t[r],n,r)}return o}function Be(e,t,n,r){if("string"==typeof n){var i=e[t];if(w(i,n))return i[n];var a=T(n);if(w(i,a))return i[a];var o=S(a);return w(i,o)?i[o]:i[n]||i[a]||i[o]}}function je(e,t,n,r){var i=t[e],a=!w(n,e),o=n[e],s=Ue(Boolean,i.type);if(s>-1)if(a&&!w(i,"default"))o=!1;else if(""===o||o===x(e)){var l=Ue(String,i.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!w(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Fe(t.type)?r.call(e):r}(r,i,e);var c=Te;Se(!0),xe(o),Se(c)}return o}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function He(e,t){return Fe(e)===Fe(t)}function Ue(e,t){if(!Array.isArray(t))return He(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(He(t[n],e))return n;return-1}function ze(e,t,n){fe();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{if(!1===i[a].call(r,e,t,n))return}catch(e){qe(e,r,"errorCaptured hook")}}qe(e,t,n)}finally{me()}}function Ve(e,t,n,r,i){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&p(a)&&!a._handled&&(a.catch((function(e){return ze(e,r,i+" (Promise/async)")})),a._handled=!0)}catch(e){ze(e,r,i)}return a}function qe(e,t,n){if(j.errorHandler)try{return j.errorHandler.call(null,e,t,n)}catch(t){t!==e&&We(t,null,"config.errorHandler")}We(e,t,n)}function We(e,t,n){if(!W&&!G||"undefined"==typeof console)throw e;console.error(e)}var Ge,Ke=!1,Je=[],Xe=!1;function Qe(){Xe=!1;var e=Je.slice(0);Je.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Ze=Promise.resolve();Ge=function(){Ze.then(Qe),ee&&setTimeout(O)},Ke=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ge=void 0!==n&&se(n)?function(){n(Qe)}:function(){setTimeout(Qe,0)};else{var et=1,tt=new MutationObserver(Qe),nt=document.createTextNode(String(et));tt.observe(nt,{characterData:!0}),Ge=function(){et=(et+1)%2,nt.data=String(et)},Ke=!0}function rt(e,t){var n;if(Je.push((function(){if(e)try{e.call(t)}catch(e){ze(e,t,"nextTick")}else n&&n(t)})),Xe||(Xe=!0,Ge()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var it=new le;function at(e){!function e(t,n){var r,i,a=Array.isArray(t);if(!a&&!l(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,it),it.clear()}var ot=k((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function st(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ve(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)Ve(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function lt(e,t,n,r,a,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=ot(l),i(c)||(i(u)?(i(c.fns)&&(c=e[l]=st(c,s)),o(d.once)&&(c=e[l]=a(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)i(e[l])&&r((d=ot(l)).name,t[l],d.capture)}function ct(e,t,n){var r;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),b(r.fns,l)}i(s)?r=st([l]):a(s.fns)&&o(s.merged)?(r=s).fns.push(l):r=st([s,l]),r.merged=!0,e[t]=r}function ut(e,t,n,r,i){if(a(t)){if(w(t,n))return e[n]=t[n],i||delete t[n],!0;if(w(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function dt(e){return s(e)?[be(e)]:Array.isArray(e)?function e(t,n){var r,l,c,u,d=[];for(r=0;r<t.length;r++)i(l=t[r])||"boolean"==typeof l||(c=d.length-1,u=d[c],Array.isArray(l)?l.length>0&&(ht((l=e(l,(n||"")+"_"+r))[0])&&ht(u)&&(d[c]=be(u.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ht(u)?d[c]=be(u.text+l):""!==l&&d.push(be(l)):ht(l)&&ht(u)?d[c]=be(u.text+l.text):(o(t._isVList)&&a(l.tag)&&i(l.key)&&a(n)&&(l.key="__vlist"+n+"_"+r+"__"),d.push(l)));return d}(e):void 0}function ht(e){return a(e)&&a(e.text)&&!1===e.isComment}function pt(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){for(var o=e[a].from,s=t;s;){if(s._provided&&w(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var l=e[a].default;n[a]="function"==typeof l?l.call(t):l}else 0}}return n}}function ft(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(mt)&&delete n[c];return n}function mt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function vt(e,t,n){var i,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=gt(t,l,e[l]))}else i={};for(var c in t)c in i||(i[c]=yt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),U(i,"$stable",o),U(i,"$key",s),U(i,"$hasNormal",a),i}function gt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:dt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function yt(e,t){return function(){return e[t]}}function bt(e,t){var n,r,i,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(l(e))if(ce&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),u=c.next();!u.done;)n.push(t(u.value,n.length)),u=c.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)s=o[r],n[r]=t(e[s],s,r);return a(n)||(n=[]),n._isVList=!0,n}function _t(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=L(L({},r),n)),i=a(n)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function wt(e){return Be(this.$options,"filters",e)||I}function kt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Et(e,t,n,r,i){var a=j.keyCodes[t]||n;return i&&r&&!j.keyCodes[t]?kt(i,r):a?kt(a,e):r?x(r)!==t:void 0}function Tt(e,t,n,r,i){if(n)if(l(n)){var a;Array.isArray(n)&&(n=P(n));var o=function(o){if("class"===o||"style"===o||y(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||j.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=T(o),c=x(o);l in a||c in a||(a[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var s in n)o(s)}else;return e}function St(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||xt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Ct(e,t,n){return xt(e,"__once__"+t+(n?"_"+n:""),!0),e}function xt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Mt(e[r],t+"_"+r,n);else Mt(e,t,n)}function Mt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function $t(e,t){if(t)if(u(t)){var n=e.on=e.on?L({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}else;return e}function Lt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?Lt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function Pt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Ot(e,t){return"string"==typeof e?t+e:e}function Dt(e){e._o=Ct,e._n=m,e._s=f,e._l=bt,e._t=_t,e._q=A,e._i=N,e._m=St,e._f=wt,e._k=Et,e._b=Tt,e._v=be,e._e=ye,e._u=Lt,e._g=$t,e._d=Pt,e._p=Ot}function It(e,t,n,i,a){var s,l=this,c=a.options;w(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=o(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=pt(c.inject,i),this.slots=function(){return l.$slots||vt(e.scopedSlots,l.$slots=ft(n,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return vt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=vt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var a=Ft(s,e,t,n,r,d);return a&&!Array.isArray(a)&&(a.fnScopeId=c._scopeId,a.fnContext=i),a}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,d)}}function At(e,t,n,r,i){var a=_e(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Nt(e,t){for(var n in t)e[T(n)]=t[n]}Dt(It.prototype);var Rt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Rt.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Xt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,a){0;var o=i.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(a||e.$options._renderChildren||l);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=a,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Se(!1);for(var u=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var p=d[h],f=e.$options.props;u[p]=je(p,f,t,e)}Se(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Jt(e,n,m),c&&(e.$slots=ft(a,i.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,tn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,rn.push(t)):en(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Zt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);tn(t,"deactivated")}}(t,!0):t.$destroy())}},Yt=Object.keys(Rt);function Bt(e,t,n,s,c){if(!i(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(o(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=Ut;n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(o(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},h=R((function(n){e.resolved=zt(n,t),s?r.length=0:d(!0)})),f=R((function(t){a(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,f);return l(m)&&(p(m)?i(e.resolved)&&m.then(h,f):p(m.component)&&(m.component.then(h,f),a(m.error)&&(e.errorComp=zt(m.error,t)),a(m.loading)&&(e.loadingComp=zt(m.loading,t),0===m.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),a(m.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&f(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,i){var a=ye();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}(d,t,n,s,c);t=t||{},Tn(e),a(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),o=i[r],s=t.model.callback;a(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(i[r]=[s].concat(o)):i[r]=s}(e.options,t);var h=function(e,t,n){var r=t.options.props;if(!i(r)){var o={},s=e.attrs,l=e.props;if(a(s)||a(l))for(var c in r){var u=x(c);ut(o,l,c,u,!0)||ut(o,s,c,u,!1)}return o}}(t,e);if(o(e.options.functional))return function(e,t,n,i,o){var s=e.options,l={},c=s.props;if(a(c))for(var u in c)l[u]=je(u,c,t||r);else a(n.attrs)&&Nt(l,n.attrs),a(n.props)&&Nt(l,n.props);var d=new It(n,l,o,i,e),h=s.render.call(null,d._c,d);if(h instanceof ve)return At(h,n,d.parent,s,d);if(Array.isArray(h)){for(var p=dt(h)||[],f=new Array(p.length),m=0;m<p.length;m++)f[m]=At(p[m],n,d.parent,s,d);return f}}(e,h,t,n,s);var f=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Yt.length;n++){var r=Yt[n],i=t[r],a=Rt[r];i===a||i&&i._merged||(t[r]=i?jt(a,i):a)}}(t);var v=e.options.name||c;return new ve("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:f,tag:c,children:s},d)}}}function jt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,r,c,u){return(Array.isArray(n)||s(n))&&(c=r,r=n,n=void 0),o(u)&&(c=2),function(e,t,n,r,s){if(a(n)&&a(n.__ob__))return ye();a(n)&&a(n.is)&&(t=n.is);if(!t)return ye();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===s?r=dt(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var c,u;if("string"==typeof t){var d;u=e.$vnode&&e.$vnode.ns||j.getTagNamespace(t),c=j.isReservedTag(t)?new ve(j.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(d=Be(e.$options,"components",t))?new ve(t,n,r,void 0,void 0,e):Bt(d,n,e,r,t)}else c=Bt(t,n,e,r);return Array.isArray(c)?c:a(c)?(a(u)&&function e(t,n,r){t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0);if(a(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];a(c.tag)&&(i(c.ns)||o(r)&&"svg"!==c.tag)&&e(c,n,r)}}(c,u),a(n)&&function(e){l(e.style)&&at(e.style);l(e.class)&&at(e.class)}(n),c):ye()}(e,t,n,r,c)}var Ht,Ut=null;function zt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Vt(e){return e.isComment&&e.asyncFactory}function qt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||Vt(n)))return n}}function Wt(e,t){Ht.$on(e,t)}function Gt(e,t){Ht.$off(e,t)}function Kt(e,t){var n=Ht;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Jt(e,t,n){Ht=e,lt(t,n||{},Wt,Gt,Kt,e),Ht=void 0}var Xt=null;function Qt(e){var t=Xt;return Xt=e,function(){Xt=t}}function Zt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function en(e,t){if(t){if(e._directInactive=!1,Zt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)en(e.$children[n]);tn(e,"activated")}}function tn(e,t){fe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)Ve(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var nn=[],rn=[],an={},on=!1,sn=!1,ln=0;var cn=0,un=Date.now;if(W&&!X){var dn=window.performance;dn&&"function"==typeof dn.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return dn.now()})}function hn(){var e,t;for(cn=un(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),ln=0;ln<nn.length;ln++)(e=nn[ln]).before&&e.before(),t=e.id,an[t]=null,e.run();var n=rn.slice(),r=nn.slice();ln=nn.length=rn.length=0,an={},on=sn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,en(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&tn(r,"updated")}}(r),oe&&j.devtools&&oe.emit("flush")}var pn=0,fn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++pn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var e;fe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ze(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&at(e),me(),this.cleanupDeps()}return e},fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==an[t]){if(an[t]=!0,sn){for(var n=nn.length-1;n>ln&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);on||(on=!0,rt(hn))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ze(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:O,set:O};function vn(e,t,n){mn.get=function(){return this[t][n]},mn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,mn)}function gn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Se(!1);var a=function(a){i.push(a);var o=je(a,t,n,e);Me(r,a,o),a in e||vn(e,"_props",a)};for(var o in t)a(o);Se(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?O:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){fe();try{return e.call(t,t)}catch(e){return ze(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&w(r,a)||H(a)||vn(e,"_data",a)}xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var a=t[i],o="function"==typeof a?a:a.get;0,r||(n[i]=new fn(e,o||O,O,yn)),i in e||bn(e,i,a)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)kn(e,n,r[i]);else kn(e,n,r)}}(e,t.watch)}var yn={lazy:!0};function bn(e,t,n){var r=!ae();"function"==typeof n?(mn.get=r?_n(t):wn(n),mn.set=O):(mn.get=n.get?r&&!1!==n.cache?_n(t):wn(n.get):O,mn.set=n.set||O),Object.defineProperty(e,t,mn)}function _n(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),he.target&&t.depend(),t.value}}function wn(e){return function(){return e.call(this,this)}}function kn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var En=0;function Tn(e){var t=e.options;if(e.super){var n=Tn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&L(e.extendOptions,r),(t=e.options=Ye(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Sn(e){this._init(e)}function Cn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Ye(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,Y.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=L({},o.options),i[r]=o,o}}function xn(e){return e&&(e.Ctor.options.name||e.tag)}function Mn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function $n(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=xn(o.componentOptions);s&&!t(s)&&Ln(n,a,r,i)}}}function Ln(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=En++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ye(Tn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=ft(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var a=n&&n.data;Me(e,"$attrs",a&&a.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=pt(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Se(!0))}(t),gn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Sn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=$e,e.prototype.$delete=Le,e.prototype.$watch=function(e,t,n){if(u(t))return kn(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){ze(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Sn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?$(n):n;for(var r=$(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)Ve(n[a],t,r,t,i)}return t}}(Sn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),a(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){tn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),tn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Sn),function(e){Dt(e.prototype),e.prototype.$nextTick=function(e){return rt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=vt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Ut=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){ze(n,t,"render"),e=t._vnode}finally{Ut=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ve||(e=ye()),e.parent=i,e}}(Sn);var Pn=[String,RegExp,Array],On={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Pn,exclude:Pn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ln(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){$n(e,(function(e){return Mn(t,e)}))})),this.$watch("exclude",(function(t){$n(e,(function(e){return!Mn(t,e)}))}))},render:function(){var e=this.$slots.default,t=qt(e),n=t&&t.componentOptions;if(n){var r=xn(n),i=this.include,a=this.exclude;if(i&&(!r||!Mn(i,r))||a&&r&&Mn(a,r))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,b(s,l),s.push(l)):(o[l]=t,s.push(l),this.max&&s.length>parseInt(this.max)&&Ln(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:L,mergeOptions:Ye,defineReactive:Me},e.set=$e,e.delete=Le,e.nextTick=rt,e.observable=function(e){return xe(e),e},e.options=Object.create(null),Y.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,L(e.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ye(this.options,e),this}}(e),Cn(e),function(e){Y.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Sn),Object.defineProperty(Sn.prototype,"$isServer",{get:ae}),Object.defineProperty(Sn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sn,"FunctionalRenderContext",{value:It}),Sn.version="2.6.11";var Dn=v("style,class"),In=v("input,textarea,option,select,progress"),An=function(e,t,n){return"value"===n&&In(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Nn=v("contenteditable,draggable,spellcheck"),Rn=v("events,caret,typing,plaintext-only"),Yn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Bn="http://www.w3.org/1999/xlink",jn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Fn=function(e){return jn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Un(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=zn(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(a(e)||a(t))return Vn(e,qn(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Vn(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Vn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=qn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Wn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gn=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Kn=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(e){return Gn(e)||Kn(e)};function Xn(e){return Kn(e)?"svg":"math"===e?"math":void 0}var Qn=Object.create(null);var Zn=v("text,number,password,search,email,tel,url");function er(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var tr=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Wn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),nr={create:function(e,t){rr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(rr(e,!0),rr(t))},destroy:function(e){rr(e,!0)}};function rr(e,t){var n=e.data.ref;if(a(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?b(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var ir=new ve("",{},[]),ar=["create","activate","update","remove","destroy"];function or(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Zn(r)&&Zn(i)}(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function sr(e,t,n){var r,i,o={};for(r=t;r<=n;++r)a(i=e[r].key)&&(o[i]=r);return o}var lr={create:cr,update:cr,destroy:function(e){cr(e,ir)}};function cr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,a=e===ir,o=t===ir,s=dr(e.data.directives,e.context),l=dr(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,pr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(pr(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)pr(c[n],"inserted",t,e)};a?ct(t,"insert",d):d()}u.length&&ct(t,"postpatch",(function(){for(var n=0;n<u.length;n++)pr(u[n],"componentUpdated",t,e)}));if(!a)for(n in s)l[n]||pr(s[n],"unbind",e,e,o)}(e,t)}var ur=Object.create(null);function dr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=ur),i[hr(r)]=r,r.def=Be(t.$options,"directives",r.name);return i}function hr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function pr(e,t,n,r,i){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,r,i)}catch(r){ze(r,n.context,"directive "+e.name+" "+t+" hook")}}var fr=[nr,lr];function mr(e,t){var n=t.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,o,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(r in a(c.__ob__)&&(c=t.data.attrs=L({},c)),c)o=c[r],l[r]!==o&&vr(s,r,o);for(r in(X||Z)&&c.value!==l.value&&vr(s,"value",c.value),l)i(c[r])&&(jn(r)?s.removeAttributeNS(Bn,Fn(r)):Nn(r)||s.removeAttribute(r))}}function vr(e,t,n){e.tagName.indexOf("-")>-1?gr(e,t,n):Yn(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Nn(t)?e.setAttribute(t,function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Rn(t)?t:"true"}(t,n)):jn(t)?Hn(n)?e.removeAttributeNS(Bn,Fn(t)):e.setAttributeNS(Bn,t,n):gr(e,t,n)}function gr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(X&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var yr={create:mr,update:mr};function br(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Un(t),l=n._transitionClasses;a(l)&&(s=Vn(s,qn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var _r,wr,kr,Er,Tr,Sr,Cr={create:br,update:br},xr=/[\w).+\-_$\]]/;function Mr(e){var t,n,r,i,a,o=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,p=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||h){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var f=r-1,m=void 0;f>=0&&" "===(m=e.charAt(f));f--);m&&xr.test(m)||(c=!0)}}else void 0===i?(p=r+1,i=e.slice(0,r).trim()):v();function v(){(a||(a=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==p&&v(),a)for(r=0;r<a.length;r++)i=$r(i,a[r]);return i}function $r(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Lr(e,t){console.error("[Vue compiler]: "+e)}function Pr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Or(e,t,n,r,i){(e.props||(e.props=[])).push(Fr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Dr(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Fr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Ir(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Fr({name:t,value:n},r))}function Ar(e,t,n,r,i,a,o,s){(e.directives||(e.directives=[])).push(Fr({name:t,rawName:n,value:r,arg:i,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Nr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Rr(e,t,n,i,a,o,s,l){var c;(i=i||r).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Nr("!",t,l)),i.once&&(delete i.once,t=Nr("~",t,l)),i.passive&&(delete i.passive,t=Nr("&",t,l)),i.native?(delete i.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Fr({value:n.trim(),dynamic:l},s);i!==r&&(u.modifiers=i);var d=c[t];Array.isArray(d)?a?d.unshift(u):d.push(u):c[t]=d?a?[u,d]:[d,u]:u,e.plain=!1}function Yr(e,t,n){var r=Br(e,":"+t)||Br(e,"v-bind:"+t);if(null!=r)return Mr(r);if(!1!==n){var i=Br(e,t);if(null!=i)return JSON.stringify(i)}}function Br(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,a=0,o=i.length;a<o;a++)if(i[a].name===t){i.splice(a,1);break}return n&&delete e.attrsMap[t],r}function jr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var a=n[r];if(t.test(a.name))return n.splice(r,1),a}}function Fr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Hr(e,t,n){var r=n||{},i=r.number,a="$$v";r.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var o=Ur(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function Ur(e,t){var n=function(e){if(e=e.trim(),_r=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<_r-1)return(Er=e.lastIndexOf("."))>-1?{exp:e.slice(0,Er),key:'"'+e.slice(Er+1)+'"'}:{exp:e,key:null};wr=e,Er=Tr=Sr=0;for(;!Vr();)qr(kr=zr())?Gr(kr):91===kr&&Wr(kr);return{exp:e.slice(0,Tr),key:e.slice(Tr+1,Sr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function zr(){return wr.charCodeAt(++Er)}function Vr(){return Er>=_r}function qr(e){return 34===e||39===e}function Wr(e){var t=1;for(Tr=Er;!Vr();)if(qr(e=zr()))Gr(e);else if(91===e&&t++,93===e&&t--,0===t){Sr=Er;break}}function Gr(e){for(var t=e;!Vr()&&(e=zr())!==t;);}var Kr;function Jr(e,t,n){var r=Kr;return function i(){var a=t.apply(null,arguments);null!==a&&Zr(e,i,n,r)}}var Xr=Ke&&!(te&&Number(te[1])<=53);function Qr(e,t,n,r){if(Xr){var i=cn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Kr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Zr(e,t,n,r){(r||Kr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Kr=t.elm,function(e){if(a(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),lt(n,r,Qr,Zr,Jr,t.context),Kr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in a(l.__ob__)&&(l=t.data.domProps=L({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var c=i(r)?"":String(r);ii(o,c)&&(o.value=c)}else if("innerHTML"===n&&Kn(o.tagName)&&i(o.innerHTML)){(ti=ti||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=ti.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==s[n])try{o[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ai={create:ri,update:ri},oi=k((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=li(e.style);return e.staticStyle?L(e.staticStyle,t):t}function li(e){return Array.isArray(e)?P(e):"string"==typeof e?oi(e):e}var ci,ui=/^--/,di=/\s*!important$/,hi=function(e,t,n){if(ui.test(t))e.style.setProperty(t,n);else if(di.test(n))e.style.setProperty(x(t),n.replace(di,""),"important");else{var r=fi(t);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)e.style[r]=n[i];else e.style[r]=n}},pi=["Webkit","Moz","ms"],fi=k((function(e){if(ci=ci||document.createElement("div").style,"filter"!==(e=T(e))&&e in ci)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<pi.length;n++){var r=pi[n]+t;if(r in ci)return r}}));function mi(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var o,s,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,h=li(t.data.style)||{};t.data.normalizedStyle=a(h.__ob__)?L({},h):h;var p=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=si(i.data))&&L(r,n);(n=si(e.data))&&L(r,n);for(var a=e;a=a.parent;)a.data&&(n=si(a.data))&&L(r,n);return r}(t,!0);for(s in d)i(p[s])&&hi(l,s,"");for(s in p)(o=p[s])!==d[s]&&hi(l,s,null==o?"":o)}}var vi={create:mi,update:mi},gi=/\s+/;function yi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(gi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function bi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(gi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function _i(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&L(t,wi(e.name||"v")),L(t,e),t}return"string"==typeof e?wi(e):void 0}}var wi=k((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ki=W&&!Q,Ei="transition",Ti="transitionend",Si="animation",Ci="animationend";ki&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ei="WebkitTransition",Ti="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Si="WebkitAnimation",Ci="webkitAnimationEnd"));var xi=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Mi(e){xi((function(){xi(e)}))}function $i(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),yi(e,t))}function Li(e,t){e._transitionClasses&&b(e._transitionClasses,t),bi(e,t)}function Pi(e,t,n){var r=Di(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s="transition"===i?Ti:Ci,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l<o&&c()}),a+1),e.addEventListener(s,u)}var Oi=/\b(transform|all)(,|$)/;function Di(e,t){var n,r=window.getComputedStyle(e),i=(r[Ei+"Delay"]||"").split(", "),a=(r[Ei+"Duration"]||"").split(", "),o=Ii(i,a),s=(r[Si+"Delay"]||"").split(", "),l=(r[Si+"Duration"]||"").split(", "),c=Ii(s,l),u=0,d=0;return"transition"===t?o>0&&(n="transition",u=o,d=a.length):"animation"===t?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?"transition":"animation":null)?"transition"===n?a.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Oi.test(r[Ei+"Property"])}}function Ii(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ai(t)+Ai(e[n])})))}function Ai(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ni(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=_i(e.data.transition);if(!i(r)&&!a(n._enterCb)&&1===n.nodeType){for(var o=r.css,s=r.type,c=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,h=r.appearClass,p=r.appearToClass,f=r.appearActiveClass,v=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,_=r.beforeAppear,w=r.appear,k=r.afterAppear,E=r.appearCancelled,T=r.duration,S=Xt,C=Xt.$vnode;C&&C.parent;)S=C.context,C=C.parent;var x=!S._isMounted||!e.isRootInsert;if(!x||w||""===w){var M=x&&h?h:c,$=x&&f?f:d,L=x&&p?p:u,P=x&&_||v,O=x&&"function"==typeof w?w:g,D=x&&k||y,I=x&&E||b,A=m(l(T)?T.enter:T);0;var N=!1!==o&&!Q,Y=Bi(O),B=n._enterCb=R((function(){N&&(Li(n,L),Li(n,$)),B.cancelled?(N&&Li(n,M),I&&I(n)):D&&D(n),n._enterCb=null}));e.data.show||ct(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,B)})),P&&P(n),N&&($i(n,M),$i(n,$),Mi((function(){Li(n,M),B.cancelled||($i(n,L),Y||(Yi(A)?setTimeout(B,A):Pi(n,s,B)))}))),e.data.show&&(t&&t(),O&&O(n,B)),N||Y||B()}}}function Ri(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=_i(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var o=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,h=r.beforeLeave,p=r.leave,f=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,y=r.duration,b=!1!==o&&!Q,_=Bi(p),w=m(l(y)?y.leave:y);0;var k=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Li(n,u),Li(n,d)),k.cancelled?(b&&Li(n,c),v&&v(n)):(t(),f&&f(n)),n._leaveCb=null}));g?g(E):E()}function E(){k.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&($i(n,c),$i(n,d),Mi((function(){Li(n,c),k.cancelled||($i(n,u),_||(Yi(w)?setTimeout(k,w):Pi(n,s,k)))}))),p&&p(n,k),b||_||k())}}function Yi(e){return"number"==typeof e&&!isNaN(e)}function Bi(e){if(i(e))return!1;var t=e.fns;return a(t)?Bi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ji(e,t){!0!==t.data.show&&Ni(t)}var Fi=function(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;t<ar.length;++t)for(r[ar[t]]=[],n=0;n<l.length;++n)a(l[n][ar[t]])&&r[ar[t]].push(l[n][ar[t]]);function u(e){var t=c.parentNode(e);a(t)&&c.removeChild(t,e)}function d(e,t,n,i,s,l,u){if(a(e.elm)&&a(l)&&(e=l[u]=_e(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(a(s)){var l=a(e.componentInstance)&&s.keepAlive;if(a(s=s.hook)&&a(s=s.init)&&s(e,!1),a(e.componentInstance))return h(e,t),p(n,e.elm,i),o(l)&&function(e,t,n,i){var o,s=e;for(;s.componentInstance;)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](ir,s);t.push(s);break}p(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,m=e.children,v=e.tag;a(v)?(e.elm=e.ns?c.createElementNS(e.ns,v):c.createElement(v,e),y(e),f(e,m,t),a(d)&&g(e,t),p(n,e.elm,i)):o(e.isComment)?(e.elm=c.createComment(e.text),p(n,e.elm,i)):(e.elm=c.createTextNode(e.text),p(n,e.elm,i))}}function h(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(g(e,t),y(e)):(rr(e),t.push(e))}function p(e,t,n){a(e)&&(a(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function f(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](ir,e);a(t=e.data.hook)&&(a(t.create)&&t.create(ir,e),a(t.insert)&&n.push(e))}function y(e){var t;if(a(t=e.fnScopeId))c.setStyleScope(e.elm,t);else for(var n=e;n;)a(t=n.context)&&a(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent;a(t=Xt)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function b(e,t,n,r,i,a){for(;r<=i;++r)d(n[r],a,e,t,!1,n,r)}function _(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(k(r),_(r)):u(r.elm))}}function k(e,t){if(a(t)||a(e.data)){var n,i=r.remove.length+1;for(a(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&k(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else u(e.elm)}function E(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(a(o)&&or(e,o))return i}}function T(e,t,n,s,l,u){if(e!==t){a(t.elm)&&a(s)&&(t=s[l]=_e(t));var h=t.elm=e.elm;if(o(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?x(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var p,f=t.data;a(f)&&a(p=f.hook)&&a(p=p.prepatch)&&p(e,t);var v=e.children,g=t.children;if(a(f)&&m(t)){for(p=0;p<r.update.length;++p)r.update[p](e,t);a(p=f.hook)&&a(p=p.update)&&p(e,t)}i(t.text)?a(v)&&a(g)?v!==g&&function(e,t,n,r,o){var s,l,u,h=0,p=0,f=t.length-1,m=t[0],v=t[f],g=n.length-1,y=n[0],_=n[g],k=!o;for(0;h<=f&&p<=g;)i(m)?m=t[++h]:i(v)?v=t[--f]:or(m,y)?(T(m,y,r,n,p),m=t[++h],y=n[++p]):or(v,_)?(T(v,_,r,n,g),v=t[--f],_=n[--g]):or(m,_)?(T(m,_,r,n,g),k&&c.insertBefore(e,m.elm,c.nextSibling(v.elm)),m=t[++h],_=n[--g]):or(v,y)?(T(v,y,r,n,p),k&&c.insertBefore(e,v.elm,m.elm),v=t[--f],y=n[++p]):(i(s)&&(s=sr(t,h,f)),i(l=a(y.key)?s[y.key]:E(y,t,h,f))?d(y,r,e,m.elm,!1,n,p):or(u=t[l],y)?(T(u,y,r,n,p),t[l]=void 0,k&&c.insertBefore(e,u.elm,m.elm)):d(y,r,e,m.elm,!1,n,p),y=n[++p]);h>f?b(e,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&w(t,h,f)}(h,v,g,n,u):a(g)?(a(e.text)&&c.setTextContent(h,""),b(h,null,g,0,g.length-1,n)):a(v)?w(v,0,v.length-1):a(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),a(f)&&a(p=f.hook)&&a(p=p.postpatch)&&p(e,t)}}}function S(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var C=v("attrs,class,staticClass,staticStyle,key");function x(e,t,n,r){var i,s=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(i=l.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return h(t,n),!0;if(a(s)){if(a(c))if(e.hasChildNodes())if(a(i=l)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,p=0;p<c.length;p++){if(!d||!x(d,c[p],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else f(t,c,n);if(a(l)){var m=!1;for(var v in l)if(!C(v)){m=!0,g(t,n);break}!m&&l.class&&at(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var l,u=!1,h=[];if(i(e))u=!0,d(t,h);else{var p=a(e.nodeType);if(!p&&or(e,t))T(e,t,h,null,null,s);else{if(p){if(1===e.nodeType&&e.hasAttribute("data-server-rendered")&&(e.removeAttribute("data-server-rendered"),n=!0),o(n)&&x(e,t,h))return S(t,h,!0),e;l=e,e=new ve(c.tagName(l).toLowerCase(),{},[],void 0,l)}var f=e.elm,v=c.parentNode(f);if(d(t,h,f._leaveCb?null:v,c.nextSibling(f)),a(t.parent))for(var g=t.parent,y=m(t);g;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](g);if(g.elm=t.elm,y){for(var k=0;k<r.create.length;++k)r.create[k](ir,g);var E=g.data.hook.insert;if(E.merged)for(var C=1;C<E.fns.length;C++)E.fns[C]()}else rr(g);g=g.parent}a(v)?w([e],0,0):a(e.tag)&&_(e)}}return S(t,h,u),t.elm}a(e)&&_(e)}}({nodeOps:tr,modules:[yr,Cr,ni,ai,vi,W?{create:ji,activate:ji,remove:function(e,t){!0!==e.data.show?Ri(e,t):t()}}:{}].concat(fr)});Q&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ki(e,"input")}));var Hi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ct(n,"postpatch",(function(){Hi.componentUpdated(e,t,n)})):Ui(e,t,n.context),e._vOptions=[].map.call(e.options,qi)):("textarea"===n.tag||Zn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Wi),e.addEventListener("compositionend",Gi),e.addEventListener("change",Gi),Q&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ui(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,qi);if(i.some((function(e,t){return!A(e,r[t])})))(e.multiple?t.value.some((function(e){return Vi(e,i)})):t.value!==t.oldValue&&Vi(t.value,i))&&Ki(e,"change")}}};function Ui(e,t,n){zi(e,t,n),(X||Z)&&setTimeout((function(){zi(e,t,n)}),0)}function zi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],i)a=N(r,qi(o))>-1,o.selected!==a&&(o.selected=a);else if(A(qi(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Vi(e,t){return t.every((function(t){return!A(t,e)}))}function qi(e){return"_value"in e?e._value:e.value}function Wi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Ki(e.target,"input"))}function Ki(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ji(e){return!e.componentInstance||e.data&&e.data.transition?e:Ji(e.componentInstance._vnode)}var Xi={model:Hi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ji(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ni(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ji(n)).data&&n.data.transition?(n.data.show=!0,r?Ni(n,(function(){e.style.display=e.__vOriginalDisplay})):Ri(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Zi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zi(qt(t.children)):e}function ea(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[T(a)]=i[a];return t}function ta(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var na=function(e){return e.tag||Vt(e)},ra=function(e){return"show"===e.name},ia={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(na)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=Zi(i);if(!a)return i;if(this._leaving)return ta(e,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=ea(this),c=this._vnode,u=Zi(c);if(a.data.directives&&a.data.directives.some(ra)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!Vt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=L({},l);if("out-in"===r)return this._leaving=!0,ct(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ta(e,i);if("in-out"===r){if(Vt(a))return c;var h,p=function(){h()};ct(l,"afterEnter",p),ct(l,"enterCancelled",p),ct(d,"delayLeave",(function(e){h=e}))}}return i}}},aa=L({tag:String,moveClass:String},Qi);function oa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function sa(e){e.data.newPos=e.elm.getBoundingClientRect()}function la(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete aa.mode;var ca={Transition:ia,TransitionGroup:{props:aa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=ea(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=e(t,null,c),this.removed=u}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(oa),e.forEach(sa),e.forEach(la),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;$i(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ti,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ti,e),n._moveCb=null,Li(n,t))})}})))},methods:{hasMove:function(e,t){if(!ki)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){bi(n,e)})),yi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Di(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Sn.config.mustUseProp=An,Sn.config.isReservedTag=Jn,Sn.config.isReservedAttr=Dn,Sn.config.getTagNamespace=Xn,Sn.config.isUnknownElement=function(e){if(!W)return!0;if(Jn(e))return!1;if(e=e.toLowerCase(),null!=Qn[e])return Qn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Qn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qn[e]=/HTMLUnknownElement/.test(t.toString())},L(Sn.options.directives,Xi),L(Sn.options.components,ca),Sn.prototype.__patch__=W?Fi:O,Sn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ye),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&W?er(e):void 0,t)},W&&setTimeout((function(){j.devtools&&oe&&oe.emit("init",Sn)}),0);var ua=/\{\{((?:.|\r?\n)+?)\}\}/g,da=/[-.*+?^${}()|[\]\/\\]/g,ha=k((function(e){var t=e[0].replace(da,"\\$&"),n=e[1].replace(da,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var pa={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Br(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Yr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var fa,ma={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Br(e,"style");n&&(e.staticStyle=JSON.stringify(oi(n)));var r=Yr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},va=function(e){return(fa=fa||document.createElement("div")).innerHTML=e,fa.textContent},ga=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ya=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ba=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),_a=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wa=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ka="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+F.source+"]*",Ea="((?:"+ka+"\\:)?"+ka+")",Ta=new RegExp("^<"+Ea),Sa=/^\s*(\/?)>/,Ca=new RegExp("^<\\/"+Ea+"[^>]*>"),xa=/^<!DOCTYPE [^>]+>/i,Ma=/^<!\--/,$a=/^<!\[/,La=v("script,style,textarea",!0),Pa={},Oa={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Da=/&(?:lt|gt|quot|amp|#39);/g,Ia=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Aa=v("pre,textarea",!0),Na=function(e,t){return e&&Aa(e)&&"\n"===t[0]};function Ra(e,t){var n=t?Ia:Da;return e.replace(n,(function(e){return Oa[e]}))}var Ya,Ba,ja,Fa,Ha,Ua,za,Va,qa=/^@|^v-on:/,Wa=/^v-|^@|^:|^#/,Ga=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ka=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ja=/^\(|\)$/g,Xa=/^\[.*\]$/,Qa=/:(.*)$/,Za=/^:|^\.|^v-bind:/,eo=/\.[^.\]]+(?=[^\]]*$)/g,to=/^v-slot(:|$)|^#/,no=/[\r\n]/,ro=/\s+/g,io=k(va);function ao(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:po(t),rawAttrsMap:{},parent:n,children:[]}}function oo(e,t){Ya=t.warn||Lr,Ua=t.isPreTag||D,za=t.mustUseProp||D,Va=t.getTagNamespace||D;var n=t.isReservedTag||D;(function(e){return!!e.component||!n(e.tag)}),ja=Pr(t.modules,"transformNode"),Fa=Pr(t.modules,"preTransformNode"),Ha=Pr(t.modules,"postTransformNode"),Ba=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(d(e),l||e.processed||(e=so(e,t)),a.length||e===r||r.if&&(e.elseif||e.else)&&co(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&co(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var o,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),Ua(e.tag)&&(c=!1);for(var u=0;u<Ha.length;u++)Ha[u](e,t)}function d(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],a=t.expectHTML,o=t.isUnaryTag||D,s=t.canBeLeftOpenTag||D,l=0;e;){if(n=e,r&&La(r)){var c=0,u=r.toLowerCase(),d=Pa[u]||(Pa[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),h=e.replace(d,(function(e,n,r){return c=r.length,La(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Na(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-h.length,e=h,C(u,l-c,l)}else{var p=e.indexOf("<");if(0===p){if(Ma.test(e)){var f=e.indexOf("--\x3e");if(f>=0){t.shouldKeepComment&&t.comment(e.substring(4,f),l,l+f+3),E(f+3);continue}}if($a.test(e)){var m=e.indexOf("]>");if(m>=0){E(m+2);continue}}var v=e.match(xa);if(v){E(v[0].length);continue}var g=e.match(Ca);if(g){var y=l;E(g[0].length),C(g[1],y,l);continue}var b=T();if(b){S(b),Na(b.tagName,e)&&E(1);continue}}var _=void 0,w=void 0,k=void 0;if(p>=0){for(w=e.slice(p);!(Ca.test(w)||Ta.test(w)||Ma.test(w)||$a.test(w)||(k=w.indexOf("<",1))<0);)p+=k,w=e.slice(p);_=e.substring(0,p)}p<0&&(_=e),_&&E(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function E(t){l+=t,e=e.substring(t)}function T(){var t=e.match(Ta);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(E(t[0].length);!(n=e.match(Sa))&&(r=e.match(wa)||e.match(_a));)r.start=l,E(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],E(n[0].length),i.end=l,i}}function S(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&ba(n)&&C(r),s(n)&&r===n&&C(n));for(var c=o(n)||!!l,u=e.attrs.length,d=new Array(u),h=0;h<u;h++){var p=e.attrs[h],f=p[3]||p[4]||p[5]||"",m="a"===n&&"href"===p[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[h]={name:p[1],value:Ra(f,m)}}c||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,c,e.start,e.end)}function C(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e)for(s=e.toLowerCase(),o=i.length-1;o>=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=i.length-1;c>=o;c--)t.end&&t.end(i[c].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}C()}(e,{warn:Ya,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,d){var h=i&&i.ns||Va(e);X&&"svg"===h&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];fo.test(r.name)||(r.name=r.name.replace(mo,""),t.push(r))}return t}(n));var p,f=ao(e,n,i);h&&(f.ns=h),"style"!==(p=f).tag&&("script"!==p.tag||p.attrsMap.type&&"text/javascript"!==p.attrsMap.type)||ae()||(f.forbidden=!0);for(var m=0;m<Fa.length;m++)f=Fa[m](f,t)||f;l||(!function(e){null!=Br(e,"v-pre")&&(e.pre=!0)}(f),f.pre&&(l=!0)),Ua(f.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(f):f.processed||(lo(f),function(e){var t=Br(e,"v-if");if(t)e.if=t,co(e,{exp:t,block:e});else{null!=Br(e,"v-else")&&(e.else=!0);var n=Br(e,"v-else-if");n&&(e.elseif=n)}}(f),function(e){null!=Br(e,"v-once")&&(e.once=!0)}(f)),r||(r=f),o?u(f):(i=f,a.push(f))},end:function(e,t,n){var r=a[a.length-1];a.length-=1,i=a[a.length-1],u(r)},chars:function(e,t,n){if(i&&(!X||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,a,u,d=i.children;if(e=c||e.trim()?"script"===(r=i).tag||"style"===r.tag?e:io(e):d.length?s?"condense"===s&&no.test(e)?"":" ":o?" ":"":"")c||"condense"!==s||(e=e.replace(ro," ")),!l&&" "!==e&&(a=function(e,t){var n=t?ha(t):ua;if(n.test(e)){for(var r,i,a,o=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(i=r.index)>l&&(s.push(a=e.slice(l,i)),o.push(JSON.stringify(a)));var c=Mr(r[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=i+r[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}(e,Ba))?u={type:2,expression:a.expression,tokens:a.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function so(e,t){var n;!function(e){var t=Yr(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Yr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Br(e,"scope"),e.slotScope=t||Br(e,"slot-scope")):(t=Br(e,"slot-scope"))&&(e.slotScope=t);var n=Yr(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Dr(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=jr(e,to);if(r){0;var i=uo(r),a=i.name,o=i.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=r.value||"_empty_"}}else{var s=jr(e,to);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),c=uo(s),u=c.name,d=c.dynamic,h=l[u]=ao("template",[],e);h.slotTarget=u,h.slotTargetDynamic=d,h.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=h,!0})),h.slotScope=s.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Yr(n,"name")),function(e){var t;(t=Yr(e,"is"))&&(e.component=t);null!=Br(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<ja.length;r++)e=ja[r](e,t)||e;return function(e){var t,n,r,i,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(r=i=c[t].name,a=c[t].value,Wa.test(r))if(e.hasBindings=!0,(o=ho(r.replace(Wa,"")))&&(r=r.replace(eo,"")),Za.test(r))r=r.replace(Za,""),a=Mr(a),(l=Xa.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=T(r))&&(r="innerHTML"),o.camel&&!l&&(r=T(r)),o.sync&&(s=Ur(a,"$event"),l?Rr(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(Rr(e,"update:"+T(r),s,null,!1,0,c[t]),x(r)!==T(r)&&Rr(e,"update:"+x(r),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&za(e.tag,e.attrsMap.type,r)?Or(e,r,a,c[t],l):Dr(e,r,a,c[t],l);else if(qa.test(r))r=r.replace(qa,""),(l=Xa.test(r))&&(r=r.slice(1,-1)),Rr(e,r,a,o,!1,0,c[t],l);else{var u=(r=r.replace(Wa,"")).match(Qa),d=u&&u[1];l=!1,d&&(r=r.slice(0,-(d.length+1)),Xa.test(d)&&(d=d.slice(1,-1),l=!0)),Ar(e,r,i,a,d,l,o,c[t])}else Dr(e,r,JSON.stringify(a),c[t]),!e.component&&"muted"===r&&za(e.tag,e.attrsMap.type,r)&&Or(e,r,"true",c[t])}}(e),e}function lo(e){var t;if(t=Br(e,"v-for")){var n=function(e){var t=e.match(Ga);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ja,""),i=r.match(Ka);i?(n.alias=r.replace(Ka,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&L(e,n)}}function co(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function uo(e){var t=e.name.replace(to,"");return t||"#"!==e.name[0]&&(t="default"),Xa.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function ho(e){var t=e.match(eo);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function po(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var fo=/^xmlns:NS\d+/,mo=/^NS\d+:/;function vo(e){return ao(e.tag,e.attrsList.slice(),e.parent)}var go=[pa,ma,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Yr(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Br(e,"v-if",!0),a=i?"&&("+i+")":"",o=null!=Br(e,"v-else",!0),s=Br(e,"v-else-if",!0),l=vo(e);lo(l),Ir(l,"type","checkbox"),so(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+a,co(l,{exp:l.if,block:l});var c=vo(e);Br(c,"v-for",!0),Ir(c,"type","radio"),so(c,t),co(l,{exp:"("+n+")==='radio'"+a,block:c});var u=vo(e);return Br(u,"v-for",!0),Ir(u,":type",n),so(u,t),co(l,{exp:i,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var yo,bo,_o={expectHTML:!0,modules:go,directives:{model:function(e,t,n){n;var r=t.value,i=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)return Hr(e,r,i),!1;if("select"===a)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Ur(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Rr(e,"change",r,null,!0)}(e,r,i);else if("input"===a&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,i=Yr(e,"value")||"null",a=Yr(e,"true-value")||"true",o=Yr(e,"false-value")||"false";Or(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),Rr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ur(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ur(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ur(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=Yr(e,"value")||"null";Or(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Rr(e,"change",Ur(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},a=i.lazy,o=i.number,s=i.trim,l=!a&&"range"!==r,c=a?"change":"range"===r?"__r":"input",u="$event.target.value";s&&(u="$event.target.value.trim()");o&&(u="_n("+u+")");var d=Ur(t,u);l&&(d="if($event.target.composing)return;"+d);Or(e,"value","("+t+")"),Rr(e,c,d,null,!0),(s||o)&&Rr(e,"blur","$forceUpdate()")}(e,r,i);else{if(!j.isReservedTag(a))return Hr(e,r,i),!1}return!0},text:function(e,t){t.value&&Or(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Or(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ga,mustUseProp:An,canBeLeftOpenTag:ya,isReservedTag:Jn,getTagNamespace:Xn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(go)},wo=k((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function ko(e,t){e&&(yo=wo(t.staticKeys||""),bo=t.isReservedTag||D,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||g(e.tag)||!bo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(yo)))}(t),1===t.type){if(!bo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++){var s=t.ifConditions[a].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++)e(t.ifConditions[a].block,n)}}(e,!1))}var Eo=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,To=/\([^)]*?\);*$/,So=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Co={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Mo=function(e){return"if("+e+")return null;"},$o={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Mo("$event.target !== $event.currentTarget"),ctrl:Mo("!$event.ctrlKey"),shift:Mo("!$event.shiftKey"),alt:Mo("!$event.altKey"),meta:Mo("!$event.metaKey"),left:Mo("'button' in $event && $event.button !== 0"),middle:Mo("'button' in $event && $event.button !== 1"),right:Mo("'button' in $event && $event.button !== 2")};function Lo(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=Po(e[a]);e[a]&&e[a].dynamic?i+=a+","+o+",":r+='"'+a+'":'+o+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Po(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Po(e)})).join(",")+"]";var t=So.test(e.value),n=Eo.test(e.value),r=So.test(e.value.replace(To,""));if(e.modifiers){var i="",a="",o=[];for(var s in e.modifiers)if($o[s])a+=$o[s],Co[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=Mo(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(s);return o.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Oo).join("&&")+")return null;"}(o)),a&&(i+=a),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Oo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Co[e],r=xo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Do={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},Io=function(e){this.options=e,this.warn=e.warn||Lr,this.transforms=Pr(e.modules,"transformCode"),this.dataGenFns=Pr(e.modules,"genData"),this.directives=L(L({},Do),e.directives);var t=e.isReservedTag||D;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ao(e,t){var n=new Io(t);return{render:"with(this){return "+(e?No(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function No(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ro(e,t);if(e.once&&!e.onceProcessed)return Yo(e,t);if(e.for&&!e.forProcessed)return jo(e,t);if(e.if&&!e.ifProcessed)return Bo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=zo(e,t),i="_t("+n+(r?","+r:""),a=e.attrs||e.dynamicAttrs?Wo((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:T(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:zo(t,n,!0);return"_c("+e+","+Fo(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Fo(e,t));var i=e.inlineTemplate?null:zo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var a=0;a<t.transforms.length;a++)n=t.transforms[a](e,n);return n}return zo(e,t)||"void 0"}function Ro(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+No(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Yo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Bo(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+No(e,t)+","+t.onceId+++","+n+")":No(e,t)}return Ro(e,t)}function Bo(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var a=t.shift();return a.exp?"("+a.exp+")?"+o(a.block)+":"+e(t,n,r,i):""+o(a.block);function o(e){return r?r(e,n):e.once?Yo(e,n):No(e,n)}}(e.ifConditions.slice(),t,n,r)}function jo(e,t,n,r){var i=e.for,a=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+a+o+s+"){return "+(n||No)(e,t)+"})"}function Fo(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,a,o,s="directives:[",l=!1;for(r=0,i=n.length;r<i;r++){a=n[r],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'+a.name+'",rawName:"'+a.rawName+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?",arg:"+(a.isDynamicArg?a.arg:'"'+a.arg+'"'):"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Wo(e.attrs)+","),e.props&&(n+="domProps:"+Wo(e.props)+","),e.events&&(n+=Lo(e.events,!1)+","),e.nativeEvents&&(n+=Lo(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Ho(n)})),i=!!e.if;if(!r)for(var a=e.parent;a;){if(a.slotScope&&"_empty_"!==a.slotScope||a.for){r=!0;break}a.if&&(i=!0),a=a.parent}var o=Object.keys(t).map((function(e){return Uo(t[e],n)})).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Ao(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Wo(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ho(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ho))}function Uo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Bo(e,t,Uo,"null");if(e.for&&!e.forProcessed)return jo(e,t,Uo);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(zo(e,t)||"undefined")+":undefined":zo(e,t)||"undefined":No(e,t))+"}",a=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+a+"}"}function zo(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||No)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Vo(i)||i.ifConditions&&i.ifConditions.some((function(e){return Vo(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(a,t.maybeComponent):0,c=i||qo;return"["+a.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function Vo(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function qo(e,t){return 1===e.type?No(e,t):3===e.type&&e.isComment?function(e){return"_e("+JSON.stringify(e.text)+")"}(e):function(e){return"_v("+(2===e.type?e.expression:Go(JSON.stringify(e.text)))+")"}(e)}function Wo(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],a=Go(i.value);i.dynamic?n+=i.name+","+a+",":t+='"'+i.name+'":'+a+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Go(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Ko(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),O}}function Jo(e){var t=Object.create(null);return function(n,r,i){(r=L({},r)).warn;delete r.warn;var a=r.delimiters?String(r.delimiters)+n:n;if(t[a])return t[a];var o=e(n,r);var s={},l=[];return s.render=Ko(o.render,l),s.staticRenderFns=o.staticRenderFns.map((function(e){return Ko(e,l)})),t[a]=s}}var Xo,Qo,Zo=(Xo=function(e,t){var n=oo(e.trim(),t);!1!==t.optimize&&ko(n,t);var r=Ao(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],a=[];if(n)for(var o in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=L(Object.create(e.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(r[o]=n[o]);r.warn=function(e,t,n){(n?a:i).push(e)};var s=Xo(t.trim(),r);return s.errors=i,s.tips=a,s}return{compile:t,compileToFunctions:Jo(t)}})(_o),es=(Zo.compile,Zo.compileToFunctions);function ts(e){return(Qo=Qo||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Qo.innerHTML.indexOf("&#10;")>0}var ns=!!W&&ts(!1),rs=!!W&&ts(!0),is=k((function(e){var t=er(e);return t&&t.innerHTML})),as=Sn.prototype.$mount;Sn.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return as.call(this,e,t)},Sn.compile=es,t.default=Sn}.call(this,n(21),n(29).setImmediate)},function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(15),a=function(){var t=r.b.navigator.platform,n=r.b.navigator.userAgent,a={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!r.b.cordova&&!r.b.phonegap),phonegap:!(!r.b.cordova&&!r.b.phonegap),electron:!1,nwjs:!1},o=r.b.screen.width,s=r.b.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/),c=n.match(/(iPad).*OS\s([\d_]+)/),u=n.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=n.indexOf("MSIE ")>=0||n.indexOf("Trident/")>=0,p=n.indexOf("Edge/")>=0,f=n.indexOf("Gecko/")>=0&&n.indexOf("Firefox/")>=0,m="Win32"===t,v=n.toLowerCase().indexOf("electron")>=0,g="undefined"!=typeof nw&&void 0!==e&&void 0!==e.versions&&void 0!==e.versions.nw,y="MacIntel"===t;!c&&y&&i.a.touch&&(1024===o&&1366===s||834===o&&1194===s||834===o&&1112===s||768===o&&1024===s)&&(c=n.match(/(Version)\/([\d.]+)/),y=!1),a.ie=h,a.edge=p,a.firefox=f,l&&!m&&(a.os="android",a.osVersion=l[2],a.android=!0,a.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(c||d||u)&&(a.os="ios",a.ios=!0),d&&!u&&(a.osVersion=d[2].replace(/_/g,"."),a.iphone=!0),c&&(a.osVersion=c[2].replace(/_/g,"."),a.ipad=!0),u&&(a.osVersion=u[3]?u[3].replace(/_/g,"."):null,a.ipod=!0),a.ios&&a.osVersion&&n.indexOf("Version/")>=0&&"10"===a.osVersion.split(".")[0]&&(a.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),a.webView=!(!(d||c||u)||!n.match(/.*AppleWebKit(?!.*Safari)/i)&&!r.b.navigator.standalone)||r.b.matchMedia&&r.b.matchMedia("(display-mode: standalone)").matches,a.webview=a.webView,a.standalone=a.webView,a.desktop=!(a.ios||a.android)||v||g,a.desktop&&(a.electron=v,a.nwjs=g,a.macos=y,a.windows=m,a.macos&&(a.os="macos"),a.windows&&(a.os="windows")),a.pixelRatio=r.b.devicePixelRatio||1;return a.prefersColorScheme=function(){var e;return r.b.matchMedia&&r.b.matchMedia("(prefers-color-scheme: light)").matches&&(e="light"),r.b.matchMedia&&r.b.matchMedia("(prefers-color-scheme: dark)").matches&&(e="dark"),e},a}();t.a=a}).call(this,n(25))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(66);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";var r=n(0),i={touch:!!(r.b.navigator.maxTouchPoints>0||"ontouchstart"in r.b||r.b.DocumentTouch&&r.a instanceof r.b.DocumentTouch),pointerEvents:!!r.b.PointerEvent,observer:"MutationObserver"in r.b||"WebkitMutationObserver"in r.b,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});r.b.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in r.b,intersectionObserver:"IntersectionObserver"in r.b};t.a=i},function(e,t,n){var r=n(214),i=n(215),a=n(68),o=n(216);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,a=n(5),o=n(23),s=n(22),l=n(28),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),u=new o.ErrorFactory("app","Firebase",c),d=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),h=new l.Logger("@firebase/app"),p=function(){function e(e,t,n){var r,i,l=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=o.deepCopy(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return l}),"PUBLIC"));try{for(var c=a.__values(this.firebase_.INTERNAL.components.values()),u=c.next();!u.done;u=c.next()){var d=u.value;this._addComponent(d)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){h.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},e}();p.prototype.name&&p.prototype.options||p.prototype.delete||console.log("dc");var f=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!=typeof i||null===i){i={name:i}}var a=i;void 0===a.name&&(a.name="[DEFAULT]");var s=a.name;if("string"!=typeof s||!s)throw u.create("bad-app-name",{appName:String(s)});if(o.contains(t,s))throw u.create("duplicate-app",{appName:s});var l=new e(n,a,r);return t[s]=l,l},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=d[e])&&void 0!==r?r:e;n&&(i+="-"+n);var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var l=['Unable to register library "'+i+'" with version "'+t+'":'];return a&&l.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),a&&o&&l.push("and"),o&&l.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void h.warn(l.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:l.setLogLevel,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw u.create("invalid-log-argument",{appName:name});l.setUserLogHandler(e,t)},apps:null,SDK_VERSION:"7.14.1",INTERNAL:{registerComponent:c,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function i(e){if(e=e||"[DEFAULT]",!o.contains(t,e))throw u.create("no-app",{appName:e});return t[e]}function c(s){var l,c,d=s.name;if(n.has(d))return h.debug("There were multiple attempts to register component "+d+"."),"PUBLIC"===s.type?r[d]:null;if(n.set(d,s),"PUBLIC"===s.type){var p=function(e){if(void 0===e&&(e=i()),"function"!=typeof e[d])throw u.create("invalid-app-argument",{appName:d});return e[d]()};void 0!==s.serviceProps&&o.deepExtend(p,s.serviceProps),r[d]=p,e.prototype[d]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,d);return n.apply(this,s.multipleInstances?e:[])}}try{for(var f=a.__values(Object.keys(t)),m=f.next();!m.done;m=f.next()){var v=m.value;t[v]._addComponent(s)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}return"PUBLIC"===s.type?r[d]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),i.App=e,r}(p);return t.INTERNAL=a.__assign(a.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){o.deepExtend(t,e)},createSubscribe:o.createSubscribe,ErrorFactory:o.ErrorFactory,deepExtend:o.deepExtend}),t}(),m=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(o.isBrowser()&&void 0!==self.firebase){h.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&h.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var g=f.initializeApp;f.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.isNode()&&h.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),g.apply(void 0,e)};var y=f;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new m(e)}),"PRIVATE")),e.registerVersion("@firebase/app","0.6.2",t),e.registerVersion("fire-js","")}(y),t.default=y,t.firebase=y},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},function(e,t,n){"use strict";var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;i.registerVersion("firebase","7.14.2","app"),e.exports=i},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(23),a=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),o=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e="[DEFAULT]");var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.Deferred;this.instancesDeferred.set(t,n);try{var r=this.getOrInitializeService(t);r&&n.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=r.__assign({identifier:"[DEFAULT]",optional:!1},e),n=t.identifier,i=t.optional,a=this.normalizeInstanceIdentifier(n);try{var o=this.getOrInitializeService(a);if(!o){if(i)return null;throw Error("Service "+this.name+" is not available")}return o}catch(e){if(i)return null;throw e}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService("[DEFAULT]")}catch(e){}try{for(var i=r.__values(this.instancesDeferred.entries()),a=i.next();!a.done;a=i.next()){var o=r.__read(a.value,2),s=o[0],l=o[1],c=this.normalizeInstanceIdentifier(s);try{var u=this.getOrInitializeService(c);l.resolve(u)}catch(e){}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return"[DEFAULT]"===e?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e}();var s=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new o(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=a,t.ComponentContainer=s,t.Provider=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},a=function(e,t){if(!e)throw o(t)},o=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var a=e[i],o=i+1<e.length,s=o?e[i+1]:0,l=i+2<e.length,c=l?e[i+2]:0,u=a>>2,d=(3&a)<<4|s>>4,h=(15&s)<<2|c>>6,p=63&c;l||(p=64,o||(h=64)),r.push(n[u],n[d],n[h],n[p])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&(a=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{a=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var a=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,l=++i<e.length?n[e.charAt(i)]:64;if(++i,null==a||null==o||null==s||null==l)throw Error();var c=a<<2|o>>4;if(r.push(c),64!==s){var u=o<<4&240|s>>2;if(r.push(u),64!==l){var d=s<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return l.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function u(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=u(e[n],t[n]));return e}var d=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var p=function(e){function t(n,r){var i=e.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,f.prototype.create),i}return r.__extends(t,e),t}(Error),f=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t[0]||{},i=this.service+"/"+e,a=this.errors[e],o=a?m(a,r):"Error",s=this.serviceName+": "+o+" ("+i+").",l=new p(i,s),c=0,u=Object.keys(r);c<u.length;c++){var d=u[c];"_"!==d.slice(-1)&&(d in l&&console.warn('Overwriting FirebaseError base field "'+d+'" can cause unexpected behavior.'),l[d]=r[d])}return l},e}();function m(e,t){return e.replace(v,(function(e,n){var r=t[n];return null!=r?r.toString():"<"+n+"?>"}))}var v=/\{\$([^}]+)}/g;function g(e){return JSON.parse(e)}var y=function(e){var t={},n={},r={},i="";try{var a=e.split(".");t=g(c(a[0])||""),n=g(c(a[1])||""),i=a[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:i}};var b=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var a,o,s=this.chain_[0],l=this.chain_[1],c=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(a=u^l&(c^u),o=1518500249):(a=l^c^u,o=1859775393):r<60?(a=l&c|u&(l|c),o=2400959708):(a=l^c^u,o=3395469782);i=(s<<5|s>>>27)+a+d+o+n[r]&4294967295;d=u,u=c,c=4294967295&(l<<30|l>>>2),l=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,a=this.inbuf_;r<t;){if(0===a)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[a]=e.charCodeAt(r),++r,++a===this.blockSize){this.compress_(i),a=0;break}}else for(;r<t;)if(i[a]=e[r],++r,++a===this.blockSize){this.compress_(i),a=0;break}}this.inbuf_=a,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();var _=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=w),void 0===r.error&&(r.error=w),void 0===r.complete&&(r.complete=w);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),a},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function w(){}function k(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var i=e+" failed: ";return i+=r+" argument "}t.CONSTANTS=i,t.Deferred=d,t.ErrorFactory=f,t.FirebaseError=p,t.Sha1=b,t.assert=a,t.assertionError=o,t.async=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=l,t.base64Decode=c,t.base64Encode=function(e){var t=s(e);return l.encodeByteArray(t,!0)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new _(e,t);return n.subscribe.bind(n)},t.decode=y,t.deepCopy=function(e){return u(void 0,e)},t.deepExtend=u,t.errorPrefix=k,t.getUA=h,t.isAdmin=function(e){var t=y(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"object"==typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id},t.isElectron=function(){return h().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=h();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},t.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(e){return!1}},t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isUWP=function(){return h().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=y(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=y(e).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof t&&(t.hasOwnProperty("nbf")?r=t.nbf:t.hasOwnProperty("iat")&&(r=t.iat),i=t.hasOwnProperty("exp")?t.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},t.issuedAtTime=function(e){var t=y(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=g,t.map=function(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEach((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r<i.length;r++){var a=i[r];n(a[0],a[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var o=i-55296;r++,a(r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(o<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(k(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(k(e,t,r)+"must be a valid context object.")},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(k(e,t,r)+"must be a valid firebase namespace.")}}).call(this,n(21))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(14),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),t7ctx;t7ctx="undefined"!=typeof window?window:void 0!==global?global:void 0;var Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:function(e){return"function"==typeof e},escape:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},helperToSlices:function(e){var t,n,r,i=Template7Utils.quoteDoubleRexExp,a=Template7Utils.quoteSingleRexExp,o=e.replace(/[{}#}]/g,"").trim().split(" "),s=[];for(n=0;n<o.length;n+=1){var l=o[n],c=void 0,u=void 0;if(0===n)s.push(l);else if(0===l.indexOf('"')||0===l.indexOf("'"))if(c=0===l.indexOf('"')?i:a,u=0===l.indexOf('"')?'"':"'",2===l.match(c).length)s.push(l);else{for(t=0,r=n+1;r<o.length;r+=1)if(l+=" ".concat(o[r]),o[r].indexOf(u)>=0){t=r,s.push(l);break}t&&(n=t)}else if(l.indexOf("=")>0){var d=l.split("="),h=d[0],p=d[1];if(c||(c=0===p.indexOf('"')?i:a,u=0===p.indexOf('"')?'"':"'"),2!==p.match(c).length){for(t=0,r=n+1;r<o.length;r+=1)if(p+=" ".concat(o[r]),o[r].indexOf(u)>=0){t=r;break}t&&(n=t)}var f=[h,p.replace(c,"")];s.push(f)}else s.push(l)}return s},stringToBlocks:function(e){var t,n,r=[];if(!e)return[];var i=e.split(/({{[^{^}]*}})/);for(t=0;t<i.length;t+=1){var a=i[t];if(""!==a)if(a.indexOf("{{")<0)r.push({type:"plain",content:a});else{if(a.indexOf("{/")>=0)continue;if((a=a.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}")).indexOf("{#")<0&&a.indexOf(" ")<0&&a.indexOf("else")<0){r.push({type:"variable",contextName:a.replace(/[{}]/g,"")});continue}var o=Template7Utils.helperToSlices(a),s=o[0],l=">"===s,c=[],u={};for(n=1;n<o.length;n+=1){var d=o[n];Array.isArray(d)?u[d[0]]="false"!==d[1]&&d[1]:c.push(d)}if(a.indexOf("{#")>=0){var h="",p="",f=0,m=void 0,v=!1,g=!1,y=0;for(n=t+1;n<i.length;n+=1)if(i[n].indexOf("{{#")>=0&&(y+=1),i[n].indexOf("{{/")>=0&&(y-=1),i[n].indexOf("{{#".concat(s))>=0)h+=i[n],g&&(p+=i[n]),f+=1;else if(i[n].indexOf("{{/".concat(s))>=0){if(!(f>0)){m=n,v=!0;break}f-=1,h+=i[n],g&&(p+=i[n])}else i[n].indexOf("else")>=0&&0===y?g=!0:(g||(h+=i[n]),g&&(p+=i[n]));v&&(m&&(t=m),"raw"===s?r.push({type:"plain",content:h}):r.push({type:"helper",helperName:s,contextName:c,content:h,inverseContent:p,hash:u}))}else a.indexOf(" ")>0&&(l&&(s="_partial",c[0]&&(0===c[0].indexOf("[")?c[0]=c[0].replace(/[[\]]/g,""):c[0]='"'.concat(c[0].replace(/"|'/g,""),'"'))),r.push({type:"helper",helperName:s,contextName:c,hash:u}))}}return r},parseJsVariable:function(e,t,n){return e.split(/([+ \-*/^()&=|<>!%:?])/g).reduce((function(e,r){if(!r)return e;if(r.indexOf(t)<0)return e.push(r),e;if(!n)return e.push(JSON.stringify("")),e;var i=n;return r.indexOf("".concat(t,"."))>=0&&r.split("".concat(t,"."))[1].split(".").forEach((function(e){i=e in i?i[e]:void 0})),("string"==typeof i||Array.isArray(i)||i.constructor&&i.constructor===Object)&&(i=JSON.stringify(i)),void 0===i&&(i="undefined"),e.push(i),e}),[]).join("")},parseJsParents:function(e,t){return e.split(/([+ \-*^()&=|<>!%:?])/g).reduce((function(e,n){if(!n)return e;if(n.indexOf("../")<0)return e.push(n),e;if(!t||0===t.length)return e.push(JSON.stringify("")),e;var r=n.split("../").length-1,i=r>t.length?t[t.length-1]:t[r-1];return n.replace(/..\//g,"").split(".").forEach((function(e){i=void 0!==i[e]?i[e]:"undefined"})),!1===i||!0===i?(e.push(JSON.stringify(i)),e):null===i||"undefined"===i?(e.push(JSON.stringify("")),e):(e.push(JSON.stringify(i)),e)}),[]).join("")},getCompileVar:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data_1",a=t,o=0;0===e.indexOf("../")?(o=e.split("../").length-1,r=a.split("_")[1]-o,a="ctx_".concat(r>=1?r:1),n=e.split("../")[o].split(".")):0===e.indexOf("@global")?(a="Template7.global",n=e.split("@global.")[1].split(".")):0===e.indexOf("@root")?(a="root",n=e.split("@root.")[1].split(".")):n=e.split(".");for(var s=0;s<n.length;s+=1){var l=n[s];if(0===l.indexOf("@")){var c=i.split("_")[1];o>0&&(c=r),s>0?a+="[(data_".concat(c," && data_").concat(c,".").concat(l.replace("@",""),")]"):a="(data_".concat(c," && data_").concat(c,".").concat(l.replace("@",""),")")}else(Number.isFinite?Number.isFinite(l):Template7Context.isFinite(l))?a+="[".concat(l,"]"):"this"===l||l.indexOf("this.")>=0||l.indexOf("this[")>=0||l.indexOf("this(")>=0?a=l.replace("this",t):a+=".".concat(l)}return a},getCompiledArguments:function(e,t,n){for(var r=[],i=0;i<e.length;i+=1)/^['"]/.test(e[i])||/^(true|false|\d+)$/.test(e[i])?r.push(e[i]):r.push(Template7Utils.getCompileVar(e[i],t,n));return r.join(", ")}},Template7Helpers={_partial:function(e,t){var n=this,r=Template7Class.partials[e];return!r||r&&!r.template?"":(r.compiled||(r.compiled=new Template7Class(r.template).compile()),Object.keys(t.hash).forEach((function(e){n[e]=t.hash[e]})),r.compiled(n,t.data,t.root))},escape:function(e){if(null==e)return"";if("string"!=typeof e)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(e)},if:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.fn(this,t.data):t.inverse(this,t.data)},unless:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.inverse(this,t.data):t.fn(this,t.data)},each:function(e,t){var n=e,r="",i=0;if(Template7Utils.isFunction(n)&&(n=n.call(this)),Array.isArray(n)){for(t.hash.reverse&&(n=n.reverse()),i=0;i<n.length;i+=1)r+=t.fn(n[i],{first:0===i,last:i===n.length-1,index:i});t.hash.reverse&&(n=n.reverse())}else for(var a in n)i+=1,r+=t.fn(n[a],{key:a});return i>0?r:t.inverse(this)},with:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=e.call(this)),t.fn(n)},join:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n.join(t.hash.delimiter||t.hash.delimeter)},js:function js(expression,options){var data=options.data,func,execute=expression;return"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@".concat(e),"g"),n=new RegExp("@".concat(e),"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){".concat(execute,"})"):"(function(){return (".concat(execute,")})"),eval(func).call(this)},js_if:function js_if(expression,options){var data=options.data,func,execute=expression;"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@".concat(e),"g"),n=new RegExp("@".concat(e),"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){".concat(execute,"})"):"(function(){return (".concat(execute,")})");var condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;var Template7Options={},Template7Partials={},Template7Class=function(){function Template7Class(e){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Template7Class);this.template=e}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Template7Class,[{key:"compile",value:function compile(){var template=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.template,depth=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");var stringToBlocks=Template7Utils.stringToBlocks,getCompileVar=Template7Utils.getCompileVar,getCompiledArguments=Template7Utils.getCompiledArguments,blocks=stringToBlocks(template),ctx="ctx_".concat(depth),data="data_".concat(depth);if(0===blocks.length)return function(){return""};function getCompileFn(e,n){return e.content?t.compile(e.content,n):function(){return""}}function getCompileInverse(e,n){return e.inverseContent?t.compile(e.inverseContent,n):function(){return""}}var resultString="",i;for(resultString+=1===depth?"(function (".concat(ctx,", ").concat(data,", root) {\n"):"(function (".concat(ctx,", ").concat(data,") {\n"),1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){var block=blocks[i];if("plain"!==block.type){var variable=void 0,compiledArguments=void 0;if("variable"===block.type&&(variable=getCompileVar(block.contextName,ctx,data),resultString+="r += c(".concat(variable,", ").concat(ctx,");")),"helper"===block.type){var parents=void 0;if("ctx_1"!==ctx){for(var level=ctx.split("_")[1],parentsString="ctx_".concat(level-1),j=level-2;j>=1;j-=1)parentsString+=", ctx_".concat(j);parents="[".concat(parentsString,"]")}else parents="[".concat(ctx,"]");var dynamicHelper=void 0;if(0===block.helperName.indexOf("[")&&(block.helperName=getCompileVar(block.helperName.replace(/[[\]]/g,""),ctx,data),dynamicHelper=!0),dynamicHelper||block.helperName in Template7Helpers)compiledArguments=getCompiledArguments(block.contextName,ctx,data),resultString+="r += (Template7Helpers".concat(dynamicHelper?"[".concat(block.helperName,"]"):".".concat(block.helperName),").call(").concat(ctx,", ").concat(compiledArguments&&"".concat(compiledArguments,", "),"{hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});");else{if(block.contextName.length>0)throw new Error('Template7: Missing helper: "'.concat(block.helperName,'"'));variable=getCompileVar(block.helperName,ctx,data),resultString+="if (".concat(variable,") {"),resultString+="if (isArray(".concat(variable,")) {"),resultString+="r += (Template7Helpers.each).call(".concat(ctx,", ").concat(variable,", {hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});"),resultString+="}else {",resultString+="r += (Template7Helpers.with).call(".concat(ctx,", ").concat(variable,", {hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});"),resultString+="}}"}}}else resultString+="r +='".concat(block.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'"),"';")}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString}}],[{key:"options",get:function(){return Template7Options}},{key:"partials",get:function(){return Template7Partials}},{key:"helpers",get:function(){return Template7Helpers}}]),Template7Class}();function Template7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1];if(2===t.length){var a=new Template7Class(r),o=a.compile()(i);return a=null,o}return new Template7Class(r)}Template7.registerHelper=function(e,t){Template7Class.helpers[e]=t},Template7.unregisterHelper=function(e){Template7Class.helpers[e]=void 0,delete Template7Class.helpers[e]},Template7.registerPartial=function(e,t){Template7Class.partials[e]={template:t}},Template7.unregisterPartial=function(e){Template7Class.partials[e]&&(Template7Class.partials[e]=void 0,delete Template7Class.partials[e])},Template7.compile=function(e,t){return new Template7Class(e,t).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials,__webpack_exports__.a=Template7}).call(this,__webpack_require__(21))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var i,a=new Promise((function(a,o){n(i=e[t].apply(e,r)).then(a,o)}));return a.request=i,a}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new u(e,i.request)}))}function a(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function o(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function l(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})}))}function c(e){this._index=e}function u(e,t){this._cursor=e,this._request=t}function d(e){this._store=e}function h(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function p(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new h(n)}function f(e){this._db=e}a(c,"_index",["name","keyPath","multiEntry","unique"]),o(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),l(c,"_index",IDBIndex,["openCursor","openKeyCursor"]),a(u,"_cursor",["direction","key","primaryKey","value"]),o(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new u(e,t._request)}))}))})})),d.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},d.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},a(d,"_store",["name","keyPath","indexNames","autoIncrement"]),o(d,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),l(d,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(d,"_store",IDBObjectStore,["deleteIndex"]),h.prototype.objectStore=function(){return new d(this._tx.objectStore.apply(this._tx,arguments))},a(h,"_tx",["objectStoreNames","mode"]),s(h,"_tx",IDBTransaction,["abort"]),p.prototype.createObjectStore=function(){return new d(this._db.createObjectStore.apply(this._db,arguments))},a(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["deleteObjectStore","close"]),f.prototype.transaction=function(){return new h(this._db.transaction.apply(this._db,arguments))},a(f,"_db",["name","version","objectStoreNames"]),s(f,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(e){[d,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,a=i[e].apply(i,n.slice(0,-1));a.onsuccess=function(){r(a.result)}})}))})),[c,d].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(i){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=function(e,t,n){var i=r(indexedDB,"open",[e,t]),a=i.request;return a&&(a.onupgradeneeded=function(e){n&&n(new p(a.result,e.oldVersion,a.transaction))}),i.then((function(e){return new f(e)}))},e.deleteDb=function(e){return r(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var i;n.r(t),n.d(t,"LogLevel",(function(){return a})),n.d(t,"Logger",(function(){return d})),n.d(t,"setLogLevel",(function(){return h})),n.d(t,"setUserLogHandler",(function(){return p}));var a,o=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(a||(a={}));var s={debug:a.DEBUG,verbose:a.VERBOSE,info:a.INFO,warn:a.WARN,error:a.ERROR,silent:a.SILENT},l=a.INFO,c=((i={})[a.DEBUG]="log",i[a.VERBOSE]="log",i[a.INFO]="info",i[a.WARN]="warn",i[a.ERROR]="error",i),u=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var a=(new Date).toISOString(),o=c[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,r(["["+a+"]  "+e.name+":"],n))}},d=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=u,this._userLogHandler=null,o.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in a))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.DEBUG],e)),this._logHandler.apply(this,r([this,a.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.VERBOSE],e)),this._logHandler.apply(this,r([this,a.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.INFO],e)),this._logHandler.apply(this,r([this,a.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.WARN],e)),this._logHandler.apply(this,r([this,a.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.ERROR],e)),this._logHandler.apply(this,r([this,a.ERROR],e))},e}();function h(e){var t="string"==typeof e?s[e]:e;o.forEach((function(e){e.logLevel=t}))}function p(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=s[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=i.map((function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((function(e){return e})).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:a[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=o;r<i.length;r++){n(i[r])}}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(221),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(21))},function(e,t,n){var r=n(218),i=n(219),a=n(68),o=n(220);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()}},function(e,t,n){"use strict";var r=n(36),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var a=Object.create(n(33));a.inherits=n(27);var o=n(202),s=n(206);a.inherits(d,o);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";(function(e){var r=n(271),i=n(272),a=n(198);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return H(j(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function E(e,t,n,r){return H(F(t),e,n,r)}function T(e,t,n,r){return H(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).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}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function $(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=B(e[a]);return i}function L(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function A(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return a||A(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||A(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:j(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(21))},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(32).Buffer)},function(e,t,n){var r=n(66),i=n(217);function a(t,n,o){return i()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"registerInstallations",(function(){return G}));var r,i=n(17),a=n.n(i),o=n(22),s=n(5),l=n(23),c=n(26),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),d=new l.ErrorFactory("installations","Installations",u);function h(e){return e instanceof l.FirebaseError&&e.code.includes("request-failed")}function p(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function f(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function m(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,d.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function v(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function g(e,t){var n=t.refreshToken,r=v(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function y(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function b(e,t){var n=t.fid;return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t=p(e),r=v(e),i={fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:"w:0.4.8"},a={method:"POST",headers:r,body:JSON.stringify(i)},[4,y((function(){return fetch(t,a)}))];case 1:return(o=s.sent()).ok?[4,o.json()]:[3,3];case 2:return l=s.sent(),[2,{fid:l.fid||n,registrationStatus:2,refreshToken:l.refreshToken,authToken:f(l.authToken)}];case 3:return[4,m("Create Installation",o)];case 4:throw s.sent()}}))}))}function _(e){return new Promise((function(t){setTimeout(t,e)}))}var w=/^[cdef][\w-]{21}$/;function k(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return(t=e,btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return w.test(t)?t:""}catch(e){return""}}function E(e){return e.appName+"!"+e.appId}var T=new Map;function S(e,t){var n=E(e);C(n,t),function(e,t){var n=M();n&&n.postMessage({key:e,fid:t});$()}(n,t)}function C(e,t){var n,r,i=T.get(e);if(i)try{for(var a=Object(s.__values)(i),o=a.next();!o.done;o=a.next()){(0,o.value)(t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var x=null;function M(){return!x&&"BroadcastChannel"in self&&((x=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){C(e.data.key,e.data.fid)}),x}function $(){0===T.size&&x&&(x.close(),x=null)}var L="firebase-installations-store",P=null;function O(){return P||(P=Object(c.openDb)("firebase-installations-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(L)}}))),P}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=E(e),[4,O()];case 1:return r=s.sent(),i=r.transaction(L,"readwrite"),[4,(a=i.objectStore(L)).get(n)];case 2:return o=s.sent(),[4,a.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),o&&o.fid===t.fid||S(e,t.fid),[2,t]}}))}))}function I(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=E(e),[4,O()];case 1:return n=i.sent(),[4,(r=n.transaction(L,"readwrite")).objectStore(L).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function A(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=E(e),[4,O()];case 1:return r=s.sent(),i=r.transaction(L,"readwrite"),[4,(a=i.objectStore(L)).get(n)];case 2:return o=s.sent(),void 0!==(l=t(o))?[3,4]:[4,a.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,a.put(l,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!l||o&&o.fid===l.fid||S(e,l.fid),[2,l]}}))}))}function N(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,A(e,(function(n){var r=function(e){return B(e||{fid:k(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){var n=Promise.reject(d.create("app-offline"));return{installationEntry:t,registrationPromise:n}}var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,b(e,t)];case 1:return n=i.sent(),[2,D(e,n)];case 2:return h(r=i.sent())&&409===r.serverCode?[4,I(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,D(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}))}))}(e,r);return{installationEntry:r,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:R(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}))];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function R(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return[4,Y(e)];case 1:t=a.sent(),a.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,_(100)];case 3:return a.sent(),[4,Y(e)];case 4:return t=a.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,N(e)];case 6:return n=a.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}}))}))}function Y(e){return A(e,(function(e){if(!e)throw d.create("installation-not-found");return B(e)}))}function B(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function j(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,i,a,o,l,c,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return e=function(e,t){var n=t.fid;return p(e)+"/"+n+"/authTokens:generate"}(n,t),i=g(n,t),(a=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",a.getPlatformInfoString()),o={installation:{sdkVersion:"w:0.4.8"}},l={method:"POST",headers:i,body:JSON.stringify(o)},[4,y((function(){return fetch(e,l)}))];case 1:return(c=s.sent()).ok?[4,c.json()]:[3,3];case 2:return u=s.sent(),[2,f(u)];case 3:return[4,m("Generate Auth Token",c)];case 4:throw s.sent()}}))}))}function F(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return[4,A(e.appConfig,(function(r){if(!U(r))throw d.create("not-registered");var i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(i))return r;if(1===i.requestStatus)return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,H(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,_(100)];case 3:return i.sent(),[4,H(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,F(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw d.create("app-offline");var a=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(s.__assign)(Object(s.__assign)({},e),{authToken:t})}(r);return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,8]),[4,j(e,t)];case 1:return n=a.sent(),i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:n}),[4,D(e.appConfig,i)];case 2:return a.sent(),[2,n];case 3:return!h(r=a.sent())||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,I(e.appConfig)];case 4:return a.sent(),[3,7];case 5:return i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:{requestStatus:0}}),[4,D(e.appConfig,i)];case 6:a.sent(),a.label=7;case 7:throw r;case 8:return[2]}}))}))}(e,a),a}))];case 1:return r=a.sent(),n?[4,n]:[3,3];case 2:return i=a.sent(),[3,4];case 3:i=r.authToken,a.label=4;case 4:return[2,i]}}))}))}function H(e){return A(e,(function(e){if(!U(e))throw d.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+1e4<Date.now()?Object(s.__assign)(Object(s.__assign)({},e),{authToken:{requestStatus:0}}):e}))}function U(e){return void 0!==e&&2===e.registrationStatus}function z(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,N(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function V(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return n=function(e,t){var n=t.fid;return p(e)+"/"+n}(e,t),r=g(e,t),i={method:"DELETE",headers:r},[4,y((function(){return fetch(n,i)}))];case 1:return(a=o.sent()).ok?[3,3]:[4,m("Delete Installation",a)];case 2:throw o.sent();case 3:return[2]}}))}))}function q(e,t){var n=e.appConfig;return function(e,t){M();var n=E(e),r=T.get(n);r||(r=new Set,T.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=E(e),r=T.get(n);r&&(r.delete(t),0===r.size&&T.delete(n),$())}(n,t)}}function W(e){return d.create("missing-app-config-values",{valueName:e})}function G(e){e.INTERNAL.registerComponent(new o.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw W("App Configuration");if(!e.name)throw W("App Name");try{for(var r=Object(s.__values)(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var a=i.value;if(!e.options[a])throw W(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,N(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):F(e).catch(console.error),[2,n.fid]}}))}))}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,z(e.appConfig)];case 1:return n.sent(),[4,F(e,t)];case 2:return[2,n.sent().token]}}))}))}(n,e)},delete:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,A(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw d.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw d.create("app-offline");case 3:return[4,V(t,n)];case 4:return r.sent(),[4,I(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}))}))}(n)},onIdChange:function(e){return q(n,e)}}}),"PUBLIC")),e.registerVersion("@firebase/installations","0.4.8")}G(a.a)},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(25))},function(e,t,n){var r=n(32),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,r){var i;(function(){var a="Expected a function",o="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",f="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",x="[object Int8Array]",M="[object Int16Array]",$="[object Int32Array]",L="[object Uint8Array]",P="[object Uint16Array]",O="[object Uint32Array]",D=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,A=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,Y=RegExp(N.source),B=RegExp(R.source),j=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,W=RegExp(q.source),G=/^\s+|\s+$/g,K=/^\s+/,J=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fe="[\\ud800-\\udfff]",me="["+pe+"]",ve="["+he+"]",ge="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+pe+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Te="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+be+"|"+_e+")",xe="(?:"+Se+"|"+_e+")",Me="(?:"+ve+"|"+we+")"+"?",$e="[\\ufe0e\\ufe0f]?"+Me+("(?:\\u200d(?:"+[ke,Ee,Te].join("|")+")[\\ufe0e\\ufe0f]?"+Me+")*"),Le="(?:"+[ye,Ee,Te].join("|")+")"+$e,Pe="(?:"+[ke+ve+"?",ve,Ee,Te,fe].join("|")+")",Oe=RegExp("['’]","g"),De=RegExp(ve,"g"),Ie=RegExp(we+"(?="+we+")|"+Pe+$e,"g"),Ae=RegExp([Se+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Se,"$"].join("|")+")",xe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Se+Ce,"$"].join("|")+")",Se+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Le].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Be=-1,je={};je[S]=je[C]=je[x]=je[M]=je[$]=je[L]=je["[object Uint8ClampedArray]"]=je[P]=je[O]=!0,je[l]=je[c]=je[E]=je[u]=je[T]=je[d]=je[h]=je[p]=je[m]=je[v]=je[g]=je[y]=je[b]=je[_]=je[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[E]=Fe[T]=Fe[u]=Fe[d]=Fe[S]=Fe[C]=Fe[x]=Fe[M]=Fe[$]=Fe[m]=Fe[v]=Fe[g]=Fe[y]=Fe[b]=Fe[_]=Fe[w]=Fe[L]=Fe["[object Uint8ClampedArray]"]=Fe[P]=Fe[O]=!0,Fe[h]=Fe[p]=Fe[k]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,ze=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ve||qe||Function("return this")(),Ge=t&&!t.nodeType&&t,Ke=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ke&&Ke.exports===Ge,Xe=Je&&Ve.process,Qe=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,it=Qe&&Qe.isTypedArray;function at(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ht(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ft(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=St("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,Et,n)}function kt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Et(e){return e!=e}function Tt(e,t){var n=null==e?0:e.length;return n?Mt(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Ct(e){return function(t){return null==e?void 0:e[t]}}function xt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Mt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Lt(e){return function(t){return e(t)}}function Pt(e,t){return pt(t,(function(t){return e[t]}))}function Ot(e,t){return e.has(t)}function Dt(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function It(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function At(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Nt=Ct({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Rt=Ct({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Yt(e){return"\\"+He[e]}function Bt(e){return Ne.test(e)}function jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ft(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vt(e){return Bt(e)?function(e){var t=Ie.lastIndex=0;for(;Ie.test(e);)++t;return t}(e):yt(e)}function qt(e){return Bt(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.split("")}(e)}var Wt=Ct({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gt=function e(t){var n,r=(t=null==t?We:Gt.defaults(We.Object(),t,Gt.pick(We,Ye))).Array,i=t.Date,he=t.Error,pe=t.Function,fe=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,ye=t.TypeError,be=r.prototype,_e=pe.prototype,we=me.prototype,ke=t["__core-js_shared__"],Ee=_e.toString,Te=we.hasOwnProperty,Se=0,Ce=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",xe=we.toString,Me=Ee.call(me),$e=We._,Le=ve("^"+Ee.call(Te).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Je?t.Buffer:void 0,Ie=t.Symbol,Ne=t.Uint8Array,He=Pe?Pe.allocUnsafe:void 0,Ve=Ft(me.getPrototypeOf,me),qe=me.create,Ge=we.propertyIsEnumerable,Ke=be.splice,Xe=Ie?Ie.isConcatSpreadable:void 0,Qe=Ie?Ie.iterator:void 0,yt=Ie?Ie.toStringTag:void 0,Ct=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Jt=i&&i.now!==We.Date.now&&i.now,Xt=t.setTimeout!==We.setTimeout&&t.setTimeout,Qt=fe.ceil,Zt=fe.floor,en=me.getOwnPropertySymbols,tn=Pe?Pe.isBuffer:void 0,nn=t.isFinite,rn=be.join,an=Ft(me.keys,me),on=fe.max,sn=fe.min,ln=i.now,cn=t.parseInt,un=fe.random,dn=be.reverse,hn=Zi(t,"DataView"),pn=Zi(t,"Map"),fn=Zi(t,"Promise"),mn=Zi(t,"Set"),vn=Zi(t,"WeakMap"),gn=Zi(me,"create"),yn=vn&&new vn,bn={},_n=Ca(hn),wn=Ca(pn),kn=Ca(fn),En=Ca(mn),Tn=Ca(vn),Sn=Ie?Ie.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,xn=Sn?Sn.toString:void 0;function Mn(e){if(zo(e)&&!Do(e)&&!(e instanceof On)){if(e instanceof Pn)return e;if(Te.call(e,"__wrapped__"))return xa(e)}return new Pn(e)}var $n=function(){function e(){}return function(t){if(!Uo(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function On(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function An(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new An;++t<n;)this.add(e[t])}function Rn(e){var t=this.__data__=new In(e);this.size=t.size}function Yn(e,t){var n=Do(e),r=!n&&Oo(e),i=!n&&!r&&Ro(e),a=!n&&!r&&!i&&Qo(e),o=n||r||i||a,s=o?$t(e.length,ge):[],l=s.length;for(var c in e)!t&&!Te.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oa(c,l))||s.push(c);return s}function Bn(e){var t=e.length;return t?e[Nr(0,t-1)]:void 0}function jn(e,t){return Ea(gi(e),Kn(t,0,e.length))}function Fn(e){return Ea(gi(e))}function Hn(e,t,n){(void 0!==n&&!$o(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Un(e,t,n){var r=e[t];Te.call(e,t)&&$o(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function zn(e,t){for(var n=e.length;n--;)if($o(e[n][0],t))return n;return-1}function Vn(e,t,n,r){return er(e,(function(e,i,a){t(r,e,n(e),a)})),r}function qn(e,t){return e&&yi(t,_s(t),e)}function Wn(e,t,n){"__proto__"==t&&Ct?Ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var n=-1,i=t.length,a=r(i),o=null==e;++n<i;)a[n]=o?void 0:ms(e,t[n]);return a}function Kn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Jn(e,t,n,r,i,a){var o,s=1&t,c=2&t,h=4&t;if(n&&(o=i?n(e,r,i,a):n(e)),void 0!==o)return o;if(!Uo(e))return e;var k=Do(e);if(k){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,o)}else{var D=na(e),I=D==p||D==f;if(Ro(e))return di(e,s);if(D==g||D==l||I&&!i){if(o=c||I?{}:ia(e),!s)return c?function(e,t){return yi(e,ta(e),t)}(e,function(e,t){return e&&yi(t,ws(t),e)}(o,e)):function(e,t){return yi(e,ea(e),t)}(e,qn(o,e))}else{if(!Fe[D])return i?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case E:return hi(e);case u:case d:return new r(+e);case T:return function(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case C:case x:case M:case $:case L:case"[object Uint8ClampedArray]":case P:case O:return pi(e,n);case m:return new r;case v:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,Cn?me(Cn.call(i)):{}}var i}(e,D,s)}}a||(a=new Rn);var A=a.get(e);if(A)return A;a.set(e,o),Ko(e)?e.forEach((function(r){o.add(Jn(r,t,n,r,e,a))})):Vo(e)&&e.forEach((function(r,i){o.set(i,Jn(r,t,n,i,e,a))}));var N=k?void 0:(h?c?qi:Vi:c?ws:_s)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(o,i,Jn(r,t,n,i,e,a))})),o}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],a=t[i],o=e[i];if(void 0===o&&!(i in e)||!a(o))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ye(a);return ba((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,a=dt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=pt(t,Lt(n))),r?(a=ht,o=!1):t.length>=200&&(a=Ot,o=!1,t=new Nn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}Mn.templateSettings={escape:j,evaluate:F,interpolate:H,variable:"",imports:{_:Mn}},Mn.prototype=Ln.prototype,Mn.prototype.constructor=Mn,Pn.prototype=$n(Ln.prototype),Pn.prototype.constructor=Pn,On.prototype=$n(Ln.prototype),On.prototype.constructor=On,Dn.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},Dn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dn.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Te.call(t,e)?t[e]:void 0},Dn.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Te.call(t,e)},Dn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},In.prototype.clear=function(){this.__data__=[],this.size=0},In.prototype.delete=function(e){var t=this.__data__,n=zn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},In.prototype.get=function(e){var t=this.__data__,n=zn(t,e);return n<0?void 0:t[n][1]},In.prototype.has=function(e){return zn(this.__data__,e)>-1},In.prototype.set=function(e,t){var n=this.__data__,r=zn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},An.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(pn||In),string:new Dn}},An.prototype.delete=function(e){var t=Xi(this,e).delete(e);return this.size-=t?1:0,t},An.prototype.get=function(e){return Xi(this,e).get(e)},An.prototype.has=function(e){return Xi(this,e).has(e)},An.prototype.set=function(e,t){var n=Xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},Rn.prototype.clear=function(){this.__data__=new In,this.size=0},Rn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Rn.prototype.get=function(e){return this.__data__.get(e)},Rn.prototype.has=function(e){return this.__data__.has(e)},Rn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new An(r)}return n.set(e,t),this.size=n.size,this};var er=wi(lr),tr=wi(cr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!Xo(o):n(o,s)))var s=o,l=a}return l}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function ar(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=aa),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?ar(s,t-1,n,r,i):ft(i,s):r||(i[i.length]=s)}return i}var or=ki(),sr=ki(!0);function lr(e,t){return e&&or(e,t,_s)}function cr(e,t){return e&&sr(e,t,_s)}function ur(e,t){return ut(t,(function(t){return jo(e[t])}))}function dr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[Sa(t[n++])];return n&&n==r?e:void 0}function hr(e,t,n){var r=t(e);return Do(e)?r:ft(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yt&&yt in me(e)?function(e){var t=Te.call(e,yt),n=e[yt];try{e[yt]=void 0;var r=!0}catch(e){}var i=xe.call(e);r&&(t?e[yt]=n:delete e[yt]);return i}(e):function(e){return xe.call(e)}(e)}function fr(e,t){return e>t}function mr(e,t){return null!=e&&Te.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?ht:dt,a=e[0].length,o=e.length,s=o,l=r(o),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=pt(d,Lt(t))),c=sn(d.length,c),l[s]=!n&&(t||a>=120&&d.length>=120)?new Nn(s&&d):void 0}d=e[0];var h=-1,p=l[0];e:for(;++h<a&&u.length<c;){var f=d[h],m=t?t(f):f;if(f=n||0!==f?f:0,!(p?Ot(p,m):i(u,m,n))){for(s=o;--s;){var v=l[s];if(!(v?Ot(v,m):i(e[s],m,n)))continue e}p&&p.push(m),u.push(f)}}return u}function yr(e,t,n){var r=null==(e=ma(e,t=si(t,e)))?e:e[Sa(Ya(t))];return null==r?void 0:at(r,e,n)}function br(e){return zo(e)&&pr(e)==l}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!zo(e)&&!zo(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var o=Do(e),s=Do(t),p=o?c:na(e),f=s?c:na(t),k=(p=p==l?g:p)==g,S=(f=f==l?g:f)==g,C=p==f;if(C&&Ro(e)){if(!Ro(t))return!1;o=!0,k=!1}if(C&&!k)return a||(a=new Rn),o||Qo(e)?Ui(e,t,n,r,i,a):function(e,t,n,r,i,a,o){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!a(new Ne(e),new Ne(t)));case u:case d:case v:return $o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case m:var s=jt;case b:var l=1&r;if(s||(s=Ut),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var p=Ui(s(e),s(t),r,i,a,o);return o.delete(e),p;case w:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}(e,t,p,n,r,i,a);if(!(1&n)){var x=k&&Te.call(e,"__wrapped__"),M=S&&Te.call(t,"__wrapped__");if(x||M){var $=x?e.value():e,L=M?t.value():t;return a||(a=new Rn),i($,L,n,r,a)}}if(!C)return!1;return a||(a=new Rn),function(e,t,n,r,i,a){var o=1&n,s=Vi(e),l=s.length,c=Vi(t).length;if(l!=c&&!o)return!1;var u=l;for(;u--;){var d=s[u];if(!(o?d in t:Te.call(t,d)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var p=!0;a.set(e,t),a.set(t,e);var f=o;for(;++u<l;){d=s[u];var m=e[d],v=t[d];if(r)var g=o?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(void 0===g?m===v||i(m,v,n,r,a):g)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,i,a)}(e,t,n,r,_r,i))}function wr(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=me(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=n[i])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Rn;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?_r(u,c,3,r,d):h))return!1}}return!0}function kr(e){return!(!Uo(e)||(t=e,Ce&&Ce in t))&&(jo(e)?Le:oe).test(Ca(e));var t}function Er(e){return"function"==typeof e?e:null==e?qs:"object"==typeof e?Do(e)?$r(e[0],e[1]):Mr(e):tl(e)}function Tr(e){if(!da(e))return an(e);var t=[];for(var n in me(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Sr(e){if(!Uo(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=da(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}function Cr(e,t){return e<t}function xr(e,t){var n=-1,i=Ao(e)?r(e.length):[];return er(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function Mr(e){var t=Qi(e);return 1==t.length&&t[0][2]?pa(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function $r(e,t){return la(e)&&ha(t)?pa(Sa(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):_r(t,r,3)}}function Lr(e,t,n,r,i){e!==t&&or(t,(function(a,o){if(i||(i=new Rn),Uo(a))!function(e,t,n,r,i,a,o){var s=ga(e,n),l=ga(t,n),c=o.get(l);if(c)return void Hn(e,n,c);var u=a?a(s,l,n+"",e,t,o):void 0,d=void 0===u;if(d){var h=Do(l),p=!h&&Ro(l),f=!h&&!p&&Qo(l);u=l,h||p||f?Do(s)?u=s:No(s)?u=gi(s):p?(d=!1,u=di(l,!0)):f?(d=!1,u=pi(l,!0)):u=[]:Wo(l)||Oo(l)?(u=s,Oo(s)?u=os(s):Uo(s)&&!jo(s)||(u=ia(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l));Hn(e,n,u)}(e,t,o,n,Lr,r,i);else{var s=r?r(ga(e,o),a,o+"",e,t,i):void 0;void 0===s&&(s=a),Hn(e,o,s)}}),ws)}function Pr(e,t){var n=e.length;if(n)return oa(t+=t<0?n:0,n)?e[t]:void 0}function Or(e,t,n){var r=-1;return t=pt(t.length?t:[qs],Lt(Ji())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(xr(e,(function(e,n,i){return{criteria:pt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=fi(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Dr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=dr(e,o);n(s,o)&&Fr(a,si(o,e),s)}return a}function Ir(e,t,n,r){var i=r?kt:wt,a=-1,o=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=pt(e,Lt(n)));++a<o;)for(var l=0,c=t[a],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Ar(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;oa(i)?Ke.call(e,i,1):Zr(e,i)}}return e}function Nr(e,t){return e+Zt(un()*(t-e+1))}function Rr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return _a(fa(e,t,qs),e+"")}function Br(e){return Bn($s(e))}function jr(e,t){var n=$s(e);return Ea(n,Kn(t,0,n.length))}function Fr(e,t,n,r){if(!Uo(e))return e;for(var i=-1,a=(t=si(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=Sa(t[i]),c=n;if(i!=o){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=Uo(u)?u:oa(t[i+1])?[]:{})}Un(s,l,c),s=s[l]}return e}var Hr=yn?function(e,t){return yn.set(e,t),e}:qs,Ur=Ct?function(e,t){return Ct(e,"toString",{configurable:!0,enumerable:!1,value:Us(t),writable:!0})}:qs;function zr(e){return Ea($s(e))}function Vr(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}function qr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Wr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!Xo(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Gr(e,t,qs,n)}function Gr(e,t,n,r){t=n(t);for(var i=0,a=null==e?0:e.length,o=t!=t,s=null===t,l=Xo(t),c=void 0===t;i<a;){var u=Zt((i+a)/2),d=n(e[u]),h=void 0!==d,p=null===d,f=d==d,m=Xo(d);if(o)var v=r||f;else v=c?f&&(r||h):s?f&&h&&(r||!p):l?f&&h&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);v?i=u+1:a=u}return sn(a,4294967294)}function Kr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!$o(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function Jr(e){return"number"==typeof e?e:Xo(e)?NaN:+e}function Xr(e){if("string"==typeof e)return e;if(Do(e))return pt(e,Xr)+"";if(Xo(e))return xn?xn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,i=dt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=ht;else if(a>=200){var c=t?null:Ri(e);if(c)return Ut(c);o=!1,i=Ot,l=new Nn}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function Zr(e,t){return null==(e=ma(e,t=si(t,e)))||delete e[Sa(Ya(t))]}function ei(e,t,n,r){return Fr(e,t,n(dr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Vr(e,r?0:a,r?a+1:i):Vr(e,r?a+1:0,r?i:a)}function ni(e,t){var n=e;return n instanceof On&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,ft([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Qr(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],l=-1;++l<i;)l!=a&&(o[a]=Zn(o[a]||s,e[l],t,n));return Qr(ar(o,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function ai(e){return No(e)?e:[]}function oi(e){return"function"==typeof e?e:qs}function si(e,t){return Do(e)?e:la(e,t)?[e]:Ta(ss(e))}var li=Yr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Vr(e,t,n)}var ui=Kt||function(e){return We.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function hi(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function pi(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,a=Xo(e),o=void 0!==t,s=null===t,l=t==t,c=Xo(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}function mi(e,t,n,i){for(var a=-1,o=e.length,s=n.length,l=-1,c=t.length,u=on(o-s,0),d=r(c+u),h=!i;++l<c;)d[l]=t[l];for(;++a<s;)(h||a<o)&&(d[n[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}function vi(e,t,n,i){for(var a=-1,o=e.length,s=-1,l=n.length,c=-1,u=t.length,d=on(o-l,0),h=r(d+u),p=!i;++a<d;)h[a]=e[a];for(var f=a;++c<u;)h[f+c]=t[c];for(;++s<l;)(p||a<o)&&(h[f+n[s]]=e[a++]);return h}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function yi(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Wn(n,s,l):Un(n,s,l)}return n}function bi(e,t){return function(n,r){var i=Do(n)?ot:Vn,a=t?t():{};return i(n,e,Ji(r,2),a)}}function _i(e){return Yr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&sa(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Ao(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=me(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function ki(e){return function(t,n,r){for(var i=-1,a=me(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function Ei(e){return function(t){var n=Bt(t=ss(t))?qt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function Ti(e){return function(t){return mt(js(Os(t).replace(Oe,"")),e,"")}}function Si(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return Uo(r)?r:n}}function Ci(e){return function(t,n,r){var i=me(t);if(!Ao(t)){var a=Ji(n,3);t=_s(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}function xi(e){return zi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ye(a);if(i&&!s&&"wrapper"==Gi(o))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var l=Gi(o=t[r]),c="wrapper"==l?Wi(o):void 0;s=c&&ca(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Gi(c[0])].apply(s,c[3]):1==o.length&&ca(o)?s[l]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Do(r))return s.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function Mi(e,t,n,i,a,o,s,l,c,u){var d=128&t,h=1&t,p=2&t,f=24&t,m=512&t,v=p?void 0:Si(e);return function g(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(f)var w=Ki(g),k=At(b,w);if(i&&(b=mi(b,i,a,f)),o&&(b=vi(b,o,s,f)),y-=k,f&&y<u){var E=Ht(b,w);return Ai(e,t,Mi,g.placeholder,n,b,E,l,c,u-y)}var T=h?n:this,S=p?T[e]:e;return y=b.length,l?b=va(b,l):m&&y>1&&b.reverse(),d&&c<y&&(b.length=c),this&&this!==We&&this instanceof g&&(S=v||Si(S)),S.apply(T,b)}}function $i(e,t){return function(n,r){return function(e,t,n,r){return lr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Li(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Xr(n),r=Xr(r)):(n=Jr(n),r=Jr(r)),i=e(n,r)}return i}}function Pi(e){return zi((function(t){return t=pt(t,Lt(Ji())),Yr((function(n){var r=this;return e(t,(function(e){return at(e,r,n)}))}))}))}function Oi(e,t){var n=(t=void 0===t?" ":Xr(t)).length;if(n<2)return n?Rr(t,e):t;var r=Rr(t,Qt(e/Vt(t)));return Bt(t)?ci(qt(r),0,e).join(""):r.slice(0,e)}function Di(e){return function(t,n,i){return i&&"number"!=typeof i&&sa(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var a=-1,o=on(Qt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function Ii(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=as(t),n=as(n)),e(t,n)}}function Ai(e,t,n,r,i,a,o,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,l,c],h=n.apply(void 0,d);return ca(e)&&ya(h,d),h.placeholder=r,wa(h,e,t)}function Ni(e){var t=fe[e];return function(e,n){if(e=as(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ri=mn&&1/Ut(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Xs;function Yi(e){return function(t){var n=na(t);return n==m?jt(t):n==b?zt(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Bi(e,t,n,i,s,l,c,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ye(a);var h=i?i.length:0;if(h||(t&=-97,i=s=void 0),c=void 0===c?c:on(rs(c),0),u=void 0===u?u:rs(u),h-=s?s.length:0,64&t){var p=i,f=s;i=s=void 0}var m=d?void 0:Wi(e),v=[e,t,n,i,s,p,f,l,c,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?mi(c,l,t[4]):l,e[4]=c?Ht(e[3],o):t[4]}(l=t[5])&&(c=e[5],e[5]=c?vi(c,l,t[6]):l,e[6]=c?Ht(e[5],o):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:on(v[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=Si(e);return function a(){for(var o=arguments.length,s=r(o),l=o,c=Ki(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:Ht(s,c);if((o-=u.length)<n)return Ai(e,t,Mi,a.placeholder,void 0,s,u,void 0,void 0,n-o);var d=this&&this!==We&&this instanceof a?i:e;return at(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Mi.apply(void 0,v):function(e,t,n,i){var a=1&t,o=Si(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),h=this&&this!==We&&this instanceof t?o:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return at(h,a?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=Si(e);return function t(){var a=this&&this!==We&&this instanceof t?i:e;return a.apply(r?n:this,arguments)}}(e,t,n);return wa((m?Hr:ya)(g,v),e,t)}function ji(e,t,n,r){return void 0===e||$o(e,we[n])&&!Te.call(r,n)?t:e}function Fi(e,t,n,r,i,a){return Uo(e)&&Uo(t)&&(a.set(t,e),Lr(e,t,void 0,Fi,a),a.delete(t)),e}function Hi(e){return Wo(e)?void 0:e}function Ui(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,h=2&n?new Nn:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],f=t[u];if(r)var m=o?r(f,p,u,t,e,a):r(p,f,u,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!gt(t,(function(e,t){if(!Ot(h,t)&&(p===e||i(p,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(p!==f&&!i(p,f,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function zi(e){return _a(fa(e,void 0,Da),e+"")}function Vi(e){return hr(e,_s,ea)}function qi(e){return hr(e,ws,ta)}var Wi=yn?function(e){return yn.get(e)}:Xs;function Gi(e){for(var t=e.name+"",n=bn[t],r=Te.call(bn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function Ki(e){return(Te.call(Mn,"placeholder")?Mn:e).placeholder}function Ji(){var e=Mn.iteratee||Ws;return e=e===Ws?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Xi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Qi(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ha(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kr(n)?n:void 0}var ea=en?function(e){return null==e?[]:(e=me(e),ut(en(e),(function(t){return Ge.call(e,t)})))}:il,ta=en?function(e){for(var t=[];e;)ft(t,ea(e)),e=Ve(e);return t}:il,na=pr;function ra(e,t,n){for(var r=-1,i=(t=si(t,e)).length,a=!1;++r<i;){var o=Sa(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Ho(i)&&oa(o,i)&&(Do(e)||Oo(e))}function ia(e){return"function"!=typeof e.constructor||da(e)?{}:$n(Ve(e))}function aa(e){return Do(e)||Oo(e)||!!(Xe&&e&&e[Xe])}function oa(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function sa(e,t,n){if(!Uo(n))return!1;var r=typeof t;return!!("number"==r?Ao(n)&&oa(t,n.length):"string"==r&&t in n)&&$o(n[t],e)}function la(e,t){if(Do(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xo(e))||(z.test(e)||!U.test(e)||null!=t&&e in me(t))}function ca(e){var t=Gi(e),n=Mn[t];if("function"!=typeof n||!(t in On.prototype))return!1;if(e===n)return!0;var r=Wi(n);return!!r&&e===r[0]}(hn&&na(new hn(new ArrayBuffer(1)))!=T||pn&&na(new pn)!=m||fn&&"[object Promise]"!=na(fn.resolve())||mn&&na(new mn)!=b||vn&&na(new vn)!=k)&&(na=function(e){var t=pr(e),n=t==g?e.constructor:void 0,r=n?Ca(n):"";if(r)switch(r){case _n:return T;case wn:return m;case kn:return"[object Promise]";case En:return b;case Tn:return k}return t});var ua=ke?jo:al;function da(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ha(e){return e==e&&!Uo(e)}function pa(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function fa(e,t,n){return t=on(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=on(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),at(e,this,l)}}function ma(e,t){return t.length<2?e:dr(e,Vr(t,0,-1))}function va(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var a=t[r];e[r]=oa(a,n)?i[a]:void 0}return e}function ga(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ya=ka(Hr),ba=Xt||function(e,t){return We.setTimeout(e,t)},_a=ka(Ur);function wa(e,t,n){var r=t+"";return _a(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(Z):[]}(r),n)))}function ka(e){var t=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ea(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var a=Nr(n,i),o=e[a];e[a]=e[n],e[n]=o}return e.length=t,e}var Ta=function(e){var t=Eo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(V,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Sa(e){if("string"==typeof e||Xo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ca(e){if(null!=e){try{return Ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xa(e){if(e instanceof On)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ma=Yr((function(e,t){return No(e)?Zn(e,ar(t,1,No,!0)):[]})),$a=Yr((function(e,t){var n=Ya(t);return No(n)&&(n=void 0),No(e)?Zn(e,ar(t,1,No,!0),Ji(n,2)):[]})),La=Yr((function(e,t){var n=Ya(t);return No(n)&&(n=void 0),No(e)?Zn(e,ar(t,1,No,!0),void 0,n):[]}));function Pa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=on(r+i,0)),_t(e,Ji(t,3),i)}function Oa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?on(r+i,0):sn(i,r-1)),_t(e,Ji(t,3),i,!0)}function Da(e){return(null==e?0:e.length)?ar(e,1):[]}function Ia(e){return e&&e.length?e[0]:void 0}var Aa=Yr((function(e){var t=pt(e,ai);return t.length&&t[0]===e[0]?gr(t):[]})),Na=Yr((function(e){var t=Ya(e),n=pt(e,ai);return t===Ya(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Ji(t,2)):[]})),Ra=Yr((function(e){var t=Ya(e),n=pt(e,ai);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Ya(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ba=Yr(ja);function ja(e,t){return e&&e.length&&t&&t.length?Ir(e,t):e}var Fa=zi((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Ar(e,pt(t,(function(e){return oa(e,n)?+e:e})).sort(fi)),r}));function Ha(e){return null==e?e:dn.call(e)}var Ua=Yr((function(e){return Qr(ar(e,1,No,!0))})),za=Yr((function(e){var t=Ya(e);return No(t)&&(t=void 0),Qr(ar(e,1,No,!0),Ji(t,2))})),Va=Yr((function(e){var t=Ya(e);return t="function"==typeof t?t:void 0,Qr(ar(e,1,No,!0),void 0,t)}));function qa(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(No(e))return t=on(e.length,t),!0})),$t(t,(function(t){return pt(e,St(t))}))}function Wa(e,t){if(!e||!e.length)return[];var n=qa(e);return null==t?n:pt(n,(function(e){return at(t,void 0,e)}))}var Ga=Yr((function(e,t){return No(e)?Zn(e,t):[]})),Ka=Yr((function(e){return ri(ut(e,No))})),Ja=Yr((function(e){var t=Ya(e);return No(t)&&(t=void 0),ri(ut(e,No),Ji(t,2))})),Xa=Yr((function(e){var t=Ya(e);return t="function"==typeof t?t:void 0,ri(ut(e,No),void 0,t)})),Qa=Yr(qa);var Za=Yr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Wa(e,n)}));function eo(e){var t=Mn(e);return t.__chain__=!0,t}function to(e,t){return t(e)}var no=zi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof On&&oa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:to,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ro=bi((function(e,t,n){Te.call(e,n)?++e[n]:Wn(e,n,1)}));var io=Ci(Pa),ao=Ci(Oa);function oo(e,t){return(Do(e)?st:er)(e,Ji(t,3))}function so(e,t){return(Do(e)?lt:tr)(e,Ji(t,3))}var lo=bi((function(e,t,n){Te.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var co=Yr((function(e,t,n){var i=-1,a="function"==typeof t,o=Ao(e)?r(e.length):[];return er(e,(function(e){o[++i]=a?at(t,e,n):yr(e,t,n)})),o})),uo=bi((function(e,t,n){Wn(e,n,t)}));function ho(e,t){return(Do(e)?pt:xr)(e,Ji(t,3))}var po=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var fo=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&sa(e,t[0],t[1])?t=[]:n>2&&sa(t[0],t[1],t[2])&&(t=[t[0]]),Or(e,ar(t,1),[])})),mo=Jt||function(){return We.Date.now()};function vo(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function go(e,t){var n;if("function"!=typeof t)throw new ye(a);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var yo=Yr((function(e,t,n){var r=1;if(n.length){var i=Ht(n,Ki(yo));r|=32}return Bi(e,r,t,n,i)})),bo=Yr((function(e,t,n){var r=3;if(n.length){var i=Ht(n,Ki(bo));r|=32}return Bi(t,r,e,n,i)}));function _o(e,t,n){var r,i,o,s,l,c,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new ye(a);function f(t){var n=r,a=i;return r=i=void 0,u=t,s=e.apply(a,n)}function m(e){return u=e,l=ba(g,t),d?f(e):s}function v(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=o}function g(){var e=mo();if(v(e))return y(e);l=ba(g,function(e){var n=t-(e-c);return h?sn(n,o-(e-u)):n}(e))}function y(e){return l=void 0,p&&r?f(e):(r=i=void 0,s)}function b(){var e=mo(),n=v(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return m(c);if(h)return ui(l),l=ba(g,t),f(c)}return void 0===l&&(l=ba(g,t)),s}return t=as(t)||0,Uo(n)&&(d=!!n.leading,o=(h="maxWait"in n)?on(as(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==l&&ui(l),u=0,r=c=i=l=void 0},b.flush=function(){return void 0===l?s:y(mo())},b}var wo=Yr((function(e,t){return Qn(e,1,t)})),ko=Yr((function(e,t,n){return Qn(e,as(t)||0,n)}));function Eo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Eo.Cache||An),n}function To(e){if("function"!=typeof e)throw new ye(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Eo.Cache=An;var So=li((function(e,t){var n=(t=1==t.length&&Do(t[0])?pt(t[0],Lt(Ji())):pt(ar(t,1),Lt(Ji()))).length;return Yr((function(r){for(var i=-1,a=sn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return at(e,this,r)}))})),Co=Yr((function(e,t){return Bi(e,32,void 0,t,Ht(t,Ki(Co)))})),xo=Yr((function(e,t){return Bi(e,64,void 0,t,Ht(t,Ki(xo)))})),Mo=zi((function(e,t){return Bi(e,256,void 0,void 0,void 0,t)}));function $o(e,t){return e===t||e!=e&&t!=t}var Lo=Ii(fr),Po=Ii((function(e,t){return e>=t})),Oo=br(function(){return arguments}())?br:function(e){return zo(e)&&Te.call(e,"callee")&&!Ge.call(e,"callee")},Do=r.isArray,Io=Ze?Lt(Ze):function(e){return zo(e)&&pr(e)==E};function Ao(e){return null!=e&&Ho(e.length)&&!jo(e)}function No(e){return zo(e)&&Ao(e)}var Ro=tn||al,Yo=et?Lt(et):function(e){return zo(e)&&pr(e)==d};function Bo(e){if(!zo(e))return!1;var t=pr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wo(e)}function jo(e){if(!Uo(e))return!1;var t=pr(e);return t==p||t==f||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fo(e){return"number"==typeof e&&e==rs(e)}function Ho(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Uo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function zo(e){return null!=e&&"object"==typeof e}var Vo=tt?Lt(tt):function(e){return zo(e)&&na(e)==m};function qo(e){return"number"==typeof e||zo(e)&&pr(e)==v}function Wo(e){if(!zo(e)||pr(e)!=g)return!1;var t=Ve(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==Me}var Go=nt?Lt(nt):function(e){return zo(e)&&pr(e)==y};var Ko=rt?Lt(rt):function(e){return zo(e)&&na(e)==b};function Jo(e){return"string"==typeof e||!Do(e)&&zo(e)&&pr(e)==_}function Xo(e){return"symbol"==typeof e||zo(e)&&pr(e)==w}var Qo=it?Lt(it):function(e){return zo(e)&&Ho(e.length)&&!!je[pr(e)]};var Zo=Ii(Cr),es=Ii((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ao(e))return Jo(e)?qt(e):gi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=na(e);return(t==m?jt:t==b?Ut:$s)(e)}function ns(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Kn(rs(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Xo(e))return NaN;if(Uo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Uo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=ae.test(e);return n||se.test(e)?ze(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function os(e){return yi(e,ws(e))}function ss(e){return null==e?"":Xr(e)}var ls=_i((function(e,t){if(da(t)||Ao(t))yi(t,_s(t),e);else for(var n in t)Te.call(t,n)&&Un(e,n,t[n])})),cs=_i((function(e,t){yi(t,ws(t),e)})),us=_i((function(e,t,n,r){yi(t,ws(t),e,r)})),ds=_i((function(e,t,n,r){yi(t,_s(t),e,r)})),hs=zi(Gn);var ps=Yr((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&sa(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=ws(a),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(void 0===u||$o(u,we[c])&&!Te.call(e,c))&&(e[c]=a[c])}return e})),fs=Yr((function(e){return e.push(void 0,Fi),at(Es,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ra(e,t,vr)}var gs=$i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=xe.call(t)),e[t]=n}),Us(qs)),ys=$i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=xe.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),Ji),bs=Yr(yr);function _s(e){return Ao(e)?Yn(e):Tr(e)}function ws(e){return Ao(e)?Yn(e,!0):Sr(e)}var ks=_i((function(e,t,n){Lr(e,t,n)})),Es=_i((function(e,t,n,r){Lr(e,t,n,r)})),Ts=zi((function(e,t){var n={};if(null==e)return n;var r=!1;t=pt(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),yi(e,qi(e),n),r&&(n=Jn(n,7,Hi));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var Ss=zi((function(e,t){return null==e?{}:function(e,t){return Dr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=pt(qi(e),(function(e){return[e]}));return t=Ji(t),Dr(e,n,(function(e,n){return t(e,n[0])}))}var xs=Yi(_s),Ms=Yi(ws);function $s(e){return null==e?[]:Pt(e,_s(e))}var Ls=Ti((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Bs(ss(e).toLowerCase())}function Os(e){return(e=ss(e))&&e.replace(ce,Nt).replace(De,"")}var Ds=Ti((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=Ti((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),As=Ei("toLowerCase");var Ns=Ti((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Rs=Ti((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Ys=Ti((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ei("toUpperCase");function js(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Re.test(e)}(e)?function(e){return e.match(Ae)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Fs=Yr((function(e,t){try{return at(e,void 0,t)}catch(e){return Bo(e)?e:new he(e)}})),Hs=zi((function(e,t){return st(t,(function(t){t=Sa(t),Wn(e,t,yo(e[t],e))})),e}));function Us(e){return function(){return e}}var zs=xi(),Vs=xi(!0);function qs(e){return e}function Ws(e){return Er("function"==typeof e?e:Jn(e,1))}var Gs=Yr((function(e,t){return function(n){return yr(n,e,t)}})),Ks=Yr((function(e,t){return function(n){return yr(e,n,t)}}));function Js(e,t,n){var r=_s(t),i=ur(t,r);null!=n||Uo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,_s(t)));var a=!(Uo(n)&&"chain"in n&&!n.chain),o=jo(e);return st(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ft([this.value()],arguments))})})),e}function Xs(){}var Qs=Pi(pt),Zs=Pi(ct),el=Pi(gt);function tl(e){return la(e)?St(Sa(e)):function(e){return function(t){return dr(t,e)}}(e)}var nl=Di(),rl=Di(!0);function il(){return[]}function al(){return!1}var ol=Li((function(e,t){return e+t}),0),sl=Ni("ceil"),ll=Li((function(e,t){return e/t}),1),cl=Ni("floor");var ul,dl=Li((function(e,t){return e*t}),1),hl=Ni("round"),pl=Li((function(e,t){return e-t}),0);return Mn.after=function(e,t){if("function"!=typeof t)throw new ye(a);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=vo,Mn.assign=ls,Mn.assignIn=cs,Mn.assignInWith=us,Mn.assignWith=ds,Mn.at=hs,Mn.before=go,Mn.bind=yo,Mn.bindAll=Hs,Mn.bindKey=bo,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Do(e)?e:[e]},Mn.chain=eo,Mn.chunk=function(e,t,n){t=(n?sa(e,t,n):void 0===t)?1:on(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=r(Qt(i/t));a<i;)s[o++]=Vr(e,a,a+=t);return s},Mn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Mn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ft(Do(n)?gi(n):[n],ar(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=Ji();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new ye(a);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(at(i[0],this,n))return at(i[1],this,n)}}))},Mn.conforms=function(e){return function(e){var t=_s(e);return function(n){return Xn(n,e,t)}}(Jn(e,1))},Mn.constant=Us,Mn.countBy=ro,Mn.create=function(e,t){var n=$n(e);return null==t?n:qn(n,t)},Mn.curry=function e(t,n,r){var i=Bi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Mn.curryRight=function e(t,n,r){var i=Bi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Mn.debounce=_o,Mn.defaults=ps,Mn.defaultsDeep=fs,Mn.defer=wo,Mn.delay=ko,Mn.difference=Ma,Mn.differenceBy=$a,Mn.differenceWith=La,Mn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},Mn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!0):[]},Mn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&sa(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Do(e)?ut:ir)(e,Ji(t,3))},Mn.flatMap=function(e,t){return ar(ho(e,t),1)},Mn.flatMapDeep=function(e,t){return ar(ho(e,t),1/0)},Mn.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),ar(ho(e,t),n)},Mn.flatten=Da,Mn.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},Mn.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:rs(t)):[]},Mn.flip=function(e){return Bi(e,512)},Mn.flow=zs,Mn.flowRight=Vs,Mn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Mn.functions=function(e){return null==e?[]:ur(e,_s(e))},Mn.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},Mn.groupBy=lo,Mn.initial=function(e){return(null==e?0:e.length)?Vr(e,0,-1):[]},Mn.intersection=Aa,Mn.intersectionBy=Na,Mn.intersectionWith=Ra,Mn.invert=gs,Mn.invertBy=ys,Mn.invokeMap=co,Mn.iteratee=Ws,Mn.keyBy=uo,Mn.keys=_s,Mn.keysIn=ws,Mn.map=ho,Mn.mapKeys=function(e,t){var n={};return t=Ji(t,3),lr(e,(function(e,r,i){Wn(n,t(e,r,i),e)})),n},Mn.mapValues=function(e,t){var n={};return t=Ji(t,3),lr(e,(function(e,r,i){Wn(n,r,t(e,r,i))})),n},Mn.matches=function(e){return Mr(Jn(e,1))},Mn.matchesProperty=function(e,t){return $r(e,Jn(t,1))},Mn.memoize=Eo,Mn.merge=ks,Mn.mergeWith=Es,Mn.method=Gs,Mn.methodOf=Ks,Mn.mixin=Js,Mn.negate=To,Mn.nthArg=function(e){return e=rs(e),Yr((function(t){return Pr(t,e)}))},Mn.omit=Ts,Mn.omitBy=function(e,t){return Cs(e,To(Ji(t)))},Mn.once=function(e){return go(2,e)},Mn.orderBy=function(e,t,n,r){return null==e?[]:(Do(t)||(t=null==t?[]:[t]),Do(n=r?void 0:n)||(n=null==n?[]:[n]),Or(e,t,n))},Mn.over=Qs,Mn.overArgs=So,Mn.overEvery=Zs,Mn.overSome=el,Mn.partial=Co,Mn.partialRight=xo,Mn.partition=po,Mn.pick=Ss,Mn.pickBy=Cs,Mn.property=tl,Mn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Mn.pull=Ba,Mn.pullAll=ja,Mn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ir(e,t,Ji(n,2)):e},Mn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ir(e,t,void 0,n):e},Mn.pullAt=Fa,Mn.range=nl,Mn.rangeRight=rl,Mn.rearg=Mo,Mn.reject=function(e,t){return(Do(e)?ut:ir)(e,To(Ji(t,3)))},Mn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=Ji(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Ar(e,i),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new ye(a);return Yr(e,t=void 0===t?t:rs(t))},Mn.reverse=Ha,Mn.sampleSize=function(e,t,n){return t=(n?sa(e,t,n):void 0===t)?1:rs(t),(Do(e)?jn:jr)(e,t)},Mn.set=function(e,t,n){return null==e?e:Fr(e,t,n)},Mn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Fr(e,t,n,r)},Mn.shuffle=function(e){return(Do(e)?Fn:zr)(e)},Mn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&sa(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Vr(e,t,n)):[]},Mn.sortBy=fo,Mn.sortedUniq=function(e){return e&&e.length?Kr(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?Kr(e,Ji(t,2)):[]},Mn.split=function(e,t,n){return n&&"number"!=typeof n&&sa(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Go(t))&&!(t=Xr(t))&&Bt(e)?ci(qt(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new ye(a);return t=null==t?0:on(rs(t),0),Yr((function(n){var r=n[t],i=ci(n,0,t);return r&&ft(i,r),at(e,this,i)}))},Mn.tail=function(e){var t=null==e?0:e.length;return t?Vr(e,1,t):[]},Mn.take=function(e,t,n){return e&&e.length?Vr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Mn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(a);return Uo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})},Mn.thru=to,Mn.toArray=ts,Mn.toPairs=xs,Mn.toPairsIn=Ms,Mn.toPath=function(e){return Do(e)?pt(e,Sa):Xo(e)?[e]:gi(Ta(ss(e)))},Mn.toPlainObject=os,Mn.transform=function(e,t,n){var r=Do(e),i=r||Ro(e)||Qo(e);if(t=Ji(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Uo(e)&&jo(a)?$n(Ve(e)):{}}return(i?st:lr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Mn.unary=function(e){return vo(e,1)},Mn.union=Ua,Mn.unionBy=za,Mn.unionWith=Va,Mn.uniq=function(e){return e&&e.length?Qr(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?Qr(e,Ji(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Mn.unset=function(e,t){return null==e||Zr(e,t)},Mn.unzip=qa,Mn.unzipWith=Wa,Mn.update=function(e,t,n){return null==e?e:ei(e,t,oi(n))},Mn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,oi(n),r)},Mn.values=$s,Mn.valuesIn=function(e){return null==e?[]:Pt(e,ws(e))},Mn.without=Ga,Mn.words=js,Mn.wrap=function(e,t){return Co(oi(t),e)},Mn.xor=Ka,Mn.xorBy=Ja,Mn.xorWith=Xa,Mn.zip=Qa,Mn.zipObject=function(e,t){return ii(e||[],t||[],Un)},Mn.zipObjectDeep=function(e,t){return ii(e||[],t||[],Fr)},Mn.zipWith=Za,Mn.entries=xs,Mn.entriesIn=Ms,Mn.extend=cs,Mn.extendWith=us,Js(Mn,Mn),Mn.add=ol,Mn.attempt=Fs,Mn.camelCase=Ls,Mn.capitalize=Ps,Mn.ceil=sl,Mn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Kn(as(e),t,n)},Mn.clone=function(e){return Jn(e,4)},Mn.cloneDeep=function(e){return Jn(e,5)},Mn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},Mn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},Mn.conformsTo=function(e,t){return null==t||Xn(e,t,_s(t))},Mn.deburr=Os,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=ll,Mn.endsWith=function(e,t,n){e=ss(e),t=Xr(t);var r=e.length,i=n=void 0===n?r:Kn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=$o,Mn.escape=function(e){return(e=ss(e))&&B.test(e)?e.replace(R,Rt):e},Mn.escapeRegExp=function(e){return(e=ss(e))&&W.test(e)?e.replace(q,"\\$&"):e},Mn.every=function(e,t,n){var r=Do(e)?ct:nr;return n&&sa(e,t,n)&&(t=void 0),r(e,Ji(t,3))},Mn.find=io,Mn.findIndex=Pa,Mn.findKey=function(e,t){return bt(e,Ji(t,3),lr)},Mn.findLast=ao,Mn.findLastIndex=Oa,Mn.findLastKey=function(e,t){return bt(e,Ji(t,3),cr)},Mn.floor=cl,Mn.forEach=oo,Mn.forEachRight=so,Mn.forIn=function(e,t){return null==e?e:or(e,Ji(t,3),ws)},Mn.forInRight=function(e,t){return null==e?e:sr(e,Ji(t,3),ws)},Mn.forOwn=function(e,t){return e&&lr(e,Ji(t,3))},Mn.forOwnRight=function(e,t){return e&&cr(e,Ji(t,3))},Mn.get=ms,Mn.gt=Lo,Mn.gte=Po,Mn.has=function(e,t){return null!=e&&ra(e,t,mr)},Mn.hasIn=vs,Mn.head=Ia,Mn.identity=qs,Mn.includes=function(e,t,n,r){e=Ao(e)?e:$s(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=on(i+n,0)),Jo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=on(r+i,0)),wt(e,t,i)},Mn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<on(t,n)}(e=as(e),t,n)},Mn.invoke=bs,Mn.isArguments=Oo,Mn.isArray=Do,Mn.isArrayBuffer=Io,Mn.isArrayLike=Ao,Mn.isArrayLikeObject=No,Mn.isBoolean=function(e){return!0===e||!1===e||zo(e)&&pr(e)==u},Mn.isBuffer=Ro,Mn.isDate=Yo,Mn.isElement=function(e){return zo(e)&&1===e.nodeType&&!Wo(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(Ao(e)&&(Do(e)||"string"==typeof e||"function"==typeof e.splice||Ro(e)||Qo(e)||Oo(e)))return!e.length;var t=na(e);if(t==m||t==b)return!e.size;if(da(e))return!Tr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},Mn.isEqual=function(e,t){return _r(e,t)},Mn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Mn.isError=Bo,Mn.isFinite=function(e){return"number"==typeof e&&nn(e)},Mn.isFunction=jo,Mn.isInteger=Fo,Mn.isLength=Ho,Mn.isMap=Vo,Mn.isMatch=function(e,t){return e===t||wr(e,t,Qi(t))},Mn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Qi(t),n)},Mn.isNaN=function(e){return qo(e)&&e!=+e},Mn.isNative=function(e){if(ua(e))throw new he("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Mn.isNil=function(e){return null==e},Mn.isNull=function(e){return null===e},Mn.isNumber=qo,Mn.isObject=Uo,Mn.isObjectLike=zo,Mn.isPlainObject=Wo,Mn.isRegExp=Go,Mn.isSafeInteger=function(e){return Fo(e)&&e>=-9007199254740991&&e<=9007199254740991},Mn.isSet=Ko,Mn.isString=Jo,Mn.isSymbol=Xo,Mn.isTypedArray=Qo,Mn.isUndefined=function(e){return void 0===e},Mn.isWeakMap=function(e){return zo(e)&&na(e)==k},Mn.isWeakSet=function(e){return zo(e)&&"[object WeakSet]"==pr(e)},Mn.join=function(e,t){return null==e?"":rn.call(e,t)},Mn.kebabCase=Ds,Mn.last=Ya,Mn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?on(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,Et,i,!0)},Mn.lowerCase=Is,Mn.lowerFirst=As,Mn.lt=Zo,Mn.lte=es,Mn.max=function(e){return e&&e.length?rr(e,qs,fr):void 0},Mn.maxBy=function(e,t){return e&&e.length?rr(e,Ji(t,2),fr):void 0},Mn.mean=function(e){return Tt(e,qs)},Mn.meanBy=function(e,t){return Tt(e,Ji(t,2))},Mn.min=function(e){return e&&e.length?rr(e,qs,Cr):void 0},Mn.minBy=function(e,t){return e&&e.length?rr(e,Ji(t,2),Cr):void 0},Mn.stubArray=il,Mn.stubFalse=al,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=dl,Mn.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},Mn.noConflict=function(){return We._===this&&(We._=$e),this},Mn.noop=Xs,Mn.now=mo,Mn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Oi(Zt(i),n)+e+Oi(Qt(i),n)},Mn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;return t&&r<t?e+Oi(t-r,n):e},Mn.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;return t&&r<t?Oi(t-r,n)+e:e},Mn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(ss(e).replace(K,""),t||0)},Mn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&sa(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=un();return sn(e+i*(t-e+Ue("1e-"+((i+"").length-1))),t)}return Nr(e,t)},Mn.reduce=function(e,t,n){var r=Do(e)?mt:xt,i=arguments.length<3;return r(e,Ji(t,4),n,i,er)},Mn.reduceRight=function(e,t,n){var r=Do(e)?vt:xt,i=arguments.length<3;return r(e,Ji(t,4),n,i,tr)},Mn.repeat=function(e,t,n){return t=(n?sa(e,t,n):void 0===t)?1:rs(t),Rr(ss(e),t)},Mn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var a=null==e?void 0:e[Sa(t[r])];void 0===a&&(r=i,a=n),e=jo(a)?a.call(e):a}return e},Mn.round=hl,Mn.runInContext=e,Mn.sample=function(e){return(Do(e)?Bn:Br)(e)},Mn.size=function(e){if(null==e)return 0;if(Ao(e))return Jo(e)?Vt(e):e.length;var t=na(e);return t==m||t==b?e.size:Tr(e).length},Mn.snakeCase=Ns,Mn.some=function(e,t,n){var r=Do(e)?gt:qr;return n&&sa(e,t,n)&&(t=void 0),r(e,Ji(t,3))},Mn.sortedIndex=function(e,t){return Wr(e,t)},Mn.sortedIndexBy=function(e,t,n){return Gr(e,t,Ji(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&$o(e[r],t))return r}return-1},Mn.sortedLastIndex=function(e,t){return Wr(e,t,!0)},Mn.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Ji(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if($o(e[n],t))return n}return-1},Mn.startCase=Rs,Mn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Kn(rs(n),0,e.length),t=Xr(t),e.slice(n,n+t.length)==t},Mn.subtract=pl,Mn.sum=function(e){return e&&e.length?Mt(e,qs):0},Mn.sumBy=function(e,t){return e&&e.length?Mt(e,Ji(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&sa(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,ji);var i,a,o=us({},t.imports,r.imports,ji),s=_s(o),l=Pt(o,s),c=0,u=t.interpolate||ue,d="__p += '",h=ve((t.escape||ue).source+"|"+u.source+"|"+(u===H?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),p="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(c,l).replace(de,Yt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var f=Te.call(t,"variable")&&t.variable;f||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(D,""):d).replace(I,"$1").replace(A,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Fs((function(){return pe(s,p+"return "+d).apply(void 0,l)}));if(m.source=d,Bo(m))throw m;return m},Mn.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=$t(r,t=Ji(t));++n<e;)t(n);return i},Mn.toFinite=ns,Mn.toInteger=rs,Mn.toLength=is,Mn.toLower=function(e){return ss(e).toLowerCase()},Mn.toNumber=as,Mn.toSafeInteger=function(e){return e?Kn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},Mn.toString=ss,Mn.toUpper=function(e){return ss(e).toUpperCase()},Mn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Xr(t)))return e;var r=qt(e),i=qt(t);return ci(r,Dt(r,i),It(r,i)+1).join("")},Mn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(J,"");if(!e||!(t=Xr(t)))return e;var r=qt(e);return ci(r,0,It(r,qt(t))+1).join("")},Mn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Xr(t)))return e;var r=qt(e);return ci(r,Dt(r,qt(t))).join("")},Mn.truncate=function(e,t){var n=30,r="...";if(Uo(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Xr(t.omission):r}var a=(e=ss(e)).length;if(Bt(e)){var o=qt(e);a=o.length}if(n>=a)return e;var s=n-Vt(r);if(s<1)return r;var l=o?ci(o,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(o&&(s+=l.length-s),Go(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Xr(i),s)!=s){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},Mn.unescape=function(e){return(e=ss(e))&&Y.test(e)?e.replace(N,Wt):e},Mn.uniqueId=function(e){var t=++Se;return ss(e)+t},Mn.upperCase=Ys,Mn.upperFirst=Bs,Mn.each=oo,Mn.eachRight=so,Mn.first=Ia,Js(Mn,(ul={},lr(Mn,(function(e,t){Te.call(Mn.prototype,t)||(ul[t]=e)})),ul),{chain:!1}),Mn.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mn[e].placeholder=Mn})),st(["drop","take"],(function(e,t){On.prototype[e]=function(n){n=void 0===n?1:on(rs(n),0);var r=this.__filtered__&&!t?new On(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},On.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;On.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ji(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");On.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");On.prototype[e]=function(){return this.__filtered__?new On(this):this[n](1)}})),On.prototype.compact=function(){return this.filter(qs)},On.prototype.find=function(e){return this.filter(e).head()},On.prototype.findLast=function(e){return this.reverse().find(e)},On.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new On(this):this.map((function(n){return yr(n,e,t)}))})),On.prototype.reject=function(e){return this.filter(To(Ji(e)))},On.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new On(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},On.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},On.prototype.toArray=function(){return this.take(4294967295)},lr(On.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Mn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Mn.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,s=t instanceof On,l=o[0],c=s||Do(t),u=function(e){var t=i.apply(Mn,ft([e],o));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,f=s&&!h;if(!a&&c){t=f?t:new On(this);var m=e.apply(t,o);return m.__actions__.push({func:to,args:[u],thisArg:void 0}),new Pn(m,d)}return p&&f?e.apply(this,o):(m=this.thru(u),p?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Do(i)?i:[],e)}return this[n]((function(n){return t.apply(Do(n)?n:[],e)}))}})),lr(On.prototype,(function(e,t){var n=Mn[t];if(n){var r=n.name+"";Te.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Mi(void 0,2).name]=[{name:"wrapper",func:void 0}],On.prototype.clone=function(){var e=new On(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},On.prototype.reverse=function(){if(this.__filtered__){var e=new On(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},On.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Do(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=sn(t,e+o);break;case"takeRight":e=on(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,p=sn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return ni(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,v=e[c+=t];++m<d;){var g=u[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}f[h++]=v}return f},Mn.prototype.at=no,Mn.prototype.chain=function(){return eo(this)},Mn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Mn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=xa(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof On){var t=e;return this.__actions__.length&&(t=new On(this)),(t=t.reverse()).__actions__.push({func:to,args:[Ha],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Ha)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Qe&&(Mn.prototype[Qe]=function(){return this}),Mn}();We._=Gt,void 0===(i=function(){return Gt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(21),n(64)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";(function(e){var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function i(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},o={namespaced:{configurable:!0}};o.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){r(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,o);var s=function(e){this.register([],e,!1)};s.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},s.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},s.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},s.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&r(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},s.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},s.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var l;var c=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,c=this.commit;this.dispatch=function(e,t){return o.call(a,e,t)},this.commit=function(e,t,n){return c.call(a,e,t,n)},this.strict=i;var u=this._modules.root.state;f(this,u,[],this._modules.root),p(this,u),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},u={state:{configurable:!0}};function d(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;f(e,n,[],e._modules.root,!0),p(e,n,t)}function p(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};r(a,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:o}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),l.nextTick((function(){return i.$destroy()})))}function f(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=m(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=v(n,r,i),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=v(n,r,i),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),i}(e,o,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,o+n,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}(e,r,i,u)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,u)})),r.forEachChild((function(r,a){f(e,t,n.concat(a),r,i)}))}function m(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,n){return i(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){l&&e===l||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(e){0},c.prototype.commit=function(e,t,n){var r=this,i=v(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},c.prototype.dispatch=function(e,t){var n=this,r=v(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){0}return(s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a)).then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){0}return e}))}},c.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},c.prototype.subscribeAction=function(e,t){return d("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},c.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},c.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},c.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),f(this,this.state,e,this._modules.get(e),n.preserveState),p(this,this.state)},c.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},c.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},c.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},c.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(c.prototype,u);var y=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=T(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=T(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),_=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=T(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function k(e){return function(e){return Array.isArray(e)||i(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function E(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function T(e,t,n){return e._modulesNamespaceMap[n]}var S={Store:c,install:g,version:"3.3.0",mapState:y,mapMutations:b,mapGetters:_,mapActions:w,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:_.bind(null,e),mapMutations:b.bind(null,e),mapActions:w.bind(null,e)}}};t.a=S}).call(this,n(21))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(67);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,o){var s=r(t),l=i[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,a){var o="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":o=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return o=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(0,t,a[0],o):t?s+(r(e)?i(a)[1]:i(a)[0]):o?s+i(a)[1]:s+(r(e)?i(a)[1]:i(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(4))},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var a=void 0!==e.ArrayBuffer,o=a&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||a&&i("arraybuffer"),t.msstream=!t.fetch&&o&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n(21))},function(e,t,n){(function(e,r,i){var a=n(199),o=n(27),s=n(201),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,o,l){var c=this;if(s.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===o){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),a.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){c._destroyed?n():c.push(new r(e))?t():c._resumeFetch=t}))},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(u).catch((function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)}))}catch(e){}}var d=n.body.getReader();!function e(){d.read().then((function(t){if(!c._destroyed){if(t.done)return i.clearTimeout(l),void c.push(null);c.push(new r(t.value)),e()}})).catch((function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)}))}()}else{if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!a.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var p=h.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};o(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var a=n.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new r(a.length),s=0;s<a.length;s++)o[s]=255&a.charCodeAt(s);e.push(o)}else e.push(a,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;n=t.response,e.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==l.LOADING||!n)break;e.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==l.LOADING)break;var c=new i.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(25),n(32).Buffer,n(21))},function(e,t,n){(t=e.exports=n(202)).Stream=t,t.Readable=t,t.Writable=n(206),t.Duplex=n(31),t.Transform=n(208),t.PassThrough=n(277)},function(e,t,n){"use strict";(function(t,r){var i=n(36);e.exports=b;var a,o=n(198);b.ReadableState=y;n(203).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(204),c=n(37).Buffer,u=t.Uint8Array||function(){};var d=Object.create(n(33));d.inherits=n(27);var h=n(273),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var f,m=n(274),v=n(205);d.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(a=a||n(31));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(207).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(31),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,o)):(i||(a=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):S(e,o)):w(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),S(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return f||(f=n(207).StringDecoder),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(T,e):T(e))}function T(e){p("emit readable"),e.emit("readable"),$(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function x(e){p("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?L(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,p("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function c(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){p("onend"),e.end()}a.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,$(e))}}(n);e.on("drain",d);var h=!1;var f=!1;function m(t){p("ondata"),f=!1,!1!==e.write(t)||f||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==D(a.pipes,e))&&!h&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function v(t){p("onerror",t),b(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",g),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",y),e.emit("pipe",n),a.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=D(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):i.nextTick(x,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),this},b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=L}).call(this,n(21),n(25))},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,a,o,s;if(c(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)a(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(203).EventEmitter},function(e,t,n){"use strict";var r=n(36);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,i){var a=n(36);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;y.WritableState=g;var c=Object.create(n(33));c.inherits=n(27);var u={deprecate:n(276)},d=n(204),h=n(37).Buffer,p=i.Uint8Array||function(){};var f,m=n(205);function v(){}function g(e,t){s=s||n(31),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),T(e,t))}(e,n,r,t,i);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,o,i):_(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(s=s||n(31),!(f.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),T(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):f=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,a);return l}(this,i,s,e,t,n)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,T(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(25),n(29).setImmediate,n(21))},function(e,t,n){"use strict";var r=n(37).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var r=n(31),i=Object.create(n(33));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(27),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";var r=n(281),i=n(282);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(283);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(b);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===b.substr(0,2);!E||w&&v[w]||(b=b.substr(2),this.slashes=!0)}if(!v[w]&&(E||w&&!g[w])){for(var T,S,C=-1,x=0;x<h.length;x++){-1!==(M=b.indexOf(h[x]))&&(-1===C||M<C)&&(C=M)}-1!==(S=-1===C?b.lastIndexOf("@"):b.lastIndexOf("@",C))&&(T=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(T)),C=-1;for(x=0;x<d.length;x++){var M;-1!==(M=b.indexOf(d[x]))&&(-1===C||M<C)&&(C=M)}-1===C&&(C=b.length),this.host=b.slice(0,C),b=b.slice(C),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var L=this.hostname.split(/\./),P=(x=0,L.length);x<P;x++){var O=L[x];if(O&&!O.match(p)){for(var D="",I=0,A=O.length;I<A;I++)O.charCodeAt(I)>127?D+="x":D+=O[I];if(!D.match(p)){var N=L.slice(0,x),R=L.slice(x+1),Y=O.match(f);Y&&(N.push(Y[1]),R.unshift(Y[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+B,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])for(x=0,P=u.length;x<P;x++){var F=u[x];if(-1!==b.indexOf(F)){var H=encodeURIComponent(F);H===F&&(H=escape(F)),b=b.split(F).join(H)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var z=b.indexOf("?");if(-1!==z?(this.search=b.substr(z),this.query=b.substr(z+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,z)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var V=this.search||"";this.path=B+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+a+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var p=d[h];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,k=w,E=n.pathname&&n.pathname.split("/")||[],T=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(T&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),w=w&&(""===f[0]||""===E[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=f;else if(f.length)E||(E=[]),E.pop(),E=E.concat(f),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(T)n.hostname=n.host=E.shift(),($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=E.slice(-1)[0],C=(n.host||e.host||E.length>1)&&("."===S||".."===S)||""===S,x=0,M=E.length;M>=0;M--)"."===(S=E[M])?E.splice(M,1):".."===S?(E.splice(M,1),x++):x&&(E.splice(M,1),x--);if(!w&&!k)for(;x--;x)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),C&&"/"!==E.join("/").substr(-1)&&E.push("");var $,L=""===E[0]||E[0]&&"/"===E[0].charAt(0);T&&(n.hostname=n.host=L?"":E.length?E.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift()));return(w=w||n.host&&E.length)&&!L&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),a=n("8e60"),o=n("63b6"),s=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),p=n("5168"),f=n("ccb9"),m=n("6718"),v=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),_=n("241e"),w=n("36c3"),k=n("1bc3"),E=n("aebd"),T=n("a159"),S=n("0395"),C=n("bf0b"),x=n("9aa9"),M=n("d9f6"),$=n("c3a1"),L=C.f,P=M.f,O=S.f,D=r.Symbol,I=r.JSON,A=I&&I.stringify,N=p("_hidden"),R=p("toPrimitive"),Y={}.propertyIsEnumerable,B=u("symbol-registry"),j=u("symbols"),F=u("op-symbols"),H=Object.prototype,U="function"==typeof D&&!!x.f,z=r.QObject,V=!z||!z.prototype||!z.prototype.findChild,q=a&&c((function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(H,t);r&&delete H[t],P(e,t,n),r&&e!==H&&P(H,t,r)}:P,W=function(e){var t=j[e]=T(D.prototype);return t._k=e,t},G=U&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,n){return e===H&&K(F,t,n),y(e),t=k(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=T(n,{enumerable:E(0,!1)})):(i(e,N)||P(e,N,E(1,{})),e[N][t]=!0),q(e,t,n)):P(e,t,n)},J=function(e,t){y(e);for(var n,r=v(t=w(t)),i=0,a=r.length;a>i;)K(e,n=r[i++],t[n]);return e},X=function(e){var t=Y.call(this,e=k(e,!0));return!(this===H&&i(j,e)&&!i(F,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=w(e),t=k(t,!0),e!==H||!i(j,t)||i(F,t)){var n=L(e,t);return!n||!i(j,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=O(w(e)),r=[],a=0;n.length>a;)i(j,t=n[a++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=O(n?F:w(e)),a=[],o=0;r.length>o;)!i(j,t=r[o++])||n&&!i(H,t)||a.push(j[t]);return a};U||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(F,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),q(this,e,E(1,n))};return a&&V&&q(H,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),C.f=Q,M.f=K,n("6abf").f=S.f=Z,n("355d").f=X,x.f=ee,a&&!n("b8e3")&&s(H,"propertyIsEnumerable",X,!0),f.f=function(e){return W(p(e))}),o(o.G+o.W+o.F*!U,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=$(p.store),ie=0;re.length>ie;)m(re[ie++]);o(o.S+o.F*!U,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=D(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),o(o.S+o.F*!U,"Object",{create:function(e,t){return void 0===t?T(e):J(T(e),t)},defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ae=c((function(){x.f(1)}));o(o.S+o.F*ae,"Object",{getOwnPropertySymbols:function(e){return x.f(_(e))}}),I&&o(o.S+o.F*(!U||c((function(){var e=D();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,A.apply(I,r)}}),D.prototype[R]||n("35e8")(D.prototype,R,D.prototype.valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),a=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,m,v,g){l(n,t,f);var y,b,_,w=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",E="values"==m,T=!1,S=e.prototype,C=S[d]||S["@@iterator"]||m&&S[m],x=C||w(m),M=m?E?w("entries"):x:void 0,$="Array"==t&&S.entries||C;if($&&(_=u($.call(new e)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[d]||o(_,d,p)),E&&C&&"values"!==C.name&&(T=!0,x=function(){return C.call(this)}),r&&!g||!h&&!T&&S[d]||o(S,d,x),s[t]=x,s[k]=p,m)if(y={values:E?x:w("values"),keys:v?x:w("keys"),entries:M},g)for(b in y)b in S||a(S,b,y[b]);else i(i.P+i.F*(h||T),t,y);return y}},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),a=n("4bf8"),o=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,p=t||s;return function(t,s,f){for(var m,v,g=a(t),y=i(g),b=r(s,f,3),_=o(y.length),w=0,k=n?p(t,_):l?p(t,0):void 0;_>w;w++)if((h||w in y)&&(v=b(m=y[w],w,g),e))if(n)k[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},1173:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),a=n("6821"),o=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),a=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"20d6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(6),a="findIndex",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"24c5":function(e,t,n){"use strict";var r,i,a,o,s=n("b8e3"),l=n("e53d"),c=n("d864"),u=n("40c3"),d=n("63b6"),h=n("f772"),p=n("79aa"),f=n("1173"),m=n("a22a"),v=n("f201"),g=n("4178").set,y=n("aba2")(),b=n("656e"),_=n("4439"),w=n("bc13"),k=n("cd78"),E=l.TypeError,T=l.process,S=T&&T.versions,C=S&&S.v8||"",x=l.Promise,M="process"==u(T),$=function(){},L=i=b.f,P=!!function(){try{var e=x.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e($,$)};return(M||"function"==typeof PromiseRejectionEvent)&&e.then($)instanceof t&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},D=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o,s=i?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),o=!0)),n===t.promise?c(E("Promise-chain cycle")):(a=O(n))?a.call(n,l,c):l(n)):c(r)}catch(e){u&&!o&&u.exit(),c(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&I(e)}))}},I=function(e){g.call(l,(function(){var t,n,r,i=e._v,a=A(e);if(a&&(t=_((function(){M?T.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=M||A(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},A=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){g.call(l,(function(){var t;M?T.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),D(t,!0))},Y=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=O(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(Y,r,1),c(R,r,1))}catch(e){R.call(r,e)}})):(n._v=e,n._s=1,D(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};P||(x=function(e){f(this,x,"Promise","_h"),p(e),r.call(this);try{e(c(Y,this,1),c(R,this,1))}catch(e){R.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("5c95")(x.prototype,{then:function(e,t){var n=L(v(this,x));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=M?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=c(Y,e,1),this.reject=c(R,e,1)},b.f=L=function(e){return e===x||e===o?new a(e):i(e)}),d(d.G+d.W+d.F*!P,{Promise:x}),n("45f2")(x,"Promise"),n("4c95")("Promise"),o=n("584a").Promise,d(d.S+d.F*!P,"Promise",{reject:function(e){var t=L(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!P),"Promise",{resolve:function(e){return k(s&&this===o?x:this,e)}}),d(d.S+d.F*!(P&&n("4ee1")((function(e){x.all(e).catch($)}))),"Promise",{all:function(e){var t=this,n=L(t),r=n.resolve,i=n.reject,a=_((function(){var n=[],a=0,o=1;m(e,!1,(function(e){var s=a++,l=!1;n.push(void 0),o++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--o||r(n))}),i)})),--o||r(n)}));return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=L(t),r=n.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"252c":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=void 0;function i(){i.init||(i.init=!0,r=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",r&&this.$el.appendChild(t),t.data="about:blank",r||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};var o={version:"0.4.5",install:function(e){e.component("resize-observer",a),e.component("ResizeObserver",a)}},s=null;"undefined"!=typeof window?s=window.Vue:void 0!==e&&(s=e.Vue),s&&s.use(o)}).call(this,n("c8ba"))},"25eb":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),a=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||i(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),a=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l=function(){var e,t=n("230e")("iframe"),r=a.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),a=n("7726").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),a=n("9138"),o=n("35e8"),s=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,m,v,g){l(n,t,f);var y,b,_,w=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",E="values"==m,T=!1,S=e.prototype,C=S[d]||S["@@iterator"]||m&&S[m],x=C||w(m),M=m?E?w("entries"):x:void 0,$="Array"==t&&S.entries||C;if($&&(_=u($.call(new e)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[d]||o(_,d,p)),E&&C&&"values"!==C.name&&(T=!0,x=function(){return C.call(this)}),r&&!g||!h&&!T&&S[d]||o(S,d,x),s[t]=x,s[k]=p,m)if(y={values:E?x:w("values"),keys:v?x:w("keys"),entries:M},g)for(b in y)b in S||a(S,b,y[b]);else i(i.P+i.F*(h||T),t,y);return y}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},3314:function(e,t,n){"use strict";var r=n("8f82");n.n(r).a},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),a=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),a=n("e53d"),o=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},4178:function(e,t,n){var r,i,a,o=n("d864"),s=n("3024"),l=n("32fc"),c=n("1ec9"),u=n("e53d"),d=u.process,h=u.setImmediate,p=u.clearImmediate,f=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};h&&p||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},p=function(e){delete g[e]},"process"==n("6b4c")(d)?r=function(e){d.nextTick(o(y,e,1))}:m&&m.now?r=function(e){m.now(o(y,e,1))}:f?(a=(i=new f).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:h,clear:p}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),a=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),a=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),a=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),a=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),l=a.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},"481b":function(e,t){e.exports={}},4883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorNameToHex=t.isColorName=t.HexToRgba=t.ShadeColor=void 0;t.ShadeColor=function(e,t){var n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return n=parseInt(n*(100+t)/100),r=(r=parseInt(r*(100+t)/100))<255?r:255,i=(i=parseInt(i*(100+t)/100))<255?i:255,"#"+(1===(n=n<255?n:255).toString(16).length?"0"+n.toString(16):n.toString(16))+(1===r.toString(16).length?"0"+r.toString(16):r.toString(16))+(1===i.toString(16).length?"0"+i.toString(16):i.toString(16))};t.HexToRgba=function(e,t){var n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),n="0x".concat(n.join("")),"rgba(".concat([n>>16&255,n>>8&255,255&n].join(", "),", ").concat(t,")");throw new Error("Bad Hex")};t.isColorName=function(e){if(!e)throw new Error("isColorName: No color");return!e.includes("#")};t.colorNameToHex=function(e){if(!e)throw new Error("colorNameToHex: No color");var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return void 0!==t[e.toLowerCase()]&&t[e.toLowerCase()]}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),a=n("d9f6"),o=n("8e60"),s=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),a=n("e53d").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),a=n("5559")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),a=n("241e"),o=n("b0dc"),s=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,h=a(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(h);if(v&&(m=r(m,f>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(t=l(h.length));t>g;g++)c(n,g,v?m(h[g],g):h[g]);else for(d=y.call(h),n=new p;!(i=d.next()).done;g++)c(n,g,v?o(d,m,[i.value,g],!0):i.value);return n.length=g,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),a=n("0fc9");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),a=n("32e9"),o=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,h,p=e&l.F,f=e&l.G,m=e&l.S,v=e&l.P,g=e&l.B,y=f?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=f?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in f&&(n=t),n)d=((u=!p&&y&&void 0!==y[c])?y:n)[c],h=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&o(y,c,d,e&l.U),b[c]!=d&&a(b,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),a=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),a=n("d864"),o=n("35e8"),s=n("07e3"),l=function(e,t,n){var c,u,d,h=e&l.F,p=e&l.G,f=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=p?i:i[t]||(i[t]={}),b=y.prototype,_=p?r:f?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(u=!h&&_&&void 0!==_[c])&&s(y,c)||(d=u?_[c]:n[c],y[c]=p&&"function"!=typeof _[c]?n[c]:v&&u?a(d,r):g&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&o(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),a=n("b8e3"),o=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},6996:function(e,t,n){"use strict";var r=n("92cc");n.n(r).a},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),a=n("9e1e"),o=/./.toString,s=function(e){n("2aba")(RegExp.prototype,"toString",e,!0)};n("79e5")((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)})):"toString"!=o.name&&s((function(){return o.call(this)}))},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),a=n("481b"),o=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[o]&&i(d,o,c),a[c]=a.Array}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("find")},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(e,t,n){e.exports=n("696e")},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),a=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),a=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),a=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in i||n("9e1e")&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("454f")},"85fe":function(e,t,n){"use strict";(function(e){function r(e){return(r="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 i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return c}));var o=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}var t,n,r;return t=e,(n=[{key:"createObserver",value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){var r;if(this.options="function"==typeof(r=e)?{callback:r}:r,this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];if(i=c,!n||s!==r){var d=o.leading;"function"==typeof d&&(d=d(s,r)),n&&s===r||!d||e.apply(void 0,[s].concat(a(i))),r=s,clearTimeout(n),n=setTimeout((function(){e.apply(void 0,[s].concat(a(i))),n=0}),t)}};return s._clear=function(){clearTimeout(n),n=null},s}(this.callback,this.options.throttle,{leading:function(e){return"both"===i||"visible"===i&&e||"hidden"===i&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(e){var t=e[0];if(e.length>1){var r=e.find((function(e){return e.isIntersecting}));r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}}),this.options.intersection),t.context.$nextTick((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}])&&i(t.prototype,n),r&&i(t,r),e}();function s(e,t,n){var r=t.value;if(r)if("undefined"==typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new o(e,r,n);e._vue_visibilityState=i}}function l(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var c={bind:s,update:function(e,t,n){var i=t.value;if(!function e(t,n){if(t===n)return!0;if("object"===r(t)){for(var i in t)if(!e(t[i],n[i]))return!1;return!0}return!1}(i,t.oldValue)){var a=e._vue_visibilityState;i?a?a.createObserver(i,n):s(e,{value:i},n):l(e)}},unbind:l};var u={version:"0.4.6",install:function(e){e.directive("observe-visibility",c)}},d=null;"undefined"!=typeof window?d=window.Vue:void 0!==e&&(d=e.Vue),d&&d.use(u)}).call(this,n("c8ba"))},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),a=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},8875:function(e,t,n){var r,i,a;"undefined"!=typeof self&&self,i=[],void 0===(a="function"==typeof(r=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),i=r&&r[1]||!1,a=r&&r[2]||!1,o=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");i===o&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===i)return s[l];if(i===o&&s[l].innerHTML&&s[l].innerHTML.trim()===n)return s[l]}return null}}})?r.apply(t,i):r)||(e.exports=a)},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},"8bbf":function(e,t){e.exports=n(7)},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),a=n("6821"),o=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),l=o.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=l(r,t=c[d++]))&&s(u,t,n);return u}})},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),a=n("45f2"),o={};n("35e8")(o,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},"8f82":function(e,t,n){},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9138:function(e,t,n){e.exports=n("35e8")},"92cc":function(e,t,n){},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),a=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},"96cf":function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof u?t:u,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function h(){}var p={};p[i]=function(){return this};var f=Object.getPrototypeOf,m=f&&f(f(E([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=l(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,h[o]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[a]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new y(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(v),v[o]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),a=n("cb7c"),o=n("7726").Reflect;e.exports=o&&o.ownKeys||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),a=n("1691"),o=n("5559")("IE_PROTO"),s=function(){},l=function(){var e,t=n("1ec9")("iframe"),r=a.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),a=n("3702"),o=n("e4ae"),s=n("b447"),l=n("7cd6"),c={},u={};(t=e.exports=function(e,t,n,d,h){var p,f,m,v,g=h?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(a(g)){for(p=s(e.length);p>b;b++)if((v=t?y(o(f=e[b])[0],f[1]):y(e[b]))===c||v===u)return v}else for(m=g.call(e);!(f=m.next()).done;)if((v=i(m,y,f.value,t))===c||v===u)return v}).BREAK=c,t.RETURN=u},a745:function(e,t,n){e.exports=n("f410")},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),a=n("79e5"),o=n("fdef"),s="["+o+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var i={},s=a((function(){return!!o[e]()||"​…"!="​…"[e]()})),l=i[e]=s?t(d):o[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},d=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),a=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,l="process"==n("6b4c")(o);e.exports=function(){var e,t,n,c=function(){var r,i;for(l&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){o.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new a(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),a=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(p),m=0;m<f.length;m++){var v,g=f[m],y=p[g],b=o[g],_=b&&b.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,g),l[g]=h,y))for(v in r)_[v]||a(_,v,r[v],!0)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8ac:function(e,t,n){"use strict";var r=n("d052");n.n(r).a},b8e3:function(e,t){e.exports=!0},bc13:function(e,t,n){var r=n("e53d").navigator;e.exports=r&&r.userAgent||""},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),a=n("36c3"),o=n("1bc3"),s=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;t.f=n("8e60")?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,n){var r=n("6821"),i=n("9def"),a=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),a=n("481b"),o=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),a=n("2d95"),o=n("5dbc"),s=n("6a99"),l=n("79e5"),c=n("9093").f,u=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,p=r.Number,f=p,m=p.prototype,v="Number"==a(n("2aeb")(m)),g="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,a=(t=g?t.trim():h(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,l=t.slice(2),c=0,u=l.length;c<u;c++)if((o=l.charCodeAt(c))<48||o>i)return NaN;return parseInt(l,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(v?l((function(){m.valueOf.call(n)})):"Number"!=a(n))?o(new f(y(t)),n,p):y(t)};for(var b,_=n("9e1e")?c(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(f,b=_[w])&&!i(p,b)&&d(p,b,u(f,b));p.prototype=m,m.constructor=p,n("2aba")(r,"Number",p)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),a=n("84f2"),o=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),a=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),a=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},d052:function(e,t,n){},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d391:function(e){e.exports=JSON.parse('{"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"48123456","BH":"36001234","BI":"79561234","BJ":"90011234","BL":"690001234","BM":"4413701234","BN":"7123456","BO":"71234567","BQ":"3181234","BR":"11961234567","BS":"2423591234","BT":"17123456","BW":"71123456","BY":"294911911","BZ":"6221234","CA":"5062345678","CC":"412345678","CD":"991234567","CF":"70012345","CG":"061234567","CH":"781234567","CI":"01234567","CK":"71234","CL":"221234567","CM":"671234567","CN":"13123456789","CO":"3211234567","CR":"83123456","CU":"51234567","CV":"9911234","CW":"95181234","CX":"412345678","CY":"96123456","CZ":"601123456","DE":"15123456789","DJ":"77831001","DK":"32123456","DM":"7672251234","DO":"8092345678","DZ":"551234567","EC":"991234567","EE":"51234567","EG":"1001234567","EH":"650123456","ER":"7123456","ES":"612345678","ET":"911234567","FI":"412345678","FJ":"7012345","FK":"51234","FM":"3501234","FO":"211234","FR":"612345678","GA":"06031234","GB":"7400123456","GD":"4734031234","GE":"555123456","GF":"694201234","GG":"7781123456","GH":"231234567","GI":"57123456","GL":"221234","GM":"3012345","GN":"601123456","GP":"690001234","GQ":"222123456","GR":"6912345678","GT":"51234567","GU":"6713001234","GW":"955012345","GY":"6091234","HK":"51234567","HN":"91234567","HR":"921234567","HT":"34101234","HU":"201234567","ID":"812345678","IE":"850123456","IL":"502345678","IM":"7924123456","IN":"8123456789","IO":"3801234","IQ":"7912345678","IR":"9123456789","IS":"6111234","IT":"3123456789","JE":"7797712345","JM":"8762101234","JO":"790123456","JP":"9012345678","KE":"712123456","KG":"700123456","KH":"91234567","KI":"72001234","KM":"3212345","KN":"8697652917","KP":"1921234567","KR":"1020000000","KW":"50012345","KY":"3453231234","KZ":"7710009998","LA":"2023123456","LB":"71123456","LC":"7582845678","LI":"660234567","LK":"712345678","LR":"770123456","LS":"50123456","LT":"61234567","LU":"628123456","LV":"21234567","LY":"912345678","MA":"650123456","MC":"612345678","MD":"62112345","ME":"67622901","MF":"690001234","MG":"321234567","MH":"2351234","MK":"72345678","ML":"65012345","MM":"92123456","MN":"88123456","MO":"66123456","MP":"6702345678","MQ":"696201234","MR":"22123456","MS":"6644923456","MT":"96961234","MU":"52512345","MV":"7712345","MW":"991234567","MX":"12221234567","MY":"123456789","MZ":"821234567","NA":"811234567","NC":"751234","NE":"93123456","NF":"381234","NG":"8021234567","NI":"81234567","NL":"612345678","NO":"40612345","NP":"9841234567","NR":"5551234","NU":"8884012","NZ":"211234567","OM":"92123456","PA":"61234567","PE":"912345678","PF":"87123456","PG":"70123456","PH":"9051234567","PK":"3012345678","PL":"512345678","PM":"551234","PR":"7872345678","PS":"599123456","PT":"912345678","PW":"6201234","PY":"961456789","QA":"33123456","RE":"692123456","RO":"712034567","RS":"601234567","RU":"9123456789","RW":"720123456","SA":"512345678","SB":"7421234","SC":"2510123","SD":"911231234","SE":"701234567","SG":"81234567","SH":"51234","SI":"31234567","SJ":"41234567","SK":"912123456","SL":"25123456","SM":"66661212","SN":"701234567","SO":"71123456","SR":"7412345","SS":"977123456","ST":"9812345","SV":"70123456","SX":"7215205678","SY":"944567890","SZ":"76123456","TA":"8999","TC":"6492311234","TD":"63012345","TG":"90112345","TH":"812345678","TJ":"917123456","TK":"7290","TL":"77212345","TM":"66123456","TN":"20123456","TO":"7715123","TR":"5012345678","TT":"8682911234","TV":"901234","TW":"912345678","TZ":"621234567","UA":"501234567","UG":"712345678","US":"2015550123","UY":"94231234","UZ":"912345678","VA":"3123456789","VC":"7844301234","VE":"4121234567","VG":"2843001234","VI":"3406421234","VN":"912345678","VU":"5912345","WF":"501234","WS":"7212345","XK":"43201234","YE":"712345678","YT":"639012345","ZA":"711234567","ZM":"955123456","ZW":"712345678"}')},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),a=n("1bc3"),o=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e508:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r=n("252c"),i=n("85fe"),a=n("ed83"),o=n.n(a),s=(n("8bbf"),{itemsLimit:1e3});function l(e){return(l="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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}var f={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}}};function m(){return this.items.length&&"object"!==l(this.items[0])}var v=!1;if("undefined"!=typeof window){v=!1;try{var g=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,g)}catch(e){}}var y=0;function b(e,t,n,r,i,a,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),a?(d=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,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=d):t&&(d=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}const _={name:"RecycleScroller",components:{ResizeObserver:r.a},directives:{ObserveVisibility:i.a},props:d({},f,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(null===this.itemSize){for(var e,t={"-1":{accumulator:0}},n=this.items,r=this.sizeField,i=this.minItemSize,a=1e4,o=0,s=0,l=n.length;s<l;s++)(e=n[s][r]||i)<a&&(a=e),o+=e,t[s]={accumulator:o,size:e};return this.$_computedMinItemSize=a,t}return[]},simpleArray:m},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var e=this;this.applyPageMode(),this.$nextTick((function(){e.$_prerender=!1,e.updateVisibleItems(!0),e.ready=!0}))},beforeDestroy:function(){this.removeListeners()},methods:{addView:function(e,t,n,r,i){var a={item:n,position:0},o={id:y++,index:t,used:!0,key:r,type:i};return Object.defineProperty(a,"nr",{configurable:!1,value:o}),e.push(a),a},unuseView:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(e){var t=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame((function(){t.$_scrollDirty=!1,t.updateVisibleItems(!1,!0).continuous||(clearTimeout(t.$_refreshTimout),t.$_refreshTimout=setTimeout(t.handleScroll,100))})))},handleVisibilityChange:function(e,t){var n=this;this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame((function(){n.updateVisibleItems(!1)}))):this.$emit("hidden"))},updateVisibleItems:function(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.itemSize,l=this.$_computedMinItemSize,c=this.typeField,u=this.simpleArray?null:this.keyField,d=this.items,h=d.length,p=this.sizes,f=this.$_views,m=this.$_unusedViews,v=this.pool;if(h)if(this.$_prerender)t=0,n=this.prerender,r=null;else{var g=this.getScroll();if(a){var y=g.start-this.$_lastUpdateScrollPosition;if(y<0&&(y=-y),null===o&&y<l||y<o)return{continuous:!0}}this.$_lastUpdateScrollPosition=g.start;var b=this.buffer;if(g.start-=b,g.end+=b,null===o){var _,w=0,k=h-1,E=~~(h/2);do{_=E,p[E].accumulator<g.start?w=E:E<h-1&&p[E+1].accumulator>g.start&&(k=E),E=~~((w+k)/2)}while(E!==_);for(E<0&&(E=0),t=E,r=p[h-1].accumulator,n=E;n<h&&p[n].accumulator<g.end;n++);-1===n?n=d.length-1:++n>h&&(n=h)}else(t=~~(g.start/o))<0&&(t=0),(n=Math.ceil(g.end/o))>h&&(n=h),r=h*o}else t=n=r=0;n-t>s.itemsLimit&&this.itemsLimitError(),this.totalSize=r;var T=t<=this.$_endIndex&&n>=this.$_startIndex;if(this.$_continuous!==T){if(T){f.clear(),m.clear();for(var S=0,C=v.length;S<C;S++)i=v[S],this.unuseView(i)}this.$_continuous=T}else if(T)for(var x=0,M=v.length;x<M;x++)(i=v[x]).nr.used&&(e&&(i.nr.index=d.findIndex((function(e){return u?e[u]===i.item[u]:e===i.item}))),(-1===i.nr.index||i.nr.index<t||i.nr.index>=n)&&this.unuseView(i));for(var $,L,P,O,D=T?null:new Map,I=t;I<n;I++){$=d[I];var A=u?$[u]:$;if(null==A)throw new Error("Key is ".concat(A," on item (keyField is '").concat(u,"')"));i=f.get(A),o||p[I].size?(i?(i.nr.used=!0,i.item=$):(L=$[c],P=m.get(L),T?P&&P.length?((i=P.pop()).item=$,i.nr.used=!0,i.nr.index=I,i.nr.key=A,i.nr.type=L):i=this.addView(v,I,$,A,L):(O=D.get(L)||0,(!P||O>=P.length)&&(i=this.addView(v,I,$,A,L),this.unuseView(i,!0),P=m.get(L)),(i=P[O]).item=$,i.nr.used=!0,i.nr.index=I,i.nr.key=A,i.nr.type=L,D.set(L,O+1),O++),f.set(A,i)),i.position=null===o?p[I-1].accumulator:I*o):i&&this.unuseView(i)}return this.$_startIndex=t,this.$_endIndex=n,this.emitUpdate&&this.$emit("update",t,n),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:T}},getListenerTarget:function(){var e=o()(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll:function(){var e,t=this.$el,n="vertical"===this.direction;if(this.pageMode){var r=t.getBoundingClientRect(),i=n?r.height:r.width,a=-(n?r.top:r.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),e={start:a,end:a+o}}else e=n?{start:t.scrollTop,end:t.scrollTop+t.clientHeight}:{start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return e},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!v&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(e){var t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition:function(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError:function(){var e=this;throw setTimeout((function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",e.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")})),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort((function(e,t){return e.nr.index-t.nr.index}))}}};var w=function(){var e,t,n=this,r=n.$createElement,i=n._self._c||r;return i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:n.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(e={ready:n.ready,"page-mode":n.pageMode},e["direction-"+n.direction]=!0,e),on:{"&scroll":function(e){return n.handleScroll(e)}}},[n.$slots.before?i("div",{staticClass:"vue-recycle-scroller__slot"},[n._t("before")],2):n._e(),n._v(" "),i("div",{ref:"wrapper",staticClass:"vue-recycle-scroller__item-wrapper",style:(t={},t["vertical"===n.direction?"minHeight":"minWidth"]=n.totalSize+"px",t)},n._l(n.pool,(function(e){return i("div",{key:e.nr.id,staticClass:"vue-recycle-scroller__item-view",class:{hover:n.hoverKey===e.nr.key},style:n.ready?{transform:"translate"+("vertical"===n.direction?"Y":"X")+"("+e.position+"px)"}:null,on:{mouseenter:function(t){n.hoverKey=e.nr.key},mouseleave:function(e){n.hoverKey=null}}},[n._t("default",null,{item:e.item,index:e.nr.index,active:e.nr.used})],2)})),0),n._v(" "),n.$slots.after?i("div",{staticClass:"vue-recycle-scroller__slot"},[n._t("after")],2):n._e(),n._v(" "),i("ResizeObserver",{on:{notify:n.handleResize}})],1)};w._withStripped=!0;const k=b({render:w,staticRenderFns:[]},void 0,_,void 0,!1,void 0,!1,void 0,void 0,void 0);const E={name:"DynamicScroller",components:{RecycleScroller:k},inheritAttrs:!1,provide:function(){return"undefined"!=typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver((function(e){var t,n=p(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.target){var i=new CustomEvent("resize",{detail:{contentRect:r.contentRect}});r.target.dispatchEvent(i)}}}catch(e){n.e(e)}finally{n.f()}}))),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},props:d({},f,{minItemSize:{type:[Number,String],required:!0}}),data:function(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:m,itemsWithSize:function(){for(var e=[],t=this.items,n=this.keyField,r=this.simpleArray,i=this.vscrollData.sizes,a=0;a<t.length;a++){var o=t[a],s=r?a:o[n],l=i[s];void 0!==l||this.$_undefinedMap[s]||(l=0),e.push({item:o,id:s,size:l})}return e},listeners:function(){var e={};for(var t in this.$listeners)"resize"!==t&&"visible"!==t&&(e[t]=this.$listeners[t]);return e}},watch:{items:function(){this.forceUpdate(!1)},simpleArray:{handler:function(e){this.vscrollData.simpleArray=e},immediate:!0},direction:function(e){this.forceUpdate(!0)}},created:function(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated:function(){this.vscrollData.active=!0},deactivated:function(){this.vscrollData.active=!1},methods:{onScrollerResize:function(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible:function(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(e||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem:function(e){var t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this.simpleArray?null!=t?t:this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom:function(){var e=this;if(!this.$_scrollingToBottom){this.$_scrollingToBottom=!0;var t=this.$el;this.$nextTick((function(){t.scrollTop=t.scrollHeight+5e3;requestAnimationFrame((function n(){t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame((function(){t.scrollTop=t.scrollHeight+5e3,0===e.$_undefinedSizes?e.$_scrollingToBottom=!1:requestAnimationFrame(n)}))}))}))}}}};var T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("RecycleScroller",e._g(e._b({ref:"scroller",attrs:{items:e.itemsWithSize,"min-item-size":e.minItemSize,direction:e.direction,"key-field":"id"},on:{resize:e.onScrollerResize,visible:e.onScrollerVisible},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item,r=t.index,i=t.active;return[e._t("default",null,null,{item:n.item,index:r,active:i,itemWithSize:n})]}}],null,!0)},"RecycleScroller",e.$attrs,!1),e.listeners),[e._v(" "),n("template",{slot:"before"},[e._t("before")],2),e._v(" "),n("template",{slot:"after"},[e._t("after")],2)],2)};T._withStripped=!0;const S=b({render:T,staticRenderFns:[]},void 0,E,void 0,!1,void 0,!1,void 0,void 0,void 0);const C=b({},void 0,{name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id:function(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size:function(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive:function(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id:function(){this.size||this.onDataUpdate()},finalActive:function(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created:function(){var e=this;if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){var t=function(t){e.$watch((function(){return e.sizeDependencies[t]}),e.onDataUpdate)};for(var n in this.sizeDependencies)t(n);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted:function(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy:function(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize:function(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData:function(){var e=this;this.watchData?this.$_watchData=this.$watch("data",(function(){e.onDataUpdate()}),{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate:function(e){var t=e.force;!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!t&&this.size||this.updateSize()},onDataUpdate:function(){this.updateSize()},computeSize:function(e){var t=this;this.$nextTick((function(){if(t.id===e){var n=t.$el.offsetWidth,r=t.$el.offsetHeight;t.applySize(n,r)}t.$_pendingSizeUpdate=null}))},applySize:function(e,t){var n=Math.round("vertical"===this.vscrollParent.direction?t:e);n&&this.size!==n&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,n),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize:function(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize:function(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize:function(e){var t=e.detail.contentRect,n=t.width,r=t.height;this.applySize(n,r)}},render:function(e){return e(this.tag,this.$slots.default)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var x={version:"1.0.10",install:function(e,t){var n=Object.assign({},{installComponents:!0,componentsPrefix:""},t);for(var r in n)void 0!==n[r]&&(s[r]=n[r]);n.installComponents&&function(e,t){e.component("".concat(t,"recycle-scroller"),k),e.component("".concat(t,"RecycleScroller"),k),e.component("".concat(t,"dynamic-scroller"),S),e.component("".concat(t,"DynamicScroller"),S),e.component("".concat(t,"dynamic-scroller-item"),C),e.component("".concat(t,"DynamicScrollerItem"),C)}(e,n.componentsPrefix)}},M=null;"undefined"!=typeof window?M=window.Vue:void 0!==e&&(M=e.Vue),M&&M.use(x)}).call(this,n("c8ba"))},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),a=n("5b4e")(!1),o=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),a=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),a=n("07e3"),o=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!a(e,r)&&u(e),e}}},ed83:function(e,t,n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){var e=/(auto|scroll)/,t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(t){return e.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),i=0;i<n.length;i+=1)if(r(n[i]))return n[i];return document.scrollingElement||document.documentElement}}})?r.apply(t,i):r)||(e.exports=a)},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),a=n("5168")("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[a])?t:i(n)}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),a=n("d2c8"),o="".startsWith;r(r.P+r.F*n("5147")("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return o?o.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("96cf");var o=n("795b"),s=n.n(o);function l(e,t,n,r,i,a,o){try{var l=e[a](o),c=l.value}catch(e){return void n(e)}l.done?t(c):s.a.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new s.a((function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,"next",e)}function s(e){l(a,r,i,o,s,"throw",e)}o(void 0)}))}}var u=n("85f2"),d=n.n(u);function h(e,t,n){return t in e?d()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("c5f6"),n("6762"),n("2fdb");var p=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]],f=p.map((function(e){return e[1].toUpperCase()})),m=p.map((function(e){return{name:e[0],iso2:e[1].toUpperCase(),dialCode:e[2],priority:e[3]||0,areaCodes:e[4]||null}})),v=n("d391"),g={version:"1.7.51",country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","11\\d{8}|(?:[2368]|9\\d)\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7,8}|8[0-24-9]\\d{7})|(?:[2-478]\\d\\d|550)\\d{6}|1\\d{4,7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:[237]\\d{5}|8(?:51(?:0(?:0[03-9]|[1247]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\d|4[0-4]))|(?:[6-8]\\d{3}|9(?:[02-9]\\d\\d|1(?:[0-57-9]\\d|6[0135-9])))\\d))\\d{3}",[9]],["4(?:83[0-38]|93[01])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["16\\d{3,7}",[5,6,7,8,9]],["(?:14(?:5(?:1[0458]|[23][458])|71\\d)|550\\d\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365|46","1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","1\\d{9}|2\\d{7,8}|88\\d{4,6}|(?:8[0-79]|9\\d)\\d{4,8}|(?:[346]\\d|[57])\\d{5,8}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[2689]\\d|51)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]]],BL:["590","00","(?:590|69\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"],0,0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","90\\d{5}|(?:[2-6]|7\\d)\\d{6}",[7,8],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[2-6]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["7"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|(?:[148]\\d\\d|550)\\d{6}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[01])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["(?:14(?:5(?:1[0458]|[23][458])|71\\d)|550\\d\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["801"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[02-9]"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","(?:[26]\\d\\d|88)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:1\\d|3)\\d{9}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[14][2-9]|[25-8]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|(?:[148]\\d\\d|550)\\d{6}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[01])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["(?:14(?:5(?:1[0458]|[23][458])|71\\d)|550\\d\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[05]\\d{10}|[46][1-8]\\d{4,9})|49(?:[0-25]\\d|3[1-689]|7[1-7])\\d{4,8}|49(?:[0-2579]\\d|[34][1-9]|6[0-8])\\d{3}|49\\d{3,4}|(?:1|[368]\\d|4[0-8])\\d{3,13}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:51|[6-9]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","(?:[2-8]\\d|90)\\d{4}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],0,0,"0(11\\d{6}|6[256]\\d{6}|7[47]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[03])|(?:4[0-5]|5[0-26-9]|6[0-4]|[78][0-49])\\d\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:0\\d|20)))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","[256]\\d{7}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-689]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|69\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"],0,0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|(?:[2689]\\d|70)\\d{8}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[2357]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57-9]"],"06 $1"]],"06"],ID:["62","00[189]","(?:(?:007803|8\\d{4})\\d|[1-36])\\d{6}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([5-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1[4679]|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[279]|49|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3[3-8]|5[2-9])","[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3(?:[3-6][2-9]|7|8[2-5])|5[2-9])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]|80"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","(?:18|[2569]\\d\\d)\\d{5}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[25]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","33622\\d{5}|(?:7\\d|80)\\d{8}",[10],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[7-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[015-7]\\d|2[02-9]|3[0-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[016-8]|6[1267]|7[0-27]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","870\\d{5}|(?:[349]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[39]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|69\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"],0,0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","(?:28|[68]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","69\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[2-468]|5\\d)\\d{6}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","1\\d{6}(?:\\d{2})?|(?:[23]1|77|88|99)\\d{7}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","(?:1(?:[01467]\\d|[2359][1-9]|8[1-79])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[0289]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|5[89]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","9\\d{9}|[1-9]\\d{7}",[8,10],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["[1-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["83"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[0367]|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|8007\\d{4,5}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:[1-57-9]|6\\d)\\d{6}",[7,8],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["6"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","[48]\\d{7}|4\\d{5}",[6,8],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[48]"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","1800\\d{7,9}|(?:2|[89]\\d{4})\\d{5}|[2-8]\\d{8}|[28]\\d{7}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","[1-57-9]\\d{6}(?:\\d{2})?|6\\d{5,8}",[6,7,8,9],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-8]|9[145]"]]]],PM:["508","00","[45]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|(?:[2-46-9]\\d|5[0-8])\\d{4,7}",[6,7,8,9],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"]],"0"],QA:["974","00","[2-7]\\d{7}|(?:2\\d\\d|800)\\d{4}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[237]\\d|[89]0)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","[347-9]\\d{9}",[10],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[3489]"],"8 ($1)",1]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","8000\\d{3}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:01|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[4589]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[2378]\\d|66|99)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d{4}|93330)\\d{4}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[1-35-9]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","1\\d{8,9}|(?:[2-57]|[689]\\d)\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["14|[3-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|11|[3-579]\\d|88)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"],0,1],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"],0,1],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3"],0,1],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0457-9]|11"],0,1]],"8",0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|[5-8]\\d{3})\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-8]"]]]],TR:["90","00","(?:4|8\\d{5})\\d{6}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[0589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-28]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0179]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","(?:[249]\\d\\d|80)\\d{5}|9\\d{6}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[24]"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[6-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","(?:[23]\\d|[48]8)\\d{3}|(?:[57]\\d|90)\\d{5}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[579]"]]]],WF:["681","00","(?:[45]0|68|72|8\\d)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[4-8]"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-9]\\d{8}|8\\d{4,7}",[5,6,7,8,9],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"]],"0"],ZM:["260","00","(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,["[1-9]\\d{7}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"[35-7]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]\\d|7[6-8])\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|[19]\\d{7}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["3(?:37\\d\\d|42)\\d{4}|3(?:2|47|7\\d{3})\\d{7}",[7,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"51\\d{7}(?:\\d{3})?",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["51[013]0\\d{8}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}},y="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~");function b(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}var _=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=this.constructor.name,this.message=t,this.stack=new Error(t).stack};(_.prototype=Object.create(Error.prototype)).constructor=_;var w=function(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0};function k(e){return(k="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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),e}var C=function(){function e(t){E(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!O(e)||!O(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(O(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+D(e)+": "+e,"."))}(t),this.metadata=t,N.call(this,t)}return S(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new x(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new x(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){this.selectNumberingPlan(null,e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),x=function(){function e(t,n){E(this,e),this.globalMetadataObject=n,this.metadata=t,N.call(this,n.metadata)}return S(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new M(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&P(this.types(),e))return new L(P(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}]),e}(),M=function(){function e(t,n){E(this,e),this._format=t,this.metadata=n}return S(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return this.nationalPrefixFormattingRule()&&!$.test(this.nationalPrefixFormattingRule())}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),$=/^\(?\$1\)?$/,L=function(){function e(t,n){E(this,e),this.type=t,this.metadata=n}return S(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function P(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var O=function(e){return"object"===k(e)},D=function(e){return k(e)};function I(e,t){if((t=new C(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function A(e,t){return void 0!==t.countries[e]}function N(e){this.v1=!e.version,this.v2=void 0!==e.version&&-1===w(e.version,"1.2.0"),this.v3=void 0!==e.version&&-1===w(e.version,"1.7.35"),this.v4=void 0!==e.version}function R(e){var t="xx##~~";switch(e){case"parsing":t=",;"+t}return";ext=([0-90-9٠-٩۰-۹]{1,7})|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|["+t+"]|int|anexo|int)[:\\..]?[  \\t,-]*([0-90-9٠-٩۰-۹]{1,7})#?|[- ]+([0-90-9٠-٩۰-۹]{1,5})#"}var Y=R("parsing"),B=R("matching"),j=new RegExp("(?:"+Y+")$","i");var F=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^"+("[++]{0,1}(?:["+y+"]*[0-90-9٠-٩۰-۹]){3,}["+y+"0-90-9٠-٩۰-۹]*")+"(?:"+Y+")?$","i");function H(e){return e.length>=2&&F.test(e)}var U={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function z(e){return U[e]}function V(e){var t="",n=e.split(""),r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var o=z(a);o&&(t+=o)}return t}function q(e){var t="",n=e.split(""),r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}t+=W(a,t)||""}return t}function W(e,t){if("+"===e){if(t)return;return"+"}return z(e)}var G=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function K(e,t,n){if(t=t||{},e.country){(n=new C(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(b(r,n.nationalNumberPattern())){if(J(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?J(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i=0,a=G;i<a.length;i++){var o=a[i];if(J(r,o,n))return o}}}}function J(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&b(e,t.pattern()))}function X(e,t,n){var r=n.type(t),i=r&&r.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return X(e,"MOBILE",n);var a=n.type("MOBILE");a&&(i=function(e,t){var n=e.slice(),r=t,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var s=o;e.indexOf(s)<0&&n.push(s)}return n.sort((function(e,t){return e-t}))}(i,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var o=e.length,s=i[0];return s===o?"IS_POSSIBLE":s>o?"TOO_SHORT":i[i.length-1]<o?"TOO_LONG":i.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Q(e,t,n){if(void 0===t&&(t={}),n=new C(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.chooseCountryByCountryCallingCode(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.chooseCountryByCountryCallingCode(e.countryCallingCode)}}if(n.possibleLengths())return Z(e.phone||e.nationalNumber,void 0,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Z(e,t,n){switch(X(e,void 0,n)){case"IS_POSSIBLE":return!0;default:return!1}}var ee=new RegExp("([0-90-9٠-٩۰-۹])"),te=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ne(e,t,n,r){if(t){var i=new C(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(0===e.search(a)){var o=(e=e.slice(e.match(a)[0].length)).match(ee);if(!(o&&null!=o[1]&&o[1].length>0&&"0"===o[1]))return e}}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ie(e){var t,n,r=(e=e.replace(/^tel:/,"tel=")).split(";"),i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var s=re(o.split("="),2),l=s[0],c=s[1];switch(l){case"tel":t=c;break;case"ext":n=c;break;case"phone-context":"+"===c[0]&&(t=c+t)}}if(!H(t))return{};var u={number:t};return n&&(u.ext=n),u}function ae(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function oe(e,t,n){return t=t||{},n=new C(n),!!e.country&&(n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==K(e,t,n.metadata):b(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern()))}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function ce(e,t,n,r){if(n=n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){se(e,t,n[t])}))}return e}({},le,n):le,r=new C(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.chooseCountryByCountryCallingCode(e.countryCallingCode)}var i,a=r.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return o?fe(i=he(o,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return o?(i=he(o,"INTERNATIONAL",r,n),fe(i="+".concat(a," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(o);case"RFC3966":return ae({number:"+".concat(a).concat(o),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n){var r=new C(n);return r.selectNumberingPlan(e,t),te.test(r.IDDPrefix())?r.IDDPrefix():r.defaultIDDPrefix()}(n.fromCountry,void 0,r.metadata);if(!s)return;if(n.humanReadable){var l=a&&function(e,t,n,r,i){var a=new C(r.metadata);if(a.country(n),t===a.countryCallingCode())return"1"===t?t+" "+he(e,"NATIONAL",r,i):he(e,"NATIONAL",r,i)}(o,r.countryCallingCode(),n.fromCountry,r,n);return fe(i=l||"".concat(s," ").concat(a," ").concat(he(o,"INTERNATIONAL",r,n)),e.ext,r,n.formatExtension)}return"".concat(s).concat(a).concat(o);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}var ue=/(\$\d)/;function de(e,t,n,r,i){var a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(ue,t.nationalPrefixFormattingRule()):t.format());return n?pe(a):a}function he(e,t,n,r){var i=function(e,t){var n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var o=a;if(o.leadingDigitsPatterns().length>0){var s=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(0!==t.search(s))continue}if(b(t,o.pattern()))return o}}(n.formats(),e);return i?de(e,i,"INTERNATIONAL"===t,!i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!1!==r.nationalPrefix):e}function pe(e){return e.replace(new RegExp("[".concat(y,"]+"),"g")," ").trim()}function fe(e,t,n,r){return t?r(e,t,n):e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ge=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");var i=new C(r);ye(t)&&(this.country=t,i.country(t),t=i.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}var t,n,r;return t=e,(n=[{key:"isPossible",value:function(){return Q(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return oe(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new C(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return K(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return ce(this,e,t?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){me(e,t,n[t])}))}return e}({},t,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&ve(t.prototype,n),r&&ve(t,r),e}(),ye=function(e){return/^[A-Z]{2}$/.test(e)},be=new RegExp("[++0-90-9٠-٩۰-۹]"),_e=new RegExp("[^0-90-9٠-٩۰-۹]+$");function we(e,t,n){if(t=t||{},n=new C(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new _("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t){if(e&&0===e.indexOf("tel:"))return ie(e);var n=function(e,t){if(!e)return;if(e.length>250){if(t)throw new _("TOO_LONG");return}var n=e.search(be);if(n<0)return;return e.slice(n).replace(_e,"")}(e,t);if(!n||!H(n))return{};var r=function(e){var t=e.search(j);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(j),i=1;i<r.length;){if(null!=r[i]&&r[i].length>0)return{number:n,ext:r[i]};i++}}(n);if(r.ext)return r;return{number:n}}(e,t.v2),i=r.number,a=r.ext;if(!i){if(t.v2)throw new _("NOT_A_NUMBER");return{}}var o=function(e,t,n,r){var i,a=Se(q(e),t,n,r.metadata),o=a.countryCallingCode,s=a.number;if(o)r.chooseCountryByCountryCallingCode(o);else{if(!s||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),o=n||I(t,r.metadata)}if(!s)return{countryCallingCode:o};var l=Te(q(s),r),c=l.nationalNumber,u=l.carrierCode,d=Ee(o,c,r);d&&(i=d,"001"===d||r.country(i));return{country:i,countryCallingCode:o,nationalNumber:c,carrierCode:u}}(i,t.defaultCountry,t.defaultCallingCode,n),s=o.country,l=o.nationalNumber,c=o.countryCallingCode,u=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new _("INVALID_COUNTRY");return{}}if(!l||l.length<2){if(t.v2)throw new _("TOO_SHORT");return{}}if(l.length>17){if(t.v2)throw new _("TOO_LONG");return{}}if(t.v2){var d=new ge(c,l,n.metadata);return s&&(d.country=s),u&&(d.carrierCode=u),a&&(d.ext=a),d}var h=!!(t.extended?n.hasSelectedNumberingPlan():s)&&b(l,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:u,valid:h,possible:!!h||!(!0!==t.extended||!n.possibleLengths()||!Z(l,0,n)),phone:l,ext:a}:h?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(s,l,a):{}}function ke(e,t){if(e&&t.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o=r.length-1;if(t.nationalPrefixTransformRule()&&o>0&&r[o])i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&r[o]&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),o>0&&(a=r[1])}if(!b(e,t.nationalNumberPattern())||b(i,t.nationalNumberPattern()))return{nationalNumber:i,carrierCode:a}}}return{nationalNumber:e}}function Ee(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){n=new C(n);var r=e,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var s=o;if(n.country(s),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return s}else if(K({phone:t,country:s},void 0,n.metadata))return s}}(r,t,n.metadata)}function Te(e,t){var n=ke(q(e),t),r=n.nationalNumber,i=n.carrierCode;if(r.length!==e.length+(i?i.length:0)&&t.possibleLengths())switch(X(r,void 0,t)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:e}}return{nationalNumber:r,carrierCode:i}}function Se(e,t,n,r){if(!e)return{};if("+"!==e[0]){var i=ne(e,t,n,r);if(!i||i===e){if(t||n){var a=Ce(e,t,n,r),o=a.countryCallingCode,s=a.number;if(o)return{countryCallingCode:o,number:s}}return{number:e}}e="+"+i}if("0"===e[1])return{};r=new C(r);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(void 0,c),{countryCallingCode:c,number:e.slice(l)};l++}return{}}function Ce(e,t,n,r){var i=t?I(t,r):n;if(0===e.indexOf(i)){(r=new C(r)).selectNumberingPlan(t,n);var a=e.slice(i.length),o=ke(a,r).nationalNumber,s=ke(e,r).nationalNumber;if(!b(s,r.nationalNumberPattern())&&b(o,r.nationalNumberPattern())||"TOO_LONG"===X(s,void 0,r))return{countryCallingCode:i,number:a}}return{number:e}}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e,t,n){return we(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xe(e,t,n[t])}))}return e}({},t,{v2:!0}),n)}function $e(e){return($e="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 Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Oe(e){var t,n,r,i=Pe(Array.prototype.slice.call(e),4),a=i[0],o=i[1],s=i[2],l=i[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,o&&"string"!=typeof o){if(!De(o))throw new Error("Invalid second argument: ".concat(o));s?(n=o,r=s):r=o}else l?(n=s,r=l):(n=void 0,r=s),o&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Le(e,t,n[t])}))}return e}({defaultCountry:o},n));return{text:t,options:n,metadata:r}}var De=function(e){return"object"===$e(e)};function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t,n){t&&t.defaultCountry&&!A(t.defaultCountry,n)&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ie(e,t,n[t])}))}return e}({},t,{defaultCountry:void 0}));try{return Me(e,t,n)}catch(e){if(!(e instanceof _))throw e}}function Ne(){var e=Oe(arguments),t=e.text,n=e.options,r=e.metadata;return Ae(t,n,r)}function Re(e,t,n){if(t[e])return new ge(e,t[e],n)}function Ye(e,t){if(e<0||t<=0||t<e)throw new TypeError;return"{".concat(e,",").concat(t,"}")}function Be(e,t){var n=t.search(e);return n>=0?t.slice(0,n):t}var je=/[\\/] *x/;function Fe(e){return Be(je,e)}var He=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,Ue=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,ze=/^:[0-5]\d/;function Ve(e,t,n){if(He.test(e))return!1;if(Ue.test(e)){var r=n.slice(t+e.length);if(ze.test(r))return!1}return!0}var qe="   ᠎ - \u2028\u2029   ",We="[".concat(qe,"]"),Ge="[^".concat(qe,"]"),Ke="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),Je="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Xe="[".concat(Je,"]"),Qe=new RegExp(Xe),Ze="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),et=new RegExp(Ze),tt="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),nt=new RegExp(tt),rt=new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function it(e){return!(!Qe.test(e)&&!nt.test(e))&&rt.test(e)}function at(e){return"%"===e||et.test(e)}var ot="[^".concat("(\\[([").concat(")\\])]","]"),st="[".concat("(\\[([").concat("++","]"),lt=new RegExp("^"+st),ct=Ye(0,3),ut=new RegExp("^(?:[(\\[([])?(?:"+ot+"+[)\\])]])?"+ot+"+(?:[(\\[([]"+ot+"+[)\\])]])"+ct+ot+"*$"),dt=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function ht(e,t,n,r){if(ut.test(e)&&!dt.test(e)){if("POSSIBLE"!==r){if(t>0&&!lt.test(e)){var i=n[t-1];if(at(i)||it(i))return!1}var a=t+e.length;if(a<n.length){var o=n[a];if(at(o)||it(o))return!1}}return!0}}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mt="[++]{0,1}(?:["+y+"]*[0-90-9٠-٩۰-۹]){3,}["+y+"0-90-9٠-٩۰-۹]*",vt=new RegExp("^[  ­​⁠ ]+"),gt=new RegExp("["+y+"]+$");var yt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ft(this,"state","NOT_READY"),this.text=t,this.options=n||{},this.metadata=r,this.regexp=new RegExp(mt+"(?:"+Y+")?","ig")}var t,n,r;return t=e,(n=[{key:"find",value:function(){var e=this.regexp.exec(this.text);if(e){var t=e[0],n=e.index;t=t.replace(vt,""),n+=e[0].length-t.length,t=Fe(t=t.replace(gt,""));var r=this.parseCandidate(t,n);return r||this.find()}}},{key:"parseCandidate",value:function(e,t){if(Ve(e,t,this.text)&&ht(e,t,this.text,this.options.extended?"POSSIBLE":"VALID")){var n=we(e,this.options,this.metadata);if(n.phone)return n.startsAt=t,n.endsAt=t+e.length,n}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.last_match=this.find(),this.last_match?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.last_match;return this.last_match=null,this.state="NOT_READY",e}}])&&pt(t.prototype,n),r&&pt(t,r),e}();function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var wt=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_t(this,e),this.key=t,this.value=n,this.next=r,this.prev=i},kt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;_t(this,e),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}var t,n,r;return t=e,(n=[{key:"put",value:function(e,t){if(this.ensureLimit(),this.head){var n=new wt(e,t,this.head);this.head.prev=n,this.head=n}else this.head=this.tail=new wt(e,t);this.cache[e]=this.head,this.size++}},{key:"get",value:function(e){if(this.cache[e]){var t=this.cache[e].value;return this.remove(e),this.put(e,t),t}console.log("Item not available in cache for key ".concat(e))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(e){var t=this.cache[e];null!==t.prev?t.prev.next=t.next:this.head=t.next,null!==t.next?t.next.prev=t.prev:this.tail=t.prev,delete this.cache[e],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}])&&bt(t.prototype,n),r&&bt(t,r),e}();function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Tt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=new kt(t)}var t,n,r;return t=e,(n=[{key:"getPatternForRegExp",value:function(e){var t=this.cache.get(e);return t||(t=new RegExp("^"+e),this.cache.put(e,t)),t}}])&&Et(t.prototype,n),r&&Et(t,r),e}(),St={POSSIBLE:function(e,t,n){return!0},VALID:function(e,t,n){return!(!oe(e,void 0,n)||!Ct(e,t.toString(),n))},STRICT_GROUPING:function(e,t,n,r){var i=t.toString();return!(!oe(e,void 0,n)||!Ct(e,i,n)||Mt(e,i)||!xt(e,n))&&$t(e,t,n,Ot,r)},EXACT_GROUPING:function(e,t,n,r){var i=t.toString();return!(!oe(e,void 0,n)||!Ct(e,i,n)||Mt(e,i)||!xt(e,n))&&$t(e,t,n,Pt,r)}};function Ct(e,t,n){for(var r=0;r<t.length-1;r++){var i=t.charAt(r);if("x"===i||"X"===i){var a=t.charAt(r+1);if("x"===a||"X"===a){if(r++,util.isNumberMatch(e,t.substring(r))!=MatchType.NSN_MATCH)return!1}else if(V(t.substring(r))!==e.ext)return!1}}return!0}function xt(e,t){if("FROM_DEFAULT_COUNTRY"!=e.getCountryCodeSource())return!0;var n=util.getRegionCodeForCountryCode(e.getCountryCode()),r=util.getMetadataForRegion(n);if(null==r)return!0;var i=util.getNationalSignificantNumber(e),a=util.chooseFormattingPatternForNumber(r.numberFormats(),i);if(a&&a.getNationalPrefixFormattingRule().length>0){if(a.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(a.getNationalPrefixFormattingRule()))return!0;var o=PhoneNumberUtil.normalizeDigitsOnly(e.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(o,r,null)}return!0}function Mt(e,t){var n=t.indexOf("/");if(n<0)return!1;var r=t.indexOf("/",n+1);return!(r<0)&&(!(e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(t.substring(0,n))!==String(e.getCountryCode())||t.slice(r+1).indexOf("/")>=0)}function $t(e,t,n,r,i){var a=normalizeDigits(t,!0),o=Lt(n,e,null);if(r(n,e,a,o))return!0;var s=MetadataManager.getAlternateFormatsForCountry(e.getCountryCode()),l=util.getNationalSignificantNumber(e);if(s){var c=s.numberFormats(),u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var h;if(u){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var p=h;if(p.leadingDigitsPatterns().length>0)if(!i.getPatternForRegExp("^"+p.leadingDigitsPatterns()[0]).test(l))continue;if(r(n,e,a,o=Lt(n,e,p)))return!0}}return!1}function Lt(e,t,n){if(n){var r=util.getNationalSignificantNumber(t);return util.formatNsnUsingPattern(r,n,"RFC3966",e).split("-")}var i=formatNumber(t,"RFC3966",e),a=i.indexOf(";");a<0&&(a=i.length);var o=i.indexOf("-")+1;return i.slice(o,a).split("-")}function Pt(e,t,n,r){var i=n.split(NON_DIGITS_PATTERN),a=t.hasExtension()?i.length-2:i.length-1;if(1==i.length||i[a].contains(util.getNationalSignificantNumber(t)))return!0;for(var o,s,l=r.length-1;l>0&&a>=0;){if(i[a]!==r[l])return!1;l--,a--}return a>=0&&(o=i[a],s=r[0],o.indexOf(s,o.length-s.length)===o.length-s.length)}function Ot(e,t,n,r){var i,a,o=0;if(t.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var s=String(t.getCountryCode());o=n.indexOf(s)+s.length()}for(var l=0;l<r.length;l++){if((o=n.indexOf(r[l],o))<0)return!1;if(o+=r[l].length(),0==l&&o<n.length()){var c=util.getRegionCodeForCountryCode(t.getCountryCode());if(null!=util.getNddPrefixForRegion(c,!0)&&Character.isDigit(n.charAt(o))){var u=util.getNationalSignificantNumber(t);return i=n.slice(o-r[l].length),a=u,0===i.indexOf(a)}}}return n.slice(o).contains(t.getExtension())}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Nt(e,t,n[t])}))}return e}function It(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rt=["\\/+(.*)/","(\\([^(]*)","(?:".concat(We,"-|-").concat(We,")").concat(We,"*(.+)"),"[‒-―-]".concat(We,"*(.+)"),"\\.+".concat(We,"*([^.]+)"),"".concat(We,"+(").concat(Ge,"+)")],Yt=Ye(0,2),Bt=Ye(0,4),jt=Ye(0,20),Ft="[".concat(y,"]")+Bt,Ht=Ke+Ye(1,20),Ut="(?:"+st+Ft+")"+Yt+Ht+"(?:"+Ft+Ht+")"+jt+"(?:"+B+")?",zt=new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9").concat(Je,"#]+$")),Vt=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,qt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(It(this,e),Nt(this,"state","NOT_READY"),Nt(this,"searchIndex",0),Nt(this,"regExpCache",new Tt(32)),!(n=Dt({},n,{defaultCallingCode:n.defaultCallingCode,defaultCountry:n.defaultCountry&&A(n.defaultCountry,r)?n.defaultCountry:void 0,leniency:n.leniency||n.extended?"POSSIBLE":"VALID",maxTries:n.maxTries||Vt})).leniency)throw new TypeError("`Leniency` not supplied");if(n.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=t,this.options=n,this.metadata=r,this.leniency=St[n.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(n.leniency,"."));this.maxTries=n.maxTries,this.PATTERN=new RegExp(Ut,"ig")}var t,n,r;return t=e,(n=[{key:"find",value:function(){for(var e;this.maxTries>0&&null!==(e=this.PATTERN.exec(this.text));){var t=e[0],n=e.index;if(Ve(t=Fe(t),n,this.text)){var r=this.parseAndVerify(t,n,this.text)||this.extractInnerMatch(t,n,this.text);if(r){if(this.options.v2){var i=new ge(r.country||r.countryCallingCode,r.phone,this.metadata);return r.ext&&(i.ext=r.ext),{startsAt:r.startsAt,endsAt:r.endsAt,number:i}}return r}}this.maxTries--}}},{key:"extractInnerMatch",value:function(e,t,n){for(var r=0,i=Rt;r<i.length;r++)for(var a=!0,o=void 0,s=new RegExp(i[r],"g");null!==(o=s.exec(e))&&this.maxTries>0;){if(a){var l=Be(zt,e.slice(0,o.index)),c=this.parseAndVerify(l,t,n);if(c)return c;this.maxTries--,a=!1}var u=Be(zt,o[1]),d=this.parseAndVerify(u,t+o.index,n);if(d)return d;this.maxTries--}}},{key:"parseAndVerify",value:function(e,t,n){if(ht(e,t,n,this.options.leniency)){var r=we(e,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(r.possible&&this.leniency(r,e,this.metadata,this.regExpCache)){var i={startsAt:t,endsAt:t+e.length,phone:r.phone};return r.country&&"001"!==r.country?i.country=r.country:i.countryCallingCode=r.countryCallingCode,r.ext&&(i.ext=r.ext),i}}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",e}}])&&At(t.prototype,n),r&&At(t,r),e}();function Wt(e){return(Wt="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 Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Kt=sn("9",15),Jt=new RegExp("x"),Xt=/[- ]/,Qt=function(){return/\[([^\[\]])*\]/g},Zt=function(){return/\d(?=[^,}][^,}])/g},en=new RegExp("^["+y+"]*(\\$\\d["+y+"]*)+$"),tn=new RegExp("^"+("["+y+"0-90-9٠-٩۰-۹]+")+"$","i"),nn="(?:[++]["+y+"0-90-9٠-٩۰-۹]*|["+y+"0-90-9٠-٩۰-۹]+)",rn=new RegExp("[^"+y+"0-90-9٠-٩۰-۹]+.*$"),an=function(){function e(t,n){var r,i,a,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a={},(i="options")in(r=this)?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,this.metadata=new C(n),t&&("object"===Wt(t)?(o=t.defaultCountry,s=t.defaultCallingCode):o=t),o&&this.metadata.hasCountry(o)&&(this.defaultCountry=o),s&&(this.defaultCallingCode=s),this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){return this.formattedOutput="",this.international=!1,this.internationalPrefix=void 0,this.countryCallingCode=void 0,this.digits="",this.nationalNumberDigits="",this.nationalPrefix="",this.carrierCode="",this.setCountry(this.defaultCountry,this.defaultCallingCode),this}},{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"isInternational",value:function(){return this.international}},{key:"getCountryCallingCode",value:function(){return this.countryCallingCode}},{key:"getCountry",value:function(){if(this.digits){var e=this.country;return e}}},{key:"setCountry",value:function(e,t){this.country=e,this.metadata.selectNumberingPlan(e,t),this.metadata.hasSelectedNumberingPlan()?this.initializePhoneNumberFormatsForCountry():this.matchingFormats=[],this.resetFormat()}},{key:"input",value:function(e){var t=this.extractFormattedDigits(e);return tn.test(t)&&(this.formattedOutput=this.getFullNumber(this.inputDigits(V(t))||this.getNonFormattedNationalNumber())),this.formattedOutput}},{key:"extractFormattedDigits",value:function(e){var t=function(e){var t,n=e.search(nn);if(!(n<0))return"+"===(e=e.slice(n))[0]&&(t=!0,e=e.slice("+".length)),e=e.replace(rn,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]&&(t=t.slice("+".length),this.digits||(this.formattedOutput="+",this.startInternationalNumber())),t}},{key:"startInternationalNumber",value:function(){this.international=!0,this.setCountry()}},{key:"inputDigits",value:function(e){if(!this.digits){var t=ne(e,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);t&&t!==e&&(this.internationalPrefix=e.slice(0,e.length-t.length),e=t,this.startInternationalNumber())}if(this.digits+=e,this.isInternational())if(this.countryCallingCode)this.nationalNumberDigits+=e,this.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry();else{if(!this.extractCountryCallingCode())return;this.nationalNumberDigits=this.digits.slice(this.countryCallingCode.length),this.determineTheCountry()}else{this.nationalNumberDigits+=e,this.country||this.determineTheCountry();var n=this.nationalPrefix;this.nationalNumberDigits=this.nationalPrefix+this.nationalNumberDigits,this.extractNationalPrefix(),this.nationalPrefix!==n&&(this.initializePhoneNumberFormatsForCountry(),this.resetFormat())}return this.nationalNumberDigits&&this.matchFormats(this.nationalNumberDigits),this.formatNationalNumberWithNextDigits(e)}},{key:"formatNationalNumberWithNextDigits",value:function(e){var t=this.attemptToFormatCompletePhoneNumber();if(t)return t;var n=this.chosenFormat,r=this.chooseFormat();return r?r===n?this.formatNextNationalNumberDigits(e):this.reformatNationalNumber():void 0}},{key:"chooseFormat",value:function(){var e=this.matchingFormats,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r;if(this.chosenFormat===i)break;if(this.createFormattingTemplate(i)){this.chosenFormat=i,this.populatedNationalNumberTemplatePosition=-1;break}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"reformatNationalNumber",value:function(){return this.formatNextNationalNumberDigits(this.nationalPrefix+this.nationalNumberDigits)}},{key:"initializePhoneNumberFormatsForCountry",value:function(){this.matchingFormats=this.metadata.formats().filter((function(e){return en.test(e.internationalFormat())}))}},{key:"matchFormats",value:function(e){var t=this,n=e.length-3;n<0&&(n=0),this.matchingFormats=this.matchingFormats.filter((function(r){if(!t.isInternational()&&!t.nationalPrefix&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())return!1;var i=r.leadingDigitsPatterns().length;if(0===i)return!0;if(e.length<3)return!0;n=Math.min(n,i-1);var a=r.leadingDigitsPatterns()[n];return new RegExp("^(".concat(a,")")).test(e)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return"1"===this.metadata.countryCallingCode()||e&&e.nationalPrefixFormattingRule()&&Xt.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"attemptToFormatCompletePhoneNumber",value:function(){var e=this.matchingFormats,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r;if(new RegExp("^(?:".concat(i.pattern(),")$")).test(this.nationalNumberDigits)){var a=de(this.nationalNumberDigits,i,this.isInternational(),!1,this.metadata);if(V(a)===this.nationalNumberDigits){if(this.nationalPrefix){var o=de(this.nationalNumberDigits,i,this.isInternational(),!0,this.metadata);a=V(o)===this.nationalPrefix+this.nationalNumberDigits?o:this.nationalPrefix+this.getSeparatorAfterNationalPrefix(i)+a}return this.resetFormat(),this.chosenFormat=i,this.createFormattingTemplate(i)?this.reformatNationalNumber():(this.template=this.getFullNumber(a).replace(/[\d\+]/g,"x"),this.populatedNationalNumberTemplate=a,this.populatedNationalNumberTemplatePosition=this.populatedNationalNumberTemplate.length-1),a}}}}},{key:"getInternationalPrefix",value:function(e){return this.internationalPrefix?e&&!1===e.spacing?this.internationalPrefix:this.internationalPrefix+" ":"+"}},{key:"getFullNumber",value:function(e){if(this.isInternational()){var t=this.getInternationalPrefix();return this.countryCallingCode?e?"".concat(t).concat(this.countryCallingCode," ").concat(e):"".concat(t).concat(this.countryCallingCode):"".concat(t).concat(this.digits)}return e}},{key:"getNonFormattedNationalNumber",value:function(){return this.nationalPrefix+(this.nationalPrefix&&this.nationalNumberDigits&&this.getSeparatorAfterNationalPrefix())+this.nationalNumberDigits}},{key:"extractCountryCallingCode",value:function(){var e=Se("+"+this.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),t=e.countryCallingCode,n=e.number;if(t)return this.nationalNumberDigits=n,this.countryCallingCode=t,this.metadata.chooseCountryByCountryCallingCode(t),this.initializePhoneNumberFormatsForCountry(),this.resetFormat(),this.metadata.hasSelectedNumberingPlan()}},{key:"extractNationalPrefix",value:function(){if(this.nationalPrefix="",this.metadata.hasSelectedNumberingPlan()){var e=ke(this.nationalNumberDigits,this.metadata),t=e.nationalNumber,n=e.carrierCode;if(t){var r=this.nationalNumberDigits.indexOf(t);if(r<0||r!==this.nationalNumberDigits.length-t.length)return}return n&&(this.carrierCode=n),this.nationalPrefix=this.nationalNumberDigits.slice(0,this.nationalNumberDigits.length-t.length),this.nationalNumberDigits=t,this.nationalPrefix}}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.metadata.getCountryCodesForCallingCode(this.countryCallingCode);return e&&e.length>1}},{key:"createFormattingTemplate",value:function(e){if(!(e.pattern().indexOf("|")>=0)){var t=this.getTemplateForNumberFormatPattern(e,this.nationalPrefix);if(t)return this.template=t,this.populatedNationalNumberTemplate=t,this.isInternational()&&(this.template=this.getInternationalPrefix().replace(/[\d\+]/g,"x")+sn("x",this.countryCallingCode.length)+" "+t),this.template}}},{key:"getTemplateForNumberFormatPattern",value:function(e,t){var n=e.pattern();n=n.replace(Qt(),"\\d").replace(Zt(),"\\d");var r=Kt.match(n)[0];if(!(this.nationalNumberDigits.length>r.length)){var i=new RegExp("^"+n+"$"),a=this.nationalNumberDigits.replace(/\d/g,"9");i.test(a)&&(r=a);var o,s=this.getFormatFormat(e);if(t&&e.nationalPrefixFormattingRule()){var l=s.replace(ue,e.nationalPrefixFormattingRule());if(V(l)===t+V(s)){s=l,o=!0;for(var c=t.length;c>0;)s=s.replace(/\d/,"x"),c--}}var u=r.replace(new RegExp(n),s).replace(new RegExp("9","g"),"x");return t&&(o||(u=sn("x",t.length)+this.getSeparatorAfterNationalPrefix(e)+u)),u}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=e.split(""),n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var a=i;if(this.populatedNationalNumberTemplate.slice(this.populatedNationalNumberTemplatePosition+1).search(Jt)<0)return void this.resetFormat();this.populatedNationalNumberTemplatePosition=this.populatedNationalNumberTemplate.search(Jt),this.populatedNationalNumberTemplate=this.populatedNationalNumberTemplate.replace(Jt,a)}return on(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"getFormatFormat",value:function(e){return this.isInternational()?pe(e.internationalFormat()):e.format()}},{key:"determineTheCountry",value:function(){this.country=Ee(this.isInternational()?this.countryCallingCode:this.defaultCallingCode,this.nationalNumberDigits,this.metadata)}},{key:"getNumber",value:function(){if(this.isInternational()){if(!this.countryCallingCode)return}else if(!this.country&&!this.defaultCallingCode)return;if(this.nationalNumberDigits){var e=this.getCountry(),t=this.getCountryCallingCode()||this.defaultCallingCode,n=this.nationalNumberDigits,r=this.carrierCode;if(!this.isInternational()&&this.nationalNumberDigits===this.digits){var i=Ce(this.digits,e,t,this.metadata.metadata),a=i.countryCallingCode,o=i.number;if(a){var s=Te(o,this.metadata);n=s.nationalNumber,r=s.carrierCode}}var l=new ge(e||t,n,this.metadata.metadata);return r&&(l.carrierCode=r),l}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.nationalNumberDigits}},{key:"getNonFormattedTemplate",value:function(){return this.getFullNumber(this.getNonFormattedNationalNumber()).replace(/[\+\d]/g,"x")}},{key:"getTemplate",value:function(){if(!this.template)return this.getNonFormattedTemplate();for(var e=-1,t=0;t<(this.isInternational()?this.getInternationalPrefix({spacing:!1}).length:0)+this.digits.length;)e=this.template.indexOf("x",e+1),t++;return on(this.template,e+1)}}])&&Gt(t.prototype,n),r&&Gt(t,r),e}();function on(e,t){return")"===e[t]&&t++,function(e){for(var t=[],n=0;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,o=t;a<o.length;a++){var s=o[a];i+=e.slice(r,s),r=s+1}return i}(e.slice(0,t))}function sn(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ln(){var e=Array.prototype.slice.call(arguments);return e.push(g),Ne.apply(this,e)}function cn(e,t){yt.call(this,e,t,g)}function un(e,t){qt.call(this,e,t,g)}function dn(e){an.call(this,e,g)}function hn(e){return I(e,g)}cn.prototype=Object.create(yt.prototype,{}),cn.prototype.constructor=cn,un.prototype=Object.create(qt.prototype,{}),un.prototype.constructor=un,dn.prototype=Object.create(an.prototype,{}),dn.prototype.constructor=dn;var pn={props:{theme:{type:Object,required:!0}},computed:{labelColorStyle:function(){return this.error?this.theme.errorColor:this.valid?this.theme.validColor:this.isFocus?this.theme.color:this.dark?this.theme.textDarkColor:null},inputBorderStyle:function(){return this.error?this.theme.borderErrorColor:this.valid?this.theme.borderValidColor:this.isHover||this.isFocus?this.theme.borderColor:null},inputBoxShadowStyle:function(){return this.isFocus?this.error?this.theme.boxShadowError:this.valid?this.theme.boxShadowValid:this.theme.boxShadowColor:null},inputBgColor:function(){return this.dark?this.theme.bgDarkColor:null},textColor:function(){return this.dark?this.theme.textDarkColor:null},inputCaretStyle:function(){return{caretColor:this.theme.colorValue}},radiusStyle:function(){return this.theme.borderRadius},radiusLeftStyle:function(){return this.theme.borderLeftRadius},radiusRightStyle:function(){return this.theme.borderRightRadius},bgItemSelectedStyle:function(){return this.theme.bgColor},loaderBgColor:function(){return this.theme.bgColor}}},fn={name:"InputTel",mixins:[pn],props:{value:{type:[String,Number],default:null},label:{type:String,default:"Enter text"},hint:{type:String,default:null},error:{type:Boolean,default:Boolean},disabled:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},id:{type:String,default:"InputTel"},size:{type:String,default:null},type:{type:String,default:"tel"},readonly:{type:Boolean,default:!1},valid:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loader:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,isHover:!1}},computed:{inputValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},labelValue:function(){var e=this.label;return this.required&&e?"".concat(e," *"):e},hintValue:function(){var e=this.hint;return this.required&&e?"".concat(e," *"):e}},methods:{updateHoverState:function(e){this.isHover=e},focusInput:function(){this.$refs.InputTel.focus()},onFocus:function(){this.$emit("focus"),this.isFocus=!0},onBlur:function(){this.$emit("blur"),this.isFocus=!1},clear:function(){this.$emit("input",null),this.$emit("clear")},keyUp:function(e){this.$emit("keyup",e)},keyDown:function(e){this.$emit("keydown",e)}}};n("b8ac");function mn(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var vn=mn(fn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"parent",staticClass:"input-tel",class:[{"is-focused":e.isFocus,"is-valid":e.valid,"has-value":e.value,"has-error":e.error,"is-disabled":e.disabled,"is-dark":e.dark,"has-hint":e.hint},e.size],on:{click:e.focusInput,mouseenter:function(t){return e.updateHoverState(!0)},mouseleave:function(t){return e.updateHoverState(!1)}}},["checkbox"===e.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.inputValue)?e._i(e.inputValue,null)>-1:e.inputValue},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},change:function(t){var n=e.inputValue,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.inputValue=n.concat([null])):a>-1&&(e.inputValue=n.slice(0,a).concat(n.slice(a+1)))}else e.inputValue=i}}},"input",e.$attrs,!1)):"radio"===e.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:"radio"},domProps:{checked:e._q(e.inputValue,null)},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},change:function(t){e.inputValue=null}}},"input",e.$attrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:e.type},domProps:{value:e.inputValue},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},input:function(t){t.target.composing||(e.inputValue=t.target.value)}}},"input",e.$attrs,!1)),n("label",{ref:"label",staticClass:"input-tel__label",class:e.error?"text-danger":null,style:[e.labelColorStyle],attrs:{for:e.id},on:{click:e.focusInput}},[e._v(" "+e._s(e.hintValue||e.labelValue)+" ")]),e.clearable&&e.inputValue?n("button",{staticClass:"input-tel__clear",attrs:{title:"clear",type:"button",tabindex:"-1"},on:{click:e.clear}},[n("span",{staticClass:"input-tel__clear__effect"}),n("span",[e._v(" ✕ ")])]):e._e(),e.loader?n("div",{staticClass:"input-tel__loader"},[n("div",{staticClass:"input-tel__loader__progress-bar",style:[e.loaderBgColor]})]):e._e()])}),[],!1,null,"e59be3b4",null).exports,gn=(n("7f7f"),n("f559"),n("20d6"),n("a745")),yn=n.n(gn);function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _n=n("774e"),wn=n.n(_n),kn=n("c8bb"),En=n.n(kn),Tn=n("67bb"),Sn=n.n(Tn);function Cn(e){return function(e){if(yn()(e))return bn(e)}(e)||function(e){if(void 0!==Sn.a&&En()(Object(e)))return wn()(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?wn()(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("7514");var xn,Mn={name:"CountrySelector",components:{RecycleScroller:n("e508").a},mixins:[pn],props:{id:{type:String,default:"CountrySelector"},value:{type:[String,Object],default:null},label:{type:String,default:"Choose country"},hint:{type:String,default:String},size:{type:String,default:String},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},valid:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},items:{type:Array,default:Array,required:!0},preferredCountries:{type:Array,default:null},onlyCountries:{type:Array,default:null},ignoredCountries:{type:Array,default:null},noFlags:{type:Boolean,default:!1},countriesHeight:{type:Number,default:35},showCodeOnList:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,hasListOpen:!1,selectedIndex:null,tmpValue:this.value,query:"",indexItemToShow:0,isHover:!1}},computed:{itemHeight:function(){return{height:"".concat(this.countriesHeight,"px")}},listHeight:function(){return{height:"".concat(7*(this.countriesHeight+1),"px"),maxHeight:"".concat(7*(this.countriesHeight+1),"px")}},countriesList:function(){var e=this;return this.items.filter((function(t){return!e.ignoredCountries.includes(t.iso2)}))},countriesFiltered:function(){var e=this;return(this.onlyCountries||this.preferredCountries).map((function(t){return e.countriesList.find((function(e){return e.iso2.includes(t)}))}))},otherCountries:function(){var e=this;return this.countriesList.filter((function(t){return!e.preferredCountries.includes(t.iso2)}))},countriesSorted:function(){return this.preferredCountries?[].concat(Cn(this.countriesFiltered),Cn(this.otherCountries)):this.onlyCountries?this.countriesFiltered:this.countriesList},selectedValueIndex:function(){var e=this;return this.value?this.countriesSorted.findIndex((function(t){return t.iso2===e.value})):null},tmpValueIndex:function(){var e=this;return this.countriesSorted.findIndex((function(t){return t.iso2===e.tmpValue}))},callingCode:function(){return this.value?"+".concat(hn(this.value)):null}},methods:{updateHoverState:function(e){this.isHover=e},handleBlur:function(e){this.$el.contains(e.relatedTarget)||(this.isFocus=!1,this.closeList())},toggleList:function(){this.$refs.countriesList.offsetParent?this.closeList():this.openList()},openList:function(){this.disabled||(this.$refs.CountrySelector.focus(),this.$emit("open"),this.isFocus=!0,this.hasListOpen=!0,this.value&&this.scrollToSelectedOnFocus(this.selectedValueIndex))},closeList:function(){this.$emit("close"),this.hasListOpen=!1},updateValue:(xn=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.tmpValue=t,this.$emit("input",t||null),e.next=4,this.$nextTick();case 4:this.closeList();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return xn.apply(this,arguments)}),scrollToSelectedOnFocus:function(e){var t=this;this.$nextTick((function(){t.$refs.countriesList.scrollTop=e*(t.countriesHeight+1)-3*(t.countriesHeight+1)}))},keyboardNav:function(e){var t=e.keyCode;if(40===t||38===t){e.view&&e.view.event&&e.view.event.preventDefault(),this.hasListOpen||this.openList();var n=40===t?this.tmpValueIndex+1:this.tmpValueIndex-1;(-1===n||n>=this.countriesSorted.length)&&(n=-1===n?this.countriesSorted.length-1:0),this.tmpValue=this.countriesSorted[n].iso2,this.scrollToSelectedOnFocus(n)}else 13===t?this.hasListOpen?this.updateValue(this.tmpValue):this.openList():27===t?this.closeList():this.searching(e)},searching:function(e){var t=this,n=e.keyCode;clearTimeout(this.queryTimer),this.queryTimer=setTimeout((function(){t.query=""}),1e3);var r=String.fromCharCode(n);if(8===n&&""!==this.query)this.query=this.query.substring(0,this.query.length-1);else if(/[a-zA-Z-e ]/.test(r)){this.hasListOpen||this.openList(),this.query+=e.key;var i=(this.preferredCountries?this.countriesSorted.slice(this.preferredCountries.length):this.countriesSorted).findIndex((function(e){return t.tmpValue=e.iso2,e.name.toLowerCase().startsWith(t.query)}));-1!==i&&this.scrollToSelectedOnFocus(i+(this.preferredCountries?this.preferredCountries.length:0))}}}},$n=(n("3314"),mn(Mn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"parent",staticClass:"country-selector",class:[{"is-focused":e.isFocus,"has-value":e.value,"has-hint":e.hint,"has-error":e.error,"is-disabled":e.disabled,"is-dark":e.dark,"no-flags":e.noFlags,"has-list-open":e.hasListOpen,"is-valid":e.valid},e.size],on:{"!blur":function(t){return e.handleBlur(t)},mouseenter:function(t){return e.updateHoverState(!0)},mouseleave:function(t){return e.updateHoverState(!1)}}},[e.value&&!e.noFlags?n("div",{staticClass:"country-selector__country-flag",on:{click:function(t){return t.stopPropagation(),e.toggleList(t)}}},[n("div",{class:"iti-flag-small iti-flag "+e.value.toLowerCase()})]):e._e(),n("input",{ref:"CountrySelector",staticClass:"country-selector__input",style:[e.radiusLeftStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor],attrs:{id:e.id,placeholder:e.label,disabled:e.disabled,readonly:""},domProps:{value:e.callingCode},on:{focus:function(t){e.isFocus=!0},keydown:e.keyboardNav,click:function(t){return t.stopPropagation(),e.toggleList(t)}}}),n("div",{staticClass:"country-selector__toggle",on:{click:function(t){return t.stopPropagation(),e.toggleList(t)}}},[e._t("arrow",[n("svg",{staticClass:"country-selector__toggle__arrow",attrs:{mlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{staticClass:"arrow",attrs:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}),n("path",{attrs:{fill:"none",d:"M0 0h24v24H0V0z"}})])])],2),n("label",{ref:"label",staticClass:"country-selector__label",style:[e.labelColorStyle],on:{click:function(t){return t.stopPropagation(),e.toggleList(t)}}},[e._v(" "+e._s(e.hint||e.label)+" ")]),n("Transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasListOpen,expression:"hasListOpen"}],ref:"countriesList",staticClass:"country-selector__list",class:{"has-calling-code":e.showCodeOnList},style:[e.radiusStyle,e.listHeight,e.inputBgColor]},[n("RecycleScroller",{attrs:{items:e.countriesSorted,"item-size":1,"key-field":"iso2"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.item;return[n("button",{key:"item-"+r.code,staticClass:"flex align-center country-selector__list__item",class:[{selected:e.value===r.iso2},{"keyboard-selected":e.value!==r.iso2&&e.tmpValue===r.iso2}],style:[e.itemHeight,e.value===r.iso2?e.bgItemSelectedStyle:null],attrs:{tabindex:"-1",type:"button"},on:{click:function(t){return t.stopPropagation(),e.updateValue(r.iso2)}}},[e.noFlags?e._e():n("div",{staticClass:"country-selector__list__item__flag-container"},[n("div",{class:"iti-flag-small iti-flag "+r.iso2.toLowerCase()})]),e.showCodeOnList?n("span",{staticClass:"country-selector__list__item__calling-code flex-fixed"},[e._v("+"+e._s(r.dialCode))]):e._e(),n("div",{staticClass:"dots-text"},[e._v(" "+e._s(r.name)+" ")])])]}}])})],1)])],1)}),[],!1,null,"46e105de",null).exports),Ln={countrySelectorLabel:"Country code",countrySelectorError:"Choose country",phoneNumberLabel:"Phone number",example:"Example:"},Pn=n("4883");function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var In,An,Nn=function(e){return Object(Pn.isColorName)(e)?Object(Pn.HexToRgba)(Object(Pn.colorNameToHex)(e),.7):Object(Pn.HexToRgba)(e,.7)},Rn=function(){if(!window)return null;var e=window.navigator.userLanguage||window.navigator.language,t=e?e.substr(3,4).toUpperCase():null;return""===t&&(t=e.substr(0,2).toUpperCase()),t},Yn={name:"MazPhoneNumberInput",components:{InputTel:vn,CountrySelector:$n},props:{value:{type:String,default:null},id:{type:String,default:"MazPhoneNumberInput"},color:{type:String,default:"dodgerblue"},validColor:{type:String,default:"yellowgreen"},errorColor:{type:String,default:"orangered"},darkColor:{type:String,default:"#424242"},disabled:{type:Boolean,default:!1},defaultCountryCode:{type:String,default:null},size:{type:String,default:null},preferredCountries:{type:Array,default:null},onlyCountries:{type:Array,default:null},ignoredCountries:{type:Array,default:Array},translations:{type:Object,default:null},noValidatorState:{type:Boolean,default:!1},noFlags:{type:Boolean,default:!1},error:{type:Boolean,default:!1},noExample:{type:Boolean,default:!1},required:{type:Boolean,default:!1},countriesHeight:{type:Number,default:30},noUseBrowserLocale:{type:Boolean,default:!1},fetchCountry:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1},showCodeOnList:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},borderRadius:{type:Number,default:4}},data:function(){return{results:{},userLocale:this.defaultCountryCode,lastKeyPressed:null}},computed:{uniqueId:function(){return"".concat(this.id,"-").concat(this._uid)},t:function(){return Dn({},Ln,{},this.translations)},codesCountries:function(){return m},countryCode:{get:function(){return this.userLocale||this.results.countryCode},set:function(e){this.setLocale(e),this.$refs.PhoneNumberInput.$el.querySelector("input").focus()}},phoneNumber:{get:function(){return this.value},set:function(e){this.emitValues({countryCode:this.countryCode,phoneNumber:e})}},shouldChooseCountry:function(){return!this.countryCode&&!!this.phoneNumber},phoneFormatted:function(){return this.results.formatInternational},isValid:function(){return this.results.isValid},phoneNumberExample:function(){var e=this.countryCode?function(){var e=Array.prototype.slice.call(arguments);return e.push(g),Re.apply(this,e)}(this.countryCode,v):null;return e?e.formatNational():null},hasEmptyPhone:function(){return""===this.phoneNumber||null===this.phoneNumber},hintValue:function(){return this.noExample||!this.phoneNumberExample||this.hasEmptyPhone||this.isValid?null:"".concat(this.t.example," ").concat(this.phoneNumberExample)},theme:function(){return{colorValue:this.color,color:{color:this.color},textColor:{color:"#747474"},textDarkColor:{color:"rgba(255, 255, 255, 0.7)"},validColor:{color:this.validColor},errorColor:{color:this.errorColor},darkColor:{color:this.darkColor},bgColor:{backgroundColor:this.color},bgValidColor:{backgroundColor:this.validColor},bgErrorColor:{backgroundColor:this.errorColor},bgDarkColor:{backgroundColor:this.darkColor},borderColor:{borderColor:this.color},borderValidColor:{borderColor:this.validColor},borderErrorColor:{borderColor:this.errorColor},borderDarkColor:{borderColor:this.darkColor},boxShadowColor:{boxShadow:"0 0 0 0.125rem ".concat(Nn(this.color))},boxShadowValid:{boxShadow:"0 0 0 0.125rem ".concat(Nn(this.validColor))},boxShadowError:{boxShadow:"0 0 0 0.125rem ".concat(Nn(this.errorColor))},borderRadius:{borderRadius:"".concat(this.borderRadius,"px")},borderLeftRadius:{borderTopLeftRadius:"".concat(this.borderRadius,"px"),borderBottomLeftRadius:"".concat(this.borderRadius,"px")},borderRightRadius:{borderTopRightRadius:"".concat(this.borderRadius,"px"),borderBottomRightRadius:"".concat(this.borderRadius,"px")}}}},watch:{defaultCountryCode:function(e,t){e!==t&&this.setLocale(e)},phoneNumber:{handler:function(e,t){if(e&&e!==t){var n=ln(e);n&&this.emitValues({phoneNumber:n.nationalNumber,countryCode:this.countryCode?this.countryCode:n.country})}},immediate:!0}},mounted:(An=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.phoneNumber&&this.defaultCountryCode&&this.emitValues({countryCode:this.defaultCountryCode,phoneNumber:this.phoneNumber}),!this.defaultCountryCode||!this.fetchCountry){e.next=4;break}throw new Error('MazPhoneNumberInput: Do not use "fetch-country" and "default-country-code" options in the same time');case 4:if(!this.defaultCountryCode||!this.noUseBrowserLocale){e.next=6;break}throw new Error('MazPhoneNumberInput: If you use a "default-country-code", do not use "no-use-browser-locale" options');case 6:if(!this.defaultCountryCode){e.next=8;break}return e.abrupt("return");case 8:this.fetchCountry?this.fetchCountryCode():!this.noUseBrowserLocale&&this.setLocale(Rn()),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),new Error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return An.apply(this,arguments)}),methods:{getAsYouTypeFormat:function(e){var t=e.countryCode,n=e.phoneNumber,r=new dn(t);return n?r.input(n):null},getParsePhoneNumberFromString:function(e){var t=e.phoneNumber,n=e.countryCode,r=t&&n?ln(t,n):null;return Dn({countryCode:n,isValid:!1},t&&""!==t?{phoneNumber:t}:null,{},r?{countryCallingCode:r.countryCallingCode,formattedNumber:r.number,nationalNumber:r.nationalNumber,isValid:r.isValid(),type:r.getType(),formatInternational:r.formatInternational(),formatNational:r.formatNational(),uri:r.getURI(),e164:r.format("E.164")}:null)},emitValues:function(e){var t=this,n=this.getAsYouTypeFormat(e),r=8===this.lastKeyPressed;this.$nextTick((function(){var i=!!t.phoneNumber&&t.phoneNumber.trim().slice(-1);r&&i&&")"===i.slice(-1)&&(n=t.phoneNumber.slice(0,-2),e.phoneNumber=t.phoneNumber.slice(0,-2)),t.results=t.getParsePhoneNumberFromString(e),t.$emit("update",t.results),t.$emit("input",n)}))},setLocale:function(e){var t=function(e){return f.includes(e)}(e);t&&e?(this.userLocale=t?e:null,this.emitValues({countryCode:e,phoneNumber:this.phoneNumber})):!t&&e&&window.console.warn("The locale ".concat(e," is not available"))},fetchCountryCode:(In=c(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://ip2c.org/s");case 3:return t=e.sent,e.next=6,t.text();case 6:n=e.sent,(r=(n||"").toString())&&"1"===r[0]&&this.setLocale(r.substr(2,2)),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),new Error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return In.apply(this,arguments)})}},Bn=(n("6996"),mn(Yn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-phone-number-input flex",class:[{dark:e.dark},e.size],attrs:{id:e.id}},[e.noCountrySelector?e._e():n("div",{staticClass:"select-country-container"},[n("CountrySelector",{ref:"CountrySelector",staticClass:"input-country-selector",attrs:{id:e.uniqueId+"_country_selector",items:e.codesCountries,"countries-height":e.countriesHeight,error:e.shouldChooseCountry,hint:e.shouldChooseCountry?e.t.countrySelectorError:null,disabled:e.disabled,valid:e.isValid&&!e.noValidatorState,"preferred-countries":e.preferredCountries,"only-countries":e.onlyCountries,"ignored-countries":e.ignoredCountries,label:e.t.countrySelectorLabel,"no-flags":e.noFlags,"show-code-on-list":e.showCodeOnList,size:e.size,dark:e.dark,theme:e.theme},model:{value:e.countryCode,callback:function(t){e.countryCode=t},expression:"countryCode"}},[e._t("arrow",null,{slot:"arrow"})],2)],1),n("div",{staticClass:"flex-1"},[n("InputTel",e._b({ref:"PhoneNumberInput",staticClass:"input-phone-number",attrs:{id:e.uniqueId+"_phone_number",label:e.t.phoneNumberLabel,hint:e.hintValue,dark:e.dark,disabled:e.disabled,size:e.size,error:e.error,valid:e.isValid&&!e.noValidatorState,required:e.required,"no-country-selector":e.noCountrySelector,theme:e.theme},on:{keydown:function(t){e.lastKeyPressed=t.keyCode},focus:function(t){return e.$emit("phone-number-focused")},blur:function(t){return e.$emit("phone-number-blur")}},model:{value:e.phoneNumber,callback:function(t){e.phoneNumber=t},expression:"phoneNumber"}},"InputTel",e.$attrs,!1))],1)])}),[],!1,null,"19c9a1c7",null).exports);t.default=Bn},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}).default},function(e,t,n){window,e.exports=function(){return n={},e.m=t=[function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5).default)("7ce5ac5d",r,!0,{})},function(e,t,n){"use strict";n(0)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.payButton{\n    color: #61DAFB;\n    width: 250px;\n    height: 50px;\n    font-weight: 800;\n}\n",""])},function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e))));return"/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t)," */")}(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return""+n}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var o=0;o<e.length;o++){var s=e[o];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},function(e,t,n){"use strict";n.r(t);var r={props:{styleClass:{type:String,default:"payButton"},email:{type:String,required:!0},amount:{type:Number,required:!0},raveKey:{type:String,required:!0},reference:{type:String,required:!0},callback:{type:Function,required:!0,default:function(){}},close:{type:Function,required:!0,default:function(){}},metadata:{type:Array,default:function(){return[]}},currency:{type:String,default:"NGN"},country:{type:String,default:"NG"},customerFirstname:{type:String,default:""},customerLastname:{type:String,default:""},customTitle:{type:String,default:""},customDescription:{type:String,default:""},customLogo:{type:String,default:""},redirectUrl:{type:String,default:""},paymentOptions:{type:String,default:"card"},paymentPlan:{type:Number,default:0},hostedPayment:{type:Number,default:0},subaccounts:{type:Array,default:function(){return[]}}},created:function(){var e=document.createElement("script");e.src="https://api.ravepay.co/flwv3-pug/getpaidx/api/flwpbf-inline.js",document.getElementsByTagName("head")[0].appendChild(e)},methods:{payWithRave:function(){var e=this;window.getpaidSetup({customer_email:this.email,amount:this.amount,txref:this.reference,PBFPubKey:this.raveKey,onclose:function(){return e.close()},callback:function(t){return e.callback(t)},meta:this.metadata,currency:this.currency,country:this.country,customer_firstname:this.customerFirstname,customer_lastname:this.customerLastname,custom_title:this.customTitle,custom_logo:this.customLogo,redirect_url:this.redirectUrl,payment_plan:this.paymentPlan,payment_options:this.paymentOptions,subaccounts:this.subaccounts,hosted_payment:this.hostedPayment})}}},i=(n(1),function(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=[],c._compiled=!0),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}(r,(function(){var e=this;return(e._self._c||e.$createElement)("button",{class:e.styleClass,on:{click:e.payWithRave}},[e._t("default",[e._v("Make Payment")])],2)})));t.default=i.exports},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s={id:e+":"+i,css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function i(e,t,n,i){m=n,g=i||{};var o=r(e,t);return a(o),function(t){for(var n=[],i=0;i<o.length;i++)(s=d[o[i].id]).refs--,n.push(s);for(t?a(o=r(e,t)):o=[],i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}}function a(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(s(n.parts[i]));n.parts.length<r.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(s(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:a}}}}function o(){var e=document.createElement("style");return e.type="text/css",h.appendChild(e),e}function s(e){var t,n,r=document.querySelector("style["+y+'~="'+e.id+'"]');if(r){if(m)return v;r.parentNode.removeChild(r)}if(b){var i=f++;r=p=p||o(),t=l.bind(null,r,i,!1),n=l.bind(null,r,i,!0)}else r=o(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(y,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}n.r(t),n.d(t,"default",(function(){return i}));var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u,d={},h=c&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,m=!1,v=function(){},g=null,y="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),_=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")})}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/dist/",e(e.s=4);function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t,n}()},function(e,t,n){var r=n(265),i=n(266),a=i;a.v1=r,a.v4=i,e.exports=a},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof u?t:u,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function h(){}var p={};p[i]=function(){return this};var f=Object.getPrototypeOf,m=f&&f(f(E([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=l(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,h[o]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[a]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new y(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(v),v[o]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(67);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,l=1,c={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[l]=i,r(l),l++},h.clearImmediate=p}function p(e){delete c[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(21),n(25))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),function(e){var t=n(17),r=n.n(t);(function(){var t,n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var i=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e,t];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}return globalThis}(this);function a(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function o(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:a(e)}}!function(e,t){if(t){var r=i;e=e.split(".");for(var a=0;a<e.length-1;a++){var o=e[a];o in r||(r[o]={}),r=r[o]}(t=t(a=r[e=e[e.length-1]]))!=a&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.a=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var a=i.setTimeout;n.prototype.c=function(e){a(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.f(e)}}}this.a=null},n.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.u(e):this.h(e)}},t.prototype.u=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.s=function(e){var t=this.f();e.Oa(t.resolve,t.reject)},t.prototype.w=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){a(e)}}:t}var i,a,o=new t((function(e,t){i=e,a=t}));return this.Oa(r(e,i),r(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Oa=function(e,t){function n(){switch(r.b){case 1:e(r.c);break;case 2:t(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?s.b(n):this.a.push(n)},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=o(e),a=i.next();!a.done;a=i.next())r(a.value).Oa(t,n)}))},t.all=function(e){var n=o(e),i=n.next();return i.done?r([]):new t((function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do{o.push(void 0),s++,r(i.value).Oa(a(o.length-1),t),i=n.next()}while(!i.done)}))},t}));var s=s||{},l=this||self,c=/^[\w+/_-]+[=]{0,2}$/,u=null;function d(){}function h(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function p(e){var t=h(e);return"array"==t||"object"==t&&"number"==typeof e.length}function f(e){return"function"==h(e)}function m(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function v(e){return Object.prototype.hasOwnProperty.call(e,g)&&e[g]||(e[g]=++y)}var g="closure_uid_"+(1e9*Math.random()>>>0),y=0;function b(e,t,n){return e.call.apply(e.bind,arguments)}function _(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function w(e,t,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:_).apply(null,arguments)}function k(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var E=Date.now||function(){return+new Date};function T(e,t){function n(){}n.prototype=t.prototype,e.Za=t.prototype,e.prototype=new n,e.prototype.constructor=e}function S(e,t,n){this.code=M+e,this.message=t||$[e]||"",this.a=n||null}function C(e){var t=e&&e.code;return t?new S(t.substring(M.length),e.message,e.serverResponse):null}T(S,Error),S.prototype.v=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},S.prototype.toJSON=function(){return this.v()};var x,M="auth/",$={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},L={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function P(e){for(var t in L)if(L[t].id===e)return{firebaseEndpoint:(e=L[t]).Ra,secureTokenEndpoint:e.Xa,identityPlatformEndpoint:e.Ua};return null}function O(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function D(e){if(Error.captureStackTrace)Error.captureStackTrace(this,D);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function I(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");D.call(this,n+e[r])}function A(e,t){throw new I("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function N(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function R(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function Y(){this.b=this.a=null}x=P("__EID__")?"__EID__":void 0,T(D,Error),D.prototype.name="CustomError",T(I,D),I.prototype.name="AssertionError",N.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var B=new N((function(){return new F}),(function(e){e.reset()}));function j(){var e=yt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function F(){this.next=this.b=this.a=null}Y.prototype.add=function(e,t){var n=B.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},F.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},F.prototype.reset=function(){this.next=this.b=this.a=null};var H=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},U=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};var z=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=[],i=0,a="string"==typeof e?e.split(""):e,o=0;o<n;o++)if(o in a){var s=a[o];t.call(void 0,s,o,e)&&(r[i++]=s)}return r},V=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),i="string"==typeof e?e.split(""):e,a=0;a<n;a++)a in i&&(r[a]=t.call(void 0,i[a],a,e));return r},q=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e))return!0;return!1};function W(e,t){return 0<=H(e,t)}function G(e,t){var n;return(n=0<=(t=H(e,t)))&&Array.prototype.splice.call(e,t,1),n}function K(e,t){!function(e,t){for(var n="string"==typeof e?e.split(""):e,r=e.length-1;0<=r;--r)r in n&&t.call(void 0,n[r],r,e)}(e,(function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0}))}function J(e){return Array.prototype.concat.apply([],arguments)}function X(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}var Q,Z=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=/</g,ne=/>/g,re=/"/g,ie=/'/g,ae=/\x00/g,oe=/[\x00&<>"']/;function se(e,t){return-1!=e.indexOf(t)}function le(e,t){return e<t?-1:e>t?1:0}e:{var ce=l.navigator;if(ce){var ue=ce.userAgent;if(ue){Q=ue;break e}}Q=""}function de(e){return se(Q,e)}function he(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function pe(e){for(var t in e)return!1;return!0}function fe(e){var t,n={};for(t in e)n[t]=e[t];return n}var me="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ve(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<me.length;a++)n=me[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ge(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||l).Element&&r.Location){var i=r;break e}}catch(e){}i=null}if(i&&void 0!==i[t]&&(!e||!(e instanceof i[t])&&(e instanceof i.Location||e instanceof i.Element))){if(m(e))try{var a=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){a="<object could not be stringified>"}else a=void 0===e?"undefined":null===e?"null":typeof e;A("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,a)}}function ye(e,t){this.a=e===we&&t||"",this.b=_e}function be(e){return e instanceof ye&&e.constructor===ye&&e.b===_e?e.a:(A("expected object of type Const, got '"+e+"'"),"type_error:Const")}ye.prototype.ra=!0,ye.prototype.qa=function(){return this.a},ye.prototype.toString=function(){return"Const{"+this.a+"}"};var _e={},we={},ke=new ye(we,"");function Ee(e,t){this.a=e===$e&&t||"",this.b=Me}function Te(e){return e instanceof Ee&&e.constructor===Ee&&e.b===Me?e.a:(A("expected object of type TrustedResourceUrl, got '"+e+"' of type "+h(e)),"type_error:TrustedResourceUrl")}function Se(e,t){var n=be(e);if(!xe.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Ce,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof ye?be(e):encodeURIComponent(String(e))})),new Ee($e,e)}Ee.prototype.ra=!0,Ee.prototype.qa=function(){return this.a.toString()},Ee.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ce=/%{(\w+)}/g,xe=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Me={},$e={};function Le(e,t){this.a=e===Ae&&t||"",this.b=Ie}function Pe(e){return e instanceof Le&&e.constructor===Le&&e.b===Ie?e.a:(A("expected object of type SafeUrl, got '"+e+"' of type "+h(e)),"type_error:SafeUrl")}Le.prototype.ra=!0,Le.prototype.qa=function(){return this.a.toString()},Le.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Oe=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function De(e){return e instanceof Le?e:(e="object"==typeof e&&e.ra?e.qa():String(e),Oe.test(e)||(e="about:invalid#zClosurez"),new Le(Ae,e))}var Ie={},Ae={};function Ne(){this.a="",this.b=Ye}function Re(e){return e instanceof Ne&&e.constructor===Ne&&e.b===Ye?e.a:(A("expected object of type SafeHtml, got '"+e+"' of type "+h(e)),"type_error:SafeHtml")}Ne.prototype.ra=!0,Ne.prototype.qa=function(){return this.a.toString()},Ne.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ye={};function Be(e){var t=new Ne;return t.a=e,t}Be("<!DOCTYPE html>");var je=Be("");function Fe(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function He(e){return oe.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(te,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(ne,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(re,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(ie,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(ae,"&#0;"))),e}function Ue(e){return Ue[" "](e),e}Be("<br>"),Ue[" "]=d;var ze,Ve,qe=de("Opera"),We=de("Trident")||de("MSIE"),Ge=de("Edge"),Ke=Ge||We,Je=de("Gecko")&&!(se(Q.toLowerCase(),"webkit")&&!de("Edge"))&&!(de("Trident")||de("MSIE"))&&!de("Edge"),Xe=se(Q.toLowerCase(),"webkit")&&!de("Edge");function Qe(){var e=l.document;return e?e.documentMode:void 0}e:{var Ze="",et=(Ve=Q,Je?/rv:([^\);]+)(\)|;)/.exec(Ve):Ge?/Edge\/([\d\.]+)/.exec(Ve):We?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Ve):Xe?/WebKit\/(\S+)/.exec(Ve):qe?/(?:Version)[ \/]?(\S+)/.exec(Ve):void 0);if(et&&(Ze=et?et[1]:""),We){var tt=Qe();if(null!=tt&&tt>parseFloat(Ze)){ze=String(tt);break e}}ze=Ze}var nt,rt={};function it(e){return function(e,t){var n=rt;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=Z(String(ze)).split("."),r=Z(String(e)).split("."),i=Math.max(n.length,r.length),a=0;0==t&&a<i;a++){var o=n[a]||"",s=r[a]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;t=le(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||le(0==o[2].length,0==s[2].length)||le(o[2],s[2]),o=o[3],s=s[3]}while(0==t)}return 0<=t}))}nt=l.document&&We?Qe():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Ve){}var at=!We||9<=Number(nt);function ot(e){var t=document;return"string"==typeof e?t.getElementById(e):e}function st(e,t){he(t,(function(t,n){t&&"object"==typeof t&&t.ra&&(t=t.qa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:ut.hasOwnProperty(n)?e.setAttribute(ut[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var lt,ct,ut={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function dt(e,t,n){function r(n){n&&t.appendChild("string"==typeof n?e.createTextNode(n):n)}for(var i=2;i<n.length;i++){var a=n[i];!p(a)||m(a)&&0<a.nodeType?r(a):U(pt(a)?X(a):a,r)}}function ht(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function pt(e){if(e&&"number"==typeof e.length){if(m(e))return"function"==typeof e.item||"string"==typeof e.item;if(f(e))return"function"==typeof e.item}return!1}function ft(e){l.setTimeout((function(){throw e}),0)}function mt(){var e=l.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!de("Presto")&&(e=function(){var e=ht(document,"IFRAME");e.style.display="none",function(e){var t=new Ee($e,be(ke));ge(e,"HTMLIFrameElement"),e.src=Te(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Re(je)),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=w((function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),void 0!==e&&!de("Trident")&&!de("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Db;n.Db=null,e()}},function(e){r.next={Db:e},r=r.next,t.port2.postMessage(0)}}return function(e){l.setTimeout(e,0)}}function vt(e,t){ct||function(){if(l.Promise&&l.Promise.resolve){var e=l.Promise.resolve(void 0);ct=function(){e.then(bt)}}else ct=function(){var e=bt;!f(l.setImmediate)||l.Window&&l.Window.prototype&&!de("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(lt||(lt=mt()),lt(e)):l.setImmediate(e)}}(),gt||(ct(),gt=!0),yt.add(e,t)}var gt=!1,yt=new Y;function bt(){for(var e;e=j();){try{e.a.call(e.b)}catch(e){ft(e)}R(B,e)}gt=!1}function _t(e,t){if(this.a=wt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){Dt(n,kt,e)}),(function(e){if(!(e instanceof jt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}Dt(n,Et,e)}))}catch(e){Dt(this,Et,e)}}var wt=0,kt=2,Et=3;function Tt(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Tt.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var St=new N((function(){return new Tt}),(function(e){e.reset()}));function Ct(e,t,n){var r=St.get();return r.g=e,r.b=t,r.f=n,r}function xt(e){if(e instanceof _t)return e;var t=new _t(d);return Dt(t,kt,e),t}function Mt(e){return new _t((function(t,n){n(e)}))}function $t(e,t,n){It(e,t,n,null)||vt(k(t,e))}function Lt(e){return new _t((function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,a){n--,r[e]=i?{Mb:!0,value:a}:{Mb:!1,reason:a},0==n&&t(r)},a=0;a<e.length;a++)$t(e[a],k(i,a,!0),k(i,a,!1));else t(r)}))}function Pt(e,t){e.b||e.a!=kt&&e.a!=Et||At(e),e.f?e.f.next=t:e.b=t,e.f=t}function Ot(e,t,n,r){var i=Ct(null,null,null);return i.a=new _t((function(e,a){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(e){a(e)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof jt?a(t):e(i)}catch(e){a(e)}}:a})),i.a.c=e,Pt(e,i),i.a}function Dt(e,t,n){e.a==wt&&(e===n&&(t=Et,n=new TypeError("Promise cannot resolve to itself")),e.a=1,It(n,e.Yc,e.Zc,e)||(e.i=n,e.a=t,e.c=null,At(e),t!=Et||n instanceof jt||function(e,t){e.g=!0,vt((function(){e.g&&Bt.call(null,t)}))}(e,n)))}function It(e,t,n,r){if(e instanceof _t)return Pt(e,Ct(t||d,n||null,r)),!0;if(O(e))return e.then(t,n,r),!0;if(m(e))try{var i=e.then;if(f(i))return function(e,t,n,r,i){function a(e){o||(o=!0,r.call(i,e))}var o=!1;try{t.call(e,(function(e){o||(o=!0,n.call(i,e))}),a)}catch(e){a(e)}}(e,i,t,n,r),!0}catch(e){return n.call(r,e),!0}return!1}function At(e){e.h||(e.h=!0,vt(e.ec,e))}function Nt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Rt(e,t,n,r){if(n==Et&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Yt(t,n,r);else try{t.c?t.g.call(t.f):Yt(t,n,r)}catch(e){Bt.call(null,e)}R(St,t)}function Yt(e,t,n){t==kt?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}_t.prototype.then=function(e,t,n){return Ot(this,f(e)?e:null,f(t)?t:null,n)},_t.prototype.$goog_Thenable=!0,(t=_t.prototype).ma=function(e,t){return(e=Ct(e,e,t)).c=!0,Pt(this,e),this},t.o=function(e,t){return Ot(this,null,e,t)},t.cancel=function(e){if(this.a==wt){var t=new jt(e);vt((function(){!function e(t,n){if(t.a==wt)if(t.c){var r=t.c;if(r.b){for(var i=0,a=null,o=null,s=r.b;s&&(s.c||(i++,s.a==t&&(a=s),!(a&&1<i)));s=s.next)a||(o=s);a&&(r.a==wt&&1==i?e(r,n):(o?((i=o).next==r.f&&(r.f=i),i.next=i.next.next):Nt(r),Rt(r,a,Et,n)))}t.c=null}else Dt(t,Et,n)}(this,t)}),this)}},t.Yc=function(e){this.a=wt,Dt(this,kt,e)},t.Zc=function(e){this.a=wt,Dt(this,Et,e)},t.ec=function(){for(var e;e=Nt(this);)Rt(this,e,this.a,this.i);this.h=!1};var Bt=ft;function jt(e){D.call(this,e)}function Ft(){0!=Ht&&(Ut[v(this)]=this),this.wa=this.wa,this.na=this.na}T(jt,D),jt.prototype.name="cancel";var Ht=0,Ut={};function zt(e){if(!e.wa&&(e.wa=!0,e.Ba(),0!=Ht)){var t=v(e);if(0!=Ht&&e.na&&0<e.na.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ut[t]}}Ft.prototype.wa=!1,Ft.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var Vt=Object.freeze||function(e){return e},qt=!We||9<=Number(nt),Wt=We&&!it("9"),Gt=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{l.addEventListener("test",d,t),l.removeEventListener("test",d,t)}catch(e){}return e}();function Kt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Jt(e,t){if(Kt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Je){e:{try{Ue(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Xt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Kt.prototype.preventDefault=function(){this.defaultPrevented=!0},T(Jt,Kt);var Xt=Vt({2:"touch",3:"pen",4:"mouse"});Jt.prototype.preventDefault=function(){Jt.Za.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Wt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},Jt.prototype.f=function(){return this.a};var Qt="closure_listenable_"+(1e6*Math.random()|0),Zt=0;function en(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Ta=i,this.key=++Zt,this.ua=this.Na=!1}function tn(e){e.ua=!0,e.listener=null,e.proxy=null,e.src=null,e.Ta=null}function nn(e){this.src=e,this.a={},this.b=0}function rn(e,t){var n=t.type;n in e.a&&G(e.a[n],t)&&(tn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function an(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.ua&&a.listener==t&&a.capture==!!n&&a.Ta==r)return i}return-1}nn.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.a[a])||(e=this.a[a]=[],this.b++);var o=an(e,t,r,i);return-1<o?(t=e[o],n||(t.Na=!1)):((t=new en(t,this.src,a,!!r,i)).Na=n,e.push(t)),t};var on="closure_lm_"+(1e6*Math.random()|0),sn={};function ln(e,t,n,r,i){if(r&&r.once)un(e,t,n,r,i);else if(Array.isArray(t))for(var a=0;a<t.length;a++)ln(e,t[a],n,r,i);else n=bn(n),e&&e[Qt]?wn(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!1,r,i)}function cn(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var o=m(i)?!!i.capture:!!i,s=gn(e);if(s||(e[on]=s=new nn(e)),!(n=s.add(t,n,r,o,a)).proxy){if(r=function(){var e=vn,t=qt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Gt||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(pn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function un(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)un(e,t[a],n,r,i);else n=bn(n),e&&e[Qt]?kn(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!0,r,i)}function dn(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)dn(e,t[a],n,r,i);else r=m(r)?!!r.capture:!!r,n=bn(n),e&&e[Qt]?(e=e.u,(t=String(t).toString())in e.a&&(-1<(n=an(a=e.a[t],n,r,i))&&(tn(a[n]),Array.prototype.splice.call(a,n,1),0==a.length&&(delete e.a[t],e.b--)))):e&&(e=gn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=an(t,n,r,i)),(n=-1<e?t[e]:null)&&hn(n))}function hn(e){if("number"!=typeof e&&e&&!e.ua){var t=e.src;if(t&&t[Qt])rn(t.u,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(pn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=gn(t))?(rn(n,e),0==n.b&&(n.src=null,t[on]=null)):tn(e)}}}function pn(e){return e in sn?sn[e]:sn[e]="on"+e}function fn(e,t,n,r){var i=!0;if((e=gn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var a=t[e];a&&a.capture==n&&!a.ua&&(a=mn(a,r),i=i&&!1!==a)}return i}function mn(e,t){var n=e.listener,r=e.Ta||e.src;return e.Na&&hn(e),n.call(r,t)}function vn(e,t){if(e.ua)return!0;if(!qt){if(!t)e:{t=["window","event"];for(var n=l,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(t=new Jt(r=t,this),n=!0,!(0>r.keyCode||null!=r.returnValue)){e:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(e){i=!0}(i||null==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=t.b;i;i=i.parentNode)r.push(i);for(e=e.type,i=r.length-1;0<=i;i--){t.b=r[i];var a=fn(r[i],e,!0,t);n=n&&a}for(i=0;i<r.length;i++)t.b=r[i],a=fn(r[i],e,!1,t),n=n&&a}return n}return mn(e,new Jt(t,this))}function gn(e){return(e=e[on])instanceof nn?e:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(e){return f(e)?e:(e[yn]||(e[yn]=function(t){return e.handleEvent(t)}),e[yn])}function _n(){Ft.call(this),this.u=new nn(this),this.Yb=this,this.eb=null}function wn(e,t,n,r,i){e.u.add(String(t),n,!1,r,i)}function kn(e,t,n,r,i){e.u.add(String(t),n,!0,r,i)}function En(e,t,n,r){if(!(t=e.u.a[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.ua&&o.capture==n){var s=o.listener,l=o.Ta||o.src;o.Na&&rn(e.u,o),i=!1!==s.call(l,r)&&i}}return i&&!r.defaultPrevented}function Tn(e,t,n){if(f(e))n&&(e=w(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=w(e.handleEvent,e)}return 2147483647<Number(t)?-1:l.setTimeout(e,t||0)}function Sn(e){var t=null;return new _t((function(n,r){-1==(t=Tn((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).o((function(e){throw l.clearTimeout(t),e}))}function Cn(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"==typeof e)return e.split("");if(p(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function xn(e){if(e.X&&"function"==typeof e.X)return e.X();if(!e.V||"function"!=typeof e.V){if(p(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function Mn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof Mn)for(n=e.X(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function $n(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Ln(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Ln(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Ln(e,t){return Object.prototype.hasOwnProperty.call(e,t)}T(_n,Ft),_n.prototype[Qt]=!0,_n.prototype.addEventListener=function(e,t,n,r){ln(this,e,t,n,r)},_n.prototype.removeEventListener=function(e,t,n,r){dn(this,e,t,n,r)},_n.prototype.dispatchEvent=function(e){var t,n=this.eb;if(n)for(t=[];n;n=n.eb)t.push(n);n=this.Yb;var r=e.type||e;if("string"==typeof e)e=new Kt(e,n);else if(e instanceof Kt)e.target=e.target||n;else{var i=e;ve(e=new Kt(r,n),i)}if(i=!0,t)for(var a=t.length-1;0<=a;a--){var o=e.b=t[a];i=En(o,r,!0,e)&&i}if(i=En(o=e.b=n,r,!0,e)&&i,i=En(o,r,!1,e)&&i,t)for(a=0;a<t.length;a++)i=En(o=e.b=t[a],r,!1,e)&&i;return i},_n.prototype.Ba=function(){if(_n.Za.Ba.call(this),this.u){var e,t=this.u;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)tn(n[r]);delete t.a[e],t.b--}}this.eb=null},(t=Mn.prototype).V=function(){$n(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},t.X=function(){return $n(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(e,t){return Ln(this.b,e)?this.b[e]:t},t.set=function(e,t){Ln(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},t.forEach=function(e,t){for(var n=this.X(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);e.call(t,a,i,this)}};var Pn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function On(e,t){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,e instanceof On?(this.h=void 0!==t?t:e.h,Dn(this,e.f),this.i=e.i,this.b=e.b,In(this,e.l),this.c=e.c,An(this,er(e.a)),this.g=e.g):e&&(n=String(e).match(Pn))?(this.h=!!t,Dn(this,n[1]||"",!0),this.i=jn(n[2]||""),this.b=jn(n[3]||"",!0),In(this,n[4]),this.c=jn(n[5]||"",!0),An(this,n[6]||"",!0),this.g=jn(n[7]||"")):(this.h=!!t,this.a=new Gn(null,this.h))}function Dn(e,t,n){e.f=n?jn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function In(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.l=t}else e.l=null}function An(e,t,n){t instanceof Gn?(e.a=t,function(e,t){t&&!e.f&&(Kn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Xn(this,t),Zn(this,n,e))}),e)),e.f=t}(e.a,e.h)):(n||(t=Fn(t,qn)),e.a=new Gn(t,e.h))}function Nn(e,t,n){e.a.set(t,n)}function Rn(e,t){return e.a.get(t)}function Yn(e){return e instanceof On?new On(e):new On(e,void 0)}function Bn(e,t){var n=new On(null,void 0);return Dn(n,"https"),e&&(n.b=e),t&&(n.c=t),n}function jn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Fn(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,Hn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Hn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}On.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Fn(t,Un,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.i)&&e.push(Fn(t,Un,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&e.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(Fn(n,"/"==n.charAt(0)?Vn:zn,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.g)&&e.push("#",Fn(n,Wn)),e.join("")},On.prototype.resolve=function(e){var t=new On(this),n=!!e.f;n?Dn(t,e.f):n=!!e.i,n?t.i=e.i:n=!!e.b,n?t.b=e.b:n=null!=e.l;var r=e.c;if(n)In(t,e.l);else if(n=!!e.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var i=t.c.lastIndexOf("/");-1!=i&&(r=t.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(se(i,"./")||se(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}r=a.join("/")}else r=i}return n?t.c=r:n=""!==e.a.toString(),n?An(t,er(e.a)):n=!!e.g,n&&(t.g=e.g),t};var Un=/[#\/\?@]/g,zn=/[#\?:]/g,Vn=/[#\?]/g,qn=/[#\?@]/g,Wn=/#/g;function Gn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Kn(e){e.a||(e.a=new Mn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Jn(e){var t=xn(e);if(void 0===t)throw Error("Keys are undefined");var n=new Gn(null,void 0);e=Cn(e);for(var r=0;r<t.length;r++){var i=t[r],a=e[r];Array.isArray(a)?Zn(n,i,a):n.add(i,a)}return n}function Xn(e,t){Kn(e),t=tr(e,t),Ln(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Ln((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&$n(e)))}function Qn(e,t){return Kn(e),t=tr(e,t),Ln(e.a.b,t)}function Zn(e,t,n){Xn(e,t),0<n.length&&(e.c=null,e.a.set(tr(e,t),X(n)),e.b+=n.length)}function er(e){var t=new Gn;return t.c=e.c,e.a&&(t.a=new Mn(e.a),t.b=e.b),t}function tr(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nr(e){var t=[];return function e(t,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var i=n;n=i.length,r.push("[");for(var a="",o=0;o<n;o++)r.push(a),e(t,i[o],r),a=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),a="",n)Object.prototype.hasOwnProperty.call(n,i)&&("function"!=typeof(o=n[i])&&(r.push(a),or(i,r),r.push(":"),e(t,o,r),a=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":or(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new rr,e,t),t.join("")}function rr(){}(t=Gn.prototype).add=function(e,t){Kn(this),this.c=null,e=tr(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(e,t){Kn(this),this.a.forEach((function(n,r){U(n,(function(n){e.call(t,n,r,this)}),this)}),this)},t.X=function(){Kn(this);for(var e=this.a.V(),t=this.a.X(),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},t.V=function(e){Kn(this);var t=[];if("string"==typeof e)Qn(this,e)&&(t=J(t,this.a.get(tr(this,e))));else{e=this.a.V();for(var n=0;n<e.length;n++)t=J(t,e[n])}return t},t.set=function(e,t){return Kn(this),this.c=null,Qn(this,e=tr(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},t.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.X(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.V(r);for(var a=0;a<r.length;a++){var o=i;""!==r[a]&&(o+="="+encodeURIComponent(String(r[a]))),e.push(o)}}return this.c=e.join("&")};var ir={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ar=/\uffff/.test("￿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function or(e,t){t.push('"',e.replace(ar,(function(e){var t=ir[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ir[e]=t),t})),'"')}function sr(){var e=Cr();return We&&!!nt&&11==nt||/Edge\/\d+/.test(e)}function lr(){return l.window&&l.window.location.href||self&&self.location&&self.location.href||""}function cr(e,t){t=t||l.window;var n="about:blank";e&&(n=Pe(De(e))),t.location.href=n}function ur(e){return!!((e=(e||Cr()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function dr(e){e=e||l.window;try{e.close()}catch(e){}}function hr(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,a=(window.screen.availWidth-t)/2;for(o in t={width:t,height:n,top:0<i?i:0,left:0<a?a:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Cr().toLowerCase(),r&&(t.target=r,se(n,"crios/")&&(t.target="_blank")),Er(Cr())==wr&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Le?n:De(void 0!==n.href?n.href:String(n)),n=e.target||n.target,i=[],e)switch(o){case"width":case"height":case"top":case"left":i.push(o+"="+e[o]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(o+"="+(e[o]?1:0))}var o=i.join(",");if((de("iPhone")&&!de("iPod")&&!de("iPad")||de("iPad")||de("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ge(o=ht(document,"A"),"HTMLAnchorElement"),t instanceof Le||t instanceof Le||(t="object"==typeof t&&t.ra?t.qa():String(t),Oe.test(t)||(t="about:invalid#zClosurez"),t=new Le(Ae,t)),o.href=Pe(t),o.setAttribute("target",n),e.noreferrer&&o.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),o.dispatchEvent(e),o={}):e.noreferrer?(o=r.open("",n,o),e=Pe(t),o&&(Ke&&se(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),o.opener=null,e=Be('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+He(e)+'">'),r=o.document)&&(r.write(Re(e)),r.close())):(o=r.open(Pe(t),n,o))&&e.noopener&&(o.opener=null),o)try{o.focus()}catch(e){}return o}var pr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,fr=/^[^@]+@[^@]+$/;function mr(){var e=null;return new _t((function(t){"complete"==l.document.readyState?t():(e=function(){t()},un(window,"load",e))})).o((function(t){throw dn(window,"load",e),t}))}function vr(e){return e=e||Cr(),!("file:"!==Pr()&&"ionic:"!==Pr()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function gr(){var e=l.window;try{return!(!e||e==e.top)}catch(e){return!1}}function yr(){return void 0!==l.WorkerGlobalScope&&"function"==typeof l.importScripts}function br(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":yr()?"Worker":"Browser"}function _r(){var e=br();return"ReactNative"===e||"Node"===e}var wr="Firefox",kr="Chrome";function Er(e){var t=e.toLowerCase();return se(t,"opera/")||se(t,"opr/")||se(t,"opios/")?"Opera":se(t,"iemobile")?"IEMobile":se(t,"msie")||se(t,"trident/")?"IE":se(t,"edge/")?"Edge":se(t,"firefox/")?wr:se(t,"silk/")?"Silk":se(t,"blackberry")?"Blackberry":se(t,"webos")?"Webos":!se(t,"safari/")||se(t,"chrome/")||se(t,"crios/")||se(t,"android")?!se(t,"chrome/")&&!se(t,"crios/")||se(t,"edge/")?se(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":kr:"Safari"}var Tr={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Sr(e,t){t=t||[];var n,r=[],i={};for(n in Tr)i[Tr[n]]=!0;for(n=0;n<t.length;n++)void 0!==i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=br())?r=Er(i=Cr()):"Worker"===r&&(r=Er(i=Cr())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function Cr(){return l.navigator&&l.navigator.userAgent||""}function xr(e,t){e=e.split("."),t=t||l;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function Mr(){try{var e=l.localStorage,t=Nr();if(e)return e.setItem(t,"1"),e.removeItem(t),!sr()||!!l.indexedDB}catch(e){return yr()&&!!l.indexedDB}return!1}function $r(){return(Lr()||"chrome-extension:"===Pr()||vr())&&!_r()&&Mr()&&!yr()}function Lr(){return"http:"===Pr()||"https:"===Pr()}function Pr(){return l.location&&l.location.protocol||null}function Or(e){return!ur(e=e||Cr())&&Er(e)!=wr}function Dr(e){return void 0===e?null:nr(e)}function Ir(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Ar(e){if(null!==e)return JSON.parse(e)}function Nr(e){return e||Math.floor(1e9*Math.random()).toString()}function Rr(e){return"Safari"!=Er(e=e||Cr())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Yr(){var e=l.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function Br(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=Cr(),t=br(),this.b=ur(e)||"ReactNative"===t}function jr(){var e=l.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function Fr(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function Hr(){return!(!xr("fireauth.oauthhelper",l)&&!xr("fireauth.iframe",l))}Br.prototype.get=function(){var e=l.navigator;return!e||"boolean"!=typeof e.onLine||!Lr()&&"chrome-extension:"!==Pr()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Ur,zr={};function Vr(e){zr[e]||(zr[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var qr={};Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:2}),Ur=2==qr.abcd}catch(Ve){Ur=!1}function Wr(e,t,n){Ur?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Gr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Wr(e,n,t[n])}function Kr(e){var t={};return Gr(t,e),t}function Jr(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Wr(t,n,Jr(e[n]));return t}function Xr(e){var t=e&&(e[ni]?"phone":null);if(!(t&&e&&e[ti]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Wr(this,"uid",e[ti]),Wr(this,"displayName",e[Zr]||null);var n=null;e[ei]&&(n=new Date(e[ei]).toUTCString()),Wr(this,"enrollmentTime",n),Wr(this,"factorId",t)}function Qr(e){try{var t=new ri(e)}catch(e){t=null}return t}Xr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Zr="displayName",ei="enrolledAt",ti="mfaEnrollmentId",ni="phoneInfo";function ri(e){Xr.call(this,e),Wr(this,"phoneNumber",e[ni])}function ii(e){var t={},n=e[li],r=e[ui],i=e[di];if(e=Qr(e[ci]),!i||i!=oi&&i!=si&&!n||i==si&&!r||i==ai&&!e)throw Error("Invalid checkActionCode response!");i==si?(t[pi]=n||null,t[mi]=n||null,t[hi]=r):(t[pi]=r||null,t[mi]=r||null,t[hi]=n||null),t[fi]=e||null,Wr(this,gi,i),Wr(this,vi,Jr(t))}T(ri,Xr),ri.prototype.v=function(){var e=ri.Za.v.call(this);return e.phoneNumber=this.phoneNumber,e};var ai="REVERT_SECOND_FACTOR_ADDITION",oi="EMAIL_SIGNIN",si="VERIFY_AND_CHANGE_EMAIL",li="email",ci="mfaInfo",ui="newEmail",di="requestType",hi="email",pi="fromEmail",fi="multiFactorInfo",mi="previousEmail",vi="data",gi="operation";function yi(e){var t=Rn(e=Yn(e),bi)||null,n=Rn(e,_i)||null,r=Rn(e,Ei)||null;if(r=r&&Si[r]||null,!t||!n||!r)throw new S("argument-error",bi+", "+_i+"and "+Ei+" are required in a valid action code URL.");Gr(this,{apiKey:t,operation:r,code:n,continueUrl:Rn(e,wi)||null,languageCode:Rn(e,ki)||null,tenantId:Rn(e,Ti)||null})}var bi="apiKey",_i="oobCode",wi="continueUrl",ki="languageCode",Ei="mode",Ti="tenantId",Si={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ai,signIn:oi,verifyAndChangeEmail:si,verifyEmail:"VERIFY_EMAIL"};function Ci(e){try{return new yi(e)}catch(e){return null}}function xi(e){var t=e[Oi];if(void 0===t)throw new S("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new S("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[Mi];if(n&&"object"==typeof n){t=n[Ai];var r=n[Di];if(n=n[Ii],"string"==typeof t&&t.length){if(this.a=t,void 0!==r&&"boolean"!=typeof r)throw new S("argument-error",Di+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new S("argument-error",Ii+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new S("argument-error",Ai+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new S("missing-android-pkg-name")}}else if(void 0!==n)throw new S("argument-error",Mi+" property must be a non null object when specified.");if(this.f=null,(t=e[Pi])&&"object"==typeof t){if("string"==typeof(t=t[Ni])&&t.length)this.f=t;else if(void 0!==t)throw new S("argument-error",Ni+" property must be a non empty string when specified.")}else if(void 0!==t)throw new S("argument-error",Pi+" property must be a non null object when specified.");if(void 0!==(t=e[Li])&&"boolean"!=typeof t)throw new S("argument-error",Li+" property must be a boolean when specified.");if(this.c=!!t,void 0!==(e=e[$i])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new S("argument-error",$i+" property must be a non empty string when specified.");this.i=e||null}var Mi="android",$i="dynamicLinkDomain",Li="handleCodeInApp",Pi="iOS",Oi="url",Di="installApp",Ii="minimumVersion",Ai="packageName",Ni="bundleId";function Ri(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var Yi=null;function Bi(e){var t="";return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=Yi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!Yi){Yi={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=e.concat(t[n].split("")),i=0;i<r.length;i++){var a=r[i];void 0===Yi[a]&&(Yi[a]=i)}}}();for(var r=0;;){var i=n(-1),a=n(0),o=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|a>>4),64!=o&&(t(a<<4&240|o>>2),64!=s&&t(o<<6&192|s))}}(e,(function(e){t+=String.fromCharCode(e)})),t}function ji(e){var t=Hi(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.g=e,this.c=t.exp,this.h=t.sub,E(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Fi(e){try{return new ji(e)}catch(e){return null}}function Hi(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Bi(e))}catch(e){}return null}ji.prototype.S=function(){return this.f},ji.prototype.i=function(){return this.b},ji.prototype.toString=function(){return this.g};var Ui="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),zi=["client_id","response_type","scope","redirect_uri","state"],Vi={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:zi},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:zi},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:zi},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Ui},gd:{Ha:"locale",ta:600,sa:600,ea:"apple.com",Va:[]}};function qi(e){for(var t in Vi)if(Vi[t].ea==e)return Vi[t];return null}function Wi(e){var t={};t["facebook.com"]=Qi,t["google.com"]=ea,t["github.com"]=Zi,t["twitter.com"]=ta;var n=e&&e[Ki];try{if(n)return t[n]?new t[n](e):new Xi(e);if(void 0!==e[Gi])return new Ji(e)}catch(e){}return null}var Gi="idToken",Ki="providerId";function Ji(e){var t=e[Ki];if(!t&&e[Gi]){var n=Fi(e[Gi]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Wr(this,"providerId",t),Wr(this,"isNewUser",n)}function Xi(e){Ji.call(this,e),Wr(this,"profile",Jr((e=Ar(e.rawUserInfo||"{}"))||{}))}function Qi(e){if(Xi.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Zi(e){if(Xi.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",this.profile&&this.profile.login||null)}function ea(e){if(Xi.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ta(e){if(Xi.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",e.screenName||null)}function na(e){var t=Yn(e),n=Rn(t,"link"),r=Rn(Yn(n),"link");return t=Rn(t,"deep_link_id"),Rn(Yn(t),"link")||t||r||n||e}function ra(e,t){if(!e&&!t)throw new S("internal-error","Internal assert: no raw session string available");if(e&&t)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?ia:aa}T(Xi,Ji),T(Qi,Xi),T(Zi,Xi),T(ea,Xi),T(ta,Xi);var ia="enroll",aa="signin";function oa(){}function sa(e,t){return e.then((function(e){if(e[Ko]){var n=Fi(e[Ko]);if(!n||t!=n.h)throw new S("user-mismatch");return e}throw new S("user-mismatch")})).o((function(e){throw e&&e.code&&e.code==M+"user-not-found"?new S("user-mismatch"):e}))}function la(e,t){if(!t)throw new S("internal-error","failed to construct a credential");this.a=t,Wr(this,"providerId",e),Wr(this,"signInMethod",e)}function ca(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function ua(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new la(e.providerId,e.pendingToken)}catch(e){}return null}function da(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Wr(this,"idToken",t.idToken),t.accessToken&&Wr(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Wr(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Wr(this,"accessToken",t.oauthToken),Wr(this,"secret",t.oauthTokenSecret)}Wr(this,"providerId",e),Wr(this,"signInMethod",n)}function ha(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Jn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function pa(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new da(e.providerId,t,e.signInMethod)}catch(e){}}return null}function fa(e,t){this.Oc=t||[],Gr(this,{providerId:e,isOAuthProvider:!0}),this.Fb={},this.lb=(qi(e)||{}).Ha||null,this.kb=null}function ma(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');fa.call(this,e,[])}function va(e){fa.call(this,e,zi),this.a=[]}function ga(){va.call(this,"facebook.com")}function ya(e){if(!e)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new ga).credential({accessToken:t})}function ba(){va.call(this,"github.com")}function _a(e){if(!e)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new ba).credential({accessToken:t})}function wa(){va.call(this,"google.com"),this.Aa("profile")}function ka(e,t){var n=e;return m(e)&&(n=e.idToken,t=e.accessToken),(new wa).credential({idToken:n,accessToken:t})}function Ea(){fa.call(this,"twitter.com",Ui)}function Ta(e,t){var n=e;if(m(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new da("twitter.com",n,"twitter.com")}function Sa(e,t,n){this.a=e,this.f=t,Wr(this,"providerId","password"),Wr(this,"signInMethod",n===xa.EMAIL_LINK_SIGN_IN_METHOD?xa.EMAIL_LINK_SIGN_IN_METHOD:xa.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Ca(e){return e&&e.email&&e.password?new Sa(e.email,e.password,e.signInMethod):null}function xa(){Gr(this,{providerId:"password",isOAuthProvider:!1})}function Ma(e,t){if(!(t=$a(t)))throw new S("argument-error","Invalid email link!");return new Sa(e,t.code,xa.EMAIL_LINK_SIGN_IN_METHOD)}function $a(e){return(e=Ci(e=na(e)))&&e.operation===oi?e:null}function La(e){if(!(e.bb&&e.ab||e.Ja&&e.da))throw new S("internal-error");this.a=e,Wr(this,"providerId","phone"),this.ea="phone",Wr(this,"signInMethod","phone")}function Pa(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return U(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new La(t)}return null}function Oa(e){return e.a.Ja&&e.a.da?{temporaryProof:e.a.Ja,phoneNumber:e.a.da}:{sessionInfo:e.a.bb,code:e.a.ab}}function Da(e){try{this.a=e||r.a.auth()}catch(e){throw new S("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Gr(this,{providerId:"phone",isOAuthProvider:!1})}function Ia(e,t){if(!e)throw new S("missing-verification-id");if(!t)throw new S("missing-verification-code");return new La({bb:e,ab:t})}function Aa(e){if(e.temporaryProof&&e.phoneNumber)return new La({Ja:e.temporaryProof,da:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret,i=e&&e.nonce,a=e&&e.oauthIdToken,o=e&&e.pendingToken;try{switch(t){case"google.com":return ka(a,n);case"facebook.com":return ya(n);case"github.com":return _a(n);case"twitter.com":return Ta(n,r);default:return n||r||a||o?o?0==t.indexOf("saml.")?new la(t,o):new da(t,{pendingToken:o,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new va(t).credential({idToken:a,accessToken:n,rawNonce:i}):null}}catch(e){return null}}function Na(e){if(!e.isOAuthProvider)throw new S("invalid-oauth-provider")}function Ra(e,t,n,r,i,a,o){if(this.c=e,this.b=t||null,this.g=n||null,this.f=r||null,this.i=a||null,this.h=o||null,this.a=i||null,!this.g&&!this.a)throw new S("invalid-auth-event");if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function Ya(e){return(e=e||{}).type?new Ra(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&C(e.error),e.postBody,e.tenantId):null}function Ba(){this.b=null,this.a=[]}ra.prototype.Fa=function(){return this.a?xt(this.a):xt(this.b)},ra.prototype.v=function(){return this.type==ia?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},oa.prototype.ia=function(){},oa.prototype.b=function(){},oa.prototype.c=function(){},oa.prototype.v=function(){},la.prototype.ia=function(e){return ms(e,ca(this))},la.prototype.b=function(e,t){var n=ca(this);return n.idToken=t,vs(e,n)},la.prototype.c=function(e,t){return sa(gs(e,ca(this)),t)},la.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},da.prototype.ia=function(e){return ms(e,ha(this))},da.prototype.b=function(e,t){var n=ha(this);return n.idToken=t,vs(e,n)},da.prototype.c=function(e,t){return sa(gs(e,ha(this)),t)},da.prototype.v=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},fa.prototype.Ia=function(e){return this.Fb=fe(e),this},T(ma,fa),T(va,fa),va.prototype.Aa=function(e){return W(this.a,e)||this.a.push(e),this},va.prototype.Nb=function(){return X(this.a)},va.prototype.credential=function(e,t){var n;if(!(n=m(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new da(this.providerId,n,this.providerId)},T(ga,va),Wr(ga,"PROVIDER_ID","facebook.com"),Wr(ga,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),T(ba,va),Wr(ba,"PROVIDER_ID","github.com"),Wr(ba,"GITHUB_SIGN_IN_METHOD","github.com"),T(wa,va),Wr(wa,"PROVIDER_ID","google.com"),Wr(wa,"GOOGLE_SIGN_IN_METHOD","google.com"),T(Ea,fa),Wr(Ea,"PROVIDER_ID","twitter.com"),Wr(Ea,"TWITTER_SIGN_IN_METHOD","twitter.com"),Sa.prototype.ia=function(e){return this.signInMethod==xa.EMAIL_LINK_SIGN_IN_METHOD?Qs(e,Ss,{email:this.a,oobCode:this.f}):Qs(e,Ws,{email:this.a,password:this.f})},Sa.prototype.b=function(e,t){return this.signInMethod==xa.EMAIL_LINK_SIGN_IN_METHOD?Qs(e,Cs,{idToken:t,email:this.a,oobCode:this.f}):Qs(e,Bs,{idToken:t,email:this.a,password:this.f})},Sa.prototype.c=function(e,t){return sa(this.ia(e),t)},Sa.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Gr(xa,{PROVIDER_ID:"password"}),Gr(xa,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Gr(xa,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),La.prototype.ia=function(e){return e.cb(Oa(this))},La.prototype.b=function(e,t){var n=Oa(this);return n.idToken=t,Qs(e,Ks,n)},La.prototype.c=function(e,t){var n=Oa(this);return n.operation="REAUTH",sa(e=Qs(e,Js,n),t)},La.prototype.v=function(){var e={providerId:"phone"};return this.a.bb&&(e.verificationId=this.a.bb),this.a.ab&&(e.verificationCode=this.a.ab),this.a.Ja&&(e.temporaryProof=this.a.Ja),this.a.da&&(e.phoneNumber=this.a.da),e},Da.prototype.cb=function(e,t){var n=this.a.b;return xt(t.verify()).then((function(r){if("string"!=typeof r)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":var i=m(e)?e.session:null,a=m(e)?e.phoneNumber:e;return(i&&i.type==ia?i.Fa().then((function(e){return function(e,t){return Qs(e,Fs,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:r}})})):i&&i.type==aa?i.Fa().then((function(t){return function(e,t){return Qs(e,Hs,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(e,t){return Qs(e,Rs,t)}(n,{phoneNumber:a,recaptchaToken:r})).then((function(e){return"function"==typeof t.reset&&t.reset(),e}),(function(e){throw"function"==typeof t.reset&&t.reset(),e}));default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Gr(Da,{PROVIDER_ID:"phone"}),Gr(Da,{PHONE_SIGN_IN_METHOD:"phone"}),Ra.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},Ra.prototype.S=function(){return this.h},Ra.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var ja,Fa=null;function Ha(e){var t="unauthorized-domain",n=void 0,r=Yn(e);e=r.b,"chrome-extension"==(r=r.f)?n=Fe("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=Fe("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",S.call(this,t,n)}function Ua(e,t,n){S.call(this,e,n),(e=t||{}).Gb&&Wr(this,"email",e.Gb),e.da&&Wr(this,"phoneNumber",e.da),e.credential&&Wr(this,"credential",e.credential),e.Wb&&Wr(this,"tenantId",e.Wb)}function za(e){if(e.code){var t=e.code||"";0==t.indexOf(M)&&(t=t.substring(M.length));var n={credential:Aa(e),Wb:e.tenantId};if(e.email)n.Gb=e.email;else if(e.phoneNumber)n.da=e.phoneNumber;else if(!n.credential)return new S(t,e.message||void 0);return new Ua(t,n,e.message)}return null}function Va(){}function qa(e){return e.c||(e.c=e.b())}function Wa(){}function Ga(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Ka(){}function Ja(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.oc,this),this.a.onerror=w(this.Pb,this),this.a.onprogress=w(this.pc,this),this.a.ontimeout=w(this.tc,this)}function Xa(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function Qa(e,t,n){this.reset(e,t,n,void 0,void 0)}T(Ha,S),T(Ua,S),Ua.prototype.v=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.v();return t&&ve(e,t),e},Ua.prototype.toJSON=function(){return this.v()},Va.prototype.c=null,T(Wa,Va),Wa.prototype.a=function(){var e=Ga(this);return e?new ActiveXObject(e):new XMLHttpRequest},Wa.prototype.b=function(){var e={};return Ga(this)&&(e[0]=!0,e[1]=!0),e},ja=new Wa,T(Ka,Va),Ka.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Ja;throw Error("Unsupported browser")},Ka.prototype.b=function(){return{}},(t=Ja.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},t.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},t.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Xa(this,4)},t.Pb=function(){this.status=500,this.response=this.responseText="",Xa(this,4)},t.tc=function(){this.Pb()},t.pc=function(){this.status=200,Xa(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Qa.prototype.a=null;function Za(e){this.f=e,this.b=this.c=this.a=null}function eo(e,t){this.name=e,this.value=t}Qa.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||E(),delete this.a},eo.prototype.toString=function(){return this.name};var to=new eo("SEVERE",1e3),no=new eo("WARNING",900),ro=new eo("CONFIG",700),io=new eo("FINE",500);Za.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(A("Root logger has no level set."),null)}(this).value)for(f(t)&&(t=t()),e=new Qa(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var ao={},oo=null;function so(e){var t;if(oo||(oo=new Za(""),ao[""]=oo,oo.c=ro),!(t=ao[e])){t=new Za(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=so(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,ao[e]=t}return t}function lo(e,t){e&&e.log(io,t,void 0)}function co(e){this.f=e}function uo(e){_n.call(this),this.s=e,this.readyState=ho,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=so("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}T(co,Va),co.prototype.a=function(){return new uo(this.f)},co.prototype.b=function(e){return function(){return e}}({}),T(uo,_n);var ho=0;function po(e){e.c.read().then(e.nc.bind(e)).catch(e.Sa.bind(e))}function fo(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,mo(e)}function mo(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function vo(e){_n.call(this),this.headers=new Mn,this.D=e||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=go,this.w=this.R=!1}(t=uo.prototype).open=function(e,t){if(this.readyState!=ho)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,mo(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};e&&(t.body=e),this.s.fetch(new Request(this.g,t)).then(this.sc.bind(this),this.Sa.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,fo(this,!1)),this.readyState=ho},t.sc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,mo(this)),this.a&&(this.readyState=3,mo(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==l.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,po(this)):e.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?fo(this,!0):mo(this),3==this.readyState&&po(this)}},t.rc=function(e){this.a&&(this.response=this.responseText=e,fo(this,!0))},t.qc=function(e){this.a&&(this.response=e,fo(this,!0))},t.Sa=function(e){var t=this.h;t&&t.log(no,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&fo(this,!0)},t.setRequestHeader=function(e,t){this.i.append(e,t)},t.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(no,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(no,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},T(vo,_n);var go="";vo.prototype.b=so("goog.net.XhrIo");var yo=/^https?$/i,bo=["POST","PUT"];function _o(e,t,n,r,i){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.N=!1,e.c=!0,e.a=e.D?e.D.a():ja.a(),e.B=e.D?qa(e.D):qa(ja),e.a.onreadystatechange=w(e.Sb,e);try{lo(e.b,$o(e,"Opening Xhr")),e.O=!0,e.a.open(n,String(t),!0),e.O=!1}catch(t){return lo(e.b,$o(e,"Error opening Xhr: "+t.message)),void ko(e,t)}t=r||"";var a=new Mn(e.headers);i&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(p(e)||"string"==typeof e)U(e,t,void 0);else for(var n=xn(e),r=Cn(e),i=r.length,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}(i,(function(e,t){a.set(t,e)})),i=function(e){e:{for(var t=wo,n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"==typeof e?e.charAt(t):e[t]}(a.X()),r=l.FormData&&t instanceof l.FormData,!W(bo,n)||i||r||a.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),a.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{Co(e),0<e.g&&(e.w=function(e){return We&&it(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),lo(e.b,$o(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.w)),e.w?(e.a.timeout=e.g,e.a.ontimeout=w(e.Ka,e)):e.s=Tn(e.Ka,e.g,e)),lo(e.b,$o(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){lo(e.b,$o(e,"Send error: "+t.message)),ko(e,t)}}function wo(e){return"content-type"==e.toLowerCase()}function ko(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Eo(e),So(e)}function Eo(e){e.N||(e.N=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function To(e){if(e.c&&void 0!==s)if(e.B[1]&&4==xo(e)&&2==Mo(e))lo(e.b,$o(e,"Local request error detected and ignored"));else if(e.i&&4==xo(e))Tn(e.Sb,0,e);else if(e.dispatchEvent("readystatechange"),4==xo(e)){lo(e.b,$o(e,"Request complete")),e.c=!1;try{var t,n=Mo(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var a=String(e.l).match(Pn)[1]||null;if(!a&&l.self&&l.self.location){var o=l.self.location.protocol;a=o.substr(0,o.length-1)}i=!yo.test(a?a.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<xo(e)?e.a.statusText:""}catch(t){lo(e.b,"Can not get status: "+t.message),c=""}e.h=c+" ["+Mo(e)+"]",Eo(e)}}finally{So(e)}}}function So(e,t){if(e.a){Co(e);var n=e.a,r=e.B[0]?d:null;e.a=null,e.B=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){(e=e.b)&&e.log(to,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function Co(e){e.a&&e.w&&(e.a.ontimeout=null),e.s&&(l.clearTimeout(e.s),e.s=null)}function xo(e){return e.a?e.a.readyState:0}function Mo(e){try{return 2<xo(e)?e.a.status:-1}catch(e){return-1}}function $o(e,t){return t+" ["+e.P+" "+e.l+" "+Mo(e)+"]"}function Lo(e){var t=Fo;this.g=[],this.w=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function Po(e,t,n){e.a=!0,e.c=n,e.f=!t,Ao(e)}function Oo(e){if(e.a){if(!e.u)throw new No(e);e.u=!1}}function Do(e,t,n,r){e.g.push([t,n,r]),e.a&&Ao(e)}function Io(e){return q(e.g,(function(e){return f(e[1])}))}function Ao(e){if(e.h&&e.a&&Io(e)){var t=e.h,n=Bo[t];n&&(l.clearTimeout(n.a),delete Bo[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var i=e.g.shift(),a=i[0],o=i[1];if(i=i[2],a=e.f?o:a)try{var s=a.call(i||e.s,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(O(t)||"function"==typeof l.Promise&&t instanceof l.Promise)&&(r=!0,e.i=!0)}catch(r){t=r,e.f=!0,Io(e)||(n=!0)}}e.c=t,r&&(s=w(e.m,e,!0),r=w(e.m,e,!1),t instanceof Lo?(Do(t,s,r),t.B=!0):t.then(s,r)),n&&(t=new Yo(t),Bo[t.a]=t,e.h=t.a)}function No(){D.call(this)}function Ro(){D.call(this)}function Yo(e){this.a=l.setTimeout(w(this.c,this),0),this.b=e}(t=vo.prototype).Ka=function(){void 0!==s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",lo(this.b,$o(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(lo(this.b,$o(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),So(this))},t.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),So(this,!0)),vo.Za.Ba.call(this)},t.Sb=function(){this.wa||(this.O||this.i||this.f?To(this):this.Hc())},t.Hc=function(){To(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case go:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(to,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return lo(this.b,"Can not get response: "+e.message),null}},Lo.prototype.cancel=function(e){if(this.a)this.c instanceof Lo&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(e=new Ro(this),Oo(this),Po(this,!1,e))}},Lo.prototype.m=function(e,t){this.i=!1,Po(this,e,t)},Lo.prototype.then=function(e,t,n){var r,i,a=new _t((function(e,t){r=e,i=t}));return Do(this,r,(function(e){e instanceof Ro?a.cancel():i(e)})),a.then(e,t,n)},Lo.prototype.$goog_Thenable=!0,T(No,D),No.prototype.message="Deferred has already fired",No.prototype.name="AlreadyCalledError",T(Ro,D),Ro.prototype.message="Deferred was canceled",Ro.prototype.name="CanceledError",Yo.prototype.c=function(){throw delete Bo[this.a],this.b};var Bo={};function jo(e){var t={},n=t.document||document,r=Te(e).toString(),i=ht(document,"SCRIPT"),a={Tb:i,Ka:void 0},o=new Lo(a),s=null,d=null!=t.timeout?t.timeout:5e3;return 0<d&&(s=window.setTimeout((function(){Ho(i,!0);var e=new Vo(zo,"Timeout reached for loading script "+r);Oo(o),Po(o,!1,e)}),d),a.Ka=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(Ho(i,t.ud||!1,s),Oo(o),Po(o,!0,null))},i.onerror=function(){Ho(i,!0,s);var e=new Vo(Uo,"Error while loading script "+r);Oo(o),Po(o,!1,e)},ve(a=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),st(i,a),function(e,t){ge(e,"HTMLScriptElement"),e.src=Te(t),null===u&&(u=(t=(t=l.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""),(t=u)&&e.setAttribute("nonce",t)}(i,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(i),o}function Fo(){if(this&&this.Tb){var e=this.Tb;e&&"SCRIPT"==e.tagName&&Ho(e,!0,this.Ka)}}function Ho(e,t,n){null!=n&&l.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var Uo=0,zo=1;function Vo(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),D.call(this,n),this.code=e}function qo(e){this.f=e}function Wo(e,t,n){if(this.c=e,e=t||{},this.u=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||Jo,this.g=fe(e.secureTokenHeaders||Xo),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=e.firebaseTimeout||Qo,this.a=fe(e.firebaseHeaders||Zo),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==br(),!(n=l.XMLHttpRequest||n&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!yr())throw new S("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yr()?this.f=new co(self):_r()?this.f=new qo(n):this.f=new Ka,this.b=null}T(Vo,D),T(qo,Va),qo.prototype.a=function(){return new this.f},qo.prototype.b=function(){return{}};var Go,Ko="idToken",Jo=new Br(3e4,6e4),Xo={"Content-Type":"application/x-www-form-urlencoded"},Qo=new Br(3e4,6e4),Zo={"Content-Type":"application/json"};function es(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function ts(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function ns(e,t,n,r,i,a,o){(function(){var e=Cr();return!((e=Er(e)!=kr?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!We||!nt||9<nt)})()||yr()?e=w(e.w,e):(Go||(Go=new _t((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{l[is]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){Do(e,null,t,void 0)}(jo(Se(rs,{onload:is})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=w(e.s,e)),e(t,n,r,i,a,o)}Wo.prototype.S=function(){return this.b},Wo.prototype.w=function(e,t,n,r,i,a){if(yr()&&(void 0===l.fetch||void 0===l.Headers||void 0===l.Request))throw new S("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var o=new vo(this.f);if(a){o.g=Math.max(0,a);var s=setTimeout((function(){o.dispatchEvent("timeout")}),a)}wn(o,"complete",(function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return lo(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(t){e=null}t&&t(e)})),kn(o,"ready",(function(){s&&clearTimeout(s),zt(this)})),kn(o,"timeout",(function(){s&&clearTimeout(s),zt(this),t&&t(null)})),_o(o,e,n,r,i)};var rs=new ye(we,"https://apis.google.com/js/client.js?onload=%{onload}"),is="__fcb"+Math.floor(1e6*Math.random()).toString();function as(e,t,n,r,i,a,o){var s=Yn(t+n);Nn(s,"key",e.c),o&&Nn(s,"cb",E().toString());var l="GET"==r;if(l)for(var c in i)i.hasOwnProperty(c)&&Nn(s,c,i[c]);return new _t((function(t,n){ns(e,s.toString(),(function(e){e?e.error?n(el(e,a||{})):t(e):n(new S("network-request-failed"))}),r,l?void 0:nr(Ir(i)),e.a,e.i.get())}))}function os(e){if("string"!=typeof(e=e.email)||!fr.test(e))throw new S("invalid-email")}function ss(e){"email"in e&&os(e)}function ls(e){if(!e[Ko]){if(e.mfaPendingCredential)throw new S("multi-factor-auth-required",null,fe(e));throw new S("internal-error")}}function cs(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new S("internal-error")}else{if(!e.sessionInfo)throw new S("missing-verification-id");if(!e.code)throw new S("missing-verification-code")}}Wo.prototype.s=function(e,t,n,r,i){var a=this;Go.then((function(){window.gapi.client.setApiKey(a.c);var o=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(o),t&&t(e)}})})).o((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},Wo.prototype.vb=function(){return Qs(this,js,{})},Wo.prototype.xb=function(e,t){return Qs(this,Ys,{idToken:e,email:t})},Wo.prototype.yb=function(e,t){return Qs(this,Bs,{idToken:e,password:t})};var us={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ds(e){if(!e.phoneVerificationInfo)throw new S("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new S("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new S("missing-verification-code")}function hs(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new S("internal-error")}function ps(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(Qn(e=new Gn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function fs(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=za(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=za(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=za(e)):e.errorMessage&&(t=Zs(e.errorMessage)),t)throw t;ls(e)}function ms(e,t){return t.returnIdpCredential=!0,Qs(e,Us,t)}function vs(e,t){return t.returnIdpCredential=!0,Qs(e,Vs,t)}function gs(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,Qs(e,zs,t)}function ys(e){if(!e.oobCode)throw new S("invalid-action-code")}(t=Wo.prototype).zb=function(e,t){var n={idToken:e},r=[];return he(us,(function(e,i){var a=t[i];null===a?r.push(e):i in t&&(n[i]=a)})),r.length&&(n.deleteAttribute=r),Qs(this,Ys,n)},t.rb=function(e,t){return ve(e={requestType:"PASSWORD_RESET",email:e},t),Qs(this,Ds,e)},t.sb=function(e,t){return ve(e={requestType:"EMAIL_SIGNIN",email:e},t),Qs(this,Ls,e)},t.qb=function(e,t){return ve(e={requestType:"VERIFY_EMAIL",idToken:e},t),Qs(this,Ps,e)},t.Ab=function(e,t,n){return ve(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),Qs(this,Os,e)},t.cb=function(e){return Qs(this,Gs,e)},t.jb=function(e,t){return Qs(this,Ns,{oobCode:e,newPassword:t})},t.Pa=function(e){return Qs(this,_s,{oobCode:e})},t.fb=function(e){return Qs(this,bs,{oobCode:e})};var bs={endpoint:"setAccountInfo",A:ys,Y:"email",C:!0},_s={endpoint:"resetPassword",A:ys,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new S("internal-error")},C:!0},ws={endpoint:"signupNewUser",A:function(e){if(os(e),!e.password)throw new S("weak-password")},G:ls,U:!0,C:!0},ks={endpoint:"createAuthUri",C:!0},Es={endpoint:"deleteAccount",M:["idToken"]},Ts={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(e){if("array"!=h(e.deleteProvider))throw new S("internal-error")}},Ss={endpoint:"emailLinkSignin",M:["email","oobCode"],A:os,G:ls,U:!0,C:!0},Cs={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:os,G:ls,U:!0},xs={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:ds,G:ls,C:!0,La:!0},Ms={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:ds,G:ls,C:!0,La:!0},$s={endpoint:"getAccountInfo"},Ls={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new S("internal-error");os(e)},Y:"email",C:!0},Ps={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new S("internal-error")},Y:"email",C:!0},Os={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new S("internal-error")},Y:"email",C:!0},Ds={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new S("internal-error");os(e)},Y:"email",C:!0},Is={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},As={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new S("internal-error")}},Ns={endpoint:"resetPassword",A:ys,Y:"email",C:!0},Rs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Ys={endpoint:"setAccountInfo",M:["idToken"],A:ss,U:!0},Bs={endpoint:"setAccountInfo",M:["idToken"],A:function(e){if(ss(e),!e.password)throw new S("weak-password")},G:ls,U:!0},js={endpoint:"signupNewUser",G:ls,U:!0,C:!0},Fs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(e){if(!e.phoneEnrollmentInfo)throw new S("internal-error");if(!e.phoneEnrollmentInfo.phoneNumber)throw new S("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new S("missing-app-credential")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new S("internal-error")},C:!0,La:!0},Hs={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new S("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new S("internal-error")},C:!0,La:!0},Us={endpoint:"verifyAssertion",A:hs,Wa:ps,G:fs,U:!0,C:!0},zs={endpoint:"verifyAssertion",A:hs,Wa:ps,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new S("user-not-found");if(e.errorMessage)throw Zs(e.errorMessage);ls(e)},U:!0,C:!0},Vs={endpoint:"verifyAssertion",A:function(e){if(hs(e),!e.idToken)throw new S("internal-error")},Wa:ps,G:fs,U:!0},qs={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new S("invalid-custom-token")},G:ls,U:!0,C:!0},Ws={endpoint:"verifyPassword",A:function(e){if(os(e),!e.password)throw new S("wrong-password")},G:ls,U:!0,C:!0},Gs={endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Ks={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new S("internal-error");cs(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",za(e);ls(e)}},Js={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Xs={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[Ko]^!!e.refreshToken)throw new S("internal-error")},C:!0,La:!0};function Qs(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(null==r||""===r)return!1}return!0}(n,t.M))return Mt(new S("internal-error"));var r,i=!!t.La,a=t.Rb||"POST";return xt(n).then(t.A).then((function(){return t.U&&(n.returnSecureToken=!0),t.C&&e.b&&void 0===n.tenantId&&(n.tenantId=e.b),as(e,i?e.l:e.h,t.endpoint,a,n,t.Eb,t.hb||!1)})).then((function(e){return r=e,t.Wa?t.Wa(n,r):r})).then(t.G).then((function(){if(!t.Y)return r;if(!(t.Y in r))throw new S("internal-error");return r[t.Y]}))}function Zs(e){return el({error:{errors:[{message:e}],code:400,message:e}})}function el(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new S(r[n]):null)return n;for(var i in n=e.error&&e.error.message||"",ve(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(i))return new S(r[i],t);return!t&&e&&(t=Dr(e)),new S("internal-error",t)}function tl(e){this.b=e,this.a=null,this.nb=function(e){return(al||(al=new _t((function(e,t){function n(){Yr(),xr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Yr(),t(Error("Network Error"))},timeout:rl.get()})}if(xr("gapi.iframes.Iframe"))e();else if(xr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();l[r]=function(){xr("gapi.load")?n():t(Error("Network Error"))},xt(jo(r=Se(nl,{onload:r}))).o((function(){t(Error("Network Error"))}))}})).o((function(e){throw al=null,e})))).then((function(){return new _t((function(t,n){xr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:xr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(a),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var a=setTimeout((function(){n(Error("Network Error"))}),il.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var nl=new ye(we,"https://apis.google.com/js/api.js?onload=%{onload}"),rl=new Br(3e4,6e4),il=new Br(5e3,15e3),al=null;function ol(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=Bn(this.i,"/__/auth/iframe"),Nn(this.a,"apiKey",this.g),Nn(this.a,"appName",this.h),this.b=null,this.c=[]}function sl(e,t,n,r,i){this.s=e,this.m=t,this.c=n,this.u=r,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function ll(e){try{return r.a.app(e).auth().Ea()}catch(e){return[]}}function cl(e,t,n,r,i){this.u=e,this.f=t,this.b=n,this.c=r||null,this.h=i||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function ul(e){var t=lr();return function(e){return Qs(e,Is,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Yn(t),r=n.f;n=n.b;for(var i=0;i<e.length;i++){var a=e[i],o=n,s=r;if(0==a.indexOf("chrome-extension://")?o=Yn(a).b==o&&"chrome-extension"==s:"http"!=s&&"https"!=s?o=!1:pr.test(a)?o=o==a:(a=a.split(".").join("\\."),o=new RegExp("^(.+\\."+a+"|"+a+")$","i").test(o)),o){e=!0;break e}}e=!1}if(!e)throw new Ha(lr())}))}function dl(e){return e.l||(e.l=mr().then((function(){if(!e.s){var t=e.c,n=e.h,r=ll(e.b),i=new ol(e.u,e.f,e.b);i.f=t,i.b=n,i.c=X(r||[]),e.s=i.toString()}e.i=new tl(e.s),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.nb.then((function(){e.a.register("authEvent",t,xr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.i,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=Ya(t.authEvent),n=0;n<e.g.length;n++)r=e.g[n](t)||r;return(n={}).status=r?"ACK":"ERROR",xt(n)}return n.status="ERROR",xt(n)}))}(e)}))),e.l}function hl(e){return e.m||(e.w=e.c?Sr(e.c,ll(e.b)):null,e.m=new Wo(e.f,P(e.h),e.w)),e.m}function pl(e,t,n,r,i,a,o,s,l,c,u){return(e=new sl(e,t,n,r,i)).l=a,e.g=o,e.i=s,e.b=fe(l||null),e.f=c,e.ub(u).toString()}function fl(e){if(this.a=e||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new S("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function ml(e){this.b=e,this.a={},this.f=w(this.c,this)}ol.prototype.toString=function(){return this.f?Nn(this.a,"v",this.f):Xn(this.a.a,"v"),this.b?Nn(this.a,"eid",this.b):Xn(this.a.a,"eid"),this.c.length?Nn(this.a,"fw",this.c.join(",")):Xn(this.a.a,"fw"),this.a.toString()},sl.prototype.ub=function(e){return this.h=e,this},sl.prototype.toString=function(){var e=Bn(this.s,"/__/auth/handler");if(Nn(e,"apiKey",this.m),Nn(e,"appName",this.c),Nn(e,"authType",this.u),this.a.isOAuthProvider){var t=this.a;try{var n=r.a.app(this.c).auth().ja()}catch(e){n=null}for(var i in t.kb=n,Nn(e,"providerId",this.a.providerId),n=Ir((t=this.a).Fb))n[i]=n[i].toString();i=t.Oc,n=fe(n);for(var a=0;a<i.length;a++){var o=i[a];o in n&&delete n[o]}t.lb&&t.kb&&!n[t.lb]&&(n[t.lb]=t.kb),pe(n)||Nn(e,"customParameters",Dr(n))}if("function"==typeof this.a.Nb&&((t=this.a.Nb()).length&&Nn(e,"scopes",t.join(","))),this.l?Nn(e,"redirectUrl",this.l):Xn(e.a,"redirectUrl"),this.g?Nn(e,"eventId",this.g):Xn(e.a,"eventId"),this.i?Nn(e,"v",this.i):Xn(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Rn(e,s)&&Nn(e,s,this.b[s]);return this.h?Nn(e,"tid",this.h):Xn(e.a,"tid"),this.f?Nn(e,"eid",this.f):Xn(e.a,"eid"),(s=ll(this.c)).length&&Nn(e,"fw",s.join(",")),e.toString()},(t=cl.prototype).Lb=function(e,t,n){var r=new S("popup-closed-by-user"),i=new S("web-storage-unsupported"),a=this,o=!1;return this.ka().then((function(){(function(e){var t={type:"webStorageSupport"};return dl(e).then((function(){return function(e,t){return e.nb.then((function(){return new _t((function(n){e.a.send(t.type,t,n,xr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.i,t)})).then((function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(a).then((function(n){n||(e&&dr(e),t(i),o=!0)}))})).o((function(){})).then((function(){if(!o)return function(e){return new _t((function(t){return function n(){Sn(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!o)return Sn(n).then((function(){t(r)}))}))},t.Ub=function(){var e=Cr();return!Or(e)&&!Rr(e)},t.Qb=function(){return!1},t.Jb=function(e,t,n,r,i,a,o,s){if(!e)return Mt(new S("popup-blocked"));if(o&&!Or())return this.ka().o((function(t){dr(e),i(t)})),r(),xt();this.a||(this.a=ul(hl(this)));var l=this;return this.a.then((function(){var t=l.ka().o((function(t){throw dr(e),i(t),t}));return r(),t})).then((function(){(Na(n),o)||cr(pl(l.u,l.f,l.b,t,n,null,a,l.c,void 0,l.h,s),e)})).o((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},t.Kb=function(e,t,n,r){this.a||(this.a=ul(hl(this)));var i=this;return this.a.then((function(){Na(t),cr(pl(i.u,i.f,i.b,e,t,lr(),n,i.c,void 0,i.h,r))})).o((function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e}))},t.ka=function(){var e=this;return dl(this).then((function(){return e.i.nb})).o((function(){throw e.a=null,new S("network-request-failed")}))},t.Xb=function(){return!0},t.Ca=function(e){this.g.push(e)},t.Qa=function(e){K(this.g,(function(t){return t==e}))},(t=fl.prototype).get=function(e){return xt(this.a.getItem(e)).then((function(e){return e&&Ar(e)}))},t.set=function(e,t){return xt(this.a.setItem(e,Dr(t)))},t.T=function(e){return xt(this.a.removeItem(e))},t.ba=function(){},t.ha=function(){};var vl,gl=[];function yl(e,t,n){pe(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function bl(e){this.a=e}function _l(e){this.c=e,this.b=!1,this.a=[]}function wl(e,t,n,r){var i,a,o,s,l=n||{},c=null;if(e.b)return Mt(Error("connection_unavailable"));var u=r?800:50,d="undefined"!=typeof MessageChannel?new MessageChannel:null;return new _t((function(n,r){d?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),o=setTimeout((function(){r(Error("unsupported_event"))}),u),c={messageChannel:d,onMessage:a=function(e){e.data.eventId===i&&("ack"===e.data.status?(clearTimeout(o),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(s),void 0!==e.data.response?n(e.data.response):r(Error("unknown_error"))):(clearTimeout(o),clearTimeout(s),r(Error("invalid_response"))))}},e.a.push(c),d.port1.addEventListener("message",a),e.c.postMessage({eventType:t,eventId:i,data:l},[d.port2])):r(Error("connection_unavailable"))})).then((function(t){return kl(e,c),t})).o((function(t){throw kl(e,c),t}))}function kl(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),K(e.a,(function(e){return e==t}))}}function El(){if(!Cl())throw new S("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=l.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var e=this;yr()&&self?(this.l=function(){var e=yr()?self:null;if(U(gl,(function(n){n.b==e&&(t=n)})),!t){var t=new ml(e);gl.push(t)}return t}(),yl(this.l,"keyChanged",(function(t,n){return Pl(e).then((function(t){return 0<t.length&&U(e.a,(function(e){e(t)})),{keyProcessed:W(t,n.key)}}))})),yl(this.l,"ping",(function(){return xt(["keyChanged"])}))):function(){var e=l.navigator;return e&&e.serviceWorker?xt().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).o((function(){return null})):xt(null)}().then((function(t){(e.h=t)&&(e.g=new _l(new bl(t)),wl(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&W(t[0].value,"keyChanged")&&(e.s=!0)})).o((function(){})))}))}function Tl(e){return new _t((function(t,n){var r=e.u.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(e){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new _t((function(t,n){var r=e.u.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return Tl(e)})).then((function(e){t(e)})).o((function(e){n(e)}))}}))}function Sl(e){return e.m||(e.m=Tl(e)),e.m}function Cl(){try{return!!l.indexedDB}catch(e){return!1}}function xl(e){return e.objectStore("firebaseLocalStorage")}function Ml(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function $l(e){return new _t((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Ll(e,t){return e.g&&e.h&&function(){var e=l.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?wl(e.g,"keyChanged",{key:t},e.s).then((function(){})).o((function(){})):xt()}function Pl(e){return Sl(e).then((function(e){var t=xl(Ml(e,!1));return t.getAll?$l(t.getAll()):new _t((function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=function e(t,n){var r,i=[];for(r in t)r in n?typeof t[r]!=typeof n[r]?i.push(r):"object"==typeof t[r]&&null!=t[r]&&null!=n[r]?0<e(t[r],n[r]).length&&i.push(r):t[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in t||i.push(r);return i}(e.c,n),e.c=n}return r}))}function Ol(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Dl(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=xt().then((function(){if(Cl()){var e=Nr(),r="__sak"+e;return vl||(vl=new El),(n=vl).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.T(r)})).then((function(){return n})).o((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ba((function(e){U(t.a,(function(t){t(e)}))})),e}))}function Il(){this.a={},this.type="inMemory"}function Al(){if(!function(){var e="Node"==br();if(!(e=Nl()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new S("internal-error","The LocalStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Nl()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Nl(){try{var e=l.localStorage,t=Nr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function Rl(){this.type="nullStorage"}function Yl(){if(!function(){var e="Node"==br();if(!(e=Bl()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new S("internal-error","The SessionStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Bl()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Bl(){try{var e=l.sessionStorage,t=Nr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function jl(){var e={};e.Browser=Ul,e.Node=zl,e.ReactNative=Vl,e.Worker=ql,this.a=e[br()]}ml.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,r=this.a[t];if(r&&0<r.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var i=[];U(r,(function(t){i.push(xt().then((function(){return t(e.origin,e.data.data)})))})),Lt(i).then((function(r){var i=[];U(r,(function(e){i.push({fulfilled:e.Mb,value:e.value,reason:e.reason?e.reason.message:void 0})})),U(i,(function(e){for(var t in e)void 0===e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:i})}))}},bl.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},_l.prototype.close=function(){for(;0<this.a.length;)kl(this,this.a[0]);this.b=!0},(t=El.prototype).set=function(e,t){var n,r=!1,i=this;return Sl(this).then((function(t){return $l((t=xl(Ml(n=t,!0))).get(e))})).then((function(a){var o=xl(Ml(n,!0));return a?(a.value=t,$l(o.put(a))):(i.b++,r=!0,(a={}).fbase_key=e,a.value=t,$l(o.add(a)))})).then((function(){return i.c[e]=t,Ll(i,e)})).ma((function(){r&&i.b--}))},t.get=function(e){return Sl(this).then((function(t){return $l(xl(Ml(t,!1)).get(e))})).then((function(e){return e&&e.value}))},t.T=function(e){var t=!1,n=this;return Sl(this).then((function(r){return t=!0,n.b++,$l(xl(Ml(r,!0)).delete(e))})).then((function(){return delete n.c[e],Ll(n,e)})).ma((function(){t&&n.b--}))},t.ba=function(e){0==this.a.length&&function(e){Ol(e),function t(){e.f=setTimeout((function(){e.i=Pl(e).then((function(t){0<t.length&&U(e.a,(function(e){e(t)}))})).then((function(){t()})).o((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}()}(this),this.a.push(e)},t.ha=function(e){K(this.a,(function(t){return t==e})),0==this.a.length&&Ol(this)},(t=Dl.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},t.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},t.T=function(e){return this.b.then((function(t){return t.T(e)}))},t.ba=function(e){this.a.push(e)},t.ha=function(e){K(this.a,(function(t){return t==e}))},(t=Il.prototype).get=function(e){return xt(this.a[e])},t.set=function(e,t){return this.a[e]=t,xt()},t.T=function(e){return delete this.a[e],xt()},t.ba=function(){},t.ha=function(){},(t=Al.prototype).get=function(e){var t=this;return xt().then((function(){return Ar(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return xt().then((function(){var r=Dr(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return xt().then((function(){t.a.removeItem(e)}))},t.ba=function(e){l.window&&ln(l.window,"storage",e)},t.ha=function(e){l.window&&dn(l.window,"storage",e)},(t=Rl.prototype).get=function(){return xt(null)},t.set=function(){return xt()},t.T=function(){return xt()},t.ba=function(){},t.ha=function(){},(t=Yl.prototype).get=function(e){var t=this;return xt().then((function(){return Ar(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return xt().then((function(){var r=Dr(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return xt().then((function(){t.a.removeItem(e)}))},t.ba=function(){},t.ha=function(){};var Fl,Hl,Ul={F:Al,$a:Yl},zl={F:Al,$a:Yl},Vl={F:fl,$a:Rl},ql={F:Al,$a:Rl},Wl={od:"local",NONE:"none",qd:"session"};function Gl(){var e=!(Rr(Cr())||!gr()),t=Or(),n=Mr();this.m=e,this.h=t,this.l=n,this.a={},Fl||(Fl=new jl),e=Fl;try{this.g=!sr()&&Hr()||!l.indexedDB?new e.a.F:new Dl(yr()?new Il:new e.a.F)}catch(e){this.g=new Il,this.h=!0}try{this.i=new e.a.$a}catch(e){this.i=new Il}this.u=new Il,this.f=w(this.Vb,this),this.b={}}function Kl(){return Hl||(Hl=new Gl),Hl}function Jl(e,t){switch(t){case"session":return e.i;case"none":return e.u;default:return e.g}}function Xl(e,t){return"firebase:"+e.name+(t?":"+t:"")}function Ql(e,t,n){return n=Xl(t,n),"local"==t.F&&(e.b[n]=null),Jl(e,t.F).T(n)}function Zl(e){e.c&&(clearInterval(e.c),e.c=null)}function ec(e){this.a=e,this.b=Kl()}(t=Gl.prototype).get=function(e,t){return Jl(this,e.F).get(Xl(e,t))},t.set=function(e,t,n){var r=Xl(e,n),i=this,a=Jl(this,e.F);return a.set(r,t).then((function(){return a.get(r)})).then((function(t){"local"==e.F&&(i.b[r]=t)}))},t.addListener=function(e,t,n){e=Xl(e,t),this.l&&(this.b[e]=l.localStorage.getItem(e)),pe(this.a)&&(Jl(this,"local").ba(this.f),this.h||(sr()||!Hr())&&l.indexedDB||!this.l||function(e){Zl(e),e.c=setInterval((function(){for(var t in e.a){var n=l.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new Jt({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Vb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},t.removeListener=function(e,t,n){e=Xl(e,t),this.a[e]&&(K(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),pe(this.a)&&(Jl(this,"local").ha(this.f),Zl(this))},t.Vb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];void 0===r&&(r=null);var i=l.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.ib(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?Jl(this,"local").ha(this.f):Zl(this),this.m)if(n=l.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?l.localStorage.setItem(t,r):l.localStorage.removeItem(t);else if(this.b[t]===r&&void 0===e.a.a)return;var a=this;n=function(){void 0===e.a.a&&a.b[t]===l.localStorage.getItem(t)||(a.b[t]=l.localStorage.getItem(t),a.ib(t))},We&&nt&&10==nt&&l.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else U(e,w(this.ib,this))},t.ib=function(e){this.a[e]&&U(this.a[e],(function(e){e()}))};var tc,nc={name:"authEvent",F:"local"};function rc(){this.a=Kl()}function ic(e,t){this.b=ac,this.f=l.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=l.Int32Array?new Int32Array(64):Array(64),void 0===tc&&(tc=l.Int32Array?new Int32Array(hc):hc),this.reset()}T(ic,(function(){this.b=-1}));for(var ac=64,oc=ac-1,sc=[],lc=0;lc<oc;lc++)sc[lc]=0;var cc=J(128,sc);function uc(e){for(var t=e.f,n=e.l,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var a=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,o=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=a+o|0}r=0|e.a[0],i=0|e.a[1];var s=0|e.a[2],l=0|e.a[3],c=0|e.a[4],u=0|e.a[5],d=0|e.a[6];for(a=0|e.a[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;o=(a=a+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((o=(o=c&u^~c&d)+(0|tc[t])|0)+(0|n[t])|0)|0,a=d,d=u,u=c,c=l+o|0,l=s,s=i,i=r,r=o+h|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+u|0,e.a[6]=e.a[6]+d|0,e.a[7]=e.a[7]+a|0}function dc(e,t,n){void 0===n&&(n=t.length);var r=0,i=e.c;if("string"==typeof t)for(;r<n;)e.f[i++]=t.charCodeAt(r++),i==e.b&&(uc(e),i=0);else{if(!p(t))throw Error("message must be string or array");for(;r<n;){var a=t[r++];if(!("number"==typeof a&&0<=a&&255>=a&&a==(0|a)))throw Error("message must be a byte array");e.f[i++]=a,i==e.b&&(uc(e),i=0)}}e.c=i,e.g+=n}ic.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):X(this.h)};var hc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function pc(){ic.call(this,8,fc)}T(pc,ic);var fc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function mc(e,t,n,r,i){this.u=e,this.i=t,this.l=n,this.m=r||null,this.s=i||null,this.h=t+":"+n,this.w=new rc,this.g=new ec(this.h),this.f=null,this.b=[],this.a=this.c=null}function vc(e){return new S("invalid-cordova-configuration",e)}function gc(e){var t=new pc;dc(t,e),e=[];var n=8*t.g;56>t.c?dc(t,cc,56-t.c):dc(t,cc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(uc(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return function(e){return V(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function yc(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function bc(e){return e.f||(e.f=e.ka().then((function(){return new _t((function(t){e.Ca((function n(r){return t(r),e.Qa(n),!1})),function(e){function t(t){r=!0,i&&i.cancel(),_c(e).then((function(r){var i=n;if(r&&t&&t.url){var a=null;-1!=(i=na(t.url)).indexOf("/__/auth/callback")&&(a=(a="object"==typeof(a=Ar(Rn(a=Yn(i),"firebaseError")||null))?C(a):null)?new Ra(r.c,r.b,null,null,a,null,r.S()):new Ra(r.c,r.b,i,r.f,null,null,r.S())),i=a||n}yc(e,i)}))}var n=new Ra("unknown",null,null,null,new S("no-auth-event")),r=!1,i=Sn(500).then((function(){return _c(e).then((function(){r||yc(e,n)}))})),a=l.handleOpenURL;l.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(xr("BuildInfo.packageName",l).toLowerCase()+"://")&&t({url:e}),"function"==typeof a)try{a(e)}catch(e){console.error(e)}},Fa||(Fa=new Ba),function(e){var t=Fa;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"==typeof(e=xr("universalLinks.subscribe",l))&&e(null,t.b))}(t)}(e)}))}))),e.f}function _c(e){var t=null;return function(e){return e.b.get(nc,e.a).then((function(e){return Ya(e)}))}(e.g).then((function(n){return t=n,Ql((n=e.g).b,nc,n.a)})).then((function(){return t}))}function wc(e){this.a=e,this.b=Kl()}(t=mc.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(vr(void 0)?mr().then((function(){return new _t((function(e,t){var n=l.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):Mt(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof xr("universalLinks.subscribe",l))throw vc("cordova-universal-links-plugin-fix is not installed");if(void 0===xr("BuildInfo.packageName",l))throw vc("cordova-plugin-buildinfo is not installed");if("function"!=typeof xr("cordova.plugins.browsertab.openUrl",l))throw vc("cordova-plugin-browsertab is not installed");if("function"!=typeof xr("cordova.InAppBrowser.open",l))throw vc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new S("cordova-not-ready")}))},t.Lb=function(e,t){return t(new S("operation-not-supported-in-this-environment")),xt()},t.Jb=function(){return Mt(new S("operation-not-supported-in-this-environment"))},t.Xb=function(){return!1},t.Ub=function(){return!0},t.Qb=function(){return!0},t.Kb=function(e,t,n,r){if(this.c)return Mt(new S("redirect-operation-pending"));var i=this,a=l.document,o=null,s=null,c=null,u=null;return this.c=xt().then((function(){return Na(t),bc(i)})).then((function(){return function(e,t,n,r,i){var a=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),o=new Ra(t,r,null,a,new S("no-auth-event"),null,i),s=xr("BuildInfo.packageName",l);if("string"!=typeof s)throw new S("invalid-cordova-configuration");var c=xr("BuildInfo.displayName",l),u={};if(Cr().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=s;else{if(!Cr().toLowerCase().match(/android/))return Mt(new S("operation-not-supported-in-this-environment"));u.apn=s}c&&(u.appDisplayName=c),a=gc(a),u.sessionId=a;var d=pl(e.u,e.i,e.l,t,n,null,r,e.m,u,e.s,i);return e.ka().then((function(){var t=e.h;return e.w.a.set(nc,o.v(),t)})).then((function(){var t=xr("cordova.plugins.browsertab.isAvailable",l);if("function"!=typeof t)throw new S("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!=typeof(n=xr("cordova.plugins.browsertab.openUrl",l)))throw new S("invalid-cordova-configuration");n(d)}else{if("function"!=typeof(n=xr("cordova.InAppBrowser.open",l)))throw new S("invalid-cordova-configuration");t=Cr(),e.a=n(d,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,e,t,n,r)})).then((function(){return new _t((function(e,t){s=function(){var t=xr("cordova.plugins.browsertab.close",l);return e(),"function"==typeof t&&t(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(s),c=function(){o||(o=Sn(2e3).then((function(){t(new S("redirect-cancelled-by-user"))})))},u=function(){jr()&&c()},a.addEventListener("resume",c,!1),Cr().toLowerCase().match(/android/)||a.addEventListener("visibilitychange",u,!1)})).o((function(e){return _c(i).then((function(){throw e}))}))})).ma((function(){c&&a.removeEventListener("resume",c,!1),u&&a.removeEventListener("visibilitychange",u,!1),o&&o.cancel(),s&&i.Qa(s),i.c=null}))},t.Ca=function(e){this.b.push(e),bc(this).o((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new Ra("unknown",null,null,null,new S("no-auth-event")),e(t))}))},t.Qa=function(e){K(this.b,(function(t){return t==e}))};var kc={name:"pendingRedirect",F:"session"};function Ec(e){return Ql(e.b,kc,e.a)}function Tc(e,t,n){this.i={},this.w=0,this.D=e,this.u=t,this.m=n,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new Yc,this.B=new Uc,this.g=new wc(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=Sc(this.D,this.u,this.m,x)}function Sc(e,t,n,i){var a=r.a.SDK_VERSION||null;return vr()?new mc(e,t,n,a,i):new cl(e,t,n,a,i)}function Cc(e){e.f||(e.f=!0,e.a.Ca(e.l));var t=e.a;return e.a.ka().o((function(n){throw e.a==t&&e.reset(),n}))}function xc(e){e.a.Ub()&&Cc(e).o((function(t){var n=new Ra("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Dc(t)&&e.s(n)})),e.a.Qb()||Bc(e.b)}function Mc(e,t){W(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(kc,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Ec(e.g).then((function(){Cc(e).o((function(t){var n=new Ra("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Dc(t)&&e.s(n)}))})):xc(e)})).o((function(){xc(e)}))}function $c(e,t){K(e.h,(function(e){return e==t}))}Tc.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=Sc(this.D,this.u,this.m),this.i={}},Tc.prototype.s=function(e){if(!e)throw new S("invalid-auth-event");if(6e5<=E()-this.w&&(this.i={},this.w=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Cb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,r),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.w=E())),t=!0;break}}return Bc(this.b),t};var Lc=new Br(2e3,1e4),Pc=new Br(3e4,6e4);function Oc(e,t,n,r,i,a,o){return e.a.Jb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ca(e.l))}),(function(){e.reset()}),i,a,o)}function Dc(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Ic(e,t,n,r,i){var a;return function(e){return e.b.set(kc,"pending",e.a)}(e.g).then((function(){return e.a.Kb(t,n,r,i).o((function(t){if(Dc(t))throw new S("operation-not-supported-in-this-environment");return a=t,Ec(e.g).then((function(){throw a}))})).then((function(){return e.a.Xb()?new _t((function(){})):Ec(e.g).then((function(){return e.pa()})).then((function(){})).o((function(){}))}))}))}function Ac(e,t,n,r,i){return e.a.Lb(r,(function(e){t.la(n,null,e,i)}),Lc.get())}Tc.prototype.pa=function(){return this.b.pa()};var Nc={};function Rc(e,t,n){var r=t+":"+n;return Nc[r]||(Nc[r]=new Tc(e,t,n)),Nc[r]}function Yc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Bc(e){e.g||(e.g=!0,Hc(e,!1,null,null))}function jc(e){e.g&&!e.i&&Hc(e,!1,null,null)}function Fc(e,t){if(e.b=function(){return xt(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function Hc(e,t,n,r){t?r?function(e,t){if(e.b=function(){return Mt(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):Fc(e,n):Fc(e,{user:null}),e.f=[],e.c=[]}function Uc(){}function zc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(e){this.Bb=e},enumerable:!1})}function Vc(e,t){this.a=t,Wr(this,"verificationId",e)}function qc(e,t,n,r){return new Da(e).cb(t,n).then((function(e){return new Vc(e,r)}))}function Wc(e){var t=Hi(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new S("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Gr(this,{token:e,expirationTime:Fr(1e3*t.exp),authTime:Fr(1e3*t.auth_time),issuedAtTime:Fr(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function Gc(e,t,n){var r=t&&t[Jc];if(!r)throw new S("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=fe(t),this.g=n,this.c=new ra(null,r),this.b=[];var i=this;U(t[Kc]||[],(function(e){(e=Qr(e))&&i.b.push(e)})),Wr(this,"auth",this.a),Wr(this,"session",this.c),Wr(this,"hints",this.b)}Yc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Yc.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,r=e.b,i=e.a&&"auth/web-storage-unsupported"==e.a.code,a=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!i&&!a),"unknown"!=n||i||a?e.a?(Hc(this,!0,null,e.a),xt()):t.Da(n,r)?function(e,t,n){n=n.Da(t.c,t.b);var r=t.g,i=t.f,a=t.i,o=t.S(),s=!!t.c.match(/Redirect$/);n(r,i,o,a).then((function(t){Hc(e,s,t,null)})).o((function(t){Hc(e,s,null,t)}))}(this,e,t):Mt(new S("invalid-auth-event")):(Hc(this,!1,null,null),xt())}else Mt(new S("invalid-auth-event"))},Yc.prototype.pa=function(){var e=this;return new _t((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new S("timeout");e.a&&e.a.cancel(),e.a=Sn(Pc.get()).then((function(){e.b||(e.g=!0,Hc(e,!0,null,t))}))}(e))}))},Uc.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.la(e.c,null,e.a,e.b),xt()):t.Da(n,r)?function(e,t){var n=e.b,r=e.c;t.Da(r,n)(e.g,e.f,e.S(),e.i).then((function(e){t.la(r,e,null,n)})).o((function(e){t.la(r,null,e,n)}))}(e,t):Mt(new S("invalid-auth-event"))}else Mt(new S("invalid-auth-event"))},Vc.prototype.confirm=function(e){return e=Ia(this.verificationId,e),this.a(e)};var Kc="mfaInfo",Jc="mfaPendingCredential";function Xc(e,t,n,r){S.call(this,"multi-factor-auth-required",r,t),this.b=new Gc(e,t,n),Wr(this,"resolver",this.b)}function Qc(e,t,n){if(e&&m(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new Xc(t,e.serverResponse,n,e.message)}catch(e){}return null}function Zc(){}function eu(e){Wr(this,"factorId",e.ea),this.a=e}function tu(e){if(eu.call(this,e),this.a.ea!=Da.PROVIDER_ID)throw new S("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function nu(e,t){for(var n in Kt.call(this,e),t)this[n]=t[n]}function ru(e,t){this.a=e,this.b=[],this.c=w(this.wc,this),ln(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&U(t.multiFactor.enrolledFactors,(function(e){var t=null,r={};if(e){e.uid&&(r[ti]=e.uid),e.displayName&&(r[Zr]=e.displayName),e.enrollmentTime&&(r[ei]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[ni]=e.phoneNumber);try{t=new ri(r)}catch(e){}e=t}else e=null;e&&n.push(e)})),iu(this,n)}function iu(e,t){e.b=t,Wr(e,"enrolledFactors",t)}function au(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function ou(e){this.c=e,this.b=this.a=null}function su(e){return e.b&&1e3*e.b.c||0}function lu(e,t){var n=t.refreshToken;e.b=Fi(t[Ko]||""),e.a=n}function cu(e,t){return function(e,t){return new _t((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?ns(e,e.u+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(el(e)):e.access_token&&e.refresh_token?n(e):r(new S("internal-error")):r(new S("network-request-failed"))}),"POST",Jn(t).toString(),e.g,e.m.get()):r(new S("internal-error"))}))}(e.c,t).then((function(t){return e.b=Fi(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function uu(e,t){this.a=e||null,this.b=t||null,Gr(this,{lastSignInTime:Fr(t||null),creationTime:Fr(e||null)})}function du(e,t,n,r,i,a){Gr(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:a||null,providerId:t})}function hu(e,t,n){this.N=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null,e=r.a.SDK_VERSION?Sr(r.a.SDK_VERSION):null,this.a=new Wo(this.l,P(x),e),this.b=new ou(this.a),bu(this,t[Ko]),lu(this.b,t),Wr(this,"refreshToken",this.b.a),ku(this,n||{}),_n.call(this),this.P=!1,this.s&&$r()&&(this.i=Rc(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(e){return new au((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=su(e.b)-E()-3e5;return 0<t?t:0}))}(this),this.Z=w(this.Ma,this);var i=this;this.oa=null,this.za=function(e){i.va(e.g)},this.aa=null,this.W=[],this.ya=function(e){fu(i,e.c)},this.$=null,this.O=new ru(this,n),Wr(this,"multiFactor",this.O)}function pu(e,t){e.aa&&dn(e.aa,"languageCodeChanged",e.za),(e.aa=t)&&ln(t,"languageCodeChanged",e.za)}function fu(e,t){e.W=t,ts(e.a,r.a.SDK_VERSION?Sr(r.a.SDK_VERSION,e.W):null)}function mu(e,t){e.$&&dn(e.$,"frameworkChanged",e.ya),(e.$=t)&&ln(t,"frameworkChanged",e.ya)}function vu(e){try{return r.a.app(e.m).auth()}catch(t){throw new S("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function gu(e){e.D||e.B.b||(e.B.start(),dn(e,"tokenChanged",e.Z),ln(e,"tokenChanged",e.Z))}function yu(e){dn(e,"tokenChanged",e.Z),e.B.stop()}function bu(e,t){e.xa=t,Wr(e,"_lat",t)}function _u(e){for(var t=[],n=0;n<e.R.length;n++)t.push(e.R[n](e));return Lt(t).then((function(){return e}))}function wu(e){e.i&&!e.P&&(e.P=!0,Mc(e.i,e))}function ku(e,t){Gr(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new uu(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Eu(){}function Tu(e){return xt().then((function(){if(e.D)throw new S("app-deleted")}))}function Su(e){return V(e.providerData,(function(e){return e.providerId}))}function Cu(e,t){t&&(xu(e,t.providerId),e.providerData.push(t))}function xu(e,t){K(e.providerData,(function(e){return e.providerId==t}))}function Mu(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Wr(e,t,n)}function $u(e,t){e!=t&&(Gr(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?Wr(e,"metadata",function(e){return new uu(e.a,e.b)}(t.metadata)):Wr(e,"metadata",new uu),U(t.providerData,(function(t){Cu(e,t)})),function(e,t){e.b=t.b,e.a=t.a}(e.b,t.b),Wr(e,"refreshToken",e.b.a),iu(e.O,t.O.b))}function Lu(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return Qs(e.a,$s,{idToken:t}).then(w(e.Ic,e))}(e,t).then((function(){return n||Mu(e,"isAnonymous",!1),t}))}))}function Pu(e,t){t[Ko]&&e.xa!=t[Ko]&&(lu(e.b,t),e.dispatchEvent(new nu("tokenChanged")),bu(e,t[Ko]),Mu(e,"refreshToken",e.b.a))}function Ou(e,t){return Lu(e).then((function(){if(W(Su(e),t))return _u(e).then((function(){throw new S("provider-already-linked")}))}))}function Du(e,t,n){return Kr({user:e,credential:Aa(t),additionalUserInfo:t=Wi(t),operationType:n})}function Iu(e,t){return Pu(e,t),e.reload().then((function(){return e}))}function Au(e,t,n,i,a){if(!$r())return Mt(new S("operation-not-supported-in-this-environment"));if(e.h&&!a)return Mt(e.h);var o=qi(n.providerId),s=Nr(e.uid+":::"),l=null;(!Or()||gr())&&e.s&&n.isOAuthProvider&&(l=pl(e.s,e.l,e.m,t,n,null,s,r.a.SDK_VERSION||null,null,null,e.tenantId));var c=hr(l,o&&o.ta,o&&o.sa);return i=i().then((function(){if(Ru(e),!a)return e.I().then((function(){}))})).then((function(){return Oc(e.i,c,t,n,s,!!l,e.tenantId)})).then((function(){return new _t((function(n,r){e.la(t,null,new S("cancelled-popup-request"),e.g||null),e.f=n,e.w=r,e.g=s,e.c=Ac(e.i,e,t,c,s)}))})).then((function(e){return c&&dr(c),e?Kr(e):null})).o((function(e){throw c&&dr(c),e})),Yu(e,i,a)}function Nu(e,t,n,r,i){if(!$r())return Mt(new S("operation-not-supported-in-this-environment"));if(e.h&&!i)return Mt(e.h);var a=null,o=Nr(e.uid+":::");return r=r().then((function(){if(Ru(e),!i)return e.I().then((function(){}))})).then((function(){return e.fa=o,_u(e)})).then((function(t){return e.ga&&(t=(t=e.ga).b.set(Fu,e.v(),t.a)),t})).then((function(){return Ic(e.i,t,n,o,e.tenantId)})).o((function(t){if(a=t,e.ga)return Hu(e.ga);throw a})).then((function(){if(a)throw a})),Yu(e,r,i)}function Ru(e){if(!e.i||!e.P){if(e.i&&!e.P)throw new S("internal-error");throw new S("auth-domain-config-required")}}function Yu(e,t,n){var r=function(e,t,n){return e.h&&!n?(t.cancel(),Mt(e.h)):t.o((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.h||e.dispatchEvent(new nu("userInvalidated")),e.h=t),t}))}(e,t,n);return e.N.push(r),r.ma((function(){G(e.N,r)})),r.o((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=Qc(t.v(),vu(e),w(e.hc,e))),n||t}))}function Bu(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[Ko]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=new hu(t,n,e);return e.providerData&&U(e.providerData,(function(e){e&&Cu(r,Kr(e))})),e.redirectEventId&&(r.fa=e.redirectEventId),r}function ju(e){this.a=e,this.b=Kl()}Gc.prototype.Pc=function(e){var t=this;return e.ob(this.a.b,this.c).then((function(e){var n=fe(t.f);return delete n[Kc],delete n[Jc],ve(n,e),t.g(n)}))},T(Xc,S),Zc.prototype.ob=function(e,t,n){return t.type==ia?function(e,t,n,r){return n.Fa().then((function(n){return n={idToken:n},void 0!==r&&(n.displayName=r),ve(n,{phoneVerificationInfo:Oa(e.a)}),Qs(t,xs,n)}))}(this,e,t,n):function(e,t,n){return n.Fa().then((function(n){return ve(n={mfaPendingCredential:n},{phoneVerificationInfo:Oa(e.a)}),Qs(t,Ms,n)}))}(this,e,t)},T(eu,Zc),T(tu,eu),T(nu,Kt),(t=ru.prototype).wc=function(e){iu(this,function(e){var t=[];return U(e.mfaInfo||[],(function(e){(e=Qr(e))&&t.push(e)})),t}(e.ed))},t.Ob=function(){return this.a.I().then((function(e){return new ra(e,null)}))},t.dc=function(e,t){var n=this,r=this.a.a;return this.Ob().then((function(n){return e.ob(r,n,t)})).then((function(e){return Pu(n.a,e),n.a.reload()}))},t.$c=function(e){var t=this,n="string"==typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return Qs(r,Xs,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=z(t.b,(function(e){return e.uid!=n}));return iu(t,r),Pu(t.a,e),t.a.reload().o((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},t.v=function(){return{multiFactor:{enrolledFactors:V(this.b,(function(e){return e.v()}))}}},au.prototype.start=function(){this.a=this.c,function e(t,n){t.stop(),t.b=Sn(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then((function(){return function(){var e=l.document,t=null;return jr()||!e?xt():new _t((function(n){t=function(){jr()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).o((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return t.h()})).then((function(){e(t,!0)})).o((function(n){t.i(n)&&e(t,!1)}))}(this,!0)},au.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ou.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:su(this)}},ou.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?Mt(new S("user-token-expired")):e||!this.b||E()>su(this)-3e4?this.a?cu(this,{grant_type:"refresh_token",refresh_token:this.a}):xt(null):xt({accessToken:this.b.toString(),refreshToken:this.a})},uu.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},T(hu,_n),hu.prototype.va=function(e){this.oa=e,es(this.a,e)},hu.prototype.ja=function(){return this.oa},hu.prototype.Ea=function(){return X(this.W)},hu.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Wr(hu.prototype,"providerId","firebase"),(t=hu.prototype).reload=function(){var e=this;return Yu(this,Tu(this).then((function(){return Lu(e).then((function(){return _u(e)})).then(Eu)})))},t.mc=function(e){return this.I(e).then((function(e){return new Wc(e)}))},t.I=function(e){var t=this;return Yu(this,Tu(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new S("internal-error");return e.accessToken!=t.xa&&(bu(t,e.accessToken),t.dispatchEvent(new nu("tokenChanged"))),Mu(t,"refreshToken",e.refreshToken),e.accessToken})))},t.Ic=function(e){if(!(e=e.users)||!e.length)throw new S("internal-error");ku(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?V(e,(function(e){return new du(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Cu(this,t[n]);Mu(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new nu("userReloaded",{ed:e}))},t.Jc=function(e){return Vr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(e)},t.pb=function(e){var t=this,n=null;return Yu(this,e.c(this.a,this.uid).then((function(e){return Pu(t,e),n=Du(t,e,"reauthenticate"),t.h=null,t.reload()})).then((function(){return n})),!0)},t.Ac=function(e){return Vr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(e)},t.mb=function(e){var t=this,n=null;return Yu(this,Ou(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=Du(t,e,"link"),Iu(t,e)})).then((function(){return n})))},t.Bc=function(e,t){var n=this;return Yu(this,Ou(this,"phone").then((function(){return qc(vu(n),e,t,w(n.mb,n))})))},t.Kc=function(e,t){var n=this;return Yu(this,xt().then((function(){return qc(vu(n),e,t,w(n.pb,n))})),!0)},t.xb=function(e){var t=this;return Yu(this,this.I().then((function(n){return t.a.xb(n,e)})).then((function(e){return Pu(t,e),t.reload()})))},t.cd=function(e){var t=this;return Yu(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Pu(t,e),t.reload()})))},t.yb=function(e){var t=this;return Yu(this,this.I().then((function(n){return t.a.yb(n,e)})).then((function(e){return Pu(t,e),t.reload()})))},t.zb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Tu(this);var t=this;return Yu(this,this.I().then((function(n){return t.a.zb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Pu(t,e),Mu(t,"displayName",e.displayName||null),Mu(t,"photoURL",e.photoUrl||null),U(t.providerData,(function(e){"password"===e.providerId&&(Wr(e,"displayName",t.displayName),Wr(e,"photoURL",t.photoURL))})),_u(t)})).then(Eu))},t.ad=function(e){var t=this;return Yu(this,Lu(this).then((function(n){return W(Su(t),e)?function(e,t,n){return Qs(e,Ts,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return U(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),U(Su(t),(function(e){n[e]||xu(t,e)})),n[Da.PROVIDER_ID]||Wr(t,"phoneNumber",null),_u(t)})):_u(t).then((function(){throw new S("no-such-provider")}))})))},t.delete=function(){var e=this;return Yu(this,this.I().then((function(t){return Qs(e.a,Es,{idToken:t})})).then((function(){e.dispatchEvent(new nu("userDeleted"))}))).then((function(){for(var t=0;t<e.N.length;t++)e.N[t].cancel("app-deleted");pu(e,null),mu(e,null),e.N=[],e.D=!0,yu(e),Wr(e,"refreshToken",null),e.i&&$c(e.i,e)}))},t.Cb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.fa||null)==t||"reauthViaRedirect"==e&&(this.fa||null)==t)},t.la=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?w(this.Hb,this):"reauthViaPopup"==e&&t==(this.g||null)?w(this.Ib,this):"linkViaRedirect"==e&&(this.fa||null)==t?w(this.Hb,this):"reauthViaRedirect"==e&&(this.fa||null)==t?w(this.Ib,this):null},t.Cc=function(e){var t=this;return Au(this,"linkViaPopup",e,(function(){return Ou(t,e.providerId).then((function(){return _u(t)}))}),!1)},t.Lc=function(e){return Au(this,"reauthViaPopup",e,(function(){return xt()}),!0)},t.Dc=function(e){var t=this;return Nu(this,"linkViaRedirect",e,(function(){return Ou(t,e.providerId)}),!1)},t.Mc=function(e){return Nu(this,"reauthViaRedirect",e,(function(){return xt()}),!0)},t.Hb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var a=null;return Yu(this,this.I().then((function(n){return vs(i.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return a=Du(i,e,"link"),Iu(i,e)})).then((function(){return a})))},t.Ib=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var a=null;return Yu(this,xt().then((function(){return sa(gs(i.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),i.uid)})).then((function(e){return a=Du(i,e,"reauthenticate"),Pu(i,e),i.h=null,i.reload()})).then((function(){return a})),!0)},t.qb=function(e){var t=this,n=null;return Yu(this,this.I().then((function(t){return n=t,void 0===e||pe(e)?{}:Ri(new xi(e))})).then((function(e){return t.a.qb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},t.Ab=function(e,t){var n=this,r=null;return Yu(this,this.I().then((function(e){return r=e,void 0===t||pe(t)?{}:Ri(new xi(t))})).then((function(t){return n.a.Ab(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},t.hc=function(e){var t=null,n=this;return Yu(this,e=sa(xt(e),n.uid).then((function(e){return t=Du(n,e,"reauthenticate"),Pu(n,e),n.h=null,n.reload()})).then((function(){return t})),!0)},t.toJSON=function(){return this.v()},t.v=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&ve(e,this.metadata.v()),U(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),ve(e,this.O.v()),e};var Fu={name:"redirectUser",F:"session"};function Hu(e){return Ql(e.b,Fu,e.a)}function Uu(e){this.a=e,this.b=Kl(),this.c=null,this.f=function(e){var t=qu("local"),n=qu("session"),r=qu("none");return function(e,t,n){var r=Xl(t,n),i=Jl(e,t.F);return e.get(t,n).then((function(a){var o=null;try{o=Ar(l.localStorage.getItem(r))}catch(e){}if(o&&!a)return l.localStorage.removeItem(r),e.set(t,o,n);o&&a&&"localStorage"!=i.type&&l.localStorage.removeItem(r)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(i){return i?n:e.b.get(r,e.a).then((function(n){return n?r:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(Vu,e.a).then((function(e){return e?qu(e):t}))}))}))})).then((function(t){return e.c=t,zu(e,t.F)})).o((function(){e.c||(e.c=t)}))}(this),this.b.addListener(qu("local"),this.a,w(this.g,this))}function zu(e,t){var n,r=[];for(n in Wl)Wl[n]!==t&&r.push(Ql(e.b,qu(Wl[n]),e.a));return r.push(Ql(e.b,Vu,e.a)),function(e){return new _t((function(t,n){var r=e.length,i=[];if(r)for(var a=function(e,n){r--,i[e]=n,0==r&&t(i)},o=function(e){n(e)},s=0;s<e.length;s++)$t(e[s],k(a,s),o);else t(i)}))}(r)}Uu.prototype.g=function(){var e=this,t=qu("local");Ju(this,(function(){return xt().then((function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null})).then((function(n){if(n)return zu(e,"local").then((function(){e.c=t}))}))}))};var Vu={name:"persistence",F:"session"};function qu(e){return{name:"authUser",F:e}}function Wu(e,t){return Ju(e,(function(){return e.b.set(e.c,t.v(),e.a)}))}function Gu(e){return Ju(e,(function(){return Ql(e.b,e.c,e.a)}))}function Ku(e,t){return Ju(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),Bu(e||{})}))}))}function Ju(e,t){return e.f=e.f.then(t,t),e.f}function Xu(e){if(this.l=!1,Wr(this,"settings",new zc),Wr(this,"app",e),!ad(this).options||!ad(this).options.apiKey)throw new S("invalid-api-key");e=r.a.SDK_VERSION?Sr(r.a.SDK_VERSION):null,this.b=new Wo(ad(this).options&&ad(this).options.apiKey,P(x),e),this.P=[],this.m=[],this.O=[],this.$b=r.a.INTERNAL.createSubscribe(w(this.xc,this)),this.W=void 0,this.ac=r.a.INTERNAL.createSubscribe(w(this.yc,this)),rd(this,null),this.i=new Uu(ad(this).options.apiKey+":"+ad(this).name),this.B=new ju(ad(this).options.apiKey+":"+ad(this).name),this.Z=cd(this,function(e){var t=ad(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(Fu,e.a).then((function(e){return e&&t&&(e.authDomain=t),Bu(e||{})}))}(e.B,ad(e).options.authDomain).then((function(t){return(e.D=t)&&(t.ga=e.B),Hu(e.B)}));return cd(e,t)}(e).then((function(){return Ku(e.i,t)})).then((function(t){return t?(t.ga=e.B,e.D&&(e.D.fa||null)==(t.fa||null)?t:t.reload().then((function(){return Wu(e.i,t).then((function(){return t}))})).o((function(n){return"auth/network-request-failed"==n.code?t:Gu(e.i)}))):null})).then((function(t){rd(e,t||null)}));return cd(e,n)}(this)),this.h=cd(this,function(e){return e.Z.then((function(){return td(e)})).o((function(){})).then((function(){if(!e.l)return e.oa()})).o((function(){})).then((function(){if(!e.l){e.aa=!0;var t=e.i;t.b.addListener(qu("local"),t.a,e.oa)}}))}(this)),this.aa=!1,this.oa=w(this.Xc,this),this.Ma=w(this.ca,this),this.xa=w(this.jc,this),this.ya=w(this.uc,this),this.za=w(this.vc,this),this.a=null,function(e){var t=ad(e).options.authDomain,n=ad(e).options.apiKey;t&&$r()&&(e.Zb=e.Z.then((function(){if(!e.l){if(e.a=Rc(t,n,ad(e).name),Mc(e.a,e),od(e)&&wu(od(e)),e.D){wu(e.D);var r=e.D;r.va(e.ja()),pu(r,e),fu(r=e.D,e.N),mu(r,e),e.D=null}return e.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Ec,this),this.s=0,_n.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ja()},set:function(e){this.va(e)},enumerable:!1}),e.$=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(e){this.ub(e)},enumerable:!1}),e.R=null}(this),this.N=[]}function Qu(e){Kt.call(this,"languageCodeChanged"),this.g=e}function Zu(e){Kt.call(this,"frameworkChanged"),this.c=e}function ed(e){return e.Zb||Mt(new S("auth-domain-config-required"))}function td(e){if(!$r())return Mt(new S("operation-not-supported-in-this-environment"));var t=ed(e).then((function(){return e.a.pa()})).then((function(e){return e?Kr(e):null}));return cd(e,t)}function nd(e,t){var n={};return n.apiKey=ad(e).options.apiKey,n.authDomain=ad(e).options.authDomain,n.appName=ad(e).name,e.Z.then((function(){return function(e,t,n,r){var i=new hu(e,t);return n&&(i.ga=n),r&&fu(i,r),i.reload().then((function(){return i}))}(n,t,e.B,e.Ea())})).then((function(t){return od(e)&&t.uid==od(e).uid?($u(od(e),t),e.ca(t)):(rd(e,t),wu(t),e.ca(t))})).then((function(){ld(e)}))}function rd(e,t){od(e)&&(function(e,t){K(e.R,(function(e){return e==t}))}(od(e),e.Ma),dn(od(e),"tokenChanged",e.xa),dn(od(e),"userDeleted",e.ya),dn(od(e),"userInvalidated",e.za),yu(od(e))),t&&(t.R.push(e.Ma),ln(t,"tokenChanged",e.xa),ln(t,"userDeleted",e.ya),ln(t,"userInvalidated",e.za),0<e.s&&gu(t)),Wr(e,"currentUser",t),t&&(t.va(e.ja()),pu(t,e),fu(t,e.N),mu(t,e))}function id(e,t){var n=null,r=null;return cd(e,t.then((function(t){return n=Aa(t),r=Wi(t),nd(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=Qc(t.v(),e,w(e.ic,e))),n||t})).then((function(){return Kr({user:od(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function ad(e){return e.app}function od(e){return e.currentUser}function sd(e){return od(e)&&od(e)._lat||null}function ld(e){if(e.aa){for(var t=0;t<e.m.length;t++)e.m[t]&&e.m[t](sd(e));if(e.W!==e.getUid()&&e.O.length)for(e.W=e.getUid(),t=0;t<e.O.length;t++)e.O[t]&&e.O[t](sd(e))}}function cd(e,t){return e.P.push(t),t.ma((function(){G(e.P,t)})),t}function ud(){}function dd(){this.a={},this.b=1e12}Uu.prototype.tb=function(e){var t=null,n=this;return function(e){var t=new S("invalid-persistence-type"),n=new S("unsupported-persistence-type");e:{for(r in Wl)if(Wl[r]==e){var r=!0;break e}r=!1}if(!r||"string"!=typeof e)throw t;switch(br()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Cl()&&"none"!==e)throw n;break;default:if(!Mr()&&"none"!==e)throw n}}(e),Ju(this,(function(){return e!=n.c.F?n.b.get(n.c,n.a).then((function(r){return t=r,zu(n,e)})).then((function(){if(n.c=qu(e),t)return n.b.set(n.c,t,n.a)})):xt()}))},T(Xu,_n),T(Qu,Kt),T(Zu,Kt),(t=Xu.prototype).tb=function(e){return cd(this,e=this.i.tb(e))},t.va=function(e){this.$===e||this.l||(this.$=e,es(this.b,this.$),this.dispatchEvent(new Qu(this.ja())))},t.ja=function(){return this.$},t.dd=function(){var e=l.navigator;this.va(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},t.Ec=function(e){this.N.push(e),ts(this.b,r.a.SDK_VERSION?Sr(r.a.SDK_VERSION,this.N):null),this.dispatchEvent(new Zu(this.N))},t.Ea=function(){return X(this.N)},t.ub=function(e){this.R===e||this.l||(this.R=e,this.b.b=this.R)},t.S=function(){return this.R},t.toJSON=function(){return{apiKey:ad(this).options.apiKey,authDomain:ad(this).options.authDomain,appName:ad(this).name,currentUser:od(this)&&od(this).v()}},t.Cb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},t.la=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?w(this.gc,this):null},t.gc=function(e,t,n,r){var i=this,a={requestUri:e,postBody:r,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.Z.then((function(){return id(i,ms(i.b,a))}))},t.Vc=function(e){if(!$r())return Mt(new S("operation-not-supported-in-this-environment"));var t=this,n=qi(e.providerId),i=Nr(),a=null;(!Or()||gr())&&ad(this).options.authDomain&&e.isOAuthProvider&&(a=pl(ad(this).options.authDomain,ad(this).options.apiKey,ad(this).name,"signInViaPopup",e,null,i,r.a.SDK_VERSION||null,null,null,this.S()));var o=hr(a,n&&n.ta,n&&n.sa);return cd(this,n=ed(this).then((function(n){return Oc(n,o,"signInViaPopup",e,i,!!a,t.S())})).then((function(){return new _t((function(e,n){t.la("signInViaPopup",null,new S("cancelled-popup-request"),t.g),t.f=e,t.w=n,t.g=i,t.c=Ac(t.a,t,"signInViaPopup",o,i)}))})).then((function(e){return o&&dr(o),e?Kr(e):null})).o((function(e){throw o&&dr(o),e})))},t.Wc=function(e){if(!$r())return Mt(new S("operation-not-supported-in-this-environment"));var t=this;return cd(this,ed(this).then((function(){return function(e){return Ju(e,(function(){return e.b.set(Vu,e.c.F,e.a)}))}(t.i)})).then((function(){return Ic(t.a,"signInViaRedirect",e,void 0,t.S())})))},t.pa=function(){var e=this;return td(this).then((function(t){return e.a&&jc(e.a.b),t})).o((function(t){throw e.a&&jc(e.a.b),t}))},t.bd=function(e){if(!e)return Mt(new S("null-user"));if(this.R!=e.tenantId)return Mt(new S("tenant-id-mismatch"));var t=this,n={};n.apiKey=ad(this).options.apiKey,n.authDomain=ad(this).options.authDomain,n.appName=ad(this).name;var r=function(e,t,n,r){var i=e.b,a={};return a[Ko]=i.b&&i.b.toString(),a.refreshToken=i.a,t=new hu(t||{apiKey:e.l,authDomain:e.s,appName:e.m},a),n&&(t.ga=n),r&&fu(t,r),$u(t,e),t}(e,n,t.B,t.Ea());return cd(this,this.h.then((function(){if(ad(t).options.apiKey!=e.l)return r.reload()})).then((function(){return od(t)&&e.uid==od(t).uid?($u(od(t),e),t.ca(e)):(rd(t,r),wu(r),t.ca(r))})).then((function(){ld(t)})))},t.wb=function(){var e=this;return cd(this,this.h.then((function(){return e.a&&jc(e.a.b),od(e)?(rd(e,null),Gu(e.i).then((function(){ld(e)}))):xt()})))},t.Xc=function(){var e=this;return Ku(this.i,ad(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=od(e)&&t){n=od(e).uid;var r=t.uid;n=null!=n&&""!==n&&null!=r&&""!==r&&n==r}if(n)return $u(od(e),t),od(e).I();(od(e)||t)&&(rd(e,t),t&&(wu(t),t.ga=e.B),e.a&&Mc(e.a,e),ld(e))}}))},t.ca=function(e){return Wu(this.i,e)},t.jc=function(){ld(this),this.ca(od(this))},t.uc=function(){this.wb()},t.vc=function(){this.wb()},t.ic=function(e){var t=this;return this.h.then((function(){return id(t,xt(e))}))},t.xc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(od(t))}))},t.yc=function(e){var t=this;!function(e,t){e.O.push(t),cd(e,e.h.then((function(){!e.l&&W(e.O,t)&&e.W!==e.getUid()&&(e.W=e.getUid(),t(sd(e)))})))}(this,(function(){e.next(od(t))}))},t.Gc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){f(e)?e(od(r)):f(e.next)&&e.next(od(r))})),this.$b(e,t,n)},t.Fc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){r.W=r.getUid(),f(e)?e(od(r)):f(e.next)&&e.next(od(r))})),this.ac(e,t,n)},t.kc=function(e){var t=this;return cd(this,this.h.then((function(){return od(t)?od(t).I(e).then((function(e){return{accessToken:e}})):null})))},t.Rc=function(e){var t=this;return this.h.then((function(){return id(t,Qs(t.b,qs,{token:e}))})).then((function(e){var n=e.user;return Mu(n,"isAnonymous",!1),t.ca(n),e}))},t.Sc=function(e,t){var n=this;return this.h.then((function(){return id(n,Qs(n.b,Ws,{email:e,password:t}))}))},t.cc=function(e,t){var n=this;return this.h.then((function(){return id(n,Qs(n.b,ws,{email:e,password:t}))}))},t.Ya=function(e){var t=this;return this.h.then((function(){return id(t,e.ia(t.b))}))},t.Qc=function(e){return Vr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(e)},t.vb=function(){var e=this;return this.h.then((function(){var t=od(e);if(t&&t.isAnonymous){var n=Kr({providerId:null,isNewUser:!1});return Kr({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return id(e,e.b.vb()).then((function(t){var n=t.user;return Mu(n,"isAnonymous",!0),e.ca(n),t}))}))},t.getUid=function(){return od(this)&&od(this).uid||null},t.bc=function(e){this.addAuthTokenListener(e),this.s++,0<this.s&&od(this)&&gu(od(this))},t.Nc=function(e){var t=this;U(this.m,(function(n){n==e&&t.s--})),0>this.s&&(this.s=0),0==this.s&&od(this)&&yu(od(this)),this.removeAuthTokenListener(e)},t.addAuthTokenListener=function(e){var t=this;this.m.push(e),cd(this,this.h.then((function(){t.l||W(t.m,e)&&e(sd(t))})))},t.removeAuthTokenListener=function(e){K(this.m,(function(t){return t==e}))},t.delete=function(){this.l=!0;for(var e=0;e<this.P.length;e++)this.P[e].cancel("app-deleted");return this.P=[],this.i&&(e=this.i).b.removeListener(qu("local"),e.a,this.oa),this.a&&($c(this.a,this),jc(this.a.b)),Promise.resolve()},t.fc=function(e){return cd(this,function(e,t){return Qs(e,ks,{identifier:t,continueUri:Lr()?lr():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.b,e))},t.zc=function(e){return!!$a(e)},t.sb=function(e,t){var n=this;return cd(this,xt().then((function(){var e=new xi(t);if(!e.c)throw new S("argument-error",Li+" must be true when sending sign in link to email");return Ri(e)})).then((function(t){return n.b.sb(e,t)})).then((function(){})))},t.fd=function(e){return this.Pa(e).then((function(e){return e.data.email}))},t.jb=function(e,t){return cd(this,this.b.jb(e,t).then((function(){})))},t.Pa=function(e){return cd(this,this.b.Pa(e).then((function(e){return new ii(e)})))},t.fb=function(e){return cd(this,this.b.fb(e).then((function(){})))},t.rb=function(e,t){var n=this;return cd(this,xt().then((function(){return void 0===t||pe(t)?{}:Ri(new xi(t))})).then((function(t){return n.b.rb(e,t)})).then((function(){})))},t.Uc=function(e,t){return cd(this,qc(this,e,t,w(this.Ya,this)))},t.Tc=function(e,t){var n=this;return cd(this,xt().then((function(){var r=t||lr(),i=Ma(e,r);if(!(r=$a(r)))throw new S("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new S("tenant-id-mismatch");return n.Ya(i)})))},ud.prototype.render=function(){},ud.prototype.reset=function(){},ud.prototype.getResponse=function(){},ud.prototype.execute=function(){};var hd=null;function pd(e,t){return(t=fd(t))&&e.a[t]||null}function fd(e){return(e=void 0===e?1e12:e)?e.toString():null}function md(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ot(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():ln(this.f,"click",this.i)}function vd(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function gd(){}function yd(){}dd.prototype.render=function(e,t){return this.a[this.b.toString()]=new md(e,t),this.b++},dd.prototype.reset=function(e){var t=pd(this,e);e=fd(e),t&&e&&(t.delete(),delete this.a[e])},dd.prototype.getResponse=function(e){return(e=pd(this,e))?e.getResponse():null},dd.prototype.execute=function(e){(e=pd(this,e))&&e.execute()},md.prototype.getResponse=function(){return vd(this),this.b},md.prototype.execute=function(){vd(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()}),6e4)}),500))},md.prototype.delete=function(){vd(this),this.g=!0,clearTimeout(this.a),this.a=null,dn(this.f,"click",this.i)},Wr(gd,"FACTOR_ID","phone"),yd.prototype.g=function(){return hd||(hd=new dd),xt(hd)},yd.prototype.c=function(){};var bd=null;function _d(){this.b=l.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var wd=new ye(we,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),kd=new Br(3e4,6e4);_d.prototype.g=function(e){var t=this;return new _t((function(n,r){var i=setTimeout((function(){r(new S("network-request-failed"))}),kd.get());!l.grecaptcha||e!==t.f&&!t.b?(l[t.a]=function(){if(l.grecaptcha){t.f=e;var a=l.grecaptcha.render;l.grecaptcha.render=function(e,n){return e=a(e,n),t.b++,e},clearTimeout(i),n(l.grecaptcha)}else clearTimeout(i),r(new S("internal-error"));delete l[t.a]},xt(jo(Se(wd,{onload:t.a,hl:e||""}))).o((function(){clearTimeout(i),r(new S("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(l.grecaptcha))}))},_d.prototype.c=function(){this.b--};var Ed=null;function Td(e,t,n,r,i,a,o){if(Wr(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=t,this.g=null,o?(bd||(bd=new yd),o=bd):(Ed||(Ed=new _d),o=Ed),this.m=o,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[xd])throw new S("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Md],!l.document)throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ot(t)||!this.i&&ot(t).hasChildNodes())throw new S("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Wo(e,a||null,i||null),this.w=r||function(){return null};var s=this;this.l=[];var c=this.a[Sd];this.a[Sd]=function(e){if($d(s,e),"function"==typeof c)c(e);else if("string"==typeof c){var t=xr(c,l);"function"==typeof t&&t(e)}};var u=this.a[Cd];this.a[Cd]=function(){if($d(s,null),"function"==typeof u)u();else if("string"==typeof u){var e=xr(u,l);"function"==typeof e&&e()}}}var Sd="callback",Cd="expired-callback",xd="sitekey",Md="size";function $d(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(e){}}function Ld(e,t){return e.h.push(t),t.ma((function(){G(e.h,t)})),t}function Pd(e){if(e.D)throw new S("internal-error","RecaptchaVerifier instance has been destroyed.")}function Od(e,t,n){var i=!1;try{this.b=n||r.a.app()}catch(e){throw new S("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new S("invalid-api-key");n=this.b.options.apiKey;var a=this,o=null;try{o=this.b.auth().Ea()}catch(e){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}o=r.a.SDK_VERSION?Sr(r.a.SDK_VERSION,o):null,Td.call(this,n,e,t,(function(){try{var e=a.b.auth().ja()}catch(t){e=null}return e}),o,P(x),i)}function Dd(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,a=!1,o=0;o<t.length;o++)if(t[o].optional)a=!0;else{if(a)throw new S("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(a=t.length,n.length<i||a<n.length)r="Expected "+(i==a?1==i?"1 argument":i+" arguments":i+"-"+a+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(a=t[i].optional&&void 0===n[i],!t[i].K(n[i])&&!a){if(t=t[i],0>i||i>=Id.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");n=Id[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.J+".";break e}r=null}}if(r)throw new S("argument-error",e+" failed: "+r)}(t=Td.prototype).Ga=function(){var e=this;return this.f?this.f:this.f=Ld(this,xt().then((function(){if(Lr()&&!yr())return mr();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.w())})).then((function(t){return e.g=t,Qs(e.s,As,{})})).then((function(t){e.a[xd]=t.recaptchaSiteKey})).o((function(t){throw e.f=null,t})))},t.render=function(){Pd(this);var e=this;return Ld(this,this.Ga().then((function(){if(null===e.c){var t=e.u;if(!e.i){var n=ot(t);t=function(e,t,n){var r=arguments,i=document,a=String(r[0]),o=r[1];if(!at&&o&&(o.name||o.type)){if(a=["<",a],o.name&&a.push(' name="',He(o.name),'"'),o.type){a.push(' type="',He(o.type),'"');var s={};ve(s,o),delete s.type,o=s}a.push(">"),a=a.join("")}return a=ht(i,a),o&&("string"==typeof o?a.className=o:Array.isArray(o)?a.className=o.join(" "):st(a,o)),2<r.length&&dt(i,a,r),a}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},t.verify=function(){Pd(this);var e=this;return Ld(this,this.render().then((function(t){return new _t((function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(function(e,t){K(e.l,(function(e){return e==t}))}(e,i),n(t))};e.l.push(i),e.i&&e.g.execute(e.c)}}))})))},t.reset=function(){Pd(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Pd(this),this.D=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=ot(this.u);for(var t;t=e.firstChild;)e.removeChild(t)}},T(Od,Td);var Id="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Ad(e,t){return{name:e||"",J:"a valid string",optional:!!t,K:function(e){return"string"==typeof e}}}function Nd(e,t){return{name:e||"",J:"a boolean",optional:!!t,K:function(e){return"boolean"==typeof e}}}function Rd(e,t){return{name:e||"",J:"a valid object",optional:!!t,K:m}}function Yd(e,t){return{name:e||"",J:"a function",optional:!!t,K:f}}function Bd(e,t){return{name:e||"",J:"null",optional:!!t,K:function(e){return null===e}}}function jd(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ia||!n)}}}function Fd(e,t){return m(e)&&"string"==typeof e.type&&e.type===t&&f(e.Fa)}function Hd(e){return m(e)&&"string"==typeof e.uid}function Ud(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||!f(e.verify))}}}function zd(e,t,n,r){return{name:n||"",J:e.J+" or "+t.J,optional:!!r,K:function(n){return e.K(n)||t.K(n)}}}function Vd(e,t){for(var n in t){var r=t[n].name;e[r]=Gd(r,e[n],t[n].j)}}function qd(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:k((function(e){return this[e]}),n),set:k((function(e,t,n,r){Dd(e,[n],[r],!0),this[t]=r}),r,n,t[n].gb),enumerable:!0})}}function Wd(e,t,n,r){e[t]=Gd(t,n,r)}function Gd(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Dd(a,n,e),t.apply(this,e)}if(!n)return t;var i,a=function(e){return(e=e.split("."))[e.length-1]}(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}Vd(Xu.prototype,{fb:{name:"applyActionCode",j:[Ad("code")]},Pa:{name:"checkActionCode",j:[Ad("code")]},jb:{name:"confirmPasswordReset",j:[Ad("code"),Ad("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Ad("email"),Ad("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Ad("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Ad("emailLink")]},Fc:{name:"onAuthStateChanged",j:[zd(Rd(),Yd(),"nextOrObserver"),Yd("opt_error",!0),Yd("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[zd(Rd(),Yd(),"nextOrObserver"),Yd("opt_error",!0),Yd("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Ad("email"),zd(Rd("opt_actionCodeSettings",!0),Bd(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Ad("email"),Rd("actionCodeSettings")]},tb:{name:"setPersistence",j:[Ad("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[jd()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[jd()]},Rc:{name:"signInWithCustomToken",j:[Ad("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Ad("email"),Ad("password")]},Tc:{name:"signInWithEmailLink",j:[Ad("email"),Ad("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Ad("phoneNumber"),Ud()]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[zd({name:"user",J:"an instance of Firebase User",optional:!1,K:function(e){return!!(e&&e instanceof hu)}},Bd(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Ad(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Ad("code")]}}),qd(Xu.prototype,{lc:{name:"languageCode",gb:zd(Ad(),Bd(),"languageCode")},ti:{name:"tenantId",gb:zd(Ad(),Bd(),"tenantId")}}),Xu.Persistence=Wl,Xu.Persistence.LOCAL="local",Xu.Persistence.SESSION="session",Xu.Persistence.NONE="none",Vd(hu.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[Nd("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Nd("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[jd()]},mb:{name:"linkWithCredential",j:[jd()]},Bc:{name:"linkWithPhoneNumber",j:[Ad("phoneNumber"),Ud()]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[jd()]},pb:{name:"reauthenticateWithCredential",j:[jd()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Ad("phoneNumber"),Ud()]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[zd(Rd("opt_actionCodeSettings",!0),Bd(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Ad(null,!0)]},ad:{name:"unlink",j:[Ad("provider")]},xb:{name:"updateEmail",j:[Ad("email")]},yb:{name:"updatePassword",j:[Ad("password")]},cd:{name:"updatePhoneNumber",j:[jd("phone")]},zb:{name:"updateProfile",j:[Rd("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Ad("email"),zd(Rd("opt_actionCodeSettings",!0),Bd(null,!0),"opt_actionCodeSettings",!0)]}}),Vd(dd.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Vd(ud.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Vd(_t.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),qd(zc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Nd("appVerificationDisabledForTesting")}}),Vd(Vc.prototype,{confirm:{name:"confirm",j:[Ad("verificationCode")]}}),Wd(oa,"fromJSON",(function(e){e="string"==typeof e?JSON.parse(e):e;for(var t,n=[pa,Ca,Pa,ua],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[zd(Ad(),Rd(),"json")]),Wd(xa,"credential",(function(e,t){return new Sa(e,t)}),[Ad("email"),Ad("password")]),Vd(Sa.prototype,{v:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(ga.prototype,{Aa:{name:"addScope",j:[Ad("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(ga,"credential",ya,[zd(Ad(),Rd(),"token")]),Wd(xa,"credentialWithLink",Ma,[Ad("email"),Ad("emailLink")]),Vd(ba.prototype,{Aa:{name:"addScope",j:[Ad("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(ba,"credential",_a,[zd(Ad(),Rd(),"token")]),Vd(wa.prototype,{Aa:{name:"addScope",j:[Ad("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(wa,"credential",ka,[zd(Ad(),zd(Rd(),Bd()),"idToken"),zd(Ad(),Bd(),"accessToken",!0)]),Vd(Ea.prototype,{Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(Ea,"credential",Ta,[zd(Ad(),Rd(),"token"),Ad("secret",!0)]),Vd(va.prototype,{Aa:{name:"addScope",j:[Ad("scope")]},credential:{name:"credential",j:[zd(Ad(),zd(Rd(),Bd()),"optionsOrIdToken"),zd(Ad(),Bd(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Vd(da.prototype,{v:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(la.prototype,{v:{name:"toJSON",j:[Ad(null,!0)]}}),Wd(Da,"credential",Ia,[Ad("verificationId"),Ad("verificationCode")]),Vd(Da.prototype,{cb:{name:"verifyPhoneNumber",j:[zd(Ad(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(e){return!!e&&(e.session&&e.phoneNumber?Fd(e.session,ia)&&"string"==typeof e.phoneNumber:e.session&&e.multiFactorHint?Fd(e.session,aa)&&Hd(e.multiFactorHint):e.session&&e.multiFactorUid?Fd(e.session,aa)&&"string"==typeof e.multiFactorUid:!!e.phoneNumber&&"string"==typeof e.phoneNumber)}},"phoneInfoOptions"),Ud()]}}),Vd(La.prototype,{v:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(S.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(Ua.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(Ha.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(Xc.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),Vd(Gc.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}}]}}),Vd(ru.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}},Ad("displayName",!0)]},$c:{name:"unenroll",j:[zd({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Hd},Ad(),"multiFactorInfoIdentifier")]}}),Vd(Od.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Wd(yi,"parseLink",Ci,[Ad("link")]),Wd(gd,"assertion",(function(e){return new tu(e)}),[jd("phone")]),function(){if(void 0===r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:oi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ai,VERIFY_AND_CHANGE_EMAIL:si,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Xu,AuthCredential:oa,Error:S};Wd(e,"EmailAuthProvider",xa,[]),Wd(e,"FacebookAuthProvider",ga,[]),Wd(e,"GithubAuthProvider",ba,[]),Wd(e,"GoogleAuthProvider",wa,[]),Wd(e,"TwitterAuthProvider",Ea,[]),Wd(e,"OAuthProvider",va,[Ad("providerId")]),Wd(e,"SAMLAuthProvider",ma,[Ad("providerId")]),Wd(e,"PhoneAuthProvider",Da,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof Xu)}}]),Wd(e,"RecaptchaVerifier",Od,[zd(Ad(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Rd("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof r.a.app.App)}}]),Wd(e,"ActionCodeURL",yi,[]),Wd(e,"PhoneMultiFactorGenerator",gd,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new Xu(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),r.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:w((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:w(e.kc,e),addAuthTokenListener:w(e.bc,e),removeAuthTokenListener:w(e.Nc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.a.registerVersion("@firebase/auth","0.14.4"),r.a.INTERNAL.extendNamespace({User:hu})}()}).apply(void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}.call(this,n(21))},function(e,t,n){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=(i=n(17))&&"object"==typeof i&&"default"in i?i.default:i,s=n(5),l=n(23),c=n(28),u=n(22),d=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),l.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:l.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),h=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return l.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),p=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new d(t)}}catch(e){}return new h},f=p("localStorage"),m=p("sessionStorage"),v=new c.Logger("@firebase/database"),g=(a=1,function(){return a++}),y=function(e){var t=l.stringToByteArray(e),n=new l.Sha1;n.update(t);var r=n.digest();return l.base64.encodeByteArray(r)},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var i=e[r];Array.isArray(i)||i&&"object"==typeof i&&"number"==typeof i.length?n+=b.apply(null,i):n+="object"==typeof i?l.stringify(i):i,n+=" "}return n},_=null,w=!0,k=function(e,t){l.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(v.logLevel=c.LogLevel.VERBOSE,_=v.log.bind(v),t&&m.set("logging_enabled",!0)):"function"==typeof e?_=e:(_=null,m.remove("logging_enabled"))},E=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===w&&(w=!1,null===_&&!0===m.get("logging_enabled")&&k(!0)),_){var n=b.apply(null,e);_(n)}},T=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];E.apply(void 0,s.__spread([e],t))}},S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+b.apply(void 0,s.__spread(e));v.error(n)},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+b.apply(void 0,s.__spread(e));throw v.error(n),new Error(n)},x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+b.apply(void 0,s.__spread(e));v.warn(n)},M=function(e){return"number"==typeof e&&(e!=e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},$="[MIN_NAME]",L="[MAX_NAME]",P=function(e,t){if(e===t)return 0;if(e===$||t===L)return-1;if(t===$||e===L)return 1;var n=B(e),r=B(t);return null!==n?null!==r?n-r==0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},O=function(e,t){return e===t?0:e<t?-1:1},D=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+l.stringify(t))},I=function(e){if("object"!=typeof e||null===e)return l.stringify(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",i=0;i<t.length;i++)0!==i&&(r+=","),r+=l.stringify(t[i]),r+=":",r+=I(e[t[i]]);return r+="}"},A=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function N(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var R=function(e){l.assert(!M(e),"Invalid JSON number");var t,n,r,i,a;0===e?(n=0,r=0,t=1/e==-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var o=[];for(a=52;a;a-=1)o.push(r%2?1:0),r=Math.floor(r/2);for(a=11;a;a-=1)o.push(n%2?1:0),n=Math.floor(n/2);o.push(t?1:0),o.reverse();var s=o.join(""),c="";for(a=0;a<64;a+=8){var u=parseInt(s.substr(a,8),2).toString(16);1===u.length&&(u="0"+u),c+=u}return c.toLowerCase()},Y=new RegExp("^-?(0*)\\d{1,10}$"),B=function(e){if(Y.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},j=function(e){try{e()}catch(e){setTimeout((function(){var t=e.stack||"";throw x("Exception was thrown by user callback.",t),e}),Math.floor(0))}},F=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n},H=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var i=t.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),i=0;i<n.length&&i<r.length;i++){var a=P(n[i],r[i]);if(0!==a)return a}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),U=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=l.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=l.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=l.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),z=function(){function e(e,t,n,r,i,a){void 0===i&&(i=""),void 0===a&&(a=!1),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=i,this.includeNamespaceInQueryParams=a,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=f.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&f.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(l.assert("string"==typeof e,"typeof type must == string"),l.assert("object"==typeof t,"typeof params must == object"),"websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==e)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return N(t,(function(e,t){r.push(e+"="+t)})),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var V,q,W,G,K,J=function(e){var t=X(e),n=t.namespace;"firebase"===t.domain&&C(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!==n||"localhost"===t.domain||C("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&x("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new z(t.host,t.secure,n,r,"",n!==t.subdomain),path:new H(t.pathString)}},X=function(e){var t="",n="",r="",i="",a="",o=!0,l="https",c=443;if("string"==typeof e){var u=e.indexOf("//");u>=0&&(l=e.substring(0,u-1),e=e.substring(u+2));var d=e.indexOf("/");-1===d&&(d=e.length);var h=e.indexOf("?");-1===h&&(h=e.length),t=e.substring(0,Math.min(d,h)),d<h&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(e){}t+="/"+i}return t}(e.substring(d,h)));var p=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=s.__values(e.split("&")),a=i.next();!a.done;a=i.next()){var o=a.value;if(0!==o.length){var l=o.split("=");2===l.length?r[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):x("Invalid query segment '"+o+"' in query '"+e+"'")}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.substring(Math.min(e.length,h)));(u=t.indexOf(":"))>=0?(o="https"===l||"wss"===l,c=parseInt(t.substring(u+1),10)):u=e.length;var f=t.split(".");3===f.length?(n=f[1],a=r=f[0].toLowerCase()):2===f.length?n=f[0]:"localhost"===f[0].slice(0,u).toLowerCase()&&(n="localhost"),"ns"in p&&(a=p.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:o,scheme:l,pathString:i,namespace:a}},Q=/[\[\].#$\/\u0000-\u001F\u007F]/,Z=/[\[\].#$\u0000-\u001F\u007F]/,ee=function(e){return"string"==typeof e&&0!==e.length&&!Q.test(e)},te=function(e){return"string"==typeof e&&0!==e.length&&!Z.test(e)},ne=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!M(e)||e&&"object"==typeof e&&l.contains(e,".sv")},re=function(e,t,n,r,i){i&&void 0===n||ie(l.errorPrefix(e,t,i),n,r)},ie=function(e,t,n){var r=n instanceof H?new U(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"==typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(M(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"==typeof t&&t.length>10485760/3&&l.stringLength(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){var i=!1,a=!1;if(N(t,(function(t,n){if(".value"===t)i=!0;else if(".priority"!==t&&".sv"!==t&&(a=!0,!ee(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),ie(e,n,r),r.pop()})),i&&a)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ae=function(e,t,n,r,i){if(!i||void 0!==n){var a=l.errorPrefix(e,t,i);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(a+" must be an object containing the children to replace.");var o=[];N(n,(function(e,t){var n=new H(e);if(ie(a,t,r.child(n)),".priority"===n.getBack()&&!ne(t))throw new Error(a+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");o.push(n)})),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=(r=t[n]).slice(),a=0;a<i.length;a++)if(".priority"===i[a]&&a===i.length-1);else if(!ee(i[a]))throw new Error(e+"contains an invalid key ("+i[a]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(H.comparePaths);var o=null;for(n=0;n<t.length;n++){if(r=t[n],null!==o&&o.contains(r))throw new Error(e+"contains a path "+o.toString()+" that is ancestor of another path "+r.toString());o=r}}(a,o)}},oe=function(e,t,n,r){if(!r||void 0!==n){if(M(n))throw new Error(l.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!ne(n))throw new Error(l.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},se=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(l.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},le=function(e,t,n,r){if(!(r&&void 0===n||ee(n)))throw new Error(l.errorPrefix(e,t,r)+'was an invalid key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ce=function(e,t,n,r){if(!(r&&void 0===n||te(n)))throw new Error(l.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},ue=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ce(e,t,n,r)},de=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},he=function(e,t,n){var r=n.path.toString();if("string"!=typeof n.repoInfo.host||0===n.repoInfo.host.length||!ee(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),te(e)}(r))throw new Error(l.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},pe=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!=typeof n)throw new Error(l.errorPrefix(e,t,r)+"must be a boolean.")},fe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){l.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),l.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new l.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){l.validateArgCount("OnDisconnect.remove",0,1,arguments.length),de("OnDisconnect.remove",this.path_),l.validateCallback("OnDisconnect.remove",1,e,!0);var t=new l.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){l.validateArgCount("OnDisconnect.set",1,2,arguments.length),de("OnDisconnect.set",this.path_),re("OnDisconnect.set",1,e,this.path_,!1),l.validateCallback("OnDisconnect.set",2,t,!0);var n=new l.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){l.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),de("OnDisconnect.setWithPriority",this.path_),re("OnDisconnect.setWithPriority",1,e,this.path_,!1),oe("OnDisconnect.setWithPriority",2,t,!1),l.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new l.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(l.validateArgCount("OnDisconnect.update",1,2,arguments.length),de("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,x("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("OnDisconnect.update",1,e,this.path_,!1),l.validateCallback("OnDisconnect.update",2,t,!0);var i=new l.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,i.wrapCallback(t)),i.promise},e}(),me=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return l.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),ve=(V="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",q=0,W=[],function(e){var t,n=e===q;q=e;var r=new Array(8);for(t=7;t>=0;t--)r[t]=V.charAt(e%64),e=Math.floor(e/64);l.assert(0===e,"Cannot push at time == 0");var i=r.join("");if(n){for(t=11;t>=0&&63===W[t];t--)W[t]=0;W[t]++}else for(t=0;t<12;t++)W[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)i+=V.charAt(W[t]);return l.assert(20===i.length,"nextPushId: Length should be 20."),i}),ge=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ye=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new ge($,e),r=new ge($,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return ge.MIN},e}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return G},set:function(e){G=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return P(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw l.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return new ge(L,G)},t.prototype.makePost=function(e,t){return l.assert("string"==typeof e,"KeyIndex indexValue must always be a string."),new ge(e,G)},t.prototype.toString=function(){return".key"},t}(ye),_e=new be;var we,ke,Ee,Te=function(e){return"number"==typeof e?"number:"+R(e):"string:"+e},Se=function(e){if(e.isLeafNode()){var t=e.val();l.assert("string"==typeof t||"number"==typeof t||"object"==typeof t&&l.contains(t,".sv"),"Priority must be a string or number.")}else l.assert(e===K||e.isEmpty(),"priority of unexpected type.");l.assert(e===K||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Ce=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,l.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Se(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return we},set:function(e){we=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(l.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+Te(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?R(this.value_):this.value_,this.lazyHash_=y(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(l.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),a=e.VALUE_TYPE_ORDER.indexOf(r);return l.assert(i>=0,"Unknown leaf type: "+n),l.assert(a>=0,"Unknown leaf type: "+r),i===a?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:a-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var xe,Me,$e=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?P(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return new ge(L,new Ce("[PRIORITY-POST]",Ee))},t.prototype.makePost=function(e,t){var n=ke(e);return new ge(t,new Ce("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ye)),Le=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var a=1;!e.isEmpty();)if(e=e,a=t?n(e.key,t):1,r&&(a*=-1),a<0)e=this.isReverse_?e.left:e.right;else{if(0===a){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Pe=function(){function e(t,n,r,i,a){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:De.EMPTY_NODE,this.right=null!=a?a:De.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return De.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return De.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Oe=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new Pe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),De=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Pe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Pe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Le(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Le(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Le(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Le(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Oe,e}(),Ie=Math.log(2),Ae=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Ie,10)),this.current_=this.count-1;var n,r=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&r}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Ne=function(e,t,n,r){e.sort(t);var i=function(t,r){var a,o,s=r-t;if(0===s)return null;if(1===s)return a=e[t],o=n?n(a):a,new Pe(o,a.node,Pe.BLACK,null,null);var l=parseInt(s/2,10)+t,c=i(t,l),u=i(l+1,r);return a=e[l],o=n?n(a):a,new Pe(o,a.node,Pe.BLACK,c,u)},a=function(t){for(var r=null,a=null,o=e.length,s=function(t,r){var a=o-t,s=o;o-=t;var c=i(a+1,s),u=e[a],d=n?n(u):u;l(new Pe(d,u.node,r,null,c))},l=function(e){r?(r.left=e,r=e):(a=e,r=e)},c=0;c<t.count;++c){var u=t.nextBitIsOne(),d=Math.pow(2,t.count-(c+1));u?s(d,Pe.BLACK):(s(d,Pe.BLACK),s(d,Pe.RED))}return a}(new Ae(e.length));return new De(r||t,a)},Re={},Ye=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return l.assert(Re&&$e,"ChildrenNode.ts has not been loaded"),xe=xe||new e({".priority":Re},{".priority":$e})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=l.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof De?t:null},e.prototype.hasIndex=function(e){return l.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){l.assert(t!==_e,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,i=[],a=!1,o=n.getIterator(ge.Wrap),c=o.getNext();c;)a=a||t.isDefinedOn(c.node),i.push(c),c=o.getNext();r=a?Ne(i,t.getCompare()):Re;var u=t.toString(),d=s.__assign({},this.indexSet_);d[u]=t;var h=s.__assign({},this.indexes_);return h[u]=r,new e(h,d)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(l.map(this.indexes_,(function(e,i){var a=l.safeGet(r.indexSet_,i);if(l.assert(a,"Missing index implementation for "+i),e===Re){if(a.isDefinedOn(t.node)){for(var o=[],s=n.getIterator(ge.Wrap),c=s.getNext();c;)c.name!==t.name&&o.push(c),c=s.getNext();return o.push(t),Ne(o,a.getCompare())}return Re}var u=n.get(t.name),d=e;return u&&(d=d.remove(new ge(t.name,u))),d.insert(t,t.node)})),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(l.map(this.indexes_,(function(e){if(e===Re)return e;var r=n.get(t.name);return r?e.remove(new ge(t.name,r)):e})),this.indexSet_)},e}();function Be(e,t){return P(e.name,t.name)}function je(e,t){return P(e,t)}var Fe=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Se(this.priorityNode_),this.children_.isEmpty()&&l.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Me||(Me=new e(new De(je),null,Ye.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Me},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Me:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(l.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new ge(t,n),i=void 0,a=void 0;n.isEmpty()?(i=this.children_.remove(t),a=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),a=this.indexMap_.addToIndexes(r,this.children_));var o=i.isEmpty()?Me:this.priorityNode_;return new e(i,o,a)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;l.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,a=!0;if(this.forEachChild($e,(function(o,s){n[o]=s.val(t),r++,a&&e.INTEGER_REGEXP_.test(o)?i=Math.max(i,Number(o)):a=!1})),!t&&a&&i<2*r){var o=[];for(var s in n)o[s]=n[s];return o}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+Te(this.getPriority().val())+":"),this.forEachChild($e,(function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":y(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new ge(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new ge(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new ge(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getIteratorFrom(e.name,ge.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getReverseIteratorFrom(e.name,ge.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===He?-1:0},e.prototype.withIndex=function(t){if(t===_e||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===_e||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator($e),r=t.getIterator($e),i=n.getNext(),a=r.getNext();i&&a;){if(i.name!==a.name||!i.node.equals(a.node))return!1;i=n.getNext(),a=r.getNext()}return null===i&&null===a}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===_e?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),He=new(function(e){function t(){return e.call(this,new De(je),Fe.EMPTY_NODE,Ye.Default)||this}return s.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Fe.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Fe));Object.defineProperties(ge,{MIN:{value:new ge($,Fe.EMPTY_NODE)},MAX:{value:new ge(L,He)}}),be.__EMPTY_NODE=Fe.EMPTY_NODE,Ce.__childrenNodeConstructor=Fe,K=He,function(e){Ee=e}(He);function Ue(e,t){if(void 0===t&&(t=null),null===e)return Fe.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),l.assert(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new Ce(e,Ue(t));if(e instanceof Array){var n=Fe.EMPTY_NODE;return N(e,(function(t,r){if(l.contains(e,t)&&"."!==t.substring(0,1)){var i=Ue(r);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(t,i))}})),n.updatePriority(Ue(t))}var r=[],i=!1;if(N(e,(function(e,t){if("."!==e.substring(0,1)){var n=Ue(t);n.isEmpty()||(i=i||!n.getPriority().isEmpty(),r.push(new ge(e,n)))}})),0===r.length)return Fe.EMPTY_NODE;var a=Ne(r,Be,(function(e){return e.name}),je);if(i){var o=Ne(r,$e.getCompare());return new Fe(a,Ue(t),new Ye({".priority":o},{".priority":$e}))}return new Fe(a,Ue(t),Ye.Default)}!function(e){ke=e}(Ue);var ze,Ve=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?P(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return ge.MAX},t.prototype.makePost=function(e,t){var n=Ue(e);return new ge(t,n)},t.prototype.toString=function(){return".value"},t}(ye)),qe=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,l.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return s.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?P(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=Ue(e),r=Fe.EMPTY_NODE.updateChild(this.indexPath_,n);return new ge(t,r)},t.prototype.maxPost=function(){var e=Fe.EMPTY_NODE.updateChild(this.indexPath_,He);return new ge(L,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ye),We=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return l.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return l.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return l.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return l.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){l.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ce("DataSnapshot.child",1,t,!1);var n=new H(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,$e)},e.prototype.hasChild=function(e){l.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ce("DataSnapshot.hasChild",1,e,!1);var t=new H(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return l.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;if(l.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),l.validateCallback("DataSnapshot.forEach",1,t,!1),this.node_.isLeafNode())return!1;var r=this.node_;return!!r.forEachChild(this.index_,(function(r,i){return t(new e(i,n.ref_.child(r),$e))}))},e.prototype.hasChildren=function(){return l.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return l.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return l.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ge=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+l.stringify(this.snapshot.exportVal())},e}(),Ke=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),Je=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new Ge("value",this,new We(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){l.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ke(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),Xe=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,l.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ke(this,e,t):null},e.prototype.createEvent=function(e,t){l.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new Ge(e.type,this,new We(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){l.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var r=Object.keys(t.callbacks_),i=Object.keys(this.callbacks_),a=r.length;if(a===i.length){if(1===a){var o=r[0],s=i[0];return!(s!==o||t.callbacks_[o]&&this.callbacks_[s]&&t.callbacks_[o]!==this.callbacks_[s])}return i.every((function(e){return t.callbacks_[e]===n.callbacks_[e]}))}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Qe=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return l.assert(ze,"Reference.ts has not been loaded"),ze},set:function(e){ze=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===_e){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==$)throw new Error(r);if("string"!=typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==L)throw new Error(r);if("string"!=typeof n)throw new Error(i)}}else if(e.getIndex()===$e){if(null!=t&&!ne(t)||null!=n&&!ne(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(l.assert(e.getIndex()instanceof qe||e.getIndex()===Ve,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return l.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,i){l.validateArgCount("Query.on",2,4,arguments.length),se("Query.on",1,t,!1),l.validateCallback("Query.on",2,n,!1);var a=e.getCancelAndContextArgs_("Query.on",r,i);if("value"===t)this.onValueEvent(n,a.cancel,a.context);else{var o={};o[t]=n,this.onChildEvent(o,a.cancel,a.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new Je(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new Xe(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){l.validateArgCount("Query.off",0,3,arguments.length),se("Query.off",1,e,!0),l.validateCallback("Query.off",2,t,!0),l.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===e){var a=t||null;r=new Je(a,null,n||null)}else e&&(t&&((i={})[e]=t),r=new Xe(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,i){var a=this;l.validateArgCount("Query.once",1,4,arguments.length),se("Query.once",1,t,!1),l.validateCallback("Query.once",2,n,!0);var o=e.getCancelAndContextArgs_("Query.once",r,i),s=!0,c=new l.Deferred;c.promise.catch((function(){}));var u=function(e){s&&(s=!1,a.off(t,u),n&&n.bind(o.context)(e),c.resolve(e))};return this.on(t,u,(function(e){a.off(t,u),o.cancel&&o.cancel.bind(o.context)(e),c.reject(e)})),c.promise},e.prototype.limitToFirst=function(t){if(l.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(l.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(l.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid.  Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');ce("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new H(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var r=new qe(n),i=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(i),new e(this.repo,this.path,i,!0)},e.prototype.orderByKey=function(){l.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(_e);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){l.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy($e);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){l.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(Ve);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),l.validateArgCount("Query.startAt",0,2,arguments.length),re("Query.startAt",1,t,this.path,!0),le("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),l.validateArgCount("Query.endAt",0,2,arguments.length),re("Query.endAt",1,t,this.path,!0),le("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(l.validateArgCount("Query.equalTo",1,2,arguments.length),re("Query.equalTo",1,e,this.path,!1),le("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return l.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return l.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=I(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(l.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var r=this.repo===t.repo,i=this.path.equals(t.path),a=this.queryIdentifier()===t.queryIdentifier();return r&&i&&a},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,l.validateCallback(e,3,r.cancel,!0),r.context=n,l.validateContextObject(e,4,r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error(l.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ze=function(){function e(e){this.node_=e}return e.prototype.getImmediateChild=function(t){return new e(this.node_.getImmediateChild(t))},e.prototype.node=function(){return this.node_},e}(),et=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=this.path_.child(t);return new e(this.syncTree_,n)},e.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},e}(),tt=function(e,t,n){return e&&"object"==typeof e?(l.assert(".sv"in e,"Unexpected leaf node or priority contents"),"string"==typeof e[".sv"]?nt(e[".sv"],t,n):"object"==typeof e[".sv"]?rt(e[".sv"],t):void l.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},nt=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:l.assert(!1,"Unexpected server value: "+e)}},rt=function(e,t,n){e.hasOwnProperty("increment")||l.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var r=e.increment;"number"!=typeof r&&l.assert(!1,"Unexpected increment value: "+r);var i=t.node();if(l.assert(null!=i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var a=i.getValue();return"number"!=typeof a?r:a+r},it=function(e,t,n,r){return ot(t,new et(n,e),r)},at=function(e,t,n){return ot(e,new Ze(t),n)};function ot(e,t,n){var r,i=e.getPriority().val(),a=tt(i,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var o=e,s=tt(o.getValue(),t,n);return s!==o.getValue()||a!==o.getPriority().val()?new Ce(s,Ue(a)):e}var l=e;return r=l,a!==l.getPriority().val()&&(r=r.updatePriority(new Ce(a))),l.forEachChild($e,(function(e,i){var a=ot(i,t.getImmediateChild(e),n);a!==i&&(r=r.updateImmediateChild(e,a))})),r}var st,lt=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var r=t.getFront();this.children.has(r)||this.children.set(r,new e);var i=this.children.get(r);t=t.popFront(),i.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild($e,(function(e,t){n.remember(new H(e),t)})),this.forget(e)}if(this.children.size>0){var r=e.getFront();if(e=e.popFront(),this.children.has(r))this.children.get(r).forget(e)&&this.children.delete(r);return 0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild((function(n,r){var i=new H(e.toString()+"/"+n);r.forEachTree(i,t)}))},e.prototype.forEachChild=function(e){this.children.forEach((function(t,n){e(n,t)}))},e}();!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(st||(st={}));var ct,ut,dt=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,l.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),ht=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=st.ACK_USER_WRITE,this.source=dt.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return l.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new H(t));return new e(H.Empty,n,this.revert)}return l.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),pt=function(){function e(e,t){void 0===t&&(ct||(ct=new De(O)),t=ct),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return N(t,(function(e,t){n=n.set(new H(e),t)})),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:H.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=i?{path:new H(n).child(i.path),value:i.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),i=(this.children.get(r)||e.Empty).set(t.popFront(),n),a=this.children.insert(r,i);return new e(this.value,a)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var i=r.remove(t.popFront()),a=void 0;return a=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&a.isEmpty()?e.Empty:new e(this.value,a)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),i=(this.children.get(r)||e.Empty).setTree(t.popFront(),n),a=void 0;return a=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,a)},e.prototype.fold=function(e){return this.fold_(H.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(e.child(r),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,H.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var i=e.getFront(),a=this.children.get(i);return a?a.findOnPath_(e.popFront(),t.child(i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,H.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var i=t.getFront(),a=this.children.get(i);return a?a.foreachOnPath_(t.popFront(),n.child(i),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(H.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,r){r.foreach_(e.child(n),t)})),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))},e.Empty=new e(null),e}(),ft=function(){function e(e,t){this.source=e,this.path=t,this.type=st.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,H.Empty):new e(this.source,this.path.popFront())},e}(),mt=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=st.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,H.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),vt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=st.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new H(t));return n.isEmpty()?null:n.value?new mt(this.source,H.Empty,n.value):new e(this.source,H.Empty,n)}return l.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),gt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),yt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new gt(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new gt(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new gt(Fe.EMPTY_NODE,!1,!1),new gt(Fe.EMPTY_NODE,!1,!1)),e}(),bt=function(){function e(e,t,n,r,i){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=i}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),_t=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,a){l.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var o=e.getImmediateChild(t);return o.getChild(r).equals(n.getChild(r))&&o.isEmpty()===n.isEmpty()?e:(null!=a&&(n.isEmpty()?e.hasChild(t)?a.trackChildChange(bt.childRemovedChange(t,o)):l.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):o.isEmpty()?a.trackChildChange(bt.childAddedChange(t,n)):a.trackChildChange(bt.childChangedChange(t,n,o))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild($e,(function(e,r){t.hasChild(e)||n.trackChildChange(bt.childRemovedChange(e,r))})),t.isLeafNode()||t.forEachChild($e,(function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(bt.childChangedChange(t,r,i))}else n.trackChildChange(bt.childAddedChange(t,r))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Fe.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),wt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;l.assert(t===bt.CHILD_ADDED||t===bt.CHILD_CHANGED||t===bt.CHILD_REMOVED,"Only child changes supported for tracking"),l.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if(t===bt.CHILD_ADDED&&i===bt.CHILD_REMOVED)this.changeMap.set(n,bt.childChangedChange(n,e.snapshotNode,r.snapshotNode));else if(t===bt.CHILD_REMOVED&&i===bt.CHILD_ADDED)this.changeMap.delete(n);else if(t===bt.CHILD_REMOVED&&i===bt.CHILD_CHANGED)this.changeMap.set(n,bt.childRemovedChange(n,r.oldSnap));else if(t===bt.CHILD_CHANGED&&i===bt.CHILD_ADDED)this.changeMap.set(n,bt.childAddedChange(n,e.snapshotNode));else{if(t!==bt.CHILD_CHANGED||i!==bt.CHILD_CHANGED)throw l.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,bt.childChangedChange(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),kt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),Et=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new gt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===i.length?null:i[0]},e}(),Tt=function(e,t){this.viewCache=e,this.changes=t},St=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){l.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),l.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,i){var a,o,s=new wt;if(n.type===st.OVERWRITE){var c=n;c.source.fromUser?a=this.applyUserOverwrite_(t,c.path,c.snap,r,i,s):(l.assert(c.source.fromServer,"Unknown source."),o=c.source.tagged||t.getServerCache().isFiltered()&&!c.path.isEmpty(),a=this.applyServerOverwrite_(t,c.path,c.snap,r,i,o,s))}else if(n.type===st.MERGE){var u=n;u.source.fromUser?a=this.applyUserMerge_(t,u.path,u.children,r,i,s):(l.assert(u.source.fromServer,"Unknown source."),o=u.source.tagged||t.getServerCache().isFiltered(),a=this.applyServerMerge_(t,u.path,u.children,r,i,o,s))}else if(n.type===st.ACK_USER_WRITE){var d=n;a=d.revert?this.revertUserWrite_(t,d.path,r,i,s):this.ackUserWrite_(t,d.path,d.affectedTree,r,i,s)}else{if(n.type!==st.LISTEN_COMPLETE)throw l.assertionError("Unknown operation type: "+n.type);a=this.listenComplete_(t,n.path,r,s)}var h=s.getChanges();return e.maybeAddValueEvent_(t,a,h),new Tt(a,h)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),a=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(a)||!r.getNode().getPriority().equals(a.getPriority()))&&n.push(bt.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var a=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var o=void 0,s=void 0;if(t.isEmpty())if(l.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var c=e.getCompleteServerSnap(),u=c instanceof Fe?c:Fe.EMPTY_NODE,d=n.calcCompleteEventChildren(u);o=this.filter_.updateFullNode(e.getEventCache().getNode(),d,i)}else{var h=n.calcCompleteEventCache(e.getCompleteServerSnap());o=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var p=t.getFront();if(".priority"===p){l.assert(1===t.getLength(),"Can't have a priority with additional path components");var f=a.getNode();s=e.getServerCache().getNode();var m=n.calcEventCacheAfterServerOverwrite(t,f,s);o=null!=m?this.filter_.updatePriority(f,m):a.getNode()}else{var v=t.popFront(),g=void 0;if(a.isCompleteForChild(p)){s=e.getServerCache().getNode();var y=n.calcEventCacheAfterServerOverwrite(t,a.getNode(),s);g=null!=y?a.getNode().getImmediateChild(p).updateChild(v,y):a.getNode().getImmediateChild(p)}else g=n.calcCompleteChild(p,e.getServerCache());o=null!=g?this.filter_.updateChild(a.getNode(),p,g,v,r,i):a.getNode()}}return e.updateEventSnap(o,a.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,i,a,o){var s,l=e.getServerCache(),c=a?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(l.getNode(),n,null);else if(c.filtersNodes()&&!l.isFiltered()){var u=l.getNode().updateChild(t,n);s=c.updateFullNode(l.getNode(),u,null)}else{var d=t.getFront();if(!l.isCompleteForPath(t)&&t.getLength()>1)return e;var h=t.popFront(),p=l.getNode().getImmediateChild(d).updateChild(h,n);s=".priority"===d?c.updatePriority(l.getNode(),p):c.updateChild(l.getNode(),d,p,h,kt,null)}var f=e.updateServerSnap(s,l.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),m=new Et(r,f,i);return this.generateEventCacheAfterServerEvent_(f,t,r,m,o)},e.prototype.applyUserOverwrite_=function(e,t,n,r,i,a){var o,s,l=e.getEventCache(),c=new Et(r,e,i);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,a),o=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var u=t.getFront();if(".priority"===u)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),o=e.updateEventSnap(s,l.isFullyInitialized(),l.isFiltered());else{var d=t.popFront(),h=l.getNode().getImmediateChild(u),p=void 0;if(d.isEmpty())p=n;else{var f=c.getCompleteChild(u);p=null!=f?".priority"===d.getBack()&&f.getChild(d.parent()).isEmpty()?f:f.updateChild(d,n):Fe.EMPTY_NODE}if(h.equals(p))o=e;else{var m=this.filter_.updateChild(l.getNode(),u,p,d,c,a);o=e.updateEventSnap(m,l.isFullyInitialized(),this.filter_.filtersNodes())}}}return o},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,i,a,o){var s=this,l=t;return r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())&&(l=s.applyUserOverwrite_(l,u,c,i,a,o))})),r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())||(l=s.applyUserOverwrite_(l,u,c,i,a,o))})),l},e.prototype.applyMerge_=function(e,t){return t.foreach((function(t,n){e=e.updateChild(t,n)})),e},e.prototype.applyServerMerge_=function(e,t,n,r,i,a,o){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var l,c=e;l=t.isEmpty()?n:pt.Empty.setTree(t,n);var u=e.getServerCache().getNode();return l.children.inorderTraversal((function(t,n){if(u.hasChild(t)){var l=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(l,n);c=s.applyServerOverwrite_(c,new H(t),d,r,i,a,o)}})),l.children.inorderTraversal((function(t,n){var l=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!u.hasChild(t)&&!l){var d=e.getServerCache().getNode().getImmediateChild(t),h=s.applyMerge_(d,n);c=s.applyServerOverwrite_(c,new H(t),h,r,i,a,o)}})),c},e.prototype.ackUserWrite_=function(e,t,n,r,i,a){if(null!=r.shadowingWrite(t))return e;var o=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,i,o,a);if(t.isEmpty()){var l=pt.Empty;return s.getNode().forEachChild(_e,(function(e,t){l=l.set(new H(e),t)})),this.applyServerMerge_(e,t,l,r,i,o,a)}return e}var c=pt.Empty;return n.foreach((function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(c=c.set(e,s.getNode().getChild(r)))})),this.applyServerMerge_(e,t,c,r,i,o,a)},e.prototype.listenComplete_=function(e,t,n,r){var i=e.getServerCache(),a=e.updateServerSnap(i.getNode(),i.isFullyInitialized()||t.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(a,t,n,kt,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var a;if(null!=n.shadowingWrite(t))return e;var o=new Et(n,e,r),s=e.getEventCache().getNode(),c=void 0;if(t.isEmpty()||".priority"===t.getFront()){var u=void 0;if(e.getServerCache().isFullyInitialized())u=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();l.assert(d instanceof Fe,"serverChildren would be complete if leaf node"),u=n.calcCompleteEventChildren(d)}u=u,c=this.filter_.updateFullNode(s,u,i)}else{var h=t.getFront(),p=n.calcCompleteChild(h,e.getServerCache());null==p&&e.getServerCache().isCompleteForChild(h)&&(p=s.getImmediateChild(h)),(c=null!=p?this.filter_.updateChild(s,h,p,t.popFront(),o,i):e.getEventCache().getNode().hasChild(h)?this.filter_.updateChild(s,h,Fe.EMPTY_NODE,t.popFront(),o,i):s).isEmpty()&&e.getServerCache().isFullyInitialized()&&(a=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,a,i))}return a=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(H.Empty),e.updateEventSnap(c,a,this.filter_.filtersNodes())},e}(),Ct=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],a=[];return e.forEach((function(e){e.type===bt.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&a.push(bt.childMovedChange(e.childName,e.snapshotNode))})),this.generateEventsForType_(i,bt.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,bt.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,bt.CHILD_MOVED,a,n,t),this.generateEventsForType_(i,bt.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,bt.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,i){var a=this,o=n.filter((function(e){return e.type===t}));o.sort(this.compareChanges_.bind(this)),o.forEach((function(t){var n=a.materializeSingleChange_(t,i);r.forEach((function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,a.query_))}))}))},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_)),e},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw l.assertionError("Should only compare child_ events.");var n=new ge(e.childName,e.snapshotNode),r=new ge(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),xt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new _t(n.getIndex()),i=n.getNodeFilter();this.processor_=new St(i);var a=t.getServerCache(),o=t.getEventCache(),s=r.updateFullNode(Fe.EMPTY_NODE,a.getNode(),null),l=i.updateFullNode(Fe.EMPTY_NODE,o.getNode(),null),c=new gt(s,a.isFullyInitialized(),r.filtersNodes()),u=new gt(l,o.isFullyInitialized(),i.filtersNodes());this.viewCache_=new yt(u,c),this.eventGenerator_=new Ct(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){l.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach((function(e){t=t;var i=e.createCancelEvent(t,r);i&&n.push(i)}))}if(e){for(var i=[],a=0;a<this.eventRegistrations_.length;++a){var o=this.eventRegistrations_[a];if(o.matches(e)){if(e.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(a+1));break}}else i.push(o)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===st.MERGE&&null!==e.source.queryId&&(l.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),l.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(i.viewCache),l.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild($e,(function(e,t){n.push(bt.childAddedChange(e,t))}));return t.isFullyInitialized()&&n.push(bt.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),Mt=function(){function e(){this.views=new Map}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return l.assert(ut,"Reference.ts has not been loaded"),ut},set:function(e){l.assert(!ut,"__referenceConstructor has already been defined"),ut=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this.views.size},e.prototype.applyOperation=function(e,t,n){var r,i,a=e.source.queryId;if(null!==a){var o=this.views.get(a);return l.assert(null!=o,"SyncTree gave us an op for an invalid query."),o.applyOperation(e,t,n)}var c=[];try{for(var u=s.__values(this.views.values()),d=u.next();!d.done;d=u.next()){o=d.value;c=c.concat(o.applyOperation(e,t,n))}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return c},e.prototype.addEventRegistration=function(e,t,n,r,i){var a=e.queryIdentifier(),o=this.views.get(a);if(!o){var s=n.calcCompleteEventCache(i?r:null),l=!1;s?l=!0:r instanceof Fe?(s=n.calcCompleteEventChildren(r),l=!1):(s=Fe.EMPTY_NODE,l=!1);var c=new yt(new gt(s,l,!1),new gt(r,i,!1));o=new xt(e,c),this.views.set(a,o)}return o.addEventRegistration(t),o.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i,a,o=t.queryIdentifier(),l=[],c=[],u=this.hasCompleteView();if("default"===o)try{for(var d=s.__values(this.views.entries()),h=d.next();!h.done;h=d.next()){var p=s.__read(h.value,2),f=p[0],m=p[1];c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(f),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery()))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}else(m=this.views.get(o))&&(c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(o),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery())));return u&&!this.hasCompleteView()&&l.push(new e.__referenceConstructor(t.repo,t.path)),{removed:l,events:c}},e.prototype.getQueryViews=function(){var e,t,n=[];try{for(var r=s.__values(this.views.values()),i=r.next();!i.done;i=r.next()){var a=i.value;a.getQuery().getQueryParams().loadsAllData()||n.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.getCompleteServerCache=function(e){var t,n,r=null;try{for(var i=s.__values(this.views.values()),a=i.next();!a.done;a=i.next()){var o=a.value;r=r||o.getCompleteServerCache(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return this.views.get(t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){var e,t;try{for(var n=s.__values(this.views.values()),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getQuery().getQueryParams().loadsAllData())return i}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},e}(),$t=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new pt(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,a=r.value,o=H.relativePath(i,t);return a=a.updateChild(o,n),new e(this.writeTree_.set(i,a))}var s=new pt(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return N(t,(function(t,r){n=n.addWrite(e.child(t),r)})),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,pt.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(H.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild($e,(function(t,n){e.push(new ge(t,n))})):this.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new ge(t,n.value))})),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new pt(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(e){return function e(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var i=null;return n.children.inorderTraversal((function(n,a){".priority"===n?(l.assert(null!==a.value,"Priority writes must always be leaf nodes"),i=a.value):r=e(t.child(n),a,r)})),r.getChild(t).isEmpty()||null===i||(r=r.updateChild(t.child(".priority"),i)),r}(H.Empty,this.writeTree_,e)},e.Empty=new e(new pt(null)),e}();var Lt=function(){function e(){this.visibleWrites_=$t.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new Pt(e,this)},e.prototype.addOverwrite=function(e,t,n,r){l.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){l.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex((function(t){return t.writeId===e}));l.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,a=!1,o=this.allWrites_.length-1;i&&o>=0;){var s=this.allWrites_[o];s.visible&&(o>=n&&this.recordContainsPath_(s,r.path)?i=!1:r.path.contains(s.path)&&(a=!0)),o--}if(i){if(a)return this.resetTree_(),!0;r.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(r.path):N(r.children,(function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))}));return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,i){if(r||i){var a=this.visibleWrites_.childCompoundWrite(t);if(!i&&a.isEmpty())return n;if(i||null!=n||a.hasCompleteWrite(H.Empty)){var o=e.layerTree_(this.allWrites_,(function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))}),t);c=n||Fe.EMPTY_NODE;return o.apply(c)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var l=this.visibleWrites_.childCompoundWrite(t);if(l.isEmpty())return n;if(null!=n||l.hasCompleteWrite(H.Empty)){var c=n||Fe.EMPTY_NODE;return l.apply(c)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Fe.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild($e,(function(e,t){n=n.updateImmediateChild(e,t)})),n;if(t){var i=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild($e,(function(e,t){var r=i.childCompoundWrite(new H(e)).apply(t);n=n.updateImmediateChild(e,r)})),i.getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){l.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var a=this.visibleWrites_.childCompoundWrite(i);return a.isEmpty()?r.getChild(t):a.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),i=this.visibleWrites_.getCompleteNode(r);return null!=i?i:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,i,a){var o,s=this.visibleWrites_.childCompoundWrite(e),l=s.getCompleteNode(H.Empty);if(null!=l)o=l;else{if(null==t)return[];o=s.apply(t)}if((o=o.withIndex(a)).isEmpty()||o.isLeafNode())return[];for(var c=[],u=a.getCompare(),d=i?o.getReverseIteratorFrom(n,a):o.getIteratorFrom(n,a),h=d.getNext();h&&c.length<r;)0!==u(h,n)&&c.push(h),h=d.getNext();return c},e.prototype.recordContainsPath_=function(e,t){if(e.snap)return e.path.contains(t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&e.path.child(n).contains(t))return!0;return!1},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,H.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=$t.Empty,i=0;i<e.length;++i){var a=e[i];if(t(a)){var o=a.path,s=void 0;if(a.snap)n.contains(o)?(s=H.relativePath(n,o),r=r.addWrite(s,a.snap)):o.contains(n)&&(s=H.relativePath(o,n),r=r.addWrite(H.Empty,a.snap.getChild(s)));else{if(!a.children)throw l.assertionError("WriteRecord should have .snap or .children");if(n.contains(o))s=H.relativePath(n,o),r=r.addWrites(s,a.children);else if(o.contains(n))if((s=H.relativePath(o,n)).isEmpty())r=r.addWrites(H.Empty,a.children);else{var c=l.safeGet(a.children,s.getFront());if(c){var u=c.getChild(s.popFront());r=r.addWrite(H.Empty,u)}}}}}return r},e}(),Pt=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,i)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),Ot=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=pt.Empty,this.pendingWriteTree_=new Lt,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new mt(dt.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=pt.fromObject(t);return this.applyOperationToSyncPoints_(new vt(dt.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=pt.Empty;return null!=n.snap?r=r.set(H.Empty,!0):N(n.children,(function(e,t){r=r.set(new H(e),t)})),this.applyOperationToSyncPoints_(new ht(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new mt(dt.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=pt.fromObject(t);return this.applyOperationToSyncPoints_(new vt(dt.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new ft(dt.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var a=e.parseQueryKey_(i),o=a.path,s=a.queryId,l=H.relativePath(o,t),c=new mt(dt.forServerTaggedQuery(s),l,n);return this.applyTaggedOperation_(o,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var i=this.queryKeyForTag_(r);if(i){var a=e.parseQueryKey_(i),o=a.path,s=a.queryId,l=H.relativePath(o,t),c=pt.fromObject(n),u=new vt(dt.forServerTaggedQuery(s),l,c);return this.applyTaggedOperation_(o,u)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var i=e.parseQueryKey_(r),a=i.path,o=i.queryId,s=H.relativePath(a,t),l=new ft(dt.forServerTaggedQuery(o),s);return this.applyTaggedOperation_(a,l)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,i=null,a=!1;this.syncPointTree_.foreachOnPath(r,(function(e,t){var n=H.relativePath(e,r);i=i||t.getCompleteServerCache(n),a=a||t.hasCompleteView()}));var o,s=this.syncPointTree_.get(r);(s?(a=a||s.hasCompleteView(),i=i||s.getCompleteServerCache(H.Empty)):(s=new Mt,this.syncPointTree_=this.syncPointTree_.set(r,s)),null!=i)?o=!0:(o=!1,i=Fe.EMPTY_NODE,this.syncPointTree_.subtree(r).foreachChild((function(e,t){var n=t.getCompleteServerCache(H.Empty);n&&(i=i.updateImmediateChild(e,n))})));var c=s.viewExistsForQuery(t);if(!c&&!t.getQueryParams().loadsAllData()){var u=e.makeQueryKey_(t);l.assert(!this.queryToTagMap.has(u),"View does not exist, but we have a tag");var d=e.getNextQueryTag_();this.queryToTagMap.set(u,d),this.tagToQueryMap.set(d,u)}var h=this.pendingWriteTree_.childWrites(r),p=s.addEventRegistration(t,n,h,i,o);if(!c&&!a){var f=s.viewForQuery(t);p=p.concat(this.setupListener_(t,f))}return p},e.prototype.removeEventRegistration=function(t,n,r){var i=this,a=t.path,o=this.syncPointTree_.get(a),s=[];if(o&&("default"===t.queryIdentifier()||o.viewExistsForQuery(t))){var l=o.removeEventRegistration(t,n,r);o.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(a));var c=l.removed;s=l.events;var u=-1!==c.findIndex((function(e){return e.getQueryParams().loadsAllData()})),d=this.syncPointTree_.findOnPath(a,(function(e,t){return t.hasCompleteView()}));if(u&&!d){var h=this.syncPointTree_.subtree(a);if(!h.isEmpty())for(var p=this.collectDistinctViewsForSubTree_(h),f=0;f<p.length;++f){var m=p[f],v=m.getQuery(),g=this.createListenerForView_(m);this.listenProvider_.startListening(e.queryForListening_(v),this.tagForQuery_(v),g.hashFn,g.onComplete)}}if(!d&&c.length>0&&!r)if(u){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach((function(t){var n=i.queryToTagMap.get(e.makeQueryKey_(t));i.listenProvider_.stopListening(e.queryForListening_(t),n)}));this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,(function(t,n){var r=H.relativePath(t,e),i=n.getCompleteServerCache(r);if(i)return i}));return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold((function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),N(n,(function(e,t){r=r.concat(t)})),r}))},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var i=e.makeQueryKey_(r),a=this.queryToTagMap.get(i);this.queryToTagMap.delete(i),this.tagToQueryMap.delete(a)}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,i=this.tagForQuery_(t),a=this.createListenerForView_(n),o=this.listenProvider_.startListening(e.queryForListening_(t),i,a.hashFn,a.onComplete),s=this.syncPointTree_.subtree(r);if(i)l.assert(!s.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=s.fold((function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map((function(e){return e.getQuery()})))),N(n,(function(e,t){r=r.concat(t)})),r})),u=0;u<c.length;++u){var d=c[u];this.listenProvider_.stopListening(e.queryForListening_(d),this.tagForQuery_(d))}return o},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Fe.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r}(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return l.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new H(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap.get(e)},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return this.queryToTagMap.get(n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);l.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(H.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var i=t.get(H.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(H.Empty));var a=[],o=e.path.getFront(),s=e.operationForChild(o),l=t.children.get(o);if(l&&s){var c=n?n.getImmediateChild(o):null,u=r.child(o);a=a.concat(this.applyOperationHelper_(s,l,c,u))}return i&&(a=a.concat(i.applyOperation(e,r,n))),a},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var i=this,a=t.get(H.Empty);null==n&&null!=a&&(n=a.getCompleteServerCache(H.Empty));var o=[];return t.children.inorderTraversal((function(t,a){var s=n?n.getImmediateChild(t):null,l=r.child(t),c=e.operationForChild(t);c&&(o=o.concat(i.applyOperationDescendantsHelper_(c,a,s,l)))})),a&&(o=o.concat(a.applyOperation(e,r,n))),o},e.nextQueryTag_=1,e}(),Dt=function(){function e(){this.rootNode_=Fe.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),It=function(){function e(e,t){var n=this;this.app_=e,this.authProvider_=t,this.auth_=null,this.auth_=t.getImmediate({optional:!0}),this.auth_||t.get().then((function(e){return n.auth_=e}))}return e.prototype.getToken=function(e){return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(E("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})):Promise.resolve(null)},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):(setTimeout((function(){return e(null)}),0),this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)})))},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',x(e)},e}(),At=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),l.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return l.deepCopy(this.counters_)},e}(),Nt=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new At),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),Rt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=s.__assign({},e);return this.last_&&N(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),Yt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Rt(e);var n=1e4+2e4*Math.random();F(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;N(t,(function(t,i){i>0&&l.contains(e.statsToReport_,t)&&(n[t]=i,r=!0)})),r&&this.server_.reportStats(n),F(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),Bt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.getPath();null===t||i.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new jt(i)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.equals(e)}))},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.contains(e)||e.contains(t)}))},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r)e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),jt=function(){function e(e){this.path_=e,this.events_=[]}return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();_&&E("event: "+t.toString()),j(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Ft=function(){function e(e){this.allowedEvents_=e,this.listeners_={},l.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=s.__spread(this.listeners_[e]),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){l.assert(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),Ht=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",t="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,(function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))}),!1),r}return s.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return l.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Ft),Ut=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||l.isMobileCordova()||(window.addEventListener("online",(function(){t.online_||(t.online_=!0,t.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){t.online_&&(t.online_=!1,t.trigger("online",!1))}),!1)),t}return s.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return l.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Ft),zt=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var t=function(t){e[t]&&j((function(){n.onMessage_(e[t])}))},r=0;r<e.length;++r)t(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;this.pendingResponses[this.currentResponseNum];){if("break"===r())break}},e}(),Vt=function(){function e(e,t,n,r){this.connId=e,this.repoInfo=t,this.transportSessionId=n,this.lastSessionId=r,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=T(e),this.stats_=Nt.getCollection(t),this.urlFn=function(e){return t.connectionURL("long_polling",e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new zt(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(l.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new qt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.__read(e,5),i=r[0],a=r[1],o=r[2];r[3],r[4];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===i)n.id=a,n.password=o;else{if("close"!==i)throw new Error("Unrecognized command received: "+i);a?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(a,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.__read(e,2),i=r[0],a=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,a)}),(function(){n.onClosed_()}),n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!l.isNodeSdk()&&(!!e.forceAllow_||!(e.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=l.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=l.base64Encode(t),r=A(n,1840),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!l.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=l.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),qt=function(){function e(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,l.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=g(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var a="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))a='<script>document.domain="'+document.domain+'";<\/script>';var o="<html><body>"+a+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(o),this.myIFrame.doc.close()}catch(e){E("frame writing exception"),e.stack&&E(e.stack),E(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||E("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var r=function(){n.outstandingRequests.delete(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(i),r()}))},e.prototype.addTag=function(e,t){var n=this;l.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){E("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(e){}}),Math.floor(1))},e}(),Wt="";var Gt=null;"undefined"!=typeof MozWebSocket?Gt=MozWebSocket:"undefined"!=typeof WebSocket&&(Gt=WebSocket);var Kt=function(){function e(t,n,r,i){this.connId=t,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=T(this.connId),this.stats_=Nt.getCollection(n),this.connURL=e.connectionURL_(n,r,i)}return e.connectionURL_=function(e,t,n){var r={v:"5"};return!l.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL("websocket",r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,f.set("previous_websocket_failure",!0);try{if(l.isNodeSdk()){var i=l.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",a={headers:{"User-Agent":"Firebase/5/"+Wt+"/"+r.platform+"/"+i}},o=r.env,s=0===this.connURL.indexOf("wss://")?o.HTTPS_PROXY||o.https_proxy:o.HTTP_PROXY||o.http_proxy;s&&(a.proxy={origin:s}),this.mySock=new Gt(this.connURL,[],a)}else this.mySock=new Gt(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var c=e.message||e.data;return c&&this.log_(c),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Gt&&!e.forceDisallow_},e.previouslyFailed=function(){return f.isInMemoryStorage||!0===f.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){f.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=l.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(l.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=l.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=A(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Jt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Vt,Kt]},enumerable:!0,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=Kt&&Kt.isAvailable(),a=i&&!Kt.previouslyFailed();if(t.webSocketOnly&&(i||x("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),a=!0),a)this.transports_=[Kt];else{var o=this.transports_=[];try{for(var l=s.__values(e.ALL_TRANSPORTS),c=l.next();!c.done;c=l.next()){var u=c.value;u&&u.isAvailable()&&o.push(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Xt=function(){function e(e,t,n,r,i,a,o){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=r,this.onDisconnect_=i,this.onKill_=a,this.lastSessionId=o,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=T("c:"+this.id+":"),this.transportManager_=new Jt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,r)}),Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=F((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes.  Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes.  Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=D("t",e),n=D("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=D("t",e),n=D("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=D("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?S("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):S("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&x("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),F((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):F((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(f.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),Qt=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),Zt=function(e){function t(n,r,i,a,o,s){var c=e.call(this)||this;if(c.repoInfo_=n,c.onDataUpdate_=r,c.onConnectStatus_=i,c.onServerInfoUpdate_=a,c.authTokenProvider_=o,c.authOverride_=s,c.id=t.nextPersistentConnectionId_++,c.log_=T("p:"+c.id+":"),c.interruptReasons_={},c.listens=new Map,c.outstandingPuts_=[],c.outstandingPutCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=1e3,c.maxReconnectDelay_=3e5,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,s&&!l.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return c.scheduleConnect_(0),Ht.getInstance().on("visible",c.onVisible_,c),-1===n.host.indexOf("fblocal")&&Ut.getInstance().on("online",c.onOnline_,c),c}return s.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(l.stringify(i)),l.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var i=e.queryIdentifier(),a=e.path.toString();this.log_("Listen called for "+a+" "+i),this.listens.has(a)||this.listens.set(a,new Map),l.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),l.assert(!this.listens.get(a).has(i),"listen() called twice for same path/queryId.");var o={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(a).set(i,o),this.connected_&&this.sendListen_(o)},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r.path.toString(),a=r.queryIdentifier();this.log_("Listen on "+i+" for "+a);var o={p:i};e.tag&&(o.q=r.queryObject(),o.t=e.tag),o.h=e.hashFn(),this.sendRequest("q",o,(function(o){var s=o.d,l=o.s;t.warnOnListenWarnings_(s,r),(n.listens.get(i)&&n.listens.get(i).get(a))===e&&(n.log_("listen response",o),"ok"!==l&&n.removeListen_(i,a),e.onComplete&&e.onComplete(l,s))}))},t.warnOnListenWarnings_=function(e,t){if(e&&"object"==typeof e&&l.contains(e,"w")){var n=l.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',i=t.path.toString();x("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||l.isAdmin(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=l.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"==typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,(function(n){var r=n.s,i=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))}))}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),l.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(function(e){r&&setTimeout((function(){r(e.s,e.d)}),Math.floor(0))}))},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){var a={p:t,d:n};void 0!==i&&(a.h=i),this.outstandingPuts_.push({action:e,request:a,onComplete:r}),this.outstandingPutCount_++;var o=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(o):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,(function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)}))},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+l.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):S("Unrecognized action received from server: "+l.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;l.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,a=this,o=this.lastSessionId,s=!1,c=null,u=function(){c?c.close():(s=!0,r())};this.realtime_={close:u,sendRequest:function(e){l.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)}};var d=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(d).then((function(t){s?E("getToken() completed but was canceled"):(E("getToken() completed. Creating connection."),a.authToken_=t&&t.accessToken,c=new Xt(i,a.repoInfo_,e,n,r,(function(e){x(e+" ("+a.repoInfo_.toString()+")"),a.interrupt("server_kill")}),o))})).then(null,(function(e){a.log_("Failed to get token: "+e),s||(l.CONSTANTS.NODE_ADMIN&&x(e),u())}))}},t.prototype.interrupt=function(e){E("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){E("Resuming connection for reason: "+e),delete this.interruptReasons_[e],l.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map((function(e){return I(e)})).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new H(e).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(t),i.delete(t),0===i.size&&this.listens.delete(r)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){E("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,r;this.tryAuth();try{for(var i=s.__values(this.listens.values()),a=i.next();!a.done;a=i.next()){var o=a.value;try{for(var l=(n=void 0,s.__values(o.values())),c=l.next();!c.done;c=l.next()){var u=c.value;this.sendListen_(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var d=0;d<this.outstandingPuts_.length;d++)this.outstandingPuts_[d]&&this.sendPut_(d);for(;this.onDisconnectRequestQueue_.length;){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";l.CONSTANTS.NODE_ADMIN?t="admin_node":l.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+Wt.replace(/\./g,"-")]=1,l.isMobileCordova()?e["framework.cordova"]=1:l.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=Ut.getInstance().currentlyOnline();return l.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(Qt),en=function(e){function t(t,n,r){var i=e.call(this)||this;return i.repoInfo_=t,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=T("p:rest:"),i.listens_={},i}return s.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(l.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,i){var a=this,o=e.path.toString();this.log_("Listen called for "+o+" "+e.queryIdentifier());var s=t.getListenId_(e,r),c={};this.listens_[s]=c;var u=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(o+".json",u,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&a.onDataUpdate_(o,n,!1,r),l.safeGet(a.listens_,s)===c)&&i(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then((function(i){var a=i&&i.accessToken;a&&(t.auth=a);var o=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+l.querystring(t);r.log_("Sending REST request for "+o);var s=new XMLHttpRequest;s.onreadystatechange=function(){if(n&&4===s.readyState){r.log_("REST Response for "+o+" received. status:",s.status,"response:",s.responseText);var e=null;if(s.status>=200&&s.status<300){try{e=l.jsonEval(s.responseText)}catch(e){x("Failed to parse JSON response for "+o+": "+s.responseText)}n(null,e)}else 401!==s.status&&404!==s.status&&x("Got unsuccessful REST response for "+o+" Status: "+s.status),n(s.status);n=null}},s.open("GET",o,!0),s.send()}))},t}(Qt),tn=function(){function e(e,t,n,r){var i=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Bt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new lt,this.persistentConnection_=null;var a=new It(n,r);if(this.stats_=Nt.getCollection(e),t||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new en(this.repoInfo_,this.onDataUpdate_.bind(this),a),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options.databaseAuthVariableOverride;if(null!=o){if("object"!=typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{l.stringify(o)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new Zt(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),a,o),this.server_=this.persistentConnection_}a.addTokenChangeListener((function(e){i.server_.refreshAuthToken(e)})),this.statsReporter_=Nt.getOrCreateReporter(e,(function(){return new Yt(i.stats_,i.server_)})),this.transactionsInit_(),this.infoData_=new Dt,this.infoSyncTree_=new Ot({startListening:function(e,t,n,r){var a=[],o=i.infoData_.getNode(e.path);return o.isEmpty()||(a=i.infoSyncTree_.applyServerOverwrite(e.path,o),setTimeout((function(){r("ok")}),0)),a},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Ot({startListening:function(e,t,n,r){return i.server_.listen(e,n,t,(function(t,n){var a=r(t,n);i.eventQueue_.raiseEventsForChangedPath(e.path,a)})),[]},stopListening:function(e,t){i.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new H(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var i=new H(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var a=[];if(r)if(n){var o=l.map(t,(function(e){return Ue(e)}));a=this.serverSyncTree_.applyTaggedQueryMerge(i,o,r)}else{var s=Ue(t);a=this.serverSyncTree_.applyTaggedQueryOverwrite(i,s,r)}else if(n){var c=l.map(t,(function(e){return Ue(e)}));a=this.serverSyncTree_.applyServerMerge(i,c)}else{var u=Ue(t);a=this.serverSyncTree_.applyServerOverwrite(i,u)}var d=i;a.length>0&&(d=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(d,a)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;N(e,(function(e,n){t.updateInfo_(e,n)}))},e.prototype.updateInfo_=function(e,t){var n=new H("/.info/"+e),r=Ue(t);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var i=this;this.log_("set",{path:e.toString(),value:t,priority:n});var a=this.generateServerValues(),o=Ue(t,n),s=this.serverSyncTree_.calcCompleteEventCache(e),l=at(o,s,a),c=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserOverwrite(e,l,c,!0);this.eventQueue_.queueEvents(u),this.server_.put(e.toString(),o.val(!0),(function(t,n){var a="ok"===t;a||x("set at "+e+" failed: "+t);var o=i.serverSyncTree_.ackUserWrite(c,!a);i.eventQueue_.raiseEventsForChangedPath(e,o),i.callOnCompleteCallback(r,t,n)}));var d=this.abortTransactions_(e);this.rerunTransactions_(d),this.eventQueue_.raiseEventsForChangedPath(d,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var i=!0,a=this.generateServerValues(),o={};if(N(t,(function(t,n){i=!1,o[t]=it(e.child(t),Ue(n),r.serverSyncTree_,a)})),i)E("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,o,s);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,(function(t,i){var a="ok"===t;a||x("update at "+e+" failed: "+t);var o=r.serverSyncTree_.ackUserWrite(s,!a),l=o.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(l,o),r.callOnCompleteCallback(n,t,i)})),N(t,(function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=new lt;this.onDisconnect_.forEachTree(H.Empty,(function(r,i){var a=it(r,i,e.serverSyncTree_,t);n.remember(r,a)}));var r=[];n.forEachTree(H.Empty,(function(t,n){r=r.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var i=e.abortTransactions_(t);e.rerunTransactions_(i)})),this.onDisconnect_=new lt,this.eventQueue_.raiseEventsForChangedPath(H.Empty,r)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),(function(r,i){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,i)}))},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=Ue(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),(function(t,a){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,a)}))},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,a=Ue(t,n);this.server_.onDisconnectPut(e.toString(),a.val(!0),(function(t,n){"ok"===t&&i.onDisconnect_.remember(e,a),i.callOnCompleteCallback(r,t,n)}))},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(l.isEmpty(t))return E("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,(function(i,a){"ok"===i&&N(t,(function(t,n){var i=Ue(n);r.onDisconnect_.remember(e.child(t),i)})),r.callOnCompleteCallback(n,i,a)}))},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Rt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce((function(e,t){return Math.max(t.length,e)}),0);N(t,(function(e,t){for(var r=e,i=e.length;i<n+2;i++)r+=" ";console.log(r+t)}))}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),E.apply(void 0,s.__spread([n],e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&j((function(){if("ok"===t)e(null);else{var r=(t||"error").toUpperCase(),i=r;n&&(i+=": "+n);var a=new Error(i);a.code=r,e(a)}}))},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new hn(this))},enumerable:!0,configurable:!0}),e}(),nn=function(){function e(t){this.indexedFilter_=new _t(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,a){return this.matches(new ge(t,n))||(n=Fe.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,a)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Fe.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Fe.EMPTY_NODE);var i=this;return t.forEachChild($e,(function(e,t){i.matches(new ge(e,t))||(r=r.updateImmediateChild(e,Fe.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),rn=function(){function e(e){this.rangedFilter_=new nn(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,a){return this.rangedFilter_.matches(new ge(t,n))||(n=Fe.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,a):this.fullLimitUpdateChild_(e,t,n,i,a)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Fe.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Fe.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var a=0;i.hasNext()&&a<this.limit_;){var o=i.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),o)<=0:this.index_.compare(o,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(o.name,o.node),a++}}else{r=(r=t.withIndex(this.index_)).updatePriority(Fe.EMPTY_NODE);var s=void 0,l=void 0,c=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var u=this.index_.getCompare();c=function(e,t){return u(t,e)}}else i=r.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();a=0;for(var d=!1;i.hasNext();){o=i.getNext();!d&&c(s,o)<=0&&(d=!0),d&&a<this.limit_&&c(o,l)<=0?a++:r=r.updateImmediateChild(o.name,Fe.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,i){var a;if(this.reverse_){var o=this.index_.getCompare();a=function(e,t){return o(t,e)}}else a=this.index_.getCompare();var s=e;l.assert(s.numChildren()===this.limit_,"");var c=new ge(t,n),u=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),d=this.rangedFilter_.matches(c);if(s.hasChild(t)){for(var h=s.getImmediateChild(t),p=r.getChildAfterChild(this.index_,u,this.reverse_);null!=p&&(p.name===t||s.hasChild(p.name));)p=r.getChildAfterChild(this.index_,p,this.reverse_);var f=null==p?1:a(p,c);if(d&&!n.isEmpty()&&f>=0)return null!=i&&i.trackChildChange(bt.childChangedChange(t,n,h)),s.updateImmediateChild(t,n);null!=i&&i.trackChildChange(bt.childRemovedChange(t,h));var m=s.updateImmediateChild(t,Fe.EMPTY_NODE);return null!=p&&this.rangedFilter_.matches(p)?(null!=i&&i.trackChildChange(bt.childAddedChange(p.name,p.node)),m.updateImmediateChild(p.name,p.node)):m}return n.isEmpty()?e:d&&a(u,c)>=0?(null!=i&&(i.trackChildChange(bt.childRemovedChange(u.name,u.node)),i.trackChildChange(bt.childAddedChange(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(u.name,Fe.EMPTY_NODE)):e},e}(),an=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=$e}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return l.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return l.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:$},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return l.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return l.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:L},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return l.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==$e&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===$e},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new _t(this.getIndex()):this.hasLimit()?new rn(this):new nn(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,r={};return this.isDefault()||(this.index_===$e?t=n.PRIORITY_INDEX:this.index_===Ve?t=n.VALUE_INDEX:this.index_===_e?t=n.KEY_INDEX:(l.assert(this.index_ instanceof qe,"Unrecognized index type!"),t=this.index_.toString()),r[n.ORDER_BY]=l.stringify(t),this.startSet_&&(r[n.START_AT]=l.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+l.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=l.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+l.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_)),r},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),on=function(e){function t(t,n){if(!(t instanceof tn))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,an.DEFAULT,!1)||this}return s.__extends(t,e),t.prototype.getKey=function(){return l.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return l.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof e?e=String(e):e instanceof H||(null===this.path.getFront()?ue("Reference.child",1,e,!1):ce("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){l.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){l.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){l.validateArgCount("Reference.set",1,2,arguments.length),de("Reference.set",this.path),re("Reference.set",1,e,this.path,!1),l.validateCallback("Reference.set",2,t,!0);var n=new l.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(l.validateArgCount("Reference.update",1,2,arguments.length),de("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,x("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("Reference.update",1,e,this.path,!1),l.validateCallback("Reference.update",2,t,!0);var i=new l.Deferred;return this.repo.update(this.path,e,i.wrapCallback(t)),i.promise},t.prototype.setWithPriority=function(e,t,n){if(l.validateArgCount("Reference.setWithPriority",2,3,arguments.length),de("Reference.setWithPriority",this.path),re("Reference.setWithPriority",1,e,this.path,!1),oe("Reference.setWithPriority",2,t,!1),l.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new l.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return l.validateArgCount("Reference.remove",0,1,arguments.length),de("Reference.remove",this.path),l.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(l.validateArgCount("Reference.transaction",1,3,arguments.length),de("Reference.transaction",this.path),l.validateCallback("Reference.transaction",1,e,!1),l.validateCallback("Reference.transaction",2,t,!0),pe("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new l.Deferred;"function"==typeof t&&r.promise.catch((function(){}));var i=function(e,n,i){e?r.reject(e):r.resolve(new me(n,i)),"function"==typeof t&&t(e,n,i)};return this.repo.startTransaction(this.path,e,i,n),r.promise},t.prototype.setPriority=function(e,t){l.validateArgCount("Reference.setPriority",1,2,arguments.length),de("Reference.setPriority",this.path),oe("Reference.setPriority",1,e,!1),l.validateCallback("Reference.setPriority",2,t,!0);var n=new l.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){l.validateArgCount("Reference.push",0,2,arguments.length),de("Reference.push",this.path),re("Reference.push",1,e,this.path,!0),l.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),i=ve(r),a=this.child(i),o=this.child(i);return n=null!=e?a.set(e,t).then((function(){return o})):Promise.resolve(o),a.then=n.then.bind(n),a.catch=n.then.bind(n,void 0),"function"==typeof t&&n.catch((function(){})),a},t.prototype.onDisconnect=function(){return de("Reference.onDisconnect",this.path),new fe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),t}(Qe);Qe.__referenceConstructor=on,Mt.__referenceConstructor=on;var sn,ln=function(){this.children={},this.childCount=0,this.value=null},cn=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new ln),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n=t instanceof H?t:new H(t),r=this,i=n.getFront();null!==i;){r=new e(i,r,l.safeGet(r.node_.children,i)||new ln),i=(n=n.popFront()).getFront()}return r},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){l.assert(void 0!==e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;N(this.node_.children,(function(r,i){t(new e(r,n,i))}))},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild((function(t){t.forEachDescendant(e,!0,n)})),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild((function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)}))},e.prototype.path=function(){return new H(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=l.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(sn||(sn={})),tn.MAX_TRANSACTION_RETRIES_=25,tn.prototype.transactionsInit_=function(){this.transactionQueueTree_=new cn},tn.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var i=function(){},a=new on(this,e);a.on("value",i);var o={path:e,update:t,onComplete:n,status:null,order:g(),applyLocally:r,retryCount:0,unwatcher:function(){a.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},s=this.getLatestState_(e);o.currentInputSnapshot=s;var c=o.update(s.val());if(void 0===c){if(o.unwatcher(),o.currentOutputSnapshotRaw=null,o.currentOutputSnapshotResolved=null,o.onComplete){var u=new We(o.currentInputSnapshot,new on(this,o.path),$e);o.onComplete(null,!1,u)}}else{ie("transaction failed: Data returned ",c,o.path),o.status=sn.RUN;var d=this.transactionQueueTree_.subTree(e),h=d.getValue()||[];h.push(o),d.setValue(h);var p=void 0;if("object"==typeof c&&null!==c&&l.contains(c,".priority"))p=l.safeGet(c,".priority"),l.assert(ne(p),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else p=(this.serverSyncTree_.calcCompleteEventCache(e)||Fe.EMPTY_NODE).getPriority().val();p=p;var f=this.generateServerValues(),m=Ue(c,p),v=at(m,s,f);o.currentOutputSnapshotRaw=m,o.currentOutputSnapshotResolved=v,o.currentWriteId=this.getNextWriteId_();var y=this.serverSyncTree_.applyUserOverwrite(e,v,o.currentWriteId,o.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,y),this.sendReadyTransactions_()}},tn.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Fe.EMPTY_NODE},tn.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);l.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return e.status===sn.RUN}))&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild((function(e){t.sendReadyTransactions_(e)}))},tn.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map((function(e){return e.currentWriteId})),i=this.getLatestState_(e,r),a=i,o=i.hash(),s=0;s<t.length;s++){var c=t[s];l.assert(c.status===sn.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=sn.SENT,c.retryCount++;var u=H.relativePath(e,c.path);a=a.updateChild(u,c.currentOutputSnapshotRaw)}var d=a.val(!0),h=e;this.server_.put(h.toString(),d,(function(r){n.log_("transaction put response",{path:h.toString(),status:r});var i=[];if("ok"===r){for(var a=[],o=0;o<t.length;o++){if(t[o].status=sn.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(t[o].currentWriteId)),t[o].onComplete){var s=t[o].currentOutputSnapshotResolved,l=new on(n,t[o].path),c=new We(s,l,$e);a.push(t[o].onComplete.bind(null,null,!0,c))}t[o].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,i);for(o=0;o<a.length;o++)j(a[o])}else{if("datastale"===r)for(o=0;o<t.length;o++)t[o].status===sn.SENT_NEEDS_ABORT?t[o].status=sn.NEEDS_ABORT:t[o].status=sn.RUN;else{x("transaction at "+h.toString()+" failed: "+r);for(o=0;o<t.length;o++)t[o].status=sn.NEEDS_ABORT,t[o].abortReason=r}n.rerunTransactions_(e)}}),o)},tn.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},tn.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,r=[],i=[],a=e.filter((function(e){return e.status===sn.RUN})).map((function(e){return e.currentWriteId})),o=0;o<e.length;o++){var s=e[o],c=H.relativePath(t,s.path),u=!1,d=void 0;if(l.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),s.status===sn.NEEDS_ABORT)u=!0,d=s.abortReason,i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else if(s.status===sn.RUN)if(s.retryCount>=tn.MAX_TRANSACTION_RETRIES_)u=!0,d="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else{var h=this.getLatestState_(s.path,a);s.currentInputSnapshot=h;var p=e[o].update(h.val());if(void 0!==p){ie("transaction failed: Data returned ",p,s.path);var f=Ue(p);"object"==typeof p&&null!=p&&l.contains(p,".priority")||(f=f.updatePriority(h.getPriority()));var m=s.currentWriteId,v=this.generateServerValues(),g=at(f,h,v);s.currentOutputSnapshotRaw=f,s.currentOutputSnapshotResolved=g,s.currentWriteId=this.getNextWriteId_(),a.splice(a.indexOf(m),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(s.path,g,s.currentWriteId,s.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(m,!0))}else u=!0,d="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,i),i=[],u&&(e[o].status=sn.COMPLETED,n=e[o].unwatcher,setTimeout(n,Math.floor(0)),e[o].onComplete))if("nodata"===d){var y=new on(this,e[o].path),b=e[o].currentInputSnapshot,_=new We(b,y,$e);r.push(e[o].onComplete.bind(null,null,!1,_))}else r.push(e[o].onComplete.bind(null,new Error(d),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(o=0;o<r.length;o++)j(r[o]);this.sendReadyTransactions_()}},tn.prototype.getAncestorTransactionNode_=function(e){var t,n=this.transactionQueueTree_;for(t=e.getFront();null!==t&&null===n.getValue();)n=n.subTree(t),t=(e=e.popFront()).getFront();return n},tn.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort((function(e,t){return e.order-t.order})),t},tn.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var i=0;i<r.length;i++)t.push(r[i]);e.forEachChild((function(e){n.aggregateTransactionQueuesForNode_(e,t)}))},tn.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==sn.COMPLETED&&(n[r]=n[i],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild((function(e){t.pruneCompletedTransactionsBelowNode_(e)}))},tn.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor((function(e){t.abortTransactionsOnNode_(e)})),this.abortTransactionsOnNode_(r),r.forEachDescendant((function(e){t.abortTransactionsOnNode_(e)})),n},tn.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,a=0;a<t.length;a++)if(t[a].status===sn.SENT_NEEDS_ABORT);else if(t[a].status===sn.SENT)l.assert(i===a-1,"All SENT items should be at beginning of queue."),i=a,t[a].status=sn.SENT_NEEDS_ABORT,t[a].abortReason="set";else if(l.assert(t[a].status===sn.RUN,"Unexpected transaction status in abort"),t[a].unwatcher(),r=r.concat(this.serverSyncTree_.ackUserWrite(t[a].currentWriteId,!0)),t[a].onComplete){n.push(t[a].onComplete.bind(null,new Error("set"),!1,null))}-1===i?e.setValue(null):t.length=i+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(a=0;a<n.length;a++)j(n[a])}};var un,dn=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return un||(un=new e),un},e.prototype.interrupt=function(){var e,t,n,r;try{for(var i=s.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var o=a.value;try{for(var l=(n=void 0,s.__values(Object.keys(this.repos_[o]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[o][u].interrupt()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.resume=function(){var e,t,n,r;try{for(var i=s.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var o=a.value;try{for(var l=(n=void 0,s.__values(Object.keys(this.repos_[o]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[o][u].resume()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.databaseFromApp=function(e,t,n){var i=n||e.options.databaseURL;void 0===i&&C("Can't determine Firebase Database URL.  Be sure to include databaseURL option when calling firebase.initializeApp().");var a=J(i),o=a.repoInfo,s=void 0;return void 0!==r&&(s=r.env.FIREBASE_DATABASE_EMULATOR_HOST),s&&(i="http://"+s+"?ns="+o.namespace,o=(a=J(i)).repoInfo),he("Invalid Firebase Database URL",1,a),a.path.isEmpty()||C("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(o,e,t).database},e.prototype.deleteRepo=function(e){var t=l.safeGet(this.repos_,e.app.name);t&&l.safeGet(t,e.repoInfo_.toURLString())===e||C("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t,n){var r=l.safeGet(this.repos_,t.name);r||(r={},this.repos_[t.name]=r);var i=l.safeGet(r,e.toURLString());return i&&C("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new tn(e,this.useRestClient_,t,n),r[e.toURLString()]=i,i},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),hn=function(){function e(e){this.repo_=e,e instanceof tn||C("Don't call new Database() directly - please use firebase.database()."),this.root_=new on(e,H.Empty),this.INTERNAL=new pn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),l.validateArgCount("database.ref",0,1,arguments.length),e instanceof on?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),l.validateArgCount(t,1,1,arguments.length);var n=J(e);he(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&C(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&C("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){l.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){l.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(e){return{".sv":{increment:e}}}},e}(),pn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return s.__awaiter(this,void 0,void 0,(function(){return s.__generator(this,(function(e){return this.database.checkDeleted_("delete"),dn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}))},e}(),fn=Object.freeze({__proto__:null,forceLongPolling:function(){Kt.forceDisallow(),Vt.forceAllow()},forceWebSockets:function(){Vt.forceDisallow()},isWebSocketsAvailable:function(){return Kt.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),mn=Zt;Zt.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Zt.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var vn=Xt,gn=z,yn=Object.freeze({__proto__:null,DataConnection:mn,RealTimeConnection:vn,hijackHash:function(e){var t=Zt.prototype.put;return Zt.prototype.put=function(n,r,i,a){void 0!==a&&(a=e()),t.call(this,n,r,i,a)},function(){Zt.prototype.put=t}},ConnectionTarget:gn,queryIdentifier:function(e){return e.queryIdentifier()},forceRestClient:function(e){dn.getInstance().forceRestClient(e)}}),bn=hn.ServerValue;function _n(t){!function(e){Wt=e}(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new u.Component("database",(function(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return dn.getInstance().databaseFromApp(n,r,t)}),"PUBLIC").setServiceProps({Reference:on,Query:Qe,Database:hn,DataSnapshot:We,enableLogging:k,INTERNAL:fn,ServerValue:bn,TEST_ACCESS:yn}).setMultipleInstances(!0));t.registerVersion("@firebase/database","0.6.1"),l.isNodeSdk()&&(e.exports=n)}_n(o),t.DataSnapshot=We,t.Database=hn,t.OnDisconnect=fe,t.Query=Qe,t.Reference=on,t.ServerValue=bn,t.enableLogging=k,t.registerDatabase=_n}).call(this,n(25))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(5),a=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r,o=n(28),s=n(23),l=n(22),c=n(228),u=a.SDK_VERSION,d=function(){function e(e){this.uid=e}return e.prototype.t=function(){return null!=this.uid},e.prototype.s=function(){return this.t()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e}();d.UNAUTHENTICATED=new d(null),d.i=new d("google-credentials-uid"),d.h=new d("first-party-uid");var h={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},p=function(e){function t(t,n){var r=this;return(r=e.call(this,n)||this).code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return i.__extends(t,e),t}(Error),f=function(e,t){this.user=t,this.type="OAuth",this.o={},this.o.Authorization="Bearer "+e},m=function(){function e(){this.u=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype._=function(){},e.prototype.l=function(e){this.u=e,e(d.UNAUTHENTICATED)},e.prototype.T=function(){this.u=null},e}(),v=function(){function e(e){var t=this;this.I=null,this.currentUser=d.UNAUTHENTICATED,this.R=!1,this.A=0,this.u=null,this.forceRefresh=!1,this.I=function(){t.A++,t.currentUser=t.m(),t.R=!0,t.u&&t.u(t.currentUser)},this.A=0,this.auth=e.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.I):(this.I(null),e.get().then((function(e){t.auth=e,t.I&&t.auth.addAuthTokenListener(t.I)}),(function(){})))}return e.prototype.getToken=function(){var e=this,t=this.A,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(e.A!==t)throw new p(h.ABORTED,"getToken aborted due to token change.");return n?(Tt("string"==typeof n.accessToken),new f(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype._=function(){this.forceRefresh=!0},e.prototype.l=function(e){this.u=e,this.R&&e(this.currentUser)},e.prototype.T=function(){this.auth&&this.auth.removeAuthTokenListener(this.I),this.I=null,this.u=null},e.prototype.m=function(){var e=this.auth&&this.auth.getUid();return Tt(null===e||"string"==typeof e),new d(e)},e}(),g=function(){function e(e,t){this.P=e,this.V=t,this.type="FirstParty",this.user=d.h}return Object.defineProperty(e.prototype,"o",{get:function(){var e={"X-Goog-AuthUser":this.V},t=this.P.auth.g([]);return t&&(e.Authorization=t),e},enumerable:!0,configurable:!0}),e}(),y=function(){function e(e,t){this.P=e,this.V=t}return e.prototype.getToken=function(){return Promise.resolve(new g(this.P,this.V))},e.prototype.l=function(e){e(d.h)},e.prototype.T=function(){},e.prototype._=function(){},e}(),b=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new p(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new p(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new p(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new p(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype.p=function(e){return this.seconds===e.seconds?Ct(this.nanoseconds,e.nanoseconds):Ct(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e.prototype.valueOf=function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},e}(),_=function(){function e(e){this.timestamp=e}return e.v=function(t){return new e(t)},e.S=function(){return e.MIN},e.prototype.D=function(e){return this.timestamp.p(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.C=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.F=function(){return this.timestamp},e}();_.MIN=new _(new b(0,0));var w=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&Et(),void 0===n?n=e.length-t:n>e.length-t&&Et(),this.segments=e,this.offset=t,this.N=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.N},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.k(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.$(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.M=function(e){return e=void 0===e?1:e,this.$(this.segments,this.offset+e,this.length-e)},e.prototype.L=function(){return this.$(this.segments,this.offset,this.length-1)},e.prototype.O=function(){return this.segments[this.offset]},e.prototype.B=function(){return this.get(this.length-1)},e.prototype.get=function(e){return this.segments[this.offset+e]},e.prototype.q=function(){return 0===this.length},e.prototype.U=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.W=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.j=function(){return this.segments.slice(this.offset,this.limit())},e.k=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),a=t.get(r);if(i<a)return-1;if(i>a)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.$=function(e,n,r){return new t(e,n,r)},t.prototype.K=function(){return this.j().join("/")},t.prototype.toString=function(){return this.K()},t.G=function(e){if(e.indexOf("//")>=0)throw new p(h.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter((function(e){return e.length>0})))},t}(w);k.H=new k([]);var E=/^[_a-zA-Z][_a-zA-Z0-9]*$/,T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.$=function(e,n,r){return new t(e,n,r)},t.Y=function(e){return E.test(e)},t.prototype.K=function(){return this.j().map((function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.Y(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.K()},t.prototype.J=function(){return 1===this.length&&"__name__"===this.get(0)},t.X=function(){return new t(["__name__"])},t.Z=function(e){for(var n=[],r="",i=0,a=function(){if(0===r.length)throw new p(h.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},o=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new p(h.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new p(h.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===s?(o=!o,i++):"."!==s||o?(r+=s,i++):(a(),i++)}if(a(),o)throw new p(h.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t}(w);T.H=new T([]);var S=function(){function e(e){this.path=e}return e.tt=function(t){return new e(k.G(t).M(5))},e.prototype.et=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===k.k(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.k=function(e,t){return k.k(e.path,t.path)},e.st=function(e){return e.length%2==0},e.it=function(t){return new e(new k(t.slice()))},e}();S.EMPTY=new S(new k([]));var C=function(){function e(e,t){this.k=e,this.root=t||M.EMPTY}return e.prototype.nt=function(t,n){return new e(this.k,this.root.nt(t,n,this.k).rt(null,null,M.ht,null,null))},e.prototype.remove=function(t){return new e(this.k,this.root.remove(t,this.k).rt(null,null,M.ht,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.q();){var n=this.k(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.q();){var r=this.k(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.q=function(){return this.root.q()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.ot=function(){return this.root.ot()},e.prototype.at=function(){return this.root.at()},e.prototype.ut=function(e){return this.root.ut(e)},e.prototype.forEach=function(e){this.ut((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.ut((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.ct=function(e){return this.root.ct(e)},e.prototype._t=function(){return new x(this.root,null,this.k,!1)},e.prototype.lt=function(e){return new x(this.root,e,this.k,!1)},e.prototype.dt=function(){return new x(this.root,null,this.k,!0)},e.prototype.ft=function(e){return new x(this.root,e,this.k,!0)},e}(),x=function(){function e(e,t,n,r){this.Tt=r,this.Et=[];for(var i=1;!e.q();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.Tt?e.left:e.right;else{if(0===i){this.Et.push(e);break}this.Et.push(e),e=this.Tt?e.right:e.left}}return e.prototype.It=function(){var e=this.Et.pop(),t={key:e.key,value:e.value};if(this.Tt)for(e=e.left;!e.q();)this.Et.push(e),e=e.right;else for(e=e.right;!e.q();)this.Et.push(e),e=e.left;return t},e.prototype.wt=function(){return this.Et.length>0},e.prototype.Rt=function(){if(0===this.Et.length)return null;var e=this.Et[this.Et.length-1];return{key:e.key,value:e.value}},e}(),M=function(){function e(t,n,r,i,a){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=a?a:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.rt=function(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)},e.prototype.q=function(){return!1},e.prototype.ut=function(e){return this.left.ut(e)||e(this.key,this.value)||this.right.ut(e)},e.prototype.ct=function(e){return this.right.ct(e)||e(this.key,this.value)||this.left.ct(e)},e.prototype.min=function(){return this.left.q()?this:this.left.min()},e.prototype.ot=function(){return this.min().key},e.prototype.at=function(){return this.right.q()?this.key:this.right.at()},e.prototype.nt=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.rt(null,null,null,r.left.nt(e,t,n),null):0===i?r.rt(null,t,null,null,null):r.rt(null,null,null,null,r.right.nt(e,t,n))).At()},e.prototype.Pt=function(){if(this.left.q())return e.EMPTY;var t=this;return t.left.Vt()||t.left.left.Vt()||(t=t.gt()),(t=t.rt(null,null,null,t.left.Pt(),null)).At()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.q()||i.left.Vt()||i.left.left.Vt()||(i=i.gt()),i=i.rt(null,null,null,i.left.remove(t,n),null);else{if(i.left.Vt()&&(i=i.pt()),i.right.q()||i.right.Vt()||i.right.left.Vt()||(i=i.yt()),0===n(t,i.key)){if(i.right.q())return e.EMPTY;r=i.right.min(),i=i.rt(r.key,r.value,null,null,i.right.Pt())}i=i.rt(null,null,null,null,i.right.remove(t,n))}return i.At()},e.prototype.Vt=function(){return this.color},e.prototype.At=function(){var e=this;return e.right.Vt()&&!e.left.Vt()&&(e=e.bt()),e.left.Vt()&&e.left.left.Vt()&&(e=e.pt()),e.left.Vt()&&e.right.Vt()&&(e=e.vt()),e},e.prototype.gt=function(){var e=this.vt();return e.right.left.Vt()&&(e=(e=(e=e.rt(null,null,null,null,e.right.pt())).bt()).vt()),e},e.prototype.yt=function(){var e=this.vt();return e.left.left.Vt()&&(e=(e=e.pt()).vt()),e},e.prototype.bt=function(){var t=this.rt(null,null,e.RED,null,this.right.left);return this.right.rt(null,null,this.color,t,null)},e.prototype.pt=function(){var t=this.rt(null,null,e.RED,this.left.right,null);return this.left.rt(null,null,this.color,null,t)},e.prototype.vt=function(){var e=this.left.rt(null,null,!this.left.color,null,null),t=this.right.rt(null,null,!this.right.color,null,null);return this.rt(null,null,!this.color,e,t)},e.prototype.St=function(){var e=this.Dt();return Math.pow(2,e)<=this.size+1},e.prototype.Dt=function(){if(this.Vt()&&this.left.Vt())throw Et();if(this.right.Vt())throw Et();var e=this.left.Dt();if(e!==this.right.Dt())throw Et();return e+(this.Vt()?0:1)},e}();M.EMPTY=null,M.RED=!0,M.ht=!1,M.EMPTY=new(function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw Et()},enumerable:!0,configurable:!0}),e.prototype.rt=function(e,t,n,r,i){return this},e.prototype.nt=function(e,t,n){return new M(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.q=function(){return!0},e.prototype.ut=function(e){return!1},e.prototype.ct=function(e){return!1},e.prototype.ot=function(){return null},e.prototype.at=function(){return null},e.prototype.Vt=function(){return!1},e.prototype.St=function(){return!0},e.prototype.Dt=function(){return 0},e}());var $=function(){function e(e){this.k=e,this.data=new C(this.k)}return e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.ot()},e.prototype.last=function(){return this.data.at()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.ut((function(t,n){return e(t),!1}))},e.prototype.Ct=function(e,t){for(var n=this.data.lt(e[0]);n.wt();){var r=n.It();if(this.k(r.key,e[1])>=0)return;t(r.key)}},e.prototype.Ft=function(e,t){var n;for(n=void 0!==t?this.data.lt(t):this.data._t();n.wt();)if(!e(n.It().key))return},e.prototype.Nt=function(e){var t=this.data.lt(e);return t.wt()?t.It().key:null},e.prototype._t=function(){return new L(this.data._t())},e.prototype.lt=function(e){return new L(this.data.lt(e))},e.prototype.add=function(e){return this.rt(this.data.remove(e).nt(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.rt(this.data.remove(e)):this},e.prototype.q=function(){return this.data.q()},e.prototype.kt=function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data._t(),r=t.data._t();n.wt();){var i=n.It().key,a=r.It().key;if(0!==this.k(i,a))return!1}return!0},e.prototype.j=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},e.prototype.toString=function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"},e.prototype.rt=function(t){var n=new e(this.k);return n.data=t,n},e}(),L=function(){function e(e){this.$t=e}return e.prototype.It=function(){return this.$t.It().key},e.prototype.wt=function(){return this.$t.wt()},e}();function P(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function O(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function D(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var I=function(){function e(e){this.Mt=e}return e.fromBase64String=function(t){return new e(vt.Lt().atob(t))},e.fromUint8Array=function(t){return new e(function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t))},e.prototype.toBase64=function(){return vt.Lt().btoa(this.Mt)},e.prototype.toUint8Array=function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.Mt)},e.prototype.Ot=function(){return 2*this.Mt.length},e.prototype.D=function(e){return Ct(this.Mt,e.Mt)},e.prototype.isEqual=function(e){return this.Mt===e.Mt},e}();function A(e){return null==e}function N(e){return-0===e&&1/e==-1/0}function R(e){return"number"==typeof e&&Number.isInteger(e)&&!N(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}function Y(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function B(e){var t=W(e.mapValue.fields.__local_write_time__.timestampValue);return new b(t.seconds,t.nanos)}I.xt=new I("");var j=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function F(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Y(e)?4:10:Et()}function H(e,t){var n=F(e);if(n!==F(t))return!1;switch(n){case 0:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return B(e).isEqual(B(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=W(e.timestampValue),r=W(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return K(e.bytesValue).isEqual(K(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return G(e.geoPointValue.latitude)===G(t.geoPointValue.latitude)&&G(e.geoPointValue.longitude)===G(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return G(e.integerValue)===G(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=G(e.doubleValue),r=G(t.doubleValue);return n===r?N(n)===N(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return xt(e.arrayValue.values||[],t.arrayValue.values||[],H);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(P(n)!==P(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!H(n[i],r[i])))return!1;return!0}(e,t);default:return Et()}}function U(e,t){return void 0!==(e.values||[]).find((function(e){return H(e,t)}))}function z(e,t){var n=F(e),r=F(t);if(n!==r)return Ct(n,r);switch(n){case 0:return 0;case 1:return Ct(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=G(e.integerValue||e.doubleValue),r=G(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return V(e.timestampValue,t.timestampValue);case 4:return V(B(e),B(t));case 5:return Ct(e.stringValue,t.stringValue);case 6:return function(e,t){var n=K(e),r=K(t);return n.D(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var a=Ct(n[i],r[i]);if(0!==a)return a}return Ct(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=Ct(G(e.latitude),G(t.latitude));return 0!==n?n:Ct(G(e.longitude),G(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var a=z(n[i],r[i]);if(a)return a}return Ct(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(var o=0;o<r.length&&o<a.length;++o){var s=Ct(r[o],a[o]);if(0!==s)return s;var l=z(n[r[o]],i[a[o]]);if(0!==l)return l}return Ct(r.length,a.length)}(e.mapValue,t.mapValue);default:throw Et()}}function V(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Ct(e,t);var n=W(e),r=W(t),i=Ct(n.seconds,r.seconds);return 0!==i?i:Ct(n.nanos,r.nanos)}function q(e){return function e(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(e){var t=W(e);return"time("+t.seconds+","+t.nanos+")"}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?K(t.bytesValue).toBase64():"referenceValue"in t?(r=t.referenceValue,S.tt(r).toString()):"geoPointValue"in t?"geo("+(n=t.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in t?function(t){for(var n="[",r=!0,i=0,a=t.values||[];i<a.length;i++){var o=a[i];r?r=!1:n+=",",n+=e(o)}return n+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var n="{",r=!0,i=0,a=Object.keys(t.fields||{}).sort();i<a.length;i++){var o=a[i];r?r=!1:n+=",",n+=o+":"+e(t.fields[o])}return n+"}"}(t.mapValue):Et();var n,r}(e)}function W(e){if(Tt(!!e),"string"==typeof e){var t=0,n=j.exec(e);if(Tt(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:G(e.seconds),nanos:G(e.nanos)}}function G(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function K(e){return"string"==typeof e?I.fromBase64String(e):I.fromUint8Array(e)}function J(e,t){return{referenceValue:"projects/"+e.projectId+"/databases/"+e.database+"/documents/"+t.path.K()}}function X(e){return!!e&&"integerValue"in e}function Q(e){return!!e&&"arrayValue"in e}function Z(e){return!!e&&"nullValue"in e}function ee(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function te(e){return!!e&&"mapValue"in e}var ne=function(){function e(){}return e.prototype.Bt=function(e,t){return function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(t,e)},e.prototype.qt=function(e,t){return t},e.prototype.Ut=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e},e}();ne.instance=new ne;var re=function(){function e(e){this.elements=e}return e.prototype.Bt=function(e,t){return this.apply(e)},e.prototype.qt=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=oe(e),n=function(e){t.some((function(t){return H(t,e)}))||t.push(e)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:t}}},e.prototype.Ut=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&xt(this.elements,t.elements,H)},e}(),ie=function(){function e(e){this.elements=e}return e.prototype.Bt=function(e,t){return this.apply(e)},e.prototype.qt=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=oe(e),n=function(e){t=t.filter((function(t){return!H(t,e)}))},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:t}}},e.prototype.Ut=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&xt(this.elements,t.elements,H)},e}(),ae=function(){function e(e,t){this.serializer=e,this.Qt=t}return e.prototype.Bt=function(e,t){var n=this.Ut(e),r=this.asNumber(n)+this.asNumber(this.Qt);return X(n)&&X(this.Qt)?this.serializer.Wt(r):this.serializer.jt(r)},e.prototype.qt=function(e,t){return t},e.prototype.Ut=function(e){return X(t=e)||function(e){return!!e&&"doubleValue"in e}(t)?e:{integerValue:0};var t},e.prototype.isEqual=function(t){return t instanceof e&&H(this.Qt,t.Qt)},e.prototype.asNumber=function(e){return G(e.integerValue||e.doubleValue)},e}();function oe(e){return Q(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var se=function(){function e(e){this.fields=e}return e.Kt=function(t){return new e(t)},e.Gt=function(t){var n=new $(T.k);return t.forEach((function(e){return n=n.add(e)})),new e(n)},e.prototype.zt=function(e){var t=!1;return this.fields.forEach((function(n){n.U(e)&&(t=!0)})),t},e.prototype.isEqual=function(e){return this.fields.isEqual(e.fields)},e}(),le=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),ce=function(e,t){this.version=e,this.transformResults=t},ue=function(){function e(e,t){this.updateTime=e,this.exists=t}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"Ht",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.Yt=function(e){return void 0!==this.updateTime?e instanceof _e&&e.version.isEqual(this.updateTime):void 0===this.exists||this.exists===e instanceof _e},e.prototype.isEqual=function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)},e}();ue.NONE=new ue;var de=function(){function e(){}return e.prototype.Jt=function(e){},e.Xt=function(e){return e instanceof _e?e.version:_.MIN},e}(),he=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).key=t,i.value=n,i.Zt=r,i.type=0,i}return i.__extends(t,e),t.prototype.qt=function(e,t){this.Jt(e);var n=t.version;return new _e(this.key,n,this.value,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){if(this.Jt(e),!this.Zt.Yt(e))return e;var r=de.Xt(e);return new _e(this.key,r,this.value,{te:!0})},t.prototype.ee=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.Zt.isEqual(e.Zt)},t}(de),pe=function(e){function t(t,n,r,i){var a=this;return(a=e.call(this)||this).key=t,a.data=n,a.se=r,a.Zt=i,a.type=1,a}return i.__extends(t,e),t.prototype.qt=function(e,t){if(this.Jt(e),!this.Zt.Yt(e))return new ke(this.key,t.version);var n=this.ie(e);return new _e(this.key,t.version,n,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){if(this.Jt(e),!this.Zt.Yt(e))return e;var r=de.Xt(e),i=this.ie(e);return new _e(this.key,r,i,{te:!0})},t.prototype.ee=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.se.isEqual(e.se)&&this.Zt.isEqual(e.Zt)},t.prototype.ie=function(e){var t;return t=e instanceof _e?e.data():ge.EMPTY,this.ne(t)},t.prototype.ne=function(e){var t=this,n=e.re();return this.se.fields.forEach((function(e){if(!e.q()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}})),n.he()},t}(de),fe=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.fieldTransforms=n,r.type=2,r.Zt=ue.exists(!0),r}return i.__extends(t,e),t.prototype.qt=function(e,t){if(this.Jt(e),Tt(null!=t.transformResults),!this.Zt.Yt(e))return new ke(this.key,t.version);var n=this.oe(e),r=this.ae(e,t.transformResults),i=t.version,a=this.ue(n.data(),r);return new _e(this.key,i,a,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){if(this.Jt(e),!this.Zt.Yt(e))return e;var r=this.oe(e),i=this.ce(n,e,t),a=this.ue(r.data(),i);return new _e(this.key,r.version,a,{te:!0})},t.prototype.ee=function(e){for(var t=null,n=0,r=this.fieldTransforms;n<r.length;n++){var i=r[n],a=e instanceof _e?e.field(i.field):void 0,o=i.transform.Ut(a||null);null!=o&&(t=null==t?ge._e().set(i.field,o):t.set(i.field,o))}return t?t.he():null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&xt(this.fieldTransforms,e.fieldTransforms,(function(e,t){return e.isEqual(t)}))&&this.Zt.isEqual(e.Zt)},t.prototype.oe=function(e){return e},t.prototype.ae=function(e,t){var n=[];Tt(this.fieldTransforms.length===t.length);for(var r=0;r<t.length;r++){var i=this.fieldTransforms[r],a=i.transform,o=null;e instanceof _e&&(o=e.field(i.field)),n.push(a.qt(o,t[r]))}return n},t.prototype.ce=function(e,t,n){for(var r=[],i=0,a=this.fieldTransforms;i<a.length;i++){var o=a[i],s=o.transform,l=null;t instanceof _e&&(l=t.field(o.field)),null===l&&n instanceof _e&&(l=n.field(o.field)),r.push(s.Bt(l,e))}return r},t.prototype.ue=function(e,t){for(var n=e.re(),r=0;r<this.fieldTransforms.length;r++){var i=this.fieldTransforms[r].field;n.set(i,t[r])}return n.he()},t}(de),me=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.Zt=n,r.type=3,r}return i.__extends(t,e),t.prototype.qt=function(e,t){return this.Jt(e),new we(this.key,t.version,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){return this.Jt(e),this.Zt.Yt(e)?new we(this.key,_.S()):e},t.prototype.ee=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.Zt.isEqual(e.Zt)},t}(de),ve=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.Zt=n,r.type=4,r}return i.__extends(t,e),t.prototype.qt=function(e,t){Et()},t.prototype.Bt=function(e,t,n){Et()},t.prototype.ee=function(e){Et()},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.Zt.isEqual(e.Zt)},t}(de),ge=function(){function e(e){this.proto=e}return e._e=function(){return e.EMPTY.re()},e.prototype.field=function(e){if(e.q())return this.proto;for(var t=this.proto,n=0;n<e.length-1;++n){if(!t.mapValue.fields)return null;if(!te(t=t.mapValue.fields[e.get(n)]))return null}return(t=(t.mapValue.fields||{})[e.B()])||null},e.prototype.se=function(){return this.le(this.proto.mapValue)},e.prototype.le=function(e){var t=this,n=new $(T.k);return O(e.fields||{},(function(e,r){var i=new T([e]);if(10===F(r)){var a=t.le(r.mapValue).fields;a.q()?n=n.add(i):a.forEach((function(e){n=n.add(i.child(e))}))}else n=n.add(i)})),se.Kt(n)},e.prototype.isEqual=function(e){return H(this.proto,e.proto)},e.prototype.re=function(){return new ye(this)},e}();ge.EMPTY=new ge({mapValue:{}});var ye=function(){function e(e){this.de=e,this.fe=new Map}return e.prototype.set=function(e,t){return this.Te(e,t),this},e.prototype.delete=function(e){return this.Te(e,null),this},e.prototype.Te=function(e,t){for(var n=this.fe,r=0;r<e.length-1;++r){var i=e.get(r),a=n.get(i);a instanceof Map?n=a:a&&10===F(a)?(a=new Map(Object.entries(a.mapValue.fields||{})),n.set(i,a),n=a):(a=new Map,n.set(i,a),n=a)}n.set(e.B(),t)},e.prototype.he=function(){var e=this.Ee(T.H,this.fe);return null!=e?new ge(e):this.de},e.prototype.Ee=function(e,t){var n=this,r=!1,i=this.de.field(e),a=te(i)?Object.assign({},i.mapValue.fields):{};return t.forEach((function(t,i){if(t instanceof Map){var o=n.Ee(e.child(i),t);null!=o&&(a[i]=o,r=!0)}else null!==t?(a[i]=t,r=!0):a.hasOwnProperty(i)&&(delete a[i],r=!0)})),r?{mapValue:{fields:a}}:null},e}(),be=function(){function e(e,t){this.key=e,this.version=t}return e.Ie=function(e,t){return S.k(e.key,t.key)},e}(),_e=function(e){function t(t,n,r,i){var a=this;return(a=e.call(this,t,n)||this).we=r,a.te=!!i.te,a.hasCommittedMutations=!!i.hasCommittedMutations,a}return i.__extends(t,e),t.prototype.field=function(e){return this.we.field(e)},t.prototype.data=function(){return this.we},t.prototype.Re=function(){return this.we.proto},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.te===e.te&&this.hasCommittedMutations===e.hasCommittedMutations&&this.we.isEqual(e.we)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.we.toString()+", {hasLocalMutations: "+this.te+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.te||this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.Ae=function(e,t,n){var r=t.field(e),i=n.field(e);return null!==r&&null!==i?z(r,i):Et()},t}(be),we=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return i.__extends(t,e),t.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.hasCommittedMutations===this.hasCommittedMutations&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(be),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(be),Ee=function(){function e(e,t,n,r,i,a,o){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a=null),void 0===o&&(o=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=a,this.endAt=o,this.me=null}return e.prototype.canonicalId=function(){if(null===this.me){var e=this.path.K();null!==this.collectionGroup&&(e+="|cg:"+this.collectionGroup),e+="|f:",e+=this.filters.map((function(e){return e.canonicalId()})).join(","),e+="|ob:",e+=this.orderBy.map((function(e){return e.canonicalId()})).join(","),A(this.limit)||(e+="|l:",e+=this.limit),this.startAt&&(e+="|lb:",e+=this.startAt.canonicalId()),this.endAt&&(e+="|ub:",e+=this.endAt.canonicalId()),this.me=e}return this.me},e.prototype.toString=function(){var e=this.path.K();return null!==this.collectionGroup&&(e+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(e+=", filters: ["+this.filters.join(", ")+"]"),A(this.limit)||(e+=", limit: "+this.limit),this.orderBy.length>0&&(e+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),"Target("+e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t<this.orderBy.length;t++)if(!this.orderBy[t].isEqual(e.orderBy[t]))return!1;if(this.filters.length!==e.filters.length)return!1;for(var n=0;n<this.filters.length;n++)if(!this.filters[n].isEqual(e.filters[n]))return!1;return this.collectionGroup===e.collectionGroup&&!!this.path.isEqual(e.path)&&!!(null!==this.startAt?this.startAt.isEqual(e.startAt):null===e.startAt)&&(null!==this.endAt?this.endAt.isEqual(e.endAt):null===e.endAt)},e.prototype.Pe=function(){return S.st(this.path)&&null===this.collectionGroup&&0===this.filters.length},e}(),Te=function(){function e(e,t,n,r,i,a,o,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a="F"),void 0===o&&(o=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.Ve=n,this.filters=r,this.limit=i,this.ge=a,this.startAt=o,this.endAt=s,this.pe=null,this.ye=null,this.startAt&&this.be(this.startAt),this.endAt&&this.be(this.endAt)}return e.ve=function(t){return new e(t)},Object.defineProperty(e.prototype,"orderBy",{get:function(){if(null===this.pe){var e=this.Se(),t=this.De();if(null!==e&&null===t)e.J()?this.pe=[Re]:this.pe=[new Ne(e),Re];else{this.pe=[];for(var n=!1,r=0,i=this.Ve;r<i.length;r++){var a=i[r];this.pe.push(a),a.field.J()&&(n=!0)}if(!n){var o=this.Ve.length>0?this.Ve[this.Ve.length-1].dir:Oe.ASCENDING;this.pe.push(o===Oe.ASCENDING?Re:Ye)}}}return this.pe},enumerable:!0,configurable:!0}),e.prototype.Ce=function(t){var n=this.filters.concat([t]);return new e(this.path,this.collectionGroup,this.Ve.slice(),n,this.limit,this.ge,this.startAt,this.endAt)},e.prototype.Fe=function(t){var n=this.Ve.concat([t]);return new e(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.ge,this.startAt,this.endAt)},e.prototype.Ne=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),t,"F",this.startAt,this.endAt)},e.prototype.ke=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),t,"L",this.startAt,this.endAt)},e.prototype.$e=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),this.limit,this.ge,t,this.endAt)},e.prototype.Me=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),this.limit,this.ge,this.startAt,t)},e.prototype.Le=function(t){return new e(t,null,this.Ve.slice(),this.filters.slice(),this.limit,this.ge,this.startAt,this.endAt)},e.prototype.Oe=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.Ve.length||1===this.Ve.length&&this.Ve[0].field.J())},e.prototype.canonicalId=function(){return this.xe().canonicalId()+"|lt:"+this.ge},e.prototype.toString=function(){return"Query(target="+this.xe().toString()+"; limitType="+this.ge+")"},e.prototype.isEqual=function(e){return this.xe().isEqual(e.xe())&&this.ge===e.ge},e.prototype.Be=function(e,t){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var a=i[r],o=a.compare(e,t);if(0!==o)return o;n=n||a.field.J()}return 0},e.prototype.matches=function(e){return this.qe(e)&&this.Ue(e)&&this.Qe(e)&&this.We(e)},e.prototype.je=function(){return!A(this.limit)&&"F"===this.ge},e.prototype.Ke=function(){return!A(this.limit)&&"L"===this.ge},e.prototype.De=function(){return this.Ve.length>0?this.Ve[0].field:null},e.prototype.Se=function(){for(var e=0,t=this.filters;e<t.length;e++){var n=t[e];if(n instanceof Ce&&n.Ge())return n.field}return null},e.prototype.ze=function(e){for(var t=0,n=this.filters;t<n.length;t++){var r=n[t];if(r instanceof Ce&&e.indexOf(r.op)>=0)return r.op}return null},e.prototype.Pe=function(){return this.xe().Pe()},e.prototype.He=function(){return null!==this.collectionGroup},e.prototype.xe=function(){if(!this.ye)if("F"===this.ge)this.ye=new Ee(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var e=[],t=0,n=this.orderBy;t<n.length;t++){var r=n[t],i=r.dir===Oe.DESCENDING?Oe.ASCENDING:Oe.DESCENDING;e.push(new Ne(r.field,i))}var a=this.endAt?new Ae(this.endAt.position,!this.endAt.before):null,o=this.startAt?new Ae(this.startAt.position,!this.startAt.before):null;this.ye=new Ee(this.path,this.collectionGroup,e,this.filters,this.limit,a,o)}return this.ye},e.prototype.qe=function(e){var t=e.key.path;return null!==this.collectionGroup?e.key.et(this.collectionGroup)&&this.path.U(t):S.st(this.path)?this.path.isEqual(t):this.path.W(t)},e.prototype.Ue=function(e){for(var t=0,n=this.Ve;t<n.length;t++){var r=n[t];if(!r.field.J()&&null===e.field(r.field))return!1}return!0},e.prototype.Qe=function(e){for(var t=0,n=this.filters;t<n.length;t++)if(!n[t].matches(e))return!1;return!0},e.prototype.We=function(e){return!(this.startAt&&!this.startAt.Ye(this.orderBy,e)||this.endAt&&this.endAt.Ye(this.orderBy,e))},e.prototype.be=function(e){},e}(),Se=function(){function e(e){this.name=e}return e.G=function(t){switch(t){case"<":return e.LESS_THAN;case"<=":return e.LESS_THAN_OR_EQUAL;case"==":return e.EQUAL;case">=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;case"in":return e.IN;case"array-contains-any":return e.ARRAY_CONTAINS_ANY;default:return Et()}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e}();Se.LESS_THAN=new Se("<"),Se.LESS_THAN_OR_EQUAL=new Se("<="),Se.EQUAL=new Se("=="),Se.GREATER_THAN=new Se(">"),Se.GREATER_THAN_OR_EQUAL=new Se(">="),Se.ARRAY_CONTAINS=new Se("array-contains"),Se.IN=new Se("in"),Se.ARRAY_CONTAINS_ANY=new Se("array-contains-any");var Ce=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).field=t,i.op=n,i.value=r,i}return i.__extends(t,e),t.create=function(e,n,r){if(e.J())return n===Se.IN?new Me(e,r):new xe(e,n,r);if(Z(r)){if(n!==Se.EQUAL)throw new p(h.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new t(e,n,r)}if(ee(r)){if(n!==Se.EQUAL)throw new p(h.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new t(e,n,r)}return n===Se.ARRAY_CONTAINS?new $e(e,r):n===Se.IN?new Le(e,r):n===Se.ARRAY_CONTAINS_ANY?new Pe(e,r):new t(e,n,r)},t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&F(this.value)===F(t)&&this.Je(z(t,this.value))},t.prototype.Je=function(e){switch(this.op){case Se.LESS_THAN:return e<0;case Se.LESS_THAN_OR_EQUAL:return e<=0;case Se.EQUAL:return 0===e;case Se.GREATER_THAN:return e>0;case Se.GREATER_THAN_OR_EQUAL:return e>=0;default:return Et()}},t.prototype.Ge=function(){return[Se.LESS_THAN,Se.LESS_THAN_OR_EQUAL,Se.GREATER_THAN,Se.GREATER_THAN_OR_EQUAL].indexOf(this.op)>=0},t.prototype.canonicalId=function(){return this.field.K()+this.op.toString()+q(this.value)},t.prototype.isEqual=function(e){return e instanceof t&&this.op.isEqual(e.op)&&this.field.isEqual(e.field)&&H(this.value,e.value)},t.prototype.toString=function(){return this.field.K()+" "+this.op+" "+q(this.value)},t}((function(){})),xe=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).key=S.tt(r.referenceValue),i}return i.__extends(t,e),t.prototype.matches=function(e){var t=S.k(e.key,this.key);return this.Je(t)},t}(Ce),Me=function(e){function t(t,n){var r=this;return(r=e.call(this,t,Se.IN,n)||this).keys=(n.arrayValue.values||[]).map((function(e){return S.tt(e.referenceValue)})),r}return i.__extends(t,e),t.prototype.matches=function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))},t}(Ce),$e=function(e){function t(t,n){return e.call(this,t,Se.ARRAY_CONTAINS,n)||this}return i.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return Q(t)&&U(t.arrayValue,this.value)},t}(Ce),Le=function(e){function t(t,n){return e.call(this,t,Se.IN,n)||this}return i.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&U(this.value.arrayValue,t)},t}(Ce),Pe=function(e){function t(t,n){return e.call(this,t,Se.ARRAY_CONTAINS_ANY,n)||this}return i.__extends(t,e),t.prototype.matches=function(e){var t=this,n=e.field(this.field);return!(!Q(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return U(t.value.arrayValue,e)}))},t}(Ce),Oe=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e}();Oe.ASCENDING=new Oe("asc"),Oe.DESCENDING=new Oe("desc");var De,Ie,Ae=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){return(this.before?"b":"a")+":"+this.position.map((function(e){return q(e)})).join(",")},e.prototype.Ye=function(e,t){for(var n=0,r=0;r<this.position.length;r++){var i=e[r],a=this.position[r];if(n=i.field.J()?S.k(S.tt(a.referenceValue),t.key):z(a,t.field(i.field)),i.dir===Oe.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},e.prototype.isEqual=function(e){if(null===e)return!1;if(this.before!==e.before||this.position.length!==e.position.length)return!1;for(var t=0;t<this.position.length;t++)if(!H(this.position[t],e.position[t]))return!1;return!0},e}(),Ne=function(){function e(e,t){this.field=e,void 0===t&&(t=Oe.ASCENDING),this.dir=t,this.Xe=e.J()}return e.prototype.compare=function(e,t){var n=this.Xe?_e.Ie(e,t):_e.Ae(this.field,e,t);switch(this.dir){case Oe.ASCENDING:return n;case Oe.DESCENDING:return-1*n;default:return Et()}},e.prototype.canonicalId=function(){return this.field.K()+this.dir.toString()},e.prototype.toString=function(){return this.field.K()+" ("+this.dir+")"},e.prototype.isEqual=function(e){return this.dir===e.dir&&this.field.isEqual(e.field)},e}(),Re=new Ne(T.X(),Oe.ASCENDING),Ye=new Ne(T.X(),Oe.DESCENDING),Be=function(){function e(e,t,n,r,i,a,o){void 0===i&&(i=_.MIN),void 0===a&&(a=_.MIN),void 0===o&&(o=I.xt),this.target=e,this.targetId=t,this.Ze=n,this.sequenceNumber=r,this.ts=i,this.lastLimboFreeSnapshotVersion=a,this.resumeToken=o}return e.prototype.es=function(t){return new e(this.target,this.targetId,this.Ze,t,this.ts,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.ss=function(t,n){return new e(this.target,this.targetId,this.Ze,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.ns=function(t){return new e(this.target,this.targetId,this.Ze,this.sequenceNumber,this.ts,t,this.resumeToken)},e}(),je=function(e){this.count=e};function Fe(e){switch(e){case h.OK:return Et();case h.CANCELLED:case h.UNKNOWN:case h.DEADLINE_EXCEEDED:case h.RESOURCE_EXHAUSTED:case h.INTERNAL:case h.UNAVAILABLE:case h.UNAUTHENTICATED:return!1;case h.INVALID_ARGUMENT:case h.NOT_FOUND:case h.ALREADY_EXISTS:case h.PERMISSION_DENIED:case h.FAILED_PRECONDITION:case h.ABORTED:case h.OUT_OF_RANGE:case h.UNIMPLEMENTED:case h.DATA_LOSS:return!0;default:return Et()}}function He(e){if(void 0===e)return wt("GRPC error has no .code"),h.UNKNOWN;switch(e){case De.OK:return h.OK;case De.CANCELLED:return h.CANCELLED;case De.UNKNOWN:return h.UNKNOWN;case De.DEADLINE_EXCEEDED:return h.DEADLINE_EXCEEDED;case De.RESOURCE_EXHAUSTED:return h.RESOURCE_EXHAUSTED;case De.INTERNAL:return h.INTERNAL;case De.UNAVAILABLE:return h.UNAVAILABLE;case De.UNAUTHENTICATED:return h.UNAUTHENTICATED;case De.INVALID_ARGUMENT:return h.INVALID_ARGUMENT;case De.NOT_FOUND:return h.NOT_FOUND;case De.ALREADY_EXISTS:return h.ALREADY_EXISTS;case De.PERMISSION_DENIED:return h.PERMISSION_DENIED;case De.FAILED_PRECONDITION:return h.FAILED_PRECONDITION;case De.ABORTED:return h.ABORTED;case De.OUT_OF_RANGE:return h.OUT_OF_RANGE;case De.UNIMPLEMENTED:return h.UNIMPLEMENTED;case De.DATA_LOSS:return h.DATA_LOSS;default:return Et()}}(Ie=De||(De={}))[Ie.OK=0]="OK",Ie[Ie.CANCELLED=1]="CANCELLED",Ie[Ie.UNKNOWN=2]="UNKNOWN",Ie[Ie.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ie[Ie.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ie[Ie.NOT_FOUND=5]="NOT_FOUND",Ie[Ie.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ie[Ie.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ie[Ie.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ie[Ie.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ie[Ie.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ie[Ie.ABORTED=10]="ABORTED",Ie[Ie.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ie[Ie.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ie[Ie.INTERNAL=13]="INTERNAL",Ie[Ie.UNAVAILABLE=14]="UNAVAILABLE",Ie[Ie.DATA_LOSS=15]="DATA_LOSS";var Ue=new C(S.k);function ze(){return Ue}function Ve(){return ze()}var qe=new C(S.k);function We(){return qe}var Ge=new C(S.k);function Ke(){return Ge}var Je=new $(S.k);function Xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Je,r=0,i=e;r<i.length;r++){var a=i[r];n=n.add(a)}return n}var Qe=new $(Ct);function Ze(){return Qe}var et=function(){function e(e){this.k=e?function(t,n){return e(t,n)||S.k(t.key,n.key)}:function(e,t){return S.k(e.key,t.key)},this.rs=We(),this.hs=new C(this.k)}return e.os=function(t){return new e(t.k)},e.prototype.has=function(e){return null!=this.rs.get(e)},e.prototype.get=function(e){return this.rs.get(e)},e.prototype.first=function(){return this.hs.ot()},e.prototype.last=function(){return this.hs.at()},e.prototype.q=function(){return this.hs.q()},e.prototype.indexOf=function(e){var t=this.rs.get(e);return t?this.hs.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.hs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.hs.ut((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.rt(t.rs.nt(e.key,e),t.hs.nt(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.rt(this.rs.remove(e),this.hs.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.hs._t(),r=t.hs._t();n.wt();){var i=n.It().key,a=r.It().key;if(!i.isEqual(a))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"},e.prototype.rt=function(t,n){var r=new e;return r.k=this.k,r.rs=t,r.hs=n,r},e}(),tt=function(){function e(){this.as=new C(S.k)}return e.prototype.track=function(e){var t=e.doc.key,n=this.as.get(t);n?0!==e.type&&3===n.type?this.as=this.as.nt(t,e):3===e.type&&1!==n.type?this.as=this.as.nt(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.as=this.as.nt(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.as=this.as.nt(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.as=this.as.remove(t):1===e.type&&2===n.type?this.as=this.as.nt(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.as=this.as.nt(t,{type:2,doc:e.doc}):Et():this.as=this.as.nt(t,e)},e.prototype.us=function(){var e=[];return this.as.ut((function(t,n){e.push(n)})),e},e}(),nt=function(){function e(e,t,n,r,i,a,o,s){this.query=e,this.docs=t,this.cs=n,this.docChanges=r,this._s=i,this.fromCache=a,this.ls=o,this.ds=s}return e.fs=function(t,n,r,i){var a=[];return n.forEach((function(e){a.push({type:0,doc:e})})),new e(t,n,et.os(n),a,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this._s.q()},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.ls===e.ls&&this._s.isEqual(e._s)&&this.query.isEqual(e.query)&&this.docs.isEqual(e.docs)&&this.cs.isEqual(e.cs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),rt=function(){function e(e,t,n,r,i){this.ts=e,this.Ts=t,this.Es=n,this.Is=r,this.ws=i}return e.Rs=function(t,n){var r=new Map;return r.set(t,it.As(t,n)),new e(_.MIN,r,Ze(),ze(),Xe())},e}(),it=function(){function e(e,t,n,r,i){this.resumeToken=e,this.ms=t,this.Ps=n,this.Vs=r,this.gs=i}return e.As=function(t,n){return new e(I.xt,n,Xe(),Xe(),Xe())},e}(),at=function(e,t,n,r){this.ps=e,this.removedTargetIds=t,this.key=n,this.ys=r},ot=function(e,t){this.targetId=e,this.bs=t},st=function(e,t,n,r){void 0===n&&(n=I.xt),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},lt=function(){function e(){this.vs=0,this.Ss=dt(),this.Ds=I.xt,this.Cs=!1,this.Fs=!0}return Object.defineProperty(e.prototype,"ms",{get:function(){return this.Cs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.Ds},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Ns",{get:function(){return 0!==this.vs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ks",{get:function(){return this.Fs},enumerable:!0,configurable:!0}),e.prototype.$s=function(e){e.Ot()>0&&(this.Fs=!0,this.Ds=e)},e.prototype.Ms=function(){var e=Xe(),t=Xe(),n=Xe();return this.Ss.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Et()}})),new it(this.Ds,this.Cs,e,t,n)},e.prototype.Ls=function(){this.Fs=!1,this.Ss=dt()},e.prototype.Os=function(e,t){this.Fs=!0,this.Ss=this.Ss.nt(e,t)},e.prototype.xs=function(e){this.Fs=!0,this.Ss=this.Ss.remove(e)},e.prototype.Bs=function(){this.vs+=1},e.prototype.qs=function(){this.vs-=1},e.prototype.Us=function(){this.Fs=!0,this.Cs=!0},e}(),ct=function(){function e(e){this.Qs=e,this.Ws=new Map,this.js=ze(),this.Ks=ut(),this.Gs=new $(Ct)}return e.prototype.zs=function(e){for(var t=0,n=e.ps;t<n.length;t++){var r=n[t];e.ys instanceof _e?this.Hs(r,e.ys):e.ys instanceof we&&this.Ys(r,e.key,e.ys)}for(var i=0,a=e.removedTargetIds;i<a.length;i++){var o=a[i];this.Ys(o,e.key,e.ys)}},e.prototype.Js=function(e){var t=this;this.Xs(e,(function(n){var r=t.Zs(n);switch(e.state){case 0:t.ti(n)&&r.$s(e.resumeToken);break;case 1:r.qs(),r.Ns||r.Ls(),r.$s(e.resumeToken);break;case 2:r.qs(),r.Ns||t.removeTarget(n);break;case 3:t.ti(n)&&(r.Us(),r.$s(e.resumeToken));break;case 4:t.ti(n)&&(t.ei(n),r.$s(e.resumeToken));break;default:Et()}}))},e.prototype.Xs=function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.Ws.forEach((function(e,r){n.ti(r)&&t(r)}))},e.prototype.si=function(e){var t=e.targetId,n=e.bs.count,r=this.ii(t);if(r){var i=r.target;if(i.Pe())if(0===n){var a=new S(i.path);this.Ys(t,a,new we(a,_.S()))}else Tt(1===n);else this.ni(t)!==n&&(this.ei(t),this.Gs=this.Gs.add(t))}},e.prototype.ri=function(e){var t=this,n=new Map;this.Ws.forEach((function(r,i){var a=t.ii(i);if(a){if(r.ms&&a.target.Pe()){var o=new S(a.target.path);null!==t.js.get(o)||t.hi(i,o)||t.Ys(i,o,new we(o,e))}r.ks&&(n.set(i,r.Ms()),r.Ls())}}));var r=Xe();this.Ks.forEach((function(e,n){var i=!0;n.Ft((function(e){var n=t.ii(e);return!n||2===n.Ze||(i=!1,!1)})),i&&(r=r.add(e))}));var i=new rt(e,n,this.Gs,this.js,r);return this.js=ze(),this.Ks=ut(),this.Gs=new $(Ct),i},e.prototype.Hs=function(e,t){if(this.ti(e)){var n=this.hi(e,t.key)?2:0;this.Zs(e).Os(t.key,n),this.js=this.js.nt(t.key,t),this.Ks=this.Ks.nt(t.key,this.oi(t.key).add(e))}},e.prototype.Ys=function(e,t,n){if(this.ti(e)){var r=this.Zs(e);this.hi(e,t)?r.Os(t,1):r.xs(t),this.Ks=this.Ks.nt(t,this.oi(t).delete(e)),n&&(this.js=this.js.nt(t,n))}},e.prototype.removeTarget=function(e){this.Ws.delete(e)},e.prototype.ni=function(e){var t=this.Zs(e).Ms();return this.Qs.ai(e).size+t.Ps.size-t.gs.size},e.prototype.Bs=function(e){this.Zs(e).Bs()},e.prototype.Zs=function(e){var t=this.Ws.get(e);return t||(t=new lt,this.Ws.set(e,t)),t},e.prototype.oi=function(e){var t=this.Ks.get(e);return t||(t=new $(Ct),this.Ks=this.Ks.nt(e,t)),t},e.prototype.ti=function(e){var t=null!==this.ii(e);return t||_t("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ii=function(e){var t=this.Ws.get(e);return t&&t.Ns?null:this.Qs.ui(e)},e.prototype.ei=function(e){var t=this;this.Ws.set(e,new lt),this.Qs.ai(e).forEach((function(n){t.Ys(e,n,null)}))},e.prototype.hi=function(e,t){return this.Qs.ai(e).has(t)},e}();function ut(){return new C(S.k)}function dt(){return new C(S.k)}var ht=function(){var e={};return e[Oe.ASCENDING.name]="ASCENDING",e[Oe.DESCENDING.name]="DESCENDING",e}(),pt=function(){var e={};return e[Se.LESS_THAN.name]="LESS_THAN",e[Se.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",e[Se.GREATER_THAN.name]="GREATER_THAN",e[Se.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",e[Se.EQUAL.name]="EQUAL",e[Se.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",e[Se.IN.name]="IN",e[Se.ARRAY_CONTAINS_ANY.name]="ARRAY_CONTAINS_ANY",e}(),ft=function(){function e(e,t){this.ci=e,this.options=t}return e.prototype._i=function(e){var t=void 0===e.code?h.UNKNOWN:He(e.code);return new p(t,e.message||"")},e.prototype.li=function(e){return this.options.di||A(e)?e:{value:e}},e.prototype.fi=function(e){var t;return A(t="object"==typeof e?e.value:e)?null:t},e.prototype.Wt=function(e){return{integerValue:""+e}},e.prototype.jt=function(e){if(this.options.di){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:N(e)?"-0":e}},e.prototype.Ti=function(e){return R(e)?this.Wt(e):this.jt(e)},e.prototype.F=function(e){return this.options.di?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}},e.prototype.v=function(e){var t=W(e);return new b(t.seconds,t.nanos)},e.prototype.Ei=function(e){return this.options.di?e.toBase64():e.toUint8Array()},e.prototype.Ii=function(e){return this.options.di?(Tt(void 0===e||"string"==typeof e),I.fromBase64String(e||"")):(Tt(void 0===e||e instanceof Uint8Array),I.fromUint8Array(e||new Uint8Array))},e.prototype.toVersion=function(e){return this.F(e.F())},e.prototype.fromVersion=function(e){return Tt(!!e),_.v(this.v(e))},e.prototype.wi=function(e,t){return this.Ri(t||this.ci).child("documents").child(e).K()},e.prototype.Ai=function(e){var t=k.G(e);return Tt(mt(t)),t},e.prototype.mi=function(e){return this.wi(e.path)},e.prototype.tt=function(e){var t=this.Ai(e);return Tt(t.get(1)===this.ci.projectId),Tt(!t.get(3)&&!this.ci.database||t.get(3)===this.ci.database),new S(this.Pi(t))},e.prototype.Vi=function(e){return this.wi(e)},e.prototype.gi=function(e){var t=this.Ai(e);return 4===t.length?k.H:this.Pi(t)},Object.defineProperty(e.prototype,"pi",{get:function(){return new k(["projects",this.ci.projectId,"databases",this.ci.database]).K()},enumerable:!0,configurable:!0}),e.prototype.Ri=function(e){return new k(["projects",e.projectId,"databases",e.database])},e.prototype.Pi=function(e){return Tt(e.length>4&&"documents"===e.get(4)),e.M(5)},e.prototype.yi=function(e,t){return{name:this.mi(e),fields:t.proto.mapValue.fields}},e.prototype.bi=function(e){return{name:this.mi(e.key),fields:e.Re().mapValue.fields,updateTime:this.F(e.version.F())}},e.prototype.vi=function(e,t){var n=this.tt(e.name),r=this.fromVersion(e.updateTime),i=new ge({mapValue:{fields:e.fields}});return new _e(n,r,i,{hasCommittedMutations:!!t})},e.prototype.Si=function(e){Tt(!!e.found),e.found.name,e.found.updateTime;var t=this.tt(e.found.name),n=this.fromVersion(e.found.updateTime),r=new ge({mapValue:{fields:e.found.fields}});return new _e(t,n,r,{})},e.prototype.Di=function(e){Tt(!!e.missing),Tt(!!e.readTime);var t=this.tt(e.missing),n=this.fromVersion(e.readTime);return new we(t,n)},e.prototype.Ci=function(e){return"found"in e?this.Si(e):"missing"in e?this.Di(e):Et()},e.prototype.Fi=function(e){var t;if("targetChange"in e){e.targetChange;var n=this.Ni(e.targetChange.targetChangeType||"NO_CHANGE"),r=e.targetChange.targetIds||[],i=this.Ii(e.targetChange.resumeToken),a=e.targetChange.cause,o=a&&this._i(a);t=new st(n,r,i,o||null)}else if("documentChange"in e){e.documentChange;var s=e.documentChange;s.document,s.document.name,s.document.updateTime;var l=this.tt(s.document.name),c=this.fromVersion(s.document.updateTime),u=new ge({mapValue:{fields:s.document.fields}}),d=new _e(l,c,u,{}),h=s.targetIds||[],p=s.removedTargetIds||[];t=new at(h,p,d.key,d)}else if("documentDelete"in e){e.documentDelete;var f=e.documentDelete;f.document;var m=this.tt(f.document),v=f.readTime?this.fromVersion(f.readTime):_.S(),g=new we(m,v),y=f.removedTargetIds||[];t=new at([],y,g.key,g)}else if("documentRemove"in e){e.documentRemove;var b=e.documentRemove;b.document;var w=this.tt(b.document),k=b.removedTargetIds||[];t=new at([],k,w,null)}else{if(!("filter"in e))return Et();e.filter;var E=e.filter;E.targetId;var T=E.count||0,S=new je(T),C=E.targetId;t=new ot(C,S)}return t},e.prototype.Ni=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Et()},e.prototype.ki=function(e){if(!("targetChange"in e))return _.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?_.MIN:t.readTime?this.fromVersion(t.readTime):_.MIN},e.prototype.$i=function(e){var t,n=this;if(e instanceof he)t={update:this.yi(e.key,e.value)};else if(e instanceof me)t={delete:this.mi(e.key)};else if(e instanceof pe)t={update:this.yi(e.key,e.data),updateMask:this.Mi(e.se)};else if(e instanceof fe)t={transform:{document:this.mi(e.key),fieldTransforms:e.fieldTransforms.map((function(e){return n.Li(e)}))}};else{if(!(e instanceof ve))return Et();t={verify:this.mi(e.key)}}return e.Zt.Ht||(t.currentDocument=this.Oi(e.Zt)),t},e.prototype.xi=function(e){var t=this,n=e.currentDocument?this.Bi(e.currentDocument):ue.NONE;if(e.update){e.update.name;var r=this.tt(e.update.name),i=new ge({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=this.qi(e.updateMask);return new pe(r,i,a,n)}return new he(r,i,n)}if(e.delete){var o=this.tt(e.delete);return new me(o,n)}if(e.transform){var s=this.tt(e.transform.document),l=e.transform.fieldTransforms.map((function(e){return t.Ui(e)}));return Tt(!0===n.exists),new fe(s,l)}if(e.verify){var c=this.tt(e.verify);return new ve(c,n)}return Et()},e.prototype.Oi=function(e){return void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:Et()},e.prototype.Bi=function(e){return void 0!==e.updateTime?ue.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?ue.exists(e.exists):ue.NONE},e.prototype.Qi=function(e,t){var n=e.updateTime?this.fromVersion(e.updateTime):this.fromVersion(t);n.isEqual(_.MIN)&&(n=this.fromVersion(t));var r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults),new ce(n,r)},e.prototype.Wi=function(e,t){var n=this;return e&&e.length>0?(Tt(void 0!==t),e.map((function(e){return n.Qi(e,t)}))):[]},e.prototype.Li=function(e){var t=e.transform;if(t instanceof ne)return{fieldPath:e.field.K(),setToServerValue:"REQUEST_TIME"};if(t instanceof re)return{fieldPath:e.field.K(),appendMissingElements:{values:t.elements}};if(t instanceof ie)return{fieldPath:e.field.K(),removeAllFromArray:{values:t.elements}};if(t instanceof ae)return{fieldPath:e.field.K(),increment:t.Qt};throw Et()},e.prototype.Ui=function(e){var t=null;if("setToServerValue"in e)Tt("REQUEST_TIME"===e.setToServerValue),t=ne.instance;else if("appendMissingElements"in e){var n=e.appendMissingElements.values||[];t=new re(n)}else if("removeAllFromArray"in e){var r=e.removeAllFromArray.values||[];t=new ie(r)}else"increment"in e?t=new ae(this,e.increment):Et();var i=T.Z(e.fieldPath);return new le(i,t)},e.prototype.ji=function(e){return{documents:[this.Vi(e.path)]}},e.prototype.Ki=function(e){Tt(1===e.documents.length);var t=e.documents[0];return Te.ve(this.gi(t)).xe()},e.prototype.Gi=function(e){var t={structuredQuery:{}},n=e.path;null!==e.collectionGroup?(t.parent=this.Vi(n),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(t.parent=this.Vi(n.L()),t.structuredQuery.from=[{collectionId:n.B()}]);var r=this.zi(e.filters);r&&(t.structuredQuery.where=r);var i=this.Hi(e.orderBy);i&&(t.structuredQuery.orderBy=i);var a=this.li(e.limit);return null!==a&&(t.structuredQuery.limit=a),e.startAt&&(t.structuredQuery.startAt=this.Yi(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.Yi(e.endAt)),t},e.prototype.Ji=function(e){var t=this.gi(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Tt(1===r);var a=n.from[0];a.allDescendants?i=a.collectionId:t=t.child(a.collectionId)}var o=[];n.where&&(o=this.Xi(n.where));var s=[];n.orderBy&&(s=this.Zi(n.orderBy));var l=null;n.limit&&(l=this.fi(n.limit));var c=null;n.startAt&&(c=this.tn(n.startAt));var u=null;return n.endAt&&(u=this.tn(n.endAt)),new Te(t,i,s,o,l,"F",c,u).xe()},e.prototype.en=function(e){var t=this.sn(e.Ze);return null==t?null:{"goog-listen-tags":t}},e.prototype.sn=function(e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Et()}},e.prototype.xe=function(e){var t,n=e.target;return(t=n.Pe()?{documents:this.ji(n)}:{query:this.Gi(n)}).targetId=e.targetId,e.resumeToken.Ot()>0&&(t.resumeToken=this.Ei(e.resumeToken)),t},e.prototype.zi=function(e){var t=this;if(0!==e.length){var n=e.map((function(e){return e instanceof Ce?t.in(e):Et()}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.Xi=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.nn(e)]:void 0!==e.fieldFilter?[this.rn(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t.Xi(e)})).reduce((function(e,t){return e.concat(t)})):Et():[]},e.prototype.Hi=function(e){var t=this;if(0!==e.length)return e.map((function(e){return t.hn(e)}))},e.prototype.Zi=function(e){var t=this;return e.map((function(e){return t.on(e)}))},e.prototype.Yi=function(e){return{before:e.before,values:e.position}},e.prototype.tn=function(e){var t=!!e.before,n=e.values||[];return new Ae(n,t)},e.prototype.an=function(e){return ht[e.name]},e.prototype.un=function(e){switch(e){case"ASCENDING":return Oe.ASCENDING;case"DESCENDING":return Oe.DESCENDING;default:return}},e.prototype.cn=function(e){return pt[e.name]},e.prototype._n=function(e){switch(e){case"EQUAL":return Se.EQUAL;case"GREATER_THAN":return Se.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return Se.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return Se.LESS_THAN;case"LESS_THAN_OR_EQUAL":return Se.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return Se.ARRAY_CONTAINS;case"IN":return Se.IN;case"ARRAY_CONTAINS_ANY":return Se.ARRAY_CONTAINS_ANY;case"OPERATOR_UNSPECIFIED":default:return Et()}},e.prototype.ln=function(e){return{fieldPath:e.K()}},e.prototype.dn=function(e){return T.Z(e.fieldPath)},e.prototype.hn=function(e){return{field:this.ln(e.field),direction:this.an(e.dir)}},e.prototype.on=function(e){return new Ne(this.dn(e.field),this.un(e.direction))},e.prototype.rn=function(e){return Ce.create(this.dn(e.fieldFilter.field),this._n(e.fieldFilter.op),e.fieldFilter.value)},e.prototype.in=function(e){if(e.op===Se.EQUAL){if(ee(e.value))return{unaryFilter:{field:this.ln(e.field),op:"IS_NAN"}};if(Z(e.value))return{unaryFilter:{field:this.ln(e.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.ln(e.field),op:this.cn(e.op),value:e.value}}},e.prototype.nn=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.dn(e.unaryFilter.field);return Ce.create(t,Se.EQUAL,{doubleValue:NaN});case"IS_NULL":var n=this.dn(e.unaryFilter.field);return Ce.create(n,Se.EQUAL,{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return Et()}},e.prototype.Mi=function(e){var t=[];return e.fields.forEach((function(e){return t.push(e.K())})),{fieldPaths:t}},e.prototype.qi=function(e){var t=(e.fieldPaths||[]).map((function(e){return T.Z(e)}));return se.Gt(t)},e}();function mt(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}var vt=function(){function e(){}return e.fn=function(t){e.platform&&Et(),e.platform=t},e.Lt=function(){return e.platform||Et(),e.platform},e}(),gt=new o.Logger("@firebase/firestore");function yt(){return gt.logLevel}function bt(e){gt.logLevel=e}function _t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(gt.logLevel<=o.LogLevel.DEBUG){var r=t.map(kt);gt.debug.apply(gt,i.__spreadArrays(["Firestore ("+u+"): "+e],r))}}function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(gt.logLevel<=o.LogLevel.ERROR){var r=t.map(kt);gt.error.apply(gt,i.__spreadArrays(["Firestore ("+u+"): "+e],r))}}function kt(e){if("string"==typeof e)return e;var t=vt.Lt();try{return t.Tn(e)}catch(t){return e}}function Et(e){void 0===e&&(e="Unexpected state");var t="FIRESTORE ("+u+") INTERNAL ASSERTION FAILED: "+e;throw wt(t),new Error(t)}function Tt(e,t){e||Et()}var St=function(){function e(){}return e.En=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t},e}();function Ct(e,t){return e<t?-1:e>t?1:0}function xt(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function Mt(e){return e+"\0"}var $t=function(e,t,n,r,i){this.ci=e,this.persistenceKey=t,this.host=n,this.ssl=r,this.forceLongPolling=i},Lt=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"In",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.D=function(e){return Ct(this.projectId,e.projectId)||Ct(this.database,e.database)},e}(),Pt=function(){function e(e){this.wn=e,this.Rn={}}return e.prototype.get=function(e){var t=this.wn(e),n=this.Rn[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var a=i[r],o=a[0],s=a[1];if(o.isEqual(e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.wn(e),r=this.Rn[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(e))return void(r[i]=[e,t]);r.push([e,t])}else this.Rn[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.wn(e),n=this.Rn[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(e))return 1===n.length?delete this.Rn[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){O(this.Rn,(function(t,n){for(var r=0,i=n;r<i.length;r++){var a=i[r],o=a[0],s=a[1];e(o,s)}}))},e.prototype.q=function(){return D(this.Rn)},e}(),Ot=function(){function e(e,t,n,r){this.batchId=e,this.An=t,this.baseMutations=n,this.mutations=r}return e.prototype.qt=function(e,t,n){for(var r=n.mn,i=0;i<this.mutations.length;i++){var a=this.mutations[i];if(a.key.isEqual(e)){var o=r[i];t=a.qt(t,o)}}return t},e.prototype.Bt=function(e,t){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(e)&&(t=i.Bt(t,t,this.An))}for(var a=t,o=0,s=this.mutations;o<s.length;o++){var l=s[o];l.key.isEqual(e)&&(t=l.Bt(t,a,this.An))}return t},e.prototype.Pn=function(e){var t=this,n=e;return this.mutations.forEach((function(r){var i=t.Bt(r.key,e.get(r.key));i&&(n=n.nt(r.key,i))})),n},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Xe())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&xt(this.mutations,e.mutations,(function(e,t){return e.isEqual(t)}))&&xt(this.baseMutations,e.baseMutations,(function(e,t){return e.isEqual(t)}))},e}(),Dt=function(){function e(e,t,n,r,i){this.batch=e,this.Vn=t,this.mn=n,this.streamToken=r,this.gn=i}return e.from=function(t,n,r,i){Tt(t.mutations.length===r.length);for(var a=Ke(),o=t.mutations,s=0;s<o.length;s++)a=a.nt(o[s].key,r[s].version);return new e(t,n,r,i,a)},e}(),It=function(){function e(){this.pn=new $(At.Ie),this.yn=new $(At.bn)}return e.prototype.q=function(){return this.pn.q()},e.prototype.vn=function(e,t){var n=new At(e,t);this.pn=this.pn.add(n),this.yn=this.yn.add(n)},e.prototype.Sn=function(e,t){var n=this;e.forEach((function(e){return n.vn(e,t)}))},e.prototype.Dn=function(e,t){this.Cn(new At(e,t))},e.prototype.Fn=function(e,t){var n=this;e.forEach((function(e){return n.Dn(e,t)}))},e.prototype.Nn=function(e){var t=this,n=S.EMPTY,r=new At(n,e),i=new At(n,e+1),a=[];return this.yn.Ct([r,i],(function(e){t.Cn(e),a.push(e.key)})),a},e.prototype.kn=function(){var e=this;this.pn.forEach((function(t){return e.Cn(t)}))},e.prototype.Cn=function(e){this.pn=this.pn.delete(e),this.yn=this.yn.delete(e)},e.prototype.$n=function(e){var t=S.EMPTY,n=new At(t,e),r=new At(t,e+1),i=Xe();return this.yn.Ct([n,r],(function(e){i=i.add(e.key)})),i},e.prototype.Mn=function(e){var t=new At(e,0),n=this.pn.Nt(t);return null!==n&&e.isEqual(n.key)},e}(),At=function(){function e(e,t){this.key=e,this.Ln=t}return e.Ie=function(e,t){return S.k(e.key,t.key)||Ct(e.Ln,t.Ln)},e.bn=function(e,t){return Ct(e.Ln,t.Ln)||S.k(e.key,t.key)},e}(),Nt=function(){function e(e){var t=this;this.On=null,this.xn=null,this.result=void 0,this.error=void 0,this.Bn=!1,this.qn=!1,e((function(e){t.Bn=!0,t.result=e,t.On&&t.On(e)}),(function(e){t.Bn=!0,t.error=e,t.xn&&t.xn(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.qn&&Et(),this.qn=!0,this.Bn?this.error?this.Un(n,this.error):this.Qn(t,this.result):new e((function(e,i){r.On=function(n){r.Qn(t,n).next(e,i)},r.xn=function(t){r.Un(n,t).next(e,i)}}))},e.prototype.Wn=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.jn=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.Qn=function(t,n){return t?this.jn((function(){return t(n)})):e.resolve(n)},e.prototype.Un=function(t,n){return t?this.jn((function(){return t(n)})):e.reject(n)},e.resolve=function(t){return new e((function(e,n){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.Kn=function(t){return new e((function(e,n){var r=0,i=0,a=!1;t.forEach((function(t){++r,t.next((function(){++i,a&&i===r&&e()}),(function(e){return n(e)}))})),a=!0,i===r&&e()}))},e.Gn=function(t){for(var n=e.resolve(!1),r=function(t){n=n.next((function(n){return n?e.resolve(n):t()}))},i=0,a=t;i<a.length;i++)r(a[i]);return n},e.forEach=function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.Kn(r)},e}(),Rt=function(){function e(){this.zn=new Pt((function(e){return e.toString()})),this.Hn=!1}return Object.defineProperty(e.prototype,"readTime",{get:function(){return this.Yn},set:function(e){this.Yn=e},enumerable:!0,configurable:!0}),e.prototype.Jn=function(e,t){this.Xn(),this.readTime=t,this.zn.set(e.key,e)},e.prototype.Zn=function(e,t){this.Xn(),t&&(this.readTime=t),this.zn.set(e,null)},e.prototype.tr=function(e,t){this.Xn();var n=this.zn.get(t);return void 0!==n?Nt.resolve(n):this.er(e,t)},e.prototype.getEntries=function(e,t){return this.sr(e,t)},e.prototype.apply=function(e){return this.Xn(),this.Hn=!0,this.ir(e)},e.prototype.Xn=function(){},e}(),Yt="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Bt=function(){function e(){this.nr=[]}return e.prototype.rr=function(e){this.nr.push(e)},e.prototype.hr=function(){this.nr.forEach((function(e){return e()}))},e}(),jt=function(){function e(e,t,n){this.or=e,this.ar=t,this.ur=n}return e.prototype.cr=function(e,t){var n=this;return this.ar._r(e,t).next((function(r){return n.lr(e,t,r)}))},e.prototype.lr=function(e,t,n){return this.or.tr(e,t).next((function(e){for(var r=0,i=n;r<i.length;r++)e=i[r].Bt(t,e);return e}))},e.prototype.dr=function(e,t,n){var r=Ve();return t.forEach((function(e,t){for(var i=0,a=n;i<a.length;i++)t=a[i].Bt(e,t);r=r.nt(e,t)})),r},e.prototype.Tr=function(e,t){var n=this;return this.or.getEntries(e,t).next((function(t){return n.Er(e,t)}))},e.prototype.Er=function(e,t){var n=this;return this.ar.Ir(e,t).next((function(r){var i=n.dr(e,t,r),a=ze();return i.forEach((function(e,t){t||(t=new we(e,_.S())),a=a.nt(e,t)})),a}))},e.prototype.wr=function(e,t,n){return t.Pe()?this.Rr(e,t.path):t.He()?this.Ar(e,t,n):this.mr(e,t,n)},e.prototype.Rr=function(e,t){return this.cr(e,new S(t)).next((function(e){var t=We();return e instanceof _e&&(t=t.nt(e.key,e)),t}))},e.prototype.Ar=function(e,t,n){var r=this,i=t.collectionGroup,a=We();return this.ur.Pr(e,i).next((function(o){return Nt.forEach(o,(function(o){var s=t.Le(o.child(i));return r.mr(e,s,n).next((function(e){e.forEach((function(e,t){a=a.nt(e,t)}))}))})).next((function(){return a}))}))},e.prototype.mr=function(e,t,n){var r,i,a=this;return this.or.wr(e,t,n).next((function(n){return r=n,a.ar.Vr(e,t)})).next((function(t){return i=t,a.gr(e,i,r).next((function(e){r=e;for(var t=0,n=i;t<n.length;t++)for(var a=n[t],o=0,s=a.mutations;o<s.length;o++){var l=s[o],c=l.key,u=r.get(c),d=l.Bt(u,u,a.An);r=d instanceof _e?r.nt(c,d):r.remove(c)}}))})).next((function(){return r.forEach((function(e,n){t.matches(n)||(r=r.remove(e))})),r}))},e.prototype.gr=function(e,t,n){for(var r=Xe(),i=0,a=t;i<a.length;i++)for(var o=0,s=a[i].mutations;o<s.length;o++){var l=s[o];l instanceof pe&&null===n.get(l.key)&&(r=r.add(l.key))}var c=n;return this.or.getEntries(e,r).next((function(e){return e.forEach((function(e,t){null!==t&&t instanceof _e&&(c=c.nt(e,t))})),c}))},e}(),Ft=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.pr=n,this.yr=r}return e.br=function(t,n){for(var r=Xe(),i=Xe(),a=0,o=n.docChanges;a<o.length;a++){var s=o[a];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new e(t,n.fromCache,r,i)},e}(),Ht=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.vr=function(e){return n.Sr(e)},this.Dr=function(e){return t.Cr(e)})}return e.prototype.Sr=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.Dr&&this.Dr(e),e},e}();Ht.Fr=-1;var Ut=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))},zt=function(){function e(e,t,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Nr=e,this.kr=t,this.$r=n,this.Mr=r,this.Lr=i,this.Or=0,this.xr=null,this.Br=Date.now(),this.reset()}return e.prototype.reset=function(){this.Or=0},e.prototype.qr=function(){this.Or=this.Lr},e.prototype.Ur=function(e){var t=this;this.cancel();var n=Math.floor(this.Or+this.Qr()),r=Math.max(0,Date.now()-this.Br),i=Math.max(0,n-r);i>0&&_t("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Or+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.xr=this.Nr.Wr(this.kr,i,(function(){return t.Br=Date.now(),e()})),this.Or*=this.Mr,this.Or<this.$r&&(this.Or=this.$r),this.Or>this.Lr&&(this.Or=this.Lr)},e.prototype.cancel=function(){null!==this.xr&&(this.xr.cancel(),this.xr=null)},e.prototype.Qr=function(){return(Math.random()-.5)*this.Or},e}(),Vt=function(){function e(e,t,n,r,i){this.jr=e,this.kr=t,this.Kr=n,this.op=r,this.Gr=i,this.zr=new Ut,this.then=this.zr.promise.then.bind(this.zr.promise),this.catch=this.zr.promise.catch.bind(this.zr.promise),this.zr.promise.catch((function(e){}))}return e.Hr=function(t,n,r,i,a){var o=new e(t,n,Date.now()+r,i,a);return o.start(r),o},e.prototype.start=function(e){var t=this;this.Yr=setTimeout((function(){return t.Jr()}),e)},e.prototype.Xr=function(){return this.Jr()},e.prototype.cancel=function(e){null!==this.Yr&&(this.clearTimeout(),this.zr.reject(new p(h.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.Jr=function(){var e=this;this.jr.Zr((function(){return null!==e.Yr?(e.clearTimeout(),e.op().then((function(t){return e.zr.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.Yr&&(this.Gr(this),clearTimeout(this.Yr),this.Yr=null)},e}(),qt=function(){function e(){var e=this;this.th=Promise.resolve(),this.eh=Promise.resolve(),this.sh=!1,this.ih=[],this.nh=null,this.rh=!1,this.hh=[],this.oh=new zt(this,"async_queue_retry"),this.ah=function(){e.uh("async_queue_retry")};var t=vt.Lt().window;t&&t.addEventListener("visibilitychange",this.ah)}return Object.defineProperty(e.prototype,"_h",{get:function(){return this.sh},enumerable:!0,configurable:!0}),e.prototype.Zr=function(e){this.enqueue(e)},e.prototype.lh=function(e){this.dh(),this.fh(e)},e.prototype.Th=function(e){return this.dh(),this.fh(e)},e.prototype.Eh=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:return this.dh(),this.sh?[3,2]:(this.sh=!0,(t=vt.Lt().window)&&t.removeEventListener("visibilitychange",this.ah),[4,this.Th(e)]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.enqueue=function(e){return this.dh(),this.sh?new Promise((function(e){})):this.fh(e)},e.prototype.Ih=function(e){var t=this;this.dh(),this.sh||(this.eh=this.eh.then((function(){var n=new Ut,r=function(){return i.__awaiter(t,void 0,void 0,(function(){var t;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e()];case 1:return i.sent(),n.resolve(),this.oh.reset(),[3,3];case 2:if("IndexedDbTransactionError"!==(t=i.sent()).name)throw n.resolve(),t;return _t("AsyncQueue","Operation failed with retryable error: "+t),this.oh.Ur(r),[3,3];case 3:return[2]}}))}))};return t.Zr(r),n.promise})))},e.prototype.fh=function(e){var t=this,n=this.th.then((function(){return t.rh=!0,e().catch((function(e){throw t.nh=e,t.rh=!1,wt("INTERNAL UNHANDLED ERROR: ",e.stack||e.message||""),e})).then((function(e){return t.rh=!1,e}))}));return this.th=n,n},e.prototype.Wr=function(e,t,n){var r=this;this.dh(),this.hh.indexOf(e)>-1&&(t=0);var i=Vt.Hr(this,e,t,n,(function(e){return r.wh(e)}));return this.ih.push(i),i},e.prototype.dh=function(){this.nh&&Et()},e.prototype.Rh=function(){},e.prototype.Ah=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return[4,e=this.th];case 1:t.sent(),t.label=2;case 2:if(e!==this.th)return[3,0];t.label=3;case 3:return[2]}}))}))},e.prototype.mh=function(e){for(var t=0,n=this.ih;t<n.length;t++)if(n[t].kr===e)return!0;return!1},e.prototype.uh=function(e){var t=this;return this.Ah().then((function(){t.ih.sort((function(e,t){return e.Kr-t.Kr}));for(var n=0,r=t.ih;n<r.length;n++){var i=r[n];if(i.Xr(),"all"!==e&&i.kr===e)break}return t.Ah()}))},e.prototype.Ph=function(e){this.hh.push(e)},e.prototype.wh=function(e){var t=this.ih.indexOf(e);this.ih.splice(t,1)},e}();function Wt(e,t){var n=e[0],r=e[1],i=t[0],a=t[1],o=Ct(n,i);return 0===o?Ct(r,a):o}var Gt=function(){function e(e){this.Vh=e,this.buffer=new $(Wt),this.gh=0}return e.prototype.ph=function(){return++this.gh},e.prototype.yh=function(e){var t=[e,this.ph()];if(this.buffer.size<this.Vh)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();Wt(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),e}(),Kt={bh:!1,vh:0,Sh:0,Dh:0},Jt=function(){function e(e,t,n){this.Ch=e,this.Fh=t,this.Nh=n}return e.kh=function(t){return new e(t,e.$h,e.Mh)},e}();Jt.Lh=-1,Jt.Oh=1048576,Jt.xh=41943040,Jt.$h=10,Jt.Mh=1e3,Jt.Bh=new Jt(Jt.xh,Jt.$h,Jt.Mh),Jt.DISABLED=new Jt(Jt.Lh,0,0);var Xt=function(){function e(e,t){this.qh=e,this.jr=t,this.Uh=!1,this.Qh=null}return e.prototype.start=function(e){this.qh.Wh.Ch!==Jt.Lh&&this.jh(e)},e.prototype.stop=function(){this.Qh&&(this.Qh.cancel(),this.Qh=null)},Object.defineProperty(e.prototype,"Kh",{get:function(){return null!==this.Qh},enumerable:!0,configurable:!0}),e.prototype.jh=function(e){var t=this,n=this.Uh?3e5:6e4;_t("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.Qh=this.jr.Wr("lru_garbage_collection",n,(function(){return t.Qh=null,t.Uh=!0,e.Gh(t.qh).then((function(){return t.jh(e)})).catch(sr)}))},e}(),Qt=function(){function e(e,t){this.zh=e,this.Wh=t}return e.prototype.Hh=function(e,t){return this.zh.Yh(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.Jh=function(e,t){var n=this;if(0===t)return Nt.resolve(Ht.Fr);var r=new Gt(t);return this.zh.Xs(e,(function(e){return r.yh(e.sequenceNumber)})).next((function(){return n.zh.Xh(e,(function(e){return r.yh(e)}))})).next((function(){return r.maxValue}))},e.prototype.Zh=function(e,t,n){return this.zh.Zh(e,t,n)},e.prototype.to=function(e,t){return this.zh.to(e,t)},e.prototype.eo=function(e,t){var n=this;return this.Wh.Ch===Jt.Lh?(_t("LruGarbageCollector","Garbage collection skipped; disabled"),Nt.resolve(Kt)):this.so(e).next((function(r){return r<n.Wh.Ch?(_t("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.Wh.Ch),Kt):n.io(e,t)}))},e.prototype.so=function(e){return this.zh.so(e)},e.prototype.io=function(e,t){var n,r,i,a,s,l,c,u=this,d=Date.now();return this.Hh(e,this.Wh.Fh).next((function(t){return t>u.Wh.Nh?(_t("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.Wh.Nh+" from "+t),r=u.Wh.Nh):r=t,a=Date.now(),u.Jh(e,r)})).next((function(r){return n=r,s=Date.now(),u.Zh(e,n,t)})).next((function(t){return i=t,l=Date.now(),u.to(e,n)})).next((function(e){return c=Date.now(),yt()<=o.LogLevel.DEBUG&&_t("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-d)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+i+" targets in "+(l-s)+"ms\n\tRemoved "+e+" documents in "+(c-l)+"ms\nTotal Duration: "+(c-d)+"ms"),Nt.resolve({bh:!0,vh:r,Sh:i,Dh:e})}))},e}();function Zt(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=tn(t)),t=en(e.get(n),t);return tn(t)}function en(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var a=e.charAt(i);switch(a){case"\0":n+="";break;case"":n+="";break;default:n+=a}}return n}function tn(e){return e+""}function nn(e){var t=e.length;if(Tt(t>=2),2===t)return Tt(""===e.charAt(0)&&""===e.charAt(1)),k.H;for(var n=t-2,r=[],i="",a=0;a<t;){var o=e.indexOf("",a);switch((o<0||o>n)&&Et(),e.charAt(o+1)){case"":var s=e.substring(a,o),l=void 0;0===i.length?l=s:(l=i+=s,i=""),r.push(l);break;case"":i+=e.substring(a,o),i+="\0";break;case"":i+=e.substring(a,o+1);break;default:Et()}a=o+2}return new k(r)}var rn=function(){function e(t){this.db=t,12.2===e.no(s.getUA())&&wt("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.ro=function(t,n,r){return _t("SimpleDb","Opening database:",t),new Nt((function(i,a){var o=window.indexedDB.open(t,n);o.onsuccess=function(t){var n=t.target.result;i(new e(n))},o.onblocked=function(){a(new p(h.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},o.onerror=function(e){var t=e.target.error;"VersionError"===t.name?a(new p(h.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):a(t)},o.onupgradeneeded=function(e){_t("SimpleDb",'Database "'+t+'" requires upgrade from version:',e.oldVersion);var n=e.target.result;r.createOrUpgrade(n,o.transaction,e.oldVersion,Pn).next((function(){_t("SimpleDb","Database upgrade to version "+Pn+" complete")}))}})).Wn()},e.delete=function(e){return _t("SimpleDb","Removing database:",e),cn(window.indexedDB.deleteDatabase(e)).Wn()},e.ho=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(e.oo())return!0;if(void 0===window.navigator)return!1;var t=s.getUA(),n=e.no(t),r=0<n&&n<10,i=e.ao(t),a=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||a)},e.oo=function(){var e;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(e=__PRIVATE_process.__PRIVATE_env)||void 0===e?void 0:e.uo)},e.co=function(e,t){return e.store(t)},e.no=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.ao=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype._o=function(e){this.db.onversionchange=function(t){return e(t)}},e.prototype.runTransaction=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,a,o,s,l;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===e,a=0,o=function(){var e,o,l,c,u;return i.__generator(this,(function(i){switch(i.label){case 0:++a,e=sn.open(s.db,r?"readonly":"readwrite",t),i.label=1;case 1:return i.trys.push([1,3,,4]),o=n(e).catch((function(t){return e.abort(t),Nt.reject(t)})).Wn(),l={},o.catch((function(){})),[4,e.lo];case 2:return[2,(l.value=(i.sent(),o),l)];case 3:return c=i.sent(),u="FirebaseError"!==c.name&&a<3,_t("SimpleDb","Transaction failed with error: %s. Retrying: %s.",c.message,u),u?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}))},s=this,c.label=1;case 1:return[5,o()];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db.close()},e}(),an=function(){function e(e){this.do=e,this.fo=!1,this.To=null}return Object.defineProperty(e.prototype,"Bn",{get:function(){return this.fo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Eo",{get:function(){return this.To},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.do=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.fo=!0},e.prototype.Io=function(e){this.To=e},e.prototype.delete=function(){return cn(this.do.delete())},e}(),on=function(e){function t(t){var n=this;return(n=e.call(this,h.UNAVAILABLE,"IndexedDB transaction failed: "+t)||this).name="IndexedDbTransactionError",n}return i.__extends(t,e),t}(p),sn=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this.wo=new Ut,this.transaction.oncomplete=function(){t.wo.resolve()},this.transaction.onabort=function(){e.error?t.wo.reject(new on(e.error)):t.wo.resolve()},this.transaction.onerror=function(e){var n=dn(e.target.error);t.wo.reject(new on(n))}}return e.open=function(t,n,r){return new e(t.transaction(r,n))},Object.defineProperty(e.prototype,"lo",{get:function(){return this.wo.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this.wo.reject(e),this.aborted||(_t("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return new ln(t)},e}(),ln=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(_t("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(_t("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),cn(n)},e.prototype.add=function(e){return _t("SimpleDb","ADD",this.store.name,e,e),cn(this.store.add(e))},e.prototype.get=function(e){var t=this;return cn(this.store.get(e)).next((function(n){return void 0===n&&(n=null),_t("SimpleDb","GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return _t("SimpleDb","DELETE",this.store.name,e),cn(this.store.delete(e))},e.prototype.count=function(){return _t("SimpleDb","COUNT",this.store.name),cn(this.store.count())},e.prototype.Ro=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.Ao(n,(function(e,t){r.push(t)})).next((function(){return r}))},e.prototype.mo=function(e,t){_t("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.Po=!1;var r=this.cursor(n);return this.Ao(r,(function(e,t,n){return n.delete()}))},e.prototype.Vo=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.Ao(r,t)},e.prototype.po=function(e){var t=this.cursor({});return new Nt((function(n,r){t.onerror=function(e){var t=dn(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next((function(e){e?r.continue():n()})):n()}}))},e.prototype.Ao=function(e,t){var n=[];return new Nt((function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var a=new an(i),o=t(i.primaryKey,i.value,a);if(o instanceof Nt){var s=o.catch((function(e){return a.done(),Nt.reject(e)}));n.push(s)}a.Bn?r():null===a.Eo?i.continue():i.continue(a.Eo)}else r()}})).next((function(){return Nt.Kn(n)}))},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.Po?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function cn(e){return new Nt((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=dn(e.target.error);n(t)}}))}var un=!1;function dn(e){var t=rn.no(s.getUA());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new p("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return un||(un=!0,setTimeout((function(){throw r}),0)),r}}return e}var hn=function(){function e(e,t,n,r){this.userId=e,this.serializer=t,this.ur=n,this.yo=r,this.bo={}}return e.vo=function(t,n,r,i){return Tt(""!==t.uid),new e(t.t()?t.uid:"",n,r,i)},e.prototype.So=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return mn(e).Vo({index:Nn.userMutationsIndex,range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))},e.prototype.Do=function(e,t,n){return this.Co(e).next((function(t){return t.lastStreamToken=n.toBase64(),gn(e).put(t)}))},e.prototype.Fo=function(e){return this.Co(e).next((function(e){return I.fromBase64String(e.lastStreamToken)}))},e.prototype.No=function(e,t){return this.Co(e).next((function(n){return n.lastStreamToken=t.toBase64(),gn(e).put(n)}))},e.prototype.ko=function(e,t,n,r){var i=this,a=vn(e),o=mn(e);return o.add({}).next((function(s){Tt("number"==typeof s);for(var l=new Ot(s,t,n,r),c=i.serializer.$o(i.userId,l),u=[],d=new $((function(e,t){return Ct(e.K(),t.K())})),h=0,p=r;h<p.length;h++){var f=p[h],m=Rn.key(i.userId,f.key.path,s);d=d.add(f.key.path.L()),u.push(o.put(c)),u.push(a.put(m,Rn.PLACEHOLDER))}return d.forEach((function(t){u.push(i.ur.Mo(e,t))})),e.rr((function(){i.bo[s]=l.keys()})),Nt.Kn(u).next((function(){return l}))}))},e.prototype.Lo=function(e,t){var n=this;return mn(e).get(t).next((function(e){return e?(Tt(e.userId===n.userId),n.serializer.Oo(e)):null}))},e.prototype.xo=function(e,t){var n=this;return this.bo[t]?Nt.resolve(this.bo[t]):this.Lo(e,t).next((function(e){if(e){var r=e.keys();return n.bo[t]=r,r}return null}))},e.prototype.Bo=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),a=null;return mn(e).Vo({index:Nn.userMutationsIndex,range:i},(function(e,t,i){t.userId===n.userId&&(Tt(t.batchId>=r),a=n.serializer.Oo(t)),i.done()})).next((function(){return a}))},e.prototype.qo=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return mn(e).Vo({index:Nn.userMutationsIndex,range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))},e.prototype.Uo=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return mn(e).Ro(Nn.userMutationsIndex,n).next((function(e){return e.map((function(e){return t.serializer.Oo(e)}))}))},e.prototype._r=function(e,t){var n=this,r=Rn.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),a=[];return vn(e).Vo({range:i},(function(r,i,o){var s=r[0],l=r[1],c=r[2],u=nn(l);if(s===n.userId&&t.path.isEqual(u))return mn(e).get(c).next((function(e){if(!e)throw Et();Tt(e.userId===n.userId),a.push(n.serializer.Oo(e))}));o.done()})).next((function(){return a}))},e.prototype.Ir=function(e,t){var n=this,r=new $(Ct),i=[];return t.forEach((function(t){var a=Rn.prefixForPath(n.userId,t.path),o=IDBKeyRange.lowerBound(a),s=vn(e).Vo({range:o},(function(e,i,a){var o=e[0],s=e[1],l=e[2],c=nn(s);o===n.userId&&t.path.isEqual(c)?r=r.add(l):a.done()}));i.push(s)})),Nt.Kn(i).next((function(){return n.Qo(e,r)}))},e.prototype.Vr=function(e,t){var n=this,r=t.path,i=r.length+1,a=Rn.prefixForPath(this.userId,r),o=IDBKeyRange.lowerBound(a),s=new $(Ct);return vn(e).Vo({range:o},(function(e,t,a){var o=e[0],l=e[1],c=e[2],u=nn(l);o===n.userId&&r.U(u)?u.length===i&&(s=s.add(c)):a.done()})).next((function(){return n.Qo(e,s)}))},e.prototype.Qo=function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(mn(e).get(t).next((function(e){if(null===e)throw Et();Tt(e.userId===n.userId),r.push(n.serializer.Oo(e))})))})),Nt.Kn(i).next((function(){return r}))},e.prototype.Wo=function(e,t){var n=this;return fn(e.jo,this.userId,t).next((function(r){return e.rr((function(){n.Ko(t.batchId)})),Nt.forEach(r,(function(t){return n.yo.Go(e,t)}))}))},e.prototype.Ko=function(e){delete this.bo[e]},e.prototype.zo=function(e){var t=this;return this.So(e).next((function(n){if(!n)return Nt.resolve();var r=IDBKeyRange.lowerBound(Rn.prefixForUser(t.userId)),i=[];return vn(e).Vo({range:r},(function(e,n,r){if(e[0]===t.userId){var a=nn(e[1]);i.push(a)}else r.done()})).next((function(){Tt(0===i.length)}))}))},e.prototype.Mn=function(e,t){return pn(e,this.userId,t)},e.prototype.Co=function(e){var t=this;return gn(e).get(this.userId).next((function(e){return e||new An(t.userId,-1,"")}))},e}();function pn(e,t,n){var r=Rn.prefixForPath(t,n.path),i=r[1],a=IDBKeyRange.lowerBound(r),o=!1;return vn(e).Vo({range:a,Po:!0},(function(e,n,r){var a=e[0],s=e[1];e[2],a===t&&s===i&&(o=!0),r.done()})).next((function(){return o}))}function fn(e,t,n){var r=e.store(Nn.store),i=e.store(Rn.store),a=[],o=IDBKeyRange.only(n.batchId),s=0,l=r.Vo({range:o},(function(e,t,n){return s++,n.delete()}));a.push(l.next((function(){Tt(1===s)})));for(var c=[],u=0,d=n.mutations;u<d.length;u++){var h=d[u],p=Rn.key(t,h.key.path,n.batchId);a.push(i.delete(p)),c.push(h.key)}return Nt.Kn(a).next((function(){return c}))}function mn(e){return er.co(e,Nn.store)}function vn(e){return er.co(e,Rn.store)}function gn(e){return er.co(e,An.store)}var yn=function(){function e(e){this.Ho=e}return e.prototype.next=function(){return this.Ho+=2,this.Ho},e.Yo=function(){return new e(0)},e.Jo=function(){return new e(-1)},e}(),bn=function(){function e(e,t){this.yo=e,this.serializer=t}return e.prototype.Xo=function(e){var t=this;return this.Zo(e).next((function(n){var r=new yn(n.highestTargetId);return n.highestTargetId=r.next(),t.ta(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.ea=function(e){return this.Zo(e).next((function(e){return _.v(new b(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.sa=function(e){return kn(e.jo)},e.prototype.ia=function(e,t,n){var r=this;return this.Zo(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.F()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.ta(e,i)}))},e.prototype.na=function(e,t){var n=this;return this.ra(e,t).next((function(){return n.Zo(e).next((function(r){return r.targetCount+=1,n.ha(t,r),n.ta(e,r)}))}))},e.prototype.oa=function(e,t){return this.ra(e,t)},e.prototype.aa=function(e,t){var n=this;return this.ua(e,t.targetId).next((function(){return _n(e).delete(t.targetId)})).next((function(){return n.Zo(e)})).next((function(t){return Tt(t.targetCount>0),t.targetCount-=1,n.ta(e,t)}))},e.prototype.Zh=function(e,t,n){var r=this,i=0,a=[];return _n(e).Vo((function(o,s){var l=r.serializer.ca(s);l.sequenceNumber<=t&&null===n.get(l.targetId)&&(i++,a.push(r.aa(e,l)))})).next((function(){return Nt.Kn(a)})).next((function(){return i}))},e.prototype.Xs=function(e,t){var n=this;return _n(e).Vo((function(e,r){var i=n.serializer.ca(r);t(i)}))},e.prototype.Zo=function(e){return wn(e.jo)},e.prototype.ta=function(e,t){return(n=e,er.co(n,zn.store)).put(zn.key,t);var n},e.prototype.ra=function(e,t){return _n(e).put(this.serializer._a(t))},e.prototype.ha=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.la=function(e){return this.Zo(e).next((function(e){return e.targetCount}))},e.prototype.da=function(e,t){var n=this,r=t.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),a=null;return _n(e).Vo({range:i,index:Hn.queryTargetsIndexName},(function(e,r,i){var o=n.serializer.ca(r);t.isEqual(o.target)&&(a=o,i.done())})).next((function(){return a}))},e.prototype.fa=function(e,t,n){var r=this,i=[],a=En(e);return t.forEach((function(t){var o=Zt(t.path);i.push(a.put(new Un(n,o))),i.push(r.yo.vn(e,t))})),Nt.Kn(i)},e.prototype.Ta=function(e,t,n){var r=this,i=En(e);return Nt.forEach(t,(function(t){var a=Zt(t.path);return Nt.Kn([i.delete([n,a]),r.yo.Dn(e,t)])}))},e.prototype.ua=function(e,t){var n=En(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.Ea=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=En(e),i=Xe();return r.Vo({range:n,Po:!0},(function(e,t,n){var r=nn(e[1]),a=new S(r);i=i.add(a)})).next((function(){return i}))},e.prototype.Mn=function(e,t){var n=Zt(t.path),r=IDBKeyRange.bound([n],[Mt(n)],!1,!0),i=0;return En(e).Vo({index:Un.documentTargetsIndex,Po:!0,range:r},(function(e,t,n){var r=e[0];e[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},e.prototype.ui=function(e,t){var n=this;return _n(e).get(t).next((function(e){return e?n.serializer.ca(e):null}))},e}();function _n(e){return er.co(e,Hn.store)}function wn(e){return rn.co(e,zn.store).get(zn.key).next((function(e){return Tt(null!==e),e}))}function kn(e){return wn(e).next((function(e){return e.highestListenSequenceNumber}))}function En(e){return er.co(e,Un.store)}var Tn=function(){function e(e,t){this.serializer=e,this.ur=t}return e.prototype.Jn=function(e,t,n){return Cn(e).put(xn(t),n)},e.prototype.Zn=function(e,t){var n=Cn(e),r=xn(t);return n.delete(r)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next((function(r){return r.byteSize+=t,n.Ia(e,r)}))},e.prototype.tr=function(e,t){var n=this;return Cn(e).get(xn(t)).next((function(e){return n.wa(e)}))},e.prototype.Ra=function(e,t){var n=this;return Cn(e).get(xn(t)).next((function(e){var t=n.wa(e);return t?{Aa:t,size:Mn(e)}:null}))},e.prototype.getEntries=function(e,t){var n=this,r=Ve();return this.ma(e,t,(function(e,t){var i=n.wa(t);r=r.nt(e,i)})).next((function(){return r}))},e.prototype.Pa=function(e,t){var n=this,r=Ve(),i=new C(S.k);return this.ma(e,t,(function(e,t){var a=n.wa(t);a?(r=r.nt(e,a),i=i.nt(e,Mn(t))):(r=r.nt(e,null),i=i.nt(e,0))})).next((function(){return{Va:r,ga:i}}))},e.prototype.ma=function(e,t,n){if(t.q())return Nt.resolve();var r=IDBKeyRange.bound(t.first().path.j(),t.last().path.j()),i=t._t(),a=i.It();return Cn(e).Vo({range:r},(function(e,t,r){for(var o=S.it(e);a&&S.k(a,o)<0;)n(a,null),a=i.It();a&&a.isEqual(o)&&(n(a,t),a=i.wt()?i.It():null),a?r.Io(a.path.j()):r.done()})).next((function(){for(;a;)n(a,null),a=i.wt()?i.It():null}))},e.prototype.wr=function(e,t,n){var r=this,i=We(),a=t.path.length+1,o={};if(n.isEqual(_.MIN)){var s=t.path.j();o.range=IDBKeyRange.lowerBound(s)}else{var l=t.path.j(),c=this.serializer.pa(n);o.range=IDBKeyRange.lowerBound([l,c],!0),o.index=jn.collectionReadTimeIndex}return Cn(e).Vo(o,(function(e,n,o){if(e.length===a){var s=r.serializer.ya(n);t.path.U(s.key.path)?s instanceof _e&&t.matches(s)&&(i=i.nt(s.key,s)):o.done()}})).next((function(){return i}))},e.prototype.ba=function(e,t){var n=this,r=ze(),i=this.serializer.pa(t),a=Cn(e),o=IDBKeyRange.lowerBound(i,!0);return a.Vo({index:jn.readTimeIndex,range:o},(function(e,t){var a=n.serializer.ya(t);r=r.nt(a.key,a),i=t.readTime})).next((function(){return{va:r,readTime:n.serializer.Sa(i)}}))},e.prototype.Da=function(e){var t=this,n=Cn(e),r=_.MIN;return n.Vo({index:jn.readTimeIndex,reverse:!0},(function(e,n,i){n.readTime&&(r=t.serializer.Sa(n.readTime)),i.done()})).next((function(){return r}))},e.prototype.Ca=function(t){return new e.Fa(this,!!t&&t.Na)},e.prototype.ka=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return Sn(e).get(Fn.key).next((function(e){return Tt(!!e),e}))},e.prototype.Ia=function(e,t){return Sn(e).put(Fn.key,t)},e.prototype.wa=function(e){if(e){var t=this.serializer.ya(e);return t instanceof we&&t.version.isEqual(_.S())?null:t}return null},e}();function Sn(e){return er.co(e,Fn.store)}function Cn(e){return er.co(e,jn.store)}function xn(e){return e.path.j()}function Mn(e){var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw Et();t=e.noDocument}return JSON.stringify(t).length}Tn.Fa=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).$a=t,r.Na=n,r.Ma=new Pt((function(e){return e.toString()})),r}return i.__extends(t,e),t.prototype.ir=function(e){var t=this,n=[],r=0,i=new $((function(e,t){return Ct(e.K(),t.K())}));return this.zn.forEach((function(a,o){var s=t.Ma.get(a);if(o){var l=t.$a.serializer.La(o,t.readTime);i=i.add(a.path.L());var c=Mn(l);r+=c-s,n.push(t.$a.Jn(e,a,l))}else if(r-=s,t.Na){var u=t.$a.serializer.La(new we(a,_.S()),t.readTime);n.push(t.$a.Jn(e,a,u))}else n.push(t.$a.Zn(e,a))})),i.forEach((function(r){n.push(t.$a.ur.Mo(e,r))})),n.push(this.$a.updateMetadata(e,r)),Nt.Kn(n)},t.prototype.er=function(e,t){var n=this;return this.$a.Ra(e,t).next((function(e){return null===e?(n.Ma.set(t,0),null):(n.Ma.set(t,e.size),e.Aa)}))},t.prototype.sr=function(e,t){var n=this;return this.$a.Pa(e,t).next((function(e){var t=e.Va;return e.ga.forEach((function(e,t){n.Ma.set(e,t)})),t}))},t}(Rt);var $n=function(){function e(){this.Oa=new Ln}return e.prototype.Mo=function(e,t){return this.Oa.add(t),Nt.resolve()},e.prototype.Pr=function(e,t){return Nt.resolve(this.Oa.getEntries(t))},e}(),Ln=function(){function e(){this.index={}}return e.prototype.add=function(e){var t=e.B(),n=e.L(),r=this.index[t]||new $(k.k),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e.B(),n=e.L(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new $(k.k)).j()},e}(),Pn=10,On=function(){function e(e){this.serializer=e}return e.prototype.createOrUpgrade=function(e,t,n,r){var i=this;Tt(n<r&&n>=0&&r<=Pn);var a=new sn(t);n<1&&r>=1&&(function(e){e.createObjectStore(In.store)}(e),function(e){e.createObjectStore(An.store,{keyPath:An.keyPath}),e.createObjectStore(Nn.store,{keyPath:Nn.keyPath,autoIncrement:!0}).createIndex(Nn.userMutationsIndex,Nn.userMutationsKeyPath,{unique:!0}),e.createObjectStore(Rn.store)}(e),qn(e),function(e){e.createObjectStore(jn.store)}(e));var o=Nt.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Un.store),e.deleteObjectStore(Hn.store),e.deleteObjectStore(zn.store)}(e),qn(e)),o=o.next((function(){return function(e){var t=e.store(zn.store),n=new zn(0,0,_.MIN.F(),0);return t.put(zn.key,n)}(a)}))),n<4&&r>=4&&(0!==n&&(o=o.next((function(){return function(e,t){return t.store(Nn.store).Ro().next((function(n){e.deleteObjectStore(Nn.store),e.createObjectStore(Nn.store,{keyPath:Nn.keyPath,autoIncrement:!0}).createIndex(Nn.userMutationsIndex,Nn.userMutationsKeyPath,{unique:!0});var r=t.store(Nn.store),i=n.map((function(e){return r.put(e)}));return Nt.Kn(i)}))}(e,a)}))),o=o.next((function(){!function(e){e.createObjectStore(Wn.store,{keyPath:Wn.keyPath})}(e)}))),n<5&&r>=5&&(o=o.next((function(){return i.removeAcknowledgedMutations(a)}))),n<6&&r>=6&&(o=o.next((function(){return function(e){e.createObjectStore(Fn.store)}(e),i.addDocumentGlobal(a)}))),n<7&&r>=7&&(o=o.next((function(){return i.ensureSequenceNumbers(a)}))),n<8&&r>=8&&(o=o.next((function(){return i.createCollectionParentIndex(e,a)}))),n<9&&r>=9&&(o=o.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(jn.store);t.createIndex(jn.readTimeIndex,jn.readTimeIndexPath,{unique:!1}),t.createIndex(jn.collectionReadTimeIndex,jn.collectionReadTimeIndexPath,{unique:!1})}(t)}))),n<10&&r>=10&&(o=o.next((function(){return i.rewriteCanonicalIds(a)}))),o},e.prototype.addDocumentGlobal=function(e){var t=0;return e.store(jn.store).Vo((function(e,n){t+=Mn(n)})).next((function(){var n=new Fn(t);return e.store(Fn.store).put(Fn.key,n)}))},e.prototype.removeAcknowledgedMutations=function(e){var t=this,n=e.store(An.store),r=e.store(Nn.store);return n.Ro().next((function(n){return Nt.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Ro(Nn.userMutationsIndex,i).next((function(r){return Nt.forEach(r,(function(r){Tt(r.userId===n.userId);var i=t.serializer.Oo(r);return fn(e,n.userId,i).next((function(){}))}))}))}))}))},e.prototype.ensureSequenceNumbers=function(e){var t=e.store(Un.store),n=e.store(jn.store);return kn(e).next((function(e){var r=[];return n.Vo((function(n,i){var a=new k(n),o=function(e){return[0,Zt(e)]}(a);r.push(t.get(o).next((function(n){return n?Nt.resolve():function(n){return t.put(new Un(0,Zt(n),e))}(a)})))})).next((function(){return Nt.Kn(r)}))}))},e.prototype.createCollectionParentIndex=function(e,t){e.createObjectStore(Vn.store,{keyPath:Vn.keyPath});var n=t.store(Vn.store),r=new Ln,i=function(e){if(r.add(e)){var t=e.B(),i=e.L();return n.put({collectionId:t,parent:Zt(i)})}};return t.store(jn.store).Vo({Po:!0},(function(e,t){var n=new k(e);return i(n.L())})).next((function(){return t.store(Rn.store).Vo({Po:!0},(function(e,t){e[0];var n=e[1],r=(e[2],nn(n));return i(r.L())}))}))},e.prototype.rewriteCanonicalIds=function(e){var t=this,n=e.store(Hn.store);return n.Vo((function(e,r){var i=t.serializer.ca(r),a=t.serializer._a(i);return n.put(a)}))},e}(),Dn=function(e,t){this.seconds=e,this.nanoseconds=t},In=function(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n};In.store="owner",In.key="owner";var An=function(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n};An.store="mutationQueues",An.keyPath="userId";var Nn=function(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Nn.store="mutations",Nn.keyPath="batchId",Nn.userMutationsIndex="userMutationsIndex",Nn.userMutationsKeyPath=["userId","batchId"];var Rn=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,Zt(t)]},e.key=function(e,t,n){return[e,Zt(t),n]},e}();Rn.store="documentMutations",Rn.PLACEHOLDER=new Rn;var Yn=function(e,t){this.path=e,this.readTime=t},Bn=function(e,t){this.path=e,this.version=t},jn=function(e,t,n,r,i,a){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=a};jn.store="remoteDocuments",jn.readTimeIndex="readTimeIndex",jn.readTimeIndexPath="readTime",jn.collectionReadTimeIndex="collectionReadTimeIndex",jn.collectionReadTimeIndexPath=["parentPath","readTime"];var Fn=function(e){this.byteSize=e};Fn.store="remoteDocumentGlobal",Fn.key="remoteDocumentGlobalKey";var Hn=function(e,t,n,r,i,a,o){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=a,this.query=o};Hn.store="targets",Hn.keyPath="targetId",Hn.queryTargetsIndexName="queryTargetsIndex",Hn.queryTargetsKeyPath=["canonicalId","targetId"];var Un=function(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n};Un.store="targetDocuments",Un.keyPath=["targetId","path"],Un.documentTargetsIndex="documentTargetsIndex",Un.documentTargetsKeyPath=["path","targetId"];var zn=function(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r};zn.key="targetGlobalKey",zn.store="targetGlobal";var Vn=function(e,t){this.collectionId=e,this.parent=t};function qn(e){e.createObjectStore(Un.store,{keyPath:Un.keyPath}).createIndex(Un.documentTargetsIndex,Un.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Hn.store,{keyPath:Hn.keyPath}).createIndex(Hn.queryTargetsIndexName,Hn.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(zn.store)}Vn.store="collectionParents",Vn.keyPath=["collectionId","parent"];var Wn=function(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r};Wn.store="clientMetadata",Wn.keyPath="clientId";var Gn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([An.store,Nn.store,Rn.store,jn.store,Hn.store,In.store,zn.store,Un.store],[Wn.store]),[Fn.store]),[Vn.store]),Kn=function(){function e(){this.xa=new Ln}return e.prototype.Mo=function(e,t){var n=this;if(!this.xa.has(t)){var r=t.B(),i=t.L();e.rr((function(){n.xa.add(t)}));var a={collectionId:r,parent:Zt(i)};return Jn(e).put(a)}return Nt.resolve()},e.prototype.Pr=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[Mt(t),""],!1,!0);return Jn(e).Ro(r).next((function(e){for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.collectionId!==t)break;n.push(nn(a.parent))}return n}))},e}();function Jn(e){return er.co(e,Vn.store)}var Xn=function(){function e(e){this.Ba=e}return e.prototype.ya=function(e){if(e.document)return this.Ba.vi(e.document,!!e.hasCommittedMutations);if(e.noDocument){var t=S.it(e.noDocument.path),n=this.qa(e.noDocument.readTime);return new we(t,n,{hasCommittedMutations:!!e.hasCommittedMutations})}if(e.unknownDocument){var r=S.it(e.unknownDocument.path),i=this.qa(e.unknownDocument.version);return new ke(r,i)}return Et()},e.prototype.La=function(e,t){var n=this.pa(t),r=e.key.path.L().j();if(e instanceof _e){var i=this.Ba.bi(e),a=e.hasCommittedMutations;return new jn(null,null,i,a,n,r)}if(e instanceof we){var o=e.key.path.j(),s=this.Ua(e.version),l=e.hasCommittedMutations;return new jn(null,new Yn(o,s),null,l,n,r)}if(e instanceof ke){var c=e.key.path.j(),u=this.Ua(e.version);return new jn(new Bn(c,u),null,null,!0,n,r)}return Et()},e.prototype.pa=function(e){var t=e.F();return[t.seconds,t.nanoseconds]},e.prototype.Sa=function(e){var t=new b(e[0],e[1]);return _.v(t)},e.prototype.Ua=function(e){var t=e.F();return new Dn(t.seconds,t.nanoseconds)},e.prototype.qa=function(e){var t=new b(e.seconds,e.nanoseconds);return _.v(t)},e.prototype.$o=function(e,t){var n=this,r=t.baseMutations.map((function(e){return n.Ba.$i(e)})),i=t.mutations.map((function(e){return n.Ba.$i(e)}));return new Nn(e,t.batchId,t.An.toMillis(),r,i)},e.prototype.Oo=function(e){var t=this,n=(e.baseMutations||[]).map((function(e){return t.Ba.xi(e)})),r=e.mutations.map((function(e){return t.Ba.xi(e)})),i=b.fromMillis(e.localWriteTimeMs);return new Ot(e.batchId,i,n,r)},e.prototype.ca=function(e){var t,n=this.qa(e.readTime),r=void 0!==e.lastLimboFreeSnapshotVersion?this.qa(e.lastLimboFreeSnapshotVersion):_.MIN;return t=void 0!==e.query.documents?this.Ba.Ki(e.query):this.Ba.Ji(e.query),new Be(t,e.targetId,0,e.lastListenSequenceNumber,n,r,I.fromBase64String(e.resumeToken))},e.prototype._a=function(e){var t,n=this.Ua(e.ts),r=this.Ua(e.lastLimboFreeSnapshotVersion);t=e.target.Pe()?this.Ba.ji(e.target):this.Ba.Gi(e.target);var i=e.resumeToken.toBase64();return new Hn(e.targetId,e.target.canonicalId(),n,i,e.sequenceNumber,r,t)},e}(),Qn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Zn=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).jo=t,r.Qa=n,r}return i.__extends(t,e),t}(Bt),er=function(){function e(t,n,r,i,a,o,s,l){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Nr=o,this.Wa=l,this.ja=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ka=null,this.inForeground=!1,this.Ga=null,this.za=null,this.Ha=Number.NEGATIVE_INFINITY,this.Ya=function(e){return Promise.resolve()},!e.ho())throw new p(h.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");if(this.yo=new rr(this,a),this.Ja=n+e.Xa,this.serializer=new Xn(s),this.document=i.document,this.Za=new bn(this.yo,this.serializer),this.ur=new Kn,this.or=new Tn(this.serializer,this.ur),!i.window||!i.window.localStorage)throw new p(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=i.window,this.tu=this.window.localStorage}return e.co=function(e,t){if(e instanceof Zn)return rn.co(e.jo,t);throw Et()},e.prototype.start=function(){var e=this;return rn.ro(this.Ja,Pn,new On(this.serializer)).then((function(t){return e.eu=t,e.su()})).then((function(){return e.iu(),e.nu(),e.ru(),e.eu.runTransaction("readonly",[zn.store],(function(e){return kn(e)}))})).then((function(t){e.hu=new Ht(t,e.Wa)})).then((function(){e.ja=!0})).catch((function(t){return e.eu&&e.eu.close(),Promise.reject(t)}))},e.prototype.ou=function(e){var t=this;return this.Ya=function(n){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Kh?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.au=function(e){var t=this;this.eu._o((function(n){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return null===n.newVersion?[4,e()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))},e.prototype.uu=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Nr.Zr((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.Kh?[4,this.su()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.su=function(){var e=this;return this.eu.runTransaction("readwrite",Gn,(function(t){return nr(t).put(new Wn(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.cu(t).next((function(t){t||(e.isPrimary=!1,e.Nr.Zr((function(){return e.Ya(!1)})))}))})).next((function(){return e._u(t)})).next((function(n){return e.isPrimary&&!n?e.lu(t).next((function(){return!1})):!!n&&e.du(t).next((function(){return!0}))}))})).catch((function(t){if(!e.allowTabSynchronization)throw t;return _t("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Nr.Zr((function(){return e.Ya(t)})),e.isPrimary=t}))},e.prototype.cu=function(e){var t=this;return tr(e).get(In.key).next((function(e){return Nt.resolve(t.fu(e))}))},e.prototype.Tu=function(e){return nr(e).delete(this.clientId)},e.prototype.Eu=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.Iu(this.Ha,18e5)?[3,2]:(this.Ha=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(n){var r=e.co(n,Wn.store);return r.Ro().next((function(e){var n=t.wu(e,18e5),i=e.filter((function(e){return-1===n.indexOf(e)}));return Nt.forEach(i,(function(e){return r.delete(e.clientId)})).next((function(){return i}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(e){t.window.localStorage.removeItem(t.Ru(e.clientId))})),n.label=2;case 2:return[2]}}))}))},e.prototype.ru=function(){var e=this;this.za=this.Nr.Wr("client_metadata_refresh",4e3,(function(){return e.su().then((function(){return e.Eu()})).then((function(){return e.ru()}))}))},e.prototype.fu=function(e){return!!e&&e.ownerId===this.clientId},e.prototype._u=function(e){var t=this;return tr(e).get(In.key).next((function(n){if(null!==n&&t.Iu(n.leaseTimestampMs,5e3)&&!t.Au(n.ownerId)){if(t.fu(n)&&t.networkEnabled)return!0;if(!t.fu(n)){if(!n.allowTabSynchronization)throw new p(h.FAILED_PRECONDITION,Qn);return!1}}return!(!t.networkEnabled||!t.inForeground)||nr(e).Ro().next((function(e){return void 0===t.wu(e,5e3).find((function(e){if(t.clientId!==e.clientId){var n=!t.networkEnabled&&e.networkEnabled,r=!t.inForeground&&e.inForeground,i=t.networkEnabled===e.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(e){return t.isPrimary!==e&&_t("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.mu=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(t){switch(t.label){case 0:return this.ja=!1,this.Pu(),this.za&&(this.za.cancel(),this.za=null),this.Vu(),this.gu(),[4,this.eu.runTransaction("readwrite",[In.store,Wn.store],(function(t){return e.lu(t).next((function(){return e.Tu(t)}))}))];case 1:return t.sent(),this.eu.close(),this.pu(),[2]}}))}))},e.prototype.wu=function(e,t){var n=this;return e.filter((function(e){return n.Iu(e.updateTimeMs,t)&&!n.Au(e.clientId)}))},e.prototype.yu=function(){var e=this;return this.eu.runTransaction("readonly",[Wn.store],(function(t){return nr(t).Ro().next((function(t){return e.wu(t,18e5).map((function(e){return e.clientId}))}))}))},e.clearPersistence=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:return e.ho()?(n=t+e.Xa,[4,rn.delete(n)]):[2,Promise.resolve()];case 1:return r.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"Kh",{get:function(){return this.ja},enumerable:!0,configurable:!0}),e.prototype.bu=function(e){return hn.vo(e,this.serializer,this.ur,this.yo)},e.prototype.vu=function(){return this.Za},e.prototype.Su=function(){return this.or},e.prototype.Du=function(){return this.ur},e.prototype.runTransaction=function(e,t,n){var r=this;_t("IndexedDbPersistence","Starting transaction:",e);var i,a="readonly"===t?"readonly":"readwrite";return this.eu.runTransaction(a,Gn,(function(a){return i=new Zn(a,r.hu.next()),"readwrite-primary"===t?r.cu(a).next((function(e){return!!e||r._u(a)})).next((function(t){if(!t)throw wt("Failed to obtain primary lease for action '"+e+"'."),r.isPrimary=!1,r.Nr.Zr((function(){return r.Ya(!1)})),new p(h.FAILED_PRECONDITION,Yt);return n(i)})).next((function(e){return r.du(a).next((function(){return e}))})):r.Cu(a).next((function(){return n(i)}))})).then((function(e){return i.hr(),e}))},e.prototype.Cu=function(e){var t=this;return tr(e).get(In.key).next((function(e){if(null!==e&&t.Iu(e.leaseTimestampMs,5e3)&&!t.Au(e.ownerId)&&!t.fu(e)&&!e.allowTabSynchronization)throw new p(h.FAILED_PRECONDITION,Qn)}))},e.prototype.du=function(e){var t=new In(this.clientId,this.allowTabSynchronization,Date.now());return tr(e).put(In.key,t)},e.ho=function(){return rn.ho()},e.Fu=function(e){var t=e.ci.projectId;return e.ci.In||(t+="."+e.ci.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.lu=function(e){var t=this,n=tr(e);return n.get(In.key).next((function(e){return t.fu(e)?(_t("IndexedDbPersistence","Releasing primary lease."),n.delete(In.key)):Nt.resolve()}))},e.prototype.Iu=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(wt("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.iu=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ga=function(){e.Nr.Zr((function(){return e.inForeground="visible"===e.document.visibilityState,e.su()}))},this.document.addEventListener("visibilitychange",this.Ga),this.inForeground="visible"===this.document.visibilityState)},e.prototype.Vu=function(){this.Ga&&(this.document.removeEventListener("visibilitychange",this.Ga),this.Ga=null)},e.prototype.nu=function(){var e=this;"function"==typeof this.window.addEventListener&&(this.Ka=function(){e.Pu(),e.Nr.Zr((function(){return e.mu()}))},this.window.addEventListener("unload",this.Ka))},e.prototype.gu=function(){this.Ka&&(this.window.removeEventListener("unload",this.Ka),this.Ka=null)},e.prototype.Au=function(e){try{var t=null!==this.tu.getItem(this.Ru(e));return _t("IndexedDbPersistence","Client '"+e+"' "+(t?"is":"is not")+" zombied in LocalStorage"),t}catch(e){return wt("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype.Pu=function(){try{this.tu.setItem(this.Ru(this.clientId),String(Date.now()))}catch(e){wt("Failed to set zombie client id.",e)}},e.prototype.pu=function(){try{this.tu.removeItem(this.Ru(this.clientId))}catch(e){}},e.prototype.Ru=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e}();function tr(e){return e.store(In.store)}function nr(e){return e.store(Wn.store)}er.Xa="main";var rr=function(){function e(e,t){this.db=e,this.Nu=null,this.qh=new Qt(this,t)}return e.prototype.Yh=function(e){var t=this.ku(e);return this.db.vu().la(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.ku=function(e){var t=0;return this.Xh(e,(function(e){t++})).next((function(){return t}))},e.prototype.Xs=function(e,t){return this.db.vu().Xs(e,t)},e.prototype.Xh=function(e,t){return this.$u(e,(function(e,n){return t(n)}))},e.prototype.Mu=function(e){this.Nu=e},e.prototype.vn=function(e,t){return ir(e,t)},e.prototype.Dn=function(e,t){return ir(e,t)},e.prototype.Zh=function(e,t,n){return this.db.vu().Zh(e,t,n)},e.prototype.Go=function(e,t){return ir(e,t)},e.prototype.Lu=function(e,t){return this.Nu.Mn(t)?Nt.resolve(!0):function(e,t){var n=!1;return gn(e).po((function(r){return pn(e,r,t).next((function(e){return e&&(n=!0),Nt.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.to=function(e,t){var n=this,r=this.db.Su().Ca(),i=[],a=0;return this.$u(e,(function(o,s){if(s<=t){var l=n.Lu(e,o).next((function(t){if(!t)return a++,r.tr(e,o).next((function(){return r.Zn(o),En(e).delete([0,Zt(o.path)])}))}));i.push(l)}})).next((function(){return Nt.Kn(i)})).next((function(){return r.apply(e)})).next((function(){return a}))},e.prototype.removeTarget=function(e,t){var n=t.es(e.Qa);return this.db.vu().oa(e,n)},e.prototype.Ou=function(e,t){return ir(e,t)},e.prototype.$u=function(e,t){var n,r=En(e),i=Ht.Fr;return r.Vo({index:Un.documentTargetsIndex},(function(e,r){var a=e[0],o=(e[1],r.path),s=r.sequenceNumber;0===a?(i!==Ht.Fr&&t(new S(nn(n)),i),i=s,n=o):i=Ht.Fr})).next((function(){i!==Ht.Fr&&t(new S(nn(n)),i)}))},e.prototype.so=function(e){return this.db.Su().ka(e)},e}();function ir(e,t){return En(e).put(function(e,t){return new Un(0,Zt(e.path),t)}(t,e.Qa))}var ar=function(){function e(e,t,n){this.persistence=e,this.xu=t,this.Bu=new It,this.qu=new C(Ct),this.Uu=new Pt((function(e){return e.canonicalId()})),this.Qu=_.MIN,this.persistence.yo.Mu(this.Bu),this.ar=e.bu(n),this.Wu=e.Su(),this.Za=e.vu(),this.ju=new jt(this.Wu,this.ar,this.persistence.Du()),this.xu.Ku(this.ju)}return e.prototype.start=function(){return Promise.resolve()},e.prototype.Gu=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return t=this.ar,n=this.ju,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return a.ar.Uo(r).next((function(o){return i=o,t=a.persistence.bu(e),n=new jt(a.Wu,t,a.persistence.Du()),t.Uo(r)})).next((function(e){for(var t=[],a=[],o=Xe(),s=0,l=i;s<l.length;s++){var c=l[s];t.push(c.batchId);for(var u=0,d=c.mutations;u<d.length;u++){var h=d[u];o=o.add(h.key)}}for(var p=0,f=e;p<f.length;p++){var m=f[p];a.push(m.batchId);for(var v=0,g=m.mutations;v<g.length;v++){var y=g[v];o=o.add(y.key)}}return n.Tr(r,o).next((function(e){return{zu:e,Hu:t,Yu:a}}))}))}))];case 1:return r=i.sent(),[2,(this.ar=t,this.ju=n,this.xu.Ku(this.ju),r)]}}))}))},e.prototype.Ju=function(e){var t,n=this,r=b.now(),i=e.reduce((function(e,t){return e.add(t.key)}),Xe());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(a){return n.ju.Tr(a,i).next((function(i){t=i;for(var o=[],s=0,l=e;s<l.length;s++){var c=l[s],u=c.ee(t.get(c.key));null!=u&&o.push(new pe(c.key,u,u.se(),ue.exists(!0)))}return n.ar.ko(a,r,o,e)}))})).then((function(e){var n=e.Pn(t);return{batchId:e.batchId,zn:n}}))},e.prototype.Do=function(e){var t=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=e.batch.keys(),i=t.Wu.Ca({Na:!0});return t.ar.Do(n,e.batch,e.streamToken).next((function(){return t.Xu(n,e,i)})).next((function(){return i.apply(n)})).next((function(){return t.ar.zo(n)})).next((function(){return t.ju.Tr(n,r)}))}))},e.prototype.Zu=function(e){var t=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return t.ar.Lo(n,e).next((function(e){return Tt(null!==e),r=e.keys(),t.ar.Wo(n,e)})).next((function(){return t.ar.zo(n)})).next((function(){return t.ju.Tr(n,r)}))}))},e.prototype.qo=function(){var e=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(t){return e.ar.qo(t)}))},e.prototype.Fo=function(){var e=this;return this.persistence.runTransaction("Get last stream token","readonly",(function(t){return e.ar.Fo(t)}))},e.prototype.No=function(e){var t=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",(function(n){return t.ar.No(n,e)}))},e.prototype.ea=function(){var e=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(t){return e.Za.ea(t)}))},e.prototype.tc=function(t){var n=this,r=t.ts,i=this.qu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(a){var o=n.Wu.Ca({Na:!0});i=n.qu;var s=[];t.Ts.forEach((function(t,o){var l=i.get(o);if(l){s.push(n.Za.Ta(a,t.gs,o).next((function(){return n.Za.fa(a,t.Ps,o)})));var c=t.resumeToken;if(c.Ot()>0){var u=l.ss(c,r).es(a.Qa);i=i.nt(o,u),e.ec(l,u,t)&&s.push(n.Za.oa(a,u))}}}));var l=ze(),c=Xe();if(t.Is.forEach((function(e,t){c=c.add(e)})),s.push(o.getEntries(a,c).next((function(e){t.Is.forEach((function(i,c){var u=e.get(i);c instanceof we&&c.version.isEqual(_.MIN)?(o.Zn(i,r),l=l.nt(i,c)):null==u||c.version.D(u.version)>0||0===c.version.D(u.version)&&u.hasPendingWrites?(o.Jn(c,r),l=l.nt(i,c)):_t("LocalStore","Ignoring outdated watch update for ",i,". Current version:",u.version," Watch version:",c.version),t.ws.has(i)&&s.push(n.persistence.yo.Ou(a,i))}))}))),!r.isEqual(_.MIN)){var u=n.Za.ea(a).next((function(e){return n.Za.ia(a,a.Qa,r)}));s.push(u)}return Nt.Kn(s).next((function(){return o.apply(a)})).next((function(){return n.ju.Er(a,l)}))})).then((function(e){return n.qu=i,e}))},e.ec=function(e,t,n){return Tt(t.resumeToken.Ot()>0),0===e.resumeToken.Ot()||t.ts.C()-e.ts.C()>=this.sc||n.Ps.size+n.Vs.size+n.gs.size>0},e.prototype.ic=function(e){for(var t=this,n=0,r=e;n<r.length;n++){var i=r[n],a=i.targetId;if(this.Bu.Sn(i.pr,a),this.Bu.Fn(i.yr,a),!i.fromCache){var o=this.qu.get(a),s=o.ts,l=o.ns(s);this.qu=this.qu.nt(a,l)}}return this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(n){return Nt.forEach(e,(function(e){return Nt.forEach(e.yr,(function(e){return t.persistence.yo.Dn(n,e)}))}))}))},e.prototype.nc=function(e){var t=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===e&&(e=-1),t.ar.Bo(n,e)}))},e.prototype.rc=function(e){var t=this;return this.persistence.runTransaction("read document","readonly",(function(n){return t.ju.cr(n,e)}))},e.prototype.hc=function(e){var t=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return t.Za.da(n,e).next((function(i){return i?(r=i,Nt.resolve(r)):t.Za.Xo(n).next((function(i){return r=new Be(e,i,0,n.Qa),t.Za.na(n,r).next((function(){return r}))}))}))})).then((function(n){return null===t.qu.get(n.targetId)&&(t.qu=t.qu.nt(n.targetId,n),t.Uu.set(e,n.targetId)),n}))},e.prototype.da=function(e,t){var n=this.Uu.get(t);return void 0!==n?Nt.resolve(this.qu.get(n)):this.Za.da(e,t)},e.prototype.oc=function(e,t){var n=this,r=this.qu.get(e),i=t?"readwrite":"readwrite-primary";return this.persistence.runTransaction("Release target",i,(function(i){var a=n.Bu.Nn(e);return t?Nt.resolve():Nt.forEach(a,(function(e){return n.persistence.yo.Dn(i,e)})).next((function(){n.persistence.yo.removeTarget(i,r)}))})).then((function(){n.qu=n.qu.remove(e),n.Uu.delete(r.target)}))},e.prototype.ac=function(e,t){var n=this,r=_.MIN,i=Xe();return this.persistence.runTransaction("Execute query","readonly",(function(a){return n.da(a,e.xe()).next((function(e){if(e)return r=e.lastLimboFreeSnapshotVersion,n.Za.Ea(a,e.targetId).next((function(e){i=e}))})).next((function(){return n.xu.wr(a,e,t?r:_.MIN,t?i:Xe())})).next((function(e){return{documents:e,uc:i}}))}))},e.prototype.cc=function(e){var t=this;return this.persistence.runTransaction("Remote document keys","readonly",(function(n){return t.Za.Ea(n,e)}))},e.prototype.Xu=function(e,t,n){var r=this,i=t.batch,a=i.keys(),o=Nt.resolve();return a.forEach((function(r){o=o.next((function(){return n.tr(e,r)})).next((function(e){var a=e,o=t.gn.get(r);Tt(null!==o),(!a||a.version.D(o)<0)&&(a=i.qt(r,a,t))&&n.Jn(a,t.Vn)}))})),o.next((function(){return r.ar.Wo(e,i)}))},e.prototype.Gh=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.eo(n,t.qu)}))},e}();ar.sc=3e8;var or=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).persistence=t,i.ar=t.bu(r),i.Wu=t.Su(),i.Za=t.vu(),i}return i.__extends(t,e),t.prototype.start=function(){return this._c()},t.prototype.lc=function(e){var t=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return t.ar.xo(n,e).next((function(e){return e?t.ju.Tr(n,e):Nt.resolve(null)}))}))},t.prototype.dc=function(e){this.ar.Ko(e)},t.prototype.uu=function(e){this.persistence.uu(e)},t.prototype.yu=function(){return this.persistence.yu()},t.prototype.fc=function(e){var t=this,n=this.qu.get(e);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return t.Za.ui(n,e).next((function(e){return e?e.target:null}))}))},t.prototype.ba=function(){var e=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(t){return e.Wu.ba(t,e.Qu)})).then((function(t){var n=t.va,r=t.readTime;return e.Qu=r,n}))},t.prototype._c=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t=this;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(e){return t.Wu.Da(e)}))];case 1:return e.Qu=n.sent(),[2]}}))}))},t}(ar);function sr(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){if(e.code!==h.FAILED_PRECONDITION||e.message!==Yt)throw e;return _t("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function lr(e,t){if(0!==t.length)throw new p(h.INVALID_ARGUMENT,"Function "+e+"() does not support arguments, but was called with "+Sr(t.length,"argument")+".")}function cr(e,t,n){if(t.length!==n)throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires "+Sr(n,"argument")+", but was called with "+Sr(t.length,"argument")+".")}function ur(e,t,n){if(t.length<n)throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires at least "+Sr(n,"argument")+", but was called with "+Sr(t.length,"argument")+".")}function dr(e,t,n,r){if(t.length<n||t.length>r)throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+r+" arguments, but was called with "+Sr(t.length,"argument")+".")}function hr(e,t,n,r){gr(e,t,Tr(n)+" argument",r)}function pr(e,t,n,r){void 0!==r&&hr(e,t,n,r)}function fr(e,t,n,r){gr(e,t,n+" option",r)}function mr(e,t,n,r){void 0!==r&&fr(e,t,n,r)}function vr(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){for(var a=[],o=0,s=i;o<s.length;o++){var l=s[o];if(l===r)return;a.push(br(l))}var c=br(r);throw new p(h.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+a.join(", "))}(e,0,n,r,i)}function gr(e,t,n,r){if(!("object"===t?yr(r):"non-empty string"===t?"string"==typeof r&&""!==r:typeof r===t)){var i=br(r);throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+i)}}function yr(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function br(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":Et()}function _r(e,t,n){if(void 0===n)throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+Tr(t)+" argument, but it was undefined.")}function wr(e,t,n){O(t,(function(t,r){if(n.indexOf(t)<0)throw new p(h.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))}))}function kr(e,t,n,r){var i=br(r);return new p(h.INVALID_ARGUMENT,"Function "+e+"() requires its "+Tr(n)+" argument to be a "+t+", but it was: "+i)}function Er(e,t,n){if(n<=0)throw new p(h.INVALID_ARGUMENT,'Function "'+e+'()" requires its '+Tr(t)+" argument to be a positive number, but it was: "+n+".")}function Tr(e){switch(e){case 1:return"first";case 2:return"second";case 3:return"third";default:return e+"th"}}function Sr(e,t){return e+" "+t+(1===e?"":"s")}function Cr(e,t){function n(){var e="This constructor is private.";throw t&&(e+=" ",e+=t),new p(h.INVALID_ARGUMENT,e)}return n.prototype=e.prototype,Object.assign(n,e),n}function xr(){if("undefined"==typeof Uint8Array)throw new p(h.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Mr(){if(!vt.Lt().Tc)throw new p(h.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var $r=function(){function e(e){Mr(),this.Ec=e}return e.fromBase64String=function(t){cr("Blob.fromBase64String",arguments,1),hr("Blob.fromBase64String","string",1,t),Mr();try{return new e(I.fromBase64String(t))}catch(t){throw new p(h.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+t)}},e.fromUint8Array=function(t){if(cr("Blob.fromUint8Array",arguments,1),xr(),!(t instanceof Uint8Array))throw kr("Blob.fromUint8Array","Uint8Array",1,t);return new e(I.fromUint8Array(t))},e.prototype.toBase64=function(){return cr("Blob.toBase64",arguments,0),Mr(),this.Ec.toBase64()},e.prototype.toUint8Array=function(){return cr("Blob.toUint8Array",arguments,0),xr(),this.Ec.toUint8Array()},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this.Ec.isEqual(e.Ec)},e}(),Lr=Cr($r,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),Pr=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];!function(e,t,n,r){if(!(t instanceof Array)||t.length<1)throw new p(h.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Sr(1,"element")+".")}(0,e);for(var n=0;n<e.length;++n)if(hr("FieldPath","string",n,e[n]),0===e[n].length)throw new p(h.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.Ic=new T(e)}return e.documentId=function(){return e.wc},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","FieldPath",1,t);return this.Ic.isEqual(t.Ic)},e}();Pr.wc=new Pr(T.X().K());var Or=new RegExp("[~\\*/\\[\\]]"),Dr=function(){function e(e){this.Rc=e}return e.delete=function(){return lr("FieldValue.delete",arguments),Ir.instance},e.serverTimestamp=function(){return lr("FieldValue.serverTimestamp",arguments),Ar.instance},e.arrayUnion=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ur("FieldValue.arrayUnion",arguments,1),new Nr(e)},e.arrayRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ur("FieldValue.arrayRemove",arguments,1),new Rr(e)},e.increment=function(e){return hr("FieldValue.increment","number",1,e),cr("FieldValue.increment",arguments,1),new Yr(e)},e.prototype.isEqual=function(e){return this===e},e}(),Ir=function(e){function t(){return e.call(this,"FieldValue.delete")||this}return i.__extends(t,e),t}(Dr);Ir.instance=new Ir;var Ar=function(e){function t(){return e.call(this,"FieldValue.serverTimestamp")||this}return i.__extends(t,e),t}(Dr);Ar.instance=new Ar;var Nr=function(e){function t(t){var n=this;return(n=e.call(this,"FieldValue.arrayUnion")||this).Ac=t,n}return i.__extends(t,e),t}(Dr),Rr=function(e){function t(t){var n=this;return(n=e.call(this,"FieldValue.arrayRemove")||this).Ac=t,n}return i.__extends(t,e),t}(Dr),Yr=function(e){function t(t){var n=this;return(n=e.call(this,"FieldValue.increment")||this).mc=t,n}return i.__extends(t,e),t}(Dr),Br=Cr(Dr,"Use FieldValue.<field>() instead."),jr=function(){function e(e,t){if(cr("GeoPoint",arguments,2),hr("GeoPoint","number",1,e),hr("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new p(h.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new p(h.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this.Pc=e,this.Vc=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this.Pc},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.Vc},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this.Pc===e.Pc&&this.Vc===e.Vc},e.prototype.p=function(e){return Ct(this.Pc,e.Pc)||Ct(this.Vc,e.Vc)},e}(),Fr=/^__.*__$/,Hr=function(){function e(e,t,n){this.data=e,this.se=t,this.fieldTransforms=n}return e.prototype.gc=function(e,t){var n=[];return null!==this.se?n.push(new pe(e,this.data,this.se,t)):n.push(new he(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new fe(e,this.fieldTransforms)),n},e}(),Ur=function(){function e(e,t,n){this.data=e,this.se=t,this.fieldTransforms=n}return e.prototype.gc=function(e,t){var n=[new pe(e,this.data,this.se,t)];return this.fieldTransforms.length>0&&n.push(new fe(e,this.fieldTransforms)),n},e}();function zr(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Et()}}var Vr=function(){function e(e,t,n,r,i,a){this.pc=e,this.methodName=t,this.path=n,this.yc=r,void 0===i&&this.bc(),this.yc=void 0!==r&&r,this.fieldTransforms=i||[],this.se=a||[]}return e.prototype.vc=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.pc,this.methodName,n,!1,this.fieldTransforms,this.se);return r.Sc(t),r},e.prototype.Dc=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.pc,this.methodName,n,!1,this.fieldTransforms,this.se);return r.bc(),r},e.prototype.Cc=function(t){return new e(this.pc,this.methodName,null,!0,this.fieldTransforms,this.se)},e.prototype.Fc=function(e){var t=null===this.path||this.path.q()?"":" (found in field "+this.path.toString()+")";return new p(h.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.se.find((function(t){return e.U(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.U(t.field)}))},e.prototype.bc=function(){if(null!==this.path)for(var e=0;e<this.path.length;e++)this.Sc(this.path.get(e))},e.prototype.Sc=function(e){if(0===e.length)throw this.Fc("Document fields must not be empty");if(zr(this.pc)&&Fr.test(e))throw this.Fc('Document fields cannot begin and end with "__"')},e}(),qr=function(e,t){this.ci=e,this.key=t},Wr=function(){function e(e,t){this.serializer=e,this.Nc=t}return e.prototype.kc=function(e,t){var n=new Vr(0,e,T.H);Kr("Data must be an object, but it was:",n,t);var r=this.$c(t,n);return new Hr(new ge(r),null,n.fieldTransforms)},e.prototype.Mc=function(e,t,n){var r=new Vr(2,e,T.H);Kr("Data must be an object, but it was:",r,t);var i,a,o=this.$c(t,r);if(n){for(var s=new $(T.k),l=0,c=n;l<c.length;l++){var u=c[l],d=void 0;if(u instanceof Pr)d=u.Ic;else{if("string"!=typeof u)throw Et();d=Xr(e,u)}if(!r.contains(d))throw new p(h.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");s=s.add(d)}i=se.Kt(s),a=r.fieldTransforms.filter((function(e){return i.zt(e.field)}))}else i=se.Gt(r.se),a=r.fieldTransforms;return new Hr(new ge(o),i,a)},e.prototype.Lc=function(e,t){var n=this,r=new Vr(1,e,T.H);Kr("Data must be an object, but it was:",r,t);var i=new $(T.k),a=ge._e();O(t,(function(t,o){var s=Xr(e,t),l=r.Dc(s);if((o=n.Oc(o,l))instanceof Ir)i=i.add(s);else{var c=n.xc(o,l);null!=c&&(i=i.add(s),a.set(s,c))}}));var o=se.Kt(i);return new Ur(a.he(),o,r.fieldTransforms)},e.prototype.Bc=function(e,t,n,r){var i=new Vr(1,e,T.H),a=[Jr(e,t)],o=[n];if(r.length%2!=0)throw new p(h.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)a.push(Jr(e,r[s])),o.push(r[s+1]);for(var l=new $(T.k),c=ge._e(),u=0;u<a.length;++u){var d=a[u],f=i.Dc(d),m=this.Oc(o[u],f);if(m instanceof Ir)l=l.add(d);else{var v=this.xc(m,f);null!=v&&(l=l.add(d),c.set(d,v))}}var g=se.Kt(l);return new Ur(c.he(),g,i.fieldTransforms)},e.prototype.qc=function(e,t,n){void 0===n&&(n=!1);var r=new Vr(n?4:3,e,T.H);return this.xc(t,r)},e.prototype.Oc=function(e,t){try{return this.Nc(e)}catch(e){var n=Qr(e);throw t.Fc(n)}},e.prototype.xc=function(e,t){if(Gr(e=this.Oc(e,t)))return Kr("Unsupported field value:",t,e),this.$c(e,t);if(e instanceof Dr)return this.Uc(e,t),null;if(t.path&&t.se.push(t.path),e instanceof Array){if(t.yc&&4!==t.pc)throw t.Fc("Nested arrays are not supported");return this.Qc(e,t)}return this.Wc(e,t)},e.prototype.$c=function(e,t){var n=this,r={};return D(e)?t.path&&t.path.length>0&&t.se.push(t.path):O(e,(function(e,i){var a=n.xc(i,t.vc(e));null!=a&&(r[e]=a)})),{mapValue:{fields:r}}},e.prototype.Qc=function(e,t){for(var n=[],r=0,i=0,a=e;i<a.length;i++){var o=a[i],s=this.xc(o,t.Cc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}},e.prototype.Uc=function(e,t){if(!zr(t.pc))throw t.Fc(e.Rc+"() can only be used with update() and set()");if(null===t.path)throw t.Fc(e.Rc+"() is not currently supported inside arrays");if(e instanceof Ir){if(2!==t.pc)throw 1===t.pc?t.Fc("FieldValue.delete() can only appear at the top level of your update data"):t.Fc("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.se.push(t.path)}else if(e instanceof Ar)t.fieldTransforms.push(new le(t.path,ne.instance));else if(e instanceof Nr){var n=this.jc(e.Rc,e.Ac),r=new re(n);t.fieldTransforms.push(new le(t.path,r))}else if(e instanceof Rr){var i=this.jc(e.Rc,e.Ac),a=new ie(i);t.fieldTransforms.push(new le(t.path,a))}else if(e instanceof Yr){var o=this.qc("FieldValue.increment",e.mc),s=new ae(this.serializer,o);t.fieldTransforms.push(new le(t.path,s))}else Et()},e.prototype.Wc=function(e,t){if(null===e)return{nullValue:"NULL_VALUE"};if("number"==typeof e)return this.serializer.Ti(e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=b.fromDate(e);return{timestampValue:this.serializer.F(n)}}if(e instanceof b){var r=new b(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:this.serializer.F(r)}}if(e instanceof jr)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof $r)return{bytesValue:this.serializer.Ei(e)};if(e instanceof qr)return{referenceValue:this.serializer.wi(e.key.path,e.ci)};throw t.Fc("Unsupported field value: "+br(e))},e.prototype.jc=function(e,t){var n=this;return t.map((function(t,r){var i=new Vr(3,e,T.H);return n.xc(t,i.Cc(r))}))},e}();function Gr(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof b||e instanceof jr||e instanceof $r||e instanceof qr||e instanceof Dr)}function Kr(e,t,n){if(!Gr(n)||!yr(n)){var r=br(n);throw"an object"===r?t.Fc(e+" a custom object"):t.Fc(e+" "+r)}}function Jr(e,t){if(t instanceof Pr)return t.Ic;if("string"==typeof t)return Xr(e,t);throw new p(h.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function Xr(e,t){try{return function(e){if(e.search(Or)>=0)throw new p(h.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Pr.bind.apply(Pr,i.__spreadArrays([void 0],e.split("."))))}catch(t){throw new p(h.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t).Ic}catch(t){var n=Qr(t);throw new p(h.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function Qr(e){return e instanceof Error?e.message:e.toString()}var Zr=function(){function e(e,t,n,r,i,a){this.Nr=e,this.Kc=n,this.Gc=r,this.zc=i,this.listener=a,this.state=0,this.Hc=0,this.Yc=null,this.stream=null,this.oh=new zt(e,t)}return e.prototype.Jc=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.Xc=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?this.auth():this.Zc()},e.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.Jc()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.t_=function(){this.state=0,this.oh.reset()},e.prototype.e_=function(){var e=this;this.Xc()&&null===this.Yc&&(this.Yc=this.Nr.Wr(this.Kc,6e4,(function(){return e.s_()})))},e.prototype.i_=function(e){this.n_(),this.stream.send(e)},e.prototype.s_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.Xc()?[2,this.close(0)]:[2]}))}))},e.prototype.n_=function(){this.Yc&&(this.Yc.cancel(),this.Yc=null)},e.prototype.close=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.n_(),this.oh.cancel(),this.Hc++,3!==e?this.oh.reset():t&&t.code===h.RESOURCE_EXHAUSTED?(wt(t.toString()),wt("Using maximum backoff delay to prevent overloading the backend."),this.oh.qr()):t&&t.code===h.UNAUTHENTICATED&&this.zc._(),null!==this.stream&&(this.r_(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.h_(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.r_=function(){},e.prototype.auth=function(){var e=this;this.state=1;var t=this.o_(this.Hc),n=this.Hc;this.zc.getToken().then((function(t){e.Hc===n&&e.a_(t)}),(function(n){t((function(){var t=new p(h.UNKNOWN,"Fetching auth token failed: "+n.message);return e.u_(t)}))}))},e.prototype.a_=function(e){var t=this,n=this.o_(this.Hc);this.stream=this.c_(e),this.stream.__((function(){n((function(){return t.state=2,t.listener.__()}))})),this.stream.h_((function(e){n((function(){return t.u_(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.Zc=function(){var e=this;this.state=4,this.oh.Ur((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.state=0,this.start(),[2]}))}))}))},e.prototype.u_=function(e){return _t("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.o_=function(e){var t=this;return function(n){t.Nr.Zr((function(){return t.Hc===e?n():(_t("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),ei=function(e){function t(t,n,r,i,a){var o=this;return(o=e.call(this,t,"listen_stream_connection_backoff","listen_stream_idle",n,r,a)||this).serializer=i,o}return i.__extends(t,e),t.prototype.c_=function(e){return this.Gc.l_("Listen",e)},t.prototype.onMessage=function(e){this.oh.reset();var t=this.serializer.Fi(e),n=this.serializer.ki(e);return this.listener.d_(t,n)},t.prototype.f_=function(e){var t={};t.database=this.serializer.pi,t.addTarget=this.serializer.xe(e);var n=this.serializer.en(e);n&&(t.labels=n),this.i_(t)},t.prototype.T_=function(e){var t={};t.database=this.serializer.pi,t.removeTarget=e,this.i_(t)},t}(Zr),ti=function(e){function t(t,n,r,i,a){var o=this;return(o=e.call(this,t,"write_stream_connection_backoff","write_stream_idle",n,r,a)||this).serializer=i,o.E_=!1,o.lastStreamToken=I.xt,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"I_",{get:function(){return this.E_},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.E_=!1,e.prototype.start.call(this)},t.prototype.r_=function(){this.E_&&this.w_([])},t.prototype.c_=function(e){return this.Gc.l_("Write",e)},t.prototype.onMessage=function(e){if(Tt(!!e.streamToken),this.lastStreamToken=this.serializer.Ii(e.streamToken),this.E_){this.oh.reset();var t=this.serializer.Wi(e.writeResults,e.commitTime),n=this.serializer.fromVersion(e.commitTime);return this.listener.R_(n,t)}return Tt(!e.writeResults||0===e.writeResults.length),this.E_=!0,this.listener.A_()},t.prototype.m_=function(){var e={};e.database=this.serializer.pi,this.i_(e)},t.prototype.w_=function(e){var t=this,n={streamToken:this.serializer.Ei(this.lastStreamToken),writes:e.map((function(e){return t.serializer.$i(e)}))};this.i_(n)},t}(Zr),ni=function(){function e(e,t,n,r){this.Nr=e,this.Gc=t,this.credentials=n,this.serializer=r}return e.prototype.P_=function(e){return new ti(this.Nr,this.Gc,this.credentials,this.serializer,e)},e.prototype.V_=function(e){return new ei(this.Nr,this.Gc,this.credentials,this.serializer,e)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.pi,writes:e.map((function(e){return t.serializer.$i(e)}))};return this.g_("Commit",n).then((function(e){return t.serializer.Wi(e.writeResults,e.commitTime)}))},e.prototype.p_=function(e){var t=this,n={database:this.serializer.pi,documents:e.map((function(e){return t.serializer.mi(e)}))};return this.y_("BatchGetDocuments",n).then((function(n){var r=ze();n.forEach((function(e){var n=t.serializer.Ci(e);r=r.nt(n.key,n)}));var i=[];return e.forEach((function(e){var t=r.get(e);Tt(!!t),i.push(t)})),i}))},e.prototype.g_=function(e,t){var n=this;return this.credentials.getToken().then((function(r){return n.Gc.g_(e,t,r)})).catch((function(e){throw e.code===h.UNAUTHENTICATED&&n.credentials._(),e}))},e.prototype.y_=function(e,t){var n=this;return this.credentials.getToken().then((function(r){return n.Gc.y_(e,t,r)})).catch((function(e){throw e.code===h.UNAUTHENTICATED&&n.credentials._(),e}))},e}(),ri=function(){function e(e){this.b_=e,this.v_=Ke(),this.mutations=[],this.S_=!1,this.D_=null,this.C_=new Set}return e.prototype.p_=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.F_(),this.mutations.length>0)throw new p(h.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,this.b_.p_(e)];case 1:return[2,((t=r.sent()).forEach((function(e){e instanceof we||e instanceof _e?n.N_(e):Et()})),t)]}}))}))},e.prototype.set=function(e,t){this.write(t.gc(e,this.Zt(e))),this.C_.add(e)},e.prototype.update=function(e,t){try{this.write(t.gc(e,this.k_(e)))}catch(e){this.D_=e}this.C_.add(e)},e.prototype.delete=function(e){this.write([new me(e,this.Zt(e))]),this.C_.add(e)},e.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.F_(),this.D_)throw this.D_;return e=this.v_,this.mutations.forEach((function(t){e=e.remove(t.key)})),e.forEach((function(e,n){t.mutations.push(new ve(e,t.Zt(e)))})),[4,this.b_.commit(this.mutations)];case 1:return n.sent(),this.S_=!0,[2]}}))}))},e.prototype.N_=function(e){var t;if(e instanceof _e)t=e.version;else{if(!(e instanceof we))throw Et();t=_.S()}var n=this.v_.get(e.key);if(null!==n){if(!t.isEqual(n))throw new p(h.ABORTED,"Document version changed between two reads.")}else this.v_=this.v_.nt(e.key,t)},e.prototype.Zt=function(e){var t=this.v_.get(e);return!this.C_.has(e)&&t?ue.updateTime(t):ue.NONE},e.prototype.k_=function(e){var t=this.v_.get(e);if(!this.C_.has(e)&&t){if(t.isEqual(_.S()))throw new p(h.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ue.updateTime(t)}return ue.exists(!0)},e.prototype.write=function(e){this.F_(),this.mutations=this.mutations.concat(e)},e.prototype.F_=function(){},e}(),ii=function(){function e(e,t){this.jr=e,this.M_=t,this.state="Unknown",this.L_=0,this.O_=null,this.x_=!0}return e.prototype.B_=function(){var e=this;0===this.L_&&(this.q_("Unknown"),this.O_=this.jr.Wr("online_state_timeout",1e4,(function(){return e.O_=null,e.U_("Backend didn't respond within 10 seconds."),e.q_("Offline"),Promise.resolve()})))},e.prototype.Q_=function(e){"Online"===this.state?this.q_("Unknown"):(this.L_++,this.L_>=1&&(this.W_(),this.U_("Connection failed 1 times. Most recent error: "+e.toString()),this.q_("Offline")))},e.prototype.set=function(e){this.W_(),this.L_=0,"Online"===e&&(this.x_=!1),this.q_(e)},e.prototype.q_=function(e){e!==this.state&&(this.state=e,this.M_(e))},e.prototype.U_=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.x_?(wt(t),this.x_=!1):_t("OnlineStateTracker",t)},e.prototype.W_=function(){null!==this.O_&&(this.O_.cancel(),this.O_=null)},e}(),ai=function(){function e(e,t,n,r,a){var o=this;this.j_=e,this.b_=t,this.K_=[],this.G_=new Map,this.z_=null,this.networkEnabled=!1,this.isPrimary=!1,this.H_=a,this.H_.Y_((function(e){n.Zr((function(){return i.__awaiter(o,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.J_()?(_t("RemoteStore","Restarting streams for network reachability change."),[4,this.X_()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))})),this.Z_=new ii(n,r),this.tl=this.b_.V_({__:this.el.bind(this),h_:this.sl.bind(this),d_:this.il.bind(this)}),this.nl=this.b_.P_({__:this.rl.bind(this),h_:this.hl.bind(this),A_:this.ol.bind(this),R_:this.R_.bind(this)})}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.enableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!0,this.J_()?(e=this.nl,[4,this.j_.Fo()]):[3,3];case 1:return e.lastStreamToken=t.sent(),this.al()?this.ul():this.Z_.set("Unknown"),[4,this.cl()];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this._l()];case 1:return e.sent(),this.Z_.set("Offline"),[2]}}))}))},e.prototype._l=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.nl.stop()];case 1:return e.sent(),[4,this.tl.stop()];case 2:return e.sent(),this.K_.length>0&&(_t("RemoteStore","Stopping write stream with "+this.K_.length+" pending writes"),this.K_=[]),this.ll(),[2]}}))}))},e.prototype.mu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return _t("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this._l()];case 1:return e.sent(),this.H_.mu(),this.Z_.set("Unknown"),[2]}}))}))},e.prototype.listen=function(e){this.G_.has(e.targetId)||(this.G_.set(e.targetId,e),this.al()?this.ul():this.tl.Xc()&&this.dl(e))},e.prototype.fl=function(e){this.G_.delete(e),this.tl.Xc()&&this.Tl(e),0===this.G_.size&&(this.tl.Xc()?this.tl.e_():this.J_()&&this.Z_.set("Unknown"))},e.prototype.ui=function(e){return this.G_.get(e)||null},e.prototype.ai=function(e){return this.El.ai(e)},e.prototype.dl=function(e){this.z_.Bs(e.targetId),this.tl.f_(e)},e.prototype.Tl=function(e){this.z_.Bs(e),this.tl.T_(e)},e.prototype.ul=function(){this.z_=new ct(this),this.tl.start(),this.Z_.B_()},e.prototype.al=function(){return this.J_()&&!this.tl.Jc()&&this.G_.size>0},e.prototype.J_=function(){return this.isPrimary&&this.networkEnabled},e.prototype.ll=function(){this.z_=null},e.prototype.el=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(t){return this.G_.forEach((function(t,n){e.dl(t)})),[2]}))}))},e.prototype.sl=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.ll(),this.al()?(this.Z_.Q_(e),this.ul()):this.Z_.set("Unknown"),[2]}))}))},e.prototype.il=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:return this.Z_.set("Online"),e instanceof st&&2===e.state&&e.cause?[2,this.Il(e)]:(e instanceof at?this.z_.zs(e):e instanceof ot?this.z_.si(e):this.z_.Js(e),t.isEqual(_.MIN)?[3,4]:[4,this.j_.ea()]);case 1:return n=r.sent(),t.D(n)>=0?[4,this.wl(t)]:[3,3];case 2:r.sent(),r.label=3;case 3:r.label=4;case 4:return[2]}}))}))},e.prototype.wl=function(e){var t=this,n=this.z_.ri(e);return n.Ts.forEach((function(n,r){if(n.resumeToken.Ot()>0){var i=t.G_.get(r);i&&t.G_.set(r,i.ss(n.resumeToken,e))}})),n.Es.forEach((function(e){var n=t.G_.get(e);if(n){t.G_.set(e,n.ss(I.xt,n.ts)),t.Tl(e);var r=new Be(n.target,e,1,n.sequenceNumber);t.dl(r)}})),this.El.tc(n)},e.prototype.Il=function(e){var t=this,n=e.cause,r=Promise.resolve();return e.targetIds.forEach((function(e){r=r.then((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.G_.has(e)?[2,(this.G_.delete(e),this.z_.removeTarget(e),this.El.Rl(e,n))]:[2]}))}))}))})),r},e.prototype.cl=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return this.Al()?(e=this.K_.length>0?this.K_[this.K_.length-1].batchId:-1,[4,this.j_.nc(e)]):[3,5];case 1:return null!==(t=n.sent())?[3,2]:(0===this.K_.length&&this.nl.e_(),[3,4]);case 2:return this.ml(t),[4,this.cl()];case 3:n.sent(),n.label=4;case 4:n.label=5;case 5:return this.Pl()&&this.Vl(),[2]}}))}))},e.prototype.Al=function(){return this.J_()&&this.K_.length<10},e.prototype.gl=function(){return this.K_.length},e.prototype.ml=function(e){this.K_.push(e),this.nl.Xc()&&this.nl.I_&&this.nl.w_(e.mutations)},e.prototype.Pl=function(){return this.J_()&&!this.nl.Jc()&&this.K_.length>0},e.prototype.Vl=function(){this.nl.start()},e.prototype.rl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.nl.m_(),[2]}))}))},e.prototype.ol=function(){var e=this;return this.j_.No(this.nl.lastStreamToken).then((function(){for(var t=0,n=e.K_;t<n.length;t++){var r=n[t];e.nl.w_(r.mutations)}})).catch(sr)},e.prototype.R_=function(e,t){var n=this,r=this.K_.shift(),i=Dt.from(r,e,t,this.nl.lastStreamToken);return this.El.pl(i).then((function(){return n.cl()}))},e.prototype.hl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){return e&&this.K_.length>0?[2,(t=this.nl.I_?this.yl(e):this.bl(e),t.then((function(){n.Pl()&&n.Vl()})))]:[2]}))}))},e.prototype.bl=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return Fe(e.code)?[2,(_t("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.nl.lastStreamToken),this.nl.lastStreamToken=I.xt,this.j_.No(I.xt).catch(sr))]:[2]}))}))},e.prototype.yl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r=this;return i.__generator(this,(function(i){return Fe(n=e.code)&&n!==h.ABORTED?(t=this.K_.shift(),[2,(this.nl.t_(),this.El.vl(t.batchId,e).then((function(){return r.cl()})))]):[2]}))}))},e.prototype.Sl=function(){return new ri(this.b_)},e.prototype.X_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this._l()];case 1:return e.sent(),this.Z_.set("Unknown"),[4,this.enableNetwork()];case 2:return e.sent(),[2]}}))}))},e.prototype.Dl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.J_()?(_t("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.X_()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.Cl=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.isPrimary=e,e&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return t.sent(),[3,5];case 2:return e?[3,4]:[4,this._l()];case 3:t.sent(),this.Z_.set("Unknown"),t.label=4;case 4:t.label=5;case 5:return[2]}}))}))},e}();function oi(e,t){return"firestore_clients_"+e+"_"+t}function si(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.t()&&(r+="_"+t.uid),r}function li(e,t){return"firestore_targets_"+e+"_"+t}var ci=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}return e.Fl=function(t,n,r){var i=JSON.parse(r),a="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),o=void 0;return a&&i.error&&(a="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(o=new p(i.error.code,i.error.message)),a?new e(t,n,i.state,o):(wt("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.Nl=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),ui=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n}return e.Fl=function(t,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),a=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(a=new p(r.error.code,r.error.message)),i?new e(t,r.state,a):(wt("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.Nl=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),di=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.Fl=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,a=Ze(),o=0;i&&o<r.activeTargetIds.length;++o)i=R(r.activeTargetIds[o]),a=a.add(r.activeTargetIds[o]);return i?new e(t,a):(wt("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),hi=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.Fl=function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(wt("SharedClientState","Failed to parse online state: "+t),null)},e}(),pi=function(){function e(){this.activeTargetIds=Ze()}return e.prototype.kl=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.$l=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.Nl=function(){var e={activeTargetIds:this.activeTargetIds.j(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),fi=function(){function e(t,n,r,i,a){if(this.Nr=t,this.platform=n,this.persistenceKey=r,this.Ml=i,this.El=null,this.M_=null,this.vr=null,this.Ll=this.Ol.bind(this),this.xl=new C(Ct),this.Kh=!1,this.Bl=[],!e.ho(this.platform))throw new p(h.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=a,this.ql=oi(this.persistenceKey,this.Ml),this.Ul=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.xl=this.xl.nt(this.Ml,new pi),this.Ql=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Wl=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.jl=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Kl=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Ll)}return e.ho=function(e){return!(!e.window||null==e.window.localStorage)},e.prototype.start=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,a,o,s,l,c,u,d,h=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.El.yu()];case 1:for(e=i.sent(),t=0,n=e;t<n.length;t++)(r=n[t])!==this.Ml&&(a=this.getItem(oi(this.persistenceKey,r)))&&(o=di.Fl(r,a))&&(this.xl=this.xl.nt(o.clientId,o));for(this.Gl(),(s=this.storage.getItem(this.Kl))&&(l=this.zl(s))&&this.Hl(l),c=0,u=this.Bl;c<u.length;c++)d=u[c],this.Ol(d);return this.Bl=[],this.platform.window.addEventListener("unload",(function(){return h.mu()})),this.Kh=!0,[2]}}))}))},e.prototype.Cr=function(e){this.setItem(this.Ul,JSON.stringify(e))},e.prototype.Yl=function(){return this.Jl(this.xl)},e.prototype.Xl=function(e){var t=!1;return this.xl.forEach((function(n,r){r.activeTargetIds.has(e)&&(t=!0)})),t},e.prototype.Zl=function(e){this.td(e,"pending")},e.prototype.ed=function(e,t,n){this.td(e,t,n),this.sd(e)},e.prototype.nd=function(e){var t="not-current";if(this.Xl(e)){var n=this.storage.getItem(li(this.persistenceKey,e));if(n){var r=ui.Fl(e,n);r&&(t=r.state)}}return this.rd.kl(e),this.Gl(),t},e.prototype.hd=function(e){this.rd.$l(e),this.Gl()},e.prototype.od=function(e){return this.rd.activeTargetIds.has(e)},e.prototype.ad=function(e){this.removeItem(li(this.persistenceKey,e))},e.prototype.ud=function(e,t,n){this._d(e,t,n)},e.prototype.Gu=function(e,t,n){var r=this;t.forEach((function(e){r.sd(e)})),this.currentUser=e,n.forEach((function(e){r.Zl(e)}))},e.prototype.ld=function(e){this.dd(e)},e.prototype.mu=function(){this.Kh&&(this.platform.window.removeEventListener("storage",this.Ll),this.removeItem(this.ql),this.Kh=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return _t("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){_t("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){_t("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.Ol=function(e){var t=this;if(e.storageArea===this.storage){if(_t("SharedClientState","EVENT",e.key,e.newValue),e.key===this.ql)return void wt("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Nr.Ih((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,n,r,a,o,s;return i.__generator(this,(function(i){if(this.Kh){if(null!==e.key)if(this.Ql.test(e.key)){if(null==e.newValue)return t=this.fd(e.key),[2,this.Td(t,null)];if(n=this.Ed(e.key,e.newValue))return[2,this.Td(n.clientId,n)]}else if(this.Wl.test(e.key)){if(null!==e.newValue&&(r=this.Id(e.key,e.newValue)))return[2,this.wd(r)]}else if(this.jl.test(e.key)){if(null!==e.newValue&&(a=this.Rd(e.key,e.newValue)))return[2,this.Ad(a)]}else if(e.key===this.Kl){if(null!==e.newValue&&(o=this.zl(e.newValue)))return[2,this.Hl(o)]}else e.key===this.Ul&&(s=function(e){var t=Ht.Fr;if(null!=e)try{var n=JSON.parse(e);Tt("number"==typeof n),t=n}catch(e){wt("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(e.newValue))!==Ht.Fr&&this.vr(s)}else this.Bl.push(e);return[2]}))}))}))}},Object.defineProperty(e.prototype,"rd",{get:function(){return this.xl.get(this.Ml)},enumerable:!0,configurable:!0}),e.prototype.Gl=function(){this.setItem(this.ql,this.rd.Nl())},e.prototype.td=function(e,t,n){var r=new ci(this.currentUser,e,t,n),i=si(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Nl())},e.prototype.sd=function(e){var t=si(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.dd=function(e){var t={clientId:this.Ml,onlineState:e};this.storage.setItem(this.Kl,JSON.stringify(t))},e.prototype._d=function(e,t,n){var r=li(this.persistenceKey,e),i=new ui(e,t,n);this.setItem(r,i.Nl())},e.prototype.fd=function(e){var t=this.Ql.exec(e);return t?t[1]:null},e.prototype.Ed=function(e,t){var n=this.fd(e);return di.Fl(n,t)},e.prototype.Id=function(e,t){var n=this.Wl.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return ci.Fl(new d(i),r,t)},e.prototype.Rd=function(e,t){var n=this.jl.exec(e),r=Number(n[1]);return ui.Fl(r,t)},e.prototype.zl=function(e){return hi.Fl(e)},e.prototype.wd=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return e.user.uid===this.currentUser.uid?[2,this.El.md(e.batchId,e.state,e.error)]:(_t("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2])}))}))},e.prototype.Ad=function(e){return this.El.Pd(e.targetId,e.state,e.error)},e.prototype.Td=function(e,t){var n=this,r=t?this.xl.nt(e,t):this.xl.remove(e),i=this.Jl(this.xl),a=this.Jl(r),o=[],s=[];return a.forEach((function(e){i.has(e)||o.push(e)})),i.forEach((function(e){a.has(e)||s.push(e)})),this.El.Vd(o,s).then((function(){n.xl=r}))},e.prototype.Hl=function(e){this.xl.get(e.clientId)&&this.M_(e.onlineState)},e.prototype.Jl=function(e){var t=Ze();return e.forEach((function(e,n){t=t.kt(n.activeTargetIds)})),t},e}(),mi=function(){function e(){this.gd=new pi,this.pd={},this.El=null,this.M_=null,this.vr=null}return e.prototype.Zl=function(e){},e.prototype.ed=function(e,t,n){},e.prototype.nd=function(e){return this.gd.kl(e),this.pd[e]||"not-current"},e.prototype.ud=function(e,t,n){this.pd[e]=t},e.prototype.hd=function(e){this.gd.$l(e)},e.prototype.od=function(e){return this.gd.activeTargetIds.has(e)},e.prototype.ad=function(e){delete this.pd[e]},e.prototype.Yl=function(){return this.gd.activeTargetIds},e.prototype.Xl=function(e){return this.gd.activeTargetIds.has(e)},e.prototype.start=function(){return this.gd=new pi,Promise.resolve()},e.prototype.Gu=function(e,t,n){},e.prototype.ld=function(e){},e.prototype.mu=function(){},e.prototype.Cr=function(e){},e}(),vi=function(e){this.key=e},gi=function(e){this.key=e},yi=function(){function e(e,t){this.query=e,this.yd=t,this.bd=null,this.ms=!1,this.vd=Xe(),this._s=Xe(),this.Sd=new et(e.Be.bind(e))}return Object.defineProperty(e.prototype,"Dd",{get:function(){return this.yd},enumerable:!0,configurable:!0}),e.prototype.Cd=function(e,t){var n=this,r=t?t.Fd:new tt,i=t?t.Sd:this.Sd,a=t?t._s:this._s,o=i,s=!1,l=this.query.je()&&i.size===this.query.limit?i.last():null,c=this.query.Ke()&&i.size===this.query.limit?i.first():null;if(e.ut((function(e,t){var u=i.get(e),d=t instanceof _e?t:null;d&&(d=n.query.matches(d)?d:null);var h=!!u&&n._s.has(u.key),p=!!d&&(d.te||n._s.has(d.key)&&d.hasCommittedMutations),f=!1;u&&d?u.data().isEqual(d.data())?h!==p&&(r.track({type:3,doc:d}),f=!0):n.Nd(u,d)||(r.track({type:2,doc:d}),f=!0,(l&&n.query.Be(d,l)>0||c&&n.query.Be(d,c)<0)&&(s=!0)):!u&&d?(r.track({type:0,doc:d}),f=!0):u&&!d&&(r.track({type:1,doc:u}),f=!0,(l||c)&&(s=!0)),f&&(d?(o=o.add(d),a=p?a.add(e):a.delete(e)):(o=o.delete(e),a=a.delete(e)))})),this.query.je()||this.query.Ke())for(;o.size>this.query.limit;){var u=this.query.je()?o.last():o.first();o=o.delete(u.key),a=a.delete(u.key),r.track({type:1,doc:u})}return{Sd:o,Fd:r,kd:s,_s:a}},e.prototype.Nd=function(e,t){return e.te&&t.hasCommittedMutations&&!t.te},e.prototype.ir=function(e,t,n){var r=this,i=this.Sd;this.Sd=e.Sd,this._s=e._s;var a=e.Fd.us();a.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Et()}};return n(e)-n(t)}(e.type,t.type)||r.query.Be(e.doc,t.doc)})),this.$d(n);var o=t?this.Md():[],s=0===this.vd.size&&this.ms?1:0,l=s!==this.bd;return this.bd=s,0!==a.length||l?{snapshot:new nt(this.query,e.Sd,i,a,e._s,0===s,l,!1),Ld:o}:{Ld:o}},e.prototype.Od=function(e){return this.ms&&"Offline"===e?(this.ms=!1,this.ir({Sd:this.Sd,Fd:new tt,_s:this._s,kd:!1},!1)):{Ld:[]}},e.prototype.xd=function(e){return!this.yd.has(e)&&!!this.Sd.has(e)&&!this.Sd.get(e).te},e.prototype.$d=function(e){var t=this;e&&(e.Ps.forEach((function(e){return t.yd=t.yd.add(e)})),e.Vs.forEach((function(e){})),e.gs.forEach((function(e){return t.yd=t.yd.delete(e)})),this.ms=e.ms)},e.prototype.Md=function(){var e=this;if(!this.ms)return[];var t=this.vd;this.vd=Xe(),this.Sd.forEach((function(t){e.xd(t.key)&&(e.vd=e.vd.add(t.key))}));var n=[];return t.forEach((function(t){e.vd.has(t)||n.push(new gi(t))})),this.vd.forEach((function(e){t.has(e)||n.push(new vi(e))})),n},e.prototype.Bd=function(e){this.yd=e.uc,this.vd=Xe();var t=this.Cd(e.documents);return this.ir(t,!0)},e.prototype.qd=function(){return nt.fs(this.query,this.Sd,this._s,0===this.bd)},e}(),bi=function(){function e(e,t,n,r){this.jr=e,this.Ud=t,this.updateFunction=n,this.zr=r,this.Qd=5,this.oh=new zt(this.jr,"transaction_retry")}return e.prototype.Wd=function(){this.jd()},e.prototype.jd=function(){var e=this;this.oh.Ur((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,t,n=this;return i.__generator(this,(function(r){return e=this.Ud.Sl(),(t=this.Kd(e))&&t.then((function(t){n.jr.Zr((function(){return e.commit().then((function(){n.zr.resolve(t)})).catch((function(e){n.Gd(e)}))}))})).catch((function(e){n.Gd(e)})),[2]}))}))}))},e.prototype.Kd=function(e){try{var t=this.updateFunction(e);return!A(t)&&t.catch&&t.then?t:(this.zr.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.zr.reject(e),null}},e.prototype.Gd=function(e){var t=this;this.Qd>0&&this.zd(e)?(this.Qd-=1,this.jr.Zr((function(){return t.jd(),Promise.resolve()}))):this.zr.reject(e)},e.prototype.zd=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Fe(t)}return!1},e}(),_i=function(e,t,n){this.query=e,this.targetId=t,this.view=n},wi=function(e){this.key=e,this.Hd=!1},ki=function(){function e(e,t,n,r,i){this.j_=e,this.Ud=t,this.Yd=n,this.currentUser=r,this.Jd=i,this.Xd=null,this.Zd=new Pt((function(e){return e.canonicalId()})),this.tf=new Map,this.ef=[],this.sf=new C(S.k),this.if=new Map,this.nf=new It,this.rf={},this.hf=new Map,this.af=yn.Jo(),this.onlineState="Unknown"}return Object.defineProperty(e.prototype,"uf",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.subscribe=function(e){this.Xd=e},e.prototype.listen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("listen()"),(r=this.Zd.get(e))?(t=r.targetId,this.Yd.nd(t),n=r.view.qd(),[3,4]):[3,1];case 1:return[4,this.j_.hc(e.xe())];case 2:return a=i.sent(),o=this.Yd.nd(a.targetId),t=a.targetId,[4,this._f(e,t,"current"===o)];case 3:n=i.sent(),this.uf&&this.Ud.listen(a),i.label=4;case 4:return[2,(this.Xd.d_([n]),t)]}}))}))},e.prototype._f=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,a,o,s,l,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.j_.ac(e,!0)];case 1:return r=i.sent(),a=new yi(e,r.uc),o=a.Cd(r.documents),s=it.As(t,n&&"Offline"!==this.onlineState),l=a.ir(o,this.uf,s),this.lf(t,l.Ld),c=new _i(e,t,a),[2,(this.Zd.set(e,c),this.tf.has(t)?this.tf.get(t).push(e):this.tf.set(t,[e]),l.snapshot)]}}))}))},e.prototype.fl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("unlisten()"),t=this.Zd.get(e),(n=this.tf.get(t.targetId)).length>1?[2,(this.tf.set(t.targetId,n.filter((function(t){return!t.isEqual(e)}))),void this.Zd.delete(e))]:this.uf?(this.Yd.hd(t.targetId),this.Yd.Xl(t.targetId)?[3,2]:[4,this.j_.oc(t.targetId,!1).then((function(){r.Yd.ad(t.targetId),r.Ud.fl(t.targetId),r.df(t.targetId)})).catch(sr)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.df(t.targetId),[4,this.j_.oc(t.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.write=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r;return i.__generator(this,(function(i){switch(i.label){case 0:this.cf("write()"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.j_.Ju(e)];case 2:return n=i.sent(),[3,4];case 3:if("IndexedDbTransactionError"===(r=i.sent()).name)return[2,(wt("SyncEngine","Dropping write that cannot be persisted: "+r),void t.reject(new p(h.UNAVAILABLE,"Failed to persist write: "+r)))];throw r;case 4:return this.Yd.Zl(n.batchId),this.ff(n.batchId,t),[4,this.Tf(n.zn)];case 5:return i.sent(),[4,this.Ud.cl()];case 6:return i.sent(),[2]}}))}))},e.prototype.runTransaction=function(e,t,n){new bi(e,this.Ud,t,n).Wd()},e.prototype.tc=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.cf("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.j_.tc(e)];case 2:return t=r.sent(),e.Ts.forEach((function(e,t){var r=n.if.get(t);r&&(Tt(e.Ps.size+e.Vs.size+e.gs.size<=1),e.Ps.size>0?r.Hd=!0:e.Vs.size>0?Tt(r.Hd):e.gs.size>0&&(Tt(r.Hd),r.Hd=!1))})),[4,this.Tf(t,e)];case 3:return r.sent(),[3,6];case 4:return[4,sr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.Od=function(e,t){this.cf("applyOnlineStateChange()");var n=[];this.Zd.forEach((function(t,r){var i=r.view.Od(e);i.snapshot&&n.push(i.snapshot)})),this.Xd.Ef(e),this.Xd.d_(n),this.onlineState=e},e.prototype.Rl=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,s,l=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("rejectListens()"),this.Yd.ud(e,"rejected",t),n=this.if.get(e),(r=n&&n.key)?(this.sf=this.sf.remove(r),this.if.delete(e),this.If(),a=(a=new C(S.k)).nt(r,new we(r,_.S())),o=Xe().add(r),s=new rt(_.MIN,new Map,new $(Ct),a,o),[2,this.tc(s)]):[4,this.j_.oc(e,!1).then((function(){return l.df(e,t)})).catch(sr)];case 1:return i.sent(),[2]}}))}))},e.prototype.pl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.cf("applySuccessfulWrite()"),t=e.batch.batchId,this.wf(t,null),this.Rf(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.j_.Do(e)];case 2:return n=r.sent(),this.Yd.ed(t,"acknowledged"),[4,this.Tf(n)];case 3:return r.sent(),[3,6];case 4:return[4,sr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.vl=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.cf("rejectFailedWrite()"),this.wf(e,t),this.Rf(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.j_.Zu(e)];case 2:return n=r.sent(),this.Yd.ed(e,"rejected",t),[4,this.Tf(n)];case 3:return r.sent(),[3,6];case 4:return[4,sr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.Af=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return this.Ud.J_()||_t("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.j_.qo()];case 1:return-1===(t=r.sent())?[2,void e.resolve()]:((n=this.hf.get(t)||[]).push(e),this.hf.set(t,n),[2])}}))}))},e.prototype.Rf=function(e){(this.hf.get(e)||[]).forEach((function(e){e.resolve()})),this.hf.delete(e)},e.prototype.mf=function(e){this.hf.forEach((function(t){t.forEach((function(t){t.reject(new p(h.CANCELLED,e))}))})),this.hf.clear()},e.prototype.ff=function(e,t){var n=this.rf[this.currentUser.s()];n||(n=new C(Ct)),n=n.nt(e,t),this.rf[this.currentUser.s()]=n},e.prototype.wf=function(e,t){var n=this.rf[this.currentUser.s()];if(n){var r=n.get(e);r&&(t?r.reject(t):r.resolve(),n=n.remove(e)),this.rf[this.currentUser.s()]=n}},e.prototype.df=function(e,t){var n=this;void 0===t&&(t=null),this.Yd.hd(e);for(var r=0,i=this.tf.get(e);r<i.length;r++){var a=i[r];this.Zd.delete(a),t&&this.Xd.Pf(a,t)}if(this.tf.delete(e),this.uf){var o=this.nf.$n(e);this.nf.Nn(e),o.forEach((function(e){n.nf.Mn(e)||n.Vf(e)}))}},e.prototype.Vf=function(e){var t=this.sf.get(e);null!==t&&(this.Ud.fl(t),this.sf=this.sf.remove(e),this.if.delete(t),this.If())},e.prototype.lf=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];i instanceof vi?(this.nf.vn(i.key,e),this.gf(i)):i instanceof gi?(_t("SyncEngine","Document no longer in limbo: "+i.key),this.nf.Dn(i.key,e),this.nf.Mn(i.key)||this.Vf(i.key)):Et()}},e.prototype.gf=function(e){var t=e.key;this.sf.get(t)||(_t("SyncEngine","New document in limbo: "+t),this.ef.push(t),this.If())},e.prototype.If=function(){for(;this.ef.length>0&&this.sf.size<this.Jd;){var e=this.ef.shift(),t=this.af.next();this.if.set(t,new wi(e)),this.sf=this.sf.nt(e,t),this.Ud.listen(new Be(Te.ve(e.path).xe(),t,2,Ht.Fr))}},e.prototype.pf=function(){return this.sf},e.prototype.yf=function(){return this.ef},e.prototype.Tf=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=[],r=[],a=[],this.Zd.forEach((function(i,s){a.push(Promise.resolve().then((function(){var t=s.view.Cd(e);return t.kd?o.j_.ac(s.query,!1).then((function(e){var n=e.documents;return s.view.Cd(n,t)})):t})).then((function(e){var i=t&&t.Ts.get(s.targetId),a=s.view.ir(e,o.uf,i);if(o.lf(s.targetId,a.Ld),a.snapshot){o.uf&&o.Yd.ud(s.targetId,a.snapshot.fromCache?"not-current":"current"),n.push(a.snapshot);var l=Ft.br(s.targetId,a.snapshot);r.push(l)}})))})),[4,Promise.all(a)];case 1:return i.sent(),this.Xd.d_(n),[4,this.j_.ic(r)];case 2:return i.sent(),[2]}}))}))},e.prototype.cf=function(e){},e.prototype.Dl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return t=!this.currentUser.isEqual(e),this.currentUser=e,t?(this.mf("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.j_.Gu(e)]):[3,3];case 1:return n=r.sent(),this.Yd.Gu(e,n.Hu,n.Yu),[4,this.Tf(n.zu)];case 2:r.sent(),r.label=3;case 3:return[4,this.Ud.Dl()];case 4:return r.sent(),[2]}}))}))},e.prototype.enableNetwork=function(){return this.Ud.enableNetwork()},e.prototype.disableNetwork=function(){return this.Ud.disableNetwork()},e.prototype.ai=function(e){var t=this.if.get(e);if(t&&t.Hd)return Xe().add(t.key);var n=Xe(),r=this.tf.get(e);if(!r)return n;for(var i=0,a=r;i<a.length;i++){var o=a[i],s=this.Zd.get(o);n=n.kt(s.view.Dd)}return n},e}(),Ei=function(e){function t(t,n,r,i,a){var o=this;return(o=e.call(this,t,n,r,i,a)||this).j_=t,o.isPrimary=void 0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"uf",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),t.prototype.enableNetwork=function(){return this.j_.uu(!0),e.prototype.enableNetwork.call(this)},t.prototype.disableNetwork=function(){return this.j_.uu(!1),e.prototype.disableNetwork.call(this)},t.prototype.bf=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,this.j_.ac(e.query,!0)];case 1:return t=r.sent(),n=e.view.Bd(t),[2,(this.isPrimary&&this.lf(e.targetId,n.Ld),n)]}}))}))},t.prototype.Od=function(t,n){this.uf&&0===n&&(e.prototype.Od.call(this,t,n),this.Yd.ld(t)),this.uf||1!==n||e.prototype.Od.call(this,t,n)},t.prototype.md=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("applyBatchState()"),[4,this.j_.lc(e)];case 1:return null===(r=i.sent())?[3,6]:"pending"!==t?[3,3]:[4,this.Ud.cl()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===t||"rejected"===t?(this.wf(e,n||null),this.j_.dc(e)):Et(),i.label=4;case 4:return[4,this.Tf(r)];case 5:return i.sent(),[3,7];case 6:_t("SyncEngine","Cannot apply mutation batch with id: "+e),i.label=7;case 7:return[2]}}))}))},t.prototype.Cl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,o,s,l,c=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!0!==e||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.Ud.Cl(!0)]);case 1:return i.sent(),t=this.Yd.Yl(),[4,this.vf(t.j())];case 2:for(n=i.sent(),r=0,a=n;r<a.length;r++)o=a[r],this.Ud.listen(o);return[3,7];case 3:return!1!==e||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,s=[],l=Promise.resolve(),this.tf.forEach((function(e,t){c.Yd.od(t)?s.push(t):l=l.then((function(){return c.df(t),c.j_.oc(t,!0)})),c.Ud.fl(t)})),[4,l]);case 4:return i.sent(),[4,this.vf(s)];case 5:return i.sent(),this.Sf(),[4,this.Ud.Cl(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))},t.prototype.Sf=function(){var e=this;this.if.forEach((function(t,n){e.Ud.fl(n)})),this.nf.kn(),this.if=new Map,this.sf=new C(S.k)},t.prototype.vf=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,o,s,l,c,u,d,h,p,f;return i.__generator(this,(function(i){switch(i.label){case 0:t=[],n=[],r=0,a=e,i.label=1;case 1:return r<a.length?(o=a[r],s=void 0,(l=this.tf.get(o))&&0!==l.length?[4,this.j_.oc(o,!0)]:[3,8]):[3,14];case 2:return i.sent(),[4,this.j_.hc(l[0].xe())];case 3:s=i.sent(),c=0,u=l,i.label=4;case 4:return c<u.length?(d=u[c],h=this.Zd.get(d),[4,this.bf(h)]):[3,7];case 5:(p=i.sent()).snapshot&&n.push(p.snapshot),i.label=6;case 6:return c++,[3,4];case 7:return[3,12];case 8:return[4,this.j_.fc(o)];case 9:return f=i.sent(),[4,this.j_.hc(f)];case 10:return s=i.sent(),[4,this._f(this.Df(f),o,!1)];case 11:i.sent(),i.label=12;case 12:t.push(s),i.label=13;case 13:return r++,[3,1];case 14:return[2,(this.Xd.d_(n),t)]}}))}))},t.prototype.Df=function(e){return new Te(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)},t.prototype.yu=function(){return this.j_.yu()},t.prototype.Pd=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,a;return i.__generator(this,(function(i){switch(i.label){case 0:return this.isPrimary?(_t("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.tf.has(e))return[3,8];switch(t){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,this.j_.ba()];case 3:return r=i.sent(),a=rt.Rs(e,"current"===t),[4,this.Tf(r,a)];case 4:return i.sent(),[3,8];case 5:return[4,this.j_.oc(e,!0)];case 6:return i.sent(),this.df(e,n),[3,8];case 7:Et(),i.label=8;case 8:return[2]}}))}))},t.prototype.Vd=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,s,l,c,u,d,h,p=this;return i.__generator(this,(function(f){switch(f.label){case 0:if(!this.isPrimary)return[3,10];n=0,r=e,f.label=1;case 1:return n<r.length?(a=r[n],this.tf.has(a)?(_t("SyncEngine","Adding an already active target "+a),[3,5]):[4,this.j_.fc(a)]):[3,6];case 2:return o=f.sent(),[4,this.j_.hc(o)];case 3:return s=f.sent(),[4,this._f(this.Df(o),s.targetId,!1)];case 4:f.sent(),this.Ud.listen(s),f.label=5;case 5:return n++,[3,1];case 6:l=function(e){return i.__generator(this,(function(t){switch(t.label){case 0:return c.tf.has(e)?[4,c.j_.oc(e,!1).then((function(){p.Ud.fl(e),p.df(e)})).catch(sr)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))},c=this,u=0,d=t,f.label=7;case 7:return u<d.length?(h=d[u],[5,l(h)]):[3,10];case 8:f.sent(),f.label=9;case 9:return u++,[3,7];case 10:return[2]}}))}))},t}(ki),Ti=function(){this.Cf=null,this.targetId=0,this.Ff=[]},Si=function(){function e(e){this.El=e,this.Nf=new Pt((function(e){return e.canonicalId()})),this.onlineState="Unknown",this.kf=new Set,this.El.subscribe(this)}return e.prototype.listen=function(e){var t=e.query,n=!1,r=this.Nf.get(t);return r||(n=!0,r=new Ti,this.Nf.set(t,r)),r.Ff.push(e),e.Od(this.onlineState),r.Cf&&e.$f(r.Cf)&&this.Mf(),n?this.El.listen(t).then((function(e){return r.targetId=e,e})):Promise.resolve(r.targetId)},e.prototype.fl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a;return i.__generator(this,(function(i){return t=e.query,n=!1,(r=this.Nf.get(t))&&(a=r.Ff.indexOf(e))>=0&&(r.Ff.splice(a,1),n=0===r.Ff.length),n?[2,(this.Nf.delete(t),this.El.fl(t))]:[2]}))}))},e.prototype.d_=function(e){for(var t=!1,n=0,r=e;n<r.length;n++){var i=r[n],a=i.query,o=this.Nf.get(a);if(o){for(var s=0,l=o.Ff;s<l.length;s++)l[s].$f(i)&&(t=!0);o.Cf=i}}t&&this.Mf()},e.prototype.Pf=function(e,t){var n=this.Nf.get(e);if(n)for(var r=0,i=n.Ff;r<i.length;r++)i[r].onError(t);this.Nf.delete(e)},e.prototype.Ef=function(e){this.onlineState=e;var t=!1;this.Nf.forEach((function(n,r){for(var i=0,a=r.Ff;i<a.length;i++)a[i].Od(e)&&(t=!0)})),t&&this.Mf()},e.prototype.Lf=function(e){this.kf.add(e),e.next()},e.prototype.Of=function(e){this.kf.delete(e)},e.prototype.Mf=function(){this.kf.forEach((function(e){e.next()}))},e}(),Ci=function(){function e(e,t,n){this.query=e,this.xf=t,this.Bf=!1,this.qf=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.$f=function(e){if(!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&t.push(i)}e=new nt(e.query,e.docs,e.cs,t,e._s,e.fromCache,e.ls,!0)}var a=!1;return this.Bf?this.Uf(e)&&(this.xf.next(e),a=!0):this.Qf(e,this.onlineState)&&(this.Wf(e),a=!0),this.qf=e,a},e.prototype.onError=function(e){this.xf.error(e)},e.prototype.Od=function(e){this.onlineState=e;var t=!1;return this.qf&&!this.Bf&&this.Qf(this.qf,e)&&(this.Wf(this.qf),t=!0),t},e.prototype.Qf=function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return!(this.options.jf&&n||e.docs.q()&&"Offline"!==t)},e.prototype.Uf=function(e){if(e.docChanges.length>0)return!0;var t=this.qf&&this.qf.hasPendingWrites!==e.hasPendingWrites;return!(!e.ls&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.Wf=function(e){e=nt.fs(e.query,e.docs,e._s,e.fromCache),this.Bf=!0,this.xf.next(e)},e}(),xi=function(){function e(){}return e.prototype.Ku=function(e){this.Kf=e},e.prototype.wr=function(e,t,n,r){var i=this;return t.Oe()||n.isEqual(_.MIN)?this.Gf(e,t):this.Kf.Tr(e,r).next((function(a){var s=i.zf(t,a);return(t.je()||t.Ke())&&i.kd(t.ge,s,r,n)?i.Gf(e,t):(yt()<=o.LogLevel.DEBUG&&_t("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),t.toString()),i.Kf.wr(e,t,n).next((function(e){return s.forEach((function(t){e=e.nt(t.key,t)})),e})))}))},e.prototype.zf=function(e,t){var n=new $((function(t,n){return e.Be(t,n)}));return t.forEach((function(t,r){r instanceof _e&&e.matches(r)&&(n=n.add(r))})),n},e.prototype.kd=function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.D(r)>0)},e.prototype.Gf=function(e,t){return yt()<=o.LogLevel.DEBUG&&_t("IndexFreeQueryEngine","Using full collection scan to execute query: %s",t.toString()),this.Kf.wr(e,t,_.MIN)},e}(),Mi=function(){function e(e,t){this.ur=e,this.yo=t,this.ar=[],this.Hf=1,this.lastStreamToken=I.xt,this.Yf=new $(At.Ie)}return e.prototype.So=function(e){return Nt.resolve(0===this.ar.length)},e.prototype.Do=function(e,t,n){var r=t.batchId,i=this.Jf(r,"acknowledged");return Tt(0===i),this.ar[i],this.lastStreamToken=n,Nt.resolve()},e.prototype.Fo=function(e){return Nt.resolve(this.lastStreamToken)},e.prototype.No=function(e,t){return this.lastStreamToken=t,Nt.resolve()},e.prototype.ko=function(e,t,n,r){var i=this.Hf;this.Hf++,this.ar.length>0&&this.ar[this.ar.length-1];var a=new Ot(i,t,n,r);this.ar.push(a);for(var o=0,s=r;o<s.length;o++){var l=s[o];this.Yf=this.Yf.add(new At(l.key,i)),this.ur.Mo(e,l.key.path.L())}return Nt.resolve(a)},e.prototype.Lo=function(e,t){return Nt.resolve(this.Xf(t))},e.prototype.Bo=function(e,t){var n=t+1,r=this.Zf(n),i=r<0?0:r;return Nt.resolve(this.ar.length>i?this.ar[i]:null)},e.prototype.qo=function(){return Nt.resolve(0===this.ar.length?-1:this.Hf-1)},e.prototype.Uo=function(e){return Nt.resolve(this.ar.slice())},e.prototype._r=function(e,t){var n=this,r=new At(t,0),i=new At(t,Number.POSITIVE_INFINITY),a=[];return this.Yf.Ct([r,i],(function(e){var t=n.Xf(e.Ln);a.push(t)})),Nt.resolve(a)},e.prototype.Ir=function(e,t){var n=this,r=new $(Ct);return t.forEach((function(e){var t=new At(e,0),i=new At(e,Number.POSITIVE_INFINITY);n.Yf.Ct([t,i],(function(e){r=r.add(e.Ln)}))})),Nt.resolve(this.tT(r))},e.prototype.Vr=function(e,t){var n=t.path,r=n.length+1,i=n;S.st(i)||(i=i.child(""));var a=new At(new S(i),0),o=new $(Ct);return this.Yf.Ft((function(e){var t=e.key.path;return!!n.U(t)&&(t.length===r&&(o=o.add(e.Ln)),!0)}),a),Nt.resolve(this.tT(o))},e.prototype.tT=function(e){var t=this,n=[];return e.forEach((function(e){var r=t.Xf(e);null!==r&&n.push(r)})),n},e.prototype.Wo=function(e,t){var n=this;Tt(0===this.Jf(t.batchId,"removed")),this.ar.shift();var r=this.Yf;return Nt.forEach(t.mutations,(function(i){var a=new At(i.key,t.batchId);return r=r.delete(a),n.yo.Go(e,i.key)})).next((function(){n.Yf=r}))},e.prototype.Ko=function(e){},e.prototype.Mn=function(e,t){var n=new At(t,0),r=this.Yf.Nt(n);return Nt.resolve(t.isEqual(r&&r.key))},e.prototype.zo=function(e){return this.ar.length,Nt.resolve()},e.prototype.Jf=function(e,t){return this.Zf(e)},e.prototype.Zf=function(e){return 0===this.ar.length?0:e-this.ar[0].batchId},e.prototype.Xf=function(e){var t=this.Zf(e);return t<0||t>=this.ar.length?null:this.ar[t]},e}(),$i=function(){function e(e,t){this.ur=e,this.eT=t,this.docs=new C(S.k),this.size=0}return e.prototype.Jn=function(e,t,n){var r=t.key,i=this.docs.get(r),a=i?i.size:0,o=this.eT(t);return this.docs=this.docs.nt(r,{Aa:t,size:o,readTime:n}),this.size+=o-a,this.ur.Mo(e,r.path.L())},e.prototype.Zn=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.tr=function(e,t){var n=this.docs.get(t);return Nt.resolve(n?n.Aa:null)},e.prototype.getEntries=function(e,t){var n=this,r=Ve();return t.forEach((function(e){var t=n.docs.get(e);r=r.nt(e,t?t.Aa:null)})),Nt.resolve(r)},e.prototype.wr=function(e,t,n){for(var r=We(),i=new S(t.path.child("")),a=this.docs.lt(i);a.wt();){var o=a.It(),s=o.key,l=o.value,c=l.Aa,u=l.readTime;if(!t.path.U(s.path))break;u.D(n)<=0||c instanceof _e&&t.matches(c)&&(r=r.nt(c.key,c))}return Nt.resolve(r)},e.prototype.sT=function(e,t){return Nt.forEach(this.docs,(function(e){return t(e)}))},e.prototype.Ca=function(t){return new e.Fa(this)},e.prototype.ka=function(e){return Nt.resolve(this.size)},e}();$i.Fa=function(e){function t(t){var n=this;return(n=e.call(this)||this).$a=t,n}return i.__extends(t,e),t.prototype.ir=function(e){var t=this,n=[];return this.zn.forEach((function(r,i){i?n.push(t.$a.Jn(e,i,t.readTime)):t.$a.Zn(r)})),Nt.Kn(n)},t.prototype.er=function(e,t){return this.$a.tr(e,t)},t.prototype.sr=function(e,t){return this.$a.getEntries(e,t)},t}(Rt);var Li=function(){function e(e){this.persistence=e,this.iT=new Pt((function(e){return e.canonicalId()})),this.lastRemoteSnapshotVersion=_.MIN,this.highestTargetId=0,this.nT=0,this.rT=new It,this.targetCount=0,this.hT=yn.Yo()}return e.prototype.Xs=function(e,t){return this.iT.forEach((function(e,n){return t(n)})),Nt.resolve()},e.prototype.ea=function(e){return Nt.resolve(this.lastRemoteSnapshotVersion)},e.prototype.sa=function(e){return Nt.resolve(this.nT)},e.prototype.Xo=function(e){return this.highestTargetId=this.hT.next(),Nt.resolve(this.highestTargetId)},e.prototype.ia=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.nT&&(this.nT=t),Nt.resolve()},e.prototype.ra=function(e){this.iT.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.hT=new yn(t),this.highestTargetId=t),e.sequenceNumber>this.nT&&(this.nT=e.sequenceNumber)},e.prototype.na=function(e,t){return this.ra(t),this.targetCount+=1,Nt.resolve()},e.prototype.oa=function(e,t){return this.ra(t),Nt.resolve()},e.prototype.aa=function(e,t){return this.iT.delete(t.target),this.rT.Nn(t.targetId),this.targetCount-=1,Nt.resolve()},e.prototype.Zh=function(e,t,n){var r=this,i=0,a=[];return this.iT.forEach((function(o,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.iT.delete(o),a.push(r.ua(e,s.targetId)),i++)})),Nt.Kn(a).next((function(){return i}))},e.prototype.la=function(e){return Nt.resolve(this.targetCount)},e.prototype.da=function(e,t){var n=this.iT.get(t)||null;return Nt.resolve(n)},e.prototype.fa=function(e,t,n){this.rT.Sn(t,n);var r=this.persistence.yo,i=[];return r&&t.forEach((function(t){i.push(r.vn(e,t))})),Nt.Kn(i)},e.prototype.Ta=function(e,t,n){this.rT.Fn(t,n);var r=this.persistence.yo,i=[];return r&&t.forEach((function(t){i.push(r.Dn(e,t))})),Nt.Kn(i)},e.prototype.ua=function(e,t){return this.rT.Nn(t),Nt.resolve()},e.prototype.Ea=function(e,t){var n=this.rT.$n(t);return Nt.resolve(n)},e.prototype.Mn=function(e,t){return Nt.resolve(this.rT.Mn(t))},e}(),Pi=function(){function e(e){var t=this;this.oT={},this.hu=new Ht(0),this.ja=!1,this.ja=!0,this.yo=e(this),this.Za=new Li(this),this.ur=new $n,this.or=new $i(this.ur,(function(e){return t.yo.aT(e)}))}return e.prototype.start=function(){return Promise.resolve()},e.prototype.mu=function(){return this.ja=!1,Promise.resolve()},Object.defineProperty(e.prototype,"Kh",{get:function(){return this.ja},enumerable:!0,configurable:!0}),e.prototype.au=function(){},e.prototype.Du=function(){return this.ur},e.prototype.bu=function(e){var t=this.oT[e.s()];return t||(t=new Mi(this.ur,this.yo),this.oT[e.s()]=t),t},e.prototype.vu=function(){return this.Za},e.prototype.Su=function(){return this.or},e.prototype.runTransaction=function(e,t,n){var r=this;_t("MemoryPersistence","Starting transaction:",e);var i=new Oi(this.hu.next());return this.yo.uT(),n(i).next((function(e){return r.yo.cT(i).next((function(){return e}))})).Wn().then((function(e){return i.hr(),e}))},e.prototype._T=function(e,t){return Nt.Gn(Object.values(this.oT).map((function(n){return function(){return n.Mn(e,t)}})))},e}(),Oi=function(e){function t(t){var n=this;return(n=e.call(this)||this).Qa=t,n}return i.__extends(t,e),t}(Bt),Di=function(){function e(e){this.persistence=e,this.Nu=null,this.lT=null}return e.dT=function(t){return new e(t)},Object.defineProperty(e.prototype,"fT",{get:function(){if(this.lT)return this.lT;throw Et()},enumerable:!0,configurable:!0}),e.prototype.Mu=function(e){this.Nu=e},e.prototype.vn=function(e,t){return this.fT.delete(t),Nt.resolve()},e.prototype.Dn=function(e,t){return this.fT.add(t),Nt.resolve()},e.prototype.Go=function(e,t){return this.fT.add(t),Nt.resolve()},e.prototype.removeTarget=function(e,t){var n=this,r=this.persistence.vu();return r.Ea(e,t.targetId).next((function(e){e.forEach((function(e){return n.fT.add(e)}))})).next((function(){return r.aa(e,t)}))},e.prototype.uT=function(){this.lT=new Set},e.prototype.cT=function(e){var t=this,n=this.persistence.Su().Ca();return Nt.forEach(this.fT,(function(r){return t.TT(e,r).next((function(e){e||n.Zn(r)}))})).next((function(){return t.lT=null,n.apply(e)}))},e.prototype.Ou=function(e,t){var n=this;return this.TT(e,t).next((function(e){e?n.fT.delete(t):n.fT.add(t)}))},e.prototype.aT=function(e){return 0},e.prototype.TT=function(e,t){var n=this;return Nt.Gn([function(){return n.persistence.vu().Mn(e,t)},function(){return n.persistence._T(e,t)},function(){return Nt.resolve(n.Nu.Mn(t))}])},e}(),Ii=function(){function e(){}return e.prototype.initialize=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(n){switch(n.label){case 0:return this.Yd=this.ET(e),this.persistence=this.IT(e),[4,this.persistence.start()];case 1:return n.sent(),this.wT=this.RT(e),this.j_=this.AT(e),this.Ud=this.mT(e),this.El=this.PT(e),this.VT=this.gT(e),this.Yd.M_=function(e){return t.El.Od(e,1)},this.Ud.El=this.El,[4,this.j_.start()];case 2:return n.sent(),[4,this.Yd.start()];case 3:return n.sent(),[4,this.Ud.start()];case 4:return n.sent(),[4,this.Ud.Cl(this.El.uf)];case 5:return n.sent(),[2]}}))}))},e.prototype.gT=function(e){return new Si(this.El)},e.prototype.RT=function(e){return null},e.prototype.AT=function(e){return new ar(this.persistence,new xi,e.pT)},e.prototype.IT=function(e){return new Pi(Di.dT)},e.prototype.mT=function(e){var t=this;return new ai(this.j_,e.b_,e.jr,(function(e){return t.El.Od(e,0)}),e.platform.yT())},e.prototype.ET=function(e){return new mi},e.prototype.PT=function(e){return new ki(this.j_,this.Ud,this.Yd,e.pT,e.Jd)},e.prototype.clearPersistence=function(e){throw new p(h.FAILED_PRECONDITION,"You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.")},e}(),Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.initialize=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return r.sent(),[4,this.persistence.ou((function(e){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.El.Cl(e)];case 1:return t.sent(),this.wT&&(e&&!this.wT.Kh?this.wT.start(this.j_):e||this.wT.stop()),[2]}}))}))}))];case 2:return r.sent(),[2]}}))}))},t.prototype.AT=function(e){return new or(this.persistence,new xi,e.pT)},t.prototype.PT=function(e){var t=new Ei(this.j_,this.Ud,this.Yd,e.pT,e.Jd);return this.Yd instanceof fi&&(this.Yd.El=t),t},t.prototype.RT=function(e){var t=this.persistence.yo.qh;return new Xt(t,e.jr)},t.prototype.IT=function(e){var t=er.Fu(e.bT),n=e.platform.vT(e.bT.ci);return new er(e.ST.synchronizeTabs,t,e.clientId,e.platform,Jt.kh(e.ST.cacheSizeBytes),e.jr,n,this.Yd)},t.prototype.ET=function(e){if(e.ST.DT&&e.ST.synchronizeTabs){if(!fi.ho(e.platform))throw new p(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var t=er.Fu(e.bT);return new fi(e.jr,e.platform,t,e.clientId,e.pT)}return new mi},t.prototype.clearPersistence=function(e){var t=er.Fu(e);return er.clearPersistence(t)},t}(Ii),Ni=function(){function e(e,t,n,r){this.platform=e,this.bT=t,this.credentials=n,this.jr=r,this.clientId=St.En()}return e.prototype.start=function(e,t){var n=this;this.CT();var r=new Ut,i=new Ut,a=!1;return this.credentials.l((function(o){if(!a)return a=!0,_t("FirestoreClient","Initializing. user=",o.uid),n.FT(e,t,o,i).then(r.resolve,r.reject);n.jr.Zr((function(){return n.Dl(o)}))})),this.jr.Zr((function(){return r.promise})),i.promise},e.prototype.enableNetwork=function(){var e=this;return this.CT(),this.jr.enqueue((function(){return e.El.enableNetwork()}))},e.prototype.FT=function(e,t,n,r){return i.__awaiter(this,void 0,void 0,(function(){var a,o,s,l,c=this;return i.__generator(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,this.platform.NT(this.bT)];case 1:return a=u.sent(),o=this.platform.vT(this.bT.ci),s=new ni(this.jr,a,this.credentials,o),[4,e.initialize({jr:this.jr,bT:this.bT,platform:this.platform,b_:s,clientId:this.clientId,pT:n,Jd:100,ST:t})];case 2:return u.sent(),this.persistence=e.persistence,this.Yd=e.Yd,this.j_=e.j_,this.Ud=e.Ud,this.El=e.El,this.wT=e.wT,this.kT=e.VT,this.persistence.au((function(){return i.__awaiter(c,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.terminate()];case 1:return e.sent(),[2]}}))}))})),r.resolve(),[3,4];case 3:if(l=u.sent(),r.reject(l),!this.$T(l))throw l;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+l),this.FT(new Ii,{DT:!1},n,r))];case 4:return[2]}}))}))},e.prototype.$T=function(e){return"FirebaseError"===e.name?e.code===h.FAILED_PRECONDITION||e.code===h.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code},e.prototype.CT=function(){if(this.jr._h)throw new p(h.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Dl=function(e){return this.jr.Rh(),_t("FirestoreClient","Credential Changed. Current user: "+e.uid),this.El.Dl(e)},e.prototype.disableNetwork=function(){var e=this;return this.CT(),this.jr.enqueue((function(){return e.El.disableNetwork()}))},e.prototype.terminate=function(){var e=this;return this.jr.Eh((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.wT&&this.wT.stop(),[4,this.Ud.mu()];case 1:return e.sent(),[4,this.Yd.mu()];case 2:return e.sent(),[4,this.persistence.mu()];case 3:return e.sent(),this.credentials.T(),[2]}}))}))}))},e.prototype.waitForPendingWrites=function(){var e=this;this.CT();var t=new Ut;return this.jr.Zr((function(){return e.El.Af(t)})),t.promise},e.prototype.listen=function(e,t,n){var r=this;this.CT();var i=new Ci(e,t,n);return this.jr.Zr((function(){return r.kT.listen(i)})),i},e.prototype.fl=function(e){var t=this;this.MT||this.jr.Zr((function(){return t.kT.fl(e)}))},e.prototype.LT=function(e){var t=this;return this.CT(),this.jr.enqueue((function(){return t.j_.rc(e)})).then((function(e){if(e instanceof _e)return e;if(e instanceof we)return null;throw new p(h.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")}))},e.prototype.OT=function(e){var t=this;return this.CT(),this.jr.enqueue((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.j_.ac(e,!0)];case 1:return t=i.sent(),n=new yi(e,t.uc),r=n.Cd(t.documents),[2,n.ir(r,!1).snapshot]}}))}))}))},e.prototype.write=function(e){var t=this;this.CT();var n=new Ut;return this.jr.Zr((function(){return t.El.write(e,n)})),n.promise},e.prototype.ci=function(){return this.bT.ci},e.prototype.Lf=function(e){var t=this;this.CT(),this.jr.Zr((function(){return t.kT.Lf(e),Promise.resolve()}))},e.prototype.Of=function(e){this.MT||this.kT.Of(e)},Object.defineProperty(e.prototype,"MT",{get:function(){return this.jr._h},enumerable:!0,configurable:!0}),e.prototype.transaction=function(e){var t=this;this.CT();var n=new Ut;return this.jr.Zr((function(){return t.El.runTransaction(t.jr,e,n),Promise.resolve()})),n.promise},e}(),Ri=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.xT(this.observer.next,e)},e.prototype.error=function(e){this.xT(this.observer.error,e)},e.prototype.BT=function(){this.muted=!0},e.prototype.xT=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}();function Yi(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,r=0,i=["next","error","complete"];r<i.length;r++){var a=i[r];if(a in n&&"function"==typeof n[a])return!0}return!1}(e)}var Bi=function(){function e(e,t,n,r){this.firestore=e,this.timestampsInSnapshots=t,this.qT=n,this.converter=r}return e.prototype.UT=function(e){switch(F(e)){case 0:return null;case 1:return e.booleanValue;case 2:return G(e.integerValue||e.doubleValue);case 3:return this.QT(e.timestampValue);case 4:return this.WT(e);case 5:return e.stringValue;case 6:return new $r(K(e.bytesValue));case 7:return this.jT(e.referenceValue);case 8:return new jr(e.geoPointValue.latitude,e.geoPointValue.longitude);case 9:return this.KT(e.arrayValue);case 10:return this.GT(e.mapValue);default:throw Et()}},e.prototype.GT=function(e){var t=this,n={};return O(e.fields||{},(function(e,r){n[e]=t.UT(r)})),n},e.prototype.KT=function(e){var t=this;return(e.values||[]).map((function(e){return t.UT(e)}))},e.prototype.WT=function(e){switch(this.qT){case"previous":var t=function e(t){var n=t.mapValue.fields.__previous_value__;return Y(n)?e(n):n}(e);return null==t?null:this.UT(t);case"estimate":return this.QT(B(e));default:return null}},e.prototype.QT=function(e){var t=W(e),n=new b(t.seconds,t.nanos);return this.timestampsInSnapshots?n:n.toDate()},e.prototype.jT=function(e){var t=k.G(e);Tt(mt(t));var n=new Lt(t.get(1),t.get(3)),r=new S(t.M(5));return n.isEqual(this.firestore.zT)||wt("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.firestore.zT.projectId+"/"+this.firestore.zT.database+") instead."),new Vi(r,this.firestore,this.converter)},e}(),ji=Jt.Lh,Fi=function(){function e(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new p(h.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else fr("settings","non-empty string","host",e.host),this.host=e.host,mr("settings","boolean","ssl",e.ssl),this.ssl=null===(t=e.ssl)||void 0===t||t;if(wr("settings",e,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),mr("settings","object","credentials",e.credentials),this.credentials=e.credentials,mr("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),!0===e.timestampsInSnapshots?wt("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===e.timestampsInSnapshots&&wt("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=e.timestampsInSnapshots)||void 0===n||n,mr("settings","number","cacheSizeBytes",e.cacheSizeBytes),void 0===e.cacheSizeBytes)this.cacheSizeBytes=Jt.xh;else{if(e.cacheSizeBytes!==ji&&e.cacheSizeBytes<Jt.Oh)throw new p(h.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Jt.Oh);this.cacheSizeBytes=e.cacheSizeBytes}mr("settings","boolean","experimentalForceLongPolling",e.experimentalForceLongPolling),this.forceLongPolling=void 0!==e.experimentalForceLongPolling&&e.experimentalForceLongPolling}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.forceLongPolling===e.forceLongPolling},e}(),Hi=function(){function e(t,n,r){var a=this;if(void 0===r&&(r=new Ii),this.HT=null,this.YT=new qt,this.INTERNAL={delete:function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.JT(),[4,this.XT.terminate()];case 1:return e.sent(),[2]}}))}))}},"object"==typeof t.options){var o=t;this.HT=o,this.zT=e.ZT(o),this.tE=o.name,this.eE=new v(n)}else{var s=t;if(!s.projectId)throw new p(h.INVALID_ARGUMENT,"Must provide projectId");this.zT=new Lt(s.projectId,s.database),this.tE="[DEFAULT]",this.eE=new m}this.sE=r,this.iE=new Fi({}),this.nE=this.rE(this.zT)}return e.prototype.settings=function(e){cr("Firestore.settings",arguments,1),hr("Firestore.settings","object",1,e);var t=new Fi(e);if(this.XT&&!this.iE.isEqual(t))throw new p(h.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.iE=t,void 0!==t.credentials&&(this.eE=function(e){if(!e)return new m;switch(e.type){case"gapi":var t=e.hE;return Tt(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new y(t,e.V||"0");case"provider":return e.hE;default:throw new p(h.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},e.prototype.enableNetwork=function(){return this.JT(),this.XT.enableNetwork()},e.prototype.disableNetwork=function(){return this.JT(),this.XT.disableNetwork()},e.prototype.enablePersistence=function(e){var t,n;if(this.XT)throw new p(h.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1;return e&&(void 0!==e.experimentalTabSynchronization&&wt("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(t=e.synchronizeTabs)&&void 0!==t?t:e.experimentalTabSynchronization)&&void 0!==n&&n),this.oE(this.sE,{DT:!0,cacheSizeBytes:this.iE.cacheSizeBytes,synchronizeTabs:r})},e.prototype.clearPersistence=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t=this;return i.__generator(this,(function(n){if(void 0!==this.XT&&!this.XT.MT)throw new p(h.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return e=new Ut,[2,(this.YT.lh((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this.aE(),[4,this.sE.clearPersistence(t)];case 1:return r.sent(),e.resolve(),[3,3];case 2:return n=r.sent(),e.reject(n),[3,3];case 3:return[2]}}))}))})),e.promise)]}))}))},e.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(e.prototype,"uE",{get:function(){return this.JT(),this.XT.MT},enumerable:!0,configurable:!0}),e.prototype.waitForPendingWrites=function(){return this.JT(),this.XT.waitForPendingWrites()},e.prototype.onSnapshotsInSync=function(e){if(this.JT(),Yi(e))return this.cE(e);hr("Firestore.onSnapshotsInSync","function",1,e);var t={next:e};return this.cE(t)},e.prototype.cE=function(e){var t=this,n=new Ri({next:function(){e.next&&e.next()},error:function(e){throw Et()}});return this.XT.Lf(n),function(){n.BT(),t.XT.Of(n)}},e.prototype.JT=function(){return this.XT||this.oE(new Ii,{DT:!1}),this.XT},e.prototype.aE=function(){return new $t(this.zT,this.tE,this.iE.host,this.iE.ssl,this.iE.forceLongPolling)},e.prototype.oE=function(e,t){var n=this.aE();return this.XT=new Ni(vt.Lt(),n,this.eE,this.YT),this.XT.start(e,t)},e.prototype.rE=function(e){var t=vt.Lt().vT(e);return new Wr(t,(function(t){if(t instanceof Vi){var n=e,r=t.firestore.zT;if(!r.isEqual(n))throw new p(h.INVALID_ARGUMENT,"Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return new qr(e,t._E)}return t}))},e.ZT=function(e){if(t=e.options,!Object.prototype.hasOwnProperty.call(t,"projectId"))throw new p(h.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var t,n=e.options.projectId;if(!n||"string"!=typeof n)throw new p(h.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Lt(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.HT)throw new p(h.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.HT},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){return cr("Firestore.collection",arguments,1),hr("Firestore.collection","non-empty string",1,e),this.JT(),new Xi(k.G(e),this)},e.prototype.doc=function(e){return cr("Firestore.doc",arguments,1),hr("Firestore.doc","non-empty string",1,e),this.JT(),Vi.lE(k.G(e),this)},e.prototype.collectionGroup=function(e){if(cr("Firestore.collectionGroup",arguments,1),hr("Firestore.collectionGroup","non-empty string",1,e),e.indexOf("/")>=0)throw new p(h.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.JT(),new Ki(new Te(k.H,e),this)},e.prototype.runTransaction=function(e){var t=this;return cr("Firestore.runTransaction",arguments,1),hr("Firestore.runTransaction","function",1,e),this.JT().transaction((function(n){return e(new Ui(t,n))}))},e.prototype.batch=function(){return this.JT(),new zi(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(yt()){case o.LogLevel.DEBUG:return"debug";case o.LogLevel.SILENT:return"silent";default:return"error"}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(cr("Firestore.setLogLevel",arguments,1),hr("Firestore.setLogLevel","non-empty string",1,e),e){case"debug":bt(o.LogLevel.DEBUG);break;case"error":bt(o.LogLevel.ERROR);break;case"silent":bt(o.LogLevel.SILENT);break;default:throw new p(h.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype.dE=function(){return this.iE.timestampsInSnapshots},e}(),Ui=function(){function e(e,t){this.fE=e,this.TE=t}return e.prototype.get=function(e){var t=this;cr("Transaction.get",arguments,1);var n=ta("Transaction.get",e,this.fE);return this.TE.p_([n._E]).then((function(e){if(!e||1!==e.length)return Et();var r=e[0];if(r instanceof we)return new Wi(t.fE,n._E,null,!1,!1,n.EE);if(r instanceof _e)return new Wi(t.fE,n._E,r,!1,!1,n.EE);throw Et()}))},e.prototype.set=function(e,t,n){dr("Transaction.set",arguments,2,3);var r=ta("Transaction.set",e,this.fE);n=Qi("Transaction.set",n);var i=ra(r.EE,t,"Transaction.set"),a=i[0],o=i[1],s=n.merge||n.mergeFields?this.fE.nE.Mc(o,a,n.mergeFields):this.fE.nE.kc(o,a);return this.TE.set(r._E,s),this},e.prototype.update=function(e,t,n){for(var r,i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return"string"==typeof t||t instanceof Pr?(ur("Transaction.update",arguments,3),r=ta("Transaction.update",e,this.fE),i=this.fE.nE.Bc("Transaction.update",t,n,a)):(cr("Transaction.update",arguments,2),r=ta("Transaction.update",e,this.fE),i=this.fE.nE.Lc("Transaction.update",t)),this.TE.update(r._E,i),this},e.prototype.delete=function(e){cr("Transaction.delete",arguments,1);var t=ta("Transaction.delete",e,this.fE);return this.TE.delete(t._E),this},e}(),zi=function(){function e(e){this.fE=e,this.IE=[],this.wE=!1}return e.prototype.set=function(e,t,n){dr("WriteBatch.set",arguments,2,3),this.RE();var r=ta("WriteBatch.set",e,this.fE);n=Qi("WriteBatch.set",n);var i=ra(r.EE,t,"WriteBatch.set"),a=i[0],o=i[1],s=n.merge||n.mergeFields?this.fE.nE.Mc(o,a,n.mergeFields):this.fE.nE.kc(o,a);return this.IE=this.IE.concat(s.gc(r._E,ue.NONE)),this},e.prototype.update=function(e,t,n){for(var r,i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return this.RE(),"string"==typeof t||t instanceof Pr?(ur("WriteBatch.update",arguments,3),r=ta("WriteBatch.update",e,this.fE),i=this.fE.nE.Bc("WriteBatch.update",t,n,a)):(cr("WriteBatch.update",arguments,2),r=ta("WriteBatch.update",e,this.fE),i=this.fE.nE.Lc("WriteBatch.update",t)),this.IE=this.IE.concat(i.gc(r._E,ue.exists(!0))),this},e.prototype.delete=function(e){cr("WriteBatch.delete",arguments,1),this.RE();var t=ta("WriteBatch.delete",e,this.fE);return this.IE=this.IE.concat(new me(t._E,ue.NONE)),this},e.prototype.commit=function(){return this.RE(),this.wE=!0,this.IE.length>0?this.fE.JT().write(this.IE):Promise.resolve()},e.prototype.RE=function(){if(this.wE)throw new p(h.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),Vi=function(){function e(e,t,n){this._E=e,this.firestore=t,this.EE=n,this.XT=this.firestore.JT()}return e.lE=function(t,n,r){if(t.length%2!=0)throw new p(h.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.K()+" has "+t.length);return new e(new S(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this._E.path.B()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Xi(this._E.path.L(),this.firestore,this.EE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._E.path.K()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(cr("DocumentReference.collection",arguments,1),hr("DocumentReference.collection","non-empty string",1,e),!e)throw new p(h.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=k.G(e);return new Xi(this._E.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this._E.isEqual(t._E)&&this.EE===t.EE},e.prototype.set=function(e,t){dr("DocumentReference.set",arguments,1,2),t=Qi("DocumentReference.set",t);var n=ra(this.EE,e,"DocumentReference.set"),r=n[0],i=n[1],a=t.merge||t.mergeFields?this.firestore.nE.Mc(i,r,t.mergeFields):this.firestore.nE.kc(i,r);return this.XT.write(a.gc(this._E,ue.NONE))},e.prototype.update=function(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof e||e instanceof Pr?(ur("DocumentReference.update",arguments,2),n=this.firestore.nE.Bc("DocumentReference.update",e,t,r)):(cr("DocumentReference.update",arguments,1),n=this.firestore.nE.Lc("DocumentReference.update",e)),this.XT.write(n.gc(this._E,ue.exists(!0)))},e.prototype.delete=function(){return cr("DocumentReference.delete",arguments,0),this.XT.write([new me(this._E,ue.NONE)])},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];dr("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof e[i]||Yi(e[i])||(wr("DocumentReference.onSnapshot",r=e[i],["includeMetadataChanges"]),mr("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var a={includeMetadataChanges:r.includeMetadataChanges};return Yi(e[i])?n=e[i]:(hr("DocumentReference.onSnapshot","function",i,e[i]),pr("DocumentReference.onSnapshot","function",i+1,e[i+1]),pr("DocumentReference.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.AE(a,n)},e.prototype.AE=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Ri({next:function(e){if(t.next){var r=e.docs.get(n._E);t.next(new Wi(n.firestore,n._E,r,e.fromCache,e.hasPendingWrites,n.EE))}},error:r}),a=this.XT.listen(Te.ve(this._E.path),i,e);return function(){i.BT(),n.XT.fl(a)}},e.prototype.get=function(e){var t=this;return dr("DocumentReference.get",arguments,0,1),ea("DocumentReference.get",e),new Promise((function(n,r){e&&"cache"===e.source?t.firestore.JT().LT(t._E).then((function(e){n(new Wi(t.firestore,t._E,e,!0,e instanceof _e&&e.te,t.EE))}),r):t.mE(n,r,e)}))},e.prototype.mE=function(e,t,n){var r=this.AE({includeMetadataChanges:!0,jf:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?t(new p(h.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?t(new p(h.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):e(i)},error:t})},e.prototype.withConverter=function(t){return new e(this._E,this.firestore,t)},e}(),qi=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),Wi=function(){function e(e,t,n,r,i,a){this.fE=e,this._E=t,this.PE=n,this.VE=r,this.gE=i,this.EE=a}return e.prototype.data=function(e){if(dr("DocumentSnapshot.data",arguments,0,1),e=Zi("DocumentSnapshot.data",e),this.PE){if(this.EE){var t=new Gi(this.fE,this._E,this.PE,this.VE,this.gE);return this.EE.fromFirestore(t,e)}return new Bi(this.fE,this.fE.dE(),e.serverTimestamps,void 0).UT(this.PE.Re())}},e.prototype.get=function(e,t){if(dr("DocumentSnapshot.get",arguments,1,2),t=Zi("DocumentSnapshot.get",t),this.PE){var n=this.PE.data().field(Jr("DocumentSnapshot.get",e));if(null!==n)return new Bi(this.fE,this.fE.dE(),t.serverTimestamps,this.EE).UT(n)}},Object.defineProperty(e.prototype,"id",{get:function(){return this._E.path.B()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Vi(this._E,this.fE,this.EE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this.PE},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new qi(this.gE,this.VE)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","DocumentSnapshot",1,t);return this.fE===t.fE&&this.VE===t.VE&&this._E.isEqual(t._E)&&(null===this.PE?null===t.PE:this.PE.isEqual(t.PE))&&this.EE===t.EE},e}(),Gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.data=function(t){return e.prototype.data.call(this,t)},t}(Wi),Ki=function(){function e(e,t,n){this.pE=e,this.firestore=t,this.EE=n}return e.prototype.where=function(t,n,r){var i;cr("Query.where",arguments,3),_r("Query.where",3,r),function(e,t,n,r){if(!t.some((function(e){return e===r})))throw new p(h.INVALID_ARGUMENT,"Invalid value "+br(r)+" provided to function Query.where() for its "+Tr(2)+" argument. Acceptable values: "+t.join(", "))}(0,["<","<=","==",">=",">","array-contains","in","array-contains-any"],0,n);var a=Jr("Query.where",t),o=Se.G(n);if(a.J()){if(o===Se.ARRAY_CONTAINS||o===Se.ARRAY_CONTAINS_ANY)throw new p(h.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o.toString()+"' queries on FieldPath.documentId().");if(o===Se.IN){this.yE(r,o);for(var s=[],l=0,c=r;l<c.length;l++){var u=c[l];s.push(this.bE(u))}i={arrayValue:{values:s}}}else i=this.bE(r)}else o!==Se.IN&&o!==Se.ARRAY_CONTAINS_ANY||this.yE(r,o),i=this.firestore.nE.qc("Query.where",r,o===Se.IN);var d=Ce.create(a,o,i);return this.vE(d),new e(this.pE.Ce(d),this.firestore,this.EE)},e.prototype.orderBy=function(t,n){var r;if(dr("Query.orderBy",arguments,1,2),pr("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r=Oe.ASCENDING;else{if("desc"!==n)throw new p(h.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r=Oe.DESCENDING}if(null!==this.pE.startAt)throw new p(h.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.pE.endAt)throw new p(h.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=Jr("Query.orderBy",t),a=new Ne(i,r);return this.SE(a),new e(this.pE.Fe(a),this.firestore,this.EE)},e.prototype.limit=function(t){return cr("Query.limit",arguments,1),hr("Query.limit","number",1,t),Er("Query.limit",1,t),new e(this.pE.Ne(t),this.firestore,this.EE)},e.prototype.limitToLast=function(t){return cr("Query.limitToLast",arguments,1),hr("Query.limitToLast","number",1,t),Er("Query.limitToLast",1,t),new e(this.pE.ke(t),this.firestore,this.EE)},e.prototype.startAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAt",arguments,1);var i=this.DE("Query.startAt",t,n,!0);return new e(this.pE.$e(i),this.firestore,this.EE)},e.prototype.startAfter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAfter",arguments,1);var i=this.DE("Query.startAfter",t,n,!1);return new e(this.pE.$e(i),this.firestore,this.EE)},e.prototype.endBefore=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endBefore",arguments,1);var i=this.DE("Query.endBefore",t,n,!0);return new e(this.pE.Me(i),this.firestore,this.EE)},e.prototype.endAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endAt",arguments,1);var i=this.DE("Query.endAt",t,n,!1);return new e(this.pE.Me(i),this.firestore,this.EE)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","Query",1,t);return this.firestore===t.firestore&&this.pE.isEqual(t.pE)},e.prototype.withConverter=function(t){return new e(this.pE,this.firestore,t)},e.prototype.DE=function(e,t,n,r){if(_r(e,1,t),t instanceof Wi){if(n.length>0)throw new p(h.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var i=t;if(!i.exists)throw new p(h.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.CE(i.PE,r)}var a=[t].concat(n);return this.FE(e,a,r)},e.prototype.CE=function(e,t){for(var n=[],r=0,i=this.pE.orderBy;r<i.length;r++){var a=i[r];if(a.field.J())n.push(J(this.firestore.zT,e.key));else{var o=e.field(a.field);if(Y(o))throw new p(h.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+a.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===o){var s=a.field.K();throw new p(h.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+s+"' (used as the orderBy) does not exist.")}n.push(o)}}return new Ae(n,t)},e.prototype.FE=function(e,t,n){var r=this.pE.Ve;if(t.length>r.length)throw new p(h.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],a=0;a<t.length;a++){var o=t[a];if(r[a].field.J()){if("string"!=typeof o)throw new p(h.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+e+"(), but got a "+typeof o);if(!this.pE.He()&&-1!==o.indexOf("/"))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+e+"() must be a plain document ID, but '"+o+"' contains a slash.");var s=this.pE.path.child(k.G(o));if(!S.st(s))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+e+"() must result in a valid document path, but '"+s+"' is not because it contains an odd number of segments.");var l=new S(s);i.push(J(this.firestore.zT,l))}else{var c=this.firestore.nE.qc(e,o);i.push(c)}}return new Ae(i,n)},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];dr("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof e[i]||Yi(e[i])||(wr("Query.onSnapshot",r=e[i],["includeMetadataChanges"]),mr("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Yi(e[i])?n=e[i]:(hr("Query.onSnapshot","function",i,e[i]),pr("Query.onSnapshot","function",i+1,e[i+1]),pr("Query.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.NE(this.pE),this.AE(r,n)},e.prototype.AE=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Ri({next:function(e){t.next&&t.next(new Ji(n.firestore,n.pE,e,n.EE))},error:r}),a=this.firestore.JT(),o=a.listen(this.pE,i,e);return function(){i.BT(),a.fl(o)}},e.prototype.NE=function(e){if(e.Ke()&&0===e.Ve.length)throw new p(h.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},e.prototype.get=function(e){var t=this;return dr("Query.get",arguments,0,1),ea("Query.get",e),this.NE(this.pE),new Promise((function(n,r){e&&"cache"===e.source?t.firestore.JT().OT(t.pE).then((function(e){n(new Ji(t.firestore,t.pE,e,t.EE))}),r):t.mE(n,r,e)}))},e.prototype.mE=function(e,t,n){var r=this.AE({includeMetadataChanges:!0,jf:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?t(new p(h.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):e(i)},error:t})},e.prototype.bE=function(e){if("string"==typeof e){if(""===e)throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.pE.He()&&-1!==e.indexOf("/"))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+e+"' contains a '/' character.");var t=this.pE.path.child(k.G(e));if(!S.st(t))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+t+"' is not because it has an odd number of segments ("+t.length+").");return J(this.firestore.zT,new S(t))}if(e instanceof Vi){var n=e;return J(this.firestore.zT,n._E)}throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+br(e)+".")},e.prototype.yE=function(e,t){if(!Array.isArray(e)||0===e.length)throw new p(h.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new p(h.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.");if(e.indexOf(null)>=0)throw new p(h.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'null' in the value array.");if(e.filter((function(e){return Number.isNaN(e)})).length>0)throw new p(h.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'NaN' in the value array.")},e.prototype.vE=function(e){if(e instanceof Ce){var t=[Se.ARRAY_CONTAINS,Se.ARRAY_CONTAINS_ANY],n=[Se.IN,Se.ARRAY_CONTAINS_ANY],r=t.indexOf(e.op)>=0,i=n.indexOf(e.op)>=0;if(e.Ge()){var a=this.pE.Se();if(null!==a&&!a.isEqual(e.field))throw new p(h.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+a.toString()+"' and '"+e.field.toString()+"'");var o=this.pE.De();null!==o&&this.kE(e.field,o)}else if(i||r){var s=null;if(i&&(s=this.pE.ze(n)),null===s&&r&&(s=this.pE.ze(t)),null!=s)throw s===e.op?new p(h.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new p(h.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},e.prototype.SE=function(e){if(null===this.pE.De()){var t=this.pE.Se();null!==t&&this.kE(t,e.field)}},e.prototype.kE=function(e,t){if(!t.isEqual(e))throw new p(h.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),Ji=function(){function e(e,t,n,r){this.fE=e,this.$E=t,this.ME=n,this.EE=r,this.LE=null,this.OE=null,this.metadata=new qi(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this.ME.docs.q()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.ME.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;dr("QuerySnapshot.forEach",arguments,1,2),hr("QuerySnapshot.forEach","function",1,e),this.ME.docs.forEach((function(r){e.call(t,n.xE(r))}))},Object.defineProperty(e.prototype,"query",{get:function(){return new Ki(this.$E,this.fE,this.EE)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){e&&(wr("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),mr("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges));var t=!(!e||!e.includeMetadataChanges);if(t&&this.ME.ds)throw new p(h.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.LE&&this.OE===t||(this.LE=function(e,t,n,r){if(n.cs.q()){var i=0;return n.docChanges.map((function(t){var a=new Gi(e,t.doc.key,t.doc,n.fromCache,n._s.has(t.doc.key),r);return t.doc,{type:"added",doc:a,oldIndex:-1,newIndex:i++}}))}var a=n.cs;return n.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var i=new Gi(e,t.doc.key,t.doc,n.fromCache,n._s.has(t.doc.key),r),o=-1,s=-1;return 0!==t.type&&(o=a.indexOf(t.doc.key),a=a.delete(t.doc.key)),1!==t.type&&(s=(a=a.add(t.doc)).indexOf(t.doc.key)),{type:na(t.type),doc:i,oldIndex:o,newIndex:s}}))}(this.fE,t,this.ME,this.EE),this.OE=t),this.LE},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","QuerySnapshot",1,t);return this.fE===t.fE&&this.$E.isEqual(t.$E)&&this.ME.isEqual(t.ME)&&this.EE===t.EE},e.prototype.xE=function(e){return new Gi(this.fE,e.key,e,this.metadata.fromCache,this.ME._s.has(e.key),this.EE)},e}(),Xi=function(e){function t(t,n,r){var i=this;if((i=e.call(this,Te.ve(t),n,r)||this).BE=t,t.length%2!=1)throw new p(h.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.K()+" has "+t.length);return i}return i.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.pE.path.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this.pE.path.L();return e.q()?null:new Vi(new S(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.pE.path.K()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(dr("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=St.En()),hr("CollectionReference.doc","non-empty string",1,e),""===e)throw new p(h.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=k.G(e);return Vi.lE(this.pE.path.child(t),this.firestore,this.EE)},t.prototype.add=function(e){cr("CollectionReference.add",arguments,1),hr("CollectionReference.add","object",1,this.EE?this.EE.toFirestore(e):e);var t=this.doc();return t.set(e).then((function(){return t}))},t.prototype.withConverter=function(e){return new t(this.BE,this.firestore,e)},t}(Ki);function Qi(e,t){if(void 0===t)return{merge:!1};if(wr(e,t,["merge","mergeFields"]),mr(e,"boolean","merge",t.merge),function(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){if(!(r instanceof Array))throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires its "+t+" option to be an array, but it was: "+br(r));for(var a=0;a<r.length;++a)if(!i(r[a]))throw new p(h.INVALID_ARGUMENT,"Function "+e+"() requires all "+t+" elements to be a string or a FieldPath, but the value at index "+a+" was: "+br(r[a]))}(e,"mergeFields",0,r,(function(e){return"string"==typeof e||e instanceof Pr}))}(e,0,0,t.mergeFields),void 0!==t.mergeFields&&void 0!==t.merge)throw new p(h.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function Zi(e,t){return void 0===t?{}:(wr(e,t,["serverTimestamps"]),vr(e,0,"serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function ea(e,t){pr(e,"object",1,t),t&&(wr(e,t,["source"]),vr(e,0,"source",t.source,["default","server","cache"]))}function ta(e,t,n){if(t instanceof Vi){if(t.firestore!==n)throw new p(h.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw kr(e,"DocumentReference",1,t)}function na(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Et()}}function ra(e,t,n){var r;return e?(r=e.toFirestore(t),n="toFirestore() in "+n):r=t,[r,n]}var ia=Cr(Hi,"Use firebase.firestore() instead."),aa=Cr(Ui,"Use firebase.firestore().runTransaction() instead."),oa=Cr(zi,"Use firebase.firestore().batch() instead."),sa=Cr(Vi,"Use firebase.firestore().doc() instead."),la=Cr(Wi),ca=Cr(Gi),ua=Cr(Ki),da=Cr(Ji),ha=Cr(Xi,"Use firebase.firestore().collection() instead."),pa={Firestore:ia,GeoPoint:jr,Timestamp:b,Blob:Lr,Transaction:aa,WriteBatch:oa,DocumentReference:sa,DocumentSnapshot:la,Query:ua,QueryDocumentSnapshot:ca,QuerySnapshot:da,CollectionReference:ha,FieldPath:Pr,FieldValue:Br,setLogLevel:Hi.setLogLevel,CACHE_SIZE_UNLIMITED:ji},fa=function(){function e(){}return e.prototype.Y_=function(e){},e.prototype.mu=function(){},e}(),ma=function(){function e(){var e=this;this.qE=function(){return e.UE()},this.QE=function(){return e.WE()},this.jE=[],this.KE()}return e.prototype.Y_=function(e){this.jE.push(e)},e.prototype.mu=function(){window.removeEventListener("online",this.qE),window.removeEventListener("offline",this.QE)},e.prototype.KE=function(){window.addEventListener("online",this.qE),window.addEventListener("offline",this.QE)},e.prototype.UE=function(){_t("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.jE;e<t.length;e++)(0,t[e])(0)},e.prototype.WE=function(){_t("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.jE;e<t.length;e++)(0,t[e])(1)},e.ho=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),va=function(){function e(e){this.GE=e.GE,this.zE=e.zE}return e.prototype.__=function(e){this.HE=e},e.prototype.h_=function(e){this.YE=e},e.prototype.onMessage=function(e){this.JE=e},e.prototype.close=function(){this.zE()},e.prototype.send=function(e){this.GE(e)},e.prototype.XE=function(){this.HE()},e.prototype.ZE=function(e){this.YE(e)},e.prototype.tI=function(e){this.JE(e)},e}(),ga={BatchGetDocuments:"batchGet",Commit:"commit"},ya="gl-js/ fire/"+u,ba=function(){function e(e){this.ci=e.ci;var t=e.ssl?"https":"http";this.eI=t+"://"+e.host,this.forceLongPolling=e.forceLongPolling}return e.prototype.sI=function(e,t){if(t)for(var n in t.o)t.o.hasOwnProperty(n)&&(e[n]=t.o[n]);e["X-Goog-Api-Client"]=ya},e.prototype.g_=function(e,t,n){var r=this,i=this.iI(e);return new Promise((function(a,o){var s=new c.XhrIo;s.listenOnce(c.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var t=s.getResponseJson();_t("Connection","XHR received:",JSON.stringify(t)),a(t);break;case c.ErrorCode.TIMEOUT:_t("Connection",'RPC "'+e+'" timed out'),o(new p(h.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(_t("Connection",'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var i=function(e){var t=e.toLowerCase().replace("_","-");return Object.values(h).indexOf(t)>=0?t:h.UNKNOWN}(r.status);o(new p(i,r.message))}else o(new p(h.UNKNOWN,"Server responded with status "+s.getStatus()))}else _t("Connection",'RPC "'+e+'" failed'),o(new p(h.UNAVAILABLE,"Connection failed."));break;default:Et()}}finally{_t("Connection",'RPC "'+e+'" completed.')}}));var l=Object.assign({},t);delete l.database;var u=JSON.stringify(l);_t("Connection","XHR sending: ",i+" "+u);var d={"Content-Type":"text/plain"};r.sI(d,n),s.send(i,"POST",u,d,15)}))},e.prototype.y_=function(e,t,n){return this.g_(e,t,n)},e.prototype.l_=function(e,t){var n=[this.eI,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=c.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.ci.projectId+"/databases/"+this.ci.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.sI(i.initMessageHeaders,t),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var a=n.join("");_t("Connection","Creating WebChannel: "+a+" "+i);var o=r.createWebChannel(a,i),l=!1,u=!1,d=new va({GE:function(e){u?_t("Connection","Not sending because WebChannel is closed:",e):(l||(_t("Connection","Opening WebChannel transport."),o.open(),l=!0),_t("Connection","WebChannel sending:",e),o.send(e))},zE:function(){return o.close()}}),f=function(e,t){o.listen(e,(function(e){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return f(c.WebChannel.EventType.OPEN,(function(){u||_t("Connection","WebChannel transport opened.")})),f(c.WebChannel.EventType.CLOSE,(function(){u||(u=!0,_t("Connection","WebChannel transport closed"),d.ZE())})),f(c.WebChannel.EventType.ERROR,(function(e){u||(u=!0,_t("Connection","WebChannel transport errored:",e),d.ZE(new p(h.UNAVAILABLE,"The operation could not be completed")))})),f(c.WebChannel.EventType.MESSAGE,(function(e){var t;if(!u){var n=e.data[0];Tt(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){_t("Connection","WebChannel received error:",i);var a=i.status,s=function(e){var t=De[e];if(void 0!==t)return He(t)}(a),l=i.message;void 0===s&&(s=h.INTERNAL,l="Unknown error status: "+a+" with message "+i.message),u=!0,d.ZE(new p(s,l)),o.close()}else _t("Connection","WebChannel received:",n),d.tI(n)}})),setTimeout((function(){d.XE()}),0),d},e.prototype.iI=function(e){var t=ga[e];return this.eI+"/v1/projects/"+this.ci.projectId+"/databases/"+this.ci.database+"/documents:"+t},e}();function _a(e){!function(e,t){e.INTERNAL.registerComponent(new l.Component("firestore",(function(e){return function(e,t){return new Hi(e,t,new Ai)}(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},pa)))}(e),e.registerVersion("@firebase/firestore","1.14.2")}vt.fn(new(function(){function e(){this.Tc="undefined"!=typeof atob}return Object.defineProperty(e.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),e.prototype.NT=function(e){return Promise.resolve(new ba(e))},e.prototype.yT=function(){return ma.ho()?new ma:new fa},e.prototype.vT=function(e){return new ft(e,{di:!0})},e.prototype.Tn=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}())),_a(a),t.__PRIVATE_registerFirestore=_a},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ErrorCode",(function(){return cr})),n.d(t,"EventType",(function(){return ur})),n.d(t,"WebChannel",(function(){return dr})),n.d(t,"XhrIo",(function(){return hr})),n.d(t,"createWebChannelTransport",(function(){return lr}));var r,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},a=a||{},o=i;function s(e){return"string"==typeof e}function l(e){return"number"==typeof e}function c(e,t){e=e.split("."),t=t||o;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function u(){}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function h(e){return"array"==d(e)}function p(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function f(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var m="closure_uid_"+(1e9*Math.random()>>>0),v=0;function g(e,t,n){return e.call.apply(e.bind,arguments)}function y(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function b(e,t,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g:y).apply(null,arguments)}function _(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var w=Date.now||function(){return+new Date};function k(e,t){function n(){}n.prototype=t.prototype,e.N=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.yb=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function E(){this.j=this.j,this.i=this.i}E.prototype.j=!1,E.prototype.la=function(){if(!this.j&&(this.j=!0,this.G(),0))this[m]||(this[m]=++v)},E.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var T=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(s(e))return s(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},S=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=s(e)?e.split(""):e,a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};function C(e){return Array.prototype.concat.apply([],arguments)}function x(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function M(e){return/^[\s\xa0]*$/.test(e)}var $,L=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function P(e,t){return-1!=e.indexOf(t)}function O(e,t){return e<t?-1:e>t?1:0}e:{var D=o.navigator;if(D){var I=D.userAgent;if(I){$=I;break e}}$=""}function A(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function N(e){var t,n={};for(t in e)n[t]=e[t];return n}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Y(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<R.length;a++)n=R[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function B(e){return B[" "](e),e}B[" "]=u;var j,F,H=P($,"Opera"),U=P($,"Trident")||P($,"MSIE"),z=P($,"Edge"),V=z||U,q=P($,"Gecko")&&!(P($.toLowerCase(),"webkit")&&!P($,"Edge"))&&!(P($,"Trident")||P($,"MSIE"))&&!P($,"Edge"),W=P($.toLowerCase(),"webkit")&&!P($,"Edge");function G(){var e=o.document;return e?e.documentMode:void 0}e:{var K="",J=(F=$,q?/rv:([^\);]+)(\)|;)/.exec(F):z?/Edge\/([\d\.]+)/.exec(F):U?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F):W?/WebKit\/(\S+)/.exec(F):H?/(?:Version)[ \/]?(\S+)/.exec(F):void 0);if(J&&(K=J?J[1]:""),U){var X=G();if(null!=X&&X>parseFloat(K)){j=String(X);break e}}j=K}var Q,Z={};function ee(e){return function(e,t){var n=Z;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=L(String(j)).split("."),r=L(String(e)).split("."),i=Math.max(n.length,r.length),a=0;0==t&&a<i;a++){var o=n[a]||"",s=r[a]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;t=O(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||O(0==o[2].length,0==s[2].length)||O(o[2],s[2]),o=o[3],s=s[3]}while(0==t)}return 0<=t}))}var te=o.document;Q=te&&U?G()||("CSS1Compat"==te.compatMode?parseInt(j,10):5):void 0;var ne=!U||9<=Number(Q),re=U&&!ee("9"),ie=function(){if(!o.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{o.addEventListener("test",u,t),o.removeEventListener("test",u,t)}catch(e){}return e}();function ae(e,t){this.type=e,this.a=this.target=t,this.Ia=!0}function oe(e,t){if(ae.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(q){e:{try{B(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=s(e.pointerType)?e.pointerType:se[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}ae.prototype.b=function(){this.Ia=!1},k(oe,ae);var se={2:"touch",3:"pen",4:"mouse"};oe.prototype.b=function(){oe.N.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,re)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}};var le="closure_listenable_"+(1e6*Math.random()|0),ce=0;function ue(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.da=i,this.key=++ce,this.X=this.Z=!1}function de(e){e.X=!0,e.listener=null,e.proxy=null,e.src=null,e.da=null}function he(e){this.src=e,this.a={},this.b=0}function pe(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],a=T(i,t);(r=0<=a)&&Array.prototype.splice.call(i,a,1),r&&(de(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function fe(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.X&&a.listener==t&&a.capture==!!n&&a.da==r)return i}return-1}he.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.a[a])||(e=this.a[a]=[],this.b++);var o=fe(e,t,r,i);return-1<o?(t=e[o],n||(t.Z=!1)):((t=new ue(t,this.src,a,!!r,i)).Z=n,e.push(t)),t};var me="closure_lm_"+(1e6*Math.random()|0),ve={};function ge(e,t,n,r,i){if(r&&r.once)return function e(t,n,r,i,a){if(h(n)){for(var o=0;o<n.length;o++)e(t,n[o],r,i,a);return null}return r=Se(r),t&&t[le]?t.Aa(n,r,f(i)?!!i.capture:!!i,a):ye(t,n,r,!0,i,a)}(e,t,n,r,i);if(h(t)){for(var a=0;a<t.length;a++)ge(e,t[a],n,r,i);return null}return n=Se(n),e&&e[le]?e.za(t,n,f(r)?!!r.capture:!!r,i):ye(e,t,n,!1,r,i)}function ye(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var o=f(i)?!!i.capture:!!i;if(o&&!ne)return null;var s=Ee(e);if(s||(e[me]=s=new he(e)),(n=s.add(t,n,r,o,a)).proxy)return n;if(r=function(){var e=ke,t=ne?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ie||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(_e(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function be(e){if(!l(e)&&e&&!e.X){var t=e.src;if(t&&t[le])pe(t.c,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(_e(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Ee(t))?(pe(n,e),0==n.b&&(n.src=null,t[me]=null)):de(e)}}}function _e(e){return e in ve?ve[e]:ve[e]="on"+e}function we(e,t){var n=e.listener,r=e.da||e.src;return e.Z&&be(e),n.call(r,t)}function ke(e,t){return!!e.X||(ne?we(e,new oe(t,this)):we(e,t=new oe(t||c("window.event"),this)))}function Ee(e){return(e=e[me])instanceof he?e:null}var Te="__closure_events_fn_"+(1e9*Math.random()>>>0);function Se(e){return"function"==d(e)?e:(e[Te]||(e[Te]=function(t){return e.handleEvent(t)}),e[Te])}function Ce(){E.call(this),this.c=new he(this),this.J=this,this.B=null}function xe(e,t,n,r){if(!(t=e.c.a[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.X&&o.capture==n){var s=o.listener,l=o.da||o.src;o.Z&&pe(e.c,o),i=!1!==s.call(l,r)&&i}}return i&&0!=r.Ia}k(Ce,E),Ce.prototype[le]=!0,(r=Ce.prototype).addEventListener=function(e,t,n,r){ge(this,e,t,n,r)},r.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,a){if(h(n))for(var o=0;o<n.length;o++)e(t,n[o],r,i,a);else i=f(i)?!!i.capture:!!i,r=Se(r),t&&t[le]?(t=t.c,(n=String(n).toString())in t.a&&(-1<(r=fe(o=t.a[n],r,i,a))&&(de(o[r]),Array.prototype.splice.call(o,r,1),0==o.length&&(delete t.a[n],t.b--)))):t&&(t=Ee(t))&&(n=t.a[n.toString()],t=-1,n&&(t=fe(n,r,i,a)),(r=-1<t?n[t]:null)&&be(r))}(this,e,t,n,r)},r.dispatchEvent=function(e){var t,n=this.B;if(n)for(t=[];n;n=n.B)t.push(n);n=this.J;var r=e.type||e;if(s(e))e=new ae(e,n);else if(e instanceof ae)e.target=e.target||n;else{var i=e;Y(e=new ae(r,n),i)}if(i=!0,t)for(var a=t.length-1;0<=a;a--){var o=e.a=t[a];i=xe(o,r,!0,e)&&i}if(i=xe(o=e.a=n,r,!0,e)&&i,i=xe(o,r,!1,e)&&i,t)for(a=0;a<t.length;a++)i=xe(o=e.a=t[a],r,!1,e)&&i;return i},r.G=function(){if(Ce.N.G.call(this),this.c){var e,t=this.c;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)de(n[r]);delete t.a[e],t.b--}}this.B=null},r.za=function(e,t,n,r){return this.c.add(String(e),t,!1,n,r)},r.Aa=function(e,t,n,r){return this.c.add(String(e),t,!0,n,r)};var Me=o.JSON.stringify;function $e(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function Le(){this.b=this.a=null}$e.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Pe,Oe=new $e((function(){return new Ie}),(function(e){e.reset()}));function De(){var e=Ye,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Ie(){this.next=this.b=this.a=null}function Ae(e){o.setTimeout((function(){throw e}),0)}function Ne(e,t){Pe||function(){var e=o.Promise.resolve(void 0);Pe=function(){e.then(Be)}}(),Re||(Pe(),Re=!0),Ye.add(e,t)}Le.prototype.add=function(e,t){var n=Oe.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Ie.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Ie.prototype.reset=function(){this.next=this.b=this.a=null};var Re=!1,Ye=new Le;function Be(){for(var e;e=De();){try{e.a.call(e.b)}catch(e){Ae(e)}var t=Oe;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Re=!1}function je(e,t){Ce.call(this),this.b=e||1,this.a=t||o,this.f=b(this.gb,this),this.g=w()}function Fe(e){e.ba=!1,e.L&&(e.a.clearTimeout(e.L),e.L=null)}function He(e,t,n){if("function"==d(e))n&&(e=b(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=b(e.handleEvent,e)}return 2147483647<Number(t)?-1:o.setTimeout(e,t||0)}function Ue(e,t,n){E.call(this),this.f=null!=n?b(e,n):e,this.c=t,this.b=b(this.$a,this),this.a=[]}function ze(e){e.U=He(e.b,e.c),e.f.apply(null,e.a)}function Ve(e){E.call(this),this.b=e,this.a={}}k(je,Ce),(r=je.prototype).ba=!1,r.L=null,r.gb=function(){if(this.ba){var e=w()-this.g;0<e&&e<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-e):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.ba&&(Fe(this),this.start()))}},r.start=function(){this.ba=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=w())},r.G=function(){je.N.G.call(this),Fe(this),delete this.a},k(Ue,E),(r=Ue.prototype).ea=!1,r.U=null,r.Ta=function(e){this.a=arguments,this.U?this.ea=!0:ze(this)},r.G=function(){Ue.N.G.call(this),this.U&&(o.clearTimeout(this.U),this.U=null,this.ea=!1,this.a=[])},r.$a=function(){this.U=null,this.ea&&(this.ea=!1,ze(this))},k(Ve,E);var qe=[];function We(e,t,n,r){h(n)||(n&&(qe[0]=n.toString()),n=qe);for(var i=0;i<n.length;i++){var a=ge(t,n[i],r||e.handleEvent,!1,e.b||e);if(!a)break;e.a[a.key]=a}}function Ge(e){A(e.a,(function(e,t){this.a.hasOwnProperty(t)&&be(e)}),e),e.a={}}function Ke(){}Ve.prototype.G=function(){Ve.N.G.call(this),Ge(this)},Ve.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Je=new Ce;function Xe(e){ae.call(this,"serverreachability",e)}function Qe(e){Je.dispatchEvent(new Xe(Je,e))}function Ze(e){ae.call(this,"statevent",e)}function et(e){Je.dispatchEvent(new Ze(Je,e))}function tt(e){ae.call(this,"timingevent",e)}function nt(e,t){if("function"!=d(e))throw Error("Fn must not be null and must be a function");return o.setTimeout((function(){e()}),t)}k(Xe,ae),k(Ze,ae),k(tt,ae);var rt={NO_ERROR:0,hb:1,ob:2,nb:3,kb:4,mb:5,pb:6,La:7,TIMEOUT:8,sb:9},it={jb:"complete",wb:"success",Ma:"error",La:"abort",ub:"ready",vb:"readystatechange",TIMEOUT:"timeout",qb:"incrementaldata",tb:"progress",lb:"downloadprogress",xb:"uploadprogress"};function at(){}function ot(e){var t;return(t=e.a)||(t=e.a={}),t}function st(){}at.prototype.a=null;var lt,ct={OPEN:"a",ib:"b",Ma:"c",rb:"d"};function ut(){ae.call(this,"d")}function dt(){ae.call(this,"c")}function ht(){}function pt(e,t,n){this.g=e,this.W=t,this.V=n||1,this.I=new Ve(this),this.O=ft,e=V?125:void 0,this.P=new je(e),this.h=null,this.b=!1,this.l=this.D=this.f=this.F=this.v=this.R=this.i=null,this.j=[],this.a=null,this.A=0,this.c=this.w=null,this.o=-1,this.m=!1,this.J=0,this.B=null,this.s=this.S=this.H=!1}k(ut,ae),k(dt,ae),k(ht,at),lt=new ht;var ft=45e3,mt={},vt={};function gt(e,t,n){e.F=1,e.f=Ht(At(t)),e.l=n,e.H=!0,bt(e,null)}function yt(e,t,n,r){e.F=1,e.f=Ht(At(t)),e.l=null,e.H=n,bt(e,r)}function bt(e,t){e.v=w(),kt(e),e.D=At(e.f),Ft(e.D,"t",e.V),e.A=0,e.a=e.g.$(e.g.Y()?t:null),0<e.J&&(e.B=new Ue(b(e.Ja,e,e.a),e.J)),We(e.I,e.a,"readystatechange",e.cb),t=e.h?N(e.h):{},e.l?(e.w||(e.w="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.a.ca(e.D,e.w,e.l,t)):(e.w="GET",e.a.ca(e.D,e.w,null,t)),Qe(1)}function _t(e,t,n){for(var r=!0;!e.m&&e.A<n.length;){var i=wt(e,n);if(i==vt){4==t&&(e.c=4,et(14),r=!1);break}if(i==mt){e.c=4,et(15),r=!1;break}xt(e,i)}4==t&&0==n.length&&(e.c=1,et(16),r=!1),e.b=e.b&&r,r||(Ct(e),St(e))}function wt(e,t){var n=e.A,r=t.indexOf("\n",n);return-1==r?vt:(n=Number(t.substring(n,r)),isNaN(n)?mt:(r+=1)+n>t.length?vt:(t=t.substr(r,n),e.A=r+n,t))}function kt(e){e.R=w()+e.O,Et(e,e.O)}function Et(e,t){if(null!=e.i)throw Error("WatchDog timer not null");e.i=nt(b(e.ab,e),t)}function Tt(e){e.i&&(o.clearTimeout(e.i),e.i=null)}function St(e){e.g.Ca()||e.m||e.g.na(e)}function Ct(e){Tt(e);var t=e.B;t&&"function"==typeof t.la&&t.la(),e.B=null,Fe(e.P),Ge(e.I),e.a&&(t=e.a,e.a=null,t.abort(),t.la())}function xt(e,t){try{e.g.Fa(e,t),Qe(4)}catch(e){}}function Mt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(p(e)||s(e))S(e,t,void 0);else{if(e.K&&"function"==typeof e.K)var n=e.K();else if(e.C&&"function"==typeof e.C)n=void 0;else if(p(e)||s(e)){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;i=(r=function(e){if(e.C&&"function"==typeof e.C)return e.C();if(s(e))return e.split("");if(p(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e)).length;for(var a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}}function $t(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof $t)for(n=e.K(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Lt(e,t){Ot(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Pt(e))}function Pt(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Ot(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Ot(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(r=pt.prototype).setTimeout=function(e){this.O=e},r.cb=function(e){e=e.target;var t=this.B;t&&3==An(e)?t.Ta():this.Ja(e)},r.Ja=function(e){try{if(e==this.a)e:{var t=An(this.a),n=this.a.ya(),r=this.a.T();if(!(3>t||3==t&&!V&&!this.a.aa())){this.m||4!=t||7==n||Qe(8==n||0>=r?3:2),Tt(this);var i=this.a.T();this.o=i;var a=this.a.aa();if(this.b=200==i){if(this.S&&!this.s){t:{if(this.a){var o=Nn(this.a,"X-HTTP-Initial-Response");if(o&&!M(o)){var s=o;break t}}s=null}if(!s){this.b=!1,this.c=3,et(12),Ct(this),St(this);break e}this.s=!0,xt(this,s)}this.H?(_t(this,t,a),V&&this.b&&3==t&&(We(this.I,this.P,"tick",this.bb),this.P.start())):xt(this,a),4==t&&Ct(this),this.b&&!this.m&&(4==t?this.g.na(this):(this.b=!1,kt(this)))}else 400==i&&0<a.indexOf("Unknown SID")?(this.c=3,et(12)):(this.c=0,et(13)),Ct(this),St(this)}}}catch(e){}},r.bb=function(){if(this.a){var e=An(this.a),t=this.a.aa();this.A<t.length&&(Tt(this),_t(this,e,t),this.b&&4!=e&&kt(this))}},r.cancel=function(){this.m=!0,Ct(this)},r.ab=function(){this.i=null;var e=w();0<=e-this.R?(2!=this.F&&(Qe(3),et(17)),Ct(this),this.c=2,St(this)):Et(this,this.R-e)},(r=$t.prototype).C=function(){Pt(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},r.K=function(){return Pt(this),this.a.concat()},r.get=function(e,t){return Ot(this.b,e)?this.b[e]:t},r.set=function(e,t){Ot(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},r.forEach=function(e,t){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);e.call(t,a,i,this)}};var Dt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function It(e,t){var n;this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1,e instanceof It?(this.h=void 0!==t?t:e.h,Nt(this,e.f),this.j=e.j,Rt(this,e.b),Yt(this,e.i),this.a=e.a,Bt(this,nn(e.c)),this.g=e.g):e&&(n=String(e).match(Dt))?(this.h=!!t,Nt(this,n[1]||"",!0),this.j=Ut(n[2]||""),Rt(this,n[3]||"",!0),Yt(this,n[4]),this.a=Ut(n[5]||"",!0),Bt(this,n[6]||"",!0),this.g=Ut(n[7]||"")):(this.h=!!t,this.c=new Xt(null,this.h))}function At(e){return new It(e)}function Nt(e,t,n){e.f=n?Ut(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Rt(e,t,n){e.b=n?Ut(t,!0):t}function Yt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function Bt(e,t,n){t instanceof Xt?(e.c=t,function(e,t){t&&!e.f&&(Qt(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Zt(this,t),tn(this,n,e))}),e)),e.f=t}(e.c,e.h)):(n||(t=zt(t,Kt)),e.c=new Xt(t,e.h))}function jt(e,t,n){e.c.set(t,n)}function Ft(e,t,n){h(n)||(n=[String(n)]),tn(e.c,t,n)}function Ht(e){return jt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)),e}function Ut(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function zt(e,t,n){return s(e)?(e=encodeURI(e).replace(t,Vt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Vt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}It.prototype.toString=function(){var e=[],t=this.f;t&&e.push(zt(t,qt,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(zt(t,qt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(zt(n,"/"==n.charAt(0)?Gt:Wt,!0))),(n=this.c.toString())&&e.push("?",n),(n=this.g)&&e.push("#",zt(n,Jt)),e.join("")},It.prototype.resolve=function(e){var t=At(this),n=!!e.f;n?Nt(t,e.f):n=!!e.j,n?t.j=e.j:n=!!e.b,n?Rt(t,e.b):n=null!=e.i;var r=e.a;if(n)Yt(t,e.i);else if(n=!!e.a){if("/"!=r.charAt(0))if(this.b&&!this.a)r="/"+r;else{var i=t.a.lastIndexOf("/");-1!=i&&(r=t.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(P(i,"./")||P(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}r=a.join("/")}else r=i}return n?t.a=r:n=""!==e.c.toString(),n?Bt(t,nn(e.c)):n=!!e.g,n&&(t.g=e.g),t};var qt=/[#\/\?@]/g,Wt=/[#\?:]/g,Gt=/[#\?]/g,Kt=/[#\?@]/g,Jt=/#/g;function Xt(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qt(e){e.a||(e.a=new $t,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Zt(e,t){Qt(e),t=rn(e,t),Ot(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Lt(e.a,t))}function en(e,t){return Qt(e),t=rn(e,t),Ot(e.a.b,t)}function tn(e,t,n){Zt(e,t),0<n.length&&(e.c=null,e.a.set(rn(e,t),x(n)),e.b+=n.length)}function nn(e){var t=new Xt;return t.c=e.c,e.a&&(t.a=new $t(e.a),t.b=e.b),t}function rn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function an(e){this.a=e,this.b=this.h=null,this.g=!1,this.i=null,this.c=-1,this.l=this.f=null}function on(e){var t=e.a.F.a;if(null!=t)et(4),t?(et(10),Gn(e.a,e,!1)):(et(11),Gn(e.a,e,!0));else{e.b=new pt(e,void 0,void 0),e.b.h=e.h,t=Zn(t=e.a,t.Y()?e.f:null,e.i),et(4),Ft(t,"TYPE","xmlhttp");var n=e.a.j,r=e.a.I;n&&r&&jt(t,n,r),yt(e.b,t,!1,e.f)}}function sn(){this.a=this.b=null}function ln(){this.a=new $t}function cn(e){var t=typeof e;return"object"==t&&e||"function"==t?"o"+(e[m]||(e[m]=++v)):t.charAt(0)+e}function un(e,t){this.b=e,this.a=t}function dn(e){this.g=e||hn,o.PerformanceNavigationTiming?e=0<(e=o.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(o.ka&&o.ka.Da&&o.ka.Da()&&o.ka.Da().zb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new ln),this.b=null,this.c=[]}(r=Xt.prototype).add=function(e,t){Qt(this),this.c=null,e=rn(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},r.forEach=function(e,t){Qt(this),this.a.forEach((function(n,r){S(n,(function(n){e.call(t,n,r,this)}),this)}),this)},r.K=function(){Qt(this);for(var e=this.a.C(),t=this.a.K(),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},r.C=function(e){Qt(this);var t=[];if(s(e))en(this,e)&&(t=C(t,this.a.get(rn(this,e))));else{e=this.a.C();for(var n=0;n<e.length;n++)t=C(t,e[n])}return t},r.set=function(e,t){return Qt(this),this.c=null,en(this,e=rn(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},r.get=function(e,t){return e&&0<(e=this.C(e)).length?String(e[0]):t},r.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.K(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.C(r);for(var a=0;a<r.length;a++){var o=i;""!==r[a]&&(o+="="+encodeURIComponent(String(r[a]))),e.push(o)}}return this.c=e.join("&")},k((function(){}),(function(){})),(r=an.prototype).M=null,r.$=function(e){return this.a.$(e)},r.abort=function(){this.b&&(this.b.cancel(),this.b=null),this.c=-1},r.Ca=function(){return!1},r.Fa=function(e,t){if(this.c=e.o,0==this.M){if(!this.a.o&&(e=e.a)){var n=Nn(e,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&(e=Nn(e,"X-HTTP-Session-Id"))&&(this.a.I=e)}if(t){try{var r=this.a.ja.a.parse(t)}catch(e){return(t=this.a).m=this.c,void Xn(t,2)}this.f=r[0]}else(t=this.a).m=this.c,Xn(t,2)}else 1==this.M&&(this.g?et(6):"11111"==t?(et(5),this.g=!0,(!U||10<=Number(Q))&&(this.c=200,this.b.cancel(),et(11),Gn(this.a,this,!0))):(et(7),this.g=!1))},r.na=function(){if(this.c=this.b.o,this.b.b)0==this.M?(this.M=1,on(this)):1==this.M&&(this.g?(et(11),Gn(this.a,this,!0)):(et(10),Gn(this.a,this,!1)));else{0==this.M?et(8):1==this.M&&et(9);var e=this.a;e.m=this.c,Xn(e,2)}},r.Y=function(){return this.a.Y()},r.ma=function(){return this.a.ma()},ln.prototype.add=function(e){this.a.set(cn(e),e)},ln.prototype.C=function(){return this.a.C()};var hn=10;function pn(e,t){!e.a&&(P(t,"spdy")||P(t,"quic")||P(t,"h2"))&&(e.f=e.g,e.a=new ln,e.b&&(gn(e,e.b),e.b=null))}function fn(e){return!!e.b||!!e.a&&e.a.a.c>=e.f}function mn(e){return e.b?1:e.a?e.a.a.c:0}function vn(e,t){return e.b?e=e.b==t:e.a?(t=cn(t),e=Ot(e.a.a.b,t)):e=!1,e}function gn(e,t){e.a?e.a.add(t):e.b=t}function yn(e,t){var n;e.b&&e.b==t?e.b=null:((n=e.a)&&(n=cn(t),n=Ot(e.a.a.b,n)),n&&Lt(e.a.a,cn(t)))}function bn(e){if(null!=e.b)return e.c.concat(e.b.j);if(null!=e.a&&0!=e.a.a.c){var t=e.c;return S(e.a.C(),(function(e){t=t.concat(e.j)})),t}return x(e.c)}function _n(){}function wn(){this.a=new _n}function kn(e,t,n){var r=n||"";try{Mt(e,(function(e,n){var i=e;f(e)&&(i=Me(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}function En(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(e){}}dn.prototype.cancel=function(){this.c=bn(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&(S(this.a.C(),(function(e){e.cancel()})),function(e){e.b={},e.a.length=0,e.c=0}(this.a.a))},_n.prototype.stringify=function(e){return o.JSON.stringify(e,void 0)},_n.prototype.parse=function(e){return o.JSON.parse(e,void 0)};var Tn=o.JSON.parse;function Sn(e){Ce.call(this),this.headers=new $t,this.H=e||null,this.b=!1,this.s=this.a=null,this.A="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.I=Cn,this.D=this.F=!1}k(Sn,Ce);var Cn="",xn=/^https?$/i,Mn=["POST","PUT"];function $n(e){return"content-type"==e.toLowerCase()}function Ln(e,t){e.b=!1,e.a&&(e.g=!0,e.a.abort(),e.g=!1),e.f=t,e.h=5,Pn(e),Dn(e)}function Pn(e){e.v||(e.v=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function On(e){if(e.b&&void 0!==a&&(!e.s[1]||4!=An(e)||2!=e.T()))if(e.l&&4==An(e))He(e.Ea,0,e);else if(e.dispatchEvent("readystatechange"),4==An(e)){e.b=!1;try{var t,n=e.T();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var s=String(e.A).match(Dt)[1]||null;if(!s&&o.self&&o.self.location){var l=o.self.location.protocol;s=l.substr(0,l.length-1)}i=!xn.test(s?s.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.h=6;try{var c=2<An(e)?e.a.statusText:""}catch(e){c=""}e.f=c+" ["+e.T()+"]",Pn(e)}}finally{Dn(e)}}}function Dn(e,t){if(e.a){In(e);var n=e.a,r=e.s[0]?u:null;e.a=null,e.s=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(e){}}}function In(e){e.a&&e.D&&(e.a.ontimeout=null),e.m&&(o.clearTimeout(e.m),e.m=null)}function An(e){return e.a?e.a.readyState:0}function Nn(e,t){return e.a?e.a.getResponseHeader(t):null}function Rn(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}if(r)return e;if(n=function(e){var t="";return A(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),s(e)){if(t=encodeURIComponent(String(t)),t+=n=null!=n?"="+encodeURIComponent(String(n)):""){if(0>(n=e.indexOf("#"))&&(n=e.length),0>(r=e.indexOf("?"))||r>n){r=n;var i=""}else i=e.substring(r+1,n);n=(e=[e.substr(0,r),i,e.substr(n)])[1],e[1]=t?n?n+"&"+t:t:n,e=e[0]+(e[1]?"?"+e[1]:"")+e[2]}return e}return jt(e,t,n),e}function Yn(e){this.f=[],this.F=new sn,this.ga=this.pa=this.B=this.ha=this.a=this.I=this.j=this.V=this.g=this.J=this.i=null,this.Qa=this.P=0,this.Oa=!!c("internalChannelParams.failFast",e),this.ia=this.w=this.s=this.l=this.h=this.c=null,this.oa=!0,this.m=this.ra=this.O=-1,this.S=this.v=this.A=0,this.Na=c("internalChannelParams.baseRetryDelayMs",e)||5e3,this.Ra=c("internalChannelParams.retryDelaySeedMs",e)||1e4,this.Pa=c("internalChannelParams.forwardChannelMaxRetries",e)||2,this.qa=c("internalChannelParams.forwardChannelRequestTimeoutMs",e)||2e4,this.Ka=e&&e.Ab||void 0,this.D=void 0,this.R=e&&e.supportsCrossDomainXhr||!1,this.H="",this.b=new dn(e&&e.concurrentRequestLimit),this.ja=new wn,this.o=!e||void 0===e.backgroundChannelTest||e.backgroundChannelTest,(this.W=e&&e.fastHandshake||!1)&&!this.o&&(this.o=!0),e&&e.forceLongPolling&&(this.oa=!1),this.fa=void 0}function Bn(e){if(jn(e),3==e.u){var t=e.P++,n=At(e.B);jt(n,"SID",e.H),jt(n,"RID",t),jt(n,"TYPE","terminate"),zn(e,n),(t=new pt(e,t,void 0)).F=2,t.f=Ht(At(n)),n=!1,o.navigator&&o.navigator.sendBeacon&&(n=o.navigator.sendBeacon(t.f.toString(),"")),!n&&o.Image&&((new Image).src=t.f,n=!0),n||(t.a=t.g.$(null),t.a.ca(t.f)),t.v=w(),kt(t)}Qn(e)}function jn(e){e.w&&(e.w.abort(),e.w=null),e.a&&(e.a.cancel(),e.a=null),e.l&&(o.clearTimeout(e.l),e.l=null),Kn(e),e.b.cancel(),e.h&&(l(e.h)&&o.clearTimeout(e.h),e.h=null)}function Fn(e,t){e.f.push(new un(e.Qa++,t)),3==e.u&&Hn(e)}function Hn(e){fn(e.b)||e.h||(e.h=!0,Ne(e.Ha,e),e.A=0)}function Un(e,t){var n;n=t?t.W:e.P++;var r=At(e.B);jt(r,"SID",e.H),jt(r,"RID",n),jt(r,"AID",e.O),zn(e,r),e.g&&e.i&&Rn(r,e.g,e.i),n=new pt(e,n,e.A+1),null===e.g&&(n.h=e.i),t&&(e.f=t.j.concat(e.f)),t=Vn(e,n,1e3),n.setTimeout(Math.round(.5*e.qa)+Math.round(.5*e.qa*Math.random())),gn(e.b,n),gt(n,r,t)}function zn(e,t){e.c&&Mt({},(function(e,n){jt(t,n,e)}))}function Vn(e,t,n){n=Math.min(e.f.length,n);var r=e.c?b(e.c.Sa,e.c,e):null;e:for(var i=e.f,a=-1;;){var o=["count="+n];-1==a?0<n?(a=i[0].b,o.push("ofs="+a)):a=0:o.push("ofs="+a);for(var s=!0,l=0;l<n;l++){var c=i[l].b,u=i[l].a;if(0>(c-=a))a=Math.max(0,i[l].b-100),s=!1;else try{kn(u,o,"req"+c+"_")}catch(e){r&&r(u)}}if(s){r=o.join("&");break e}}return e=e.f.splice(0,n),t.j=e,r}function qn(e){e.a||e.l||(e.S=1,Ne(e.Ga,e),e.v=0)}function Wn(e){return!(e.a||e.l||3<=e.v)&&(e.S++,e.l=nt(b(e.Ga,e),Jn(e,e.v)),e.v++,!0)}function Gn(e,t,n){var r=t.l;r&&pn(e.b,r),e.ia=e.oa&&n,e.m=t.c,e.B=Zn(e,null,e.ha),Hn(e)}function Kn(e){null!=e.s&&(o.clearTimeout(e.s),e.s=null)}function Jn(e,t){var n=e.Na+Math.floor(Math.random()*e.Ra);return e.ma()||(n*=2),n*t}function Xn(e,t){if(2==t){var n=null;e.c&&(n=null);var r=b(e.eb,e);n||(n=new It("//www.google.com/images/cleardot.gif"),o.location&&"http"==o.location.protocol||Nt(n,"https"),Ht(n)),function(e,t){var n=new Ke;if(o.Image){var r=new Image;r.onload=_(En,n,r,"TestLoadImage: loaded",!0,t),r.onerror=_(En,n,r,"TestLoadImage: error",!1,t),r.onabort=_(En,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=_(En,n,r,"TestLoadImage: timeout",!1,t),o.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else et(2);e.u=0,e.c&&e.c.ta(t),Qn(e),jn(e)}function Qn(e){e.u=0,e.m=-1,e.c&&(0==bn(e.b).length&&0==e.f.length||(e.b.c.length=0,x(e.f),e.f.length=0),e.c.sa())}function Zn(e,t,n){var r=function(e){return e instanceof It?At(e):new It(e,void 0)}(n);if(""!=r.b)t&&Rt(r,t+"."+r.b),Yt(r,r.i);else{var i,a=o.location;i=t?t+"."+a.hostname:a.hostname,r=function(e,t,n,r){var i=new It(null,void 0);return e&&Nt(i,e),t&&Rt(i,t),n&&Yt(i,n),r&&(i.a=r),i}(a.protocol,i,+a.port,n)}return e.V&&A(e.V,(function(e,t){jt(r,t,e)})),t=e.j,n=e.I,t&&n&&jt(r,t,n),jt(r,"VER",e.wa),zn(e,r),r}function er(){}function tr(){if(U&&!(10<=Number(Q)))throw Error("Environmental error: no available transport.")}function nr(e,t){Ce.call(this),this.a=new Yn(t),this.g=e,this.m=t&&t.fb?t.fb:function(e){for(var t=arguments[0],n=1;n<arguments.length;n++){var r,i=arguments[n];if(0==i.lastIndexOf("/",0))t=i;else(r=""==t)||(r=0<=(r=t.length-1)&&t.indexOf("/",r)==r),t+=r?i:"/"+i}return t}(this.g,"test"),this.b=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.i=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.xa&&(e?e["X-WebChannel-Client-Profile"]=t.xa:e={"X-WebChannel-Client-Profile":t.xa}),this.a.J=e,(e=t&&t.httpHeadersOverwriteParam)&&!M(e)&&(this.a.g=e),this.l=t&&t.supportsCrossDomainXhr||!1,this.h=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!M(t)&&(this.a.j=t,null!==(e=this.b)&&t in e&&(t in(e=this.b)&&delete e[t])),this.f=new ar(this)}function rr(e){ut.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function ir(){dt.call(this),this.status=1}function ar(e){this.a=e}(r=Sn.prototype).ca=function(e,t,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.A+"; newUri="+e);t=t?t.toUpperCase():"GET",this.A=e,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?ot(this.H):ot(lt),this.a.onreadystatechange=b(this.Ea,this);try{this.w=!0,this.a.open(t,String(e),!0),this.w=!1}catch(e){return void Ln(this,e)}e=n||"";var i=new $t(this.headers);r&&Mt(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=$n,n=e.length,r=s(e)?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:s(e)?e.charAt(t):e[t]}(i.K()),n=o.FormData&&e instanceof o.FormData,!(0<=T(Mn,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(e,t){this.a.setRequestHeader(t,e)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{In(this),0<this.o&&((this.D=function(e){return U&&ee(9)&&l(e.timeout)&&void 0!==e.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=b(this.Ba,this)):this.m=He(this.Ba,this.o,this)),this.l=!0,this.a.send(e),this.l=!1}catch(e){Ln(this,e)}},r.Ba=function(){void 0!==a&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},r.abort=function(e){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Dn(this))},r.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),Dn(this,!0)),Sn.N.G.call(this)},r.Ea=function(){this.j||(this.w||this.l||this.g?On(this):this.Za())},r.Za=function(){On(this)},r.T=function(){try{return 2<An(this)?this.a.status:-1}catch(e){return-1}},r.aa=function(){try{return this.a?this.a.responseText:""}catch(e){return""}},r.Ua=function(e){if(this.a){var t=this.a.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Tn(t)}},r.ya=function(){return this.h},r.Xa=function(){return s(this.f)?this.f:String(this.f)},(r=Yn.prototype).wa=8,r.u=1,r.Ca=function(){return 0==this.u},r.Ha=function(e){if(this.h)if(this.h=null,1==this.u){if(!e){this.P=Math.floor(1e5*Math.random());var t,n=new pt(this,e=this.P++,void 0),r=this.i;if(this.J&&(r?Y(r=N(r),this.J):r=this.J),null===this.g&&(n.h=r),this.W)e:{for(var i=t=0;i<this.f.length;i++){var a=this.f[i];if(void 0===(a="__data__"in a.a&&s(a=a.a.__data__)?a.length:void 0))break;if(4096<(t+=a)){t=i;break e}if(4096===t||i===this.f.length-1){t=i+1;break e}}t=1e3}else t=1e3;t=Vn(this,n,t),jt(i=At(this.B),"RID",e),jt(i,"CVER",22),this.o&&this.j&&jt(i,"X-HTTP-Session-Id",this.j),zn(this,i),this.g&&r&&Rn(i,this.g,r),gn(this.b,n),this.W?(jt(i,"$req",t),jt(i,"SID","null"),n.S=!0,gt(n,i,null)):gt(n,i,t),this.u=2}}else 3==this.u&&(e?Un(this,e):0==this.f.length||fn(this.b)||Un(this))},r.Ga=function(){this.l=null,this.a=new pt(this,"rpc",this.S),null===this.g&&(this.a.h=this.i),this.a.J=0;var e=At(this.pa);jt(e,"RID","rpc"),jt(e,"SID",this.H),jt(e,"CI",this.ia?"0":"1"),jt(e,"AID",this.O),zn(this,e),jt(e,"TYPE","xmlhttp"),this.g&&this.i&&Rn(e,this.g,this.i),this.D&&this.a.setTimeout(this.D),yt(this.a,e,!0,this.ga)},r.Fa=function(e,t){if(0!=this.u&&(this.a==e||vn(this.b,e)))if(this.m=e.o,!e.s&&vn(this.b,e)&&3==this.u){try{var n=this.ja.a.parse(t)}catch(e){n=null}if(h(n)&&3==n.length){if(0==(t=n)[0]){e:if(!this.l){if(this.a){if(!(this.a.v+3e3<e.v))break e;Kn(this),this.a.cancel(),this.a=null}Wn(this),et(18)}}else this.ra=t[1],0<this.ra-this.O&&37500>t[2]&&this.ia&&0==this.v&&!this.s&&(this.s=nt(b(this.Ya,this),6e3));if(1>=mn(this.b)&&this.fa){try{this.fa()}catch(e){}this.fa=void 0}}else Xn(this,11)}else if((e.s||this.a==e)&&Kn(this),!M(t))for(t=n=this.ja.a.parse(t),n=0;n<t.length;n++){var r=t[n];if(this.O=r[0],r=r[1],2==this.u)if("c"==r[0]){this.H=r[1],this.ga=r[2];var i=r[3];null!=i&&(this.wa=i),null!=(r=r[5])&&l(r)&&0<r&&(this.D=1.5*r),this.o&&(r=e.a)&&((i=Nn(r,"X-Client-Wire-Protocol"))&&pn(this.b,i),this.j&&(r=Nn(r,"X-HTTP-Session-Id")))&&(this.I=r,jt(this.B,this.j,r)),this.u=3,this.c&&this.c.va(),r=e,this.pa=Zn(this,this.Y()?this.ga:null,this.ha),r.s?(yn(this.b,r),(i=this.D)&&r.setTimeout(i),r.i&&(Tt(r),kt(r)),this.a=r):qn(this),0<this.f.length&&Hn(this)}else"stop"!=r[0]&&"close"!=r[0]||Xn(this,7);else 3==this.u&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Xn(this,7):Bn(this):"noop"!=r[0]&&this.c&&this.c.ua(r),this.v=0)}},r.Ya=function(){null!=this.s&&(this.s=null,this.a.cancel(),this.a=null,Wn(this),et(19))},r.na=function(e){var t=null;if(this.a==e){Kn(this),this.a=null;var n=2}else{if(!vn(this.b,e))return;t=e.j,yn(this.b,e),n=1}if(this.m=e.o,0!=this.u)if(e.b)1==n?(t=w()-e.v,Je.dispatchEvent(new tt(Je,e.l?e.l.length:0,t,this.A)),Hn(this)):qn(this);else{var r=e.c;if(3==r||0==r&&0<this.m||!(1==n&&function(e,t){return!(mn(e.b)>=e.b.f-(e.h?1:0))&&(e.h?(e.f=t.j.concat(e.f),!0):!(1==e.u||2==e.u||e.A>=(e.Oa?0:e.Pa))&&(e.h=nt(b(e.Ha,e,t),Jn(e,e.A)),e.A++,!0))}(this,e)||2==n&&Wn(this)))switch(t&&0<t.length&&(e=this.b,e.c=e.c.concat(t)),r){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this,6);break;default:Xn(this,2)}}},r.eb=function(e){et(e?2:1)},r.$=function(e){if(e&&!this.R)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Sn(this.Ka)).F=this.R,e},r.ma=function(){return!!this.c&&!0},r.Y=function(){return this.R},(r=er.prototype).va=function(){},r.ua=function(){},r.ta=function(){},r.sa=function(){},r.Sa=function(){},tr.prototype.a=function(e,t){return new nr(e,t)},k(nr,Ce),(r=nr.prototype).addEventListener=function(e,t,n,r){nr.N.addEventListener.call(this,e,t,n,r)},r.removeEventListener=function(e,t,n,r){nr.N.removeEventListener.call(this,e,t,n,r)},r.Va=function(){this.a.c=this.f,this.l&&(this.a.R=!0);var e=this.a,t=this.m,n=this.g,r=this.b||void 0;et(0),e.ha=n,e.V=r||{},e.o&&(e.F.b=[],e.F.a=!1),e.w=new an(e),null===e.g&&(e.w.h=e.i),n=t,e.g&&e.i&&(n=Rn(t,e.g,e.i)),(e=e.w).i=n,t=Zn(e.a,null,e.i),et(3),null!=(n=e.a.F.b)?(e.f=n[0],e.M=1,on(e)):(Ft(t,"MODE","init"),!e.a.o&&e.a.j&&Ft(t,"X-HTTP-Session-Id",e.a.j),e.b=new pt(e,void 0,void 0),e.b.h=e.h,yt(e.b,t,!1,null),e.M=0)},r.close=function(){Bn(this.a)},r.Wa=function(e){if(s(e)){var t={};t.__data__=e,Fn(this.a,t)}else this.h?((t={}).__data__=Me(e),Fn(this.a,t)):Fn(this.a,e)},r.G=function(){this.a.c=null,delete this.f,Bn(this.a),delete this.a,nr.N.G.call(this)},k(rr,ut),k(ir,dt),k(ar,er),ar.prototype.va=function(){this.a.dispatchEvent("a")},ar.prototype.ua=function(e){this.a.dispatchEvent(new rr(e))},ar.prototype.ta=function(e){this.a.dispatchEvent(new ir(e))},ar.prototype.sa=function(){this.a.dispatchEvent("b")};var or=_((function(e,t){function n(){}n.prototype=e.prototype;var r=new n;return e.apply(r,Array.prototype.slice.call(arguments,1)),r}),tr);tr.prototype.createWebChannel=tr.prototype.a,nr.prototype.send=nr.prototype.Wa,nr.prototype.open=nr.prototype.Va,nr.prototype.close=nr.prototype.close,rt.NO_ERROR=0,rt.TIMEOUT=8,rt.HTTP_ERROR=6,it.COMPLETE="complete",st.EventType=ct,ct.OPEN="a",ct.CLOSE="b",ct.ERROR="c",ct.MESSAGE="d",Ce.prototype.listen=Ce.prototype.za,Sn.prototype.listenOnce=Sn.prototype.Aa,Sn.prototype.getLastError=Sn.prototype.Xa,Sn.prototype.getLastErrorCode=Sn.prototype.ya,Sn.prototype.getStatus=Sn.prototype.T,Sn.prototype.getResponseJson=Sn.prototype.Ua,Sn.prototype.getResponseText=Sn.prototype.aa,Sn.prototype.send=Sn.prototype.ca;var sr={createWebChannelTransport:or,ErrorCode:rt,EventType:it,WebChannel:st,XhrIo:Sn},lr=sr.createWebChannelTransport,cr=sr.ErrorCode,ur=sr.EventType,dr=sr.WebChannel,hr=sr.XhrIo;t.default=sr}.call(this,n(21))},function(e,t,n){"use strict";var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r,a=n(5),o=n(22),s={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},l=function(e){function t(n,r,i){var a=e.call(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a.code=n,a.details=i,a}return a.__extends(t,e),t}(Error);var c=function(){function e(e,t){var n=this;this.auth=null,this.messaging=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((function(e){return n.auth=e}),(function(){})),this.messaging||t.get().then((function(e){return n.messaging=e}),(function(){}))}return e.prototype.getAuthToken=function(){return a.__awaiter(this,void 0,void 0,(function(){var e;return a.__generator(this,(function(t){switch(t.label){case 0:if(!this.auth)return[2,void 0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 3:return t.sent(),[2,void 0];case 4:return[2]}}))}))},e.prototype.getInstanceIdToken=function(){return a.__awaiter(this,void 0,void 0,(function(){return a.__generator(this,(function(e){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(e){return[2,void 0]}return[2]}))}))},e.prototype.getContext=function(){return a.__awaiter(this,void 0,void 0,(function(){var e,t;return a.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}}))}))},e}();function u(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}var d=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map((function(e){return t.encode(e)}));if("function"==typeof e||"object"==typeof e)return u(e,(function(e){return t.encode(e)}));throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null==e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=Number(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((function(e){return t.decode(e)})):"function"==typeof e||"object"==typeof e?u(e,(function(e){return t.decode(e)})):e},e}();var h=function(){function e(e,t,n,r){var i=this;void 0===r&&(r="us-central1"),this.app_=e,this.region_=r,this.serializer=new d,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return i.deleteService()}},this.contextProvider=new c(t,n),this.cancelAllRequests=new Promise((function(e){i.deleteService=function(){return e()}}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId,n=this.region_;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+t+"/"+n+"/"+e:"https://"+n+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e,t){var n=this;return function(r){return n.call(e,r,t||{})}},e.prototype.postJSON=function(e,t,n){return a.__awaiter(this,void 0,void 0,(function(){var r,i;return a.__generator(this,(function(a){switch(a.label){case 0:n.append("Content-Type","application/json"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return r=a.sent(),[3,4];case 3:return a.sent(),[2,{status:0,json:null}];case 4:i=null,a.label=5;case 5:return a.trys.push([5,7,,8]),[4,r.json()];case 6:return i=a.sent(),[3,8];case 7:return a.sent(),[3,8];case 8:return[2,{status:r.status,json:i}]}}))}))},e.prototype.call=function(e,t,n){return a.__awaiter(this,void 0,void 0,(function(){var r,i,o,c,u,d,h,p;return a.__generator(this,(function(a){switch(a.label){case 0:return r=this._url(e),t=this.serializer.encode(t),i={data:t},o=new Headers,[4,this.contextProvider.getContext()];case 1:return(c=a.sent()).authToken&&o.append("Authorization","Bearer "+c.authToken),c.instanceIdToken&&o.append("Firebase-Instance-ID-Token",c.instanceIdToken),u=n.timeout||7e4,[4,Promise.race([this.postJSON(r,i,o),(f=u,new Promise((function(e,t){setTimeout((function(){t(new l("deadline-exceeded","deadline-exceeded"))}),f)}))),this.cancelAllRequests])];case 2:if(!(d=a.sent()))throw new l("cancelled","Firebase Functions instance was deleted.");if(h=function(e,t,n){var r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r,a=void 0;try{var o=t&&t.error;if(o){var c=o.status;if("string"==typeof c){if(!s[c])return new l("internal","internal");r=s[c],i=c}var u=o.message;"string"==typeof u&&(i=u),void 0!==(a=o.details)&&(a=n.decode(a))}}catch(e){}return"ok"===r?null:new l(r,i,a)}(d.status,d.json,this.serializer))throw h;if(!d.json)throw new l("internal","Response is not valid JSON object.");if(void 0===(p=d.json.data)&&(p=d.json.result),void 0===p)throw new l("internal","Response is missing data field.");return[2,{data:this.serializer.decode(p)}]}var f}))}))},e}();function p(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),i=e.getProvider("messaging");return new h(n,r,i,t)}var f;f={Functions:h},i.INTERNAL.registerComponent(new o.Component("functions",p,"PUBLIC").setServiceProps(f).setMultipleInstances(!0)),i.registerVersion("@firebase/functions","0.4.42")},function(e,t,n){"use strict";n.r(t);var r,i=n(17),a=n.n(i),o=(n(35),n(22)),s=n(5),l=n(23),c=n(26),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r),d=new l.ErrorFactory("messaging","Messaging",u);function h(e){return d.create("missing-app-config-values",{valueName:e})}function p(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function f(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}function m(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=i.sent(),!t.map((function(e){return e.name})).includes("fcm_token_details_db"))return[2,null];i.label=2;case 2:return n=null,[4,Object(c.openDb)("fcm_token_details_db",5,(function(t){return Object(s.__awaiter)(r,void 0,void 0,(function(){var r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains("fcm_token_object_Store")?[4,(r=t.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(e)]:[2];case 1:return i=s.sent(),[4,r.clear()];case 2:if(s.sent(),!i)return[2];if(2===t.oldVersion){if(!(a=i).auth||!a.p256dh||!a.endpoint)return[2];n={token:a.fcmToken,createTime:null!==(o=a.createTime)&&void 0!==o?o:Date.now(),subscriptionOptions:{auth:a.auth,p256dh:a.p256dh,endpoint:a.endpoint,swScope:a.swScope,vapidKey:"string"==typeof a.vapidKey?a.vapidKey:p(a.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(n={token:(a=i).fcmToken,createTime:a.createTime,subscriptionOptions:{auth:p(a.auth),p256dh:p(a.p256dh),endpoint:a.endpoint,swScope:a.swScope,vapidKey:p(a.vapidKey)}});return[2]}}))}))}))];case 3:return i.sent().close(),[4,Object(c.deleteDb)("fcm_token_details_db")];case 4:return i.sent(),[4,Object(c.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,Object(c.deleteDb)("undefined")];case 6:return i.sent(),[2,v(n)?n:null]}}))}))}function v(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}var g="firebase-messaging-store",y=null;function b(){return y||(y=Object(c.openDb)("firebase-messaging-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(g)}}))),y}function _(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=E(e),[4,b()];case 1:return[4,i.sent().transaction(g).objectStore(g).get(t)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,m(e.appConfig.senderId)];case 4:return(r=i.sent())?[4,w(e,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}))}))}function w(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return n=E(e),[4,b()];case 1:return r=a.sent(),[4,(i=r.transaction(g,"readwrite")).objectStore(g).put(t,n)];case 2:return a.sent(),[4,i.complete];case 3:return a.sent(),[2,t]}}))}))}function k(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=E(e),[4,b()];case 1:return n=i.sent(),[4,(r=n.transaction(g,"readwrite")).objectStore(g).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function E(e){return e.appConfig.appId}var T="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";function S(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,$(e)];case 1:n=s.sent(),r=L(t),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(M(e.appConfig),i)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:throw o=s.sent(),d.create("token-subscribe-failed",{errorInfo:o});case 6:if(a.error)throw l=a.error.message,d.create("token-subscribe-failed",{errorInfo:l});if(!a.token)throw d.create("token-subscribe-no-token");return[2,a.token]}}))}))}function C(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,$(e)];case 1:n=s.sent(),r=L(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(M(e.appConfig)+"/"+t.token,i)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:throw o=s.sent(),d.create("token-update-failed",{errorInfo:o});case 6:if(a.error)throw l=a.error.message,d.create("token-update-failed",{errorInfo:l});if(!a.token)throw d.create("token-update-no-token");return[2,a.token]}}))}))}function x(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,$(e)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(M(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw a=i.error.message,d.create("token-unsubscribe-failed",{errorInfo:a});return[3,6];case 5:throw o=s.sent(),d.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}}))}))}function M(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function $(e){var t=e.appConfig,n=e.installations;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}}))}))}function L(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,a={web:{endpoint:r,auth:n,p256dh:t}};return i!==T&&(a.web.applicationPubKey=i),a}var P;function O(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw d.create("permission-blocked");return[4,N(t,n)];case 1:return r=s.sent(),[4,_(e)];case 2:return i=s.sent(),a={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:p(r.getKey("auth")),p256dh:p(r.getKey("p256dh"))},i?[3,3]:[2,A(e,a)];case 3:if(l=i.subscriptionOptions,u=(c=a).vapidKey===l.vapidKey,h=c.endpoint===l.endpoint,f=c.auth===l.auth,m=c.p256dh===l.p256dh,u&&h&&f&&m)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,x(e,i.token)];case 5:return s.sent(),[3,7];case 6:return o=s.sent(),console.warn(o),[3,7];case 7:return[2,A(e,a)];case 8:return Date.now()>=i.createTime+6048e5?[2,I({token:i.token,createTime:Date.now(),subscriptionOptions:a},e,t)]:[2,i.token];case 9:return[2]}var l,c,u,h,f,m}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,_(e)];case 1:return(n=i.sent())?[4,x(e,n.token)]:[3,4];case 2:return i.sent(),[4,k(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}}))}))}function I(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,5]),[4,C(t,e)];case 1:return r=o.sent(),i=Object(s.__assign)({token:r,createTime:Date.now()},e),[4,w(t,i)];case 2:return o.sent(),[2,r];case 3:return a=o.sent(),[4,D(t,n)];case 4:throw o.sent(),a;case 5:return[2]}}))}))}function A(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,S(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,w(e,r)];case 2:return i.sent(),[2,r.token]}}))}))}function N(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:f(t)})]}}))}))}function R(e){return"object"==typeof e&&!!e&&"google.c.a.c_id"in e}!function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(P||(P={}));var Y=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(e){return t.messageEventListener(e)}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),e.prototype.getToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return this.vapidKey||(this.vapidKey=T),[4,this.getServiceWorkerRegistration()];case 1:return e=t.sent(),"default"!==Notification.permission?[3,3]:[4,Notification.requestPermission()];case 2:t.sent(),t.label=3;case 3:if("granted"!==Notification.permission)throw d.create("permission-blocked");return[2,O(this.firebaseDependencies,e,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.getServiceWorkerRegistration()];case 1:return e=t.sent(),[2,D(this.firebaseDependencies,e)]}}))}))},e.prototype.requestPermission=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?d.create("permission-blocked"):d.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw d.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw d.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw d.create("invalid-sw-registration");if(this.swRegistration)throw d.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback="function"==typeof e?e:e.next,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw d.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.getServiceWorkerRegistration=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:if(this.swRegistration)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 2:return e.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,4];case 3:throw t=n.sent(),d.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 4:return[2,this.swRegistration]}}))}))},e.prototype.messageEventListener=function(e){var t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return(null===(t=e.data)||void 0===t?void 0:t.firebaseMessaging)?(n=e.data.firebaseMessaging,r=n.type,i=n.payload,this.onMessageCallback&&r===P.PUSH_RECEIVED&&this.onMessageCallback(i),R(a=i.data)&&"1"===a["google.c.a.e"]?[4,this.logEvent(r,a)]:[3,2]):[2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},e.prototype.logEvent=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case P.NOTIFICATION_CLICKED:return"notification_open";case P.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t["google.c.a.c_id"],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},e}();var B=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(e){e.waitUntil(t.onPush(e))})),self.addEventListener("pushsubscriptionchange",(function(e){e.waitUntil(t.onSubChange(e))})),self.addEventListener("notificationclick",(function(e){e.waitUntil(t.onNotificationClick(e))}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw d.create("invalid-bg-handler");this.bgMessageHandler=e},e.prototype.getToken=function(){var e,t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,_(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null==n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:T,r.label=2;case 2:return[2,O(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return D(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw d.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw d.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw d.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw d.create("only-available-in-window")},e.prototype.onMessage=function(){throw d.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw d.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}(e))?[4,H()]:[2];case 1:return function(e){return e.some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))}(n=i.sent())?[2,F(n,t)]:(r=function(e){var t;if(!e||"object"!=typeof e.notification)return;var n=Object(s.__assign)({},e.notification);return n.data=Object(s.__assign)(Object(s.__assign)({},e.notification.data),((t={}).FCM_MSG=e,t)),n}(t))?[4,z(r)]:[3,3];case 2:return i.sent(),[3,5];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e.newSubscription?[3,2]:[4,D(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,_(this.firebaseDependencies)];case 3:return r=i.sent(),[4,D(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,O(this.firebaseDependencies,self.registration,null!==(n=null===(t=null==r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:T)];case 5:return i.sent(),[2]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return(r=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n.FCM_MSG)?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(i=function(e){var t,n,r,i=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;if(i)return i;return R(e.data)?self.location.origin:null}(r))?[4,j(i)]:[2]):[2];case 1:return(a=s.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return a=s.sent(),[4,(l=3e3,new Promise((function(e){setTimeout(e,l)})))];case 3:return s.sent(),[3,6];case 4:return[4,a.focus()];case 5:a=s.sent(),s.label=6;case 6:return a?(o=U(P.NOTIFICATION_CLICKED,r),[2,a.postMessage(o)]):[2]}var l}))}))},e}();function j(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,a,o,l;return Object(s.__generator)(this,(function(c){switch(c.label){case 0:return t=new URL(e,self.location.href),[4,H()];case 1:n=c.sent();try{for(r=Object(s.__values)(n),i=r.next();!i.done;i=r.next())if(a=i.value,new URL(a.url,self.location.href).host===t.host)return[2,a]}catch(e){o={error:e}}finally{try{i&&!i.done&&(l=r.return)&&l.call(r)}finally{if(o)throw o.error}}return[2,null]}}))}))}function F(e,t){var n,r,i=U(P.PUSH_RECEIVED,t);try{for(var a=Object(s.__values)(e),o=a.next();!o.done;o=a.next()){o.value.postMessage(i)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function H(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function U(e,t){return{firebaseMessaging:{type:e,payload:t}}}function z(e){var t,n=null!==(t=e.title)&&void 0!==t?t:"",r=e.actions,i=Notification.maxActions;return r&&i&&r.length>i&&console.warn("This browser only supports "+i+" actions. The remaining actions will not be displayed."),self.registration.showNotification(n,e)}var V={isSupported:q};function q(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}a.a.INTERNAL.registerComponent(new o.Component("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw h("App Configuration Object");if(!e.name)throw h("App Name");var r=e.options;try{for(var i=Object(s.__values)(["projectId","apiKey","appId","messagingSenderId"]),a=i.next();!a.done;a=i.next()){var o=a.value;if(!r[o])throw h(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!q())throw d.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new B(n):new Y(n)}),"PUBLIC").setServiceProps(V))},function(e,t,n){"use strict";n.r(t),n.d(t,"registerStorage",(function(){return ft}));var r=n(17),i=n.n(r),a=n(5),o=n(22),s=function(){function e(e,t){this.code_=C(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return C(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}(),l="unknown",c="object-not-found",u="quota-exceeded",d="unauthenticated",h="unauthorized",p="retry-limit-exceeded",f="canceled",m="invalid-url",v="invalid-default-bucket",g="cannot-slice-blob",y="server-file-wrong-size",b="no-download-url",_="invalid-argument",w="invalid-argument-count",k="app-deleted",E="invalid-root-operation",T="invalid-format",S="internal-error";function C(e){return"storage/"+e}function x(){return new s(l,"An unknown error occurred, please check the error payload for server response.")}function M(){return new s(f,"User canceled the upload/download.")}function $(){return new s(g,"Cannot slice blob for upload. Please retry the upload.")}function L(){return new s(b,"The given file does not have any download URLs.")}function P(e,t,n){return new s(_,"Invalid argument in `"+t+"` at index "+e+": "+n)}function O(){return new s(k,"The Firebase app was deleted.")}function D(e,t){return new s(T,"String does not match format '"+e+"': "+t)}function I(e){throw new s(S,"Internal error: "+e)}var A={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function N(e){switch(e){case A.RAW:case A.BASE64:case A.BASE64URL:case A.DATA_URL:return;default:throw"Expected one of the event types: ["+A.RAW+", "+A.BASE64+", "+A.BASE64URL+", "+A.DATA_URL+"]."}}var R=function(e,t){this.data=e,this.contentType=t||null};function Y(e,t){switch(e){case A.RAW:return new R(B(t));case A.BASE64:case A.BASE64URL:return new R(j(e,t));case A.DATA_URL:return new R((n=new F(t)).base64?j(A.BASE64,n.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(e){throw D(A.DATA_URL,"Malformed data URL.")}return B(t)}(n.rest),function(e){return new F(e).contentType}(t))}var n;throw x()}function B(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296==(64512&r))if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function j(e,t){switch(e){case A.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw D(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case A.BASE64URL:var i=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(i||a)throw D(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var o;try{o=atob(t)}catch(t){throw D(e,"Invalid character found")}for(var s=new Uint8Array(o.length),l=0;l<o.length;l++)s[l]=o.charCodeAt(l);return s}var F=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw D(A.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(r=n,i=";base64",r.length>=i.length&&r.substring(r.length-i.length)===i),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var r,i};var H,U={STATE_CHANGED:"state_changed"},z="running",V="pausing",q="paused",W="success",G="canceling",K="canceled",J="error",X={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Q(e){switch(e){case z:case V:case G:return X.RUNNING;case q:return X.PAUSED;case W:return X.SUCCESS;case K:return X.CANCELED;case J:default:return X.ERROR}}function Z(e){return null!=e}function ee(e){return void 0!==e}function te(e){return"function"==typeof e}function ne(e){return"object"==typeof e}function re(e){return ne(e)&&null!==e}function ie(e){return"string"==typeof e||e instanceof String}function ae(e){return oe(e)&&Number.isInteger(e)}function oe(e){return"number"==typeof e||e instanceof Number}function se(e){return le()&&e instanceof Blob}function le(){return"undefined"!=typeof Blob}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(H||(H={}));var ce=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=H.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=H.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=H.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,r){if(this.sent_)throw I("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),Z(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return Z(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw I("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw I("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw I("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),ue=function(){function e(){}return e.prototype.createXhrIo=function(){return new ce},e}();function de(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=de();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(le())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var pe=function(){function e(e,t){var n=0,r="";se(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(se(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(le()){var r=t.map((function(t){return t instanceof e?t.data_:t}));return new e(he.apply(null,r))}var i=t.map((function(e){return ie(e)?Y(A.RAW,e).data:e.data_})),a=0;i.forEach((function(e){a+=e.byteLength}));var o=new Uint8Array(a),s=0;return i.forEach((function(e){for(var t=0;t<e.length;t++)o[s++]=e[t]})),new e(o,!0)},e.prototype.uploadData=function(){return this.data_},e}(),fe=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(n){return new e(t,"")}if(""===n.path)return n;throw new s(v,"Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t){var n=null;var r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}for(var a="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),o=[{regex:r,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+a+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],l=0;l<o.length;l++){var c=o[l],u=c.regex.exec(t);if(u){var d=u[c.indices.bucket],h=u[c.indices.path];h||(h=""),n=new e(d,h),c.postModify(n);break}}if(null==n)throw function(e){return new s(m,"Invalid URL '"+e+"'.")}(t);return n},e}();function me(e){var t,n;try{t=JSON.parse(e)}catch(e){return null}return ne(n=t)&&!Array.isArray(n)?t:null}function ve(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}function ge(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function ye(e){return"https://firebasestorage.googleapis.com/v0"+e}function be(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function _e(e,t){return t}var we=function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||_e},ke=null;function Ee(){if(ke)return ke;var e=[];e.push(new we("bucket")),e.push(new we("generation")),e.push(new we("metageneration")),e.push(new we("name","fullPath",!0));var t=new we("name");t.xform=function(e,t){return function(e){return!ie(e)||e.length<2?e:ge(e)}(t)},e.push(t);var n=new we("size");return n.xform=function(e,t){return Z(t)?Number(t):t},e.push(n),e.push(new we("timeCreated")),e.push(new we("updated")),e.push(new we("md5Hash",null,!0)),e.push(new we("cacheControl",null,!0)),e.push(new we("contentDisposition",null,!0)),e.push(new we("contentEncoding",null,!0)),e.push(new we("contentLanguage",null,!0)),e.push(new we("contentType",null,!0)),e.push(new we("metadata","customMetadata",!0)),ke=e}function Te(e,t,n){for(var r={type:"file"},i=n.length,a=0;a<i;a++){var o=n[a];r[o.local]=o.xform(r,t[o.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new fe(n,r);return t.makeStorageReference(i)}})}(r,e),r}function Se(e,t,n){var r=me(t);return null===r?null:Te(e,r,n)}function Ce(e,t){for(var n={},r=t.length,i=0;i<r;i++){var a=t[i];a.writable&&(n[a.server]=e[a.local])}return JSON.stringify(n)}function xe(e){if(!ne(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("customMetadata"===t){if(!ne(n))throw"Expected object for 'customMetadata' mapping."}else if(re(n))throw"Mapping for '"+t+"' cannot be an object."}}function Me(e,t,n){var r=me(n);return null===r?null:function(e,t,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,a=n.prefixes;i<a.length;i++){var o=a[i].replace(/\/$/,""),s=e.makeStorageReference(new fe(t,o));r.prefixes.push(s)}if(n.items)for(var l=0,c=n.items;l<c.length;l++){var u=c[l];s=e.makeStorageReference(new fe(t,u.name));r.items.push(s)}return r}(e,t,r)}function $e(e){if(!ne(e)||!e)throw"Expected ListOptions object.";for(var t in e)if("maxResults"===t){if(!ae(e.maxResults)||e.maxResults<=0)throw"Expected maxResults to be a positive number.";if(e.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==t)throw"Unknown option: "+t;if(e.pageToken&&!ie(e.pageToken))throw"Expected pageToken to be string."}}var Le=function(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Pe(e){if(!e)throw x()}function Oe(e,t){return function(n,r){var i=Se(e,r,t);return Pe(null!==i),i}}function De(e,t){return function(n,r){var i=Se(e,r,t);return Pe(null!==i),function(e,t){var n=me(t);if(null===n)return null;if(!ie(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(t){var n=e.bucket,r=e.fullPath;return ye("/b/"+i(n)+"/o/"+i(r))+be({alt:"media",token:t})}))[0]}(i,r)}}function Ie(e){return function(t,n){var r,i,a;return 401===t.getStatus()?r=new s(d,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(a=e.bucket,r=new s(u,"Quota for bucket '"+a+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new s(h,"User does not have permission to access '"+i+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function Ae(e){var t=Ie(e);return function(n,r){var i,a=t(n,r);return 404===n.getStatus()&&(i=e.path,a=new s(c,"Object '"+i+"' does not exist.")),a.setServerResponseProp(r.serverResponseProp()),a}}function Ne(e,t,n){var r=ye(t.fullServerUrl()),i=e.maxOperationRetryTime(),a=new Le(r,"GET",Oe(e,n),i);return a.errorHandler=Ae(t),a}function Re(e,t,n,r,i){var a={};t.isRoot?a.prefix="":a.prefix=t.path+"/",n&&n.length>0&&(a.delimiter=n),r&&(a.pageToken=r),i&&(a.maxResults=i);var o=ye(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime(),l=new Le(o,"GET",function(e,t){return function(n,r){var i=Me(e,t,r);return Pe(null!==i),i}}(e,t.bucket),s);return l.urlParams=a,l.errorHandler=Ie(t),l}function Ye(e,t,n){var r=ye(t.fullServerUrl()),i=e.maxOperationRetryTime(),a=new Le(r,"GET",De(e,n),i);return a.errorHandler=Ae(t),a}function Be(e,t,n,r){var i=ye(t.fullServerUrl()),a=Ce(n,r),o=e.maxOperationRetryTime(),s=new Le(i,"PATCH",Oe(e,r),o);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=a,s.errorHandler=Ae(t),s}function je(e,t){var n=ye(t.fullServerUrl()),r=e.maxOperationRetryTime();var i=new Le(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=Ae(t),i}function Fe(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}var He=function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null};function Ue(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Pe(!1)}return Pe(!!n&&-1!==(t||["active"]).indexOf(n)),n}function ze(e,t,n,r,i,a,o,l){var c=new He(0,0);if(o?(c.current=o.current,c.total=o.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new s(y,"Server recorded incorrect upload file size, please retry the upload.");var u=c.total-c.current,d=u;i>0&&(d=Math.min(d,i));var h=c.current,p=h+d,f={"X-Goog-Upload-Command":d===u?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},m=r.slice(h,p);if(null===m)throw $();var v=t.maxUploadRetryTime(),g=new Le(n,"POST",(function(e,n){var i,o=Ue(e,["active","final"]),s=c.current+d,l=r.size();return i="final"===o?Oe(t,a)(e,n):null,new He(s,l,"final"===o,i)}),v);return g.headers=f,g.body=m.uploadData(),g.progressCallback=l||null,g.errorHandler=Ie(e),g}var Ve=function(e,t,n){if(te(e)||Z(t)||Z(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}},qe=function(e,t,n,r,i,a){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=i,this.ref=a};function We(e,t,n){for(var r=t.length,i=t.length,a=0;a<t.length;a++)if(t[a].optional){r=a;break}var o,l,c,u,d,h;if(!(r<=n.length&&n.length<=i))throw o=r,l=i,c=e,u=n.length,o===l?(d=o,h=1===o?"argument":"arguments"):(d="between "+o+" and "+l,h="arguments"),new s(w,"Invalid argument count in `"+c+"`: Expected "+d+" "+h+", received "+u+".");for(a=0;a<n.length;a++)try{t[a].validator(n[a])}catch(t){throw t instanceof Error?P(a,e,t.message):P(a,e,t)}}var Ge=function(e,t){var n=this;this.validator=function(t){n.optional&&!ee(t)||e(t)},this.optional=!!t};function Ke(e,t){function n(e){if(!ie(e))throw"Expected string."}var r,i,a;return e?(i=n,a=e,r=function(e){i(e),a(e)}):r=n,new Ge(r,t)}function Je(){return new Ge((function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||le()&&e instanceof Blob))throw"Expected Blob or File."}))}function Xe(e){return new Ge(xe,e)}function Qe(e){return new Ge($e,e)}function Ze(){return new Ge((function(e){if(!(oe(e)&&e>=0))throw"Expected a number 0 or greater."}))}function et(e,t){return new Ge((function(t){if(!(null===t||Z(t)&&t instanceof Object))throw"Expected an Object.";null!=e&&e(t)}),t)}function tt(e){return new Ge((function(e){if(!(null===e||te(e)))throw"Expected a Function."}),e)}function nt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Promise.resolve().then((function(){return e.apply(void 0,t)}))}}var rt=function(){function e(e,t,n,r,i,a){var o=this;void 0===a&&(a=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=n,this.blob_=i,this.metadata_=a,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=z,this.errorHandler_=function(e){o.request_=null,o.chunkMultiplier_=1,e.codeEquals(f)?(o.needToFetchStatus_=!0,o.completeTransitions_()):(o.error_=e,o.transition_(J))},this.metadataErrorHandler_=function(e){o.request_=null,e.codeEquals(f)?o.completeTransitions_():(o.error_=e,o.transition_(J))},this.promise_=new Promise((function(e,t){o.resolve_=e,o.reject_=t,o.start_()})),this.promise_.then(null,(function(){}))}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n){return e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===z&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then((function(n){switch(t.state_){case z:e(n);break;case G:t.transition_(K);break;case V:t.transition_(q)}}))},e.prototype.createResumable_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o=Fe(t,r,i),s={name:o.fullPath},l=ye(a),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},u=Ce(o,n),d=e.maxUploadRetryTime(),h=new Le(l,"POST",(function(e){var t;Ue(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Pe(!1)}return Pe(ie(t)),t}),d);return h.urlParams=s,h.headers=c,h.body=u,h.errorHandler=Ie(t),h}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_((function(n){var r=function(e,t,n,r){var i=e.maxUploadRetryTime(),a=new Le(n,"POST",(function(e){var t=Ue(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Pe(!1)}n||Pe(!1);var i=Number(n);return Pe(!isNaN(i)),new He(i,r.size(),"final"===t)}),i);return a.headers={"X-Goog-Upload-Command":"query"},a.errorHandler=Ie(t),a}(e.authWrapper_,e.location_,t,e.blob_),i=e.authWrapper_.makeRequest(r,n);e.request_=i,i.getPromise().then((function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new He(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var a;try{a=ze(e.location_,e.authWrapper_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(J)}var o=e.authWrapper_.makeRequest(a,i);e.request_=o,o.getPromise().then((function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(W)):e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_((function(t){var n=Ne(e.authWrapper_,e.location_,e.mappings_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.transition_(W)}),e.metadataErrorHandler_)}))},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();o["Content-Type"]="multipart/related; boundary="+s;var l=Fe(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Ce(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+s+"--",d=pe.getBlob(c,r,u);if(null===d)throw $();var h={name:l.fullPath},p=ye(a),f=e.maxUploadRetryTime(),m=new Le(p,"POST",Oe(e,n),f);return m.urlParams=h,m.headers=o,m.body=d.uploadData(),m.errorHandler=Ie(t),m}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(W)}),e.errorHandler_)}))},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case G:case V:this.state_=e,null!==this.request_&&this.request_.cancel();break;case z:var t=this.state_===q;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case q:this.state_=e,this.notifyObservers_();break;case K:this.error_=M(),this.state_=e,this.notifyObservers_();break;case J:case W:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case V:this.transition_(q);break;case G:this.transition_(K);break;case z:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=Q(this.state_);return new qe(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,r){function i(){if(e!==U.STATE_CHANGED)throw"Expected one of the event types: ["+U.STATE_CHANGED+"]."}var a="Expected a function or an Object with one of `next`, `error`, `complete` properties.",o=tt(!0).validator,s=et(null,!0).validator;function l(e){try{return void o(e)}catch(e){}try{if(s(e),!(ee(e.next)||ee(e.error)||ee(e.complete)))throw"";return}catch(e){throw a}}var c=[Ke(i),et(l,!0),tt(!0),tt(!0)];We("on",c,arguments);var u=this;function d(e){return function(t,n,i){null!==e&&We("on",e,arguments);var a=new Ve(t,n,r);return u.addObserver_(a),function(){u.removeObserver_(a)}}}function h(e){if(null===e)throw a;l(e)}var p=[et(h),tt(!0),tt(!0)],f=!(ee(t)||ee(n)||ee(r));return f?d(p):d(null)(t,n,r)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),this.observers_.slice().forEach((function(t){e.notifyObserver_(t)}))},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(Q(this.state_)){case X.SUCCESS:nt(this.resolve_.bind(null,this.snapshot))();break;case X.CANCELED:case X.ERROR:nt(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(Q(this.state_)){case X.RUNNING:case X.PAUSED:e.next&&nt(e.next.bind(e,this.snapshot))();break;case X.SUCCESS:e.complete&&nt(e.complete.bind(e))();break;case X.CANCELED:case X.ERROR:e.error&&nt(e.error.bind(e,this.error_))();break;default:e.error&&nt(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){We("resume",[],arguments);var e=this.state_===q||this.state_===V;return e&&this.transition_(z),e},e.prototype.pause=function(){We("pause",[],arguments);var e=this.state_===z;return e&&this.transition_(V),e},e.prototype.cancel=function(){We("cancel",[],arguments);var e=this.state_===z||this.state_===V;return e&&this.transition_(G),e},e}(),it=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof fe?t:fe.makeFromUrl(t)}return e.prototype.toString=function(){return We("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return Ee()},e.prototype.child=function(e){We("child",[Ke()],arguments);var t=ve(this.location.path,e),n=new fe(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new fe(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new fe(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return ge(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),We("put",[Je(),Xe(!0)],arguments),this.throwIfRoot_("put"),new rt(this,this.authWrapper,this.location,this.mappings(),new pe(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=A.RAW),We("putString",[Ke(),Ke(N,!0),Xe(!0)],arguments),this.throwIfRoot_("putString");var r=Y(t,e),i=Object.assign({},n);return!Z(i.contentType)&&Z(r.contentType)&&(i.contentType=r.contentType),new rt(this,this.authWrapper,this.location,this.mappings(),new pe(r.data,!0),i)},e.prototype.delete=function(){var e=this;return We("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(t){var n=je(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()}))},e.prototype.listAll=function(){We("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then((function(){return e}))},e.prototype.listAllHelper=function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n={pageToken:t},[4,this.list(n)];case 1:return r=a.sent(),(i=e.prefixes).push.apply(i,r.prefixes),(o=e.items).push.apply(o,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(e,r.nextPageToken)];case 2:a.sent(),a.label=3;case 3:return[2]}}))}))},e.prototype.list=function(e){We("list",[Qe(!0)],arguments);var t=this;return this.authWrapper.getAuthToken().then((function(n){var r=e||{},i=Re(t.authWrapper,t.location,"/",r.pageToken,r.maxResults);return t.authWrapper.makeRequest(i,n).getPromise()}))},e.prototype.getMetadata=function(){var e=this;return We("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(t){var n=Ne(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()}))},e.prototype.updateMetadata=function(e){var t=this;return We("updateMetadata",[Xe()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=Be(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(r,n).getPromise()}))},e.prototype.getDownloadURL=function(){var e=this;return We("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(t){var n=Ye(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then((function(e){if(null===e)throw L();return e}))}))},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new s(E,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),at=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}(),ot=function(){function e(){this.map=new Map,this.id=-9007199254740991}return e.prototype.addRequest=function(e){var t=this,n=this.id;this.id++,this.map.set(n,e),e.getPromise().then((function(){return t.map.delete(n)}),(function(){return t.map.delete(n)}))},e.prototype.clear=function(){this.map.forEach((function(e){e&&e.cancel(!0)})),this.map.clear()},e}(),st=function(){function e(t,n,r,i,a,o){var s;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var l=this.app_.options;Z(l)&&(this.bucket_=e.extractBucket_(l),this.appId_=null!==(s=l.appId)&&void 0!==s?s:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=o,this.service_=a,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new ot}return e.extractBucket_=function(e){var t=e.storageBucket||null;return null==t?null:fe.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){var e=this.authProvider_.getImmediate({optional:!0});return e?e.getToken().then((function(e){return null!==e?e.accessToken:null}),(function(){return null})):Promise.resolve(null)},e.prototype.bucket=function(){if(this.deleted_)throw O();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new at(O());var n=this.requestMaker_(e,this.appId_,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}();var lt=function(){function e(e,t,n,r,i,a,o,s,l,c,u){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=a.slice(),this.callback_=o,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=l,this.pool_=u,this.promise_=new Promise((function(e,t){d.resolve_=e,d.reject_=t,d.start_()}))}return e.prototype.start_=function(){var e=this;function t(t,n){var r,i=e.resolve_,a=e.reject_,o=n.xhr;if(n.wasSuccessCode)try{var l=e.callback_(o,o.getResponseText());ee(l)?i(l):i()}catch(e){a(e)}else null!==o?((r=x()).setServerResponseProp(o.getResponseText()),e.errorCallback_?a(e.errorCallback_(o,r)):a(r)):n.canceled?a(r=e.appDelete_?O():M()):a(r=new s(p,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new ct(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,o=!1,s=0;function l(){return 2===s}var c=!1;function u(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c||(c=!0,t.apply(null,e))}function d(t){i=setTimeout((function(){i=null,e(h,l())}),t)}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!c)if(e)u.call.apply(u,Object(a.__spreadArrays)([null,e],t));else{var i,h=l()||o;if(h)u.call.apply(u,Object(a.__spreadArrays)([null,e],t));else r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),d(i)}}var p=!1;function f(e){p||(p=!0,c||(null!==i?(e||(s=2),clearTimeout(i),d(0)):e||(s=1)))}return d(0),setTimeout((function(){o=!0,f(!0)}),n),f}((function(t,n){if(n)t(!1,new ct(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(i),e.pendingXhr_=null;var r=(n=n).getErrorCode()===H.NO_ERROR,a=n.getStatus();if(r&&!e.isRetryStatusCode_(a)){var o=-1!==e.successCodes_.indexOf(a);t(!0,new ct(o,n))}else{var s=n.getErrorCode()===H.ABORT;t(!1,new ct(!1,null,s))}}))}function i(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}}),t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),r=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||r},e}(),ct=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};function ut(e,t,n,r){var a=be(e.urlParams),o=e.url+a,s=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(s,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(s,n),function(e){var t=void 0!==i.a?i.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(s),new lt(o,e.method,s,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,r)}var dt=function(){function e(e,t,n,r){if(this.bucket_=null,this.authWrapper_=new st(e,t,(function(e,t){return new it(e,t)}),ut,this,n),this.app_=e,null!=r)this.bucket_=fe.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new fe(i,""))}this.internals_=new ht(this)}return e.prototype.ref=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(We("ref",[Ke(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new it(this.authWrapper_,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{fe.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}}return We("refFromURL",[Ke(t,!1)],arguments),new it(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){We("setMaxUploadRetryTime",[Ze()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},e.prototype.setMaxOperationRetryTime=function(e){We("setMaxOperationRetryTime",[Ze()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),ht=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},e}();function pt(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return new dt(n,r,new ue,t)}function ft(e){var t={TaskState:X,TaskEvent:U,StringFormat:A,Storage:dt,Reference:it};e.INTERNAL.registerComponent(new o.Component("storage",pt,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.32")}ft(i.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;n(35);var a,o,s,l,c=n(5),u=n(23),d=n(28),h=n(22),p=((a={})["trace started"]="Trace {$traceName} was started before.",a["trace stopped"]="Trace {$traceName} is not running.",a["no window"]="Window is not available.",a["no app id"]="App id is not available.",a["no project id"]="Project id is not available.",a["no api key"]="Api key is not available.",a["invalid cc log"]="Attempted to queue invalid cc event",a["FB not default"]="Performance can only start when Firebase app instance is the default one.",a["RC response not ok"]="RC response is not ok",a["invalid attribute name"]="Attribute name {$attributeName} is invalid.",a["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",a["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",a["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",a),f=new u.ErrorFactory("performance","Performance",p),m=function(){function e(e){if(this.window=e,!e)throw f.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay)}return e.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},e.prototype.mark=function(e){this.performance&&this.performance.mark&&this.performance.mark(e)},e.prototype.measure=function(e,t,n){this.performance&&this.performance.measure&&this.performance.measure(e,t,n)},e.prototype.getEntriesByType=function(e){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(e):[]},e.prototype.getEntriesByName=function(e){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(e):[]},e.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},e.prototype.requiredApisAvailable=function(){return!!(fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled)},e.prototype.setupObserver=function(e,t){this.PerformanceObserver&&new this.PerformanceObserver((function(e){for(var n=0,r=e.getEntries();n<r.length;n++){var i=r[n];t(i)}})).observe({entryTypes:[e]})},e.getInstance=function(){return void 0===o&&(o=new e(s)),o},e}();function v(e,t){var n=e.length-t.length;if(n<0||n>1)throw f.create("invalid String merger input");for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i)),t.length>i&&r.push(t.charAt(i));return r.join("")}var g,y,b=function(){function e(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=v("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=v("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.shouldSendToFl=!1,this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return e.prototype.getAppId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!e)throw f.create("no app id");return e},e.prototype.getProjectId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!e)throw f.create("no project id");return e},e.prototype.getApiKey=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!e)throw f.create("no api key");return e},e.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},e.getInstance=function(){return void 0===l&&(l=new e),l},e}();function _(){return g}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"}(y||(y={}));var w=["firebase_","google_","ga_"],k=new RegExp("^[a-zA-Z]\\w*$");function E(){var e=m.getInstance().navigator;return"serviceWorker"in e?e.serviceWorker.controller?2:3:1}function T(){switch(m.getInstance().document.visibilityState){case"visible":return y.VISIBLE;case"hidden":return y.HIDDEN;default:return y.UNKNOWN}}function S(){var e=m.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var C=new d.Logger("Performance");C.logLevel=d.LogLevel.INFO;var x=!0,M=!0,$=!1;function L(e){var t=function(){var e=m.getInstance().localStorage;if(!e)return;var t=e.getItem("@firebase/performance/configexpire");if(!(t&&(n=t,Number(n)>Date.now())))return;var n;var r=e.getItem("@firebase/performance/config");if(!r)return;try{return JSON.parse(r)}catch(e){return}}();return t?(P(e,t),Promise.resolve()):function(e){return(t=b.getInstance().installationsService.getToken(),t.then((function(e){})),t).then((function(t){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+b.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+b.getInstance().getApiKey(),r=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+t},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:b.getInstance().getAppId(),app_version:"0.3.2",sdk_version:"0.0.1"})});return fetch(r).then((function(e){if(e.ok)return e.json();throw f.create("RC response not ok")}))})).catch((function(){C.info("Could not fetch config, will use default configs")}));var t}(e).then((function(t){return P(e,t)})).then((function(e){return function(e){var t=m.getInstance().localStorage;if(!e||!t)return;t.setItem("@firebase/performance/config",JSON.stringify(e)),t.setItem("@firebase/performance/configexpire",String(Date.now()+60*b.getInstance().configTimeToLive*60*1e3))}(e)}),(function(){}))}function P(e,t){if(!t)return t;var n=b.getInstance(),r=t.entries||{},i=t.state;return void 0!==r.fpr_enabled?n.loggingEnabled="true"===String(r.fpr_enabled):n.loggingEnabled=x,r.fpr_log_source&&(n.logSource=Number(r.fpr_log_source)),r.fpr_log_endpoint_url&&(n.logEndPointUrl=r.fpr_log_endpoint_url),r.fpr_log_transport_key&&(n.transportKey=r.fpr_log_transport_key),void 0===i||"INSTANCE_STATE_UNSPECIFIED"===i||"NO_TEMPLATE"===i?n.shouldSendToFl=$:r.fpr_log_transport_web_percent?n.shouldSendToFl=function(e,t){if(0===e.length)return!1;return function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<3)+t-e.charCodeAt(n);return t=Math.abs(t%100)}(e)<t}(e,Number(r.fpr_log_transport_web_percent)):n.shouldSendToFl=M,void 0!==r.fpr_vc_network_request_sampling_rate&&(n.networkRequestsSamplingRate=Number(r.fpr_vc_network_request_sampling_rate)),void 0!==r.fpr_vc_trace_sampling_rate&&(n.tracesSamplingRate=Number(r.fpr_vc_trace_sampling_rate)),n.logTraceAfterSampling=O(n.tracesSamplingRate),n.logNetworkAfterSampling=O(n.networkRequestsSamplingRate),t}function O(e){return Math.random()<=e}var D,I=1;function A(){return I=2,D=D||function(){var e=m.getInstance().document;return new Promise((function(t){if(e&&"complete"!==e.readyState){var n=function(){"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()}))}().then((function(){return(e=b.getInstance().installationsService.getId()).then((function(e){g=e})),e;var e})).then((function(e){return L(e)})).then((function(){return N()}),(function(){return N()}))}function N(){I=3}var R,Y=3,B=[],j=!1;function F(e){setTimeout((function(){if(0!==Y)return B.length?void function(){var e=c.__spreadArrays(B);B=[];var t=e.map((function(e){return{source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)}}));(function(e,t){return b.getInstance().shouldSendToFl?function(e,t){return function(e){var t=b.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}(e).then((function(e){return e.ok||C.info("Call to Firebase backend failed."),e.json()})).then((function(e){var n=Number(e.nextRequestWaitMillis),r=1e4;isNaN(n)||(r=Math.max(n,r));var i=e.logResponseDetails;Array.isArray(i)&&i.length>0&&"RETRY_REQUEST_LATER"===i[0].responseAction&&(B=c.__spreadArrays(t,B),C.info("Retry transport request later.")),Y=3,F(r)}))}(e,t):function(e){return fetch(b.getInstance().logEndPointUrl,{method:"POST",body:JSON.stringify(e)}).then((function(e){return e.ok||C.info("Call to Firebase backend failed."),e.json()})).then((function(e){var t=Number(e.next_request_wait_millis),n=isNaN(t)?1e4:Math.max(1e4,t);Y=3,F(n)}))}(e)})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:b.getInstance().logSource,log_event:t},e).catch((function(){B=c.__spreadArrays(e,B),Y--,C.info("Tries left: "+Y+"."),F(1e4)}))}():F(1e4)}),e)}function H(e){if(!e.eventTime||!e.message)throw f.create("invalid cc log");B=c.__spreadArrays(B,[e])}function U(e,t){R||(R=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(void 0,t);H({message:r,eventTime:Date.now()})}}(q)),R(e,t)}function z(e){var t=b.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&m.getInstance().requiredApisAvailable()&&(e.isAuto&&T()!==y.VISIBLE||t.loggingEnabled&&t.logTraceAfterSampling&&(3===I?V(e):A().then((function(){return V(e)}),(function(){return V(e)}))))}function V(e){_()&&setTimeout((function(){return U(e,1)}),0)}function q(e,t){return 0===t?(r={url:(n=e).url,http_method:n.httpMethod||0,http_response_code:200,response_payload_bytes:n.responsePayloadBytes,client_start_time_us:n.startTimeUs,time_to_response_initiated_us:n.timeToResponseInitiatedUs,time_to_response_completed_us:n.timeToResponseCompletedUs},i={application_info:W(),network_request_metric:r},JSON.stringify(i)):function(e){var t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);var n=e.getAttributes();0!==Object.keys(n).length&&(t.custom_attributes=n);var r={application_info:W(),trace_metric:t};return JSON.stringify(r)}(e);var n,r,i}function W(){return{google_app_id:b.getInstance().getAppId(),app_instance_id:_(),web_app_info:{sdk_version:"0.3.2",page_url:m.getInstance().getUrl(),service_worker_status:E(),visibility_state:T(),effective_connection_type:S()},application_process_state:0}}var G=["_fp","_fcp","_fid"];var K=function(){function e(e,t,n){void 0===t&&(t=!1),this.name=e,this.isAuto=t,this.state=1,this.customAttributes={},this.counters={},this.api=m.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||"FB-PERF-TRACE-MEASURE-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return e.prototype.start=function(){if(1!==this.state)throw f.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},e.prototype.stop=function(){if(2!==this.state)throw f.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),z(this)},e.prototype.record=function(e,t,n){if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=c.__assign({},n.attributes)),n&&n.metrics)for(var r=0,i=Object.keys(n.metrics);r<i.length;r++){var a=i[r];isNaN(Number(n.metrics[a]))||(this.counters[a]=Number(Math.floor(n.metrics[a])))}z(this)},e.prototype.incrementMetric=function(e,t){void 0===t&&(t=1),void 0===this.counters[e]&&this.putMetric(e,0),this.counters[e]+=t},e.prototype.putMetric=function(e,t){if(!function(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith("_wt_")&&G.indexOf(e)>-1||!e.startsWith("_"))}(e,this.name))throw f.create("invalid custom metric name",{customMetricName:e});this.counters[e]=t},e.prototype.getMetric=function(e){return this.counters[e]||0},e.prototype.putAttribute=function(e,t){var n=function(e){return!(0===e.length||e.length>40)&&(!w.some((function(t){return e.startsWith(t)}))&&!!e.match(k))}(e),r=function(e){return 0!==e.length&&e.length<=100}(t);if(n&&r)this.customAttributes[e]=t;else{if(!n)throw f.create("invalid attribute name",{attributeName:e});if(!r)throw f.create("invalid attribute value",{attributeValue:t})}},e.prototype.getAttribute=function(e){return this.customAttributes[e]},e.prototype.removeAttribute=function(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]},e.prototype.getAttributes=function(){return c.__assign({},this.customAttributes)},e.prototype.setStartTime=function(e){this.startTimeUs=e},e.prototype.setDuration=function(e){this.durationUs=e},e.prototype.calculateTraceMetrics=function(){var e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor(1e3*(t.startTime+this.api.getTimeOrigin())))},e.createOobTrace=function(t,n,r){var i=m.getInstance().getUrl();if(i){var a=new e("_wt_"+i,!0),o=Math.floor(1e3*m.getInstance().getTimeOrigin());a.setStartTime(o),t&&t[0]&&(a.setDuration(Math.floor(1e3*t[0].duration)),a.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),a.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),a.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));if(n){var s=n.find((function(e){return"first-paint"===e.name}));s&&s.startTime&&a.putMetric("_fp",Math.floor(1e3*s.startTime));var l=n.find((function(e){return"first-contentful-paint"===e.name}));l&&l.startTime&&a.putMetric("_fcp",Math.floor(1e3*l.startTime)),r&&a.putMetric("_fid",Math.floor(1e3*r))}z(a)}},e.createUserTimingTrace=function(t){z(new e(t,!1,t))},e}();function J(e){var t=e;if(t&&void 0!==t.responseStart){var n=m.getInstance().getTimeOrigin(),r=Math.floor(1e3*(t.startTime+n)),i=t.responseStart?Math.floor(1e3*(t.responseStart-t.startTime)):void 0,a=Math.floor(1e3*(t.responseEnd-t.startTime));!function(e){var t=b.getInstance();if(t.instrumentationEnabled){var n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&t.loggingEnabled&&t.logNetworkAfterSampling&&setTimeout((function(){return U(e,0)}),0)}}({url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:a})}}function X(){_()&&(setTimeout((function(){return function(){var e=m.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");if(e.onFirstInputDelay){var r=setTimeout((function(){K.createOobTrace(t,n),r=void 0}),5e3);e.onFirstInputDelay((function(e){r&&(clearTimeout(r),K.createOobTrace(t,n,e))}))}else K.createOobTrace(t,n)}()}),0),setTimeout((function(){return function(){for(var e=m.getInstance(),t=e.getEntriesByType("resource"),n=0,r=t;n<r.length;n++){J(r[n])}e.setupObserver("resource",J)}()}),0),setTimeout((function(){return function(){for(var e=m.getInstance(),t=e.getEntriesByType("measure"),n=0,r=t;n<r.length;n++){Q(r[n])}e.setupObserver("measure",Q)}()}),0))}function Q(e){var t=e.name;"FB-PERF-TRACE-MEASURE"!==t.substring(0,"FB-PERF-TRACE-MEASURE".length)&&K.createUserTimingTrace(t)}var Z=function(){function e(e){this.app=e,m.getInstance().requiredApisAvailable()?(j||(F(5500),j=!0),A().then(X,X)):C.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled.")}return e.prototype.trace=function(e){return new K(e)},Object.defineProperty(e.prototype,"instrumentationEnabled",{get:function(){return b.getInstance().instrumentationEnabled},set:function(e){b.getInstance().instrumentationEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataCollectionEnabled",{get:function(){return b.getInstance().dataCollectionEnabled},set:function(e){b.getInstance().dataCollectionEnabled=e},enumerable:!0,configurable:!0}),e}();function ee(e){var t=function(e,t){if("[DEFAULT]"!==e.name)throw f.create("FB not default");if("undefined"==typeof window)throw f.create("no window");return function(e){s=e}(window),b.getInstance().firebaseAppInstance=e,b.getInstance().installationsService=t,new Z(e)};e.INTERNAL.registerComponent(new h.Component("performance",(function(e){var n=e.getProvider("app").getImmediate(),r=e.getProvider("installations").getImmediate();return t(n,r)}),"PUBLIC")),e.registerVersion("@firebase/performance","0.3.2")}ee(i),t.registerPerformance=ee},function(e,t,n){"use strict";n.r(t),n.d(t,"factory",(function(){return C})),n.d(t,"getGlobalVars",(function(){return T})),n.d(t,"registerAnalytics",(function(){return x})),n.d(t,"resetGlobalVars",(function(){return E})),n.d(t,"settings",(function(){return S}));var r,i,a=n(17),o=n.n(a),s=(n(35),n(5)),l=n(28),c=n(23),u=n(22),d="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(r||(r={})),function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(i||(i={}));var h,p=new l.Logger("@firebase/analytics");function f(e,t,n){var i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window[t].push(arguments)};return window[n]&&"function"==typeof window[n]&&(i=window[n]),window[n]=function(e,t){return function(n,i,a){if(n===r.EVENT){var o=[];if(a&&a.send_to){var s=a.send_to;Array.isArray(s)||(s=[s]);for(var l=0,c=s;l<c.length;l++){var u=c[l],d=t[u];if(!d){o=[];break}o.push(d)}}if(0===o.length)for(var h=0,f=Object.values(t);h<f.length;h++){var m=f[h];o.push(m)}Promise.all(o).then((function(){return e(r.EVENT,i,a||{})})).catch((function(e){return p.error(e)}))}else if(n===r.CONFIG){(t[i]||Promise.resolve()).then((function(){e(r.CONFIG,i,a)})).catch((function(e){return p.error(e)}))}else e(r.SET,i)}}(i,e),{gtagCore:i,wrappedGtag:window[n]}}var m,v,g=((h={})["no-ga-id"]='"measurementId" field is empty in Firebase config. Firebase Analytics requires this field to contain a valid measurement ID.',h["already-exists"]="A Firebase Analytics instance with the measurement ID ${id}  already exists. Only one Firebase Analytics instance can be created for each measurement ID.",h["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",h["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate",h),y=new c.ErrorFactory("analytics","Analytics",g),b={},_="dataLayer",w="gtag",k=!1;function E(e,t){void 0===e&&(e=!1),void 0===t&&(t={}),k=e,b=t,_="dataLayer",w="gtag"}function T(){return{initializedIdPromisesMap:b}}function S(e){if(k)throw y.create("already-initialized");e.dataLayerName&&(_=e.dataLayerName),e.gtagName&&(w=e.gtagName)}function C(e,t){var n=e.options.measurementId;if(!n)throw y.create("no-ga-id");if(null!=b[n])throw y.create("already-exists",{id:n});if(!k){(function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(r.src&&r.src.includes(d))return r}return null})()||function(e){var t=document.createElement("script");t.src=d+"?l="+e,t.async=!0,document.head.appendChild(t)}(_),function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(_);var i=f(b,_,w),a=i.wrappedGtag,o=i.gtagCore;v=a,m=o,k=!0}return b[n]=function(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return[4,t.getId()];case 1:return i=o.sent(),n("js",new Date),n(r.CONFIG,e.options.measurementId,((a={}).firebase_id=i,a.origin="firebase",a.update=!0,a)),[2]}}))}))}(e,t,m),{app:e,logEvent:function(e,t,i){return function(e,t,n,i,a){var o=i||{};a&&a.global||(o=Object(s.__assign)(Object(s.__assign)({},i),{send_to:t})),e(r.EVENT,n,o||{})}(v,n,e,t,i)},setCurrentScreen:function(e,t){return function(e,t,n,i){i&&i.global?e(r.SET,{screen_name:n}):e(r.CONFIG,t,{update:!0,screen_name:n})}(v,n,e,t)},setUserId:function(e,t){return function(e,t,n,i){i&&i.global?e(r.SET,{user_id:n}):e(r.CONFIG,t,{update:!0,user_id:n})}(v,n,e,t)},setUserProperties:function(e,t){return function(e,t,n,i){if(i&&i.global){for(var a={},o=0,s=Object.keys(n);o<s.length;o++){var l=s[o];a["user_properties."+l]=n[l]}e(r.SET,a)}else e(r.CONFIG,t,{update:!0,user_properties:n})}(v,n,e,t)},setAnalyticsCollectionEnabled:function(e){return function(e,t){window["ga-disable-"+e]=!t}(n,e)}}}function x(e){e.INTERNAL.registerComponent(new u.Component("analytics",(function(e){return C(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:S,EventName:i})),e.INTERNAL.registerComponent(new u.Component("analytics-internal",(function(e){try{return{logEvent:e.getProvider("analytics").getImmediate().logEvent}}catch(e){throw y.create("interop-component-reg-failed",{reason:e})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.3.3")}x(o.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;n(35);var a,o=n(5),s=n(23),l=n(28),c=n(22),u=function(){function e(e,t,n,r){this.client=e,this.storage=t,this.storageCache=n,this.logger=r}return e.prototype.isCachedDataFresh=function(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-t,r=n<=e;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+e+". Is cache hit: "+r+"."),r},e.prototype.fetch=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return t=o.sent(),n=t[0],(r=t[1])&&this.isCachedDataFresh(e.cacheMaxAgeMillis,n)?[2,r]:(e.eTag=r&&r.eTag,[4,this.client.fetch(e)]);case 2:return i=o.sent(),a=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===i.status&&a.push(this.storage.setLastSuccessfulFetchResponse(i)),[4,Promise.all(a)];case 3:return o.sent(),[2,i]}}))}))},e}(),d=((a={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",a["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",a["registration-api-key"]="Undefined API key. Check Firebase app initialization.",a["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",a["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",a["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",a["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",a["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",a["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",a["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',a["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',a["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",a["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",a),h=new s.ErrorFactory("remoteconfig","Remote Config",d);var p=function(){function e(e,t,n,r,i,a){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=a}return e.prototype.fetch=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a,s,l,c,u,d,p,f,m,v,g,y,b,_,w;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:t=o.sent(),n=t[0],r=t[1],i=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",a=i+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,s={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},l={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:(void 0===k&&(k=navigator),k.languages&&k.languages[0]||k.language)},c={method:"POST",headers:s,body:JSON.stringify(l)},u=fetch(a,c),d=new Promise((function(t,n){e.signal.addEventListener((function(){var e=new Error("The operation was aborted.");e.name="AbortError",n(e)}))})),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,Promise.race([u,d])];case 3:return o.sent(),[4,u];case 4:return p=o.sent(),[3,6];case 5:throw f=o.sent(),m="fetch-client-network","AbortError"===f.name&&(m="fetch-timeout"),h.create(m,{originalErrorMessage:f.message});case 6:if(v=p.status,g=p.headers.get("ETag")||void 0,200!==p.status)return[3,11];_=void 0,o.label=7;case 7:return o.trys.push([7,9,,10]),[4,p.json()];case 8:return _=o.sent(),[3,10];case 9:throw w=o.sent(),h.create("fetch-client-parse",{originalErrorMessage:w.message});case 10:y=_.entries,b=_.state,o.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===b?v=500:"NO_CHANGE"===b?v=304:"NO_TEMPLATE"!==b&&"EMPTY_CONFIG"!==b||(y={}),304!==v&&200!==v)throw h.create("fetch-status",{httpStatus:v});return[2,{status:v,eTag:g,config:y}]}var k}))}))},e}(),f=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}(),m=["1","true","t","yes","y","on"],v=function(){function e(e,t){void 0===t&&(t=""),this._source=e,this._value=t}return e.prototype.asString=function(){return this._value},e.prototype.asBoolean=function(){return"static"!==this._source&&m.indexOf(this._value.toLowerCase())>=0},e.prototype.asNumber=function(){if("static"===this._source)return 0;var e=Number(this._value);return isNaN(e)&&(e=0),e},e.prototype.getSource=function(){return this._source},e}(),g=function(){function e(e,t,n,r,i){this.app=e,this._client=t,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return e.prototype.setLogLevel=function(e){switch(e){case"debug":this._logger.logLevel=l.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=l.LogLevel.SILENT;break;default:this._logger.logLevel=l.LogLevel.ERROR}},Object.defineProperty(e.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!0,configurable:!0}),e.prototype.activate=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return e=r.sent(),t=e[0],n=e[1],t&&t.config&&t.eTag&&t.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(t.config),this._storage.setActiveConfigEtag(t.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}}))}))},e.prototype.ensureInitialized=function(){var e=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){e._isInitializationComplete=!0}))),this._initializePromise},e.prototype.fetch=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n,r=this;return o.__generator(this,(function(i){switch(i.label){case 0:e=new f,setTimeout((function(){return o.__awaiter(r,void 0,void 0,(function(){return o.__generator(this,(function(t){return e.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:e})];case 2:return i.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return i.sent(),[3,6];case 4:return t=i.sent(),l="fetch-throttle",n=(a=t)instanceof s.FirebaseError&&-1!==a.code.indexOf(l)?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw i.sent(),t;case 6:return[2]}var a,l}))}))},e.prototype.fetchAndActivate=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return[4,this.fetch()];case 1:return e.sent(),[2,this.activate()]}}))}))},e.prototype.getAll=function(){var e=this;return function(e,t){void 0===e&&(e={});void 0===t&&(t={});return Object.keys(o.__assign(o.__assign({},e),t))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce((function(t,n){return t[n]=e.getValue(n),t}),{})},e.prototype.getBoolean=function(e){return this.getValue(e).asBoolean()},e.prototype.getNumber=function(e){return this.getValue(e).asNumber()},e.prototype.getString=function(e){return this.getValue(e).asString()},e.prototype.getValue=function(e){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+e+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var t=this._storageCache.getActiveConfig();return t&&void 0!==t[e]?new v("remote",t[e]):this.defaultConfig&&void 0!==this.defaultConfig[e]?new v("default",String(this.defaultConfig[e])):(this._logger.debug('Returning static value for key "'+e+'". Define a default or remote value if this is unintentional.'),new v("static"))},e}();function y(e,t){var n=e.target.error||void 0;return h.create(t,{originalErrorMessage:n&&n.message})}var b=function(){function e(e,t,n,r){void 0===r&&(r=new Promise((function(e,t){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(e){t(y(e,"storage-open"))},n.onsuccess=function(t){e(t.target.result)},n.onupgradeneeded=function(e){var t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore("app_namespace_store",{keyPath:"compositeKey"})}}}))),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=r}return e.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},e.prototype.setLastFetchStatus=function(e){return this.set("last_fetch_status",e)},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.set("last_successful_fetch_timestamp_millis",e)},e.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},e.prototype.setLastSuccessfulFetchResponse=function(e){return this.set("last_successful_fetch_response",e)},e.prototype.getActiveConfig=function(){return this.get("active_config")},e.prototype.setActiveConfig=function(e){return this.set("active_config",e)},e.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},e.prototype.setActiveConfigEtag=function(e){return this.set("active_config_etag",e)},e.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},e.prototype.setThrottleMetadata=function(e){return this.set("throttle_metadata",e)},e.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},e.prototype.get=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var a=t.transaction(["app_namespace_store"],"readonly").objectStore("app_namespace_store"),o=n.createCompositeKey(e);try{var s=a.get(o);s.onerror=function(e){i(y(e,"storage-get"))},s.onsuccess=function(e){var t=e.target.result;r(t?t.value:void 0)}}catch(e){i(h.create("storage-get",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.set=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,r=this;return o.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise((function(i,a){var o=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=r.createCompositeKey(e);try{var l=o.put({compositeKey:s,value:t});l.onerror=function(e){a(y(e,"storage-set"))},l.onsuccess=function(){i()}}catch(e){a(h.create("storage-set",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.delete=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var a=t.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),o=n.createCompositeKey(e);try{var s=a.delete(o);s.onerror=function(e){i(y(e,"storage-delete"))},s.onsuccess=function(){r()}}catch(e){i(h.create("storage-delete",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.createCompositeKey=function(e){return[this.appId,this.appName,this.namespace,e].join()},e}(),_=function(){function e(e){this.storage=e}return e.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},e.prototype.getActiveConfig=function(){return this.activeConfig},e.prototype.loadFromStorage=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,e];case 1:return(r=o.sent())&&(this.lastFetchStatus=r),[4,t];case 2:return(i=o.sent())&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return(a=o.sent())&&(this.activeConfig=a),[2]}}))}))},e.prototype.setLastFetchStatus=function(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)},e.prototype.setActiveConfig=function(e){return this.activeConfig=e,this.storage.setActiveConfig(e)},e}();function w(e){var t=1e3*Math.pow(2,e),n=Math.round(.5*t*(Math.random()-.5)*2);return Math.min(144e5,t+n)}function k(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener((function(){clearTimeout(a),r(h.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var E=function(){function e(e,t){this.client=e,this.storage=t}return e.prototype.fetch=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t;return o.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return t=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(e,t)]}}))}))},e.prototype.attemptFetch=function(e,t){var n=t.throttleEndTimeMillis,r=t.backoffCount;return o.__awaiter(this,void 0,void 0,(function(){var t,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,k(e.signal,n)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),[4,this.client.fetch(e)];case 3:return t=o.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return o.sent(),[2,t];case 5:if(!function(e){if(!(e instanceof s.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(i=o.sent()))throw i;return a={throttleEndTimeMillis:Date.now()+w(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(a)];case 6:return o.sent(),[2,this.attemptFetch(e,a)];case 7:return[2]}}))}))},e}(),T="@firebase/remote-config";function S(e){e.INTERNAL.registerComponent(new c.Component("remoteConfig",(function(t,n){var r=t.getProvider("app").getImmediate(),i=t.getProvider("installations").getImmediate();if("undefined"==typeof window)throw h.create("registration-window");var a=r.options,o=a.projectId,s=a.apiKey,c=a.appId;if(!o)throw h.create("registration-project-id");if(!s)throw h.create("registration-api-key");if(!c)throw h.create("registration-app-id");n=n||"firebase";var d=new b(c,r.name,n),f=new _(d),m=new l.Logger(T);m.logLevel=l.LogLevel.ERROR;var v=new p(i,e.SDK_VERSION,n,o,s,c),y=new E(v,d),w=new u(y,d,f,m),k=new g(r,w,f,d,m);return k.ensureInitialized(),k}),"PUBLIC").setMultipleInstances(!0)),e.registerVersion(T,"0.1.19")}S(i),t.registerRemoteConfig=S},function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){var e,t,n,r,i,a={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,o,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in a)if((s="function"==typeof a[i].regexps.unformat?a[i].regexps.unformat():a[i].regexps.unformat)&&n.match(s)){o=a[i].unformat;break}r=(o=o||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,h,p=o[e.options.currentLocale],f=!1,m=!1,v="",g="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(f=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),s>=1e12&&!a||"t"===a?(v+=p.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!a||"b"===a?(v+=p.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!a||"m"===a?(v+=p.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!a||"k"===a)&&(v+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],c=n.split(".")[1],d=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),g=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):g=e._.toFixed(t,c.length,r),l=g.split(".")[0],g=e._.includes(g,".")?p.delimiters.decimal+g.split(".")[1]:"",m&&0===Number(g.slice(1))&&(g="")):l=e._.toFixed(t,0,r),v&&!a&&Number(l)>=1e3&&v!==p.abbreviations.trillion)switch(l=String(Number(l)/1e3),v){case p.abbreviations.thousand:v=p.abbreviations.million;break;case p.abbreviations.million:v=p.abbreviations.billion;break;case p.abbreviations.billion:v=p.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length<i)for(var b=i-l.length;b>0;b--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(l=""),h=l+g+(v||""),f?h=(f&&y?"(":"")+h+(f&&y?")":""):u>=0?h=0===u?(y?"-":"+")+h:h+(y?"-":"+"):y&&(h="-"+h),h},stringToNumber:function(e){var t,n,r,i=o[l.currentLocale],a=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a<i&&!(a in r);)a++;if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;a<i;a++)a in r&&(n=t(n,r[a],a,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=l,e.formats=a,e.locales=o,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return o[l.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return a=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==a)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(r)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(l):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(l)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(l)||!o[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,o,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in a)if(c.match(a[r].regexps.format)){o=a[r].format;break}i=(o=o||e._.numberToFormat)(s,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,i){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,i){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,a){var o,s,l,c=e._.includes(i,"ib")?r:n,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=c.suffixes.length;o++)if(s=Math.pow(c.base,o),l=Math.pow(c.base,o+1),null===t||0===t||t>=s&&t<l){u+=c.suffixes[o],s>0&&(t/=s);break}return e._.numberToFormat(t,i,a)+u},unformat:function(t){var i,a,o=e._.stringToNumber(t);if(o){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){a=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){a=Math.pow(r.base,i);break}}o*=a||1}return o}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a<s.before.length;a++)switch(s.before[a]){case"$":i=e._.insert(i,o.currency.symbol,a);break;case" ":i=e._.insert(i," ",a+o.currency.symbol.length-1)}for(a=s.after.length-1;a>=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],(function(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";var r=n(38);n.n(r).a},function(e,t,n){"use strict";var r=n(39);n.n(r).a},function(e,t,n){"use strict";var r=n(40);n.n(r).a},function(e,t,n){"use strict";var r=n(41);n.n(r).a},function(e,t,n){"use strict";var r=n(42);n.n(r).a},function(e,t,n){"use strict";var r=n(43);n.n(r).a},function(e,t,n){},function(e,t,n){"use strict";var r=n(44);n.n(r).a},function(e,t,n){"use strict";n.r(t),t.default=n.p+"images/googleimage.png"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"images/appleimage.png"},function(e,t,n){var r={"./af":69,"./af.js":69,"./ar":70,"./ar-dz":71,"./ar-dz.js":71,"./ar-kw":72,"./ar-kw.js":72,"./ar-ly":73,"./ar-ly.js":73,"./ar-ma":74,"./ar-ma.js":74,"./ar-sa":75,"./ar-sa.js":75,"./ar-tn":76,"./ar-tn.js":76,"./ar.js":70,"./az":77,"./az.js":77,"./be":78,"./be.js":78,"./bg":79,"./bg.js":79,"./bm":80,"./bm.js":80,"./bn":81,"./bn.js":81,"./bo":82,"./bo.js":82,"./br":83,"./br.js":83,"./bs":84,"./bs.js":84,"./ca":85,"./ca.js":85,"./cs":86,"./cs.js":86,"./cv":87,"./cv.js":87,"./cy":88,"./cy.js":88,"./da":89,"./da.js":89,"./de":90,"./de-at":91,"./de-at.js":91,"./de-ch":92,"./de-ch.js":92,"./de.js":90,"./dv":93,"./dv.js":93,"./el":94,"./el.js":94,"./en-SG":95,"./en-SG.js":95,"./en-au":96,"./en-au.js":96,"./en-ca":97,"./en-ca.js":97,"./en-gb":98,"./en-gb.js":98,"./en-ie":99,"./en-ie.js":99,"./en-il":100,"./en-il.js":100,"./en-nz":101,"./en-nz.js":101,"./eo":102,"./eo.js":102,"./es":103,"./es-do":104,"./es-do.js":104,"./es-us":105,"./es-us.js":105,"./es.js":103,"./et":106,"./et.js":106,"./eu":107,"./eu.js":107,"./fa":108,"./fa.js":108,"./fi":109,"./fi.js":109,"./fo":110,"./fo.js":110,"./fr":111,"./fr-ca":112,"./fr-ca.js":112,"./fr-ch":113,"./fr-ch.js":113,"./fr.js":111,"./fy":114,"./fy.js":114,"./ga":115,"./ga.js":115,"./gd":116,"./gd.js":116,"./gl":117,"./gl.js":117,"./gom-latn":118,"./gom-latn.js":118,"./gu":119,"./gu.js":119,"./he":120,"./he.js":120,"./hi":121,"./hi.js":121,"./hr":122,"./hr.js":122,"./hu":123,"./hu.js":123,"./hy-am":124,"./hy-am.js":124,"./id":125,"./id.js":125,"./is":126,"./is.js":126,"./it":127,"./it-ch":128,"./it-ch.js":128,"./it.js":127,"./ja":129,"./ja.js":129,"./jv":130,"./jv.js":130,"./ka":131,"./ka.js":131,"./kk":132,"./kk.js":132,"./km":133,"./km.js":133,"./kn":134,"./kn.js":134,"./ko":135,"./ko.js":135,"./ku":136,"./ku.js":136,"./ky":137,"./ky.js":137,"./lb":138,"./lb.js":138,"./lo":139,"./lo.js":139,"./lt":140,"./lt.js":140,"./lv":141,"./lv.js":141,"./me":142,"./me.js":142,"./mi":143,"./mi.js":143,"./mk":144,"./mk.js":144,"./ml":145,"./ml.js":145,"./mn":146,"./mn.js":146,"./mr":147,"./mr.js":147,"./ms":148,"./ms-my":149,"./ms-my.js":149,"./ms.js":148,"./mt":150,"./mt.js":150,"./my":151,"./my.js":151,"./nb":152,"./nb.js":152,"./ne":153,"./ne.js":153,"./nl":154,"./nl-be":155,"./nl-be.js":155,"./nl.js":154,"./nn":156,"./nn.js":156,"./pa-in":157,"./pa-in.js":157,"./pl":158,"./pl.js":158,"./pt":159,"./pt-br":160,"./pt-br.js":160,"./pt.js":159,"./ro":161,"./ro.js":161,"./ru":162,"./ru.js":162,"./sd":163,"./sd.js":163,"./se":164,"./se.js":164,"./si":165,"./si.js":165,"./sk":166,"./sk.js":166,"./sl":167,"./sl.js":167,"./sq":168,"./sq.js":168,"./sr":169,"./sr-cyrl":170,"./sr-cyrl.js":170,"./sr.js":169,"./ss":171,"./ss.js":171,"./sv":172,"./sv.js":172,"./sw":173,"./sw.js":173,"./ta":174,"./ta.js":174,"./te":175,"./te.js":175,"./tet":176,"./tet.js":176,"./tg":177,"./tg.js":177,"./th":178,"./th.js":178,"./tl-ph":179,"./tl-ph.js":179,"./tlh":180,"./tlh.js":180,"./tr":181,"./tr.js":181,"./tzl":182,"./tzl.js":182,"./tzm":183,"./tzm-latn":184,"./tzm-latn.js":184,"./tzm.js":183,"./ug-cn":185,"./ug-cn.js":185,"./uk":186,"./uk.js":186,"./ur":187,"./ur.js":187,"./uz":188,"./uz-latn":189,"./uz-latn.js":189,"./uz.js":188,"./vi":190,"./vi.js":190,"./x-pseudo":191,"./x-pseudo.js":191,"./yo":192,"./yo.js":192,"./zh-cn":193,"./zh-cn.js":193,"./zh-hk":194,"./zh-hk.js":194,"./zh-tw":195,"./zh-tw.js":195};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=246},function(e,t,n){"use strict";var r=n(45);n.n(r).a},function(e,t,n){"use strict";var r=n(46);n.n(r).a},function(e,t,n){"use strict";var r=n(47);n.n(r).a},function(e,t,n){"use strict";var r=n(48);n.n(r).a},function(e,t,n){"use strict";var r=n(49);n.n(r).a},function(e,t,n){"use strict";var r=n(50);n.n(r).a},function(e,t,n){"use strict";var r=n(51);n.n(r).a},function(e,t,n){"use strict";var r=n(52);n.n(r).a},function(e,t,n){"use strict";var r=n(53);n.n(r).a},function(e,t,n){"use strict";var r=n(54);n.n(r).a},function(e,t,n){"use strict";var r=n(55);n.n(r).a},function(e,t,n){"use strict";var r=n(56);n.n(r).a},function(e,t,n){"use strict";var r=n(57);n.n(r).a},function(e,t,n){"use strict";var r=n(58);n.n(r).a},function(e,t,n){"use strict";var r=n(59);n.n(r).a},function(e,t,n){"use strict";var r=n(60);n.n(r).a},function(e,t,n){"use strict";var r=n(61);n.n(r).a},function(e,t,n){"use strict";var r=n(62);n.n(r).a},function(e,t,n){var r,i,a=n(196),o=n(197),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==h){var p=a();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=i=16383&(p[6]<<8|p[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,v=f-s+(m-l)/1e4;if(v<0&&void 0===e.clockseq&&(h=h+1&16383),(v<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,l=m,i=h;var g=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var y=f/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var b=0;b<6;++b)u[c+b]=d[b];return t||o(u)}},function(e,t,n){var r=n(196),i=n(197);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[a+s]=o[s];return t||i(o)}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(25))},function(e,t,n){var r=n(269),i=n(209),a=e.exports;for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=s(e),r.request.call(this,e,t)},a.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},function(e,t,n){(function(e){var r=n(270),i=n(200),a=n(279),o=n(280),s=n(209),l=t;l.request=function(t,n){t="string"==typeof t?s.parse(t):a(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||i,l=t.hostname||t.host,c=t.port,u=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?o+"//"+l:"")+(c?":"+c:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var d=new r(t);return n&&d.on("response",n),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(21))},function(e,t,n){(function(t,r,i){var a=n(199),o=n(27),s=n(200),l=n(201),c=n(278),u=s.IncomingMessage,d=s.readyStates;var h=e.exports=function(e){var n,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":a.vbArray&&e?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};o(h,l.Writable),h.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,o=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=a.arraybuffer?c(t.concat(e._body)):a.blobConstructor?new r.Blob(e._body.map((function(e){return c(e)})),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(o).forEach((function(e){var t=o[e].name,n=o[e].value;Array.isArray(n)?n.forEach((function(e){l.push([t,e])})):l.push([t,n])})),"fetch"===e._mode){var u=null;if(a.abortController){var h=new AbortController;u=h.signal,e._fetchAbortController=h,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),l.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(s)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},h.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,n){this._body.push(e),n()},h.prototype.abort=h.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},h.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(this,e,t,n)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(32).Buffer,n(21),n(25))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(37).Buffer,i=n(275);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(21))},function(e,t,n){"use strict";e.exports=a;var r=n(208),i=Object.create(n(33));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(27),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){var r=n(32).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i<n;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){(function(e,r){var i;!function(a){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(h[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return v(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function k(e){var t,n,r,i,a,o,s,c,u,d,h,f=[],v=e.length,g=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),f.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(a=g,o=1,s=36;i>=v&&m("invalid-input"),((c=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>p((l-g)/o))&&m("overflow"),g+=c*o,!(c<(u=s<=_?1:s>=_+26?26:s-_));s+=36)o>p(l/(d=36-u))&&m("overflow"),o*=d;_=w(g-a,t=f.length+1,0==a),p(g/t)>l-y&&m("overflow"),y+=p(g/t),g%=t,f.splice(g++,0,y)}return b(f)}function E(e){var t,n,r,i,a,o,s,c,u,d,h,v,g,b,k,E=[];for(v=(e=y(e)).length,t=128,n=0,a=72,o=0;o<v;++o)(h=e[o])<128&&E.push(f(h));for(r=i=E.length,i&&E.push("-");r<v;){for(s=l,o=0;o<v;++o)(h=e[o])>=t&&h<s&&(s=h);for(s-t>p((l-n)/(g=r+1))&&m("overflow"),n+=(s-t)*g,t=s,o=0;o<v;++o)if((h=e[o])<t&&++n>l&&m("overflow"),h==t){for(c=n,u=36;!(c<(d=u<=a?1:u>=a+26?26:u-a));u+=36)k=c-d,b=36-d,E.push(f(_(d+k%b,0))),c=p(k/b);E.push(f(_(c,0))),a=w(n,g,r==i),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:k,encode:E,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(64)(e),n(21))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(284),t.encode=t.stringify=n(285)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,h,p,f,m=e[u].replace(s,"%20"),v=m.indexOf(n);v>=0?(d=m.substr(0,v),h=m.substr(v+1)):(d=m,h=""),p=decodeURIComponent(d),f=decodeURIComponent(h),r(o,p)?i(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(o(e),(function(o){var s=encodeURIComponent(r(o))+n;return i(e[o])?a(e[o],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[o]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),a=n(8),o=n.n(a),s=n(7),l=n(24),c=n(9),u=n.n(c),d=n(0),h=function e(t){u()(this,e);for(var n=0;n<t.length;n+=1)this[n]=t[n];return this.length=t.length,this};function p(e,t){var n=[],r=0;if(e&&!t&&e instanceof h)return e;if(e)if("string"==typeof e){var i,a,o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";for(0===o.indexOf("<li")&&(s="ul"),0===o.indexOf("<tr")&&(s="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(s="tr"),0===o.indexOf("<tbody")&&(s="table"),0===o.indexOf("<option")&&(s="select"),(a=d.a.createElement(s)).innerHTML=o,r=0;r<a.childNodes.length;r+=1)n.push(a.childNodes[r])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||d.a).querySelectorAll(e.trim()):[d.a.getElementById(e.trim().split("#")[1])],r=0;r<i.length;r+=1)i[r]&&n.push(i[r])}else if(e.nodeType||e===d.b||e===d.a)n.push(e);else if(e.length>0&&e[0].nodeType)for(r=0;r<e.length;r+=1)n.push(e[r]);return new h(n)}function f(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function m(e){return d.b.requestAnimationFrame?d.b.requestAnimationFrame(e):d.b.webkitRequestAnimationFrame?d.b.webkitRequestAnimationFrame(e):d.b.setTimeout(e,1e3/60)}p.fn=h.prototype,p.Class=h,p.Dom7=h;var v=Object.freeze({addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.add(t[n]);return this},removeClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.toggle(t[n]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},prop:function(e,t){if(1!==arguments.length||"string"!=typeof e){for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n][e]=t;else for(var r in e)this[n][r]=e[r];return this}if(this[0])return this[0][e]},data:function(e,t){var n;if(void 0!==t){for(var r=0;r<this.length;r+=1)(n=this[r]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-".concat(e));return i||void 0}},removeData:function(e){for(var t=0;t<this.length;t+=1){var n=this[t];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf("data-")>=0&&(n[(t=a.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=a.value)}for(var o in n)"false"===n[o]?n[o]=!1:"true"===n[o]?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}},val:function(e){if(void 0!==e){for(var t=0;t<this.length;t+=1){var n=this[t];if(Array.isArray(e)&&n.multiple&&"select"===n.nodeName.toLowerCase())for(var r=0;r<n.options.length;r+=1)n.options[r].selected=e.indexOf(n.options[r].value)>=0;else n.value=e}return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var i=[],a=0;a<this[0].selectedOptions.length;a+=1)i.push(this[0].selectedOptions[a].value);return i}return this[0].value}},transform:function(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),p(t).is(i))a.apply(t,n);else for(var r=p(t).parents(),o=0;o<r.length;o+=1)p(r[o]).is(i)&&a.apply(r[o],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var c,u=r.split(" "),d=0;d<this.length;d+=1){var h=this[d];if(i)for(c=0;c<u.length;c+=1){var f=u[c];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:a,proxyListener:s}),h.addEventListener(f,s,o)}else for(c=0;c<u.length;c+=1){var m=u[c];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[m]||(h.dom7Listeners[m]=[]),h.dom7Listeners[m].push({listener:a,proxyListener:l}),h.addEventListener(m,l,o)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!i&&d.dom7Listeners?h=d.dom7Listeners[c]:i&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];a&&f.listener===a||a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(d.removeEventListener(c,f.proxyListener,o),h.splice(p,1)):a||(d.removeEventListener(c,f.proxyListener,o),h.splice(p,1))}}return this},once:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],s=n[3];function l(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o.apply(this,n),e.off(i,a,l,s),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof n[1]&&(i=n[0],o=n[1],s=n[2],a=void 0),l.dom7proxy=o,e.on(i,a,l,s)},trigger:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0].split(" "),i=t[1],a=0;a<r.length;a+=1)for(var o=r[a],s=0;s<this.length;s+=1){var l=this[s],c=void 0;try{c=new d.b.CustomEvent(o,{detail:i,bubbles:!0,cancelable:!0})}catch(e){(c=d.a.createEvent("Event")).initEvent(o,!0,!0),c.detail=i}l.dom7EventData=t.filter((function(e,t){return t>0})),l.dispatchEvent(c),l.dom7EventData=[],delete l.dom7EventData}return this},transitionEnd:function(e){var t,n=["webkitTransitionEnd","transitionend"],r=this;function i(a){if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this},animationEnd:function(e){var t,n=["webkitAnimationEnd","animationend"],r=this;function i(a){if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this},width:function(){return this[0]===d.b?d.b.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===d.b?d.b.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=d.a.body,r=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,a=e===d.b?d.b.scrollY:e.scrollTop,o=e===d.b?d.b.scrollX:e.scrollLeft;return{top:t.top+a-r,left:t.left+o-i}}return null},hide:function(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this},show:function(){for(var e=0;e<this.length;e+=1){var t=this[e];"none"===t.style.display&&(t.style.display=""),"none"===d.b.getComputedStyle(t,null).getPropertyValue("display")&&(t.style.display="block")}return this},styles:function(){return this[0]?d.b.getComputedStyle(this[0],null):{}},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var r in e)this[n].style[r]=e[r];return this}if(this[0])return d.b.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this},toArray:function(){for(var e=[],t=0;t<this.length;t+=1)e.push(this[t]);return e},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},forEach:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],this[t],t))return this;return this},filter:function(e){for(var t=[],n=0;n<this.length;n+=1)e.call(this[n],n,this[n])&&t.push(this[n]);return new h(t)},map:function(e){for(var t=[],n=0;n<this.length;n+=1)t.push(e.call(this[n],n,this[n]));return new h(t)},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,n,r=this[0];if(!r||void 0===e)return!1;if("string"==typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(t=p(e),n=0;n<t.length;n+=1)if(t[n]===r)return!0;return!1}if(e===d.a)return r===d.a;if(e===d.b)return r===d.b;if(e.nodeType||e instanceof h){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===r)return!0;return!1}return!1},indexOf:function(e){for(var t=0;t<this.length;t+=1)if(this[t]===e)return t;return-1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,n=this.length;return new h(e>n-1?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var r=d.a.createElement("div");for(r.innerHTML=e;r.firstChild;)this[n].appendChild(r.firstChild)}else if(e instanceof h)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this},appendTo:function(e){return p(e).append(this),this},prepend:function(e){var t,n;for(t=0;t<this.length;t+=1)if("string"==typeof e){var r=d.a.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(r.childNodes[n],this[t].childNodes[0])}else if(e instanceof h)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},prependTo:function(e){return p(e).prepend(this),this},insertBefore:function(e){for(var t=p(e),n=0;n<this.length;n+=1)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0]);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r])},insertAfter:function(e){for(var t=p(e),n=0;n<this.length;n+=1)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0].nextSibling);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r].nextSibling)},next:function(e){return this.length>0?e?this[0].nextElementSibling&&p(this[0].nextElementSibling).is(e)?new h([this[0].nextElementSibling]):new h([]):this[0].nextElementSibling?new h([this[0].nextElementSibling]):new h([]):new h([])},nextAll:function(e){var t=[],n=this[0];if(!n)return new h([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?p(r).is(e)&&t.push(r):t.push(r),n=r}return new h(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&p(t.previousElementSibling).is(e)?new h([t.previousElementSibling]):new h([]):t.previousElementSibling?new h([t.previousElementSibling]):new h([])}return new h([])},prevAll:function(e){var t=[],n=this[0];if(!n)return new h([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?p(r).is(e)&&t.push(r):t.push(r),n=r}return new h(t)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?p(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return p(f(t))},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?p(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return p(f(t))},closest:function(e){var t=this;return void 0===e?new h([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return new h(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].childNodes,i=0;i<r.length;i+=1)e?1===r[i].nodeType&&p(r[i]).is(e)&&t.push(r[i]):1===r[i].nodeType&&t.push(r[i]);return new h(f(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},detach:function(){return this.remove()},add:function(){for(var e,t,n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];for(e=0;e<i.length;e+=1){var o=p(i[e]);for(t=0;t<o.length;t+=1)n[n.length]=o[t],n.length+=1}return n},empty:function(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}});var g=Object.freeze({scrollTo:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4];return 4===t.length&&"function"==typeof o&&(s=o,r=t[0],i=t[1],a=t[2],s=t[3],o=t[4]),void 0===o&&(o="swing"),this.each((function(){var e,t,n,l,c,u,d,h,p=this,f=i>0||0===i,v=r>0||0===r;if(void 0===o&&(o="swing"),f&&(e=p.scrollTop,a||(p.scrollTop=i)),v&&(t=p.scrollLeft,a||(p.scrollLeft=r)),a){f&&(n=p.scrollHeight-p.offsetHeight,c=Math.max(Math.min(i,n),0)),v&&(l=p.scrollWidth-p.offsetWidth,u=Math.max(Math.min(r,l),0));var g=null;f&&c===e&&(f=!1),v&&u===t&&(v=!1),m((function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();null===g&&(g=r);var i,l=Math.max(Math.min((r-g)/a,1),0),y="linear"===o?l:.5-Math.cos(l*Math.PI)/2;f&&(d=e+y*(c-e)),v&&(h=t+y*(u-t)),f&&c>e&&d>=c&&(p.scrollTop=c,i=!0),f&&c<e&&d<=c&&(p.scrollTop=c,i=!0),v&&u>t&&h>=u&&(p.scrollLeft=u,i=!0),v&&u<t&&h<=u&&(p.scrollLeft=u,i=!0),i?s&&s():(f&&(p.scrollTop=d),v&&(p.scrollLeft=h),m(n))}))}}))},scrollTop:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];3===t.length&&"function"==typeof a&&(r=t[0],i=t[1],o=t[2],a=t[3]);var s=this;return void 0===r?s.length>0?s[0].scrollTop:null:s.scrollTo(void 0,r,i,a,o)},scrollLeft:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];3===t.length&&"function"==typeof a&&(r=t[0],i=t[1],o=t[2],a=t[3]);var s=this;return void 0===r?s.length>0?s[0].scrollLeft:null:s.scrollTo(r,void 0,i,a,o)}});var y=Object.freeze({animate:function(e,t){var n,r=this,i={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:r,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){var e;i.frameId&&(e=i.frameId,d.b.cancelAnimationFrame?d.b.cancelAnimationFrame(e):d.b.webkitCancelAnimationFrame?d.b.webkitCancelAnimationFrame(e):d.b.clearTimeout(e)),i.animating=!1,i.elements.each((function(e,t){delete t.dom7AnimateInstance})),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each((function(e,t){delete t.dom7AnimateInstance})),e&&e(r),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){if(i.animating)return i.que.push([e,t]),i;var n=[];i.elements.each((function(t,r){var a,o,s,l,c;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),n[t]={container:r},Object.keys(e).forEach((function(i){a=d.b.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),o=parseFloat(a),s=a.replace(o,""),l=parseFloat(e[i]),c=e[i]+s,n[t][i]={initialFullValue:a,initialValue:o,unit:s,finalValue:l,finalFullValue:c,currentValue:o}}))}));var a,o,s=null,l=0,c=0,u=!1;return i.animating=!0,i.frameId=m((function d(){var h,p;a=(new Date).getTime(),u||(u=!0,t.begin&&t.begin(r)),null===s&&(s=a),t.progress&&t.progress(r,Math.max(Math.min((a-s)/t.duration,1),0),s+t.duration-a<0?0:s+t.duration-a,s),n.forEach((function(r){var u=r;o||u.done||Object.keys(e).forEach((function(r){if(!o&&!u.done){h=Math.max(Math.min((a-s)/t.duration,1),0),p=i.easingProgress(t.easing,h);var d=u[r],f=d.initialValue,m=d.finalValue,v=d.unit;u[r].currentValue=f+p*(m-f);var g=u[r].currentValue;(m>f&&g>=m||m<f&&g<=m)&&(u.container.style[r]=m+v,(c+=1)===Object.keys(e).length&&(u.done=!0,l+=1),l===n.length&&(o=!0)),o?i.done(t.complete):u.container.style[r]=g+v}}))})),o||(i.frameId=m(d))})),i}};if(0===i.elements.length)return r;for(var a=0;a<i.elements.length;a+=1)i.elements[a].dom7AnimateInstance?n=i.elements[a].dom7AnimateInstance:i.elements[a].dom7AnimateInstance=i;return n||(n=i),"stop"===e?n.stop():n.animate(i.props,i.params),r},stop:function(){for(var e=0;e<this.length;e+=1)this[e].dom7AnimateInstance&&this[e].dom7AnimateInstance.stop()}}),b="resize scroll".split(" ");function w(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)b.indexOf(e)<0&&(e in this[i]?this[i][e]():p(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}[v,g,y,Object.freeze({click:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["click"].concat(t))},blur:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["blur"].concat(t))},focus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["focus"].concat(t))},focusin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["focusin"].concat(t))},focusout:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["focusout"].concat(t))},keyup:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["keyup"].concat(t))},keydown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["keydown"].concat(t))},keypress:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["keypress"].concat(t))},submit:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["submit"].concat(t))},change:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["change"].concat(t))},mousedown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mousedown"].concat(t))},mousemove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mousemove"].concat(t))},mouseup:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mouseup"].concat(t))},mouseenter:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mouseenter"].concat(t))},mouseleave:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mouseleave"].concat(t))},mouseout:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mouseout"].concat(t))},mouseover:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["mouseover"].concat(t))},touchstart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["touchstart"].concat(t))},touchend:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["touchend"].concat(t))},touchmove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["touchmove"].concat(t))},resize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["resize"].concat(t))},scroll:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.bind(this).apply(void 0,["scroll"].concat(t))}})].forEach((function(e){Object.keys(e).forEach((function(t){p.fn[t]=e[t]}))}));for(var k=p,E=n(14),T=n.n(E),S=n(12),C=n.n(S),x=n(13),M=n.n(x),$=n(3),L=n.n($),P=n(6),O=n.n(P),D=n(16),I=n.n(D),A=n(18),N=n.n(A),R=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Y={},B=0;B<R.length;B+=1)for(var j=R[B].letters,F=0;F<j.length;F+=1)Y[j[F]]=R[B].base;var H=1,U={uniqueNumber:function(){return H+=1},id:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxx",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123456789abcdef",n=t.length;return e.replace(/x/g,(function(){return t[Math.floor(Math.random()*n)]}))},mdPreloaderContent:'\n    <span class="preloader-inner">\n      <span class="preloader-inner-gap"></span>\n      <span class="preloader-inner-left">\n          <span class="preloader-inner-half-circle"></span>\n      </span>\n      <span class="preloader-inner-right">\n          <span class="preloader-inner-half-circle"></span>\n      </span>\n    </span>\n  '.trim(),iosPreloaderContent:'\n    <span class="preloader-inner">\n      '.concat([0,1,2,3,4,5,6,7,8,9,10,11].map((function(){return'<span class="preloader-inner-line"></span>'})).join(""),"\n    </span>\n  ").trim(),auroraPreloaderContent:'\n    <span class="preloader-inner">\n      <span class="preloader-inner-circle"></span>\n    </span>\n  ',eventNameToColonCase:function(e){var t;return e.split("").map((function(e,n){return e.match(/[A-Z]/)&&0!==n&&!t?(t=!0,":".concat(e.toLowerCase())):e.toLowerCase()})).join("")},deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},nextFrame:function(e){return U.requestAnimationFrame((function(){U.requestAnimationFrame(e)}))},now:function(){return Date.now()},requestAnimationFrame:function(e){return d.b.requestAnimationFrame(e)},cancelAnimationFrame:function(e){return d.b.cancelAnimationFrame(e)},removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return Y[e]||e}))},parseUrlQuery:function(e){var t,n,r,i,a={},o=e||d.b.location.href;if("string"==typeof o&&o.length)for(i=(n=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<i;t+=1)r=n[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r.slice(1).join("="))||"";return a},getTranslate:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=d.b.getComputedStyle(e,null);return d.b.WebKitCSSMatrix?((n=a.transform||a.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new d.b.WebKitCSSMatrix("none"===n?"":n)):t=(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=d.b.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=d.b.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0},serializeObject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"==typeof e)return e;var n,r=[],i="&";function a(e){if(t.length>0){for(var n="",r=0;r<t.length;r+=1)n+=0===r?t[r]:"[".concat(encodeURIComponent(t[r]),"]");return"".concat(n,"[").concat(encodeURIComponent(e),"]")}return encodeURIComponent(e)}function o(e){return encodeURIComponent(e)}return Object.keys(e).forEach((function(s){var l;if(Array.isArray(e[s])){l=[];for(var c=0;c<e[s].length;c+=1)Array.isArray(e[s][c])||"object"!==N()(e[s][c])?l.push("".concat(a(s),"[]=").concat(o(e[s][c]))):((n=t.slice()).push(s),n.push(String(c)),l.push(U.serializeObject(e[s][c],n)));l.length>0&&r.push(l.join(i))}else null===e[s]||""===e[s]?r.push("".concat(a(s),"=")):"object"===N()(e[s])?((n=t.slice()).push(s),""!==(l=U.serializeObject(e[s],n))&&r.push(l)):void 0!==e[s]&&""!==e[s]?r.push("".concat(a(s),"=").concat(o(e[s]))):""===e[s]&&r.push(a(s))})),r.join(i)},isObject:function(e){return"object"===N()(e)&&null!==e&&e.constructor&&e.constructor===Object},merge:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];t.splice(0,1);for(var i=t,a=0;a<i.length;a+=1){var o=t[a];if(null!=o)for(var s=Object.keys(Object(o)),l=0,c=s.length;l<c;l+=1){var u=s[l],d=Object.getOwnPropertyDescriptor(o,u);void 0!==d&&d.enumerable&&(r[u]=o[u])}}return r},extend:function(){for(var e,t,n=!0,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];"boolean"==typeof i[0]?(n=i[0],e=i[1],i.splice(0,2),t=i):(e=i[0],i.splice(0,1),t=i);for(var o=0;o<t.length;o+=1){var s=i[o];if(null!=s)for(var l=Object.keys(Object(s)),c=0,u=l.length;c<u;c+=1){var d=l[c],h=Object.getOwnPropertyDescriptor(s,d);void 0!==h&&h.enumerable&&(n?U.isObject(e[d])&&U.isObject(s[d])?U.extend(e[d],s[d]):!U.isObject(e[d])&&U.isObject(s[d])?(e[d]={},U.extend(e[d],s[d])):e[d]=s[d]:e[d]=s[d])}}return e},colorHexToRgb:function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):null},colorRgbToHex:function(e,t,n){var r=[e,t,n].map((function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t})).join("");return"#".concat(r)},colorRgbToHsl:function(e,t,n){e/=255,t/=255,n/=255;var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a;0===o?r=0:i===e?r=(t-n)/o%6:i===t?r=(n-e)/o+2:i===n&&(r=(e-t)/o+4);var s=(a+i)/2;return r<0&&(r=6+r),[60*r,0===o?0:o/(1-Math.abs(2*s-1)),s]},colorHslToRgb:function(e,t,n){var r,i=(1-Math.abs(2*n-1))*t,a=e/60,o=i*(1-Math.abs(a%2-1));Number.isNaN(e)||void 0===e?r=[0,0,0]:a<=1?r=[i,o,0]:a<=2?r=[o,i,0]:a<=3?r=[0,i,o]:a<=4?r=[0,o,i]:a<=5?r=[o,0,i]:a<=6&&(r=[i,0,o]);var s=n-i/2;return r.map((function(e){return Math.max(0,Math.min(255,Math.round(255*(e+s))))}))},colorHsbToHsl:function(e,t,n){var r={h:e,s:0,l:0},i=t,a=n;return r.l=(2-i)*a/2,r.s=r.l&&r.l<1?i*a/(r.l<.5?2*r.l:2-2*r.l):r.s,[r.h,r.s,r.l]},colorHslToHsb:function(e,t,n){var r={h:e,s:0,b:0},i=n,a=t*(i<.5?i:1-i);return r.b=i+a,r.s=i>0?2*a/r.b:r.s,[r.h,r.s,r.b]},colorThemeCSSProperties:function(){for(var e,t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(1===r.length?(e=r[0],t=U.colorHexToRgb(e)):3===r.length&&(t=r,e=U.colorRgbToHex.apply(U,I()(t))),!t)return{};var a=U.colorRgbToHsl.apply(U,I()(t)),o=[a[0],a[1],Math.max(0,a[2]-.08)],s=[a[0],a[1],Math.max(0,a[2]+.08)],l=U.colorRgbToHex.apply(U,I()(U.colorHslToRgb.apply(U,o))),c=U.colorRgbToHex.apply(U,I()(U.colorHslToRgb.apply(U,s)));return{"--f7-theme-color":e,"--f7-theme-color-rgb":t.join(", "),"--f7-theme-color-shade":l,"--f7-theme-color-tint":c}}},z=U,V=n(10),q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,e);var n=this;n.eventsParents=t,n.eventsListeners={}}return T()(e,[{key:"on",value:function(e,t,n){var r=this;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r}},{key:"once",value:function(e,t,n){var r=this;if("function"!=typeof t)return r;function i(){r.off(e,i),i.f7proxy&&delete i.f7proxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(r,a)}return i.f7proxy=t,r.on(e,i,n)}},{key:"off",value:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n}},{key:"emit",value:function(){var e,t,n,r,i=this;if(!i.eventsListeners)return i;for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];"string"==typeof o[0]||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),n=i,r=i.eventsParents):(e=o[0].events,t=o[0].data,n=o[0].context||i,r=o[0].local?[]:o[0].parents||i.eventsParents);var l=Array.isArray(e)?e:e.split(" "),c=l.map((function(e){return e.replace("local::","")})),u=l.filter((function(e){return e.indexOf("local::")<0}));return c.forEach((function(e){if(i.eventsListeners&&i.eventsListeners[e]){var r=[];i.eventsListeners[e].forEach((function(e){r.push(e)})),r.forEach((function(e){e.apply(n,t)}))}})),r&&r.length>0&&r.forEach((function(e){e.emit.apply(e,[u].concat(I()(t)))})),i}}]),e}();function W(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var G=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(W()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];u()(this,r),e=n.call(this,i);var a=C()(e);return a.params=t,a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),e}return T()(r,[{key:"useModuleParams",value:function(e,t){if(e.params){var n={};Object.keys(e.params).forEach((function(e){void 0!==t[e]&&(n[e]=z.extend({},t[e]))})),z.extend(t,e.params),Object.keys(n).forEach((function(e){z.extend(t[e],n[e])}))}}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n];r.params&&z.extend(e,r.params)}))}},{key:"useModule",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;if(n.modules){var r="string"==typeof e?n.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach((function(e){var t=r.instance[e];n[e]="function"==typeof t?t.bind(n):t})),r.on&&n.on&&Object.keys(r.on).forEach((function(e){n.on(e,r.on[e])})),r.vnode&&(n.vnodeHooks||(n.vnodeHooks={}),Object.keys(r.vnode).forEach((function(e){Object.keys(r.vnode[e]).forEach((function(t){var i=r.vnode[e][t];n.vnodeHooks[t]||(n.vnodeHooks[t]={}),n.vnodeHooks[t][e]||(n.vnodeHooks[t][e]=[]),n.vnodeHooks[t][e].push(i.bind(n))}))}))),r.create&&r.create.bind(n)(t))}}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=e[n]||{};t.useModule(n,r)}))}}],[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var n=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat(z.now());if(t.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach((function(n){t.prototype[n]=e.proto[n]})),e.static&&Object.keys(e.static).forEach((function(n){t[n]=e.static[n]})),e.install){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.install.apply(t,i)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.installModule.apply(t,[e].concat(r))}},{key:"components",set:function(e){this.use&&this.use(e)}}]),r}(q),K=n(34),J=n.n(K),X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSelector,n=e.constructor,r=e.domProp,i=e.app,a=e.addMethods,o={create:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i?J()(n,[i].concat(t)):J()(n,t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;if(e instanceof n)return e;var i=k(e);return 0!==i.length?i[0][r]:void 0},destroy:function(e){var t=o.get(e);if(t&&t.destroy)return t.destroy()}};return a&&Array.isArray(a)&&a.forEach((function(e){o[e]=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=o.get(n),i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(r&&r[e])return r[e].apply(r,a)}})),o},Q=n(11),Z=n.n(Q);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){Z()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSelector,n=e.constructor,r=e.app,i=z.extend(X({defaultSelector:t,constructor:n,app:r,domProp:"f7Modal"}),{open:function(e,t,i){var a=k(e);if(a.length>1&&i){var o=k(i).parents(".page");o.length&&a.each((function(e,t){var n=k(t);n.parents(o)[0]===o[0]&&(a=n)}))}if(a.length>1&&(a=a.eq(a.length-1)),a.length){var s=a[0].f7Modal;if(!s){var l=a.dataset();s=new n(r,te({el:a},l))}return s.open(t)}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,o=k(e);if(o.length){if(o.length>1){var s;if(a){var l=k(a);l.length&&(s=l.parents(o))}o=s&&s.length>0?s:o.eq(o.length-1)}var c=o[0].f7Modal;if(!c){var u=o.dataset();c=new n(r,te({el:o},u))}return c.close(i)}}});return i},re=[];var ie=function(e){var t=this;return new Promise((function(n,r){var i,a,o,s=t.instance;if(e){if("string"==typeof e){var l=e.match(/([a-z0-9-]*)/i);if(e.indexOf(".")<0&&l&&l[0].length===e.length){if(!s||s&&!s.params.lazyModulesPath)return void r(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));i="".concat(s.params.lazyModulesPath,"/").concat(e,".js")}else i=e}else"function"==typeof e?o=e:a=e;if(o){var c=o(t,!1);if(!c)return void r(new Error("Framework7: Can't find Framework7 component in specified component function"));if(t.prototype.modules&&t.prototype.modules[c.name])return void n();f(c),n()}if(a){var u=a;if(!u)return void r(new Error("Framework7: Can't find Framework7 component in specified component"));if(t.prototype.modules&&t.prototype.modules[u.name])return void n();f(u),n()}if(i){if(re.indexOf(i)>=0)return void n();re.push(i);var h=new Promise((function(e,n){t.request.get(i,(function(r){var a=z.id(),o="f7_component_loader_callback_".concat(a),s=d.a.createElement("script");s.innerHTML="window.".concat(o," = function (Framework7, Framework7AutoInstallComponent) {return ").concat(r.trim(),"}"),k("head").append(s);var l=d.b[o];delete d.b[o],k(s).remove();var c=l(t,!1);c?(t.prototype.modules&&t.prototype.modules[c.name]||f(c),e()):n(new Error("Framework7: Can't find Framework7 component in ".concat(i," file")))}),(function(e,t){n(e,t)}))})),p=new Promise((function(e){t.request.get(i.replace(".js",s.rtl?".rtl.css":".css"),(function(t){var n=d.a.createElement("style");n.innerHTML=t,k("head").append(n),e()}),(function(){e()}))}));Promise.all([h,p]).then((function(){n()})).catch((function(e){r(e)}))}}else r(new Error("Framework7: Lazy module must be specified"));function f(e){t.use(e),s&&(s.useModuleParams(e,s.params),s.useModule(e))}}))};function ae(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var oe=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(ae()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t;if(u()(this,r),t=n.call(this,e),r.instance)throw new Error("Framework7 is already initialized and can't be initialized more than once");var i=z.extend({},e),a=C()(t);r.instance=a;var o={version:"1.0.0",id:"io.framework7.testapp",root:"body",theme:"auto",language:d.b.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkTheme:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0};a.useModulesParams(o),a.params=z.extend(o,e);var s=k(a.params.root);z.extend(a,{id:a.params.id,name:a.params.name,version:a.params.version,routes:a.params.routes,language:a.params.language,root:s,rtl:"rtl"===s.css("direction"),theme:"auto"===a.params.theme?V.a.ios?"ios":V.a.desktop&&V.a.electron?"aurora":"md":a.params.theme,passedParams:i,online:d.b.navigator.onLine}),a.root&&a.root[0]&&(a.root[0].f7=a),a.useModules(),a.initData();var l="(prefers-color-scheme: dark)",c="(prefers-color-scheme: light)";return a.mq={},d.b.matchMedia&&(a.mq.dark=d.b.matchMedia(l),a.mq.light=d.b.matchMedia(c)),a.colorSchemeListener=function(e){var t=e.matches,n=e.media;if(t){var r=d.a.querySelector("html");n===l?(r.classList.add("theme-dark"),a.darkTheme=!0,a.emit("darkThemeChange",!0)):n===c&&(r.classList.remove("theme-dark"),a.darkTheme=!1,a.emit("darkThemeChange",!1))}},a.params.init&&(V.a.cordova&&a.params.initOnDeviceReady?k(d.a).on("deviceready",(function(){a.init()})):a.init()),L()(t,a)}return T()(r,[{key:"initData",value:function(){var e=this;e.data={},e.params.data&&"function"==typeof e.params.data?z.extend(e.data,e.params.data.bind(e)()):e.params.data&&z.extend(e.data,e.params.data),e.methods={},e.params.methods&&Object.keys(e.params.methods).forEach((function(t){"function"==typeof e.params.methods[t]?e.methods[t]=e.params.methods[t].bind(e):e.methods[t]=e.params.methods[t]}))}},{key:"enableAutoDarkTheme",value:function(){if(d.b.matchMedia){var e=this,t=d.a.querySelector("html");e.mq.dark&&e.mq.light&&(e.mq.dark.addListener(e.colorSchemeListener),e.mq.light.addListener(e.colorSchemeListener)),e.mq.dark&&e.mq.dark.matches?(t.classList.add("theme-dark"),e.darkTheme=!0,e.emit("darkThemeChange",!0)):e.mq.light&&e.mq.light.matches&&(t.classList.remove("theme-dark"),e.darkTheme=!1,e.emit("darkThemeChange",!1))}}},{key:"disableAutoDarkTheme",value:function(){if(d.b.matchMedia){this.mq.dark&&this.mq.dark.removeListener(this.colorSchemeListener),this.mq.light&&this.mq.light.removeListener(this.colorSchemeListener)}}},{key:"initAppComponent",value:function(e){var t=this;t.router.componentLoader(t.params.component,t.params.componentUrl,{componentOptions:{el:t.root[0],root:!0}},(function(n){t.root=k(n),t.root[0].f7=t,t.rootComponent=n.f7Component,e&&e()}),(function(){}))}},{key:"_init",value:function(){var e=this;return e.initialized||(e.root.addClass("framework7-initializing"),e.rtl&&k("html").attr("dir","rtl"),e.params.autoDarkTheme&&e.enableAutoDarkTheme(),d.b.addEventListener("offline",(function(){e.online=!1,e.emit("offline"),e.emit("connection",!1)})),d.b.addEventListener("online",(function(){e.online=!0,e.emit("online"),e.emit("connection",!0)})),e.root.addClass("framework7-root"),k("html").removeClass("ios md aurora").addClass(e.theme),e.params.iosTranslucentBars&&"ios"===e.theme&&V.a.ios&&k("html").addClass("ios-translucent-bars"),e.params.iosTranslucentModals&&"ios"===e.theme&&V.a.ios&&k("html").addClass("ios-translucent-modals"),z.nextFrame((function(){e.root.removeClass("framework7-initializing")})),e.initialized=!0,e.emit("init")),e}},{key:"init",value:function(){var e=this;e.params.component||e.params.componentUrl?e.initAppComponent((function(){e._init()})):e._init()}},{key:"loadModule",value:function(){return r.loadModule.apply(r,arguments)}},{key:"loadModules",value:function(){return r.loadModules.apply(r,arguments)}},{key:"getVnodeHooks",value:function(e,t){return this.vnodeHooks&&this.vnodeHooks[e]&&this.vnodeHooks[e][t]||[]}},{key:"$",get:function(){return k}},{key:"t7",get:function(){return l.a}}],[{key:"Dom7",get:function(){return k}},{key:"$",get:function(){return k}},{key:"Template7",get:function(){return l.a}},{key:"Class",get:function(){return G}},{key:"Events",get:function(){return q}}]),r}(G);oe.ModalMethods=ne,oe.ConstructorMethods=X,oe.loadModule=ie,oe.loadModules=function(e){return Promise.all(e.map((function(e){return oe.loadModule(e)})))};var se=oe,le={},ce=0;function ue(e){var t=z.extend({},le);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach((function(e){delete t[e]}));var n=z.extend({url:d.b.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},t),r=z.extend({},n,e);function i(e){for(var t,n,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return le[e]&&(t=le[e].apply(le,a)),r[e]&&(n=r[e].apply(r,a)),"boolean"!=typeof t&&(t=!0),"boolean"!=typeof n&&(n=!0),t&&n}if(!1!==i("beforeCreate",r)){r.type&&(r.method=r.type);var a,o=r.url.indexOf("?")>=0?"&":"?",s=r.method.toUpperCase();if(("GET"===s||"HEAD"===s||"OPTIONS"===s||"DELETE"===s)&&r.data)(a="string"==typeof r.data?r.data.indexOf("?")>=0?r.data.split("?")[1]:r.data:z.serializeObject(r.data)).length&&(r.url+=o+a,"?"===o&&(o="&"));if("json"===r.dataType&&r.url.indexOf("callback=")>=0){var l,c="f7jsonp_".concat(Date.now()+(ce+=1)),u=r.url.split("callback="),h="".concat(u[0],"callback=").concat(c);if(u[1].indexOf("&")>=0){var p=u[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");p.length>0&&(h+="&".concat(p))}var f=d.a.createElement("script");return f.type="text/javascript",f.onerror=function(){clearTimeout(l),i("error",null,"scripterror","scripterror"),i("complete",null,"scripterror")},f.src=h,d.b[c]=function(e){clearTimeout(l),i("success",e),f.parentNode.removeChild(f),f=null,delete d.b[c]},d.a.querySelector("head").appendChild(f),void(r.timeout>0&&(l=setTimeout((function(){f.parentNode.removeChild(f),f=null,i("error",null,"timeout","timeout")}),r.timeout)))}"GET"!==s&&"HEAD"!==s&&"OPTIONS"!==s&&"DELETE"!==s||!1===r.cache&&(r.url+="".concat(o,"_nocache").concat(Date.now()));var m=new XMLHttpRequest;if(m.requestUrl=r.url,m.requestParameters=r,!1===i("beforeOpen",m,r))return m;m.open(s,r.url,r.async,r.user,r.password);var v=null;if(("POST"===s||"PUT"===s||"PATCH"===s)&&r.data)if(r.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(r.data.constructor)>=0)v=r.data;else{var g="---------------------------".concat(Date.now().toString(16));"multipart/form-data"===r.contentType?m.setRequestHeader("Content-Type","multipart/form-data; boundary=".concat(g)):m.setRequestHeader("Content-Type",r.contentType),v="";var y=z.serializeObject(r.data);if("multipart/form-data"===r.contentType){y=y.split("&");for(var b=[],_=0;_<y.length;_+=1)b.push('Content-Disposition: form-data; name="'.concat(y[_].split("=")[0],'"\r\n\r\n').concat(y[_].split("=")[1],"\r\n"));v="--".concat(g,"\r\n").concat(b.join("--".concat(g,"\r\n")),"--").concat(g,"--\r\n")}else v="application/json"===r.contentType?JSON.stringify(r.data):y}else v=r.data,m.setRequestHeader("Content-Type",r.contentType);return"json"!==r.dataType||r.headers&&r.headers.Accept||m.setRequestHeader("Accept","application/json"),r.headers&&Object.keys(r.headers).forEach((function(e){void 0!==r.headers[e]&&m.setRequestHeader(e,r.headers[e])})),void 0===r.crossDomain&&(r.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(r.url)&&RegExp.$2!==d.b.location.host),r.crossDomain||m.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.xhrFields&&z.extend(m,r.xhrFields),m.onload=function(){var e;if(m.status>=200&&m.status<300||0===m.status)if("json"===r.dataType){var t;try{e=JSON.parse(m.responseText)}catch(e){t=!0}t?i("error",m,"parseerror","parseerror"):i("success",e,m.status,m)}else i("success",e="text"===m.responseType||""===m.responseType?m.responseText:m.response,m.status,m);else i("error",m,m.status,m.statusText);r.statusCode&&(le.statusCode&&le.statusCode[m.status]&&le.statusCode[m.status](m),r.statusCode[m.status]&&r.statusCode[m.status](m)),i("complete",m,m.status)},m.onerror=function(){i("error",m,m.status,m.status),i("complete",m,"error")},r.timeout>0&&(m.timeout=r.timeout,m.ontimeout=function(){i("error",m,"timeout","timeout"),i("complete",m,"timeout")}),!1===i("beforeSend",m,r)?m:(m.send(v),m)}}function de(e){for(var t=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];"function"==typeof l[1]?(n=l[0],i=l[1],a=l[2],o=l[3]):(n=l[0],r=l[1],i=l[2],a=l[3],o=l[4]),[i,a].forEach((function(e){"string"==typeof e&&(o=e,e===i?i=void 0:a=void 0)}));var u={url:n,method:"post"===e||"postJSON"===e?"POST":"GET",data:r,success:i,error:a,dataType:o=o||("json"===e||"postJSON"===e?"json":void 0)};return"postJSON"===e&&z.extend(u,{contentType:"application/json",processData:!1,crossDomain:!0,data:"string"==typeof r?r:JSON.stringify(r)}),ue(u)}function he(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],a=n[1],o=n[2];return new Promise((function(t,n){de(e,i,a,(function(e,n,r){t({data:e,status:n,xhr:r})}),(function(e,t,r){n({xhr:e,status:t,message:r})}),o)}))}Object.assign(ue,{get:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return de.apply(void 0,["get"].concat(t))},post:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return de.apply(void 0,["post"].concat(t))},json:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return de.apply(void 0,["json"].concat(t))},getJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return de.apply(void 0,["json"].concat(t))},postJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return de.apply(void 0,["postJSON"].concat(t))}}),ue.promise=function(e){return new Promise((function(t,n){ue(Object.assign(e,{success:function(e,n,r){t({data:e,status:n,xhr:r})},error:function(e,t,r){n({xhr:e,status:t,message:r})}}))}))},Object.assign(ue.promise,{get:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return he.apply(void 0,["get"].concat(t))},post:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return he.apply(void 0,["post"].concat(t))},json:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return he.apply(void 0,["json"].concat(t))},getJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return he.apply(void 0,["json"].concat(t))},postJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return he.apply(void 0,["postJSON"].concat(t))}}),ue.setup=function(e){e.type&&!e.method&&z.extend(e,{method:e.type}),z.extend(le,e)};var pe=ue,fe=n(15),me={name:"device",proto:{device:V.a},static:{device:V.a},on:{init:function(){var e=[],t=d.a.querySelector("html"),n=d.a.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');t&&(V.a.standalone&&V.a.ios&&n&&"black-translucent"===n.content&&e.push("device-full-viewport"),e.push("device-pixel-ratio-".concat(Math.floor(V.a.pixelRatio))),V.a.os&&!V.a.desktop?e.push("device-".concat(V.a.os)):V.a.desktop&&(e.push("device-desktop"),V.a.os&&e.push("device-".concat(V.a.os))),(V.a.cordova||V.a.phonegap)&&e.push("device-cordova"),e.forEach((function(e){t.classList.add(e)})))}}},ve={name:"support",proto:{support:fe.a},static:{support:fe.a}},ge={name:"utils",proto:{utils:z},static:{utils:z}},ye={name:"resize",instance:{getSize:function(){if(!this.root[0])return{width:0,height:0,left:0,top:0};var e=this.root.offset(),t=[this.root[0].offsetWidth,this.root[0].offsetHeight,e.left,e.top],n=t[0],r=t[1],i=t[2],a=t[3];return this.width=n,this.height=r,this.left=i,this.top=a,{width:n,height:r,left:i,top:a}}},on:{init:function(){var e=this;e.getSize(),d.b.addEventListener("resize",(function(){e.emit("resize")}),!1),d.b.addEventListener("orientationchange",(function(){e.emit("orientationchange")}))},orientationchange:function(){this.device.ipad&&(d.a.body.scrollLeft=0,setTimeout((function(){d.a.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}},be={name:"request",proto:{request:pe},static:{request:pe}};var _e={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,auroraTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content, .list.accordion-list .accordion-item-toggle"}},instance:{touchEvents:{start:fe.a.touch?"touchstart":fe.a.pointerEvents?"pointerdown":"mousedown",move:fe.a.touch?"touchmove":fe.a.pointerEvents?"pointermove":"mousemove",end:fe.a.touch?"touchend":fe.a.pointerEvents?"pointerup":"mouseup"}},on:{init:function(){var e,t,n,r,i,a,o,s,l,c,u,h,p=this,f=p.params.touch,m=f["".concat(p.theme,"TouchRipple")];function v(e){var t,n=k(e),r=n.parents(f.activeStateElements);if(n.closest(".no-active-state").length)return null;if(n.is(f.activeStateElements)&&(t=n),r.length>0&&(t=t?t.add(r):r),t&&t.length>1){for(var i,a=[],o=0;o<t.length;o+=1)i||(a.push(t[o]),(t.eq(o).hasClass("prevent-active-state-propagation")||t.eq(o).hasClass("no-active-state-propagation"))&&(i=!0));t=k(a)}return t||n}function g(e){return e.parents(".page-content").length>0}function y(){s&&s.addClass("active-state")}function b(){s&&(s.removeClass("active-state"),s=null)}function _(e,t,n){e&&(c=p.touchRipple.create(e,t,n))}function w(){c&&(c.remove(),c=void 0,u=void 0)}function E(n){(u=function(e){var t=f.touchRippleElements,n=k(e);if(n.is(t))return!n.hasClass("no-ripple")&&n;if(n.parents(t).length>0){var r=n.parents(t).eq(0);return!r.hasClass("no-ripple")&&r}return!1}(n))&&0!==u.length?g(u)?(clearTimeout(h),h=setTimeout((function(){w(),_(u,e,t)}),80)):(w(),_(u,e,t)):u=void 0}function T(){clearTimeout(h),w()}function S(){c||!u||r?w():(clearTimeout(h),_(u,e,t),setTimeout(w,0))}function C(){k(".active-state").removeClass("active-state"),m&&S()}function x(e,t){p.emit({events:e,data:[t]})}function M(e){x("touchstart touchstart:active",e)}function $(e){x("touchmove touchmove:active",e)}function L(e){x("touchend touchend:active",e)}function P(e){x("touchstart:passive",e)}function O(e){x("touchmove:passive",e)}function D(e){x("touchend:passive",e)}function I(e){x("".concat(e.type," ").concat(e.type,":active"),e)}function A(e){x("".concat(e.type,":passive"),e)}V.a.ios&&V.a.webView&&d.b.addEventListener("touchstart",(function(){}));var N=!!fe.a.passiveListener&&{passive:!0},R=!fe.a.passiveListener||{passive:!0,capture:!0},Y=!!fe.a.passiveListener&&{passive:!1},B=!fe.a.passiveListener||{passive:!1,capture:!0};d.a.addEventListener("click",(function(e){x("click",e)}),!0),fe.a.passiveListener?(d.a.addEventListener(p.touchEvents.start,M,B),d.a.addEventListener(p.touchEvents.move,$,Y),d.a.addEventListener(p.touchEvents.end,L,Y),d.a.addEventListener(p.touchEvents.start,P,R),d.a.addEventListener(p.touchEvents.move,O,N),d.a.addEventListener(p.touchEvents.end,D,N),fe.a.touch&&fe.a.gestures&&(d.a.addEventListener("gesturestart",I,Y),d.a.addEventListener("gesturechange",I,Y),d.a.addEventListener("gestureend",I,Y),d.a.addEventListener("gesturestart",A,N),d.a.addEventListener("gesturechange",A,N),d.a.addEventListener("gestureend",A,N))):(d.a.addEventListener(p.touchEvents.start,(function(e){M(e),P(e)}),!0),d.a.addEventListener(p.touchEvents.move,(function(e){$(e),O(e)}),!1),d.a.addEventListener(p.touchEvents.end,(function(e){L(e),D(e)}),!1),fe.a.touch&&fe.a.gestures&&(d.a.addEventListener("gesturestart",(function(e){I(e),A(e)}),!1),d.a.addEventListener("gesturechange",(function(e){I(e),A(e)}),!1),d.a.addEventListener("gestureend",(function(e){I(e),A(e)}),!1))),fe.a.touch?(p.on("click",(function(e){var t=e&&e.detail&&"f7Overswipe"===e.detail,r=o;return n&&e.target!==n&&(r=!t),f.tapHold&&f.tapHoldPreventClicks&&i&&(r=!0),r&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()),f.tapHold&&(a=setTimeout((function(){i=!1}),V.a.ios||V.a.androidChrome?100:400)),o=!1,n=null,!r})),p.on("touchstart",(function(c){return r=!1,i=!1,o=!1,c.targetTouches.length>1?(s&&b(),!0):(c.touches.length>1&&s&&b(),f.tapHold&&(a&&clearTimeout(a),a=setTimeout((function(){c&&c.touches&&c.touches.length>1||(i=!0,c.preventDefault(),o=!0,k(c.target).trigger("taphold",c),p.emit("taphold",c))}),f.tapHoldDelay)),n=c.target,e=c.targetTouches[0].pageX,t=c.targetTouches[0].pageY,f.activeState&&((s=v(n))&&!g(s)?y():s&&(l=setTimeout(y,80))),m&&E(n),!0)})),p.on("touchmove",(function(n){var i,s;if("touchmove"===n.type&&(i=n.targetTouches[0],s=f.touchClicksDistanceThreshold),s&&i){var c=i.pageX,u=i.pageY;(Math.abs(c-e)>s||Math.abs(u-t)>s)&&(r=!0)}else r=!0;r&&(o=!0,f.tapHold&&clearTimeout(a),f.activeState&&(clearTimeout(l),b()),m&&T())})),p.on("touchend",(function(e){return clearTimeout(l),clearTimeout(a),d.a.activeElement===e.target?(f.activeState&&b(),m&&S(),!0):(f.activeState&&(y(),setTimeout(b,0)),m&&S(),!(f.tapHoldPreventClicks&&i||o)||(e.cancelable&&e.preventDefault(),o=!0,!1))})),d.a.addEventListener("touchcancel",(function(){n=null,clearTimeout(l),clearTimeout(a),f.activeState&&b(),m&&S()}),{passive:!0})):f.activeState&&(p.on("touchstart",(function(n){var r=v(n.target);r&&(r.addClass("active-state"),"which"in n&&3===n.which&&setTimeout((function(){k(".active-state").removeClass("active-state")}),0)),m&&(e=n.pageX,t=n.pageY,E(n.target,n.pageX,n.pageY))})),p.on("touchmove",(function(){f.activeStateOnMouseMove||k(".active-state").removeClass("active-state"),m&&T()})),p.on("touchend",C),d.a.addEventListener("pointercancel",C,{passive:!0})),d.a.addEventListener("contextmenu",(function(e){f.disableContextMenu&&(V.a.ios||V.a.android||V.a.cordova)&&e.preventDefault(),m&&(s&&b(),S())}))}}};function we(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--i){s++;break}}else if("("===e[s]&&(i++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);a+=e[s++]}else a+=e[s++]+e[s++];if(i)throw new TypeError("Unbalanced pattern at "+n);if(!a)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var o="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^"+Ee(t.delimiter||"/#?")+"]+?",o=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],i=r.type,a=r.index;throw new TypeError("Unexpected "+i+" at "+a+", expected "+e)},h=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var p=u("CHAR"),f=u("NAME"),m=u("PATTERN");if(f||m){var v=p||"";-1===i.indexOf(v)&&(c+=v,v=""),c&&(o.push(c),c=""),o.push({name:f||s++,prefix:v,suffix:"",pattern:m||a,modifier:u("MODIFIER")||""})}else{var g=p||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(o.push(c),c=""),u("OPEN")){v=h();var y=u("NAME")||"",b=u("PATTERN")||"",_=h();d("CLOSE"),o.push({name:y||(b?s++:""),pattern:y&&!b?a:b,prefix:v,suffix:_,modifier:u("MODIFIER")||""})}else d("END")}}return o}function ke(e,t){return function(e,t){void 0===t&&(t={});var n=Te(t),r=t.encode,i=void 0===r?function(e){return e}:r,a=t.validate,o=void 0===a||a,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var a=e[r];if("string"!=typeof a){var l=t?t[a.name]:void 0,c="?"===a.modifier||"*"===a.modifier,u="*"===a.modifier||"+"===a.modifier;if(Array.isArray(l)){if(!u)throw new TypeError('Expected "'+a.name+'" to not repeat, but got an array');if(0===l.length){if(c)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var d=0;d<l.length;d++){var h=i(l[d],a);if(o&&!s[r].test(h))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but got "'+h+'"');n+=a.prefix+h+a.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!c){var p=u?"an array":"a string";throw new TypeError('Expected "'+a.name+'" to be '+p)}}else{h=i(String(l),a);if(o&&!s[r].test(h))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but got "'+h+'"');n+=a.prefix+h+a.suffix}}else n+=a}return n}}(we(e,t),t)}function Ee(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Te(e){return e&&e.sensitive?"":"i"}function Se(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,a=n.start,o=void 0===a||a,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d="["+Ee(n.endsWith||"")+"]|$",h="["+Ee(n.delimiter||"/#?")+"]",p=o?"^":"",f=0,m=e;f<m.length;f++){var v=m[f];if("string"==typeof v)p+=Ee(u(v));else{var g=Ee(u(v.prefix)),y=Ee(u(v.suffix));if(v.pattern)if(t&&t.push(v),g||y)if("+"===v.modifier||"*"===v.modifier){var b="*"===v.modifier?"?":"";p+="(?:"+g+"((?:"+v.pattern+")(?:"+y+g+"(?:"+v.pattern+"))*)"+y+")"+b}else p+="(?:"+g+"("+v.pattern+")"+y+")"+v.modifier;else p+="("+v.pattern+")"+v.modifier;else p+="(?:"+g+y+")"+v.modifier}}if(l)i||(p+=h+"?"),p+=n.endsWith?"(?="+d+")":"$";else{var _=e[e.length-1],w="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;i||(p+="(?:"+h+"(?="+d+"))?"),w||(p+="(?="+h+"|"+d+")")}return new RegExp(p,Te(n))}(we(e,n),t,n)}function Ce(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return Ce(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",Te(n))}(e,t,n):Se(e,t,n)}var xe={queue:[],clearQueue:function(){0!==xe.queue.length&&xe.queue.shift()()},routerQueue:[],clearRouterQueue:function(){if(0!==xe.routerQueue.length){var e=xe.routerQueue.pop(),t=e.router,n=e.stateUrl,r=e.action,i=t.params.animate;!1===t.params.pushStateAnimate&&(i=!1),"back"===r&&t.back({animate:i,pushState:!1}),"load"===r&&t.navigate(n,{animate:i,pushState:!1})}},handle:function(e){if(!xe.blockPopstate){var t=e.state;xe.previousState=xe.state,xe.state=t,xe.allowChange=!0,xe.clearQueue(),(t=xe.state)||(t={}),this.views.forEach((function(e){var n=e.router,r=t[e.id];if(!r&&e.params.pushState&&(r={url:e.router.history[0]}),r){var i=r.url||void 0,a=n.params.animate;!1===n.params.pushStateAnimate&&(a=!1),i!==n.url&&(n.history.indexOf(i)>=0?n.allowPageChange?n.back({animate:a,pushState:!1}):xe.routerQueue.push({action:"back",router:n}):n.allowPageChange?n.navigate(i,{animate:a,pushState:!1}):xe.routerQueue.unshift({action:"load",stateUrl:i,router:n}))}}))}},initViewState:function(e,t){var n=z.extend({},xe.state||{},Z()({},e,t));xe.state=n,d.b.history.replaceState(n,"")},push:function(e,t,n){if(xe.allowChange){xe.previousState=xe.state;var r=z.extend({},xe.previousState||{},Z()({},e,t));xe.state=r,d.b.history.pushState(r,"",n)}else xe.queue.push((function(){xe.push(e,t,n)}))},replace:function(e,t,n){if(xe.allowChange){xe.previousState=xe.state;var r=z.extend({},xe.previousState||{},Z()({},e,t));xe.state=r,d.b.history.replaceState(r,"",n)}else xe.queue.push((function(){xe.replace(e,t,n)}))},go:function(e){xe.allowChange=!1,d.b.history.go(e)},back:function(){xe.allowChange=!1,d.b.history.back()},allowChange:!0,previousState:{},state:d.b.history.state,blockPopstate:!0,init:function(e){k(d.b).on("load",(function(){setTimeout((function(){xe.blockPopstate=!1}),0)})),d.a.readyState&&"complete"===d.a.readyState&&(xe.blockPopstate=!1),k(d.b).on("popstate",xe.handle.bind(e))}},Me=xe;var $e=function(e){var t,n,r,i,a,o,s,l,c,u=e,d=u.$el,h=u.$navbarsEl,p=u.app,f=u.params,m=!1,v=!1,g={},y=[],b=[],_=!0,w=[],E=[],T=f["".concat(p.theme,"SwipeBackAnimateShadow")],S=f["".concat(p.theme,"SwipeBackAnimateOpacity")],C=f["".concat(p.theme,"SwipeBackActiveArea")],x=f["".concat(p.theme,"SwipeBackThreshold")],M=p.rtl?"right center":"left center",$=p.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function L(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.progress,n=e.reset,r=e.transition,i=["overflow","transform","transform-origin","opacity"],a=0;a<l.length;a+=1){var o=l[a];if(o&&o.el){!0===r&&o.el.classList.add("navbar-page-transitioning"),!1===r&&o.el.classList.remove("navbar-page-transitioning"),!o.className||o.classNameSet||n||(o.el.classList.add(o.className),o.classNameSet=!0),o.className&&n&&o.el.classList.remove(o.className);for(var s=0;s<i.length;s+=1){var c=i[s];o[c]&&(n?o.el.style[c]="":"function"==typeof o[c]?o.el.style[c]=o[c](t):o.el.style[c]=o[c])}}}}function P(e){var n=f["".concat(p.theme,"SwipeBack")];!_||!n||m||p.swipeout&&p.swipeout.el||!u.allowPageChange||k(e.target).closest(".range-slider, .calendar-months").length>0||k(e.target).closest(".page-master, .page-master-detail").length>0&&f.masterDetailBreakpoint>0&&p.width>=f.masterDetailBreakpoint||(v=!1,m=!0,t=void 0,g.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,g.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,i=z.now(),a=u.dynamicNavbar)}function O(e){if(m){var i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,c="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===t&&(t=!!(t||Math.abs(c-g.y)>Math.abs(i-g.x))||i<g.x&&!p.rtl||i>g.x&&p.rtl),t||e.f7PreventSwipeBack||p.preventSwipeBack)m=!1;else{if(!v){var _=!1,P=k(e.target),O=P.closest(".swipeout");O.length>0&&(!p.rtl&&O.find(".swipeout-actions-left").length>0&&(_=!0),p.rtl&&O.find(".swipeout-actions-right").length>0&&(_=!0)),((y=P.closest(".page")).hasClass("no-swipeback")||P.closest(".no-swipeback, .card-opened").length>0)&&(_=!0),(b=d.find(".page-previous:not(.stacked)")).length>1&&(b=b.eq(b.length-1));g.x,d.offset().left;if(n=d.width(),(p.rtl?g.x<d.offset().left-d[0].scrollLeft+(n-C):g.x-d.offset().left>C)&&(_=!0),0!==b.length&&0!==y.length||(_=!0),_)return void(m=!1);T&&0===(o=y.find(".page-shadow-effect")).length&&(o=k('<div class="page-shadow-effect"></div>'),y.append(o)),S&&0===(s=b.find(".page-opacity-effect")).length&&(s=k('<div class="page-opacity-effect"></div>'),b.append(s)),a&&(w=h.find(".navbar-current:not(.stacked)"),(E=h.find(".navbar-previous:not(.stacked)")).length>1&&(E=E.eq(E.length-1)),l=function(){var e,t,n=[],r=p.rtl?-1:1,i=w.hasClass("navbar-transparent")&&!w.hasClass("navbar-large")&&!w.hasClass("navbar-transparent-visible"),a=w.hasClass("navbar-large"),o=w.hasClass("navbar-large-collapsed"),s=w.hasClass("navbar-large-transparent")||w.hasClass("navbar-large")&&w.hasClass("navbar-transparent"),l=E.hasClass("navbar-transparent")&&!E.hasClass("navbar-large")&&!E.hasClass("navbar-transparent-visible"),c=E.hasClass("navbar-large"),u=E.hasClass("navbar-large-collapsed"),d=E.hasClass("navbar-large-transparent")||E.hasClass("navbar-large")&&E.hasClass("navbar-transparent"),h=a&&!o,m=c&&!u,v=w.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),g=E.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");return f.iosAnimateNavbarBackIcon&&(e=w.hasClass("sliding")||w.find(".navbar-inner.sliding").length?w.find(".left").find(".back .icon + span").eq(0):w.find(".left.sliding").find(".back .icon + span").eq(0),t=E.hasClass("sliding")||E.find(".navbar-inner.sliding").length?E.find(".left").find(".back .icon + span").eq(0):E.find(".left.sliding").find(".back .icon + span").eq(0),e.length&&g.each((function(t,n){k(n).hasClass("title")&&(n.f7NavbarLeftOffset+=e.prev(".icon")[0].offsetWidth)}))),v.each((function(t,l){var c=k(l),u=c.hasClass("subnavbar"),d=c.hasClass("left"),p=c.hasClass("title"),v=c.hasClass("navbar-bg");if((!p&&!v||!i)&&(h||!c.hasClass(".title-large"))){var g={el:l};if(h){if(p)return;if(c.hasClass("title-large"))return n.indexOf(g)<0&&n.push(g),g.overflow="visible",void c.find(".title-large-text").each((function(e,t){n.push({el:t,transform:function(e){return"translateX(".concat(100*e*r,"%)")}})}))}if(m&&(h||c.hasClass("title-large")&&(n.indexOf(g)<0&&n.push(g),g.opacity=0),d))return n.indexOf(g)<0&&n.push(g),g.opacity=function(e){return 1-Math.pow(e,.33)},void c.find(".back span").each((function(e,t){n.push({el:t,"transform-origin":M,transform:function(e){return"translateX(calc(".concat(e," * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(").concat(e," * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(").concat(1+1*e,")")}})}));if(v)return n.indexOf(g)<0&&n.push(g),h||m||(o?(s&&(g.className="ios-swipeback-navbar-bg-large"),g.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))")}):g.transform=function(e){return"translateX(".concat(100*e*r,"%)")}),!h&&m&&(g.className="ios-swipeback-navbar-bg-large",g.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-1 * ").concat(1-e," * var(--f7-navbar-large-title-height)))")}),h&&m&&(g.transform=function(e){return"translateX(".concat(100*e*r,"%)")}),void(h&&!m&&(g.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-").concat(e," * var(--f7-navbar-large-title-height)))")}));if(!c.hasClass("title-large")){var y=c.hasClass("sliding")||c.parents(".navbar-inner.sliding").length;if(n.indexOf(g)<0&&n.push(g),(!u||u&&!y)&&(g.opacity=function(e){return 1-Math.pow(e,.33)}),y){var b=g;if(d&&e.length&&f.iosAnimateNavbarBackIcon){var _={el:e[0]};b=_,n.push(_)}b.transform=function(e){var t=e*b.el.f7NavbarRightOffset;return 1===V.a.pixelRatio&&(t=Math.round(t)),"translate3d(".concat(t,u&&a?"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"px,0,0)")}}}}})),g.each((function(e,i){var a=k(i),o=a.hasClass("subnavbar"),s=a.hasClass("left"),p=a.hasClass("title"),v=a.hasClass("navbar-bg");if(!p&&!v||!l){var g={el:i};if(m){if(p)return;if(n.indexOf(g)<0&&n.push(g),a.hasClass("title-large"))return g.opacity=1,g.overflow="visible",void a.find(".title-large-text").each((function(e,t){n.push({el:t,"transform-origin":$,opacity:function(e){return Math.pow(e,3)},transform:function(e){return"translateX(calc(".concat(1-e," * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(").concat(e-1," * var(--f7-navbar-large-title-height) + ").concat(1-e," * var(--f7-navbar-large-title-padding-vertical))) scale(").concat(.5+.5*e,")")}})}))}if(v)return n.indexOf(g)<0&&n.push(g),h||m||(u?(d&&(g.className="ios-swipeback-navbar-bg-large"),g.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))")}):g.transform=function(e){return"translateX(".concat((100*e-100)*r,"%)")}),!h&&m&&(g.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-1 * ").concat(1-e," * var(--f7-navbar-large-title-height)))")}),h&&!m&&(g.className="ios-swipeback-navbar-bg-large",g.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-").concat(e," * var(--f7-navbar-large-title-height)))")}),void(h&&m&&(g.transform=function(e){return"translateX(".concat((100*e-100)*r,"%)")}));if(!a.hasClass("title-large")){var y=a.hasClass("sliding")||E.children(".navbar-inner.sliding").length;if(n.indexOf(g)<0&&n.push(g),(!o||o&&!y)&&(g.opacity=function(e){return Math.pow(e,3)}),y){var b=g;if(s&&t.length&&f.iosAnimateNavbarBackIcon){var _={el:t[0]};b=_,n.push(_)}b.transform=function(e){var t=b.el.f7NavbarLeftOffset*(1-e);return 1===V.a.pixelRatio&&(t=Math.round(t)),"translate3d(".concat(t,o&&c?"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"px,0,0)")}}}}})),n}()),k(".sheet.modal-in").length>0&&p.sheet&&p.sheet.close(k(".sheet.modal-in"))}e.f7PreventSwipePanel=!0,v=!0,p.preventSwipePanelBySwipeBack=!0,e.preventDefault();var D=p.rtl?-1:1;(r=(i-g.x-x)*D)<0&&(r=0);var I=Math.min(Math.max(r/n,0),1),A={percentage:I,progress:I,currentPageEl:y[0],previousPageEl:b[0],currentNavbarEl:w[0],previousNavbarEl:E[0]};d.trigger("swipeback:move",A),u.emit("swipebackMove",A);var N=r*D,R=(r/5-n/5)*D;p.rtl?(N=Math.max(N,-n),R=Math.max(R,0)):(N=Math.min(N,n),R=Math.min(R,0)),1===V.a.pixelRatio&&(N=Math.round(N),R=Math.round(R)),u.swipeBackActive=!0,k([y[0],b[0]]).addClass("page-swipeback-active"),y.transform("translate3d(".concat(N,"px,0,0)")),T&&(o[0].style.opacity=1-1*I),"ios"===p.theme&&b.transform("translate3d(".concat(R,"px,0,0)")),S&&(s[0].style.opacity=1-1*I),a&&L({progress:I})}}}function D(){if(p.preventSwipePanelBySwipeBack=!1,!m||!v)return m=!1,void(v=!1);if(m=!1,v=!1,u.swipeBackActive=!1,k([y[0],b[0]]).removeClass("page-swipeback-active"),0===r)return k([y[0],b[0]]).transform(""),o&&o.length>0&&o.remove(),s&&s.length>0&&s.remove(),void(a&&L({reset:!0}));var e=z.now()-i,t=!1;(e<300&&r>10||e>=300&&r>n/2)&&(y.removeClass("page-current").addClass("page-next".concat("ios"!==p.theme?" page-next-on-right":"")),b.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),o&&(o[0].style.opacity=""),s&&(s[0].style.opacity=""),a&&(u.setNavbarPosition(w,"next"),u.setNavbarPosition(E,"current",!1)),t=!0),k([y[0],b[0]]).addClass("page-transitioning page-transitioning-swipeback").transform(""),a&&L({progress:t?1:0,transition:!0}),_=!1,u.allowPageChange=!1;var l={currentPageEl:y[0],previousPageEl:b[0],currentNavbarEl:w[0],previousNavbarEl:E[0]};t?(u.currentRoute=b[0].f7Page.route,u.currentPage=b[0],u.pageCallback("beforeOut",y,w,"current","next",{route:y[0].f7Page.route,swipeBack:!0}),u.pageCallback("beforeIn",b,E,"previous","current",{route:b[0].f7Page.route,swipeBack:!0},y[0]),d.trigger("swipeback:beforechange",l),u.emit("swipebackBeforeChange",l)):(d.trigger("swipeback:beforereset",l),u.emit("swipebackBeforeReset",l)),y.transitionEnd((function(){k([y[0],b[0]]).removeClass("page-transitioning page-transitioning-swipeback"),a&&L({reset:!0,transition:!1}),_=!0,u.allowPageChange=!0,t?(1===u.history.length&&u.history.unshift(u.url),u.history.pop(),u.saveHistory(),f.pushState&&Me.back(),u.pageCallback("afterOut",y,w,"current","next",{route:y[0].f7Page.route,swipeBack:!0}),u.pageCallback("afterIn",b,E,"previous","current",{route:b[0].f7Page.route,swipeBack:!0}),f.stackPages&&u.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),a&&w.addClass("stacked")):(u.pageCallback("beforeRemove",y,w,"next",{swipeBack:!0}),u.removePage(y),a&&u.removeNavbar(w)),d.trigger("swipeback:afterchange",l),u.emit("swipebackAfterChange",l),u.emit("routeChanged",u.currentRoute,u.previousRoute,u),f.preloadPreviousPage&&u.back(u.history[u.history.length-2],{preload:!0})):(d.trigger("swipeback:afterreset",l),u.emit("swipebackAfterReset",l)),o&&o.length>0&&o.remove(),s&&s.length>0&&s.remove()}))}c=!("touchstart"!==p.touchEvents.start||!fe.a.passiveListener)&&{passive:!0,capture:!1},d.on(p.touchEvents.start,P,c),p.on("touchmove:active",O),p.on("touchend:passive",D),u.on("routerDestroy",(function(){var e=!("touchstart"!==p.touchEvents.start||!fe.a.passiveListener)&&{passive:!0,capture:!1};d.off(p.touchEvents.start,P,e),p.off("touchmove:active",O),p.off("touchend:passive",D)}))},Le=function(e,t,n){var r=this,i=t.route.redirect;if(n.initial&&r.params.pushState&&(n.replaceState=!0,n.history=!0),"function"==typeof i){r.allowPageChange=!1;var a=i.call(r,t,(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.allowPageChange=!0,r[e](t,z.extend({},n,i))}),(function(){r.allowPageChange=!0}));return a&&"string"==typeof a?(r.allowPageChange=!0,r[e](a,n)):r}return r[e](i,n)};function Pe(e,t,n,r,i,a,o){var s=[];Array.isArray(n)?s.push.apply(s,I()(n)):n&&"function"==typeof n&&s.push(n),t&&(Array.isArray(t)?s.push.apply(s,I()(t)):s.push(t)),function t(){0!==s.length?s.shift().call(e,r,i,(function(){t()}),(function(){o()})):a()}()}var Oe=function(e,t,n,r){var i=this;function a(){e&&e.route&&(i.params.routesBeforeEnter||e.route.beforeEnter)?(i.allowPageChange=!1,Pe(i,i.params.routesBeforeEnter,e.route.beforeEnter,e,t,(function(){i.allowPageChange=!0,n()}),(function(){r()}))):n()}t&&t.route&&(i.params.routesBeforeLeave||t.route.beforeLeave)?(i.allowPageChange=!1,Pe(i,i.params.routesBeforeLeave,t.route.beforeLeave,e,t,(function(){i.allowPageChange=!0,a()}),(function(){r()}))):a()},De=function(e,t){if(!e.view)throw new Error("Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.".concat(t,"(...)"))},Ie=function(e,t,n,r){function i(e){e.then((function(e){n({component:e.default||e._default||e})})).catch((function(e){throw r(),new Error(e)}))}if(t instanceof Promise)i(t);else{var a=t.call(e);a instanceof Promise?i(a):n({component:a})}};function Ae(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ne=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Ae()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r),i=n.call(this,{},[void 0===t?e:t]);var a=C()(i);a.isAppRouter=void 0===t,a.isAppRouter?z.extend(!1,a,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):z.extend(!1,a,{app:e,view:t,viewId:t.id,params:t.params,routes:t.routes,$el:t.$el,el:t.el,$navbarsEl:t.$navbarsEl,navbarsEl:t.navbarsEl,history:t.history,scrollHistory:t.scrollHistory,cache:e.cache,dynamicNavbar:"ios"===e.theme&&t.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),a.useModules(),a.tempDom=d.a.createElement("div"),a.allowPageChange=!0;var o={},s={};return Object.defineProperty(a,"currentRoute",{enumerable:!0,configurable:!0,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s=z.extend({},o),(o=e)&&(a.url=o.url,a.emit("routeChange",e,s,a))},get:function(){return o}}),Object.defineProperty(a,"previousRoute",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}}),L()(i,a)}return T()(r,[{key:"animatableNavElements",value:function(e,t,n,r,i){var a,o,s=this.dynamicNavbar,l=this.params.iosAnimateNavbarBackIcon;function c(e,t){var n,r=e.hasClass("sliding")||t.hasClass("sliding"),i=e.hasClass("subnavbar"),a=!r||!i,o=e.find(".back .icon");return r&&l&&e.hasClass("left")&&o.length>0&&o.next("span").length&&(e=o.next("span"),n=!0),{$el:e,isIconLabel:n,leftOffset:e[0].f7NavbarLeftOffset,rightOffset:e[0].f7NavbarRightOffset,isSliding:r,isSubnavbar:i,needsOpacityTransition:a}}return s&&(a=[],o=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(t,o){var s=k(o);s.hasClass("left")&&r&&"forward"===i||s.hasClass("title")&&n||a.push(c(s,e.children(".navbar-inner")))})),t.hasClass("navbar-master")&&this.params.masterDetailBreakpoint>0&&this.app.width>=this.params.masterDetailBreakpoint||t.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(e,a){var s=k(a);s.hasClass("left")&&n&&!r&&"forward"===i||s.hasClass("left")&&n&&"backward"===i||s.hasClass("title")&&r||o.push(c(s,t.children(".navbar-inner")))})),[o,a].forEach((function(e){e.forEach((function(t){var n=t,r=t.isSliding,i=t.$el,s=e===o?a:o;r&&i.hasClass("title")&&s&&s.forEach((function(e){if(e.isIconLabel){var t=e.$el[0];n.leftOffset+=t&&t.offsetLeft||0}}))}))}))),{newNavEls:a,oldNavEls:o}}},{key:"animate",value:function(e,t,n,r,i,a,o){var s=this;if(s.params.animateCustom)s.params.animateCustom.apply(s,[e,t,n,r,i,o]);else{var l=s.dynamicNavbar,c="ios"===s.app.theme;if(a){var u="router-transition-custom router-transition-".concat(a,"-").concat(i);return("forward"===i?t:e).animationEnd((function(){s.$el.removeClass(u),l&&s.$navbarsEl.length&&(r&&s.$navbarsEl.prepend(r),n&&s.$navbarsEl.prepend(n)),o&&o()})),l&&(r&&t&&(s.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),t.prepend(r)),n&&e&&(s.setNavbarPosition(n,""),n.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(n))),void s.$el.addClass(u)}var d,h,p,f,m,v,g="router-transition-".concat(i," router-transition");if(c&&l){s.params.masterDetailBreakpoint>0&&s.app.width>=s.params.masterDetailBreakpoint&&(n.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||n.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(m=n&&n.hasClass("navbar-large"),v=r&&r.hasClass("navbar-large"),p=m&&!n.hasClass("navbar-large-collapsed"),f=v&&!r.hasClass("navbar-large-collapsed"));var y=s.animatableNavElements(r,n,f,p,i);d=y.newNavEls,h=y.oldNavEls}("forward"===i?t:e).animationEnd((function(){s.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),z.nextFrame((function(){r.removeClass("navbar-no-title-large-transition")}))),n&&n.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),n.hasClass("sliding")?n.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):n.find(".sliding").transform("")),s.$el.removeClass(g),o&&o()})),l?(b(0),z.nextFrame((function(){b(1),s.$el.addClass(g)}))):s.$el.addClass(g)}function b(e){c&&l&&(1===e&&(f&&(r.addClass("router-navbar-transition-to-large"),n.addClass("router-navbar-transition-to-large")),p&&(r.addClass("router-navbar-transition-from-large"),n.addClass("router-navbar-transition-from-large"))),d.forEach((function(t){var n=t.$el,r="forward"===i?t.rightOffset:t.leftOffset;t.isSliding&&(t.isSubnavbar&&v?n[0].style.setProperty("transform","translate3d(".concat(r*(1-e),"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)"),"important"):n.transform("translate3d(".concat(r*(1-e),"px,0,0)")))})),h.forEach((function(t){var n=t.$el,r="forward"===i?t.leftOffset:t.rightOffset;t.isSliding&&(t.isSubnavbar&&m?n.transform("translate3d(".concat(r*e,"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)")):n.transform("translate3d(".concat(r*e,"px,0,0)")))})))}}},{key:"removeModal",value:function(e){this.removeEl(e)}},{key:"removeTabContent",value:function(e){k(e).html("")}},{key:"removeNavbar",value:function(e){this.removeEl(e)}},{key:"removePage",value:function(e){var t=k(e),n=t&&t[0]&&t[0].f7Page;n&&n.route&&n.route.route&&n.route.route.keepAlive?t.remove():this.removeEl(e)}},{key:"removeEl",value:function(e){if(e){var t=k(e);0!==t.length&&(t.find(".tab").each((function(e,t){k(t).children().each((function(e,t){t.f7Component&&(k(t).trigger("tab:beforeremove"),t.f7Component.$destroy())}))})),t[0].f7Component&&t[0].f7Component.$destroy&&t[0].f7Component.$destroy(),this.params.removeElements&&(this.params.removeElementsWithTimeout?setTimeout((function(){t.remove()}),this.params.removeElementsTimeout):t.remove()))}}},{key:"getPageEl",value:function(e){if("string"==typeof e)this.tempDom.innerHTML=e;else{if(k(e).hasClass("page"))return e;this.tempDom.innerHTML="",k(this.tempDom).append(e)}return this.findElement(".page",this.tempDom)}},{key:"findElement",value:function(e,t,n){var r=this.view,i=this.app,a=k(t),o=e;n&&(o+=":not(.stacked)");var s=a.find(o).filter((function(e,t){return 0===k(t).parents(".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page").length}));return s.length>1&&("string"==typeof r.selector&&(s=a.find("".concat(r.selector," ").concat(o))),s.length>1&&(s=a.find(".".concat(i.params.viewMainClass," ").concat(o)))),1===s.length?s:(n||(s=this.findElement(o,a,!0)),s&&1===s.length?s:s&&s.length>1?k(s[0]):void 0)}},{key:"flattenRoutes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.routes,t=this,n=[];return e.forEach((function(e){var r=!1;if("tabs"in e&&e.tabs){var i=e.tabs.map((function(t){var n=z.extend({},e,{path:"".concat(e.path,"/").concat(t.path).replace("///","/").replace("//","/"),parentPath:e.path,tab:t});return delete n.tabs,delete n.routes,n}));r=!0,n=n.concat(t.flattenRoutes(i))}if("detailRoutes"in e){var a=e.detailRoutes.map((function(t){var n=z.extend({},t);return n.masterRoute=e,n.masterRoutePath=e.path,n}));n=n.concat(e,t.flattenRoutes(a))}if("routes"in e){var o=e.routes.map((function(t){var n=z.extend({},t);return n.path="".concat(e.path,"/").concat(n.path).replace("///","/").replace("//","/"),n}));n=r?n.concat(t.flattenRoutes(o)):n.concat(e,t.flattenRoutes(o))}"routes"in e||"tabs"in e&&e.tabs||"detailRoutes"in e||n.push(e)})),n}},{key:"parseRouteUrl",value:function(e){if(!e)return{};var t=z.parseUrlQuery(e),n=e.split("#")[1],r=e.split("#")[0].split("?")[0];return{query:t,hash:n,params:{},url:e,path:r}}},{key:"generateUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)return e;var t=e.name,n=e.params,r=e.query;if(!t)throw new Error("Framework7: name parameter is required");var i=this,a=i.findRouteByKey("name",t);if(!a)throw new Error('Framework7: route with name "'.concat(t,'" not found'));var o=i.constructRouteUrl(a,{params:n,query:r});if(!o)throw new Error("Framework7: can't construct URL for route with name \"".concat(t,'"'));return o}},{key:"constructRouteUrl",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.params,i=n.query,a=e.path,o=ke(a);try{t=o(r||{})}catch(e){throw new Error("Framework7: error constructing route URL from passed params:\nRoute: ".concat(a,"\n").concat(e.toString()))}return i&&(t+="?".concat("string"==typeof i?i:z.serializeObject(i))),t}},{key:"findTabRoute",value:function(e){var t,n=k(e),r=this.currentRoute.route.parentPath,i=n.attr("id");return this.flattenRoutes(this.routes).forEach((function(e){e.parentPath===r&&e.tab&&e.tab.id===i&&(t=e)})),t}},{key:"findRouteByKey",value:function(e,t){var n,r=this.routes;return this.flattenRoutes(r).forEach((function(r){n||r[e]===t&&(n=r)})),n}},{key:"findMatchingRoute",value:function(e){if(e){var t,n=this.routes,r=this.flattenRoutes(n),i=this.parseRouteUrl(e),a=i.path,o=i.query,s=i.hash,l=i.params;return r.forEach((function(n){if(!t){var r,i,c=[],u=[n.path];if(n.alias&&("string"==typeof n.alias?u.push(n.alias):Array.isArray(n.alias)&&n.alias.forEach((function(e){u.push(e)}))),u.forEach((function(e){r||(r=Ce(e,c).exec(a))})),r)c.forEach((function(e,t){if("number"!=typeof e.name){var n=r[t+1];l[e.name]=null==n?n:decodeURIComponent(n)}})),n.parentPath&&(i=a.split("/").slice(0,n.parentPath.split("/").length-1).join("/")),t={query:o,hash:s,params:l,url:e,path:a,parentPath:i,route:n,name:n.name}}})),t}}},{key:"replaceRequestUrlParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"string"==typeof n&&n.indexOf("{{")>=0&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&Object.keys(t.route.params).forEach((function(e){var r=new RegExp("{{".concat(e,"}}"),"g");n=n.replace(r,t.route.params[e]||"")})),n}},{key:"removeFromXhrCache",value:function(e){for(var t=this.cache.xhr,n=!1,r=0;r<t.length;r+=1)t[r].url===e&&(n=r);!1!==n&&t.splice(n,1)}},{key:"xhrRequest",value:function(e,t){var n=this,r=n.params,i=t.ignoreCache,a=e,o=a.indexOf("?")>=0;return r.passRouteQueryToRequest&&t&&t.route&&t.route.query&&Object.keys(t.route.query).length&&(a+="".concat(o?"&":"?").concat(z.serializeObject(t.route.query)),o=!0),r.passRouteParamsToRequest&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&(a+="".concat(o?"&":"?").concat(z.serializeObject(t.route.params)),o=!0),a.indexOf("{{")>=0&&(a=n.replaceRequestUrlParams(a,t)),r.xhrCacheIgnoreGetParameters&&a.indexOf("?")>=0&&(a=a.split("?")[0]),new Promise((function(e,o){if(r.xhrCache&&!i&&a.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(a)<0)for(var s=0;s<n.cache.xhr.length;s+=1){var l=n.cache.xhr[s];if(l.url===a&&z.now()-l.time<r.xhrCacheDuration)return void e(l.content)}n.xhr=n.app.request({url:a,method:"GET",beforeSend:function(e){n.emit("routerAjaxStart",e,t)},complete:function(i,s){n.emit("routerAjaxComplete",i),"error"!==s&&"timeout"!==s&&i.status>=200&&i.status<300||0===i.status?(r.xhrCache&&""!==i.responseText&&(n.removeFromXhrCache(a),n.cache.xhr.push({url:a,time:z.now(),content:i.responseText})),n.emit("routerAjaxSuccess",i,t),e(i.responseText)):(n.emit("routerAjaxError",i,t),o(i))},error:function(e){n.emit("routerAjaxError",e,t),o(e)}})}))}},{key:"setNavbarPosition",value:function(e,t,n){e.removeClass("navbar-previous navbar-current navbar-next"),t&&e.addClass("navbar-".concat(t)),!1===n?e.removeAttr("aria-hidden"):!0===n&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:t}),this.emit("navbarPosition",e[0],t)}},{key:"setPagePosition",value:function(e,t,n){e.removeClass("page-previous page-current page-next"),e.addClass("page-".concat(t)),!1===n?e.removeAttr("aria-hidden"):!0===n&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:t}),this.emit("pagePosition",e[0],t)}},{key:"removeThemeElements",value:function(e){var t,n=this.app.theme;"ios"===n?t=".md-only, .aurora-only, .if-md, .if-aurora, .if-not-ios, .not-ios":"md"===n?t=".ios-only, .aurora-only, .if-ios, .if-aurora, .if-not-md, .not-md":"aurora"===n&&(t=".ios-only, .md-only, .if-ios, .if-md, .if-not-aurora, .not-aurora"),k(e).find(t).remove()}},{key:"getPageData",value:function(e,t,n,r){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,l=this,c=k(e).eq(0),u=k(t).eq(0),d=c[0].f7Page||{};if(("next"===n&&"current"===r||"current"===n&&"previous"===r)&&(i="forward"),("current"===n&&"next"===r||"previous"===n&&"current"===r)&&(i="backward"),d&&!d.fromPage){var h=k(s);h.length&&(a=h[0].f7Page)}(a=d.pageFrom||a)&&a.pageFrom&&(a.pageFrom=null);var p={app:l.app,view:l.view,router:l,$el:c,el:c[0],$pageEl:c,pageEl:c[0],$navbarEl:u,navbarEl:u[0],name:c.attr("data-name"),position:n,from:n,to:r,direction:i,route:d.route?d.route:o,pageFrom:a};return c[0].f7Page=p,p}},{key:"pageCallback",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6?arguments[6]:void 0;if(t){var s=this,l=k(t);if(l.length){var c=k(n),u=a.route,d=s.params.restoreScrollTopOnBack&&!(s.params.masterDetailBreakpoint>0&&l.hasClass("page-master")&&s.app.width>=s.params.masterDetailBreakpoint),h=l[0].f7Page&&l[0].f7Page.route&&l[0].f7Page.route.route&&l[0].f7Page.route.route.keepAlive;"beforeRemove"===e&&h&&(e="beforeUnmount");var p="page".concat(e[0].toUpperCase()+e.slice(1,e.length)),f="page:".concat(e.toLowerCase()),m={};(m="beforeRemove"===e&&l[0].f7Page?z.extend(l[0].f7Page,{from:r,to:i,position:r}):s.getPageData(l[0],c[0],r,i,u,o)).swipeBack=!!a.swipeBack;var v=a.route?a.route.route:{},g=v.on,y=void 0===g?{}:g,b=v.once,_=void 0===b?{}:b;if(a.on&&z.extend(y,a.on),a.once&&z.extend(_,a.once),"mounted"===e&&T(),"init"===e){if(d&&("previous"===r||!r)&&"current"===i&&s.scrollHistory[m.route.url]&&!l.hasClass("no-restore-scroll")){var w=l.find(".page-content");w.length>0&&(w=w.filter((function(e,t){return 0===k(t).parents(".tab:not(.tab-active)").length&&!k(t).is(".tab:not(.tab-active)")}))),w.scrollTop(s.scrollHistory[m.route.url])}if(T(),l[0].f7PageInitialized)return l.trigger("page:reinit",m),void s.emit("pageReinit",m);l[0].f7PageInitialized=!0}if(d&&"beforeOut"===e&&"current"===r&&"previous"===i){var E=l.find(".page-content");E.length>0&&(E=E.filter((function(e,t){return 0===k(t).parents(".tab:not(.tab-active)").length&&!k(t).is(".tab:not(.tab-active)")}))),s.scrollHistory[m.route.url]=E.scrollTop()}d&&"beforeOut"===e&&"current"===r&&"next"===i&&delete s.scrollHistory[m.route.url],l.trigger(f,m),s.emit(p,m),"beforeRemove"!==e&&"beforeUnmount"!==e||(S(),h||(l[0].f7Page&&l[0].f7Page.navbarEl&&delete l[0].f7Page.navbarEl.f7Page,l[0].f7Page=null))}}function T(){l[0].f7RouteEventsAttached||(l[0].f7RouteEventsAttached=!0,y&&Object.keys(y).length>0&&(l[0].f7RouteEventsOn=y,Object.keys(y).forEach((function(e){y[e]=y[e].bind(s),l.on(z.eventNameToColonCase(e),y[e])}))),_&&Object.keys(_).length>0&&(l[0].f7RouteEventsOnce=_,Object.keys(_).forEach((function(e){_[e]=_[e].bind(s),l.once(z.eventNameToColonCase(e),_[e])}))))}function S(){l[0].f7RouteEventsAttached&&(l[0].f7RouteEventsOn&&Object.keys(l[0].f7RouteEventsOn).forEach((function(e){l.off(z.eventNameToColonCase(e),l[0].f7RouteEventsOn[e])})),l[0].f7RouteEventsOnce&&Object.keys(l[0].f7RouteEventsOnce).forEach((function(e){l.off(z.eventNameToColonCase(e),l[0].f7RouteEventsOnce[e])})),l[0].f7RouteEventsAttached=null,l[0].f7RouteEventsOn=null,l[0].f7RouteEventsOnce=null,delete l[0].f7RouteEventsAttached,delete l[0].f7RouteEventsOn,delete l[0].f7RouteEventsOnce)}}},{key:"saveHistory",value:function(){this.view.history=this.history,this.params.pushState&&(d.b.localStorage["f7router-".concat(this.view.id,"-history")]=JSON.stringify(this.history))}},{key:"restoreHistory",value:function(){this.params.pushState&&d.b.localStorage["f7router-".concat(this.view.id,"-history")]&&(this.history=JSON.parse(d.b.localStorage["f7router-".concat(this.view.id,"-history")]),this.view.history=this.history)}},{key:"clearHistory",value:function(){this.history=[],this.view&&(this.view.history=[]),this.saveHistory()}},{key:"updateCurrentUrl",value:function(e){De(this,"updateCurrentUrl"),this.history.length?this.history[this.history.length-1]=e:this.history.push(e);var t=this.parseRouteUrl(e),n=t.query,r=t.hash,i=t.params,a=t.url,o=t.path;if(this.currentRoute&&z.extend(this.currentRoute,{query:n,hash:r,params:i,url:a,path:o}),this.params.pushState){var s=this.params.pushStateRoot||"";Me.replace(this.view.id,{url:e},s+this.params.pushStateSeparator+e)}this.saveHistory(),this.emit("routeUrlUpdate",this.currentRoute,this)}},{key:"init",value:function(){var e=this,t=e.app,n=e.view;(n&&e.params.iosSwipeBack&&"ios"===t.theme||n&&e.params.mdSwipeBack&&"md"===t.theme||n&&e.params.auroraSwipeBack&&"aurora"===t.theme)&&$e(e);var r,i,a=e.params.url,o=d.a.location.href.split(d.a.location.origin)[1],s=e.params,l=s.pushState,c=s.pushStateOnLoad,u=s.pushStateSeparator,h=s.pushStateAnimateOnLoad,p=e.params.pushStateRoot;if(d.b.cordova&&l&&!u&&!p&&d.a.location.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete pushState configuration, trying to guess pushStateRoot"),p=d.a.location.pathname.split("index.html")[0]),l&&c?(p&&o.indexOf(p)>=0&&""===(o=o.split(p)[1])&&(o="/"),a=u.length>0&&o.indexOf(u)>=0?o.split(u)[1]:o,e.restoreHistory(),e.history.indexOf(a)>=0?e.history=e.history.slice(0,e.history.indexOf(a)+1):e.params.url===a?e.history=[a]:Me.state&&Me.state[n.id]&&Me.state[n.id].url===e.history[e.history.length-1]?a=e.history[e.history.length-1]:e.history=[o.split(u)[0]||"/",a],e.history.length>1?r=!0:e.history=[],e.saveHistory()):(a||(a=o),d.a.location.search&&a.indexOf("?")<0&&(a+=d.a.location.search),d.a.location.hash&&a.indexOf("#")<0&&(a+=d.a.location.hash)),e.history.length>1?(i=e.findMatchingRoute(e.history[0]))||(i=z.extend(e.parseRouteUrl(e.history[0]),{route:{url:e.history[0],path:e.history[0].split("?")[0]}})):(i=e.findMatchingRoute(a))||(i=z.extend(e.parseRouteUrl(a),{route:{url:a,path:a.split("?")[0]}})),e.params.stackPages&&e.$el.children(".page").each((function(t,n){var r=k(n);e.initialPages.push(r[0]),e.dynamicNavbar&&r.children(".navbar").length>0&&e.initialNavbars.push(r.children(".navbar")[0])})),0===e.$el.children(".page:not(.stacked)").length&&a&&e.params.loadInitialPage)e.navigate(a,{initial:!0,reloadCurrent:!0,pushState:!1});else if(e.$el.children(".page:not(.stacked)").length){var f;e.currentRoute=i,e.$el.children(".page:not(.stacked)").each((function(t,r){var i,a=k(r);e.setPagePosition(a,"current"),e.dynamicNavbar&&((i=a.children(".navbar")).length>0?(e.$navbarsEl.parents(d.a).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(i,"current"),e.$navbarsEl.append(i),i.children(".title-large").length&&i.addClass("navbar-large"),a.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),i.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.master&&e.params.masterDetailBreakpoint>0&&(a.addClass("page-master"),a.trigger("page:role",{role:"master"}),i&&i.length&&i.addClass("navbar-master"),n.checkMasterDetailBreakpoint());var o={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&z.extend(o,e.currentRoute.route.options),e.currentPageEl=a[0],e.dynamicNavbar&&i.length&&(e.currentNavbarEl=i[0]),e.removeThemeElements(a),e.dynamicNavbar&&i.length&&e.removeThemeElements(i),o.route.route.tab&&(f=!0,e.tabLoad(o.route.route.tab,z.extend({},o))),e.pageCallback("init",a,i,"current",void 0,o)})),r&&e.navigate(a,{initial:!0,pushState:!1,history:!1,animate:h,once:{pageAfterIn:function(){(e.params.preloadPreviousPage||e.params["".concat(t.theme,"SwipeBack")])&&e.history.length>2&&e.back({preload:!0})}}}),r||f||(e.history.push(a),e.saveHistory())}!(a&&l&&c)||Me.state&&Me.state[n.id]||Me.initViewState(n.id,{url:a}),e.emit("local::init routerInit",e)}},{key:"destroy",value:function(){var e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}}]),r}(G);Ne.prototype.forward=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this,o=k(e),s=a.app,l=a.view,c=z.extend(!1,{animate:a.params.animate,pushState:!0,replaceState:!1,history:!0,reloadCurrent:a.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:a.params.reloadDetail,on:{}},i),u=a.params.masterDetailBreakpoint>0,h=u&&c.route&&c.route.route&&!0===c.route.route.master,p=a.currentRoute.modal;if(p||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){a.currentRoute&&a.currentRoute.route&&a.currentRoute.route[e]&&(p=!0,r=e)})),p){var f=a.currentRoute.modal||a.currentRoute.route.modalInstance||s[r].get(),m=a.history[a.history.length-2],v=a.findMatchingRoute(m);!v&&m&&(v={url:m,path:m.split("?")[0],query:z.parseUrlQuery(m),route:{path:m.split("?")[0],url:m}}),a.modalRemove(f)}var g,y,b,_,w=a.dynamicNavbar,E=a.$el,T=o,S=c.reloadPrevious||c.reloadCurrent||c.reloadAll;if(a.allowPageChange=!1,0===T.length)return a.allowPageChange=!0,a;T.length&&a.removeThemeElements(T),w&&(b=T.children(".navbar"),y=a.$navbarsEl,0===b.length&&T[0]&&T[0].f7Page&&(b=T[0].f7Page.$navbarEl)),c.route&&c.route.route&&c.route.route.keepAlive&&!c.route.route.keepAliveData&&(c.route.route.keepAliveData={pageEl:o[0]});var C,x,M,$,L=E.children(".page:not(.stacked)").filter((function(e,t){return t!==T[0]}));if(w&&(C=y.children(".navbar:not(.stacked)").filter((function(e,t){return t!==b[0]}))),c.reloadPrevious&&L.length<2)return a.allowPageChange=!0,a;if(u&&!c.reloadAll){for(var P=0;P<L.length;P+=1)t||!L[P].classList.contains("page-master")||(t=L[P]);if((x=!h&&t)&&t)for(var O=0;O<L.length;O+=1)L[O].classList.contains("page-master-detail")&&(n=L[O]);M=x&&c.reloadDetail&&s.width>=a.params.masterDetailBreakpoint&&t}x&&($=!n||M||c.reloadAll||c.reloadCurrent);var D="next";if(c.reloadCurrent||c.reloadAll||M?D="current":c.reloadPrevious&&(D="previous"),T.removeClass("page-previous page-current page-next").addClass("page-".concat(D).concat(h?" page-master":"").concat(x?" page-master-detail":"").concat($?" page-master-detail-root":"")).removeClass("stacked").trigger("page:unstack").trigger("page:position",{position:D}),a.emit("pageUnstack",T[0]),a.emit("pagePosition",T[0],D),(h||x)&&(T.trigger("page:role",{role:h?"master":"detail",root:!!$}),a.emit("pageRole",T[0],{role:h?"master":"detail",detailRoot:!!$})),w&&b.length&&(b.removeClass("navbar-previous navbar-current navbar-next").addClass("navbar-".concat(D).concat(h?" navbar-master":"").concat(x?" navbar-master-detail":"").concat($?" navbar-master-detail-root":"")).removeClass("stacked"),b.trigger("navbar:position",{position:D}),a.emit("navbarPosition",b[0],D),(h||x)&&a.emit("navbarRole",b[0],{role:h?"master":"detail",detailRoot:!!$})),c.reloadCurrent||M)g=L.eq(L.length-1),w&&(_=k(s.navbar.getElByPage(g)));else if(c.reloadPrevious)g=L.eq(L.length-2),w&&(_=k(s.navbar.getElByPage(g)));else if(c.reloadAll)g=L.filter((function(e,t){return t!==T[0]})),w&&(_=C.filter((function(e,t){return t!==b[0]})));else{var I=[],A=[];if(L.length>1){var N=0;for(N=0;N<L.length-1;N+=1)if(t&&L[N]===t)L.eq(N).addClass("page-master-stacked"),L.eq(N).trigger("page:masterstack"),a.emit("pageMasterStack",L[N]),w&&(k(s.navbar.getElByPage(t)).addClass("navbar-master-stacked"),a.emit("navbarMasterStack",s.navbar.getElByPage(t)));else{var R=s.navbar.getElByPage(L.eq(N));a.params.stackPages?(L.eq(N).addClass("stacked"),L.eq(N).trigger("page:stack"),a.emit("pageStack",L[N]),w&&k(R).addClass("stacked")):(I.push(L[N]),a.pageCallback("beforeRemove",L[N],C&&C[N],"previous",void 0,c),a.removePage(L[N]),w&&R&&(A.push(R),a.removeNavbar(R)))}}g=E.children(".page:not(.stacked)").filter((function(e,t){return t!==T[0]&&I.indexOf(t)<0})),w&&(_=y.children(".navbar:not(.stacked)").filter((function(e,t){return t!==b[0]&&A.indexOf(A)<0}))),I=[],A=[]}if(x&&!c.reloadAll&&((g.length>1||M)&&(g=g.filter((function(e,t){return!t.classList.contains("page-master")}))),_&&(_.length>1||M)&&(_=_.filter((function(e,t){return!t.classList.contains("navbar-master")})))),a.params.pushState&&(c.pushState||c.replaceState)&&!c.reloadPrevious){var Y=a.params.pushStateRoot||"";Me[c.reloadCurrent||M&&n||c.reloadAll||c.replaceState?"replace":"push"](l.id,{url:c.route.url},Y+a.params.pushStateSeparator+c.route.url)}c.reloadPrevious||(a.currentPageEl=T[0],w&&b.length?a.currentNavbarEl=b[0]:delete a.currentNavbarEl,a.currentRoute=c.route);var B=c.route.url;c.history&&(((c.reloadCurrent||M&&n)&&a.history.length)>0||c.replaceState?a.history[a.history.length-(c.reloadPrevious?2:1)]=B:c.reloadPrevious?a.history[a.history.length-2]=B:c.reloadAll?a.history=[B]:a.history.push(B)),a.saveHistory();var j=T.parents(d.a).length>0,F=T[0].f7Component;if(c.reloadPrevious?(F&&!j?F.$mount((function(e){k(e).insertBefore(g)})):T.insertBefore(g),w&&b.length&&(b.find(".title-large").length&&b.addClass("navbar-large"),_.length?b.insertBefore(_):(a.$navbarsEl.parents(d.a).length||a.$el.prepend(a.$navbarsEl),y.append(b)))):(g.next(".page")[0]!==T[0]&&(F&&!j?F.$mount((function(e){E.append(e)})):E.append(T[0])),w&&b.length&&(b.find(".title-large").length&&b.addClass("navbar-large"),a.$navbarsEl.parents(d.a).length||a.$el.prepend(a.$navbarsEl),y.append(b[0]))),j?c.route&&c.route.route&&c.route.route.keepAlive&&!T[0].f7PageMounted&&(T[0].f7PageMounted=!0,a.pageCallback("mounted",T,b,D,S?D:"current",c,g)):a.pageCallback("mounted",T,b,D,S?D:"current",c,g),(c.reloadCurrent||M)&&g.length>0?a.params.stackPages&&a.initialPages.indexOf(g[0])>=0?(g.addClass("stacked"),g.trigger("page:stack"),a.emit("pageStack",g[0]),w&&_.addClass("stacked")):(a.pageCallback("beforeOut",g,_,"current",void 0,c),a.pageCallback("afterOut",g,_,"current",void 0,c),a.pageCallback("beforeRemove",g,_,"current",void 0,c),a.removePage(g),w&&_&&_.length&&a.removeNavbar(_)):c.reloadAll?g.each((function(e,t){var n=k(t),r=k(s.navbar.getElByPage(n));a.params.stackPages&&a.initialPages.indexOf(n[0])>=0?(n.addClass("stacked"),n.trigger("page:stack"),a.emit("pageStack",n[0]),w&&r.addClass("stacked")):(n.hasClass("page-current")&&(a.pageCallback("beforeOut",g,_,"current",void 0,c),a.pageCallback("afterOut",g,_,"current",void 0,c)),a.pageCallback("beforeRemove",n,_&&_.eq(e),"previous",void 0,c),a.removePage(n),w&&r.length&&a.removeNavbar(r))})):c.reloadPrevious&&(a.params.stackPages&&a.initialPages.indexOf(g[0])>=0?(g.addClass("stacked"),g.trigger("page:stack"),a.emit("pageStack",g[0]),w&&_.addClass("stacked")):(a.pageCallback("beforeRemove",g,_,"previous",void 0,c),a.removePage(g),w&&_&&_.length&&a.removeNavbar(_))),c.route.route.tab&&a.tabLoad(c.route.route.tab,z.extend({},c,{history:!1,pushState:!1})),u&&l.checkMasterDetailBreakpoint(),a.pageCallback("init",T,b,D,S?D:"current",c,g),c.reloadCurrent||c.reloadAll||M)return a.allowPageChange=!0,a.pageCallback("beforeIn",T,b,D,"current",c),T.removeAttr("aria-hidden"),w&&b&&b.removeAttr("aria-hidden"),a.pageCallback("afterIn",T,b,D,"current",c),c.reloadCurrent&&c.clearPreviousHistory&&a.clearPreviousHistory(),M&&(a.setPagePosition(k(t),"previous"),t.f7Page&&t.f7Page.navbarEl&&a.setNavbarPosition(k(t.f7Page.navbarEl),"previous")),a;if(c.reloadPrevious)return a.allowPageChange=!0,a;function H(){a.setPagePosition(T,"current",!1),a.setPagePosition(g,"previous",!g.hasClass("page-master")),w&&(a.setNavbarPosition(b,"current",!1),a.setNavbarPosition(_,"previous",!_.hasClass("navbar-master"))),a.allowPageChange=!0,a.pageCallback("afterOut",g,_,"current","previous",c),a.pageCallback("afterIn",T,b,"next","current",c);var e=(a.params.preloadPreviousPage||a.params["".concat(s.theme,"SwipeBack")])&&!h;e||(T.hasClass("smart-select-page")||T.hasClass("photo-browser-page")||T.hasClass("autocomplete-page")||T.hasClass("color-picker-page"))&&(e=!0),e||(a.params.stackPages?(g.addClass("stacked"),g.trigger("page:stack"),a.emit("pageStack",g[0]),w&&_.addClass("stacked")):T.attr("data-name")&&"smart-select-page"===T.attr("data-name")||(a.pageCallback("beforeRemove",g,_,"previous",void 0,c),a.removePage(g),w&&_.length&&a.removeNavbar(_))),c.clearPreviousHistory&&a.clearPreviousHistory(),a.emit("routeChanged",a.currentRoute,a.previousRoute,a),a.params.pushState&&Me.clearRouterQueue()}function U(){a.setPagePosition(g,"current",!1),a.setPagePosition(T,"next",!1),w&&(a.setNavbarPosition(_,"current",!1),a.setNavbarPosition(b,"next",!1))}if(a.pageCallback("beforeOut",g,_,"current","previous",c),a.pageCallback("beforeIn",T,b,"next","current",c),!c.animate||h&&s.width>=a.params.masterDetailBreakpoint)H();else{var V=a.params["".concat(a.app.theme,"PageLoadDelay")],q=a.params.transition;c.transition&&(q=c.transition),!q&&a.currentRoute&&a.currentRoute.route&&(q=a.currentRoute.route.transition),!q&&a.currentRoute&&a.currentRoute.route.options&&(q=a.currentRoute.route.options.transition),q&&(T[0].f7PageTransition=q),V?setTimeout((function(){U(),a.animate(g,T,_,b,"forward",q,(function(){H()}))}),V):(U(),a.animate(g,T,_,b,"forward",q,(function(){H()})))}return a},Ne.prototype.load=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=this;if(!r.allowPageChange&&!n)return r;var i=e,a=t,o=i.url,s=i.content,l=i.el,c=i.pageName,u=i.template,d=i.templateUrl,h=i.component,p=i.componentUrl;if(!a.reloadCurrent&&a.route&&a.route.route&&a.route.route.parentPath&&r.currentRoute.route&&r.currentRoute.route.parentPath===a.route.route.parentPath){if(a.route.url===r.url)return r.allowPageChange=!0,!1;var f=Object.keys(a.route.params).length===Object.keys(r.currentRoute.params).length;if(f&&Object.keys(a.route.params).forEach((function(e){e in r.currentRoute.params&&r.currentRoute.params[e]===a.route.params[e]||(f=!1)})),f)return!!a.route.route.tab&&r.tabLoad(a.route.route.tab,a);if(!f&&a.route.route.tab&&r.currentRoute.route.tab&&r.currentRoute.parentPath===a.route.parentPath)return r.tabLoad(a.route.route.tab,a)}if(a.route&&a.route.url&&r.url===a.route.url&&!a.reloadCurrent&&!a.reloadPrevious&&!r.params.allowDuplicateUrls)return r.allowPageChange=!0,!1;function m(e,t){return r.forward(e,z.extend(a,t))}function v(){return r.allowPageChange=!0,r}if(!a.route&&o&&(a.route=r.parseRouteUrl(o),z.extend(a.route,{route:{url:o,path:o}})),(o||d||p)&&(r.allowPageChange=!1),s)r.forward(r.getPageEl(s),a);else if(u||d)try{r.pageTemplateLoader(u,d,a,m,v)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.forward(r.getPageEl(l),a);else if(c)r.forward(r.$el.children('.page[data-name="'.concat(c,'"]')).eq(0),a);else if(h||p)try{r.pageComponentLoader(r.el,h,p,a,m,v)}catch(e){throw r.allowPageChange=!0,e}else o&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(o,a).then((function(e){r.forward(r.getPageEl(e),a)})).catch((function(){r.allowPageChange=!0})));return r},Ne.prototype.navigate=function(e){var t,n,r,i,a,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this;if(l.swipeBackActive)return l;if("string"==typeof e?t=e:(t=e.url,n=e.route,r=e.name,i=e.query,a=e.params),r)return(t=l.generateUrl({name:r,params:a,query:i}))?l.navigate(t,s):l;var c=l.app;if(De(l,"navigate"),"#"===t||""===t)return l;var u=t.replace("./","");if("/"!==u[0]&&0!==u.indexOf("#")){var d=l.currentRoute.parentPath||l.currentRoute.path;u=((d?"".concat(d,"/"):"/")+u).replace("///","/").replace("//","/")}if(!(o=n?z.extend(l.parseRouteUrl(u),{route:z.extend({},n)}):l.findMatchingRoute(u)))return l;if(o.route&&o.route.viewName){var h=o.route.viewName,p=c.views[h];if(!p)throw new Error('Framework7: There is no View with "'.concat(h,'" name that was specified in this route'));if(p!==l.view)return p.router.navigate(e,s)}if(o.route.redirect)return Le.call(l,"navigate",o,s);var f={};function m(){var e=!1;function t(e,t){l.allowPageChange=!1;var n=!1;t&&t.context&&(o.context?o.context=z.extend({},o.context,t.context):o.context=t.context,f.route.context=o.context),"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(r){if(e[r]){n=!0;var i=z.extend({},o,{route:e});l.allowPageChange=!0,l.modalLoad(r,i,z.extend(f,t))}})),n||l.load(e,z.extend(f,t),!0)}function n(){l.allowPageChange=!0}"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(t){o.route[t]&&!e&&(e=!0,l.modalLoad(t,o,f))})),o.route.keepAlive&&o.route.keepAliveData&&(l.load({el:o.route.keepAliveData.pageEl},f,!1),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){o.route[t]&&!e&&(e=!0,l.load(Z()({},t,o.route[t]),f,!1))})),e||(o.route.async&&(l.allowPageChange=!1,o.route.async.call(l,f.route,l.currentRoute,t,n)),o.route.asyncComponent&&Ie(l,o.route.asyncComponent,t,n))}function v(){l.allowPageChange=!0}if(o.route.options?z.extend(f,o.route.options,s):z.extend(f,s),f.route=o,f&&f.context&&(o.context=f.context,f.route.context=f.context),l.params.masterDetailBreakpoint>0&&o.route.masterRoute){var g=!0,y=!1;if(l.currentRoute&&l.currentRoute.route&&(!l.currentRoute.route.master||l.currentRoute.route!==o.route.masterRoute&&l.currentRoute.route.path!==o.route.masterRoute.path||(g=!1),!l.currentRoute.route.masterRoute||l.currentRoute.route.masterRoute!==o.route.masterRoute&&l.currentRoute.route.masterRoute.path!==o.route.masterRoute.path||(g=!1,y=!0)),g||y&&s.reloadAll)return l.navigate(o.route.masterRoute.path,{animate:!1,reloadAll:s.reloadAll,reloadCurrent:s.reloadCurrent,reloadPrevious:s.reloadPrevious,pushState:!s.initial,history:!s.initial,once:{pageAfterIn:function(){l.navigate(e,z.extend({},s,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!s.initial,pushState:!s.initial}))}}}),l}return Oe.call(l,o,l.currentRoute,(function(){o.route.modules?c.loadModules(Array.isArray(o.route.modules)?o.route.modules:[o.route.modules]).then((function(){m()})).catch((function(){v()})):m()}),(function(){v()})),l},Ne.prototype.refreshPage=function(){return De(this,"refreshPage"),this.navigate(this.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0})},Ne.prototype.tabLoad=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,a=z.extend({animate:i.params.animate,pushState:!0,history:!0,parentPageEl:null,preload:!1,on:{}},r);a.route&&(a.preload||a.route===i.currentRoute||(n=i.previousRoute,i.currentRoute=a.route),a.preload?(t=a.route,n=i.currentRoute):(t=i.currentRoute,n||(n=i.previousRoute)),i.params.pushState&&a.pushState&&!a.reloadPrevious&&Me.replace(i.view.id,{url:a.route.url},(i.params.pushStateRoot||"")+i.params.pushStateSeparator+a.route.url),a.history&&(i.history[Math.max(i.history.length-1,0)]=a.route.url,i.saveHistory()));var o,s=k(a.parentPageEl||i.currentPageEl);o=s.length&&s.find("#".concat(e.id)).length?s.find("#".concat(e.id)).eq(0):i.view.selector?"".concat(i.view.selector," #").concat(e.id):"#".concat(e.id);var l,c=i.app.tab.show({tabEl:o,animate:a.animate,tabRoute:a.route}),u=c.$newTabEl,d=c.$oldTabEl,h=c.animated,p=c.onTabsChanged;if(u&&u.parents(".page").length>0&&a.route){var f=u.parents(".page")[0].f7Page;f&&a.route&&(f.route=a.route)}function m(t){i.removeThemeElements(u);var n=u;"string"!=typeof t&&(n=k(t)),n.trigger("tab:init tab:mounted",e),i.emit("tabInit tabMounted",u[0],e),d&&d.length&&(h?p((function(){i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i.params.unloadTabContent&&i.tabRemove(d,u,e)})):(i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i.params.unloadTabContent&&i.tabRemove(d,u,e)))}if(u[0].f7RouterTabLoaded)return d&&d.length?(h?p((function(){i.emit("routeChanged",i.currentRoute,i.previousRoute,i)})):i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i):i;function v(e,t){var n=e.url,r=e.content,a=e.el,o=e.template,s=e.templateUrl,l=e.component,c=e.componentUrl;function d(e){i.allowPageChange=!0,e&&("string"==typeof e?u.html(e):(u.html(""),e.f7Component?e.f7Component.$mount((function(e){u.append(e)})):u.append(e)),u[0].f7RouterTabLoaded=!0,m(e))}function h(){return i.allowPageChange=!0,i}if(r)d(r);else if(o||s)try{i.tabTemplateLoader(o,s,t,d,h)}catch(e){throw i.allowPageChange=!0,e}else if(a)d(a);else if(l||c)try{i.tabComponentLoader(u[0],l,c,t,d,h)}catch(e){throw i.allowPageChange=!0,e}else n&&(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(n,t).then((function(e){d(e)})).catch((function(){i.allowPageChange=!0})))}function g(e,t){v(e,z.extend(a,t))}function y(){i.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(t){e[t]&&(l=!0,v(Z()({},t,e[t]),a))})),e.async?e.async.call(i,t,n,g,y):e.asyncComponent?Ie(i,e.asyncComponent,g,y):l||(i.allowPageChange=!0),i},Ne.prototype.tabRemove=function(e,t,n){var r;e[0]&&(e[0].f7RouterTabLoaded=!1,delete e[0].f7RouterTabLoaded),e.children().each((function(e,t){t.f7Component&&(r=!0,k(t).trigger("tab:beforeremove",n),t.f7Component.$destroy())})),r||e.trigger("tab:beforeremove",n),this.emit("tabBeforeRemove",e[0],t[0],n),this.removeTabContent(e[0],n)},Ne.prototype.modalLoad=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,a=i.app,o="panel"===e,s=o?"panel":"modal",l=z.extend({animate:i.params.animate,pushState:!0,history:!0,on:{}},r),c=z.extend({},t.route[e]),u=t.route;function d(){var n=a[e].create(c);u.modalInstance=n;var r=n.el;function d(){n.close()}n.on("".concat(s,"Open"),(function(){r||(i.removeThemeElements(n.el),n.$el.trigger("".concat(e.toLowerCase(),":init ").concat(e.toLowerCase(),":mounted"),t,n),i.emit("".concat(o?"":"modalInit"," ").concat(e,"Init ").concat(e,"Mounted"),n.el,t,n)),i.once("swipeBackMove",d)})),n.on("".concat(s,"Close"),(function(){i.off("swipeBackMove",d),n.closeByRouter||i.back()})),n.on("".concat(s,"Closed"),(function(){n.$el.trigger("".concat(e.toLowerCase(),":beforeremove"),t,n),n.emit("".concat(o?"":"modalBeforeRemove ").concat(e,"BeforeRemove"),n.el,t,n);var r=n.el.f7Component;r&&r.$destroy(),z.nextTick((function(){(r||c.component)&&i.removeModal(n.el),n.destroy(),delete n.route,delete u.modalInstance}))})),l.route&&(i.params.pushState&&l.pushState&&Me.push(i.view.id,{url:l.route.url,modal:e},(i.params.pushStateRoot||"")+i.params.pushStateSeparator+l.route.url),l.route!==i.currentRoute&&(n.route=z.extend(l.route,{modal:n}),i.currentRoute=n.route),l.history&&(i.history.push(l.route.url),i.saveHistory())),r&&(i.removeThemeElements(n.el),n.$el.trigger("".concat(e.toLowerCase(),":init ").concat(e.toLowerCase(),":mounted"),t,n),i.emit("".concat(s,"Init ").concat(e,"Init ").concat(e,"Mounted"),n.el,t,n)),n.open()}function h(e,t){var n=e.url,r=e.content,o=e.template,s=e.templateUrl,l=e.component,u=e.componentUrl;function h(e){e&&("string"==typeof e?c.content=e:e.f7Component?e.f7Component.$mount((function(e){c.el=e,a.root.append(e)})):c.el=e,d())}function p(){return i.allowPageChange=!0,i}if(r)h(r);else if(o||s)try{i.modalTemplateLoader(o,s,t,h,p)}catch(e){throw i.allowPageChange=!0,e}else if(l||u)try{i.modalComponentLoader(a.root[0],l,u,t,h,p)}catch(e){throw i.allowPageChange=!0,e}else n?(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(n,t).then((function(e){c.content=e,d()})).catch((function(){i.allowPageChange=!0}))):d()}function p(e,t){h(e,z.extend(l,t))}function f(){i.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(e){c[e]&&!n&&(n=!0,h(Z()({},e,c[e]),l))})),n||"actions"!==e||d(),c.async&&c.async.call(i,l.route,i.currentRoute,p,f),c.asyncComponent&&Ie(i,c.asyncComponent,p,f),i},Ne.prototype.modalRemove=function(e){z.extend(e,{closeByRouter:!0}),e.close()},Ne.prototype.backward=function(e,t){var n,r,i,a,o,s,l,c,u=this,h=k(e),p=u.app,f=u.view,m=z.extend({animate:u.params.animate,pushState:!0,replaceState:!1},t),v=u.params.masterDetailBreakpoint>0,g=v&&m.route&&m.route.route&&!0===m.route.route.master,y=u.dynamicNavbar,b=h,_=u.$el.children(".page-current"),w=v&&_.hasClass("page-master");if(b.length&&u.removeThemeElements(b),y&&(a=b.children(".navbar"),i=u.$navbarsEl,0===a.length&&b[0]&&b[0].f7Page&&(a=b[0].f7Page.$navbarEl),o=i.find(".navbar-current")),u.allowPageChange=!1,0===b.length||0===_.length)return u.allowPageChange=!0,u;if(u.removeThemeElements(b),m.route&&m.route.route&&m.route.route.keepAlive&&!m.route.route.keepAliveData&&(m.route.route.keepAliveData={pageEl:h[0]}),v){for(var E=u.$el.children(".page:not(.stacked)").filter((function(e,t){return t!==b[0]})),T=0;T<E.length;T+=1)n||!E[T].classList.contains("page-master")||(n=E[T]);!(s=!g&&n&&u.history.indexOf(m.route.url)>u.history.indexOf(n.f7Page.route.url))&&!g&&n&&n.f7Page&&m.route.route.masterRoute&&(s=m.route.route.masterRoute.path===n.f7Page.route.route.path)}if(s&&n&&n.f7Page&&(l=u.history.indexOf(m.route.url)-u.history.indexOf(n.f7Page.route.url)==1),b.addClass("page-previous".concat(g?" page-master":"").concat(s?" page-master-detail":"").concat(l?" page-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:"previous"}),u.emit("pageUnstack",b[0]),u.emit("pagePosition",b[0],"previous"),(g||s)&&(b.trigger("page:role",{role:g?"master":"detail",root:!!l}),u.emit("pageRole",b[0],{role:g?"master":"detail",detailRoot:!!l})),y&&a.length>0&&(a.addClass("navbar-previous".concat(g?" navbar-master":"").concat(s?" navbar-master-detail":"").concat(l?" navbar-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden"),a.trigger("navbar:position",{position:"previous"}),u.emit("navbarPosition",a[0],"previous"),(g||l)&&u.emit("navbarRole",a[0],{role:g?"master":"detail",detailRoot:!!l})),m.force&&(_.prev(".page-previous:not(.stacked)").length>0||0===_.prev(".page-previous").length))if(u.history.indexOf(m.route.url)>=0?(c=u.history.length-u.history.indexOf(m.route.url)-1,u.history=u.history.slice(0,u.history.indexOf(m.route.url)+2),f.history=u.history):u.history[[u.history.length-2]]?u.history[u.history.length-2]=m.route.url:u.history.unshift(u.url),c&&u.params.stackPages)_.prevAll(".page-previous").each((function(e,t){var i,a=k(t);y&&(i=k(p.navbar.getElByPage(a))),a[0]!==b[0]&&a.index()>b.index()&&(u.initialPages.indexOf(a[0])>=0?(a.addClass("stacked"),a.trigger("page:stack"),u.emit("pageStack",a[0]),y&&i.addClass("stacked")):(u.pageCallback("beforeRemove",a,i,"previous",void 0,m),a[0]===n&&(r=!0),u.removePage(a),y&&i.length>0&&u.removeNavbar(i)))}));else{var S,C=_.prev(".page-previous:not(.stacked)");y&&(S=k(p.navbar.getElByPage(C))),u.params.stackPages&&u.initialPages.indexOf(C[0])>=0?(C.addClass("stacked"),C.trigger("page:stack"),u.emit("pageStack",C[0]),S.addClass("stacked")):C.length>0&&(u.pageCallback("beforeRemove",C,S,"previous",void 0,m),C[0]===n&&(r=!0),u.removePage(C),y&&S.length&&u.removeNavbar(S))}var x=b.parents(d.a).length>0,M=b[0].f7Component;function $(){0===b.next(_).length&&(!x&&M?M.$mount((function(e){k(e).insertBefore(_)})):b.insertBefore(_)),y&&a.length&&(a.find(".title-large").length&&a.addClass("navbar-large"),a.insertBefore(o),o.length>0?a.insertBefore(o):(u.$navbarsEl.parents(d.a).length||u.$el.prepend(u.$navbarsEl),i.append(a))),x?m.route&&m.route.route&&m.route.route.keepAlive&&!b[0].f7PageMounted&&(b[0].f7PageMounted=!0,u.pageCallback("mounted",b,a,"previous","current",m,_)):u.pageCallback("mounted",b,a,"previous","current",m,_)}if(m.preload){$(),m.route.route.tab&&u.tabLoad(m.route.route.tab,z.extend({},m,{history:!1,pushState:!1,preload:!0})),g&&(b.removeClass("page-master-stacked").trigger("page:masterunstack"),u.emit("pageMasterUnstack",b[0]),y&&(k(p.navbar.getElByPage(b)).removeClass("navbar-master-stacked"),u.emit("navbarMasterUnstack",p.navbar.getElByPage(b)))),u.pageCallback("init",b,a,"previous","current",m,_);var L=b.prevAll(".page-previous:not(.stacked):not(.page-master)");return L.length>0&&L.each((function(e,t){var n,r=k(t);y&&(n=k(p.navbar.getElByPage(r))),u.params.stackPages&&u.initialPages.indexOf(t)>=0?(r.addClass("stacked"),r.trigger("page:stack"),u.emit("pageStack",r[0]),y&&n.addClass("stacked")):(u.pageCallback("beforeRemove",r,n,"previous",void 0),u.removePage(r),y&&n.length&&u.removeNavbar(n))})),u.allowPageChange=!0,u}if(!(V.a.ie||V.a.edge||V.a.firefox&&!V.a.ios)&&u.params.pushState&&m.pushState)if(m.replaceState){var P=u.params.pushStateRoot||"";Me.replace(f.id,{url:m.route.url},P+u.params.pushStateSeparator+m.route.url)}else c?Me.go(-c):Me.back();if(m.replaceState?u.history[u.history.length-1]=m.route.url:(1===u.history.length&&u.history.unshift(u.url),u.history.pop()),u.saveHistory(),u.currentPageEl=b[0],y&&a.length?u.currentNavbarEl=a[0]:delete u.currentNavbarEl,u.currentRoute=m.route,(V.a.ie||V.a.edge||V.a.firefox&&!V.a.ios)&&u.params.pushState&&m.pushState)if(m.replaceState){var O=u.params.pushStateRoot||"";Me.replace(f.id,{url:m.route.url},O+u.params.pushStateSeparator+m.route.url)}else c?Me.go(-c):Me.back();function D(){u.setPagePosition(b,"current",!1),u.setPagePosition(_,"next",!0),y&&(u.setNavbarPosition(a,"current",!1),u.setNavbarPosition(o,"next",!0)),u.pageCallback("afterOut",_,o,"current","next",m),u.pageCallback("afterIn",b,a,"previous","current",m),u.params.stackPages&&u.initialPages.indexOf(_[0])>=0?(_.addClass("stacked"),_.trigger("page:stack"),u.emit("pageStack",_[0]),y&&o.addClass("stacked")):(u.pageCallback("beforeRemove",_,o,"next",void 0,m),u.removePage(_),y&&o.length&&u.removeNavbar(o)),u.allowPageChange=!0,u.emit("routeChanged",u.currentRoute,u.previousRoute,u),(u.params.preloadPreviousPage||u.params["".concat(p.theme,"SwipeBack")])&&u.history[u.history.length-2]&&!g&&u.back(u.history[u.history.length-2],{preload:!0}),u.params.pushState&&Me.clearRouterQueue()}if($(),m.route.route.tab&&u.tabLoad(m.route.route.tab,z.extend({},m,{history:!1,pushState:!1})),v&&(w||r)&&f.checkMasterDetailBreakpoint(!1),u.pageCallback("init",b,a,"previous","current",m,_),u.pageCallback("beforeOut",_,o,"current","next",m),u.pageCallback("beforeIn",b,a,"previous","current",m),!m.animate||w&&p.width>=u.params.masterDetailBreakpoint)D();else{var I=u.params.transition;_[0]&&_[0].f7PageTransition&&(I=_[0].f7PageTransition,delete _[0].f7PageTransition),m.transition&&(I=m.transition),!I&&u.previousRoute&&u.previousRoute.route&&(I=u.previousRoute.route.transition),!I&&u.previousRoute&&u.previousRoute.route&&u.previousRoute.route.options&&(I=u.previousRoute.route.options.transition),u.setPagePosition(_,"current"),u.setPagePosition(b,"previous",!1),y&&(u.setNavbarPosition(o,"current"),u.setNavbarPosition(a,"previous",!1)),u.animate(_,b,o,a,"backward",I,(function(){D()}))}return u},Ne.prototype.loadBack=function(e,t,n){var r=this;if(!r.allowPageChange&&!n)return r;var i=e,a=t,o=i.url,s=i.content,l=i.el,c=i.pageName,u=i.template,d=i.templateUrl,h=i.component,p=i.componentUrl;if(a.route.url&&r.url===a.route.url&&!a.reloadCurrent&&!a.reloadPrevious&&!r.params.allowDuplicateUrls)return!1;function f(e,t){return r.backward(e,z.extend(a,t))}function m(){return r.allowPageChange=!0,r}if(!a.route&&o&&(a.route=r.parseRouteUrl(o)),(o||d||p)&&(r.allowPageChange=!1),s)r.backward(r.getPageEl(s),a);else if(u||d)try{r.pageTemplateLoader(u,d,a,f,m)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.backward(r.getPageEl(l),a);else if(c)r.backward(r.$el.children('.page[data-name="'.concat(c,'"]')).eq(0),a);else if(h||p)try{r.pageComponentLoader(r.el,h,p,a,f,m)}catch(e){throw r.allowPageChange=!0,e}else o&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(o,a).then((function(e){r.backward(r.getPageEl(e),a)})).catch((function(){r.allowPageChange=!0})));return r},Ne.prototype.back=function(){var e,t,n,r=this;if(r.swipeBackActive)return r;"object"===N()(arguments.length<=0?void 0:arguments[0])?t=(arguments.length<=0?void 0:arguments[0])||{}:(e=arguments.length<=0?void 0:arguments[0],t=(arguments.length<=1?void 0:arguments[1])||{});var i=t,a=i.name,o=i.params,s=i.query;if(a)return(e=r.generateUrl({name:a,params:o,query:s}))?r.back(e,z.extend({},t,{name:null,params:null,query:null})):r;var l=r.app;De(r,"back");var c,u=r.currentRoute.modal;if(u||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){r.currentRoute.route[e]&&(u=!0,c=e)})),u){var d,h=r.currentRoute.modal||r.currentRoute.route.modalInstance||l[c].get(),p=r.history[r.history.length-2];if(h&&h.$el){var f=h.$el.prevAll(".modal-in");f.length&&f[0].f7Modal&&(d=f[0].f7Modal.route)}if(d||(d=r.findMatchingRoute(p)),!d&&p&&(d={url:p,path:p.split("?")[0],query:z.parseUrlQuery(p),route:{path:p.split("?")[0],url:p}}),!(e&&0!==e.replace(/[# ]/g,"").trim().length||d&&h))return r;var m=t.force&&d&&e;if(d&&h){var v=V.a.ie||V.a.edge||V.a.firefox&&!V.a.ios,g=r.params.pushState&&!1!==t.pushState;g&&!v&&Me.back(),r.currentRoute=d,r.history.pop(),r.saveHistory(),g&&v&&Me.back(),r.modalRemove(h),m&&r.navigate(e,{reloadCurrent:!0})}else h&&(r.modalRemove(h),e&&r.navigate(e,{reloadCurrent:!0}));return r}var y,b=r.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0);if(r.params.masterDetailBreakpoint>0){var _=r.$el.children(".page-current").prevAll(".page-master").eq(0);if(_.length){var w=r.history[r.history.length-2],k=r.findMatchingRoute(w);k&&k.route===_[0].f7Page.route.route&&(b=_,t.preload||(y=l.width>=r.params.masterDetailBreakpoint))}}if(!t.force&&b.length&&!y){if(r.params.pushState&&b[0].f7Page&&r.history[r.history.length-2]!==b[0].f7Page.route.url)return r.back(r.history[r.history.length-2],z.extend(t,{force:!0})),r;var E=b[0].f7Page.route;return Oe.call(r,E,r.currentRoute,(function(){r.loadBack({el:b},z.extend(t,{route:E}))}),(function(){})),r}if("#"===e&&(e=void 0),e&&"/"!==e[0]&&0!==e.indexOf("#")&&(e=((r.path||"/")+e).replace("//","/")),!e&&r.history.length>1&&(e=r.history[r.history.length-2]),y&&!t.force&&r.history[r.history.length-3])return r.back(r.history[r.history.length-3],z.extend({},t||{},{force:!0,animate:!1}));if(y&&!t.force)return r;if((n=r.findMatchingRoute(e))||e&&(n={url:e,path:e.split("?")[0],query:z.parseUrlQuery(e),route:{path:e.split("?")[0],url:e}}),!n)return r;if(n.route.redirect)return Le.call(r,"back",n,t);var T,S={};if(n.route.options?z.extend(S,n.route.options,t):z.extend(S,t),S.route=n,S&&S.context&&(n.context=S.context,S.route.context=S.context),S.force&&r.params.stackPages&&(r.$el.children(".page-previous.stacked").each((function(e,t){t.f7Page&&t.f7Page.route&&t.f7Page.route.url===n.url&&(T=!0,r.loadBack({el:t},S))})),T))return r;function C(){var e=!1;function t(e,t){r.allowPageChange=!1,t&&t.context&&(n.context?n.context=z.extend({},n.context,t.context):n.context=t.context,S.route.context=n.context),r.loadBack(e,z.extend(S,t),!0)}function i(){r.allowPageChange=!0}n.route.keepAlive&&n.route.keepAliveData&&(r.loadBack({el:n.route.keepAliveData.pageEl},S),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){n.route[t]&&!e&&(e=!0,r.loadBack(Z()({},t,n.route[t]),S))})),e||(n.route.async&&(r.allowPageChange=!1,n.route.async.call(r,n,r.currentRoute,t,i)),n.route.asyncComponent&&Ie(r,n.route.asyncComponent,t,i))}function x(){r.allowPageChange=!0}return S.preload?C():Oe.call(r,n,r.currentRoute,(function(){n.route.modules?l.loadModules(Array.isArray(n.route.modules)?n.route.modules:[n.route.modules]).then((function(){C()})).catch((function(){x()})):C()}),(function(){x()})),r},Ne.prototype.clearPreviousHistory=function(){De(this,"clearPreviousHistory");var e=this.history[this.history.length-1];!function(e){De(e,"clearPreviousPages");var t=e.app,n=e.dynamicNavbar;e.$el.children(".page").filter((function(t,n){return!(!e.currentRoute||!e.currentRoute.modal&&!e.currentRoute.panel)||n!==e.currentPageEl})).each((function(r,i){var a=k(i),o=k(t.navbar.getElByPage(a));e.params.stackPages&&e.initialPages.indexOf(a[0])>=0?(a.addClass("stacked"),n&&o.addClass("stacked")):(e.pageCallback("beforeRemove",a,o,"previous",void 0,{}),e.removePage(a),n&&o.length&&e.removeNavbar(o))}))}(this),this.history=[e],this.view.history=[e],this.saveHistory()};var Re=Ne,Ye={name:"router",static:{Router:Re},instance:{cache:{xhr:[],templates:[],components:[]}},create:function(){this.app?this.params.router&&(this.router=new Re(this.app,this)):this.router=new Re(this)}};var Be=function(e){var t=e.app;if(!e.resizableInitialized){z.extend(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var n=k("html"),r=e.$el;if(r){var i,a,o,s,l,c,u,d={};(i=e.$el.children(".view-resize-handler")).length||(e.$el.append('<div class="view-resize-handler"></div>'),i=e.$el.children(".view-resize-handler")),e.$resizeHandlerEl=i,r.addClass("view-resizable");var h=!!fe.a.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".view-resize-handler",f,h),t.on("touchmove:active",m),t.on("touchend:passive",v),t.on("resize",g),e.on("beforeOpen",g),e.once("viewDestroy",(function(){r.removeClass("view-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".view-resize-handler",f,h),t.off("touchmove:active",m),t.off("touchend:passive",v),t.off("resize",g),e.off("beforeOpen",g)}))}}function p(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var n=parseInt(e,10);return Number.isNaN(n)?null:n}function f(t){if(e.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")){d.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,d.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,o=!1,a=!0;var n=r.children(".page-master");c=p(n.css("min-width")),u=p(n.css("max-width"))}}function m(h){if(a){h.f7PreventSwipePanel=!0;var p="touchmove"===h.type?h.targetTouches[0].pageX:h.pageX;o||(l=i[0].offsetLeft+i[0].offsetWidth,r.addClass("view-resizing"),n.css("cursor","col-resize")),o=!0,h.preventDefault(),s=p-d.x;var f=l+s;c&&!Number.isNaN(c)&&(f=Math.max(f,c)),u&&!Number.isNaN(u)&&(f=Math.min(f,u)),f=Math.min(Math.max(f,0),t.width),e.resizableWidth=f,n[0].style.setProperty("--f7-page-master-width","".concat(f,"px")),r.trigger("view:resize",f),e.emit("local::resize viewResize",e,f)}}function v(){if(k("html").css("cursor",""),!a||!o)return a=!1,void(o=!1);a=!1,o=!1,n[0].style.setProperty("--f7-page-master-width","".concat(e.resizableWidth,"px")),r.removeClass("view-resizing")}function g(){e.resizableWidth&&(c=p(i.css("min-width")),u=p(i.css("max-width")),c&&!Number.isNaN(c)&&e.resizableWidth<c&&(e.resizableWidth=Math.max(e.resizableWidth,c)),u&&!Number.isNaN(u)&&e.resizableWidth>u&&(e.resizableWidth=Math.min(e.resizableWidth,u)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),n[0].style.setProperty("--f7-page-master-width","".concat(e.resizableWidth,"px")))}};function je(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fe=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(je()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u()(this,r),i=n.call(this,a,[e]);var o,s,l,c=e,d=k(t),h=C()(i),p={routes:[],routesAdd:[]};if(0===d.length){var f="Framework7: can't create a View instance because ";throw f+="string"==typeof t?'the selector "'.concat(t,"\" didn't match any element"):"el must be an HTMLElement or Dom7 object",new Error(f)}return h.params=z.extend(p,c.params.view,a),h.params.routes.length>0?h.routes=h.params.routes:h.routes=[].concat(c.routes,h.params.routesAdd),o="string"==typeof t?t:(d.attr("id")?"#".concat(d.attr("id")):"")+(d.attr("class")?".".concat(d.attr("class").replace(/ /g,".").replace(".active","")):""),"ios"===c.theme&&h.params.iosDynamicNavbar&&0===(s=d.children(".navbars").eq(0)).length&&(s=k('<div class="navbars"></div>')),z.extend(!1,h,{app:c,$el:d,el:d[0],name:h.params.name,main:h.params.main||d.hasClass("view-main"),$navbarsEl:s,navbarsEl:s?s[0]:void 0,selector:o,history:[],scrollHistory:{}}),d[0].f7View=h,h.useModules(),c.views.push(h),h.main&&(c.views.main=h),h.name&&(c.views[h.name]=h),h.index=c.views.indexOf(h),l=h.name?"view_".concat(h.name):h.main?"view_main":"view_".concat(h.index),h.id=l,c.initialized?h.init():c.on("init",(function(){h.init()})),L()(i,h)}return T()(r,[{key:"destroy",value:function(){var e=this,t=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),t.off("resize",e.checkMasterDetailBreakpoint),e.main?(t.views.main=null,delete t.views.main):e.name&&(t.views[e.name]=null,delete t.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,t.views.splice(t.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}},{key:"checkMasterDetailBreakpoint",value:function(e){var t=this.app,n=this.$el.hasClass("view-master-detail"),r=t.width>=this.params.masterDetailBreakpoint&&this.$el.children(".page-master").length;void 0===e&&r||!0===e?(this.$el.addClass("view-master-detail"),n||(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint"))):(this.$el.removeClass("view-master-detail"),n&&(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint")))}},{key:"initMasterDetail",value:function(){var e=this.app;this.checkMasterDetailBreakpoint=this.checkMasterDetailBreakpoint.bind(this),this.checkMasterDetailBreakpoint(),this.params.masterDetailResizable&&Be(this),e.on("resize",this.checkMasterDetailBreakpoint)}},{key:"init",value:function(){this.params.router&&(this.params.masterDetailBreakpoint>0&&this.initMasterDetail(),this.router.init(),this.$el.trigger("view:init"),this.emit("local::init viewInit",this))}}]),r}(G);Fe.use(Ye);var He=Fe;var Ue={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init:function(){!function(e){e.on("click",(function(t){var n=k(t.target),r=n.closest("a"),i=r.length>0,a=i&&r.attr("href");if(i&&(r.is(e.params.clicks.externalLinks)||a&&a.indexOf("javascript:")>=0)){var o=r.attr("target");a&&d.b.cordova&&d.b.cordova.InAppBrowser&&("_system"===o||"_blank"===o)&&(t.preventDefault(),d.b.cordova.InAppBrowser.open(a,o))}else{Object.keys(e.modules).forEach((function(r){var i=e.modules[r].clicks;i&&(t.preventF7Router||Object.keys(i).forEach((function(r){var a=n.closest(r).eq(0);a.length>0&&i[r].call(e,a,a.dataset(),t)})))}));var s={};if(i&&(t.preventDefault(),s=r.dataset()),!t.preventF7Router)if(!r.hasClass("prevent-router")&&!r.hasClass("router-prevent"))if(a&&a.length>0&&"#"!==a[0]||r.hasClass("back")){var l;if(s.view&&"current"===s.view?l=e.views.current:s.view?l=k(s.view)[0].f7View:(l=n.parents(".view")[0]&&n.parents(".view")[0].f7View,!r.hasClass("back")&&l&&l.params.linksView&&("string"==typeof l.params.linksView?l=k(l.params.linksView)[0].f7View:l.params.linksView instanceof He&&(l=l.params.linksView))),l||e.views.main&&(l=e.views.main),!l||!l.router)return;if(s.context&&"string"==typeof s.context)try{s.context=JSON.parse(s.context)}catch(e){}r[0].f7RouteProps&&(s.props=r[0].f7RouteProps),r.hasClass("back")?l.router.back(a,s):l.router.navigate(a,s)}}}))}(this)}}},ze={name:"routerTemplateLoader",proto:{templateLoader:function(e,t,n,r,i){var a=this;function o(e){var t,o;try{if("function"==typeof(o=n.context||{}))o=o.call(a);else if("string"==typeof o)try{o=JSON.parse(o)}catch(e){throw i(),e}t="function"==typeof e?e(o):l.a.compile(e)(z.extend({},o||{},{$app:a.app,$root:z.extend({},a.app.data,a.app.methods),$route:n.route,$f7route:n.route,$router:a,$f7router:a,$theme:{ios:"ios"===a.app.theme,md:"md"===a.app.theme,aurora:"aurora"===a.app.theme}}))}catch(e){throw i(),e}r(t,{context:o})}t?(a.xhr&&(a.xhr.abort(),a.xhr=!1),a.xhrRequest(t,n).then((function(e){o(e)})).catch((function(){i()}))):o(e)},modalTemplateLoader:function(e,t,n,r,i){return this.templateLoader(e,t,n,(function(e){r(e)}),i)},tabTemplateLoader:function(e,t,n,r,i){return this.templateLoader(e,t,n,(function(e){r(e)}),i)},pageTemplateLoader:function(e,t,n,r,i){var a=this;return a.templateLoader(e,t,n,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(a.getPageEl(e),t)}),i)}}},Ve={name:"routerComponentLoader",proto:{componentLoader:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=this,s=o.app,l="string"==typeof e?e:t,c=o.replaceRequestUrlParams(l,r);function u(e){var t=r.context||{};if("function"==typeof t)t=t.call(o);else if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw a(e),e}var n=z.merge({},t,{$route:r.route,$f7route:r.route,$router:o,$f7router:o,$theme:{ios:"ios"===s.theme,md:"md"===s.theme,aurora:"aurora"===s.theme}});r.componentOptions&&r.componentOptions.el&&(e.el=r.componentOptions.el),r.componentOptions&&r.componentOptions.root&&(e.root=r.componentOptions.root),s.component.create(e,n).then((function(e){i(e.el)})).catch((function(e){throw a(e),new Error(e)}))}c&&o.params.componentCache&&o.cache.components.forEach((function(e){e.url===c&&(n=e.component)})),c&&n?u(n):c&&!n?(o.xhr&&(o.xhr.abort(),o.xhr=!1),o.xhrRequest(l,r).then((function(e){var t=s.component.parse(e);o.params.componentCache&&o.cache.components.push({url:c,component:t}),u(t)})).catch((function(e){throw a(),e}))):u(e)},modalComponentLoader:function(e,t,n,r,i,a){this.componentLoader(t,n,r,(function(e){i(e)}),a)},tabComponentLoader:function(e,t,n,r,i,a){this.componentLoader(t,n,r,(function(e){i(e)}),a)},pageComponentLoader:function(e,t,n,r,i,a){this.componentLoader(t,n,r,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(e,t)}),a)}}};function qe(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:void 0===t?void 0:t.key}}var We=qe,Ge=Array.isArray;function Ke(e){return"string"==typeof e||"number"==typeof e}function Je(e,t,n){var r,i,a,o={};if(void 0!==n?(o=t,Ge(n)?r=n:Ke(n)?i=n:n&&n.sel&&(r=[n])):void 0!==t&&(Ge(t)?r=t:Ke(t)?i=t:t&&t.sel?r=[t]:o=t),Ge(r))for(a=0;a<r.length;++a)Ke(r[a])&&(r[a]=qe(void 0,void 0,void 0,r[a],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,n,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(var i=0;i<n.length;++i){var a=n[i].data;void 0!==a&&e(a,n[i].children,n[i].sel)}}(o,r,e),qe(e,o,r,i,void 0)}var Xe,Qe,Ze=Je,et={},tt="area base br col command embed hr img input keygen link menuitem meta param source track wbr".split(" "),nt="hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate".split(" "),rt="hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate".split(" "),it=d.a.createElement("div");function at(e){return e.split("-").map((function(e,t){return 0===t?e.toLowerCase():e[0].toUpperCase()+e.substr(1)})).join("")}function ot(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach((function(n){e[at(n)]=t[n]}))})),e}function st(e,t,n,r,i){var a={},o=[],s=[],l=[],c=[],u=!1;e&&e.attrs&&e.attrs.component&&(i=e.attrs.component,delete e.attrs.component,u=!0);var d=i&&i.indexOf("-")>0&&et[i];if(d&&(o.push((function(n){(n.sel===i||u)&&function(e){var t=e.app,n=e.vnode,r=e.tagName,i=e.data;t.component.create(Object.assign({el:n.elm},et[r]),{$props:ot(i.attrs||{},i.props||{})},n.children).then((function(e){n.data&&n.data.on&&e&&e.$el&&Object.keys(n.data.on).forEach((function(t){e.$el.on(t,n.data.on[t])})),n.elm.__component__=e}))}({app:t,vnode:n,tagName:i,data:e})})),s.push((function(e){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var n=t.el,r=t.$el;e.data&&e.data.on&&r&&Object.keys(e.data.on).forEach((function(t){r.off(t,e.data.on[t])})),t.$destroy&&t.$destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),delete e.elm.__component__}}(e)})),l.push((function(e,t){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var n=ot(e.data.attrs||{},e.data.props||{});t.$children=e.children,Object.assign(t.$props,n),t.$update()}}(t)}))),!d){if(!e||!e.attrs||!e.attrs.class)return a;e.attrs.class.split(" ").forEach((function(e){n||o.push.apply(o,I()(t.getVnodeHooks("insert",e))),s.push.apply(s,I()(t.getVnodeHooks("destroy",e))),l.push.apply(l,I()(t.getVnodeHooks("update",e))),c.push.apply(c,I()(t.getVnodeHooks("postpatch",e)))}))}return r&&!n&&c.push((function(e,t){var n=t||e;n&&n.data&&n.data.context&&n.data.context.$options.updated&&n.data.context.$hook("updated")})),0===o.length&&0===s.length&&0===l.length&&0===c.length||(o.length&&(a.insert=function(e){o.forEach((function(t){return t(e)}))}),s.length&&(a.destroy=function(e){s.forEach((function(t){return t(e)}))}),l.length&&(a.update=function(e,t){l.forEach((function(n){return n(e,t)}))}),c.length&&(a.postpatch=function(e,t){c.forEach((function(n){return n(e,t)}))})),a}function lt(e,t,n,r,i,a){var o={context:t},s=e.attributes;Array.prototype.forEach.call(s,(function(e){var n=e.name,r=e.value;if(nt.indexOf(n)>=0)o.props||(o.props={}),"readonly"===n&&(n="readOnly"),rt.indexOf(n)>=0?o.props[n]=!1!==r:o.props[n]=r;else if("key"===n)o.key=r;else if(0===n.indexOf("@")){o.on||(o.on={});var a=n.substr(1),s=!1,l=!1,c=!1;a.indexOf(".")>=0&&a.split(".").forEach((function(e,t){0===t?a=e:("stop"===e&&(s=!0),"prevent"===e&&(l=!0),"once"===e&&(c=!0))})),o.on[a]=function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.stop,o=i.prevent,s=i.once,l=!1,c=[],u=!0;if((n=e.indexOf("(")<0?e:e.split("(")[0]).indexOf(".")>=0)n.split(".").forEach((function(e,i){if(0!==i||"this"!==e){if(0===i&&"window"===e)return r=d.b,void(u=!1);if(r||(r=t),!r[e])throw new Error("Framework7: Component doesn't have method \"".concat(n.split(".").slice(0,i+1).join("."),'"'));r=r[e]}}));else{if(!t[n])throw new Error("Framework7: Component doesn't have method \"".concat(n,'"'));r=t[n]}function h(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var d=i[0];if(!s||!l){if(a&&d.stopPropagation(),o&&d.preventDefault(),l=!0,e.indexOf("(")<0)c=i;else{var h=e.split("(")[1].split(")")[0].replace(/'[^']*'|"[^"]*"/g,(function(e){return e.replace(/,/g,"<_comma_>")})).split(",").map((function(e){return e.replace(/<_comma_>/g,",")}));h.forEach((function(e){var n=e.trim();if(isNaN(n))if("true"===n)n=!0;else if("false"===n)n=!1;else if("null"===n)n=null;else if("undefined"===n)n=void 0;else if('"'===n[0])n=n.replace(/"/g,"");else if("'"===n[0])n=n.replace(/'/g,"");else if(n.indexOf(".")>0){var r;n.split(".").forEach((function(e){r||(r=t),r=r[e]})),n=r}else n=t[n];else n=parseFloat(n);c.push(n)}))}r.apply(void 0,I()(c))}}return u&&(r=r.bind(t)),h}(r,t,{stop:s,prevent:l,once:c})}else if("style"===n)if(r.indexOf("{")>=0&&r.indexOf("}")>=0)try{o.style=JSON.parse(r)}catch(e){o.attrs||(o.attrs={}),o.attrs.style=r}else o.attrs||(o.attrs={}),o.attrs.style=r;else o.attrs||(o.attrs={}),o.attrs[n]=r,"id"!==n||o.key||i||(o.key=r)})),i&&t&&t.$id&&t.$style&&t.$styleScoped&&(o.attrs||(o.attrs={}),o.attrs["data-f7-".concat(t.$id)]="");var l=st(o,n,r,i,a);return l.prepatch=function(e,t){e&&t&&e&&e.data&&e.data.props&&Object.keys(e.data.props).forEach((function(n){rt.indexOf(n)<0||(t.data||(t.data={}),t.data.props||(t.data.props={}),!0!==e.data.props[n]||n in t.data.props||(t.data.props[n]=!1))}))},l&&(o.hook=l),o}function ct(e,t,n,r){for(var i=[],a=e.childNodes,o=0;o<a.length;o+=1){var s=ut(a[o],t,n,r);Array.isArray(s)?i.push.apply(i,I()(s)):s&&i.push(s)}return i}function ut(e,t,n,r,i){if(3===e.nodeType)return e.textContent;if(1!==e.nodeType)return null;var a=e instanceof d.b.SVGElement?e.nodeName:e.nodeName.toLowerCase();return"slot"===a?function(e,t,n,r){var i=e.getAttribute("name")||"default",a=(t.$children||[]).filter((function(e){var t="default";return e.data&&(t=e.data.attrs&&e.data.attrs.slot||"default"),t===i}));return 0===a.length?ct(e,t,n,r):a}(e,t,n,r):Ze(a,lt(e,t,n,r,i,a),tt.indexOf(a)>=0?[]:ct(e,t,n,r))}var dt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=t.trim(),a=it;0===i.indexOf("<tr")&&(Xe||(Xe=d.a.createElement("tbody")),a=Xe),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(Qe||(Qe=d.a.createElement("tr")),a=Qe),a.innerHTML=i;for(var o=0;o<a.childNodes.length;o+=1)e||1!==a.childNodes[o].nodeType||(e=a.childNodes[o]);var s=ut(e,n,n.$app,r,!0);return a.innerHTML="",s};var ht={createElement:function(e){return document.createElement(e)},createElementNS:function(e,t){return document.createElementNS(e,t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){n&&n.parentNode!==e&&n.__component__&&(n=n.__component__.el),e.insertBefore(t,n)},removeChild:function(e,t){e&&e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function pt(e){return void 0===e}function ft(e){return void 0!==e}var mt=We("",{},[],void 0,void 0);function vt(e,t){return e.key===t.key&&e.sel===t.sel}function gt(e,t,n){var r,i,a,o={};for(r=t;r<=n;++r)null!=(a=e[r])&&void 0!==(i=a.key)&&(o[i]=r);return o}var yt=["create","update","remove","destroy","pre","post"];function bt(e,t){var n,r=t.elm,i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i=i||{},a=a||{}){var o=a[n];i[n]!==o&&(!0===o?r.setAttribute(n,""):!1===o?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,o):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}var _t={create:bt,update:bt};function wt(e,t){var n,r,i=t.elm,a=e.data.props,o=t.data.props;if((a||o)&&a!==o){for(n in o=o||{},a=a||{})o[n]||delete i[n];for(n in o)r=o[n],a[n]===r||"value"===n&&i[n]===r||(i[n]=r)}}var kt={create:wt,update:wt},Et="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout;function Tt(e,t,n){var r;r=function(){e[t]=n},Et((function(){Et(r)}))}function St(e,t){var n,r,i=t.elm,a=e.data.style,o=t.data.style;if((a||o)&&a!==o){o=o||{};var s="delayed"in(a=a||{});for(r in a)o[r]||("-"===r[0]&&"-"===r[1]?i.style.removeProperty(r):i.style[r]="");for(r in o)if(n=o[r],"delayed"===r&&o.delayed)for(var l in o.delayed)n=o.delayed[l],s&&n===a.delayed[l]||Tt(i.style,l,n);else"remove"!==r&&n!==a[r]&&("-"===r[0]&&"-"===r[1]?i.style.setProperty(r,n):i.style[r]=n)}}function Ct(e,t,n){var r=e.type,i=n.data.on;i&&i[r]&&function(e,t,n){"function"==typeof e&&e.apply(void 0,[t].concat(I()(n)))}(i[r],e,t)}function xt(e,t){var n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm;if(n!==a&&(n&&r&&(a?Object.keys(n).forEach((function(e){a[e]||k(i).off(e,r)})):Object.keys(n).forEach((function(e){k(i).off(e,r)}))),a)){var s=e.listener||function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Ct(t,r,e.vnode)};t.listener=s,s.vnode=t,n?Object.keys(a).forEach((function(e){n[e]||k(o).on(e,s)})):Object.keys(a).forEach((function(e){k(o).on(e,s)}))}}var Mt=function(e,t){var n,r,i={},a=void 0!==t?t:ht;for(n=0;n<yt.length;++n)for(i[yt[n]]=[],r=0;r<e.length;++r){var o=e[r][yt[n]];void 0!==o&&i[yt[n]].push(o)}function s(e,t){return function(){if(0==--t){var n=a.parentNode(e);a.removeChild(n,e)}}}function l(e,t){var n,r=e.data;void 0!==r&&ft(n=r.hook)&&ft(n=n.init)&&(n(e),r=e.data);var o=e.children,s=e.sel;if("!"===s)pt(e.text)&&(e.text=""),e.elm=a.createComment(e.text);else if(void 0!==s){var c=s.indexOf("#"),u=s.indexOf(".",c),d=c>0?c:s.length,h=u>0?u:s.length,p=-1!==c||-1!==u?s.slice(0,Math.min(d,h)):s,f=e.elm=ft(r)&&ft(n=r.ns)?a.createElementNS(n,p):a.createElement(p);for(d<h&&f.setAttribute("id",s.slice(d+1,h)),u>0&&f.setAttribute("class",s.slice(h+1).replace(/\./g," ")),n=0;n<i.create.length;++n)i.create[n](mt,e);if(Ge(o))for(n=0;n<o.length;++n){var m=o[n];null!=m&&a.appendChild(f,l(m,t))}else Ke(e.text)&&a.appendChild(f,a.createTextNode(e.text));ft(n=e.data.hook)&&(n.create&&n.create(mt,e),n.insert&&t.push(e))}else e.elm=a.createTextNode(e.text);return e.elm}function c(e,t,n,r,i,o){for(;r<=i;++r){var s=n[r];null!=s&&a.insertBefore(e,l(s,o),t)}}function u(e){var t,n,r=e.data;if(void 0!==r){for(ft(t=r.hook)&&ft(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(void 0!==e.children)for(n=0;n<e.children.length;++n)null!=(t=e.children[n])&&"string"!=typeof t&&u(t)}}function d(e,t,n,r){for(;n<=r;++n){var o=void 0,l=void 0,c=void 0,d=t[n];if(null!=d)if(ft(d.sel)){for(u(d),l=i.remove.length+1,c=s(d.elm,l),o=0;o<i.remove.length;++o)i.remove[o](d,c);ft(o=d.data)&&ft(o=o.hook)&&ft(o=o.remove)?o(d,c):c()}else a.removeChild(e,d.elm)}}function h(e,t,n){var r,o;ft(r=t.data)&&ft(o=r.hook)&&ft(r=o.prepatch)&&r(e,t);var s=t.elm=e.elm,u=e.children,p=t.children;if(e!==t){if(void 0!==t.data){for(r=0;r<i.update.length;++r)i.update[r](e,t);ft(r=t.data.hook)&&ft(r=r.update)&&r(e,t)}pt(t.text)?ft(u)&&ft(p)?u!==p&&function(e,t,n,r){for(var i,o,s,u=0,p=0,f=t.length-1,m=t[0],v=t[f],g=n.length-1,y=n[0],b=n[g];u<=f&&p<=g;)null==m?m=t[++u]:null==v?v=t[--f]:null==y?y=n[++p]:null==b?b=n[--g]:vt(m,y)?(h(m,y,r),m=t[++u],y=n[++p]):vt(v,b)?(h(v,b,r),v=t[--f],b=n[--g]):vt(m,b)?(h(m,b,r),a.insertBefore(e,m.elm,a.nextSibling(v.elm)),m=t[++u],b=n[--g]):vt(v,y)?(h(v,y,r),a.insertBefore(e,v.elm,m.elm),v=t[--f],y=n[++p]):(void 0===i&&(i=gt(t,u,f)),pt(o=i[y.key])?(a.insertBefore(e,l(y,r),m.elm),y=n[++p]):((s=t[o]).sel!==y.sel?a.insertBefore(e,l(y,r),m.elm):(h(s,y,r),t[o]=void 0,a.insertBefore(e,s.elm,m.elm)),y=n[++p]));(u<=f||p<=g)&&(u>f?c(e,null==n[g+1]?null:n[g+1].elm,n,p,g,r):d(e,t,u,f))}(s,u,p,n):ft(p)?(ft(e.text)&&a.setTextContent(s,""),c(s,null,p,0,p.length-1,n)):ft(u)?d(s,u,0,u.length-1):ft(e.text)&&a.setTextContent(s,""):e.text!==t.text&&a.setTextContent(s,t.text),ft(o)&&ft(r=o.postpatch)&&r(e,t)}}return function(e,t){var n,r,o,s=[];for(n=0;n<i.pre.length;++n)i.pre[n]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){var t=e.id?"#"+e.id:"",n=e.className?"."+e.className.split(" ").join("."):"";return We(a.tagName(e).toLowerCase()+t+n,{},[],void 0,e)}(e)),vt(e,t)?h(e,t,s):(r=e.elm,o=a.parentNode(r),l(t,s),null!==o&&(a.insertBefore(o,t.elm,a.nextSibling(r)),d(o,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<i.post.length;++n)i.post[n]();return t}}([_t,kt,{create:St,update:St,destroy:function(e){var t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){var n=e.data.style;if(n&&n.remove){var r,i=e.elm,a=0,o=n.remove,s=0,l=[];for(r in o)l.push(r),i.style[r]=o[r];for(var c=getComputedStyle(i)["transition-property"].split(", ");a<c.length;++a)-1!==l.indexOf(c[a])&&s++;i.addEventListener("transitionend",(function(e){e.target===i&&--s,0===s&&t()}))}else t()}},{create:xt,update:xt,destroy:xt}]),$t={},Lt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;u()(this,e);var a=z.id(),o=this;z.merge(o,{$props:{}},r,{$:k,$$:k,$dom7:k,$app:t,$f7:t,$options:z.extend({id:a},n),$id:n.isClassComponent?o.constructor.id:n.id||a,$mixins:n.isClassComponent?o.constructor.mixins:n.mixins,$children:i||[],$isRootComponent:!!n.root});var s=o.$options;if(o.$mixins&&o.$mixins.length)for(var l=o.$mixins.length-1;l>=0;l-=1){var c=o.$mixins[l];"string"==typeof c&&($t[c]?o.$mixins[l]=$t[c]:o.$mixins.splice(l,1))}Object.defineProperty(o,"$slots",{enumerable:!0,configurable:!0,get:function(){var e={};return o.$children.forEach((function(t){var n="default";t.data&&(n=t.data.attrs&&t.data.attrs.slot||"default"),e[n]||(e[n]=[]),e[n].push(t)})),e}}),Object.defineProperty(o,"$root",{enumerable:!0,configurable:!0,get:function(){if(o.$isRootComponent)return o;if(t.rootComponent)return o.$onRootUpdated||(o.$onRootUpdated=function(){return o.$update()},t.on("rootComponentUpdated",o.$onRootUpdated)),t.rootComponent;var e=z.merge({},t.data,t.methods);return d.b&&d.b.Proxy&&(e=new d.b.Proxy(e,{set:function(e,n,r){t.data[n]=r},deleteProperty:function(e,n){delete t.data[n],delete t.methods[n]},has:function(e,n){return n in t.data||n in t.methods}})),e},set:function(){}}),s.render&&(s.render=s.render.bind(o));var h={};return o.$mixins&&o.$mixins.length&&o.$mixins.forEach((function(e){e.methods&&Object.assign(h,e.methods)})),s.methods&&Object.assign(h,s.methods),Object.keys(h).forEach((function(e){o[e]=h[e].bind(o)})),s.on&&Object.keys(s.on).forEach((function(e){s.on[e]=s.on[e].bind(o)})),s.once&&Object.keys(s.once).forEach((function(e){s.once[e]=s.once[e].bind(o)})),o.$style=s.isClassComponent?o.constructor.style:s.style,o.$styleScoped=s.isClassComponent?o.constructor.styleScoped:s.styleScoped,o.__updateQueue=[],new Promise((function(e,t){o.$hook("data",!0).then((function(t){var n={};t.forEach((function(e){Object.assign(n,e||{})})),z.extend(o,n),o.$hook("beforeCreate");var r=o.$render();if(o.$options.el)return r=r.trim(),o.$vnode=dt(r,o,!0),o.$style&&(o.$styleEl=d.a.createElement("style"),o.$styleEl.innerHTML=o.$style),o.el=o.$options.el,Mt(o.el,o.$vnode),o.el=o.$vnode.elm,o.$el=k(o.el),o.$attachEvents(),o.el.f7Component=o,o.$hook("created"),o.$mount(),void e(o);r&&"string"==typeof r?(r=r.trim(),o.$vnode=dt(r,o,!0),o.el=d.a.createElement(o.$vnode.sel||"div"),Mt(o.el,o.$vnode),o.$el=k(o.el)):r&&(o.el=r,o.$el=k(o.el)),o.$style&&(o.$styleEl=d.a.createElement("style"),o.$styleEl.innerHTML=o.$style),o.$attachEvents(),o.el&&(o.el.f7Component=o),o.$hook("created"),e(o)})).catch((function(e){t(e)}))}))}return T()(e,[{key:"$attachEvents",value:function(){var e=this,t=e.$options,n=e.$el;e.$mixins&&e.$mixins.length&&(e.$detachEventsHandlers={},e.$mixins.forEach((function(t){t.on&&Object.keys(t.on).forEach((function(r){var i=t.on[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(i),n.on(z.eventNameToColonCase(r),i)})),t.once&&Object.keys(t.once).forEach((function(r){var i=t.once[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(i),n.once(z.eventNameToColonCase(r),i)}))}))),t.on&&Object.keys(t.on).forEach((function(e){n.on(z.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){n.once(z.eventNameToColonCase(e),t.once[e])}))}},{key:"$detachEvents",value:function(){var e=this,t=e.$options,n=e.$el;t.on&&Object.keys(t.on).forEach((function(e){n.off(z.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){n.off(z.eventNameToColonCase(e),t.once[e])})),e.$detachEventsHandlers&&(Object.keys(e.$detachEventsHandlers).forEach((function(t){e.$detachEventsHandlers[t].forEach((function(e){n.off(z.eventNameToColonCase(t),e)})),e.$detachEventsHandlers[t]=[],delete e.$detachEventsHandlers[t]})),e.$detachEventsHandlers=null,delete e.$detachEventsHandlers)}},{key:"$render",value:function(){var e=this.$options,t="";return e.render?t=e.render():this.render?t=this.render.call(this):e.template&&(t="string"==typeof e.template?l.a.compile(e.template)(this):e.template(this)),t}},{key:"$startUpdateQueue",value:function(){var e=this;e.__requestAnimationFrameId||(e.__requestAnimationFrameId=d.b.requestAnimationFrame((function(){e.__updateIsPending&&function(){var t=e.$render();if(t&&"string"==typeof t){t=t.trim();var n=dt(t,e,!1);e.$vnode=Mt(e.$vnode,n)}}();var t=I()(e.__updateQueue);e.__updateQueue=[],e.__updateIsPending=!1,d.b.cancelAnimationFrame(e.__requestAnimationFrameId),delete e.__requestAnimationFrameId,delete e.__updateIsPending,t.forEach((function(e){return e()})),t=[]})))}},{key:"$tick",value:function(e){var t=this;return new Promise((function(n){t.__updateQueue.push((function(){n(),e&&e()})),t.$startUpdateQueue()}))}},{key:"$update",value:function(e){var t=this;return new Promise((function(n){t.__updateIsPending=!0,t.__updateQueue.push((function(){n(),e&&e(),t.$isRootComponent&&t.$f7.emit("rootComponentUpdated")})),t.$startUpdateQueue()}))}},{key:"$setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this;return z.merge(n,e),n.$update(t)}},{key:"$f7ready",value:function(e){var t=this;this.$f7.initialized?e(this.$f7):this.$f7.once("init",(function(){e(t.$f7)}))}},{key:"$mount",value:function(e){this.$hook("beforeMount"),this.$styleEl&&k("head").append(this.$styleEl),e&&e(this.el),this.$hook("mounted")}},{key:"$destroy",value:function(){this.$hook("beforeDestroy"),this.$styleEl&&k(this.$styleEl).remove(),this.$onRootUpdated&&(this.$f7.off("rootComponentUpdated",this.$onRootUpdated),delete this.$onRootUpdated),this.$detachEvents(),this.$hook("destroyed"),this.el&&this.el.f7Component&&(this.el.f7Component=null,delete this.el.f7Component),this.$vnode&&(this.$vnode=Mt(this.$vnode,{sel:this.$vnode.sel,data:{}})),d.b.cancelAnimationFrame(this.__requestAnimationFrameId),z.deleteProps(this)}},{key:"$hook",value:function(e,t){var n=this;if(t){var r=[];return n.$mixins&&n.$mixins.length&&n.$mixins.forEach((function(t){t[e]&&r.push(t[e].call(n))})),n[e]&&"function"==typeof n[e]&&r.push(n[e].call(n)),n.$options[e]&&r.push(n.$options[e].call(n)),Promise.all(r)}return n.$mixins&&n.$mixins.length&&n.$mixins.forEach((function(t){t[e]&&"function"==typeof t[e]&&t[e].call(n)})),n.$options[e]?n.$options[e].call(n):n[e]?n[e].call(n):void 0}}]),e}();var Pt=function(e){var t,n=z.id(),r="f7_component_create_callback_".concat(n),i="f7_component_render_callback_".concat(n),a=e.match(/<template([ ]?)([a-z0-9-]*)>/),o=a[2]||"t7";a&&(t=e.split(/<template[ ]?[a-z0-9-]*>/).filter((function(e,t){return t>0})).join("<template>").split("</template>").filter((function(e,t,n){return t<n.length-1})).join("</template>").replace(/{{#raw}}([ \n]*)<template/g,"{{#raw}}<template").replace(/\/template>([ \n]*){{\/raw}}/g,"/template>{{/raw}}").replace(/([ \n])<template/g,"$1{{#raw}}<template").replace(/\/template>([ \n])/g,"/template>{{/raw}}$1"));var s,c,u=null,h=!1;if(e.indexOf("<style>")>=0?u=e.split("<style>")[1].split("</style>")[0]:e.indexOf("<style scoped>")>=0&&(h=!0,u=(u=e.split("<style scoped>")[1].split("</style>")[0]).replace(/{{this}}/g,"[data-f7-".concat(n,"]")).replace(/[\n]?([^{^}]*){/gi,(function(e,t){return t=t.split(",").map((function(e){return e.indexOf("@")>=0||e.indexOf("[data-f7-".concat(n,"]"))>=0?e:"[data-f7-".concat(n,"] ").concat(e.trim())})).join(", "),"\n".concat(t," {")}))),e.indexOf("<script>")>=0){var p=e.split("<script>");s=p[p.length-1].split("<\/script>")[0].trim()}else s="return {}";s&&s.trim()||(s="return {}"),s="window.".concat(r," = function () {").concat(s,"}"),(c=d.a.createElement("script")).innerHTML=s,k("head").append(c);var f=d.b[r](),m="function"==typeof f;if(k(c).remove(),d.b[r]=null,delete d.b[r],f.template||f.render||(f.template=t,f.templateType=o),f.template){if("t7"===f.templateType)if(m){var v=l.a.compile(f.template);f.prototype.render=function(){return v(this)}}else f.template=l.a.compile(f.template);if("es"===f.templateType){var g="window.".concat(i," = function () {\n        return function render() {\n          return `").concat(f.template,"`;\n        }\n      }");(c=d.a.createElement("script")).innerHTML=g,k("head").append(c),m?f.prototype.render=f.template:f.render=d.b[i](),k(c).remove(),d.b[i]=null,delete d.b[i]}}return m&&(delete f.template,delete f.templateType),u&&(f.style=u,f.styleScoped=h),f.id=n,f};function Ot(e,t){$t[e]=t}function Dt(e,t){et[e]=t}var It={name:"component",static:{Component:Lt,registerComponentMixin:Ot,registerComponent:Dt},create:function(){var e=this;e.component={registerComponentMixin:Ot,registerComponent:Dt,parse:function(e){return Pt(e)},create:function(t,n,r){return"function"==typeof t?new t(e,{isClassComponent:!0},n,r):new Lt(e,t,n,r)}}}},At={name:"history",static:{history:Me},on:{init:function(){Me.init(this)}}},Nt={registrations:[],register:function(e,t){var n=this;return"serviceWorker"in d.b.navigator&&n.serviceWorker.container?new Promise((function(r,i){n.serviceWorker.container.register(e,t?{scope:t}:{}).then((function(e){Nt.registrations.push(e),n.emit("serviceWorkerRegisterSuccess",e),r(e)})).catch((function(e){n.emit("serviceWorkerRegisterError",e),i(e)}))})):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))},unregister:function(e){var t,n=this;return"serviceWorker"in d.b.navigator&&n.serviceWorker.container?(t=e?Array.isArray(e)?e:[e]:Nt.registrations,Promise.all(t.map((function(e){return new Promise((function(t,r){e.unregister().then((function(){Nt.registrations.indexOf(e)>=0&&Nt.registrations.splice(Nt.registrations.indexOf(e),1),n.emit("serviceWorkerUnregisterSuccess",e),t()})).catch((function(t){n.emit("serviceWorkerUnregisterError",e,t),r(t)}))}))})))):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))}},Rt={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create:function(){z.extend(this,{serviceWorker:{container:"serviceWorker"in d.b.navigator?d.b.navigator.serviceWorker:void 0,registrations:Nt.registrations,register:Nt.register.bind(this),unregister:Nt.unregister.bind(this)}})},on:{init:function(){if("serviceWorker"in d.b.navigator){var e=this;if(e.serviceWorker.container){var t=e.params.serviceWorker.path,n=e.params.serviceWorker.scope;if(t&&(!Array.isArray(t)||t.length))(Array.isArray(t)?t:[t]).forEach((function(t){e.serviceWorker.register(t,n)}))}}}}},Yt={hide:function(){V.a.cordova&&d.b.StatusBar&&d.b.StatusBar.hide()},show:function(){V.a.cordova&&d.b.StatusBar&&d.b.StatusBar.show()},onClick:function(){var e;(e=k(".popup.modal-in").length>0?k(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):k(".panel.panel-in").length>0?k(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):k(".views > .view.tab-active").length>0?k(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):k(".views").length>0?k(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):this.root.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"))&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor:function(e){V.a.cordova&&d.b.StatusBar&&("white"===e?d.b.StatusBar.styleLightContent():d.b.StatusBar.styleDefault())},setBackgroundColor:function(e){V.a.cordova&&d.b.StatusBar&&d.b.StatusBar.backgroundColorByHexString(e)},isVisible:function(){return!(!V.a.cordova||!d.b.StatusBar)&&d.b.StatusBar.isVisible},overlaysWebView:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];V.a.cordova&&d.b.StatusBar&&d.b.StatusBar.overlaysWebView(e)},init:function(){var e=this.params.statusbar;e.enabled&&(V.a.cordova&&d.b.StatusBar&&(e.scrollTopOnClick&&k(d.b).on("statusTap",Yt.onClick.bind(this)),V.a.ios&&(e.iosOverlaysWebView?d.b.StatusBar.overlaysWebView(!0):d.b.StatusBar.overlaysWebView(!1),"white"===e.iosTextColor?d.b.StatusBar.styleLightContent():d.b.StatusBar.styleDefault()),V.a.android&&(e.androidOverlaysWebView?d.b.StatusBar.overlaysWebView(!0):d.b.StatusBar.overlaysWebView(!1),"white"===e.androidTextColor?d.b.StatusBar.styleLightContent():d.b.StatusBar.styleDefault())),e.iosBackgroundColor&&V.a.ios&&Yt.setBackgroundColor(e.iosBackgroundColor),e.androidBackgroundColor&&V.a.android&&Yt.setBackgroundColor(e.androidBackgroundColor))}},Bt={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create:function(){z.extend(this,{statusbar:{hide:Yt.hide,show:Yt.show,overlaysWebView:Yt.overlaysWebView,setTextColor:Yt.setTextColor,setBackgroundColor:Yt.setBackgroundColor,isVisible:Yt.isVisible,init:Yt.init.bind(this)}})},on:{init:function(){Yt.init.call(this)}}};var jt={name:"view",params:{view:{name:void 0,main:!1,router:!0,linksView:null,stackPages:!1,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:6e5,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,auroraSwipeBack:!1,auroraSwipeBackAnimateShadow:!1,auroraSwipeBackAnimateOpacity:!0,auroraSwipeBackActiveArea:30,auroraSwipeBackThreshold:0,pushState:!1,pushStateRoot:void 0,pushStateAnimate:!0,pushStateAnimateOnLoad:!1,pushStateSeparator:"#!",pushStateOnLoad:!0,animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,auroraPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:He},create:function(){var e=this;z.extend(e,{views:z.extend([],{create:function(t,n){return new He(e,t,n)},get:function(e){var t=k(e);if(t.length&&t[0].f7View)return t[0].f7View}})}),Object.defineProperty(e.views,"current",{enumerable:!0,configurable:!0,get:function(){return function(e){var t=k(".popover.modal-in .view"),n=k(".popup.modal-in .view"),r=k(".panel.panel-in .view"),i=k(".views");0===i.length&&(i=e.root);var a=i.children(".view");if(a.length>1&&a.hasClass("tab")&&(a=i.children(".view.tab-active")),t.length>0&&t[0].f7View)return t[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(r.length>0&&r[0].f7View)return r[0].f7View;if(a.length>0){if(1===a.length&&a[0].f7View)return a[0].f7View;if(a.length>1)return e.views.main}}(e)}}),e.view=e.views},on:{init:function(){var e=this;k(".view-init").each((function(t,n){if(!n.f7View){var r=k(n).dataset();e.views.create(n,r)}}))},modalOpen:function(e){var t=this;e.$el.find(".view-init").each((function(e,n){if(!n.f7View){var r=k(n).dataset();t.views.create(n,r)}}))},modalBeforeDestroy:function(e){e&&e.$el&&e.$el.find(".view-init").each((function(e,t){var n=t.f7View;n&&n.destroy()}))}},vnode:{"view-init":{insert:function(e){var t=e.elm;if(!t.f7View){var n=k(t).dataset();this.views.create(t,n)}},destroy:function(e){var t=e.elm.f7View;t&&t.destroy()}}}},Ft={size:function(e){var t=this,n=k(e);if(n.hasClass("navbars"))n=n.children(".navbar").each((function(e,n){t.navbar.size(n)}));else{var r=n.children(".navbar-inner");if(r.length){var i=r.hasClass("navbar-inner-centered-title")||t.params.navbar["".concat(t.theme,"CenterTitle")],a="ios"===t.theme&&!t.params.navbar["".concat(t.theme,"CenterTitle")];if((i||a)&&!(n.hasClass("stacked")||n.parents(".stacked").length>0||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)){"ios"!==t.theme&&t.params.navbar["".concat(t.theme,"CenterTitle")]&&r.addClass("navbar-inner-centered-title"),"ios"!==t.theme||t.params.navbar.iosCenterTitle||r.addClass("navbar-inner-left-title");var o,s,l,c,u=n.parents(".view").eq(0),d=t.rtl?r.children(".right"):r.children(".left"),h=t.rtl?r.children(".left"):r.children(".right"),p=r.children(".title"),f=r.children(".subnavbar"),m=0===d.length,v=0===h.length,g=m?0:d.outerWidth(!0),y=v?0:h.outerWidth(!0),b=p.outerWidth(!0),_=r.styles(),w=r[0].offsetWidth-parseInt(_.paddingLeft,10)-parseInt(_.paddingRight,10),E=n.hasClass("navbar-previous"),T=r.hasClass("sliding");u.length>0&&u[0].f7View&&(s=(o=u[0].f7View.router)&&o.dynamicNavbar),v&&(l=w-b),m&&(l=0),m||v||(l=(w-y-b+g)/2);var S=(w-b)/2;w-g-y>b?(S<g&&(S=g),S+b>w-y&&(S=w-y-b),c=S-l):c=0;var C=t.rtl?-1:1;if(s&&"ios"===t.theme){if(p.hasClass("sliding")||p.length>0&&T){var x=-(l+c)*C,M=(w-l-c-b)*C;if(E&&o&&o.params.iosAnimateNavbarBackIcon){var $=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");$.length>0&&(x+=$[0].offsetLeft)}p[0].f7NavbarLeftOffset=x,p[0].f7NavbarRightOffset=M}if(!m&&(d.hasClass("sliding")||T))if(t.rtl)d[0].f7NavbarLeftOffset=-(w-d[0].offsetWidth)/2*C,d[0].f7NavbarRightOffset=g*C;else if(d[0].f7NavbarLeftOffset=-g,d[0].f7NavbarRightOffset=(w-d[0].offsetWidth)/2,o&&o.params.iosAnimateNavbarBackIcon&&d.find(".back .icon").length>0&&d.find(".back .icon ~ span").length){var L=d[0].f7NavbarLeftOffset,P=d[0].f7NavbarRightOffset;d[0].f7NavbarLeftOffset=0,d[0].f7NavbarRightOffset=0,d.find(".back .icon ~ span")[0].f7NavbarLeftOffset=L,d.find(".back .icon ~ span")[0].f7NavbarRightOffset=P-d.find(".back .icon")[0].offsetWidth}v||!h.hasClass("sliding")&&!T||(t.rtl?(h[0].f7NavbarLeftOffset=-y*C,h[0].f7NavbarRightOffset=(w-h[0].offsetWidth)/2*C):(h[0].f7NavbarLeftOffset=-(w-h[0].offsetWidth)/2,h[0].f7NavbarRightOffset=y)),f.length&&(f.hasClass("sliding")||T)&&(f[0].f7NavbarLeftOffset=t.rtl?f[0].offsetWidth:-f[0].offsetWidth,f[0].f7NavbarRightOffset=-f[0].f7NavbarLeftOffset)}if(i){var O=c;t.rtl&&m&&v&&p.length>0&&(O=-O),p.css({left:"".concat(O,"px")})}}}}},hide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,i=k(e),a=i.hasClass("navbar")&&i.parent(".navbars").length;if(a&&(i=i.parents(".navbars")),i.length&&!i.hasClass("navbar-hidden")){var o="navbar-hidden".concat(t?" navbar-transitioning":""),s=a?i.find(".navbar-current .title-large").length:i.find(".title-large").length;s&&(o+=" navbar-large-hidden"),n&&(o+=" navbar-hidden-statusbar"),i.transitionEnd((function(){i.removeClass("navbar-transitioning")})),i.addClass(o),a?i.children(".navbar").each((function(e,t){k(t).trigger("navbar:hide"),r.emit("navbarHide",t)})):(i.trigger("navbar:hide"),r.emit("navbarHide",i[0]))}},show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".navbar-hidden",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=k(e),i=r.hasClass("navbar")&&r.parent(".navbars").length;i&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(t&&(r.addClass("navbar-transitioning"),r.transitionEnd((function(){r.removeClass("navbar-transitioning")}))),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),i?r.children(".navbar").each((function(e,t){k(t).trigger("navbar:show"),n.emit("navbarShow",t)})):(r.trigger("navbar:show"),n.emit("navbarShow",r[0])))},getElByPage:function(e){var t,n,r;if(e.$navbarEl||e.$el?(r=e,t=e.$el):(t=k(e)).length>0&&(r=t[0].f7Page),r&&r.$navbarEl&&r.$navbarEl.length>0?n=r.$navbarEl:t&&(n=t.children(".navbar")),n&&(!n||0!==n.length))return n[0]},getPageByEl:function(e){var t,n=k(e);return n.parents(".page").length?n.parents(".page")[0]:(n.parents(".view").find(".page").each((function(e,r){r&&r.f7Page&&r.f7Page.navbarEl&&n[0]===r.f7Page.navbarEl&&(t=r)})),t)},collapseLargeTitle:function(e){var t=k(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar")).length>1&&(t=k(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var n=k(this.navbar.getPageByEl(t));t.addClass("navbar-large-collapsed"),n.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),this.emit("pageNavbarLargeCollapsed",n[0]),t.trigger("navbar:collapse"),this.emit("navbarCollapse",t[0])}},expandLargeTitle:function(e){var t=k(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=k(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var n=k(this.navbar.getPageByEl(t));t.removeClass("navbar-large-collapsed"),n.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),this.emit("pageNavbarLargeExpanded",n[0]),t.trigger("navbar:expand"),this.emit("navbarExpand",t[0])}},toggleLargeTitle:function(e){var t=k(e);t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=k(e).find(".navbar-large.navbar-current")),t.length>1||!t.length)||(t.hasClass("navbar-large-collapsed")?this.navbar.expandLargeTitle(t):this.navbar.collapseLargeTitle(t))},initNavbarOnScroll:function(e,t,n,r,i){var a,o,s,l,c,u,d,h,p,f,m,v,g,y,b=this,_=k(e),w=k(t),E=w.find(".title-large"),T=E.length||w.hasClass(".navbar-large"),S=44,C=b.params.navbar.snapPageScrollToLargeTitle,x=b.params.navbar.snapPageScrollToTransparentNavbar;(r||n&&T)&&((p=w.css("--f7-navbar-large-title-height"))&&p.indexOf("px")>=0?(p=parseInt(p,10),Number.isNaN(p)&&E.length?p=E[0].offsetHeight:Number.isNaN(p)&&("ios"===b.theme?p=52:"md"===b.theme?p=48:"aurora"===b.theme&&(p=38))):E.length?p=E[0].offsetHeight:"ios"===b.theme?p=52:"md"===b.theme?p=48:"aurora"===b.theme&&(p=38)),n&&T&&(S+=p);function M(){w.hasClass("with-searchbar-expandable-enabled")||!v||o<0||(o>=p/2&&o<p?k(v).scrollTop(p,100):o<p&&k(v).scrollTop(0,200))}function $(){w.hasClass("with-searchbar-expandable-enabled")||!v||o<0||(o>=f/2&&o<f?k(v).scrollTop(f,100):o<f&&k(v).scrollTop(0,200))}var L=null,P=null;function O(e){v=this,e&&e.target&&e.target!==v||(o=v.scrollTop,m=o,r?function(){if(!(w.hasClass("navbar-hidden")||w.parent(".navbars").hasClass("navbar-hidden"))){var e=w.hasClass("navbar-large-transparent")||w.hasClass("navbar-large")&&w.hasClass("navbar-transparent");L=P,P=Math.min(Math.max(o/p,0),1);var t=L>0&&L<1;w.hasClass("with-searchbar-expandable-enabled")||(h=w.hasClass("navbar-large-collapsed"),0===P&&h?b.navbar.expandLargeTitle(w[0]):1!==P||h||b.navbar.collapseLargeTitle(w[0]),0===P&&h||0===P&&t||1===P&&!h||1===P&&t?("md"===b.theme&&w.find(".navbar-inner").css("overflow",""),w.find(".title").css("opacity",""),w.find(".title-large-text, .subnavbar").css("transform",""),e?w.find(".navbar-bg").css("opacity",""):w.find(".navbar-bg").css("transform","")):P>0&&P<1&&("md"===b.theme&&w.find(".navbar-inner").css("overflow","visible"),w.find(".title").css("opacity",P),w.find(".title-large-text, .subnavbar").css("transform","translate3d(0px, ".concat(-1*P*p,"px, 0)")),e?w.find(".navbar-bg").css("opacity",P):w.find(".navbar-bg").css("transform","translate3d(0px, ".concat(-1*P*p,"px, 0)"))),C&&(fe.a.touch?y&&(clearTimeout(y),y=null,y=setTimeout((function(){M(),clearTimeout(y),y=null}),70)):(clearTimeout(g),g=setTimeout((function(){M()}),300))))}}():i&&function(){var e=w.hasClass("navbar-hidden")||w.parent(".navbars").hasClass("navbar-hidden");if(!w.hasClass("with-searchbar-expandable-enabled")&&!e){f||(f=t.offsetHeight);var n=o/f,r=w.hasClass("navbar-transparent-visible");if(n=Math.max(Math.min(n,1),0),r&&1===n||!r&&0===n)w.find(".navbar-bg, .title").css("opacity","");else{if(r&&0===n)return w.trigger("navbar:transparenthide"),b.emit("navbarTransparentHide",w[0]),w.removeClass("navbar-transparent-visible"),void w.find(".navbar-bg, .title").css("opacity","");if(!r&&1===n)return w.trigger("navbar:transparentshow"),b.emit("navbarTransparentShow",w[0]),w.addClass("navbar-transparent-visible"),void w.find(".navbar-bg, .title").css("opacity","");w.find(".navbar-bg, .title").css("opacity",n),x&&(fe.a.touch?y&&(clearTimeout(y),y=null,y=setTimeout((function(){$(),clearTimeout(y),y=null}),70)):(clearTimeout(g),g=setTimeout((function(){$()}),300)))}}}(),_.hasClass("page-previous")||n&&(_.hasClass("page-with-card-opened")||(s=v.scrollHeight,l=v.offsetHeight,c=o+l>=s,d=w.hasClass("navbar-hidden")||w.parent(".navbars").hasClass("navbar-hidden"),c?b.params.navbar.showOnPageScrollEnd&&(u="show"):u=a>o?b.params.navbar.showOnPageScrollTop||o<=S?"show":"hide":o>S?"hide":"show","show"===u&&d?(b.navbar.show(w),d=!1):"hide"!==u||d||(b.navbar.hide(w),d=!0),a=o)))}function D(){m=!1}function I(){clearTimeout(y),y=null,y=setTimeout((function(){!1!==m&&(i&&!r?$():M(),clearTimeout(y),y=null)}),70)}_.on("scroll",".page-content",O,!0),fe.a.touch&&(r&&C||i&&x)&&(b.on("touchstart:passive",D),b.on("touchend:passive",I)),(r||i)&&_.find(".page-content").each((function(e,t){t.scrollTop>0&&O.call(t)})),_[0].f7DetachNavbarScrollHandlers=function(){delete _[0].f7DetachNavbarScrollHandlers,_.off("scroll",".page-content",O,!0),fe.a.touch&&(r&&C||i&&x)&&(b.off("touchstart:passive",D),b.off("touchend:passive",I))}}},Ht={name:"navbar",create:function(){var e=this;z.extend(e,{navbar:{size:Ft.size.bind(e),hide:Ft.hide.bind(e),show:Ft.show.bind(e),getElByPage:Ft.getElByPage.bind(e),getPageByEl:Ft.getPageByEl.bind(e),collapseLargeTitle:Ft.collapseLargeTitle.bind(e),expandLargeTitle:Ft.expandLargeTitle.bind(e),toggleLargeTitle:Ft.toggleLargeTitle.bind(e),initNavbarOnScroll:Ft.initNavbarOnScroll.bind(e)}})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,auroraCenterTitle:!0,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){var e=this;k(".navbar").each((function(t,n){e.navbar.size(n)}))},pageBeforeRemove:function(e){e.$el[0].f7DetachNavbarScrollHandlers&&e.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn:function(e){if("ios"===this.theme){var t,n=e.$el.parents(".view")[0].f7View,r=this.navbar.getElByPage(e);if(t=r?k(r).parents(".navbars"):e.$el.parents(".view").children(".navbars"),e.$el.hasClass("no-navbar")||n.router.dynamicNavbar&&!r){var i=!!(e.pageFrom&&e.router.history.length>0);this.navbar.hide(t,i)}else this.navbar.show(t)}},pageReinit:function(e){var t=k(this.navbar.getElByPage(e));t&&0!==t.length&&this.navbar.size(t)},pageInit:function(e){var t,n,r,i=k(this.navbar.getElByPage(e));i&&0!==i.length&&(this.navbar.size(i),i.find(".title-large").length>0&&i.addClass("navbar-large"),i.hasClass("navbar-large")&&(this.params.navbar.collapseLargeTitleOnScroll&&(t=!0),e.$el.addClass("page-with-navbar-large")),!t&&i.hasClass("navbar-transparent")&&(n=!0),(this.params.navbar.hideOnPageScroll||e.$el.find(".hide-navbar-on-scroll").length||e.$el.hasClass("hide-navbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll"))&&(r=!(e.$el.find(".keep-navbar-on-scroll").length||e.$el.hasClass("keep-navbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))),(t||r||n)&&this.navbar.initNavbarOnScroll(e.el,i[0],r,t,n))},"panelOpen panelSwipeOpen modalOpen":function(e){var t=this;e.$el.find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,n){t.navbar.size(n)}))},tabShow:function(e){var t=this;k(e).find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,n){t.navbar.size(n)}))}},clicks:{".navbar .title":function(e){if(this.params.navbar.scrollTopOnTitleClick&&!(e.closest("a").length>0)){var t,n=e.parents(".navbar"),r=n.parents(".navbars");0===(t=n.parents(".page-content")).length&&(n.parents(".page").length>0&&(t=n.parents(".page").find(".page-content")),0===t.length&&r.length&&r.nextAll(".page-current:not(.stacked)").length>0&&(t=r.nextAll(".page-current:not(.stacked)").find(".page-content")),0===t.length&&n.nextAll(".page-current:not(.stacked)").length>0&&(t=n.nextAll(".page-current:not(.stacked)").find(".page-content"))),t&&t.length>0&&(t.hasClass("tab")&&(t=t.parent(".tabs").children(".page-content.tab-active")),t.length>0&&t.scrollTop(0,300))}}},vnode:{navbar:{postpatch:function(e){this.navbar.size(e.elm)}}}},Ut={setHighlight:function(e){if("md"===this.theme){var t=k(e);if(0!==t.length&&(t.hasClass("tabbar")||t.hasClass("tabbar-labels"))){var n=t.find(".tab-link-highlight"),r=t.find(".tab-link").length;if(0!==r){0===n.length?(t.children(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),n=t.find(".tab-link-highlight")):n.next().length&&t.children(".toolbar-inner").append(n);var i,a,o=t.find(".tab-link-active");if(t.hasClass("tabbar-scrollable")&&o&&o[0])i="".concat(o[0].offsetWidth,"px"),a="".concat(o[0].offsetLeft,"px");else{var s=o.index();i="".concat(100/r,"%"),a="".concat(100*(this.rtl?-s:s),"%")}z.nextFrame((function(){n.css("width",i).transform("translate3d(".concat(a,",0,0)"))}))}else n.remove()}}},init:function(e){this.toolbar.setHighlight(e)},hide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=k(e);if(!r.hasClass("toolbar-hidden")){var i="toolbar-hidden".concat(t?" toolbar-transitioning":"");r.transitionEnd((function(){r.removeClass("toolbar-transitioning")})),r.addClass(i),r.trigger("toolbar:hide"),n.emit("toolbarHide",r[0])}},show:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=k(e);r.hasClass("toolbar-hidden")&&(t&&(r.addClass("toolbar-transitioning"),r.transitionEnd((function(){r.removeClass("toolbar-transitioning")}))),r.removeClass("toolbar-hidden"),r.trigger("toolbar:show"),n.emit("toolbarShow",r[0]))},initToolbarOnScroll:function(e){var t,n,r,i,a,o,s,l=this,c=k(e),u=c.parents(".view").children(".toolbar");(0===u.length&&(u=c.find(".toolbar")),0===u.length&&(u=c.parents(".views").children(".tabbar, .tabbar-labels")),0!==u.length)&&(c.on("scroll",".page-content",d,!0),c[0].f7ScrollToolbarHandler=d);function d(e){if(!c.hasClass("page-with-card-opened")&&!c.hasClass("page-previous")){e&&e.target&&e.target!==this||(n=this.scrollTop,r=this.scrollHeight,i=this.offsetHeight,a=n+i>=r,s=u.hasClass("toolbar-hidden"),a?l.params.toolbar.showOnPageScrollEnd&&(o="show"):o=t>n?l.params.toolbar.showOnPageScrollTop||n<=44?"show":"hide":n>44?"hide":"show","show"===o&&s?(l.toolbar.show(u),s=!1):"hide"!==o||s||(l.toolbar.hide(u),s=!0),t=n)}}}},zt={name:"toolbar",create:function(){z.extend(this,{toolbar:{hide:Ut.hide.bind(this),show:Ut.show.bind(this),setHighlight:Ut.setHighlight.bind(this),initToolbarOnScroll:Ut.initToolbarOnScroll.bind(this),init:Ut.init.bind(this)}})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove:function(e){e.$el[0].f7ScrollToolbarHandler&&e.$el.off("scroll",".page-content",e.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn:function(e){var t=e.$el.parents(".view").children(".toolbar");0===t.length&&(t=e.$el.parents(".views").children(".tabbar, .tabbar-labels")),0===t.length&&(t=e.$el.find(".toolbar")),0!==t.length&&(e.$el.hasClass("no-toolbar")?this.toolbar.hide(t):this.toolbar.show(t))},pageInit:function(e){var t=this;if(e.$el.find(".tabbar, .tabbar-labels").each((function(e,n){t.toolbar.init(n)})),t.params.toolbar.hideOnPageScroll||e.$el.find(".hide-toolbar-on-scroll").length||e.$el.hasClass("hide-toolbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll")){if(e.$el.find(".keep-toolbar-on-scroll").length||e.$el.hasClass("keep-toolbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))return;t.toolbar.initToolbarOnScroll(e.el)}},init:function(){var e=this;e.root.find(".tabbar, .tabbar-labels").each((function(t,n){e.toolbar.init(n)}))}},vnode:{tabbar:{insert:function(e){this.toolbar.init(e.elm)}}}},Vt=function(){function e(t,n,r){u()(this,e);var i=this;if(t){var a=t[0].getBoundingClientRect(),o={x:n-a.left,y:r-a.top},s=a.width,l=a.height,c=Math.max(Math.pow(Math.pow(l,2)+Math.pow(s,2),.5),48);return i.$rippleWaveEl=k('<div class="ripple-wave" style="width: '.concat(c,"px; height: ").concat(c,"px; margin-top:-").concat(c/2,"px; margin-left:-").concat(c/2,"px; left:").concat(o.x,"px; top:").concat(o.y,'px;"></div>')),t.prepend(i.$rippleWaveEl),i.rippleTransform="translate3d(".concat(s/2-o.x,"px, ").concat(l/2-o.y,"px, 0) scale(1)"),z.nextFrame((function(){i&&i.$rippleWaveEl&&i.$rippleWaveEl.transform(i.rippleTransform)})),i}}return T()(e,[{key:"destroy",value:function(){var e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}},{key:"remove",value:function(){var e=this;if(!e.removing){var t=this.$rippleWaveEl,n=this.rippleTransform,r=z.nextTick((function(){e.destroy()}),400);e.removing=!0,t.addClass("ripple-wave-fill").transform(n.replace("scale(1)","scale(1.01)")).transitionEnd((function(){clearTimeout(r),z.nextFrame((function(){t.addClass("ripple-wave-out").transform(n.replace("scale(1)","scale(1.01)")),r=z.nextTick((function(){e.destroy()}),700),t.transitionEnd((function(){clearTimeout(r),e.destroy()}))}))}))}}}]),e}(),qt={name:"touch-ripple",static:{TouchRipple:Vt},create:function(){this.touchRipple={create:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return J()(Vt,t)}}}};function Wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Gt=[],Kt=[];var Jt=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Wt()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r),i=n.call(this,t,[e]);var a=C()(i),o={};return a.useModulesParams(o),a.params=z.extend(o,t),a.opened=!1,a.useModules(),L()(i,C()(i))}return T()(r,[{key:"onOpen",value:function(){this.opened=!0,Gt.push(this),k("html").addClass("with-modal-".concat(this.type.toLowerCase())),this.$el.trigger("modal:open ".concat(this.type.toLowerCase(),":open")),this.emit("local::open modalOpen ".concat(this.type,"Open"),this)}},{key:"onOpened",value:function(){this.$el.trigger("modal:opened ".concat(this.type.toLowerCase(),":opened")),this.emit("local::opened modalOpened ".concat(this.type,"Opened"),this)}},{key:"onClose",value:function(){this.opened=!1,this.type&&this.$el&&(Gt.splice(Gt.indexOf(this),1),k("html").removeClass("with-modal-".concat(this.type.toLowerCase())),this.$el.trigger("modal:close ".concat(this.type.toLowerCase(),":close")),this.emit("local::close modalClose ".concat(this.type,"Close"),this))}},{key:"onClosed",value:function(){this.type&&this.$el&&(this.$el.removeClass("modal-out"),this.$el.hide(),this.$el.trigger("modal:closed ".concat(this.type.toLowerCase(),":closed")),this.emit("local::closed modalClosed ".concat(this.type,"Closed"),this))}},{key:"open",value:function(e){var t,n=this,r=n.app,i=n.$el,a=n.$backdropEl,o=n.type,s=!0;if(void 0!==e?s=e:void 0!==n.params.animate&&(s=n.params.animate),!i||i.hasClass("modal-in"))return n;if("dialog"===o&&r.params.modal.queueDialogs&&(k(".dialog.modal-in").length>0?t=!0:Gt.length>0&&Gt.forEach((function(e){"dialog"===e.type&&(t=!0)})),t))return Kt.push(n),n;var l=i.parent(),c=i.parents(d.a).length>0;function u(){i.hasClass("modal-out")?n.onClosed():i.hasClass("modal-in")&&n.onOpened()}return r.params.modal.moveToRoot&&!l.is(r.root)&&(r.root.append(i),n.once("".concat(o,"Closed"),(function(){c?l.append(i):i.remove()}))),i.show(),n._clientLeft=i[0].clientLeft,s?(a&&(a.removeClass("not-animated"),a.addClass("backdrop-in")),i.animationEnd((function(){u()})),i.transitionEnd((function(){u()})),i.removeClass("modal-out not-animated").addClass("modal-in"),n.onOpen()):(a&&a.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),n.onOpen(),n.onOpened()),n}},{key:"close",value:function(e){var t=this,n=t.$el,r=t.$backdropEl,i=!0;if(void 0!==e?i=e:void 0!==t.params.animate&&(i=t.params.animate),!n||!n.hasClass("modal-in"))return Kt.indexOf(t)>=0&&Kt.splice(Kt.indexOf(t),1),t;if(r){var a=!0;"popup"===t.type&&t.$el.prevAll(".popup.modal-in").each((function(e,n){var r=n.f7Modal;r&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl===t.backdropEl&&(a=!1)})),a&&(r[i?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}function o(){n.hasClass("modal-out")?t.onClosed():n.hasClass("modal-in")&&t.onOpened()}return n[i?"removeClass":"addClass"]("not-animated"),i?(n.animationEnd((function(){o()})),n.transitionEnd((function(){o()})),n.removeClass("modal-in").addClass("modal-out"),t.onClose()):(n.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),t.onClose(),t.onClosed()),"dialog"===t.type&&0!==Kt.length&&Kt.shift().open(),t}},{key:"destroy",value:function(){this.destroyed||(this.emit("local::beforeDestroy modalBeforeDestroy ".concat(this.type,"BeforeDestroy"),this),this.$el&&(this.$el.trigger("modal:beforedestroy ".concat(this.type.toLowerCase(),":beforedestroy")),this.$el.length&&this.$el[0].f7Modal&&delete this.$el[0].f7Modal),z.deleteProps(this),this.destroyed=!0)}}]),r}(G);function Xt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Qt=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Xt()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({backdrop:!0,closeByBackdropClick:!0,on:{}},t);i=n.call(this,e,a);var o,s,l=C()(i);if(l.params=a,(o=l.params.el?k(l.params.el):k(l.params.content))&&o.length>0&&o[0].f7Modal)return L()(i,o[0].f7Modal);if(0===o.length)return L()(i,l.destroy());function c(e){l&&!l.destroyed&&s&&e.target===s[0]&&l.close()}return l.params.backdrop&&0===(s=e.root.children(".custom-modal-backdrop")).length&&(s=k('<div class="custom-modal-backdrop"></div>'),e.root.append(s)),l.on("customModalOpened",(function(){l.params.closeByBackdropClick&&l.params.backdrop&&e.on("click",c)})),l.on("customModalClose",(function(){l.params.closeByBackdropClick&&l.params.backdrop&&e.off("click",c)})),z.extend(l,{app:e,$el:o,el:o[0],$backdropEl:s,backdropEl:s&&s[0],type:"customModal"}),o[0].f7Modal=l,L()(i,l)}return r}(Jt),Zt={name:"modal",static:{Modal:Jt,CustomModal:Qt},create:function(){var e=this;e.customModal={create:function(t){return new Qt(e,t)}}},params:{modal:{moveToRoot:!0,queueDialogs:!0}}};function en(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var tn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(en()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},t);void 0===a.closeByBackdropClick&&(a.closeByBackdropClick=e.params.dialog.closeByBackdropClick),void 0===a.backdrop&&(a.backdrop=e.params.dialog.backdrop),i=n.call(this,e,a);var o,s,l,c=C()(i),h=a.title,p=a.text,f=a.content,m=a.buttons,v=a.verticalButtons,g=a.cssClass,y=a.backdrop;if(c.params=a,c.params.el)o=k(c.params.el);else{var b=["dialog"];0===m.length&&b.push("dialog-no-buttons"),m.length>0&&b.push("dialog-buttons-".concat(m.length)),v&&b.push("dialog-buttons-vertical"),g&&b.push(g);var _="";m.length>0&&(_='\n          <div class="dialog-buttons">\n            '.concat(m.map((function(e){return'\n              <span class="dialog-button'.concat(e.bold?" dialog-button-bold":"").concat(e.color?" color-".concat(e.color):"").concat(e.cssClass?" ".concat(e.cssClass):"",'">').concat(e.text,"</span>\n            ")})).join(""),"\n          </div>\n        "));var w='\n        <div class="'.concat(b.join(" "),'">\n          <div class="dialog-inner">\n            ').concat(h?'<div class="dialog-title">'.concat(h,"</div>"):"","\n            ").concat(p?'<div class="dialog-text">'.concat(p,"</div>"):"","\n            ").concat(f,"\n          </div>\n          ").concat(_,"\n        </div>\n      ");o=k(w)}if(o&&o.length>0&&o[0].f7Modal)return L()(i,o[0].f7Modal);if(0===o.length)return L()(i,c.destroy());function E(e){var t=k(this).index(),n=m[t];n.onClick&&n.onClick(c,e),c.params.onClick&&c.params.onClick(c,t),!1!==n.close&&c.close()}function T(e){var t=e.keyCode;m.forEach((function(n,r){n.keyCodes&&n.keyCodes.indexOf(t)>=0&&(d.a.activeElement&&d.a.activeElement.blur(),n.onClick&&n.onClick(c,e),c.params.onClick&&c.params.onClick(c,r),!1!==n.close&&c.close())}))}function S(e){var t=e.target;0===k(t).closest(c.el).length&&c.params.closeByBackdropClick&&c.backdropEl&&c.backdropEl===t&&c.close()}return y&&0===(s=e.root.children(".dialog-backdrop")).length&&(s=k('<div class="dialog-backdrop"></div>'),e.root.append(s)),m&&m.length>0&&(c.on("open",(function(){o.find(".dialog-button").each((function(e,t){m[e].keyCodes&&(l=!0),k(t).on("click",E)})),!l||e.device.ios||e.device.android||e.device.cordova||k(d.a).on("keydown",T)})),c.on("close",(function(){o.find(".dialog-button").each((function(e,t){k(t).off("click",E)})),!l||e.device.ios||e.device.android||e.device.cordova||k(d.a).off("keydown",T),l=!1}))),z.extend(c,{app:e,$el:o,el:o[0],$backdropEl:s,backdropEl:s&&s[0],type:"dialog",setProgress:function(t,n){return e.progressbar.set(o.find(".progressbar"),t,n),c},setText:function(e){var t=o.find(".dialog-text");return 0===t.length&&(t=k('<div class="dialog-text"></div>'),void 0!==h?t.insertAfter(o.find(".dialog-title")):o.find(".dialog-inner").prepend(t)),t.html(e),c.params.text=e,c},setTitle:function(e){var t=o.find(".dialog-title");return 0===t.length&&(t=k('<div class="dialog-title"></div>'),o.find(".dialog-inner").prepend(t)),t.html(e),c.params.title=e,c}}),c.on("opened",(function(){c.params.closeByBackdropClick&&e.on("click",S)})),c.on("close",(function(){c.params.closeByBackdropClick&&e.off("click",S)})),o[0].f7Modal=c,c.params.destroyOnClose&&c.once("closed",(function(){setTimeout((function(){c.destroy()}),0)})),L()(i,c)}return r}(Jt);function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){Z()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var an={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:tn},create:function(){var e=this;function t(){return e.params.dialog.title||e.name}var n=e.params.dialog.destroyPredefinedDialogs,r=e.params.dialog.keyboardActions,i=e.params.dialog.autoFocus?{on:{opened:function(e){e.$el.find("input").eq(0).focus()}}}:{};e.dialog=z.extend(ne({app:e,constructor:tn,defaultSelector:".dialog.modal-in"}),{alert:function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=a[0],l=a[1],c=a[2];return 2===a.length&&"function"==typeof a[1]&&(s=a[0],c=a[1],l=a[2]),new tn(e,{title:void 0===l?t():l,text:s,buttons:[{text:e.params.dialog.buttonOk,bold:!0,onClick:c,keyCodes:r?[13,27]:null}],destroyOnClose:n}).open()},prompt:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o[1],u=o[2],d=o[3],h=o[4];return"function"==typeof o[1]&&(l=o[0],u=o[1],d=o[2],h=o[3],c=o[4]),h=null==h?"":h,new tn(e,rn({title:void 0===c?t():c,text:l,content:'<div class="dialog-input-field input"><input type="text" class="dialog-input" value="'.concat(h,'"></div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find(".dialog-input").val();0===t&&d&&d(n),1===t&&u&&u(n)},destroyOnClose:n},i)).open()},confirm:function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=a[0],l=a[1],c=a[2],u=a[3];return"function"==typeof a[1]&&(s=a[0],c=a[1],u=a[2],l=a[3]),new tn(e,{title:void 0===l?t():l,text:s,buttons:[{text:e.params.dialog.buttonCancel,onClick:u,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,onClick:c,keyCodes:r?[13]:null}],destroyOnClose:n}).open()},login:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o[1],u=o[2],d=o[3];return"function"==typeof o[1]&&(l=o[0],u=o[1],d=o[2],c=o[3]),new tn(e,rn({title:void 0===c?t():c,text:l,content:'\n              <div class="dialog-input-field dialog-input-double input">\n                <input type="text" name="dialog-username" placeholder="'.concat(e.params.dialog.usernamePlaceholder,'" class="dialog-input">\n              </div>\n              <div class="dialog-input-field dialog-input-double input">\n                <input type="password" name="dialog-password" placeholder="').concat(e.params.dialog.passwordPlaceholder,'" class="dialog-input">\n              </div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find('[name="dialog-username"]').val(),r=e.$el.find('[name="dialog-password"]').val();0===t&&d&&d(n,r),1===t&&u&&u(n,r)},destroyOnClose:n},i)).open()},password:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o[1],u=o[2],d=o[3];return"function"==typeof o[1]&&(l=o[0],u=o[1],d=o[2],c=o[3]),new tn(e,rn({title:void 0===c?t():c,text:l,content:'\n              <div class="dialog-input-field input">\n                <input type="password" name="dialog-password" placeholder="'.concat(e.params.dialog.passwordPlaceholder,'" class="dialog-input">\n              </div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find('[name="dialog-password"]').val();0===t&&d&&d(n),1===t&&u&&u(n)},destroyOnClose:n},i)).open()},preloader:function(t,r){var i=z["".concat(e.theme,"PreloaderContent")]||"";return new tn(e,{title:null==t?e.params.dialog.preloaderTitle:t,content:'<div class="preloader'.concat(r?" color-".concat(r):"",'">').concat(i,"</div>"),cssClass:"dialog-preloader",destroyOnClose:n}).open()},progress:function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=r[0],o=r[1],s=r[2];2===r.length?"number"==typeof r[0]?(o=r[0],s=r[1],a=r[2]):"string"==typeof r[0]&&"string"==typeof r[1]&&(a=r[0],s=r[1],o=r[2]):1===r.length&&"number"==typeof r[0]&&(o=r[0],a=r[1],s=r[2]);var l=void 0===o,c=new tn(e,{title:void 0===a?e.params.dialog.progressTitle:a,cssClass:"dialog-progress",content:'\n              <div class="progressbar'.concat(l?"-infinite":"").concat(s?" color-".concat(s):"",'">\n                ').concat(l?"":"<span></span>","\n              </div>\n            "),destroyOnClose:n});return l||c.setProgress(o),c.open()}})}};function on(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var sn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(on()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},e.params.popup,t);i=n.call(this,e,a);var o,s,l,c,h=C()(i);if(h.params=a,(o=h.params.el?k(h.params.el).eq(0):k(h.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&o.length>0&&o[0].f7Modal)return L()(i,o[0].f7Modal);if(0===o.length)return L()(i,h.destroy());function p(t){var n=t.target,r=k(n);if(!(!e.device.desktop&&e.device.cordova&&(d.b.Keyboard&&d.b.Keyboard.isVisible||d.b.cordova.plugins&&d.b.cordova.plugins.Keyboard&&d.b.cordova.plugins.Keyboard.isVisible))&&0===r.closest(h.el).length&&h.params&&h.params.closeByBackdropClick&&h.params.backdrop&&h.backdropEl&&h.backdropEl===n){var i=!0;h.$el.nextAll(".popup.modal-in").each((function(e,t){var n=t.f7Modal;n&&n.params.closeByBackdropClick&&n.params.backdrop&&n.backdropEl===h.backdropEl&&(i=!1)})),i&&h.close()}}function f(e){27===e.keyCode&&h.params.closeOnEscape&&h.close()}function m(t){return(e.height-2*t)/e.height}h.params.backdrop&&h.params.backdropEl?s=k(h.params.backdropEl):h.params.backdrop&&0===(s=e.root.children(".popup-backdrop")).length&&(s=k('<div class="popup-backdrop"></div>'),e.root.append(s)),z.extend(h,{app:e,push:o.hasClass("popup-push")||h.params.push,$el:o,el:o[0],$backdropEl:s,backdropEl:s&&s[0],type:"popup",$htmlEl:k("html")}),h.params.push&&o.addClass("popup-push");var v,g,y,b,_,w,E,T,S,x,M,$=!0,P=!1,O=!1;function D(e){!P&&$&&h.params.swipeToClose&&(h.params.swipeHandler&&0===k(e.target).closest(h.params.swipeHandler).length||(P=!0,O=!1,v={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},b=z.now(),y=void 0,h.params.swipeHandler||"touchstart"!==e.type||(w=k(e.target).closest(".page-content")[0])))}function I(t){if(P){if(g={x:"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,y:"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY},void 0===y&&(y=!!(y||Math.abs(g.x-v.x)>Math.abs(g.y-v.y))),y)return P=!1,void(O=!1);_=v.y-g.y,c&&l&&_>0&&(_=0);var n=_<0?"to-bottom":"to-top";if(o.transition(0),"string"==typeof h.params.swipeToClose&&n!==h.params.swipeToClose)return o.transform(""),void o.transition("");if(O)h.emit("local::swipeMove popupSwipeMove",h),h.$el.trigger("popup:swipemove");else{if(c&&l&&(x=o[0].offsetHeight,0===(M=o.prevAll(".popup.modal-in").eq(0)).length&&(M=e.root.children(".view, .views"))),w&&(E=w.scrollTop,S=w.scrollHeight,T=w.offsetHeight,!(S===T||"to-bottom"===n&&0===E||"to-top"===n&&E===S-T)))return o.transform(""),o.transition(""),P=!1,void(O=!1);O=!0,h.emit("local::swipeStart popupSwipeStart",h),h.$el.trigger("popup:swipestart")}if(t.preventDefault(),c&&l){var r=1-Math.abs(_/x),i=1-(1-m(l))*r;M.hasClass("popup")?M.hasClass("popup-push")?M.transition(0).transform("translate3d(0, calc(-1 * ".concat(r," * (var(--f7-popup-push-offset) + 10px)) , 0px) scale(").concat(i,")")):M.transition(0).transform("translate3d(0, 0px , 0px) scale(".concat(i,")")):M.transition(0).transform("translate3d(0,0,0) scale(".concat(i,")"))}o.transition(0).transform("translate3d(0,".concat(-_,"px,0)"))}}function A(){if(P=!1,O){h.emit("local::swipeEnd popupSwipeEnd",h),h.$el.trigger("popup:swipeend"),O=!1,$=!1,o.transition(""),c&&l&&M.transition("").transform("");var e=_<=0?"to-bottom":"to-top";if("string"==typeof h.params.swipeToClose&&e!==h.params.swipeToClose)return o.transform(""),void($=!0);var t=Math.abs(_),n=(new Date).getTime()-b;n<300&&t>20||n>=300&&t>100?z.nextTick((function(){"to-bottom"===e?o.addClass("swipe-close-to-bottom"):o.addClass("swipe-close-to-top"),o.transform(""),h.emit("local::swipeclose popupSwipeClose",h),h.$el.trigger("popup:swipeclose"),h.close(),$=!0})):($=!0,o.transform(""))}}var N,R=!!fe.a.passiveListener&&{passive:!0};return h.params.swipeToClose&&(o.on(e.touchEvents.start,D,R),e.on("touchmove",I),e.on("touchend:passive",A),h.once("popupDestroy",(function(){o.off(e.touchEvents.start,D,R),e.off("touchmove",I),e.off("touchend:passive",A)}))),h.on("open",(function(){N=!1,h.params.closeOnEscape&&k(d.a).on("keydown",f),o.prevAll(".popup.modal-in").addClass("popup-behind"),h.push&&(c=h.push&&(e.width<630||e.height<630||o.hasClass("popup-tablet-fullscreen"))),c&&(l=parseInt(o.css("--f7-popup-push-offset"),10),Number.isNaN(l)&&(l=0),l&&(o.addClass("popup-push"),h.$htmlEl.addClass("with-modal-popup-push"),h.$htmlEl[0].style.setProperty("--f7-popup-push-scale",m(l))))})),h.on("opened",(function(){o.removeClass("swipe-close-to-bottom swipe-close-to-top"),h.params.closeByBackdropClick&&e.on("click",p)})),h.on("close",(function(){N=h.$el.prevAll(".popup-push.modal-in").length>0,h.params.closeOnEscape&&k(d.a).off("keydown",f),h.params.closeByBackdropClick&&e.off("click",p),o.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),c&&l&&!N&&(h.$htmlEl.removeClass("with-modal-popup-push"),h.$htmlEl.addClass("with-modal-popup-push-closing"))})),h.on("closed",(function(){c&&l&&!N&&(h.$htmlEl.removeClass("with-modal-popup-push-closing"),h.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"))})),o[0].f7Modal=h,L()(i,h)}return r}(Jt),ln={name:"popup",params:{popup:{backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeOnEscape:!1,swipeToClose:!1,swipeHandler:null,push:!1}},static:{Popup:sn},create:function(){this.popup=ne({app:this,constructor:sn,defaultSelector:".popup.modal-in",parentSelector:".popup"})},clicks:{".popup-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popup.open(t.popup,t.animate,e)},".popup-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popup.close(t.popup,t.animate,e)}}};function cn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var un=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(cn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},t);i=n.call(this,e,a);var o,s=C()(i);return s.params=a,(o=s.params.el?k(s.params.el).eq(0):k(s.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&o.length>0&&o[0].f7Modal?L()(i,o[0].f7Modal):0===o.length?L()(i,s.destroy()):(z.extend(s,{app:e,$el:o,el:o[0],type:"loginScreen"}),o[0].f7Modal=s,L()(i,s))}return r}(Jt),dn={name:"loginScreen",static:{LoginScreen:un},create:function(){this.loginScreen=ne({app:this,constructor:un,defaultSelector:".login-screen.modal-in"})},clicks:{".login-screen-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.loginScreen.open(t.loginScreen,t.animate,e)},".login-screen-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.loginScreen.close(t.loginScreen,t.animate,e)}}};function hn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var pn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(hn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},e.params.popover,t);i=n.call(this,e,a);var o,s=C()(i);if(s.params=a,(o=s.params.el?k(s.params.el).eq(0):k(s.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&o.length>0&&o[0].f7Modal)return L()(i,o[0].f7Modal);var l,c,h=k(s.params.targetEl).eq(0);if(0===o.length)return L()(i,s.destroy());s.params.backdrop&&s.params.backdropEl?l=k(s.params.backdropEl):s.params.backdrop&&0===(l=e.root.children(".popover-backdrop")).length&&(l=k('<div class="popover-backdrop"></div>'),e.root.append(l)),0===o.find(".popover-angle").length?(c=k('<div class="popover-angle"></div>'),o.prepend(c)):c=o.find(".popover-angle");var p=s.open;function f(){s.resize()}function m(t){var n=t.target,r=k(n);!e.device.desktop&&e.device.cordova&&(d.b.Keyboard&&d.b.Keyboard.isVisible||d.b.cordova.plugins&&d.b.cordova.plugins.Keyboard&&d.b.cordova.plugins.Keyboard.isVisible)||0===r.closest(s.el).length&&(s.params.closeByBackdropClick&&s.params.backdrop&&s.backdropEl&&s.backdropEl===n||s.params.closeByOutsideClick)&&s.close()}function v(e){27===e.keyCode&&s.params.closeOnEscape&&s.close()}return z.extend(s,{app:e,$el:o,el:o[0],$targetEl:h,targetEl:h[0],$angleEl:c,angleEl:c[0],$backdropEl:l,backdropEl:l&&l[0],type:"popover",open:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1];return"boolean"==typeof t[0]&&(i=t[0],r=t[1]),r&&(s.$targetEl=k(r),s.targetEl=s.$targetEl[0]),p.call(s,i)}}),s.on("popoverOpen",(function(){s.resize(),e.on("resize",f),k(d.b).on("keyboardDidShow keyboardDidHide",f),s.on("popoverClose popoverBeforeDestroy",(function(){e.off("resize",f),k(d.b).off("keyboardDidShow keyboardDidHide",f)}))})),s.params.closeOnEscape&&(s.on("popoverOpen",(function(){k(d.a).on("keydown",v)})),s.on("popoverClose",(function(){k(d.a).off("keydown",v)}))),s.on("popoverOpened",(function(){(s.params.closeByOutsideClick||s.params.closeByBackdropClick)&&e.on("click",m)})),s.on("popoverClose",(function(){(s.params.closeByOutsideClick||s.params.closeByBackdropClick)&&e.off("click",m)})),o[0].f7Modal=s,L()(i,s)}return T()(r,[{key:"resize",value:function(){var e=this.app,t=this.$el,n=this.$targetEl,r=this.$angleEl,i=this.params,a=i.targetX,o=i.targetY;t.css({left:"",top:""});var s,l,c,u,d,h,p=[t.width(),t.height()],f=p[0],m=p[1],v=0;"ios"===e.theme||"aurora"===e.theme?(r.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}),v=r.width()/2):t.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom popover-on-middle").css({left:"",top:""});var g=parseInt(k("html").css("--f7-safe-area-top"),10);if(Number.isNaN(g)&&(g=0),n&&n.length>0){c=n.outerWidth(),u=n.outerHeight();var y=n.offset();d=y.left-e.left,h=y.top-e.top;var b=n.parents(".page");b.length>0&&(h-=b[0].scrollTop)}else void 0!==a&&"undefined"!==o&&(d=a,h=o,c=this.params.targetWidth||0,u=this.params.targetHeight||0);var _,w=0,E=0,T=0,S="md"===e.theme?"bottom":"top";"md"===e.theme?(m<e.height-h-u?(S="bottom",E=h+u):m<h-g?(E=h-m,S="top"):(S="middle",E=u/2+h-m/2),E=Math.max(8,Math.min(E,e.height-m-8)),d<e.width/2?(_="right",w="middle"===S?d+c:d):(_="left",w="middle"===S?d-f:d+c-f),w=Math.max(8,Math.min(w,e.width-f-8)),t.addClass("popover-on-".concat(S," popover-on-").concat(_))):(m+v<h-g?E=h-m-v:m+v<e.height-h-u?(S="bottom",E=h+u+v):(S="middle",T=E=u/2+h-m/2,T-=E=Math.max(5,Math.min(E,e.height-m-5))),"top"===S||"bottom"===S?(T=w=c/2+d-f/2,w=Math.max(5,Math.min(w,e.width-f-5)),"top"===S&&r.addClass("on-bottom"),"bottom"===S&&r.addClass("on-top"),s=f/2-v+(T-=w),s=Math.max(Math.min(s,f-2*v-13),13),r.css({left:"".concat(s,"px")})):"middle"===S&&(w=d-f-v,r.addClass("on-right"),(w<5||w+f>e.width)&&(w<5&&(w=d+c+v),w+f>e.width&&(w=e.width-f-5),r.removeClass("on-right").addClass("on-left")),l=m/2-v+T,l=Math.max(Math.min(l,m-2*v-13),13),r.css({top:"".concat(l,"px")})));t.css({top:"".concat(E,"px"),left:"".concat(w,"px")})}}]),r}(Jt),fn={name:"popover",params:{popover:{backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!0,closeOnEscape:!1}},static:{Popover:pn},create:function(){var e=this;e.popover=z.extend(ne({app:e,constructor:pn,defaultSelector:".popover.modal-in"}),{open:function(t,n,r){var i=k(t);if(i.length>1){var a=k(n).parents(".page");a.length&&i.each((function(e,t){var n=k(t);n.parents(a)[0]===a[0]&&(i=n)}))}i.length>1&&(i=i.eq(i.length-1));var o=i[0].f7Modal,s=i.dataset();return o||(o=new pn(e,Object.assign({el:i,targetEl:n},s))),o.open(n,r)}})},clicks:{".popover-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popover.open(t.popover,e,t.animate)},".popover-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popover.close(t.popover,t.animate,e)}}};function mn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var vn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(mn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},e.params.actions,t);i=n.call(this,e,a);var o,s,l,c=C()(i);if(c.params=a,c.params.buttons&&(o=c.params.buttons,Array.isArray(o[0])||(o=[o])),c.groups=o,c.params.el?s=k(c.params.el).eq(0):c.params.content?s=k(c.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0):c.params.buttons&&(c.params.convertToPopover&&(c.popoverHtml=c.renderPopover()),c.actionsHtml=c.render()),s&&s.length>0&&s[0].f7Modal)return L()(i,s[0].f7Modal);if(s&&0===s.length&&!c.actionsHtml&&!c.popoverHtml)return L()(i,c.destroy());c.params.backdrop&&c.params.backdropEl?l=k(c.params.backdropEl):c.params.backdrop&&0===(l=e.root.children(".actions-backdrop")).length&&(l=k('<div class="actions-backdrop"></div>'),e.root.append(l));var h,p=c.open,f=c.close;function m(e){var t,n,r=k(this);if(r.hasClass("list-button")||r.hasClass("item-link")?(t=r.parents("li").index(),n=r.parents(".list").index()):(t=r.index(),n=r.parents(".actions-group").index()),void 0!==o){var i=o[n][t];i.onClick&&i.onClick(c,e),c.params.onClick&&c.params.onClick(c,e),!1!==i.close&&c.close()}}function v(t){var n=t.target,r=k(n);!e.device.desktop&&e.device.cordova&&(d.b.Keyboard&&d.b.Keyboard.isVisible||d.b.cordova.plugins&&d.b.cordova.plugins.Keyboard&&d.b.cordova.plugins.Keyboard.isVisible)||0===r.closest(c.el).length&&(c.params.closeByBackdropClick&&c.params.backdrop&&c.backdropEl&&c.backdropEl===n||c.params.closeByOutsideClick)&&c.close()}function g(e){27===e.keyCode&&c.params.closeOnEscape&&c.close()}return c.open=function(t){var n=!1,r=c.params,i=r.targetEl,a=r.targetX,o=r.targetY,s=r.targetWidth,l=r.targetHeight;return c.params.convertToPopover&&(i||void 0!==a&&void 0!==o)&&(c.params.forceToPopover||e.device.ios&&e.device.ipad||e.width>=768||e.device.desktop&&"aurora"===e.theme)&&(n=!0),n&&c.popoverHtml?((h=e.popover.create({content:c.popoverHtml,backdrop:c.params.backdrop,targetEl:i,targetX:a,targetY:o,targetWidth:s,targetHeight:l,on:{open:function(){c.$el||(c.$el=h.$el),c.$el.trigger("modal:open ".concat(c.type.toLowerCase(),":open")),c.emit("local::open modalOpen ".concat(c.type,"Open"),c)},opened:function(){c.$el||(c.$el=h.$el),c.$el.trigger("modal:opened ".concat(c.type.toLowerCase(),":opened")),c.emit("local::opened modalOpened ".concat(c.type,"Opened"),c)},close:function(){c.$el||(c.$el=h.$el),c.$el.trigger("modal:close ".concat(c.type.toLowerCase(),":close")),c.emit("local::close modalClose ".concat(c.type,"Close"),c)},closed:function(){c.$el||(c.$el=h.$el),c.$el.trigger("modal:closed ".concat(c.type.toLowerCase(),":closed")),c.emit("local::closed modalClosed ".concat(c.type,"Closed"),c)}}})).open(t),h.once("popoverOpened",(function(){h.$el.find(".list-button, .item-link").each((function(e,t){k(t).on("click",m)}))})),h.once("popoverClosed",(function(){h.$el.find(".list-button, .item-link").each((function(e,t){k(t).off("click",m)})),z.nextTick((function(){h.destroy(),h=void 0}))}))):(c.$el=c.actionsHtml?k(c.actionsHtml):c.$el,c.$el[0].f7Modal=c,c.groups&&(c.$el.find(".actions-button").each((function(e,t){k(t).on("click",m)})),c.once("actionsClosed",(function(){c.$el.find(".actions-button").each((function(e,t){k(t).off("click",m)}))}))),c.el=c.$el[0],p.call(c,t)),c},c.close=function(e){return h?h.close(e):f.call(c,e),c},z.extend(c,{app:e,$el:s,el:s?s[0]:void 0,$backdropEl:l,backdropEl:l&&l[0],type:"actions"}),c.params.closeOnEscape&&(c.on("open",(function(){k(d.a).on("keydown",g)})),c.on("close",(function(){k(d.a).off("keydown",g)}))),c.on("opened",(function(){(c.params.closeByBackdropClick||c.params.closeByOutsideClick)&&e.on("click",v)})),c.on("close",(function(){(c.params.closeByBackdropClick||c.params.closeByOutsideClick)&&e.off("click",v)})),s&&(s[0].f7Modal=c),L()(i,c)}return T()(r,[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.groups,t=this.params.cssClass;return'\n      <div class="actions-modal'.concat(this.params.grid?" actions-grid":""," ").concat(t||"",'">\n        ').concat(e.map((function(e){return'<div class="actions-group">\n            '.concat(e.map((function(e){var t=["actions-".concat(e.label?"label":"button")],n=e.color,r=e.bg,i=e.bold,a=e.disabled,o=e.label,s=e.text,l=e.icon;return n&&t.push("color-".concat(n)),r&&t.push("bg-color-".concat(r)),i&&t.push("actions-button-bold"),a&&t.push("disabled"),o?'<div class="'.concat(t.join(" "),'">').concat(s,"</div>"):'\n                <div class="'.concat(t.join(" "),'">\n                  ').concat(l?'<div class="actions-button-media">'.concat(l,"</div>"):"",'\n                  <div class="actions-button-text">').concat(s,"</div>\n                </div>").trim()})).join(""),"\n          </div>")})).join(""),"\n      </div>\n    ").trim()}},{key:"renderPopover",value:function(){if(this.params.renderPopover)return this.params.renderPopover.call(this,this);var e=this.groups,t=this.params.cssClass;return'\n      <div class="popover popover-from-actions '.concat(t||"",'">\n        <div class="popover-inner">\n          ').concat(e.map((function(e){return'\n            <div class="list">\n              <ul>\n                '.concat(e.map((function(e){var t=[],n=e.color,r=e.bg,i=e.bold,a=e.disabled,o=e.label,s=e.text,l=e.icon;return n&&t.push("color-".concat(n)),r&&t.push("bg-color-".concat(r)),i&&t.push("popover-from-actions-bold"),a&&t.push("disabled"),o?(t.push("popover-from-actions-label"),'<li class="'.concat(t.join(" "),'">').concat(s,"</li>")):l?(t.push("item-link item-content"),'\n                      <li>\n                        <a class="'.concat(t.join(" "),'">\n                          <div class="item-media">\n                            ').concat(l,'\n                          </div>\n                          <div class="item-inner">\n                            <div class="item-title">\n                              ').concat(s,"\n                            </div>\n                          </div>\n                        </a>\n                      </li>\n                    ")):(t.push("list-button"),'\n                    <li>\n                      <a class="'.concat(t.join(" "),'">').concat(s,"</a>\n                    </li>\n                  "))})).join(""),"\n              </ul>\n            </div>\n          ")})).join(""),"\n        </div>\n      </div>\n    ").trim()}}]),r}(Jt),gn={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,cssClass:null,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null}},static:{Actions:vn},create:function(){this.actions=ne({app:this,constructor:vn,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.actions.open(t.actions,t.animate,e)},".actions-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.actions.close(t.actions,t.animate,e)}}};function yn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var bn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(yn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},e.params.sheet,t);i=n.call(this,e,a);var o,s,l,c,h=C()(i);if(h.params=a,void 0===h.params.backdrop&&(h.params.backdrop="ios"!==e.theme),(o=h.params.el?k(h.params.el).eq(0):k(h.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&o.length>0&&o[0].f7Modal)return L()(i,o[0].f7Modal);if(0===o.length)return L()(i,h.destroy());function p(t){var n=t.target,r=k(n);!e.device.desktop&&e.device.cordova&&(d.b.Keyboard&&d.b.Keyboard.isVisible||d.b.cordova.plugins&&d.b.cordova.plugins.Keyboard&&d.b.cordova.plugins.Keyboard.isVisible)||0===r.closest(h.el).length&&(h.params.closeByBackdropClick&&h.params.backdrop&&h.backdropEl&&h.backdropEl===n||h.params.closeByOutsideClick)&&h.close()}function f(e){27===e.keyCode&&h.params.closeOnEscape&&h.close()}function m(t){return(e.height-2*t)/e.height}h.params.backdrop&&h.params.backdropEl?s=k(h.params.backdropEl):h.params.backdrop&&0===(s=e.root.children(".sheet-backdrop")).length&&(s=k('<div class="sheet-backdrop"></div>'),e.root.append(s)),z.extend(h,{app:e,push:o.hasClass("sheet-modal-push")||h.params.push,$el:o,el:o[0],$backdropEl:s,backdropEl:s&&s[0],type:"sheet",$htmlEl:k("html")}),h.params.push&&o.addClass("sheet-modal-push");var v,g,y,b,_,w,E,T,S,x,M,$,P,O,D,I,A,N,R=!1,Y=!1;function B(e){R||!h.params.swipeToClose&&!h.params.swipeToStep||h.params.swipeHandler&&0===k(e.target).closest(h.params.swipeHandler).length||(R=!0,Y=!1,v={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},b=z.now(),y=void 0,w=o.hasClass("sheet-modal-top"),h.params.swipeHandler||"touchstart"!==e.type||(D=k(e.target).closest(".page-content")[0]))}function j(t){if(R){if(g={x:"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,y:"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY},void 0===y&&(y=!!(y||Math.abs(g.x-v.x)>Math.abs(g.y-v.y))),y)return R=!1,void(Y=!1);var n,r=(_=v.y-g.y)<0?"to-bottom":"to-top";if(!Y){if(D&&!o.hasClass("modal-in-swipe-step")&&(I=D.scrollTop,A=D.scrollHeight,N=D.offsetHeight,!(A===N||"to-bottom"===r&&0===I||"to-top"===r&&I===A-N)))return o.transform(""),R=!1,void(Y=!1);h.push&&c&&(P=e.root.children(".view, .views")),x=o[0].offsetHeight,T=z.getTranslate(o[0],"y"),w?(M=h.params.swipeToClose?-x:-E,$=0):(M=0,$=h.params.swipeToClose?x:E),Y=!0}if(S=T-_,S=Math.min(Math.max(S,M),$),t.preventDefault(),h.push&&c){var i=(S-T)/x;h.params.swipeToStep&&(i=w?S/E:1-(E-S)/E),i=Math.abs(i);var a=1-(i=Math.min(Math.max(i,0),1)),s=1-(1-m(c))*a;P.transition(0).transform("translate3d(0,0,0) scale(".concat(s,")")),h.params.swipeToStep&&P.css("border-radius","".concat(O*a,"px"))}if(o.transition(0).transform("translate3d(0,".concat(S,"px,0)")),h.params.swipeToStep)n=w?1-S/E:(E-S)/E,n=Math.min(Math.max(n,0),1),o.trigger("sheet:stepprogress",n),h.emit("local::stepProgress sheetStepProgress",h,n)}}function F(){if(R=!1,Y){Y=!1,o.transform("").transition(""),h.push&&c&&(P.transition("").transform(""),P.css("border-radius",""));var e=_<0?"to-bottom":"to-top",t=Math.abs(_);if(0!==t&&S!==T){var n=(new Date).getTime()-b;if(h.params.swipeToStep){var r=w?"to-bottom":"to-top",i=w?"to-top":"to-bottom",a=Math.abs(S),s=Math.abs(E);if(n<300&&t>10)return e===r&&a<s&&(o.removeClass("modal-in-swipe-step"),o.trigger("sheet:stepprogress",1),h.emit("local::stepProgress sheetStepProgress",h,1),o.trigger("sheet:stepopen"),h.emit("local::stepOpen sheetStepOpen",h),h.push&&c&&(h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(c)),P.css("border-radius",""))),e===i&&a>s&&(h.params.swipeToClose?h.close():(o.addClass("modal-in-swipe-step"),o.trigger("sheet:stepprogress",0),h.emit("local::stepProgress sheetStepProgress",h,0),o.trigger("sheet:stepclose"),h.emit("local::stepClose sheetStepClose",h),h.push&&c&&(h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),P.css("border-radius","0px")))),void(e===i&&a<=s&&(o.addClass("modal-in-swipe-step"),o.trigger("sheet:stepprogress",0),h.emit("local::stepProgress sheetStepProgress",h,0),o.trigger("sheet:stepclose"),h.emit("local::stepClose sheetStepClose",h),h.push&&c&&(h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),P.css("border-radius","0px"))));if(n>=300){var l=!o.hasClass("modal-in-swipe-step");l?l&&(a>s+(x-s)/2?h.params.swipeToClose&&h.close():a>s/2&&(o.addClass("modal-in-swipe-step"),o.trigger("sheet:stepprogress",0),h.emit("local::stepProgress sheetStepProgress",h,0),o.trigger("sheet:stepclose"),h.emit("local::stepClose sheetStepClose",h),h.push&&c&&(h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),P.css("border-radius","0px")))):a<s/2?(o.removeClass("modal-in-swipe-step"),o.trigger("sheet:stepprogress",1),h.emit("local::stepProgress sheetStepProgress",h,1),o.trigger("sheet:stepopen"),h.emit("local::stepOpen sheetStepOpen",h),h.push&&c&&(h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(c)),P.css("border-radius",""))):a-s>(x-s)/2&&h.params.swipeToClose&&h.close()}}else{if(e!==(w?"to-top":"to-bottom"))return;(n<300&&t>20||n>=300&&t>x/2)&&h.close()}}}}function H(){h.setSwipeStep(!0)}h.setSwipeStep=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=o.find(".sheet-modal-swipe-step").eq(0);t.length&&(E=o.hasClass("sheet-modal-top")?-(t.offset().top-o.offset().top+t[0].offsetHeight):o[0].offsetHeight-(t.offset().top-o.offset().top+t[0].offsetHeight),o[0].style.setProperty("--f7-sheet-swipe-step","".concat(E,"px")),e||o.addClass("modal-in-swipe-step"))};var U=!!fe.a.passiveListener&&{passive:!0};return(h.params.swipeToClose||h.params.swipeToStep)&&(o.on(e.touchEvents.start,B,U),e.on("touchmove",j),e.on("touchend:passive",F),h.once("sheetDestroy",(function(){o.off(e.touchEvents.start,B,U),e.off("touchmove",j),e.off("touchend:passive",F)}))),h.on("open",(function(){h.params.closeOnEscape&&k(d.a).on("keydown",f),o.prevAll(".popup.modal-in").addClass("popup-behind"),h.params.swipeToStep&&(h.setSwipeStep(!1),e.on("resize",H)),h.params.scrollToEl&&function(){var e=k(h.params.scrollToEl).eq(0);if(0!==e.length&&0!==(l=e.parents(".page-content")).length){var t,n=parseInt(l.css("padding-top"),10),r=parseInt(l.css("padding-bottom"),10),i=l[0].offsetHeight-n-o.height(),a=l[0].scrollHeight-n-o.height(),s=l.scrollTop(),c=e.offset().top-n+e[0].offsetHeight;if(c>i){var u=s+c-i;u+i>a&&(t=u+i-a+r,i===a&&(t=o.height()),l.css({"padding-bottom":"".concat(t,"px")})),l.scrollTop(u,300)}}}(),h.push&&(c=parseInt(o.css("--f7-sheet-push-offset"),10),Number.isNaN(c)&&(c=0),c&&(o.addClass("sheet-modal-push"),h.$htmlEl.addClass("with-modal-sheet-push"),h.params.swipeToStep?(P=e.root.children(".view, .views"),O=parseFloat(o.css("border-".concat(w?"bottom":"top","-left-radius"))),P.css("border-radius","0px")):h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(c))))})),h.on("opened",(function(){(h.params.closeByOutsideClick||h.params.closeByBackdropClick)&&e.on("click",p)})),h.on("close",(function(){h.params.swipeToStep&&(o.removeClass("modal-in-swipe-step"),e.off("resize",H)),h.params.closeOnEscape&&k(d.a).off("keydown",f),h.params.scrollToEl&&l&&l.length>0&&l.css({"padding-bottom":""}),(h.params.closeByOutsideClick||h.params.closeByBackdropClick)&&e.off("click",p),o.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),h.push&&c&&(h.$htmlEl.removeClass("with-modal-sheet-push"),h.$htmlEl.addClass("with-modal-sheet-push-closing"))})),h.on("closed",(function(){h.push&&c&&(h.$htmlEl.removeClass("with-modal-sheet-push-closing"),h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"))})),h.stepOpen=function(){o.removeClass("modal-in-swipe-step"),h.push&&(c||(c=parseInt(o.css("--f7-sheet-push-offset"),10),Number.isNaN(c)&&(c=0)),c&&h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(c)))},h.stepClose=function(){o.addClass("modal-in-swipe-step"),h.push&&h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},h.stepToggle=function(){o.toggleClass("modal-in-swipe-step")},o[0].f7Modal=h,L()(i,h)}return r}(Jt),_n={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,swipeHandler:null}},static:{Sheet:bn},create:function(){var e=this;e.sheet=z.extend({},ne({app:e,constructor:bn,defaultSelector:".sheet-modal.modal-in"}),{stepOpen:function(t){var n=e.sheet.get(t);if(n&&n.stepOpen)return n.stepOpen()},stepClose:function(t){var n=e.sheet.get(t);if(n&&n.stepClose)return n.stepClose()},stepToggle:function(t){var n=e.sheet.get(t);if(n&&n.stepToggle)return n.stepToggle()}})},clicks:{".sheet-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;k(".sheet-modal.modal-in").length>0&&t.sheet&&k(t.sheet)[0]!==k(".sheet-modal.modal-in")[0]&&n.sheet.close(".sheet-modal.modal-in"),n.sheet.open(t.sheet,t.animate,e)},".sheet-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sheet.close(t.sheet,t.animate,e)}}};function wn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var kn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(wn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},e.params.toast,t);i=n.call(this,e,a);var o=C()(i);o.app=e,o.params=a;var s,l,c=o.params,h=c.closeButton,p=c.closeTimeout;if(o.params.el)s=k(o.params.el);else{var f=o.render();s=k(f)}return s&&s.length>0&&s[0].f7Modal?L()(i,s[0].f7Modal):0===s.length?L()(i,o.destroy()):(z.extend(o,{$el:s,el:s[0],type:"toast"}),s[0].f7Modal=o,h&&(s.find(".toast-button").on("click",(function(){o.emit("local::closeButtonClick toastCloseButtonClick",o),o.close()})),o.on("beforeDestroy",(function(){s.find(".toast-button").off("click")}))),o.on("open",(function(){k(".toast.modal-in").each((function(t,n){var r=e.toast.get(n);n!==o.el&&r&&r.close()})),p&&(l=z.nextTick((function(){o.close()}),p))})),o.on("close",(function(){d.b.clearTimeout(l)})),o.params.destroyOnClose&&o.once("closed",(function(){setTimeout((function(){o.destroy()}),0)})),L()(i,o))}return T()(r,[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.position,n=e.cssClass,r=e.icon,i=e.text,a=e.closeButton,o=e.closeButtonColor,s=e.closeButtonText;return'\n      <div class="toast toast-'.concat(t," ").concat(n||""," ").concat(r?"toast-with-icon":"",'">\n        <div class="toast-content">\n          ').concat(r?'<div class="toast-icon">'.concat(r,"</div>"):"",'\n          <div class="toast-text">').concat(i,"</div>\n          ").concat(a&&!r?'\n          <a class="toast-button button '.concat(o?"color-".concat(o):"",'">').concat(s,"</a>\n          ").trim():"","\n        </div>\n      </div>\n    ").trim()}}]),r}(Jt),En={name:"toast",static:{Toast:kn},create:function(){var e=this;e.toast=z.extend({},ne({app:e,constructor:kn,defaultSelector:".toast.modal-in"}),{show:function(t){return z.extend(t,{destroyOnClose:!0}),new kn(e,t).open()}})},params:{toast:{icon:null,text:null,position:"bottom",closeButton:!1,closeButtonColor:null,closeButtonText:"Ok",closeTimeout:null,cssClass:null,render:null}}},Tn={init:function(e){var t=k(e);0===t.length||t.children(".preloader-inner").length>0||t.children(".preloader-inner-line").length>0||t.append(z["".concat(this.theme,"PreloaderContent")])},visible:!1,show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"white",t=this;if(!Tn.visible){var n=z["".concat(t.theme,"PreloaderContent")]||"";k("html").addClass("with-modal-preloader"),t.root.append('\n      <div class="preloader-backdrop"></div>\n      <div class="preloader-modal">\n        <div class="preloader color-'.concat(e,'">').concat(n,"</div>\n      </div>\n    ")),Tn.visible=!0}},showIn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white",n=this,r=z["".concat(n.theme,"PreloaderContent")]||"";k(e||"html").addClass("with-modal-preloader"),k(e||n.root).append('\n      <div class="preloader-backdrop"></div>\n      <div class="preloader-modal">\n        <div class="preloader color-'.concat(t,'">').concat(r,"</div>\n      </div>\n    "))},hide:function(){Tn.visible&&(k("html").removeClass("with-modal-preloader"),this.root.find(".preloader-backdrop, .preloader-modal").remove(),Tn.visible=!1)},hideIn:function(e){k(e||"html").removeClass("with-modal-preloader"),k(e||this.root).find(".preloader-backdrop, .preloader-modal").remove()}},Sn={name:"preloader",create:function(){z.extend(this,{preloader:{init:Tn.init.bind(this),show:Tn.show.bind(this),hide:Tn.hide.bind(this),showIn:Tn.showIn.bind(this),hideIn:Tn.hideIn.bind(this)}})},on:{photoBrowserOpen:function(e){var t=this;e.$el.find(".preloader").each((function(e,n){t.preloader.init(n)}))},tabMounted:function(e){var t=this;k(e).find(".preloader").each((function(e,n){t.preloader.init(n)}))},pageInit:function(e){var t=this;e.$el.find(".preloader").each((function(e,n){t.preloader.init(n)}))}},vnode:{preloader:{insert:function(e){var t=e.elm;this.preloader.init(t)}}}},Cn={set:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2];if("number"==typeof n[0]&&(a=n[0],o=n[1],i=e.root),null==a)return i;a||(a=0);var s=k(i||e.root);if(0===s.length)return i;var l,c=Math.min(Math.max(a,0),100);if(0===(l=s.hasClass("progressbar")?s.eq(0):s.children(".progressbar")).length||l.hasClass("progressbar-infinite"))return l;var u=l.children("span");return 0===u.length&&(u=k("<span></span>"),l.append(u)),u.transition(void 0!==o?o:"").transform("translate3d(".concat(-100+c,"%,0,0)")),l[0]},show:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],s="determined";2===n.length?"string"!=typeof n[0]&&"object"!==N()(n[0])||"string"!=typeof n[1]?"number"==typeof n[0]&&"string"==typeof n[1]&&(a=n[0],o=n[1],i=e.root):(i=n[0],o=n[1],a=n[2],s="infinite"):1===n.length?"number"==typeof n[0]?(i=e.root,a=n[0]):"string"==typeof n[0]&&(s="infinite",i=e.root,o=n[0]):0===n.length&&(s="infinite",i=e.root);var l,c=k(i);if(0!==c.length)return c.hasClass("progressbar")||c.hasClass("progressbar-infinite")?l=c:0===(l=c.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)")).length&&(l=k('\n          <span class="progressbar'.concat("infinite"===s?"-infinite":"").concat(o?" color-".concat(o):"",' progressbar-in">\n            ').concat("infinite"===s?"":"<span></span>","\n          </span>")),c.append(l)),void 0!==a&&e.progressbar.set(l,a),l[0]},hide:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,i=k(e||r.root);if(0!==i.length)return 0===(t=i.hasClass("progressbar")||i.hasClass("progressbar-infinite")?i:i.children(".progressbar, .progressbar-infinite")).length||!t.hasClass("progressbar-in")||t.hasClass("progressbar-out")||t.removeClass("progressbar-in").addClass("progressbar-out").animationEnd((function(){n&&t.remove()})),t}},xn={name:"progressbar",create:function(){z.extend(this,{progressbar:{set:Cn.set.bind(this),show:Cn.show.bind(this),hide:Cn.hide.bind(this)}})},on:{tabMounted:function(e){var t=this;k(e).find(".progressbar").each((function(e,n){var r=k(n);t.progressbar.set(r,r.attr("data-progress"))}))},pageInit:function(e){var t=this;e.$el.find(".progressbar").each((function(e,n){var r=k(n);t.progressbar.set(r,r.attr("data-progress"))}))}},vnode:{progressbar:{insert:function(e){var t=e.elm;this.progressbar.set(t,t.getAttribute("data-progress"))},update:function(e){var t=e.elm;this.progressbar.set(t,t.getAttribute("data-progress"))}}}},Mn={init:function(){var e,t,n,r,i,a,o,s,l,c,u,h,p,f,m,v,g,y,b,_,w,E=this;function T(r,s){t=!1,e=!0,w=!1,n="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY,i=k(r.target).closest("li").eq(0),p=i.index(),o=i.parents(".sortable");var l=i.parents(".list-group");l.length&&l.parents(o).length&&(o=l),a=o.children("ul").children("li:not(.disallow-sorting):not(.no-sorting)"),E.panel&&(E.panel.allowOpen=!1),E.swipeout&&(E.swipeout.allow=!1),s&&(i.addClass("sorting"),o.addClass("sortable-sorting"),w=!0)}var S=!!E.support.passiveListener&&{passive:!1,capture:!1};k(d.a).on(E.touchEvents.start,".list.sortable .sortable-handler",T,S),E.on("touchmove:active",(function(d){if(e&&i){var p="touchmove"===d.type?d.targetTouches[0].pageY:d.pageY;if(!t){f=i.parents(".page"),m=i.parents(".page-content");var w=parseInt(m.css("padding-top"),10),E=parseInt(m.css("padding-bottom"),10);_=m[0].scrollTop,g=f.offset().top+w,v=f.height()-w-E,i.addClass("sorting"),o.addClass("sortable-sorting"),y=i[0].offsetTop,l=i[0].offsetTop,c=i.parent().height()-y-i.height(),s=i[0].offsetHeight,b=i.offset().top}t=!0,d.preventDefault(),d.f7PreventSwipePanel=!0,r=p-n;var T=m[0].scrollTop-_,S=Math.min(Math.max(r+T,-l),c);i.transform("translate3d(0,".concat(S,"px,0)"));var C,x=!0;r+T+44<-l&&(x=!1),r+T-44>c&&(x=!1),h=void 0,u=void 0,x&&(b+r+s+44>g+v&&(C=b+r+s+44-(g+v)),b+r<g+44&&(C=b+r-g-44),C&&(m[0].scrollTop+=C)),a.each((function(e,t){var n=k(t);if(n[0]!==i[0]){var r=n[0].offsetTop,a=n.height(),o=y+S;o>=r-a/2&&i.index()<n.index()?(n.transform("translate3d(0, ".concat(-s,"px,0)")),u=n,h=void 0):o<=r+a/2&&i.index()>n.index()?(n.transform("translate3d(0, ".concat(s,"px,0)")),u=void 0,h||(h=n)):n.transform("translate3d(0, 0%,0)")}}))}})),E.on("touchend:passive",(function(){if(!e||!t)return e&&!t&&(E.panel&&(E.panel.allowOpen=!0),E.swipeout&&(E.swipeout.allow=!0),w&&(i.removeClass("sorting"),o.removeClass("sortable-sorting"))),e=!1,void(t=!1);var n;E.panel&&(E.panel.allowOpen=!0),E.swipeout&&(E.swipeout.allow=!0),a.transform(""),i.removeClass("sorting"),o.removeClass("sortable-sorting"),u?n=u.index():h&&(n=h.index());var r=o.dataset().sortableMoveElements;if(void 0===r&&(r=E.params.sortable.moveElements),r&&(u&&i.insertAfter(u),h&&i.insertBefore(h)),(u||h)&&o.hasClass("virtual-list")){void 0===(p=i[0].f7VirtualListIndex)&&(p=i.attr("data-virtual-list-index")),h?void 0===(n=h[0].f7VirtualListIndex)&&(n=h.attr("data-virtual-list-index")):void 0===(n=u[0].f7VirtualListIndex)&&(n=u.attr("data-virtual-list-index")),n=null!==n?parseInt(n,10):void 0;var s=o[0].f7VirtualList;p&&(p=parseInt(p,10)),n&&(n=parseInt(n,10)),s&&s.moveItem(p,n)}void 0===n||Number.isNaN(n)||n===p||(i.trigger("sortable:sort",{from:p,to:n}),E.emit("sortableSort",i[0],{from:p,to:n,el:i[0]},o[0])),h=void 0,u=void 0,e=!1,t=!1})),k(d.a).on("taphold",".sortable-tap-hold",(function(e,t){T(t,!0)}))},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=k(e);0!==n.length&&(n.addClass("sortable-enabled"),n.trigger("sortable:enable"),t.emit("sortableEnable",n[0]))},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=k(e);0!==n.length&&(n.removeClass("sortable-enabled"),n.trigger("sortable:disable"),t.emit("sortableDisable",n[0]))},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=k(e);0!==n.length&&(n.hasClass("sortable-enabled")?t.sortable.disable(n):t.sortable.enable(n))}},$n={name:"sortable",params:{sortable:{moveElements:!0}},create:function(){z.extend(this,{sortable:{init:Mn.init.bind(this),enable:Mn.enable.bind(this),disable:Mn.disable.bind(this),toggle:Mn.toggle.bind(this)}})},on:{init:function(){this.params.sortable&&this.sortable.init()}},clicks:{".sortable-enable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.enable(t.sortable)},".sortable-disable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.disable(t.sortable)},".sortable-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.toggle(t.sortable)}}},Ln={init:function(){var e,t,n,r,i,a,o,s,l,c,u,h,p,f,m,v,g,y,b,_,w,E=this,T={};var S=!!E.support.passiveListener&&{passive:!0};E.on("touchstart",(function(e){if(Ln.el){var t=k(e.target);k(Ln.el).is(t[0])||t.parents(".swipeout").is(Ln.el)||t.hasClass("modal-in")||(t.attr("class")||"").indexOf("-backdrop")>0||t.hasClass("actions-modal")||t.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||E.swipeout.close(Ln.el)}})),k(d.a).on(E.touchEvents.start,"li.swipeout",(function(i){Ln.allow&&(t=!1,e=!0,n=void 0,T.x="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,T.y="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY,r=(new Date).getTime(),a=k(this))}),S),E.on("touchmove:active",(function(r){if(e){var d="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,S="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(void 0===n&&(n=!!(n||Math.abs(S-T.y)>Math.abs(d-T.x))),n)e=!1;else{if(!t){if(k(".list.sortable-opened").length>0)return;o=a.find(".swipeout-content"),s=a.find(".swipeout-actions-right"),l=a.find(".swipeout-actions-left"),c=null,u=null,m=null,v=null,b=null,y=null,l.length>0&&(c=l.outerWidth(),m=l.children("a"),y=l.find(".swipeout-overswipe")),s.length>0&&(u=s.outerWidth(),v=s.children("a"),b=s.find(".swipeout-overswipe")),(p=a.hasClass("swipeout-opened"))&&(f=a.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),a.removeClass("swipeout-transitioning"),E.params.swipeout.noFollow||(a.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),a.removeClass("swipeout-opened"))}if(t=!0,r.preventDefault(),i=d-T.x,h=i,p&&("right"===f?h-=u:h+=c),h>0&&0===l.length||h<0&&0===s.length){if(!p)return e=!1,t=!1,o.transform(""),v&&v.length>0&&v.transform(""),void(m&&m.length>0&&m.transform(""));h=0}var C,x;if(h<0?g="to-left":h>0?g="to-right":g||(g="to-left"),r.f7PreventSwipePanel=!0,E.params.swipeout.noFollow)return p?("right"===f&&i>0&&E.swipeout.close(a),"left"===f&&i<0&&E.swipeout.close(a)):(i<0&&s.length>0&&E.swipeout.open(a,"right"),i>0&&l.length>0&&E.swipeout.open(a,"left")),e=!1,void(t=!1);if(_=!1,w=!1,s.length>0){var M=h;x=M/u,M<-u&&(M=-u-Math.pow(-M-u,.8),h=M,b.length>0&&(w=!0)),"to-left"!==g&&(x=0,M=0),v.each((function(e,t){var n=k(t);void 0===t.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=t.offsetLeft),C=t.f7SwipeoutButtonOffset,b.length>0&&n.hasClass("swipeout-overswipe")&&"to-left"===g&&(n.css({left:"".concat(w?-C:0,"px")}),w?(n.hasClass("swipeout-overswipe-active")||(a.trigger("swipeout:overswipeenter"),E.emit("swipeoutOverswipeEnter",a[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(a.trigger("swipeout:overswipeexit"),E.emit("swipeoutOverswipeExit",a[0])),n.removeClass("swipeout-overswipe-active"))),n.transform("translate3d(".concat(M-C*(1+Math.max(x,-1)),"px,0,0)"))}))}if(l.length>0){var $=h;x=$/c,$>c&&($=c+Math.pow($-c,.8),h=$,y.length>0&&(_=!0)),"to-right"!==g&&($=0,x=0),m.each((function(e,t){var n=k(t);void 0===t.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=c-t.offsetLeft-t.offsetWidth),C=t.f7SwipeoutButtonOffset,y.length>0&&n.hasClass("swipeout-overswipe")&&"to-right"===g&&(n.css({left:"".concat(_?C:0,"px")}),_?(n.hasClass("swipeout-overswipe-active")||(a.trigger("swipeout:overswipeenter"),E.emit("swipeoutOverswipeEnter",a[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(a.trigger("swipeout:overswipeexit"),E.emit("swipeoutOverswipeExit",a[0])),n.removeClass("swipeout-overswipe-active"))),m.length>1&&n.css("z-index",m.length-e),n.transform("translate3d(".concat($+C*(1-Math.min(x,1)),"px,0,0)"))}))}a.trigger("swipeout",x),E.emit("swipeout",a[0],x),o.transform("translate3d(".concat(h,"px,0,0)"))}}})),E.on("touchend:passive",(function(){if(!e||!t)return e=!1,void(t=!1);e=!1,t=!1;var n,d,f,y,b=(new Date).getTime()-r,T="to-left"===g?s:l,S="to-left"===g?u:c;if(n=b<300&&(i<-10&&"to-left"===g||i>10&&"to-right"===g)||b>=300&&Math.abs(h)>S/2?"open":"close",b<300&&(0===Math.abs(h)&&(n="close"),Math.abs(h)===S&&(n="open")),"open"===n){Ln.el=a[0],a.trigger("swipeout:open"),E.emit("swipeoutOpen",a[0]),a.addClass("swipeout-opened swipeout-transitioning");var C="to-left"===g?-S:S;if(o.transform("translate3d(".concat(C,"px,0,0)")),T.addClass("swipeout-actions-opened"),d="to-left"===g?v:m)for(f=0;f<d.length;f+=1)k(d[f]).transform("translate3d(".concat(C,"px,0,0)"));w&&s.find(".swipeout-overswipe").trigger("click","f7Overswipe"),_&&l.find(".swipeout-overswipe").trigger("click","f7Overswipe")}else a.trigger("swipeout:close"),E.emit("swipeoutClose",a[0]),Ln.el=void 0,a.addClass("swipeout-transitioning").removeClass("swipeout-opened"),o.transform(""),T.removeClass("swipeout-actions-opened");m&&m.length>0&&m!==d&&m.each((function(e,t){var n=k(t);void 0===(y=t.f7SwipeoutButtonOffset)&&(n[0].f7SwipeoutButtonOffset=c-t.offsetLeft-t.offsetWidth),n.transform("translate3d(".concat(y,"px,0,0)"))})),v&&v.length>0&&v!==d&&v.each((function(e,t){var n=k(t);void 0===(y=t.f7SwipeoutButtonOffset)&&(n[0].f7SwipeoutButtonOffset=t.offsetLeft),n.transform("translate3d(".concat(-y,"px,0,0)"))})),o.transitionEnd((function(){p&&"open"===n||!p&&"close"===n||(a.trigger("open"===n?"swipeout:opened":"swipeout:closed"),E.emit("open"===n?"swipeoutOpened":"swipeoutClosed",a[0]),a.removeClass("swipeout-transitioning"),p&&"close"===n&&(s.length>0&&v.transform(""),l.length>0&&m.transform("")))}))}))},allow:!0,el:void 0,open:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2];"function"==typeof n[1]&&(i=n[0],o=n[1],a=n[2]);var s=k(i).eq(0);if(0!==s.length&&s.hasClass("swipeout")&&!s.hasClass("swipeout-opened")){a||(a=s.find(".swipeout-actions-right").length>0?"right":"left");var l=s.find(".swipeout-actions-".concat(a)),c=s.find(".swipeout-content");if(0!==l.length){s.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),e.emit("swipeoutOpen",s[0]),l.addClass("swipeout-actions-opened");var u=l.children("a"),d=l.outerWidth(),h="right"===a?-d:d;u.length>1&&u.each((function(e,t){var n=k(t);"right"===a?n.transform("translate3d(".concat(-t.offsetLeft,"px,0,0)")):n.css("z-index",u.length-e).transform("translate3d(".concat(d-t.offsetWidth-t.offsetLeft,"px,0,0)"))})),s.addClass("swipeout-transitioning"),c.transitionEnd((function(){s.trigger("swipeout:opened"),e.emit("swipeoutOpened",s[0]),o&&o.call(s[0])})),z.nextFrame((function(){u.transform("translate3d(".concat(h,"px,0,0)")),c.transform("translate3d(".concat(h,"px,0,0)"))})),Ln.el=s[0]}}},close:function(e,t){var n=this,r=k(e).eq(0);if(0!==r.length&&r.hasClass("swipeout-opened")){var i,a=r.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",o=r.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),s=o.children("a"),l=o.outerWidth();Ln.allow=!1,r.trigger("swipeout:close"),n.emit("swipeoutClose",r[0]),r.removeClass("swipeout-opened").addClass("swipeout-transitioning"),r.find(".swipeout-content").transform("").transitionEnd(c),i=setTimeout(c,500),s.each((function(e,t){var n=k(t);"right"===a?n.transform("translate3d(".concat(-t.offsetLeft,"px,0,0)")):n.transform("translate3d(".concat(l-t.offsetWidth-t.offsetLeft,"px,0,0)")),n.css({left:"0px"}).removeClass("swipeout-overswipe-active")})),Ln.el&&Ln.el===r[0]&&(Ln.el=void 0)}function c(){Ln.allow=!0,r.hasClass("swipeout-opened")||(r.removeClass("swipeout-transitioning"),s.transform(""),r.trigger("swipeout:closed"),n.emit("swipeoutClosed",r[0]),t&&t.call(r[0]),i&&clearTimeout(i))}},delete:function(e,t){var n=this,r=k(e).eq(0);0!==r.length&&(Ln.el=void 0,r.trigger("swipeout:delete"),n.emit("swipeoutDelete",r[0]),r.css({height:"".concat(r.outerHeight(),"px")}),r.transitionEnd((function(){if(r.trigger("swipeout:deleted"),n.emit("swipeoutDeleted",r[0]),t&&t.call(r[0]),r.parents(".virtual-list").length>0){var e=r.parents(".virtual-list")[0].f7VirtualList,i=r[0].f7VirtualListIndex;e&&void 0!==i&&e.deleteItem(i)}else n.params.swipeout.removeElements?n.params.swipeout.removeElementsWithTimeout?setTimeout((function(){r.remove()}),n.params.swipeout.removeElementsTimeout):r.remove():r.removeClass("swipeout-deleting swipeout-transitioning")})),z.nextFrame((function(){r.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")})))}},Pn={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0}},create:function(){z.extend(this,{swipeout:{init:Ln.init.bind(this),open:Ln.open.bind(this),close:Ln.close.bind(this),delete:Ln.delete.bind(this)}}),Object.defineProperty(this.swipeout,"el",{enumerable:!0,configurable:!0,get:function(){return Ln.el},set:function(e){Ln.el=e}}),Object.defineProperty(this.swipeout,"allow",{enumerable:!0,configurable:!0,get:function(){return Ln.allow},set:function(e){Ln.allow=e}})},clicks:{".swipeout-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.swipeout.open(t.swipeout,t.side)},".swipeout-close":function(e){var t=e.closest(".swipeout");0!==t.length&&this.swipeout.close(t)},".swipeout-delete":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=e.closest(".swipeout");if(0!==r.length){var i=t.confirm,a=t.confirmTitle;t.confirm?n.dialog.confirm(i,a,(function(){n.swipeout.delete(r)})):n.swipeout.delete(r)}}},on:{init:function(){this.params.swipeout&&this.swipeout.init()}}},On={toggleClicked:function(e){var t=e.closest(".accordion-item").eq(0);t.length||(t=e.parents("li").eq(0));var n=e.parents(".accordion-item-content").eq(0);n.length&&n.parents(t).length||e.parents("li").length>1&&e.parents("li")[0]!==t[0]||this.accordion.toggle(t)},open:function(e){var t=this,n=k(e),r=!1;function i(){r=!0}if(n.trigger("accordion:beforeopen",{prevent:i},i),t.emit("accordionBeforeOpen",n[0],i),!r){var a=n.parents(".accordion-list").eq(0),o=n.children(".accordion-item-content");if(o.removeAttr("aria-hidden"),0===o.length&&(o=n.find(".accordion-item-content")),0!==o.length){var s=a.length>0&&n.parent().children(".accordion-item-opened");s.length>0&&t.accordion.close(s),o.transitionEnd((function(){n.hasClass("accordion-item-opened")?(o.transition(0),o.css("height","auto"),z.nextFrame((function(){o.transition(""),n.trigger("accordion:opened"),t.emit("accordionOpened",n[0])}))):(o.css("height",""),n.trigger("accordion:closed"),t.emit("accordionClosed",n[0]))})),o.css("height","".concat(o[0].scrollHeight,"px")),n.trigger("accordion:open"),n.addClass("accordion-item-opened"),t.emit("accordionOpen",n[0])}}},close:function(e){var t=this,n=k(e),r=!1;function i(){r=!0}if(n.trigger("accordion:beforeclose",{prevent:i},i),t.emit("accordionBeforeClose",n[0],i),!r){var a=n.children(".accordion-item-content");0===a.length&&(a=n.find(".accordion-item-content")),n.removeClass("accordion-item-opened"),a.attr("aria-hidden",!0),a.transition(0),a.css("height","".concat(a[0].scrollHeight,"px")),a.transitionEnd((function(){n.hasClass("accordion-item-opened")?(a.transition(0),a.css("height","auto"),z.nextFrame((function(){a.transition(""),n.trigger("accordion:opened"),t.emit("accordionOpened",n[0])}))):(a.css("height",""),n.trigger("accordion:closed"),t.emit("accordionClosed",n[0]))})),z.nextFrame((function(){a.transition(""),a.css("height",""),n.trigger("accordion:close"),t.emit("accordionClose",n[0])}))}},toggle:function(e){var t=k(e);0!==t.length&&(t.hasClass("accordion-item-opened")?this.accordion.close(e):this.accordion.open(e))}},Dn={name:"accordion",create:function(){z.extend(this,{accordion:{open:On.open.bind(this),close:On.close.bind(this),toggle:On.toggle.bind(this)}})},clicks:{".accordion-item .item-link, .accordion-item-toggle, .links-list.accordion-list > ul > li > a":function(e){On.toggleClicked.call(this,e)}}};function In(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var An=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(In()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a,o=C()(t);"md"===e.theme?a=48:"ios"===e.theme?a=44:"aurora"===e.theme&&(a=38);var s={cols:1,height:a,cache:!0,dynamicHeightBufferSize:1,showFilteredItemsOnly:!1,renderExternal:void 0,setListHeight:!0,searchByItem:void 0,searchAll:void 0,itemTemplate:void 0,ul:null,createUl:!0,scrollableParentEl:void 0,renderItem:function(e){return'\n          <li>\n            <div class="item-content">\n              <div class="item-inner">\n                <div class="item-title">'.concat(e,"</div>\n              </div>\n            </div>\n          </li>\n        ").trim()},on:{}};if(o.useModulesParams(s),o.params=z.extend(s,i),void 0!==o.params.height&&o.params.height||(o.params.height=a),o.$el=k(i.el),o.el=o.$el[0],0===o.$el.length)return L()(t,void 0);o.$el[0].f7VirtualList=o,o.items=o.params.items,o.params.showFilteredItemsOnly&&(o.filteredItems=[]),o.params.itemTemplate?"string"==typeof o.params.itemTemplate?o.renderItem=e.t7.compile(o.params.itemTemplate):"function"==typeof o.params.itemTemplate&&(o.renderItem=o.params.itemTemplate):o.params.renderItem&&(o.renderItem=o.params.renderItem),o.$pageContentEl=o.$el.parents(".page-content"),o.pageContentEl=o.$pageContentEl[0],o.$scrollableParentEl=o.params.scrollableParentEl?k(o.params.scrollableParentEl).eq(0):o.$pageContentEl,!o.$scrollableParentEl.length&&o.$pageContentEl.length&&(o.$scrollableParentEl=o.$pageContentEl),o.scrollableParentEl=o.$scrollableParentEl[0],void 0!==o.params.updatableScroll?o.updatableScroll=o.params.updatableScroll:(o.updatableScroll=!0,V.a.ios&&V.a.osVersion.split(".")[0]<8&&(o.updatableScroll=!1));var l,c=o.params.ul;o.$ul=c?k(o.params.ul):o.$el.children("ul"),0===o.$ul.length&&o.params.createUl&&(o.$el.append("<ul></ul>"),o.$ul=o.$el.children("ul")),o.ul=o.$ul[0],l=o.ul||o.params.createUl?o.$ul:o.$el,z.extend(o,{$itemsWrapEl:l,itemsWrapEl:l[0],domCache:{},displayDomCache:{},tempDomElement:d.a.createElement("ul"),lastRepaintY:null,fragment:d.a.createDocumentFragment(),pageHeight:void 0,rowsPerScreen:void 0,rowsBefore:void 0,rowsAfter:void 0,rowsToRender:void 0,maxBufferHeight:0,listHeight:void 0,dynamicHeight:"function"==typeof o.params.height}),o.useModules();var h,p,f,m,v=o.handleScroll.bind(o),g=o.handleResize.bind(o);return o.attachEvents=function(){h=o.$el.parents(".page").eq(0),p=o.$el.parents(".tab").eq(0),f=o.$el.parents(".panel").eq(0),m=o.$el.parents(".popup").eq(0),o.$scrollableParentEl.on("scroll",v),h&&h.on("page:reinit",g),p&&p.on("tab:show",g),f&&f.on("panel:open",g),m&&m.on("popup:open",g),e.on("resize",g)},o.detachEvents=function(){o.$scrollableParentEl.off("scroll",v),h&&h.off("page:reinit",g),p&&p.off("tab:show",g),f&&f.off("panel:open",g),m&&m.off("popup:open",g),e.off("resize",g)},o.init(),L()(t,o)}return T()(r,[{key:"setListSize",value:function(){var e=this,t=e.filteredItems||e.items;if(e.pageHeight=e.$scrollableParentEl[0].offsetHeight,e.dynamicHeight){e.listHeight=0,e.heights=[];for(var n=0;n<t.length;n+=1){var r=e.params.height(t[n]);e.listHeight+=r,e.heights.push(r)}}else e.listHeight=Math.ceil(t.length/e.params.cols)*e.params.height,e.rowsPerScreen=Math.ceil(e.pageHeight/e.params.height),e.rowsBefore=e.params.rowsBefore||2*e.rowsPerScreen,e.rowsAfter=e.params.rowsAfter||e.rowsPerScreen,e.rowsToRender=e.rowsPerScreen+e.rowsBefore+e.rowsAfter,e.maxBufferHeight=e.rowsBefore/2*e.params.height;(e.updatableScroll||e.params.setListHeight)&&e.$itemsWrapEl.css({height:"".concat(e.listHeight,"px")})}},{key:"render",value:function(e,t){var n=this;e&&(n.lastRepaintY=null);var r=-(n.$el[0].getBoundingClientRect().top-n.$scrollableParentEl[0].getBoundingClientRect().top);if(void 0!==t&&(r=t),null===n.lastRepaintY||Math.abs(r-n.lastRepaintY)>n.maxBufferHeight||!n.updatableScroll&&n.$scrollableParentEl[0].scrollTop+n.pageHeight>=n.$scrollableParentEl[0].scrollHeight){n.lastRepaintY=r;var i,a,o,s=n.filteredItems||n.items,l=0,c=0;if(n.dynamicHeight){var u,d=0;n.maxBufferHeight=n.pageHeight;for(var h=0;h<n.heights.length;h+=1)u=n.heights[h],void 0===i&&(d+u>=r-2*n.pageHeight*n.params.dynamicHeightBufferSize?i=h:l+=u),void 0===a&&((d+u>=r+2*n.pageHeight*n.params.dynamicHeightBufferSize||h===n.heights.length-1)&&(a=h+1),c+=u),d+=u;a=Math.min(a,s.length)}else(i=(parseInt(r/n.params.height,10)-n.rowsBefore)*n.params.cols)<0&&(i=0),a=Math.min(i+n.rowsToRender*n.params.cols,s.length);var p,f=[];for(n.reachEnd=!1,p=i;p<a;p+=1){var m=void 0,v=n.items.indexOf(s[p]);p===i&&(n.currentFromIndex=v),p===a-1&&(n.currentToIndex=v),n.filteredItems?n.items[v]===n.filteredItems[n.filteredItems.length-1]&&(n.reachEnd=!0):v===n.items.length-1&&(n.reachEnd=!0),n.params.renderExternal?f.push(s[p]):n.domCache[v]?(m=n.domCache[v]).f7VirtualListIndex=v:(n.renderItem?n.tempDomElement.innerHTML=n.renderItem(s[p],v).trim():n.tempDomElement.innerHTML=s[p].toString().trim(),m=n.tempDomElement.childNodes[0],n.params.cache&&(n.domCache[v]=m),m.f7VirtualListIndex=v),p===i&&(o=n.dynamicHeight?l:p*n.params.height/n.params.cols),n.params.renderExternal||(m.style.top="".concat(o,"px"),n.emit("local::itemBeforeInsert vlItemBeforeInsert",n,m,s[p]),n.fragment.appendChild(m))}n.updatableScroll||(n.dynamicHeight?n.itemsWrapEl.style.height="".concat(c,"px"):n.itemsWrapEl.style.height="".concat(p*n.params.height/n.params.cols,"px")),n.params.renderExternal?s&&0===s.length&&(n.reachEnd=!0):(n.emit("local::beforeClear vlBeforeClear",n,n.fragment),n.itemsWrapEl.innerHTML="",n.emit("local::itemsBeforeInsert vlItemsBeforeInsert",n,n.fragment),s&&0===s.length?(n.reachEnd=!0,n.params.emptyTemplate&&(n.itemsWrapEl.innerHTML=n.params.emptyTemplate)):n.itemsWrapEl.appendChild(n.fragment),n.emit("local::itemsAfterInsert vlItemsAfterInsert",n,n.fragment)),void 0!==t&&e&&n.$scrollableParentEl.scrollTop(t,0),n.params.renderExternal&&n.params.renderExternal(n,{fromIndex:i,toIndex:a,listHeight:n.listHeight,topPosition:o,items:f})}}},{key:"filterItems",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.filteredItems=[];for(var r=0;r<e.length;r+=1)n.filteredItems.push(n.items[e[r]]);t&&(n.$scrollableParentEl[0].scrollTop=0),n.update()}},{key:"resetFilter",value:function(){var e=this;e.params.showFilteredItemsOnly?e.filteredItems=[]:(e.filteredItems=null,delete e.filteredItems),e.update()}},{key:"scrollToItem",value:function(e){var t=this;if(e>t.items.length)return!1;var n=0;if(t.dynamicHeight)for(var r=0;r<e;r+=1)n+=t.heights[r];else n=e*t.params.height;var i=t.$el[0].offsetTop;return t.render(!0,i+n-parseInt(t.$scrollableParentEl.css("padding-top"),10)),!0}},{key:"handleScroll",value:function(){this.render()}},{key:"isVisible",value:function(){return!!(this.el.offsetWidth||this.el.offsetHeight||this.el.getClientRects().length)}},{key:"handleResize",value:function(){this.isVisible()&&(this.setListSize(),this.render(!0))}},{key:"appendItems",value:function(e){for(var t=0;t<e.length;t+=1)this.items.push(e[t]);this.update()}},{key:"appendItem",value:function(e){this.appendItems([e])}},{key:"replaceAllItems",value:function(e){this.items=e,delete this.filteredItems,this.domCache={},this.update()}},{key:"replaceItem",value:function(e,t){this.items[e]=t,this.params.cache&&delete this.domCache[e],this.update()}},{key:"prependItems",value:function(e){for(var t=this,n=e.length-1;n>=0;n-=1)t.items.unshift(e[n]);if(t.params.cache){var r={};Object.keys(t.domCache).forEach((function(n){r[parseInt(n,10)+e.length]=t.domCache[n]})),t.domCache=r}t.update()}},{key:"prependItem",value:function(e){this.prependItems([e])}},{key:"moveItem",value:function(e,t){var n=this,r=e,i=t;if(r!==i){var a=n.items.splice(r,1)[0];if(i>=n.items.length?(n.items.push(a),i=n.items.length-1):n.items.splice(i,0,a),n.params.cache){var o={};Object.keys(n.domCache).forEach((function(e){var t=parseInt(e,10),a=r<i?r:i,s=r<i?i:r,l=r<i?-1:1;(t<a||t>s)&&(o[t]=n.domCache[t]),t===a&&(o[s]=n.domCache[t]),t>a&&t<=s&&(o[t+l]=n.domCache[t])})),n.domCache=o}n.update()}}},{key:"insertItemBefore",value:function(e,t){var n=this;if(0!==e)if(e>=n.items.length)n.appendItem(t);else{if(n.items.splice(e,0,t),n.params.cache){var r={};Object.keys(n.domCache).forEach((function(t){var i=parseInt(t,10);i>=e&&(r[i+1]=n.domCache[i])})),n.domCache=r}n.update()}else n.prependItem(t)}},{key:"deleteItems",value:function(e){for(var t,n=this,r=0,i=function(i){var a=e[i];void 0!==t&&a>t&&(r=-i),a+=r,t=e[i];var o=n.items.splice(a,1)[0];if(n.filteredItems&&n.filteredItems.indexOf(o)>=0&&n.filteredItems.splice(n.filteredItems.indexOf(o),1),n.params.cache){var s={};Object.keys(n.domCache).forEach((function(e){var t=parseInt(e,10);t===a?delete n.domCache[a]:parseInt(e,10)>a?s[t-1]=n.domCache[e]:s[t]=n.domCache[e]})),n.domCache=s}},a=0;a<e.length;a+=1)i(a);n.update()}},{key:"deleteAllItems",value:function(){var e=this;e.items=[],delete e.filteredItems,e.params.cache&&(e.domCache={}),e.update()}},{key:"deleteItem",value:function(e){this.deleteItems([e])}},{key:"clearCache",value:function(){this.domCache={}}},{key:"update",value:function(e){e&&this.params.cache&&(this.domCache={}),this.setListSize(),this.render(!0)}},{key:"init",value:function(){this.attachEvents(),this.setListSize(),this.render()}},{key:"destroy",value:function(){var e=this;e.detachEvents(),e.$el[0].f7VirtualList=null,delete e.$el[0].f7VirtualList,z.deleteProps(e),e=null}}]),r}(G),Nn={name:"virtualList",static:{VirtualList:An},create:function(){this.virtualList=X({defaultSelector:".virtual-list",constructor:An,app:this,domProp:"f7VirtualList"})}};function Rn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Yn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Rn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a,o,s,l,c=C()(t),d={el:null,listEl:null,indexes:"auto",iosItemHeight:14,mdItemHeight:14,auroraItemHeight:14,scrollList:!0,label:!1,renderItem:function(e,t){return"\n          <li>".concat(e,"</li>\n        ").trim()},renderSkipPlaceholder:function(){return'<li class="list-index-skip-placeholder"></li>'},on:{}};if(c.useModulesParams(d),c.params=z.extend(d,i),!c.params.el)return L()(t,c);if((a=k(c.params.el))[0].f7ListIndex)return L()(t,a[0].f7ListIndex);if(0===(l=a.find("ul")).length&&(l=k("<ul></ul>"),a.append(l)),c.params.listEl&&(o=k(c.params.listEl)),"auto"===c.params.indexes&&!o)return L()(t,c);function h(){var e={index:c};c.calcSize(),e!==c.height&&c.render()}function p(e){var t=k(e.target).closest("li");if(t.length){var n=t.index();if(c.skipRate>0){var r=n/(t.siblings("li").length-1);n=Math.round((c.indexes.length-1)*r)}var i=c.indexes[n];c.$el.trigger("listindex:click",{content:i,index:n}),c.emit("local::click listIndexClick",c,i,n),c.$el.trigger("listindex:select",{content:i,index:n}),c.emit("local::select listIndexSelect",c,i,n),c.$listEl&&c.params.scrollList&&c.scrollListToIndex(i,n)}}o?s=o.parents(".page-content").eq(0):0===(s=a.siblings(".page-content").eq(0)).length&&(s=a.parents(".page").eq(0).find(".page-content").eq(0)),a[0].f7ListIndex=c,z.extend(c,{app:e,$el:a,el:a&&a[0],$ul:l,ul:l&&l[0],$listEl:o,listEl:o&&o[0],$pageContentEl:s,pageContentEl:s&&s[0],indexes:i.indexes,height:0,skipRate:0}),c.useModules();var f,m,v,g,y,b={},_=null;function w(e){var t=l.children();t.length&&(v=t[0].getBoundingClientRect().top,g=t[t.length-1].getBoundingClientRect().top+t[0].offsetHeight,b.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,b.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,f=!0,m=!1,_=null)}function E(e){if(f){!m&&c.params.label&&(y=k('<span class="list-index-label"></span>'),a.append(y)),m=!0;var t="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;e.preventDefault();var n=(t-v)/(g-v);n=Math.min(Math.max(n,0),1);var r=Math.round((c.indexes.length-1)*n),i=c.indexes[r],o=g-v,s=(c.height-o)/2+(1-n)*o;r!==_&&(c.params.label&&y.html(i).transform("translateY(-".concat(s,"px)")),c.$listEl&&c.params.scrollList&&c.scrollListToIndex(i,r)),_=r,c.$el.trigger("listindex:select"),c.emit("local::select listIndexSelect",c,i,r)}}function T(){f&&(f=!1,m=!1,c.params.label&&(y&&y.remove(),y=void 0))}var S=!!e.support.passiveListener&&{passive:!0};return c.attachEvents=function(){a.parents(".tab").on("tab:show",h),a.parents(".page").on("page:reinit",h),a.parents(".panel").on("panel:open",h),a.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").on("modal:open",h),e.on("resize",h),a.on("click",p),a.on(e.touchEvents.start,w,S),e.on("touchmove:active",E),e.on("touchend:passive",T)},c.detachEvents=function(){a.parents(".tab").off("tab:show",h),a.parents(".page").off("page:reinit",h),a.parents(".panel").off("panel:open",h),a.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").off("modal:open",h),e.off("resize",h),a.off("click",p),a.off(e.touchEvents.start,w,S),e.off("touchmove:active",E),e.off("touchend:passive",T)},c.init(),L()(t,c)}return T()(r,[{key:"scrollListToIndex",value:function(e,t){var n,r=this.$listEl,i=this.$pageContentEl,a=this.app;if(!r||!i||0===i.length)return this;if(r.find(".list-group-title, .item-divider").each((function(t,r){if(!n){var i=k(r);i.text()===e&&(n=i)}})),!n||0===n.length)return this;var o=n.parent().offset().top,s=parseInt(i.css("padding-top"),10),l=i[0].scrollTop,c=n.offset().top;if(i.parents(".page-with-navbar-large").length){var u=a.navbar.getElByPage(i.parents(".page-with-navbar-large").eq(0)),d=k(u).find(".title-large");d.length&&(s-=d[0].offsetHeight||0)}return o<=s?i.scrollTop(o+l-s):i.scrollTop(c+l-s),this}},{key:"renderSkipPlaceholder",value:function(){return this.params.renderSkipPlaceholder.call(this)}},{key:"renderItem",value:function(e,t){return this.params.renderItem.call(this,e,t)}},{key:"render",value:function(){var e,t=this,n=t.$ul,r=t.indexes,i=t.skipRate,a=r.map((function(n,r){if(r%i!=0&&i>0)return e=!0,"";var a=t.renderItem(n,r);return e&&(a=t.renderSkipPlaceholder()+a),e=!1,a})).join("");return n.html(a),t}},{key:"calcSize",value:function(){var e=this.app,t=this.params,n=this.el,r=this.indexes,i=n.offsetHeight,a=t["".concat(e.theme,"ItemHeight")],o=Math.floor(i/a),s=r.length,l=0;return s>o&&(l=Math.ceil((2*s-1)/o)),this.height=i,this.skipRate=l,this}},{key:"calcIndexes",value:function(){var e=this;return"auto"===e.params.indexes?(e.indexes=[],e.$listEl.find(".list-group-title, .item-divider").each((function(t,n){var r=k(n).text();e.indexes.indexOf(r)<0&&e.indexes.push(r)}))):e.indexes=e.params.indexes,e}},{key:"update",value:function(){return this.calcIndexes(),this.calcSize(),this.render(),this}},{key:"init",value:function(){this.calcIndexes(),this.calcSize(),this.render(),this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("listindex:beforedestroy",e),e.emit("local::beforeDestroy listIndexBeforeDestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7ListIndex=null,delete e.$el[0].f7ListIndex),z.deleteProps(e),e=null}}]),r}(G),Bn={name:"listIndex",static:{ListIndex:Yn},create:function(){this.listIndex=X({defaultSelector:".list-index",constructor:Yn,app:this,domProp:"f7ListIndex"})},on:{tabMounted:function(e){var t=this;k(e).find(".list-index-init").each((function(e,n){var r=z.extend(k(n).dataset(),{el:n});t.listIndex.create(r)}))},tabBeforeRemove:function(e){k(e).find(".list-index-init").each((function(e,t){t.f7ListIndex&&t.f7ListIndex.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".list-index-init").each((function(e,n){var r=z.extend(k(n).dataset(),{el:n});t.listIndex.create(r)}))},pageBeforeRemove:function(e){e.$el.find(".list-index-init").each((function(e,t){t.f7ListIndex&&t.f7ListIndex.destroy()}))}},vnode:{"list-index-init":{insert:function(e){var t=e.elm,n=z.extend(k(t).dataset(),{el:t});this.listIndex.create(n)},destroy:function(e){var t=e.elm;t.f7ListIndex&&t.f7ListIndex.destroy()}}}},jn={show:function(){for(var e,t,n,r,i=this,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];1===o.length&&o[0].constructor===Object?(e=o[0].tabEl,t=o[0].tabLinkEl,n=o[0].animate,r=o[0].tabRoute):(e=o[0],t=o[1],n=o[2],r=o[3],"boolean"==typeof o[1]&&(e=o[0],n=o[1],t=o[2],r=o[3],o.length>2&&t.constructor===Object&&(e=o[0],n=o[1],r=o[2],t=o[3]))),void 0===n&&(n=!0);var l,c=k(e);if(r&&c[0]&&(c[0].f7TabRoute=r),0===c.length||c.hasClass("tab-active"))return{$newTabEl:c,newTabEl:c[0]};t&&(l=k(t));var u=c.parent(".tabs");if(0===u.length)return{$newTabEl:c,newTabEl:c[0]};i.swipeout&&(i.swipeout.allowOpen=!0);var d=[];function h(e){d.push(e)}function p(){d.forEach((function(e){e()}))}var f,m=!1;if(u.parent().hasClass("tabs-animated-wrap")){u.parent()[n?"removeClass":"addClass"]("not-animated");var v=parseFloat(u.css("transition-duration").replace(",","."));n&&v&&(u.transitionEnd(p),m=!0);var g=100*(i.rtl?c.index():-c.index());u.transform("translate3d(".concat(g,"%,0,0)"))}u.parent().hasClass("tabs-swipeable-wrap")&&i.swiper&&((f=u.parent()[0].swiper)&&f.activeIndex!==c.index()?(m=!0,f.once("slideChangeTransitionEnd",(function(){p()})).slideTo(c.index(),n?void 0:0)):f&&f.animating&&(m=!0,f.once("slideChangeTransitionEnd",(function(){p()}))));var y=u.children(".tab-active");if(y.removeClass("tab-active"),(!f||f&&!f.animating||f&&r)&&(y.hasClass("view")&&y.children(".page").length&&y.children(".page").each((function(e,t){k(t).trigger("page:tabhide"),i.emit("pageTabHide",t)})),y.trigger("tab:hide"),i.emit("tabHide",y[0])),c.addClass("tab-active"),(!f||f&&!f.animating||f&&r)&&(c.hasClass("view")&&c.children(".page").length&&c.children(".page").each((function(e,t){k(t).trigger("page:tabshow"),i.emit("pageTabShow",t)})),c.trigger("tab:show"),i.emit("tabShow",c[0])),!l&&((!(l=k("string"==typeof e?'.tab-link[href="'.concat(e,'"]'):'.tab-link[href="#'.concat(c.attr("id"),'"]')))||l&&0===l.length)&&k("[data-tab]").each((function(e,t){c.is(k(t).attr("data-tab"))&&(l=k(t))})),r&&(!l||l&&0===l.length)&&0===(l=k('[data-route-tab-id="'.concat(r.route.tab.id,'"]'))).length&&(l=k('.tab-link[href="'.concat(r.url,'"]'))),l.length>1&&c.parents(".page").length&&(l=l.filter((function(e,t){return k(t).parents(".page")[0]===c.parents(".page")[0]})),"ios"===i.theme&&0===l.length&&r))){var b=c.parents(".page"),_=k(i.navbar.getElByPage(b));0===(l=_.find('[data-route-tab-id="'.concat(r.route.tab.id,'"]'))).length&&(l=_.find('.tab-link[href="'.concat(r.url,'"]')))}if(l.length>0){var w;if(y&&y.length>0){var E=y.attr("id");E&&(!(w=k('.tab-link[href="#'.concat(E,'"]')))||w&&0===w.length)&&(w=k('.tab-link[data-route-tab-id="'.concat(E,'"]'))),(!w||w&&0===w.length)&&k("[data-tab]").each((function(e,t){y.is(k(t).attr("data-tab"))&&(w=k(t))})),(!w||w&&0===w.length)&&(w=l.siblings(".tab-link-active"))}else r&&(w=l.siblings(".tab-link-active"));if(w&&w.length>1&&y&&y.parents(".page").length&&(w=w.filter((function(e,t){return k(t).parents(".page")[0]===y.parents(".page")[0]}))),w&&w.length>0&&w.removeClass("tab-link-active"),l&&l.length>0&&(l.addClass("tab-link-active"),"md"===i.theme&&i.toolbar)){var T=l.parents(".tabbar, .tabbar-labels");T.length>0&&i.toolbar.setHighlight(T)}}return{$newTabEl:c,newTabEl:c[0],$oldTabEl:y,oldTabEl:y[0],onTabsChanged:h,animated:m}}},Fn={name:"tabs",create:function(){z.extend(this,{tab:{show:jn.show.bind(this)}})},clicks:{".tab-link":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;(e.attr("href")&&0===e.attr("href").indexOf("#")||e.attr("data-tab"))&&n.tab.show({tabEl:t.tab||e.attr("href"),tabLinkEl:e,animate:t.animate})}}};var Hn=function(e){var t=e.app;if(!e.swipeInitialized){z.extend(e,{swipeable:!0,swipeInitialized:!0});var n,r,i,a,o,s,l,c,u,d,h,p,f,m=e.params,v=e.$el,g=e.$backdropEl,y=e.side,b=e.effect,_={},w=0;t.on("touchstart:passive",E),t.on("touchmove:active",T),t.on("touchend:passive",S),t.on("gesturestart",C),t.on("gestureend",x),e.on("panelDestroy",(function(){t.off("touchstart:passive",E),t.off("touchmove:active",T),t.off("touchend:passive",S),t.off("gesturestart",C),t.off("gestureend",x)}))}function E(c){if(e.swipeable&&!i&&t.panel.allowOpen&&(m.swipe||m.swipeOnlyClose)&&!r&&!(k(".modal-in:not(.toast):not(.notification), .photo-browser-in").length>0)){var u=(n=t.panel.get("left"===y?"right":"left")||{}).opened&&n.$el&&!n.$el.hasClass("panel-in-breakpoint");if((e.opened||!u)&&(m.swipeOnlyClose||!u)&&(!c.target||"input"!==c.target.nodeName.toLowerCase()||"range"!==c.target.type)&&!(k(c.target).closest(".range-slider, .tabs-swipeable-wrap, .calendar-months, .no-swipe-panel, .card-opened").length>0)&&(_.x="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,_.y="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY,!m.swipeOnlyClose||e.opened)){if(m.swipeActiveArea&&!e.opened){if("left"===y&&_.x>m.swipeActiveArea)return;if("right"===y&&_.x<t.width-m.swipeActiveArea)return}w=0,f=k(e.getViewEl()),a=!1,r=!0,o=void 0,s=!1,l=z.now(),p=void 0}}}function T(n){if(r&&!i&&!s&&!((w+=1)<2))if(n.f7PreventSwipePanel||t.preventSwipePanelBySwipeBack||t.preventSwipePanel)r=!1;else{var l="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,k="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY;if(void 0===o&&(o=!!(o||Math.abs(k-_.y)>Math.abs(l-_.x))),o)r=!1;else{if(!p){if(p=l>_.x?"to-right":"to-left",m.swipeActiveArea>0&&!e.opened){if("left"===y&&_.x>m.swipeActiveArea)return void(r=!1);if("right"===y&&_.x<t.width-m.swipeActiveArea)return void(r=!1)}if(v.hasClass("panel-in-breakpoint"))return void(r=!1);if("left"===y&&"to-left"===p&&!v.hasClass("panel-in")||"right"===y&&"to-right"===p&&!v.hasClass("panel-in"))return void(r=!1)}var E=e.opened?0:-m.swipeThreshold;"right"===y&&(E=-E),a||(e.opened||(e.insertToRoot(),v.addClass("panel-in-swipe"),g.css("visibility","visible"),v.trigger("panel:swipeopen"),e.emit("local::swipeOpen panelSwipeOpen",e)),h=v[0].offsetWidth,"reveal"===b&&v.hasClass("panel-in-collapsed")&&(h-=parseFloat(f.css("margin-".concat(y)))),v.transition(0)),a=!0,n.preventDefault(),c=l-_.x+E,"right"===y?"cover"===b?((u=c+(e.opened?0:h))<0&&(u=0),u>h&&(u=h)):((u=c-(e.opened?h:0))>0&&(u=0),u<-h&&(u=-h)):((u=c+(e.opened?h:0))<0&&(u=0),u>h&&(u=h));var T=Math.abs(u/h);if("reveal"===b?(m.swipeNoFollow||(f.transform("translate3d(".concat(u,"px,0,0)")).transition(0),g.transform("translate3d(".concat(u,"px,0,0)")).transition(0)),v.trigger("panel:swipe",Math.abs(u/h)),e.emit("local::swipe panelSwipe",e,Math.abs(u/h))):("left"===y&&(u-=h),m.swipeNoFollow||(v.transform("translate3d(".concat(u,"px,0,0)")).transition(0),g.transition(0),d=1-Math.abs(u/h),g.css({opacity:d})),v.trigger("panel:swipe",Math.abs(u/h)),e.emit("local::swipe panelSwipe",e,Math.abs(u/h))),m.swipeNoFollow)(e.opened&&0===T||!e.opened&&1===T)&&(s=!0,S(n))}}}function S(t){if(!r||!a)return r=!1,void(a=!1);var n="gesturestart"===t.type||i;r=!1,a=!1;var o,s=(new Date).getTime()-l,d=(0===u||Math.abs(u)===h)&&!m.swipeNoFollow,p=m.swipeThreshold||0;"swap"===(o=n?"reset":e.opened?"cover"===b?0===u?"reset":s<300&&Math.abs(u)>0?"swap":s>=300&&Math.abs(u)<h/2?"reset":"swap":u===-h?"reset":s<300&&Math.abs(u)>=0||s>=300&&Math.abs(u)<=h/2?"left"===y&&u===h?"reset":"swap":"reset":Math.abs(c)<p?"reset":"cover"===b?0===u||s<300&&Math.abs(u)>0||s>=300&&Math.abs(u)<h/2?"swap":"reset":0===u?"reset":s<300&&Math.abs(u)>0||s>=300&&Math.abs(u)>=h/2?"swap":"reset")&&(e.opened?e.close(!d):e.open(!d));var _=!0;if("reset"===o&&!e.opened)if(d)v.removeClass("panel-in-swipe");else{_=!1;var w="reveal"===b?f:v;k("html").addClass("with-panel-closing"),w.transitionEnd((function(){v.hasClass("panel-in")||(v.removeClass("panel-in-swipe"),k("html").removeClass("with-panel-closing"))}))}"reveal"===b&&z.nextFrame((function(){f.transition(""),f.transform("")})),_&&v.removeClass("panel-in-swipe"),v.transition("").transform(""),g.transform("").transition("").css({opacity:"",visibility:""})}function C(e){i=!0,S(e)}function x(){i=!1}};var Un=function(e){var t=e.app;if(!e.resizableInitialized){z.extend(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var n=k("html"),r=e.$el,i=e.$backdropEl,a=e.side,o=e.effect;if(r){var s,l,c,u,d,h,p,f,m={};0===e.$el.find(".panel-resize-handler").length&&e.$el.append('<div class="panel-resize-handler"></div>'),e.$resizeHandlerEl=e.$el.children(".panel-resize-handler"),r.addClass("panel-resizable");var v=!!fe.a.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".panel-resize-handler",y,v),t.on("touchmove:active",b),t.on("touchend:passive",_),t.on("resize",w),e.on("beforeOpen",w),e.once("panelDestroy",(function(){r.removeClass("panel-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".panel-resize-handler",y,v),t.off("touchmove:active",b),t.off("touchend:passive",_),t.off("resize",w),e.off("beforeOpen",w)}))}}function g(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var n=parseInt(e,10);return Number.isNaN(n)?null:n}function y(t){e.resizable&&r.hasClass("panel-resizable")&&(m.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,m.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,l=!1,s=!0,h=g(r.css("min-width")),p=g(r.css("max-width")),f=r.hasClass("panel-in-breakpoint"))}function b(v){if(s){var g="touchmove"===v.type?v.targetTouches[0].pageX:v.pageX;l||(u=r[0].offsetWidth,r.transition(0),r.addClass("panel-resizing"),n.css("cursor","col-resize"),("reveal"===o||f)&&(d=k(e.getViewEl())),"reveal"!==o||f||(i.transition(0),d.transition(0))),l=!0,v.preventDefault(),c=g-m.x;var y="left"===a?u+c:u-c;h&&!Number.isNaN(h)&&(y=Math.max(y,h)),p&&!Number.isNaN(p)&&(y=Math.min(y,p)),y=Math.min(Math.max(y,0),t.width),e.resizableWidth=y,r[0].style.width="".concat(y,"px"),"reveal"!==o||f?f&&d&&d.css("margin-".concat(a),"".concat(y,"px")):(d&&d.transform("translate3d(".concat("left"===a?y:-y,"px, 0, 0)")),i&&i.transform("translate3d(".concat("left"===a?y:-y,"px, 0, 0)"))),r.trigger("panel:resize",y),e.emit("local::resize panelResize",e,y)}}function _(){if(k("html").css("cursor",""),!s||!l)return s=!1,void(l=!1);s=!1,l=!1,n[0].style.setProperty("--f7-panel-".concat(a,"-width"),"".concat(e.resizableWidth,"px")),r[0].style.width="","reveal"!==o||f||(d.transform(""),i.transform("")),r.removeClass("panel-resizing"),z.nextFrame((function(){f||(r.transition(""),"reveal"===o&&(i.transition(""),d&&d.transition("")))}))}function w(){e.opened&&e.resizableWidth&&(h=g(r.css("min-width")),p=g(r.css("max-width")),h&&!Number.isNaN(h)&&e.resizableWidth<h&&(e.resizableWidth=Math.max(e.resizableWidth,h)),p&&!Number.isNaN(p)&&e.resizableWidth>p&&(e.resizableWidth=Math.min(e.resizableWidth,p)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),n[0].style.setProperty("--f7-panel-".concat(a,"-width"),"".concat(e.resizableWidth,"px")))}};function zn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Vn=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(zn()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r);var a=z.extend({on:{}},e.params.panel,i);t=n.call(this,a,[e]);var o,s=C()(t);if(s.params=a,s.params.el?o=k(s.params.el).eq(0):s.params.content&&(o=k(s.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0)),0===o.length)return L()(t,s);if(o[0].f7Panel)return L()(t,o[0].f7Panel);o[0].f7Panel=s;var l,c=s.params,d=c.side,h=c.effect,p=c.resizable;return void 0===d&&(d=o.hasClass("panel-left")?"left":"right"),void 0===h&&(h=o.hasClass("panel-cover")?"cover":"reveal"),void 0===p&&(p=o.hasClass("panel-resizable")),s.params.backdrop&&s.params.backdropEl?l=k(s.params.backdropEl):s.params.backdrop&&0===(l=e.root.children(".panel-backdrop")).length&&(l=k('<div class="panel-backdrop"></div>'),e.root.prepend(l)),z.extend(s,{app:e,side:d,effect:h,resizable:p,$el:o,el:o[0],opened:!1,$backdropEl:l,backdropEl:l&&l[0]}),s.useModules(),s.init(),L()(t,s)}return T()(r,[{key:"getViewEl",value:function(){var e=this.app;return e.root.children(".views").length>0?e.root.children(".views")[0]:e.root.children(".view")[0]}},{key:"enableVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!1,this.setVisibleBreakpoint(),this}},{key:"disableVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!0,this.setVisibleBreakpoint(),this}},{key:"toggleVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!this.visibleBreakpointDisabled,this.setVisibleBreakpoint(),this}},{key:"setVisibleBreakpoint",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;t.visibleBreakpointResizeHandler||(t.visibleBreakpointResizeHandler=function(){t.setVisibleBreakpoint()},n.on("resize",t.visibleBreakpointResizeHandler));var r=t.side,i=t.$el,a=t.params,o=t.visibleBreakpointDisabled,s=a.visibleBreakpoint,l=k(t.getViewEl()),c=i.hasClass("panel-in-breakpoint");n.width>=s&&null!=s&&!o?c?l.css(Z()({},"margin-".concat(r),"".concat(i.width(),"px"))):(k("html").removeClass("with-panel-".concat(r,"-reveal with-panel-").concat(r,"-cover with-panel")),i.addClass("panel-in-breakpoint").removeClass("panel-in panel-in-collapsed"),t.onOpen(!1),t.onOpened(),l.css(Z()({},"margin-".concat(r),"".concat(i.width(),"px"))),n.allowPanelOpen=!0,e&&(t.emit("local::breakpoint panelBreakpoint",t),t.$el.trigger("panel:breakpoint"))):c&&(i.removeClass("panel-in-breakpoint panel-in"),t.onClose(),t.onClosed(),l.css(Z()({},"margin-".concat(r),"")),e&&(t.emit("local::breakpoint panelBreakpoint",t),t.$el.trigger("panel:breakpoint")))}},{key:"enableCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!1,this.setCollapsedBreakpoint(),this}},{key:"disableCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!0,this.setCollapsedBreakpoint(),this}},{key:"toggleCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!this.collapsedBreakpointDisabled,this.setCollapsedBreakpoint(),this}},{key:"setCollapsedBreakpoint",value:function(e){var t=this,n=t.app;t.collapsedBreakpointResizeHandler||(t.collapsedBreakpointResizeHandler=function(){t.setCollapsedBreakpoint()},n.on("resize",t.collapsedBreakpointResizeHandler));var r=t.side,i=t.$el,a=t.params,o=t.collapsedBreakpointDisabled;if(!i.hasClass("panel-in-breakpoint")){var s=a.collapsedBreakpoint,l=i.hasClass("panel-in-collapsed");n.width>=s&&null!=s&&!o?l||(k("html").removeClass("with-panel-".concat(r,"-reveal with-panel-").concat(r,"-cover with-panel")),i.addClass("panel-in-collapsed").removeClass("panel-in"),t.collapsed=!0,n.allowPanelOpen=!0,e&&(t.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",t),t.$el.trigger("panel:collapsedbreakpoint"))):l&&(i.removeClass("panel-in-collapsed panel-in"),t.collapsed=!1,e&&(t.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",t),t.$el.trigger("panel:collapsedbreakpoint")))}}},{key:"enableResizable",value:function(){return this.resizableInitialized?(this.resizable=!0,this.$el.addClass("panel-resizable")):Un(this),this}},{key:"disableResizable",value:function(){return this.resizable=!1,this.$el.removeClass("panel-resizable"),this}},{key:"enableSwipe",value:function(){return this.swipeInitialized?this.swipeable=!0:Hn(this),this}},{key:"disableSwipe",value:function(){return this.swipeable=!1,this}},{key:"onOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;t.opened=!0,n.panel.allowOpen=!1,t.$el.trigger("panel:beforeopen"),t.emit("local::beforeOpen panelBeforeOpen",t),e&&k("html").addClass("with-panel with-panel-".concat(t.side,"-").concat(t.effect)),t.$el.trigger("panel:open"),t.emit("local::open panelOpen",t)}},{key:"onOpened",value:function(){this.app.panel.allowOpen=!0,this.$el.trigger("panel:opened"),this.emit("local::opened panelOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opened=!1,e.panel.allowOpen=!1,this.$el.trigger("panel:beforeclose"),this.emit("local::beforeClose panelBeforeClose",this),k("html").addClass("with-panel-closing"),k("html").removeClass("with-panel with-panel-".concat(this.side,"-").concat(this.effect)),this.$el.trigger("panel:close"),this.emit("local::close panelClose",this)}},{key:"onClosed",value:function(){this.app.panel.allowOpen=!0,k("html").removeClass("with-panel-closing"),this.$el.removeClass("panel-out"),this.$el.trigger("panel:closed"),this.emit("local::closed panelClosed",this)}},{key:"toggle",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.params.visibleBreakpoint,r=t.app;return r.width>=n&&null!=n?t.toggleVisibleBreakpoint():(t.opened?t.close(e):t.open(e),t)}},{key:"insertToRoot",value:function(){var e=this.$el,t=this.app,n=this.$backdropEl,r=e.parent(),i=e.parents(document).length>0;if(!r.is(t.root)||e.prevAll(".views, .view").length){var a=t.root.children(".panel, .views, .view").eq(0),o=t.root.children(".panel-backdrop").eq(0);a.length?e.insertBefore(a):o?e.insertBefore(o):t.root.prepend(e),n&&n.length&&(!n.parent().is(t.root)&&0===n.nextAll(".panel").length||n.parent().is(t.root)&&0===n.nextAll(".panel").length)&&n.insertBefore(e),this.once("panelClosed",(function(){i?r.append(e):e.remove()}))}}},{key:"open",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;if(!n.panel.allowOpen)return!1;var r=t.effect,i=t.$el,a=t.$backdropEl,o=t.opened;if(!i||i.hasClass("panel-in"))return t;if(t.insertToRoot(),o||i.hasClass("panel-in-breakpoint")||i.hasClass("panel-in"))return!1;var s=n.panel.get(".panel-in");s&&s!==t&&s.close(e),i[e?"removeClass":"addClass"]("not-animated"),i.addClass("panel-in"),a[e?"removeClass":"addClass"]("not-animated"),"cover"===t.effect&&(t._clientLeft=i[0].clientLeft);var l="reveal"===r?i.nextAll(".view, .views").eq(0):i;function c(){l.transitionEnd((function(e){k(e.target).is(l)?i.hasClass("panel-out")?t.onClosed():t.onOpened():c()}))}return e?(a&&a.removeClass("not-animated"),c(),i.removeClass("panel-out not-animated").addClass("panel-in"),t.onOpen()):(a&&a.addClass("not-animated"),i.removeClass("panel-out").addClass("panel-in not-animated"),t.onOpen(),t.onOpened()),!0}},{key:"close",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.effect,r=t.$el,i=t.$backdropEl,a=t.opened;if(!a||r.hasClass("panel-in-breakpoint")||!r.hasClass("panel-in"))return t;r[e?"removeClass":"addClass"]("not-animated"),i[e?"removeClass":"addClass"]("not-animated");var o="reveal"===n?r.nextAll(".view, .views").eq(0):r;function s(){r.hasClass("panel-out")?t.onClosed():r.hasClass("panel-in")&&t.onOpened(),k("html").removeClass("with-panel-closing")}return e?(o.transitionEnd((function(){s()})),r.removeClass("panel-in").addClass("panel-out"),t.onClose()):(r.addClass("not-animated").removeClass("panel-in").addClass("panel-out"),t.onClose(),t.onClosed()),t}},{key:"init",value:function(){void 0!==this.params.visibleBreakpoint&&this.setVisibleBreakpoint(),void 0!==this.params.collapsedBreakpoint&&this.setCollapsedBreakpoint(),this.params.swipe&&this.enableSwipe(),this.resizable&&this.enableResizable()}},{key:"destroy",value:function(){var e=this,t=e.app;if(e.$el){if(e.emit("local::beforeDestroy panelBeforeDestroy",e),e.$el.trigger("panel:beforedestroy"),e.visibleBreakpointResizeHandler&&t.off("resize",e.visibleBreakpointResizeHandler),e.collapsedBreakpointResizeHandler&&t.off("resize",e.collapsedBreakpointResizeHandler),e.$el.hasClass("panel-in-breakpoint")||e.$el.hasClass("panel-in-collapsed")){var n=k(e.getViewEl());e.$el.removeClass("panel-in-breakpoint panel-in-collapsed panel-in"),n.css(Z()({},"margin-".concat(e.side),"")),e.emit("local::breakpoint panelBreakpoint",e),e.$el.trigger("panel:breakpoint")}e.$el.trigger("panel:destroy"),e.emit("local::destroy panelDestroy",e),e.el&&(e.el.f7Panel=null,delete e.el.f7Panel),z.deleteProps(e),e=null}}}]),r}(G),qn={name:"panel",params:{panel:{opened:void 0,side:void 0,effect:void 0,resizable:void 0,backdrop:!0,backdropEl:void 0,visibleBreakpoint:void 0,collapsedBreakpoint:void 0,swipe:!1,swipeNoFollow:!1,swipeOnlyClose:!1,swipeActiveArea:0,swipeThreshold:0,closeByBackdropClick:!0}},static:{Panel:Vn},instance:{panel:{allowOpen:!0}},create:function(){var e=this;z.extend(e.panel,{create:function(t){return new Vn(e,t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel";if(e instanceof Vn)return e;"left"!==e&&"right"!==e||(e=".panel-".concat(e));var t=k(e);return 0===t.length||t.length>1?void 0:t[0].f7Panel},destroy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=e.panel.get(t);if(n&&n.destroy)return n.destroy()},open:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.open?r.open(n):r?void 0:(r=e.panel.create({el:t})).open(n)},close:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel-in",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.open?r.close(n):r?void 0:(r=e.panel.create({el:t})).close(n)},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.toggle?r.toggle(n):r?void 0:(r=e.panel.create({el:t})).toggle(n)}})},on:{init:function(){var e=this;k(".panel-init").each((function(t,n){var r=Object.assign({el:n},k(n).dataset()||{});e.panel.create(r)}))},pageInit:function(e){var t=this;e.$el.find(".panel-init").each((function(e,n){var r=Object.assign({el:n},k(n).dataset()||{});t.panel.create(r)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".panel-init").each((function(e,n){var r=t.panel.get(n);r&&r.destroy&&r.destroy()}))}},vnode:{"panel-init":{insert:function(e){var t=e.elm,n=Object.assign({el:t},k(t).dataset()||{});this.panel.create(n)},destroy:function(e){var t=e.elm,n=this.panel.get(t);n&&n.destroy&&n.destroy()}}},clicks:{".panel-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.open(t.panel,t.animate)},".panel-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.close(t.panel,t.animate)},".panel-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.toggle(t.panel,t.animate)},".panel-backdrop":function(){var e=k(".panel-in:not(.panel-out)");if(e.length){var t=e[0]&&e[0].f7Panel;e.trigger("panel:backdrop-click"),t&&t.emit("backdropClick",t),this.emit("panelBackdropClick",t||e[0]),this.params.panel.closeByBackdropClick&&this.panel.close()}}}},Wn={open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=k(e).eq(0);if(r&&r.length&&!(r.hasClass("card-opened")||r.hasClass("card-opening")||r.hasClass("card-closing"))){var i,a=r.parents(".page").eq(0);if(a.length)if(!a.find(".card-opened").length)if(r.trigger("card:beforeopen",{prevent:G}),n.emit("cardBeforeOpen",r[0],G),!i){var o,s,l,c=Object.assign({animate:t},n.params.card,r.dataset()),u=r.parents(".page-content");r.attr("data-backdrop-el")&&(o=k(r.attr("data-backdrop-el"))),!o&&c.backdrop&&((o=u.find(".card-backdrop")).length||(o=k('<div class="card-backdrop"></div>'),u.append(o))),c.hideNavbarOnOpen&&((s=a.children(".navbar")).length||a[0].f7Page&&(s=a[0].f7Page.$navbarEl)),c.hideToolbarOnOpen&&((l=a.children(".toolbar")).length||(l=a.parents(".view").children(".toolbar")),l.length||(l=a.parents(".views").children(".toolbar")));var d,h=r.css("transform");h&&h.match(/[2-9]/)&&(d=!0);var p=r.children(".card-content"),f=k(document.createElement("div")).addClass("card-expandable-size");r.append(f);var m,v=r[0].offsetWidth,g=r[0].offsetHeight,y=a[0].offsetWidth,b=a[0].offsetHeight,_=f[0].offsetWidth||y,w=f[0].offsetHeight||b;s&&!c.hideStatusbarOnOpen&&w===b&&(m=parseInt(s.css("--f7-safe-area-top"),10),Number.isNaN(m)&&(m=0)),m&&(w-=m);var E,T,S=_/v,C=w/g,x=r.offset(),M=a.offset();if(m&&(M.top+=m/2),x.left-=M.left,d){var $=h.replace(/matrix\(|\)/g,"").split(",").map((function(e){return e.trim()}));if($&&$.length>1){var L=parseFloat($[0]);E=x.left-v*(1-L)/2,T=x.top-M.top-g*(1-L)/2,n.rtl&&(E-=r[0].scrollLeft)}else E=r[0].offsetLeft,T=r[0].offsetTop-(u.length?u[0].scrollTop:0)}else E=x.left,T=x.top-M.top,n.rtl&&(E-=r[0].scrollLeft);T-=(b-w)/2;var P=_-v-(E-=(y-_)/2);if(n.rtl){var O=[P,E];E=O[0],P=O[1]}var D,I,A,N,R,Y,B,j,F,H,U,z,V=w-g-T,q=(P-E)/2,W=(V-T)/2;c.hideNavbarOnOpen&&s&&s.length&&(s.closest(".navbar-hidden").length?r[0].f7KeepNavbarOnClose=!0:(delete r[0].f7KeepNavbarOnClose,n.navbar.hide(s,c.animate,c.hideStatusbarOnOpen))),c.hideToolbarOnOpen&&l&&l.length&&(l.closest(".toolbar-hidden").length?r[0].f7KeepToolbarOnClose=!0:(delete r[0].f7KeepToolbarOnClose,n.toolbar.hide(l,c.animate))),o&&o.removeClass("card-backdrop-out").addClass("card-backdrop-in"),r.removeClass("card-transitioning"),c.animate&&r.addClass("card-opening"),r.trigger("card:open"),n.emit("cardOpen",r[0]),p.css({width:"".concat(_,"px"),height:"".concat(w,"px")}).transform("translate3d(".concat(n.rtl?E+q:-E-q,"px, 0px, 0) scale(").concat(1/S,", ").concat(1/C,")")),r.transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(S,", ").concat(C,")")),c.animate?r.transitionEnd((function(){K()})):K(),r[0].detachEventHandlers=function(){n.off("resize",J),fe.a.touch&&c.swipeToClose&&(n.off("touchstart:passive",X),n.off("touchmove:active",Q),n.off("touchend:passive",Z))},n.on("resize",J),fe.a.touch&&c.swipeToClose&&(n.on("touchstart:passive",X),n.on("touchmove:active",Q),n.on("touchend:passive",Z))}}function G(){i=!0}function K(){a.addClass("page-with-card-opened"),n.device.ios&&u.length&&(u.css("height","".concat(u[0].offsetHeight+1,"px")),setTimeout((function(){u.css("height","")}))),r.addClass("card-opened"),r.removeClass("card-opening"),r.trigger("card:opened"),n.emit("cardOpened",r[0],a[0])}function J(){if(r.removeClass("card-transitioning"),v=r[0].offsetWidth,g=r[0].offsetHeight,y=a[0].offsetWidth,b=a[0].offsetHeight,_=f[0].offsetWidth||y,w=f[0].offsetHeight||b,m=0,s&&!c.hideStatusbarOnOpen&&w===b&&(m=parseInt(s.css("--f7-safe-area-top"),10),Number.isNaN(m)&&(m=0)),m&&(w-=m),S=_/v,C=w/g,r.transform("translate3d(0px, 0px, 0) scale(1)"),x=r.offset(),M=a.offset(),m&&(M.top+=m/2),x.left-=M.left,x.top-=M.top,E=x.left-(y-_)/2,n.rtl&&(E-=r[0].scrollLeft),T=x.top-(b-w)/2,P=_-v-E,V=w-g-T,n.rtl){var e=[P,E];E=e[0],P=e[1]}q=(P-E)/2,W=(V-T)/2,r.transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(S,", ").concat(C,")")),p.css({width:"".concat(_,"px"),height:"".concat(w,"px")}).transform("translate3d(".concat(n.rtl?E+q:-E-q,"px, 0px, 0) scale(").concat(1/S,", ").concat(1/C,")"))}function X(e){k(e.target).closest(r).length&&r.hasClass("card-opened")&&(z=r.find(c.scrollableEl),D=z[0]&&z[0]!==p[0]&&!z[0].contains(e.target)?0:z.scrollTop(),I=!0,N=e.targetTouches[0].pageX,R=e.targetTouches[0].pageY,j=void 0,H=!1,U=!1)}function Q(e){if(I){if(Y=e.targetTouches[0].pageX,B=e.targetTouches[0].pageY,void 0===j&&(j=!!(j||Math.abs(B-R)>Math.abs(Y-N))),U||H||(!j&&e.targetTouches[0].clientX<=50?U=!0:H=!0),!U&&!H||H&&0!==D)return I=!0,void(A=!0);A||r.removeClass("card-transitioning"),A=!0,((F=H?Math.max((B-R)/150,0):Math.max((Y-N)/(v/2),0))>0&&H||U)&&(H&&n.device.ios&&z[0]===p[0]&&(z.css("-webkit-overflow-scrolling","auto"),z.scrollTop(0)),e.preventDefault()),F>1&&(F=Math.pow(F,.3)),F>(H?1.3:1.1)?(I=!1,A=!1,n.card.close(r)):r.transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(S*(1-.2*F),", ").concat(C*(1-.2*F),")"))}}function Z(){I&&A&&(I=!1,A=!1,n.device.ios&&z.css("-webkit-overflow-scrolling",""),F>=.8?n.card.close(r):r.addClass("card-transitioning").transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(S,", ").concat(C,")")))}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable.card-opened",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=k(e).eq(0);if(r&&r.length&&r.hasClass("card-opened")&&!r.hasClass("card-opening")&&!r.hasClass("card-closing")){var i=r.children(".card-content"),a=r.parents(".page-content"),o=r.parents(".page").eq(0);if(o.length){var s,l,c,u=Object.assign({animate:t},n.params.card,r.dataset()),d=r.find(u.scrollableEl);r.attr("data-backdrop-el")&&(c=k(r.attr("data-backdrop-el"))),u.backdrop&&(c=r.parents(".page-content").find(".card-backdrop")),u.hideNavbarOnOpen&&((s=o.children(".navbar")).length||o[0].f7Page&&(s=o[0].f7Page.$navbarEl),s&&s.length&&!r[0].f7KeepNavbarOnClose&&n.navbar.show(s,u.animate)),u.hideToolbarOnOpen&&((l=o.children(".toolbar")).length||(l=o.parents(".view").children(".toolbar")),l.length||(l=o.parents(".views").children(".toolbar")),l&&l.length&&!r[0].f7KeepToolbarOnClose&&n.toolbar.show(l,u.animate)),o.removeClass("page-with-card-opened"),n.device.ios&&a.length&&(a.css("height","".concat(a[0].offsetHeight+1,"px")),setTimeout((function(){a.css("height","")}))),c&&c.length&&c.removeClass("card-backdrop-in").addClass("card-backdrop-out"),r.removeClass("card-opened card-transitioning"),u.animate?r.addClass("card-closing"):r.addClass("card-no-transition"),r.transform(""),r.trigger("card:close"),n.emit("cardClose",r[0],o[0]);var h=r.hasClass("card-expandable-animate-width");h&&i.css({width:"",height:""}),i.transform("").scrollTop(0,t?300:0),d.length&&d[0]!==i[0]&&d.scrollTop(0,t?300:0),t?i.transitionEnd((function(){p()})):p(),r[0].detachEventHandlers&&(r[0].detachEventHandlers(),delete r[0].detachEventHandlers)}}function p(){h||i.css({width:"",height:""}),c&&c.length&&c.removeClass("card-backdrop-in card-backdrop-out"),r.removeClass("card-closing card-no-transition"),r.trigger("card:closed"),r.find(".card-expandable-size").remove(),n.emit("cardClosed",r[0],o[0])}},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable",t=arguments.length>1?arguments[1]:void 0,n=this,r=k(e).eq(0);r.length&&(r.hasClass("card-opened")?n.card.close(r,t):n.card.open(r,t))}},Gn={name:"card",params:{card:{hideNavbarOnOpen:!0,hideStatusbarOnOpen:!0,hideToolbarOnOpen:!0,scrollableEl:".card-content",swipeToClose:!0,closeByBackdropClick:!0,backdrop:!0}},create:function(){z.extend(this,{card:{open:Wn.open.bind(this),close:Wn.close.bind(this),toggle:Wn.toggle.bind(this)}})},on:{pageBeforeIn:function(e){if(this.params.card.hideNavbarOnOpen&&e.navbarEl&&e.$el.find(".card-opened.card-expandable").length&&this.navbar.hide(e.navbarEl,!0,this.params.card.hideStatusbarOnOpen),this.params.card.hideToolbarOnOpen&&e.$el.find(".card-opened.card-expandable").length){var t=e.$el.children(".toolbar");t.length||(t=e.$el.parents(".view").children(".toolbar")),t.length||(t=e.$el.parents(".views").children(".toolbar")),t&&t.length&&this.toolbar.hide(t)}}},clicks:{".card-close":function(e,t){this.card.close(t.card,t.animate)},".card-open":function(e,t){this.card.open(t.card,t.animate)},".card-expandable":function(e,t,n){e.hasClass("card-opened")||e.hasClass("card-opening")||e.hasClass("card-closing")||k(n.target).closest(".card-prevent-open, .card-close").length||this.card.open(e)},".card-backdrop-in":function(){var e=!1;this.params.card.closeByBackdropClick&&(e=!0);var t=k(".card-opened");t.length&&("true"===t.attr("data-close-by-backdrop-click")?e=!0:"false"===t.attr("data-close-by-backdrop-click")&&(e=!1),e&&this.card.close(t))}}},Kn={store:function(e,t){var n=e,r=k(e);r.length&&r.is("form")&&r.attr("id")&&(n=r.attr("id")),this.form.data["form-".concat(n)]=t,d.b.localStorage["f7form-".concat(n)]=JSON.stringify(t)},get:function(e){var t=e,n=k(e);return n.length&&n.is("form")&&n.attr("id")&&(t=n.attr("id")),d.b.localStorage["f7form-".concat(t)]?JSON.parse(d.b.localStorage["f7form-".concat(t)]):this.form.data["form-".concat(t)]?this.form.data["form-".concat(t)]:void 0},remove:function(e){var t=e,n=k(e);n.length&&n.is("form")&&n.attr("id")&&(t=n.attr("id")),this.form.data["form-".concat(t)]&&(this.form.data["form-".concat(t)]="",delete this.form.data["form-".concat(t)]),d.b.localStorage["f7form-".concat(t)]&&(d.b.localStorage["f7form-".concat(t)]="",d.b.localStorage.removeItem("f7form-".concat(t)))}},Jn={init:function(e){var t=this,n=k(e),r=n.attr("id");if(r){var i=t.form.getFormData(r);i&&t.form.fillFromData(n,i),n.on("change submit",(function(){var e=t.form.convertToData(n);e&&(t.form.storeFormData(r,e),n.trigger("form:storedata",e),t.emit("formStoreData",n[0],e))}))}},destroy:function(e){k(e).off("change submit")}};function Xn(e){var t=k(e).eq(0);if(0!==t.length){var n={},r=["submit","image","button","file"],i=[];return t.find("input, select, textarea").each((function(e,a){var o=k(a);if(!o.hasClass("ignore-store-data")&&!o.hasClass("no-store-data")){var s=o.attr("name"),l=o.attr("type"),c=a.nodeName.toLowerCase();if(!(r.indexOf(l)>=0)&&!(i.indexOf(s)>=0)&&s)if("select"===c&&o.prop("multiple"))i.push(s),n[s]=[],t.find('select[name="'.concat(s,'"] option')).each((function(e,t){t.selected&&n[s].push(t.value)}));else switch(l){case"checkbox":i.push(s),n[s]=[],t.find('input[name="'.concat(s,'"]')).each((function(e,t){t.checked&&n[s].push(t.value)}));break;case"radio":i.push(s),t.find('input[name="'.concat(s,'"]')).each((function(e,t){t.checked&&(n[s]=t.value)}));break;default:n[s]=o.val()}}})),t.trigger("form:todata",n),this.emit("formToData",t[0],n),n}}function Qn(e,t){var n=k(e).eq(0);if(n.length){var r=t,i=n.attr("id");if(!r&&i&&(r=this.form.getFormData(i)),r){var a=["submit","image","button","file"],o=[];n.find("input, select, textarea").each((function(e,t){var i=k(t);if(!i.hasClass("ignore-store-data")&&!i.hasClass("no-store-data")){var s=i.attr("name"),l=i.attr("type"),c=t.nodeName.toLowerCase();if(void 0!==r[s]&&null!==r[s]&&!(a.indexOf(l)>=0)&&!(o.indexOf(s)>=0)&&s){if("select"===c&&i.prop("multiple"))o.push(s),n.find('select[name="'.concat(s,'"] option')).each((function(e,t){var n=t;r[s].indexOf(t.value)>=0?n.selected=!0:n.selected=!1}));else switch(l){case"checkbox":o.push(s),n.find('input[name="'.concat(s,'"]')).each((function(e,t){var n=t;r[s].indexOf(t.value)>=0?n.checked=!0:n.checked=!1}));break;case"radio":o.push(s),n.find('input[name="'.concat(s,'"]')).each((function(e,t){var n=t;r[s]===t.value?n.checked=!0:n.checked=!1}));break;default:i.val(r[s])}"select"!==c&&"input"!==c&&"textarea"!==c||i.trigger("change","fromdata")}}})),n.trigger("form:fromdata",r),this.emit("formFromData",n[0],r)}}}function Zn(){var e=this;k(d.a).on("submit change","form.form-ajax-submit, form.form-ajax-submit-onchange",(function(t,n){var r=k(this);if(("change"!==t.type||r.hasClass("form-ajax-submit-onchange"))&&("submit"===t.type&&t.preventDefault(),"change"!==t.type||"fromdata"!==n)){var i,a=(r.attr("method")||"GET").toUpperCase(),o=r.prop("enctype")||r.attr("enctype"),s=r.attr("action");if(s)i="POST"===a?"application/x-www-form-urlencoded"===o?e.form.convertToData(r[0]):new d.b.FormData(r[0]):z.serializeObject(e.form.convertToData(r[0])),e.request({method:a,url:s,contentType:o,data:i,beforeSend:function(t){r.trigger("formajax:beforesend",{data:i,xhr:t}),e.emit("formAjaxBeforeSend",r[0],i,t)},error:function(t){r.trigger("formajax:error",{data:i,xhr:t}),e.emit("formAjaxError",r[0],i,t)},complete:function(t){r.trigger("formajax:complete",{data:i,xhr:t}),e.emit("formAjaxComplete",r[0],i,t)},success:function(t,n,a){r.trigger("formajax:success",{data:i,xhr:a}),e.emit("formAjaxSuccess",r[0],i,a)}})}}))}var er={name:"form",create:function(){z.extend(this,{form:{data:{},storeFormData:Kn.store.bind(this),getFormData:Kn.get.bind(this),removeFormData:Kn.remove.bind(this),convertToData:Xn.bind(this),fillFromData:Qn.bind(this),storage:{init:Jn.init.bind(this),destroy:Jn.destroy.bind(this)}}})},on:{init:function(){Zn.call(this)},tabBeforeRemove:function(e){var t=this;k(e).find(".form-store-data").each((function(e,n){t.form.storage.destroy(n)}))},tabMounted:function(e){var t=this;k(e).find(".form-store-data").each((function(e,n){t.form.storage.init(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".form-store-data").each((function(e,n){t.form.storage.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".form-store-data").each((function(e,n){t.form.storage.init(n)}))}}},tr={ignoreTypes:["checkbox","button","submit","range","radio","image"],createTextareaResizableShadow:function(){var e=k(d.a.createElement("textarea"));e.addClass("textarea-resizable-shadow"),e.prop({disabled:!0,readonly:!0}),tr.textareaResizableShadow=e},textareaResizableShadow:void 0,resizeTextarea:function(e){var t=k(e);tr.textareaResizableShadow||tr.createTextareaResizableShadow();var n=tr.textareaResizableShadow;if(t.length&&t.hasClass("resizable")){0===tr.textareaResizableShadow.parents().length&&this.root.append(n);var r=d.b.getComputedStyle(t[0]);"padding-top padding-bottom padding-left padding-right margin-left margin-right margin-top margin-bottom width font-size font-family font-style font-weight line-height font-variant text-transform letter-spacing border box-sizing display".split(" ").forEach((function(e){var t=r[e];"font-size line-height letter-spacing width".split(" ").indexOf(e)>=0&&(t=t.replace(",",".")),n.css(e,t)}));var i=t[0].clientHeight;n.val("");var a=n[0].scrollHeight;n.val(t.val()),n.css("height",0);var o=n[0].scrollHeight;i!==o&&(o>a?t.css("height","".concat(o,"px")):o<i&&t.css("height",""),(o>a||o<i)&&(t.trigger("textarea:resize",{initialHeight:a,currentHeight:i,scrollHeight:o}),this.emit("textareaResize",{initialHeight:a,currentHeight:i,scrollHeight:o})))}},validate:function(e){var t=k(e);if(!t.length)return!0;var n=t.parents(".item-input"),r=t.parents(".input"),i=t[0].validity,a=t.dataset().errorMessage||t[0].validationMessage||"";if(!i)return!0;if(!i.valid){var o=t.nextAll(".item-input-error-message, .input-error-message");return a&&(0===o.length&&(o=k('<div class="'.concat(r.length?"input-error-message":"item-input-error-message",'"></div>'))).insertAfter(t),o.text(a)),o.length>0&&(n.addClass("item-input-with-error-message"),r.addClass("input-with-error-message")),n.addClass("item-input-invalid"),r.addClass("input-invalid"),t.addClass("input-invalid"),!1}return n.removeClass("item-input-invalid item-input-with-error-message"),r.removeClass("input-invalid input-with-error-message"),t.removeClass("input-invalid"),!0},validateInputs:function(e){var t=this;return k(e).find("input, textarea, select").toArray().map((function(e){return t.input.validate(e)})).indexOf(!1)<0},focus:function(e){var t=k(e),n=t.attr("type");tr.ignoreTypes.indexOf(n)>=0||(t.parents(".item-input").addClass("item-input-focused"),t.parents(".input").addClass("input-focused"),t.addClass("input-focused"))},blur:function(e){var t=k(e);t.parents(".item-input").removeClass("item-input-focused"),t.parents(".input").removeClass("input-focused"),t.removeClass("input-focused")},checkEmptyState:function(e){var t=k(e);if(t.is("input, select, textarea, .item-input [contenteditable]")||(t=t.find("input, select, textarea, .item-input [contenteditable]").eq(0)),t.length){var n;n=t[0].hasAttribute("contenteditable")?t.find(".text-editor-placeholder").length?"":t.html():t.val();var r=t.parents(".item-input"),i=t.parents(".input");n&&"string"==typeof n&&""!==n.trim()||Array.isArray(n)&&n.length>0?(r.addClass("item-input-with-value"),i.addClass("input-with-value"),t.addClass("input-with-value"),t.trigger("input:notempty"),this.emit("inputNotEmpty",t[0])):(r.removeClass("item-input-with-value"),i.removeClass("input-with-value"),t.removeClass("input-with-value"),t.trigger("input:empty"),this.emit("inputEmpty",t[0]))}},scrollIntoView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=k(e),a=i.parents(".page-content, .panel, .card-expandable .card-content").eq(0);if(!a.length)return!1;var o=a[0].offsetHeight,s=a[0].scrollTop,l=parseInt(a.css("padding-top"),10),c=parseInt(a.css("padding-bottom"),10),u=a.offset().top-s,d=i.offset().top-u,h=i[0].offsetHeight,p=d+s-l,f=d+s-o+c+h,m=p+(f-p)/2;return s>p?(a.scrollTop(n?m:p,t),!0):s<f?(a.scrollTop(n?m:f,t),!0):(r&&a.scrollTop(n?m:f,t),!1)},init:function(){var e=this;tr.createTextareaResizableShadow(),k(d.a).on("click",".input-clear-button",(function(){var t=k(this).siblings("input, textarea").eq(0),n=t.val();t.val("").trigger("input change").focus().trigger("input:clear",n),e.emit("inputClear",n)})),k(d.a).on("mousedown",".input-clear-button",(function(e){e.preventDefault()})),k(d.a).on("change input","input, textarea, select, .item-input [contenteditable]",(function(){var t=k(this),n=t.attr("type"),r=t[0].nodeName.toLowerCase(),i=t[0].hasAttribute("contenteditable");tr.ignoreTypes.indexOf(n)>=0||(e.input.checkEmptyState(t),i||(null!==t.attr("data-validate-on-blur")||!t.dataset().validate&&null===t.attr("validate")||e.input.validate(t),"textarea"===r&&t.hasClass("resizable")&&e.input.resizeTextarea(t)))}),!0),k(d.a).on("focus","input, textarea, select, .item-input [contenteditable]",(function(){var t=this;e.params.input.scrollIntoViewOnFocus&&(V.a.android?k(d.b).once("resize",(function(){d.a&&d.a.activeElement===t&&e.input.scrollIntoView(t,e.params.input.scrollIntoViewDuration,e.params.input.scrollIntoViewCentered,e.params.input.scrollIntoViewAlways)})):e.input.scrollIntoView(t,e.params.input.scrollIntoViewDuration,e.params.input.scrollIntoViewCentered,e.params.input.scrollIntoViewAlways)),e.input.focus(t)}),!0),k(d.a).on("blur","input, textarea, select, .item-input [contenteditable]",(function(){var t=k(this),n=t[0].nodeName.toLowerCase();e.input.blur(t),(t.dataset().validate||null!==t.attr("validate")||null!==t.attr("data-validate-on-blur"))&&e.input.validate(t),"textarea"===n&&t.hasClass("resizable")&&tr.textareaResizableShadow&&tr.textareaResizableShadow.remove()}),!0),k(d.a).on("invalid","input, textarea, select",(function(t){var n=k(this);null!==n.attr("data-validate-on-blur")||!n.dataset().validate&&null===n.attr("validate")||(t.preventDefault(),e.input.validate(n))}),!0)}},nr={name:"input",params:{input:{scrollIntoViewOnFocus:V.a.android,scrollIntoViewCentered:!1,scrollIntoViewDuration:0,scrollIntoViewAlways:!1}},create:function(){z.extend(this,{input:{scrollIntoView:tr.scrollIntoView.bind(this),focus:tr.focus.bind(this),blur:tr.blur.bind(this),validate:tr.validate.bind(this),validateInputs:tr.validateInputs.bind(this),checkEmptyState:tr.checkEmptyState.bind(this),resizeTextarea:tr.resizeTextarea.bind(this),init:tr.init.bind(this)}})},on:{init:function(){this.input.init()},tabMounted:function(e){var t=this,n=k(e);n.find(".item-input, .input").each((function(e,n){k(n).find("input, select, textarea, [contenteditable]").each((function(e,n){var r=k(n);tr.ignoreTypes.indexOf(r.attr("type"))>=0||t.input.checkEmptyState(r)}))})),n.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))},pageInit:function(e){var t=this,n=e.$el;n.find(".item-input, .input").each((function(e,n){k(n).find("input, select, textarea, [contenteditable]").each((function(e,n){var r=k(n);tr.ignoreTypes.indexOf(r.attr("type"))>=0||t.input.checkEmptyState(r)}))})),n.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))},"panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint":function(e){var t=this;e&&e.$el?e.$el.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)})):k("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))}}};function rr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ir=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(rr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o={};a.useModulesParams(o),a.params=z.extend(o,i);var s=a.params.el;if(!s)return L()(t,a);var l=k(s);if(0===l.length)return L()(t,a);if(l[0].f7Toggle)return L()(t,l[0].f7Toggle);var c,d=l.children('input[type="checkbox"]');z.extend(a,{app:e,$el:l,el:l[0],$inputEl:d,inputEl:d[0],disabled:l.hasClass("disabled")||d.hasClass("disabled")||d.attr("disabled")||d[0].disabled}),Object.defineProperty(a,"checked",{enumerable:!0,configurable:!0,set:function(e){a&&void 0!==a.$inputEl&&a.checked!==e&&(d[0].checked=e,a.$inputEl.trigger("change"))},get:function(){return d[0].checked}}),l[0].f7Toggle=a;var h,p,f,m,v,g={};function y(e){c||a.disabled||(g.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,g.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,p=0,c=!0,h=void 0,m=z.now(),v=a.checked,f=l[0].offsetWidth,z.nextTick((function(){c&&l.addClass("toggle-active-state")})))}function b(t){if(c&&!a.disabled){var n,r="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,o=e.rtl?-1:1;if(void 0===h&&(h=!!(h||Math.abs(i-g.y)>Math.abs(r-g.x))),h)c=!1;else t.preventDefault(),(p=r-g.x)*o<0&&Math.abs(p)>f/3&&v&&(n=!0),p*o>0&&Math.abs(p)>f/3&&!v&&(n=!0),n&&(g.x=r,a.checked=!v,v=!v)}}function _(){if(!c||a.disabled)return h&&l.removeClass("toggle-active-state"),void(c=!1);var t,n=e.rtl?-1:1;c=!1,l.removeClass("toggle-active-state"),z.now()-m<300&&(p*n<0&&v&&(t=!0),p*n>0&&!v&&(t=!0),t&&(a.checked=!v))}function w(){a.$el.trigger("toggle:change"),a.emit("local::change toggleChange",a)}return a.attachEvents=function(){var t=!!fe.a.passiveListener&&{passive:!0};l.on(e.touchEvents.start,y,t),e.on("touchmove",b),e.on("touchend:passive",_),a.$inputEl.on("change",w)},a.detachEvents=function(){var t=!!fe.a.passiveListener&&{passive:!0};l.off(e.touchEvents.start,y,t),e.off("touchmove",b),e.off("touchend:passive",_),a.$inputEl.off("change",w)},a.useModules(),a.init(),t}return T()(r,[{key:"toggle",value:function(){this.checked=!this.checked}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("toggle:beforedestroy"),e.emit("local::beforeDestroy toggleBeforeDestroy",e),delete e.$el[0].f7Toggle,e.detachEvents(),z.deleteProps(e),e=null}}]),r}(G),ar={name:"toggle",create:function(){this.toggle=X({defaultSelector:".toggle",constructor:ir,app:this,domProp:"f7Toggle"})},static:{Toggle:ir},on:{tabMounted:function(e){var t=this;k(e).find(".toggle-init").each((function(e,n){return t.toggle.create({el:n})}))},tabBeforeRemove:function(e){k(e).find(".toggle-init").each((function(e,t){t.f7Toggle&&t.f7Toggle.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".toggle-init").each((function(e,n){return t.toggle.create({el:n})}))},pageBeforeRemove:function(e){e.$el.find(".toggle-init").each((function(e,t){t.f7Toggle&&t.f7Toggle.destroy()}))}},vnode:{"toggle-init":{insert:function(e){var t=e.elm;this.toggle.create({el:t})},destroy:function(e){var t=e.elm;t.f7Toggle&&t.f7Toggle.destroy()}}}};function or(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var sr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(or()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r),i=n.call(this,t,[e]);var a=C()(i),o={el:null,inputEl:null,dual:!1,step:1,label:!1,min:0,max:100,value:0,draggableBar:!0,vertical:!1,verticalReversed:!1,formatLabel:null,scale:!1,scaleSteps:5,scaleSubSteps:0,formatScaleLabel:null,limitKnobPosition:"ios"===e.theme};a.useModulesParams(o),a.params=z.extend(o,t);var s=a.params.el;if(!s)return L()(i,a);var l=k(s);if(0===l.length)return L()(i,a);if(l[0].f7Range)return L()(i,l[0].f7Range);var c,d=l.dataset();"step min max value scaleSteps scaleSubSteps".split(" ").forEach((function(e){void 0===t[e]&&void 0!==d[e]&&(a.params[e]=parseFloat(d[e]))})),"dual label vertical verticalReversed scale".split(" ").forEach((function(e){void 0===t[e]&&void 0!==d[e]&&(a.params[e]=d[e])})),a.params.value||(void 0!==d.value&&(a.params.value=d.value),void 0!==d.valueLeft&&void 0!==d.valueRight&&(a.params.value=[parseFloat(d.valueLeft),parseFloat(d.valueRight)])),a.params.dual||(a.params.inputEl?c=k(a.params.inputEl):l.find('input[type="range"]').length&&(c=l.find('input[type="range"]').eq(0)));var h=a.params,p=h.dual,f=h.step,m=h.label,v=h.min,g=h.max,y=h.value,b=h.vertical,_=h.verticalReversed,w=h.scale,E=h.scaleSteps,T=h.scaleSubSteps,S=h.limitKnobPosition;z.extend(a,{app:e,$el:l,el:l[0],$inputEl:c,inputEl:c?c[0]:void 0,dual:p,step:f,label:m,min:v,max:g,value:y,previousValue:y,vertical:b,verticalReversed:_,scale:w,scaleSteps:E,scaleSubSteps:T,limitKnobPosition:S}),c&&("step min max".split(" ").forEach((function(e){!t[e]&&c.attr(e)&&(a.params[e]=parseFloat(c.attr(e)),a[e]=parseFloat(c.attr(e)))})),void 0!==c.val()&&(a.params.value=parseFloat(c.val()),a.value=parseFloat(c.val()))),a.dual&&l.addClass("range-slider-dual"),a.label&&l.addClass("range-slider-label"),a.vertical?(l.addClass("range-slider-vertical"),a.verticalReversed&&l.addClass("range-slider-vertical-reversed")):l.addClass("range-slider-horizontal");var x=k('<div class="range-bar"></div>'),M=k('<div class="range-bar-active"></div>');x.append(M);var $='\n      <div class="range-knob-wrap">\n        <div class="range-knob"></div>\n        '.concat(a.label?'<div class="range-knob-label"></div>':"","\n      </div>\n    "),P=[k($)];a.dual&&P.push(k($)),l.append(x),P.forEach((function(e){l.append(e)}));var O,D,I=[];a.label&&(I.push(P[0].find(".range-knob-label")),a.dual&&I.push(P[1].find(".range-knob-label"))),a.scale&&a.scaleSteps>1&&(O=k('\n        <div class="range-scale">\n          '.concat(a.renderScale(),"\n        </div>\n      ")),l.append(O)),z.extend(a,{knobs:P,labels:I,$barEl:x,$barActiveEl:M,$scaleEl:O}),l[0].f7Range=a;var A,N,R,Y,B,j,F,H,U,V,q,W={};function G(){F=!0}function K(e){if(!D&&(a.params.draggableBar||0!==k(e.target).closest(".range-knob").length)){var t;F=!1,W.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,W.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,"touchstart"===e.type&&(H=e.targetTouches[0].identifier),D=!0,A=void 0,N=l.offset(),R=N.left,Y=N.top,a.vertical?(t=(W.y-Y)/a.rangeHeight,a.verticalReversed||(t=1-t)):t=a.app.rtl?(R+a.rangeWidth-W.x)/a.rangeWidth:(W.x-R)/a.rangeWidth;var n=t*(a.max-a.min)+a.min;a.dual?Math.abs(a.value[0]-n)<Math.abs(a.value[1]-n)?(j=0,B=a.knobs[0],n=[n,a.value[1]]):(j=1,B=a.knobs[1],n=[a.value[0],n]):(B=a.knobs[0],n=t*(a.max-a.min)+a.min),z.nextTick((function(){D&&B.addClass("range-knob-active-state")}),70),a.on("change",G),a.setValue(n,!0)}}function J(e){if(D){var t,n;if("touchmove"===e.type)for(var r=0;r<e.targetTouches.length;r+=1)e.targetTouches[r].identifier===H&&(t=e.targetTouches[r].pageX,n=e.targetTouches[r].pageY);else t=e.pageX,n=e.pageY;if(void 0!==t||void 0!==n)if(void 0!==A||a.vertical||(A=!!(A||Math.abs(n-W.y)>Math.abs(t-W.x))),A)D=!1;else{var i;e.preventDefault(),a.vertical?(i=(n-Y)/a.rangeHeight,a.verticalReversed||(i=1-i)):i=a.app.rtl?(R+a.rangeWidth-t)/a.rangeWidth:(t-R)/a.rangeWidth;var o,s,l=i*(a.max-a.min)+a.min;if(a.dual)0===j?(o=l)>(s=a.value[1])&&(s=o):(s=l)<(o=a.value[0])&&(o=s),l=[o,s];a.setValue(l,!0)}}}function X(e){if("touchend"===e.type){for(var t,n=0;n<e.changedTouches.length;n+=1)e.changedTouches[n].identifier===H&&(t=!0);if(!t)return}if(!D)return A&&B.removeClass("range-knob-active-state"),void(D=!1);a.off("change",G),D=!1,B.removeClass("range-knob-active-state"),F&&a.$inputEl&&!a.dual&&a.$inputEl.trigger("change"),F=!1,void 0!==a.previousValue&&(a.dual&&(a.previousValue[0]!==a.value[0]||a.previousValue[1]!==a.value[1])||!a.dual&&a.previousValue!==a.value)&&(a.$el.trigger("range:changed",a.value),a.emit("local::changed rangeChanged",a,a.value))}function Q(){a.calcSize(),a.layout()}return a.attachEvents=function(){var t=!!fe.a.passiveListener&&{passive:!0};a.$el.on(e.touchEvents.start,K,t),e.on("touchmove",J),e.on("touchend:passive",X),e.on("tabShow",Q),e.on("resize",Q),(U=a.$el.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast")).on("modal:open",Q),(V=a.$el.parents(".panel")).on("panel:open",Q),(q=a.$el.parents(".page").eq(0)).on("page:reinit",Q)},a.detachEvents=function(){var t=!!fe.a.passiveListener&&{passive:!0};a.$el.off(e.touchEvents.start,K,t),e.off("touchmove",J),e.off("touchend:passive",X),e.off("tabShow",Q),e.off("resize",Q),U&&U.off("modal:open",Q),V&&V.off("panel:open",Q),q&&q.off("page:reinit",Q),U=null,V=null,q=null},a.useModules(),a.init(),L()(i,a)}return T()(r,[{key:"calcSize",value:function(){if(this.vertical){var e=this.$el.outerHeight();if(0===e)return;this.rangeHeight=e,this.knobHeight=this.knobs[0].outerHeight()}else{var t=this.$el.outerWidth();if(0===t)return;this.rangeWidth=t,this.knobWidth=this.knobs[0].outerWidth()}}},{key:"layout",value:function(){var e=this,t=e.app,n=e.knobWidth,r=e.knobHeight,i=e.rangeWidth,a=e.rangeHeight,o=e.min,s=e.max,l=e.knobs,c=e.$barActiveEl,u=e.value,d=e.label,h=e.labels,p=e.vertical,f=e.verticalReversed,m=e.limitKnobPosition,v=p?r:n,g=p?a:i,y=p?f?"top":"bottom":t.rtl?"right":"left";if(e.dual){var b,_=[(u[0]-o)/(s-o),(u[1]-o)/(s-o)];c.css((b={},Z()(b,y,"".concat(100*_[0],"%")),Z()(b,p?"height":"width","".concat(100*(_[1]-_[0]),"%")),b)),l.forEach((function(t,n){var r=g*_[n];if(m){var i=g*_[n]-v/2;i<0&&(r=v/2),i+v>g&&(r=g-v/2)}t.css(y,"".concat(r,"px")),d&&h[n].text(e.formatLabel(u[n],h[n][0]))}))}else{var w=(u-o)/(s-o);c.css(p?"height":"width","".concat(100*w,"%"));var k=g*w;if(m){var E=g*w-v/2;E<0&&(k=v/2),E+v>g&&(k=g-v/2)}l[0].css(y,"".concat(k,"px")),d&&h[0].text(e.formatLabel(u,h[0][0]))}e.dual&&u.indexOf(o)>=0||!e.dual&&u===o?e.$el.addClass("range-slider-min"):e.$el.removeClass("range-slider-min"),e.dual&&u.indexOf(s)>=0||!e.dual&&u===s?e.$el.addClass("range-slider-max"):e.$el.removeClass("range-slider-max")}},{key:"setValue",value:function(e,t){var n,r,i=this,a=i.step,o=i.min,s=i.max;if(i.dual){r=[i.value[0],i.value[1]];var l=e;if(Array.isArray(l)||(l=[e,e]),e[0]>e[1]&&(l=[l[0],l[0]]),(l=l.map((function(e){return Math.max(Math.min(Math.round(e/a)*a,s),o)})))[0]===i.value[0]&&l[1]===i.value[1])return i;l.forEach((function(e,t){i.value[t]=e})),n=r[0]!==l[0]||r[1]!==l[1],i.layout()}else{r=i.value;var c=Math.max(Math.min(Math.round(e/a)*a,s),o);i.value=c,i.layout(),n=r!==c}return n&&(i.previousValue=r),n?(i.$el.trigger("range:change",i.value),i.$inputEl&&!i.dual&&(i.$inputEl.val(i.value),t?i.$inputEl.trigger("input"):i.$inputEl.trigger("input change")),t||(i.$el.trigger("range:changed",i.value),i.emit("local::changed rangeChanged",i,i.value)),i.emit("local::change rangeChange",i,i.value),i):i}},{key:"getValue",value:function(){return this.value}},{key:"formatLabel",value:function(e,t){return this.params.formatLabel?this.params.formatLabel.call(this,e,t):e}},{key:"formatScaleLabel",value:function(e){return this.params.formatScaleLabel?this.params.formatScaleLabel.call(this,e):e}},{key:"renderScale",value:function(){var e=this,t=e.app,n=e.verticalReversed,r=e.vertical?n?"top":"bottom":t.rtl?"right":"left",i="";return Array.from({length:e.scaleSteps+1}).forEach((function(t,n){var a=(e.max-e.min)/e.scaleSteps,o=e.min+a*n,s=(o-e.min)/(e.max-e.min);i+='<div class="range-scale-step" style="'.concat(r,": ").concat(100*s,'%">').concat(e.formatScaleLabel(o),"</div>"),e.scaleSubSteps&&e.scaleSubSteps>1&&n<e.scaleSteps&&Array.from({length:e.scaleSubSteps-1}).forEach((function(t,n){var s=a/e.scaleSubSteps,l=(o+s*(n+1)-e.min)/(e.max-e.min);i+='<div class="range-scale-step range-scale-substep" style="'.concat(r,": ").concat(100*l,'%"></div>')}))})),i}},{key:"updateScale",value:function(){if(!this.scale||this.scaleSteps<2)return this.$scaleEl&&this.$scaleEl.remove(),void delete this.$scaleEl;this.$scaleEl||(this.$scaleEl=k('<div class="range-scale"></div>'),this.$el.append(this.$scaleEl)),this.$scaleEl.html(this.renderScale())}},{key:"init",value:function(){return this.calcSize(),this.layout(),this.attachEvents(),this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("range:beforedestroy"),e.emit("local::beforeDestroy rangeBeforeDestroy",e),delete e.$el[0].f7Range,e.detachEvents(),z.deleteProps(e),e=null}}]),r}(G),lr={name:"range",create:function(){var e=this;e.range=z.extend(X({defaultSelector:".range-slider",constructor:sr,app:e,domProp:"f7Range"}),{getValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".range-slider",n=e.range.get(t);if(n)return n.getValue()},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".range-slider",n=arguments.length>1?arguments[1]:void 0,r=e.range.get(t);if(r)return r.setValue(n)}})},static:{Range:sr},on:{tabMounted:function(e){var t=this;k(e).find(".range-slider-init").each((function(e,n){return new sr(t,{el:n})}))},tabBeforeRemove:function(e){k(e).find(".range-slider-init").each((function(e,t){t.f7Range&&t.f7Range.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".range-slider-init").each((function(e,n){return new sr(t,{el:n})}))},pageBeforeRemove:function(e){e.$el.find(".range-slider-init").each((function(e,t){t.f7Range&&t.f7Range.destroy()}))}},vnode:{"range-slider-init":{insert:function(e){var t=e.elm;this.range.create({el:t})},destroy:function(e){var t=e.elm;t.f7Range&&t.f7Range.destroy()}}}};function cr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ur=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(cr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r),i=n.call(this,t,[e]);var a=C()(i),o={el:null,inputEl:null,valueEl:null,value:0,formatValue:null,step:1,min:0,max:100,watchInput:!0,autorepeat:!1,autorepeatDynamic:!1,wraps:!1,manualInputMode:!1,decimalPoint:4,buttonsEndInputMode:!0};a.useModulesParams(o),a.params=z.extend(o,t),a.params.value<a.params.min&&(a.params.value=a.params.min),a.params.value>a.params.max&&(a.params.value=a.params.max);var s=a.params.el;if(!s)return L()(i,a);var l,c,d=k(s);if(0===d.length)return L()(i,a);if(d[0].f7Stepper)return L()(i,d[0].f7Stepper);if(a.params.inputEl?l=k(a.params.inputEl):d.find(".stepper-input-wrap").find("input, textarea").length&&(l=d.find(".stepper-input-wrap").find("input, textarea").eq(0)),l&&l.length){"step min max".split(" ").forEach((function(e){!t[e]&&l.attr(e)&&(a.params[e]=parseFloat(l.attr(e)))}));var h=parseInt(a.params.decimalPoint,10);Number.isNaN(h)?a.params.decimalPoint=0:a.params.decimalPoint=h;var p=parseFloat(l.val());void 0!==t.value||Number.isNaN(p)||!p&&0!==p||(a.params.value=p)}a.params.valueEl?c=k(a.params.valueEl):d.find(".stepper-value").length&&(c=d.find(".stepper-value").eq(0));var f=d.find(".stepper-button-plus"),m=d.find(".stepper-button-minus"),v=a.params,g=v.step,y=v.min,b=v.max,_=v.value,w=v.decimalPoint;z.extend(a,{app:e,$el:d,el:d[0],$buttonPlusEl:f,buttonPlusEl:f[0],$buttonMinusEl:m,buttonMinusEl:m[0],$inputEl:l,inputEl:l?l[0]:void 0,$valueEl:c,valueEl:c?c[0]:void 0,step:g,min:y,max:b,value:_,decimalPoint:w,typeModeChanged:!1}),d[0].f7Stepper=a;var E,T,S,x,M,$={},P=null,O=!1,D=!1;function I(e){E||(D||(k(e.target).closest(f).length?P="increment":k(e.target).closest(m).length&&(P="decrement"),P&&($.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,$.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,E=!0,T=void 0,function e(t,n,r,i,a,o){clearTimeout(M),M=setTimeout((function(){1===t&&(S=!0,O=!0),clearInterval(x),o(),x=setInterval((function(){o()}),a),t<n&&e(t+1,n,r,i,a/2,o)}),1===t?r:i)}(1,a.params.autorepeatDynamic?4:1,500,1e3,300,(function(){a[P]()})))))}function A(e){if(E&&!D){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;void 0!==T||O||(T=!!(T||Math.abs(n-$.y)>Math.abs(t-$.x)));var r=Math.pow(Math.pow(t-$.x,2)+Math.pow(n-$.y,2),.5);(T||r>20)&&(E=!1,clearTimeout(M),clearInterval(x))}}function N(){clearTimeout(M),clearInterval(x),P=null,O=!1,E=!1}function R(){D?a.params.buttonsEndInputMode&&(D=!1,a.endTypeMode(!0)):S?S=!1:a.decrement(!0)}function Y(){D?a.params.buttonsEndInputMode&&(D=!1,a.endTypeMode(!0)):S?S=!1:a.increment(!0)}function B(e){!e.target.readOnly&&a.params.manualInputMode&&(D=!0,"number"==typeof e.target.selectionStart&&(e.target.selectionStart=e.target.value.length,e.target.selectionEnd=e.target.value.length))}function j(e){13!==e.keyCode&&13!==e.which||(e.preventDefault(),D=!1,a.endTypeMode())}function F(){D=!1,a.endTypeMode(!0)}function H(e){D?a.typeValue(e.target.value):e.detail&&e.detail.sentByF7Stepper||a.setValue(e.target.value,!0)}return a.attachEvents=function(){m.on("click",R),f.on("click",Y),a.params.watchInput&&l&&l.length&&(l.on("input",H),l.on("click",B),l.on("blur",F),l.on("keyup",j)),a.params.autorepeat&&(e.on("touchstart:passive",I),e.on("touchmove:active",A),e.on("touchend:passive",N))},a.detachEvents=function(){m.off("click",R),f.off("click",Y),a.params.watchInput&&l&&l.length&&(l.off("input",H),l.off("click",B),l.off("blur",F),l.off("keyup",j))},a.useModules(),a.init(),L()(i,a)}return T()(r,[{key:"minus",value:function(){return this.decrement()}},{key:"plus",value:function(){return this.increment()}},{key:"decrement",value:function(){return this.setValue(this.value-this.step,!1,!0)}},{key:"increment",value:function(){return this.setValue(this.value+this.step,!1,!0)}},{key:"setValue",value:function(e,t,n){var r=this.step,i=this.min,a=this.max,o=this.value,s=Math.round(e/r)*r;if(this.params.wraps&&n?(s>a&&(s=i),s<i&&(s=a)):s=Math.max(Math.min(s,a),i),Number.isNaN(s)&&(s=o),this.value=s,!(o!==s)&&!t)return this;this.$el.trigger("stepper:change",this.value);var l=this.formatValue(this.value);return this.$inputEl&&this.$inputEl.length&&(this.$inputEl.val(l),this.$inputEl.trigger("input change",{sentByF7Stepper:!0})),this.$valueEl&&this.$valueEl.length&&this.$valueEl.html(l),this.emit("local::change stepperChange",this,this.value),this}},{key:"endTypeMode",value:function(e){var t=this.min,n=this.max,r=parseFloat(this.value);if(Number.isNaN(r)&&(r=0),r=Math.max(Math.min(r,n),t),this.value=r,!this.typeModeChanged)return this.$inputEl&&this.$inputEl.length&&!e&&this.$inputEl.blur(),this;this.typeModeChanged=!1,this.$el.trigger("stepper:change",this.value);var i=this.formatValue(this.value);return this.$inputEl&&this.$inputEl.length&&(this.$inputEl.val(i),this.$inputEl.trigger("input change",{sentByF7Stepper:!0}),e||this.$inputEl.blur()),this.$valueEl&&this.$valueEl.length&&this.$valueEl.html(i),this.emit("local::change stepperChange",this,this.value),this}},{key:"typeValue",value:function(e){this.typeModeChanged=!0;var t=String(e);if(t.lastIndexOf(".")+1!==t.length&&t.lastIndexOf(",")+1!==t.length){var n=parseFloat(t.replace(",","."));if(0===n)return this.value=t.replace(",","."),this.$inputEl.val(this.value),this;if(Number.isNaN(n))return this.value=0,this.$inputEl.val(this.value),this;var r=Math.pow(10,this.params.decimalPoint);return n=Math.round(n*r).toFixed(this.params.decimalPoint+1)/r,this.value=parseFloat(String(n).replace(",",".")),this.$inputEl.val(this.value),this}return t.lastIndexOf(".")!==t.indexOf(".")||t.lastIndexOf(",")!==t.indexOf(",")?(t=t.slice(0,-1),this.value=t,this.$inputEl.val(this.value),this):(this.value=t,this.$inputEl.val(t),this)}},{key:"getValue",value:function(){return this.value}},{key:"formatValue",value:function(e){return this.params.formatValue?this.params.formatValue.call(this,e):e}},{key:"init",value:function(){if(this.attachEvents(),this.$valueEl&&this.$valueEl.length){var e=this.formatValue(this.value);this.$valueEl.html(e)}return this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("stepper:beforedestroy"),e.emit("local::beforeDestroy stepperBeforeDestroy",e),delete e.$el[0].f7Stepper,e.detachEvents(),z.deleteProps(e),e=null}}]),r}(G),dr={name:"stepper",create:function(){var e=this;e.stepper=z.extend(X({defaultSelector:".stepper",constructor:ur,app:e,domProp:"f7Stepper"}),{getValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".stepper",n=e.stepper.get(t);if(n)return n.getValue()},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".stepper",n=arguments.length>1?arguments[1]:void 0,r=e.stepper.get(t);if(r)return r.setValue(n)}})},static:{Stepper:ur},on:{tabMounted:function(e){var t=this;k(e).find(".stepper-init").each((function(e,n){var r=k(n).dataset();t.stepper.create(z.extend({el:n},r||{}))}))},tabBeforeRemove:function(e){k(e).find(".stepper-init").each((function(e,t){t.f7Stepper&&t.f7Stepper.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".stepper-init").each((function(e,n){var r=k(n).dataset();t.stepper.create(z.extend({el:n},r||{}))}))},pageBeforeRemove:function(e){e.$el.find(".stepper-init").each((function(e,t){t.f7Stepper&&t.f7Stepper.destroy()}))}},vnode:{"stepper-init":{insert:function(e){var t=e.elm,n=k(t).dataset();this.stepper.create(z.extend({el:t},n||{}))},destroy:function(e){var t=e.elm;t.f7Stepper&&t.f7Stepper.destroy()}}}};function hr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var pr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(hr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o=z.extend({on:{}},e.params.smartSelect);void 0===o.searchbarDisableButton&&(o.searchbarDisableButton="aurora"!==e.theme),a.useModulesParams(o),a.params=z.extend({},o,i),a.app=e;var s=k(a.params.el).eq(0);if(0===s.length)return L()(t,a);if(s[0].f7SmartSelect)return L()(t,s[0].f7SmartSelect);var l,c=s.find("select").eq(0);if(0===c.length)return L()(t,a);a.params.setValueText&&(0===(l=k(a.params.valueEl)).length&&(l=s.find(".item-after")),0===l.length&&(l=k('<div class="item-after"></div>')).insertAfter(s.find(".item-title")));var d=i.url;d||(s.attr("href")&&"#"!==s.attr("href")?d=s.attr("href"):c.attr("name")&&(d="".concat(c.attr("name").toLowerCase(),"-select/"))),d||(d=a.params.url);var h=c[0].multiple,p=h?"checkbox":"radio",f=z.id();function m(){a.open()}function v(){var e=a.$selectEl.val();a.$el.trigger("smartselect:change",e),a.emit("local::change smartSelectChange",a,e),a.vl&&a.vl.clearCache(),a.setValueText()}function g(){var e,t,n,r=this.value,i=[];if("checkbox"===this.type){for(var o=0;o<a.selectEl.options.length;o+=1)(e=a.selectEl.options[o]).value===r&&(e.selected=this.checked),e.selected&&(t=(n=e.dataset?e.dataset.displayAs:k(e).data("display-value-as"))&&void 0!==n?n:e.textContent,i.push(t.trim()));a.maxLength&&a.checkMaxLength()}else i=[t=(n=(e=a.$selectEl.find('option[value="'.concat(r,'"]'))[0]).dataset?e.dataset.displayAs:k(e).data("display-as"))&&void 0!==n?n:e.textContent],a.selectEl.value=r;a.$selectEl.trigger("change"),a.params.setValueText&&a.$valueEl.text(a.formatValueText(i)),a.params.closeOnSelect&&"radio"===a.inputType&&a.close()}return z.extend(a,{$el:s,el:s[0],$selectEl:c,selectEl:c[0],$valueEl:l,valueEl:l&&l[0],url:d,multiple:h,inputType:p,id:f,inputName:"".concat(p,"-").concat(f),selectName:c.attr("name"),maxLength:c.attr("maxlength")||i.maxLength}),s[0].f7SmartSelect=a,a.attachEvents=function(){s.on("click",m),s.on("change","select",v)},a.detachEvents=function(){s.off("click",m),s.off("change","select",v)},a.attachInputsEvents=function(){a.$containerEl.on("change",'input[type="checkbox"], input[type="radio"]',g)},a.detachInputsEvents=function(){a.$containerEl.off("change",'input[type="checkbox"], input[type="radio"]',g)},a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"setValue",value:function(e){var t,n,r,i=this,a=e,o=[];if(i.multiple){Array.isArray(a)||(a=[a]);for(var s=0;s<i.selectEl.options.length;s+=1)t=i.selectEl.options[s],a.indexOf(t.value)>=0?t.selected=!0:t.selected=!1,t.selected&&(r=(n=t.dataset?t.dataset.displayAs:k(t).data("display-value-as"))&&void 0!==n?n:t.textContent,o.push(r.trim()))}else(t=i.$selectEl.find('option[value="'.concat(a,'"]'))[0])&&(o=[r=(n=t.dataset?t.dataset.displayAs:k(t).data("display-as"))&&void 0!==n?n:t.textContent]),i.selectEl.value=a;return i.params.setValueText&&i.$valueEl.text(i.formatValueText(o)),i.$selectEl.trigger("change"),i}},{key:"unsetValue",value:function(){var e=this;e.params.setValueText&&e.$valueEl.text(e.formatValueText([])),e.$selectEl.find("option").each((function(e,t){t.selected=!1,t.checked=!1})),e.$selectEl[0].value=null,e.$containerEl&&e.$containerEl.find('input[name="'.concat(e.inputName,'"][type="checkbox"], input[name="').concat(e.inputName,'"][type="radio"]')).prop("checked",!1),e.$selectEl.trigger("change")}},{key:"getValue",value:function(){return this.$selectEl.val()}},{key:"checkMaxLength",value:function(){var e=this.$containerEl;this.selectEl.selectedOptions.length>=this.maxLength?e.find('input[type="checkbox"]').each((function(e,t){t.checked?k(t).parents("li").removeClass("disabled"):k(t).parents("li").addClass("disabled")})):e.find(".disabled").removeClass("disabled")}},{key:"formatValueText",value:function(e){return this.params.formatValueText?this.params.formatValueText.call(this,e,this):e.join(", ")}},{key:"setValueText",value:function(e){var t=[];void 0!==e?t=Array.isArray(e)?e:[e]:this.$selectEl.find("option").each((function(e,n){var r=k(n);if(n.selected){var i=n.dataset?n.dataset.displayAs:r.data("display-value-as");i&&void 0!==i?t.push(i):t.push(n.textContent.trim())}})),this.params.setValueText&&this.$valueEl.text(this.formatValueText(t))}},{key:"getItemsData",value:function(){var e,t=this,n=t.app.theme,r=[];return t.$selectEl.find("option").each((function(i,a){var o=k(a),s=o.dataset(),l=s.optionImage||t.params.optionImage,c=s.optionIcon||t.params.optionIcon,u="ios"===n&&(s.optionIconIos||t.params.optionIconIos),d="md"===n&&(s.optionIconMd||t.params.optionIconMd),h="aurora"===n&&(s.optionIconAurora||t.params.optionIconAurora),p=l||c||u||d||h,f=s.optionColor,m=s.optionClass||"";o[0].disabled&&(m+=" disabled");var v=o.parent("optgroup")[0],g=v&&v.label,y=!1;v&&v!==e&&(y=!0,e=v,r.push({groupLabel:g,isLabel:y})),r.push({value:o[0].value,text:o[0].textContent.trim(),selected:o[0].selected,groupEl:v,groupLabel:g,image:l,icon:c,iconIos:u,iconMd:d,iconAurora:h,color:f,className:m,disabled:o[0].disabled,id:t.id,hasMedia:p,checkbox:"checkbox"===t.inputType,radio:"radio"===t.inputType,inputName:t.inputName,inputType:t.inputType})})),t.items=r,r}},{key:"renderSearchbar",value:function(){var e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):'\n      <form class="searchbar">\n        <div class="searchbar-inner">\n          <div class="searchbar-input-wrap">\n            <input type="search" placeholder="'.concat(e.params.searchbarPlaceholder,'"/>\n            <i class="searchbar-icon"></i>\n            <span class="input-clear-button"></span>\n          </div>\n          ').concat(e.params.searchbarDisableButton?'\n          <span class="searchbar-disable-button">'.concat(e.params.searchbarDisableText,"</span>\n          "):"","\n        </div>\n      </form>\n    ")}},{key:"renderItem",value:function(e,t){var n,r=this;if(r.params.renderItem)return r.params.renderItem.call(r,e,t);if(e.isLabel)n='<li class="item-divider">'.concat(e.groupLabel,"</li>");else{var i,a=e.selected;if(r.params.virtualList){var o=r.getValue();a=r.multiple?o.indexOf(e.value)>=0:o===e.value,r.multiple&&(i=r.multiple&&!a&&o.length===parseInt(r.maxLength,10))}var s=e.icon,l=e.iconIos,c=e.iconMd,u=e.iconAurora,d=s||l||c||u,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.indexOf(":")>=0?e.split(":")[1]:""}(s||l||c||u||""),p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e.indexOf(":")>=0){var t=e.split(":")[0];return"f7"===t&&(t="f7-icons"),"material"===t&&(t="material-icons"),t}return e}(s||l||c||u||"");n='\n        <li class="'.concat(e.className||"").concat(i?" disabled":"",'">\n          <label class="item-').concat(e.inputType,' item-content">\n            <input type="').concat(e.inputType,'" name="').concat(e.inputName,'" value="').concat(e.value,'" ').concat(a?"checked":"",'/>\n            <i class="icon icon-').concat(e.inputType,'"></i>\n            ').concat(e.hasMedia?'\n              <div class="item-media">\n                '.concat(d?'<i class="icon '.concat(p,'">').concat(h,"</i>"):"","\n                ").concat(e.image?'<img src="'.concat(e.image,'">'):"","\n              </div>\n            "):"",'\n            <div class="item-inner">\n              <div class="item-title').concat(e.color?" text-color-".concat(e.color):"",'">').concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      ")}return n}},{key:"renderItems",value:function(){var e=this;return e.params.renderItems?e.params.renderItems.call(e,e.items):"\n      ".concat(e.items.map((function(t,n){return"".concat(e.renderItem(t,n))})).join(""),"\n    ")}},{key:"renderPage",value:function(){var e=this;if(e.params.renderPage)return e.params.renderPage.call(e,e.items);var t=e.params.pageTitle;if(void 0===t){var n=e.$el.find(".item-title");t=n.length?n.text().trim():""}var r=e.params.cssClass;return'\n      <div class="page smart-select-page '.concat(r,'" data-name="smart-select-page" data-select-name="').concat(e.selectName,'">\n        <div class="navbar ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n          <div class="navbar-bg"></div>\n          <div class="navbar-inner sliding ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n            <div class="left">\n              <a class="link back">\n                <i class="icon icon-back"></i>\n                <span class="if-not-md">').concat(e.params.pageBackLinkText,"</span>\n              </a>\n            </div>\n            ").concat(t?'<div class="title">'.concat(t,"</div>"):"","\n            ").concat(e.params.searchbar?'<div class="subnavbar">'.concat(e.renderSearchbar(),"</div>"):"","\n          </div>\n        </div>\n        ").concat(e.params.searchbar?'<div class="searchbar-backdrop"></div>':"",'\n        <div class="page-content">\n          <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n            <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"renderPopup",value:function(){var e=this;if(e.params.renderPopup)return e.params.renderPopup.call(e,e.items);var t=e.params.pageTitle;if(void 0===t){var n=e.$el.find(".item-title");t=n.length?n.text().trim():""}var r=e.params.cssClass||"";return'\n      <div class="popup smart-select-popup '.concat(r," ").concat(e.params.popupTabletFullscreen?"popup-tablet-fullscreen":"",'" data-select-name="').concat(e.selectName,'">\n        <div class="view">\n          <div class="page smart-select-page ').concat(e.params.searchbar?"page-with-subnavbar":"",'" data-name="smart-select-page">\n            <div class="navbar ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n              <div class="navbar-bg"></div>\n              <div class="navbar-inner sliding">\n                ').concat(t?'<div class="title">'.concat(t,"</div>"):"",'\n                <div class="right">\n                  <a class="link popup-close" data-popup=".smart-select-popup[data-select-name=\'').concat(e.selectName,"']\">").concat(e.params.popupCloseLinkText,"</span></a>\n                </div>\n                ").concat(e.params.searchbar?'<div class="subnavbar">'.concat(e.renderSearchbar(),"</div>"):"","\n              </div>\n            </div>\n            ").concat(e.params.searchbar?'<div class="searchbar-backdrop"></div>':"",'\n            <div class="page-content">\n              <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n                <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"renderSheet",value:function(){var e=this;if(e.params.renderSheet)return e.params.renderSheet.call(e,e.items);var t=e.params.cssClass;return'\n      <div class="sheet-modal smart-select-sheet '.concat(t,'" data-select-name="').concat(e.selectName,'">\n        <div class="toolbar toolbar-top ').concat(e.params.toolbarColorTheme?"color-".concat(e.params.toolbarColorTheme):"",'">\n          <div class="toolbar-inner">\n            <div class="left"></div>\n            <div class="right">\n              <a class="link sheet-close">').concat(e.params.sheetCloseLinkText,'</a>\n            </div>\n          </div>\n        </div>\n        <div class="sheet-modal-inner">\n          <div class="page-content">\n            <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n              <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n            </div>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"renderPopover",value:function(){var e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e.items);var t=e.params.cssClass;return'\n      <div class="popover smart-select-popover '.concat(t,'" data-select-name="').concat(e.selectName,'">\n        <div class="popover-inner">\n          <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n            <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"scrollToSelectedItem",value:function(){var e=this,t=e.params,n=e.$containerEl;if(!e.opened)return e;if(t.virtualList){var r;e.vl.items.forEach((function(e,t){void 0===r&&e.selected&&(r=t)})),void 0!==r&&e.vl.scrollToItem(r)}else{var i=n.find("input:checked").parents("li");if(!i.length)return e;var a=n.find(".page-content");a.scrollTop(i.offset().top-a.offset().top-parseInt(a.css("padding-top"),10))}return e}},{key:"onOpen",value:function(e,t){var n=this,r=n.app,i=k(t);if(n.$containerEl=i,n.openedIn=e,n.opened=!0,n.params.virtualList&&(n.vl=r.virtualList.create({el:i.find(".virtual-list"),items:n.items,renderItem:n.renderItem.bind(n),height:n.params.virtualListHeight,searchByItem:function(e,t){return!!(t.text&&t.text.toLowerCase().indexOf(e.trim().toLowerCase())>=0)}})),n.params.scrollToSelectedItem&&n.scrollToSelectedItem(),n.params.searchbar){var a=i.find(".searchbar");if("page"===e&&"ios"===r.theme&&(a=k(r.navbar.getElByPage(i)).find(".searchbar")),n.params.appendSearchbarNotFound&&("page"===e||"popup"===e)){var o=null;(o="string"==typeof n.params.appendSearchbarNotFound?k('<div class="block searchbar-not-found">'.concat(n.params.appendSearchbarNotFound,"</div>")):"boolean"==typeof n.params.appendSearchbarNotFound?k('<div class="block searchbar-not-found">Nothing found</div>'):n.params.appendSearchbarNotFound)&&i.find(".page-content").append(o[0])}var s=z.extend({el:a,backdropEl:i.find(".searchbar-backdrop"),searchContainer:".smart-select-list-".concat(n.id),searchIn:".item-title"},"object"===N()(n.params.searchbar)?n.params.searchbar:{});n.searchbar=r.searchbar.create(s)}n.maxLength&&n.checkMaxLength(),n.params.closeOnSelect&&n.$containerEl.find('input[type="radio"][name="'.concat(n.inputName,'"]:checked')).parents("label").once("click",(function(){n.close()})),n.attachInputsEvents(),n.$el.trigger("smartselect:open"),n.emit("local::open smartSelectOpen",n)}},{key:"onOpened",value:function(){this.$el.trigger("smartselect:opened"),this.emit("local::opened smartSelectOpened",this)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.vl&&e.vl.destroy&&(e.vl.destroy(),e.vl=null,delete e.vl),e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.detachInputsEvents(),e.$el.trigger("smartselect:close"),e.emit("local::close smartSelectClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$containerEl=null,delete e.$containerEl,e.$el.trigger("smartselect:closed"),e.emit("local::closed smartSelectClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t=e.renderPage(e.items);return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}}}}),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderPopup(e.items),push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"openSheet",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderSheet(e.items),backdrop:!1,scrollToEl:e.$el,closeByOutsideClick:!0,push:e.params.sheetPush,swipeToClose:e.params.sheetSwipeToClose,on:{sheetOpen:function(t){e.onOpen("sheet",t.el)},sheetOpened:function(t){e.onOpened("sheet",t.el)},sheetClose:function(t){e.onClose("sheet",t.el)},sheetClosed:function(t){e.onClosed("sheet",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,sheet:t}}):e.modal=e.app.sheet.create(t).open(),e}},{key:"openPopover",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderPopover(e.items),targetEl:e.$el,on:{popoverOpen:function(t){e.onOpen("popover",t.el)},popoverOpened:function(t){e.onOpened("popover",t.el)},popoverClose:function(t){e.onClose("popover",t.el)},popoverClosed:function(t){e.onClosed("popover",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popover:t}}):e.modal=e.app.popover.create(t).open(),e}},{key:"open",value:function(e){var t=this;if(t.opened)return t;var n=!1;function r(){n=!0}if(t.$el&&t.$el.trigger("smartselect:beforeopen",{prevent:r}),t.emit("local::beforeOpen smartSelectBeforeOpen",t,r),n)return t;var i=e||t.params.openIn;return t["open".concat(i.split("").map((function(e,t){return 0===t?e.toUpperCase():e})).join(""))](),t}},{key:"close",value:function(){var e=this;return e.opened?(e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back():(e.modal.once("modalClosed",(function(){z.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){this.attachEvents(),this.setValueText()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy smartSelectBeforeDestroy",e),e.$el.trigger("smartselect:beforedestroy"),e.detachEvents(),delete e.$el[0].f7SmartSelect,z.deleteProps(e),e.destroyed=!0}},{key:"view",get:function(){var e,t=this.params,n=this.$el;if(t.view&&(e=t.view),e||(e=n.parents(".view").length&&n.parents(".view")[0].f7View),!e&&"page"===t.openIn)throw Error("Smart Select requires initialized View");return e}}]),r}(G),fr={name:"smartSelect",params:{smartSelect:{el:void 0,valueEl:void 0,setValueText:!0,formatValueText:null,openIn:"page",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,pageTitle:void 0,pageBackLinkText:"Back",popupCloseLinkText:"Close",popupTabletFullscreen:!1,sheetCloseLinkText:"Done",searchbar:!1,searchbarPlaceholder:"Search",searchbarDisableText:"Cancel",searchbarDisableButton:void 0,closeOnSelect:!1,virtualList:!1,virtualListHeight:void 0,scrollToSelectedItem:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!0,url:"select/",cssClass:"",renderPage:void 0,renderPopup:void 0,renderSheet:void 0,renderPopover:void 0,renderItems:void 0,renderItem:void 0,renderSearchbar:void 0}},static:{SmartSelect:pr},create:function(){var e=this;e.smartSelect=z.extend(X({defaultSelector:".smart-select",constructor:pr,app:e,domProp:"f7SmartSelect"}),{open:function(t){var n=e.smartSelect.get(t);if(n&&n.open)return n.open()},close:function(t){var n=e.smartSelect.get(t);if(n&&n.close)return n.close()}})},on:{tabMounted:function(e){var t=this;k(e).find(".smart-select-init").each((function(e,n){t.smartSelect.create(z.extend({el:n},k(n).dataset()))}))},tabBeforeRemove:function(e){k(e).find(".smart-select-init").each((function(e,t){t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".smart-select-init").each((function(e,n){t.smartSelect.create(z.extend({el:n},k(n).dataset()))}))},pageBeforeRemove:function(e){e.$el.find(".smart-select-init").each((function(e,t){t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}))}},clicks:{".smart-select":function(e,t){e[0].f7SmartSelect||this.smartSelect.create(z.extend({el:e},t)).open()}},vnode:{"smart-select-init":{insert:function(e){var t=e.elm;this.smartSelect.create(z.extend({el:t},k(t).dataset()))},destroy:function(e){var t=e.elm;t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}}}};function mr(e,t){var n=t.css("min-".concat(e));return"auto"===n||"none"===n?n=0:n.indexOf("px")>=0?n=parseFloat(n):n.indexOf("%")>=0&&(n=t.parent()[0]["height"===e?"offsetHeight":"offsetWidth"]*parseFloat(n)/100),n}function vr(e,t){var n=t.css("max-".concat(e));return"auto"===n||"none"===n?n=null:n.indexOf("px")>=0?n=parseFloat(n):n.indexOf("%")>=0&&(n=t.parent()[0]["height"===e?"offsetHeight":"offsetWidth"]*parseFloat(n)/100),n}var gr={init:function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,p,f,m,v,g=this;k(document).on(g.touchEvents.start,".col > .resize-handler, .row > .resize-handler",(function(s){e||t||(i=k(s.target).closest(".resize-handler"),n="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,r="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY,e=!0,a=void 0,o=void 0,v=void 0)})),g.on("touchmove",(function(y){if(e){var b=1===i.parent(".row").length,_=b?"height":"width",w=b?"offsetHeight":"offsetWidth";t||(!(a=i.parent(b?".row":".col")).length||a.hasClass("resizable")&&!a.hasClass("resizable-fixed")||(a=a.prevAll(".resizable:not(.resizable-fixed)").eq(0)),!(o=a.next(b?".row":".col")).length||o.hasClass("resizable")&&!o.hasClass("resizable-fixed")||(o=o.nextAll(".resizable:not(.resizable-fixed)").eq(0)),a.length&&(s=a[0][w],l=mr(_,a),c=vr(_,a),p=a.parent()[0][w],f=a.parent().children(b?".row":'[class*="col-"], .col').length,m=parseFloat(a.css(b?"--f7-grid-row-gap":"--f7-grid-gap"))),o.length&&(u=o[0][w],d=mr(_,o),h=vr(_,o),a.length||(p=o.parent()[0][w],f=o.parent().children(b?".row":'[class*="col-"], .col').length,m=parseFloat(o.css(b?"--f7-grid-row-gap":"--f7-grid-gap"))))),t=!0;var k="touchmove"===y.type?y.targetTouches[0].pageX:y.pageX,E="touchmove"===y.type?y.targetTouches[0].pageY:y.pageY;if(void 0!==v||b||(v=!!(v||Math.abs(E-r)>Math.abs(k-n))),v)return e=!1,void(t=!1);var T=a.hasClass("resizable-absolute")||o.hasClass("resizable-absolute"),S=!b||b&&!T;if(S&&!o.length||!a.length)return e=!1,void(t=!1);y.preventDefault();var C,x,M=b?E-r:k-n;if(a.length&&((C=s+M)<l&&(M=(C=l)-s),c&&C>c&&(M=(C=c)-s)),o.length&&S&&((x=u-M)<d&&(C=s+(M=u-(x=d))),h&&x>h&&(C=s+(M=u-(x=h)))),T)return a[0].style[_]="".concat(C,"px"),S&&(o[0].style[_]="".concat(x,"px")),a.trigger("grid:resize"),o.trigger("grid:resize"),g.emit("gridResize",a[0]),void g.emit("gridResize",o[0]);var $=(f-1)*m/f,L=b?"".concat(f-1," * var(--f7-grid-row-gap) / ").concat(f):"(var(--f7-cols-per-row) - 1) * var(--f7-grid-gap) / var(--f7-cols-per-row)",P=C+$,O=x+$;a[0].style[_]="calc(".concat(P/p*100,"% - ").concat(L,")"),o[0].style[_]="calc(".concat(O/p*100,"% - ").concat(L,")"),a.trigger("grid:resize"),o.trigger("grid:resize"),g.emit("gridResize",a[0]),g.emit("gridResize",o[0])}})),g.on("touchend",(function(){e&&(t||(e=!1),e=!1,t=!1)}))}},yr={name:"grid",create:function(){z.extend(this,{grid:{init:gr.init.bind(this)}})},on:{init:function(){this.grid.init()}}},br=n(30),_r=n.n(br);function wr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var kr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(wr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a,o,s=C()(t);if(s.params=z.extend({},e.params.calendar,i),s.params.containerEl&&0===(a=k(s.params.containerEl)).length)return L()(t,s);s.params.inputEl&&(o=k(s.params.inputEl));var l="horizontal"===s.params.direction,c=1;l&&(c=e.rtl?-1:1),z.extend(s,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,$inputEl:o,inputEl:o&&o[0],initialized:!1,opened:!1,url:s.params.url,isHorizontal:l,inverter:c,animating:!1,hasTimePicker:s.params.timePicker&&!s.params.rangePicker&&!s.params.multiple}),s.dayFormatter=new Intl.DateTimeFormat(s.params.locale,{day:"numeric"}),s.monthFormatter=new Intl.DateTimeFormat(s.params.locale,{month:"long"}),s.yearFormatter=new Intl.DateTimeFormat(s.params.locale,{year:"numeric"}),s.timeSelectorFormatter=new Intl.DateTimeFormat(s.params.locale,s.params.timePickerFormat);var d=s.params,h=d.monthNames,p=d.monthNamesShort,f=d.dayNames,m=d.dayNamesShort,v=s.getIntlNames(),g=v.monthNamesIntl,y=v.monthNamesShortIntl,b=v.dayNamesIntl,_=v.dayNamesShortIntl;function w(){s.open()}function E(e){e.preventDefault()}function T(){s.setValue([]),s.opened&&s.update()}function S(e){var t=k(e.target);!s.destroyed&&s.params&&(s.isPopover()||s.opened&&!s.closing&&(t.closest('[class*="backdrop"]').length||(o&&o.length>0?t[0]!==o[0]&&0===t.closest(".sheet-modal, .calendar-modal").length&&s.close():0===k(e.target).closest(".sheet-modal, .calendar-modal").length&&s.close())))}return"auto"===h&&(h=g),"auto"===p&&(p=y),"auto"===f&&(f=b),"auto"===m&&(m=_),z.extend(s,{monthNames:h,monthNamesShort:p,dayNames:f,dayNamesShort:m}),z.extend(s,{attachInputEvents:function(){s.$inputEl.on("click",w),s.$inputEl.on("input:clear",T),s.params.inputReadOnly&&s.$inputEl.on("focus mousedown",E)},detachInputEvents:function(){s.$inputEl.off("click",w),s.$inputEl.off("input:clear",T),s.params.inputReadOnly&&s.$inputEl.off("focus mousedown",E)},attachHtmlEvents:function(){e.on("click",S)},detachHtmlEvents:function(){e.off("click",S)}}),s.attachCalendarEvents=function(){var t,n,r,i,a,o,l,c,u,d,h,p,f,m=!0,v=s.$el,g=s.$wrapperEl;function y(e){n||t||(t=!0,r="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,a=r,i="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,o=i,l=(new Date).getTime(),h=0,m=!0,f=void 0,c=s.monthsTranslate)}function b(e){if(t){var l=s.isHorizontal;a="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,o="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,void 0===f&&(f=!!(f||Math.abs(o-i)>Math.abs(a-r))),l&&f?t=!1:(e.preventDefault(),s.animating?t=!1:(m=!1,n||(n=!0,u=g[0].offsetWidth,d=g[0].offsetHeight,g.transition(0)),h=(p=l?a-r:o-i)/(l?u:d),c=100*(s.monthsTranslate*s.inverter+h),g.transform("translate3d(".concat(l?c:0,"%, ").concat(l?0:c,"%, 0)"))))}}function _(){if(!t||!n)return t=!1,void(n=!1);t=!1,n=!1,(new Date).getTime()-l<300?Math.abs(p)<10?s.resetMonth():p>=10?e.rtl?s.nextMonth():s.prevMonth():e.rtl?s.prevMonth():s.nextMonth():h<=-.5?e.rtl?s.prevMonth():s.nextMonth():h>=.5?e.rtl?s.nextMonth():s.prevMonth():s.resetMonth(),setTimeout((function(){m=!0}),100)}function w(e){if(m){var t=k(e.target).parents(".calendar-day");if(0===t.length&&k(e.target).hasClass("calendar-day")&&(t=k(e.target)),0!==t.length&&!t.hasClass("calendar-day-disabled")){s.params.rangePicker||(t.hasClass("calendar-day-next")&&s.nextMonth(),t.hasClass("calendar-day-prev")&&s.prevMonth());var n=parseInt(t.attr("data-year"),10),r=parseInt(t.attr("data-month"),10),i=parseInt(t.attr("data-day"),10);if(s.emit("local::dayClick calendarDayClick",s,t[0],n,r,i),!t.hasClass("calendar-day-selected")||s.params.multiple||s.params.rangePicker){var a=new Date(n,r,i,0,0,0);s.hasTimePicker&&(s.value&&s.value[0]?a.setHours(s.value[0].getHours(),s.value[0].getMinutes()):a.setHours((new Date).getHours(),(new Date).getMinutes())),s.addValue(a)}s.params.closeOnSelect&&(s.params.rangePicker&&2===s.value.length||!s.params.rangePicker)&&s.close()}}}function E(){s.nextMonth()}function T(){s.prevMonth()}function S(){s.nextYear()}function C(){s.prevYear()}function x(){v.append(s.renderMonthPicker())}function M(){var e=k(this);if(e.hasClass("calendar-month-picker-item-current"))v.find(".calendar-month-picker").remove();else{v.find(".calendar-month-picker-item-current").add(e).toggleClass("calendar-month-picker-item-current");var t=e.index()-(parseInt(s.$el.find(".calendar-month-current").attr("data-locale-month"),10)-s.currentMonth);s.setYearMonth(s.currentYear,t,0),setTimeout((function(){v.find(".calendar-month-picker").remove()}),200)}}function $(){v.append(s.renderYearPicker());var e=v.find(".calendar-year-picker-item-current"),t=v.find(".calendar-year-picker");e&&e.length&&t.scrollTop(e[0].offsetTop-t[0].offsetHeight/2+e[0].offsetHeight/2)}function L(){var e=k(this);if(e.hasClass("calendar-year-picker-item-current"))v.find(".calendar-year-picker").remove();else{v.find(".calendar-year-picker-item-current").add(e).toggleClass("calendar-year-picker-item-current");var t=parseInt(e.attr("data-year"),10);s.setYearMonth(t,void 0,0),setTimeout((function(){v.find(".calendar-year-picker").remove()}),200)}}function P(){s.openTimePicker()}function O(){s.closeTimePicker()}var D=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener)&&{passive:!0,capture:!1};v.find(".calendar-prev-month-button").on("click",T),v.find(".calendar-next-month-button").on("click",E),v.find(".calendar-prev-year-button").on("click",C),v.find(".calendar-next-year-button").on("click",S),s.params.monthPicker&&(v.find(".current-month-value").on("click",x),v.on("click",".calendar-month-picker-item",M)),s.params.yearPicker&&(v.find(".current-year-value").on("click",$),v.on("click",".calendar-year-picker-item",L)),s.hasTimePicker&&(v.find(".calendar-time-selector a").on("click",P),v.on("click",".calendar-time-picker-close",O)),g.on("click",w),s.params.touchMove&&(g.on(e.touchEvents.start,y,D),e.on("touchmove:active",b),e.on("touchend:passive",_)),s.detachCalendarEvents=function(){v.find(".calendar-prev-month-button").off("click",T),v.find(".calendar-next-month-button").off("click",E),v.find(".calendar-prev-year-button").off("click",C),v.find(".calendar-next-year-button").off("click",S),s.params.monthPicker&&(v.find(".current-month-value").off("click",x),v.off("click",".calendar-month-picker-item",M)),s.params.yearPicker&&(v.find(".current-year-value").off("click",$),v.off("click",".calendar-year-picker-item",L)),s.hasTimePicker&&(v.find(".calendar-time-selector a").off("click",P),v.off("click",".calendar-time-picker-close",O)),g.off("click",w),s.params.touchMove&&(g.off(e.touchEvents.start,y,D),e.off("touchmove:active",b),e.off("touchend:passive",_))}},s.init(),L()(t,s)}return T()(r,[{key:"getIntlNames",value:function(){for(var e,t,n,r=this.params.locale,i=[],a=[],o=[],s=[],l=new Intl.DateTimeFormat(r,{month:"long"}),c=new Intl.DateTimeFormat(r,{month:"short"}),u=new Intl.DateTimeFormat(r,{weekday:"long"}),d=new Intl.DateTimeFormat(r,{weekday:"short"}),h=0;h<24;h+=1){var p=(new Date).setMonth(h,1),f=this.yearFormatter.format(p);e&&f!==e&&(t&&(n=!0),t=!0,e=f),e||(e=f),t&&e===f&&!n&&(i.push(l.format(p)),a.push(c.format(p)))}for(var m=(new Date).getDay(),v=0;v<7;v+=1){var g=(new Date).getTime()+24*(v-m)*60*60*1e3;o.push(u.format(g)),s.push(d.format(g))}return{monthNamesIntl:i,monthNamesShortIntl:a,dayNamesIntl:o,dayNamesShortIntl:s}}},{key:"normalizeDate",value:function(e){var t=new Date(e);return this.hasTimePicker?new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()):new Date(t.getFullYear(),t.getMonth(),t.getDate())}},{key:"normalizeValues",value:function(e){var t=this,n=[];return e&&Array.isArray(e)&&(n=e.map((function(e){return t.normalizeDate(e)}))),n}},{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"isPopover",value:function(){var e=this.app,t=this.modal,n=this.params;if("sheet"===n.openIn)return!1;if(t&&"popover"!==t.type)return!1;if(!this.inline&&this.inputEl){if("popover"===n.openIn)return!0;if(e.device.ios)return!!e.device.ipad;if(e.width>=768)return!0;if(e.device.desktop&&"aurora"===e.theme)return!0}return!1}},{key:"formatDate",value:function(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth(),i=r+1,a=t.getDate(),o=t.getDay(),s=this.monthNames,l=this.monthNamesShort,c=this.dayNames,u=this.dayNamesShort,d=this.params,h=d.dateFormat,p=d.locale;function f(e){return e<10?"0".concat(e):e}if("string"==typeof h){var m={yyyy:n,yy:String(n).substring(2),mm:f(i),m:i,MM:s[r],M:l[r],dd:f(a),d:a,DD:c[o],D:u[o]};if(this.params.timePicker){var v=t.getHours(),g=t.getMinutes(),y=t.getSeconds(),b=v;v>12&&(b=v-12),0===v&&(b=12);var _=v>=12&&0!==v?"pm":"am";Object.assign(m,{HH:f(v),H:v,hh:f(b),h:b,ss:f(y),s:y,":mm":f(g),":m":g,a:_,A:_.toUpperCase()})}var w=new RegExp(Object.keys(m).map((function(e){return"(".concat(e,")")})).join("|"),"g");return h.replace(w,(function(e){return e in m?m[e]:e}))}return"function"==typeof h?h(t):new Intl.DateTimeFormat(p,h).format(t)}},{key:"formatValue",value:function(){var e=this,t=e.value;return e.params.formatValue?e.params.formatValue.call(e,t):t.map((function(t){return e.formatDate(t)})).join(e.params.rangePicker?" - ":", ")}},{key:"addValue",value:function(e){var t=this.params,n=t.multiple,r=t.rangePicker,i=t.rangePickerMinDays,a=t.rangePickerMaxDays;if(n){var o;this.value||(this.value=[]);for(var s=0;s<this.value.length;s+=1)new Date(e).getTime()===new Date(this.value[s]).getTime()&&(o=s);void 0===o?this.value.push(e):this.value.splice(o,1),this.updateValue()}else r?(this.value||(this.value=[]),2!==this.value.length&&0!==this.value.length||(this.value=[]),0===this.value.length||Math.abs(this.value[0].getTime()-e.getTime())>=60*(i-1)*60*24*1e3&&(0===a||Math.abs(this.value[0].getTime()-e.getTime())<=60*(a-1)*60*24*1e3)?this.value.push(e):this.value=[],this.value.sort((function(e,t){return e-t})),this.updateValue()):(this.value=[e],this.updateValue())}},{key:"setValue",value:function(e){var t=this.value;if(Array.isArray(t)&&Array.isArray(e)&&t.length===e.length){var n=!0;if(t.forEach((function(t,r){t!==e[r]&&(n=!1)})),n)return}this.value=e,this.updateValue()}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(e){var t,n,r=this.$el,i=this.$wrapperEl,a=this.$inputEl,o=this.value,s=this.params;if(r&&r.length>0)if(i.find(".calendar-day-selected").removeClass("calendar-day-selected"),s.rangePicker&&2===o.length)for(t=new Date(o[0]).getTime();t<=new Date(o[1]).getTime();t+=864e5)n=new Date(t),i.find('.calendar-day[data-date="'.concat(n.getFullYear(),"-").concat(n.getMonth(),"-").concat(n.getDate(),'"]')).addClass("calendar-day-selected");else for(t=0;t<this.value.length;t+=1)n=new Date(o[t]),i.find('.calendar-day[data-date="'.concat(n.getFullYear(),"-").concat(n.getMonth(),"-").concat(n.getDate(),'"]')).addClass("calendar-day-selected");if(e||this.emit("local::change calendarChange",this,o),r&&r.length>0&&this.hasTimePicker&&r.find(".calendar-time-selector a").text(o&&o.length?this.timeSelectorFormatter.format(o[0]):this.params.timePickerPlaceholder),a&&a.length||s.header){var l=this.formatValue(o);s.header&&r&&r.length&&r.find(".calendar-selected-date").text(l),a&&a.length&&!e&&(a.val(l),a.trigger("change"))}}},{key:"updateCurrentMonthYear",value:function(e){var t,n,r=this.$months,i=this.$el,a=this.monthNames;void 0===e?(this.currentMonth=parseInt(r.eq(1).attr("data-month"),10),this.currentYear=parseInt(r.eq(1).attr("data-year"),10),t=r.eq(1).attr("data-locale-month"),n=r.eq(1).attr("data-locale-year")):(this.currentMonth=parseInt(r.eq("next"===e?r.length-1:0).attr("data-month"),10),this.currentYear=parseInt(r.eq("next"===e?r.length-1:0).attr("data-year"),10),t=r.eq("next"===e?r.length-1:0).attr("data-locale-month"),n=r.eq("next"===e?r.length-1:0).attr("data-locale-year")),i.find(".current-month-value").text(a[t]),i.find(".current-year-value").text(n)}},{key:"update",value:function(){var e=this,t=e.currentYear,n=e.currentMonth,r=e.$wrapperEl,i=new Date(t,n),a=e.renderMonth(i,"prev"),o=e.renderMonth(i),s=e.renderMonth(i,"next");r.transition(0).html("".concat(a).concat(o).concat(s)).transform("translate3d(0,0,0)"),e.$months=r.find(".calendar-month"),e.monthsTranslate=0,e.setMonthsTranslate(),e.$months.each((function(t,n){e.emit("local::monthAdd calendarMonthAdd",n)}))}},{key:"onMonthChangeStart",value:function(e){var t=this.$months,n=this.currentYear,r=this.currentMonth;this.updateCurrentMonthYear(e),t.removeClass("calendar-month-current calendar-month-prev calendar-month-next");var i="next"===e?t.length-1:0;t.eq(i).addClass("calendar-month-current"),t.eq("next"===e?i-1:i+1).addClass("next"===e?"calendar-month-prev":"calendar-month-next"),this.emit("local::monthYearChangeStart calendarMonthYearChangeStart",this,n,r)}},{key:"onMonthChangeEnd",value:function(e,t){var n,r,i,a=this.currentYear,o=this.currentMonth,s=this.$wrapperEl,l=this.monthsTranslate;this.animating=!1,s.find(".calendar-month:not(.calendar-month-prev):not(.calendar-month-current):not(.calendar-month-next)").remove(),void 0===e&&(e="next",t=!0),t?(s.find(".calendar-month-next, .calendar-month-prev").remove(),r=this.renderMonth(new Date(a,o),"prev"),n=this.renderMonth(new Date(a,o),"next")):i=this.renderMonth(new Date(a,o),e),("next"===e||t)&&s.append(i||n),("prev"===e||t)&&s.prepend(i||r);var c=s.find(".calendar-month");this.$months=c,this.setMonthsTranslate(l),this.emit("local::monthAdd calendarMonthAdd",this,"next"===e?c.eq(c.length-1)[0]:c.eq(0)[0]),this.emit("local::monthYearChangeEnd calendarMonthYearChangeEnd",this,a,o)}},{key:"setMonthsTranslate",value:function(e){var t=this.$months,n=this.isHorizontal,r=this.inverter;e=e||this.monthsTranslate||0,void 0===this.monthsTranslate&&(this.monthsTranslate=e),t.removeClass("calendar-month-current calendar-month-prev calendar-month-next");var i=100*-(e+1)*r,a=100*-e*r,o=100*-(e-1)*r;t.eq(0).transform("translate3d(".concat(n?i:0,"%, ").concat(n?0:i,"%, 0)")).addClass("calendar-month-prev"),t.eq(1).transform("translate3d(".concat(n?a:0,"%, ").concat(n?0:a,"%, 0)")).addClass("calendar-month-current"),t.eq(2).transform("translate3d(".concat(n?o:0,"%, ").concat(n?0:o,"%, 0)")).addClass("calendar-month-next")}},{key:"nextMonth",value:function(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.inverter,a=t.isHorizontal;void 0!==e&&"object"!==N()(e)||(e="",n.animate||(e=0));var o=parseInt(t.$months.eq(t.$months.length-1).attr("data-month"),10),s=parseInt(t.$months.eq(t.$months.length-1).attr("data-year"),10),l=new Date(s,o).getTime(),c=!t.animating;if(n.maxDate&&l>new Date(n.maxDate).getTime())t.resetMonth();else{if(t.monthsTranslate-=1,o===t.currentMonth){var u=100*-t.monthsTranslate*i,d=k(t.renderMonth(l,"next")).transform("translate3d(".concat(a?u:0,"%, ").concat(a?0:u,"%, 0)")).addClass("calendar-month-next");r.append(d[0]),t.$months=r.find(".calendar-month"),t.emit("local::monthAdd calendarMonthAdd",t.$months.eq(t.$months.length-1)[0])}t.animating=!0,t.onMonthChangeStart("next");var h=100*t.monthsTranslate*i;r.transition(e).transform("translate3d(".concat(a?h:0,"%, ").concat(a?0:h,"%, 0)")),c&&r.transitionEnd((function(){t.onMonthChangeEnd("next")})),n.animate||t.onMonthChangeEnd("next")}}},{key:"prevMonth",value:function(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.inverter,a=t.isHorizontal;void 0!==e&&"object"!==N()(e)||(e="",n.animate||(e=0));var o=parseInt(t.$months.eq(0).attr("data-month"),10),s=parseInt(t.$months.eq(0).attr("data-year"),10),l=new Date(s,o+1,-1).getTime(),c=!t.animating;if(n.minDate){var u=new Date(n.minDate);if(l<(u=new Date(u.getFullYear(),u.getMonth(),1)).getTime())return void t.resetMonth()}if(t.monthsTranslate+=1,o===t.currentMonth){var d=100*-t.monthsTranslate*i,h=k(t.renderMonth(l,"prev")).transform("translate3d(".concat(a?d:0,"%, ").concat(a?0:d,"%, 0)")).addClass("calendar-month-prev");r.prepend(h[0]),t.$months=r.find(".calendar-month"),t.emit("local::monthAdd calendarMonthAdd",t.$months.eq(0)[0])}t.animating=!0,t.onMonthChangeStart("prev");var p=100*t.monthsTranslate*i;r.transition(e).transform("translate3d(".concat(a?p:0,"%, ").concat(a?0:p,"%, 0)")),c&&r.transitionEnd((function(){t.onMonthChangeEnd("prev")})),n.animate||t.onMonthChangeEnd("prev")}},{key:"resetMonth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=t.$wrapperEl,r=t.inverter,i=t.isHorizontal,a=t.monthsTranslate,o=100*a*r;n.transition(e).transform("translate3d(".concat(i?o:0,"%, ").concat(i?0:o,"%, 0)"))}},{key:"setYearMonth",value:function(e,t,n){var r,i=this,a=i.params,o=i.isHorizontal,s=i.$wrapperEl,l=i.inverter;if(void 0===e&&(e=i.currentYear),void 0===t&&(t=i.currentMonth),void 0!==n&&"object"!==N()(n)||(n="",a.animate||(n=0)),r=e<i.currentYear?new Date(e,t+1,-1).getTime():new Date(e,t).getTime(),a.maxDate&&r>new Date(a.maxDate).getTime())return!1;if(a.minDate){var c=new Date(a.minDate);if(r<(c=new Date(c.getFullYear(),c.getMonth(),1)).getTime())return!1}var u=new Date(i.currentYear,i.currentMonth).getTime(),d=r>u?"next":"prev",h=i.renderMonth(new Date(e,t));i.monthsTranslate=i.monthsTranslate||0;var p,f=i.monthsTranslate,m=!i.animating&&0!==n;r>u?(i.monthsTranslate-=1,i.animating||i.$months.eq(i.$months.length-1).remove(),s.append(h),i.$months=s.find(".calendar-month"),p=100*-(f-1)*l,i.$months.eq(i.$months.length-1).transform("translate3d(".concat(o?p:0,"%, ").concat(o?0:p,"%, 0)")).addClass("calendar-month-next")):(i.monthsTranslate+=1,i.animating||i.$months.eq(0).remove(),s.prepend(h),i.$months=s.find(".calendar-month"),p=100*-(f+1)*l,i.$months.eq(0).transform("translate3d(".concat(o?p:0,"%, ").concat(o?0:p,"%, 0)")).addClass("calendar-month-prev")),i.emit("local::monthAdd calendarMonthAdd","next"===d?i.$months.eq(i.$months.length-1)[0]:i.$months.eq(0)[0]),i.animating=!0,i.onMonthChangeStart(d);var v=100*i.monthsTranslate*l;s.transition(n).transform("translate3d(".concat(o?v:0,"%, ").concat(o?0:v,"%, 0)")),m&&s.transitionEnd((function(){i.onMonthChangeEnd(d,!0)})),a.animate&&0!==n||i.onMonthChangeEnd(d,!0)}},{key:"nextYear",value:function(){this.setYearMonth(this.currentYear+1)}},{key:"prevYear",value:function(){this.setYearMonth(this.currentYear-1)}},{key:"dateInRange",value:function(e,t){var n,r=!1;if(!t)return!1;if(Array.isArray(t))for(n=0;n<t.length;n+=1)t[n].from||t[n].to?t[n].from&&t[n].to?e<=new Date(t[n].to).getTime()&&e>=new Date(t[n].from).getTime()&&(r=!0):t[n].from?e>=new Date(t[n].from).getTime()&&(r=!0):t[n].to&&e<=new Date(t[n].to).getTime()&&(r=!0):t[n].date?e===new Date(t[n].date).getTime()&&(r=!0):e===new Date(t[n]).getTime()&&(r=!0);else t.from||t.to?t.from&&t.to?e<=new Date(t.to).getTime()&&e>=new Date(t.from).getTime()&&(r=!0):t.from?e>=new Date(t.from).getTime()&&(r=!0):t.to&&e<=new Date(t.to).getTime()&&(r=!0):t.date?r=e===new Date(t.date).getTime():"function"==typeof t&&(r=t(new Date(e)));return r}},{key:"daysInMonth",value:function(e){var t=new Date(e);return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}},{key:"renderMonths",value:function(e){return this.params.renderMonths?this.params.renderMonths.call(this,e):'\n    <div class="calendar-months-wrapper">\n    '.concat(this.renderMonth(e,"prev"),"\n    ").concat(this.renderMonth(e),"\n    ").concat(this.renderMonth(e,"next"),"\n    </div>\n  ").trim()}},{key:"renderMonth",value:function(e,t){var n=this,r=n.params,i=n.value;if(r.renderMonth)return r.renderMonth.call(n,e,t);var a=new Date(e),o=a.getFullYear(),s=a.getMonth(),l=n.monthNames.indexOf(n.monthFormatter.format(a));l<0&&(l=s);var c=n.yearFormatter.format(a);"next"===t&&(a=11===s?new Date(o+1,0):new Date(o,s+1,1)),"prev"===t&&(a=0===s?new Date(o-1,11):new Date(o,s-1,1)),"next"!==t&&"prev"!==t||(s=a.getMonth(),o=a.getFullYear(),(l=n.monthNames.indexOf(n.monthFormatter.format(a)))<0&&(l=s),c=n.yearFormatter.format(a));var u,d,h=[],p=(new Date).setHours(0,0,0,0),f=r.minDate?new Date(r.minDate).getTime():null,m=r.maxDate?new Date(r.maxDate).getTime():null,v=n.daysInMonth(new Date(a.getFullYear(),a.getMonth()).getTime()-864e6),g=n.daysInMonth(a),y=6===r.firstDay?0:1,b="",_=r.firstDay-1+0,w=new Date(a.getFullYear(),a.getMonth()).getDay();if(0===w&&(w=7),i&&i.length)for(var k=0;k<i.length;k+=1)h.push(new Date(i[k]).setHours(0,0,0,0));for(var E=1;E<=6;E+=1){for(var T="",S=function(e){var t=void 0,i=(_+=1)-w,a="";1===E&&1===e&&i>y&&1!==r.firstDay&&(i=(_-=7)-w);var l=e-1+r.firstDay>6?e-1-7+r.firstDay:e-1+r.firstDay;i<0?(i=v+i+1,a+=" calendar-day-prev",t=new Date(s-1<0?o-1:o,s-1<0?11:s-1,i).getTime()):(i+=1)>g?(i-=g,a+=" calendar-day-next",t=new Date(s+1>11?o+1:o,s+1>11?0:s+1,i).getTime()):t=new Date(o,s,i).getTime(),t===p&&(a+=" calendar-day-today"),r.rangePicker&&2===h.length?t>=h[0]&&t<=h[1]&&(a+=" calendar-day-selected"):h.indexOf(t)>=0&&(a+=" calendar-day-selected"),r.weekendDays.indexOf(l)>=0&&(a+=" calendar-day-weekend");var c="";if(d=!1,r.events&&n.dateInRange(t,r.events)&&(d=!0),d&&(a+=" calendar-day-has-events",c='\n            <span class="calendar-day-events">\n              <span class="calendar-day-event"></span>\n            </span>\n          ',Array.isArray(r.events))){var b=[];r.events.forEach((function(e){var r=e.color||"";b.indexOf(r)<0&&n.dateInRange(t,e)&&b.push(r)})),c='\n              <span class="calendar-day-events">\n                '.concat(b.map((function(e){return'\n                  <span class="calendar-day-event" style="'.concat(e?"background-color: ".concat(e):"",'"></span>\n                ').trim()})).join(""),"\n              </span>\n            ")}if(r.rangesClasses)for(var k=0;k<r.rangesClasses.length;k+=1)n.dateInRange(t,r.rangesClasses[k].range)&&(a+=" ".concat(r.rangesClasses[k].cssClass));u=!1,(f&&t<f||m&&t>m)&&(u=!0),r.disabled&&n.dateInRange(t,r.disabled)&&(u=!0),u&&(a+=" calendar-day-disabled");var S=(t=new Date(t)).getFullYear(),C=t.getMonth(),x=n.dayFormatter.format(t);T+='\n          <div data-year="'.concat(S,'" data-month="').concat(C,'" data-day="').concat(i,'" class="calendar-day').concat(a,'" data-date="').concat(S,"-").concat(C,"-").concat(i,'">\n            <span class="calendar-day-number">').concat(x).concat(c,"</span>\n          </div>").trim()},C=1;C<=7;C+=1)S(C);b+='<div class="calendar-row">'.concat(T,"</div>")}return b='<div class="calendar-month" data-year="'.concat(o,'" data-month="').concat(s,'" data-locale-year="').concat(c,'" data-locale-month="').concat(l,'">').concat(b,"</div>")}},{key:"renderWeekHeader",value:function(){if(this.params.renderWeekHeader)return this.params.renderWeekHeader.call(this);for(var e=this.params,t="",n=0;n<7;n+=1){var r=n+e.firstDay>6?n-7+e.firstDay:n+e.firstDay,i=this.dayNamesShort[r];t+='<div class="calendar-week-day">'.concat(i,"</div>")}return'\n    <div class="calendar-week-header">\n      '.concat(t,"\n    </div>\n  ").trim()}},{key:"renderMonthSelector",value:function(){return this.params.renderMonthSelector?this.params.renderMonthSelector.call(this):'\n    <div class="calendar-month-selector">\n      <a class="link icon-only calendar-prev-month-button">\n        <i class="icon icon-prev"></i>\n      </a>\n      '.concat(this.params.monthPicker?'\n        <a class="current-month-value link"></a>\n      ':'\n        <span class="current-month-value"></span>\n      ','\n      <a class="link icon-only calendar-next-month-button">\n        <i class="icon icon-next"></i>\n      </a>\n    </div>\n  ').trim()}},{key:"renderMonthPicker",value:function(){var e=parseInt(this.$el.find(".calendar-month-current").attr("data-locale-month"),10);return'\n      <div class="calendar-month-picker">\n        '.concat(this.monthNames.map((function(t,n){return'\n          <div class="calendar-month-picker-item '.concat(e===n?"calendar-month-picker-item-current":"",'">\n            <span>').concat(t,"</span>\n          </div>\n        ")})).join(""),"\n      </div>\n    ")}},{key:"renderYearSelector",value:function(){return this.params.renderYearSelector?this.params.renderYearSelector.call(this):'\n    <div class="calendar-year-selector">\n      <a class="link icon-only calendar-prev-year-button">\n        <i class="icon icon-prev"></i>\n      </a>\n      '.concat(this.params.yearPicker?'\n        <a class="current-year-value link"></a>\n      ':'\n        <span class="current-year-value"></span>\n      ','\n      <a class="link icon-only calendar-next-year-button">\n        <i class="icon icon-next"></i>\n      </a>\n    </div>\n  ').trim()}},{key:"renderYearPicker",value:function(){var e=this,t=e.currentYear,n=e.params.yearPickerMin||(new Date).getFullYear()-100;e.params.minDate&&(n=Math.max(n,new Date(e.params.minDate).getFullYear()));var r=e.params.yearPickerMax||(new Date).getFullYear()+100;e.params.maxDate&&(r=Math.min(r,new Date(e.params.maxDate).getFullYear()));for(var i=[],a=n;a<=r;a+=1)i.push(a);return'\n      <div class="calendar-year-picker">\n        '.concat(i.map((function(n){return'\n          <div data-year="'.concat(n,'" class="calendar-year-picker-item ').concat(n===t?"calendar-year-picker-item-current":"",'">\n            <span>').concat(e.yearFormatter.format((new Date).setFullYear(n)),"</span>\n          </div>\n        ")})).join(""),"\n      </div>\n    ")}},{key:"renderTimeSelector",value:function(){var e,t=this.value&&this.value[0];return t&&(e=this.timeSelectorFormatter.format(t)),'\n      <div class="calendar-time-selector"><a class="link">'.concat(e||this.params.timePickerPlaceholder,"</a></div>\n    ")}},{key:"renderHeader",value:function(){return this.params.renderHeader?this.params.renderHeader.call(this):'\n    <div class="calendar-header">\n      <div class="calendar-selected-date">'.concat(this.params.headerPlaceholder,"</div>\n    </div>\n  ").trim()}},{key:"renderFooter",value:function(){var e=this.app;return this.params.renderFooter?this.params.renderFooter.call(this):'\n    <div class="calendar-footer">\n      <a class="'.concat("md"===e.theme?"button":"link",' calendar-close sheet-close popover-close">').concat(this.params.toolbarCloseText,"</a>\n    </div>\n  ").trim()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n    <div class="toolbar toolbar-top no-shadow">\n      <div class="toolbar-inner">\n        '.concat(this.params.monthSelector?this.renderMonthSelector():"","\n        ").concat(this.params.yearSelector?this.renderYearSelector():"","\n      </div>\n    </div>\n  ").trim()}},{key:"renderInline",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="calendar calendar-inline '.concat(a?"calendar-range":""," ").concat(t||"",'">\n      ').concat(r?this.renderHeader():"","\n      ").concat(n?this.renderToolbar():"","\n      ").concat(o?this.renderWeekHeader():"",'\n      <div class="calendar-months">\n        ').concat(this.renderMonths(c),"\n      </div>\n      ").concat(l?this.renderTimeSelector():"","\n      ").concat(i?this.renderFooter():"","\n    </div>\n  ").trim()}},{key:"renderCustomModal",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="calendar calendar-modal '.concat(a?"calendar-range":""," ").concat(t||"",'">\n      ').concat(r?this.renderHeader():"","\n      ").concat(n?this.renderToolbar():"","\n      ").concat(o?this.renderWeekHeader():"",'\n      <div class="calendar-months">\n        ').concat(this.renderMonths(c),"\n      </div>\n      ").concat(l?this.renderTimeSelector():"","\n      ").concat(i?this.renderFooter():"","\n    </div>\n  ").trim()}},{key:"renderSheet",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="sheet-modal calendar calendar-sheet '.concat(a?"calendar-range":""," ").concat(t||"",'">\n      ').concat(r?this.renderHeader():"","\n      ").concat(n?this.renderToolbar():"","\n      ").concat(o?this.renderWeekHeader():"",'\n      <div class="sheet-modal-inner calendar-months">\n        ').concat(this.renderMonths(c),"\n      </div>\n      ").concat(l?this.renderTimeSelector():"","\n      ").concat(i?this.renderFooter():"","\n    </div>\n  ").trim()}},{key:"renderPopover",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="popover calendar-popover">\n      <div class="popover-inner">\n        <div class="calendar '.concat(a?"calendar-range":""," ").concat(t||"",'">\n        ').concat(r?this.renderHeader():"","\n        ").concat(n?this.renderToolbar():"","\n        ").concat(o?this.renderWeekHeader():"",'\n        <div class="calendar-months">\n          ').concat(this.renderMonths(c),"\n        </div>\n        ").concat(l?this.renderTimeSelector():"","\n        ").concat(i?this.renderFooter():"","\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"render",value:function(){var e=this.params;if(e.render)return e.render.call(this);if(!this.inline){var t=e.openIn;return"auto"===t&&(t=this.isPopover()?"popover":"sheet"),"popover"===t?this.renderPopover():"sheet"===t?this.renderSheet():this.renderCustomModal()}return this.renderInline()}},{key:"openTimePicker",value:function(){var e=this.$el,t=this.app;if(e&&e.length){e.append('<div class="calendar-time-picker"></div>');for(var n,r=[],i=[],a=0;a<=23;a+=1)r.push(a);for(var o=0;o<=59;o+=1)i.push(o);n=this.value&&this.value.length?[this.value[0].getHours(),this.value[0].getMinutes()]:[(new Date).getHours(),(new Date).getMinutes()],this.timePickerInstance=t.picker.create({containerEl:e.find(".calendar-time-picker"),value:n,toolbar:!0,rotateEffect:!1,toolbarCloseText:this.params.toolbarCloseText,cols:[{values:r},{divider:!0,content:":"},{values:i,displayValues:i.map((function(e){return e<10?"0".concat(e):e}))}]}),this.timePickerInstance.$el.find(".toolbar a").removeClass("sheet-close popover-close").addClass("calendar-time-picker-close")}}},{key:"closeTimePicker",value:function(){if(this.timePickerInstance){var e=this.timePickerInstance.value.map((function(e){return parseInt(e,10)})),t=_r()(e,2),n=t[0],r=t[1],i=this.value&&this.value.length&&this.value[0];i?(i=new Date(i)).setHours(n,r):(i=new Date).setHours(n,r,0,0),this.setValue([i]),this.timePickerInstance.close(),this.timePickerInstance.destroy(),delete this.timePickerInstance}this.$el&&this.$el.length&&this.$el.find(".calendar-time-picker").remove()}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,a=e.inline,o=e.value,s=e.params;e.closing=!1,e.opened=!0,e.opening=!0,e.attachCalendarEvents();var l=!o&&s.value;t?o&&e.setValue(o,0):o?e.setValue(o,0):s.value&&e.setValue(e.normalizeValues(s.value),0),e.updateCurrentMonthYear(),e.monthsTranslate=0,e.setMonthsTranslate(),l?e.updateValue():s.header&&o&&e.updateValue(!0),!a&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,e.$months.each((function(t,n){e.emit("local::monthAdd calendarMonthAdd",n)})),n&&n.trigger("calendar:open"),i&&i.trigger("calendar:open"),e.emit("local::open calendarOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("calendar:opened"),this.$inputEl&&this.$inputEl.trigger("calendar:opened"),this.emit("local::opened calendarOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opening=!1,this.closing=!0,this.$inputEl&&"md"===e.theme&&this.$inputEl.trigger("blur"),this.detachCalendarEvents&&this.detachCalendarEvents(),this.$el&&this.$el.trigger("calendar:close"),this.$inputEl&&this.$inputEl.trigger("calendar:close"),this.emit("local::close calendarClose",this)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||z.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),e.$el&&e.$el.trigger("calendar:closed"),e.$inputEl&&e.$inputEl.trigger("calendar:closed"),e.emit("local::closed calendarClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,a=e.params;if(!n){if(r)return e.$el=k(e.render()),e.$el[0].f7Calendar=e,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var o=a.openIn;"auto"===o&&(o=e.isPopover()?"popover":"sheet");var s=e.render(),l={targetEl:i,scrollToEl:a.scrollToInput?i:void 0,content:s,backdrop:!0===a.backdrop||"popover"===o&&!1!==t.params.popover.backdrop&&!1!==a.backdrop,closeByBackdropClick:a.closeByBackdropClick,on:{open:function(){e.modal=this,e.$el="popover"===o?this.$el.find(".calendar"):this.$el,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$el[0].f7Calendar=e,"customModal"===o&&k(e.$el).find(".calendar-close").once("click",(function(){e.close()})),e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed()}}};"sheet"===o&&(l.push=a.sheetPush,l.swipeToClose=a.sheetSwipeToClose),a.routableModals&&e.view?e.view.router.navigate({url:e.url,route:Z()({path:e.url},o,l)}):(e.modal=t[o].create(l),e.modal.open())}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init calendarInit",this);!this.initialized&&this.params.value&&this.setValue(this.normalizeValues(this.params.value)),this.$inputEl&&this.attachInputEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init calendarInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy calendarBeforeDestroy",this),e&&e.trigger("calendar:beforedestroy"),this.close(),this.$inputEl&&this.detachInputEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),this.timePickerInstance&&(this.timePickerInstance.destroy&&this.timePickerInstance.destroy(),delete this.timePickerInstance),e&&e.length&&delete this.$el[0].f7Calendar,z.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.$inputEl,n=this.app,r=this.params;return r.view?e=r.view:t&&(e=t.parents(".view").length&&t.parents(".view")[0].f7View),e||(e=n.views.main),e}}]),r}(G),Er={name:"calendar",static:{Calendar:kr},create:function(){this.calendar=X({defaultSelector:".calendar",constructor:kr,app:this,domProp:"f7Calendar"}),this.calendar.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".calendar",t=k(e);if(0!==t.length){var n=t[0].f7Calendar;!n||n&&!n.opened||n.close()}}},params:{calendar:{dateFormat:void 0,monthNames:"auto",monthNamesShort:"auto",dayNames:"auto",dayNamesShort:"auto",locale:void 0,firstDay:1,weekendDays:[0,6],multiple:!1,rangePicker:!1,rangePickerMinDays:1,rangePickerMaxDays:0,direction:"horizontal",minDate:null,maxDate:null,disabled:null,events:null,rangesClasses:null,touchMove:!0,animate:!0,closeOnSelect:!1,monthSelector:!0,monthPicker:!0,yearSelector:!0,yearPicker:!0,yearPickerMin:void 0,yearPickerMax:void 0,timePicker:!1,timePickerFormat:{hour:"numeric",minute:"numeric"},timePickerPlaceholder:"Select time",weekHeader:!0,value:null,containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,header:!1,headerPlaceholder:"Select date",toolbar:!0,toolbarCloseText:"Done",footer:!1,cssClass:null,routableModals:!0,view:null,url:"date/",backdrop:null,closeByBackdropClick:!0,renderWeekHeader:null,renderMonths:null,renderMonth:null,renderMonthSelector:null,renderYearSelector:null,renderHeader:null,renderFooter:null,renderToolbar:null,renderInline:null,renderPopover:null,renderSheet:null,render:null}}},Tr=function(e,t){var n=this,r=n.app,i=k(e),a=i.index(),o=n.cols[a];if(!o.divider){var s,l,c,u,d;o.$el=i,o.el=i[0],o.$itemsEl=o.$el.find(".picker-items"),o.items=o.$itemsEl.find(".picker-item"),o.replaceValues=function(e,t){o.detachEvents(),o.values=e,o.displayValues=t,o.$itemsEl.html(n.renderColumn(o,!0)),o.items=o.$itemsEl.find(".picker-item"),o.calcSize(),o.setValue(o.values[0],0,!0),o.attachEvents()},o.calcSize=function(){n.params.rotateEffect&&(o.$el.removeClass("picker-column-absolute"),o.width||o.$el.css({width:""}));var e=0,t=o.$el[0].offsetHeight;s=o.items[0].offsetHeight,l=s*o.items.length,c=t/2-l+s/2,u=t/2-s/2,o.width&&(e=o.width,parseInt(e,10)===e&&(e+="px"),o.$el.css({width:e})),n.params.rotateEffect&&(o.width||(o.items.each((function(t,n){var r=k(n).children("span");e=Math.max(e,r[0].offsetWidth)})),o.$el.css({width:"".concat(e+2,"px")})),o.$el.addClass("picker-column-absolute"))},o.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=o.$itemsEl.find('.picker-item[data-picker-value="'.concat(e,'"]')).index();if(void 0!==i&&-1!==i){var a=-i*s+u;o.$itemsEl.transition(t),o.$itemsEl.transform("translate3d(0,".concat(a,"px,0)")),n.params.updateValuesOnMomentum&&o.activeIndex&&o.activeIndex!==i&&(z.cancelAnimationFrame(d),o.$itemsEl.transitionEnd((function(){z.cancelAnimationFrame(d)})),C()),o.updateItems(i,a,t,r)}},o.updateItems=function(e,t,r,i){void 0===t&&(t=z.getTranslate(o.$itemsEl[0],"y")),void 0===e&&(e=-Math.round((t-u)/s)),e<0&&(e=0),e>=o.items.length&&(e=o.items.length-1);var a=o.activeIndex;o.activeIndex=e,o.$itemsEl.find(".picker-item-selected").removeClass("picker-item-selected"),o.items.transition(r);var l=o.items.eq(e).addClass("picker-item-selected").transform("");n.params.rotateEffect&&o.items.each((function(e,r){var i=k(r),a=(i.index()*s-(u-t))/s,l=Math.ceil(o.height/s/2)+1,c=-18*a;c>180&&(c=180),c<-180&&(c=-180),Math.abs(a)>l?i.addClass("picker-item-far"):i.removeClass("picker-item-far"),i.transform("translate3d(0, ".concat(-t+u,"px, ").concat(n.needsOriginFix?-110:0,"px) rotateX(").concat(c,"deg)"))})),(i||void 0===i)&&(o.value=l.attr("data-picker-value"),o.displayValue=o.displayValues?o.displayValues[e]:o.value,a!==e&&(o.onChange&&o.onChange(n,o.value,o.displayValue),n.updateValue()))};var h,p,f,m,v,g,y,b,_,w,E,T=!0,S=!!r.support.passiveListener&&{passive:!1,capture:!1};o.attachEvents=function(){o.$el.on(r.touchEvents.start,x,S),r.on("touchmove:active",M),r.on("touchend:passive",$),n.params.mousewheel&&o.$el.on("wheel",L),o.items.on("click",P)},o.detachEvents=function(){o.$el.off(r.touchEvents.start,x,S),r.off("touchmove:active",M),r.off("touchend:passive",$),n.params.mousewheel&&o.$el.off("wheel",L),o.items.off("click",P)},o.init=function(){o.calcSize(),o.$itemsEl.transform("translate3d(0,".concat(u,"px,0)")).transition(0),0===a&&o.$el.addClass("picker-column-first"),a===n.cols.length-1&&o.$el.addClass("picker-column-last"),t&&o.updateItems(0,u,0),o.attachEvents()},o.destroy=function(){o.detachEvents()},o.init()}function C(){d=z.requestAnimationFrame((function(){o.updateItems(void 0,void 0,0),C()}))}function x(e){p||h||(e.preventDefault(),h=!0,f="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,m=f,v=(new Date).getTime(),T=!0,g=z.getTranslate(o.$itemsEl[0],"y"),b=g)}function M(e){h&&(e.preventDefault(),T=!1,m="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,p||(z.cancelAnimationFrame(d),p=!0,g=z.getTranslate(o.$itemsEl[0],"y"),b=g,o.$itemsEl.transition(0)),y=void 0,(b=g+(m-f))<c&&(b=c-Math.pow(c-b,.8),y="min"),b>u&&(b=u+Math.pow(b-u,.8),y="max"),o.$itemsEl.transform("translate3d(0,".concat(b,"px,0)")),o.updateItems(void 0,b,0,n.params.updateValuesOnTouchmove),w=b-_||b,_=b)}function $(){if(!h||!p)return h=!1,void(p=!1);var e;h=!1,p=!1,o.$itemsEl.transition(""),y&&("min"===y?o.$itemsEl.transform("translate3d(0,".concat(c,"px,0)")):o.$itemsEl.transform("translate3d(0,".concat(u,"px,0)"))),e=(new Date).getTime()-v>300?b:b+w*n.params.momentumRatio,e=Math.max(Math.min(e,u),c);var t=Math.round(Math.abs((e-u)/s));n.params.freeMode||(e=-t*s+u),o.$itemsEl.transform("translate3d(0,".concat(parseInt(e,10),"px,0)")),o.updateItems(t,e,"",!0),n.params.updateValuesOnMomentum&&(C(),o.$itemsEl.transitionEnd((function(){z.cancelAnimationFrame(d)}))),setTimeout((function(){T=!0}),100)}function L(e){var t=e.deltaX,r=e.deltaY;Math.abs(t)>Math.abs(r)||(clearTimeout(E),e.preventDefault(),z.cancelAnimationFrame(d),g=z.getTranslate(o.$itemsEl[0],"y"),o.$itemsEl.transition(0),y=void 0,(b=g-r)<c&&(b=c,y="min"),b>u&&(b=u,y="max"),o.$itemsEl.transform("translate3d(0,".concat(b,"px,0)")),o.updateItems(void 0,b,0,n.params.updateValuesOnMousewheel),E=setTimeout((function(){o.$itemsEl.transition(""),y&&("min"===y?o.$itemsEl.transform("translate3d(0,".concat(c,"px,0)")):o.$itemsEl.transform("translate3d(0,".concat(u,"px,0)"))),(new Date).getTime();var e=b;e=Math.max(Math.min(e,u),c);var t=Math.round(Math.abs((e-u)/s));n.params.freeMode||(e=-t*s+u),o.$itemsEl.transform("translate3d(0,".concat(parseInt(e,10),"px,0)")),o.updateItems(t,e,"",!0)}),200))}function P(){if(T){z.cancelAnimationFrame(d);var e=k(this).attr("data-picker-value");o.setValue(e)}}};function Sr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Sr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a,o,s=C()(t);if(s.params=z.extend({},e.params.picker,i),s.params.containerEl&&0===(a=k(s.params.containerEl)).length)return L()(t,s);s.params.inputEl&&(o=k(s.params.inputEl));var l=s.params.scrollToInput?o:void 0;if(s.params.scrollToEl){var c=k(s.params.scrollToEl);c.length>0&&(l=c)}function h(){s.resizeCols()}function p(){s.open()}function f(e){e.preventDefault()}function m(e){if(!s.destroyed&&s.params){var t=k(e.target);s.isPopover()||s.opened&&!s.closing&&(t.closest('[class*="backdrop"]').length||(o&&o.length>0?t[0]!==o[0]&&0===t.closest(".sheet-modal").length&&s.close():0===k(e.target).closest(".sheet-modal").length&&s.close()))}}return z.extend(s,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,needsOriginFix:e.device.ios||d.b.navigator.userAgent.toLowerCase().indexOf("safari")>=0&&d.b.navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!e.device.android,cols:[],$inputEl:o,inputEl:o&&o[0],$scrollToEl:l,initialized:!1,opened:!1,url:s.params.url}),z.extend(s,{attachResizeEvent:function(){e.on("resize",h)},detachResizeEvent:function(){e.off("resize",h)},attachInputEvents:function(){s.$inputEl.on("click",p),s.params.inputReadOnly&&s.$inputEl.on("focus mousedown",f)},detachInputEvents:function(){s.$inputEl.off("click",p),s.params.inputReadOnly&&s.$inputEl.off("focus mousedown",f)},attachHtmlEvents:function(){e.on("click",m)},detachHtmlEvents:function(){e.off("click",m)}}),s.init(),L()(t,s)}return T()(r,[{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"resizeCols",value:function(){if(this.opened)for(var e=0;e<this.cols.length;e+=1)this.cols[e].divider||(this.cols[e].calcSize(),this.cols[e].setValue(this.cols[e].value,0,!1))}},{key:"isPopover",value:function(){var e=this.app,t=this.modal,n=this.params;if("sheet"===n.openIn)return!1;if(t&&"popover"!==t.type)return!1;if(!this.inline&&this.inputEl){if("popover"===n.openIn)return!0;if(e.device.ios)return!!e.device.ipad;if(e.width>=768)return!0;if(e.device.desktop&&"aurora"===e.theme)return!0}return!1}},{key:"formatValue",value:function(){var e=this.value,t=this.displayValue;return this.params.formatValue?this.params.formatValue.call(this,e,t):e.join(" ")}},{key:"setValue",value:function(e,t){var n=0;if(0===this.cols.length)return this.value=e,void this.updateValue(e);for(var r=0;r<this.cols.length;r+=1)this.cols[r]&&!this.cols[r].divider&&(this.cols[r].setValue(e[n],t),n+=1)}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(e){var t,n=e||[],r=[];if(0===this.cols.length)for(var i=this.params.cols.filter((function(e){return!e.divider})),a=0;a<i.length;a+=1)void 0!==(t=i[a]).displayValues&&void 0!==t.values&&-1!==t.values.indexOf(n[a])?r.push(t.displayValues[t.values.indexOf(n[a])]):r.push(n[a]);else for(var o=0;o<this.cols.length;o+=1)this.cols[o].divider||(n.push(this.cols[o].value),r.push(this.cols[o].displayValue));n.indexOf(void 0)>=0||(this.value=n,this.displayValue=r,this.emit("local::change pickerChange",this,this.value,this.displayValue),this.inputEl&&(this.$inputEl.val(this.formatValue()),this.$inputEl.trigger("change")))}},{key:"initColumn",value:function(e,t){Tr.call(this,e,t)}},{key:"destroyColumn",value:function(e){var t=k(e).index();this.cols[t]&&this.cols[t].destroy&&this.cols[t].destroy()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n      <div class="toolbar toolbar-top no-shadow">\n        <div class="toolbar-inner">\n          <div class="left"></div>\n          <div class="right">\n            <a class="link sheet-close popover-close">'.concat(this.params.toolbarCloseText,"</a>\n          </div>\n        </div>\n      </div>\n    ").trim()}},{key:"renderColumn",value:function(e,t){var n,r,i="picker-column ".concat(e.textAlign?"picker-column-".concat(e.textAlign):""," ").concat(e.cssClass||"");return e.divider?n='\n        <div class="'.concat(i,' picker-column-divider">').concat(e.content,"</div>\n      "):(r=e.values.map((function(t,n){return'\n        <div class="picker-item" data-picker-value="'.concat(t,'">\n          <span>').concat(e.displayValues?e.displayValues[n]:t,"</span>\n        </div>\n      ")})).join(""),n='\n        <div class="'.concat(i,'">\n          <div class="picker-items">').concat(r,"</div>\n        </div>\n      ")),t?r.trim():n.trim()}},{key:"renderInline",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n      <div class="picker picker-inline '.concat(n?"picker-3d":""," ").concat(r||"",'">\n        ').concat(i?e.renderToolbar():"",'\n        <div class="picker-columns">\n          ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n          <div class="picker-center-highlight"></div>\n        </div>\n      </div>\n    ').trim()}},{key:"renderSheet",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n      <div class="sheet-modal picker picker-sheet '.concat(n?"picker-3d":""," ").concat(r||"",'">\n        ').concat(i?e.renderToolbar():"",'\n        <div class="sheet-modal-inner picker-columns">\n          ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n          <div class="picker-center-highlight"></div>\n        </div>\n      </div>\n    ').trim()}},{key:"renderPopover",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n      <div class="popover picker-popover">\n        <div class="popover-inner">\n          <div class="picker '.concat(n?"picker-3d":""," ").concat(r||"",'">\n            ').concat(i?e.renderToolbar():"",'\n            <div class="picker-columns">\n              ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n              <div class="picker-center-highlight"></div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ').trim()}},{key:"render",value:function(){return this.params.render?this.params.render.call(this):this.inline?this.renderInline():this.isPopover()?this.renderPopover():this.renderSheet()}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,a=e.inline,o=e.value,s=e.params;e.opened=!0,e.closing=!1,e.opening=!0,e.attachResizeEvent(),n.find(".picker-column").each((function(n,r){var i=!0;(!t&&s.value||t&&o)&&(i=!1),e.initColumn(r,i)})),t?o&&e.setValue(o,0):o?e.setValue(o,0):s.value&&e.setValue(s.value,0),!a&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,n&&n.trigger("picker:open"),i&&i.trigger("picker:open"),e.emit("local::open pickerOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("picker:opened"),this.$inputEl&&this.$inputEl.trigger("picker:opened"),this.emit("local::opened pickerOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opening=!1,this.closing=!0,this.detachResizeEvent(),this.cols.forEach((function(e){e.destroy&&e.destroy()})),this.$inputEl&&"md"===e.theme&&this.$inputEl.trigger("blur"),this.$el&&this.$el.trigger("picker:close"),this.$inputEl&&this.$inputEl.trigger("picker:close"),this.emit("local::close pickerClose",this)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||z.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.$el&&e.$el.trigger("picker:closed"),e.$inputEl&&e.$inputEl.trigger("picker:closed"),e.emit("local::closed pickerClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,a=e.$scrollToEl,o=e.params;if(!n){if(0===e.cols.length&&o.cols.length&&o.cols.forEach((function(t){e.cols.push(t)})),r)return e.$el=k(e.render()),e.$el[0].f7Picker=e,e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var s=e.isPopover(),l=s?"popover":"sheet",c={targetEl:i,scrollToEl:a,content:e.render(),backdrop:void 0!==o.backdrop?o.backdrop:s,on:{open:function(){e.modal=this,e.$el=s?this.$el.find(".picker"):this.$el,e.$el[0].f7Picker=e,e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed()}}};"sheet"===l&&(c.push=o.sheetPush,c.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:Z()({path:e.url},l,c)}):(e.modal=t[l].create(c),e.modal.open())}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init pickerInit",this);!this.initialized&&this.params.value&&this.setValue(this.params.value),this.$inputEl&&this.attachInputEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init pickerInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy pickerBeforeDestroy",this),e&&e.trigger("picker:beforedestroy"),this.close(),this.$inputEl&&this.detachInputEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),e&&e.length&&delete this.$el[0].f7Picker,z.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.app,n=this.params,r=this.$inputEl;return n.view?e=n.view:r&&(e=r.parents(".view").length&&r.parents(".view")[0].f7View),e||(e=t.views.main),e}}]),r}(G),xr={name:"picker",static:{Picker:Cr},create:function(){this.picker=X({defaultSelector:".picker",constructor:Cr,app:this,domProp:"f7Picker"}),this.picker.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".picker",t=k(e);if(0!==t.length){var n=t[0].f7Picker;!n||n&&!n.opened||n.close()}}},params:{picker:{updateValuesOnMomentum:!1,updateValuesOnTouchmove:!0,updateValuesOnMousewheel:!0,mousewheel:!0,rotateEffect:!1,momentumRatio:7,freeMode:!1,cols:[],containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,backdrop:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,scrollToEl:void 0,toolbar:!0,toolbarCloseText:"Done",cssClass:null,routableModals:!0,view:null,url:"select/",renderToolbar:null,render:null}}},Mr={handleScroll:function(e,t){var n,r=k(e),i=r[0].scrollTop,a=r[0].scrollHeight,o=r[0].offsetHeight,s=r[0].getAttribute("data-infinite-distance"),l=r.find(".virtual-list"),c=r.hasClass("infinite-scroll-top");if(s||(s=50),"string"==typeof s&&s.indexOf("%")>=0&&(s=parseInt(s,10)/100*o),s>o&&(s=o),c)i<s&&(r.trigger("infinite",t),this.emit("infinite",r[0],t));else if(i+o>=a-s){if(l.length>0&&(n=l.eq(-1)[0].f7VirtualList)&&!n.reachEnd&&!n.params.updatableScroll)return;r.trigger("infinite",t),this.emit("infinite",r[0],t)}},create:function(e){var t=k(e),n=this;function r(e){n.infiniteScroll.handle(this,e)}t.each((function(e,t){t.f7InfiniteScrollHandler=r,t.addEventListener("scroll",t.f7InfiniteScrollHandler)}))},destroy:function(e){k(e).each((function(e,t){t.removeEventListener("scroll",t.f7InfiniteScrollHandler),delete t.f7InfiniteScrollHandler}))}},$r={name:"infiniteScroll",create:function(){z.extend(this,{infiniteScroll:{handle:Mr.handleScroll.bind(this),create:Mr.create.bind(this),destroy:Mr.destroy.bind(this)}})},on:{tabMounted:function(e){var t=this,n=k(e),r=n.find(".infinite-scroll-content");n.is(".infinite-scroll-content")&&r.add(n),r.each((function(e,n){t.infiniteScroll.create(n)}))},tabBeforeRemove:function(e){var t=k(e),n=this,r=t.find(".infinite-scroll-content");t.is(".infinite-scroll-content")&&r.add(t),r.each((function(e,t){n.infiniteScroll.destroy(t)}))},pageInit:function(e){var t=this;e.$el.find(".infinite-scroll-content").each((function(e,n){t.infiniteScroll.create(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".infinite-scroll-content").each((function(e,n){t.infiniteScroll.destroy(n)}))}}};function Lr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Pr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Lr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r),i=n.call(this,{},[e]);var a=C()(i),o=k(t),s=o.find(".ptr-preloader");a.$el=o,a.el=o[0],a.app=e,a.bottom=a.$el.hasClass("ptr-bottom"),a.useModulesParams({});var l,c,d,h="md"===e.theme,p="ios"===e.theme,f="aurora"===e.theme;a.done=function(){return(h?s:o).transitionEnd((function(){o.removeClass("ptr-transitioning ptr-pull-up ptr-pull-down ptr-closing"),o.trigger("ptr:done"),a.emit("local::done ptrDone",o[0])})),o.removeClass("ptr-refreshing").addClass("ptr-transitioning ptr-closing"),a},a.refresh=function(){return o.hasClass("ptr-refreshing")||(o.addClass("ptr-transitioning ptr-refreshing"),o.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",o[0],a.done)),a},a.mousewheel="true"===o.attr("data-ptr-mousewheel");var m,v,g,y,b,_,w,E,T,S,x,M,$,P={},O=!1,D=!1,I=!1,A=0,N=!1,R=o.parents(".page");if((R.find(".navbar").length>0||R.parents(".view").children(".navbars").length>0)&&(N=!0),R.hasClass("no-navbar")&&(N=!1),!a.bottom){var Y=e.navbar.getElByPage(R[0]);if(Y){var B=k(Y),j=B.hasClass("navbar-large-transparent")||B.hasClass("navbar-large")&&B.hasClass("navbar-transparent"),F=B.hasClass("navbar-transparent")&&!B.hasClass("navbar-large");j?o.addClass("ptr-with-navbar-large-transparent"):F&&o.addClass("ptr-with-navbar-transparent")}}function H(e){if(c){if("android"!==V.a.os)return;if("targetTouches"in e&&e.targetTouches.length>1)return}o.hasClass("ptr-refreshing")||k(e.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length||(d=!1,E=!1,c=!0,m=void 0,b=void 0,"touchstart"===e.type&&(l=e.targetTouches[0].identifier),P.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,P.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY)}function U(e){if(c){var n,r,i;if("touchmove"===e.type){if(l&&e.touches)for(var u=0;u<e.touches.length;u+=1)e.touches[u].identifier===l&&(i=e.touches[u]);i||(i=e.targetTouches[0]),n=i.pageX,r=i.pageY}else n=e.pageX,r=e.pageY;if(n&&r)if(void 0===m&&(m=!!(m||Math.abs(r-P.y)>Math.abs(n-P.x))),m){if(y=o[0].scrollTop,!d){var p;if(o.removeClass("ptr-transitioning"),T=o[0].scrollHeight,S=o[0].offsetHeight,a.bottom&&(x=T-S),y>T)return void(c=!1);var f=k(e.target).closest(".ptr-watch-scroll");if(f.length&&f.each((function(e,n){n!==t&&n.scrollHeight>n.offsetHeight&&"auto"===k(n).css("overflow")&&(!a.bottom&&n.scrollTop>0||a.bottom&&n.scrollTop<n.scrollHeight-n.offsetHeight)&&(p=!0)})),p)return void(c=!1);w&&(_=o.attr("data-ptr-distance")).indexOf("%")>=0&&(_=T*parseInt(_,10)/100),A=o.hasClass("ptr-refreshing")?_:0,D=!(T!==S&&"ios"===V.a.os&&!h),I=!1}d=!0,v=r-P.y,void 0===b&&(a.bottom?y!==x:0!==y)&&(b=!0),(a.bottom?v<0&&y>=x||y>x:v>0&&y<=0||y<0)?("ios"===V.a.os&&parseInt(V.a.osVersion.split(".")[0],10)>7&&(a.bottom||0!==y||b||(D=!0),a.bottom&&y===x&&!b&&(D=!0)),D||!a.bottom||h||(o.css("-webkit-overflow-scrolling","auto"),o.scrollTop(x),I=!0),(D||I)&&(e.cancelable&&e.preventDefault(),g=(a.bottom?-1*Math.pow(Math.abs(v),.85):Math.pow(v,.85))+A,h?s.transform("translate3d(0,".concat(g,"px,0)")).find(".ptr-arrow").transform("rotate(".concat(Math.abs(v)/66*180+100,"deg)")):a.bottom?o.children().transform("translate3d(0,".concat(g,"px,0)")):o.transform("translate3d(0,".concat(g,"px,0)"))),(D||I)&&Math.pow(Math.abs(v),.85)>_||!D&&Math.abs(v)>=2*_?(O=!0,o.addClass("ptr-pull-up").removeClass("ptr-pull-down")):(O=!1,o.removeClass("ptr-pull-up").addClass("ptr-pull-down")),E||(o.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",o[0]),E=!0),o.trigger("ptr:pullmove",{event:e,scrollTop:y,translate:g,touchesDiff:v}),a.emit("local::pullMove ptrPullMove",o[0],{event:e,scrollTop:y,translate:g,touchesDiff:v})):(E=!1,o.removeClass("ptr-pull-up ptr-pull-down"),O=!1)}else c=!1}}function z(e){return"touchend"===e.type&&e.changedTouches&&e.changedTouches.length>0&&l&&e.changedTouches[0].identifier!==l?(c=!1,m=!1,d=!1,void(l=null)):c&&d?(g&&(o.addClass("ptr-transitioning"),g=0),h?s.transform("").find(".ptr-arrow").transform(""):a.bottom?o.children().transform(""):o.transform(""),D||!a.bottom||h||o.css("-webkit-overflow-scrolling",""),O?(o.addClass("ptr-refreshing"),o.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",o[0],a.done)):o.removeClass("ptr-pull-down"),c=!1,d=!1,void(E&&(o.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",o[0])))):(c=!1,void(d=!1))}N||a.bottom||o.addClass("ptr-no-navbar"),o.attr("data-ptr-distance")?w=!0:h?_=66:p?_=44:f&&(_=38);var q=!0,W=0;function G(){q=!0,$=!1,W=0,g&&(o.addClass("ptr-transitioning"),g=0),h?s.transform("").find(".ptr-arrow").transform(""):a.bottom?o.children().transform(""):o.transform(""),O?(o.addClass("ptr-refreshing"),o.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",o[0],a.done)):o.removeClass("ptr-pull-down"),E&&(o.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",o[0]))}function K(e){if(q){var n=e.deltaX,r=e.deltaY;if(!(Math.abs(n)>Math.abs(r)||o.hasClass("ptr-refreshing")||k(e.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length)){if(clearTimeout(M),y=o[0].scrollTop,!$){var i;if(o.removeClass("ptr-transitioning"),T=o[0].scrollHeight,S=o[0].offsetHeight,a.bottom&&(x=T-S),y>T)return void(q=!1);var l=k(e.target).closest(".ptr-watch-scroll");if(l.length&&l.each((function(e,n){n!==t&&n.scrollHeight>n.offsetHeight&&"auto"===k(n).css("overflow")&&(!a.bottom&&n.scrollTop>0||a.bottom&&n.scrollTop<n.scrollHeight-n.offsetHeight)&&(i=!0)})),i)return void(q=!1);w&&(_=o.attr("data-ptr-distance")).indexOf("%")>=0&&(_=T*parseInt(_,10)/100)}d=!0,v=W-=r,void 0===b&&(a.bottom?y!==x:0!==y)&&(b=!0),(a.bottom?v<0&&y>=x||y>x:v>0&&y<=0||y<0)?(e.cancelable&&e.preventDefault(),g=v,Math.abs(g)>_&&(g=_+Math.pow(Math.abs(g)-_,.7),a.bottom&&(g=-g)),h?s.transform("translate3d(0,".concat(g,"px,0)")).find(".ptr-arrow").transform("rotate(".concat(Math.abs(v)/66*180+100,"deg)")):a.bottom?o.children().transform("translate3d(0,".concat(g,"px,0)")):o.transform("translate3d(0,".concat(g,"px,0)")),Math.abs(g)>_?(O=!0,o.addClass("ptr-pull-up").removeClass("ptr-pull-down")):(O=!1,o.removeClass("ptr-pull-up").addClass("ptr-pull-down")),E||(o.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",o[0]),E=!0),o.trigger("ptr:pullmove",{event:e,scrollTop:y,translate:g,touchesDiff:v}),a.emit("local::pullMove ptrPullMove",o[0],{event:e,scrollTop:y,translate:g,touchesDiff:v})):(E=!1,o.removeClass("ptr-pull-up ptr-pull-down"),O=!1),M=setTimeout(G,300)}}}return R.length&&o.length?(o[0].f7PullToRefresh=a,a.attachEvents=function(){var t=!!fe.a.passiveListener&&{passive:!0};o.on(e.touchEvents.start,H,t),e.on("touchmove:active",U),e.on("touchend:passive",z),a.mousewheel&&!a.bottom&&o.on("wheel",K)},a.detachEvents=function(){var t=!!fe.a.passiveListener&&{passive:!0};o.off(e.touchEvents.start,H,t),e.off("touchmove:active",U),e.off("touchend:passive",z),a.mousewheel&&!a.bottom&&o.off("wheel",K)},a.useModules(),a.init(),L()(i,a)):L()(i,a)}return T()(r,[{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy ptrBeforeDestroy",e),e.$el.trigger("ptr:beforedestroy"),delete e.el.f7PullToRefresh,e.detachEvents(),z.deleteProps(e),e=null}}]),r}(G),Or={name:"pullToRefresh",create:function(){var e=this;e.ptr=z.extend(X({defaultSelector:".ptr-content",constructor:Pr,app:e,domProp:"f7PullToRefresh"}),{done:function(t){var n=e.ptr.get(t);if(n)return n.done()},refresh:function(t){var n=e.ptr.get(t);if(n)return n.refresh()}})},static:{PullToRefresh:Pr},on:{tabMounted:function(e){var t=this,n=k(e),r=n.find(".ptr-content");n.is(".ptr-content")&&r.add(n),r.each((function(e,n){t.ptr.create(n)}))},tabBeforeRemove:function(e){var t=k(e),n=this,r=t.find(".ptr-content");t.is(".ptr-content")&&r.add(t),r.each((function(e,t){n.ptr.destroy(t)}))},pageInit:function(e){var t=this;e.$el.find(".ptr-content").each((function(e,n){t.ptr.create(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".ptr-content").each((function(e,n){t.ptr.destroy(n)}))}}},Dr={destroy:function(e){var t=k(e).closest(".page");t.length&&t[0].f7LazyDestroy&&t[0].f7LazyDestroy()},create:function(e){var t=this,n=k(e).closest(".page").eq(0),r=n.find(".lazy");if(0!==r.length||n.hasClass("lazy")){var i=t.params.lazy.placeholder;!1!==i&&r.each((function(e,t){k(t).attr("data-src")&&!k(t).attr("src")&&k(t).attr("src",i)}));var a=[],o=!1;if(t.params.lazy.observer&&fe.a.intersectionObserver){var s=n[0].f7LazyObserver;return s||(s=new d.b.IntersectionObserver((function(e,n){e.forEach((function(e){if(e.isIntersecting){if(t.params.lazy.sequential&&o)return void(a.indexOf(e.target)<0&&a.push(e.target));o=!0,t.lazy.loadImage(e.target,l),n.unobserve(e.target)}}))}),{root:n[0]})),r.each((function(e,t){t.f7LazyObserverAdded||(t.f7LazyObserverAdded=!0,s.observe(t))})),void(n[0].f7LazyDestroy||(n[0].f7LazyDestroy=function(){s.disconnect(),delete n[0].f7LazyDestroy,delete n[0].f7LazyObserver}))}n[0].f7LazyDestroy||(n[0].f7LazyDestroy=function(){n[0].f7LazyAttached=!1,delete n[0].f7LazyAttached,n.off("lazy",c),n.off("scroll",c,!0),n.find(".tab").off("tab:mounted tab:show",c),t.off("resize",c)}),n[0].f7LazyAttached||(n[0].f7LazyAttached=!0,n.on("lazy",c),n.on("scroll",c,!0),n.find(".tab").on("tab:mounted tab:show",c),t.on("resize",c)),c()}function l(e){a.indexOf(e)>=0&&a.splice(a.indexOf(e),1),o=!1,t.params.lazy.sequential&&a.length>0&&(o=!0,t.lazy.loadImage(a[0],l))}function c(){t.lazy.load(n,(function(e){t.params.lazy.sequential&&o?a.indexOf(e)<0&&a.push(e):(o=!0,t.lazy.loadImage(e,l))}))}},isInViewport:function(e){var t=e.getBoundingClientRect(),n=this.params.lazy.threshold||0;return t.top>=0-n&&t.left>=0-n&&t.top<=this.height+n&&t.left<=this.width+n},loadImage:function(e,t){var n=this,r=k(e),i=r.attr("data-background"),a=i||r.attr("data-src");function o(){r.removeClass("lazy").addClass("lazy-loaded"),i?r.css("background-image","url(".concat(a,")")):a&&r.attr("src",a),t&&t(e),r.trigger("lazy:loaded"),n.emit("lazyLoaded",r[0])}if(!a)return r.trigger("lazy:load"),n.emit("lazyLoad",r[0]),void o();var s=new d.b.Image;s.onload=o,s.onerror=function(){r.removeClass("lazy").addClass("lazy-loaded"),i?r.css("background-image","url(".concat(n.params.lazy.placeholder||"",")")):r.attr("src",n.params.lazy.placeholder||""),t&&t(e),r.trigger("lazy:error"),n.emit("lazyError",r[0])},s.src=a,r.removeAttr("data-src").removeAttr("data-background"),r.trigger("lazy:load"),n.emit("lazyLoad",r[0])},load:function(e,t){var n=this,r=k(e);r.hasClass("page")||(r=r.parents(".page").eq(0)),0!==r.length&&r.find(".lazy").each((function(e,r){k(r).parents(".tab:not(.tab-active)").length>0||n.lazy.isInViewport(r)&&(t?t(r):n.lazy.loadImage(r))}))}},Ir={name:"lazy",params:{lazy:{placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXCwsK592mkAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",threshold:0,sequential:!0,observer:!0}},create:function(){z.extend(this,{lazy:{create:Dr.create.bind(this),destroy:Dr.destroy.bind(this),loadImage:Dr.loadImage.bind(this),load:Dr.load.bind(this),isInViewport:Dr.isInViewport.bind(this)}})},on:{pageInit:function(e){(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.create(e.$el)},pageAfterIn:function(e){this.params.lazy.observer&&fe.a.intersectionObserver||(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.create(e.$el)},pageBeforeRemove:function(e){(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.destroy(e.$el)},tabMounted:function(e){var t=k(e);(t.find(".lazy").length>0||t.hasClass("lazy"))&&this.lazy.create(t)},tabBeforeRemove:function(e){if(!this.params.lazy.observer||!fe.a.intersectionObserver){var t=k(e);(t.find(".lazy").length>0||t.hasClass("lazy"))&&this.lazy.destroy(t)}}}};function Ar(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Nr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Ar()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o={};a.useModulesParams(o),a.params=z.extend(o,i);var s=k(a.params.el);if(0===s.length)return L()(t,void 0);if(a.$el=s,a.el=s[0],a.$el[0].f7DataTable){var l=a.$el[0].f7DataTable;return a.destroy(),L()(t,l)}function c(e){if(!e.detail||!e.detail.sentByF7DataTable){var t=k(this),n=t[0].checked,r=t.parents("td,th").index();if(t.parents("thead").length>0)0===r&&s.find("tbody tr")[n?"addClass":"removeClass"]("data-table-row-selected"),s.find("tbody tr td:nth-child(".concat(r+1,") input")).prop("checked",n).trigger("change",{sentByF7DataTable:!0}),t.prop("indeterminate",!1);else{0===r&&t.parents("tr")[n?"addClass":"removeClass"]("data-table-row-selected");var i=s.find("tbody .checkbox-cell:nth-child(".concat(r+1,') input[type="checkbox"]:checked')).length,o=s.find("tbody tr").length,l=s.find("thead .checkbox-cell:nth-child(".concat(r+1,') input[type="checkbox"]'));n?i===o&&l.prop("checked",!0).trigger("change",{sentByF7DataTable:!0}):l.prop("checked",!1),l.prop("indeterminate",i>0&&i<o)}a.checkSelectedHeader()}}function d(){var e,t=k(this),n=t.hasClass("sortable-cell-active"),r=t.hasClass("sortable-desc")?"desc":"asc";n?(e="desc"===r?"asc":"desc",t.removeClass("sortable-desc sortable-asc").addClass("sortable-".concat(e))):(s.find("thead .sortable-cell-active").removeClass("sortable-cell-active"),t.addClass("sortable-cell-active"),e=r),t.trigger("datatable:sort",e),a.emit("local::sort dataTableSort",a,e)}return a.$el[0].f7DataTable=a,z.extend(a,{collapsible:s.hasClass("data-table-collapsible"),$headerEl:s.find(".data-table-header"),$headerSelectedEl:s.find(".data-table-header-selected")}),a.attachEvents=function(){a.$el.on("change",'.checkbox-cell input[type="checkbox"]',c),a.$el.find("thead .sortable-cell").on("click",d)},a.detachEvents=function(){a.$el.off("change",'.checkbox-cell input[type="checkbox"]',c),a.$el.find("thead .sortable-cell").off("click",d)},a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"setCollapsibleLabels",value:function(){var e=this;e.collapsible&&e.$el.find("tbody td:not(.checkbox-cell)").each((function(t,n){var r=k(n),i=r.index(),a=r.attr("data-collapsible-title");a||""===a||r.attr("data-collapsible-title",e.$el.find("thead th").eq(i).text())}))}},{key:"checkSelectedHeader",value:function(){if(this.$headerEl.length>0&&this.$headerSelectedEl.length>0){var e=this.$el.find("tbody .checkbox-cell input:checked").length;this.$el[e>0?"addClass":"removeClass"]("data-table-has-checked"),this.$headerSelectedEl.find(".data-table-selected-count").text(e)}}},{key:"init",value:function(){this.attachEvents(),this.setCollapsibleLabels(),this.checkSelectedHeader()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("datatable:beforedestroy"),e.emit("local::beforeDestroy dataTableBeforeDestroy",e),e.attachEvents(),e.$el[0]&&(e.$el[0].f7DataTable=null,delete e.$el[0].f7DataTable),z.deleteProps(e),e=null}}]),r}(G),Rr={name:"dataTable",static:{DataTable:Nr},create:function(){this.dataTable=X({defaultSelector:".data-table",constructor:Nr,app:this,domProp:"f7DataTable"})},on:{tabBeforeRemove:function(e){var t=this;k(e).find(".data-table-init").each((function(e,n){t.dataTable.destroy(n)}))},tabMounted:function(e){var t=this;k(e).find(".data-table-init").each((function(e,n){t.dataTable.create({el:n})}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".data-table-init").each((function(e,n){t.dataTable.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".data-table-init").each((function(e,n){t.dataTable.create({el:n})}))}},vnode:{"data-table-init":{insert:function(e){var t=e.elm;this.dataTable.create({el:t})},destroy:function(e){var t=e.elm;this.dataTable.destroy(t)}}}},Yr={morphOpen:function(e,t){var n=this,r=k(e),i=k(t);if(0!==i.length){i.transition(0).addClass("fab-morph-target-visible");var a={width:i[0].offsetWidth,height:i[0].offsetHeight,offset:i.offset(),borderRadius:i.css("border-radius"),zIndex:i.css("z-index")},o={width:r[0].offsetWidth,height:r[0].offsetHeight,offset:r.offset(),translateX:z.getTranslate(r[0],"x"),translateY:z.getTranslate(r[0],"y")};r[0].f7FabMorphData={$targetEl:i,target:a,fab:o};var s=o.offset.left+o.width/2-(a.offset.left+a.width/2)-o.translateX,l=o.offset.top+o.height/2-(a.offset.top+a.height/2)-o.translateY,c=a.width/o.width,u=a.height/o.height,d=Math.ceil(parseInt(a.borderRadius,10)/Math.max(c,u));d>0&&(d+=2),r[0].f7FabMorphResizeHandler=function(){r.transition(0).transform(""),i.transition(0),a.width=i[0].offsetWidth,a.height=i[0].offsetHeight,a.offset=i.offset(),o.offset=r.offset();var e=o.offset.left+o.width/2-(a.offset.left+a.width/2)-o.translateX,t=o.offset.top+o.height/2-(a.offset.top+a.height/2)-o.translateY,n=a.width/o.width,s=a.height/o.height;r.transform("translate3d(".concat(-e,"px, ").concat(-t,"px, 0) scale(").concat(n,", ").concat(s,")"))},i.css("opacity",0).transform("scale(".concat(1/c,", ").concat(1/u,")")),r.addClass("fab-opened").css("z-index",a.zIndex-1).transform("translate3d(".concat(-s,"px, ").concat(-l,"px, 0)")),r.transitionEnd((function(){i.transition(""),z.nextFrame((function(){i.css("opacity",1).transform("scale(1,1)"),r.transform("translate3d(".concat(-s,"px, ").concat(-l,"px, 0) scale(").concat(c,", ").concat(u,")")).css("border-radius","".concat(d,"px")).css("box-shadow","none").css("opacity","0")})),n.on("resize",r[0].f7FabMorphResizeHandler),i.parents(".page-content").length>0&&i.parents(".page-content").on("scroll",r[0].f7FabMorphResizeHandler)}))}},morphClose:function(e){var t=k(e),n=t[0].f7FabMorphData;if(n){var r=n.$targetEl,i=n.target,a=n.fab;if(0!==r.length){var o=a.offset.left+a.width/2-(i.offset.left+i.width/2)-a.translateX,s=a.offset.top+a.height/2-(i.offset.top+i.height/2)-a.translateY,l=i.width/a.width,c=i.height/a.height;this.off("resize",t[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").off("scroll",t[0].f7FabMorphResizeHandler),r.css("opacity",0).transform("scale(".concat(1/l,", ").concat(1/c,")")),t.transition("").css("box-shadow","").css("border-radius","").css("opacity","1").transform("translate3d(".concat(-o,"px, ").concat(-s,"px, 0)")),t.transitionEnd((function(){t.css("z-index","").removeClass("fab-opened").transform(""),z.nextFrame((function(){t.transitionEnd((function(){r.removeClass("fab-morph-target-visible").css("opacity","").transform("").transition("")}))}))}))}}},open:function(e,t){var n=k(e).eq(0),r=n.find(".fab-buttons");if(n.length&&!n.hasClass("fab-opened")&&(r.length||n.hasClass("fab-morph"))){if(this.fab.openedEl){if(this.fab.openedEl===n[0])return;this.fab.close(this.fab.openedEl)}this.fab.openedEl=n[0],n.hasClass("fab-morph")?this.fab.morphOpen(n,t||n.attr("data-morph-to")):n.addClass("fab-opened"),n.siblings(".fab-backdrop").addClass("backdrop-in"),n.trigger("fab:open")}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".fab-opened",t=this,n=k(e).eq(0),r=n.find(".fab-buttons");n.length&&n.hasClass("fab-opened")&&(r.length||n.hasClass("fab-morph"))&&(t.fab.openedEl=null,n.hasClass("fab-morph")?t.fab.morphClose(n):n.removeClass("fab-opened"),n.siblings(".fab-backdrop").removeClass("backdrop-in"),n.trigger("fab:close"))},toggle:function(e){k(e).hasClass("fab-opened")?this.fab.close(e):this.fab.open(e)}},Br={name:"fab",create:function(){z.extend(this,{fab:{openedEl:null,morphOpen:Yr.morphOpen.bind(this),morphClose:Yr.morphClose.bind(this),open:Yr.open.bind(this),close:Yr.close.bind(this),toggle:Yr.toggle.bind(this)}})},clicks:{".fab > a":function(e){this.fab.toggle(e.parents(".fab"))},".fab-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.fab.open(t.fab)},".fab-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.fab.close(t.fab)},".fab-backdrop":function(){this.fab.close()}}};function jr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(jr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o={el:void 0,inputEl:void 0,inputEvents:"change input compositionend",disableButton:!0,disableButtonEl:void 0,backdropEl:void 0,searchContainer:void 0,searchItem:"li",searchIn:void 0,searchGroup:".list-group",searchGroupTitle:".item-divider, .list-group-title",ignore:".searchbar-ignore",foundEl:".searchbar-found",notFoundEl:".searchbar-not-found",hideOnEnableEl:".searchbar-hide-on-enable",hideOnSearchEl:".searchbar-hide-on-search",backdrop:void 0,removeDiacritics:!0,customSearch:!1,hideDividers:!0,hideGroups:!0,disableOnBackdropClick:!0,expandable:!1,inline:!1};a.useModulesParams(o),a.params=z.extend(o,i);var s,l=k(a.params.el);if(0===l.length)return L()(t,a);if(l[0].f7Searchbar)return L()(t,l[0].f7Searchbar);l[0].f7Searchbar=a;var c,d,h,p,f=l.parents(".navbar");if(l.parents(".page").length>0)s=l.parents(".page");else if(f.length>0&&!(s=k(e.navbar.getPageByEl(f[0]))).length){var m=l.parents(".view").find(".page-current");m[0]&&m[0].f7Page&&m[0].f7Page.navbarEl===f[0]&&(s=m)}i.foundEl?c=k(i.foundEl):"string"==typeof a.params.foundEl&&s&&(c=s.find(a.params.foundEl)),i.notFoundEl?d=k(i.notFoundEl):"string"==typeof a.params.notFoundEl&&s&&(d=s.find(a.params.notFoundEl)),i.hideOnEnableEl?h=k(i.hideOnEnableEl):"string"==typeof a.params.hideOnEnableEl&&s&&(h=s.find(a.params.hideOnEnableEl)),i.hideOnSearchEl?p=k(i.hideOnSearchEl):"string"==typeof a.params.hideOnSearchEl&&s&&(p=s.find(a.params.hideOnSearchEl));var v,g,y,b,_=a.params.expandable||l.hasClass("searchbar-expandable"),w=a.params.inline||l.hasClass("searchbar-inline");function E(e){e.preventDefault()}function T(e){a.enable(e),a.$el.addClass("searchbar-focused")}function S(){a.$el.removeClass("searchbar-focused"),"aurora"!==e.theme||b&&b.length&&a.params.disableButton||a.query||a.disable()}function x(){var e=a.$inputEl.val().trim();(a.$searchContainer&&a.$searchContainer.length>0&&(a.params.searchIn||a.isVirtualList||a.params.searchIn===a.params.searchItem)||a.params.customSearch)&&a.search(e,!0)}function M(e,t){a.$el.trigger("searchbar:clear",t),a.emit("local::clear searchbarClear",a,t)}function $(e){a.disable(e)}function P(){!a||a&&!a.$el||a.enabled&&(a.$el.removeClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition"))}function O(){!a||a&&!a.$el||a.enabled&&(a.$el.addClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled-no-transition"))}return void 0===a.params.backdrop&&(a.params.backdrop=!w&&"aurora"!==e.theme),a.params.backdrop&&0===(v=a.params.backdropEl?k(a.params.backdropEl):s&&s.length>0?s.find(".searchbar-backdrop"):l.siblings(".searchbar-backdrop")).length&&(v=k('<div class="searchbar-backdrop"></div>'),s&&s.length?l.parents(s).length>0&&f&&0===l.parents(f).length?v.insertBefore(l):v.insertBefore(s.find(".page-content").eq(0)):v.insertBefore(l)),a.params.searchContainer&&(g=k(a.params.searchContainer)),y=a.params.inputEl?k(a.params.inputEl):l.find('input[type="search"]').eq(0),a.params.disableButton&&(b=a.params.disableButtonEl?k(a.params.disableButtonEl):l.find(".searchbar-disable-button")),z.extend(a,{app:e,view:e.views.get(l.parents(".view")),$el:l,el:l[0],$backdropEl:v,backdropEl:v&&v[0],$searchContainer:g,searchContainer:g&&g[0],$inputEl:y,inputEl:y[0],$disableButtonEl:b,disableButtonEl:b&&b[0],disableButtonHasMargin:!1,$pageEl:s,pageEl:s&&s[0],$navbarEl:f,navbarEl:f&&f[0],$foundEl:c,foundEl:c&&c[0],$notFoundEl:d,notFoundEl:d&&d[0],$hideOnEnableEl:h,hideOnEnableEl:h&&h[0],$hideOnSearchEl:p,hideOnSearchEl:p&&p[0],previousQuery:"",query:"",isVirtualList:g&&g.hasClass("virtual-list"),virtualList:void 0,enabled:!1,expandable:_,inline:w}),a.attachEvents=function(){l.on("submit",E),a.params.disableButton&&a.$disableButtonEl.on("click",$),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.on("click",$),a.expandable&&"ios"===e.theme&&a.view&&f.length&&a.$pageEl&&(a.$pageEl.on("page:beforeout",P),a.$pageEl.on("page:beforein",O)),a.$inputEl.on("focus",T),a.$inputEl.on("blur",S),a.$inputEl.on(a.params.inputEvents,x),a.$inputEl.on("input:clear",M)},a.detachEvents=function(){l.off("submit",E),a.params.disableButton&&a.$disableButtonEl.off("click",$),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.off("click",$),a.expandable&&"ios"===e.theme&&a.view&&f.length&&a.$pageEl&&(a.$pageEl.off("page:beforeout",P),a.$pageEl.off("page:beforein",O)),a.$inputEl.off("focus",T),a.$inputEl.off("blur",S),a.$inputEl.off(a.params.inputEvents,x),a.$inputEl.off("input:clear",M)},a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"clear",value:function(e){var t=this;if(!t.query&&e&&k(e.target).hasClass("searchbar-clear"))return t.disable(),t;var n=t.value;return t.$inputEl.val("").trigger("change").focus(),t.$el.trigger("searchbar:clear",n),t.emit("local::clear searchbarClear",t,n),t}},{key:"setDisableButtonMargin",value:function(){var e=this;if(!e.expandable){var t=e.app;e.$disableButtonEl.transition(0).show(),e.$disableButtonEl.css("margin-".concat(t.rtl?"left":"right"),"".concat(-e.disableButtonEl.offsetWidth,"px")),e._clientLeft=e.$disableButtonEl[0].clientLeft,e.$disableButtonEl.transition(""),e.disableButtonHasMargin=!0}}},{key:"enable",value:function(e){var t=this;if(t.enabled)return t;var n=t.app;function r(){t.$backdropEl&&(t.$searchContainer&&t.$searchContainer.length||t.params.customSearch)&&!t.$el.hasClass("searchbar-enabled")&&!t.query&&t.backdropShow(),t.$el.addClass("searchbar-enabled"),(!t.$disableButtonEl||t.$disableButtonEl&&0===t.$disableButtonEl.length)&&t.$el.addClass("searchbar-enabled-no-disable-button"),!t.expandable&&t.$disableButtonEl&&t.$disableButtonEl.length>0&&"md"!==n.theme&&(t.disableButtonHasMargin||t.setDisableButtonMargin(),t.$disableButtonEl.css("margin-".concat(n.rtl?"left":"right"),"0px")),t.expandable&&(t.$el.parents(".navbar").hasClass("navbar-large")&&t.$pageEl&&t.$pageEl.find(".page-content").addClass("with-searchbar-expandable-enabled"),"md"===n.theme&&t.$el.parents(".navbar").length?t.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled"):(t.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled"),t.$el.parents(".navbar-large").addClass("navbar-large-collapsed"))),t.$hideOnEnableEl&&t.$hideOnEnableEl.addClass("hidden-by-searchbar"),t.$el.trigger("searchbar:enable"),t.emit("local::enable searchbarEnable",t)}t.enabled=!0;var i=!1;return!0===e&&d.a.activeElement!==t.inputEl&&(i=!0),n.device.ios&&"ios"===n.theme?t.expandable?(i&&t.$inputEl.focus(),r()):(i&&t.$inputEl.focus(),!e||"focus"!==e.type&&!0!==e?r():z.nextTick((function(){r()}),400)):(i&&t.$inputEl.focus(),"md"===n.theme&&t.expandable&&t.$el.parents(".page, .view, .navbar-inner, .navbar").scrollLeft(n.rtl?100:0),r()),t}},{key:"disable",value:function(){var e=this;if(!e.enabled)return e;var t=e.app;return e.$inputEl.val("").trigger("change"),e.$el.removeClass("searchbar-enabled searchbar-focused searchbar-enabled-no-disable-button"),e.expandable&&(e.$el.parents(".navbar").hasClass("navbar-large")&&e.$pageEl&&(e.$pageEl.find(".page-content").removeClass("with-searchbar-expandable-enabled").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$pageEl.find(".page-content").removeClass("with-searchbar-expandable-closing")}))),"md"===t.theme&&e.$el.parents(".navbar").length?(e.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$el.parents(".navbar").removeClass("with-searchbar-expandable-closing")}))):(e.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$el.parents(".navbar").removeClass("with-searchbar-expandable-closing")})),e.$pageEl&&e.$pageEl.find(".page-content").trigger("scroll"))),!e.expandable&&e.$disableButtonEl&&e.$disableButtonEl.length>0&&"md"!==t.theme&&e.$disableButtonEl.css("margin-".concat(t.rtl?"left":"right"),"".concat(-e.disableButtonEl.offsetWidth,"px")),e.$backdropEl&&(e.$searchContainer&&e.$searchContainer.length||e.params.customSearch)&&e.backdropHide(),e.enabled=!1,e.$inputEl.blur(),e.$hideOnEnableEl&&e.$hideOnEnableEl.removeClass("hidden-by-searchbar"),e.$el.trigger("searchbar:disable"),e.emit("local::disable searchbarDisable",e),e}},{key:"toggle",value:function(){return this.enabled?this.disable():this.enable(!0),this}},{key:"backdropShow",value:function(){return this.$backdropEl&&this.$backdropEl.addClass("searchbar-backdrop-in"),this}},{key:"backdropHide",value:function(){return this.$backdropEl&&this.$backdropEl.removeClass("searchbar-backdrop-in"),this}},{key:"search",value:function(e,t){var n=this;if(n.previousQuery=n.query||"",e===n.previousQuery)return n;t||(n.enabled||n.enable(),n.$inputEl.val(e),n.$inputEl.trigger("input")),n.query=e,n.value=e;var r=n.$searchContainer,i=n.$el,a=n.$foundEl,o=n.$notFoundEl,s=n.$hideOnSearchEl,l=n.isVirtualList;if(e.length>0&&s?s.addClass("hidden-by-searchbar"):s&&s.removeClass("hidden-by-searchbar"),(r&&r.length&&i.hasClass("searchbar-enabled")||n.params.customSearch&&i.hasClass("searchbar-enabled"))&&(0===e.length?n.backdropShow():n.backdropHide()),n.params.customSearch)return i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery}),n.emit("local::search searchbarSearch",n,e,n.previousQuery),n;var c,u=[];if(l){if(n.virtualList=r[0].f7VirtualList,""===e.trim())return n.virtualList.resetFilter(),o&&o.hide(),a&&a.show(),i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery}),n.emit("local::search searchbarSearch",n,e,n.previousQuery),n;if(c=n.params.removeDiacritics?z.removeDiacritics(e):e,n.virtualList.params.searchAll)u=n.virtualList.params.searchAll(c,n.virtualList.items)||[];else if(n.virtualList.params.searchByItem)for(var d=0;d<n.virtualList.items.length;d+=1)n.virtualList.params.searchByItem(c,n.virtualList.params.items[d],d)&&u.push(d)}else{var h;h=n.params.removeDiacritics?z.removeDiacritics(e.trim().toLowerCase()).split(" "):e.trim().toLowerCase().split(" "),r.find(n.params.searchItem).removeClass("hidden-by-searchbar").each((function(e,t){var r=k(t),i=[],a=n.params.searchIn?r.find(n.params.searchIn):r;n.params.searchIn===n.params.searchItem&&(a=r),a.each((function(e,t){var r=k(t).text().trim().toLowerCase();n.params.removeDiacritics&&(r=z.removeDiacritics(r)),i.push(r)})),i=i.join(" ");for(var o=0,s=0;s<h.length;s+=1)i.indexOf(h[s])>=0&&(o+=1);o===h.length||n.params.ignore&&r.is(n.params.ignore)?u.push(r[0]):r.addClass("hidden-by-searchbar")})),n.params.hideDividers&&r.find(n.params.searchGroupTitle).each((function(e,t){for(var r=k(t),i=r.nextAll(n.params.searchItem),a=!0,o=0;o<i.length;o+=1){var s=i.eq(o);if(s.is(n.params.searchGroupTitle))break;s.hasClass("hidden-by-searchbar")||(a=!1)}var l=n.params.ignore&&r.is(n.params.ignore);a&&!l?r.addClass("hidden-by-searchbar"):r.removeClass("hidden-by-searchbar")})),n.params.hideGroups&&r.find(n.params.searchGroup).each((function(e,t){var r=k(t),i=n.params.ignore&&r.is(n.params.ignore);0!==r.find(n.params.searchItem).filter((function(e,t){return!k(t).hasClass("hidden-by-searchbar")})).length||i?r.removeClass("hidden-by-searchbar"):r.addClass("hidden-by-searchbar")}))}return 0===u.length?(o&&o.show(),a&&a.hide()):(o&&o.hide(),a&&a.show()),l&&n.virtualList&&n.virtualList.filterItems(u),i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery,foundItems:u}),n.emit("local::search searchbarSearch",n,e,n.previousQuery,u),n}},{key:"init",value:function(){var e=this;e.expandable&&e.$el&&e.$el.addClass("searchbar-expandable"),e.inline&&e.$el&&e.$el.addClass("searchbar-inline"),e.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy searchbarBeforeDestroy",e),e.$el.trigger("searchbar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Searchbar=null,delete e.$el[0].f7Searchbar),z.deleteProps(e)}}]),r}(G),Hr={name:"searchbar",static:{Searchbar:Fr},create:function(){this.searchbar=X({defaultSelector:".searchbar",constructor:Fr,app:this,domProp:"f7Searchbar",addMethods:"clear enable disable toggle search".split(" ")})},on:{tabMounted:function(e){var t=this;k(e).find(".searchbar-init").each((function(e,n){var r=k(n);t.searchbar.create(z.extend(r.dataset(),{el:n}))}))},tabBeforeRemove:function(e){k(e).find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".searchbar-init").each((function(e,n){var r=k(n);t.searchbar.create(z.extend(r.dataset(),{el:n}))})),"ios"===t.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".searchbar-init").each((function(e,n){var r=k(n);t.searchbar.create(z.extend(r.dataset(),{el:n}))}))},pageBeforeRemove:function(e){e.$el.find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()})),"ios"===this.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}))}},clicks:{".searchbar-clear":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.clear()},".searchbar-enable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.enable(!0)},".searchbar-disable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.disable()},".searchbar-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.toggle()}},vnode:{"searchbar-init":{insert:function(e){var t=e.elm,n=k(t);this.searchbar.create(z.extend(n.dataset(),{el:t}))},destroy:function(e){var t=e.elm;t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}}}};function Ur(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Ur()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o={autoLayout:!0,messages:[],newMessagesFirst:!1,scrollMessages:!0,scrollMessagesOnEdge:!0,firstMessageRule:void 0,lastMessageRule:void 0,tailMessageRule:void 0,sameNameMessageRule:void 0,sameHeaderMessageRule:void 0,sameFooterMessageRule:void 0,sameAvatarMessageRule:void 0,customClassMessageRule:void 0,renderMessage:void 0};a.useModulesParams(o),a.params=z.extend(o,i);var s=k(i.el).eq(0);if(0===s.length)return L()(t,a);if(s[0].f7Messages)return L()(t,s[0].f7Messages);s[0].f7Messages=a;var l=s.closest(".page-content").eq(0);return z.extend(a,{messages:a.params.messages,$el:s,el:s[0],$pageContentEl:l,pageContentEl:l[0]}),a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"getMessageData",value:function(e){var t=k(e),n={name:t.find(".message-name").html(),header:t.find(".message-header").html(),textHeader:t.find(".message-text-header").html(),textFooter:t.find(".message-text-footer").html(),footer:t.find(".message-footer").html(),isTitle:t.hasClass("messages-title"),type:t.hasClass("message-sent")?"sent":"received",text:t.find(".message-text").html(),image:t.find(".message-image").html(),imageSrc:t.find(".message-image img").attr("src"),typing:t.hasClass("message-typing")};n.isTitle&&(n.text=t.html()),n.text&&n.textHeader&&(n.text=n.text.replace('<div class="message-text-header">'.concat(n.textHeader,"</div>"),"")),n.text&&n.textFooter&&(n.text=n.text.replace('<div class="message-text-footer">'.concat(n.textFooter,"</div>"),""));var r=t.find(".message-avatar").css("background-image");return"none"!==r&&""!==r||(r=void 0),r=r&&"string"==typeof r?r.replace("url(","").replace(")","").replace(/"/g,"").replace(/'/g,""):void 0,n.avatar=r,n}},{key:"getMessagesData",value:function(){var e=this,t=[];return e.$el.find(".message, .messages-title").each((function(n,r){t.push(e.getMessageData(r))})),t}},{key:"renderMessage",value:function(e){var t=this,n=z.extend({type:"sent",attrs:{}},e);if(t.params.renderMessage)return t.params.renderMessage.call(t,n);if(n.isTitle)return'<div class="messages-title">'.concat(n.text,"</div>");var r=Object.keys(n.attrs).map((function(e){return"".concat(e,'="').concat(n.attrs[e],'"')})).join(" ");return'\n      <div class="message message-'.concat(n.type," ").concat(n.isTyping?"message-typing":""," ").concat(n.cssClass||"",'" ').concat(r,">\n        ").concat(n.avatar?'\n        <div class="message-avatar" style="background-image:url('.concat(n.avatar,')"></div>\n        '):"",'\n        <div class="message-content">\n          ').concat(n.name?'<div class="message-name">'.concat(n.name,"</div>"):"","\n          ").concat(n.header?'<div class="message-header">'.concat(n.header,"</div>"):"",'\n          <div class="message-bubble">\n            ').concat(n.textHeader?'<div class="message-text-header">'.concat(n.textHeader,"</div>"):"","\n            ").concat(n.image?'<div class="message-image">'.concat(n.image,"</div>"):"","\n            ").concat(n.imageSrc&&!n.image?'<div class="message-image"><img src="'.concat(n.imageSrc,'"></div>'):"","\n            ").concat(n.text||n.isTyping?'<div class="message-text">'.concat(n.text||"").concat(n.isTyping?'<div class="message-typing-indicator"><div></div><div></div><div></div></div>':"","</div>"):"","\n            ").concat(n.textFooter?'<div class="message-text-footer">'.concat(n.textFooter,"</div>"):"","\n          </div>\n          ").concat(n.footer?'<div class="message-footer">'.concat(n.footer,"</div>"):"","\n        </div>\n      </div>\n    ")}},{key:"renderMessages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.messages,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.newMessagesFirst?"prepend":"append",n=this,r=e.map((function(e){return n.renderMessage(e)})).join("");n.$el[t](r)}},{key:"isFirstMessage",value:function(){var e,t=this;return!!t.params.firstMessageRule&&(e=t.params).firstMessageRule.apply(e,arguments)}},{key:"isLastMessage",value:function(){var e,t=this;return!!t.params.lastMessageRule&&(e=t.params).lastMessageRule.apply(e,arguments)}},{key:"isTailMessage",value:function(){var e,t=this;return!!t.params.tailMessageRule&&(e=t.params).tailMessageRule.apply(e,arguments)}},{key:"isSameNameMessage",value:function(){var e,t=this;return!!t.params.sameNameMessageRule&&(e=t.params).sameNameMessageRule.apply(e,arguments)}},{key:"isSameHeaderMessage",value:function(){var e,t=this;return!!t.params.sameHeaderMessageRule&&(e=t.params).sameHeaderMessageRule.apply(e,arguments)}},{key:"isSameFooterMessage",value:function(){var e,t=this;return!!t.params.sameFooterMessageRule&&(e=t.params).sameFooterMessageRule.apply(e,arguments)}},{key:"isSameAvatarMessage",value:function(){var e,t=this;return!!t.params.sameAvatarMessageRule&&(e=t.params).sameAvatarMessageRule.apply(e,arguments)}},{key:"isCustomClassMessage",value:function(){var e,t=this;if(t.params.customClassMessageRule)return(e=t.params).customClassMessageRule.apply(e,arguments)}},{key:"layout",value:function(){var e=this;e.$el.find(".message, .messages-title").each((function(t,n){var r=k(n);e.messages||(e.messages=e.getMessagesData());var i=[],a=e.messages[t],o=e.messages[t-1],s=e.messages[t+1];e.isFirstMessage(a,o,s)&&i.push("message-first"),e.isLastMessage(a,o,s)&&i.push("message-last"),e.isTailMessage(a,o,s)&&i.push("message-tail"),e.isSameNameMessage(a,o,s)&&i.push("message-same-name"),e.isSameHeaderMessage(a,o,s)&&i.push("message-same-header"),e.isSameFooterMessage(a,o,s)&&i.push("message-same-footer"),e.isSameAvatarMessage(a,o,s)&&i.push("message-same-avatar");var l=e.isCustomClassMessage(a,o,s);l&&l.length&&("string"==typeof l&&(l=l.split(" ")),l.forEach((function(e){i.push(e)}))),r.removeClass("message-first message-last message-tail message-same-name message-same-header message-same-footer message-same-avatar"),i.forEach((function(e){r.addClass(e)}))}))}},{key:"clear",value:function(){this.messages=[],this.$el.html("")}},{key:"removeMessage",value:function(e){var t,n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;return"number"==typeof e?(t=e,n=i.$el.find(".message, .messages-title").eq(t)):i.messages&&i.messages.indexOf(e)>=0?(t=i.messages.indexOf(e),n=i.$el.children().eq(t)):t=(n=k(e)).index(),0===n.length||(n.remove(),i.messages.splice(t,1),i.params.autoLayout&&r&&i.layout()),i}},{key:"removeMessages",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(Array.isArray(e)){var r=[];e.forEach((function(e){r.push(n.$el.find(".message, .messages-title").eq(e))})),r.forEach((function(e){n.removeMessage(e,!1)}))}else k(e).each((function(e,t){n.removeMessage(t,!1)}));return n.params.autoLayout&&t&&n.layout(),n}},{key:"addMessage",value:function(){for(var e,t,n,r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return"boolean"==typeof a[1]?(e=a[0],t=a[1],n=a[2]):(e=a[0],n=a[1],t=a[2]),void 0===t&&(t=!0),void 0===n&&(n=r.params.newMessagesFirst?"prepend":"append"),r.addMessages([e],t,n)}},{key:"addMessages",value:function(){for(var e,t,n,r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];"boolean"==typeof a[1]?(e=a[0],t=a[1],n=a[2]):(e=a[0],n=a[1],t=a[2]),void 0===t&&(t=!0),void 0===n&&(n=r.params.newMessagesFirst?"prepend":"append");var s=r.pageContentEl.scrollHeight,l=r.pageContentEl.offsetHeight,c=r.pageContentEl.scrollTop,u="",d=r.messages.filter((function(e){return e.isTyping}))[0];e.forEach((function(e){d?"append"===n?r.messages.splice(r.messages.indexOf(d),0,e):r.messages.splice(r.messages.indexOf(d)+1,0,e):r.messages["append"===n?"push":"unshift"](e),u+=r.renderMessage(e)}));var h=k(u);if(t&&("append"!==n||r.params.newMessagesFirst||h.addClass("message-appear-from-bottom"),"prepend"===n&&r.params.newMessagesFirst&&h.addClass("message-appear-from-top")),d?"append"===n?h.insertBefore(r.$el.find(".message-typing")):h.insertAfter(r.$el.find(".message-typing")):r.$el[n](h),r.params.autoLayout&&r.layout(),"prepend"!==n||d||(r.pageContentEl.scrollTop=c+(r.pageContentEl.scrollHeight-s)),r.params.scrollMessages&&("append"===n&&!r.params.newMessagesFirst||"prepend"===n&&r.params.newMessagesFirst&&!d))if(r.params.scrollMessagesOnEdge){var p=!1;r.params.newMessagesFirst&&0===c&&(p=!0),!r.params.newMessagesFirst&&c-(s-l)>=-10&&(p=!0),p&&r.scroll(t?void 0:0)}else r.scroll(t?void 0:0);return r}},{key:"showTyping",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=t.messages.filter((function(e){return e.isTyping}))[0];return n&&t.removeMessage(t.messages.indexOf(n)),t.addMessage(z.extend({type:"received",isTyping:!0},e)),t}},{key:"hideTyping",value:function(){var e,t,n=this;if(n.messages.forEach((function(t,n){t.isTyping&&(e=n)})),void 0!==e&&n.$el.find(".message").eq(e).hasClass("message-typing")&&(t=!0,n.removeMessage(e)),!t){var r=n.$el.find(".message-typing");r.length&&n.removeMessage(r)}return n}},{key:"scroll",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=arguments.length>1?arguments[1]:void 0,r=this,i=r.pageContentEl.scrollTop;if(void 0!==n)e=n;else if((e=r.params.newMessagesFirst?0:r.pageContentEl.scrollHeight-r.pageContentEl.offsetHeight)===i)return r;return r.$pageContentEl.scrollTop(e,t),r}},{key:"init",value:function(){var e=this;e.messages&&0!==e.messages.length||(e.messages=e.getMessagesData()),e.params.messages&&e.params.messages.length&&e.renderMessages(),e.params.autoLayout&&e.layout(),e.params.scrollMessages&&e.scroll(0)}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy messagesBeforeDestroy",e),e.$el.trigger("messages:beforedestroy"),e.$el[0]&&(e.$el[0].f7Messages=null,delete e.$el[0].f7Messages),z.deleteProps(e)}}]),r}(G),Vr={name:"messages",static:{Messages:zr},create:function(){this.messages=X({defaultSelector:".messages",constructor:zr,app:this,domProp:"f7Messages",addMethods:"renderMessages layout scroll clear removeMessage removeMessages addMessage addMessages".split(" ")})},on:{tabBeforeRemove:function(e){var t=this;k(e).find(".messages-init").each((function(e,n){t.messages.destroy(n)}))},tabMounted:function(e){var t=this;k(e).find(".messages-init").each((function(e,n){t.messages.create({el:n})}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".messages-init").each((function(e,n){t.messages.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".messages-init").each((function(e,n){t.messages.create({el:n})}))}},vnode:{"messages-init":{insert:function(e){var t=e.elm;this.messages.create({el:t})},destroy:function(e){var t=e.elm;this.messages.destroy(t)}}}};function qr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Wr=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(qr()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o={top:!1,topOffset:0,bottomOffset:0,attachments:[],renderAttachments:void 0,renderAttachment:void 0,maxHeight:null,resizePage:!0};a.useModulesParams(o),a.params=z.extend(o,i);var s=k(a.params.el);if(0===s.length)return L()(t,a);if(s[0].f7Messagebar)return L()(t,s[0].f7Messagebar);s[0].f7Messagebar=a;var l,c=s.parents(".page").eq(0),d=c.find(".page-content").eq(0),h=s.find(".messagebar-area");l=a.params.textareaEl?k(a.params.textareaEl):s.find("textarea");var p=s.find(".messagebar-attachments"),f=s.find(".messagebar-sheet");function m(){a.params.resizePage&&a.resizePage()}function v(e){e.preventDefault()}function g(e){var t=k(this).index();k(e.target).closest(".messagebar-attachment-delete").length?(k(this).trigger("messagebar:attachmentdelete",t),a.emit("local::attachmentDelete messagebarAttachmentDelete",a,this,t)):(k(this).trigger("messagebar:attachmentclick",t),a.emit("local::attachmentClick messagebarAttachmentClick",a,this,t))}function y(){a.checkEmptyState(),a.$el.trigger("messagebar:change"),a.emit("local::change messagebarChange",a)}function b(){a.sheetHide(),a.$el.addClass("messagebar-focused"),a.$el.trigger("messagebar:focus"),a.emit("local::focus messagebarFocus",a)}function _(){a.$el.removeClass("messagebar-focused"),a.$el.trigger("messagebar:blur"),a.emit("local::blur messagebarBlur",a)}return a.params.top&&s.addClass("messagebar-top"),z.extend(a,{$el:s,el:s[0],$areaEl:h,areaEl:h[0],$textareaEl:l,textareaEl:l[0],$attachmentsEl:p,attachmentsEl:p[0],attachmentsVisible:p.hasClass("messagebar-attachments-visible"),$sheetEl:f,sheetEl:f[0],sheetVisible:f.hasClass("messagebar-sheet-visible"),$pageEl:c,pageEl:c[0],$pageContentEl:d,pageContentEl:d,top:s.hasClass("messagebar-top")||a.params.top,attachments:[]}),a.attachEvents=function(){s.on("textarea:resize",m),s.on("submit",v),s.on("click",".messagebar-attachment",g),l.on("change input",y),l.on("focus",b),l.on("blur",_),e.on("resize",m)},a.detachEvents=function(){s.off("textarea:resize",m),s.off("submit",v),s.off("click",".messagebar-attachment",g),l.off("change input",y),l.off("focus",b),l.off("blur",_),e.off("resize",m)},a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"focus",value:function(){return this.$textareaEl.focus(),this}},{key:"blur",value:function(){return this.$textareaEl.blur(),this}},{key:"clear",value:function(){return this.$textareaEl.val("").trigger("change"),this}},{key:"getValue",value:function(){return this.$textareaEl.val().trim()}},{key:"setValue",value:function(e){return this.$textareaEl.val(e).trigger("change"),this}},{key:"setPlaceholder",value:function(e){return this.$textareaEl.attr("placeholder",e),this}},{key:"resizePage",value:function(){var e=this.params,t=this.$el,n=this.top,r=this.$pageEl,i=this.$pageContentEl,a=this.$areaEl,o=this.$textareaEl,s=this.$sheetEl,l=this.$attachmentsEl,c=t[0].offsetHeight,u=e.maxHeight;if(n);else{var d=parseInt(i.css("padding-bottom"),10),h=c+e.bottomOffset;if(h!==d&&i.length){var p=parseInt(i.css("padding-top"),10),f=i[0].scrollHeight,m=i[0].offsetHeight,v=i[0].scrollTop===f-m;u||(u=r[0].offsetHeight-p-s.outerHeight()-l.outerHeight()-parseInt(a.css("margin-top"),10)-parseInt(a.css("margin-bottom"),10)),o.css("max-height","".concat(u,"px")),i.css("padding-bottom","".concat(h,"px")),v&&i.scrollTop(i[0].scrollHeight-m),t.trigger("messagebar:resizepage"),this.emit("local::resizePage messagebarResizePage",this)}}}},{key:"checkEmptyState",value:function(){var e=this.$el,t=this.$textareaEl.val().trim();t&&t.length?e.addClass("messagebar-with-value"):e.removeClass("messagebar-with-value")}},{key:"attachmentsCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=k('<div class="messagebar-attachments">'.concat(e,"</div>"));return n.insertBefore(t.$textareaEl),z.extend(t,{$attachmentsEl:n,attachmentsEl:n[0]}),t}},{key:"attachmentsShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;return t.$attachmentsEl=t.$el.find(".messagebar-attachments"),0===t.$attachmentsEl.length&&t.attachmentsCreate(e),t.$el.addClass("messagebar-attachments-visible"),t.attachmentsVisible=!0,t.params.resizePage&&t.resizePage(),t}},{key:"attachmentsHide",value:function(){return this.$el.removeClass("messagebar-attachments-visible"),this.attachmentsVisible=!1,this.params.resizePage&&this.resizePage(),this}},{key:"attachmentsToggle",value:function(){return this.attachmentsVisible?this.attachmentsHide():this.attachmentsShow(),this}},{key:"renderAttachment",value:function(e){return this.params.renderAttachment?this.params.renderAttachment.call(this,e):'\n      <div class="messagebar-attachment">\n        <img src="'.concat(e,'">\n        <span class="messagebar-attachment-delete"></span>\n      </div>\n    ')}},{key:"renderAttachments",value:function(){var e,t=this;e=t.params.renderAttachments?t.params.renderAttachments.call(t,t.attachments):"".concat(t.attachments.map((function(e){return t.renderAttachment(e)})).join("")),0===t.$attachmentsEl.length?t.attachmentsCreate(e):t.$attachmentsEl.html(e)}},{key:"sheetCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=k('<div class="messagebar-sheet">'.concat(e,"</div>"));return t.$el.append(n),z.extend(t,{$sheetEl:n,sheetEl:n[0]}),t}},{key:"sheetShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;return t.$sheetEl=t.$el.find(".messagebar-sheet"),0===t.$sheetEl.length&&t.sheetCreate(e),t.$el.addClass("messagebar-sheet-visible"),t.sheetVisible=!0,t.params.resizePage&&t.resizePage(),t}},{key:"sheetHide",value:function(){return this.$el.removeClass("messagebar-sheet-visible"),this.sheetVisible=!1,this.params.resizePage&&this.resizePage(),this}},{key:"sheetToggle",value:function(){return this.sheetVisible?this.sheetHide():this.sheetShow(),this}},{key:"init",value:function(){return this.attachEvents(),this.checkEmptyState(),this}},{key:"destroy",value:function(){this.emit("local::beforeDestroy messagebarBeforeDestroy",this),this.$el.trigger("messagebar:beforedestroy"),this.detachEvents(),this.$el[0]&&(this.$el[0].f7Messagebar=null,delete this.$el[0].f7Messagebar),z.deleteProps(this)}}]),r}(G),Gr={name:"messagebar",static:{Messagebar:Wr},create:function(){this.messagebar=X({defaultSelector:".messagebar",constructor:Wr,app:this,domProp:"f7Messagebar",addMethods:"clear getValue setValue setPlaceholder resizePage focus blur attachmentsCreate attachmentsShow attachmentsHide attachmentsToggle renderAttachments sheetCreate sheetShow sheetHide sheetToggle".split(" ")})},on:{tabBeforeRemove:function(e){var t=this;k(e).find(".messagebar-init").each((function(e,n){t.messagebar.destroy(n)}))},tabMounted:function(e){var t=this;k(e).find(".messagebar-init").each((function(e,n){t.messagebar.create(z.extend({el:n},k(n).dataset()))}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".messagebar-init").each((function(e,n){t.messagebar.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".messagebar-init").each((function(e,n){t.messagebar.create(z.extend({el:n},k(n).dataset()))}))}},vnode:{"messagebar-init":{insert:function(e){var t=e.elm;this.messagebar.create(z.extend({el:t},k(t).dataset()))},destroy:function(e){var t=e.elm;this.messagebar.destroy(t)}}}},Kr=k,Jr=z,Xr=fe.a,Qr=G,Zr={updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),Jr.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,t=this.$wrapperEl,n=this.size,r=this.rtlTranslate,i=this.wrongRTL,a=this.virtual&&e.virtual.enabled,o=a?this.virtual.slides.length:this.slides.length,s=t.children(".".concat(this.params.slideClass)),l=a?this.virtual.slides.length:s.length,c=[],u=[],h=[];function p(t){return!e.cssMode||t!==s.length-1}var f=e.slidesOffsetBefore;"function"==typeof f&&(f=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var v=this.snapGrid.length,g=this.snapGrid.length,y=e.spaceBetween,b=-f,_=0,w=0;if(void 0!==n){var k,E;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*n),this.virtualSize=-y,r?s.css({marginLeft:"",marginTop:""}):s.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(k=Math.floor(l/e.slidesPerColumn)===l/this.params.slidesPerColumn?l:Math.ceil(l/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(k=Math.max(k,e.slidesPerView*e.slidesPerColumn)));for(var T,S=e.slidesPerColumn,C=k/S,x=Math.floor(l/e.slidesPerColumn),M=0;M<l;M+=1){E=0;var $=s.eq(M);if(e.slidesPerColumn>1){var L=void 0,P=void 0,O=void 0;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){var D=Math.floor(M/(e.slidesPerGroup*e.slidesPerColumn)),I=M-e.slidesPerColumn*e.slidesPerGroup*D,A=0===D?e.slidesPerGroup:Math.min(Math.ceil((l-D*S*e.slidesPerGroup)/S),e.slidesPerGroup);L=(P=I-(O=Math.floor(I/A))*A+D*e.slidesPerGroup)+O*k/S,$.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===e.slidesPerColumnFill?(O=M-(P=Math.floor(M/S))*S,(P>x||P===x&&O===S-1)&&(O+=1)>=S&&(O=0,P+=1)):P=M-(O=Math.floor(M/C))*C;$.css("margin-".concat(this.isHorizontal()?"top":"left"),0!==O&&e.spaceBetween&&"".concat(e.spaceBetween,"px"))}if("none"!==$.css("display")){if("auto"===e.slidesPerView){var N=d.b.getComputedStyle($[0],null),R=$[0].style.transform,Y=$[0].style.webkitTransform;if(R&&($[0].style.transform="none"),Y&&($[0].style.webkitTransform="none"),e.roundLengths)E=this.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else if(this.isHorizontal()){var B=parseFloat(N.getPropertyValue("width")),j=parseFloat(N.getPropertyValue("padding-left")),F=parseFloat(N.getPropertyValue("padding-right")),H=parseFloat(N.getPropertyValue("margin-left")),U=parseFloat(N.getPropertyValue("margin-right")),z=N.getPropertyValue("box-sizing");E=z&&"border-box"===z?B+H+U:B+j+F+H+U}else{var V=parseFloat(N.getPropertyValue("height")),q=parseFloat(N.getPropertyValue("padding-top")),W=parseFloat(N.getPropertyValue("padding-bottom")),G=parseFloat(N.getPropertyValue("margin-top")),K=parseFloat(N.getPropertyValue("margin-bottom")),J=N.getPropertyValue("box-sizing");E=J&&"border-box"===J?V+G+K:V+q+W+G+K}R&&($[0].style.transform=R),Y&&($[0].style.webkitTransform=Y),e.roundLengths&&(E=Math.floor(E))}else E=(n-(e.slidesPerView-1)*y)/e.slidesPerView,e.roundLengths&&(E=Math.floor(E)),s[M]&&(this.isHorizontal()?s[M].style.width="".concat(E,"px"):s[M].style.height="".concat(E,"px"));s[M]&&(s[M].swiperSlideSize=E),h.push(E),e.centeredSlides?(b=b+E/2+_/2+y,0===_&&0!==M&&(b=b-n/2-y),0===M&&(b=b-n/2-y),Math.abs(b)<.001&&(b=0),e.roundLengths&&(b=Math.floor(b)),w%e.slidesPerGroup==0&&c.push(b),u.push(b)):(e.roundLengths&&(b=Math.floor(b)),(w-Math.min(this.params.slidesPerGroupSkip,w))%this.params.slidesPerGroup==0&&c.push(b),u.push(b),b=b+E+y),this.virtualSize+=E+y,_=E,w+=1}}if(this.virtualSize=Math.max(this.virtualSize,n)+m,r&&i&&("slide"===e.effect||"coverflow"===e.effect)&&t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.setWrapperSize&&(this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")})),e.slidesPerColumn>1&&(this.virtualSize=(E+e.spaceBetween)*k,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.centeredSlides)){T=[];for(var X=0;X<c.length;X+=1){var Q=c[X];e.roundLengths&&(Q=Math.floor(Q)),c[X]<this.virtualSize+c[0]&&T.push(Q)}c=T}if(!e.centeredSlides){T=[];for(var Z=0;Z<c.length;Z+=1){var ee=c[Z];e.roundLengths&&(ee=Math.floor(ee)),c[Z]<=this.virtualSize-n&&T.push(ee)}c=T,Math.floor(this.virtualSize-n)-Math.floor(c[c.length-1])>1&&c.push(this.virtualSize-n)}if(0===c.length&&(c=[0]),0!==e.spaceBetween&&(this.isHorizontal()?r?s.filter(p).css({marginLeft:"".concat(y,"px")}):s.filter(p).css({marginRight:"".concat(y,"px")}):s.filter(p).css({marginBottom:"".concat(y,"px")})),e.centeredSlides&&e.centeredSlidesBounds){var te=0;h.forEach((function(t){te+=t+(e.spaceBetween?e.spaceBetween:0)}));var ne=(te-=e.spaceBetween)-n;c=c.map((function(e){return e<0?-f:e>ne?ne+m:e}))}if(e.centerInsufficientSlides){var re=0;if(h.forEach((function(t){re+=t+(e.spaceBetween?e.spaceBetween:0)})),(re-=e.spaceBetween)<n){var ie=(n-re)/2;c.forEach((function(e,t){c[t]=e-ie})),u.forEach((function(e,t){u[t]=e+ie}))}}Jr.extend(this,{slides:s,snapGrid:c,slidesGrid:u,slidesSizesGrid:h}),l!==o&&this.emit("slidesLengthChange"),c.length!==v&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),u.length!==g&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=[],r=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)this.visibleSlides.each((function(e,t){n.push(t)}));else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var i=this.activeIndex+t;if(i>this.slides.length)break;n.push(this.slides.eq(i)[0])}else n.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var a=n[t].offsetHeight;r=a>r?a:r}r&&this.$wrapperEl.css("height","".concat(r,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,r=t.slides,i=t.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();var a=-e;i&&(a=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var o=0;o<r.length;o+=1){var s=r[o],l=(a+(n.centeredSlides?t.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var c=-(a-s.swiperSlideOffset),u=c+t.slidesSizesGrid[o],d=c>=0&&c<t.size-1||u>1&&u<=t.size||c<=0&&u>=t.size;d&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}s.progress=i?-l:l}t.visibleSlides=Kr(t.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var n=this.params,r=this.maxTranslate()-this.minTranslate(),i=this.progress,a=this.isBeginning,o=this.isEnd,s=a,l=o;0===r?(i=0,a=!0,o=!0):(a=(i=(e-this.minTranslate())/r)<=0,o=i>=1),Jr.extend(this,{progress:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&this.updateSlidesProgress(e),a&&!s&&this.emit("reachBeginning toEdge"),o&&!l&&this.emit("reachEnd toEdge"),(s&&!a||l&&!o)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var e,t=this.slides,n=this.params,r=this.$wrapperEl,i=this.activeIndex,a=this.realIndex,o=this.virtual&&n.virtual.enabled;t.removeClass("".concat(n.slideActiveClass," ").concat(n.slideNextClass," ").concat(n.slidePrevClass," ").concat(n.slideDuplicateActiveClass," ").concat(n.slideDuplicateNextClass," ").concat(n.slideDuplicatePrevClass)),(e=o?this.$wrapperEl.find(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(i,'"]')):t.eq(i)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(a,'"]')).addClass(n.slideDuplicateActiveClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(a,'"]')).addClass(n.slideDuplicateActiveClass));var s=e.nextAll(".".concat(n.slideClass)).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=t.eq(0)).addClass(n.slideNextClass);var l=e.prevAll(".".concat(n.slideClass)).eq(0).addClass(n.slidePrevClass);n.loop&&0===l.length&&(l=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(s.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(s.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,r=this.slidesGrid,i=this.snapGrid,a=this.params,o=this.activeIndex,s=this.realIndex,l=this.snapIndex,c=e;if(void 0===c){for(var u=0;u<r.length;u+=1)void 0!==r[u+1]?n>=r[u]&&n<r[u+1]-(r[u+1]-r[u])/2?c=u:n>=r[u]&&n<r[u+1]&&(c=u+1):n>=r[u]&&(c=u);a.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(n)>=0)t=i.indexOf(n);else{var d=Math.min(a.slidesPerGroupSkip,c);t=d+Math.floor((c-d)/a.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c!==o){var h=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);Jr.extend(this,{snapIndex:t,realIndex:h,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==h&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,n=Kr(e.target).closest(".".concat(t.slideClass))[0],r=!1;if(n)for(var i=0;i<this.slides.length;i+=1)this.slides[i]===n&&(r=!0);if(!n||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(Kr(n).attr("data-swiper-slide-index"),10):this.clickedIndex=Kr(n).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},ei={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,r=t.rtlTranslate,i=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;var o=Jr.getTranslate(a[0],e);return r&&(o=-o),o||0},setTranslate:function(e,t){var n=this.rtlTranslate,r=this.params,i=this.$wrapperEl,a=this.wrapperEl,o=this.progress,s=0,l=0;this.isHorizontal()?s=n?-e:e:l=e,r.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),r.cssMode?a[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-l:r.virtualTranslate||i.transform("translate3d(".concat(s,"px, ").concat(l,"px, ").concat(0,"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:l;var c=this.maxTranslate()-this.minTranslate();(0===c?0:(e-this.minTranslate())/c)!==o&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,a=this,o=a.params,s=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var l,c=a.minTranslate(),u=a.maxTranslate();if(l=r&&e>c?c:r&&e<u?u:e,a.updateProgress(l),o.cssMode){var d,h=a.isHorizontal();if(0===t)s[h?"scrollLeft":"scrollTop"]=-l;else if(s.scrollTo)s.scrollTo((d={},Z()(d,h?"left":"top",-l),Z()(d,"behavior","smooth"),d));else s[h?"scrollLeft":"scrollTop"]=-l;return!0}return 0===t?(a.setTransition(0),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},ti={setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.activeIndex,i=n.params,a=n.previousIndex;if(!i.cssMode){i.autoHeight&&n.updateAutoHeight();var o=t;if(o||(o=r>a?"next":r<a?"prev":"reset"),n.emit("transitionStart"),e&&r!==a){if("reset"===o)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===o?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.activeIndex,i=n.previousIndex,a=n.params;if(n.animating=!1,!a.cssMode){n.setTransition(0);var o=t;if(o||(o=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),e&&r!==i){if("reset"===o)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===o?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}}},ni={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this,a=e;a<0&&(a=0);var o=i.params,s=i.snapGrid,l=i.slidesGrid,c=i.previousIndex,u=i.activeIndex,d=i.rtlTranslate,h=i.wrapperEl;if(i.animating&&o.preventInteractionOnTransition)return!1;var p=Math.min(i.params.slidesPerGroupSkip,a),f=p+Math.floor((a-p)/i.params.slidesPerGroup);f>=s.length&&(f=s.length-1),(u||o.initialSlide||0)===(c||0)&&n&&i.emit("beforeSlideChangeStart");var m,v=-s[f];if(i.updateProgress(v),o.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*v)>=Math.floor(100*l[g])&&(a=g);if(i.initialized&&a!==u){if(!i.allowSlideNext&&v<i.translate&&v<i.minTranslate())return!1;if(!i.allowSlidePrev&&v>i.translate&&v>i.maxTranslate()&&(u||0)!==a)return!1}if(m=a>u?"next":a<u?"prev":"reset",d&&-v===i.translate||!d&&v===i.translate)return i.updateActiveIndex(a),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==o.effect&&i.setTranslate(v),"reset"!==m&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(o.cssMode){var y,b=i.isHorizontal(),_=-v;if(d&&(_=h.scrollWidth-h.offsetWidth-_),0===t)h[b?"scrollLeft":"scrollTop"]=_;else if(h.scrollTo)h.scrollTo((y={},Z()(y,b?"left":"top",_),Z()(y,"behavior","smooth"),y));else h[b?"scrollLeft":"scrollTop"]=_;return!0}return 0===t?(i.setTransition(0),i.setTranslate(v),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),i.transitionEnd(n,m)):(i.setTransition(t),i.setTranslate(v),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,m))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this,a=e;return i.params.loop&&(a+=i.loopedSlides),i.slideTo(a,t,n,r)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,a=r.animating,o=r.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(a)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+o,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,a=r.animating,o=r.snapGrid,s=r.slidesGrid,l=r.rtlTranslate;if(i.loop){if(a)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var c=l?r.translate:-r.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=u(c),p=o.map((function(e){return u(e)})),f=(s.map((function(e){return u(e)})),o[p.indexOf(h)],o[p.indexOf(h)-1]);return void 0===f&&i.cssMode&&o.forEach((function(e){!f&&h>=e&&(f=e)})),void 0!==f&&(d=s.indexOf(f))<0&&(d=r.activeIndex-1),r.slideTo(d,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this;return r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){var c=i.snapGrid[s],u=i.snapGrid[s+1];l-c>(u-c)*r&&(a+=i.params.slidesPerGroup)}else{var d=i.snapGrid[s-1],h=i.snapGrid[s];l-d<=(h-d)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,a=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(Kr(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<t.loopedSlides-i/2||a>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),Jr.nextTick((function(){t.slideTo(a)}))):t.slideTo(a):a>t.slides.length-i?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),Jr.nextTick((function(){t.slideTo(a)}))):t.slideTo(a)}else t.slideTo(a)}},ri={loopCreate:function(){var e=this,t=e.params,n=e.$wrapperEl;n.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var r=n.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-r.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var a=0;a<i;a+=1){var o=Kr(d.a.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));n.append(o)}r=n.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);var s=[],l=[];r.each((function(t,n){var i=Kr(n);t<e.loopedSlides&&l.push(n),t<r.length&&t>=r.length-e.loopedSlides&&s.push(n),i.attr("data-swiper-slide-index",t)}));for(var c=0;c<l.length;c+=1)n.append(Kr(l[c].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var u=s.length-1;u>=0;u-=1)n.prepend(Kr(s[u].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,n=this.slides,r=this.loopedSlides,i=this.allowSlidePrev,a=this.allowSlideNext,o=this.snapGrid,s=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-o[t]-this.getTranslate();if(t<r)e=n.length-3*r+t,e+=r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l);else if(t>=n.length-r){e=-n.length+t+r,e+=r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l)}this.allowSlidePrev=i,this.allowSlideNext=a,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,n=this.slides;e.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass,",.").concat(t.slideClass,".").concat(t.slideBlankClass)).remove(),n.removeAttr("data-swiper-slide-index")}},ii={setGrabCursor:function(e){if(!(Xr.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){Xr.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},ai={appendSlide:function(e){var t=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"===N()(e)&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&t.append(e[r]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&Xr.observer||this.update()},prependSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&this.loopDestroy();var i=r+1;if("object"===N()(e)&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&n.prepend(e[a]);i=r+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&Xr.observer||this.update(),this.slideTo(i,0,!1)},addSlide:function(e,t){var n=this.$wrapperEl,r=this.params,i=this.activeIndex;r.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(r.slideClass)));var a=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=a)this.appendSlide(t);else{for(var o=i>e?i+1:i,s=[],l=a-1;l>=e;l-=1){var c=this.slides.eq(l);c.remove(),s.unshift(c)}if("object"===N()(t)&&"length"in t){for(var u=0;u<t.length;u+=1)t[u]&&n.append(t[u]);o=i>e?i+t.length:i}else n.append(t);for(var d=0;d<s.length;d+=1)n.append(s[d]);r.loop&&this.loopCreate(),r.observer&&Xr.observer||this.update(),r.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)}},removeSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&(r-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(t.slideClass)));var i,a=r;if("object"===N()(e)&&"length"in e){for(var o=0;o<e.length;o+=1)i=e[o],this.slides[i]&&this.slides.eq(i).remove(),i<a&&(a-=1);a=Math.max(a,0)}else i=e,this.slides[i]&&this.slides.eq(i).remove(),i<a&&(a-=1),a=Math.max(a,0);t.loop&&this.loopCreate(),t.observer&&Xr.observer||this.update(),t.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},oi=V.a,si=function(e){var t=this.touchEventsData,n=this.params,r=this.touches;if(!this.animating||!n.preventInteractionOnTransition){var i=e;i.originalEvent&&(i=i.originalEvent);var a=Kr(i.target);if(("wrapper"!==n.touchEventsTarget||a.closest(this.wrapperEl).length)&&(t.isTouchEvent="touchstart"===i.type,(t.isTouchEvent||!("which"in i)||3!==i.which)&&!(!t.isTouchEvent&&"button"in i&&i.button>0||t.isTouched&&t.isMoved)))if(n.noSwiping&&a.closest(n.noSwipingSelector?n.noSwipingSelector:".".concat(n.noSwipingClass))[0])this.allowClick=!0;else if(!n.swipeHandler||a.closest(n.swipeHandler)[0]){r.currentX="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,r.currentY="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY;var o=r.currentX,s=r.currentY,l=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,c=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!l||!(o<=c||o>=d.b.screen.width-c)){if(Jr.extend(t,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=o,r.startY=s,t.touchStartTime=Jr.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,n.threshold>0&&(t.allowThresholdMove=!1),"touchstart"!==i.type){var u=!0;a.is(t.formElements)&&(u=!1),d.a.activeElement&&Kr(d.a.activeElement).is(t.formElements)&&d.a.activeElement!==a[0]&&d.a.activeElement.blur();var h=u&&this.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||h)&&i.preventDefault()}this.emit("touchStart",i)}}}},li=function(e){var t=this.touchEventsData,n=this.params,r=this.touches,i=this.rtlTranslate,a=e;if(a.originalEvent&&(a=a.originalEvent),t.isTouched){if(!t.isTouchEvent||"mousemove"!==a.type){var o="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),s="touchmove"===a.type?o.pageX:a.pageX,l="touchmove"===a.type?o.pageY:a.pageY;if(a.preventedByNestedSwiper)return r.startX=s,void(r.startY=l);if(!this.allowTouchMove)return this.allowClick=!1,void(t.isTouched&&(Jr.extend(r,{startX:s,startY:l,currentX:s,currentY:l}),t.touchStartTime=Jr.now()));if(t.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(this.isVertical()){if(l<r.startY&&this.translate<=this.maxTranslate()||l>r.startY&&this.translate>=this.minTranslate())return t.isTouched=!1,void(t.isMoved=!1)}else if(s<r.startX&&this.translate<=this.maxTranslate()||s>r.startX&&this.translate>=this.minTranslate())return;if(t.isTouchEvent&&d.a.activeElement&&a.target===d.a.activeElement&&Kr(a.target).is(t.formElements))return t.isMoved=!0,void(this.allowClick=!1);if(t.allowTouchCallbacks&&this.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){r.currentX=s,r.currentY=l;var c=r.currentX-r.startX,u=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(u,2))<this.params.threshold)){var h;if(void 0===t.isScrolling)this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?t.isScrolling=!1:c*c+u*u>=25&&(h=180*Math.atan2(Math.abs(u),Math.abs(c))/Math.PI,t.isScrolling=this.isHorizontal()?h>n.touchAngle:90-h>n.touchAngle);if(t.isScrolling&&this.emit("touchMoveOpposite",a),void 0===t.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(t.startMoving=!0)),t.isScrolling)t.isTouched=!1;else if(t.startMoving){this.allowClick=!1,n.cssMode||a.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&a.stopPropagation(),t.isMoved||(n.loop&&this.loopFix(),t.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),t.allowMomentumBounce=!1,!n.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",a)),this.emit("sliderMove",a),t.isMoved=!0;var p=this.isHorizontal()?c:u;r.diff=p,p*=n.touchRatio,i&&(p=-p),this.swipeDirection=p>0?"prev":"next",t.currentTranslate=p+t.startTranslate;var f=!0,m=n.resistanceRatio;if(n.touchReleaseOnEdges&&(m=0),p>0&&t.currentTranslate>this.minTranslate()?(f=!1,n.resistance&&(t.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+t.startTranslate+p,m))):p<0&&t.currentTranslate<this.maxTranslate()&&(f=!1,n.resistance&&(t.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-t.startTranslate-p,m))),f&&(a.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&t.currentTranslate<t.startTranslate&&(t.currentTranslate=t.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&t.currentTranslate>t.startTranslate&&(t.currentTranslate=t.startTranslate),n.threshold>0){if(!(Math.abs(p)>n.threshold||t.allowThresholdMove))return void(t.currentTranslate=t.startTranslate);if(!t.allowThresholdMove)return t.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,t.currentTranslate=t.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&(0===t.velocities.length&&t.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:Jr.now()})),this.updateProgress(t.currentTranslate),this.setTranslate(t.currentTranslate))}}}}}else t.startMoving&&t.isScrolling&&this.emit("touchMoveOpposite",a)},ci=function(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.$wrapperEl,s=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=Jr.now(),h=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),h<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=Jr.now(),Jr.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),f=n.velocities.pop(),m=p.position-f.position,v=p.time-f.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(v>150||Jr.now()-p.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var _,w,k=!1,E=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(b<t.maxTranslate())r.freeModeMomentumBounce?(b+t.maxTranslate()<-E&&(b=t.maxTranslate()-E),_=t.maxTranslate(),k=!0,n.allowMomentumBounce=!0):b=t.maxTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(b>t.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>E&&(b=t.minTranslate()+E),_=t.minTranslate(),k=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(r.freeModeSticky){for(var T,S=0;S<l.length;S+=1)if(l[S]>-b){T=S;break}b=-(b=Math.abs(l[T]-b)<Math.abs(l[T-1]-b)||"next"===t.swipeDirection?l[T]:l[T-1])}if(w&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity),r.freeModeSticky){var C=Math.abs((a?-b:b)-t.translate),x=t.slidesSizesGrid[t.activeIndex];g=C<x?r.speed:C<2*x?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&k?(t.updateProgress(_),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),setTimeout((function(){t.setTranslate(_),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(b),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();(!r.freeModeMomentum||h>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var M=0,$=t.slidesSizesGrid[0],L=0;L<s.length;L+=L<r.slidesPerGroupSkip?1:r.slidesPerGroup){var P=L<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==s[L+P]?u>=s[L]&&u<s[L+P]&&(M=L,$=s[L+P]-s[L]):u>=s[L]&&(M=L,$=s[s.length-1]-s[s.length-2])}var O=(u-s[M])/$,D=M<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(O>=r.longSwipesRatio?t.slideTo(M+D):t.slideTo(M)),"prev"===t.swipeDirection&&(O>1-r.longSwipesRatio?t.slideTo(M+D):t.slideTo(M))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(M+D):t.slideTo(M):("next"===t.swipeDirection&&t.slideTo(M+D),"prev"===t.swipeDirection&&t.slideTo(M))}}},ui=function(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,r=this.allowSlidePrev,i=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}},di=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},hi=function(){var e=this.wrapperEl,t=this.rtlTranslate;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=t?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var n=this.maxTranslate()-this.minTranslate();(0===n?0:(this.translate-this.minTranslate())/n)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)},pi=!1;function fi(){}var mi={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};function vi(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var gi,yi={update:Zr,translate:ei,transition:ti,slide:ni,loop:ri,grabCursor:ii,manipulation:ai,events:{attachEvents:function(){var e=this.params,t=this.touchEvents,n=this.el,r=this.wrapperEl;this.onTouchStart=si.bind(this),this.onTouchMove=li.bind(this),this.onTouchEnd=ci.bind(this),e.cssMode&&(this.onScroll=hi.bind(this)),this.onClick=di.bind(this);var i=!!e.nested;if(!Xr.touch&&Xr.pointerEvents)n.addEventListener(t.start,this.onTouchStart,!1),d.a.addEventListener(t.move,this.onTouchMove,i),d.a.addEventListener(t.end,this.onTouchEnd,!1);else{if(Xr.touch){var a=!("touchstart"!==t.start||!Xr.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(t.start,this.onTouchStart,a),n.addEventListener(t.move,this.onTouchMove,Xr.passiveListener?{passive:!1,capture:i}:i),n.addEventListener(t.end,this.onTouchEnd,a),t.cancel&&n.addEventListener(t.cancel,this.onTouchEnd,a),pi||(d.a.addEventListener("touchstart",fi),pi=!0)}(e.simulateTouch&&!oi.ios&&!oi.android||e.simulateTouch&&!Xr.touch&&oi.ios)&&(n.addEventListener("mousedown",this.onTouchStart,!1),d.a.addEventListener("mousemove",this.onTouchMove,i),d.a.addEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.addEventListener("click",this.onClick,!0),e.cssMode&&r.addEventListener("scroll",this.onScroll),e.updateOnWindowResize?this.on(oi.ios||oi.android?"resize orientationchange observerUpdate":"resize observerUpdate",ui,!0):this.on("observerUpdate",ui,!0)},detachEvents:function(){var e=this.params,t=this.touchEvents,n=this.el,r=this.wrapperEl,i=!!e.nested;if(!Xr.touch&&Xr.pointerEvents)n.removeEventListener(t.start,this.onTouchStart,!1),d.a.removeEventListener(t.move,this.onTouchMove,i),d.a.removeEventListener(t.end,this.onTouchEnd,!1);else{if(Xr.touch){var a=!("onTouchStart"!==t.start||!Xr.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(t.start,this.onTouchStart,a),n.removeEventListener(t.move,this.onTouchMove,i),n.removeEventListener(t.end,this.onTouchEnd,a),t.cancel&&n.removeEventListener(t.cancel,this.onTouchEnd,a)}(e.simulateTouch&&!oi.ios&&!oi.android||e.simulateTouch&&!Xr.touch&&oi.ios)&&(n.removeEventListener("mousedown",this.onTouchStart,!1),d.a.removeEventListener("mousemove",this.onTouchMove,i),d.a.removeEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.removeEventListener("click",this.onClick,!0),e.cssMode&&r.removeEventListener("scroll",this.onScroll),this.off(oi.ios||oi.android?"resize orientationchange observerUpdate":"resize observerUpdate",ui)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,n=this.loopedSlides,r=void 0===n?0:n,i=this.params,a=this.$el,o=i.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var s=this.getBreakpoint(o);if(s&&this.currentBreakpoint!==s){var l=s in o?o[s]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=l||this.originalParams,u=i.slidesPerColumn>1,d=c.slidesPerColumn>1;u&&!d?a.removeClass("".concat(i.containerModifierClass,"multirow ").concat(i.containerModifierClass,"multirow-column")):!u&&d&&(a.addClass("".concat(i.containerModifierClass,"multirow")),"column"===c.slidesPerColumnFill&&a.addClass("".concat(i.containerModifierClass,"multirow-column")));var h=c.direction&&c.direction!==i.direction,p=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&t&&this.changeDirection(),Jr.extend(this.params,c),Jr.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=s,p&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-r+this.loopedSlides,0,!1)),this.emit("breakpoint",c)}}},getBreakpoint:function(e){if(e){var t=!1,n=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:d.b.innerHeight*t,point:e}}return{value:e,point:e}}));n.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var r=0;r<n.length;r+=1){var i=n[r],a=i.point;i.value<=d.b.innerWidth&&(t=a)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,n=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?this.isLocked=n<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,n=this.rtl,r=this.$el,i=[];i.push("initialized"),i.push(t.direction),t.freeMode&&i.push("free-mode"),t.autoHeight&&i.push("autoheight"),n&&i.push("rtl"),t.slidesPerColumn>1&&(i.push("multirow"),"column"===t.slidesPerColumnFill&&i.push("multirow-column")),oi.android&&i.push("android"),oi.ios&&i.push("ios"),t.cssMode&&i.push("css-mode"),i.forEach((function(n){e.push(t.containerModifierClass+n)})),r.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,r,i,a){var o;function s(){a&&a()}e.complete&&i?s():t?((o=new d.b.Image).onload=s,o.onerror=s,r&&(o.sizes=r),n&&(o.srcset=n),t&&(o.src=t)):s()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},bi={},_i=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(vi()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(){var e,t,i;u()(this,r);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];1===o.length&&o[0].constructor&&o[0].constructor===Object?i=o[0]:(t=o[0],i=o[1]),i||(i={}),i=Jr.extend({},i),t&&!i.el&&(i.el=t),e=n.call(this,i),Object.keys(yi).forEach((function(e){Object.keys(yi[e]).forEach((function(t){r.prototype[t]||(r.prototype[t]=yi[e][t])}))}));var l=C()(e);void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var n=Object.keys(t.params)[0],r=t.params[n];if("object"!==N()(r)||null===r)return;if(!(n in i)||!("enabled"in r))return;!0===i[n]&&(i[n]={enabled:!0}),"object"!==N()(i[n])||"enabled"in i[n]||(i[n].enabled=!0),i[n]||(i[n]={enabled:!1})}}));var c=Jr.extend({},mi);l.useModulesParams(c),l.params=Jr.extend({},c,bi,i),l.originalParams=Jr.extend({},l.params),l.passedParams=Jr.extend({},i),l.$=Kr;var d,h,p,f=Kr(l.params.el);if(!(t=f[0]))return L()(e,void 0);if(f.length>1){var m=[];return f.each((function(e,t){var n=Jr.extend({},i,{el:t});m.push(new r(n))})),L()(e,m)}return t.swiper=l,f.data("swiper",l),t&&t.shadowRoot&&t.shadowRoot.querySelector?(d=Kr(t.shadowRoot.querySelector(".".concat(l.params.wrapperClass)))).children=function(e){return f.children(e)}:d=f.children(".".concat(l.params.wrapperClass)),Jr.extend(l,{$el:f,el:t,$wrapperEl:d,wrapperEl:d[0],classNames:[],slides:Kr(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===t.dir.toLowerCase()||"rtl"===f.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===f.css("direction")),wrongRTL:"-webkit-box"===d.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(h=["touchstart","touchmove","touchend","touchcancel"],p=["mousedown","mousemove","mouseup"],Xr.pointerEvents&&(p=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:h[0],move:h[1],end:h[2],cancel:h[3]},l.touchEventsDesktop={start:p[0],move:p[1],end:p[2]},Xr.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:Jr.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),L()(e,l)}return T()(r,[{key:"slidesPerViewDynamic",value:function(){var e=this.params,t=this.slides,n=this.slidesGrid,r=this.size,i=this.activeIndex,a=1;if(e.centeredSlides){for(var o,s=t[i].swiperSlideSize,l=i+1;l<t.length;l+=1)t[l]&&!o&&(a+=1,(s+=t[l].swiperSlideSize)>r&&(o=!0));for(var c=i-1;c>=0;c-=1)t[c]&&!o&&(a+=1,(s+=t[c].swiperSlideSize)>r&&(o=!0))}else for(var u=i+1;u<t.length;u+=1)n[u]-n[i]<r&&(a+=1);return a}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(r)).addClass("".concat(n.params.containerModifierClass).concat(e)),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"init",value:function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),Jr.deleteProps(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){Jr.extend(bi,e)}},{key:"extendedDefaults",get:function(){return bi}},{key:"defaults",get:function(){return mi}},{key:"Class",get:function(){return Qr}},{key:"$",get:function(){return Kr}}]),r}(Qr),wi={name:"device",proto:{device:oi},static:{device:oi}},ki={name:"support",proto:{support:Xr},static:{support:Xr}},Ei={isEdge:!!d.b.navigator.userAgent.match(/Edge/g),isSafari:(gi=d.b.navigator.userAgent.toLowerCase(),gi.indexOf("safari")>=0&&gi.indexOf("chrome")<0&&gi.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(d.b.navigator.userAgent)},Ti={name:"browser",proto:{browser:Ei},static:{browser:Ei}},Si={name:"resize",create:function(){var e=this;Jr.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){d.b.addEventListener("resize",this.resize.resizeHandler),d.b.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){d.b.removeEventListener("resize",this.resize.resizeHandler),d.b.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},Ci={func:d.b.MutationObserver||d.b.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=Ci.func,i=new r((function(e){if(1!==e.length){var t=function(){n.emit("observerUpdate",e[0])};d.b.requestAnimationFrame?d.b.requestAnimationFrame(t):d.b.setTimeout(t,0)}else n.emit("observerUpdate",e[0])}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){if(Xr.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},xi={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){Jr.extend(this,{observer:{init:Ci.init.bind(this),attach:Ci.attach.bind(this),destroy:Ci.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Mi={update:function(e){var t=this,n=t.params,r=n.slidesPerView,i=n.slidesPerGroup,a=n.centeredSlides,o=t.params.virtual,s=o.addSlidesBefore,l=o.addSlidesAfter,c=t.virtual,u=c.from,d=c.to,h=c.slides,p=c.slidesGrid,f=c.renderSlide,m=c.offset;t.updateActiveIndex();var v,g,y,b=t.activeIndex||0;v=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(g=Math.floor(r/2)+i+s,y=Math.floor(r/2)+i+l):(g=r+(i-1)+s,y=i+l);var _=Math.max((b||0)-y,0),w=Math.min((b||0)+g,h.length-1),k=(t.slidesGrid[_]||0)-(t.slidesGrid[0]||0);function E(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(Jr.extend(t.virtual,{from:_,to:w,offset:k,slidesGrid:t.slidesGrid}),u===_&&d===w&&!e)return t.slidesGrid!==p&&k!==m&&t.slides.css(v,"".concat(k,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:k,from:_,to:w,slides:function(){for(var e=[],t=_;t<=w;t+=1)e.push(h[t]);return e}()}),void E();var T=[],S=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var C=u;C<=d;C+=1)(C<_||C>w)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(C,'"]')).remove();for(var x=0;x<h.length;x+=1)x>=_&&x<=w&&(void 0===d||e?S.push(x):(x>d&&S.push(x),x<u&&T.push(x)));S.forEach((function(e){t.$wrapperEl.append(f(h[e],e))})),T.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(h[e],e))})),t.$wrapperEl.children(".swiper-slide").css(v,"".concat(k,"px")),E()},renderSlide:function(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var r=n.renderSlide?Kr(n.renderSlide.call(this,e,t)):Kr('<div class="'.concat(this.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=r),r},appendSlide:function(e){if("object"===N()(e)&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,n=t+1,r=1;if(Array.isArray(e)){for(var i=0;i<e.length;i+=1)e[i]&&this.virtual.slides.unshift(e[i]);n=t+e.length,r=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var a=this.virtual.cache,o={};Object.keys(a).forEach((function(e){var t=a[e],n=t.attr("data-swiper-slide-index");n&&t.attr("data-swiper-slide-index",parseInt(n,10)+1),o[parseInt(e,10)+r]=t})),this.virtual.cache=o}this.virtual.update(!0),this.slideTo(n,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)this.virtual.slides.splice(e[n],1),this.params.virtual.cache&&delete this.virtual.cache[e[n]],e[n]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},$i={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){Jr.extend(this,{virtual:{update:Mi.update.bind(this),appendSlide:Mi.appendSlide.bind(this),prependSlide:Mi.prependSlide.bind(this),removeSlide:Mi.removeSlide.bind(this),removeAllSlides:Mi.removeAllSlides.bind(this),renderSlide:Mi.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push("".concat(this.params.containerModifierClass,"virtual"));var e={watchSlidesProgress:!0};Jr.extend(this.params,e),Jr.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},Li={handle:function(e){var t=this.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r||34===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||d.a.activeElement&&d.a.activeElement.nodeName&&("input"===d.a.activeElement.nodeName.toLowerCase()||"textarea"===d.a.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var i=!1;if(this.$el.parents(".".concat(this.params.slideClass)).length>0&&0===this.$el.parents(".".concat(this.params.slideActiveClass)).length)return;var a=d.b.innerWidth,o=d.b.innerHeight,s=this.$el.offset();t&&(s.left-=this.$el[0].scrollLeft);for(var l=[[s.left,s.top],[s.left+this.width,s.top],[s.left,s.top+this.height],[s.left+this.width,s.top+this.height]],c=0;c<l.length;c+=1){var u=l[c];u[0]>=0&&u[0]<=a&&u[1]>=0&&u[1]<=o&&(i=!0)}if(!i)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||t)&&(33!==r&&37!==r||!t)||this.slideNext(),(33!==r&&37!==r||t)&&(34!==r&&39!==r||!t)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(Kr(d.a).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(Kr(d.a).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},Pi={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){Jr.extend(this,{keyboard:{enabled:!1,enable:Li.enable.bind(this),disable:Li.disable.bind(this),handle:Li.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var Oi={lastScrollTime:Jr.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return d.b.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in d.a;if(!e){var t=d.a.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&d.a.implementation&&d.a.implementation.hasFeature&&!0!==d.a.implementation.hasFeature("","")&&(e=d.a.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,n=this,r=n.params.mousewheel;n.params.cssMode&&t.preventDefault();var i=n.$el;if("container"!==n.params.mousewheel.eventsTarged&&(i=Kr(n.params.mousewheel.eventsTarged)),!n.mouseEntered&&!i[0].contains(t.target)&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var a=0,o=n.rtlTranslate?-1:1,s=Oi.normalize(t);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;a=s.pixelX*o}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;a=s.pixelY}else a=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*o:-s.pixelY;if(0===a)return!0;if(r.invert&&(a=-a),n.params.freeMode){var l={time:Jr.now(),delta:Math.abs(a),direction:Math.sign(a)},c=n.mousewheel.lastEventBeforeSnap,u=c&&l.time<c.time+500&&l.delta<=c.delta&&l.direction===c.direction;if(!u){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();var d=n.getTranslate()+a*r.sensitivity,h=n.isBeginning,p=n.isEnd;if(d>=n.minTranslate()&&(d=n.minTranslate()),d<=n.maxTranslate()&&(d=n.maxTranslate()),n.setTransition(0),n.setTranslate(d),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!h&&n.isBeginning||!p&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var f=n.mousewheel.recentWheelEvents;f.length>=15&&f.shift();var m=f.length?f[f.length-1]:void 0,v=f[0];if(f.push(l),m&&(l.delta>m.delta||l.direction!==m.direction))f.splice(0);else if(f.length>=15&&l.time-v.time<500&&v.delta-l.delta>=1&&l.delta<=6){var g=a>0?.8:.2;n.mousewheel.lastEventBeforeSnap=l,f.splice(0),n.mousewheel.timeout=Jr.nextTick((function(){n.slideToClosest(n.params.speed,!0,void 0,g)}),0)}n.mousewheel.timeout||(n.mousewheel.timeout=Jr.nextTick((function(){n.mousewheel.lastEventBeforeSnap=l,f.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(u||n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),d===n.minTranslate()||d===n.maxTranslate())return!0}}else{var y={time:Jr.now(),delta:Math.abs(a),direction:Math.sign(a),raw:e},b=n.mousewheel.recentWheelEvents;b.length>=2&&b.shift();var _=b.length?b[b.length-1]:void 0;if(b.push(y),_?(y.direction!==_.direction||y.delta>_.delta)&&n.mousewheel.animateSlider(y):n.mousewheel.animateSlider(y),n.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){return e.delta>=6&&Jr.now()-this.mousewheel.lastScrollTime<60||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=(new d.b.Date).getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=Oi.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=Kr(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=Oi.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=Kr(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},Di={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){Jr.extend(this,{mousewheel:{enabled:!1,enable:Oi.enable.bind(this),disable:Oi.disable.bind(this),handle:Oi.handle.bind(this),handleMouseEnter:Oi.handleMouseEnter.bind(this),handleMouseLeave:Oi.handleMouseLeave.bind(this),animateSlider:Oi.animateSlider.bind(this),releaseScroll:Oi.releaseScroll.bind(this),lastScrollTime:Jr.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){!this.params.mousewheel.enabled&&this.params.cssMode&&this.mousewheel.disable(),this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},Ii={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(this.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=Kr(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&e.length>1&&1===this.$el.find(n.nextEl).length&&(e=this.$el.find(n.nextEl))),n.prevEl&&(t=Kr(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&t.length>1&&1===this.$el.find(n.prevEl).length&&(t=this.$el.find(n.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),Jr.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("click",this.navigation.onPrevClick),n.removeClass(this.params.navigation.disabledClass))}},Ai={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){Jr.extend(this,{navigation:{init:Ii.init.bind(this),update:Ii.update.bind(this),destroy:Ii.destroy.bind(this),onNextClick:Ii.onNextClick.bind(this),onPrevClick:Ii.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this.navigation,r=n.$nextEl,i=n.$prevEl;!this.params.navigation.hideOnClick||Kr(e.target).is(i)||Kr(e.target).is(r)||(r?t=r.hasClass(this.params.navigation.hiddenClass):i&&(t=i.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),r&&r.toggleClass(this.params.navigation.hiddenClass),i&&i.toggleClass(this.params.navigation.hiddenClass))}}},Ni={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,a=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(n-=r-2*this.loopedSlides),n>a-1&&(n-=a),n<0&&"bullets"!==this.params.paginationType&&(n=a+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,s,l,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(this.isHorizontal()?"width":"height","".concat(this.pagination.bulletSize*(t.dynamicMainBullets+4),"px")),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=n-this.pagination.dynamicBulletIndex,l=((s=o+(Math.min(c.length,t.dynamicMainBullets)-1))+o)/2),c.removeClass("".concat(t.bulletActiveClass," ").concat(t.bulletActiveClass,"-next ").concat(t.bulletActiveClass,"-next-next ").concat(t.bulletActiveClass,"-prev ").concat(t.bulletActiveClass,"-prev-prev ").concat(t.bulletActiveClass,"-main")),i.length>1)c.each((function(e,r){var i=Kr(r),a=i.index();a===n&&i.addClass(t.bulletActiveClass),t.dynamicBullets&&(a>=o&&a<=s&&i.addClass("".concat(t.bulletActiveClass,"-main")),a===o&&i.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),a===s&&i.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next")))}));else{var u=c.eq(n),d=u.index();if(u.addClass(t.bulletActiveClass),t.dynamicBullets){for(var h=c.eq(o),p=c.eq(s),f=o;f<=s;f+=1)c.eq(f).addClass("".concat(t.bulletActiveClass,"-main"));if(this.params.loop)if(d>=c.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)c.eq(c.length-m).addClass("".concat(t.bulletActiveClass,"-main"));c.eq(c.length-t.dynamicMainBullets-1).addClass("".concat(t.bulletActiveClass,"-prev"))}else h.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),p.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"));else h.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),p.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"))}}if(t.dynamicBullets){var v=Math.min(c.length,t.dynamicMainBullets+4),g=(this.pagination.bulletSize*v-this.pagination.bulletSize)/2-l*this.pagination.bulletSize,y=e?"right":"left";c.css(this.isHorizontal()?y:"top","".concat(g,"px"))}}if("fraction"===t.type&&(i.find(".".concat(t.currentClass)).text(t.formatFractionCurrent(n+1)),i.find(".".concat(t.totalClass)).text(t.formatFractionTotal(a))),"progressbar"===t.type){var b;b=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var _=(n+1)/a,w=1,k=1;"horizontal"===b?w=_:k=_,i.find(".".concat(t.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(w,") scaleY(").concat(k,")")).transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(i.html(t.renderCustom(this,n+1,a)),this.emit("paginationRender",this,i[0])):this.emit("paginationUpdate",this,i[0]),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r="";if("bullets"===e.type){for(var i=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a<i;a+=1)e.renderBullet?r+=e.renderBullet.call(this,a,e.bulletClass):r+="<".concat(e.bulletElement,' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">");n.html(r),this.pagination.bullets=n.find(".".concat(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>'),n.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>'),n.html(r)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=Kr(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var n=Kr(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),Jr.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click",".".concat(e.bulletClass))}}},Ri={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){Jr.extend(this,{pagination:{init:Ni.init.bind(this),render:Ni.render.bind(this),update:Ni.update.bind(this),destroy:Ni.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!Kr(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},Yi={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,n=this.progress,r=e.dragSize,i=e.trackSize,a=e.$dragEl,o=e.$el,s=this.params.scrollbar,l=r,c=(i-r)*n;t?(c=-c)>0?(l=r-c,c=0):-c+r>i&&(l=i+c):c<0?(l=r+c,c=0):c+r>i&&(l=i-c),this.isHorizontal()?(a.transform("translate3d(".concat(c,"px, 0, 0)")),a[0].style.width="".concat(l,"px")):(a.transform("translate3d(0px, ".concat(c,"px, 0)")),a[0].style.height="".concat(l,"px")),s.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,n=e.$el;t[0].style.width="",t[0].style.height="";var r,i=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,a=this.size/this.virtualSize,o=a*(i/this.size);r="auto"===this.params.scrollbar.dragSize?i*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width="".concat(r,"px"):t[0].style.height="".concat(r,"px"),n[0].style.display=a>=1?"none":"",this.params.scrollbar.hide&&(n[0].style.opacity=0),Jr.extend(e,{trackSize:i,divider:a,moveDivider:o,dragSize:r}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,n=this.scrollbar,r=this.rtlTranslate,i=n.$el,a=n.dragSize,o=n.trackSize,s=n.dragStartPos;t=(n.getPointerPosition(e)-i.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(o-a),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el,a=n.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===a[0]||e.target===a?n.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),a.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),i.transition(0),t.hide&&i.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,n=this.$wrapperEl,r=t.$el,i=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),r.transition(0),i.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),r.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=Jr.nextTick((function(){i.css("opacity",0),i.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,i=e.$el[0],a=!(!Xr.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},o=!(!Xr.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};Xr.touch?(i.addEventListener(t.start,this.scrollbar.onDragStart,a),i.addEventListener(t.move,this.scrollbar.onDragMove,a),i.addEventListener(t.end,this.scrollbar.onDragEnd,o)):(i.addEventListener(n.start,this.scrollbar.onDragStart,a),d.a.addEventListener(n.move,this.scrollbar.onDragMove,a),d.a.addEventListener(n.end,this.scrollbar.onDragEnd,o))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,i=e.$el[0],a=!(!Xr.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},o=!(!Xr.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};Xr.touch?(i.removeEventListener(t.start,this.scrollbar.onDragStart,a),i.removeEventListener(t.move,this.scrollbar.onDragMove,a),i.removeEventListener(t.end,this.scrollbar.onDragEnd,o)):(i.removeEventListener(n.start,this.scrollbar.onDragStart,a),d.a.removeEventListener(n.move,this.scrollbar.onDragMove,a),d.a.removeEventListener(n.end,this.scrollbar.onDragEnd,o))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,n=this.params.scrollbar,r=Kr(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===t.find(n.el).length&&(r=t.find(n.el));var i=r.find(".".concat(this.params.scrollbar.dragClass));0===i.length&&(i=Kr('<div class="'.concat(this.params.scrollbar.dragClass,'"></div>')),r.append(i)),Jr.extend(e,{$el:r,el:r[0],$dragEl:i,dragEl:i[0]}),n.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},Bi={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){Jr.extend(this,{scrollbar:{init:Yi.init.bind(this),destroy:Yi.destroy.bind(this),updateSize:Yi.updateSize.bind(this),setTranslate:Yi.setTranslate.bind(this),setTransition:Yi.setTransition.bind(this),enableDraggable:Yi.enableDraggable.bind(this),disableDraggable:Yi.disableDraggable.bind(this),setDragPosition:Yi.setDragPosition.bind(this),getPointerPosition:Yi.getPointerPosition.bind(this),onDragStart:Yi.onDragStart.bind(this),onDragMove:Yi.onDragMove.bind(this),onDragEnd:Yi.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},ji={setTransform:function(e,t){var n=this.rtl,r=Kr(e),i=n?-1:1,a=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),s=r.attr("data-swiper-parallax-y"),l=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(o||s?(o=o||"0",s=s||"0"):this.isHorizontal()?(o=a,s="0"):(s=a,o="0"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*t*i,"%"):"".concat(o*t*i,"px"),s=s.indexOf("%")>=0?"".concat(parseInt(s,10)*t,"%"):"".concat(s*t,"px"),null!=c){var u=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=u}if(null==l)r.transform("translate3d(".concat(o,", ").concat(s,", 0px)"));else{var d=l-(l-1)*(1-Math.abs(t));r.transform("translate3d(".concat(o,", ").concat(s,", 0px) scale(").concat(d,")"))}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,r=e.progress,i=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,r)})),n.each((function(t,n){var a=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(t/2)-r*(i.length-1)),a=Math.min(Math.max(a,-1),1),Kr(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,a)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,n=t.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var r=Kr(n),i=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),r.transition(i)}))}},Fi={name:"parallax",params:{parallax:{enabled:!1}},create:function(){Jr.extend(this,{parallax:{setTransform:ji.setTransform.bind(this),setTranslate:ji.setTranslate.bind(this),setTransition:ji.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},Hi={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))},onGestureStart:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!Xr.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=Hi.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=Kr(e.target).closest(".".concat(this.params.slideClass)),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent(".".concat(t.containerClass)),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl&&r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(!Xr.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=Hi.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(Xr.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale(".concat(n.scale,")")))},onGestureEnd:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(!Xr.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!oi.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),t.minRatio),r.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(".concat(n.scale,")")),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,r=t.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(oi.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,n=t.gesture,r=t.image,i=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=Jr.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=Jr.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var a=r.width*t.scale,o=r.height*t.scale;if(!(a<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-o/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),i.prevPositionX||(i.prevPositionX=r.touchesCurrent.x),i.prevPositionY||(i.prevPositionY=r.touchesCurrent.y),i.prevTime||(i.prevTime=Date.now()),i.x=(r.touchesCurrent.x-i.prevPositionX)/(Date.now()-i.prevTime)/2,i.y=(r.touchesCurrent.y-i.prevPositionY)/(Date.now()-i.prevTime)/2,Math.abs(r.touchesCurrent.x-i.prevPositionX)<2&&(i.x=0),Math.abs(r.touchesCurrent.y-i.prevPositionY)<2&&(i.y=0),i.prevPositionX=r.touchesCurrent.x,i.prevPositionY=r.touchesCurrent.y,i.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d(".concat(r.currentX,"px, ").concat(r.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,r=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,a=300,o=r.x*i,s=n.currentX+o,l=r.y*a,c=n.currentY+l;0!==r.x&&(i=Math.abs((s-n.currentX)/r.x)),0!==r.y&&(a=Math.abs((c-n.currentY)/r.y));var u=Math.max(i,a);n.currentX=s,n.currentY=c;var d=n.width*e.scale,h=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(u).transform("translate3d(".concat(n.currentX,"px, ").concat(n.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl&&t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl&&t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,r,i,a,o,s,l,c,u,d,h,p,f,m,v,g=this.zoom,y=this.params.zoom,b=g.gesture,_=g.image;(b.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?b.$slideEl=this.$wrapperEl.children(".".concat(this.params.slideActiveClass)):b.$slideEl=this.slides.eq(this.activeIndex),b.$imageEl=b.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),b.$imageWrapEl=b.$imageEl.parent(".".concat(y.containerClass))),b.$imageEl&&0!==b.$imageEl.length)&&(b.$slideEl.addClass("".concat(y.zoomedSlideClass)),void 0===_.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=_.touchesStart.x,n=_.touchesStart.y),g.scale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,g.currentScale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,e?(m=b.$slideEl[0].offsetWidth,v=b.$slideEl[0].offsetHeight,r=b.$slideEl.offset().left+m/2-t,i=b.$slideEl.offset().top+v/2-n,s=b.$imageEl[0].offsetWidth,l=b.$imageEl[0].offsetHeight,c=s*g.scale,u=l*g.scale,p=-(d=Math.min(m/2-c/2,0)),f=-(h=Math.min(v/2-u/2,0)),(a=r*g.scale)<d&&(a=d),a>p&&(a=p),(o=i*g.scale)<h&&(o=h),o>f&&(o=f)):(a=0,o=0),b.$imageWrapEl.transition(300).transform("translate3d(".concat(a,"px, ").concat(o,"px,0)")),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(g.scale,")")))},out:function(){var e=this.zoom,t=this.params.zoom,n=e.gesture;n.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?n.$slideEl=this.$wrapperEl.children(".".concat(this.params.slideActiveClass)):n.$slideEl=this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent(".".concat(t.containerClass))),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass("".concat(t.zoomedSlideClass)),n.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!Xr.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},n=!Xr.passiveListener||{passive:!1,capture:!0},r=".".concat(this.params.slideClass);Xr.gestures?(this.$wrapperEl.on("gesturestart",r,e.onGestureStart,t),this.$wrapperEl.on("gesturechange",r,e.onGestureChange,t),this.$wrapperEl.on("gestureend",r,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,r,e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,r,e.onGestureChange,n),this.$wrapperEl.on(this.touchEvents.end,r,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,r,e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove,n)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!Xr.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},n=!Xr.passiveListener||{passive:!1,capture:!0},r=".".concat(this.params.slideClass);Xr.gestures?(this.$wrapperEl.off("gesturestart",r,e.onGestureStart,t),this.$wrapperEl.off("gesturechange",r,e.onGestureChange,t),this.$wrapperEl.off("gestureend",r,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,r,e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,r,e.onGestureChange,n),this.$wrapperEl.off(this.touchEvents.end,r,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,r,e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove,n)}}},Ui={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=Hi[n].bind(e)})),Jr.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,i)}n=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},zi={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var i=n.virtual&&n.params.virtual.enabled,a=i?n.$wrapperEl.children(".".concat(n.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):n.slides.eq(e),o=a.find(".".concat(r.elementClass,":not(.").concat(r.loadedClass,"):not(.").concat(r.loadingClass,")"));!a.hasClass(r.elementClass)||a.hasClass(r.loadedClass)||a.hasClass(r.loadingClass)||(o=o.add(a[0])),0!==o.length&&o.each((function(e,i){var o=Kr(i);o.addClass(r.loadingClass);var s=o.attr("data-background"),l=o.attr("data-src"),c=o.attr("data-srcset"),u=o.attr("data-sizes");n.loadImage(o[0],l||s,c,u,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(s?(o.css("background-image",'url("'.concat(s,'")')),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),u&&(o.attr("sizes",u),o.removeAttr("data-sizes")),l&&(o.attr("src",l),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),a.find(".".concat(r.preloaderClass)).remove(),n.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(n.params.slideDuplicateClass,")"));n.lazy.loadInSlide(i.index(),!1)}else{var d=n.$wrapperEl.children(".".concat(n.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));n.lazy.loadInSlide(d.index(),!1)}}n.emit("lazyImageReady",a[0],o[0]),n.params.autoHeight&&n.updateAutoHeight()}})),n.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides,i=e.activeIndex,a=e.virtual&&n.virtual.enabled,o=n.lazy,s=n.slidesPerView;function l(e){if(a){if(t.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(r[e])return!0;return!1}function c(e){return a?Kr(e).attr("data-swiper-slide-index"):Kr(e).index()}if("auto"===s&&(s=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(n.slideVisibleClass)).each((function(t,n){var r=a?Kr(n).attr("data-swiper-slide-index"):Kr(n).index();e.lazy.loadInSlide(r)}));else if(s>1)for(var u=i;u<i+s;u+=1)l(u)&&e.lazy.loadInSlide(u);else e.lazy.loadInSlide(i);if(o.loadPrevNext)if(s>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var d=o.loadPrevNextAmount,h=s,p=Math.min(i+h+Math.max(d,h),r.length),f=Math.max(i-Math.max(h,d),0),m=i+s;m<p;m+=1)l(m)&&e.lazy.loadInSlide(m);for(var v=f;v<i;v+=1)l(v)&&e.lazy.loadInSlide(v)}else{var g=t.children(".".concat(n.slideNextClass));g.length>0&&e.lazy.loadInSlide(c(g));var y=t.children(".".concat(n.slidePrevClass));y.length>0&&e.lazy.loadInSlide(c(y))}}},Vi={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){Jr.extend(this,{lazy:{initialImageLoaded:!1,load:zi.load.bind(this),loadInSlide:zi.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},qi={LinearSpline:function(e,t){var n,r,i,a,o,s=function(e,t){for(r=-1,n=e.length;n-r>1;)e[i=n+r>>1]<=t?r=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=s(this.x,e),a=o-1,(e-this.x[a])*(this.y[o]-this.y[a])/(this.x[o]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new qi.LinearSpline(this.slidesGrid,e.slidesGrid):new qi.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,i=this,a=i.controller.control;function o(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),r=-i.controller.spline.interpolate(-t)),r&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),r=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var s=0;s<a.length;s+=1)a[s]!==t&&a[s]instanceof _i&&o(a[s]);else a instanceof _i&&t!==a&&o(a)},setTransition:function(e,t){var n,r=this,i=r.controller.control;function a(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&Jr.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof _i&&a(i[n]);else i instanceof _i&&t!==i&&a(i)}},Wi={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){Jr.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:qi.getInterpolateFunction.bind(this),setTranslate:qi.setTranslate.bind(this),setTransition:qi.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},Gi={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var n=Kr(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is(".".concat(this.params.pagination.bulletClass))&&n[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?this.a11y.disableEl(n):this.a11y.enableEl(n)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,r){var i=Kr(r);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)}},Ki={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;Jr.extend(e,{a11y:{liveRegion:Kr('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(Gi).forEach((function(t){e.a11y[t]=Gi[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},Ji={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=Jr.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),n)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},Xi={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;Jr.extend(e,{autoplay:{running:!1,paused:!1,run:Ji.run.bind(e),start:Ji.start.bind(e),stop:Ji.stop.bind(e),pause:Ji.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},Qi={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var n=this.slides.eq(t),r=-n[0].swiperSlideOffset;this.params.virtualTranslate||(r-=this.translate);var i=0;this.isHorizontal()||(i=r,r=0);var a=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:a}).transform("translate3d(".concat(r,"px, ").concat(i,"px, 0px)"))}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}}))}}},Zi={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){Jr.extend(this,{fadeEffect:{setTranslate:Qi.setTranslate.bind(this),setTransition:Qi.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"fade"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Jr.extend(this.params,e),Jr.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},ea={setTranslate:function(){var e,t=this.$el,n=this.$wrapperEl,r=this.slides,i=this.width,a=this.height,o=this.rtlTranslate,s=this.size,l=this.params.cubeEffect,c=this.isHorizontal(),u=this.virtual&&this.params.virtual.enabled,d=0;l.shadow&&(c?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=Kr('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:"".concat(i,"px")})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=Kr('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var h=0;h<r.length;h+=1){var p=r.eq(h),f=h;u&&(f=parseInt(p.attr("data-swiper-slide-index"),10));var m=90*f,v=Math.floor(m/360);o&&(m=-m,v=Math.floor(-m/360));var g=Math.max(Math.min(p[0].progress,1),-1),y=0,b=0,_=0;f%4==0?(y=4*-v*s,_=0):(f-1)%4==0?(y=0,_=4*-v*s):(f-2)%4==0?(y=s+4*v*s,_=s):(f-3)%4==0&&(y=-s,_=3*s+4*s*v),o&&(y=-y),c||(b=y,y=0);var w="rotateX(".concat(c?0:-m,"deg) rotateY(").concat(c?m:0,"deg) translate3d(").concat(y,"px, ").concat(b,"px, ").concat(_,"px)");if(g<=1&&g>-1&&(d=90*f+90*g,o&&(d=90*-f-90*g)),p.transform(w),l.slideShadows){var k=c?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),E=c?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===k.length&&(k=Kr('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),p.append(k)),0===E.length&&(E=Kr('<div class="swiper-slide-shadow-'.concat(c?"right":"bottom",'"></div>')),p.append(E)),k.length&&(k[0].style.opacity=Math.max(-g,0)),E.length&&(E[0].style.opacity=Math.max(g,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -".concat(s/2,"px"),"-moz-transform-origin":"50% 50% -".concat(s/2,"px"),"-ms-transform-origin":"50% 50% -".concat(s/2,"px"),"transform-origin":"50% 50% -".concat(s/2,"px")}),l.shadow)if(c)e.transform("translate3d(0px, ".concat(i/2+l.shadowOffset,"px, ").concat(-i/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(l.shadowScale,")"));else{var T=Math.abs(d)-90*Math.floor(Math.abs(d)/90),S=1.5-(Math.sin(2*T*Math.PI/360)/2+Math.cos(2*T*Math.PI/360)/2),C=l.shadowScale,x=l.shadowScale/S,M=l.shadowOffset;e.transform("scale3d(".concat(C,", 1, ").concat(x,") translate3d(0px, ").concat(a/2+M,"px, ").concat(-a/2/x,"px) rotateX(-90deg)"))}var $=Ei.isSafari||Ei.isUiWebView?-s/2:0;n.transform("translate3d(0px,0,".concat($,"px) rotateX(").concat(this.isHorizontal()?0:d,"deg) rotateY(").concat(this.isHorizontal()?-d:0,"deg)"))},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},ta={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){Jr.extend(this,{cubeEffect:{setTranslate:ea.setTranslate.bind(this),setTransition:ea.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"cube")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};Jr.extend(this.params,e),Jr.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},na={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,n=0;n<e.length;n+=1){var r=e.eq(n),i=r[0].progress;this.params.flipEffect.limitRotation&&(i=Math.max(Math.min(r[0].progress,1),-1));var a=-180*i,o=0,s=-r[0].swiperSlideOffset,l=0;if(this.isHorizontal()?t&&(a=-a):(l=s,s=0,o=-a,a=0),r[0].style.zIndex=-Math.abs(Math.round(i))+e.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),u=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=Kr('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"left":"top",'"></div>')),r.append(c)),0===u.length&&(u=Kr('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"right":"bottom",'"></div>')),r.append(u)),c.length&&(c[0].style.opacity=Math.max(-i,0)),u.length&&(u[0].style.opacity=Math.max(i,0))}r.transform("translate3d(".concat(s,"px, ").concat(l,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(a,"deg)"))}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.eq(r).transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},ra={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){Jr.extend(this,{flipEffect:{setTranslate:na.setTranslate.bind(this),setTransition:na.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"flip")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Jr.extend(this.params,e),Jr.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},ia={setTranslate:function(){for(var e=this.width,t=this.height,n=this.slides,r=this.$wrapperEl,i=this.slidesSizesGrid,a=this.params.coverflowEffect,o=this.isHorizontal(),s=this.translate,l=o?e/2-s:t/2-s,c=o?a.rotate:-a.rotate,u=a.depth,d=0,h=n.length;d<h;d+=1){var p=n.eq(d),f=i[d],m=(l-p[0].swiperSlideOffset-f/2)/f*a.modifier,v=o?c*m:0,g=o?0:c*m,y=-u*Math.abs(m),b=a.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(a.stretch)/100*f);var _=o?0:b*m,w=o?b*m:0;Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0);var k="translate3d(".concat(w,"px,").concat(_,"px,").concat(y,"px)  rotateX(").concat(g,"deg) rotateY(").concat(v,"deg)");if(p.transform(k),p[0].style.zIndex=1-Math.abs(Math.round(m)),a.slideShadows){var E=o?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),T=o?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===E.length&&(E=Kr('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),p.append(E)),0===T.length&&(T=Kr('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),p.append(T)),E.length&&(E[0].style.opacity=m>0?m:0),T.length&&(T[0].style.opacity=-m>0?-m:0)}}(Xr.pointerEvents||Xr.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin="".concat(l,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},aa={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){Jr.extend(this,{coverflowEffect:{setTranslate:ia.setTranslate.bind(this),setTransition:ia.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push("".concat(this.params.containerModifierClass,"coverflow")),this.classNames.push("".concat(this.params.containerModifierClass,"3d")),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},oa={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,Jr.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Jr.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Jr.isObject(e.swiper)&&(this.thumbs.swiper=new t(Jr.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,n=e.clickedSlide;if(!(n&&Kr(n).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var r;if(r=e.params.loop?parseInt(Kr(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var i=this.activeIndex;this.slides.eq(i).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,i=this.activeIndex);var a=this.slides.eq(i).prevAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index(),o=this.slides.eq(i).nextAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index();r=void 0===a?o:void 0===o?a:o-i<i-a?o:a}this.slideTo(r)}}},update:function(e){var t=this.thumbs.swiper;if(t){var n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView,r=this.params.thumbs.autoScrollOffset,i=r&&!t.params.loop;if(this.realIndex!==t.realIndex||i){var a,o,s=t.activeIndex;if(t.params.loop){t.slides.eq(s).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,s=t.activeIndex);var l=t.slides.eq(s).prevAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index(),c=t.slides.eq(s).nextAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index();a=void 0===l?c:void 0===c?l:c-s==s-l?s:c-s<s-l?c:l,o=this.activeIndex>this.previousIndex?"next":"prev"}else o=(a=this.realIndex)>this.previousIndex?"next":"prev";i&&(a+="next"===o?r:-1*r),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(a)<0&&(t.params.centeredSlides?a=a>s?a-Math.floor(n/2)+1:a+Math.floor(n/2)-1:a>s&&(a=a-n+1),t.slideTo(a,e?0:void 0))}var u=1,d=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(u=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),t.slides.removeClass(d),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var h=0;h<u;h+=1)t.$wrapperEl.children('[data-swiper-slide-index="'.concat(this.realIndex+h,'"]')).addClass(d);else for(var p=0;p<u;p+=1)t.slides.eq(this.realIndex+p).addClass(d)}}},sa={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){Jr.extend(this,{thumbs:{swiper:null,init:oa.init.bind(this),update:oa.update.bind(this),onThumbClick:oa.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}};_i.use([wi,Ti,ki,Si,xi,$i,Pi,Di,Ai,Ri,Bi,Fi,Ui,Vi,Wi,Ki,Xi,Zi,ta,ra,aa,sa]);var la=_i;function ca(e){var t=this,n=k(e);if(0!==n.length&&!n[0].swiper){var r,i,a,o={};n.hasClass("tabs-swipeable-wrap")&&(n.addClass("swiper-container").children(".tabs").addClass("swiper-wrapper").children(".tab").addClass("swiper-slide"),r=n.children(".tabs").children(".tab-active").index(),i=!0,a=n.find(".tabs-routable").length>0),n.attr("data-swiper")?o=JSON.parse(n.attr("data-swiper")):n[0].f7SwiperParams?o=n[0].f7SwiperParams:(o=n.dataset(),Object.keys(o).forEach((function(e){var t=o[e];if("string"==typeof t&&0===t.indexOf("{")&&t.indexOf("}")>0)try{o[e]=JSON.parse(t)}catch(e){}}))),void 0===o.initialSlide&&void 0!==r&&(o.initialSlide=r);var s=t.swiper.create(n[0],o);n.parents(".popup, .login-screen, .sheet-modal, .popover").on("modal:open",l),n.parents(".panel").on("panel:open",l),n.parents(".tab").on("tab:show",l),s.on("beforeDestroy",(function(){n.parents(".popup, .login-screen, .sheet-modal, .popover").off("modal:open",l),n.parents(".panel").off("panel:open",l),n.parents(".tab").off("tab:show",l)})),i&&s.on("slideChange",(function(){if(a){var e=t.views.get(n.parents(".view"));e||(e=t.views.main);var r=e.router,i=r.findTabRoute(s.slides.eq(s.activeIndex)[0]);i&&setTimeout((function(){r.navigate(i.path)}),0)}else t.tab.show({tabEl:s.slides.eq(s.activeIndex)})}))}function l(){s.update()}}var ua={name:"swiper",static:{Swiper:la},create:function(){this.swiper=X({defaultSelector:".swiper-container",constructor:la,domProp:"swiper"})},on:{pageBeforeRemove:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){t.swiper.destroy(n)}))},pageMounted:function(e){var t=this;e.$el.find(".tabs-swipeable-wrap").each((function(e,n){ca.call(t,n)}))},pageInit:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){ca.call(t,n)}))},pageReinit:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){var r=t.swiper.get(n);r&&r.update&&r.update()}))},tabMounted:function(e){var t=this;k(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){ca.call(t,n)}))},tabShow:function(e){var t=this;k(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){var r=t.swiper.get(n);r&&r.update&&r.update()}))},tabBeforeRemove:function(e){var t=this;k(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){t.swiper.destroy(n)}))}},vnode:{"swiper-init":{insert:function(e){var t=e.elm;ca.call(this,t)},destroy:function(e){var t=e.elm;this.swiper.destroy(t)}},"tabs-swipeable-wrap":{insert:function(e){var t=e.elm;ca.call(this,t)},destroy:function(e){var t=e.elm;this.swiper.destroy(t)}}}};function da(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ha=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(da()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t);a.app=e;var o=z.extend({on:{}},e.params.photoBrowser);return a.useModulesParams(o),a.params=z.extend(o,i),z.extend(a,{exposed:!1,opened:!1,activeIndex:a.params.swiper.initialSlide,url:a.params.url,swipeToClose:{allow:!0,isTouched:!1,diff:void 0,start:void 0,current:void 0,started:!1,activeSlide:void 0,timeStart:void 0}}),a.useModules(),a.init(),t}return T()(r,[{key:"onSlideChange",value:function(e){var t=this;t.activeIndex=e.activeIndex;var n=e.activeIndex+1,r=t.params.virtualSlides?t.params.photos.length:e.slides.length;e.params.loop&&(r-=2,(n-=e.loopedSlides)<1&&(n=r+n),n>r&&(n-=r));var i,a=t.params.virtualSlides?e.$wrapperEl.find('.swiper-slide[data-swiper-slide-index="'.concat(e.activeIndex,'"]')):e.slides.eq(e.activeIndex),o=t.params.virtualSlides?e.$wrapperEl.find('.swiper-slide[data-swiper-slide-index="'.concat(e.previousIndex,'"]')):e.slides.eq(e.previousIndex),s=t.$el.find(".photo-browser-current"),l=t.$el.find(".photo-browser-total");if("page"===t.params.type&&t.params.navbar&&0===s.length&&"ios"===t.app.theme&&(i=t.app.navbar.getElByPage(t.$el))&&(s=k(i).find(".photo-browser-current"),l=k(i).find(".photo-browser-total")),s.length&&l.length&&(s.text(n),l.text(r),i||(i=s.parents(".navbar")[0]),i&&t.app.navbar.size(i)),t.captions.length>0){var c=e.params.loop?a.attr("data-swiper-slide-index"):t.activeIndex;t.$captionsContainerEl.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active"),t.$captionsContainerEl.find('[data-caption-index="'.concat(c,'"]')).addClass("photo-browser-caption-active")}var u=o.find("video");u.length>0&&"pause"in u[0]&&u[0].pause()}},{key:"onTouchStart",value:function(){var e=this.swipeToClose;e.allow&&(e.isTouched=!0)}},{key:"onTouchMove",value:function(e){var t=this,n=t.swipeToClose;n.isTouched&&(n.started||(n.started=!0,n.start="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,t.params.virtualSlides?n.activeSlide=t.swiper.$wrapperEl.children(".swiper-slide-active"):n.activeSlide=t.swiper.slides.eq(t.swiper.activeIndex),n.timeStart=z.now()),e.preventDefault(),n.current="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,n.diff=n.start-n.current,t.$el.transition(0).transform("translate3d(0,".concat(-n.diff,"px,0)")))}},{key:"onTouchEnd",value:function(){var e=this,t=e.swipeToClose;if(t.isTouched=!1,t.started){t.started=!1,t.allow=!1;var n=Math.abs(t.diff),r=(new Date).getTime()-t.timeStart;r<300&&n>20||r>=300&&n>100?z.nextTick((function(){e.$el&&(t.diff<0?e.$el.addClass("swipe-close-to-bottom"):e.$el.addClass("swipe-close-to-top")),e.emit("local::swipeToClose",e),e.$el.transform("").transition(""),e.close(),t.allow=!0})):(0!==n?e.$el.addClass("photo-browser-transitioning").transitionEnd((function(){t.allow=!0,e.$el.removeClass("photo-browser-transitioning")})):t.allow=!0,z.nextTick((function(){e.$el.transform("").transition("")})))}else t.started=!1}},{key:"renderNavbar",value:function(){var e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);var t=e.params.iconsColor;e.params.iconsColor||"dark"!==e.params.theme||(t="white");var n="ios"!==e.app.theme&&"aurora"!==e.app.theme||!e.params.pageBackLinkText?"":e.params.pageBackLinkText,r=void 0===e.params.navbarShowCount?e.params.photos.length>1:e.params.navbarShowCount,i="page"!==e.params.type;return'\n      <div class="navbar navbar-photo-browser '.concat("dark"===e.params.theme?"navbar-photo-browser-dark":"",'">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner navbar-inner-centered-title sliding">\n          ').concat(i?"":'\n          <div class="left">\n            <a class="link '.concat(n?"":"icon-only",' back">\n              <i class="icon icon-back ').concat(t?"color-".concat(t):"",'"></i>\n              ').concat(n?"<span>".concat(n,"</span>"):"","\n            </a>\n          </div>\n          "),"\n          ").concat(r?'\n          <div class="title">\n            <span class="photo-browser-current"></span>\n            <span class="photo-browser-of">'.concat(e.params.navbarOfText,'</span>\n            <span class="photo-browser-total"></span>\n          </div>\n          '):"","\n          ").concat(i?'\n          <div class="right">\n            <a class="link popup-close" data-popup=".photo-browser-popup">\n              <span>'.concat(e.params.popupCloseLinkText,"</span>\n            </a>\n          </div>\n          "):"","\n        </div>\n      </div>\n    ").trim()}},{key:"renderToolbar",value:function(){var e=this;if(e.params.renderToolbar)return e.params.renderToolbar.call(e);var t=e.params.iconsColor;return e.params.iconsColor||"dark"!==e.params.theme||(t="white"),'\n      <div class="toolbar toolbar-bottom tabbar">\n        <div class="toolbar-inner">\n          <a class="link photo-browser-prev">\n            <i class="icon icon-back '.concat(t?"color-".concat(t):"",'"></i>\n          </a>\n          <a class="link photo-browser-next">\n            <i class="icon icon-forward ').concat(t?"color-".concat(t):"",'"></i>\n          </a>\n        </div>\n      </div>\n    ').trim()}},{key:"renderCaption",value:function(e,t){return this.params.renderCaption?this.params.renderCaption.call(this,e,t):'\n      <div class="photo-browser-caption" data-caption-index="'.concat(t,'">\n        ').concat(e,"\n      </div>\n    ").trim()}},{key:"renderObject",value:function(e,t){return this.params.renderObject?this.params.renderObject.call(this,e,t):'\n      <div class="photo-browser-slide photo-browser-object-slide swiper-slide" data-swiper-slide-index="'.concat(t,'">').concat(e.html?e.html:e,"</div>\n    ")}},{key:"renderLazyPhoto",value:function(e,t){return this.params.renderLazyPhoto?this.params.renderLazyPhoto.call(this,e,t):'\n      <div class="photo-browser-slide photo-browser-slide-lazy swiper-slide" data-swiper-slide-index="'.concat(t,'">\n          <div class="swiper-lazy-preloader"></div>\n          <span class="swiper-zoom-container">\n              <img data-src="').concat(e.url?e.url:e,'" class="swiper-lazy">\n          </span>\n      </div>\n    ').trim()}},{key:"renderPhoto",value:function(e,t){return this.params.renderPhoto?this.params.renderPhoto.call(this,e,t):'\n      <div class="photo-browser-slide swiper-slide" data-swiper-slide-index="'.concat(t,'">\n        <span class="swiper-zoom-container">\n          <img src="').concat(e.url?e.url:e,'">\n        </span>\n      </div>\n    ').trim()}},{key:"render",value:function(){var e=this;return e.params.render?e.params.render.call(e,e.params):'\n      <div class="photo-browser photo-browser-'.concat(e.params.theme,'">\n        <div class="view">\n          <div class="page photo-browser-page photo-browser-page-').concat(e.params.theme," no-toolbar ").concat(e.params.navbar?"":"no-navbar",'" data-name="photo-browser-page">\n            ').concat(e.params.navbar?e.renderNavbar():"","\n            ").concat(e.params.toolbar?e.renderToolbar():"",'\n            <div class="photo-browser-captions photo-browser-captions-').concat(e.params.captionsTheme||e.params.theme,'">\n              ').concat(e.params.photos.map((function(t,n){return t.caption?e.renderCaption(t.caption,n):""})).join(" "),'\n            </div>\n            <div class="photo-browser-swiper-container swiper-container">\n              <div class="photo-browser-swiper-wrapper swiper-wrapper">\n                ').concat(e.params.virtualSlides?"":e.params.photos.map((function(t,n){return t.html||("string"==typeof t||t instanceof String)&&t.indexOf("<")>=0&&t.indexOf(">")>=0?e.renderObject(t,n):!0===e.params.swiper.lazy||e.params.swiper.lazy&&e.params.swiper.lazy.enabled?e.renderLazyPhoto(t,n):e.renderPhoto(t,n)})).join(" "),"\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ").trim()}},{key:"renderStandalone",value:function(){return this.params.renderStandalone?this.params.renderStandalone.call(this):'<div class="popup photo-browser-popup photo-browser-standalone popup-tablet-fullscreen">'.concat(this.render(),"</div>")}},{key:"renderPage",value:function(){return this.params.renderPage?this.params.renderPage.call(this):this.render()}},{key:"renderPopup",value:function(){return this.params.renderPopup?this.params.renderPopup.call(this):'<div class="popup photo-browser-popup">'.concat(this.render(),"</div>")}},{key:"onOpen",value:function(e,t){var n,r=this,i=r.app,a=k(t);a[0].f7PhotoBrowser=r,r.$el=a,r.el=a[0],r.openedIn=e,r.opened=!0,r.$swiperContainerEl=r.$el.find(".photo-browser-swiper-container"),r.$swiperWrapperEl=r.$el.find(".photo-browser-swiper-wrapper"),r.slides=r.$el.find(".photo-browser-slide"),r.$captionsContainerEl=r.$el.find(".photo-browser-captions"),r.captions=r.$el.find(".photo-browser-caption");var o=z.extend({},r.params.swiper,{initialSlide:r.activeIndex,on:{click:function(e){clearTimeout(n),r.params.exposition&&(n=setTimeout((function(){r.expositionToggle()}),350)),r.emit("local::tap",e),r.emit("local::click",e)},doubleClick:function(e){clearTimeout(n),r.emit("local::doubleTap",e),r.emit("local::doubleClick",e)},slideChange:function(){var e=this;r.onSlideChange(e);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.emit.apply(r,["local::slideChange"].concat(n))},transitionStart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::transitionStart"].concat(t))},transitionEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::transitionEnd"].concat(t))},slideChangeTransitionStart:function(){var e=this;r.onSlideChange(e);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.emit.apply(r,["local::slideChangeTransitionStart"].concat(n))},slideChangeTransitionEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::slideChangeTransitionEnd"].concat(t))},lazyImageLoad:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::lazyImageLoad"].concat(t))},lazyImageReady:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];k(i).removeClass("photo-browser-slide-lazy"),r.emit.apply(r,["local::lazyImageReady"].concat(t))}}});r.params.swipeToClose&&"page"!==r.params.type&&z.extend(o.on,{touchStart:function(e){r.onTouchStart(e),r.emit("local::touchStart",e)},touchMoveOpposite:function(e){r.onTouchMove(e),r.emit("local::touchMoveOpposite",e)},touchEnd:function(e){r.onTouchEnd(e),r.emit("local::touchEnd",e)}}),r.params.virtualSlides&&z.extend(o,{virtual:{slides:r.params.photos,renderSlide:function(e,t){return e.html||("string"==typeof e||e instanceof String)&&e.indexOf("<")>=0&&e.indexOf(">")>=0?r.renderObject(e,t):!0===r.params.swiper.lazy||r.params.swiper.lazy&&r.params.swiper.lazy.enabled?r.renderLazyPhoto(e,t):r.renderPhoto(e,t)}}}),r.swiper=i.swiper.create(r.$swiperContainerEl,o),0===r.activeIndex&&r.onSlideChange(r.swiper),r.$el&&r.$el.trigger("photobrowser:open"),r.emit("local::open photoBrowserOpen",r)}},{key:"onOpened",value:function(){var e=this;e.$el&&"standalone"===e.params.type&&e.$el.css("animation","none"),e.$el&&e.$el.trigger("photobrowser:opened"),e.emit("local::opened photoBrowserOpened",e)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.swiper&&e.swiper.destroy&&(e.swiper.destroy(!0,!1),e.swiper=null,delete e.swiper),e.$el&&e.$el.trigger("photobrowser:close"),e.emit("local::close photoBrowserClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.$el&&e.$el.trigger("photobrowser:closed"),e.emit("local::closed photoBrowserClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;var t=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.view.$el.addClass("with-photo-browser-page with-photo-browser-page-".concat(e.params.theme)),e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.view.$el.removeClass("with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-".concat(e.params.theme)),e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}}}}),e}},{key:"openStandalone",value:function(){var e=this;if(e.opened)return e;var t={backdrop:!1,content:e.renderStandalone(),on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;var t={content:e.renderPopup(),push:e.params.popupPush,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"expositionEnable",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.addClass("with-photo-browser-page-exposed"),e.$el&&e.$el.addClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.addClass("photo-browser-captions-exposed"),e.exposed=!0,e}},{key:"expositionDisable",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.removeClass("with-photo-browser-page-exposed"),e.$el&&e.$el.removeClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.removeClass("photo-browser-captions-exposed"),e.exposed=!1,e}},{key:"expositionToggle",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.toggleClass("with-photo-browser-page-exposed"),e.$el&&e.$el.toggleClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.toggleClass("photo-browser-captions-exposed"),e.exposed=!e.exposed,e}},{key:"open",value:function(e){var t=this,n=t.params.type;return t.opened?(t.swiper&&void 0!==e&&t.swiper.slideTo(parseInt(e,10)),t):(void 0!==e&&(t.activeIndex=e),"standalone"===n&&t.openStandalone(),"page"===n&&t.openPage(),"popup"===n&&t.openPopup(),t)}},{key:"close",value:function(){var e=this;return e.opened?(e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back():(e.modal.once("modalClosed",(function(){z.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy photoBrowserBeforeDestroy",e),e.$el&&(e.$el.trigger("photobrowser:beforedestroy"),e.$el[0].f7PhotoBrowser=null,delete e.$el[0].f7PhotoBrowser),z.deleteProps(e),e.destroyed=!0,e=null}},{key:"view",get:function(){var e=this.params,t=this.app;return e.view||t.views.main}}]),r}(G),pa={name:"photoBrowser",params:{photoBrowser:{photos:[],exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",captionsTheme:void 0,iconsColor:void 0,popupPush:!1,swipeToClose:!0,pageBackLinkText:"Back",popupCloseLinkText:"Close",navbarOfText:"of",navbarShowCount:void 0,view:void 0,url:"photos/",routableModals:!0,virtualSlides:!0,renderNavbar:void 0,renderToolbar:void 0,renderCaption:void 0,renderObject:void 0,renderLazyPhoto:void 0,renderPhoto:void 0,renderPage:void 0,renderPopup:void 0,renderStandalone:void 0,swiper:{initialSlide:0,spaceBetween:20,speed:300,loop:!1,preloadImages:!0,navigation:{nextEl:".photo-browser-next",prevEl:".photo-browser-prev"},zoom:{enabled:!0,maxRatio:3,minRatio:1},lazy:{enabled:!0}}}},create:function(){this.photoBrowser=X({defaultSelector:".photo-browser-popup, .photo-browser-page",constructor:ha,app:this,domProp:"f7PhotoBrowser"})},static:{PhotoBrowser:ha}};function fa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ma=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(fa()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r);var a=z.extend({on:{}},e.params.notification,t);i=n.call(this,e,a);var o=C()(i);o.app=e,o.params=a;var s,l,c,h,p,f,m,v=o.params,g=v.icon,y=v.title,b=v.titleRightText,_=v.subtitle,w=v.text,E=v.closeButton,T=v.closeTimeout,S=v.cssClass,x=v.closeOnClick;if(o.params.el)s=k(o.params.el);else{var M=o.render({icon:g,title:y,titleRightText:b,subtitle:_,text:w,closeButton:E,cssClass:S});s=k(M)}if(s&&s.length>0&&s[0].f7Modal)return L()(i,s[0].f7Modal);if(0===s.length)return L()(i,o.destroy());z.extend(o,{$el:s,el:s[0],type:"notification"}),s[0].f7Modal=o,E&&s.find(".notification-close-button").on("click",(function(){o.close()})),s.on("click",(function(e){E&&k(e.target).closest(".notification-close-button").length||(o.emit("local::click notificationClick",o),x&&o.close())})),o.on("beforeDestroy",(function(){s.off("click")}));var $,P={};function O(e){l||(l=!0,c=!1,h=void 0,f=z.now(),P.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,P.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY)}function D(e){if(l){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===h&&(h=!!(h||Math.abs(n-P.y)<Math.abs(t-P.x))),h)l=!1;else{e.preventDefault(),c||(o.$el.removeClass("notification-transitioning"),o.$el.transition(0),m=o.$el[0].offsetHeight/2),c=!0;var r=p=n-P.y;p>0&&(r=Math.pow(p,.8)),o.$el.transform("translate3d(0, ".concat(r,"px, 0)"))}}}function I(){if(!l||!c)return l=!1,void(c=!1);if(l=!1,c=!1,0!==p){var e=z.now()-f;o.$el.transition(""),o.$el.addClass("notification-transitioning"),o.$el.transform(""),(p<-10&&e<300||-p>=m/1)&&o.close()}}return o.on("open",(function(){o.params.swipeToClose&&(o.$el.on(e.touchEvents.start,O,{passive:!0}),e.on("touchmove:active",D),e.on("touchend:passive",I)),k(".notification.modal-in").each((function(t,n){var r=e.notification.get(n);n!==o.el&&r&&r.close()})),T&&function e(){$=z.nextTick((function(){l&&c?e():o.close()}),T)}()})),o.on("close beforeDestroy",(function(){o.params.swipeToClose&&(o.$el.off(e.touchEvents.start,O,{passive:!0}),e.off("touchmove:active",D),e.off("touchend:passive",I)),d.b.clearTimeout($)})),L()(i,o)}return T()(r,[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.icon,n=e.title,r=e.titleRightText,i=e.subtitle,a=e.text,o=e.closeButton,s=e.cssClass;return'\n      <div class="notification '.concat(s||"",'">\n        <div class="notification-header">\n          ').concat(t?'<div class="notification-icon">'.concat(t,"</div>"):"","\n          ").concat(n?'<div class="notification-title">'.concat(n,"</div>"):"","\n          ").concat(r?'<div class="notification-title-right-text">'.concat(r,"</div>"):"","\n          ").concat(o?'<span class="notification-close-button"></span>':"",'\n        </div>\n        <div class="notification-content">\n          ').concat(i?'<div class="notification-subtitle">'.concat(i,"</div>"):"","\n          ").concat(a?'<div class="notification-text">'.concat(a,"</div>"):"","\n        </div>\n      </div>\n    ").trim()}}]),r}(Jt),va={name:"notification",static:{Notification:ma},create:function(){this.notification=z.extend({},ne({app:this,constructor:ma,defaultSelector:".notification.modal-in"}))},params:{notification:{icon:null,title:null,titleRightText:null,subtitle:null,text:null,closeButton:!1,closeTimeout:null,closeOnClick:!1,swipeToClose:!0,cssClass:null,render:null}}};function ga(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ya=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(ga()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t);a.app=e;var o,s,l=z.extend({on:{}},e.params.autocomplete);void 0===l.searchbarDisableButton&&(l.searchbarDisableButton="aurora"!==e.theme),a.useModulesParams(l),a.params=z.extend(l,i),a.params.openerEl&&(o=k(a.params.openerEl)).length&&(o[0].f7Autocomplete=a),a.params.inputEl&&(s=k(a.params.inputEl)).length&&(s[0].f7Autocomplete=a);var c=z.id(),d=i.url;!d&&o&&o.length&&(o.attr("href")?d=o.attr("href"):o.find("a").length>0&&(d=o.find("a").attr("href"))),d&&"#"!==d&&""!==d||(d=a.params.url);var h=a.params.multiple?"checkbox":"radio";z.extend(a,{$openerEl:o,openerEl:o&&o[0],$inputEl:s,inputEl:s&&s[0],id:c,url:d,value:a.params.value||[],inputType:h,inputName:"".concat(h,"-").concat(c),$modalEl:void 0,$dropdownEl:void 0});var p="";function f(){var e=a.$inputEl.val().trim();a.params.source&&a.params.source.call(a,e,(function(t){var n,r,i,o="",l=a.params.limit?Math.min(a.params.limit,t.length):t.length;a.items=t,a.params.highlightMatches&&(e=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n=new RegExp("(".concat(e,")"),"i"));for(var c=0;c<l;c+=1){var u="object"===N()(t[c])?t[c][a.params.valueProperty]:t[c],d="object"===N()(t[c])?t[c][a.params.textProperty]:t[c];0===c&&(r=u,i=a.items[c]),o+=a.renderItem({value:u,text:a.params.highlightMatches?d.replace(n,"<b>$1</b>"):d},c)}if(""===o&&""===e&&a.params.dropdownPlaceholderText&&(o+=a.renderItem({placeholder:!0,text:a.params.dropdownPlaceholderText})),a.$dropdownEl.find("ul").html(o),a.params.typeahead){if(!r||!i)return;if(0!==r.toLowerCase().indexOf(e.toLowerCase()))return;if(p.toLowerCase()===e.toLowerCase())return void(a.value=[]);if(0===p.toLowerCase().indexOf(e.toLowerCase()))return p=e,void(a.value=[]);s.val(r),s[0].setSelectionRange(e.length,r.length);var h="object"===N()(a.value[0])?a.value[0][a.params.valueProperty]:a.value[0];h&&r.toLowerCase()===h.toLowerCase()||(a.value=[i],a.emit("local::change autocompleteChange",[i]))}p=e}))}function m(){var e,t,n,r=this.value;if(k(this).parents(".autocomplete-values").length>0){if("checkbox"===a.inputType&&!this.checked){for(var i=0;i<a.value.length;i+=1)(n="string"==typeof a.value[i]?a.value[i]:a.value[i][a.params.valueProperty])!==r&&1*n!=1*r||a.value.splice(i,1);a.updateValues(),a.emit("local::change autocompleteChange",a.value)}}else{for(var o=0;o<a.items.length;o+=1)(t="object"===N()(a.items[o])?a.items[o][a.params.valueProperty]:a.items[o])!==r&&1*t!=1*r||(e=a.items[o]);if("radio"===a.inputType)a.value=[e];else if(this.checked)a.value.push(e);else for(var s=0;s<a.value.length;s+=1)(n="object"===N()(a.value[s])?a.value[s][a.params.valueProperty]:a.value[s])!==r&&1*n!=1*r||a.value.splice(s,1);a.updateValues(),("radio"===a.inputType&&this.checked||"checkbox"===a.inputType)&&a.emit("local::change autocompleteChange",a.value)}}function v(e){var t=k(e.target);t.is(a.$inputEl[0])||a.$dropdownEl&&t.closest(a.$dropdownEl[0]).length||a.close()}function g(){a.open()}function y(){a.open()}function b(){a.$dropdownEl.find("label.active-state").length>0||setTimeout((function(){a.close()}),0)}function _(){a.positionDropdown()}function w(e){if(a.opened){if(27===e.keyCode)return e.preventDefault(),void a.$inputEl.blur();if(13===e.keyCode){var t=a.$dropdownEl.find(".autocomplete-dropdown-selected label");return t.length?(e.preventDefault(),t.trigger("click"),void a.$inputEl.blur()):void(a.params.typeahead&&(e.preventDefault(),a.$inputEl.blur()))}if(40===e.keyCode||38===e.keyCode){e.preventDefault();var n,r=a.$dropdownEl.find(".autocomplete-dropdown-selected");r.length&&(n=r[40===e.keyCode?"next":"prev"]("li")).length||(n=a.$dropdownEl.find("li").eq(40===e.keyCode?0:a.$dropdownEl.find("li").length-1)),n.hasClass("autocomplete-dropdown-placeholder")||(r.removeClass("autocomplete-dropdown-selected"),n.addClass("autocomplete-dropdown-selected"))}}}function E(){for(var e,t=k(this),n=0;n<a.items.length;n+=1){var r="object"===N()(a.items[n])?a.items[n][a.params.valueProperty]:a.items[n],i=t.attr("data-value");r!==i&&1*r!=1*i||(e=a.items[n])}a.params.updateInputValueOnSelect&&(a.$inputEl.val("object"===N()(e)?e[a.params.valueProperty]:e),a.$inputEl.trigger("input change")),a.value=[e],a.emit("local::change autocompleteChange",[e]),a.close()}return a.attachEvents=function(){"dropdown"!==a.params.openIn&&a.$openerEl&&a.$openerEl.on("click",g),"dropdown"===a.params.openIn&&a.$inputEl&&(a.$inputEl.on("focus",y),a.$inputEl.on(a.params.inputEvents,f),e.device.android?k("html").on("click",v):a.$inputEl.on("blur",b),a.$inputEl.on("keydown",w))},a.detachEvents=function(){"dropdown"!==a.params.openIn&&a.$openerEl&&a.$openerEl.off("click",g),"dropdown"===a.params.openIn&&a.$inputEl&&(a.$inputEl.off("focus",y),a.$inputEl.off(a.params.inputEvents,f),e.device.android?k("html").off("click",v):a.$inputEl.off("blur",b),a.$inputEl.off("keydown",w))},a.attachDropdownEvents=function(){a.$dropdownEl.on("click","label",E),e.on("resize",_)},a.detachDropdownEvents=function(){a.$dropdownEl.off("click","label",E),e.off("resize",_)},a.attachPageEvents=function(){a.$el.on("change",'input[type="radio"], input[type="checkbox"]',m),a.params.closeOnSelect&&!a.params.multiple&&a.$el.once("click",".list label",(function(){z.nextTick((function(){a.close()}))}))},a.detachPageEvents=function(){a.$el.off("change",'input[type="radio"], input[type="checkbox"]',m)},a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"positionDropdown",value:function(){var e=this,t=e.$inputEl,n=e.app,r=e.$dropdownEl,i=t.parents(".page-content");if(0!==i.length){var a,o=t.offset(),s=t[0].offsetWidth,l=t[0].offsetHeight,c=t.parents(".list");c.parents().each((function(e,t){if(!a){var n=k(t);n.parent(i).length&&(a=n)}}));var u,d=c.offset(),h=parseInt(i.css("padding-bottom"),10),p=c.length>0?d.left-i.offset().left:0,f=o.left-(c.length>0?d.left:0)-(n.rtl,0),m=o.top-(i.offset().top-i[0].scrollTop),v=i[0].scrollHeight-h-(m+i[0].scrollTop)-t[0].offsetHeight,g=n.rtl?"padding-right":"padding-left";c.length&&!e.params.expandInput&&(u=(n.rtl?c[0].offsetWidth-f-s:f)-("md"===n.theme?16:15)),r.css({left:"".concat(c.length>0?p:f,"px"),top:"".concat(m+i[0].scrollTop+l,"px"),width:"".concat(c.length>0?c[0].offsetWidth:s,"px")}),r.children(".autocomplete-dropdown-inner").css(Z()({maxHeight:"".concat(v,"px")},g,c.length>0&&!e.params.expandInput?"".concat(u,"px"):""))}}},{key:"focus",value:function(){this.$el.find("input[type=search]").focus()}},{key:"source",value:function(e){var t=this;if(t.params.source){var n=t.$el;t.params.source.call(t,e,(function(r){var i="",a=t.params.limit?Math.min(t.params.limit,r.length):r.length;t.items=r;for(var o=0;o<a;o+=1){for(var s=!1,l="object"===N()(r[o])?r[o][t.params.valueProperty]:r[o],c=0;c<t.value.length;c+=1){var u="object"===N()(t.value[c])?t.value[c][t.params.valueProperty]:t.value[c];u!==l&&1*u!=1*l||(s=!0)}i+=t.renderItem({value:l,text:"object"===N()(r[o])?r[o][t.params.textProperty]:r[o],inputType:t.inputType,id:t.id,inputName:t.inputName,selected:s},o)}n.find(".autocomplete-found ul").html(i),0===r.length?0!==e.length?(n.find(".autocomplete-not-found").show(),n.find(".autocomplete-found, .autocomplete-values").hide()):(n.find(".autocomplete-values").show(),n.find(".autocomplete-found, .autocomplete-not-found").hide()):(n.find(".autocomplete-found").show(),n.find(".autocomplete-not-found, .autocomplete-values").hide())}))}}},{key:"updateValues",value:function(){for(var e=this,t="",n=0;n<e.value.length;n+=1)t+=e.renderItem({value:"object"===N()(e.value[n])?e.value[n][e.params.valueProperty]:e.value[n],text:"object"===N()(e.value[n])?e.value[n][e.params.textProperty]:e.value[n],inputType:e.inputType,id:e.id,inputName:"".concat(e.inputName,"-checked}"),selected:!0},n);e.$el.find(".autocomplete-values ul").html(t)}},{key:"preloaderHide",value:function(){"dropdown"===this.params.openIn&&this.$dropdownEl?this.$dropdownEl.find(".autocomplete-preloader").removeClass("autocomplete-preloader-visible"):k(".autocomplete-preloader").removeClass("autocomplete-preloader-visible")}},{key:"preloaderShow",value:function(){"dropdown"===this.params.openIn&&this.$dropdownEl?this.$dropdownEl.find(".autocomplete-preloader").addClass("autocomplete-preloader-visible"):k(".autocomplete-preloader").addClass("autocomplete-preloader-visible")}},{key:"renderPreloader",value:function(){return'\n      <div class="autocomplete-preloader preloader '.concat(this.params.preloaderColor?"color-".concat(this.params.preloaderColor):"",'">').concat(z["".concat(this.app.theme,"PreloaderContent")]||"","</div>\n    ").trim()}},{key:"renderSearchbar",value:function(){var e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):'\n      <form class="searchbar">\n        <div class="searchbar-inner">\n          <div class="searchbar-input-wrap">\n            <input type="search" placeholder="'.concat(e.params.searchbarPlaceholder,'"/>\n            <i class="searchbar-icon"></i>\n            <span class="input-clear-button"></span>\n          </div>\n          ').concat(e.params.searchbarDisableButton?'\n          <span class="searchbar-disable-button">'.concat(e.params.searchbarDisableText,"</span>\n          "):"","\n        </div>\n      </form>\n    ").trim()}},{key:"renderItem",value:function(e,t){if(this.params.renderItem)return this.params.renderItem.call(this,e,t);var n=e.value&&"string"==typeof e.value?e.value.replace(/"/g,"&quot;"):e.value;return("dropdown"!==this.params.openIn?'\n        <li>\n          <label class="item-'.concat(e.inputType,' item-content">\n            <input type="').concat(e.inputType,'" name="').concat(e.inputName,'" value="').concat(n,'" ').concat(e.selected?"checked":"",'>\n            <i class="icon icon-').concat(e.inputType,'"></i>\n            <div class="item-inner">\n              <div class="item-title">').concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      "):e.placeholder?'\n        <li class="autocomplete-dropdown-placeholder">\n          <label class="item-content">\n            <div class="item-inner">\n              <div class="item-title">'.concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      "):'\n        <li>\n          <label class="item-radio item-content" data-value="'.concat(n,'">\n            <div class="item-inner">\n              <div class="item-title">').concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      ")).trim()}},{key:"renderNavbar",value:function(){var e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);var t=e.params.pageTitle;void 0===t&&e.$openerEl&&e.$openerEl.length&&(t=e.$openerEl.find(".item-title").text().trim());var n="popup"===e.params.openIn,r=n?"\n        ".concat(e.params.preloader?'\n        <div class="left">\n          '.concat(e.renderPreloader(),"\n        </div>\n        "):"","\n      "):'\n        <div class="left sliding">\n          <a class="link back">\n            <i class="icon icon-back"></i>\n            <span class="if-not-md">'.concat(e.params.pageBackLinkText,"</span>\n          </a>\n        </div>\n      "),i=n?'\n        <div class="right">\n          <a class="link popup-close" data-popup=".autocomplete-popup">\n            '.concat(e.params.popupCloseLinkText,"\n          </a>\n        </div>\n      "):"\n        ".concat(e.params.preloader?'\n        <div class="right">\n          '.concat(e.renderPreloader(),"\n        </div>\n        "):"","\n      ");return'\n      <div class="navbar '.concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n          ').concat(r,"\n          ").concat(t?'<div class="title sliding">'.concat(t,"</div>"):"","\n          ").concat(i,'\n          <div class="subnavbar sliding">').concat(e.renderSearchbar(),"</div>\n        </div>\n      </div>\n    ").trim()}},{key:"renderDropdown",value:function(){var e=this;return e.params.renderDropdown?e.params.renderDropdown.call(e,e.items):'\n      <div class="autocomplete-dropdown">\n        <div class="autocomplete-dropdown-inner">\n          <div class="list '.concat(e.params.expandInput?"":"no-safe-areas",'">\n            <ul></ul>\n          </div>\n        </div>\n        ').concat(e.params.preloader?e.renderPreloader():"","\n      </div>\n    ").trim()}},{key:"renderPage",value:function(e){var t=this;return t.params.renderPage?t.params.renderPage.call(t,t.items):'\n      <div class="page page-with-subnavbar autocomplete-page" data-name="autocomplete-page">\n        '.concat(t.renderNavbar(e),'\n        <div class="searchbar-backdrop"></div>\n        <div class="page-content">\n          <div class="list autocomplete-list autocomplete-found autocomplete-list-').concat(t.id," ").concat(t.params.formColorTheme?"color-".concat(t.params.formColorTheme):"",'">\n            <ul></ul>\n          </div>\n          <div class="list autocomplete-not-found">\n            <ul>\n              <li class="item-content"><div class="item-inner"><div class="item-title">').concat(t.params.notFoundText,'</div></div></li>\n            </ul>\n          </div>\n          <div class="list autocomplete-values">\n            <ul></ul>\n          </div>\n        </div>\n      </div>\n    ').trim()}},{key:"renderPopup",value:function(){var e=this;return e.params.renderPopup?e.params.renderPopup.call(e,e.items):'\n      <div class="popup autocomplete-popup">\n        <div class="view">\n          '.concat(e.renderPage(!0),";\n        </div>\n      </div>\n    ").trim()}},{key:"onOpen",value:function(e,t){var n=this,r=n.app,i=k(t);if(n.$el=i,n.el=i[0],n.openedIn=e,n.opened=!0,"dropdown"===n.params.openIn)n.attachDropdownEvents(),n.$dropdownEl.addClass("autocomplete-dropdown-in"),n.$inputEl.trigger("input");else{var a=i.find(".searchbar");"page"===n.params.openIn&&"ios"===r.theme&&0===a.length&&(a=k(r.navbar.getElByPage(i)).find(".searchbar")),n.searchbar=r.searchbar.create({el:a,backdropEl:i.find(".searchbar-backdrop"),customSearch:!0,on:{search:function(e,t){0===t.length&&n.searchbar.enabled?n.searchbar.backdropShow():n.searchbar.backdropHide(),n.source(t)}}}),n.attachPageEvents(),n.updateValues(),n.params.requestSourceOnOpen&&n.source("")}n.emit("local::open autocompleteOpen",n)}},{key:"autoFocus",value:function(){return this.searchbar&&this.searchbar.$inputEl&&this.searchbar.$inputEl.focus(),this}},{key:"onOpened",value:function(){var e=this;"dropdown"!==e.params.openIn&&e.params.autoFocus&&e.autoFocus(),e.emit("local::opened autocompleteOpened",e)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),"dropdown"===e.params.openIn?(e.detachDropdownEvents(),e.$dropdownEl.removeClass("autocomplete-dropdown-in").remove(),e.$inputEl.parents(".item-content-dropdown-expanded").removeClass("item-content-dropdown-expanded")):e.detachPageEvents(),e.emit("local::close autocompleteClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.emit("local::closed autocompleteClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;var t=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}},options:{animate:e.params.animate}}}),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;var t={content:e.renderPopup(),animate:e.params.animate,push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(e.params.animate),e}},{key:"openDropdown",value:function(){var e=this;e.$dropdownEl||(e.$dropdownEl=k(e.renderDropdown())),e.$inputEl.parents(".list").length&&e.$inputEl.parents(".item-content").length>0&&e.params.expandInput&&e.$inputEl.parents(".item-content").addClass("item-content-dropdown-expanded");var t=e.$inputEl.parents(".page-content");e.params.dropdownContainerEl?k(e.params.dropdownContainerEl).append(e.$dropdownEl):0===t.length?e.$dropdownEl.insertAfter(e.$inputEl):(e.positionDropdown(),t.append(e.$dropdownEl)),e.onOpen("dropdown",e.$dropdownEl),e.onOpened("dropdown",e.$dropdownEl)}},{key:"open",value:function(){var e=this;if(e.opened)return e;var t=e.params.openIn;return e["open".concat(t.split("").map((function(e,t){return 0===t?e.toUpperCase():e})).join(""))](),e}},{key:"close",value:function(){var e=this;return e.opened?("dropdown"===e.params.openIn?(e.onClose(),e.onClosed()):e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back({animate:e.params.animate}):(e.modal.once("modalClosed",(function(){z.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy autocompleteBeforeDestroy",e),e.detachEvents(),e.$inputEl&&e.$inputEl[0]&&delete e.$inputEl[0].f7Autocomplete,e.$openerEl&&e.$openerEl[0]&&delete e.$openerEl[0].f7Autocomplete,z.deleteProps(e),e.destroyed=!0}},{key:"view",get:function(){var e,t=this,n=t.$openerEl,r=t.$inputEl,i=t.app;if(t.params.view)e=t.params.view;else if(n||r){var a=n||r;e=a.closest(".view").length&&a.closest(".view")[0].f7View}return e||(e=i.views.main),e}}]),r}(G),ba={name:"autocomplete",params:{autocomplete:{openerEl:void 0,inputEl:void 0,view:void 0,dropdownContainerEl:void 0,dropdownPlaceholderText:void 0,typeahead:!1,highlightMatches:!0,expandInput:!1,updateInputValueOnSelect:!0,inputEvents:"input",value:void 0,multiple:!1,source:void 0,limit:void 0,valueProperty:"id",textProperty:"text",openIn:"page",pageBackLinkText:"Back",popupCloseLinkText:"Close",pageTitle:void 0,searchbarPlaceholder:"Search...",searchbarDisableText:"Cancel",searchbarDisableButton:void 0,popupPush:!1,popupSwipeToClose:void 0,animate:!0,autoFocus:!1,closeOnSelect:!1,notFoundText:"Nothing found",requestSourceOnOpen:!1,preloaderColor:void 0,preloader:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!0,url:"select/",renderDropdown:void 0,renderPage:void 0,renderPopup:void 0,renderItem:void 0,renderSearchbar:void 0,renderNavbar:void 0}},static:{Autocomplete:ya},create:function(){var e=this;e.autocomplete=z.extend(X({defaultSelector:void 0,constructor:ya,app:e,domProp:"f7Autocomplete"}),{open:function(t){var n=e.autocomplete.get(t);if(n&&n.open)return n.open()},close:function(t){var n=e.autocomplete.get(t);if(n&&n.close)return n.close()}})}};function _a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var wa=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(_a()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o=z.extend({},e.params.tooltip);a.useModulesParams(o),a.params=z.extend(o,i);var s=a.params.targetEl;if(!s)return L()(t,a);var l=k(s);if(0===l.length)return L()(t,a);if(l[0].f7Tooltip)return L()(t,l[0].f7Tooltip);var c=k(a.render()).eq(0);z.extend(a,{app:e,$targetEl:l,targetEl:l&&l[0],$el:c,el:c&&c[0],text:a.params.text||"",visible:!1,opened:!1}),l[0].f7Tooltip=a;var d,h={};function p(){a.opened?a.hide():a.show(this)}function f(e){a.opened&&(k(e.target).closest(l).length||k(e.target).closest(a.$el).length)||a.hide()}function m(e){d||(d=!0,h.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,h.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a.show(this))}function v(e){if(d){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;Math.pow(Math.pow(t-h.x,2)+Math.pow(n-h.y,2),.5)>50&&(d=!1,a.hide())}}function g(){d&&(d=!1,a.hide())}function y(){a.show(this)}function b(){a.hide()}function _(){c.hasClass("tooltip-in")||c.removeClass("tooltip-out").remove()}return a.attachEvents=function(){if(c.on("transitionend",_),"click"===a.params.trigger)return l.on("click",p),void k("html").on("click",f);if(fe.a.touch){var t=!!fe.a.passiveListener&&{passive:!0};l.on(e.touchEvents.start,m,t),e.on("touchmove",v),e.on("touchend:passive",g)}else l.on(fe.a.pointerEvents?"pointerenter":"mouseenter",y),l.on(fe.a.pointerEvents?"pointerleave":"mouseleave",b)},a.detachEvents=function(){if(c.off("transitionend",_),"click"===a.params.trigger)return l.off("click",p),void k("html").off("click",f);if(fe.a.touch){var t=!!fe.a.passiveListener&&{passive:!0};l.off(e.touchEvents.start,m,t),e.off("touchmove",v),e.off("touchend:passive",g)}else l.off(fe.a.pointerEvents?"pointerenter":"mouseenter",y),l.off(fe.a.pointerEvents?"pointerleave":"mouseleave",b)},a.useModules(),a.init(),L()(t,a)}return T()(r,[{key:"position",value:function(e){var t=this.$el,n=this.app,r=this.params.offset||0;t.css({left:"",top:""});var i,a,o,s,l=k(e||this.targetEl),c=[t.width(),t.height()],u=c[0],d=c[1];if(t.css({left:"",top:""}),l&&l.length>0){i=l.outerWidth(),a=l.outerHeight();var h=l.offset();o=h.left-n.left,s=h.top-n.top;var p=l.parents(".page");p.length>0&&(s-=p[0].scrollTop)}var f=[0,0,0],m=f[0],v=f[1],g="top";d+r<s?v=s-d-r:d<n.height-s-a?(g="bottom",v=s+a+r):(g="middle",(v=a/2+s-d/2)<=0?v=8:v+d>=n.height&&(v=n.height-d-8)),"top"===g||"bottom"===g?((m=i/2+o-u/2)<8&&(m=8),m+u>n.width&&(m=n.width-u-8),m<0&&(m=0)):"middle"===g&&((m=o-u)<8||m+u>n.width)&&(m<8&&(m=o+i),m+u>n.width&&(m=n.width-u-8)),t.css({top:"".concat(v,"px"),left:"".concat(m,"px")})}},{key:"show",value:function(e){var t=this.app,n=this.$el,r=this.$targetEl;t.root.append(n),this.position(e);var i=k(e);return this.visible=!0,this.opened=!0,r.trigger("tooltip:show"),n.trigger("tooltip:show"),i.length&&i[0]!==r[0]&&i.trigger("tooltip:show"),this.emit("local::show tooltipShow",this),n.removeClass("tooltip-out").addClass("tooltip-in"),this}},{key:"hide",value:function(){var e=this.$el,t=this.$targetEl;return this.visible=!1,this.opened=!1,t.trigger("tooltip:hide"),e.trigger("tooltip:hide"),this.emit("local::hide tooltipHide",this),e.addClass("tooltip-out").removeClass("tooltip-in"),this}},{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.cssClass,n=e.text;return'\n      <div class="tooltip '.concat(t||"",'">\n        <div class="tooltip-content">').concat(n||"","</div>\n      </div>\n    ").trim()}},{key:"setText",value:function(e){return void 0===e||(this.params.text=e,this.text=e,this.$el&&this.$el.children(".tooltip-content").html(e),this.opened&&this.position()),this}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){this.$targetEl&&!this.destroyed&&(this.$targetEl.trigger("tooltip:beforedestroy"),this.emit("local::beforeDestroy tooltipBeforeDestroy",this),this.$el.remove(),delete this.$targetEl[0].f7Tooltip,this.detachEvents(),z.deleteProps(this),this.destroyed=!0)}}]),r}(G),ka={name:"tooltip",static:{Tooltip:wa},create:function(){this.tooltip=X({defaultSelector:".tooltip",constructor:wa,app:this,domProp:"f7Tooltip"}),this.tooltip.show=function(e){var t=k(e);if(0!==t.length){var n=t[0].f7Tooltip;if(n)return n.show(t[0]),n}},this.tooltip.hide=function(e){var t=k(e);if(0!==t.length){var n=t[0].f7Tooltip;if(n)return n.hide(),n}},this.tooltip.setText=function(e,t){var n=k(e);if(0!==n.length){var r=n[0].f7Tooltip;if(r)return r.setText(t),r}}},params:{tooltip:{targetEl:null,text:null,cssClass:null,render:null,offset:0,trigger:"hover"}},on:{tabMounted:function(e){var t=this;k(e).find(".tooltip-init").each((function(e,n){var r=k(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})}))},tabBeforeRemove:function(e){k(e).find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".tooltip-init").each((function(e,n){var r=k(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})})),"ios"===t.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".tooltip-init").each((function(e,n){var r=k(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})}))},pageBeforeRemove:function(e){e.$el.find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()})),"ios"===this.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()}))}},vnode:{"tooltip-init":{insert:function(e){var t=e.elm,n=k(t).attr("data-tooltip");n&&this.tooltip.create({targetEl:t,text:n})},update:function(e){var t=e.elm;t.f7Tooltip&&e&&e.data&&e.data.attrs&&e.data.attrs["data-tooltip"]&&t.f7Tooltip.setText(e.data.attrs["data-tooltip"])},destroy:function(e){var t=e.elm;t.f7Tooltip&&t.f7Tooltip.destroy()}}}};function Ea(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ta=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Ea()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a=C()(t),o=z.extend({},e.params.gauge);a.useModulesParams(o),a.params=z.extend(o,i);var s=a.params.el;if(!s)return L()(t,a);var l=k(s);return 0===l.length?L()(t,a):l[0].f7Gauge?L()(t,l[0].f7Gauge):(z.extend(a,{app:e,$el:l,el:l&&l[0]}),l[0].f7Gauge=a,a.useModules(),a.init(),L()(t,a))}return T()(r,[{key:"calcRadius",value:function(){var e=this.params;return e.size/2-e.borderWidth/2}},{key:"calcBorderLength",value:function(){var e=this.calcRadius();return 2*Math.PI*e}},{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.type,n=e.value,r=e.size,i=e.bgColor,a=e.borderBgColor,o=e.borderColor,s=e.borderWidth,l=e.valueText,c=e.valueTextColor,u=e.valueFontSize,d=e.valueFontWeight,h=e.labelText,p=e.labelTextColor,f=e.labelFontSize,m=e.labelFontWeight,v="semicircle"===t,g=this.calcRadius(),y=this.calcBorderLength(),b=Math.max(Math.min(n,1),0);return'\n      <svg class="gauge-svg" width="'.concat(r,'px" height="').concat(v?r/2:r,'px" viewBox="0 0 ').concat(r," ").concat(v?r/2:r,'">\n        ').concat(v?'\n          <path\n            class="gauge-back-semi"\n            d="M'.concat(r-s/2,",").concat(r/2," a1,1 0 0,0 -").concat(r-s,',0"\n            stroke="').concat(a,'"\n            stroke-width="').concat(s,'"\n            fill="').concat(i||"none",'"\n          />\n          <path\n            class="gauge-front-semi"\n            d="M').concat(r-s/2,",").concat(r/2," a1,1 0 0,0 -").concat(r-s,',0"\n            stroke="').concat(o,'"\n            stroke-width="').concat(s,'"\n            stroke-dasharray="').concat(y/2,'"\n            stroke-dashoffset="').concat(y/2*(1+b),'"\n            fill="').concat(a?"none":i||"none",'"\n          />\n        '):"\n          ".concat(a?'\n            <circle\n              class="gauge-back-circle"\n              stroke="'.concat(a,'"\n              stroke-width="').concat(s,'"\n              fill="').concat(i||"none",'"\n              cx="').concat(r/2,'"\n              cy="').concat(r/2,'"\n              r="').concat(g,'"\n            ></circle>\n          '):"",'\n          <circle\n            class="gauge-front-circle"\n            transform="',"rotate(-90 ".concat(r/2," ").concat(r/2,")"),'"\n            stroke="').concat(o,'"\n            stroke-width="').concat(s,'"\n            stroke-dasharray="').concat(y,'"\n            stroke-dashoffset="').concat(y*(1-b),'"\n            fill="').concat(a?"none":i||"none",'"\n            cx="').concat(r/2,'"\n            cy="').concat(r/2,'"\n            r="').concat(g,'"\n          ></circle>\n        '),"\n        ").concat(l?'\n          <text\n            class="gauge-value-text"\n            x="50%"\n            y="'.concat(v?"100%":"50%",'"\n            font-weight="').concat(d,'"\n            font-size="').concat(u,'"\n            fill="').concat(c,'"\n            dy="').concat(v?h?-f-15:-5:0,'"\n            text-anchor="middle"\n            dominant-baseline="').concat(!v&&"middle",'"\n          >').concat(l,"</text>\n        "):"","\n        ").concat(h?'\n          <text\n            class="gauge-label-text"\n            x="50%"\n            y="'.concat(v?"100%":"50%",'"\n            font-weight="').concat(m,'"\n            font-size="').concat(f,'"\n            fill="').concat(p,'"\n            dy="').concat(v?-5:l?u/2+10:0,'"\n            text-anchor="middle"\n            dominant-baseline="').concat(!v&&"middle",'"\n          >').concat(h,"</text>\n        "):"","\n      </svg>\n    ").trim()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=t.params,r=t.$gaugeSvgEl;if(Object.keys(e).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),0===r.length)return t;var i=n.value,a=n.size,o=n.bgColor,s=n.borderBgColor,l=n.borderColor,c=n.borderWidth,u=n.valueText,d=n.valueTextColor,h=n.valueFontSize,p=n.valueFontWeight,f=n.labelText,m=n.labelTextColor,v=n.labelFontSize,g=n.labelFontWeight,y=t.calcBorderLength(),b=Math.max(Math.min(i,1),0),_=t.calcRadius(),w="semicircle"===n.type,k={width:"".concat(a,"px"),height:"".concat(w?a/2:a,"px"),viewBox:"0 0 ".concat(a," ").concat(w?a/2:a)};if(Object.keys(k).forEach((function(e){r.attr(e,k[e])})),w){var E={d:"M".concat(a-c/2,",").concat(a/2," a1,1 0 0,0 -").concat(a-c,",0"),stroke:s,"stroke-width":c,fill:o||"none"},T={d:"M".concat(a-c/2,",").concat(a/2," a1,1 0 0,0 -").concat(a-c,",0"),stroke:l,"stroke-width":c,"stroke-dasharray":y/2,"stroke-dashoffset":y/2*(1+b),fill:s?"none":o||"none"};Object.keys(E).forEach((function(e){r.find(".gauge-back-semi").attr(e,E[e])})),Object.keys(T).forEach((function(e){r.find(".gauge-front-semi").attr(e,T[e])}))}else{var S={stroke:s,"stroke-width":c,fill:o||"none",cx:a/2,cy:a/2,r:_},C={transform:"rotate(-90 ".concat(a/2," ").concat(a/2,")"),stroke:l,"stroke-width":c,"stroke-dasharray":y,"stroke-dashoffset":y*(1-b),fill:s?"none":o||"none",cx:a/2,cy:a/2,r:_};Object.keys(S).forEach((function(e){r.find(".gauge-back-circle").attr(e,S[e])})),Object.keys(C).forEach((function(e){r.find(".gauge-front-circle").attr(e,C[e])}))}if(u){r.find(".gauge-value-text").length||r.append('<text class="gauge-value-text"></text>');var x={x:"50%",y:w?"100%":"50%","font-weight":p,"font-size":h,fill:d,dy:w?f?-v-15:-5:0,"text-anchor":"middle","dominant-baseline":!w&&"middle"};Object.keys(x).forEach((function(e){r.find(".gauge-value-text").attr(e,x[e])})),r.find(".gauge-value-text").text(u)}else r.find(".gauge-value-text").remove();if(f){r.find(".gauge-label-text").length||r.append('<text class="gauge-label-text"></text>');var M={x:"50%",y:w?"100%":"50%","font-weight":g,"font-size":v,fill:m,dy:w?-5:u?h/2+10:0,"text-anchor":"middle","dominant-baseline":!w&&"middle"};Object.keys(M).forEach((function(e){r.find(".gauge-label-text").attr(e,M[e])})),r.find(".gauge-label-text").text(f)}else r.find(".gauge-label-text").remove();return t}},{key:"init",value:function(){var e=k(this.render()).eq(0);return e.f7Gauge=this,z.extend(this,{$gaugeSvgEl:e,gaugeSvgEl:e&&e[0]}),this.$el.append(e),this}},{key:"destroy",value:function(){this.$el&&!this.destroyed&&(this.$el.trigger("gauge:beforedestroy"),this.emit("local::beforeDestroy gaugeBeforeDestroy",this),this.$gaugeSvgEl.remove(),delete this.$el[0].f7Gauge,z.deleteProps(this),this.destroyed=!0)}}]),r}(G),Sa={name:"gauge",static:{Gauge:Ta},create:function(){var e=this;e.gauge=X({defaultSelector:".gauge",constructor:Ta,app:e,domProp:"f7Gauge"}),e.gauge.update=function(t,n){if(0!==k(t).length){var r=e.gauge.get(t);if(r)return r.update(n),r}}},params:{gauge:{el:null,type:"circle",value:0,size:200,bgColor:"transparent",borderBgColor:"#eeeeee",borderColor:"#000000",borderWidth:10,valueText:null,valueTextColor:"#000000",valueFontSize:31,valueFontWeight:500,labelText:null,labelTextColor:"#888888",labelFontSize:14,labelFontWeight:400}},on:{tabMounted:function(e){var t=this;k(e).find(".gauge-init").each((function(e,n){t.gauge.create(z.extend({el:n},k(n).dataset()||{}))}))},tabBeforeRemove:function(e){k(e).find(".gauge-init").each((function(e,t){t.f7Gauge&&t.f7Gauge.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".gauge-init").each((function(e,n){t.gauge.create(z.extend({el:n},k(n).dataset()||{}))}))},pageBeforeRemove:function(e){e.$el.find(".gauge-init").each((function(e,t){t.f7Gauge&&t.f7Gauge.destroy()}))}},vnode:{"gauge-init":{insert:function(e){var t=e.elm;this.gauge.create(z.extend({el:t},k(t).dataset()||{}))},destroy:function(e){var t=e.elm;t.f7Gauge&&t.f7Gauge.destroy()}}}},Ca={open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".menu-item-dropdown",t=this;if(e){var n=k(e).closest(".menu-item-dropdown");if(n.length){var r=n.closest(".menu").eq(0);if(r.length){var i=r.css("z-index"),a=r[0].style.zIndex;r.css("z-index",parseInt(i||0,0)+1),r[0].f7MenuZIndex=a}n.eq(0).addClass("menu-item-dropdown-opened").trigger("menu:opened"),t.emit("menuOpened",n.eq(0)[0])}}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".menu-item-dropdown-opened",t=this;if(e){var n=k(e).closest(".menu-item-dropdown-opened");if(n.length){var r=n.closest(".menu").eq(0);if(r.length){var i=r[0].f7MenuZIndex;r.css("z-index",i),delete r[0].f7MenuZIndex}n.eq(0).removeClass("menu-item-dropdown-opened").trigger("menu:closed"),t.emit("menuClosed",n.eq(0)[0])}}}},xa={name:"menu",create:function(){this.menu={open:Ca.open.bind(this),close:Ca.close.bind(this)}},on:{click:function(e){var t=this,n=k(".menu-item-dropdown-opened");n.length&&n.each((function(n,r){k(e.target).closest(".menu-item-dropdown-opened").length||t.menu.close(r)}))}},clicks:{".menu-item-dropdown":function(e,t,n){if(e.hasClass("menu-item-dropdown-opened")){if(k(n.target).closest(".menu-dropdown").length)return;this.menu.close(e)}else this.menu.open(e)},".menu-close":function(){this.menu.close()}}},Ma={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.alphaLabelText;return'\n      <div class="color-picker-module color-picker-module-alpha-slider">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-alpha"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.01" min="0" max="1" class="color-picker-value-alpha">\n              ':'\n                <span class="color-picker-value-alpha"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=e.value.alpha,r=parseFloat(t.target.value);Number.isNaN(r)?t.target.value=n:(r=Math.max(0,Math.min(1,r)),e.setValue({alpha:r}))}e.alphaRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-alpha"),min:0,max:1,step:.01,value:1,on:{change:function(t,n){var r=Math.floor(100*n)/100;e.setValue({alpha:r})}}}),e.$el.on("change",".color-picker-module-alpha-slider input",t),e.destroyAlphaSliderEvents=function(){e.$el.off("change",".color-picker-module-alpha-slider input",t)}},update:function(e){var t=e.value,n=e.params,r=n.sliderValue,i=n.sliderValueEditable,a=t.alpha;e.alphaRangeSlider.value=a,e.alphaRangeSlider.layout(),r&&i?e.$el.find("input.color-picker-value-alpha").val(a):e.$el.find("span.color-picker-value-alpha").text(a)},destroy:function(e){e.alphaRangeSlider&&e.alphaRangeSlider.destroy&&e.alphaRangeSlider.destroy(),delete e.alphaRangeSlider,e.destroyAlphaSliderEvents&&e.destroyAlphaSliderEvents(),delete e.destroyAlphaSliderEvents}},$a={render:function(){return'\n      <div class="color-picker-module color-picker-module-current-color">\n        <div class="color-picker-current-color"></div>\n      </div>\n    '},update:function(e){e.$el.find(".color-picker-module-current-color .color-picker-current-color").css("background-color",e.value.hex)}},La={render:function(e){var t=e.params,n=t.hexLabel,r=t.hexLabelText,i=t.hexValueEditable;return'\n      <div class="color-picker-module color-picker-module-hex">\n        <div class="color-picker-hex-wrap">\n          '.concat(n?'\n            <div class="color-picker-hex-label">'.concat(r,"</div>\n          "):"",'\n          <div class="color-picker-hex-value">\n            ').concat(i?'\n              <input type="text" class="color-picker-value-hex">\n            ':'\n              <span class="color-picker-value-hex"></span>\n            ',"\n          </div>\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=e.value.hex,r=t.target.value.replace(/#/g,"");if(Number.isNaN(r)||!r||3!==r.length&&6!==r.length)t.target.value=n;else{var i=parseInt(r,16);i>parseInt("ffffff",16)&&(r="fff"),i<0&&(r="000"),e.setValue({hex:r})}}e.$el.on("change",".color-picker-module-hex input",t),e.destroyHexEvents=function(){e.$el.off("change",".color-picker-module-hex input",t)}},update:function(e){var t=e.value,n=e.params.hexValueEditable,r=t.hex;n?e.$el.find("input.color-picker-value-hex").val(r):e.$el.find("span.color-picker-value-hex").text(r)},destroy:function(e){e.destroyHexEvents&&e.destroyHexEvents(),delete e.destroyHexEvents}},Pa={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.hueLabelText,o=t.saturationLabelText,s=t.brightnessLabelText;return'\n      <div class="color-picker-module color-picker-module-hsb-sliders">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-hue"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="360" class="color-picker-value-hue" data-color-index="0">\n              ':'\n                <span class="color-picker-value-hue"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-saturation"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="100" class="color-picker-value-saturation" data-color-index="1">\n              ':'\n                <span class="color-picker-value-saturation"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(s,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-brightness"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="100" class="color-picker-value-brightness" data-color-index="2">\n              ':'\n                <span class="color-picker-value-brightness"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=I()(e.value.hsb),r=parseInt(k(t.target).attr("data-color-index"),10),i=parseFloat(t.target.value);Number.isNaN(i)?t.target.value=n[r]:(i=0===r?Math.max(0,Math.min(360,i)):Math.max(0,Math.min(100,i))/100,n[r]=i,e.setValue({hsb:n}))}e.hueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-hue"),min:0,max:360,step:.1,value:0,on:{change:function(t,n){e.setValue({hue:n})}}}),e.saturationRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-saturation"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],r,e.value.hsb[2]]})}}}),e.brightnessRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-brightness"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],e.value.hsb[1],r]})}}}),e.$el.on("change",".color-picker-module-hsb-sliders input",t),e.destroyHsbSlidersEvents=function(){e.$el.off("change",".color-picker-module-hsb-sliders input",t)}},update:function(e){var t=e.app,n=e.value,r=e.params,i=r.sliderValue,a=r.sliderValueEditable,o=n.hsb,s=n.hue;e.hueRangeSlider.value=s,e.saturationRangeSlider.value=o[1],e.brightnessRangeSlider.value=o[2],e.hueRangeSlider.layout(),e.saturationRangeSlider.layout(),e.brightnessRangeSlider.layout();var l=z.colorHsbToHsl(o[0],o[1],1),c=z.colorHsbToHsl(o[0],0,1),u=z.colorHsbToHsl(o[0],1,1),d=o[2];e.hueRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(s,", 100%, 50%)")),e.saturationRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(l[0],", ").concat(100*l[1],"%, ").concat(100*l[2],"%)")),e.brightnessRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(255*d,", ").concat(255*d,", ").concat(255*d,")")),e.saturationRangeSlider.$el.find(".range-bar").css("background-image","linear-gradient(".concat(t.rtl?"to left":"to right",", hsl(").concat(c[0],", ").concat(100*c[1],"%, ").concat(100*c[2],"%), hsl(").concat(u[0],", ").concat(100*u[1],"%, ").concat(100*u[2],"%))")),i&&a?(e.$el.find("input.color-picker-value-hue").val("".concat(s)),e.$el.find("input.color-picker-value-saturation").val("".concat(1e3*o[1]/10)),e.$el.find("input.color-picker-value-brightness").val("".concat(1e3*o[2]/10))):i&&(e.$el.find("span.color-picker-value-hue").text("".concat(s)),e.$el.find("span.color-picker-value-saturation").text("".concat(1e3*o[1]/10)),e.$el.find("span.color-picker-value-brightness").text("".concat(1e3*o[2]/10)))},destroy:function(e){e.hueRangeSlider&&e.hueRangeSlider.destroy&&e.hueRangeSlider.destroy(),e.saturationRangeSlider&&e.saturationRangeSlider.destroy&&e.saturationRangeSlider.destroy(),e.brightnessRangeSlider&&e.brightnessRangeSlider.destroy&&e.brightnessRangeSlider.destroy(),delete e.hueRangeSlider,delete e.saturationRangeSlider,delete e.brightnessRangeSlider,e.destroyHsbSlidersEvents&&e.destroyHsbSlidersEvents(),delete e.destroyHsbSlidersEvents}},Oa={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.hueLabelText;return'\n      <div class="color-picker-module color-picker-module-hue-slider">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-hue"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="360" class="color-picker-value-hue">\n              ':'\n                <span class="color-picker-value-hue"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){e.hueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-hue"),min:0,max:360,step:.1,value:0,on:{change:function(t,n){e.setValue({hue:n})}}})},update:function(e){var t=e.value,n=e.params,r=n.sliderValue,i=n.sliderValueEditable,a=t.hue;e.hueRangeSlider.value=a,e.hueRangeSlider.layout(),e.hueRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(a,", 100%, 50%)")),r&&i?e.$el.find("input.color-picker-value-hue").val("".concat(a)):r&&e.$el.find("span.color-picker-value-hue").text("".concat(a))},destroy:function(e){e.hueRangeSlider&&e.hueRangeSlider.destroy&&e.hueRangeSlider.destroy(),delete e.hueRangeSlider}},Da={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.brightnessLabelText;return'\n      <div class="color-picker-module color-picker-module-brightness-slider">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-brightness"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="100" class="color-picker-value-brightness">\n              ':'\n                <span class="color-picker-value-brightness"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){e.brightnessRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-brightness"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],e.value.hsb[1],r]})}}})},update:function(e){var t=e.value,n=e.app,r=e.params,i=r.sliderValue,a=r.sliderValueEditable,o=t.hsb;e.brightnessRangeSlider.value=o[2],e.brightnessRangeSlider.layout();var s=z.colorHsbToHsl(o[0],o[1],o[2]),l=z.colorHsbToHsl(o[0],o[1],0),c=z.colorHsbToHsl(o[0],o[1],1);e.brightnessRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(s[0],", ").concat(100*s[1],"%, ").concat(100*s[2],"%)")),e.brightnessRangeSlider.$el.find(".range-bar").css("background-image","linear-gradient(".concat(n.rtl?"to left":"to right",", hsl(").concat(l[0],", ").concat(100*l[1],"%, ").concat(100*l[2],"%), hsl(").concat(c[0],", ").concat(100*c[1],"%, ").concat(100*c[2],"%))")),i&&a?e.$el.find("input.color-picker-value-brightness").val("".concat(1e3*o[2]/10)):i&&e.$el.find("span.color-picker-value-brightness").text("".concat(1e3*o[2]/10))},destroy:function(e){e.brightnessRangeSlider&&e.brightnessRangeSlider.destroy&&e.brightnessRangeSlider.destroy(),delete e.brightnessRangeSlider}},Ia={render:function(e){return'\n      <div class="color-picker-module color-picker-module-palette">\n        <div class="color-picker-palette">\n          '.concat(e.params.palette.map((function(e){if(Array.isArray(e)){var t='<div class="color-picker-palette-row">';return t+=e.map((function(e){return'\n                <div class="color-picker-palette-value" data-palette-color="'.concat(e,'" style="background-color: ').concat(e,'"></div>\n              ')})).join(""),t+="</div>"}return'\n              <div class="color-picker-palette-value" data-palette-color="'.concat(e,'" style="background-color: ').concat(e,'"></div>\n            ')})).join(""),"\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=k(t.target).attr("data-palette-color");e.setValue({hex:n})}e.$el.on("click",".color-picker-module-palette .color-picker-palette-value",t),e.destroyPaletteEvents=function(){e.$el.off("click",".color-picker-module-hex input",t)}},destroy:function(e){e.destroyPaletteEvents&&e.destroyPaletteEvents(),delete e.destroyPaletteEvents}},Aa={render:function(){return'\n      <div class="color-picker-module color-picker-module-initial-current-colors">\n        <div class="color-picker-initial-current-colors">\n          <div class="color-picker-initial-color"></div>\n          <div class="color-picker-current-color"></div>\n        </div>\n      </div>\n    '},init:function(e){function t(){if(e.initialValue){var t=e.initialValue,n=t.hex,r=t.alpha;e.setValue({hex:n,alpha:r})}}e.$el.on("click",".color-picker-initial-color",t),e.destroyInitialCurrentEvents=function(){e.$el.off("click",".color-picker-initial-color",t)}},update:function(e){e.$el.find(".color-picker-module-initial-current-colors .color-picker-initial-color").css("background-color",e.initialValue.hex),e.$el.find(".color-picker-module-initial-current-colors .color-picker-current-color").css("background-color",e.value.hex)},destroy:function(e){e.destroyInitialCurrentEvents&&e.destroyInitialCurrentEvents(),delete e.destroyInitialCurrentEvents}},Na={render:function(e){var t=e.params,n=t.barLabel,r=t.barValue,i=t.barValueEditable,a=t.redLabelText,o=t.greenLabelText,s=t.blueLabelText;return'\n      <div class="color-picker-module color-picker-module-rgb-bars">\n        <div class="color-picker-bar-wrap">\n          '.concat(n?'\n            <div class="color-picker-bar-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-bar color-picker-bar-red"></div>\n          ').concat(r?'\n            <div class="color-picker-bar-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-red" data-color-index="0">\n              ':'\n                <span class="color-picker-value-bar-red"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-bar-wrap">\n          ').concat(n?'\n            <div class="color-picker-bar-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-bar color-picker-bar-green"></div>\n          ').concat(r?'\n            <div class="color-picker-bar-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-green" data-color-index="1">\n              ':'\n                <span class="color-picker-value-bar-green"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-bar-wrap">\n          ').concat(n?'\n            <div class="color-picker-bar-label">'.concat(s,"</div>\n          "):"",'\n          <div class="range-slider color-picker-bar color-picker-bar-blue"></div>\n          ').concat(r?'\n            <div class="color-picker-bar-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-blue" data-color-index="2">\n              ':'\n                <span class="color-picker-value-bar-blue"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=I()(e.value.rgb),r=parseInt(k(t.target).attr("data-color-index"),10),i=parseInt(t.target.value,10);Number.isNaN(i)?t.target.value=n[r]:(i=Math.max(0,Math.min(255,i)),n[r]=i,e.setValue({rgb:n}))}e.redBar=e.app.range.create({el:e.$el.find(".color-picker-bar-red"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[n,e.value.rgb[1],e.value.rgb[2]]})}}}),e.greenBar=e.app.range.create({el:e.$el.find(".color-picker-bar-green"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],n,e.value.rgb[2]]})}}}),e.blueBar=e.app.range.create({el:e.$el.find(".color-picker-bar-blue"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],e.value.rgb[1],n]})}}}),e.$el.on("change",".color-picker-module-rgb-bars input",t),e.destroyRgbBarsEvents=function(){e.$el.off("change",".color-picker-module-rgb-bars input",t)}},update:function(e){var t=e.value,n=e.redBar,r=e.greenBar,i=e.blueBar,a=e.params,o=a.barValue,s=a.barValueEditable,l=t.rgb;n.value=l[0],r.value=l[1],i.value=l[2],n.layout(),r.layout(),i.layout(),n.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(0, ".concat(l[1],", ").concat(l[2],"), rgb(255, ").concat(l[1],", ").concat(l[2],"))")),r.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(".concat(l[0],", 0, ").concat(l[2],"), rgb(").concat(l[0],", 255, ").concat(l[2],"))")),i.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(".concat(l[0],", ").concat(l[1],", 0), rgb(").concat(l[0],", ").concat(l[1],", 255))")),o&&s?(e.$el.find("input.color-picker-value-bar-red").val(l[0]),e.$el.find("input.color-picker-value-bar-green").val(l[1]),e.$el.find("input.color-picker-value-bar-blue").val(l[2])):o&&(e.$el.find("span.color-picker-value-bar-red").text(l[0]),e.$el.find("span.color-picker-value-bar-green").text(l[1]),e.$el.find("span.color-picker-value-bar-blue").text(l[2]))},destroy:function(e){e.redBar&&e.redBar.destroy&&e.redBar.destroy(),e.greenBar&&e.greenBar.destroy&&e.greenBar.destroy(),e.blueBar&&e.blueBar.destroy&&e.blueBar.destroy(),delete e.redBar,delete e.greenBar,delete e.blueBar,e.destroyRgbBarsEvents&&e.destroyRgbBarsEvents(),delete e.destroyRgbBarsEvents}},Ra={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.redLabelText,o=t.greenLabelText,s=t.blueLabelText;return'\n      <div class="color-picker-module color-picker-module-rgb-sliders">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-red"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-red" data-color-index="0">\n              ':'\n                <span class="color-picker-value-red"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-green"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-green" data-color-index="1">\n              ':'\n                <span class="color-picker-value-green"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(s,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-blue"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-blue" data-color-index="2">\n              ':'\n                <span class="color-picker-value-blue"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=I()(e.value.rgb),r=parseInt(k(t.target).attr("data-color-index"),10),i=parseInt(t.target.value,10);Number.isNaN(i)?t.target.value=n[r]:(i=Math.max(0,Math.min(255,i)),n[r]=i,e.setValue({rgb:n}))}e.redRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-red"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[n,e.value.rgb[1],e.value.rgb[2]]})}}}),e.greenRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-green"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],n,e.value.rgb[2]]})}}}),e.blueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-blue"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],e.value.rgb[1],n]})}}}),e.$el.on("change",".color-picker-module-rgb-sliders input",t),e.destroyRgbSlidersEvents=function(){e.$el.off("change",".color-picker-module-rgb-sliders input",t)}},update:function(e){var t=e.app,n=e.value,r=e.redRangeSlider,i=e.greenRangeSlider,a=e.blueRangeSlider,o=e.params,s=o.sliderValue,l=o.sliderValueEditable,c=n.rgb;r.value=c[0],i.value=c[1],a.value=c[2],r.layout(),i.layout(),a.layout(),r.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")")),i.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")")),a.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")"));var u=t.rtl?"to left":"to right";r.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(0, ").concat(c[1],", ").concat(c[2],"), rgb(255, ").concat(c[1],", ").concat(c[2],"))")),i.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(").concat(c[0],", 0, ").concat(c[2],"), rgb(").concat(c[0],", 255, ").concat(c[2],"))")),a.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(").concat(c[0],", ").concat(c[1],", 0), rgb(").concat(c[0],", ").concat(c[1],", 255))")),s&&l?(e.$el.find("input.color-picker-value-red").val(c[0]),e.$el.find("input.color-picker-value-green").val(c[1]),e.$el.find("input.color-picker-value-blue").val(c[2])):s&&(e.$el.find("span.color-picker-value-red").text(c[0]),e.$el.find("span.color-picker-value-green").text(c[1]),e.$el.find("span.color-picker-value-blue").text(c[2]))},destroy:function(e){e.redRangeSlider&&e.redRangeSlider.destroy&&e.redRangeSlider.destroy(),e.greenRangeSlider&&e.greenRangeSlider.destroy&&e.greenRangeSlider.destroy(),e.blueRangeSlider&&e.blueRangeSlider.destroy&&e.blueRangeSlider.destroy(),delete e.redRangeSlider,delete e.greenRangeSlider,delete e.blueRangeSlider,e.destroyRgbSlidersEvents&&e.destroyRgbSlidersEvents(),delete e.destroyRgbSlidersEvents}},Ya={render:function(){return'\n      <div class="color-picker-module color-picker-module-sb-spectrum">\n        <div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">\n          <div class="color-picker-sb-spectrum-handle"></div>\n        </div>\n      </div>\n    '},init:function(e){var t,n,r,i,a,o,s,l,c=e.app,u=e.$el;function d(t,n){var r=(t-o.left)/o.width,i=(n-o.top)/o.height;r=Math.max(0,Math.min(1,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[e.value.hue,r,i]})}function h(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=r;var c=k(e.target);(l=c.closest(".color-picker-sb-spectrum-handle").length>0)||(s=c.closest(".color-picker-sb-spectrum").length>0),s&&(o=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),d(n,r)),(l||s)&&u.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}}function p(e){(s||l)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(o=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(s||l)&&d(i,a))}function f(){t=!1,(s||l)&&u.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),s=!1,l=!1}function m(){e.modules["sb-spectrum"].update(e)}var v=!("touchstart"!==c.touchEvents.start||!c.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(c.touchEvents.start,h,v),c.on("touchmove:active",p),c.on("touchend:passive",f),c.on("resize",m),e.destroySpectrumEvents=function(){e.$el.off(c.touchEvents.start,h,v),c.off("touchmove:active",p),c.off("touchend:passive",f),c.off("resize",m)}},update:function(e){var t=e.value,n=t.hsl,r=t.hsb,i=e.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,a=e.$el.find(".color-picker-sb-spectrum")[0].offsetHeight;e.$el.find(".color-picker-sb-spectrum").css("background-color","hsl(".concat(n[0],", 100%, 50%)")),e.$el.find(".color-picker-sb-spectrum-handle").css("background-color","hsl(".concat(n[0],", ").concat(100*n[1],"%, ").concat(100*n[2],"%)")).transform("translate(".concat(i*r[1],"px, ").concat(a*(1-r[2]),"px)"))},destroy:function(e){e.destroySpectrumEvents&&e.destroySpectrumEvents(),delete e.destroySpectrumEvents}},Ba={render:function(){return'\n      <div class="color-picker-module color-picker-module-hs-spectrum">\n        <div class="color-picker-hs-spectrum">\n          <div class="color-picker-hs-spectrum-handle"></div>\n        </div>\n      </div>\n    '},init:function(e){var t,n,r,i,a,o,s,l,c=e.app,u=e.$el;function d(t,n){var r=(t-o.left)/o.width*360,i=(n-o.top)/o.height;r=Math.max(0,Math.min(360,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[r,i,e.value.hsb[2]]})}function h(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=r;var c=k(e.target);(l=c.closest(".color-picker-hs-spectrum-handle").length>0)||(s=c.closest(".color-picker-hs-spectrum").length>0),s&&(o=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect(),d(n,r)),(l||s)&&u.find(".color-picker-hs-spectrum-handle").addClass("color-picker-hs-spectrum-handle-pressed")}}function p(e){(s||l)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(o=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect())),(s||l)&&d(i,a))}function f(){t=!1,(s||l)&&u.find(".color-picker-hs-spectrum-handle").removeClass("color-picker-hs-spectrum-handle-pressed"),s=!1,l=!1}function m(){e.modules["hs-spectrum"].update(e)}var v=!("touchstart"!==c.touchEvents.start||!c.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(c.touchEvents.start,h,v),c.on("touchmove:active",p),c.on("touchend:passive",f),c.on("resize",m),e.destroySpectrumEvents=function(){e.$el.off(c.touchEvents.start,h,v),c.off("touchmove:active",p),c.off("touchend:passive",f),c.off("resize",m)}},update:function(e){var t=e.value.hsb,n=e.$el.find(".color-picker-hs-spectrum")[0].offsetWidth,r=e.$el.find(".color-picker-hs-spectrum")[0].offsetHeight,i=z.colorHsbToHsl(t[0],t[1],1);e.$el.find(".color-picker-hs-spectrum-handle").css("background-color","hsl(".concat(i[0],", ").concat(100*i[1],"%, ").concat(100*i[2],"%)")).transform("translate(".concat(n*(t[0]/360),"px, ").concat(r*(1-t[1]),"px)"))},destroy:function(e){e.destroySpectrumEvents&&e.destroySpectrumEvents(),delete e.destroySpectrumEvents}};var ja={render:function(){return'\n      <div class="color-picker-module color-picker-module-wheel">\n        <div class="color-picker-wheel">\n          <svg viewBox="0 0 300 300" width="300" height="300">'.concat(function(){for(var e="",t=256;t>0;t-=1){var n=t*Math.PI/128,r=1.40625*t;e+='<circle cx="'.concat(150-125*Math.sin(n),'" cy="').concat(150-125*Math.cos(n),'" r="25" fill="hsl(').concat(r,', 100%, 50%)"></circle>')}return e}(),'</svg>\n          <div class="color-picker-wheel-handle"></div>\n          <div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">\n            <div class="color-picker-sb-spectrum-handle"></div>\n          </div>\n        </div>\n      </div>\n    ')},init:function(e){var t,n,r,i,a,o,s,l,c,u,d,h=e.app,p=e.$el;function f(t,n){var r=o.left+o.width/2,i=o.top+o.height/2,a=180*Math.atan2(n-i,t-r)/Math.PI+90;a<0&&(a+=360),a=360-a,e.setValue({hue:a})}function m(t,n){var r=(t-c.left)/c.width,i=(n-c.top)/c.height;r=Math.max(0,Math.min(1,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[e.value.hue,r,i]})}function v(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=r;var h=k(e.target);l=h.closest(".color-picker-wheel-handle").length>0,s=h.closest("circle").length>0,(d=h.closest(".color-picker-sb-spectrum-handle").length>0)||(u=h.closest(".color-picker-sb-spectrum").length>0),s&&(o=p.find(".color-picker-wheel")[0].getBoundingClientRect(),f(n,r)),u&&(c=p.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),m(n,r)),(d||u)&&p.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}}function g(e){(s||l||u||d)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(o=p.find(".color-picker-wheel")[0].getBoundingClientRect()),d&&(c=p.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(s||l)&&f(i,a),(u||d)&&m(i,a))}function y(){t=!1,(u||d)&&p.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),s=!1,l=!1,u=!1,d=!1}function b(){e.modules.wheel.update(e)}var _=!("touchstart"!==h.touchEvents.start||!h.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(h.touchEvents.start,v,_),h.on("touchmove:active",g),h.on("touchend:passive",y),h.on("resize",b),e.destroyWheelEvents=function(){e.$el.off(h.touchEvents.start,v,_),h.off("touchmove:active",g),h.off("touchend:passive",y),h.off("resize",b)}},update:function(e){var t=e.value,n=t.hsl,r=t.hsb,i=e.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,a=e.$el.find(".color-picker-sb-spectrum")[0].offsetHeight,o=e.$el.find(".color-picker-wheel")[0].offsetWidth,s=o/2,l=t.hue*Math.PI/180,c=o/6/2,u=s-Math.sin(l)*(s-c)-c,d=s-Math.cos(l)*(s-c)-c;e.$el.find(".color-picker-wheel-handle").css("background-color","hsl(".concat(n[0],", 100%, 50%)")).transform("translate(".concat(u,"px, ").concat(d,"px)")),e.$el.find(".color-picker-sb-spectrum").css("background-color","hsl(".concat(n[0],", 100%, 50%)")),e.$el.find(".color-picker-sb-spectrum-handle").css("background-color","hsl(".concat(n[0],", ").concat(100*n[1],"%, ").concat(100*n[2],"%)")).transform("translate(".concat(i*r[1],"px, ").concat(a*(1-r[2]),"px)"))},destroy:function(e){e.destroyWheelEvents&&e.destroyWheelEvents(),delete e.destroyWheelEvents}};function Fa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ha=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Fa()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a,o,s,l=C()(t);if(l.params=z.extend({},e.params.colorPicker,i),l.params.containerEl&&0===(a=k(l.params.containerEl)).length)return L()(t,l);function c(){l.open()}function d(e){e.preventDefault()}function h(){l.open()}function p(e){if(!l.destroyed&&l.params&&"page"!==l.params.openIn){var t=k(e.target);l.opened&&!l.closing&&(t.closest('[class*="backdrop"]').length||t.closest(".color-picker-popup, .color-picker-popover").length||(o&&o.length>0?t[0]!==o[0]&&0===t.closest(".sheet-modal").length&&l.close():0===k(e.target).closest(".sheet-modal").length&&l.close()))}}return l.params.inputEl&&(o=k(l.params.inputEl)),l.params.targetEl&&(s=k(l.params.targetEl)),z.extend(l,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,$inputEl:o,inputEl:o&&o[0],$targetEl:s,targetEl:s&&s[0],initialized:!1,opened:!1,url:l.params.url,modules:{"alpha-slider":Ma,"current-color":$a,hex:La,"hsb-sliders":Pa,"hue-slider":Oa,"brightness-slider":Da,palette:Ia,"initial-current-colors":Aa,"rgb-bars":Na,"rgb-sliders":Ra,"sb-spectrum":Ya,"hs-spectrum":Ba,wheel:ja}}),z.extend(l,{attachInputEvents:function(){l.$inputEl.on("click",c),l.params.inputReadOnly&&l.$inputEl.on("focus mousedown",d)},detachInputEvents:function(){l.$inputEl.off("click",c),l.params.inputReadOnly&&l.$inputEl.off("focus mousedown",d)},attachTargetEvents:function(){l.$targetEl.on("click",h)},detachTargetEvents:function(){l.$targetEl.off("click",h)},attachHtmlEvents:function(){e.on("click",p)},detachHtmlEvents:function(){e.off("click",p)}}),l.init(),L()(t,l)}return T()(r,[{key:"attachEvents",value:function(){this.centerModules=this.centerModules.bind(this),this.params.centerModules&&this.app.on("resize",this.centerModules)}},{key:"detachEvents",value:function(){this.params.centerModules&&this.app.off("resize",this.centerModules)}},{key:"centerModules",value:function(){if(this.opened&&this.$el&&!this.inline){var e=this.$el.find(".page-content");if(e.length){var t=e[0];t.scrollHeight<=t.offsetHeight?e.addClass("justify-content-center"):e.removeClass("justify-content-center")}}}},{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"getModalType",value:function(){var e=this.app,t=this.modal,n=this.params,r=n.openIn,i=n.openInPhone;return t&&t.type?t.type:"auto"!==r?r:this.inline?null:e.device.ios?e.device.ipad?"popover":i:e.width>=768||e.device.desktop&&"aurora"===e.theme?"popover":i}},{key:"formatValue",value:function(){var e=this.value;return this.params.formatValue?this.params.formatValue.call(this,e):e.hex}},{key:"normalizeHsValues",value:function(e){return[Math.floor(10*e[0])/10,Math.floor(1e3*e[1])/1e3,Math.floor(1e3*e[2])/1e3]}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(void 0!==e){var r,i=n.value||{},a=i.hex,o=i.rgb,s=i.hsl,l=i.hsb,c=i.alpha,u=void 0===c?1:c,d=i.hue,h=i.rgba,p=i.hsla,f=n.value||!n.value&&!n.params.value;if(Object.keys(e).forEach((function(t){if(n.value&&void 0!==n.value[t]){var i=e[t];Array.isArray(i)?i.forEach((function(e,i){e!==n.value[t][i]&&(r=!0)})):i!==n.value[t]&&(r=!0)}else r=!0})),r){if(e.rgb||e.rgba){var m=e.rgb||e.rgba,v=_r()(m,4),g=v[0],y=v[1],b=v[2],_=v[3],w=void 0===_?u:_;o=[g,y,b],a=z.colorRgbToHex.apply(z,I()(o)),s=z.colorRgbToHsl.apply(z,I()(o)),l=z.colorHslToHsb.apply(z,I()(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=w,h=[o[0],o[1],o[2],w],p=[s[0],s[1],s[2],w]}if(e.hsl||e.hsla){var k=e.hsl||e.hsla,E=_r()(k,4),T=E[0],S=E[1],C=E[2],x=E[3],M=void 0===x?u:x;s=[T,S,C],o=z.colorHslToRgb.apply(z,I()(s)),a=z.colorRgbToHex.apply(z,I()(o)),l=z.colorHslToHsb.apply(z,I()(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=M,h=[o[0],o[1],o[2],M],p=[s[0],s[1],s[2],M]}if(e.hsb){var $=_r()(e.hsb,4),L=$[0],P=$[1],O=$[2],D=$[3],A=void 0===D?u:D;l=[L,P,O],s=z.colorHsbToHsl.apply(z,I()(l)),o=z.colorHslToRgb.apply(z,I()(s)),a=z.colorRgbToHex.apply(z,I()(o)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=A,h=[o[0],o[1],o[2],A],p=[s[0],s[1],s[2],A]}if(e.hex&&(o=z.colorHexToRgb(e.hex),a=z.colorRgbToHex.apply(z,I()(o)),s=z.colorRgbToHsl.apply(z,I()(o)),l=z.colorHslToHsb.apply(z,I()(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],h=[o[0],o[1],o[2],u],p=[s[0],s[1],s[2],u]),void 0!==e.alpha&&(u=e.alpha,void 0!==o&&(h=[o[0],o[1],o[2],u]),void 0!==s&&(p=[s[0],s[1],s[2],u])),void 0!==e.hue){var N=s,R=_r()(N,3),Y=(R[0],R[1]),B=R[2];s=[e.hue,Y,B],l=z.colorHslToHsb.apply(z,I()(s)),o=z.colorHslToRgb.apply(z,I()(s)),a=z.colorRgbToHex.apply(z,I()(o)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],h=[o[0],o[1],o[2],u],p=[s[0],s[1],s[2],u]}n.value={hex:a,alpha:u,hue:d,rgb:o,hsl:s,hsb:l,rgba:h,hsla:p},n.initialValue||(n.initialValue=z.extend({},n.value)),n.updateValue(f),n.opened&&t&&n.updateModules()}}}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.$inputEl,r=t.value,i=t.$targetEl;if(i&&t.params.targetElSetBackgroundColor){var a=r.rgba;i.css("background-color","rgba(".concat(a.join(", "),")"))}if(e&&t.emit("local::change colorPickerChange",t,r),n&&n.length){var o=t.formatValue(r);n&&n.length&&(n.val(o),e&&n.trigger("change"))}}},{key:"updateModules",value:function(){var e=this,t=e.modules;e.params.modules.forEach((function(n){"string"==typeof n&&t[n]&&t[n].update?t[n].update(e):n&&n.update&&n.update(e)}))}},{key:"update",value:function(){this.updateModules()}},{key:"renderPicker",value:function(){var e=this,t=e.params,n=e.modules,r="";return t.modules.forEach((function(t){"string"==typeof t&&n[t]&&n[t].render?r+=n[t].render(e):t&&t.render&&(r+=t.render(e))})),r}},{key:"renderNavbar",value:function(){if(this.params.renderNavbar)return this.params.renderNavbar.call(this,this);var e=this.params,t=e.openIn,n=e.navbarTitleText,r=e.navbarBackLinkText,i=e.navbarCloseText;return'\n    <div class="navbar">\n      <div class="navbar-bg"></div>\n      <div class="navbar-inner sliding">\n        '.concat("page"===t?'\n        <div class="left">\n          <a class="link back">\n            <i class="icon icon-back"></i>\n            <span class="if-not-md">'.concat(r,"</span>\n          </a>\n        </div>\n        "):"",'\n        <div class="title">').concat(n,"</div>\n        ").concat("page"!==t?'\n        <div class="right">\n          <a class="link popup-close" data-popup=".color-picker-popup">'.concat(i,"</a>\n        </div>\n        "):"","\n      </div>\n    </div>\n  ").trim()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n    <div class="toolbar toolbar-top no-shadow">\n      <div class="toolbar-inner">\n        <div class="left"></div>\n        <div class="right">\n          <a class="link sheet-close popover-close" data-sheet=".color-picker-sheet-modal" data-popover=".color-picker-popover">'.concat(this.params.toolbarCloseText,"</a>\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderInline",value:function(){var e=this.params,t=e.cssClass,n=e.groupedModules;return'\n    <div class="color-picker color-picker-inline '.concat(n?"color-picker-grouped-modules":""," ").concat(t||"",'">\n      ').concat(this.renderPicker(),"\n    </div>\n  ").trim()}},{key:"renderSheet",value:function(){var e=this.params,t=e.cssClass,n=e.toolbarSheet,r=e.groupedModules;return'\n    <div class="sheet-modal color-picker color-picker-sheet-modal '.concat(r?"color-picker-grouped-modules":""," ").concat(t||"",'">\n      ').concat(n?this.renderToolbar():"",'\n      <div class="sheet-modal-inner">\n        <div class="page-content">\n          ').concat(this.renderPicker(),"\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderPopover",value:function(){var e=this.params,t=e.cssClass,n=e.toolbarPopover,r=e.groupedModules;return'\n    <div class="popover color-picker-popover '.concat(t||"",'">\n      <div class="popover-inner">\n        <div class="color-picker ').concat(r?"color-picker-grouped-modules":"",'">\n          ').concat(n?this.renderToolbar():"",'\n          <div class="page-content">\n            ').concat(this.renderPicker(),"\n          </div>\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderPopup",value:function(){var e=this.params,t=e.cssClass,n=e.navbarPopup,r=e.groupedModules;return'\n    <div class="popup color-picker-popup '.concat(t||"",'">\n      <div class="page">\n        ').concat(n?this.renderNavbar():"",'\n        <div class="color-picker ').concat(r?"color-picker-grouped-modules":"",'">\n          <div class="page-content">\n            ').concat(this.renderPicker(),"\n          </div>\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderPage",value:function(){var e=this.params,t=e.cssClass,n=e.groupedModules;return'\n    <div class="page color-picker-page '.concat(t||"",'" data-name="color-picker-page">\n      ').concat(this.renderNavbar(),'\n      <div class="color-picker ').concat(n?"color-picker-grouped-modules":"",'">\n        <div class="page-content">\n          ').concat(this.renderPicker(),"\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"render",value:function(){var e=this.params;if(e.render)return e.render.call(this);if(this.inline)return this.renderInline();if("page"===e.openIn)return this.renderPage();var t=this.getModalType();return"popover"===t?this.renderPopover():"sheet"===t?this.renderSheet():"popup"===t?this.renderPopup():void 0}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,a=e.inline,o=e.value,s=e.params,l=e.modules;e.closing=!1,e.opened=!0,e.opening=!0,e.attachEvents(),s.modules.forEach((function(t){"string"==typeof t&&l[t]&&l[t].init?l[t].init(e):t&&t.init&&t.init(e)}));var c=!o&&s.value;t?o&&(e.initialValue=z.extend({},o),e.setValue(o,!1)):o?e.setValue(o):s.value?e.setValue(s.value,!1):s.value||e.setValue({hex:"#ff0000"},!1),c&&e.updateValue(),e.updateModules(),s.centerModules&&e.centerModules(),!a&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,n&&n.trigger("colorpicker:open"),i&&i.trigger("colorpicker:open"),e.emit("local::open colorPickerOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("colorpicker:opened"),this.$inputEl&&this.$inputEl.trigger("colorpicker:opened"),this.emit("local::opened colorPickerOpened",this)}},{key:"onClose",value:function(){var e=this,t=e.app,n=e.params,r=e.modules;e.opening=!1,e.closing=!0,e.detachEvents(),e.$inputEl&&"md"===t.theme&&e.$inputEl.trigger("blur"),n.modules.forEach((function(t){"string"==typeof t&&r[t]&&r[t].destroy?r[t].destroy(e):t&&t.destroy&&t.destroy(e)})),e.$el&&e.$el.trigger("colorpicker:close"),e.$inputEl&&e.$inputEl.trigger("colorpicker:close"),e.emit("local::close colorPickerClose",e)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||z.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.$el&&e.$el.trigger("colorpicker:closed"),e.$inputEl&&e.$inputEl.trigger("colorpicker:closed"),e.emit("local::closed colorPickerClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,a=e.$targetEl,o=e.params;if(!n){if(r)return e.$el=k(e.render()),e.$el[0].f7ColorPicker=e,e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var s=e.render();if("page"===o.openIn)e.view.router.navigate({url:e.url,route:{content:s,path:e.url,on:{pageBeforeIn:function(t,n){e.$el=n.$el.find(".color-picker"),e.$el[0].f7ColorPicker=e,e.onOpen()},pageAfterIn:function(){e.onOpened()},pageBeforeOut:function(){e.onClose()},pageAfterOut:function(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}}});else{var l=e.getModalType(),c=o.backdrop;null==c&&("popover"===l&&!1!==t.params.popover.backdrop&&(c=!0),"popup"===l&&(c=!0));var u={targetEl:a||i,scrollToEl:o.scrollToInput?a||i:void 0,content:s,backdrop:c,closeByBackdropClick:o.closeByBackdropClick,on:{open:function(){e.modal=this,e.$el="popover"===l||"popup"===l?this.$el.find(".color-picker"):this.$el,e.$el[0].f7ColorPicker=e,e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}};"popup"===l&&(u.push=o.popupPush,u.swipeToClose=o.popupSwipeToClose),"sheet"===l&&(u.push=o.sheetPush,u.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:Z()({path:e.url},l,u)}):(e.modal=t[l].create(u),e.modal.open())}}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view||"page"===this.params.openIn?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init colorPickerInit",this);!this.initialized&&this.params.value&&this.setValue(this.params.value),this.$inputEl&&this.attachInputEvents(),this.$targetEl&&this.attachTargetEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init colorPickerInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy colorPickerBeforeDestroy",this),e&&e.trigger("colorpicker:beforedestroy"),this.close(),this.detachEvents(),this.$inputEl&&this.detachInputEvents(),this.$targetEl&&this.detachTargetEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),e&&e.length&&delete this.$el[0].f7ColorPicker,z.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.$inputEl,n=this.$targetEl,r=this.app,i=this.params;return i.view?e=i.view:(t&&(e=t.parents(".view").length&&t.parents(".view")[0].f7View),!e&&n&&(e=n.parents(".view").length&&n.parents(".view")[0].f7View)),e||(e=r.views.main),e}}]),r}(G),Ua={name:"colorPicker",static:{ColorPicker:Ha},create:function(){this.colorPicker=X({defaultSelector:".color-picker",constructor:Ha,app:this,domProp:"f7ColorPicker"}),this.colorPicker.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".color-picker",t=k(e);if(0!==t.length){var n=t[0].f7ColorPicker;!n||n&&!n.opened||n.close()}}},params:{colorPicker:{value:null,modules:["wheel"],palette:[["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A","#4A148C"],["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593","#1A237E"],["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD","#01579B"],["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C","#004D40"],["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F","#33691E"],["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825","#F57F17"],["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00","#E65100"]],groupedModules:!1,centerModules:!0,sliderLabel:!1,sliderValue:!1,sliderValueEdiable:!1,barLabel:!1,barValue:!1,barValueEdiable:!1,hexLabel:!1,hexValueEditable:!1,redLabelText:"R",greenLabelText:"G",blueLabelText:"B",hueLabelText:"H",saturationLabelText:"S",brightnessLabelText:"B",hexLabelText:"HEX",alphaLabelText:"A",containerEl:null,openIn:"popover",openInPhone:"popup",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,targetEl:null,targetElSetBackgroundColor:!1,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,toolbarSheet:!0,toolbarPopover:!1,toolbarCloseText:"Done",navbarPopup:!0,navbarCloseText:"Done",navbarTitleText:"Color",navbarBackLinkText:"Back",cssClass:null,routableModals:!0,view:null,url:"color/",backdrop:null,closeByBackdropClick:!0,renderToolbar:null,renderNavbar:null,renderInline:null,renderPopover:null,renderSheet:null,renderPopup:null,render:null}}},za={open:function(e){var t=this,n=k(e).eq(0);function r(e){e?(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),t.emit("treeviewClose",n[0])):n[0].f7TreeviewChildrenLoaded=!0,n.find(".treeview-toggle").removeClass("treeview-toggle-hidden"),n.find(".treeview-preloader").remove()}n.length&&(n.addClass("treeview-item-opened"),n.trigger("treeview:open"),t.emit("treeviewOpen",n[0]),n.hasClass("treeview-load-children")&&!n[0].f7TreeviewChildrenLoaded&&(n.trigger("treeview:loadchildren",r),t.emit("treeviewLoadChildren",n[0],r),n.find(".treeview-toggle").addClass("treeview-toggle-hidden"),n.find(".treeview-item-root").prepend('<div class="preloader treeview-preloader">'.concat(z["".concat(t.theme,"PreloaderContent")],"</div>"))))},close:function(e){var t=k(e).eq(0);t.length&&(t.removeClass("treeview-item-opened"),t.trigger("treeview:close"),this.emit("treeviewClose",t[0]))},toggle:function(e){var t=k(e).eq(0);if(t.length){var n=t.hasClass("treeview-item-opened");this.treeview[n?"close":"open"](t)}}},Va={name:"treeview",create:function(){z.extend(this,{treeview:{open:za.open.bind(this),close:za.close.bind(this),toggle:za.toggle.bind(this)}})},clicks:{".treeview-toggle":function(e,t,n){if(!e.parents(".treeview-item-toggle").length){var r=e.parents(".treeview-item").eq(0);r.length&&(n.preventF7Router=!0,this.treeview.toggle(r[0]))}},".treeview-item-toggle":function(e,t,n){var r=e.closest(".treeview-item").eq(0);r.length&&(n.preventF7Router=!0,this.treeview.toggle(r[0]))}}};function qa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Wa={bold:["bold","format_bold","bold"],italic:["italic","format_italic","italic"],underline:["underline","format_underlined","underline"],strikeThrough:["strikethrough","strikethrough_s","strikeThrough"],orderedList:["list_number","format_list_numbered","insertOrderedList"],unorderedList:["list_bullet","format_list_bulleted","insertUnorderedList"],link:["link","link","createLink"],image:["photo","image","insertImage"],paragraph:["paragraph",'<i class="icon">¶</i>',"formatBlock.P"],h1:['<i class="icon">H<sub>1</sub></i>','<i class="icon">H<sub>1</sub></i>',"formatBlock.H1"],h2:['<i class="icon">H<sub>2</sub></i>','<i class="icon">H<sub>2</sub></i>',"formatBlock.H2"],h3:['<i class="icon">H<sub>3</sub></i>','<i class="icon">H<sub>3</sub></i>',"formatBlock.H3"],alignLeft:["text_alignleft","format_align_left","justifyLeft"],alignCenter:["text_aligncenter","format_align_center","justifyCenter"],alignRight:["text_alignright","format_align_right","justifyRight"],alignJustify:["text_justify","format_align_justify","justifyFull"],subscript:["textformat_subscript",'<i class="icon">A<sub>1</sub></i>',"subscript"],superscript:["textformat_superscript",'<i class="icon">A<sup>1</sup></i>',"superscript"],indent:["increase_indent","format_indent_increase","indent"],outdent:["decrease_indent","format_indent_decrease","outdent"]},Ga=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(qa()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e,t){var i;u()(this,r),i=n.call(this,t,[e]);var a=C()(i),o=z.extend({},e.params.textEditor);a.useModulesParams(o),a.params=z.extend(o,t);var s=a.params.el;if(!s)return L()(i,a);var l=k(s);if(0===l.length)return L()(i,a);if(l[0].f7TextEditor)return L()(i,l[0].f7TextEditor);var c=l.children(".text-editor-content");if(c.length||(l.append('<div class="text-editor-content" contenteditable></div>'),c=l.children(".text-editor-content")),z.extend(a,{app:e,$el:l,el:l[0],$contentEl:c,contentEl:c[0]}),"value"in t&&(a.value=a.params.value),"keyboard-toolbar"===a.params.mode&&(e.device.cordova||e.device.android||(a.params.mode="popover")),"string"==typeof a.params.buttons)try{a.params.buttons=JSON.parse(a.params.buttons)}catch(e){throw new Error('Framework7: TextEditor: wrong "buttons" parameter format')}return l[0].f7TextEditor=a,a.onButtonClick=a.onButtonClick.bind(a),a.onFocus=a.onFocus.bind(a),a.onBlur=a.onBlur.bind(a),a.onInput=a.onInput.bind(a),a.onPaste=a.onPaste.bind(a),a.onSelectionChange=a.onSelectionChange.bind(a),a.closeKeyboardToolbar=a.closeKeyboardToolbar.bind(a),a.attachEvents=function(){"toolbar"===a.params.mode&&a.$el.find(".text-editor-toolbar").on("click","button",a.onButtonClick),"keyboard-toolbar"===a.params.mode&&(a.$keyboardToolbarEl.on("click","button",a.onButtonClick),a.$el.parents(".page").on("page:beforeout",a.closeKeyboardToolbar)),"popover"===a.params.mode&&a.popover&&a.popover.$el.on("click","button",a.onButtonClick),a.$contentEl.on("paste",a.onPaste),a.$contentEl.on("focus",a.onFocus),a.$contentEl.on("blur",a.onBlur),a.$contentEl.on("input",a.onInput,!0),k(d.a).on("selectionchange",a.onSelectionChange)},a.detachEvents=function(){"toolbar"===a.params.mode&&a.$el.find(".text-editor-toolbar").off("click","button",a.onButtonClick),"keyboard-toolbar"===a.params.mode&&(a.$keyboardToolbarEl.off("click","button",a.onButtonClick),a.$el.parents(".page").off("page:beforeout",a.closeKeyboardToolbar)),"popover"===a.params.mode&&a.popover&&a.popover.$el.off("click","button",a.onButtonClick),a.$contentEl.off("paste",a.onPaste),a.$contentEl.off("focus",a.onFocus),a.$contentEl.off("blur",a.onBlur),a.$contentEl.off("input",a.onInput,!0),k(d.a).off("selectionchange",a.onSelectionChange)},a.useModules(),a.init(),L()(i,a)}return T()(r,[{key:"setValue",value:function(e){return this.value===e||(this.value=e,this.$contentEl.html(e),this.$el.trigger("texteditor:change",this.value),this.emit("local::change textEditorChange",this,this.value)),this}},{key:"getValue",value:function(){return this.value}},{key:"createLink",value:function(){var e,t=this,n=d.b.getSelection(),r=[];if(n&&n.anchorNode&&k(n.anchorNode).parents(t.$el).length){for(var i=n.anchorNode;i;)r.push(i),i.nextSibling&&i!==n.focusNode||(i=null),i&&(i=i.nextSibling);e=k(r).closest("a").add(k(r).children("a"))}if(e&&e.length)return e.each((function(e,t){var n=d.b.getSelection(),r=d.a.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),d.a.execCommand("unlink",!1),n.removeAllRanges()})),t;var a=t.getSelectionRange();return a?(t.app.dialog.prompt(t.params.linkUrlText,"",(function(e){e&&e.trim().length&&(t.setSelectionRange(a),d.a.execCommand("createLink",!1,e.trim()))})).$el.find("input").focus(),t):t}},{key:"insertImage",value:function(){var e=this,t=e.getSelectionRange();return t?(e.app.dialog.prompt(e.params.imageUrlText,"",(function(n){n&&n.trim().length&&(e.setSelectionRange(t),d.a.execCommand("insertImage",!1,n.trim()))})).$el.find("input").focus(),e):e}},{key:"removePlaceholder",value:function(){this.$contentEl.find(".text-editor-placeholder").remove()}},{key:"insertPlaceholder",value:function(){this.$contentEl.append('<div class="text-editor-placeholder">'.concat(this.params.placeholder,"</div>"))}},{key:"onSelectionChange",value:function(){if("toolbar"!==this.params.mode){var e=d.b.getSelection(),t=k(e.anchorNode).parents(this.contentEl).length||e.anchorNode===this.contentEl;if("keyboard-toolbar"!==this.params.mode){if("popover"===this.params.mode){var n=k(e.anchorNode).parents(this.popover.el).length||e.anchorNode===this.popover.el;if(!t&&!n)return void this.closePopover();if(!e.isCollapsed&&e.rangeCount){var r=e.getRangeAt(0).getBoundingClientRect();this.openPopover(r.x+(d.b.scrollX||0),r.y+(d.b.scrollY||0),r.width,r.height)}else e.isCollapsed&&this.closePopover()}}else t?this.openKeyboardToolbar():this.closeKeyboardToolbar()}}},{key:"onPaste",value:function(e){if(this.params.clearFormattingOnPaste&&e.clipboardData&&e.clipboardData.getData){var t=e.clipboardData.getData("text/plain");e.preventDefault(),d.a.execCommand("insertText",!1,t)}}},{key:"onInput",value:function(){var e=this.$contentEl.html();this.$el.trigger("texteditor:input"),this.emit("local:input textEditorInput",this),this.value=e,this.$el.trigger("texteditor:change",this.value),this.emit("local::change textEditorChange",this,this.value)}},{key:"onFocus",value:function(){this.removePlaceholder(),this.$contentEl.focus(),this.$el.trigger("texteditor:focus"),this.emit("local::focus textEditorFocus",this)}},{key:"onBlur",value:function(){if(this.params.placeholder&&""===this.$contentEl.html()&&this.insertPlaceholder(),"popover"===this.params.mode){var e=d.b.getSelection(),t=k(e.anchorNode).parents(this.contentEl).length||e.anchorNode===this.contentEl;d.a.activeElement&&this.popover&&k(d.a.activeElement).closest(this.popover.$el).length||t||this.closePopover()}if("keyboard-toolbar"===this.params.mode){var n=d.b.getSelection();k(n.anchorNode).parents(this.contentEl).length||n.anchorNode===this.contentEl||this.closeKeyboardToolbar()}this.$el.trigger("texteditor:blur"),this.emit("local::blur textEditorBlur",this)}},{key:"onButtonClick",value:function(e){var t=d.b.getSelection();if(k(t.anchorNode).parents(this.contentEl).length||t.anchorNode===this.contentEl){var n=k(e.target).closest("button");n.parents("form").length&&e.preventDefault();var r=n.attr("data-button"),i=this.params.customButtons&&this.params.customButtons[r];if(r&&(Wa[r]||i))if(n.trigger("texteditor:buttonclick",r),this.emit("local::buttonClick textEditorButtonClick",this,r),i)i.onClick&&i.onClick(this,n[0]);else{var a=Wa[r][2];if("createLink"!==a)if("insertImage"!==a)if(0!==a.indexOf("formatBlock"))d.a.execCommand(a,!1);else{var o=a.split(".")[1],s=k(t.anchorNode);s.parents(o.toLowerCase()).length||s.is(o)?d.a.execCommand("formatBlock",!1,"div"):d.a.execCommand("formatBlock",!1,o)}else this.insertImage();else this.createLink()}}}},{key:"getSelectionRange",value:function(){if(d.b.getSelection){var e=d.b.getSelection();if(e.getRangeAt&&e.rangeCount)return e.getRangeAt(0)}else if(d.a.selection&&d.a.selection.createRange)return d.a.selection.createRange();return null}},{key:"setSelectionRange",value:function(e){if(e)if(d.b.getSelection){var t=d.b.getSelection();t.removeAllRanges(),t.addRange(e)}else d.a.selection&&e.select&&e.select()}},{key:"renderButtons",value:function(){var e=this,t="";function n(t){var n="md"===e.app.theme?"material-icons":"f7-icons";if(e.params.customButtons&&e.params.customButtons[t]){var r=e.params.customButtons[t];return'<button type="button" class="text-editor-button" data-button="'.concat(t,'">').concat(r.content||"","</button>")}if(!Wa[t])return"";var i=Wa[t]["md"===e.app.theme?1:0];return'<button type="button" class="text-editor-button" data-button="'.concat(t,'">').concat(i.indexOf("<")>=0?i:'<i class="'.concat(n,'">').concat(i,"</i>"),"</button>").trim()}return e.params.buttons.forEach((function(r,i){Array.isArray(r)?(r.forEach((function(e){t+=n(e)})),i<e.params.buttons.length-1&&e.params.dividers&&(t+='<div class="text-editor-button-divider"></div>')):t+=n(r)})),t}},{key:"createToolbar",value:function(){this.$el.prepend('<div class="text-editor-toolbar">'.concat(this.renderButtons(),"</div>"))}},{key:"createKeyboardToolbar",value:function(){var e=this.$el.closest(".theme-dark").length>0||"dark"===this.app.device.prefersColorScheme();this.$keyboardToolbarEl=k('<div class="toolbar toolbar-bottom text-editor-keyboard-toolbar '.concat(e?"theme-dark":"",'"><div class="toolbar-inner">').concat(this.renderButtons(),"</div></div>"))}},{key:"createPopover",value:function(){var e=this.$el.closest(".theme-dark").length>0;this.popover=this.app.popover.create({content:'\n        <div class="popover '.concat(e?"theme-light":"theme-dark",' text-editor-popover">\n          <div class="popover-inner">').concat(this.renderButtons(),"</div>\n        </div>\n      "),closeByOutsideClick:!1,backdrop:!1})}},{key:"openKeyboardToolbar",value:function(){this.$keyboardToolbarEl.parent(this.app.root).length||(this.$el.trigger("texteditor:keyboardopen"),this.emit("local::keyboardOpen textEditorKeyboardOpen",this),this.app.root.append(this.$keyboardToolbarEl))}},{key:"closeKeyboardToolbar",value:function(){this.$keyboardToolbarEl.remove(),this.$el.trigger("texteditor:keyboardclose"),this.emit("local::keyboardClose textEditorKeyboardClose",this)}},{key:"openPopover",value:function(e,t,n,r){var i=this;i.popover&&(Object.assign(i.popover.params,{targetX:e,targetY:t,targetWidth:n,targetHeight:r}),clearTimeout(i.popoverTimeout),i.popoverTimeout=setTimeout((function(){i.popover&&(i.popover.opened?i.popover.resize():(i.$el.trigger("texteditor:popoveropen"),i.emit("local::popoverOpen textEditorPopoverOpen",i),i.popover.open()))}),400))}},{key:"closePopover",value:function(){var e=this;clearTimeout(e.popoverTimeout),e.popover&&e.popover.opened&&(e.popoverTimeout=setTimeout((function(){e.popover&&(e.$el.trigger("texteditor:popoverclose"),e.emit("local::popoverClose textEditorPopoverClose",e),e.popover.close())}),400))}},{key:"init",value:function(){return this.value?this.$contentEl.html(this.value):this.value=this.$contentEl.html(),this.params.placeholder&&""===this.value&&this.insertPlaceholder(),"toolbar"===this.params.mode?this.createToolbar():"popover"===this.params.mode?this.createPopover():"keyboard-toolbar"===this.params.mode&&this.createKeyboardToolbar(),this.attachEvents(),this.$el.trigger("texteditor:init"),this.emit("local::init textEditorInit",this),this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("texteditor:beforedestroy"),e.emit("local::beforeDestroy textEditorBeforeDestroy",e),e.detachEvents(),"keyboard-toolbar"===e.params.mode&&e.$keyboardToolbarEl&&e.$keyboardToolbarEl.remove(),e.popover&&(e.popover.close(!1),e.popover.destroy()),delete e.$el[0].f7TextEditor,z.deleteProps(e),e=null}}]),r}(G),Ka={name:"textEditor",params:{textEditor:{el:null,mode:"toolbar",value:void 0,customButtons:null,buttons:[["bold","italic","underline","strikeThrough"],["orderedList","unorderedList"],["link","image"],["paragraph","h1","h2","h3"],["alignLeft","alignCenter","alignRight","alignJustify"],["subscript","superscript"],["indent","outdent"]],dividers:!0,imageUrlText:"Insert image URL",linkUrlText:"Insert link URL",placeholder:null,clearFormattingOnPaste:!0}},create:function(){this.textEditor=z.extend(X({defaultSelector:".text-editor",constructor:Ga,app:this,domProp:"f7TextEditor"}))},static:{TextEditor:Ga},on:{tabMounted:function(e){var t=this;k(e).find(".text-editor-init").each((function(e,n){var r=k(n).dataset();t.textEditor.create(z.extend({el:n},r||{}))}))},tabBeforeRemove:function(e){k(e).find(".text-editor-init").each((function(e,t){t.f7TextEditor&&t.f7TextEditor.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".text-editor-init").each((function(e,n){var r=k(n).dataset();t.textEditor.create(z.extend({el:n},r||{}))}))},pageBeforeRemove:function(e){e.$el.find(".text-editor-init").each((function(e,t){t.f7TextEditor&&t.f7TextEditor.destroy()}))}},vnode:{"text-editor-init":{insert:function(e){var t=e.elm,n=k(t).dataset();this.textEditor.create(z.extend({el:t},n||{}))},destroy:function(e){var t=e.elm;t.f7TextEditor&&t.f7TextEditor.destroy()}}}};function Ja(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Xa=function(e){M()(r,e);var t,n=(t=r,function(){var e,n=O()(t);if(Ja()){var r=O()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return L()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,r),t=n.call(this,i,[e]);var a,o=C()(t);if(!d.b.vi)throw new Error("Framework7: vi SDK not found.");void 0!==d.b.orientation&&(a=-90===d.b.orientation||90===d.b.orientation?"horizontal":"vertical");var s=z.extend({},e.params.vi,{appId:e.id,appVer:e.version,language:e.language,width:e.width,height:e.height,os:V.a.os,osVersion:V.a.osVersion,orientation:a});o.useModulesParams(s),o.params=z.extend(s,i);var l={},c="on autoplay fallbackOverlay fallbackOverlayText enabled".split(" ");if(Object.keys(o.params).forEach((function(e){if(!(c.indexOf(e)>=0)){var t=o.params[e];[null,void 0].indexOf(t)>=0||(l[e]=t)}})),!o.params.appId)throw new Error('Framework7: "app.id" is required to display an ad. Make sure you have specified it on app initialization.');if(!o.params.placementId)throw new Error('Framework7: "placementId" is required to display an ad.');function h(){var t=k("iframe#viAd");0!==t.length&&t.css({width:"".concat(e.width,"px"),height:"".concat(e.height,"px")})}function p(){o.$overlayEl&&(o.$overlayEl.off("click touchstart"),o.$overlayEl.remove())}function f(t){var n;t&&(o.$overlayEl=k('\n        <div class="vi-overlay">\n          '.concat(o.params.fallbackOverlayText?'<div class="vi-overlay-text">'.concat(o.params.fallbackOverlayText,"</div>"):"",'\n          <div class="vi-overlay-play-button"></div>\n        </div>\n      ').trim()),o.$overlayEl.on("touchstart",(function(){n=z.now()})),o.$overlayEl.on("click",(function(){if(!(z.now()-n>300)){if(t)return t.play(),void p();o.start(),p()}})),e.root.append(o.$overlayEl))}return o.ad=new d.b.vi.Ad(l),z.extend(o.ad,{onAdReady:function(){e.on("resize",h),o.emit("local::ready"),o.params.autoplay&&o.start()},onAdStarted:function(){o.emit("local::started")},onAdClick:function(e){o.emit("local::click",e)},onAdImpression:function(){o.emit("local::impression")},onAdStopped:function(t){e.off("resize",h),p(),o.emit("local::stopped",t),"complete"===t&&(o.emit("local::complete"),o.emit("local::completed")),"userexit"===t&&o.emit("local::userexit"),o.destroyed=!0},onAutoPlayFailed:function(e,t){o.emit("local::autoplayFailed",e,t),e&&e.name&&-1!==e.name.indexOf("NotAllowedError")&&o.params.fallbackOverlay&&f(t)},onAdError:function(t){p(),e.off("resize",h),o.emit("local::error",t),o.destroyed=!0}}),o.init(),z.extend(o,{app:e}),t}return T()(r,[{key:"start",value:function(){this.destroyed||this.ad&&this.ad.startAd()}},{key:"pause",value:function(){this.destroyed||this.ad&&this.ad.pauseAd()}},{key:"resume",value:function(){this.destroyed||this.ad&&this.ad.resumeAd()}},{key:"stop",value:function(){this.destroyed||this.ad&&this.ad.stopAd()}},{key:"init",value:function(){this.destroyed||this.ad&&this.ad.initAd()}},{key:"destroy",value:function(){this.destroyed=!0,this.emit("local::beforeDestroy"),z.deleteProps(this)}}]),r}(G),Qa={name:"vi",params:{vi:{enabled:!1,autoplay:!0,fallbackOverlay:!0,fallbackOverlayText:"Please watch this ad",showMute:!0,startMuted:(V.a.ios||V.a.android)&&!V.a.cordova,appId:null,appVer:null,language:null,width:null,height:null,placementId:"pltd4o7ibb9rc653x14",placementType:"interstitial",videoSlot:null,showProgress:!0,showBranding:!0,os:null,osVersion:null,orientation:null,age:null,gender:null,advertiserId:null,latitude:null,longitude:null,accuracy:null,storeId:null,ip:null,manufacturer:null,model:null,connectionType:null,connectionProvider:null}},create:function(){var e=this;e.vi={sdkReady:!1,createAd:function(t){return new Xa(e,t)},loadSdk:function(){if(!e.vi.sdkReady){var t=d.a.createElement("script");t.onload=function(){e.emit("viSdkReady"),e.vi.sdkReady=!0},t.src="https://c.vi-serve.com/viadshtml/vi.min.js",k("head").append(t)}}}},on:{init:function(){(this.params.vi.enabled||this.passedParams.vi&&!1!==this.passedParams.vi.enabled)&&this.vi.loadSdk()}}};Re.use([ze,Ve]),se.use([me,ve,ge,ye,be,_e,Ue,Ye,At,It,Rt,Bt,jt,Ht,zt,{name:"subnavbar",on:{pageInit:function(e){e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar"),e.$el.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar")}}},qt,Zt,{name:"appbar"},an,ln,dn,fn,gn,_n,En,Sn,xn,$n,Pn,Dn,{name:"contactsList"},Nn,Bn,{name:"timeline"},Fn,qn,Gn,{name:"chip"},er,nr,{name:"checkbox"},{name:"radio"},ar,lr,dr,fr,yr,Er,xr,$r,Or,Ir,Rr,Br,Hr,Vr,Gr,ua,pa,va,ba,ka,Sa,{name:"skeleton"},xa,Ua,Va,Ka,{name:"elevation"},{name:"typography"},Qa]);var Za,eo=se,to={text:function(e){return null==e?"":e},noUndefinedProps:function(e){var t={};return Object.keys(e).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t},isTrueProp:function(e){return!0===e||""===e},isStringProp:function(e){return"string"==typeof e&&""!==e},isObject:function(e){return"object"===N()(e)&&null!==e&&e.constructor&&e.constructor===Object},now:function(){return Date.now()},extend:function(){for(var e,t,n=!0,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];"boolean"==typeof i[0]?(n=i[0],e=i[1],i.splice(0,2),t=i):(e=i[0],i.splice(0,1),t=i);for(var o=0;o<t.length;o+=1){var s=i[o];if(null!=s)for(var l=Object.keys(Object(s)),c=0,u=l.length;c<u;c+=1){var d=l[c],h=Object.getOwnPropertyDescriptor(s,d);void 0!==h&&h.enumerable&&(n?to.isObject(e[d])&&to.isObject(s[d])?to.extend(e[d],s[d]):!to.isObject(e[d])&&to.isObject(s[d])?(e[d]={},to.extend(e[d],s[d])):e[d]=s[d]:e[d]=s[d])}}return e},flattenArray:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){Array.isArray(t)?e.push.apply(e,I()(to.flattenArray.apply(to,I()(t)))):e.push(t)})),e},classNames:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){"object"===N()(t)&&t.constructor===Object?Object.keys(t).forEach((function(n){t[n]&&e.push(n)})):t&&e.push(t)}));var i=[];return e.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i.join(" ")},bindMethods:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0;n<t.length;n+=1)e[t[n]]&&(e[t[n]]=e[t[n]].bind(e))}},no=to,ro={colorProps:{color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,themeDark:Boolean},colorClasses:function(e){var t,n=e.color,r=e.colorTheme,i=e.textColor,a=e.bgColor,o=e.borderColor,s=e.rippleColor;return t={"theme-dark":e.themeDark},Z()(t,"color-".concat(n),n),Z()(t,"color-theme-".concat(r),r),Z()(t,"text-color-".concat(i),i),Z()(t,"bg-color-".concat(a),a),Z()(t,"border-color-".concat(o),o),Z()(t,"ripple-color-".concat(s),s),t},linkIconProps:{icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconAurora:String,iconColor:String,iconSize:[String,Number]},linkRouterProps:{back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String},linkRouterAttrs:function(e){var t,n,r=e.force,i=e.reloadCurrent,a=e.reloadPrevious,o=e.reloadAll,s=e.reloadDetail,l=e.animate,c=e.ignoreCache,u=e.routeTabId,d=e.view,h=e.transition;return"animate"in e&&void 0!==l&&(t=l.toString()),"reloadDetail"in e&&void 0!==s&&(n=s.toString()),{"data-force":r||void 0,"data-reload-current":i||void 0,"data-reload-all":o||void 0,"data-reload-previous":a||void 0,"data-reload-detail":n,"data-animate":t,"data-ignore-cache":c||void 0,"data-route-tab-id":u||void 0,"data-view":no.isStringProp(d)?d:void 0,"data-transition":no.isStringProp(h)?h:void 0}},linkRouterClasses:function(e){var t=e.back,n=e.linkBack;return{back:t||n,external:e.external,"prevent-router":e.preventRouter}},linkActionsProps:{searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String],menuClose:{type:[Boolean,String],default:void 0}},linkActionsAttrs:function(e){var t=e.searchbarEnable,n=e.searchbarDisable,r=e.searchbarClear,i=e.searchbarToggle,a=e.panelOpen,o=e.panelClose,s=e.panelToggle,l=e.popupOpen,c=e.popupClose,u=e.actionsOpen,d=e.actionsClose,h=e.popoverOpen,p=e.popoverClose,f=e.loginScreenOpen,m=e.loginScreenClose,v=e.sheetOpen,g=e.sheetClose,y=e.sortableEnable,b=e.sortableDisable,_=e.sortableToggle,w=e.cardOpen,k=e.cardClose;return{"data-searchbar":no.isStringProp(t)&&t||no.isStringProp(n)&&n||no.isStringProp(r)&&r||no.isStringProp(i)&&i||void 0,"data-panel":no.isStringProp(a)&&a||no.isStringProp(o)&&o||no.isStringProp(s)&&s||void 0,"data-popup":no.isStringProp(l)&&l||no.isStringProp(c)&&c||void 0,"data-actions":no.isStringProp(u)&&u||no.isStringProp(d)&&d||void 0,"data-popover":no.isStringProp(h)&&h||no.isStringProp(p)&&p||void 0,"data-sheet":no.isStringProp(v)&&v||no.isStringProp(g)&&g||void 0,"data-login-screen":no.isStringProp(f)&&f||no.isStringProp(m)&&m||void 0,"data-sortable":no.isStringProp(y)&&y||no.isStringProp(b)&&b||no.isStringProp(_)&&_||void 0,"data-card":no.isStringProp(w)&&w||no.isStringProp(k)&&k||void 0}},linkActionsClasses:function(e){var t=e.searchbarEnable,n=e.searchbarDisable,r=e.searchbarClear,i=e.searchbarToggle,a=e.panelOpen,o=e.panelClose,s=e.panelToggle,l=e.popupOpen,c=e.popupClose,u=e.actionsClose,d=e.actionsOpen,h=e.popoverOpen,p=e.popoverClose,f=e.loginScreenOpen,m=e.loginScreenClose,v=e.sheetOpen,g=e.sheetClose,y=e.sortableEnable,b=e.sortableDisable,_=e.sortableToggle,w=e.cardOpen,k=e.cardPreventOpen,E=e.cardClose,T=e.menuClose;return{"searchbar-enable":t||""===t,"searchbar-disable":n||""===n,"searchbar-clear":r||""===r,"searchbar-toggle":i||""===i,"panel-close":o||""===o,"panel-open":a||""===a,"panel-toggle":s||""===s,"popup-close":c||""===c,"popup-open":l||""===l,"actions-close":u||""===u,"actions-open":d||""===d,"popover-close":p||""===p,"popover-open":h||""===h,"sheet-close":g||""===g,"sheet-open":v||""===v,"login-screen-close":m||""===m,"login-screen-open":f||""===f,"sortable-enable":y||""===y,"sortable-disable":b||""===b,"sortable-toggle":_||""===_,"card-close":E||""===E,"card-open":w||""===w,"card-prevent-open":k||""===k,"menu-close":T||""===T}}},io=function(e){var t={},n=e.$props;Object.keys(n).forEach((function(e){void 0!==n[e]&&(t[e]=n[e])}));var r=[];return Object.keys(e.$slots).forEach((function(t){r.push.apply(r,I()(e.$slots[t]))})),t.children=r,t},ao={props:Object.assign({id:[String,Number]},ro.colorProps),name:"f7-accordion-content",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"accordion-item-content",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},oo=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=e;t.split(" ").forEach((function(e){a.$emit.apply(a,[e].concat(r))}))},so={name:"f7-accordion-item",props:Object.assign({id:[String,Number],opened:Boolean},ro.colorProps),created:function(){no.bindMethods(this,"onBeforeOpen onOpen onOpened onBeforeClose onClose onClosed".split(" "))},mounted:function(){var e=this,t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(t){t.on("accordionBeforeOpen",e.onBeforeOpen),t.on("accordionOpen",e.onOpen),t.on("accordionOpened",e.onOpened),t.on("accordionBeforeClose",e.onBeforeClose),t.on("accordionClose",e.onClose),t.on("accordionClosed",e.onClosed)})))},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("accordionBeforeOpen",this.onBeforeOpen),e.off("accordionOpen",this.onOpen),e.off("accordionOpened",this.onOpened),e.off("accordionBeforeClose",this.onBeforeClose),e.off("accordionClose",this.onClose),e.off("accordionClosed",this.onClosed),delete this.eventTargetEl}},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.opened;return e("div",{style:i,class:no.classNames(n,"accordion-item",{"accordion-item-opened":a},ro.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default])},methods:{onBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordionBeforeOpen accordion:beforeopen",t)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionOpen accordion:open")},onOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionOpened accordion:opened")},onBeforeClose:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordionBeforeClose accordion:beforeclose",t)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionClose accordion:close")},onClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionClosed accordion:closed")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},lo={props:Object.assign({id:[String,Number]},ro.colorProps),name:"f7-accordion-toggle",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"accordion-item-toggle",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},co={props:Object.assign({id:[String,Number],accordionOpposite:Boolean},ro.colorProps),name:"f7-accordion",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.accordionOpposite;return e("div",{style:i,class:no.classNames(n,"accordion-list",a&&"accordion-opposite",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},uo={name:"f7-actions-button",props:Object.assign({id:[String,Number],bold:Boolean,close:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.id,i=n.className,a=n.style,o=n.bold;return this.$slots.media&&this.$slots.media.length&&(e=t("div",{class:"actions-button-media"},[this.$slots.media])),t("div",{style:a,class:no.classNames(i,{"actions-button":!0,"actions-button-bold":o},ro.colorClasses(n)),ref:"el",attrs:{id:r}},[e,t("div",{class:"actions-button-text"},[this.$slots.default])])},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){var t=this.$$,n=this.$refs.el;this.props.close&&this.$f7&&n&&this.$f7.actions.close(t(n).parents(".actions-modal")),this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},ho={name:"f7-actions-group",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"actions-group",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},po={name:"f7-actions-label",props:Object.assign({id:[String,Number],bold:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.bold;return e("div",{style:i,class:no.classNames(n,"actions-label",{"actions-button-bold":a},ro.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default])},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},fo={name:"f7-actions",props:Object.assign({id:[String,Number],opened:Boolean,grid:Boolean,convertToPopover:Boolean,forceToPopover:Boolean,target:[String,Object],backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.grid;return e("div",{style:i,ref:"el",class:no.classNames(n,"actions-modal",{"actions-grid":a},ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7Actions&&(e?this.f7Actions.open():this.f7Actions.close())}},created:function(){no.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.grid,i=n.target,a=n.convertToPopover,o=n.forceToPopover,s=n.opened,l=n.closeByBackdropClick,c=n.closeByOutsideClick,u=n.closeOnEscape,d=n.backdrop,h=n.backdropEl,p={el:t,grid:r,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}};i&&(p.targetEl=i);var f=e.$options.propsData;void 0!==f.convertToPopover&&(p.convertToPopover=a),void 0!==f.forceToPopover&&(p.forceToPopover=o),void 0!==f.backdrop&&(p.backdrop=d),void 0!==f.backdropEl&&(p.backdropEl=h),void 0!==f.closeByBackdropClick&&(p.closeByBackdropClick=l),void 0!==f.closeByOutsideClick&&(p.closeByOutsideClick=c),void 0!==f.closeOnEscape&&(p.closeOnEscape=u),e.$f7ready((function(){e.f7Actions=e.$f7.actions.create(p),s&&e.f7Actions.open(!1)}))}},beforeDestroy:function(){this.f7Actions&&this.f7Actions.destroy(),delete this.f7Actions},methods:{onOpen:function(e){this.dispatchEvent("actions:open actionsOpen",e)},onOpened:function(e){this.dispatchEvent("actions:opened actionsOpened",e)},onClose:function(e){this.dispatchEvent("actions:close actionsClose",e)},onClosed:function(e){this.dispatchEvent("actions:closed actionsClosed",e)},open:function(e){if(this.f7Actions)return this.f7Actions.open(e)},close:function(e){if(this.f7Actions)return this.f7Actions.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},mo={instance:null,Framework7:null,events:null,init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=mo.events,i=mo.Framework7,a=no.extend({},t,{root:e});n&&n.length&&!a.routes&&(a.routes=n);var o=new i(a);Za=o,o.initialized?(mo.instance=o,Za=o,r.emit("ready",mo.instance)):o.on("init",(function(){mo.instance=o,Za=o,r.emit("ready",mo.instance)}))},ready:function(e){e&&(mo.instance?e(mo.instance):mo.events.once("ready",e))},routers:{views:[],tabs:[],modals:null}},vo=mo,go=function(e,t,n){var r,i=e;r="function"==typeof t?t(i.state,i.props):t,Object.keys(r).forEach((function(e){i.$set(i.state,e,r[e])})),"function"==typeof n&&n()},yo={name:"f7-routable-modals",data:function(){return{state:{modals:[]}}},render:function(){var e=this.$createElement;return e("div",{ref:"el",class:"framework7-modals"},[this.state.modals.map((function(t){var n=t.component;return e(n,{key:t.id,props:t.props})}))])},updated:function(){this.routerData&&vo.events.emit("modalsRouterDidUpdate",this.routerData)},beforeDestroy:function(){this.routerData&&(vo.routers.modals=null,this.routerData=null,delete this.routerData)},mounted:function(){var e=this,t=e.$refs.el;e.routerData={modals:e.state.modals,el:t,component:e,setModals:function(t){e.setState({modals:t})}},vo.routers.modals=e.routerData},methods:{setState:function(e,t){go(this,e,t)}}},bo={name:"f7-app",props:Object.assign({id:[String,Number],params:Object,routes:Array},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className;return e("div",{ref:"el",style:r,class:no.classNames(i,"framework7-root",ro.colorClasses(t)),attrs:{id:n||"framework7-root"}},[this.$slots.default,e(yo)])},mounted:function(){var e=this.props,t=e.params,n=void 0===t?{}:t,r=e.routes,i=this.$refs.el,a=i.parentNode;a&&a!==document.body&&a.parentNode===document.body&&(a.style.height="100%"),vo.instance||vo.init(i,n,r)},computed:{props:function(){return io(this)}}},_o={name:"f7-appbar",props:Object.assign({id:[String,Number],noShadow:Boolean,noHairline:Boolean,inner:{type:Boolean,default:!0},innerClass:String,innerClassName:String},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.inner,i=n.innerClass,a=n.innerClassName,o=n.className,s=n.id,l=n.style,c=n.noShadow,u=n.noHairline;return r&&(e=t("div",{class:no.classNames("appbar-inner",i,a)},[this.$slots.default])),t("div",{style:l,class:no.classNames(o,"appbar",{"no-shadow":c,"no-hairline":u},ro.colorClasses(n)),attrs:{id:s}},[this.$slots["before-inner"],e||this.$slots.default,this.$slots["after-inner"]])},computed:{props:function(){return io(this)}}},wo={name:"f7-badge",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("span",{style:t.style,class:no.classNames(n,"badge",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},ko={name:"f7-block-footer",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"block-footer",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Eo={name:"f7-block-header",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"block-header",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},To={name:"f7-block-title",props:Object.assign({id:[String,Number],large:Boolean,medium:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.large,o=t.medium;return e("div",{style:i,class:no.classNames(n,"block-title",{"block-title-large":a,"block-title-medium":o},ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},So={name:"f7-block",props:Object.assign({id:[String,Number],inset:Boolean,xsmallInset:Boolean,smallInset:Boolean,mediumInset:Boolean,largeInset:Boolean,xlargeInset:Boolean,strong:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,noHairlines:Boolean,noHairlinesMd:Boolean,noHairlinesIos:Boolean,noHairlinesAurora:Boolean},ro.colorProps),created:function(){no.bindMethods(this,["onTabShow","onTabHide"])},mounted:function(){var e=this,t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(t){t.on("tabShow",e.onTabShow),t.on("tabHide",e.onTabHide)})))},beforeDestroy:function(){this.$refs.el&&this.$f7&&(this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide),delete this.eventTargetEl)},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.inset,i=t.xsmallInset,a=t.smallInset,o=t.mediumInset,s=t.largeInset,l=t.xlargeInset,c=t.strong,u=t.accordionList,d=t.accordionOpposite,h=t.tabs,p=t.tab,f=t.tabActive,m=t.noHairlines,v=t.noHairlinesIos,g=t.noHairlinesMd,y=t.noHairlinesAurora,b=t.id;return e("div",{style:t.style,class:no.classNames(n,"block",{inset:r,"xsmall-inset":i,"small-inset":a,"medium-inset":o,"large-inset":s,"xlarge-inset":l,"block-strong":c,"accordion-list":u,"accordion-opposite":d,tabs:h,tab:p,"tab-active":f,"no-hairlines":m,"no-hairlines-md":g,"no-hairlines-ios":v,"no-hairlines-aurora":y},ro.colorClasses(t)),ref:"el",attrs:{id:b}},[this.$slots.default])},methods:{onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tabShow tab:show",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tabHide tab:hide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Co={name:"f7-icon",props:Object.assign({id:[String,Number],material:String,f7:String,icon:String,ios:String,aurora:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number]},ro.colorProps),data:function(){var e=this;io(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.size;return"number"!=typeof i&&parseFloat(i)!==1*i||(i="".concat(i,"px")),e("i",{ref:"el",style:no.extend({fontSize:i,width:i,height:i},r),class:this.classes,attrs:{id:n}},[this.iconTextComputed,this.$slots.default])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.tooltip,i=n.tooltipTrigger;r&&e.$f7ready((function(n){e.f7Tooltip=n.tooltip.create({targetEl:t,text:r,trigger:i})}))}},beforeDestroy:function(){this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},computed:{iconTextComputed:function(){var e=this.props,t=e.material,n=e.f7,r=e.md,i=e.ios,a=e.aurora,o=this.state._theme,s=t||n;return r&&o&&o.md&&(r.indexOf("material:")>=0||r.indexOf("f7:")>=0)?s=r.split(":")[1]:i&&o&&o.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)?s=i.split(":")[1]:a&&o&&o.aurora&&(a.indexOf("material:")>=0||a.indexOf("f7:")>=0)&&(s=a.split(":")[1]),s},classes:function(){var e,t={icon:!0},n=this.props,r=this.state._theme,i=n.material,a=n.f7,o=n.icon,s=n.md,l=n.ios,c=n.aurora,u=n.className;if(r&&r.ios?e=l:r&&r.md?e=s:r&&r.aurora&&(e=c),e){var d=e.split(":"),h=d[0],p=d[1];"material"!==h&&"f7"!==h||(t["material-icons"]="material"===h,t["f7-icons"]="f7"===h),"icon"===h&&(t[p]=!0)}else t={icon:!0,"material-icons":i,"f7-icons":a},o&&(t[o]=!0);return no.classNames(u,t,ro.colorClasses(n))},props:function(){return io(this)}},methods:{setState:function(e,t){go(this,e,t)}}},xo=function(e){if(!e)return e;var t="style class domProps slot key ref attrs on props".split(" ");return Object.keys(e).forEach((function(n){if("className"===n)return e.class=e.className,void delete e.className;if("dangerouslySetInnerHTML"===n)return e.domProps||(e.domProps={}),e.domProps.innerHTML=e[n],e.domProps.innerHTML&&e.domProps.innerHTML.__html&&(e.domProps.innerHTML=e.domProps.innerHTML.__html),void delete e.dangerouslySetInnerHTML;if(n.match(/^on?([A-Z])/)){e.on||(e.on={});var r=n.replace(/(^on?)([A-Z])/,(function(e,t,n){return n.toLowerCase()}));return e.on[r]=e[n],void delete e[n]}t.indexOf(n)>=0||(e.attrs||(e.attrs={}),e.attrs[n]||(e.attrs[n]=e[n],delete e[n]))})),e},Mo={name:"f7-button",props:Object.assign({id:[String,Number],text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,type:String,href:{type:[String,Boolean],default:"#"},target:String,round:Boolean,roundMd:Boolean,roundIos:Boolean,roundAurora:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,fillAurora:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,largeAurora:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,smallAurora:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,raisedAurora:Boolean,outline:Boolean,outlineMd:Boolean,outlineIos:Boolean,outlineAurora:Boolean,active:Boolean,disabled:Boolean,tooltip:String,tooltipTrigger:String},ro.colorProps,{},ro.linkIconProps,{},ro.linkRouterProps,{},ro.linkActionsProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.text,a=r.icon,o=r.iconMaterial,s=r.iconF7,l=r.iconMd,c=r.iconIos,u=r.iconAurora,d=r.iconColor,h=r.iconSize,p=r.id,f=r.style,m=r.type;return i&&(t=n("span",[i])),(a||o||s||l||c||u)&&(e=n(Co,{attrs:{material:o,f7:s,icon:a,md:l,ios:c,aurora:u,color:d,size:h}})),n("submit"===m||"reset"===m||"button"===m?"button":"a",xo(Object.assign({ref:"el",style:f,class:this.classes},this.attrs,{attrs:{id:p}})),[e,t,this.$slots.default])},computed:{attrs:function(){var e=this.props,t=e.href,n=e.target,r=e.tabLink,i=e.type,a=t;return!0===t&&(a="#"),!1===t&&(a=void 0),no.extend({href:a,target:n,type:i,"data-tab":no.isStringProp(r)&&r||void 0},ro.linkRouterAttrs(e),ro.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive,r=e.round,i=e.roundIos,a=e.roundAurora,o=e.roundMd,s=e.fill,l=e.fillIos,c=e.fillAurora,u=e.fillMd,d=e.large,h=e.largeIos,p=e.largeAurora,f=e.largeMd,m=e.small,v=e.smallIos,g=e.smallAurora,y=e.smallMd,b=e.raised,_=e.raisedIos,w=e.raisedAurora,k=e.raisedMd,E=e.active,T=e.outline,S=e.outlineIos,C=e.outlineAurora,x=e.outlineMd,M=e.disabled,$=e.className;return no.classNames($,"button",{"tab-link":t||""===t,"tab-link-active":n,"button-round":r,"button-round-ios":i,"button-round-aurora":a,"button-round-md":o,"button-fill":s,"button-fill-ios":l,"button-fill-aurora":c,"button-fill-md":u,"button-large":d,"button-large-ios":h,"button-large-aurora":p,"button-large-md":f,"button-small":m,"button-small-ios":v,"button-small-aurora":g,"button-small-md":y,"button-raised":b,"button-raised-ios":_,"button-raised-aurora":w,"button-raised-md":k,"button-active":E,"button-outline":T,"button-outline-ios":S,"button-outline-aurora":C,"button-outline-md":x,disabled:M},ro.colorClasses(e),ro.linkRouterClasses(e),ro.linkActionsClasses(e))},props:function(){return io(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.el;t.addEventListener("click",e.onClick);var n=e.props,r=n.tooltip,i=n.tooltipTrigger,a=n.routeProps;a&&(t.f7RouteProps=a),r&&e.$f7ready((function(n){e.f7Tooltip=n.tooltip.create({targetEl:t,text:r,trigger:i})}))},updated:function(){var e=this.$refs.el,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.el;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)}},$o={name:"f7-card-content",props:Object.assign({id:[String,Number],padding:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,a=t.padding;return e("div",{style:i,class:no.classNames(r,"card-content",{"card-content-padding":a},ro.colorClasses(t)),attrs:{id:n}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Lo={name:"f7-card-footer",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"card-footer",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Po={name:"f7-card-header",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"card-header",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Oo={name:"f7-card",props:Object.assign({id:[String,Number],title:[String,Number],content:[String,Number],footer:[String,Number],outline:Boolean,expandable:Boolean,expandableAnimateWidth:Boolean,expandableOpened:Boolean,animate:{type:Boolean,default:void 0},hideNavbarOnOpen:{type:Boolean,default:void 0},hideToolbarOnOpen:{type:Boolean,default:void 0},hideStatusbarOnOpen:{type:Boolean,default:void 0},scrollableEl:{type:String,default:void 0},swipeToClose:{type:Boolean,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:String,default:void 0},noShadow:Boolean,noBorder:Boolean,padding:{type:Boolean,default:!0}},ro.colorProps),watch:{"props.expandableOpened":function(e){e?this.open():this.close()}},created:function(){no.bindMethods(this,"onBeforeOpen onOpen onOpened onClose onClosed".split(" "))},mounted:function(){var e=this;if(e.props.expandable){var t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(n){n.on("cardBeforeOpen",e.onBeforeOpen),n.on("cardOpen",e.onOpen),n.on("cardOpened",e.onOpened),n.on("cardClose",e.onClose),n.on("cardClosed",e.onClosed),e.props.expandable&&e.props.expandableOpened&&e.$f7.card.open(t,!1)})))}},beforeDestroy:function(){this.props.expandable&&(this.$refs.el&&this.$f7&&(this.$f7.off("cardBeforeOpen",this.onBeforeOpen),this.$f7.off("cardOpen",this.onOpen),this.$f7.off("cardOpened",this.onOpened),this.$f7.off("cardClose",this.onClose),this.$f7.off("cardClosed",this.onClosed),this.eventTargetEl=null,delete this.eventTargetEl))},render:function(){var e,t,n,r=this.$createElement,i=this.props,a=i.className,o=i.id,s=i.style,l=i.title,c=i.content,u=i.footer,d=i.padding,h=i.outline,p=i.expandable,f=i.expandableAnimateWidth,m=i.animate,v=i.hideNavbarOnOpen,g=i.hideToolbarOnOpen,y=i.hideStatusbarOnOpen,b=i.scrollableEl,_=i.swipeToClose,w=i.closeByBackdropClick,k=i.backdrop,E=i.backdropEl,T=i.noShadow,S=i.noBorder,C=no.classNames(a,"card",{"card-outline":h,"card-expandable":p,"card-expandable-animate-width":f,"no-shadow":T,"no-border":S},ro.colorClasses(i));return(l||this.$slots&&this.$slots.header)&&(e=r(Po,[l,this.$slots.header])),(c||this.$slots&&this.$slots.content)&&(t=r($o,{attrs:{padding:d}},[c,this.$slots.content])),(u||this.$slots&&this.$slots.footer)&&(n=r(Lo,[u,this.$slots.footer])),r("div",{style:s,class:C,ref:"el",attrs:{id:o,"data-animate":void 0===m?m:m.toString(),"data-hide-navbar-on-open":void 0===v?v:v.toString(),"data-hide-toolbar-on-open":void 0===g?g:g.toString(),"data-hide-statusbar-on-open":void 0===y?y:y.toString(),"data-scrollable-el":b,"data-swipe-to-close":void 0===_?_:_.toString(),"data-close-by-backdrop-click":void 0===w?w:w.toString(),"data-backdrop":void 0===k?k:k.toString(),"data-backdrop-el":E}},[e,t,n,this.$slots.default])},methods:{open:function(){this.$refs.el&&this.$f7.card.open(this.$refs.el)},close:function(){this.$refs.el&&this.$f7.card.close(this.$refs.el)},onBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardBeforeOpen card:beforeopen",e,t)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("cardOpen card:open",e)},onOpened:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardOpened card:opened",e,t)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("cardClose card:close",e)},onClosed:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardClosed card:closed",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Do={name:"f7-checkbox",props:Object.assign({id:[String,Number],checked:Boolean,indeterminate:Boolean,name:[Number,String],value:[Number,String,Boolean],disabled:Boolean,readonly:Boolean,defaultChecked:Boolean},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.name,i=n.value,a=n.disabled,o=n.readonly,s=n.checked,l=(n.defaultChecked,n.id),c=n.style;e=t("input",{ref:"inputEl",domProps:{value:i,disabled:a,readonly:o,checked:s},on:{change:this.onChange},attrs:{type:"checkbox",name:r}});var u=t("i",{class:"icon-checkbox"});return t("label",{style:c,class:this.classes,attrs:{id:l}},[e,u,this.$slots.default])},computed:{classes:function(){var e=this.props,t=e.className,n=e.disabled;return no.classNames(t,{checkbox:!0,disabled:n},ro.colorClasses(e))},props:function(){return io(this)}},created:function(){no.bindMethods(this,["onChange"])},mounted:function(){var e=this.$refs.inputEl;this.props.indeterminate&&e&&(e.indeterminate=!0)},updated:function(){var e=this.$refs.inputEl,t=this.props.indeterminate;e&&(e.indeterminate=t)},methods:{onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},Io={name:"f7-chip",props:Object.assign({id:[String,Number],media:String,text:[String,Number],deleteable:Boolean,mediaBgColor:String,mediaTextColor:String,outline:Boolean},ro.colorProps,{},ro.linkIconProps),render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.media,s=a.text,l=a.deleteable,c=a.className,u=a.id,d=a.style,h=a.mediaTextColor,p=a.mediaBgColor,f=a.outline,m=a.icon,v=a.iconMaterial,g=a.iconF7,y=a.iconMd,b=a.iconIos,_=a.iconAurora,w=a.iconColor,k=a.iconSize;((m||v||g||y||b||_)&&(e=i(Co,{attrs:{material:v,f7:g,icon:m,md:y,ios:b,aurora:_,color:w,size:k}})),o||e||this.$slots&&this.$slots.media)&&(t=i("div",{class:no.classNames("chip-media",h&&"text-color-".concat(h),p&&"bg-color-".concat(p))},[e,o,this.$slots.media]));return(s||this.$slots&&this.$slots.text)&&(n=i("div",{class:"chip-label"},[s,this.$slots.text])),l&&(r=i("a",{ref:"deleteEl",class:"chip-delete"})),i("div",{ref:"el",style:d,class:no.classNames(c,"chip",{"chip-outline":f},ro.colorClasses(a)),attrs:{id:u}},[t,n,r])},created:function(){no.bindMethods(this,["onClick","onDeleteClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.addEventListener("click",this.onDeleteClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.removeEventListener("click",this.onDeleteClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onDeleteClick:function(e){this.dispatchEvent("delete",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Ao={name:"f7-col",props:Object.assign({id:[String,Number],tag:{type:String,default:"div"},width:{type:[Number,String],default:"auto"},xsmall:{type:[Number,String]},small:{type:[Number,String]},medium:{type:[Number,String]},large:{type:[Number,String]},xlarge:{type:[Number,String]},resizable:Boolean,resizableFixed:Boolean,resizableAbsolute:Boolean,resizableHandler:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.id,a=n.style,o=n.tag,s=n.width,l=n.xsmall,c=n.small,u=n.medium,d=n.large,h=n.xlarge,p=n.resizable,f=n.resizableFixed,m=n.resizableAbsolute,v=n.resizableHandler;return t(o,{style:a,class:no.classNames(r,(e={col:"auto"===s},Z()(e,"col-".concat(s),"auto"!==s),Z()(e,"xsmall-".concat(l),l),Z()(e,"small-".concat(c),c),Z()(e,"medium-".concat(u),u),Z()(e,"large-".concat(d),d),Z()(e,"xlarge-".concat(h),h),Z()(e,"resizable",p),Z()(e,"resizable-fixed",f),Z()(e,"resizable-absolute",m),e),ro.colorClasses(n)),ref:"el",attrs:{id:i}},[this.$slots.default,p&&v&&t("span",{class:"resize-handler"})])},created:function(){no.bindMethods(this,["onClick","onResize"])},mounted:function(){var e=this;e.eventTargetEl=e.$refs.el,e.eventTargetEl.addEventListener("click",e.onClick),e.$f7ready((function(t){t.on("gridResize",e.onResize)}))},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("gridResize",this.onResize),delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onResize:function(e){e===this.eventTargetEl&&this.dispatchEvent("grid:resize gridResize")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},No={name:"f7-fab-backdrop",props:{id:[String,Number]},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"fab-backdrop"),attrs:{id:r}})},computed:{props:function(){return io(this)}}},Ro={name:"f7-fab-button",props:Object.assign({id:[String,Number],fabClose:Boolean,label:String,target:String,tooltip:String,tooltipTrigger:String},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.id,a=n.style,o=n.fabClose,s=n.label,l=n.target,c=no.classNames(r,{"fab-close":o,"fab-label-button":s},ro.colorClasses(n));return s&&(e=t("span",{class:"fab-label"},[s])),t("a",{ref:"el",style:a,class:c,attrs:{id:i,target:l}},[this.$slots.default,e])},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){var e=this;e.$refs.el.addEventListener("click",e.onClick);var t=e.props,n=t.tooltip,r=t.tooltipTrigger;n&&e.$f7ready((function(t){e.f7Tooltip=t.tooltip.create({targetEl:e.$refs.el,text:n,trigger:r})}))},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},computed:{props:function(){return io(this)}}},Yo={name:"f7-fab-buttons",props:Object.assign({id:[String,Number],position:{type:String,default:"top"}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.position;return e("div",{style:i,class:no.classNames(n,"fab-buttons","fab-buttons-".concat(a),ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Bo={name:"f7-fab",props:Object.assign({id:[String,Number],morphTo:String,href:[Boolean,String],target:String,text:String,position:{type:String,default:"right-bottom"},tooltip:String,tooltipTrigger:String},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.morphTo,o=t.href,s=t.position,l=t.text,c=t.target,u=o;!0===u&&(u="#"),!1===u&&(u=void 0);var d,h,p=[],f=[],m=this.$slots,v=m.link,g=m.default,y=m.root,b=m.text;if(g)for(var _=0;_<g.length;_+=1){var w=g[_],k=void 0;w.tag&&w.tag.indexOf("fab-buttons")>=0&&(k=!0),k?f.push(w):p.push(w)}return(l||b&&b.length)&&(d=e("div",{class:"fab-text"},[l||b])),(p.length||v&&v.length)&&(h=e("a",{ref:"linkEl",key:"f7-fab-link",attrs:{target:c,href:u}},[p,d,v])),e("div",{style:i,class:no.classNames(n,"fab","fab-".concat(s),{"fab-morph":a,"fab-extended":void 0!==d},ro.colorClasses(t)),attrs:{id:r,"data-morph-to":a}},[h,f,y])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){var e=this;e.$refs.linkEl&&e.$refs.linkEl.addEventListener("click",e.onClick);var t=e.props,n=t.tooltip,r=t.tooltipTrigger;n&&e.$f7ready((function(t){e.f7Tooltip=t.tooltip.create({targetEl:e.$refs.el,text:n,trigger:r})}))},beforeDestroy:function(){this.$refs.linkEl&&this.$refs.linkEl.removeEventListener("click",this.onClick),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},jo={props:{id:[String,Number],type:{type:String,default:"circle"},value:{type:[Number,String],default:0},size:{type:[Number,String],default:200},bgColor:{type:String,default:"transparent"},borderBgColor:{type:String,default:"#eeeeee"},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:10},valueText:[Number,String],valueTextColor:{type:String,default:"#000000"},valueFontSize:{type:[Number,String],default:31},valueFontWeight:{type:[Number,String],default:500},labelText:String,labelTextColor:{type:String,default:"#888888"},labelFontSize:{type:[Number,String],default:14},labelFontWeight:{type:[Number,String],default:400}},name:"f7-gauge",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.type,o=t.value,s=t.size,l=t.bgColor,c=t.borderBgColor,u=t.borderColor,d=t.borderWidth,h=t.valueText,p=t.valueTextColor,f=t.valueFontSize,m=t.valueFontWeight,v=t.labelText,g=t.labelTextColor,y=t.labelFontSize,b=t.labelFontWeight,_=no.classNames(n,"gauge"),w="semicircle"===a,k=s/2-d/2,E=2*Math.PI*k,T=Math.max(Math.min(o,1),0);return e("div",{style:i,class:_,attrs:{id:r}},[e("svg",{class:"gauge-svg",attrs:{width:"".concat(s,"px"),height:"".concat(w?s/2:s,"px"),viewBox:"0 0 ".concat(s," ").concat(w?s/2:s)}},[w&&e("path",{class:"gauge-back-semi",attrs:{d:"M".concat(s-d/2,",").concat(s/2," a1,1 0 0,0 -").concat(s-d,",0"),stroke:c,"stroke-width":d,fill:l||"none"}}),w&&e("path",{class:"gauge-front-semi",attrs:{d:"M".concat(s-d/2,",").concat(s/2," a1,1 0 0,0 -").concat(s-d,",0"),stroke:u,"stroke-width":d,"stroke-dasharray":E/2,"stroke-dashoffset":E/2*(1+T),fill:c?"none":l||"none"}}),!w&&c&&e("circle",{class:"gauge-back-circle",attrs:{stroke:c,"stroke-width":d,fill:l||"none",cx:s/2,cy:s/2,r:k}}),!w&&e("circle",{class:"gauge-front-circle",attrs:{transform:"rotate(-90 ".concat(s/2," ").concat(s/2,")"),stroke:u,"stroke-width":d,"stroke-dasharray":E,"stroke-dashoffset":E*(1-T),fill:c?"none":l||"none",cx:s/2,cy:s/2,r:k}}),h&&e("text",{class:"gauge-value-text",attrs:{x:"50%",y:w?"100%":"50%","font-weight":m,"font-size":f,fill:p,dy:w?v?-y-15:-5:0,"text-anchor":"middle","dominant-baseline":w?null:"middle"}},[h]),v&&e("text",{class:"gauge-label-text",attrs:{x:"50%",y:w?"100%":"50%","font-weight":b,"font-size":y,fill:g,dy:w?-5:h?f/2+10:0,"text-anchor":"middle","dominant-baseline":w?null:"middle"}},[v])])])},computed:{props:function(){return io(this)}}},Fo={name:"f7-toggle",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},checked:Boolean,defaultChecked:Boolean,disabled:Boolean,readonly:Boolean,name:String,value:[String,Number,Array]},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.disabled,a=n.id,o=n.style,s=n.name,l=n.readonly,c=n.checked,u=(n.defaultChecked,n.value),d=no.classNames("toggle",r,{disabled:i},ro.colorClasses(n));return e=t("input",{ref:"inputEl",domProps:{disabled:i,readOnly:l,value:u,checked:c},on:{change:this.onChange},attrs:{type:"checkbox",name:s}}),t("label",{ref:"el",style:o,class:d,attrs:{id:a}},[e,t("span",{class:"toggle-icon"})])},watch:{"props.checked":function(e){this.f7Toggle&&(this.f7Toggle.checked=e)}},created:function(){no.bindMethods(this,["onChange"])},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){e.f7Toggle=t.toggle.create({el:e.$refs.el,on:{change:function(t){e.dispatchEvent("toggle:change toggleChange",t.checked)}}})}))},beforeDestroy:function(){this.f7Toggle&&this.f7Toggle.destroy&&this.f7Toggle.$el&&this.f7Toggle.destroy()},methods:{toggle:function(){this.f7Toggle&&this.f7Toggle.toggle&&this.f7Toggle.toggle()},onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Ho={name:"f7-range",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},value:{type:[Number,Array,String],default:0},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},label:{type:Boolean,default:!1},dual:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},verticalReversed:{type:Boolean,default:!1},draggableBar:{type:Boolean,default:!0},formatLabel:Function,scale:{type:Boolean,default:!1},scaleSteps:{type:Number,default:5},scaleSubSteps:{type:Number,default:0},formatScaleLabel:Function,limitKnobPosition:{type:Boolean,default:void 0},name:String,input:Boolean,inputId:String,disabled:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=this.props,r=n.id,i=n.disabled,a=n.className,o=n.style,s=n.input,l=n.inputId,c=n.name,u=n.vertical,d=n.verticalReversed;return e("div",{ref:"el",style:o,class:no.classNames(a,"range-slider",{"range-slider-horizontal":!u,"range-slider-vertical":u,"range-slider-vertical-reversed":u&&d,disabled:i},ro.colorClasses(t)),attrs:{id:r}},[s&&e("input",{attrs:{type:"range",name:c,id:l}}),this.$slots.default])},watch:{"props.value":function(e){this.f7Range&&this.f7Range.setValue(e)}},mounted:function(){var e=this;e.$f7ready((function(t){if(e.props.init){var n=e.props,r=n.value,i=n.min,a=n.max,o=n.step,s=n.label,l=n.dual,c=n.draggableBar,u=n.vertical,d=n.verticalReversed,h=n.formatLabel,p=n.scale,f=n.scaleSteps,m=n.scaleSubSteps,v=n.formatScaleLabel,g=n.limitKnobPosition;e.f7Range=t.range.create(no.noUndefinedProps({el:e.$refs.el,value:r,min:i,max:a,step:o,label:s,dual:l,draggableBar:c,vertical:u,verticalReversed:d,formatLabel:h,scale:p,scaleSteps:f,scaleSubSteps:m,formatScaleLabel:v,limitKnobPosition:g,on:{change:function(t,n){e.dispatchEvent("range:change rangeChange",n)},changed:function(t,n){e.dispatchEvent("range:changed rangeChanged",n)}}}))}}))},beforeDestroy:function(){this.f7Range&&this.f7Range.destroy&&this.f7Range.destroy()},methods:{setValue:function(e){this.f7Range&&this.f7Range.setValue&&this.f7Range.setValue(e)},getValue:function(){if(this.f7Range&&this.f7Range.getValue)return this.f7Range.getValue()},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Uo={name:"f7-text-editor",props:Object.assign({id:[String,Number]},ro.colorProps,{mode:{type:String,default:void 0},value:{type:String,default:void 0},buttons:Array,customButtons:Object,dividers:{type:Boolean,default:void 0},imageUrlText:{type:String,default:void 0},linkUrlText:{type:String,default:void 0},placeholder:{type:String,default:void 0},clearFormattingOnPaste:{type:Boolean,default:void 0},resizable:{type:Boolean,default:!1}}),created:function(){no.bindMethods(this,"onChange onInput onFocus onBlur onButtonClick onKeyboardOpen onKeyboardClose onPopoverOpen onPopoverClose".split(" "))},mounted:function(){var e=this,t=this.props,n=t.mode,r=t.value,i=t.buttons,a=t.customButtons,o=t.dividers,s=t.imageUrlText,l=t.linkUrlText,c=t.placeholder,u=t.clearFormattingOnPaste,d=no.noUndefinedProps({el:this.$refs.el,mode:n,value:r,buttons:i,customButtons:a,dividers:o,imageUrlText:s,linkUrlText:l,placeholder:c,clearFormattingOnPaste:u,on:{change:this.onChange,input:this.onInput,focus:this.onFocus,blur:this.onBlur,buttonClick:this.onButtonClick,keyboardOpen:this.onKeyboardOpen,keyboardClose:this.onKeyboardClose,popoverOpen:this.onPopoverOpen,popoverClose:this.onPopoverClose}});this.$f7ready((function(t){e.f7TextEditor=t.textEditor.create(d)}))},beforeDestroy:function(){this.f7TextEditor&&this.f7TextEditor.destroy&&this.f7TextEditor.destroy()},watch:{"props.value":function(){this.f7TextEditor&&this.f7TextEditor.setValue(this.props.value)}},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.resizable;return e("div",{ref:"el",style:i,class:no.classNames(n,"text-editor",a&&"text-editor-resizable",ro.colorClasses(t)),attrs:{id:r}},[this.$slots["root-start"],e("div",{class:"text-editor-content",attrs:{contenteditable:!0}},[this.$slots.default]),this.$slots["root-end"],this.$slots.root])},methods:{onChange:function(e,t){this.dispatchEvent("texteditor:change textEditorChange",t)},onInput:function(){this.dispatchEvent("texteditor:change textEditorChange")},onFocus:function(){this.dispatchEvent("texteditor:focus textEditorFocus")},onBlur:function(){this.dispatchEvent("texteditor:blur textEditorBlur")},onButtonClick:function(e,t){this.dispatchEvent("texteditor:buttonclick textEditorButtonClick",t)},onKeyboardOpen:function(){this.dispatchEvent("texteditor:keyboardopen textEditorKeyboardOpen")},onKeyboardClose:function(){this.dispatchEvent("texteditor:keyboardclose textEditorKeyboardClose")},onPopoverOpen:function(){this.dispatchEvent("texteditor:popoveropen textEditorPopoverOpen")},onPopoverClose:function(){this.dispatchEvent("texteditor:popoverclose textEditorPopoverClose")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},zo={name:"f7-input",props:Object.assign({type:String,name:String,value:[String,Number,Array,Date,Object],defaultValue:[String,Number,Array],inputmode:String,placeholder:String,id:[String,Number],inputId:[String,Number],size:[String,Number],accept:[String,Number],autocomplete:[String],autocorrect:[String],autocapitalize:[String],spellcheck:[String],autofocus:Boolean,autosave:String,checked:Boolean,disabled:Boolean,max:[String,Number],min:[String,Number],step:[String,Number],maxlength:[String,Number],minlength:[String,Number],multiple:Boolean,readonly:Boolean,required:Boolean,inputStyle:[String,Object],pattern:String,validate:[Boolean,String],validateOnBlur:Boolean,onValidate:Function,tabindex:[String,Number],resizable:Boolean,clearButton:Boolean,noFormStoreData:Boolean,noStoreData:Boolean,ignoreStoreData:Boolean,errorMessage:String,errorMessageForce:Boolean,info:String,outline:Boolean,wrap:{type:Boolean,default:!0},dropdown:{type:[String,Boolean],default:"auto"},calendarParams:Object,colorPickerParams:Object,textEditorParams:Object},ro.colorProps),data:function(){io(this);return{state:{inputFocused:!1,inputInvalid:!1}}},render:function(){var e,t=this.$createElement,n=this,r=n.props,i=r.type,a=r.name,o=r.value,s=r.defaultValue,l=r.inputmode,c=r.placeholder,u=r.id,d=r.inputId,h=r.size,p=r.accept,f=r.autocomplete,m=r.autocorrect,v=r.autocapitalize,g=r.spellcheck,y=r.autofocus,b=r.autosave,_=r.checked,w=r.disabled,k=r.max,E=r.min,T=r.step,S=r.maxlength,C=r.minlength,x=r.multiple,M=r.readonly,$=r.required,L=r.inputStyle,P=r.pattern,O=r.validate,D=r.validateOnBlur,I=r.tabindex,A=r.resizable,N=r.clearButton,R=r.errorMessage,Y=r.errorMessageForce,B=r.info,j=r.wrap,F=r.dropdown,H=r.style,U=r.className,z=r.noStoreData,V=r.noFormStoreData,q=r.ignoreStoreData,W=r.outline,G=r.textEditorParams,K=n.domValue(),J=n.inputHasValue(),X=function(e,u){var N="file"!==i&&"datepicker"!==i&&"colorpicker"!==i,B="input"===e,F=i;"datepicker"!==F&&"colorpicker"!==F||(F="text");var H,W=no.classNames(!j&&U,{resizable:"textarea"===F&&A,"no-store-data":V||z||q,"input-invalid":R&&Y||n.state.inputInvalid,"input-with-value":J,"input-focused":n.state.inputFocused});N&&(H=void 0!==o?o:K);var G={};return"datepicker"!==i&&"colorpicker"!==i&&("value"in r&&(G.value=H),"defaultValue"in r&&(G.defaultValue=s)),t(e,{ref:"inputEl",style:L,class:W,domProps:Object.assign({checked:_,disabled:w,readOnly:M,multiple:x,required:$},G),on:{focus:n.onFocus,blur:n.onBlur,input:n.onInput,change:n.onChange},attrs:{name:a,type:B?F:void 0,placeholder:c,inputmode:l,id:d,size:h,accept:p,autocomplete:f,autocorrect:m,autocapitalize:v,spellcheck:g,autofocus:y,autoSave:b,max:k,maxlength:S,min:E,minlength:C,step:T,pattern:P,validate:"string"==typeof O&&O.length?O:void 0,"data-validate":!0===O||""===O||!0===D||""===D||void 0,"data-validate-on-blur":!0===D||""===D||void 0,tabindex:I,"data-error-message":Y?void 0:R}},[u])},Q=n.$slots,Z=Q.default,ee=Q.info;if(e="select"===i||"textarea"===i||"file"===i?"select"===i?X("select",Z):X("file"===i?"input":"textarea"):Z&&Z.length>0||!i?Z:"toggle"===i?t(Fo,{on:{change:n.onChange},attrs:{checked:_,readonly:M,name:a,value:o,disabled:w,id:d}}):"range"===i?t(Ho,{on:{rangeChange:n.onChange},attrs:{value:o,disabled:w,min:E,max:k,step:T,name:a,id:d,input:!0}}):"texteditor"===i?t(Uo,xo(Object.assign({},G,{on:{textEditorFocus:n.onFocus,textEditorBlur:n.onBlur,textEditorInput:n.onInput,textEditorChange:n.onChange},attrs:{value:o,resizable:A,placeholder:c}}))):X("input"),j){var te=no.classNames(U,"input",{"input-outline":W,"input-dropdown":"auto"===F?"select"===i:F},ro.colorClasses(r));return t("div",{class:te,style:H,attrs:{id:u}},[e,R&&Y&&t("div",{class:"input-error-message"},[R]),N&&t("span",{class:"input-clear-button"}),(B||ee&&ee.length)&&t("div",{class:"input-info"},[B,this.$slots.info])])}return e},watch:{"props.value":function(){var e=this.props.type;"range"!==e&&"toggle"!==e&&this.$f7&&(this.updateInputOnDidUpdate=!0,this.f7Calendar&&this.f7Calendar.setValue(this.props.value),this.f7ColorPicker&&this.f7ColorPicker.setValue(this.props.value))}},created:function(){no.bindMethods(this,"onFocus onBlur onInput onChange onTextareaResize onInputNotEmpty onInputEmpty onInputClear".split(" "))},mounted:function(){var e=this;e.$f7ready((function(t){var n=e.props,r=n.validate,i=n.validateOnBlur,a=n.resizable,o=n.type,s=n.clearButton,l=n.value,c=n.defaultValue,u=n.calendarParams,d=n.colorPickerParams;if("range"!==o&&"toggle"!==o){var h=e.$refs.inputEl;h&&(h.addEventListener("input:notempty",e.onInputNotEmpty,!1),"textarea"===o&&a&&h.addEventListener("textarea:resize",e.onTextareaResize,!1),s&&(h.addEventListener("input:empty",e.onInputEmpty,!1),h.addEventListener("input:clear",e.onInputClear,!1)),"datepicker"===o&&(e.f7Calendar=t.calendar.create(Object.assign({inputEl:h,value:l,on:{change:function(t,n){e.dispatchEvent("calendar:change calendarChange",n)}}},u||{}))),"colorpicker"===o&&(e.f7ColorPicker=t.colorPicker.create(Object.assign({inputEl:h,value:l,on:{change:function(t,n){e.dispatchEvent("colorpicker:change colorPickerChange",n)}}},d||{}))),t.input.checkEmptyState(h),i||""===i||!r&&""!==r||!(null!=l&&""!==l||null!=c&&""!==c)||setTimeout((function(){e.validateInput(h)}),0),a&&t.input.resizeTextarea(h))}}))},updated:function(){var e=this.props,t=e.validate,n=e.validateOnBlur,r=e.resizable,i=this.$f7;if(i&&this.updateInputOnDidUpdate){var a=this.$refs.inputEl;if(!a)return;this.updateInputOnDidUpdate=!1,i.input.checkEmptyState(a),t&&!n&&this.validateInput(a),r&&i.input.resizeTextarea(a)}},beforeDestroy:function(){var e=this.props,t=e.type,n=e.resizable,r=e.clearButton;if("range"!==t&&"toggle"!==t){var i=this.$refs.inputEl;i&&(i.removeEventListener("input:notempty",this.onInputNotEmpty,!1),"textarea"===t&&n&&i.removeEventListener("textarea:resize",this.onTextareaResize,!1),r&&(i.removeEventListener("input:empty",this.onInputEmpty,!1),i.removeEventListener("input:clear",this.onInputClear,!1)),this.f7Calendar&&this.f7Calendar.destroy&&this.f7Calendar.destroy(),this.f7ColorPicker&&this.f7ColorPicker.destroy&&this.f7ColorPicker.destroy(),delete this.f7Calendar,delete this.f7ColorPicker)}},methods:{domValue:function(){var e=this.$refs.inputEl;if(e)return e.value},inputHasValue:function(){var e=this.props,t=e.value;if("datepicker"===e.type&&Array.isArray(t)&&0===t.length)return!1;var n=this.domValue();return void 0===t?n||0===n:t||0===t},validateInput:function(e){if(this.$f7&&e){var t=e.validity;if(t){var n=this.props.onValidate;t.valid?!1!==this.state.inputInvalid&&(n&&n(!0),this.setState({inputInvalid:!1})):(n&&n(!1),!0!==this.state.inputInvalid&&this.setState({inputInvalid:!0}))}}},onTextareaResize:function(e){this.dispatchEvent("textarea:resize textareaResize",e)},onInputNotEmpty:function(e){this.dispatchEvent("input:notempty inputNotEmpty",e)},onInputEmpty:function(e){this.dispatchEvent("input:empty inputEmpty",e)},onInputClear:function(e){this.dispatchEvent("input:clear inputClear",e)},onInput:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["input"].concat(a)),!r&&""!==r&&(n||""===n)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl)},onFocus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["focus"].concat(t)),this.setState({inputFocused:!0})},onBlur:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["blur"].concat(a)),(n||""===n||r||""===r)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl),e.setState({inputFocused:!1})},onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["change"].concat(t)),"texteditor"===this.props.type&&this.dispatchEvent("texteditor:change textEditorChange",t[1])},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},Vo={name:"f7-link",props:Object.assign({id:[String,Number],noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],iconBadge:[String,Number],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object},ro.colorProps,{},ro.linkIconProps,{},ro.linkRouterProps,{},ro.linkActionsProps),data:function(){return{state:{isTabbarLabel:io(this).tabbarLabel}}},render:function(){var e,t,n,r,i=this.$createElement,a=this,o=a.props,s=o.text,l=o.badge,c=o.badgeColor,u=o.iconOnly,d=o.iconBadge,h=o.icon,p=o.iconColor,f=o.iconSize,m=o.iconMaterial,v=o.iconF7,g=o.iconMd,y=o.iconIos,b=o.iconAurora,_=o.id,w=o.style,k=a.$slots.default||[];return Object.keys(a.$slots).forEach((function(e){void 0!==a.$slots[e]&&"default"!==e&&a.$slots[e].forEach((function(e){return k.push(e)}))})),s&&(l&&(n=i(wo,{attrs:{color:c}},[l])),t=i("span",{class:a.state.isTabbarLabel?"tabbar-label":""},[s,n])),(h||m||v||g||y||b)&&(d&&(r=i(wo,{attrs:{color:c}},[d])),e=i(Co,{attrs:{material:m,f7:v,icon:h,md:g,ios:y,aurora:b,color:p,size:f}},[r])),u||!s&&k&&0===k.length||!s&&!k?a.iconOnlyComputed=!0:a.iconOnlyComputed=!1,i("a",xo(Object.assign({ref:"el",style:w,class:a.classes},a.attrs,{attrs:{id:_}})),[e,t,k])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.el;t.addEventListener("click",e.onClick);var n=e.props,r=n.tabbarLabel,i=n.tabLink,a=n.tooltip,o=n.tooltipTrigger,s=n.smartSelect,l=n.smartSelectParams,c=n.routeProps,u=!1;(r||(i||""===i)&&e.$$(t).parents(".tabbar-labels").length)&&(u=!0),e.setState({isTabbarLabel:u}),c&&(t.f7RouteProps=c),e.$f7ready((function(n){if(s){var r=no.extend({el:t},l||{});e.f7SmartSelect=n.smartSelect.create(r)}a&&(e.f7Tooltip=n.tooltip.create({targetEl:t,text:a,trigger:o}))}))},updated:function(){var e=this.$refs.el,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.el;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7SmartSelect&&this.f7SmartSelect.destroy&&this.f7SmartSelect.destroy(),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},computed:{attrs:function(){var e=this.props,t=e.href,n=e.target,r=e.tabLink,i=t;return!0===t&&(i="#"),!1===t&&(i=void 0),no.extend({href:i,target:n,"data-tab":no.isStringProp(r)&&r||void 0},ro.linkRouterAttrs(e),ro.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive,r=e.noLinkClass,i=e.smartSelect,a=e.className;return no.classNames(a,{link:!(r||this.state.isTabbarLabel),"icon-only":this.iconOnlyComputed,"tab-link":t||""===t,"tab-link-active":n,"smart-select":i},ro.colorClasses(e),ro.linkRouterClasses(e),ro.linkActionsClasses(e))},props:function(){return io(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}}},qo={name:"f7-list-button",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],tabLink:[Boolean,String],tabLinkActive:Boolean,link:[Boolean,String],href:[Boolean,String],target:String,tooltip:String,tooltipTrigger:String},ro.colorProps,{},ro.linkRouterProps,{},ro.linkActionsProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.title,o=t.text;return e("li",{style:i,class:n,attrs:{id:r}},[e("a",xo(Object.assign({class:this.classes},this.attrs,{ref:"linkEl"})),[this.$slots.default||[a||o]])])},computed:{attrs:function(){var e=this.props,t=e.link,n=e.href,r=e.target,i=e.tabLink;return no.extend({href:"boolean"==typeof t&&"boolean"==typeof n?"#":t||n,target:r,"data-tab":no.isStringProp(i)&&i},ro.linkRouterAttrs(e),ro.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive;return no.classNames({"list-button":!0,"tab-link":t||""===t,"tab-link-active":n},ro.colorClasses(e),ro.linkRouterClasses(e),ro.linkActionsClasses(e))},props:function(){return io(this)}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.linkEl,n=e.props,r=n.routeProps,i=n.tooltip,a=n.tooltipTrigger;r&&(t.f7RouteProps=r),t.addEventListener("click",e.onClick),e.$f7ready((function(n){i&&(e.f7Tooltip=n.tooltip.create({targetEl:t,text:i,trigger:a}))}))},updated:function(){var e=this.$refs.linkEl,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.linkEl;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},Wo={name:"f7-list-group",props:Object.assign({id:[String,Number],mediaList:Boolean,sortable:Boolean,sortableOpposite:Boolean,sortableTapHold:Boolean,sortableMoveElements:{type:Boolean,default:void 0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.mediaList,o=t.sortable,s=t.sortableOpposite,l=t.sortableTapHold,c=t.sortableMoveElements;return e("div",{style:i,class:no.classNames(n,"list-group",{"media-list":a,sortable:o,"sortable-tap-hold":l,"sortable-opposite":s},ro.colorClasses(t)),attrs:{id:r,"data-sortable-move-elements":void 0!==c?c.toString():void 0}},[e("ul",[this.$slots.default])])},computed:{props:function(){return io(this)}}},Go={name:"f7-list-index",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},listEl:[String,Object],indexes:{type:[String,Array],default:"auto"},scrollList:{type:Boolean,default:!0},label:{type:Boolean,default:!1},iosItemHeight:{type:Number,default:14},mdItemHeight:{type:Number,default:14},auroraItemHeight:{type:Number,default:14}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:no.classNames(n,"list-index",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},beforeDestroy:function(){this.props.init&&this.f7ListIndex&&this.f7ListIndex.destroy&&this.f7ListIndex.destroy()},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n=e.$refs.el,r=e.props,i=r.listEl,a=r.indexes,o=r.iosItemHeight,s=r.mdItemHeight,l=r.auroraItemHeight,c=r.scrollList,u=r.label;e.f7ListIndex=t.listIndex.create({el:n,listEl:i,indexes:a,iosItemHeight:o,mdItemHeight:s,auroraItemHeight:l,scrollList:c,label:u,on:{select:function(t,n,r){e.dispatchEvent("listindex:select listIndexSelect",n,r)}}})}))},watch:{"props.indexes":function(){this.f7ListIndex&&(this.f7ListIndex.params.indexes=this.props.indexes,this.update())}},methods:{update:function(){this.f7ListIndex&&this.f7ListIndex.update()},scrollListToIndex:function(e){this.f7ListIndex&&this.f7ListIndex.scrollListToIndex(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Ko={name:"f7-list-input",props:Object.assign({id:[String,Number],sortable:{type:Boolean,default:void 0},media:String,dropdown:{type:[String,Boolean],default:"auto"},wrap:{type:Boolean,default:!0},input:{type:Boolean,default:!0},type:{type:String,default:"text"},name:String,value:[String,Number,Array,Date,Object],defaultValue:[String,Number,Array],inputmode:String,readonly:Boolean,required:Boolean,disabled:Boolean,placeholder:String,inputId:[String,Number],size:[String,Number],accept:[String,Number],autocomplete:[String],autocorrect:[String],autocapitalize:[String],spellcheck:[String],autofocus:Boolean,autosave:String,max:[String,Number],min:[String,Number],step:[String,Number],maxlength:[String,Number],minlength:[String,Number],multiple:Boolean,inputStyle:[String,Object],pattern:String,validate:[Boolean,String],validateOnBlur:Boolean,onValidate:Function,tabindex:[String,Number],resizable:Boolean,clearButton:Boolean,noFormStoreData:Boolean,noStoreData:Boolean,ignoreStoreData:Boolean,errorMessage:String,errorMessageForce:Boolean,info:String,outline:Boolean,label:[String,Number],inlineLabel:Boolean,floatingLabel:Boolean,calendarParams:Object,colorPickerParams:Object,textEditorParams:Object},ro.colorProps),data:function(){return{state:{isSortable:io(this).sortable,inputFocused:!1,inputInvalid:!1}}},render:function(){var e,t=this.$createElement,n=this,r=n.state,i=r.inputFocused,a=r.inputInvalid,o=n.props,s=o.id,l=o.style,c=o.className,u=o.sortable,d=o.media,h=o.dropdown,p=o.input,f=o.wrap,m=o.type,v=o.name,g=o.value,y=o.defaultValue,b=o.readonly,_=o.required,w=o.disabled,k=o.inputmode,E=o.placeholder,T=o.inputId,S=o.size,C=o.accept,x=o.autocomplete,M=o.autocorrect,$=o.autocapitalize,L=o.spellcheck,P=o.autofocus,O=o.autosave,D=o.max,I=o.min,A=o.step,N=o.maxlength,R=o.minlength,Y=o.multiple,B=o.inputStyle,j=o.pattern,F=o.validate,H=o.validateOnBlur,U=o.tabindex,z=o.resizable,V=o.clearButton,q=o.noFormStoreData,W=o.noStoreData,G=o.ignoreStoreData,K=o.errorMessage,J=o.errorMessageForce,X=o.info,Q=o.outline,Z=o.label,ee=o.inlineLabel,te=o.floatingLabel,ne=o.textEditorParams,re=n.domValue(),ie=n.inputHasValue(),ae=u||n.state.isSortable,oe=function(e,r){var s="file"!==m&&"datepicker"!==m&&"colorpicker"!==m,l="input"===e,c=m;"datepicker"!==c&&"colorpicker"!==c||(c="text");var u,d=no.classNames({resizable:"textarea"===c&&z,"no-store-data":q||W||G,"input-invalid":K&&J||a,"input-with-value":ie,"input-focused":i});s&&(u=void 0!==g?g:re);var h={};return"datepicker"!==m&&"colorpicker"!==m&&("value"in o&&(h.value=u),"defaultValue"in o&&(h.defaultValue=y)),t(e,{ref:"inputEl",style:B,class:d,domProps:Object.assign({disabled:w,readOnly:b,multiple:Y,required:_},h),on:{focus:n.onFocus,blur:n.onBlur,input:n.onInput,change:n.onChange},attrs:{name:v,type:l?c:void 0,placeholder:E,inputmode:k,id:T,size:S,accept:C,autocomplete:x,autocorrect:M,autocapitalize:$,spellcheck:L,autofocus:P,autoSave:O,max:D,maxlength:N,min:I,minlength:R,step:A,pattern:j,validate:"string"==typeof F&&F.length?F:void 0,"data-validate":!0===F||""===F||!0===H||""===H||void 0,"data-validate-on-blur":!0===H||""===H||void 0,tabindex:U,"data-error-message":J?void 0:K}},[r])};p&&(e="select"===m||"textarea"===m||"file"===m?"select"===m?oe("select",n.$slots.default):oe("file"===m?"input":"textarea"):"texteditor"===m?t(Uo,xo(Object.assign({},ne,{on:{textEditorFocus:n.onFocus,textEditorBlur:n.onBlur,textEditorInput:n.onInput,textEditorChange:n.onChange},attrs:{value:g,resizable:z,placeholder:E}}))):oe("input"));var se=!!K||n.$slots["error-message"]&&n.$slots["error-message"].length,le=t("div",{ref:"itemContentEl",class:no.classNames("item-content item-input",!f&&c,!f&&{disabled:w},!f&&ro.colorClasses(o),{"inline-label":ee,"item-input-outline":Q,"item-input-focused":i,"item-input-with-info":!!X||n.$slots.info&&n.$slots.info.length,"item-input-with-value":ie,"item-input-with-error-message":se&&J||a,"item-input-invalid":se&&J||a})},[this.$slots["content-start"],(d||n.$slots.media)&&t("div",{class:"item-media"},[d&&t("img",{attrs:{src:d}}),this.$slots.media]),t("div",{class:"item-inner"},[this.$slots["inner-start"],(Z||n.$slots.label)&&t("div",{class:no.classNames("item-title item-label",{"item-floating-label":te})},[Z,this.$slots.label]),t("div",{class:no.classNames("item-input-wrap",{"input-dropdown":"auto"===h?"select"===m:h})},[e,this.$slots.input,se&&J&&t("div",{class:"item-input-error-message"},[K,this.$slots["error-message"]]),V&&t("span",{class:"input-clear-button"}),(X||n.$slots.info)&&t("div",{class:"item-input-info"},[X,this.$slots.info])]),this.$slots.inner,this.$slots["inner-end"]]),this.$slots.content,this.$slots["content-end"]]);return f?t("li",{ref:"el",style:l,class:no.classNames(c,{disabled:w},ro.colorClasses(o)),attrs:{id:s}},[this.$slots["root-start"],le,ae&&t("div",{class:"sortable-handler"}),this.$slots.root,this.$slots["root-end"]]):le},watch:{"props.value":function(){this.$f7&&(this.updateInputOnDidUpdate=!0,this.f7Calendar&&this.f7Calendar.setValue(this.props.value),this.f7ColorPicker&&this.f7ColorPicker.setValue(this.props.value))}},created:function(){no.bindMethods(this,"onChange onInput onFocus onBlur onTextareaResize onInputNotEmpty onInputEmpty onInputClear".split(" "))},mounted:function(){var e=this,t=e.$refs.el,n=e.$refs.itemContentEl;(t||n)&&(e.$f7ready((function(t){var n=e.props,r=n.validate,i=n.validateOnBlur,a=n.resizable,o=n.value,s=n.defaultValue,l=n.type,c=n.calendarParams,u=n.colorPickerParams,d=e.$refs.inputEl;d&&(d.addEventListener("input:notempty",e.onInputNotEmpty,!1),d.addEventListener("textarea:resize",e.onTextareaResize,!1),d.addEventListener("input:empty",e.onInputEmpty,!1),d.addEventListener("input:clear",e.onInputClear,!1),"datepicker"===l&&(e.f7Calendar=t.calendar.create(Object.assign({inputEl:d,value:o,on:{change:function(t,n){e.dispatchEvent("calendar:change calendarChange",n)}}},c||{}))),"colorpicker"===l&&(e.f7ColorPicker=t.colorPicker.create(Object.assign({inputEl:d,value:o,on:{change:function(t,n){e.dispatchEvent("colorpicker:change colorPickerChange",n)}}},u||{}))),i||""===i||!r&&""!==r||!(null!=o&&""!==o||null!=s&&""!==s)||setTimeout((function(){e.validateInput(d)}),0),"textarea"===l&&a&&t.input.resizeTextarea(d))})),e.$listEl=e.$$(t||n).parents(".list, .list-group").eq(0),e.$listEl.length&&e.setState({isSortable:e.$listEl.hasClass("sortable")}))},updated:function(){var e=this.$listEl;if(e&&(!e||0!==e.length)){var t=e.hasClass("sortable");t!==this.state.isSortable&&this.setState({isSortable:t});var n=this.props,r=n.validate,i=n.validateOnBlur,a=n.resizable,o=n.type,s=this.$f7;if(s&&this.updateInputOnDidUpdate){var l=this.$refs.inputEl;if(!l)return;this.updateInputOnDidUpdate=!1,r&&!i&&this.validateInput(l),"textarea"===o&&a&&s.input.resizeTextarea(l)}}},beforeDestroy:function(){var e=this.$refs.inputEl;e&&(e.removeEventListener("input:notempty",this.onInputNotEmpty,!1),e.removeEventListener("textarea:resize",this.onTextareaResize,!1),e.removeEventListener("input:empty",this.onInputEmpty,!1),e.removeEventListener("input:clear",this.onInputClear,!1),this.f7Calendar&&this.f7Calendar.destroy&&this.f7Calendar.destroy(),this.f7ColorPicker&&this.f7ColorPicker.destroy&&this.f7ColorPicker.destroy(),delete this.f7Calendar,delete this.f7ColorPicker)},methods:{domValue:function(){var e=this.$refs.inputEl;if(e)return e.value},inputHasValue:function(){var e=this.props,t=e.value;if("datepicker"===e.type&&Array.isArray(t)&&0===t.length)return!1;var n=this.domValue();return void 0===t?n||0===n:t||0===t},validateInput:function(e){if(this.$f7&&e){var t=e.validity;if(t){var n=this.props.onValidate;t.valid?!1!==this.state.inputInvalid&&(n&&n(!0),this.setState({inputInvalid:!1})):(n&&n(!1),!0!==this.state.inputInvalid&&this.setState({inputInvalid:!0}))}}},onTextareaResize:function(e){this.dispatchEvent("textarea:resize textareaResize",e)},onInputNotEmpty:function(e){this.dispatchEvent("input:notempty inputNotEmpty",e)},onInputEmpty:function(e){this.dispatchEvent("input:empty inputEmpty",e)},onInputClear:function(e){this.dispatchEvent("input:clear inputClear",e)},onInput:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["input"].concat(a)),!r&&""!==r&&(n||""===n)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl)},onFocus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["focus"].concat(t)),this.setState({inputFocused:!0})},onBlur:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["blur"].concat(a)),(n||""===n||r||""===r)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl),e.setState({inputFocused:!1})},onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["change"].concat(t)),"texteditor"===this.props.type&&this.dispatchEvent("texteditor:change textEditorChange",t[0])},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},Jo={name:"f7-list-item-cell",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"item-cell",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Xo={name:"f7-list-item-content",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],after:[String,Number],badge:[String,Number],badgeColor:String,mediaList:Boolean,mediaItem:Boolean,checkbox:Boolean,checked:Boolean,defaultChecked:Boolean,indeterminate:Boolean,radio:Boolean,radioIcon:String,name:String,value:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean},ro.colorProps),render:function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,p=this.$createElement,f=this.props,m=f.id,v=f.className,g=f.style,y=f.radio,b=f.radioIcon,_=f.checkbox,w=f.value,k=f.name,E=f.checked,T=(f.defaultChecked,f.readonly),S=f.disabled,C=f.required,x=f.media,M=f.header,$=f.footer,L=f.title,P=f.subtitle,O=f.text,D=f.after,A=f.badge,N=f.mediaList,R=f.mediaItem,Y=f.badgeColor,B=[],j=[],F=[],H=[],U=[],z=[],V=[],q=[],W=[],G=[],K=[],J=[],X=[],Q=[],Z=[],ee=[],te=[],ne=this.$slots.default,re=[];ne&&ne.length&&ne.forEach((function(e){Array.isArray(e)?re.push.apply(re,I()(e)):re.push(e)}));var ie,ae=this.$slots["content-start"];(ae&&ae.length&&B.push.apply(B,I()(ae)),re.forEach((function(e){var t;void 0!==e&&((t=e.data?e.data.slot:void 0)&&"inner"!==t||U.push(e),"content-start"===t&&B.push(e),"content"===t&&j.push(e),"content-end"===t&&F.push(e),"after-start"===t&&V.push(e),"after"===t&&q.push(e),"after-end"===t&&W.push(e),"media"===t&&G.push(e),"inner-start"===t&&H.push(e),"inner-end"===t&&z.push(e),"before-title"===t&&K.push(e),"title"===t&&J.push(e),"after-title"===t&&X.push(e),"subtitle"===t&&Q.push(e),"text"===t&&Z.push(e),"header"===t&&ee.push(e),"footer"===t&&te.push(e))})),(y||_)&&(c=p("input",{ref:"inputEl",domProps:{checked:E,readonly:T,disabled:S,required:C,value:w},on:{change:this.onChange},attrs:{name:k,type:y?"radio":"checkbox"}}),u=p("i",{class:"icon icon-".concat(y?"radio":"checkbox")})),x||G.length)&&(x&&(ie=p("img",{attrs:{src:x}})),l=p("div",{class:"item-media"},[ie,G]));var oe=R||N;return(M||ee.length)&&(d=p("div",{class:"item-header"},[M,ee])),($||te.length)&&(h=p("div",{class:"item-footer"},[$,te])),(L||J.length||!oe&&d||!oe&&h)&&(e=p("div",{class:"item-title"},[!oe&&d,L,J,!oe&&h])),(P||Q.length)&&(o=p("div",{class:"item-subtitle"},[P,Q])),(O||Z.length)&&(s=p("div",{class:"item-text"},[O,Z])),(D||A||q.length)&&(D&&(n=p("span",[D])),A&&(r=p(wo,{attrs:{color:Y}},[A])),t=p("div",{class:"item-after"},[V,n,r,q,W])),oe?(a=p("div",{class:"item-title-row"},[K,e,X,t]),i=p("div",{ref:"innerEl",class:"item-inner"},[H,d,a,o,s,U,h,z])):i=p("div",{ref:"innerEl",class:"item-inner"},[H,K,e,X,t,U,z]),p(_||y?"label":"div",{ref:"el",style:g,class:no.classNames(v,"item-content",{"item-checkbox":_,"item-radio":y,"item-radio-icon-start":y&&"start"===b,"item-radio-icon-end":y&&"end"===b},ro.colorClasses(f)),attrs:{id:m}},[B,c,u,l,i,j,F])},created:function(){no.bindMethods(this,"onClick onChange".split(" "))},mounted:function(){var e=this.$refs,t=e.el,n=e.inputEl;this.props.indeterminate&&n&&(n.indeterminate=!0),t.addEventListener("click",this.onClick)},updated:function(){var e=this.$refs.inputEl,t=this.props.indeterminate;e&&(e.indeterminate=t)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Qo={name:"f7-list-item-row",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"item-row",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Zo={name:"f7-list-item",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,tabLink:[Boolean,String],tabLinkActive:Boolean,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,divider:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,radioIcon:String,checked:Boolean,defaultChecked:Boolean,indeterminate:Boolean,name:String,value:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number},ro.colorProps,{},ro.linkRouterProps,{},ro.linkActionsProps),data:function(){var e=io(this);return{state:{isMedia:e.mediaItem||e.mediaList,isSortable:e.sortable,isSortableOpposite:e.sortableOpposite,isSimple:!1}}},render:function(){var e,t,n=this.$createElement,r=this.props,i=r.id,a=r.style,o=r.className,s=r.title,l=r.text,c=r.media,u=r.subtitle,d=r.header,h=r.footer,p=r.link,f=r.tabLink,m=r.tabLinkActive,v=r.href,g=r.target,y=r.after,b=r.badge,_=r.badgeColor,w=r.mediaItem,k=r.mediaList,E=r.divider,T=r.groupTitle,S=r.swipeout,C=r.accordionItem,x=r.accordionItemOpened,M=r.smartSelect,$=r.checkbox,L=r.radio,P=r.radioIcon,O=r.checked,D=r.defaultChecked,I=r.indeterminate,A=r.name,N=r.value,R=r.readonly,Y=r.required,B=r.disabled,j=r.sortable,F=r.sortableOpposite,H=r.noChevron,U=r.chevronCenter,z=r.virtualListIndex,V=w||k||this.state.isMedia,q=j||this.state.isSortable,W=q&&(F||this.state.isSortableOpposite),G=this.state.isSimple;if(!G&&(t=n(Xo,{on:!(p||v||C||M)?{click:this.onClick,change:this.onChange}:void 0,attrs:{title:s,text:l,media:c,subtitle:u,after:y,header:d,footer:h,badge:b,badgeColor:_,mediaList:V,accordionItem:C,checkbox:$,checked:O,defaultChecked:D,indeterminate:I,radio:L,radioIcon:P,name:A,value:N,readonly:R,required:Y,disabled:B}},[this.$slots["content-start"],this.$slots.content,this.$slots["content-end"],this.$slots.media,this.$slots["inner-start"],this.$slots.inner,this.$slots["inner-end"],this.$slots["after-start"],this.$slots.after,this.$slots["after-end"],this.$slots.header,this.$slots.footer,this.$slots["before-title"],this.$slots.title,this.$slots["after-title"],this.$slots.subtitle,this.$slots.text,S||C?null:this.$slots.default,q&&!1!==j&&W&&n("div",{class:"sortable-handler",slot:"content-start"})]),p||v||C||M)){var K=Object.assign({href:!0===p?"":p||v,target:g,"data-tab":no.isStringProp(f)&&f||void 0},ro.linkRouterAttrs(r),{},ro.linkActionsAttrs(r)),J=no.classNames({"item-link":!0,"smart-select":M,"tab-link":f||""===f,"tab-link-active":m},ro.linkRouterClasses(r),ro.linkActionsClasses(r));e=n("a",xo(Object.assign({ref:"linkEl",class:J},K)),[t])}var X=no.classNames(o,{"item-divider":E,"list-group-title":T,"media-item":V,swipeout:S,"accordion-item":C,"accordion-item-opened":x,disabled:B&&!(L||$),"no-chevron":H,"chevron-center":U,"disallow-sorting":!1===j},ro.colorClasses(r));if(E||T)return n("li",{ref:"el",style:a,class:X,attrs:{id:i,"data-virtual-list-index":z}},[n("span",[this.$slots.default||[s]])]);if(G)return n("li",{ref:"el",style:a,class:X,attrs:{id:i,"data-virtual-list-index":z}},[s,this.$slots.default]);var Q=p||v||M||C?e:t;return n("li",{ref:"el",style:a,class:X,attrs:{id:i,"data-virtual-list-index":z}},[this.$slots["root-start"],S?n("div",{class:"swipeout-content"},[Q]):Q,q&&!1!==j&&!W&&n("div",{class:"sortable-handler"}),(S||C)&&this.$slots.default,this.$slots.root,this.$slots["root-end"]])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)},"props.swipeoutOpened":function(e){if(this.props.swipeout){var t=this.$refs.el;e?this.$f7.swipeout.open(t):this.$f7.swipeout.close(t)}}},created:function(){no.bindMethods(this,["onClick","onChange","onSwipeoutOpen","onSwipeoutOpened","onSwipeoutClose","onSwipeoutClosed","onSwipeoutDelete","onSwipeoutDeleted","onSwipeoutOverswipeEnter","onSwipeoutOverswipeExit","onSwipeout","onAccBeforeOpen","onAccOpen","onAccOpened","onAccBeforeClose","onAccClose","onAccClosed"])},mounted:function(){var e=this,t=e.$refs,n=t.el,r=t.linkEl;if(n){var i=e.props,a=i.link,o=i.href,s=i.smartSelect,l=i.swipeout,c=i.swipeoutOpened,u=i.accordionItem,d=i.smartSelectParams,h=i.routeProps,p=i.tooltip,f=i.tooltipTrigger;!!(a||o||u||s)&&r&&r.addEventListener("click",e.onClick),r&&h&&(r.f7RouteProps=h),e.$listEl=e.$$(n).parents(".list, .list-group").eq(0),e.$listEl.length&&e.setState({isMedia:e.$listEl.hasClass("media-list"),isSimple:e.$listEl.hasClass("simple-list"),isSortable:e.$listEl.hasClass("sortable"),isSortableOpposite:e.$listEl.hasClass("sortable-opposite")}),e.$f7ready((function(t){if(e.eventTargetEl=n,l&&(t.on("swipeoutOpen",e.onSwipeoutOpen),t.on("swipeoutOpened",e.onSwipeoutOpened),t.on("swipeoutClose",e.onSwipeoutClose),t.on("swipeoutClosed",e.onSwipeoutClosed),t.on("swipeoutDelete",e.onSwipeoutDelete),t.on("swipeoutDeleted",e.onSwipeoutDeleted),t.on("swipeoutOverswipeEnter",e.onSwipeoutOverswipeEnter),t.on("swipeoutOverswipeExit",e.onSwipeoutOverswipeExit),t.on("swipeout",e.onSwipeout)),u&&(t.on("accordionBeforeOpen",e.onAccBeforeOpen),t.on("accordionOpen",e.onAccOpen),t.on("accordionOpened",e.onAccOpened),t.on("accordionBeforeClose",e.onAccBeforeClose),t.on("accordionClose",e.onAccClose),t.on("accordionClosed",e.onAccClosed)),s){var r=no.extend({el:n.querySelector("a.smart-select")},d||{});e.f7SmartSelect=t.smartSelect.create(r)}c&&t.swipeout.open(n),p&&(e.f7Tooltip=t.tooltip.create({targetEl:n,text:p,trigger:f}))}))}},updated:function(){var e=this.$listEl,t=this.$refs.linkEl,n=this.props.routeProps;if(t&&n&&(t.f7RouteProps=n),e&&(!e||0!==e.length)){var r=e.hasClass("media-list"),i=e.hasClass("simple-list"),a=e.hasClass("sortable"),o=e.hasClass("sortable-opposite");r!==this.state.isMedia&&this.setState({isMedia:r}),i!==this.state.isSimple&&this.setState({isSimple:i}),a!==this.state.isSortable&&(this.setState({isSortable:a}),o!==this.state.isSortableOpposite&&this.setState({isSortableOpposite:o}))}},beforeDestroy:function(){var e=this.$refs.linkEl,t=this.props,n=t.link,r=t.href,i=t.smartSelect,a=t.swipeout,o=t.accordionItem;if(e&&(!(n||r||o||i)||e.removeEventListener("click",this.onClick),delete e.f7RouteProps),this.$f7){var s=this.$f7;a&&(s.off("swipeoutOpen",this.onSwipeoutOpen),s.off("swipeoutOpened",this.onSwipeoutOpened),s.off("swipeoutClose",this.onSwipeoutClose),s.off("swipeoutClosed",this.onSwipeoutClosed),s.off("swipeoutDelete",this.onSwipeoutDelete),s.off("swipeoutDeleted",this.onSwipeoutDeleted),s.off("swipeoutOverswipeEnter",this.onSwipeoutOverswipeEnter),s.off("swipeoutOverswipeExit",this.onSwipeoutOverswipeExit),s.off("swipeout",this.onSwipeout)),o&&(s.off("accordionBeforeOpen",this.onAccBeforeOpen),s.off("accordionOpen",this.onAccOpen),s.off("accordionOpened",this.onAccOpened),s.off("accordionBeforeClose",this.onAccBeforeClose),s.off("accordionClose",this.onAccClose),s.off("accordionClosed",this.onAccClosed))}i&&this.f7SmartSelect&&this.f7SmartSelect.destroy(),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip),this.eventTargetEl=null,delete this.eventTargetEl},methods:{onClick:function(e){"input"!==e.target.tagName.toLowerCase()&&this.dispatchEvent("click",e)},onSwipeoutOverswipeEnter:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:overswipeenter swipeoutOverswipeEnter")},onSwipeoutOverswipeExit:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:overswipeexit swipeoutOverswipeExit")},onSwipeoutDeleted:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:deleted swipeoutDeleted")},onSwipeoutDelete:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:delete swipeoutDelete")},onSwipeoutClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:close swipeoutClose")},onSwipeoutClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:closed swipeoutClosed")},onSwipeoutOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:open swipeoutOpen")},onSwipeoutOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:opened swipeoutOpened")},onSwipeout:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("swipeout",t)},onAccBeforeClose:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordion:beforeclose accordionBeforeClose",t)},onAccClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:close accordionClose")},onAccClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:closed accordionClosed")},onAccBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordion:beforeopen accordionBeforeOpen",t)},onAccOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:open accordionOpen")},onAccOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:opened accordionOpened")},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},es={name:"f7-list",props:Object.assign({id:[String,Number],inset:Boolean,xsmallInset:Boolean,smallInset:Boolean,mediumInset:Boolean,largeInset:Boolean,xlargeInset:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,noHairlines:Boolean,noHairlinesBetween:Boolean,noHairlinesMd:Boolean,noHairlinesBetweenMd:Boolean,noHairlinesIos:Boolean,noHairlinesBetweenIos:Boolean,noHairlinesAurora:Boolean,noHairlinesBetweenAurora:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,inlineLabels:Boolean,virtualList:Boolean,virtualListParams:Object},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.form,a=t.sortableMoveElements,o=this.$slots,s=o.list,l=o.default,c=[],u=[],d=s||[],h=no.flattenArray(l),p=!1;h.forEach((function(e){var t;void 0!==e&&((t=e.tag)&&!("li"===t||"F7ListItem"===t||"F7ListButton"===t||"F7ListInput"===t||t.indexOf("list-item")>=0||t.indexOf("list-button")>=0||t.indexOf("list-input")>=0||t.indexOf("f7-list-item")>=0||t.indexOf("f7-list-button")>=0||t.indexOf("f7-list-input")>=0)?p?u.push(e):c.push(e):t&&(p=!0,d.push(e)))}));var f=i?"form":"div";return d.length>0?e(f,{ref:"el",style:r,class:this.classes,attrs:{id:n,"data-sortable-move-elements":void 0!==a?a.toString():void 0}},[this.$slots["before-list"],c,e("ul",[d]),this.$slots["after-list"],u]):e(f,{ref:"el",style:r,class:this.classes,attrs:{id:n,"data-sortable-move-elements":void 0!==a?a.toString():void 0}},[this.$slots["before-list"],c,this.$slots["after-list"],u])},computed:{classes:function(){var e=this.props,t=e.inset,n=e.xsmallInset,r=e.smallInset,i=e.mediumInset,a=e.largeInset,o=e.xlargeInset,s=e.mediaList,l=e.simpleList,c=e.linksList,u=e.sortable,d=e.sortableTapHold,h=e.sortableEnabled,p=e.sortableOpposite,f=e.accordionList,m=e.accordionOpposite,v=e.contactsList,g=e.virtualList,y=e.tab,b=e.tabActive,_=e.noHairlines,w=e.noHairlinesIos,k=e.noHairlinesMd,E=e.noHairlinesAurora,T=e.noHairlinesBetween,S=e.noHairlinesBetweenIos,C=e.noHairlinesBetweenMd,x=e.noHairlinesBetweenAurora,M=e.formStoreData,$=e.inlineLabels,L=e.className,P=e.noChevron,O=e.chevronCenter;return no.classNames(L,"list",{inset:t,"xsmall-inset":n,"small-inset":r,"medium-inset":i,"large-inset":a,"xlarge-inset":o,"media-list":s,"simple-list":l,"links-list":c,sortable:u,"sortable-tap-hold":d,"sortable-enabled":h,"sortable-opposite":p,"accordion-list":f,"accordion-opposite":m,"contacts-list":v,"virtual-list":g,tab:y,"tab-active":b,"no-hairlines":_,"no-hairlines-md":k,"no-hairlines-ios":w,"no-hairlines-aurora":E,"no-hairlines-between":T,"no-hairlines-between-md":C,"no-hairlines-between-ios":S,"no-hairlines-between-aurora":x,"form-store-data":M,"inline-labels":$,"no-chevron":P,"chevron-center":O},ro.colorClasses(e))},props:function(){return io(this)}},created:function(){no.bindMethods(this,["onSortableEnable","onSortableDisable","onSortableSort","onTabShow","onTabHide","onSubmit"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.virtualList,i=n.virtualListParams,a=n.form;e.$f7ready((function(n){if(e.eventTargetEl=t,n.on("sortableEnable",e.onSortableEnable),n.on("sortableDisable",e.onSortableDisable),n.on("sortableSort",e.onSortableSort),n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide),a&&t.addEventListener("submit",e.onSubmit),r){var o=i||{};(o.renderItem||o.itemTemplate||o.renderExternal)&&(e.f7VirtualList=n.virtualList.create(no.extend({el:t,on:{itemBeforeInsert:function(t,n){e.dispatchEvent("virtual:itembeforeinsert virtualItemBeforeInsert",this,t,n)},beforeClear:function(t){e.dispatchEvent("virtual:beforeclear virtualBeforeClear",this,t)},itemsBeforeInsert:function(t){e.dispatchEvent("virtual:itemsbeforeinsert virtualItemsBeforeInsert",this,t)},itemsAfterInsert:function(t){e.dispatchEvent("virtual:itemsafterinsert virtualItemsAfterInsert",this,t)}}},o)))}}))},beforeDestroy:function(){var e=this.$refs.el,t=this.$f7;e&&t&&(t.off("sortableEnable",this.onSortableEnable),t.off("sortableDisable",this.onSortableDisable),t.off("sortableSort",this.onSortableSort),t.off("tabShow",this.onTabShow),t.off("tabHide",this.onTabHide),e.removeEventListener("submit",this.onSubmit),this.eventTargetEl=null,delete this.eventTargetEl,this.virtualList&&this.f7VirtualList&&this.f7VirtualList.destroy&&this.f7VirtualList.destroy())},methods:{onSubmit:function(e){this.dispatchEvent("submit",e)},onSortableEnable:function(e){this.eventTargetEl===e&&this.dispatchEvent("sortable:enable sortableEnable")},onSortableDisable:function(e){this.eventTargetEl===e&&this.dispatchEvent("sortable:disable sortableDisable")},onSortableSort:function(e,t,n){this.eventTargetEl===n&&this.dispatchEvent("sortable:sort sortableSort",t)},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},ts={name:"f7-login-screen-title",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"login-screen-title",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},ns={name:"f7-login-screen",props:Object.assign({id:[String,Number],opened:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:no.classNames(n,"login-screen",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7LoginScreen&&(e?this.f7LoginScreen.open():this.f7LoginScreen.close())}},created:function(){no.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(){e.f7LoginScreen=e.$f7.loginScreen.create({el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}}),e.props.opened&&e.f7LoginScreen.open(!1)}))},beforeDestroy:function(){this.f7LoginScreen&&this.f7LoginScreen.destroy()},methods:{onOpen:function(e){this.dispatchEvent("loginscreen:open loginScreenOpen",e)},onOpened:function(e){this.dispatchEvent("loginscreen:opened loginScreenOpened",e)},onClose:function(e){this.dispatchEvent("loginscreen:close loginScreenClose",e)},onClosed:function(e){this.dispatchEvent("loginscreen:closed loginScreenClosed",e)},open:function(e){if(this.f7LoginScreen)return this.f7LoginScreen.open(e)},close:function(e){if(this.f7LoginScreen)return this.f7LoginScreen.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},rs={name:"f7-menu-dropdown-item",props:Object.assign({id:[String,Number],text:String,link:Boolean,href:String,target:String,divider:Boolean},ro.colorProps,{},ro.linkRouterProps,{},ro.linkActionsProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,a=t.link,o=t.href,s=t.text,l=t.divider,c=t.menuClose,u=a||o||""===o,d=u?"a":"div",h=no.classNames({"menu-dropdown-link":u&&!l,"menu-dropdown-item":!u&&!l,"menu-dropdown-divider":l},r,ro.colorClasses(t),ro.linkRouterClasses(t),ro.linkActionsClasses(t),{"menu-close":void 0===c});return e(d,xo(Object.assign({ref:"el",class:h,style:i},this.attrs,{attrs:{id:n}})),[s,this.$slots.default])},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){var e=this.$refs.el;if(e){e.addEventListener("click",this.onClick);var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},updated:function(){var e=this.$refs.el;if(e){var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},beforeDestroy:function(){var e=this.$refs.el;e&&(e.removeEventListener("click",this.onClick),delete e.f7RouteProps)},computed:{attrs:function(){var e=this.props,t=e.link,n=e.href,r=e.target,i=n;return void 0===i&&t&&(i="#"),no.extend({href:i,target:r},ro.linkRouterAttrs(e),ro.linkActionsAttrs(e))},props:function(){return io(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},is={name:"f7-menu-dropdown",props:Object.assign({id:[String,Number],contentHeight:String,position:String,left:Boolean,center:Boolean,right:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,a=t.contentHeight,o=t.position||"left";return t.left&&(o="left"),t.center&&(o="center"),t.right&&(o="right"),e("div",{class:no.classNames("menu-dropdown","menu-dropdown-".concat(o),ro.colorClasses(t),r),style:i,attrs:{id:n}},[e("div",{class:"menu-dropdown-content",style:{height:a}},[this.$slots.default])])},computed:{props:function(){return io(this)}}},as={name:"f7-menu-item",props:Object.assign({id:[String,Number],text:String,iconOnly:Boolean,href:String,link:Boolean,target:String,dropdown:Boolean},ro.colorProps,{},ro.linkIconProps,{},ro.linkRouterProps,{},ro.linkActionsProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.id,a=r.className,o=r.style,s=r.link,l=r.href,c=r.text,u=r.dropdown,d=r.iconOnly,h=r.icon,p=r.iconColor,f=r.iconSize,m=r.iconMaterial,v=r.iconF7,g=r.iconMd,y=r.iconIos,b=r.iconAurora,_=this.$slots;(h||m||v||g||y||b)&&(e=n(Co,{attrs:{material:m,f7:v,icon:h,md:g,ios:y,aurora:b,color:p,size:f}})),t=!!(d||!c&&_.text&&0===_.text.length||!c&&!_.text);var w=s||l||""===l?"a":"div",k=u||""===u,E=no.classNames({"menu-item":!0,"menu-item-dropdown":k,"icon-only":t},a,ro.colorClasses(r),ro.linkRouterClasses(r),ro.linkActionsClasses(r));return n(w,xo(Object.assign({ref:"el",class:E,style:o},this.attrs,{attrs:{id:i}})),[(c||_.text&&_.text.length||e)&&n("div",{class:"menu-item-content"},[c,e,this.$slots.text]),this.$slots.default])},created:function(){no.bindMethods(this,["onClick","onOpened","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){e.eventTargetEl=t,t.addEventListener("click",e.onClick);var n=e.props.routeProps;n&&(t.f7RouteProps=n),e.$f7ready((function(t){t.on("menuOpened",e.onOpened),t.on("menuClosed",e.onClosed)}))}},updated:function(){var e=this.$refs.el;if(e){var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("menuOpened",this.onOpened),this.$f7.off("menuClosed",this.onOpened),this.eventTargetEl=null,delete e.f7RouteProps,delete this.eventTargetEl)},computed:{attrs:function(){var e=this.props,t=e.href,n=e.link,r=e.target,i=t;return void 0===i&&n&&(i="#"),no.extend({href:i,target:r},ro.linkRouterAttrs(e),ro.linkActionsAttrs(e))},props:function(){return io(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},onOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("menuOpened menu:opened",e)},onClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("menuClosed menu:closed",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},os={name:"f7-menu",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style;return e("div",{class:no.classNames("menu",ro.colorClasses(t),r),style:i,attrs:{id:n}},[e("div",{class:"menu-inner"},[this.$slots.default])])},computed:{props:function(){return io(this)}}},ss={name:"f7-message",props:Object.assign({id:[String,Number],text:String,name:String,avatar:String,type:{type:String,default:"sent"},image:String,header:String,footer:String,textHeader:String,textFooter:String,first:Boolean,last:Boolean,tail:Boolean,sameName:Boolean,sameHeader:Boolean,sameFooter:Boolean,sameAvatar:Boolean,typing:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.text,r=t.name,i=t.avatar,a=t.image,o=t.header,s=t.footer,l=t.textHeader,c=t.textFooter,u=t.typing,d=t.id,h=t.style,p=this.$slots,f=p.start,m=p.end,v=p.default,g=p["content-start"],y=p["content-end"],b=p.avatar,_=p.name,w=p.header,k=p.footer,E=p.image,T=p.text,S=p["text-header"],C=p["text-footer"],x=p["bubble-start"],M=p["bubble-end"];return e("div",{ref:"el",style:h,class:this.classes,attrs:{id:d}},[f,(i||b)&&e("div",{ref:"avatarEl",class:"message-avatar",style:{backgroundImage:i&&"url(".concat(i,")")}},[b]),e("div",{class:"message-content"},[g,(_||r)&&e("div",{ref:"nameEl",class:"message-name"},[_||r]),(w||o)&&e("div",{ref:"headerEl",class:"message-header"},[w||o]),e("div",{ref:"bubbleEl",class:"message-bubble"},[x,(E||a)&&e("div",{class:"message-image"},[E||e("img",{attrs:{src:a}})]),(S||l)&&e("div",{class:"message-text-header"},[S||l]),(T||n||u)&&e("div",{ref:"textEl",class:"message-text"},[T||n,u&&e("div",{class:"message-typing-indicator"},[e("div"),e("div"),e("div")])]),(C||c)&&e("div",{class:"message-text-footer"},[C||c]),M,v]),(k||s)&&e("div",{ref:"footerEl",class:"message-footer"},[k||s]),y]),m])},computed:{classes:function(){var e=this.props,t=e.type,n=e.typing,r=e.first,i=e.last,a=e.tail,o=e.sameName,s=e.sameHeader,l=e.sameFooter,c=e.sameAvatar,u=e.className;return no.classNames(u,"message",{"message-sent":"sent"===t,"message-received":"received"===t,"message-typing":n,"message-first":r,"message-last":i,"message-tail":a,"message-same-name":o,"message-same-header":s,"message-same-footer":l,"message-same-avatar":c},ro.colorClasses(e))},props:function(){return io(this)}},created:function(){no.bindMethods(this,["onClick","onNameClick","onTextClick","onAvatarClick","onHeaderClick","onFooterClick","onBubbleClick"])},mounted:function(){var e=this.$refs,t=e.el,n=e.nameEl,r=e.textEl,i=e.avatarEl,a=e.headerEl,o=e.footerEl,s=e.bubbleEl;t.addEventListener("click",this.onClick),n&&n.addEventListener("click",this.onNameClick),r&&r.addEventListener("click",this.onTextClick),i&&i.addEventListener("click",this.onAvatarClick),a&&a.addEventListener("click",this.onHeaderClick),o&&o.addEventListener("click",this.onFooterClick),s&&s.addEventListener("click",this.onBubbleClick)},beforeDestroy:function(){var e=this.$refs,t=e.el,n=e.nameEl,r=e.textEl,i=e.avatarEl,a=e.headerEl,o=e.footerEl,s=e.bubbleEl;t.removeEventListener("click",this.onClick),n&&n.removeEventListener("click",this.onNameClick),r&&r.removeEventListener("click",this.onTextClick),i&&i.removeEventListener("click",this.onAvatarClick),a&&a.removeEventListener("click",this.onHeaderClick),o&&o.removeEventListener("click",this.onFooterClick),s&&s.removeEventListener("click",this.onBubbleClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onNameClick:function(e){this.dispatchEvent("click:name clickName",e)},onTextClick:function(e){this.dispatchEvent("click:text clickText",e)},onAvatarClick:function(e){this.dispatchEvent("click:avatar clickAvatar",e)},onHeaderClick:function(e){this.dispatchEvent("click:header clickHeader",e)},onFooterClick:function(e){this.dispatchEvent("click:footer clickFooter",e)},onBubbleClick:function(e){this.dispatchEvent("click:bubble clickBubble",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},ls={name:"f7-messagebar-attachment",props:Object.assign({id:[String,Number],image:String,deletable:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.deletable,r=t.image,i=t.className,a=t.id;return e("div",{ref:"el",style:t.style,class:no.classNames(i,"messagebar-attachment",ro.colorClasses(t)),attrs:{id:a}},[r&&e("img",{attrs:{src:r}}),n&&e("span",{ref:"deleteEl",class:"messagebar-attachment-delete"}),this.$slots.default])},created:function(){no.bindMethods(this,["onClick","onDeleteClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.addEventListener("click",this.onDeleteClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.removeEventListener("click",this.onDeleteClick)},methods:{onClick:function(e){this.dispatchEvent("attachment:click attachmentClick",e)},onDeleteClick:function(e){this.dispatchEvent("attachment:delete attachmentDelete",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},cs={name:"f7-messagebar-attachments",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"messagebar-attachments",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},us={name:"f7-messagebar-sheet-image",props:Object.assign({id:[String,Number],image:String,checked:Boolean},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.image,i=n.checked,a=n.id,o=n.className,s=n.style,l=no.classNames(o,"messagebar-sheet-image","checkbox",ro.colorClasses(n)),c=no.extend({backgroundImage:r&&"url(".concat(r,")")},s||{});return e=t("input",{ref:"inputEl",domProps:{checked:i},on:{change:this.onChange},attrs:{type:"checkbox"}}),t("label",{class:l,style:c,attrs:{id:a}},[e,t("i",{class:"icon icon-checkbox"}),this.$slots.default])},created:function(){no.bindMethods(this,["onChange"])},methods:{onChange:function(e){this.props.checked?this.dispatchEvent("checked",e):this.dispatchEvent("unchecked",e),this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},ds={name:"f7-messagebar-sheet-item",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"messagebar-sheet-item",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},hs={name:"f7-messagebar-sheet",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"messagebar-sheet",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},ps={name:"f7-messagebar",props:Object.assign({id:[String,Number],sheetVisible:Boolean,attachmentsVisible:Boolean,top:Boolean,resizable:{type:Boolean,default:!0},bottomOffset:{type:Number,default:0},topOffset:{type:Number,default:0},maxHeight:Number,resizePage:{type:Boolean,default:!0},sendLink:String,value:[String,Number,Array],disabled:Boolean,readonly:Boolean,textareaId:[Number,String],name:String,placeholder:{type:String,default:"Message"},init:{type:Boolean,default:!0}},ro.colorProps),created:function(){no.bindMethods(this,["onChange","onInput","onFocus","onBlur","onClick","onAttachmentDelete","onAttachmentClick,","onResizePage"])},render:function(){var e,t,n=this.$createElement,r=this.props,i=r.placeholder,a=r.disabled,o=r.name,s=r.readonly,l=r.resizable,c=r.value,u=r.sendLink,d=r.id,h=r.style,p=this.$slots,f=p.default,m=p["before-inner"],v=p["after-inner"],g=p["send-link"],y=p["inner-start"],b=p["inner-end"],_=p["before-area"],w=p["after-area"],k=[];f&&f.forEach((function(n){var r;void 0!==n&&((r=n.tag)&&(r.indexOf("messagebar-attachments")>=0||"F7MessagebarAttachments"===r||"f7-messagebar-attachments"===r)?e=n:r&&(r.indexOf("messagebar-sheet")>=0||"F7MessagebarSheet"===r||"f7-messagebar-sheet"===r)?t=n:k.push(n))}));var E={};return"value"in this.props&&(E.value=c),n("div",{ref:"el",style:h,class:this.classes,attrs:{id:d}},[m,n("div",{class:"toolbar-inner"},[y,n("div",{class:"messagebar-area"},[_,e,n(zo,xo(Object.assign({ref:"area"},E,{on:{input:this.onInput,change:this.onChange,focus:this.onFocus,blur:this.onBlur},attrs:{type:"textarea",wrap:!1,placeholder:i,disabled:a,name:o,readonly:s,resizable:l}}))),w]),(u&&u.length>0||g)&&n(Vo,{on:{click:this.onClick}},[g||u]),b,k]),v,t])},computed:{classes:function(){var e=this.props,t=e.className,n=e.attachmentsVisible,r=e.sheetVisible;return no.classNames(t,"toolbar","messagebar",{"messagebar-attachments-visible":n,"messagebar-sheet-visible":r},ro.colorClasses(e))},props:function(){return io(this)}},watch:{"props.sheetVisible":function(){this.props.resizable&&this.f7Messagebar&&(this.updateSheetVisible=!0)},"props.attachmentsVisible":function(){this.props.resizable&&this.f7Messagebar&&(this.updateAttachmentsVisible=!0)}},mounted:function(){var e=this,t=e.props,n=t.init,r=t.top,i=t.resizePage,a=t.bottomOffset,o=t.topOffset,s=t.maxHeight;if(n){var l=e.$refs.el;if(l){var c=no.noUndefinedProps({el:l,top:r,resizePage:i,bottomOffset:a,topOffset:o,maxHeight:s,on:{attachmentDelete:e.onAttachmentDelete,attachmentClick:e.onAttachmentClick,resizePage:e.onResizePage}});e.$f7ready((function(){e.f7Messagebar=e.$f7.messagebar.create(c)}))}}},updated:function(){if(this.f7Messagebar){var e=this.props,t=e.sheetVisible,n=e.attachmentsVisible;this.updateSheetVisible&&(this.updateSheetVisible=!1,this.f7Messagebar.sheetVisible=t,this.f7Messagebar.resizePage()),this.updateAttachmentsVisible&&(this.updateAttachmentsVisible=!1,this.f7Messagebar.attachmentsVisible=n,this.f7Messagebar.resizePage())}},beforeDestroy:function(){this.f7Messagebar&&this.f7Messagebar.destroy&&this.f7Messagebar.destroy()},methods:{clear:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).clear.apply(e,arguments)},getValue:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).getValue.apply(e,arguments)},setValue:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).setValue.apply(e,arguments)},setPlaceholder:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).setPlaceholder.apply(e,arguments)},resize:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).resizePage.apply(e,arguments)},focus:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).focus.apply(e,arguments)},blur:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).blur.apply(e,arguments)},attachmentsShow:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsShow.apply(e,arguments)},attachmentsHide:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsHide.apply(e,arguments)},attachmentsToggle:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsToggle.apply(e,arguments)},sheetShow:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetShow.apply(e,arguments)},sheetHide:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetHide.apply(e,arguments)},sheetToggle:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetToggle.apply(e,arguments)},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},onFocus:function(e){this.dispatchEvent("focus",e)},onBlur:function(e){this.dispatchEvent("blur",e)},onClick:function(e){var t,n=this;t=n.$refs.area.$refs.inputEl.value;var r=n.f7Messagebar?function(){n.f7Messagebar.clear()}:function(){};this.dispatchEvent("submit",t,r),this.dispatchEvent("send",t,r),this.dispatchEvent("click",e)},onAttachmentDelete:function(e,t,n){this.dispatchEvent("messagebar:attachmentdelete messagebarAttachmentDelete",e,t,n)},onAttachmentClick:function(e,t,n){this.dispatchEvent("messagebar:attachmentclick messagebarAttachmentClick",e,t,n)},onResizePage:function(e){this.dispatchEvent("messagebar:resizepage messagebarResizePage",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},fs={name:"f7-messages-title",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"messages-title",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},ms={name:"f7-messages",props:Object.assign({id:[String,Number],autoLayout:{type:Boolean,default:!1},messages:{type:Array,default:function(){return[]}},newMessagesFirst:{type:Boolean,default:!1},scrollMessages:{type:Boolean,default:!0},scrollMessagesOnEdge:{type:Boolean,default:!0},firstMessageRule:Function,lastMessageRule:Function,tailMessageRule:Function,sameNameMessageRule:Function,sameHeaderMessageRule:Function,sameFooterMessageRule:Function,sameAvatarMessageRule:Function,customClassMessageRule:Function,renderMessage:Function,init:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className;return e("div",{ref:"el",style:r,class:no.classNames(i,"messages",ro.colorClasses(t)),attrs:{id:n}},[this.$slots.default])},beforeUpdate:function(){if(this.props.init){var e=this.$refs.el;if(e){var t=e.children;if(t)for(var n=0;n<t.length;n+=1)t[n].classList.add("message-appeared")}}},updated:function(){var e=this.props,t=e.init,n=e.autoLayout,r=e.scrollMessages;if(t){var i=this.$refs.el;if(i){var a=i.children;if(a){for(var o=0;o<a.length;o+=1)a[o].classList.contains("message-appeared")||a[o].classList.add("message-appear-from-bottom");this.f7Messages&&this.f7Messages.layout&&n&&this.f7Messages.layout(),this.f7Messages&&this.f7Messages.scroll&&r&&this.f7Messages.scroll()}}}},mounted:function(){var e=this,t=e.props,n=t.init,r=t.autoLayout,i=t.messages,a=t.newMessagesFirst,o=t.scrollMessages,s=t.scrollMessagesOnEdge,l=t.firstMessageRule,c=t.lastMessageRule,u=t.tailMessageRule,d=t.sameNameMessageRule,h=t.sameHeaderMessageRule,p=t.sameFooterMessageRule,f=t.sameAvatarMessageRule,m=t.customClassMessageRule,v=t.renderMessage;n&&e.$f7ready((function(t){e.f7Messages=t.messages.create(no.noUndefinedProps({el:e.$refs.el,autoLayout:r,messages:i,newMessagesFirst:a,scrollMessages:o,scrollMessagesOnEdge:s,firstMessageRule:l,lastMessageRule:c,tailMessageRule:u,sameNameMessageRule:d,sameHeaderMessageRule:h,sameFooterMessageRule:p,sameAvatarMessageRule:f,customClassMessageRule:m,renderMessage:v}))}))},beforeDestroy:function(){this.f7Messages&&this.f7Messages.destroy&&this.f7Messages.destroy()},methods:{renderMessages:function(e,t){if(this.f7Messages)return this.f7Messages.renderMessages(e,t)},layout:function(){if(this.f7Messages)return this.f7Messages.layout()},scroll:function(e,t){if(this.f7Messages)return this.f7Messages.scroll(e,t)},clear:function(){if(this.f7Messages)return this.f7Messages.clear()},removeMessage:function(e,t){if(this.f7Messages)return this.f7Messages.removeMessage(e,t)},removeMessages:function(e,t){if(this.f7Messages)return this.f7Messages.removeMessages(e,t)},addMessage:function(){var e;if(this.f7Messages)return(e=this.f7Messages).addMessage.apply(e,arguments)},addMessages:function(){var e;if(this.f7Messages)return(e=this.f7Messages).addMessages.apply(e,arguments)},showTyping:function(e){if(this.f7Messages)return this.f7Messages.showTyping(e)},hideTyping:function(){if(this.f7Messages)return this.f7Messages.hideTyping()},destroy:function(){if(this.f7Messages)return this.f7Messages.destroy()}},computed:{props:function(){return io(this)}}},vs={name:"f7-nav-left",props:Object.assign({id:[String,Number],backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.backLink,i=n.backLinkUrl,a=n.backLinkForce,o=n.backLinkShowText,s=n.sliding,l=n.className,c=n.style,u=n.id,d=o;if(void 0===d&&(d=!this.$theme.md),r){var h=!0!==r&&d?r:void 0;e=t(Vo,{class:h?void 0:"icon-only",on:{click:this.onBackClick},attrs:{href:i||"#",back:!0,icon:"icon-back",force:a||void 0,text:h}})}var p=no.classNames(l,"left",{sliding:s},ro.colorClasses(n)),f=[],m=this.$slots;return m&&Object.keys(m).length&&Object.keys(m).forEach((function(e){f.push.apply(f,I()(m[e]))})),t("div",{style:c,class:p,attrs:{id:u}},[e,f])},created:function(){no.bindMethods(this,["onBackClick"])},methods:{onBackClick:function(e){this.dispatchEvent("back-click backClick click:back clickBack",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},gs={name:"f7-nav-right",props:Object.assign({id:[String,Number],sliding:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.sliding,o=no.classNames(n,"right",{sliding:a},ro.colorClasses(t)),s=[],l=this.$slots;return l&&Object.keys(l).length&&Object.keys(l).forEach((function(e){s.push.apply(s,I()(l[e]))})),e("div",{style:i,class:o,attrs:{id:r}},[s])},computed:{props:function(){return io(this)}}},ys={name:"f7-nav-title",props:Object.assign({id:[String,Number]},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className,a=no.classNames(i,"title-large",ro.colorClasses(t)),o=[],s=this.$slots;return s&&Object.keys(s).length&&Object.keys(s).forEach((function(e){o.push.apply(o,I()(s[e]))})),e("div",{style:r,class:a,attrs:{id:n}},[e("div",{class:"title-large-text"},[o])])},computed:{props:function(){return io(this)}}},bs={name:"f7-nav-title",props:Object.assign({id:[String,Number],title:String,subtitle:String,sliding:Boolean},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.title,i=n.subtitle,a=n.id,o=n.style,s=n.sliding,l=n.className;i&&(e=t("span",{class:"subtitle"},[i]));var c,u=no.classNames(l,"title",{sliding:s},ro.colorClasses(n)),d=this.$slots;return d&&Object.keys(d).length&&(c=[],Object.keys(d).forEach((function(e){var t;(t=c).push.apply(t,I()(d[e]))}))),t("div",{style:o,class:u,attrs:{id:a}},[c,!c&&r,!c&&e])},computed:{props:function(){return io(this)}}},_s={name:"f7-navbar",props:Object.assign({id:[String,Number],backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,noShadow:Boolean,noHairline:Boolean,innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String},ro.colorProps),data:function(){var e=this;io(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null,routerPositionClass:"",largeCollapsed:!1,routerNavbarRole:null,routerNavbarRoleDetailRoot:!1,routerNavbarMasterStack:!1,transparentVisible:!1}}()}},render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.backLink,s=a.backLinkUrl,l=a.backLinkForce,c=a.backLinkShowText,u=a.sliding,d=a.title,h=a.subtitle,p=a.innerClass,f=a.innerClassName,m=a.className,v=a.id,g=a.style,y=a.hidden,b=a.noShadow,_=a.noHairline,w=a.large,k=a.largeTransparent,E=a.transparent,T=a.titleLarge,S=this.state,C=S._theme,x=S.routerPositionClass,M=S.largeCollapsed,$=S.transparentVisible,L=C&&C.ios&&this.$f7&&!this.$f7.params.navbar.iosCenterTitle,P=C&&C.md&&this.$f7&&this.$f7.params.navbar.mdCenterTitle||C&&C.aurora&&this.$f7&&this.$f7.params.navbar.auroraCenterTitle,O=this.$slots,D=w||k,I=E||D&&k,A=I&&$,N=no.classNames(m,"navbar",x&&x,{"navbar-hidden":y,"navbar-large":D,"navbar-large-collapsed":D&&M,"navbar-transparent":I,"navbar-transparent-visible":A,"navbar-master":"master"===this.state.routerNavbarRole,"navbar-master-detail":"detail"===this.state.routerNavbarRole,"navbar-master-detail-root":!0===this.state.routerNavbarRoleDetailRoot,"navbar-master-stacked":!0===this.state.routerNavbarMasterStack,"no-shadow":b,"no-hairline":_},ro.colorClasses(a));(o||O["nav-left"]||O.left)&&(e=i(vs,{on:{backClick:this.onBackClick},attrs:{backLink:o,backLinkUrl:s,backLinkForce:l,backLinkShowText:c}},[O["nav-left"],O.left])),(d||h||O.title)&&(t=i(bs,{attrs:{title:d,subtitle:h}},[O.title])),(O["nav-right"]||O.right)&&(n=i(gs,[O["nav-right"],O.right]));var R=T;!R&&w&&d&&(R=d),(R||O["title-large"])&&(r=i("div",{class:"title-large"},[i("div",{class:"title-large-text"},[R||"",this.$slots["title-large"]])]));var Y=i("div",{class:no.classNames("navbar-inner",p,f,{sliding:u,"navbar-inner-left-title":L,"navbar-inner-centered-title":P})},[e,t,n,r,this.$slots.default]);return i("div",{ref:"el",style:g,class:N,attrs:{id:v}},[i("div",{class:"navbar-bg"}),this.$slots["before-inner"],Y,this.$slots["after-inner"]])},created:function(){no.bindMethods(this,["onBackClick","onHide","onShow","onExpand","onCollapse","onNavbarPosition","onNavbarRole","onNavbarMasterStack","onNavbarMasterUnstack","onTransparentHide","onTransparentShow"])},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(n){e.eventTargetEl=t,n.on("navbarShow",e.onShow),n.on("navbarHide",e.onHide),n.on("navbarCollapse",e.onCollapse),n.on("navbarExpand",e.onExpand),n.on("navbarPosition",e.onNavbarPosition),n.on("navbarRole",e.onNavbarRole),n.on("navbarMasterStack",e.onNavbarMasterStack),n.on("navbarMasterUnstack",e.onNavbarMasterUnstack),n.on("navbarTransparentShow",e.onNavbarTransparentShow),n.on("navbarTransparentHide",e.onNavbarTransparentHide)}))},updated:function(){if(this.$f7){var e=this.$refs.el;this.$f7.navbar.size(e)}},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("navbarShow",this.onShow),e.off("navbarHide",this.onHide),e.off("navbarCollapse",this.onCollapse),e.off("navbarExpand",this.onExpand),e.off("navbarPosition",this.onNavbarPosition),e.off("navbarRole",this.onNavbarRole),e.off("navbarMasterStack",this.onNavbarMasterStack),e.off("navbarMasterUnstack",this.onNavbarMasterUnstack),e.off("navbarTransparentShow",this.onNavbarTransparentShow),e.off("navbarTransparentHide",this.onNavbarTransparentHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("navbar:hide navbarHide")},onShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("navbar:show navbarShow")},onExpand:function(e){this.eventTargetEl===e&&(this.setState({largeCollapsed:!1}),this.dispatchEvent("navbar:expand navbarExpand"))},onCollapse:function(e){this.eventTargetEl===e&&(this.setState({largeCollapsed:!0}),this.dispatchEvent("navbar:collapse navbarCollapse"))},onNavbarTransparentShow:function(e){this.eventTargetEl===e&&(this.setState({transparentVisible:!0}),this.dispatchEvent("navbar:transparentshow navbarTransparentShow"))},onNavbarTransparentHide:function(e){this.eventTargetEl===e&&(this.setState({transparentVisible:!1}),this.dispatchEvent("navbar:transparenthide navbarTransparentHide"))},onNavbarPosition:function(e,t){this.eventTargetEl===e&&this.setState({routerPositionClass:t?"navbar-".concat(t):""})},onNavbarRole:function(e,t){this.eventTargetEl===e&&this.setState({routerNavbarRole:t.role,routerNavbarRoleDetailRoot:t.detailRoot})},onNavbarMasterStack:function(e){this.eventTargetEl===e&&this.setState({routerNavbarMasterStack:!0})},onNavbarMasterUnstack:function(e){this.eventTargetEl===e&&this.setState({routerNavbarMasterStack:!1})},hide:function(e){this.$f7&&this.$f7.navbar.hide(this.$refs.el,e)},show:function(e){this.$f7&&this.$f7.navbar.show(this.$refs.el,e)},size:function(){this.$f7&&this.$f7.navbar.size(this.$refs.el)},onBackClick:function(e){this.dispatchEvent("back-click backClick click:back clickBack",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},ws={name:"f7-preloader",props:Object.assign({id:[String,Number],size:[Number,String]},ro.colorProps),data:function(){var e=this;io(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e,t=this.$createElement,n=this.sizeComputed,r=this.props,i=r.id,a=r.style,o=r.className,s=this.state._theme,l={};return n&&(l.width="".concat(n,"px"),l.height="".concat(n,"px"),l["--f7-preloader-size"]="".concat(n,"px")),a&&no.extend(l,a||{}),s&&s.md?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-gap"}),t("span",{class:"preloader-inner-left"},[t("span",{class:"preloader-inner-half-circle"})]),t("span",{class:"preloader-inner-right"},[t("span",{class:"preloader-inner-half-circle"})])]):s&&s.ios?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"})]):s&&s.aurora?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-circle"})]):s||(e=t("span",{class:"preloader-inner"})),t("span",{style:l,class:no.classNames(o,"preloader",ro.colorClasses(r)),attrs:{id:i}},[e])},computed:{sizeComputed:function(){var e=this.props.size;return e&&"string"==typeof e&&e.indexOf("px")>=0&&(e=e.replace("px","")),e},props:function(){return io(this)}},methods:{setState:function(e,t){go(this,e,t)}}},ks={name:"f7-page-content",props:Object.assign({id:[String,Number],tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean},ro.colorProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.ptr,a=r.ptrPreloader,o=r.ptrDistance,s=r.ptrBottom,l=r.ptrMousewheel,c=r.infinite,u=r.infinitePreloader,d=r.id,h=r.style,p=r.infiniteDistance,f=r.infiniteTop;return i&&a&&(e=n("div",{class:"ptr-preloader"},[n(ws),n("div",{class:"ptr-arrow"})])),c&&u&&(t=n(ws,{class:"infinite-scroll-preloader"})),n("div",{style:h,class:this.classes,ref:"el",attrs:{id:d,"data-ptr-distance":o||void 0,"data-ptr-mousewheel":l||void 0,"data-infinite-distance":p||void 0}},[s?null:e,f?t:null,this.$slots.default,f?null:t,s?e:null])},computed:{classes:function(){var e=this.props,t=e.className,n=e.tab,r=e.tabActive,i=e.ptr,a=e.ptrBottom,o=e.infinite,s=e.infiniteTop,l=e.hideBarsOnScroll,c=e.hideNavbarOnScroll,u=e.hideToolbarOnScroll,d=e.messagesContent,h=e.loginScreen;return no.classNames(t,"page-content",{tab:n,"tab-active":r,"ptr-content":i,"ptr-bottom":a,"infinite-scroll-content":o,"infinite-scroll-top":s,"hide-bars-on-scroll":l,"hide-navbar-on-scroll":c,"hide-toolbar-on-scroll":u,"messages-content":d,"login-screen-content":h},ro.colorClasses(e))},props:function(){return io(this)}},created:function(){no.bindMethods(this,["onPtrPullStart","onPtrPullMove","onPtrPullEnd","onPtrRefresh","onPtrDone","onInfinite","onTabShow","onTabHide"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.ptr,i=n.infinite,a=n.tab;e.$f7ready((function(n){e.eventTargetEl=t,r&&(n.on("ptrPullStart",e.onPtrPullStart),n.on("ptrPullMove",e.onPtrPullMove),n.on("ptrPullEnd",e.onPtrPullEnd),n.on("ptrRefresh",e.onPtrRefresh),n.on("ptrDone",e.onPtrDone)),i&&n.on("infinite",e.onInfinite),a&&(n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide))}))},beforeDestroy:function(){this.$f7&&(this.$f7.off("ptrPullStart",this.onPtrPullStart),this.$f7.off("ptrPullMove",this.onPtrPullMove),this.$f7.off("ptrPullEnd",this.onPtrPullEnd),this.$f7.off("ptrRefresh",this.onPtrRefresh),this.$f7.off("ptrDone",this.onPtrDone),this.$f7.off("infinite",this.onInfinite),this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide),this.eventTargetEl=null,delete this.eventTargetEl)},methods:{onPtrPullStart:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullstart ptrPullStart")},onPtrPullMove:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullmove ptrPullMove")},onPtrPullEnd:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullend ptrPullEnd")},onPtrRefresh:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("ptr:refresh ptrRefresh",t)},onPtrDone:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:done ptrDone")},onInfinite:function(e){this.eventTargetEl===e&&this.dispatchEvent("infinite")},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},Es={name:"f7-page",props:Object.assign({id:[String,Number],name:String,stacked:Boolean,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean},ro.colorProps),data:function(){io(this);return{state:{hasSubnavbar:!1,hasNavbarLarge:!1,hasNavbarLargeCollapsed:!1,hasCardExpandableOpened:!1,routerPositionClass:"",routerForceUnstack:!1,routerPageRole:null,routerPageRoleDetailRoot:!1,routerPageMasterStack:!1}}},render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.id,s=a.style,l=a.name,c=a.pageContent,u=a.messagesContent,d=a.ptr,h=a.ptrDistance,p=a.ptrPreloader,f=a.ptrBottom,m=a.ptrMousewheel,v=a.infinite,g=a.infiniteDistance,y=a.infinitePreloader,b=a.infiniteTop,_=a.hideBarsOnScroll,w=a.hideNavbarOnScroll,k=a.hideToolbarOnScroll,E=a.loginScreen,T=a.className,S=a.stacked,C=a.tabs,x=a.subnavbar,M=a.withSubnavbar,$=a.navbarLarge,L=a.withNavbarLarge,P=a.noNavbar,O=a.noToolbar,D=a.noSwipeback,I=[],A=[],N=this.$slots,R=N.static,Y=N.fixed,B=N.default;e="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index".split(" "),n=this.$options.propsData.messagesContent,B&&B.forEach((function(i){if(void 0!==i){var a=!1,o=i.tag;if(o){o.indexOf("subnavbar")>=0&&(t=!0),o.indexOf("navbar")>=0&&i.componentOptions&&i.componentOptions.propsData&&"large"in i.componentOptions.propsData&&(i.componentOptions.propsData.large||""===i.componentOptions.propsData.large)&&(r=!0),void 0===n&&o.indexOf("messages")>=0&&(n=!0);for(var s=0;s<e.length;s+=1)o.indexOf(e[s])>=0&&(a=!0);c&&(a?I.push(i):A.push(i))}else c&&A.push(i)}}));var j=void 0===x&&void 0===M&&(t||this.state.hasSubnavbar),F=void 0===$&&void 0===L&&(r||this.state.hasNavbarLarge),H=no.classNames(T,"page",this.state.routerPositionClass,{stacked:S&&!this.state.routerForceUnstack,tabs:C,"page-with-subnavbar":x||M||j,"page-with-navbar-large":$||L||F,"no-navbar":P,"no-toolbar":O,"no-swipeback":D,"page-master":"master"===this.state.routerPageRole,"page-master-detail":"detail"===this.state.routerPageRole,"page-master-detail-root":!0===this.state.routerPageRoleDetailRoot,"page-master-stacked":!0===this.state.routerPageMasterStack,"page-with-navbar-large-collapsed":!0===this.state.hasNavbarLargeCollapsed,"page-with-card-opened":!0===this.state.hasCardExpandableOpened,"login-screen-page":E},ro.colorClasses(a));if(!c)return i("div",{ref:"el",style:s,class:H,attrs:{id:o,"data-name":l}},[Y,R,B]);var U=i(ks,{on:{ptrPullStart:this.onPtrPullStart,ptrPullMove:this.onPtrPullMove,ptrPullEnd:this.onPtrPullEnd,ptrRefresh:this.onPtrRefresh,ptrDone:this.onPtrDone,infinite:this.onInfinite},attrs:{ptr:d,ptrDistance:h,ptrPreloader:p,ptrBottom:f,ptrMousewheel:m,infinite:v,infiniteTop:b,infiniteDistance:g,infinitePreloader:y,hideBarsOnScroll:_,hideNavbarOnScroll:w,hideToolbarOnScroll:k,messagesContent:u||n,loginScreen:E}},[R,A]);return i("div",{ref:"el",style:s,class:H,attrs:{id:o,"data-name":l}},[I,Y,U])},created:function(){no.bindMethods(this,["onPtrPullStart","onPtrPullMove","onPtrPullEnd","onPtrRefresh","onPtrDone","onInfinite","onPageMounted","onPageInit","onPageReinit","onPageBeforeIn","onPageBeforeOut","onPageAfterOut","onPageAfterIn","onPageBeforeRemove","onPageBeforeUnmount","onPageStack","onPageUnstack","onPagePosition","onPageRole","onPageMasterStack","onPageMasterUnstack","onPageNavbarLargeCollapsed","onPageNavbarLargeExpanded","onCardOpened","onCardClose","onPageTabShow","onPageTabHide"])},mounted:function(){var e=this,t=e.$refs.el;e.$f7ready((function(n){e.eventTargetEl=t,n.on("pageMounted",e.onPageMounted),n.on("pageInit",e.onPageInit),n.on("pageReinit",e.onPageReinit),n.on("pageBeforeIn",e.onPageBeforeIn),n.on("pageBeforeOut",e.onPageBeforeOut),n.on("pageAfterOut",e.onPageAfterOut),n.on("pageAfterIn",e.onPageAfterIn),n.on("pageBeforeRemove",e.onPageBeforeRemove),n.on("pageBeforeUnmount",e.onPageBeforeUnmount),n.on("pageStack",e.onPageStack),n.on("pageUnstack",e.onPageUnstack),n.on("pagePosition",e.onPagePosition),n.on("pageRole",e.onPageRole),n.on("pageMasterStack",e.onPageMasterStack),n.on("pageMasterUnstack",e.onPageMasterUnstack),n.on("pageNavbarLargeCollapsed",e.onPageNavbarLargeCollapsed),n.on("pageNavbarLargeExpanded",e.onPageNavbarLargeExpanded),n.on("cardOpened",e.onCardOpened),n.on("cardClose",e.onCardClose),n.on("pageTabShow",e.onPageTabShow),n.on("pageTabHide",e.onPageTabHide)}))},beforeDestroy:function(){if(this.$f7){var e=this.$f7;e.off("pageMounted",this.onPageMounted),e.off("pageInit",this.onPageInit),e.off("pageReinit",this.onPageReinit),e.off("pageBeforeIn",this.onPageBeforeIn),e.off("pageBeforeOut",this.onPageBeforeOut),e.off("pageAfterOut",this.onPageAfterOut),e.off("pageAfterIn",this.onPageAfterIn),e.off("pageBeforeRemove",this.onPageBeforeRemove),e.off("pageBeforeUnmount",this.onPageBeforeUnmount),e.off("pageStack",this.onPageStack),e.off("pageUnstack",this.onPageUnstack),e.off("pagePosition",this.onPagePosition),e.off("pageRole",this.onPageRole),e.off("pageMasterStack",this.onPageMasterStack),e.off("pageMasterUnstack",this.onPageMasterUnstack),e.off("pageNavbarLargeCollapsed",this.onPageNavbarLargeCollapsed),e.off("pageNavbarLargeExpanded",this.onPageNavbarLargeExpanded),e.off("cardOpened",this.onCardOpened),e.off("cardClose",this.onCardClose),e.off("pageTabShow",this.onPageTabShow),e.off("pageTabHide",this.onPageTabHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onPtrPullStart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullstart ptrPullStart"].concat(t))},onPtrPullMove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullmove ptrPullMove"].concat(t))},onPtrPullEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullend ptrPullEnd"].concat(t))},onPtrRefresh:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:refresh ptrRefresh"].concat(t))},onPtrDone:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:done ptrDone"].concat(t))},onInfinite:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["infinite"].concat(t))},onPageMounted:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:mounted pageMounted",e)},onPageInit:function(e){if(this.eventTargetEl===e.el){var t=this.props,n=t.withSubnavbar,r=t.subnavbar,i=t.withNavbarLarge,a=t.navbarLarge;void 0===n&&void 0===r&&(e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length||e.$el.children(".navbar").find(".subnavbar").length)&&this.setState({hasSubnavbar:!0}),void 0===i&&void 0===a&&e.$navbarEl&&e.$navbarEl.hasClass("navbar-large")&&this.setState({hasNavbarLarge:!0}),this.dispatchEvent("page:init pageInit",e)}},onPageReinit:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:reinit pageReinit",e)},onPageBeforeIn:function(e){this.eventTargetEl===e.el&&(e.swipeBack||("next"===e.from&&this.setState({routerPositionClass:"page-next"}),"previous"===e.from&&this.setState({routerPositionClass:"page-previous"})),this.dispatchEvent("page:beforein pageBeforeIn",e))},onPageBeforeOut:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeout pageBeforeOut",e)},onPageAfterOut:function(e){this.eventTargetEl===e.el&&("next"===e.to&&this.setState({routerPositionClass:"page-next"}),"previous"===e.to&&this.setState({routerPositionClass:"page-previous"}),this.dispatchEvent("page:afterout pageAfterOut",e))},onPageAfterIn:function(e){this.eventTargetEl===e.el&&(this.setState({routerPositionClass:"page-current"}),this.dispatchEvent("page:afterin pageAfterIn",e))},onPageBeforeRemove:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeremove pageBeforeRemove",e)},onPageBeforeUnmount:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeunmount pageBeforeUnmount",e)},onPageStack:function(e){this.eventTargetEl===e&&this.setState({routerForceUnstack:!1})},onPageUnstack:function(e){this.eventTargetEl===e&&this.setState({routerForceUnstack:!0})},onPagePosition:function(e,t){this.eventTargetEl===e&&this.setState({routerPositionClass:"page-".concat(t)})},onPageRole:function(e,t){this.eventTargetEl===e&&this.setState({routerPageRole:t.role,routerPageRoleDetailRoot:t.detailRoot})},onPageMasterStack:function(e){this.eventTargetEl===e&&this.setState({routerPageMasterStack:!0})},onPageMasterUnstack:function(e){this.eventTargetEl===e&&this.setState({routerPageMasterStack:!1})},onPageNavbarLargeCollapsed:function(e){this.eventTargetEl===e&&this.setState({hasNavbarLargeCollapsed:!0})},onPageNavbarLargeExpanded:function(e){this.eventTargetEl===e&&this.setState({hasNavbarLargeCollapsed:!1})},onCardOpened:function(e,t){this.eventTargetEl===t&&this.setState({hasCardExpandableOpened:!0})},onCardClose:function(e,t){this.eventTargetEl===t&&this.setState({hasCardExpandableOpened:!1})},onPageTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("page:tabshow pageTabShow")},onPageTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("page:tabhide pageTabHide")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},Ts={name:"f7-panel",props:Object.assign({id:[String,Number],side:String,effect:String,cover:Boolean,reveal:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeNoFollow:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.resizable;return e("div",{ref:"el",style:r,class:this.classes,attrs:{id:n}},[this.$slots.default,i&&e("div",{class:"panel-resize-handler"})])},computed:{classes:function(){var e,t=this.props,n=t.left,r=t.reveal,i=t.className,a=t.resizable,o=t.side,s=t.effect;return o=o||(n?"left":"right"),s=s||(r?"reveal":"cover"),no.classNames(i,"panel",(e={"panel-resizable":a},Z()(e,"panel-".concat(o),o),Z()(e,"panel-".concat(s),s),e),ro.colorClasses(t))},props:function(){return io(this)}},watch:{"props.resizable":function(e){this.f7Panel&&(e?this.f7Panel.enableResizable():this.f7Panel.disableResizable())},"props.opened":function(e){this.f7Panel&&(e?this.f7Panel.open():this.f7Panel.close())}},created:function(){no.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onBackdropClick","onSwipe","onSwipeOpen","onBreakpoint","onCollapsedBreakpoint","onResize"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.opened,i=n.resizable,a=n.backdrop,o=n.backdropEl,s=n.visibleBreakpoint,l=n.collapsedBreakpoint,c=n.swipe,u=n.swipeNoFollow,d=n.swipeOnlyClose,h=n.swipeActiveArea,p=n.swipeThreshold;e.$f7ready((function(){var n=e.$$;if(n){0===n(".panel-backdrop").length&&n('<div class="panel-backdrop"></div>').insertBefore(t);var f=no.noUndefinedProps({el:t,resizable:i,backdrop:a,backdropEl:o,visibleBreakpoint:s,collapsedBreakpoint:l,swipe:c,swipeNoFollow:u,swipeOnlyClose:d,swipeActiveArea:h,swipeThreshold:p,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed,backdropClick:e.onBackdropClick,swipe:e.onSwipe,swipeOpen:e.onSwipeOpen,collapsedBreakpoint:e.onCollapsedBreakpoint,breakpoint:e.onBreakpoint,resize:e.onResize}});e.f7Panel=e.$f7.panel.create(f),r&&e.f7Panel.open(!1)}}))},beforeDestroy:function(){this.f7Panel&&this.f7Panel.destroy&&this.f7Panel.destroy()},methods:{onOpen:function(e){this.dispatchEvent("panel:open panelOpen",e)},onOpened:function(e){this.dispatchEvent("panel:opened panelOpened",e)},onClose:function(e){this.dispatchEvent("panel:close panelClose",e)},onClosed:function(e){this.dispatchEvent("panel:closed panelClosed",e)},onBackdropClick:function(e){this.dispatchEvent("panel:backdrop-click panelBackdropClick",e)},onSwipe:function(e){this.dispatchEvent("panel:swipe panelSwipe",e)},onSwipeOpen:function(e){this.dispatchEvent("panel:swipeopen panelSwipeOpen",e)},onBreakpoint:function(e){this.dispatchEvent("panel:breakpoint panelBreakpoint",e)},onCollapsedBreakpoint:function(e){this.dispatchEvent("panel:collapsedbreakpoint panelCollapsedBreakpoint",e)},onResize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["panel:resize panelResize"].concat(t))},open:function(e){this.f7Panel&&this.f7Panel.open(e)},close:function(e){this.f7Panel&&this.f7Panel.close(e)},toggle:function(e){this.f7Panel&&this.f7Panel.toggle(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},Ss={name:"f7-photo-browser",props:{id:[String,Number],init:{type:Boolean,default:!0},params:Object,photos:Array,exposition:{type:Boolean,default:!0},expositionHideCaptions:{type:Boolean,default:!1},type:{type:String},navbar:{type:Boolean,default:!0},toolbar:{type:Boolean,default:!0},theme:{type:String},captionsTheme:{type:String},iconsColor:{type:String},swipeToClose:{type:Boolean,default:!0},pageBackLinkText:{type:String,default:void 0},popupCloseLinkText:{type:String,default:void 0},navbarOfText:{type:String,default:void 0},navbarShowCount:{type:Boolean,default:void 0},swiper:{type:Object},url:{type:String},routableModals:{type:Boolean,default:!0},virtualSlides:{type:Boolean,default:!0},view:[String,Object],renderNavbar:Function,renderToolbar:Function,renderCaption:Function,renderObject:Function,renderLazyPhoto:Function,renderPhoto:Function,renderPage:Function,renderPopup:Function,renderStandalone:Function},render:function(){this.$createElement;return null},watch:{"props.photos":function(e){var t=this.f7PhotoBrowser;t&&(this.f7PhotoBrowser.params.photos=e,t.opened&&t.swiper&&t.swiper.update())}},beforeDestroy:function(){this.f7PhotoBrowser&&this.f7PhotoBrowser.destroy&&this.f7PhotoBrowser.destroy()},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n;n=void 0!==e.props.params?e.props.params:Object.assign({},e.props),Object.keys(n).forEach((function(e){void 0!==n[e]&&""!==n[e]||delete n[e]})),n=no.extend({},n,{on:{open:function(){e.dispatchEvent("photobrowser:open photoBrowserOpen")},close:function(){e.dispatchEvent("photobrowser:close photoBrowserClose")},opened:function(){e.dispatchEvent("photobrowser:opened photoBrowserOpened")},closed:function(){e.dispatchEvent("photobrowser:closed photoBrowserClosed")},swipeToClose:function(){e.dispatchEvent("photobrowser:swipetoclose photoBrowserSwipeToClose")}}}),e.f7PhotoBrowser=t.photoBrowser.create(n)}))},methods:{open:function(e){return this.f7PhotoBrowser.open(e)},close:function(){return this.f7PhotoBrowser.close()},expositionToggle:function(){return this.f7PhotoBrowser.expositionToggle()},expositionEnable:function(){return this.f7PhotoBrowser.expositionEnable()},expositionDisable:function(){return this.f7PhotoBrowser.expositionDisable()},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Cs={name:"f7-popover",props:Object.assign({id:[String,Number],opened:Boolean,target:[String,Object],backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:no.classNames(n,"popover",ro.colorClasses(t)),attrs:{id:r}},[e("div",{class:"popover-angle"}),e("div",{class:"popover-inner"},[this.$slots.default])])},watch:{"props.opened":function(e){this.f7Popover&&(e?this.f7Popover.open():this.f7Popover.close())}},created:function(){no.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.target,i=n.opened,a=n.backdrop,o=n.backdropEl,s=n.closeByBackdropClick,l=n.closeByOutsideClick,c=n.closeOnEscape,u={el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}};r&&(u.targetEl=r);var d=e.$options.propsData;void 0!==d.closeByBackdropClick&&(u.closeByBackdropClick=s),void 0!==d.closeByOutsideClick&&(u.closeByOutsideClick=l),void 0!==d.closeOnEscape&&(u.closeOnEscape=c),void 0!==d.backdrop&&(u.backdrop=a),void 0!==d.backdropEl&&(u.backdropEl=o),e.$f7ready((function(){e.f7Popover=e.$f7.popover.create(u),i&&r&&e.f7Popover.open(r,!1)}))}},beforeDestroy:function(){this.f7Popover&&this.f7Popover.destroy()},methods:{onOpen:function(e){this.dispatchEvent("popover:open popoverOpen",e)},onOpened:function(e){this.dispatchEvent("popover:opened popoverOpened",e)},onClose:function(e){this.dispatchEvent("popover:close popoverClose",e)},onClosed:function(e){this.dispatchEvent("popover:closed popoverClosed",e)},open:function(e){if(this.f7Popover)return this.f7Popover.open(e)},close:function(e){if(this.f7Popover)return this.f7Popover.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},xs={name:"f7-popup",props:Object.assign({id:[String,Number],tabletFullscreen:Boolean,opened:Boolean,animate:Boolean,backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeOnEscape:Boolean,swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:[String,Object,window.HTMLElement],push:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.tabletFullscreen,o=t.push;return e("div",{ref:"el",style:i,class:no.classNames(n,"popup",{"popup-tablet-fullscreen":a,"popup-push":o},ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7Popup&&(e?this.f7Popup.open():this.f7Popup.close())}},created:function(){no.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onSwipeStart","onSwipeMove","onSwipeEnd","onSwipeClose"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.closeByBackdropClick,i=n.backdrop,a=n.backdropEl,o=n.animate,s=n.closeOnEscape,l=n.swipeToClose,c=n.swipeHandler,u={el:t,on:{swipeStart:e.onSwipeStart,swipeMove:e.onSwipeMove,swipeEnd:e.onSwipeEnd,swipeClose:e.onSwipeClose,open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}},d=e.$options.propsData;void 0!==d.closeByBackdropClick&&(u.closeByBackdropClick=r),void 0!==d.closeOnEscape&&(u.closeOnEscape=s),void 0!==d.animate&&(u.animate=o),void 0!==d.backdrop&&(u.backdrop=i),void 0!==d.backdropEl&&(u.backdropEl=a),void 0!==d.swipeToClose&&(u.swipeToClose=l),void 0!==d.swipeHandler&&(u.swipeHandler=c),e.$f7ready((function(){e.f7Popup=e.$f7.popup.create(u),e.props.opened&&e.f7Popup.open(!1)}))}},beforeDestroy:function(){this.f7Popup&&this.f7Popup.destroy()},methods:{onSwipeStart:function(e){this.dispatchEvent("popup:swipestart popupSwipeStart",e)},onSwipeMove:function(e){this.dispatchEvent("popup:swipemove popupSwipeMove",e)},onSwipeEnd:function(e){this.dispatchEvent("popup:swipeend popupSwipeEnd",e)},onSwipeClose:function(e){this.dispatchEvent("popup:swipeclose popupSwipeClose",e)},onOpen:function(e){this.dispatchEvent("popup:open popupOpen",e)},onOpened:function(e){this.dispatchEvent("popup:opened popupOpened",e)},onClose:function(e){this.dispatchEvent("popup:close popupClose",e)},onClosed:function(e){this.dispatchEvent("popup:closed popupClosed",e)},open:function(e){if(this.f7Popup)return this.f7Popup.open(e)},close:function(e){if(this.f7Popup)return this.f7Popup.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Ms={name:"f7-progressbar",props:Object.assign({id:[String,Number],progress:Number,infinite:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.progress,r=t.id,i=t.style,a=t.infinite,o=t.className,s={transform:n?"translate3d(".concat(-100+n,"%, 0, 0)"):"",WebkitTransform:n?"translate3d(".concat(-100+n,"%, 0, 0)"):""};return e("span",{ref:"el",style:i,class:no.classNames(o,"progressbar",{"progressbar-infinite":a},ro.colorClasses(t)),attrs:{id:r,"data-progress":n}},[e("span",{style:s})])},methods:{set:function(e,t){this.$f7&&this.$f7.progressbar.set(this.$refs.el,e,t)}},computed:{props:function(){return io(this)}}},$s={name:"f7-radio",props:Object.assign({id:[String,Number],checked:Boolean,name:[Number,String],value:[Number,String,Boolean],disabled:Boolean,readonly:Boolean,defaultChecked:Boolean},ro.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.name,i=n.value,a=n.disabled,o=n.readonly,s=n.checked,l=(n.defaultChecked,n.id),c=n.style,u=n.className;e=t("input",{ref:"inputEl",domProps:{value:i,disabled:a,readonly:o,checked:s},on:{change:this.onChange},attrs:{type:"radio",name:r}});var d=t("i",{class:"icon-radio"});return t("label",{style:c,class:no.classNames(u,"radio",{disabled:a},ro.colorClasses(n)),attrs:{id:l}},[e,d,this.$slots.default])},created:function(){no.bindMethods(this,["onChange"])},methods:{onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Ls={name:"f7-row",props:Object.assign({id:[String,Number],noGap:Boolean,tag:{type:String,default:"div"},resizable:Boolean,resizableFixed:Boolean,resizableAbsolute:Boolean,resizableHandler:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.tag,o=t.noGap,s=t.resizable,l=t.resizableFixed,c=t.resizableAbsolute,u=t.resizableHandler;return e(a,{style:i,class:no.classNames(n,"row",{"no-gap":o,resizable:s,"resizable-fixed":l,"resizable-absolute":c},ro.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default,s&&u&&e("span",{class:"resize-handler"})])},created:function(){no.bindMethods(this,["onClick","onResize"])},mounted:function(){var e=this;e.eventTargetEl=e.$refs.el,e.eventTargetEl.addEventListener("click",e.onClick),e.$f7ready((function(t){t.on("gridResize",e.onResize)}))},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("gridResize",this.onResize),delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onResize:function(e){e===this.eventTargetEl&&this.dispatchEvent("grid:resize gridResize")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Ps={name:"f7-searchbar",props:Object.assign({id:[String,Number],noShadow:Boolean,noHairline:Boolean,form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".item-divider, .list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideDividers:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.placeholder,a=r.clearButton,o=r.disableButton,s=r.disableButtonText,l=r.form,c=r.noShadow,u=r.noHairline,d=r.expandable,h=r.className,p=r.style,f=r.id,m=r.value,v=r.inline;a&&(e=n("span",{ref:"clearEl",class:"input-clear-button"})),o&&(t=n("span",{ref:"disableEl",class:"searchbar-disable-button"},[s]));var g,y=l?"form":"div",b=no.classNames(h,"searchbar",{"searchbar-inline":v,"no-shadow":c,"no-hairline":u,"searchbar-expandable":d},ro.colorClasses(r));return g=n("input",{ref:"inputEl",domProps:{value:m},on:{input:this.onInput,change:this.onChange,focus:this.onFocus,blur:this.onBlur},attrs:{placeholder:i,type:"search"}}),n(y,{ref:"el",style:p,class:b,attrs:{id:f}},[this.$slots["before-inner"],n("div",{class:"searchbar-inner"},[this.$slots["inner-start"],n("div",{class:"searchbar-input-wrap"},[this.$slots["input-wrap-start"],g,n("i",{class:"searchbar-icon"}),e,this.$slots["input-wrap-end"]]),t,this.$slots["inner-end"],this.$slots.default]),this.$slots["after-inner"]])},created:function(){no.bindMethods(this,["onSubmit","onClearButtonClick","onDisableButtonClick","onInput","onChange","onFocus","onBlur"])},mounted:function(){var e=this,t=e.props,n=t.init,r=t.inputEvents,i=t.searchContainer,a=t.searchIn,o=t.searchItem,s=t.searchGroup,l=t.searchGroupTitle,c=t.hideOnEnableEl,u=t.hideOnSearchEl,d=t.foundEl,h=t.notFoundEl,p=t.backdrop,f=t.backdropEl,m=t.disableButton,v=t.ignore,g=t.customSearch,y=t.removeDiacritics,b=t.hideDividers,_=t.hideGroups,w=t.form,k=t.expandable,E=t.inline,T=e.$refs,S=T.el,C=T.clearEl,x=T.disableEl;w&&S&&S.addEventListener("submit",e.onSubmit,!1),C&&C.addEventListener("click",e.onClearButtonClick),x&&x.addEventListener("click",e.onDisableButtonClick),n&&e.$f7ready((function(){var t=no.noUndefinedProps({el:e.$refs.el,inputEvents:r,searchContainer:i,searchIn:a,searchItem:o,searchGroup:s,searchGroupTitle:l,hideOnEnableEl:c,hideOnSearchEl:u,foundEl:d,notFoundEl:h,backdrop:p,backdropEl:f,disableButton:m,ignore:v,customSearch:g,removeDiacritics:y,hideDividers:b,hideGroups:_,expandable:k,inline:E,on:{search:function(t,n,r){e.dispatchEvent("searchbar:search searchbarSearch",t,n,r)},clear:function(t,n){e.dispatchEvent("searchbar:clear searchbarClear",t,n)},enable:function(t){e.dispatchEvent("searchbar:enable searchbarEnable",t)},disable:function(t){e.dispatchEvent("searchbar:disable searchbarDisable",t)}}});Object.keys(t).forEach((function(e){""===t[e]&&delete t[e]})),e.f7Searchbar=e.$f7.searchbar.create(t)}))},beforeDestroy:function(){var e=this.$refs,t=e.el,n=e.clearEl,r=e.disableEl;this.props.form&&t&&t.removeEventListener("submit",this.onSubmit,!1),n&&n.removeEventListener("click",this.onClearButtonClick),r&&r.removeEventListener("click",this.onDisableButtonClick),this.f7Searchbar&&this.f7Searchbar.destroy&&this.f7Searchbar.destroy()},methods:{search:function(e){if(this.f7Searchbar)return this.f7Searchbar.search(e)},enable:function(){if(this.f7Searchbar)return this.f7Searchbar.enable()},disable:function(){if(this.f7Searchbar)return this.f7Searchbar.disable()},toggle:function(){if(this.f7Searchbar)return this.f7Searchbar.toggle()},clear:function(){if(this.f7Searchbar)return this.f7Searchbar.clear()},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},onFocus:function(e){this.dispatchEvent("focus",e)},onBlur:function(e){this.dispatchEvent("blur",e)},onSubmit:function(e){this.dispatchEvent("submit",e)},onClearButtonClick:function(e){this.dispatchEvent("click:clear clickClear",e)},onDisableButtonClick:function(e){this.dispatchEvent("click:disable clickDisable",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Os={name:"f7-segmented",props:Object.assign({id:[String,Number],raised:Boolean,raisedIos:Boolean,raisedMd:Boolean,raisedAurora:Boolean,round:Boolean,roundIos:Boolean,roundMd:Boolean,roundAurora:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,strongAurora:Boolean,tag:{type:String,default:"div"}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.raised,i=t.raisedIos,a=t.raisedAurora,o=t.raisedMd,s=t.round,l=t.roundIos,c=t.roundAurora,u=t.roundMd,d=t.strong,h=t.strongIos,p=t.strongMd,f=t.strongAurora,m=t.id,v=t.style;return e(t.tag,{style:v,class:no.classNames(n,{segmented:!0,"segmented-raised":r,"segmented-raised-ios":i,"segmented-raised-aurora":a,"segmented-raised-md":o,"segmented-round":s,"segmented-round-ios":l,"segmented-round-aurora":c,"segmented-round-md":u,"segmented-strong":d,"segmented-strong-ios":h,"segmented-strong-md":p,"segmented-strong-aurora":f},ro.colorClasses(t)),attrs:{id:m}},[this.$slots.default,(d||h||p||f)&&e("span",{class:"segmented-highlight"})])},computed:{props:function(){return io(this)}}},Ds={name:"f7-sheet",props:Object.assign({id:[String,Number],opened:Boolean,top:Boolean,bottom:Boolean,position:String,backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean,push:Boolean,swipeToClose:Boolean,swipeToStep:Boolean,swipeHandler:[String,Object,window.HTMLElement]},ro.colorProps),render:function(){var e,t=this.$createElement,n=[],r=[],i=this.props,a=i.id,o=i.style,s=i.className,l=i.top,c=i.bottom,u=i.position,d=i.push;e="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index".split(" ");var h=this.$slots.default;h&&h.length&&h.forEach((function(t){if(void 0!==t){var i=!1,a=t.tag;if(a){for(var o=0;o<e.length;o+=1)a.indexOf(e[o])>=0&&(i=!0);i?n.push(t):r.push(t)}}}));var p=t("div",{class:"sheet-modal-inner"},[r]),f="bottom";return u?f=u:l?f="top":c&&(f="bottom"),t("div",{ref:"el",style:o,class:no.classNames(s,"sheet-modal","sheet-modal-".concat(f),{"sheet-modal-push":d},ro.colorClasses(i)),attrs:{id:a}},[n,p])},watch:{"props.opened":function(e){this.f7Sheet&&(e?this.f7Sheet.open():this.f7Sheet.close())}},created:function(){no.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onStepOpen","onStepClose","onStepProgress"])},mounted:function(){var e=this;if(e.$refs.el){var t=e.props,n=t.opened,r=t.backdrop,i=t.backdropEl,a=t.closeByBackdropClick,o=t.closeByOutsideClick,s=t.closeOnEscape,l=t.swipeToClose,c=t.swipeToStep,u=t.swipeHandler,d={el:e.$refs.el,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed,stepOpen:e.onStepOpen,stepClose:e.onStepClose,stepProgress:e.onStepProgress}},h=e.$options.propsData;void 0!==h.backdrop&&(d.backdrop=r),void 0!==h.backdropEl&&(d.backdropEl=i),void 0!==h.closeByBackdropClick&&(d.closeByBackdropClick=a),void 0!==h.closeByOutsideClick&&(d.closeByOutsideClick=o),void 0!==h.closeOnEscape&&(d.closeOnEscape=s),void 0!==h.swipeToClose&&(d.swipeToClose=l),void 0!==h.swipeToStep&&(d.swipeToStep=c),void 0!==h.swipeHandler&&(d.swipeHandler=u),e.$f7ready((function(){e.f7Sheet=e.$f7.sheet.create(d),n&&e.f7Sheet.open(!1)}))}},beforeDestroy:function(){this.f7Sheet&&this.f7Sheet.destroy()},methods:{onStepProgress:function(e,t){this.dispatchEvent("sheet:stepprogress sheetStepProgress",e,t)},onStepOpen:function(e){this.dispatchEvent("sheet:stepopen sheetStepOpen",e)},onStepClose:function(e){this.dispatchEvent("sheet:stepclose sheetStepClose",e)},onOpen:function(e){this.dispatchEvent("sheet:open sheetOpen",e)},onOpened:function(e){this.dispatchEvent("sheet:opened sheetOpened",e)},onClose:function(e){this.dispatchEvent("sheet:close sheetClose",e)},onClosed:function(e){this.dispatchEvent("sheet:closed sheetClosed",e)},open:function(e){if(this.f7Sheet)return this.f7Sheet.open(e)},close:function(e){if(this.f7Sheet)return this.f7Sheet.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},Is={name:"f7-skeleton-block",props:Object.assign({id:[String,Number],width:[Number,String],height:[Number,String],tag:{type:String,default:"div"}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.width,o=t.height,s=t.tag,l=no.classNames("skeleton-block",n,ro.colorClasses(t)),c=i;if(a){var u="number"==typeof a?"".concat(a,"px"):a;c?"object"===N()(c)?c=Object.assign({width:u},c):"string"==typeof c&&(c="width: ".concat(u,"; ").concat(c)):c={width:u}}if(o){var d="number"==typeof o?"".concat(o,"px"):o;c?"object"===N()(c)?c=Object.assign({height:d},c):"string"==typeof c&&(c="height: ".concat(d,"; ").concat(c)):c={height:d}}return e(s,{style:c,class:l,attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},As={name:"f7-skeleton-text",props:Object.assign({id:[String,Number],width:[Number,String],height:[Number,String],tag:{type:String,default:"span"}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.width,o=t.height,s=t.tag,l=no.classNames("skeleton-text",n,ro.colorClasses(t)),c=i;if(a){var u="number"==typeof a?"".concat(a,"px"):a;c?"object"===N()(c)?c=Object.assign({width:u},c):"string"==typeof c&&(c="width: ".concat(u,"; ").concat(c)):c={width:u}}if(o){var d="number"==typeof o?"".concat(o,"px"):o;c?"object"===N()(c)?c=Object.assign({height:d},c):"string"==typeof c&&(c="height: ".concat(d,"; ").concat(c)):c={height:d}}return e(s,{style:c,class:l,attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Ns={name:"f7-stepper",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},formatValue:Function,name:String,inputId:String,input:{type:Boolean,default:!0},inputType:{type:String,default:"text"},inputReadonly:{type:Boolean,default:!1},autorepeat:{type:Boolean,default:!1},autorepeatDynamic:{type:Boolean,default:!1},wraps:{type:Boolean,default:!1},manualInputMode:{type:Boolean,default:!1},decimalPoint:{type:Number,default:4},buttonsEndInputMode:{type:Boolean,default:!0},disabled:Boolean,buttonsOnly:Boolean,round:Boolean,roundMd:Boolean,roundIos:Boolean,roundAurora:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,fillAurora:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,largeAurora:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,smallAurora:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,raisedAurora:Boolean},ro.colorProps),render:function(){var e,t,n,r=this.$createElement,i=this.props,a=i.input,o=i.buttonsOnly,s=i.inputType,l=i.value,c=i.inputReadonly,u=i.min,d=i.max,h=i.step,p=i.id,f=i.style,m=i.name,v=i.inputId;a&&!o&&(n=r("input",{ref:"inputEl",domProps:{readOnly:c,value:l},on:{input:this.onInput,change:this.onChange},attrs:{name:m,id:v,type:s,min:"number"===s?u:void 0,max:"number"===s?d:void 0,step:"number"===s?h:void 0}}),e=r("div",{class:"stepper-input-wrap"},[n]));return a||o||(t=r("div",{class:"stepper-value"},[l])),r("div",{ref:"el",style:f,class:this.classes,attrs:{id:p}},[r("div",{ref:"minusEl",class:"stepper-button-minus"}),e,t,r("div",{ref:"plusEl",class:"stepper-button-plus"})])},computed:{classes:function(){var e=this.props,t=e.round,n=e.roundIos,r=e.roundMd,i=e.roundAurora,a=e.fill,o=e.fillIos,s=e.fillMd,l=e.fillAurora,c=e.large,u=e.largeIos,d=e.largeMd,h=e.largeAurora,p=e.small,f=e.smallIos,m=e.smallMd,v=e.smallAurora,g=e.raised,y=e.raisedMd,b=e.raisedIos,_=e.raisedAurora,w=e.disabled;return no.classNames(this.props.className,"stepper",{disabled:w,"stepper-round":t,"stepper-round-ios":n,"stepper-round-md":r,"stepper-round-aurora":i,"stepper-fill":a,"stepper-fill-ios":o,"stepper-fill-md":s,"stepper-fill-aurora":l,"stepper-large":c,"stepper-large-ios":u,"stepper-large-md":d,"stepper-large-aurora":h,"stepper-small":p,"stepper-small-ios":f,"stepper-small-md":m,"stepper-small-aurora":v,"stepper-raised":g,"stepper-raised-ios":b,"stepper-raised-md":y,"stepper-raised-aurora":_},ro.colorClasses(e))},props:function(){return io(this)}},created:function(){no.bindMethods(this,["onInput","onMinusClick","onPlusClick"])},mounted:function(){var e=this,t=e.$refs,n=t.minusEl,r=t.plusEl;n&&n.addEventListener("click",e.onMinusClick),r&&r.addEventListener("click",e.onPlusClick),e.props.init&&e.$f7ready((function(t){var n=e.props,r=n.min,i=n.max,a=n.value,o=n.step,s=n.formatValue,l=n.autorepeat,c=n.autorepeatDynamic,u=n.wraps,d=n.manualInputMode,h=n.decimalPoint,p=n.buttonsEndInputMode,f=e.$refs.el;f&&(e.f7Stepper=t.stepper.create(no.noUndefinedProps({el:f,min:r,max:i,value:a,step:o,formatValue:s,autorepeat:l,autorepeatDynamic:c,wraps:u,manualInputMode:d,decimalPoint:h,buttonsEndInputMode:p,on:{change:function(t,n){e.dispatchEvent("stepper:change stepperChange",n)}}})))}))},beforeDestroy:function(){var e=this.$refs,t=e.minusEl,n=e.plusEl;t&&t.removeEventListener("click",this.onMinusClick),n&&n.removeEventListener("click",this.onPlusClick),this.props.init&&this.f7Stepper&&this.f7Stepper.destroy&&this.f7Stepper.destroy()},methods:{increment:function(){this.f7Stepper&&this.f7Stepper.increment()},decrement:function(){this.f7Stepper&&this.f7Stepper.decrement()},setValue:function(e){this.f7Stepper&&this.f7Stepper.setValue&&this.f7Stepper.setValue(e)},getValue:function(){if(this.f7Stepper&&this.f7Stepper.getValue)return this.f7Stepper.getValue()},onInput:function(e){var t=this.f7Stepper;this.dispatchEvent("input",e,t)},onChange:function(e){var t=this.f7Stepper;this.dispatchEvent("change",e,t)},onMinusClick:function(e){var t=this.f7Stepper;this.dispatchEvent("stepper:minusclick stepperMinusClick",e,t)},onPlusClick:function(e){var t=this.f7Stepper;this.dispatchEvent("stepper:plusclick stepperPlusClick",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},Rs={name:"f7-subnavbar",props:Object.assign({id:[String,Number],sliding:Boolean,title:String,inner:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.inner,r=t.title,i=t.style,a=t.id,o=t.className,s=t.sliding;return e("div",{class:no.classNames(o,"subnavbar",{sliding:s},ro.colorClasses(t)),style:i,attrs:{id:a}},[n?e("div",{class:"subnavbar-inner"},[r&&e("div",{class:"subnavbar-title"},[r]),this.$slots.default]):this.$slots.default])},computed:{props:function(){return io(this)}}},Ys={name:"f7-swipeout-actions",props:Object.assign({id:[String,Number],left:Boolean,right:Boolean,side:String},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.left,r=t.right,i=t.side,a=t.className,o=t.id,s=i;return s||(n&&(s="left"),r&&(s="right")),e("div",{style:t.style,class:no.classNames(a,"swipeout-actions-".concat(s),ro.colorClasses(t)),attrs:{id:o}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Bs={name:"f7-swipeout-button",props:Object.assign({id:[String,Number],text:String,confirmTitle:String,confirmText:String,overswipe:Boolean,close:Boolean,delete:Boolean,href:String},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.overswipe,o=t.delete,s=t.close,l=t.href,c=t.confirmTitle,u=t.confirmText,d=t.text;return e("a",{ref:"el",style:i,class:no.classNames(n,{"swipeout-overswipe":a,"swipeout-delete":o,"swipeout-close":s},ro.colorClasses(t)),attrs:{href:l||"#",id:r,"data-confirm":u||void 0,"data-confirm-title":c||void 0}},[this.$slots.default||[d]])},created:function(){no.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return io(this)}}},js={name:"f7-swiper-slide",props:{id:[String,Number],zoom:Boolean},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.zoom;return e("div",{style:i,class:no.classNames(n,"swiper-slide"),attrs:{id:r}},[a?e("div",{class:"swiper-zoom-container"},[this.$slots.default]):this.$slots.default])},computed:{props:function(){return io(this)}}},Fs={name:"f7-swiper",props:Object.assign({id:[String,Number],params:Object,pagination:Boolean,scrollbar:Boolean,navigation:Boolean,init:{type:Boolean,default:!0}},ro.colorProps),render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.id,s=a.style,l=a.className;return this.paginationComputed&&(e=i("div",{ref:"paginationEl",class:"swiper-pagination"})),this.scrollbarComputed&&(t=i("div",{ref:"scrollbarEl",class:"swiper-scrollbar"})),this.navigationComputed&&(n=i("div",{ref:"nextEl",class:"swiper-button-next"}),r=i("div",{ref:"prevEl",class:"swiper-button-prev"})),i("div",{style:s,ref:"el",class:no.classNames(l,"swiper-container",ro.colorClasses(a)),attrs:{id:o}},[this.$slots["before-wrapper"],i("div",{class:"swiper-wrapper"},[this.$slots.default]),e,t,r,n,this.$slots["after-wrapper"]])},computed:{paginationComputed:function(){var e=this.props,t=e.pagination,n=e.params;return!!(!0===t||n&&n.pagination&&!n.pagination.el)},scrollbarComputed:function(){var e=this.props,t=e.scrollbar,n=e.params;return!!(!0===t||n&&n.scrollbar&&!n.scrollbar.el)},navigationComputed:function(){var e=this.props,t=e.navigation,n=e.params;return!(!0!==t&&(!n||!n.navigation||n.navigation.nextEl||n.navigation.prevEl))},props:function(){return io(this)}},updated:function(){this.initialUpdate?this.swiper&&this.swiper.update&&this.swiper.update():this.initialUpdate=!0},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n={pagination:{},navigation:{},scrollbar:{}},r=e.props,i=r.params,a=r.pagination,o=r.navigation,s=r.scrollbar;i&&no.extend(n,i),a&&!n.pagination.el&&(n.pagination.el=e.$refs.paginationEl),!o||n.navigation.nextEl||n.navigation.prevEl||(n.navigation.nextEl=e.$refs.nextEl,n.navigation.prevEl=e.$refs.prevEl),s&&!n.scrollbar.el&&(n.scrollbar.el=e.$refs.scrollbarEl),e.swiper=t.swiper.create(e.$refs.el,n)}))},beforeDestroy:function(){this.props.init&&this.swiper&&this.swiper.destroy&&this.swiper.destroy()}},Hs={name:"f7-tab",props:Object.assign({id:[String,Number],tabActive:Boolean},ro.colorProps),data:function(){io(this);return{state:{tabContent:null}}},render:function(){var e,t=this.$createElement,n=this.props,r=n.tabActive,i=n.id,a=n.className,o=n.style,s=this.state.tabContent,l=no.classNames(a,"tab",{"tab-active":r},ro.colorClasses(n));return s&&(e=s.component),t("div",{style:o,ref:"el",class:l,attrs:{id:i}},[s?t(e,{key:s.id,props:s.props}):this.$slots.default])},created:function(){no.bindMethods(this,["onTabShow","onTabHide"])},updated:function(){this.routerData&&vo.events.emit("tabRouterDidUpdate",this.routerData)},beforeDestroy:function(){this.$f7&&(this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide)),this.routerData&&(vo.routers.tabs.splice(vo.routers.tabs.indexOf(this.routerData),1),this.routerData=null,this.eventTargetEl=null,delete this.routerData,delete this.eventTargetEl)},mounted:function(){var e=this,t=e.$refs.el;e.setState({tabContent:null}),e.$f7ready((function(){e.$f7.on("tabShow",e.onTabShow),e.$f7.on("tabHide",e.onTabHide),e.eventTargetEl=t,e.routerData={el:t,component:e,setTabContent:function(t){e.setState({tabContent:t})}},vo.routers.tabs.push(e.routerData)}))},methods:{show:function(e){this.$f7&&this.$f7.tab.show(this.$refs.el,e)},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},Us={name:"f7-tabs",props:Object.assign({id:[String,Number],animated:Boolean,swipeable:Boolean,routable:Boolean,swiperParams:{type:Object,default:void 0}},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.animated,r=t.swipeable,i=t.id,a=t.style,o=t.className,s=t.routable,l=no.classNames(o,ro.colorClasses(t)),c=no.classNames({"tabs-animated-wrap":n,"tabs-swipeable-wrap":r}),u=no.classNames({tabs:!0,"tabs-routable":s});return n||r?e("div",{style:a,class:no.classNames(c,l),ref:"wrapEl",attrs:{id:i}},[e("div",{class:u},[this.$slots.default])]):e("div",{style:a,class:no.classNames(u,l),attrs:{id:i}},[this.$slots.default])},mounted:function(){var e=this.props,t=e.swipeable,n=e.swiperParams;if(t&&n){var r=this.$refs.wrapEl;r&&(r.f7SwiperParams=n)}},computed:{props:function(){return io(this)}}},zs={name:"f7-toolbar",props:Object.assign({id:[String,Number],tabbar:Boolean,labels:Boolean,scrollable:Boolean,hidden:Boolean,noShadow:Boolean,noHairline:Boolean,noBorder:Boolean,position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},topAurora:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottomAurora:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0}},ro.colorProps),data:function(){var e=this;io(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className,a=t.inner,o=t.tabbar,s=t.labels,l=t.scrollable,c=t.hidden,u=t.noShadow,d=t.noHairline,h=t.noBorder,p=t.topMd,f=t.topIos,m=t.topAurora,v=t.top,g=t.bottomMd,y=t.bottomIos,b=t.bottomAurora,_=t.bottom,w=t.position,k=this.state._theme;return e("div",{style:r,ref:"el",class:no.classNames(i,"toolbar",{tabbar:o,"toolbar-bottom":k&&k.md&&g||k&&k.ios&&y||k&&k.aurora&&b||_||"bottom"===w,"toolbar-top":k&&k.md&&p||k&&k.ios&&f||k&&k.aurora&&m||v||"top"===w,"tabbar-labels":s,"tabbar-scrollable":l,"toolbar-hidden":c,"no-shadow":u,"no-hairline":d||h},ro.colorClasses(t)),attrs:{id:n}},[this.$slots["before-inner"],a?e("div",{class:"toolbar-inner"},[this.$slots.default]):this.$slots.default,this.$slots["after-inner"]])},created:function(){no.bindMethods(this,["onHide","onShow"])},updated:function(){this.props.tabbar&&this.$f7&&this.$f7.toolbar.setHighlight(this.$refs.el)},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(n){e.eventTargetEl=t,e.props.tabbar&&n.toolbar.setHighlight(t),n.on("toolbarShow",e.onShow),n.on("toolbarHide",e.onHide)}))},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("toolbarShow",this.onShow),e.off("toolbarHide",this.onHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("toolbar:hide toolbarHide")},onShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("toolbar:show toolbarShow")},hide:function(e){this.$f7&&this.$f7.toolbar.hide(this.$refs.el,e)},show:function(e){this.$f7&&this.$f7.toolbar.show(this.$refs.el,e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},Vs={props:Object.assign({id:[String,Number],toggle:{type:Boolean,default:void 0},itemToggle:Boolean,selectable:Boolean,selected:Boolean,opened:Boolean,label:String,loadChildren:Boolean,link:{type:[Boolean,String],default:void 0}},ro.colorProps,{},ro.linkActionsProps,{},ro.linkRouterProps,{},ro.linkIconProps),name:"f7-treeview-item",render:function(){var e,t=this.$createElement,n=this.props,r=n.id,i=n.style,a=n.toggle,o=n.label,s=n.icon,l=n.iconMaterial,c=n.iconF7,u=n.iconMd,d=n.iconIos,h=n.iconAurora,p=n.iconSize,f=n.iconColor,m=n.link,v=this.$slots,g=v.default&&v.default.length||v.children&&v.children.length||v["children-start"]&&v["children-start"].length,y=void 0===a?g:a;(s||l||c||u||d||h)&&(e=t(Co,{attrs:{material:l,f7:c,icon:s,md:u,ios:d,aurora:h,color:f,size:p}}));var b=m||""===m?"a":"div";return t("div",{ref:"el",style:i,class:this.classes,attrs:{id:r}},[t(b,xo(Object.assign({ref:"rootEl",class:this.itemRootClasses},this.itemRootAttrs)),[this.$slots["root-start"],y&&t("div",{class:"treeview-toggle"}),t("div",{class:"treeview-item-content"},[this.$slots["content-start"],e,this.$slots.media,t("div",{class:"treeview-item-label"},[this.$slots["label-start"],o,this.$slots.label]),this.$slots.content,this.$slots["content-end"]]),this.$slots.root,this.$slots["root-end"]]),g&&t("div",{class:"treeview-item-children"},[this.$slots["children-start"],this.$slots.default,this.$slots.children])])},computed:{itemRootAttrs:function(){var e=this.props,t=e.link,n=t;return!0===t&&(n="#"),!1===t&&(n=void 0),no.extend({href:n},ro.linkRouterAttrs(e),ro.linkActionsAttrs(e))},itemRootClasses:function(){var e=this.props,t=e.selectable,n=e.selected,r=e.itemToggle;return no.classNames("treeview-item-root",{"treeview-item-selectable":t,"treeview-item-selected":n,"treeview-item-toggle":r},ro.linkRouterClasses(e),ro.linkActionsClasses(e))},classes:function(){var e=this.props,t=e.className,n=e.opened,r=e.loadChildren;return no.classNames(t,"treeview-item",{"treeview-item-opened":n,"treeview-load-children":r},ro.colorClasses(e))},props:function(){return io(this)}},created:function(){no.bindMethods(this,["onClick","onOpen","onClose","onLoadChildren"])},mounted:function(){var e=this,t=e.$refs,n=t.el;t.rootEl.addEventListener("click",e.onClick),n&&(e.eventTargetEl=n,e.$f7ready((function(t){t.on("treeviewOpen",e.onOpen),t.on("treeviewClose",e.onClose),t.on("treeviewLoadChildren",e.onLoadChildren)})))},beforeDestroy:function(){var e=this.$refs,t=e.el;e.rootEl.removeEventListener("click",this.onClick),t&&!this.$f7&&(this.$f7.off("treeviewOpen",this.onOpen),this.$f7.off("treeviewClose",this.onClose),this.$f7.off("treeviewLoadChildren",this.onLoadChildren),this.eventTargetEl=null,delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("treeview:open treeviewOpen",e)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("treeview:close treeviewClose",e)},onLoadChildren:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("treeview:loadchildren treeviewLoadChildren",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))}}},qs={props:Object.assign({id:[String,Number]},ro.colorProps),name:"f7-treeview",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:no.classNames(n,"treeview",ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Ws={name:"f7-view",props:Object.assign({id:[String,Number],tab:Boolean,tabActive:Boolean,name:String,router:Boolean,linksView:[Object,String],url:String,main:Boolean,stackPages:Boolean,xhrCache:Boolean,xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:Boolean,xhrCacheDuration:Number,preloadPreviousPage:Boolean,allowDuplicateUrls:Boolean,reloadPages:Boolean,reloadDetail:Boolean,masterDetailResizable:Boolean,masterDetailBreakpoint:Number,removeElements:Boolean,removeElementsWithTimeout:Boolean,removeElementsTimeout:Number,restoreScrollTopOnBack:Boolean,loadInitialPage:Boolean,iosSwipeBack:Boolean,iosSwipeBackAnimateShadow:Boolean,iosSwipeBackAnimateOpacity:Boolean,iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:Boolean,mdSwipeBackAnimateShadow:Boolean,mdSwipeBackAnimateOpacity:Boolean,mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,auroraSwipeBack:Boolean,auroraSwipeBackAnimateShadow:Boolean,auroraSwipeBackAnimateOpacity:Boolean,auroraSwipeBackActiveArea:Number,auroraSwipeBackThreshold:Number,pushState:Boolean,pushStateRoot:String,pushStateAnimate:Boolean,pushStateAnimateOnLoad:Boolean,pushStateSeparator:String,pushStateOnLoad:Boolean,animate:Boolean,transition:String,iosDynamicNavbar:Boolean,iosAnimateNavbarBackIcon:Boolean,materialPageLoadDelay:Number,passRouteQueryToRequest:Boolean,passRouteParamsToRequest:Boolean,routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],init:{type:Boolean,default:!0}},ro.colorProps),data:function(){io(this);return{state:{pages:[]}}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.tab,a=t.main,o=t.tabActive,s=t.className,l=no.classNames(s,"view",{"view-main":a,"tab-active":o,tab:i},ro.colorClasses(t));return e("div",{ref:"el",style:r,class:l,attrs:{id:n}},[this.$slots.default,this.state.pages.map((function(t){var n=t.component;return e(n,{key:t.id,props:t.props})}))])},created:function(){no.bindMethods(this,["onSwipeBackMove","onSwipeBackBeforeChange","onSwipeBackAfterChange","onSwipeBackBeforeReset","onSwipeBackAfterReset","onTabShow","onTabHide","onViewInit"])},mounted:function(){var e=this,t=e.$refs.el;e.$f7ready((function(n){n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide),e.routerData={el:t,component:e,pages:e.state.pages,instance:null,setPages:function(t){e.setState({pages:t})}},vo.routers.views.push(e.routerData),e.props.init&&(e.routerData.instance=n.views.create(t,Object.assign({on:{init:e.onViewInit}},no.noUndefinedProps(e.$options.propsData||{}))),e.f7View=e.routerData.instance,e.f7View.on("resize",e.onResize),e.f7View.on("swipebackMove",e.onSwipeBackMove),e.f7View.on("swipebackBeforeChange",e.onSwipeBackBeforeChange),e.f7View.on("swipebackAfterChange",e.onSwipeBackAfterChange),e.f7View.on("swipebackBeforeReset",e.onSwipeBackBeforeReset),e.f7View.on("swipebackAfterReset",e.onSwipeBackAfterReset))}))},beforeDestroy:function(){vo.instance&&(vo.instance.off("tabShow",this.onTabShow),vo.instance.off("tabHide",this.onTabHide)),this.f7View&&(this.f7View.off("resize",this.onResize),this.f7View.off("swipebackMove",this.onSwipeBackMove),this.f7View.off("swipebackBeforeChange",this.onSwipeBackBeforeChange),this.f7View.off("swipebackAfterChange",this.onSwipeBackAfterChange),this.f7View.off("swipebackBeforeReset",this.onSwipeBackBeforeReset),this.f7View.off("swipebackAfterReset",this.onSwipeBackAfterReset),this.f7View.destroy&&this.f7View.destroy()),vo.routers.views.splice(vo.routers.views.indexOf(this.routerData),1),this.routerData=null,delete this.routerData},updated:function(){this.routerData&&vo.events.emit("viewRouterDidUpdate",this.routerData)},methods:{onViewInit:function(e){this.dispatchEvent("view:init viewInit",e),this.props.init||(this.routerData.instance=e,this.f7View=this.routerData.instance)},onResize:function(e,t){this.dispatchEvent("view:resize viewResize",t)},onSwipeBackMove:function(e){var t=e;this.dispatchEvent("swipeback:move swipeBackMove",t)},onSwipeBackBeforeChange:function(e){var t=e;this.dispatchEvent("swipeback:beforechange swipeBackBeforeChange",t)},onSwipeBackAfterChange:function(e){var t=e;this.dispatchEvent("swipeback:afterchange swipeBackAfterChange",t)},onSwipeBackBeforeReset:function(e){var t=e;this.dispatchEvent("swipeback:beforereset swipeBackBeforeReset",t)},onSwipeBackAfterReset:function(e){var t=e;this.dispatchEvent("swipeback:afterreset swipeBackAfterReset",t)},onTabShow:function(e){e===this.$refs.el&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){e===this.$refs.el&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oo.apply(void 0,[this,e].concat(n))},setState:function(e,t){go(this,e,t)}},computed:{props:function(){return io(this)}}},Gs={name:"f7-views",props:Object.assign({id:[String,Number],tabs:Boolean},ro.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.tabs;return e("div",{style:i,class:no.classNames(n,"views",{tabs:a},ro.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return io(this)}}},Ks=0,Js={proto:{pageComponentLoader:function(e,t,n,r,i,a){var o,s=e;if(vo.routers.views.forEach((function(t){t.el&&t.el===e&&(o=t)})),o){var l,c={component:t,id:"".concat(no.now(),"_").concat(Ks+=1),props:no.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};o.component&&(o.component.$f7router=this,o.component.$f7route=r.route),vo.events.on("viewRouterDidUpdate",(function e(t){if(t===o&&!l){vo.events.off("viewRouterDidUpdate",e);var n=s.children[s.children.length-1];c.el=n,i(n),l=!0}})),o.pages.push(c),o.setPages(o.pages)}else a()},removePage:function(e){if(e){var t,n=this;if((t="length"in e&&e[0]?e[0].f7Page:e.f7Page)&&t.route&&t.route.route&&t.route.route.keepAlive)n.app.$(e).remove();else{var r,i,a;if(vo.routers.views.forEach((function(e){e.el&&e.el===n.el&&(r=e)})),"length"in e){if(0===e.length)return;i=e[0]}else i=e;if(i)r.pages.forEach((function(e,t){e.el===i&&(a=!0,r.pages.splice(t,1),r.setPages(r.pages))})),a||i.parentNode.removeChild(i)}}},tabComponentLoader:function(e,t,n,r,i,a){var o;if(e||a(),vo.routers.tabs.forEach((function(t){t.el&&t.el===e&&(o=t)})),o){var s,l={id:"".concat(no.now(),"_").concat(Ks+=1),component:t,props:no.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};o.component&&(o.component.$f7router=this,o.component.$f7route=r.route),vo.events.on("tabRouterDidUpdate",(function t(n){if(n===o&&!s){vo.events.off("tabRouterDidUpdate",t);var r=e.children[0];i(r),s=!0}})),o.setTabContent(l)}else a()},removeTabContent:function(e){if(e){var t;vo.routers.tabs.forEach((function(n){n.el&&n.el===e&&(t=n)}));var n=t&&t.component;t&&n?t.setTabContent(null):e.innerHTML=""}},modalComponentLoader:function(e,t,n,r,i,a){var o=vo.routers.modals;if(o){var s,l={component:t,id:"".concat(no.now(),"_").concat(Ks+=1),props:no.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};o.component&&(o.component.$f7router=this,o.component.$f7route=r.route),vo.events.on("modalsRouterDidUpdate",(function e(){if(!s){vo.events.off("modalsRouterDidUpdate",e);var t=o.el.children[o.el.children.length-1];l.el=t,i(t),s=!0}})),o.modals.push(l),o.setModals(o.modals)}else a()},removeModal:function(e){var t,n=vo.routers.modals;n&&(n.modals.forEach((function(n){n.el===e&&(t=n)})),n.modals.splice(n.modals.indexOf(t),1),n.setModals(n.modals))}}};function Xs(e){vo.ready(e)}var Qs={},Zs={name:"phenomePlugin",installed:!1,install:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Zs.installed){Zs.installed=!0;var t=this;vo.Framework7=t,vo.events=new t.Events;var n=e.Vue||s.default;s.default.component("f7-accordion-content",ao),s.default.component("f7-accordion-item",so),s.default.component("f7-accordion-toggle",lo),s.default.component("f7-accordion",co),s.default.component("f7-actions-button",uo),s.default.component("f7-actions-group",ho),s.default.component("f7-actions-label",po),s.default.component("f7-actions",fo),s.default.component("f7-app",bo),s.default.component("f7-appbar",_o),s.default.component("f7-badge",wo),s.default.component("f7-block-footer",ko),s.default.component("f7-block-header",Eo),s.default.component("f7-block-title",To),s.default.component("f7-block",So),s.default.component("f7-button",Mo),s.default.component("f7-card-content",$o),s.default.component("f7-card-footer",Lo),s.default.component("f7-card-header",Po),s.default.component("f7-card",Oo),s.default.component("f7-checkbox",Do),s.default.component("f7-chip",Io),s.default.component("f7-col",Ao),s.default.component("f7-fab-backdrop",No),s.default.component("f7-fab-button",Ro),s.default.component("f7-fab-buttons",Yo),s.default.component("f7-fab",Bo),s.default.component("f7-gauge",jo),s.default.component("f7-icon",Co),s.default.component("f7-input",zo),s.default.component("f7-link",Vo),s.default.component("f7-list-button",qo),s.default.component("f7-list-group",Wo),s.default.component("f7-list-index",Go),s.default.component("f7-list-input",Ko),s.default.component("f7-list-item-cell",Jo),s.default.component("f7-list-item-content",Xo),s.default.component("f7-list-item-row",Qo),s.default.component("f7-list-item",Zo),s.default.component("f7-list",es),s.default.component("f7-login-screen-title",ts),s.default.component("f7-login-screen",ns),s.default.component("f7-menu-dropdown-item",rs),s.default.component("f7-menu-dropdown",is),s.default.component("f7-menu-item",as),s.default.component("f7-menu",os),s.default.component("f7-message",ss),s.default.component("f7-messagebar-attachment",ls),s.default.component("f7-messagebar-attachments",cs),s.default.component("f7-messagebar-sheet-image",us),s.default.component("f7-messagebar-sheet-item",ds),s.default.component("f7-messagebar-sheet",hs),s.default.component("f7-messagebar",ps),s.default.component("f7-messages-title",fs),s.default.component("f7-messages",ms),s.default.component("f7-nav-left",vs),s.default.component("f7-nav-right",gs),s.default.component("f7-nav-title-large",ys),s.default.component("f7-nav-title",bs),s.default.component("f7-navbar",_s),s.default.component("f7-page-content",ks),s.default.component("f7-page",Es),s.default.component("f7-panel",Ts),s.default.component("f7-photo-browser",Ss),s.default.component("f7-popover",Cs),s.default.component("f7-popup",xs),s.default.component("f7-preloader",ws),s.default.component("f7-progressbar",Ms),s.default.component("f7-radio",$s),s.default.component("f7-range",Ho),s.default.component("f7-routable-modals",yo),s.default.component("f7-row",Ls),s.default.component("f7-searchbar",Ps),s.default.component("f7-segmented",Os),s.default.component("f7-sheet",Ds),s.default.component("f7-skeleton-block",Is),s.default.component("f7-skeleton-text",As),s.default.component("f7-stepper",Ns),s.default.component("f7-subnavbar",Rs),s.default.component("f7-swipeout-actions",Ys),s.default.component("f7-swipeout-button",Bs),s.default.component("f7-swiper-slide",js),s.default.component("f7-swiper",Fs),s.default.component("f7-tab",Hs),s.default.component("f7-tabs",Us),s.default.component("f7-text-editor",Uo),s.default.component("f7-toggle",Fo),s.default.component("f7-toolbar",zs),s.default.component("f7-treeview-item",Vs),s.default.component("f7-treeview",qs),s.default.component("f7-view",Ws),s.default.component("f7-views",Gs),Object.defineProperty(n.prototype,"$f7",{get:function(){return vo.instance}});var r=e.theme;"md"===r&&(Qs.md=!0),"ios"===r&&(Qs.ios=!0),"aurora"===r&&(Qs.aurora=!0),r&&"auto"!==r||(Qs.ios=!!t.device.ios,Qs.aurora=t.device.desktop&&t.device.electron,Qs.md=!Qs.ios&&!Qs.aurora),vo.ready((function(){Qs.ios="ios"===vo.instance.theme,Qs.md="md"===vo.instance.theme,Qs.aurora="aurora"===vo.instance.theme})),Object.defineProperty(n.prototype,"$theme",{get:function(){return{ios:vo.instance?"ios"===vo.instance.theme:Qs.ios,md:vo.instance?"md"===vo.instance.theme:Qs.md,aurora:vo.instance?"aurora"===vo.instance.theme:Qs.aurora}}}),n.prototype.Dom7=t.$,n.prototype.$$=t.$,n.prototype.$device=t.device,n.prototype.$request=t.request,n.prototype.$utils=t.utils,n.prototype.$f7ready=Xs,Object.defineProperty(n.prototype,"$f7route",{get:function(){var e;if(this.props&&this.props.f7route)return this.props.f7route;if(this.f7route)return this.f7route;if(this._f7route)return this._f7route;this.$vnode&&this.$vnode.data&&this.$vnode.data.props&&this.$vnode.data.props.f7route&&(e=this.$vnode.data.props.f7route);for(var t=this;t&&!e;)t._f7route&&(e=t._f7route),t=t.$parent;return e},set:function(e){this._f7route=e}}),Object.defineProperty(n.prototype,"$f7router",{get:function(){var e;if(this.props&&this.props.f7router)return this.props.f7router;if(this.f7router)return this.f7router;if(this._f7router)return this._f7router;this.$vnode&&this.$vnode.data&&this.$vnode.data.props&&this.$vnode.data.props.f7route&&(e=this.$vnode.data.props.f7router);for(var t=this;t&&!e;)t._f7router?e=t._f7router:t.f7View?e=t.f7View.router:t.$refs&&t.$refs.el&&t.$refs.el.f7View&&(e=t.$refs.el.f7View.router),t=t.$parent;return e},set:function(e){this._f7router=e}}),t.Router.use(Js)}}},el=Zs,tl=(n(222),n(223),n(224),n(1)),nl=n.n(tl),rl={f7:null,handleSplashscreen:function(){var e=rl.f7;window.navigator.splashscreen&&!e.device.electron&&setTimeout((function(){window.navigator.splashscreen.hide()}),2e3)},handleAndroidBackButton:function(){rl.f7.device.electron||(rl.backButtonTimestamp=(new Date).getTime(),document.addEventListener("backbutton",(function(e){return(new Date).getTime()-rl.backButtonTimestamp<250?(rl.backButtonTimestamp=(new Date).getTime(),window.navigator.app&&window.navigator.app.exitApp&&window.navigator.app.exitApp(),!0):(rl.backButtonTimestamp=(new Date).getTime(),e.preventDefault(),!1)}),!1))},handleKeyboard:function(){var e=rl.f7;if(window.Keyboard&&window.Keyboard.shrinkView&&!e.device.electron){var t=e.$;window.Keyboard.shrinkView(!1),window.Keyboard.disableScrollingInShrinkView(!0),window.Keyboard.hideFormAccessoryBar(!0),window.addEventListener("keyboardWillShow",(function(){e.input.scrollIntoView(document.activeElement,0,!0,!0)})),window.addEventListener("keyboardDidShow",(function(){e.input.scrollIntoView(document.activeElement,0,!0,!0)})),window.addEventListener("keyboardDidHide",(function(){document.activeElement&&t(document.activeElement).parents(".messagebar").length||window.Keyboard.hideFormAccessoryBar(!1)})),window.addEventListener("keyboardHeightWillChange",(function(e){var n=e.keyboardHeight;n>0?(document.body.style.height="calc(100% - ".concat(n,"px)"),t("html").addClass("device-with-keyboard")):(document.body.style.height="",t("html").removeClass("device-with-keyboard"))})),t(document).on("touchstart","input, textarea, select",(function(e){var t=e.target.nodeName.toLowerCase(),n=e.target.type;"select"===t||["datetime-local","time","date","datetime"].indexOf(n)>=0?window.Keyboard.hideFormAccessoryBar(!1):window.Keyboard.hideFormAccessoryBar(!0)}),!0)}},init:function(e){rl.f7=e,rl.handleAndroidBackButton(),rl.handleSplashscreen(),rl.handleKeyboard()}},il=rl,al=n(235),ol={data:function(){return{myAppVersion:2}},methods:{sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var a={};a.title=r,a.message_details=i,e.$store.dispatch("pushNotifications",a);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection2");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return al(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){this.$store.dispatch("getMyFriendsAI");var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){this.$store.commit("setShowTabs",!0)}},computed:{app_version:function(){return this.$store.getters.app_version},app_db_version:function(){return this.$store.getters.app_db_version},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message}},mounted:function(){this.$store.dispatch("getTotalMessage")},watch:{app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},created:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPhotoStatus");case 2:if(t.sent){t.next=7;break}return e.$f7router.navigate("/editprofilepicture/",{}),e.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others"),t.abrupt("return");case 7:if(e.$store.dispatch("getMyFriendsAI"),e.$store.dispatch("getTotalMessage"),e.$store.dispatch("getUserDetails"),e.$store.dispatch("getAppDbVersion"),e.$store.dispatch("getAppVersion"),console.log("dbversion",e.app_db_version),!(e.myAppVersion<e.app_db_version)){t.next=17;break}return e.$store.commit("setAppUpdate",!0),e.$f7router.navigate("/newversion/"),t.abrupt("return");case 17:case"end":return t.stop()}}),t)})))()}};n(236);function sl(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var ll=sl(ol,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[e.total_message>0?n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))]):e._e()],1),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.friends,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.latest_message},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{link:"#","popup-open":".demo-popup-user","popover-close":"",title:"Profile"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/editprofile/","popover-close":"",title:"Settings"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/postfriends/","popover-close":"",title:"Post Messages"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/usernotifications/","popover-close":"",title:"Notifications"}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}})],1)],1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:this.user_details.name,subtitle:this.user_details.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.user_details.birthDate}},[e._v(e._s(e.moment(this.user_details.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details.photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.profileMessage)+"\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.email)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,null,null).exports,cl=sl({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"About","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("About My App")]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("p",[e._v("Fugiat perspiciatis excepturi, soluta quod non ullam deleniti. Nobis sint nemo consequuntur, fugiat. Eius perferendis animi autem incidunt vel quod tenetur nostrum, voluptate omnis quasi quidem illum consequuntur, a, quisquam.")]),e._v(" "),n("p",[e._v("Laudantium neque magnam vitae nemo quam commodi, in cum dolore obcaecati laborum, excepturi harum, optio qui, consequuntur? Obcaecati dolor sequi nesciunt culpa quia perspiciatis, reiciendis ex debitis, ut tenetur alias.")])]),e._v(" "),n("f7-block",[n("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni molestiae laudantium dignissimos est nobis delectus nemo ea alias voluptatum architecto, amet similique, saepe iste consectetur in repellat ut minus quibusdam!")]),e._v(" "),n("p",[e._v("Molestias et distinctio porro nesciunt ratione similique, magni doloribus, rerum nobis, aliquam quae reiciendis quasi modi. Nam a recusandae, fugiat in ea voluptates fuga eius, velit corrupti reprehenderit dignissimos consequatur!")]),e._v(" "),n("p",[e._v("Blanditiis, cumque quo adipisci. Molestiae, dolores dolorum quos doloremque ipsa ullam eligendi commodi deserunt doloribus inventore magni? Ea mollitia veniam nostrum nihil, iusto doloribus a at! Ea molestiae ullam delectus!")])])],1)}),[],!1,null,null,null).exports,ul=sl({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"form"}},[n("f7-navbar",{attrs:{title:"Form","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Form Example")]),e._v(" "),n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{label:"Name",type:"text",placeholder:"Your name"}}),e._v(" "),n("f7-list-input",{attrs:{label:"E-mail",type:"email",placeholder:"E-mail"}}),e._v(" "),n("f7-list-input",{attrs:{label:"URL",type:"url",placeholder:"URL"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Password",type:"password",placeholder:"Password"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Phone",type:"tel",placeholder:"Phone"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Gender",type:"select"}},[n("option",[e._v("Male")]),e._v(" "),n("option",[e._v("Female")])]),e._v(" "),n("f7-list-input",{attrs:{label:"Birth date",type:"date",placeholder:"Birth day",defaultValue:"2014-04-30"}}),e._v(" "),n("f7-list-item",{attrs:{title:"Toggle"}},[n("f7-toggle",{attrs:{slot:"after"},slot:"after"})],1),e._v(" "),n("f7-list-input",{attrs:{label:"Range",input:!1}},[n("f7-range",{attrs:{slot:"input",value:50,min:0,max:100,step:1},slot:"input"})],1),e._v(" "),n("f7-list-input",{attrs:{type:"textarea",label:"Textarea",placeholder:"Bio"}}),e._v(" "),n("f7-list-input",{attrs:{type:"textarea",label:"Resizable",placeholder:"Bio",resizable:""}})],1),e._v(" "),n("f7-block-title",[e._v("Buttons")]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col"},[e._v("Button")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{fill:""}},[e._v("Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{raised:""}},[e._v("Raised")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{raised:"",fill:""}},[e._v("Raised Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{round:""}},[e._v("Round")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{round:"",fill:""}},[e._v("Round Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{outline:""}},[e._v("Outline")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{round:"",outline:""}},[e._v("Outline Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{small:"",outline:""}},[e._v("Small")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{small:"",round:"",outline:""}},[e._v("Small Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{small:"",fill:""}},[e._v("Small")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{small:"",round:"",fill:""}},[e._v("Small Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{large:"",raised:""}},[e._v("Large")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:""}},[e._v("Large Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:"",color:"red"}},[e._v("Large Red")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:"",color:"green"}},[e._v("Large Green")])],1)],1),e._v(" "),n("f7-block-title",[e._v("Checkbox group")]),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Books",title:"Books"}}),e._v(" "),n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Movies",title:"Movies"}}),e._v(" "),n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Food",title:"Food"}})],1),e._v(" "),n("f7-block-title",[e._v("Radio buttons group")]),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Books",title:"Books"}}),e._v(" "),n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Movies",title:"Movies"}}),e._v(" "),n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Food",title:"Food"}})],1)],1)}),[],!1,null,null,null).exports,dl=sl({data:function(){return{products:this.$f7.data.products}}},(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",{attrs:{name:"catalog"}},[t("f7-navbar",{attrs:{title:"Catalog"}}),this._v(" "),t("f7-list",this._l(this.products,(function(e){return t("f7-list-item",{key:e.id,attrs:{title:e.title,link:"/product/"+e.id+"/"}})})),1)],1)}),[],!1,null,null,null).exports,hl=sl({},void 0,void 0,!1,null,null,null).exports,pl=sl({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Dynamic Route","back-link":"Back"}}),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("ul",[n("li",[n("b",[e._v("Url:")]),e._v(" "+e._s(e.$f7route.url))]),e._v(" "),n("li",[n("b",[e._v("Path:")]),e._v(" "+e._s(e.$f7route.path))]),e._v(" "),n("li",[n("b",[e._v("Hash:")]),e._v(" "+e._s(e.$f7route.hash))]),e._v(" "),n("li",[n("b",[e._v("Params:")]),e._v(" "),n("ul",e._l(e.$f7route.params,(function(t,r){return n("li",{key:r},[n("b",[e._v(e._s(r)+":")]),e._v(" "+e._s(t))])})),0)]),e._v(" "),n("li",[n("b",[e._v("Query:")]),e._v(" "),n("ul",e._l(e.$f7route.query,(function(t,r){return n("li",{key:r},[n("b",[e._v(e._s(r)+":")]),e._v(" "+e._s(t))])})),0)]),e._v(" "),n("li",[n("b",[e._v("Route:")]),e._v(" "+e._s(e.$f7route.route.path))])])]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("f7-link",{on:{click:function(t){return e.$f7router.back()}}},[e._v("Go back via Router API")])],1)],1)}),[],!1,null,null,null).exports,fl=sl({data:function(){return{user:this.$f7route.context.user}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:e.user.firstName+" "+e.user.lastName,"back-link":"Back"}}),e._v(" "),n("f7-block",{attrs:{strong:""}},[e._v("\n    "+e._s(e.user.about)+"\n  ")]),e._v(" "),n("f7-list",e._l(e.user.links,(function(e,t){return n("f7-list-item",{key:t,attrs:{link:e.url,title:e.title,external:"",target:"_blank"}})})),1)],1)}),[],!1,null,null,null).exports,ml=sl({},(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",[t("f7-navbar",{attrs:{title:"Not found","back-link":"Back"}}),this._v(" "),t("f7-block",{attrs:{strong:""}},[t("p",[this._v("Sorry")]),this._v(" "),t("p",[this._v("Requested content not found.")])])],1)}),[],!1,null,null,null).exports;var vl=n(29),gl={computed:{alert_message:function(){return this.$store.getters.alert_message},quit_application:function(){return this.$store.getters.quit_application}},watch:{alert_message:function(e){var t=this;null!=e&&(this.showToastBottom(e),setTimeout((function(){t.$store.commit("setAlertMessage",null)}),200))},quit_application:function(e){null!=e&&(this.quitAppDialogue(e),this.$store.commit("setQuitApplication",null))}},methods:{showToastBottom:function(e){this.toastBottom&&!this.toastBottom.destroyed||(this.toastBottom=this.$f7.toast.create({text:e,closeTimeout:4e3,position:"center",destroyOnClose:!0})),this.toastBottom.open()},quitAppDialogue:function(e){var t=this;this.$f7.dialog.create({title:"Quit",text:"Are you sure you want to quit Application?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(e,n){var r=t.$f7;1==n?(t.$store.commit("setQuitApplication",null),t.$f7.dialog.close(),r.panel.close(),window.hasOwnProperty("cordova")&&window.navigator.app.exitApp()):(t.$store.commit("setQuitApplication",null),t.$f7.dialog.close(),r.panel.close())},on:{open:function(){}}}).open()}}},yl=(n(25),{data:function(){return{email:null,password:null,time_left:-1,app_agree:!1,myAppVersion:2}},mixins:[gl],computed:{show_resend_email:function(){return this.$store.getters.show_resend_email},app_db_version:function(){return this.$store.getters.app_db_version}},methods:{myFunction:function(){},userConsent:function(){var e=this,t=!1;this.$f7.dialog.create({title:"App User's Consent Required",text:"",content:"<div class='page' data-page='home' style='height: 300px; position:relative'><div class='page-content infinite-scroll-content' style='overflow: auto'><div class='list simple-list'><h2>Privacy Policy</h2><p>Swift Alliance builds the Penpal America App as a social network app. This SERVICE is provided by Swift Alliance at no cost and is intended for use as is.</p><p> This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.   </p> <p> If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. we will not use or share your information with anyone except as described in this Privacy Policy.   </p> <p> The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Penpal America unless otherwise defined in this Privacy Policy.   </p> <p><strong>Information Collection and Use</strong></p> <p> For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to Contacts in your Phonebook,Your Phone Number,Your Profile Picture. The information that we request will be securely saved on our secure Servers, we will never share these information without your permission. <br>  your name, number, and your profile Picture will be available publicly to other users.   </p> <p> The app does use third party services that may collect information used to identify you. </p><div><p> we want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.   </p>    <p><strong>Permissions we request</strong></p> <p> <ul>   <li>Contacts: to be able to communicate with your Friends that are in your Contacts</li>   <li>Camera: to be able to Take Pictures/Videos and to be able to make Video Calls.</li>   <li>Microphpone: to be able to send Voice Messages and also to be able to make Voice/Video Calls.</li>   <li>Storage: to save the Sent/Received Files in your Device</li> </ul>   </p>    <p><strong>Cookies</strong></p> <p> Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.   </p> <p> This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.   </p> <p><strong>Service Providers</strong></p> <p> we may employ third-party companies and individuals due to the following reasons:   </p> <ul><li>To facilitate our Service;</li> <li>To provide the Service on our behalf;</li> <li>To perform Service-related services; or</li> <li>To assist us in analyzing how our Service is used.</li></ul> <p> we want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.   </p> <p><strong>Security</strong></p> <p> we value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.   </p> <p><strong>Links to Other Sites</strong></p> <p> This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. we have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.   </p> <p><strong>Children’s Privacy</strong></p> <p> These Services do not address anyone under the age of 13. we do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.   </p> <p><strong>Changes to This Privacy Policy</strong></p> <p> we may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. we will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.   </p> <p><strong>Contact Us</strong></p> <p> If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us at support@penpalamerica.com   </p>  <div class='list media-list'><label class='item-checkbox item-content'><input type='checkbox' name='demo-media-checkbox' value ='1' /><i class='icon icon-checkbox'></i><p>I agree with the above conditions.</p></label></div></div><div class='preloader infinite-scroll-preloader'></div></div></div>",buttons:[{text:"Decline",close:!0},{text:"I Agree"}],onClick:function(n,r){if(1==r)if(t){var i=e.$f7;e.$f7router.navigate("/phoneverify/"),e.$f7.dialog.close(),i.panel.close()}else e.$store.commit("setAlertMessage","Scroll to bottom page to accept Terms & Conditions before continuing. ")},on:{open:function(){}}}).open();(0,this.Dom7)('[name="demo-media-checkbox"]').on("change",(function(e){t=!!e.target.checked}))},onCheckBoxChange:function(){},getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},forgetPassword:function(){var e=this,t=nl.a.auth();null!=this.email?t.sendPasswordResetEmail(this.email).then((function(){e.$store.commit("setAlertMessage","A reset email has been sent to your inbox")})).catch((function(t){e.$store.commit("setAlertMessage",t)})):e.$store.commit("setAlertMessage","Please enter your email")},color:function(e){return e<=0?"#007aff":"gray"},resendEmail:function(){this.time_left<=0&&(this.$store.dispatch("sendVerification"),this.countDown())},countDown:function(){var e=this;e.time_left=20;var t=Object(vl.setInterval)((function(){e.time_left-=1,e.time_left<=0&&Object(vl.clearInterval)(t)}),1e3)},signIn:function(){var e=this;return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getAllUsersMigration");case 2:return n=t.sent,console.log("total",n),t.abrupt("return");case 8:if("offline"!=t.sent){t.next=12;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 12:if(e.$store.dispatch("getAppDbVersion"),!(e.myAppVersion<e.app_db_version)){t.next=16;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 16:if(null==e.email||null==e.password){t.next=28;break}return(r={}).email=e.email,r.password=e.password,Za.dialog.preloader("Logging you to the App.<br>First time might take long.<br>Please wait..."),t.next=23,e.$store.dispatch("signIn",r);case 23:a=t.sent,Za.dialog.close(),"1"==a&&e.$store.commit("setAlertMessage","Please Verify Your Email..."),t.next=29;break;case 28:e.$store.commit("setAlertMessage","Provide valid email and password to continue... ");case 29:case"end":return t.stop()}}),t)})))()}},created:function(){this.$store.dispatch("getAppDbVersion")}}),bl=(n(237),sl(yl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{staticClass:"page-one",attrs:{name:"signin","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Penpal America")]),e._v(" "),n("div",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.email,label:"E-mail",type:"email",placeholder:"Your e-mail","clear-button":"",validate:""},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.password,label:"Password",type:"password",placeholder:"Your password","clear-button":""},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.signIn}},[e._v("Sign in")]),e._v(" "),n("br"),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[e.show_resend_email?n("f7-link",{attrs:{color:e.color(e.time_left)},on:{click:e.resendEmail}},[e._v("\n          Resend Confirmation Email\n          "),e.time_left>0?n("span",[e._v("  "+e._s(e.time_left))]):e._e()]):e._e(),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.userConsent}},[e._v("Don't have an account? Sign up")]),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.forgetPassword}},[e._v("Forget Password")])],1)],1)],1)],1)}),[],!1,null,"4582ce21",null).exports),_l={data:function(){return{email:null,password:null,time_left:-1,app_agree:!1,myAppVersion:2}},methods:{gotoSignIn:function(){this.$f7router.navigate("/signin/")}},created:function(){this.$store.dispatch("getAppDbVersion")}},wl=(n(238),sl(_l,(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",{attrs:{name:"firstpage","no-swipeback":""}},[t("div",{staticClass:"page-one",attrs:{align:"center"}},[t("f7-block",[t("h1",[t("font",{attrs:{color:"white"}},[this._v("Welcome to Penpal America")])],1),this._v(" "),t("h3",[t("font",{attrs:{color:"white"}},[this._v("Register today to chat with Americans")])],1),this._v(" "),t("div",{staticClass:"halfcol"},[t("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:this.gotoSignIn}},[this._v("Get Started")]),this._v(" "),t("br")],1)])],1)])}),[],!1,null,"06e930f5",null).exports),kl={mixins:[gl],f7Page:Es,f7LoginScreenTitle:ts,f7List:es,f7ListItem:Zo,f7ListButton:qo,f7BlockFooter:ko,f7ListInput:Ko,data:function(){return{name:null,email:null,password:null,phonenumber:null,country:null,gender:null,lastseen:null,location:null,profileMessage:null,dateofbirth:null,tempPayload:null}},computed:{image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},signed_up:function(){return this.$store.getters.signed_up},valid_inputs:function(){return this.$store.getters.valid_inputs}},watch:{signed_up:function(e){1==e&&this.$f7router.navigate("/signin/")},valid_inputs:function(e){}},methods:{getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},signUp:function(){var e="web";window.hasOwnProperty("cordova")&&(cordova.plugins.firebase.messaging.getInstanceId().then((function(t){cordova.plugins.firebase.messaging.getToken().then((function(t){e=t}))})),cordova.plugins.firebase.messaging.subscribe("everyone"),cordova.plugins.firebase.messaging.subscribe(this.country));var t=this,n={};if(n.phonenumber=this.phonenumber,n.country=this.country,n.userToken=e,!this.name)return t.$store.dispatch("verifyInputs","Enter Your Name ( 3 characters long minimum)"),void t.$store.dispatch("resetVerifyInputs");if(this.name.length<3)return t.$store.dispatch("verifyInputs","Name must be 3 characters long minimum)"),void t.$store.dispatch("resetVerifyInputs");if(n.name=this.name,!this.email)return t.$store.dispatch("verifyInputs","Enter Valid Email Address"),void t.$store.dispatch("resetVerifyInputs");if(n.email=this.email,!this.password)return t.$store.dispatch("verifyInputs","Enter Your Password ( 6 characters long minimum )"),void t.$store.dispatch("resetVerifyInputs");if(this.password.length<6)return t.$store.dispatch("verifyInputs","Password must be 6 characters long minimum)"),void t.$store.dispatch("resetVerifyInputs");if(n.password=this.password,!this.dateofbirth)return t.$store.dispatch("verifyInputs","Please Enter your age"),void t.$store.dispatch("resetVerifyInputs");var r=new Date(this.dateofbirth),i=new Date-r,a=Math.floor(i/315576e5);if(a<18)return t.$store.dispatch("verifyInputs","Service is for Persons 18+"),void t.$store.dispatch("resetVerifyInputs");if(n.dateofbirth=this.dateofbirth,!this.location)return t.$store.dispatch("verifyInputs","Enter Your location ( 2 characters long minimum )"),void t.$store.dispatch("resetVerifyInputs");if(this.location.length<2)return t.$store.dispatch("verifyInputs","location must be 2 characters long minimum)"),void t.$store.dispatch("resetVerifyInputs");if(n.location=this.location,!this.gender)return t.$store.dispatch("verifyInputs","Select Gender from the list"),void t.$store.dispatch("resetVerifyInputs");if(n.gender=this.gender,!this.profileMessage)return t.$store.dispatch("verifyInputs","Enter Profile Message ( 10 characters long minimum)"),void t.$store.dispatch("resetVerifyInputs");if(this.profileMessage.length<10)return t.$store.dispatch("verifyInputs","Profile Message must be 10 characters long minimum)"),void t.$store.dispatch("resetVerifyInputs");if(n.profileMessage=this.profileMessage,n.photoURL=this.image_url,n.userType="1",n.userStatus="offline",n.lastSeen=nl.a.database.ServerValue.TIMESTAMP,this.valid_inputs)if(t.files){t.$store.dispatch("uploadFile","profile/").then((function(e){n.photoUpload=!0,n.photoURL=e,t.$store.dispatch("signUp",n)})),s=(s=(s=(s=(s=(s=this.country).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]","");var o={name:n.name,email:n.email,msisdn:this.phonenumber,location:n.location,profile:n.profileMessage,country:s,sex:n.gender,age:a};this.$f7.request.post("https://chatme24.com/register/regsubpenpalamerica.php",o,(function(e){console.log("Load was performed",e)})),console.log("Postdata",o)}else{var s;n.photoUpload=!1,this.$store.dispatch("signUp",n),s=(s=(s=(s=(s=(s=this.country).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]","");o={name:n.name,email:n.email,msisdn:this.phonenumber,location:n.location,profile:n.profileMessage,country:s,sex:n.gender,age:a};this.$f7.request.post("https://chatme24.com/register/regsubpenpalamerica.php",o,(function(e){console.log("Load was performed",e)})),console.log("Postdata",o)}else t.$store.dispatch("resetVerifyInputs")}},created:function(){this.$store.commit("setSignedUp",!1);var e=this.$f7route.params.phone,t=JSON.parse(e);this.phonenumber=t.phonenumber,this.country=t.country}},El=(n(239),sl(kl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"signup","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Sign Up")]),e._v(" "),n("f7-navbar",{attrs:{title:"Sign up","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Display name",required:"",validate:""},domProps:{value:e.name},on:{input:function(t){e.name=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("E-mail")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"email",placeholder:"Your e-mail",required:"",validate:""},domProps:{value:e.email},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Gender")]),e._v(" "),n("div",{staticClass:"item-input-wrap input-dropdown-wrap"},[n("select",{attrs:{placeholder:"Please choose..."},domProps:{value:e.gender},on:{input:function(t){e.gender=t.target.value}}},[n("option",{attrs:{value:"M"}},[e._v("Male")]),e._v(" "),n("option",{attrs:{value:"F"}},[e._v("Female")])])])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Password")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"password",placeholder:"Your password"},domProps:{value:e.password},on:{input:function(t){e.password=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Birthday")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"date",placeholder:"Please choose..."},domProps:{value:e.dateofbirth},on:{input:function(t){e.dateofbirth=t.target.value}}})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Location")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Your Present location"},domProps:{value:e.location},on:{input:function(t){e.location=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("span",{attrs:{"v-if":e.valid_inputs}}),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Message")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("textarea",{staticClass:"resizable",attrs:{placeholder:"Your Profile Message",maxlength:"200"},domProps:{value:e.profileMessage},on:{input:function(t){e.profileMessage=t.target.value}}})])])])])]),e._v(" "),n("div",[n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.signUp}},[e._v("Sign up")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}}),e._v(" "),n("br"),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/terms.html",external:""}},[e._v("Terms and Conditions |\n      ")]),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/privacy.html",external:""}},[e._v("Privacy")])],1)],1)],1)}),[],!1,null,"f9e59cb6",null).exports),Tl={mixins:[gl],data:function(){return{name:null,email:null,password:null}},computed:{group_image_url:function(){return this.$store.getters.group_image_url},display_name:{get:function(){return this.$store.getters.display_name},set:function(e){this.$store.commit("setDisplayName",e)}},user_location:{get:function(){return this.$store.getters.user_location},set:function(e){this.$store.commit("setUserLocation",e)}},profile_message:{get:function(){return this.$store.getters.profile_message},set:function(e){this.$store.commit("setProfileMessage",e)}},uploadFile:{get:function(){return this.$store.getters.uploadFile},set:function(e){this.$store.commit("setUploadFile",e)}},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{uploadFile:function(e){if(e>0){this.$f7.progressbar.set("#demo-inline-progressbar",e)}e>99&&this.$store.commit("setUploadFile",0)}},methods:{launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},updateProfile:function(e){var t=this;if(console.log("edit profile"),t.display_name.length<2)t.$store.commit("setAlertMessage","Display name is too short");else if(t.user_location.length<2)t.$store.commit("setAlertMessage","Your location is too short");else if(t.profile_message.length<10)t.$store.commit("setAlertMessage","profile message is too short");else if(t.files){var n=nl.a.auth().currentUser;if(null!=this.photo_url){var r=this.$f7;if(this.determinateLoading)return;if(this.determinateLoading=!0,e?r.progressbar.show("#demo-determinate-container",0):r.progressbar.show(0,"md"===r.theme?"yellow":"blue"),this.photo_url!=this.group_image_url)nl.a.storage().refFromURL(this.photo_url).delete().then((function(){})).catch((function(e){}))}t.$store.dispatch("uploadFile","profile/").then((function(e){n.updateProfile({displayName:t.display_name,photoURL:e}).then((function(){t.$store.commit("setPhotoURL",n.photoURL),t.$store.commit("setDisplayName",n.displayName),nl.a.database().ref("users/"+n.uid).update({photo_url:n.photoURL,name:n.displayName,location:t.user_location,photoUpload:!0,profileMessage:t.profile_message}),t.$store.commit("setAlertMessage","Your profile has been updated")})).catch((function(e){console.log(e)}))}))}else{(n=nl.a.auth().currentUser).updateProfile({displayName:t.display_name}).then((function(){t.$store.commit("setDisplayName",n.displayName),nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).update({name:t.display_name,location:t.user_location,profileMessage:t.profile_message}),t.$store.commit("setAlertMessage","Your profile has been updated")}))}}},created:function(){this.$store.commit("setGroupImageURL","https://penpalamerica.com/images/profilepicture.png"),null!=this.photo_url&&this.$store.commit("setImageURL",this.photo_url)}},Sl=(n(240),sl(Tl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"editprofile"}},[n("f7-navbar",{attrs:{title:"Edit Profile","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("div",{staticClass:"align-center"},[n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Display Name")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Display name",required:"",validate:""},domProps:{value:e.display_name},on:{input:function(t){e.display_name=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Your Location")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Enter Your Location",required:"",validate:""},domProps:{value:e.user_location},on:{input:function(t){e.user_location=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Profile Message")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("textarea",{staticClass:"resizable",attrs:{placeholder:"Enter Your Profile Message",maxlength:"200"},domProps:{value:e.profile_message},on:{input:function(t){e.profile_message=t.target.value}}})])])])])]),e._v(" "),n("f7-block",[e.uploadFile>0?n("div",[n("p",[n("f7-progressbar",{attrs:{progress:0,id:"demo-inline-progressbar"}})],1)]):e._e(),e._v(" "),n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.updateProfile(!0)}}},[e._v("Update Profile")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})],1)],1)],1)}),[],!1,null,"fbed3cf8",null).exports),Cl={mixins:[gl],props:{f7router:{}},data:function(){return{name:null,email:null,password:null}},computed:{upload_button:function(){return this.$store.getters.upload_button},group_image_url:function(){return this.$store.getters.group_image_url},uploadFile:{get:function(){return this.$store.getters.uploadFile},set:function(e){this.$store.commit("setUploadFile",e)}},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{uploadFile:function(e){if(e>0){this.$f7.progressbar.set("#demo-inline-progressbar",e)}e>99&&this.$store.commit("setUploadFile",0)}},methods:{launchFilePicker:function(){this.$refs.file.click()},signOut:function(){this.$store.dispatch("signOut")},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},updateProfile:function(e){var t=this;if(t.files){var n=nl.a.auth().currentUser;if(null!=this.photo_url){var r=this.$f7;if(this.determinateLoading)return;if(this.determinateLoading=!0,e?r.progressbar.show("#demo-determinate-container",0):r.progressbar.show(0,"md"===r.theme?"yellow":"blue"),this.photo_url!=this.group_image_url)nl.a.storage().refFromURL(this.photo_url).delete().then((function(){})).catch((function(e){}))}t.$store.dispatch("uploadFile","profile").then((function(e){n.updateProfile({photoURL:e}).then((function(){t.$store.commit("setPhotoURL",n.photoURL),nl.a.database().ref("users/"+n.uid).update({photo_url:n.photoURL,photoUpload:!0}),t.$store.commit("setAlertMessage","Your profile has been updated. Please sign in again to continue..."),t.$store.commit("setSignedIn",!1)})).catch((function(e){console.log(e)}))}))}else t.$store.commit("setAlertMessage","Please upload your picture to continue")}},created:function(){this.$store.commit("setGroupImageURL","https://firebasestorage.googleapis.com/v0/b/citygists-8f05f.appspot.com/o/defaultprofile%2Fprofilepicture.png?alt=media&token=7f5eac33-624c-4c67-b586-e4e48a312d3e"),null!=this.photo_url&&this.$store.commit("setImageURL",this.photo_url)}},xl=(n(241),sl(Cl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"editprofile"}},[e.upload_button?n("div",[n("f7-navbar",{attrs:{title:"Upload Your Picture","back-link":"Back"}})],1):n("div",[n("f7-navbar",{attrs:{title:"Upload Your Picture"}})],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}}),e._v(" "),e.upload_button?n("p",{staticStyle:{color:"blue"}},[e._v("\n      Click the back button to continue\n    ")]):n("p",{staticStyle:{color:"red"}},[e._v("\n      Update Your Profile before chatting with Pals...\n    ")])]),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[e.uploadFile>0?n("div",[n("p",[n("f7-progressbar",{attrs:{progress:0,id:"demo-inline-progressbar"}})],1)]):e._e(),e._v(" "),e.upload_button?n("div",[n("p",[e._v("Update Profile")])]):n("div",[n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.updateProfile(!0)}}},[e._v("Update Profile")])],1),e._v(" "),n("div",[n("br"),n("br"),e._v(" "),n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.signOut(!0)}}},[e._v("Sign Out")])],1),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})])],1)])}),[],!1,null,"33f83056",null).exports),Ml=n(210),$l=n.n(Ml),Ll=(n(242),{components:{VuePhoneNumberInput:$l.a,f7Page:Es,f7LoginScreenTitle:ts,f7List:es,f7ListItem:Zo,f7ListButton:qo,f7BlockFooter:ko,f7ListInput:Ko},data:function(){return{confirmationResult:null,phonenumber:null,phoneNumber2:null,phoneNumber3:"0665656565",defaultCountry:"",countriesList:[],countriesIgnored:[],translations:{countrySelectorLabel:"Code pays",countrySelectorError:"Choisir un pays",phoneNumberLabel:"Numéro de téléphone"},results:{},results2:{},results3:{},dark:!1,disabled:!1,hasLoaderActive:!1,hasErrorActive:!1,status:!1,phNo:"",appVerifier:"",otp:""}},methods:{getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},getCountryName:function(e){var t="";switch(e){case"AF":t="Afghanistan";break;case"AL":t="Albania";break;case"DZ":t="Algeria";break;case"AS":t="American Samoa";break;case"AD":t="Andorra";break;case"AO":t="Angola";break;case"AI":t="Anguilla";break;case"AQ":t="Antarctica";break;case"AG":t="Antigua and Barbuda";break;case"AR":t="Argentina";break;case"AM":t="Armenia";break;case"AW":t="Aruba";break;case"AU":t="Australia";break;case"AT":t="Austria";break;case"AZ":t="Azerbaijan";break;case"BS":t="Bahamas";break;case"BH":t="Bahrain";break;case"BD":t="Bangladesh";break;case"BB":t="Barbados";break;case"BY":t="Belarus";break;case"BE":t="Belgium";break;case"BZ":t="Belize";break;case"BJ":t="Benin";break;case"BM":t="Bermuda";break;case"BT":t="Bhutan";break;case"BO":t="Bolivia";break;case"BQ":t="Bonaire";break;case"BA":t="Bosnia Herzegovina";break;case"BW":t="Botswana";break;case"IO":t="Br. Indian Ocean Terr.";break;case"VG":t="Br. Virgin Isds";break;case"BR":t="Brazil";break;case"BN":t="Brunei Darussalam";break;case"BG":t="Bulgaria";break;case"BF":t="Burkina Faso";break;case"BI":t="Burundi";break;case"CV":t="Cabo Verde";break;case"KH":t="Cambodia";break;case"CM":t="Cameroon";break;case"CA":t="Canada";break;case"KY":t="Cayman Isds";break;case"CF":t="Central African Rep.";break;case"TD":t="Chad";break;case"CL":t="Chile";break;case"CN":t="China";break;case"HK":t="China, Hong Kong SAR";break;case"MO":t="China, Macao SAR";break;case"CX":t="Christmas Isds";break;case"CC":t="Cocos Isds";break;case"CO":t="Colombia";break;case"KM":t="Comoros";break;case"CG":t="Congo";break;case"CK":t="Cook Isds";break;case"CR":t="Costa Rica";break;case"CI":t="Côte d'Ivoire";break;case"HR":t="Croatia";break;case"CU":t="Cuba";break;case"CW":t="Curaçao";break;case"CY":t="Cyprus";break;case"CZ":t="Czechia";break;case"CS":t="Czechoslovakia";break;case"KP":t="Dem. People's Rep. of Korea";break;case"CD":t="Dem. Rep. of the Congo";break;case"DK":t="Denmark";break;case"DJ":t="Djibouti";break;case"DM":t="Dominica";break;case"DO":t="Dominican Rep.";break;case"PK":t="East and West Pakistan";break;case"EC":t="Ecuador";break;case"EG":t="Egypt";break;case"SV":t="El Salvador";break;case"GQ":t="Equatorial Guinea";break;case"ER":t="Eritrea";break;case"EE":t="Estonia";break;case"ET":t="Ethiopia";break;case"EU":t="EU-28";break;case"FO":t="Faeroe Isds";break;case"FK":t="Falkland Isds (Malvinas)";break;case"FJ":t="Fiji";break;case"FI":t="Finland";break;case"YE":t="Fmr Arab Rep. of Yemen";break;case"DD":t="Fmr Dem. Rep. of Germany";break;case"VD":t="Fmr Dem. Rep. of Vietnam";break;case"YD":t="Fmr Dem. Yemen";break;case"ET":t="Fmr Ethiopia";break;case"DE":t="Fmr Fed. Rep. of Germany";break;case"PC":t="Fmr Pacific Isds";break;case"PA":t="Fmr Panama, excl.Canal Zone";break;case"PZ":t="Fmr Panama-Canal-Zone";break;case"VN":t="Fmr Rep. of Vietnam";break;case"SD":t="Fmr Sudan";break;case"SU":t="Fmr USSR";break;case"YU":t="Fmr Yugoslavia";break;case"FQ":t="Fr. South Antarctic Terr.";break;case"FR":t="France";break;case"GF":t="French Guiana";break;case"PF":t="French Polynesia";break;case"FM":t="FS Micronesia";break;case"GA":t="Gabon";break;case"GM":t="Gambia";break;case"GE":t="Georgia";break;case"DE":t="Germany";break;case"GH":t="Ghana";break;case"GI":t="Gibraltar";break;case"GR":t="Greece";break;case"GL":t="Greenland";break;case"GD":t="Grenada";break;case"GP":t="Guadeloupe";break;case"GU":t="Guam";break;case"GT":t="Guatemala";break;case"GN":t="Guinea";break;case"GW":t="Guinea-Bissau";break;case"GY":t="Guyana";break;case"HT":t="Haiti";break;case"HM":t="Heard Island and McDonald Islands";break;case"VA":t="Holy See (Vatican City State)";break;case"HN":t="Honduras";break;case"HU":t="Hungary";break;case"IS":t="Iceland";break;case"IN":t="India";break;case"ID":t="Indonesia";break;case"IR":t="Iran";break;case"IQ":t="Iraq";break;case"IE":t="Ireland";break;case"IL":t="Israel";break;case"IT":t="Italy";break;case"JM":t="Jamaica";break;case"JP":t="Japan";break;case"JO":t="Jordan";break;case"KZ":t="Kazakhstan";break;case"KE":t="Kenya";break;case"KI":t="Kiribati";break;case"KW":t="Kuwait";break;case"KG":t="Kyrgyzstan";break;case"LA":t="Lao People's Dem. Rep.";break;case"LV":t="Latvia";break;case"LB":t="Lebanon";break;case"LS":t="Lesotho";break;case"LR":t="Liberia";break;case"LY":t="Libya";break;case"LT":t="Lithuania";break;case"LU":t="Luxembourg";break;case"MG":t="Madagascar";break;case"MW":t="Malawi";break;case"MY":t="Malaysia";break;case"MV":t="Maldives";break;case"ML":t="Mali";break;case"MT":t="Malta";break;case"MH":t="Marshall Isds";break;case"MQ":t="Martinique";break;case"MR":t="Mauritania";break;case"MU":t="Mauritius";break;case"YT":t="Mayotte";break;case"MX":t="Mexico";break;case"MN":t="Mongolia";break;case"ME":t="Montenegro";break;case"MS":t="Montserrat";break;case"MA":t="Morocco";break;case"MZ":t="Mozambique";break;case"MM":t="Myanmar";break;case"MP":t="N Mariana Isds";break;case"NA":t="Namibia";break;case"NR":t="Nauru";break;case"NP":t="Nepal";break;case"AN":t="Neth Antilles";break;case"NL":t="Netherlands";break;case"NC":t="New Caledonia";break;case"NZ":t="New Zealand";break;case"NI":t="Nicaragua";break;case"NE":t="Niger";break;case"NG":t="Nigeria";break;case"NU":t="Niue";break;case"NF":t="Norfolk Isds";break;case"NO":t="Norway";break;case"OM":t="Oman";break;case"PK":t="Pakistan";break;case"PW":t="Palau";break;case"PA":t="Panama";break;case"PG":t="Papua New Guinea";break;case"PY":t="Paraguay";break;case"PE":t="Peru";break;case"PH":t="Philippines";break;case"PN":t="Pitcairn";break;case"PL":t="Poland";break;case"PT":t="Portugal";break;case"QA":t="Qatar";break;case"KR":t="Rep of Korea";break;case"MD":t="Rep of Moldova";break;case"RE":t="Réunion";break;case"RO":t="Romania";break;case"RU":t="Russian Federation";break;case"RW":t="Rwanda";break;case"BL":t="Saint Barthélemy";break;case"SH":t="Saint Helena";break;case"KN":t="Saint Kitts and Nevis";break;case"KN":t="Saint Kitts, Nevis and Anguilla";break;case"LC":t="Saint Lucia";break;case"SX":t="Saint Maarten";break;case"PM":t="Saint Pierre and Miquelon";break;case"VC":t="Saint Vincent and the Grenadines";break;case"WS":t="Samoa";break;case"SM":t="San Marino";break;case"ST":t="Sao Tome and Principe";break;case"SA":t="Saudi Arabia";break;case"SN":t="Senegal";break;case"RS":t="Serbia";break;case"CS":t="Serbia and Montenegro";break;case"SC":t="Seychelles";break;case"SL":t="Sierra Leone";break;case"SG":t="Singapore";break;case"SK":t="Slovakia";break;case"SI":t="Slovenia";break;case"SB":t="Solomon Isds";break;case"SO":t="Somalia";break;case"ZA":t="South Africa";break;case"GS":t="South Georgia";break;case"SS":t="South Sudan";break;case"ES":t="Spain";break;case"LK":t="Sri Lanka";break;case"PS":t="State of Palestine";break;case"SD":t="Sudan";break;case"SR":t="Suriname";break;case"SZ":t="Swaziland";break;case"SE":t="Sweden";break;case"CH":t="Switzerland";break;case"SY":t="Syria";break;case"TJ":t="Tajikistan";break;case"MK":t="TFYR of Macedonia";break;case"TH":t="Thailand";break;case"TL":t="Timor-Leste";break;case"TG":t="Togo";break;case"TK":t="Tokelau";break;case"TO":t="Tonga";break;case"TT":t="Trinidad and Tobago";break;case"TN":t="Tunisia";break;case"TR":t="Turkey";break;case"TM":t="Turkmenistan";break;case"TC":t="Turks and Caicos Isds";break;case"TV":t="Tuvalu";break;case"UG":t="Uganda";break;case"UA":t="Ukraine";break;case"AE":t="United Arab Emirates";break;case"GB":t="United Kingdom";break;case"TZ":t="United Rep. of Tanzania";break;case"UM":t="United States Minor Outlying Islands";break;case"UY":t="Uruguay";break;case"VI":t="US Virgin Isds";break;case"US":t="United States";break;case"UZ":t="Uzbekistan";break;case"VU":t="Vanuatu";break;case"VE":t="Venezuela";break;case"VN":t="Viet Nam";break;case"WF":t="Wallis and Futuna Isds";break;case"EH":t="Western Sahara";break;case"WL":t="World";break;case"YE":t="Yemen";break;case"ZM":t="Zambia";break;case"ZW":t="Zimbabwe";break;default:t="Unknown"}return t},onUpdate:function(e){this.results=e},onUpdate2:function(e){this.results2=e},onUpdate3:function(e){this.results3=e},sendOtp:function(){var e=this;if(this.phNo=this.results.formattedNumber,this.phNo.length<6)this.$store.commit("setAlertMessage","Invalid Phone Number/OTP Format !");else{var t=this.phNo;if("Android"==this.getOS()||"iOS"==this.getOS())cordova.plugins.firebase.auth.verifyPhoneNumber(t,0).then((function(t){e.confirmationResult=t,e.$store.commit("setAlertMessage","SMS sent to your mobile Phone")})).catch((function(t){console.log("Send SMS error",t),e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)}));else{var n=this.appVerifier;nl.a.auth().signInWithPhoneNumber(t,n).then((function(t){window.confirmationResult=t,e.$store.commit("setAlertMessage","SMS sent to your mobile Phone")})).catch((function(t){e.$store.commit("setAlertMessage","Error ! SMS not sent "+t.message)}))}}},verifyOtp:function(){var e=this;if(this.phNo.length<6||6!=this.otp.length)this.$store.commit("setAlertMessage","Invalid Phone Number/OTP Format !");else{var t=this.otp;"Android"==this.getOS()||"iOS"==this.getOS()?cordova.plugins.firebase.auth.signInWithVerificationId(this.confirmationResult,t).then((function(){var t={};t.country=e.getCountryName(e.results.countryCode),t.phonenumber=e.results.formattedNumber;var n=JSON.stringify(t);e.$store.commit("setAlertMessage","Phone Verified"),e.$f7router.navigate("/signup/"+encodeURIComponent(n))})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)})):window.confirmationResult.confirm(t).then((function(t){var n={};n.country=e.getCountryName(e.results.countryCode),n.phonenumber=e.results.formattedNumber;var r=JSON.stringify(n);e.$store.commit("setAlertMessage","Phone Verified"),e.$f7router.navigate("/signup/"+encodeURIComponent(r))})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)}))}},initReCaptcha:function(){var e=this;setTimeout((function(){window.recaptchaVerifier=new nl.a.auth.RecaptchaVerifier("recaptcha-container",{size:"invisible",callback:function(e){},"expired-callback":function(){}}),e.appVerifier=window.recaptchaVerifier}),1e3)}},computed:{resultsTable:function(){return Object.keys(this.results)},resultsTable2:function(){return Object.keys(this.results2)},resultsTable3:function(){return Object.keys(this.results3)}},created:function(){this.initReCaptcha()}}),Pl=(n(243),sl(Ll,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"verifyphonenumber","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Verify Your Phone Number")]),e._v(" "),n("f7-navbar",{attrs:{title:"Phone Verification","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("div",{staticClass:"component mb-2"},[n("VuePhoneNumberInput",{staticClass:"mb-2",attrs:{id:"phoneNumber1",color:"dodgerblue",dark:e.dark,disabled:e.disabled,"ignored-countries":e.countriesIgnored,"preferred-countries":e.countriesList,loader:e.hasLoaderActive,clearable:"",error:e.hasErrorActive},on:{update:e.onUpdate},model:{value:e.phonenumber,callback:function(t){e.phonenumber=t},expression:"phonenumber"}}),e._v(" "),n("b",[e._v("Phone number")]),e._v("\n          : "+e._s(e.results.formattedNumber)+"\n        ")],1),e._v(" "),n("br"),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.sendOtp}},[e._v("Get OTP")]),e._v(" "),n("div",{attrs:{id:"recaptcha-container"}}),e._v(" "),n("f7-list-input",{attrs:{value:e.otp,label:"Enter OTP Received",type:"text",placeholder:"Enter OTP","clear-button":""},on:{input:function(t){e.otp=t.target.value}}})],1),e._v(" "),n("f7-button",{attrs:{fill:"",color:"blue"},on:{click:e.verifyOtp}},[e._v("Verify")]),e._v(" "),n("br"),e._v(" "),n("f7-button",{attrs:{fill:"",color:"blue"},on:{click:function(t){return e.sendOtp()}}},[e._v("Resend OTP")])],1)],1)],1)}),[],!1,null,"504141de",null).exports),Ol=sl({data:function(){return{image1:n(244),image2:n(245)}},computed:{app_version:function(){return this.$store.getters.app_version}},created:function(){this.$store.dispatch("getAppVersion")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"newupdate"}},[n("f7-navbar",{attrs:{title:"Update Your App"}}),e._v(" "),n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),n("f7-block",["Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1)}),[],!1,null,null,null).exports,Dl=n(4),Il=n.n(Dl),Al={computed:{contacts:function(){return this.$store.getters.contacts}},methods:{addFrd:function(e){var t={};t.sender=nl.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)}},created:function(){this.$store.dispatch("getAllUsers")}},Nl=(n(247),sl(Al,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Contacts","back-link":"Back"}}),e._v(" "),n("f7-list",{attrs:{"media-list":""}},e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},["online"==t.userStatus?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e(),e._v(" "),"offline"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{size:"1",color:"grey"}},[e._v(e._s(e.moment(t.lastSeen).format("LLL"))+";")])],1):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"})])})),1)],1)}),[],!1,null,"38b09e4b",null).exports),Rl=n(211),Yl={components:{Rave:n.n(Rl).a},data:function(){return{raveKey:"FLWPUBK-581258c33a65e85bc6116e0596a71662-X",email:"",amount1:100,amount2:3e3,amount3:5e3,amount4:2,amount5:5,amount6:10,plan:1e3,fname:"",lname:"",subaccounts:[],country:"NG",currency:"NGN",meta:[{metaname:"Swift",metavalue:"Swift Alliance"}],sub:[{id:"1324"},{id:"1221"}],payment_status:null,friend:null,friend_Details:null}},computed:{reference:function(){return this.$store.getters.reference},user_details:function(){return this.$store.getters.user_details},user_country:function(){return this.$store.getters.user_country}},methods:{payBronze:function(){},paySilver:function(){},payGold:function(){},callback:function(e){if(console.log(e),"00"==e.respcode&&"Approved. Successful"==e.respmsg||"00"==e.respcode&&"Approved"==e.respmsg){this.payment_status=e.status;var t=this.friend.payout,n=e.data.data.amount,r=.75*n,i=t+r;this.$store.dispatch("getReference"),this.payment_status=e.respmsg;var a="You just received Gift amount: "+r;this.$store.dispatch("sendMessage",{friend:this.friend,msg:a,img:null});var o=nl.a.auth().currentUser.uid;nl.a.database().ref("users/"+this.friend.uid).update({payout:i});o=nl.a.auth().currentUser.uid;nl.a.database().ref("pay4mePayout/"+o).push({friend_uid:this.friend.uid,friend_email:this.friend.email,oldPayout:this.friend.payout,pay4meAmount:n,userPay4meAmount:r,newPayout:i,senderName:this.user_details.name,receiverName:this.friend.name});var s={userID:this.friend.uid,email:this.friend.email,oldPayout:this.friend.payout,pay4meAmount:n,userPay4meAmount:r,newPayout:i,senderName:this.user_details.name,senderID:nl.a.auth().currentUser.uid,receiverName:this.friend.name};this.$f7.request.post("https://citygists.com/register/citygistspayout.php",s,(function(e){console.log("Load was performed",e)}))}},close:function(e){}},created:function(){var e=this.$f7route.params.frd;this.friend=JSON.parse(e),this.friend_Details=this.friend,this.$store.dispatch("getReference"),this.$store.dispatch("getUserDetails"),this.fname=this.user_details.name,this.email=this.user_details.email,this.$store.dispatch("getUserCountry")}},Bl=(n(248),sl(Yl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Gift Program","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("b",[e._v("Send Me Gifts")])]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("p",[e._v("You are about to send Gift to "+e._s(this.friend.name))]),e._v(" "),n("p",[e._v("Select from the options below: Bronze, Silver or Gold")])]),e._v(" "),"Nigeria"==this.user_country?n("div",[n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount1,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"NGN",country:"NG","style-class":"paymentbtn"}},[n("i",[e._v("Send Bronze Gift (N1,000)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount2,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"NGN",country:"NG","style-class":"paymentbtn"}},[n("i",[e._v("Send Silver Gift (N3,000)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount3,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"NGN",country:"NG","style-class":"paymentbtn"}},[n("i",[e._v("Send Gold Gift (N5,000)")])])],1)],1):n("div",[n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount4,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",[e._v("Send Bronze Gift ($2.00)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount5,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",[e._v("Send Silver Gift ($5.00)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount6,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",[e._v("Send Gold Gift ($10.00)")])])],1)],1),e._v(" "),n("f7-block",[e.payment_status?n("div",{attrs:{align:"center"}},[n("span",[e._v("Payment   "+e._s(e.payment_status))])]):e._e()])],1)}),[],!1,null,"71c04af6",null).exports),jl={data:function(){return{moderator:!0,appState:1,myAppVersion:2,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)},app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},computed:{appUpdate:function(){return this.$store.getters.appUpdate},top_page:function(){return this.$store.getters.top_page},bottom_page:function(){return this.$store.getters.bottom_page},back_page:function(){return this.$store.getters.back_page},forward_page:function(){return this.$store.getters.forward_page},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},app_db_version:function(){return this.$store.getters.app_db_version},app_version:function(){return this.$store.getters.app_version},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:Z()({onlineUsers:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},downward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("gotoBottomPage",n);case 9:case"end":return t.stop()}}),t)})))()},topward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("gotoTopPage",n);case 9:case"end":return t.stop()}}),t)})))()},forward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("more users requested",e.ref),t.next=3,e.$store.dispatch("getUserPageSize");case 3:e.pageSize=t.sent,(n={}).dbReference=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("getAllUsersForward",n);case 10:case"end":return t.stop()}}),t)})))()},backward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).dbReference=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,n.back_toggle=e.back_toggle,console.log("this.cursor",e.cursor),e.$store.dispatch("getAllUsersBackward",n);case 11:case"end":return t.stop()}}),t)})))()},checkInternet:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=nl.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),created:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.checkInternet(),t.next=3,e.$store.dispatch("getUserPhotoStatus");case 3:if(t.sent){t.next=8;break}return e.$f7router.navigate("/editprofilepicture/"),e.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others"),t.abrupt("return");case 8:e.checkInternet(),e.$store.dispatch("getAllUsersNew"),e.$store.dispatch("getAppDbVersion"),e.$store.dispatch("getAppVersion");case 12:case"end":return t.stop()}}),t)})))()}},Fl=(n(249),sl(jl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Members"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",[n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name},on:{click:function(n){return e.gotoChat(t)}}},["online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[n("b",[e._v("online")])])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e(),e._v(" "),"offline"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{size:"1",color:"grey"}},[e._v("  "+e._s(e.moment(t.lastSeen).format("LLL"))+";")])],1):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"})])})),1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[e.backPage?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.backward}},[e._v("Left")])],1):e._e(),e._v(" "),e.topPage?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.topward}},[e._v("Top")])],1):e._e(),e._v(" "),e.bottomPage?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.downward}},[e._v("Down")])],1):e._e(),e._v(" "),e.forwardPage?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.forward}},[e._v("Right")])],1):e._e()],1)],1)],1),e._v(" "),e._v("\n  |\n")],1)}),[],!1,null,"4a4d072e",null).exports),Hl={data:function(){return{moderator:!0,appState:1,myAppVersion:2,ref:{},online:null,myradio:"online",name:null,location:null,country:null}},watch:{back_page:function(e){null!=e&&(this.backPage=e)},updatePreloader:function(e){1==e&&(console.log("proloadValue",e),Za.dialog.close(),Za.dialog.preloader("We are almost there. <br>Pulling records if any. <br>Please wait..."))},searchResult:function(e){null!=e&&Za.dialog.close()},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)},app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},computed:{appUpdate:function(){return this.$store.getters.appUpdate},updatePreloader:function(){return this.$store.getters.updatePreloader},searchResult:function(){return this.$store.getters.searchResult},top_page:function(){return this.$store.getters.top_page},bottom_page:function(){return this.$store.getters.bottom_page},back_page:function(){return this.$store.getters.back_page},forward_page:function(){return this.$store.getters.forward_page},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},app_db_version:function(){return this.$store.getters.app_db_version},app_version:function(){return this.$store.getters.app_version},search_contacts:function(){return this.$store.getters.search_contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{searchUsers:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("more users requested"),console.log(e.country),console.log(e.myradio),e.$store.commit("setSearchResult",0),t.next=6,e.$store.dispatch("getUserPageSize");case 6:if(e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,"online"!=e.myradio){t.next=17;break}return Za.dialog.preloader("Searching for Users Online.<br>This might take long.<br>Please wait..."),t.next=16,e.$store.dispatch("searchUsersOnline",n);case 16:t.sent;case 17:if("name"!=e.myradio){t.next=27;break}if(null==e.name){t.next=26;break}return n.name=e.name,Za.dialog.preloader("Searching for ".concat(e.name,".<br>This might take long.<br>Please wait...")),t.next=23,e.$store.dispatch("searchUsersName",n);case 23:t.sent,t.next=27;break;case 26:e.$store.commit("setAlertMessage","Name field cannot be empty");case 27:if("location"!=e.myradio){t.next=37;break}if(null==e.location){t.next=36;break}return n.location=e.location,Za.dialog.preloader("Searching for ".concat(e.location,".<br>This might take long.<br>Please wait...")),t.next=33,e.$store.dispatch("searchUsersLocation",n);case 33:t.sent,t.next=37;break;case 36:e.$store.commit("setAlertMessage","Location field cannot be empty");case 37:if("country"!=e.myradio){t.next=48;break}if(console.log("hey"),null==e.country){t.next=47;break}return n.country=e.country,Za.dialog.preloader("Searching for ".concat(e.country,".<br>This might take long.<br>Please wait...")),t.next=44,e.$store.dispatch("searchUsersCountry",n);case 44:t.sent,t.next=48;break;case 47:e.$store.commit("setAlertMessage","Country field cannot be empty");case 48:case"end":return t.stop()}}),t)})))()},downward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("gotoBottomPage",n);case 9:case"end":return t.stop()}}),t)})))()},topward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("gotoTopPage",n);case 9:case"end":return t.stop()}}),t)})))()},forward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("more users requested",e.ref),t.next=3,e.$store.dispatch("getUserPageSize");case 3:e.pageSize=t.sent,(n={}).dbReference=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,e.$store.dispatch("getAllUsersForward",n);case 10:case"end":return t.stop()}}),t)})))()},backward:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).dbReference=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=nl.a.auth().currentUser.uid,n.back_toggle=e.back_toggle,console.log("this.cursor",e.cursor),e.$store.dispatch("getAllUsersBackward",n);case 11:case"end":return t.stop()}}),t)})))()},checkInternet:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=nl.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},created:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$store.commit("setSearchResult",!1),e.checkInternet(),t.next=4,e.$store.dispatch("getUserPhotoStatus");case 4:if(t.sent){t.next=9;break}return e.$f7router.navigate("/editprofilepicture/"),e.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others"),t.abrupt("return");case 9:e.checkInternet();case 10:case"end":return t.stop()}}),t)})))()}},Ul=(n(250),sl(Hl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Search Members"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",[1==e.searchResult?n("div",[n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.search_contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name},on:{click:function(n){return e.gotoChat(t)}}},["online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[n("b",[e._v("online")])])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e(),e._v(" "),"offline"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{size:"1",color:"grey"}},[e._v("  "+e._s(e.moment(t.lastSeen).format("LLL"))+";")])],1):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"})])})),1)],1):e._e(),e._v(" "),2==e.searchResult?n("div",{attrs:{align:"center"}},[n("p",[n("font",{attrs:{color:"red"}},[e._v("Sorry No Records Found... ")])],1)]):e._e(),e._v(" "),n("f7-block",{staticClass:"item-media",attrs:{align:"center"}},[n("p",[e._v("Search for Users by Status, Names, Location or Country")]),e._v(" "),n("f7-row",[n("f7-col",[n("label",{staticClass:"item-radio item-content"},[n("input",{attrs:{type:"radio",name:e.myradio,value:"online",checked:""},on:{input:function(t){e.myradio=t.target.value}}}),e._v(" "),n("i",{staticClass:"icon icon-radio"})])]),e._v(" "),n("f7-col",{attrs:{align:"left"}},[e._v("Search Users Online")])],1),e._v(" "),n("br"),e._v(" "),n("f7-row",[n("f7-col",[n("label",{staticClass:"item-radio item-content"},[n("input",{attrs:{type:"radio",name:e.myradio,value:"name"},on:{input:function(t){e.myradio=t.target.value}}}),e._v(" "),n("i",{staticClass:"icon icon-radio"})])]),e._v(" "),n("f7-col",[n("f7-input",{attrs:{value:e.name,type:"text",placeholder:"Search By User's Name","clear-button":""},on:{input:function(t){e.name=t.target.value}}})],1)],1),e._v(" "),n("br"),e._v(" "),n("f7-row",[n("f7-col",[n("label",{staticClass:"item-radio item-content"},[n("input",{attrs:{type:"radio",name:e.myradio,value:"location"},on:{input:function(t){e.myradio=t.target.value}}}),e._v(" "),n("i",{staticClass:"icon icon-radio"})])]),e._v(" "),n("f7-col",[n("f7-input",{attrs:{value:e.location,type:"text",placeholder:"Search By Location","clear-button":""},on:{input:function(t){e.location=t.target.value}}})],1)],1),e._v(" "),n("br"),e._v(" "),n("f7-row",[n("f7-col",[n("label",{staticClass:"item-radio item-content"},[n("input",{attrs:{type:"radio",name:e.myradio,value:"country"},on:{input:function(t){e.myradio=t.target.value}}}),e._v(" "),n("i",{staticClass:"icon icon-radio"})])]),e._v(" "),n("f7-col",[n("f7-input",{attrs:{value:e.country,type:"text",placeholder:"Search By Country","clear-button":""},on:{input:function(t){e.country=t.target.value}}})],1)],1)],1),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.searchUsers}},[e._v("Search Users")])],1)],1)],1)}),[],!1,null,"0813e8af",null).exports),zl={data:function(){return{moderator:!0,appState:1,myAppVersion:2,scores:[]}},watch:{app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},computed:{app_db_version:function(){return this.$store.getters.app_db_version},app_version:function(){return this.$store.getters.app_version},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:Z()({checkInternet:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=nl.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),mounted:function(){var e=this;this.$f7ready((function(t){var n=e;n.$f7.request.get("https://chatme24.com/sportsupdate/goalalert/pullgoals.php",(function(e){var t=JSON.parse(e);n.scores=t}))}))},created:function(){this.checkInternet(),this.$store.dispatch("getAllUsers"),this.$store.dispatch("getAppDbVersion"),this.$store.dispatch("getAppVersion")}},Vl=(n(251),sl(zl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Live Scores","back-link":"Back"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.scores,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.league}},[n("span",{attrs:{slot:"title"},slot:"title"},[n("br"),e._v(e._s(e._f("capitalize")(t.teamhost)))]),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(" v ")]),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e._f("capitalize")(t.teamvisitor))),n("br")]),e._v(" "),r%2==0?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("f7-badge",{attrs:{color:"green"}},[e._v(e._s(t.score))])],1):e._e(),e._v(" "),r%2==1?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(t.score))])],1):e._e(),e._v(" "),""!=t.matchtime?n("span",{attrs:{slot:"text"},slot:"text"},[e._v("\n        "+e._s(t.matchtime)+"'\n      ")]):e._e(),e._v(" "),n("span",{attrs:{slot:"footer"},slot:"footer"},[e._v("\n        "+e._s(t.matchstatus)+"\n      ")])])})),1)],1)}),[],!1,null,"408c7167",null).exports),ql={data:function(){return{moderator:!0,appState:1,myAppVersion:2,englishclubs:[],spainclubs:[],franceclubs:[],germanclubs:[],italyclubs:[]}},watch:{app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},computed:{app_db_version:function(){return this.$store.getters.app_db_version},app_version:function(){return this.$store.getters.app_version},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:Z()({checkInternet:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=nl.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),mounted:function(){var e=this;this.$f7ready((function(t){var n=e,r=n.$f7;r.request.get("https://chatme24.com/sportsupdate/goalalert/pullstandingeng.php",(function(e){var t=JSON.parse(e);n.englishclubs=t,console.log(t)})),r.request.get("https://chatme24.com/sportsupdate/goalalert/pullstandingspa.php",(function(e){var t=JSON.parse(e);n.spainclubs=t})),r.request.get("https://chatme24.com/sportsupdate/goalalert/pullstandingfrance.php",(function(e){var t=JSON.parse(e);n.franceclubs=t}))}))},created:function(){this.checkInternet(),this.$store.dispatch("getAllUsers"),this.$store.dispatch("getAppDbVersion"),this.$store.dispatch("getAppVersion")}},Wl=(n(252),sl(ql,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Club Standings","back-link":"Back"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-block-title",[n("b",[e._v("Premiership")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.englishclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2),e._v(" "),n("f7-block-title",[n("b",[e._v("La Liga")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.spainclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2),e._v(" "),n("f7-block-title",[n("b",[e._v("France Ligue 1")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.franceclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2)],1)}),[],!1,null,"3d494058",null).exports),Gl={methods:{confirm:function(e){this.$store.dispatch("confirmRequest",e)},remove:function(e){this.$store.dispatch("deleteRequest",e)}},computed:{friend_requests:function(){return this.$store.getters.friend_requests}},created:function(){this.$store.dispatch("getMyRequests")}},Kl=(n(253),sl(Gl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Requests","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Friend requests")]),e._v(" "),n("f7-list",{attrs:{"media-list":""}},e._l(e.friend_requests,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"green"},on:{click:function(n){return e.confirm(t)}}},[e._v("Add")]),e._v(" "),n("f7-swipeout-button",{attrs:{color:"red"},on:{click:function(n){return e.remove(t)}}},[e._v("Delete")])],1)],1)})),1)],1)}),[],!1,null,"626b71e2",null).exports),Jl=n(63),Xl=n.n(Jl),Ql={data:function(){return{hold_message:null,friend_uid_chat:null,friend:null,friend_Details:null,attachments:[],sheetVisible:!1,typingMessage:{},responseInProgress:!1,friend_uid:null}},computed:{onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},sent_by:function(){return this.$store.getters.sent_by},subscribe_affiliate_friend:function(){return this.$store.getters.subscribe_affiliate_friend},block_by_friend:function(){return this.$store.getters.block_by_friend},friend_status:function(){return this.$store.getters.friend_status},ban_status:function(){return this.$store.getters.ban_status},user_status:function(){return this.$store.getters.user_status},images:function(){return this.$store.getters.images},chat_messages:function(){return this.sent_by==this.friend_uid_chat?(this.hold_message=this.$store.getters.chat_messages,this.$store.getters.chat_messages):this.hold_message},typing_message:function(){return this.sent_by==this.friend_uid_chat?this.$store.getters.typing_message:null},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},beforeDestroy:function(){this.$store.dispatch("resetMessageCount",this.friend.frd_key)},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages}))},watch:{},methods:{activeUsers:function(e){return chat_messages.filter((function(e){return"B6CMLDC11DUQVcDzWSKG2OFcIgi2"==e.sentby}))},pay4me:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/pay4me/"+encodeURIComponent(t))},reportUser:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Reason for Reporting",text:"1. Sending nude pictures<br>2. Abusive language<br>3. Indecent conversation<br>4. Others",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="tel" placeholder="Enter number"  required validate pattern="[1-4]*" data-error-message="Only numbers from 1 to 4" maxlength="1"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if("1"==r||"2"==r||"3"==r||"4"==r){var i={};i.uid=e.friend.uid,i.report_id=r,i.frd_key=e.friend.frd_key,e.$store.dispatch("reportUserToAdmin",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Select Reason for Reporting the user")},on:{open:function(){}}}).open()},unBlockUser:function(e){this.$store.dispatch("unBlockUser",this.friend),this.$store.dispatch("checkUserBlocked",this.friend),this.$store.dispatch("checkBlockByFriend",this.friend),this.$f7.popover.close()},blockUser:function(e){this.$store.dispatch("blockUser",this.friend),this.$store.dispatch("checkUserBlocked",this.friend),this.$store.dispatch("checkBlockByFriend",this.friend),this.$f7.popover.close()},addModerator:function(e){this.$store.dispatch("addModerator",this.friend.uid),this.$f7.popover.close()},removeModerator:function(e){this.$store.dispatch("removeModerator",this.friend.uid),this.$f7.popover.close()},unBanUser:function(e){this.$store.dispatch("unBanUser",this.friend.uid),this.$store.dispatch("getBanUserStatus",this.friend.uid),this.$f7.popover.close()},banUser:function(e){var t=this;return o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$f7.popover.close(),t.$f7.dialog.create({title:"Reason for Banning User",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Reason for Banning"  required validate  maxlength="100"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(e,n){var r=e.$el.find(".dialog-input").val().trim();if(0!=r.length){if(r.length<10)return void t.$store.commit("setAlertMessage","Reason provided too short...");var i={};i.uid=t.friend.uid,i.comments=r,t.$store.dispatch("banUser",i),t.$store.dispatch("getBanUserStatus",t.friend.uid),t.$store.commit("setAlertMessage","User has been banned");var a={uid:t.friend.uid,comments:r};t.$f7.request.post("https://chatme24.com/statistics/banuser.php",a,(function(e){}))}else 1==n&&t.$store.commit("setAlertMessage","Provide Reason for Banning the user")},on:{open:function(){}}}).open();case 2:case"end":return e.stop()}}),e)})))()},gotoKeyDown:function(e){this.$store.dispatch("sendDownTypingMessage",this.friend_Details),this.$store.dispatch("getTypingMessages",this.friend)},gotoKeyUp:function(e){var t=this;setTimeout((function(){t.$store.dispatch("sendUpTypingMessage",t.friend_Details),t.$store.dispatch("getTypingMessages",t.friend)}),3e3)},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},isFirstMessage:function(e,t){var n=this.chat_messages[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.chat_messages[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.chat_messages[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this;return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e.onesignal_playerID){t.next=3;break}return t.next=3,e.$store.dispatch("sendNotification",e.onesignal_playerID);case 3:if(!window.hasOwnProperty("cordova")){t.next=10;break}return t.next=6,e.$store.dispatch("checkConnection");case 6:if("offline"!=t.sent){t.next=10;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 10:return t.next=12,e.$store.dispatch("checkUserBlocked",e.friend);case 12:if("1"!=e.friend_status){t.next=15;break}return e.$store.commit("setAlertMessage","You have blocked the user, please unblock the user before sending message..."),t.abrupt("return");case 15:return t.next=17,e.$store.dispatch("checkBlockByFriend",e.friend);case 17:if("1"!=e.block_by_friend){t.next=20;break}return e.$store.commit("setAlertMessage","You have been blocked by this user"),t.abrupt("return");case 20:return t.next=22,e.$store.dispatch("getUserStatus");case 22:if("0"!=e.user_status){t.next=25;break}return e.$store.commit("setAlertMessage","You have been banned from using this service"),t.abrupt("return");case 25:if(r=(n=e).messagebar.getValue().replace(/\n/g,"<br>").trim(),a=[],n.attachments.forEach((function(e){a.push({image:e})})),r.trim().length&&a.push({text:r}),0!==a.length){t.next=32;break}return t.abrupt("return");case 32:n.attachments.length>0?Xl.a.forEach(n.attachments,(function(e){n.$store.dispatch("uploadChatImages",e).then((function(e){n.$store.dispatch("sendMessage",{friend:n.friend,msg:r,img:e})}))})):n.$store.dispatch("sendMessage",{friend:n.friend,msg:r,img:null}),n.attachments=[],n.sheetVisible=!1,n.messagebar.clear(),r.length>0&&n.messagebar.focus();case 37:case"end":return t.stop()}}),t)})))()},resetTypingMessage:function(){var e=this;setTimeout((function(){e.$store.dispatch("sendUpTypingMessage",e.friend_Details)}),4e3)}},created:function(){var e=this.$f7route.params.frd;this.friend=JSON.parse(e),this.friend_Details=this.friend,this.friend_uid_chat=this.friend.uid,this.$store.commit("setShowTabs",!1),this.$store.dispatch("getChatMessages",this.friend),this.$store.dispatch("updateReadMessage",this.friend),this.$store.dispatch("resetMessageCount",this.friend.frd_key),this.$store.dispatch("getTypingMessages",this.friend),this.$store.dispatch("getUserStatus"),this.$store.dispatch("getBanUserStatus",this.friend.uid),this.$store.dispatch("checkBlockByFriend",this.friend),this.$store.dispatch("checkUserBlocked",this.friend),this.$store.dispatch("getFriendAffiliate",this.friend.uid),this.$store.dispatch("getOnesignalPlayerID",this.friend.uid),this.friend_uid=this.friend.uid,this.$store.dispatch("getAdvertDefault"),this.$store.dispatch("getAdvertCountry")}},Zl=(n(254),sl(Ql,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.friend_uid==e.friend.uid?n("div",[n("f7-page",[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("f7-link",{attrs:{fill:"","popup-open":".demo-popup"}},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url},slot:"media"})])],1),e._v(" "),n("f7-nav-right",[this.subscribe_affiliate_friend?n("div",[n("f7-link",{on:{click:function(t){return e.pay4me(e.friend)}}},[e._v("Gift")])],1):e._e(),e._v(" "),e.ban_status?n("span",[n("f7-badge",{attrs:{color:"red"}},[e._v("Banned")])],1):e._e(),e._v(" "),n("f7-link",{attrs:{"popover-open":".popover-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1)],1),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible},nativeOn:{keydown:function(t){return e.gotoKeyDown(e.friend)},keyup:function(t){return e.gotoKeyUp(e.friend)}}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.chat_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,i){return n("f7-message",{key:i,attrs:{type:t.type,image:t.image,name:t.name,avatar:t.avatar,first:e.isFirstMessage(t,r),last:e.isLastMessage(t,r),tail:e.isTailMessage(t,r)}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),n("div",{attrs:{slot:"text",align:"right"},slot:"text"},["2"==t.read?n("span",{staticClass:"chat-time"},["1"==t.status?n("div",[e._v("\n                "+e._s(t.smalldate)+"\n                "),n("i",{staticClass:"material-icons color-red size-12"},[e._v("done_all")])]):n("div",[e._v(e._s(t.smalldate))])]):n("span",{staticClass:"chat-time"},["1"==t.status?n("div",[e._v("\n                "+e._s(t.smalldate)+"\n                "),n("i",{staticClass:"material-icons color-white size-12"},[e._v("done")])]):n("div",[e._v(e._s(t.smalldate))])])])])})),e._v(" "),"1"==e.typing_message&&e.sent_by==e.friend_uid_chat?n("f7-message",{attrs:{type:"received",typing:!0,first:!0,last:!0,tail:!0,header:e.friend_Details.name+" is typing",avatar:e.friend_Details.photo_url}}):e._e()],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}}),e._v(" "),"3"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Ban User"},on:{click:function(t){return e.banUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Ban User"},on:{click:function(t){return e.unBanUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Add Moderator"},on:{click:function(t){return e.addModerator(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Remove Moderator"},on:{click:function(t){return e.removeModerator(""+e.friend)}}})],1)],1):e._e(),e._v(" "),"2"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Ban User"},on:{click:function(t){return e.banUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Ban User"},on:{click:function(t){return e.unBanUser(""+e.friend)}}})],1)],1):e._e(),e._v(" "),"1"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}})],1)],1):e._e(),e._v(" "),n("f7-popup",{staticClass:"demo-popup"},[n("f7-page",[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.friend.birthDate}},[e._v(e._s(e.moment(this.friend.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.friend.photo_url}})]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",[n("p",[n("b",[e._v("Status:")]),e._v("\n                  "+e._s(this.friend.userStatus)+"\n                ")]),e._v(" "),"offline"==this.friend.userStatus?n("span",[n("b",[e._v("Lastseen:")]),e._v("\n                  "+e._s(e.moment(this.friend.lastSeen).fromNow())+"\n                ")]):e._e()])],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n                  "+e._s(this.friend.profileMessage)+"\n                ")])]),e._v(" "),n("f7-col",[n("p",[n("b",[e._v("Location")]),e._v(" "),n("br"),e._v("\n                  "+e._s(this.friend.location)+"\n                ")])])],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",["1"==this.block_by_friend?n("span",[n("b",[e._v("Blocked By")]),e._v(" Friend\n                ")]):e._e()]),e._v(" "),n("f7-col",["1"==this.friend_status?n("span",[n("b",[e._v("Blocked By")]),e._v(" you\n                ")]):e._e()])],1)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("h4",[n("b",[e._v("Paid Adverts")])]),e._v(" "),n("span",[e._v("\n            To place your adverts below send mail to support@penpalamerica.com\n          ")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("\n            To place your adverts here send mail to support@penpalamerica.com\n          ")])])],1)],1)],1)],1):e._e()}),[],!1,null,"1af21f18",null).exports),ec={data:function(){return{posts:[]}},computed:{user_notifications:function(){return this.$store.getters.user_notifications}},methods:{},created:function(){this.$store.dispatch("getUserNotifications")}},tc=(n(255),sl(ec,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"notifications"}},[n("f7-navbar",{attrs:{title:"Notifications","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("h2",[e._v("Recent Notifications")])]),e._v(" "),n("f7-block",e._l(e.user_notifications,(function(t,r){return n("div",{key:r},e._l(t,(function(t,r){return n("f7-list",{key:r},[n("h2",{domProps:{innerHTML:e._s(t.title)}}),e._v(" "),n("p",{domProps:{innerHTML:e._s(t.message_details)}}),e._v(" "),n("span",{staticClass:"small-time",domProps:{innerHTML:e._s(e.moment(t.timestamp).format("MMMM Do YYYY, h:mm a"))}})])})),1)})),0)],1)}),[],!1,null,"6745f5b0",null).exports),nc=sl({data:function(){return{agreement:!1}},computed:{user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate}},methods:{onCheckBoxChange:function(e){e.target.value;e.target.checked?this.agreement=!0:this.agreement=!1},deactivateAffiliate:function(){var e=this;this.$f7.dialog.create({title:"Delete Gift Feature?",text:"Your Gifts including your earns for the month  will be deleted. Confirm if you want to continue with deleting your Gift Account.",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,n){if(1==n){var r=e.$f7;e.$store.dispatch("deleteAffiliate"),e.$f7.dialog.close(),r.panel.close(),e.$store.dispatch("getUserAffiliate")}},on:{open:function(){}}}).open()},activateAffiliate:function(){var e=this;if(this.agreement)if("Nigeria"==this.user_country){this.$f7.popover.close();this.$f7.dialog.create({title:"Bank Details",text:"",content:"<div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input' type='text' placeholder='Bank Name' required /></div></div><div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input account-number' type='text' placeholder='Account - Number' required /></div></div><div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input account-name' type='text' placeholder='Account Name' required /></div></div>",buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".account-number").val().trim(),a=t.$el.find(".account-name").val().trim();if(r.length>=2)if(10==i.length)if(a.length>=2){var o={};o.bank_name=r,o.account_number=i,o.account_name=a,o.paypal="",e.$store.dispatch("processAffiliate",o),e.$f7.dialog.close(),e.$store.dispatch("getUserAffiliate")}else e.$store.commit("setAlertMessage","Account Name too short");else e.$store.commit("setAlertMessage","Account Number is too short or too long");else 1==n&&e.$store.commit("setAlertMessage","Bank Name too short")},on:{open:function(){}}}).open()}else{this.$f7.popover.close();this.$f7.dialog.create({title:"Paypal Details",text:"",content:"<div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input' type='text' placeholder='PayPay Details' required /></div></div>",buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>=2){var i={bank_name:"",account_number:"",account_name:""};i.paypal=r,e.$store.dispatch("processAffiliate",i),e.$f7.dialog.close(),e.$store.dispatch("getUserAffiliate")}else 1==n&&e.$store.commit("setAlertMessage","Your PayPal Details are too Short")},on:{open:function(){}}}).open()}else this.$store.commit("setAlertMessage","Check I agree button to continue...")}},created:function(){this.$store.dispatch("getUserCountry"),this.$store.dispatch("getUserAffiliate")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Gift Program","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("b",[e._v("Join Our Gift Program")])]),e._v(" "),"Nigeria"==e.user_country?n("f7-block",{attrs:{strong:""}},[n("p",[e._v("The Gift features once activated allows members to send you real money. We have three categories of Gifts: Bronze, Silver or Gold. For your country, Bronze is N1,000.00, Silver is N3,000 and Gold is N5,000")]),e._v(" "),n("p",[e._v("You get paid on Friday Whenever your earnings reach N5,000 or more. Note for any money you earn we charge 25% admin fees. This means if a member sends you Bronze of N1,000, we will credit your account with N750.")])]):n("f7-block",[n("p",[e._v("The Gift features once activated allows members to send you real money. We have three categories of Gifts: Bronze, Silver or Gold. For your country, Bronze is $2.00, Silver is $5.00 and Gold is $10.00")]),e._v(" "),n("p",[e._v("You get paid on Friday Whenever your earnings reach $25.00 or more. Note for any money you earn we charge 25% admin fees. This means if a member sends you Bronze of $2.0, we will credit your account with $1.50.")])]),e._v(" "),n("div",[this.subscribe_affiliate?n("f7-block",[n("p",[n("font",{attrs:{color:"green"}},[e._v("Your Affiliate Account is Active")])],1),e._v(" "),n("f7-button",{attrs:{fill:"",color:"red"},on:{click:e.deactivateAffiliate}},[e._v("DeActivate Program")])],1):n("f7-block",[n("div",{staticClass:"list media-list"},[n("f7-list",[n("f7-list-item",{attrs:{checkbox:"",title:"I agree with the above conditions.",name:"affiliate-checkbox",color:"green"},on:{change:e.onCheckBoxChange}})],1)],1),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.activateAffiliate}},[e._v("Activate Program")])],1)],1)],1)}),[],!1,null,null,null).exports,rc={components:{f7Page:Es,f7LoginScreenTitle:ts,f7List:es,f7ListItem:Zo,f7ListButton:qo,f7BlockFooter:ko,f7ListInput:Ko},data:function(){return{twitter:null,instagram:null}},methods:{registerModerator:function(){var e={};null!=this.twitter&&null!=this.instagram?(e.twitter=this.twitter,e.instagram=this.instagram,this.$store.dispatch("processModerator",e),this.$store.commit("setAlertMessage","Your Form received and Email sent to you. Please check your email."),this.twitter=null,this.instagram=null):this.$store.commit("setAlertMessage","Please provide your Twitter and Instagram details")},created:function(){}}},ic=(n(256),sl(rc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about","no-swipeback":"","login-screen":""}},[n("f7-navbar",{attrs:{title:"Be A Moderator","back-link":"Back"}}),e._v(" "),n("f7-block",[n("p",[n("b",[e._v("Be Our Moderator.")])])]),e._v(" "),n("f7-block",[n("p",[e._v("\n      Do you have over 500 followers in your Twitter and Instagram Pages?"),n("br"),e._v("\n      If Yes, please complete the form below to be selected as our Moderator.\n    ")])]),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.twitter,label:"Your Twitter Handle",type:"text",placeholder:"Your Twitter Handle","clear-button":"",required:""},on:{input:function(t){e.twitter=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.instagram,label:"Your Instagram IG",type:"text",placeholder:"Your Instagram IG","clear-button":"",required:""},on:{input:function(t){e.instagram=t.target.value}}})],1)],1),e._v(" "),n("div",[n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.registerModerator}},[e._v("Submit")])],1)],1)],1)}),[],!1,null,"45d5b5de",null).exports),ac={data:function(){return{userCountry:null,myAppVersion:2,text1:"Join Chatme24 to meet new friends",text2:"Join Penpal America to meet new friends",everydayblogger:[],weekblogger:[],monthblogger:{type:Array,default:function(){return[{}]}},todayblogger:[]}},watch:{user_country:function(e){},app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},methods:{advertrouter:function(e){this.$f7router.navigate("https://247sms.com",External)},gotoJoinGroup:function(e){this.$store.dispatch("addGroupMember"),this.$store.commit("setAlertMessage","You have been added to the group")},gotoGroup:function(e){this.$f7router.navigate("/chatgroup/")},init:function(){var e=this;this.$store.commit("setShowTabs",!0);this.$f7ready((function(t){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(t){var n={country:t.val().country},r=e,i=r.$f7;i.request.post("https://chatme24.com/register/sportsnewsupdatefrench.php",n,(function(e){var t=JSON.parse(e);r.everydayblogger=t})),i.request.post("https://chatme24.com/register/sportsnewsupdategermany.php",n,(function(e){var t=JSON.parse(e);r.todayblogger=t})),i.request.post("https://chatme24.com/register/sportsnewsupdatespain.php",n,(function(e){var t=JSON.parse(e);r.weekblogger=t})),i.request.post("https://chatme24.com/register/sportsnewsupdateengland.php",n,(function(e){var t=JSON.parse(e);r.monthblogger=t}))}))}))}},computed:{advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},app_db_version:function(){return this.$store.getters.app_db_version},app_version:function(){return this.$store.getters.app_version},chat_groups:function(){return this.$store.getters.chat_groups},user_country:function(){return this.$store.getters.user_country}},mounted:function(){},created:function(){this.init(),this.$store.dispatch("getAppDbVersion"),this.$store.dispatch("getAppVersion"),this.$store.dispatch("getAdvertDefault"),this.$store.dispatch("getAdvertCountry")}},oc=(n(257),sl(ac,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"chatgroups"},on:{"page:beforein":e.init}},[n("f7-navbar",{attrs:{title:"Sports Update","back-link":"Back"}}),e._v(" "),n("f7-block",[n("f7-block",[n("h4",[e._v("Premier League Updates")]),e._v(" "),n("p",[e._v("Powered By Google Alert")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("Spain La Liga Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("Germany - Bundesliga Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("French - Ligue1 Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.everydayblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("p",[e._v("Source: Google Alert")])],1)],1)],1)}),[],!1,null,"40e422ce",null).exports),sc={data:function(){return{userCountry:null,myAppVersion:2,text1:"Join Chatme24 to meet new friends",text2:"Join Penpal America to meet new friends",weekblogger:[],monthblogger:[],todayblogger:[]}},watch:{user_country:function(e){},app_db_version:function(e){"Android"!=this.app_version&&"iOS"!=this.app_version||this.myAppVersion<e&&this.$f7router.navigate("/newversion/")}},methods:{advertrouter:function(e){this.$f7router.navigate("https://247sms.com",External)},gotoJoinGroup:function(e){this.$store.dispatch("addGroupMember"),this.$store.commit("setAlertMessage","You have been added to the group")},gotoGroup:function(e){this.$f7router.navigate("/chatgroup/")},init:function(){var e=this;this.$store.commit("setShowTabs",!0);this.$f7ready((function(t){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(t){var n={country:t.val().country},r=e,i=r.$f7;i.request.post("https://chatme24.com//statistics//todayblogger.php",n,(function(e){var t=JSON.parse(e);r.todayblogger=t})),i.request.post("https://chatme24.com//statistics//weekblogger.php",n,(function(e){var t=JSON.parse(e);r.weekblogger=t})),i.request.post("https://chatme24.com//statistics//monthblogger.php",n,(function(e){var t=JSON.parse(e);r.monthblogger=t}))}))}))}},computed:{advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},app_db_version:function(){return this.$store.getters.app_db_version},app_version:function(){return this.$store.getters.app_version},chat_groups:function(){return this.$store.getters.chat_groups},user_country:function(){return this.$store.getters.user_country}},mounted:function(){},created:function(){this.init(),this.$store.dispatch("getAppDbVersion"),this.$store.dispatch("getAppVersion"),this.$store.dispatch("getAdvertDefault"),this.$store.dispatch("getAdvertCountry")}},lc=(n(258),sl(sc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"chatgroups"},on:{"page:beforein":e.init}},[n("div",{staticClass:"wrapper"},[n("f7-navbar",{attrs:{title:"Football Blogging"}}),e._v(" "),n("f7-block",[n("f7-link",{on:{click:e.gotoGroup}},[e._v("Start 247footballchat Blogging")]),e._v(" "),n("f7-block",[n("h4",[e._v("This Month Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.name)+"\n            ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.scores)+"\n            ")])})),0)],1),e._v(" "),n("h4",[e._v("This Week Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.name)+"\n            ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.scores)+"\n            ")])})),0)],1),e._v(" "),n("h4",[e._v("Today's Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.name)+"\n            ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.scores)+"\n            ")])})),0)],1)],1)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("h4",[n("b",[e._v("Paid Adverts")])]),e._v(" "),n("span",[e._v("\n      To place your adverts below send mail to support@247footballchat.com\n    ")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts here send mail to support@247footballchat.com")])])],1)}),[],!1,null,"f622d15c",null).exports),cc={data:function(){return{user_uid:null,openBraket:" (",closeBraket:")",chatgroup:null,attachments:[],sheetVisible:!1,typingMessage:null,messagesData:[],responseInProgress:!1,appState:1,moderator:!0}},computed:{total_group_messages:function(){return this.$store.getters.total_group_messages},number_online:function(){return this.$store.getters.number_online},typing_message_group:function(){return this.$store.getters.typing_message_group},app_state:function(){return this.$store.getters.app_state},user_status:function(){return this.$store.getters.user_status},chat_group_name:function(){return this.$store.getters.chat_group_name},group_messages:function(){return this.$store.getters.group_messages},images:function(){return this.$store.getters.images},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},watch:{typing_message_group:function(e){}},beforeDestroy:function(){this.$store.dispatch("statisticsUsersOnlineRemove")},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages})),this.$store.dispatch("getGroupName2")},methods:{sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var a={};a.title=r,a.message_details=i,e.$store.dispatch("pushNotifications",a);var o={group_name:e.chat_group_name,message:"Broadcast: Title: "+r+" Message: "+i,img:null};e.$store.dispatch("sendGroupMessage",o),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},liveScores:function(){this.$f7router.navigate("/livescores/"),this.$f7.popover.close()},sportsUpdate:function(){this.$f7router.navigate("/sportsupdate/"),this.$f7.popover.close()},standing:function(){this.$f7router.navigate("/standings/"),this.$f7.popover.close()},placeAdvert:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Provide Advert Details",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input-URL" type="text" placeholder="URL"  required validate  maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-image" type="text" placeholder="Image URL"  required validate  maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-alternate" type="text" placeholder="Alternate"  required validate  maxlength="100"></div><div class="item-input-wrap"><input class="dialog-input-textmessage" type="text" placeholder="Text Message"  required validate  maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-country" type="text" placeholder="Country"  required validate  maxlength="50"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input-URL").val().trim(),i=t.$el.find(".dialog-input-image").val().trim(),a=t.$el.find(".dialog-input-alternate").val().trim(),o=t.$el.find(".dialog-input-textmessage").val().trim(),s=t.$el.find(".dialog-input-country").val().trim();if(0!=r.length)if(0!=i.length)if(0!=a.length)if(0!=o.length)if(0!=s.length){var l={url:r,image:i,alternate:a,textMesage:o,country:s};e.$store.dispatch("placeAdvert",l),e.$store.commit("setAlertMessage","Advert Placed Successfully")}else e.$store.commit("setAlertMessage","Provide Country message");else e.$store.commit("setAlertMessage","Provide Text message");else e.$store.commit("setAlertMessage","Provide Alternate message");else e.$store.commit("setAlertMessage","Provide Image message");else e.$store.commit("setAlertMessage","Provide URL message")},on:{open:function(){}}}).open();this.$f7.popover.close()},lockApp:function(){this.$store.dispatch("closeAppState"),this.$store.dispatch("getAppState"),this.$f7.popover.close()},openApp:function(){this.$store.dispatch("openAppState"),this.$store.dispatch("getAppState"),this.$f7.popover.close()},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},leaveGroup:function(){var e={};e.group_name=this.chat_group_name,this.$store.dispatch("leaveGroup",e)},goto:function(e){this.$f7router.navigate(e)},isFirstMessage:function(e,t){var n=this.messagesData[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this;return o()(i.a.mark((function t(){var n,r,a,o,s,l,c;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=7;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:if("offline"!=t.sent){t.next=7;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 7:return t.next=9,e.$store.dispatch("getUserStatus");case 9:return t.next=11,e.$store.dispatch("getAppState");case 11:if(e.app_state||"1"!=e.user_status){t.next=14;break}return e.$store.commit("setAlertMessage","Only moderators can send messages now"),t.abrupt("return");case 14:if("0"!=e.user_status){t.next=17;break}return e.$store.commit("setAlertMessage","You have been banned from using this service"),t.abrupt("return");case 17:if(r=(n=e).messagebar.getValue().replace(/\n/g,"<br>").trim(),a=[],n.attachments.forEach((function(e){a.push({image:e})})),r.trim().length&&a.push({text:r}),0!==a.length){t.next=24;break}return t.abrupt("return");case 24:if(!(n.attachments.length>0)){t.next=28;break}_.forEach(n.attachments,(function(t){n.$store.dispatch("uploadChatImages",t).then((function(t){var i={group_name:e.chat_group_name,message:r,img:t};n.$store.dispatch("sendGroupMessage",i)}))})),t.next=38;break;case 28:return o={group_name:e.chat_group_name,message:r,img:null},n.$store.dispatch("sendGroupMessage",o),t.next=32,e.$store.dispatch("getUserCountry");case 32:return s=t.sent,t.next=35,e.$store.dispatch("getUserEmail");case 35:l=t.sent,c={uid:nl.a.auth().currentUser.uid,country:s,email:l,name:nl.a.auth().currentUser.displayName},e.$f7.request.post("https://chatme24.com/statistics/statistics.php",c,(function(e){}));case 38:n.attachments=[],n.sheetVisible=!1,n.messagebar.clear(),r.length&&n.messagebar.focus(),n.responseInProgress;case 43:case"end":return t.stop()}}),t)})))()}},created:function(){this.user_uid=nl.a.auth().currentUser.uid,this.$store.commit("setShowTabs",!1),this.$store.dispatch("getGroupMessages"),this.$store.dispatch("getAppState"),this.$store.dispatch("getUserStatus"),this.$store.dispatch("statisticsUsersOnline"),this.$store.dispatch("getTotalGroupMessages")}},uc=(n(259),sl(cc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Online: "+e.number_online,subtitle:"Messages sent: "+e.total_group_messages,"back-link":"Back"}},[n("f7-nav-right",[e.app_state?n("span",[n("f7-link",{attrs:{href:"/livescores/"}},[e._v("Live")]),e._v("  ")],1):n("span",[e._v("G-Closed  ")]),e._v(" "),"3"==e.user_status?n("f7-link",{attrs:{"popover-open":".popover-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e(),e._v(" "),"2"==e.user_status?n("f7-link",{attrs:{"popover-open":".popoverModerator-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e(),e._v(" "),"1"==e.user_status?n("f7-link",{attrs:{"popover-open":".popoverUser-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e()],1)],1),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.group_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,i){return n("f7-message",{key:i,attrs:{type:t.type,image:t.image,name:t.displayName+e.openBraket+t.club+e.closeBraket,club:t.club,avatar:t.avatar,first:e.isFirstMessage(t,r),last:e.isLastMessage(t,r),tail:e.isTailMessage(t,r)}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),t.text?n("span",{staticClass:"chat-time",attrs:{slot:"text"},domProps:{innerHTML:e._s(t.smalldate)},slot:"text"}):e._e()])})),e._v(" "),e.typing_message_group>0?n("f7-message",{attrs:{type:"received",typing:!0,first:!0,last:!0,tail:!0,header:e.typing_message_group+" Person(s) typing"}}):e._e()],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}}),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Close Gateway"},on:{click:function(t){return e.lockApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Open Gate"},on:{click:function(t){return e.openApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Place Advert"},on:{click:function(t){return e.placeAdvert()}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popoverModerator-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Close Gateway"},on:{click:function(t){return e.lockApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Open Gate"},on:{click:function(t){return e.openApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popoverUser-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}})],1)],1)],1)}),[],!1,null,"86dc0086",null).exports),dc=sl({data:function(){return{friend:null,friend_Details:null,attachments:[],sheetVisible:!1,responseInProgress:!1}},computed:{images:function(){return this.$store.getters.images},post_chat_messages:function(){return this.$store.getters.post_chat_messages},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages}))},methods:{launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},isFirstMessage:function(e,t){var n=this.messagesData[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this,t=e.messagebar.getValue().replace(/\n/g,"<br>").trim(),n=[];e.attachments.forEach((function(e){n.push({image:e})})),t.trim().length&&n.push({text:t}),0!==n.length&&(e.attachments.length>0?_.forEach(e.attachments,(function(n){e.$store.dispatch("uploadChatImages",n).then((function(n){e.$store.dispatch("sendMessageToFriends",{friend:e.friend,msg:t,img:n})}))})):e.$store.dispatch("sendMessageToFriends",{friend:e.friend,msg:t,img:null}),e.attachments=[],e.sheetVisible=!1,e.messagebar.clear(),t.length>0&&e.messagebar.focus())}},created:function(){this.$store.commit("setShowTabs",!1),this.$store.dispatch("getPostChatMessages")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Post Messages To Your Friends","back-link":"Back"}}),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.post_chat_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,r){return n("f7-message",{key:r,attrs:{type:t.type,image:t.image,name:t.name,avatar:t.avatar}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),t.text?n("span",{staticClass:"chat-time",attrs:{slot:"text"},domProps:{innerHTML:e._s(t.smalldate)},slot:"text"}):e._e()])}))],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}})],1)}),[],!1,null,null,null).exports,hc={data:function(){return{group_name:"New Group"}},computed:{group_image_url:function(){return this.$store.getters.group_image_url},files:function(){return this.$store.getters.files}},methods:{createGroup:function(){var e=this;return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n={}).name=e.group_name,n.pic=e.group_image_url,console.log(n),!e.files){t.next=8;break}return t.next=7,e.$store.dispatch("uploadFile","group_profile/");case 7:n.pic=t.sent;case 8:e.$store.dispatch("createGroup",n);case 9:case"end":return t.stop()}}),t)})))()},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setGroupImageURL")}},created:function(){this.$store.commit("setGroupImageURL","https://firebasestorage.googleapis.com/v0/b/whatchat-4c8cf.appspot.com/o/group_profile%2Fgroup%20icon.jpg?alt=media&token=2a2ef2b7-31fb-4677-a1d6-664c48791542")}},pc=(n(260),sl(hc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"newgroup"}},[n("f7-navbar",{attrs:{title:"New group","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("New group")]),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.group_image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.group_name,label:"Group Name",type:"text",placeholder:"Your group name","clear-button":""},on:{input:function(t){e.group_name=t.target.value}}})],1),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.createGroup}},[e._v("Create New Group")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})],1)],1)}),[],!1,null,"6ac28f14",null).exports),fc={data:function(){return{group_name:null}},computed:{p_members:function(){var e=I()(this.$store.getters.friends);return _.forEach(this.group_members,(function(t){var n=_.findIndex(e,t);e.splice(n,1)})),e},group_members:function(){return this.$store.getters.group_members}},methods:{add:function(e){var t={};t.newmember=e,t.group_name=this.group_name,this.$store.dispatch("addMember",t)}},created:function(){var e=this;return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.group_name=e.$f7route.params.group_name,e.$store.dispatch("getGroupMembers",e.group_name);case 2:case"end":return t.stop()}}),t)})))()}},mc=(n(261),sl(fc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"addmembers"}},[n("f7-navbar",{attrs:{title:"Add Members","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Add members")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.p_members,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"green"},on:{click:function(n){return e.add(t)}}},[e._v("Add")])],1)],1)})),1)],1)],1)}),[],!1,null,"45580f0e",null).exports),vc={data:function(){return{group_name:null}},computed:{group_members:function(){return this.$store.getters.group_members}},created:function(){this.group_name=this.$f7route.params.group_name,this.$store.dispatch("getGroupMembers",this.group_name)}},gc=(n(262),sl(vc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"groupinfo"}},[n("f7-navbar",{attrs:{title:"groupinfo","back-link":"Back"}}),e._v(" "),e.group_members.length>0?n("f7-block-title",[e._v(e._s(e.group_members.length)+" member"+e._s(e.group_members.length>1?"s":""))]):n("f7-block-title",[e._v("No members yet")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.group_members,(function(e,t){return n("f7-list-item",{key:t,attrs:{swipeout:"",title:e.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:e.photo_url},slot:"media"})])})),1)],1)],1)}),[],!1,null,"045a652f",null).exports),yc={data:function(){return{group_name:null}},methods:{remove:function(e){var t={};t.member=e,t.group_name=this.group_name,this.$store.dispatch("removeMember",t)}},computed:{group_members:function(){return this.$store.getters.group_members}},created:function(){this.group_name=this.$f7route.params.group_name,this.$store.dispatch("getGroupMembers",this.group_name)}},bc=(n(263),[{path:"/",component:ll},{path:"/signin/",component:bl},{path:"/firstpage/",component:wl},{path:"/signup/:phone",component:El},{path:"/editprofile/",component:Sl},{path:"/editprofilepicture/",component:xl},{path:"/phoneverify/",component:Pl},{path:"/members/",component:Fl},{path:"/search/",component:Ul},{path:"/newversion/",component:Ol},{path:"/about/",name:"AboutPage",component:cl},{path:"/form/",component:ul},{path:"/catalog/",component:dl},{path:"/pay4me/:frd",component:Bl},{path:"/settings/",component:hl},{path:"/contacts/",component:Nl},{path:"/requests/",component:Kl},{path:"/chat/:frd",component:Zl},{path:"/usernotifications/",component:tc},{path:"/livescores/",component:Vl},{path:"/sportsupdate/",component:oc},{path:"/standings/",component:Wl},{path:"/affiliate/",component:nc},{path:"/beamoderator/",component:ic},{path:"/chatgroups/",component:lc},{path:"/chatgroup/",component:uc},{path:"/postfriends/",component:dc},{path:"/newgroup/",component:pc},{path:"/addmembers/:group_name",component:mc},{path:"/groupmembers/:group_name",component:sl(yc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"groupmembers"}},[n("f7-navbar",{attrs:{title:"groupmembers","back-link":"Back"}}),e._v(" "),e.group_members.length>0?n("f7-block-title",[e._v(e._s(e.group_members.length)+" member"+e._s(e.group_members.length>1?"s":""))]):n("f7-block-title",[e._v("No members yet")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.group_members,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"red"},on:{click:function(n){return e.remove(t)}}},[e._v("Remove")])],1)],1)})),1)],1)],1)}),[],!1,null,"12041dd4",null).exports},{path:"/groupinfo/:group_name",component:gc},{path:"/dynamic-route/blog/:blogId/post/:postId/",component:pl},{path:"/request-and-load/user/:userId/",async:function(e,t,n,r){var i=this.app;i.preloader.show();e.params.userId;setTimeout((function(){i.preloader.hide(),n({component:fl},{context:{user:{firstName:"Vladimir",lastName:"Kharlampidi",about:"Hello, i am creator of Framework7! Hope you like it!",links:[{title:"Framework7 Website",url:"http://framework7.io"},{title:"Framework7 Forum",url:"http://forum.framework7.io"}]}}})}),1e3)}},{path:"(.*)",component:ml}]);nl.a.initializeApp({apiKey:"AIzaSyBOrXDYXQam4RhmVBe_ea2EwUHvRrTiwms",authDomain:"penpalamerica.firebaseapp.com",databaseURL:"https://penpalamerica.firebaseio.com",projectId:"penpalamerica",storageBucket:"penpalamerica.appspot.com",messagingSenderId:"737042362490",appId:"1:737042362490:web:55c82badf582b5765b4bc3"});var _c={data:function(){return{f7params:{id:"com.penpalamerica.penpal",name:"Penpal America",theme:"auto",data:function(){return{user:{firstName:"John",lastName:"Doe"},products:[{id:"1",title:"Apple iPhone 8",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nisi tempora similique reiciendis, error nesciunt vero, blanditiis pariatur dolor, minima sed sapiente rerum, dolorem corrupti hic modi praesentium unde saepe perspiciatis."},{id:"2",title:"Apple iPhone 8 Plus",description:"Velit odit autem modi saepe ratione totam minus, aperiam, labore quia provident temporibus quasi est ut aliquid blanditiis beatae suscipit odio vel! Nostrum porro sunt sint eveniet maiores, dolorem itaque!"},{id:"3",title:"Apple iPhone X",description:"Expedita sequi perferendis quod illum pariatur aliquam, alias laboriosam! Vero blanditiis placeat, mollitia necessitatibus reprehenderit. Labore dolores amet quos, accusamus earum asperiores officiis assumenda optio architecto quia neque, quae eum."}]}},routes:bc,input:{scrollIntoViewOnFocus:this.$device.cordova&&!this.$device.electron,scrollIntoViewCentered:this.$device.cordova&&!this.$device.electron},statusbar:{overlay:this.$device.cordova&&this.$device.ios||"auto",iosOverlaysWebView:!0,androidOverlaysWebView:!1}},username:"",password:""}},mixins:[gl],computed:{user_pageSize:function(){return this.$store.getters.user_pageSize},show_tabbar:function(){return this.$store.getters.show_tabbar},signed_in:function(){return this.$store.getters.signed_in},photo_url:function(){return this.$store.getters.photo_url},display_name:function(){return this.$store.getters.display_name},user_location:function(){return this.$store.getters.user_location},user_club:function(){return this.$store.getters.user_club},profile_message:function(){return this.$store.getters.profile_message}},methods:{deleteAccount:function(){var e=this;this.$f7.dialog.create({title:"Delete Account?",text:"Your Profile including your messages will be deleted. Confirm if you want to continue with the Account Deletion",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,n){if(1==n){var r=e.$f7;e.$store.dispatch("deleteAccount"),e.$f7.dialog.close(),r.panel.close()}},on:{open:function(){}}}).open()},editClub:function(){var e=this;this.$f7.dialog.create({title:"Enter your new club name",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New Club" maxlength="10"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.club=r,e.$store.dispatch("editClub",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},editLocation:function(){var e=this;this.$f7.dialog.create({title:"Enter New Location",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New Location" maxlength="50"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.location=r,e.$store.dispatch("editLocation",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},pageSize:function(){var e=this;this.$f7.dialog.create({title:"Enter Page Size(50-300)",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New PageSize" required validate pattern="[0-9]*" data-error-message="Only numbers please!"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.pageSize=r,e.$store.dispatch("editPageSize",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){}}}).open()},editProfileMessage:function(){var e=this;this.$f7.dialog.create({title:"Enter New Profile Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter New Profile Message" maxlength="200"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.profileMessage=r,e.$store.dispatch("editProfileMessage",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},sendTokenToServer:function(e){console.log(e)},alertLoginData:function(){this.$f7.dialog.alert("Username: "+this.username+"<br>Password: "+this.password)},signOut:function(){var e=this.$f7;this.$store.dispatch("signOut"),e.panel.close()}},mounted:function(){this.$f7ready((function(e){e.device.cordova&&il.init(e)}))}},wc=(n(264),sl(_c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-app",{attrs:{params:e.f7params}},[n("f7-panel",{attrs:{left:"",cover:"","theme-dark":""}},[n("f7-view",[n("f7-page",[n("f7-block",[n("f7-block",[e._v("Display Name:  "+e._s(e.display_name))])],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.photo_url,alt:""}})]),e._v(" "),n("f7-block",[e._v("\n          Location:  "+e._s(e.user_location)+"\n          "),n("f7-link",{on:{click:function(t){return e.editLocation()}}},[n("f7-icon",{attrs:{material:"edit",color:"blue"}})],1)],1),e._v(" "),n("f7-block",[e._v("\n          Profile Message:  "+e._s(e.profile_message)+"\n          "),n("f7-link",{on:{click:function(t){return e.editProfileMessage()}}},[n("f7-icon",{attrs:{material:"edit",color:"blue"}})],1)],1),e._v(" "),n("f7-block",[e._v("\n          Page Size:  "+e._s(e.user_pageSize)+"\n          "),n("f7-link",{on:{click:function(t){return e.pageSize()}}},[n("f7-icon",{attrs:{material:"edit",color:"blue"}})],1)],1),e._v(" "),n("f7-block",[e._v("\n          Delete Account\n          "),n("f7-link",{on:{click:function(t){return e.deleteAccount()}}},[n("f7-icon",{attrs:{material:"delete",color:"blue"}})],1)],1),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{view:".view-main","panel-close":"",title:"Sign out"},on:{click:e.signOut}})],1)],1)],1)],1),e._v(" "),e.signed_in?n("f7-views",{staticClass:"safe-areas",attrs:{tabs:""}},[n("f7-toolbar",{directives:[{name:"show",rawName:"v-show",value:e.show_tabbar,expression:"show_tabbar"}],attrs:{tabbar:"",labels:"",bottom:""}},[n("f7-link",{attrs:{"tab-link":"#view-home","tab-link-active":"","icon-ios":"f7:home_fil","icon-aurora":"f7:home_fil","icon-md":"material:home",text:"Friends"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-members","icon-ios":"f7:persons_round_fill","icon-aurora":"f7:persons_round_fill","icon-md":"material:person",text:"Members"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-search","icon-ios":"f7:persons_round_fill","icon-aurora":"f7:persons_round_fill","icon-md":"material:search",text:"Search"}})],1),e._v(" "),n("f7-view",{attrs:{id:"view-home",main:"",tab:"","tab-active":"",url:"/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-members",name:"members",tab:"",url:"/members/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-search",name:"search",tab:"",url:"/search/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-chatgroups",name:"chatgroups",tab:"",url:"/chatgroups/"}})],1):e._e(),e._v(" "),e.signed_in?e._e():n("f7-view",{attrs:{url:"/firstpage/",main:!0}}),e._v(" "),n("f7-popup",{attrs:{id:"my-popup"}},[n("f7-view",[n("f7-page",[n("f7-navbar",{attrs:{title:"Popup"}},[n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("p",[e._v("Popup content goes here.")])])],1)],1)],1),e._v(" "),n("f7-login-screen",{attrs:{id:"my-login-screen"}},[n("f7-view",[n("f7-page",{attrs:{"login-screen":""}},[n("f7-login-screen-title",[e._v("Login")]),e._v(" "),n("f7-list",{attrs:{form:""}},[n("f7-list-input",{attrs:{type:"text",name:"username",placeholder:"Your username",value:e.username},on:{input:function(t){e.username=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{type:"password",name:"password",placeholder:"Your password",value:e.password},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-list",[n("f7-list-button",{attrs:{title:"Sign In","login-screen-close":""},on:{click:e.alertLoginData}}),e._v(" "),n("f7-block-footer",[e._v("\n            Some text about login information.\n            "),n("br"),e._v('Click "Sign In" to close Login Screen\n          ')])],1)],1)],1)],1)],1)}),[],!1,null,"2fa2b8b0",null).exports),kc=n(65),Ec=n(19),Tc=n.n(Ec);function Sc(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n}var Cc,xc={state:{upload_button:!1,app_db_version:null,app_version:null,signed_in:!1,signed_up:!1,valid_inputs:!0,show_resend_email:!1,photo_url:null,display_name:null,user_location:null,user_pageSize:null,profile_message:null,total_message:null},getters:{upload_button:function(e){return e.upload_button},user_pageSize:function(e){return e.user_pageSize},app_version:function(e){return e.app_version},app_db_version:function(e){return e.app_db_version},valid_inputs:function(e){return e.valid_inputs},signed_in:function(e){return e.signed_in},signed_up:function(e){return e.signed_up},show_resend_email:function(e){return e.show_resend_email},photo_url:function(e){return e.photo_url},display_name:function(e){return e.display_name},user_location:function(e){return e.user_location},profile_message:function(e){return e.profile_message},total_message:function(e){return e.total_message}},mutations:{setUploadButton:function(e,t){e.upload_button=t},setUserPageSize:function(e,t){e.user_pageSize=t},setAppVersion:function(e,t){e.app_version=t},setAppDbVersion:function(e,t){e.app_db_version=t},setValidInputs:function(e,t){e.valid_inputs=t},setSignedIn:function(e,t){e.signed_in=t},setSignedUp:function(e,t){e.signed_up=t},setShowResendEmail:function(e,t){e.show_resend_email=t},setPhotoURL:function(e,t){e.photo_url=t},setDisplayName:function(e,t){e.display_name=t},setUserLocation:function(e,t){e.user_location=t},setProfileMessage:function(e,t){e.profile_message=t},setTotalMessage:function(e,t){e.total_message=t}},actions:{checkConnection:function(e){return Tc()(e),new Promise((function(e,t){var n=navigator.connection.type,r={};r[Connection.UNKNOWN]="Unknown connection",r[Connection.ETHERNET]="Ethernet connection",r[Connection.WIFI]="WiFi connection",r[Connection.CELL_2G]="Cell 2G connection",r[Connection.CELL_3G]="Cell 3G connection",r[Connection.CELL_4G]="Cell 4G connection",r[Connection.CELL]="Cell generic connection",r[Connection.NONE]="No network connection","No network connection"==r[n]?e("offline"):e("online")})).catch((function(e){reject(e)}))},getAppDbVersion:function(e){var t=e.commit;nl.a.database().ref("appVersion").child("version").once("value",(function(e){null!=e.val()&&null!=e.val()?t("setAppDbVersion",e.val()):t("setAppDbVersion",0)}))},getAppVersion:function(e){var t=e.commit;"Android"==Sc()&&t("setAppVersion","Android"),"iOS"==Sc()&&t("setAppVersion","iOS")},resetVerifyInputs:function(e){(0,e.commit)("setValidInputs",!0)},verifyInputs:function(e,t){var n=e.commit;n("setValidInputs",!1),n("setAlertMessage",t)},signIn:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s,l,c,u,d;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=e.dispatch,o="0",s="0",l="",n.next=6,nl.a.auth().signInWithEmailAndPassword(t.email,t.password).then((function(e){console.log("check check");nl.a.auth().onAuthStateChanged((function(e){if(null!=e)if(e.emailVerified){Za.dialog.close(),r("setAlertMessage","Welcome ".concat(e.displayName)),r("setSignedIn",!0),r("setShowResendEmail",!1);var t=nl.a.auth().currentUser.uid;nl.a.database().ref("users/"+t).update({userStatus:"online"})}else Za.dialog.close(),r("setSignedIn",!1),r("setAlertMessage","Please verify with your email"),r("setShowResendEmail",!0);else Za.dialog.close()}))})).catch((function(e){s="1",l=e.message,console.log("Old user",l)}));case 6:if(console.log("continue",s),"1"!=s){n.next=24;break}return(c={}).email=t.email,c.password=t.password,n.next=13,a("checkUserExistsAmerica",c);case 13:if(!(null!=(u=n.sent)&&u.length>0)){n.next=23;break}return o="1",n.next=18,a("signUpOldUser",u);case 18:return d=n.sent,n.next=21,a("deleteOldAccount",d);case 21:n.next=24;break;case 23:r("setAlertMessage",l);case 24:return n.abrupt("return",o);case 25:case"end":return n.stop()}}),n)})))()},signUp:function(e,t){var n=e.commit,r=e.dispatch,i=t.country;i=(i=(i=(i=(i=i.replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),null!=t.email&&null!=t.password&&nl.a.auth().createUserWithEmailAndPassword(t.email,t.password).then((function(e){nl.a.database().ref("users").child(e.user.uid).set({uid:e.user.uid,country:i,name:t.name,email:t.email,gender:t.gender,phonenumber:t.phonenumber,location:t.location,profileMessage:t.profileMessage,birthDate:t.dateofbirth,emailverified:!1,photo_url:t.photoURL,userType:t.userType,userStatus:t.userStatus,lastSeen:t.lastSeen,userToken:t.userToken,dateCreated:t.lastSeen,payout:"0",photoUpload:t.photoUpload,pageSize:3,serviceExpiration:t.lastSeen}),e.user.updateProfile({displayName:t.name,photoURL:t.photoURL}).then((function(){r("sendVerification"),n("setSignedUp",!0)})).catch((function(e){n("setAlertMessage",e.message)}))})).catch((function(e){n("setAlertMessage",e.message)}))},signUpOldUser:function(e,t){var n=e.commit,r=e.dispatch;if(null!=t[0].email&&null!=t[0].password)return nl.a.auth().createUserWithEmailAndPassword(t[0].email,t[0].password).then((function(e){nl.a.database().ref("users").child(e.user.uid).set({uid:e.user.uid,photoUpload:t[0].photoUpload,country:t[0].country,name:t[0].name,email:t[0].email,gender:t[0].gender,phonenumber:t[0].phonenumber,location:t[0].location,profileMessage:t[0].profileMessage,birthDate:t[0].birthDate,emailverified:t[0].emailverified,photo_url:t[0].photo_url,userType:t[0].userType,userStatus:t[0].userStatus,lastSeen:t[0].lastSeen,userToken:t[0].userToken,dateCreated:t[0].lastSeen,payout:t[0].payout,pageSize:t[0].pageSize,serviceExpiration:t[0].serviceExpiration}),e.user.updateProfile({displayName:t[0].name,photoURL:t[0].photoURL}).then((function(){r("sendVerification"),n("setSignedUp",!0),console.log("updated profile",t[0].email)})).catch((function(e){console.log(e.message),n("setAlertMessage",e.message)}))})).catch((function(e){console.log(e.message),n("setAlertMessage",e.message)})),t[0].uid;console.log("parameters are null")},signOut:function(e){var t=e.commit;console.log("sign out");var n=nl.a.auth().currentUser.uid;nl.a.database().ref("users/"+n).update({userStatus:"offline"}),nl.a.auth().signOut().then((function(){t("setSignedIn",!1)}))},countryExist:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,console.log("country Exists module"),a=(a=(a=(a=(a=(a=t).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),n.next=10,r("checkUserExists2",a);case 10:"#"==n.sent&&nl.a.database().ref("/appState").child(a).set({appStateValue:"0"}).catch((function(e){}));case 12:case"end":return n.stop()}}),n)})))()},sendVerification:function(e){var t=e.commit,n=nl.a.auth().currentUser;n.sendEmailVerification().then((function(){t("setAlertMessage","A verification email has been sent to ".concat(n.email))})).catch((function(e){}))}}},Mc=n(212),$c={state:{image_url:"https://penpalamerica.com/images/profilepicture.png",files:null,images:[],group_image_url:"https://penpalamerica.com/images/profilepicture.png",uploadFile:0},getters:{image_url:function(e){return e.image_url},files:function(e){return e.files},images:function(e){return e.images},group_image_url:function(e){return e.group_image_url},uploadFile:function(e){return e.uploadFile}},mutations:{setUploadFile:function(e,t){e.uploadFile=t},setImageURL:function(e,t){e.image_url=t},setGroupImageURL:function(e,t){e.group_image_url=t},setFiles:function(e,t){e.files=t},setImages:function(e,t){e.images=t}},actions:{readFileMessage:function(e){for(var t=e.commit,n=event.target.files,r=0;r<n.length;r++){var i=n[r];if(i.type.match("image")){var a=new FileReader,o=[];a.addEventListener("load",(function(e){var t=e.target;o.push(t.result)})),t("setImages",o),a.readAsDataURL(i)}}},readFile:function(e,t){var n=e.commit,r=event.target.files;n("setFiles",r);var i=new FileReader,a=r[0];a.size<=2097152?(i.readAsDataURL(a),i.addEventListener("load",(function(){var e=i.result;n(t,e)}))):n("setAlertMessage","The image size is greater than 2MB")},uploadFile:function(e,t){var n=e.commit,r=e.state;return new Promise((function(e,i){var a=r.files[0],o=nl.a.storage().ref(t+"/"+Object(Mc.v4)()+".jpg").put(a);o.on("state_changed",(function(e){var t=e.bytesTransferred/e.totalBytes*100;n("setUploadFile",t)}),(function(e){i(e)}),(function(){o.snapshot.ref.getDownloadURL().then((function(t){e(t)}))}))}))},uploadChatImages:function(e,t){e.commit;return new Promise((function(e,n){var r=Math.random().toString(36).substr(2,9),i=nl.a.storage().ref("chat_images/"+"".concat(r,".png")).putString(t,"data_url",{contentType:"image/png"});i.on("state_changed",(function(e){var t=e.bytesTransferred/e.totalBytes*100;console.log("Upload is "+t+"% done")}),(function(e){n(e)}),(function(){i.snapshot.ref.getDownloadURL().then((function(t){e(t)}))}))}))}}},Lc=nl.a.database().ref("/requests"),Pc=nl.a.database().ref("/friends"),Oc=nl.a.database().ref("/chats"),Dc=nl.a.database().ref("/users"),Ic=nl.a.database().ref("/groups"),Ac=nl.a.database().ref("/messageCount"),Nc=nl.a.database().ref("/typingMessage"),Rc=nl.a.database().ref("/blockfriends"),Yc=nl.a.database().ref("/reportfriends"),Bc=nl.a.database().ref("/userNotifications"),jc=nl.a.database().ref("/postMessages"),Fc=(n(267),{state:{appUpdate:!1,updatePreloader:0,searchResult:0,top_page:!1,bottom_page:!0,back_page:!1,forward_page:!0,db_reference:null,db_cursor:null,onesignal_playerID:null,sent_by:null,subscribe_affiliate_friend:!1,reference:null,contacts:[],search_contacts:[],friends:[],friend_requests:[],message_count:[],chat_messages:[],typing_message:0,friend_status:0,block_by_friend:0,members:[],user_details:[]},getters:{updatePreloader:function(e){return e.updatePreloader},appUpdate:function(e){return e.appUpdate},searchResult:function(e){return e.searchResult},top_page:function(e){return e.top_page},bottom_page:function(e){return e.bottom_page},back_page:function(e){return e.back_page},forward_page:function(e){return e.forward_page},db_reference:function(e){return e.db_reference},db_cursor:function(e){return e.db_cursor},onesignal_playerID:function(e){return e.onesignal_playerID},sent_by:function(e){return e.sent_by},subscribe_affiliate_friend:function(e){return e.subscribe_affiliate_friend},reference:function(e){return e.reference},contacts:function(e){return e.contacts},search_contacts:function(e){return e.search_contacts},friends:function(e){return e.friends},members:function(e){return e.members},friend_requests:function(e){return e.friend_requests},message_count:function(e){return e.message_count},chat_messages:function(e){return e.chat_messages},typing_message:function(e){return e.typing_message},friend_status:function(e){return e.friend_status},block_by_friend:function(e){return e.block_by_friend},user_details:function(e){return e.user_details}},mutations:{setAppUpdate:function(e,t){e.appUpdate=t},setSearchResult:function(e,t){e.searchResult=t},setUpdatePreloader:function(e,t){e.updatePreloader=t},setTopPage:function(e,t){e.top_page=t},setBottomPage:function(e,t){e.bottom_page=t},setBackPage:function(e,t){e.back_page=t},setForwardPage:function(e,t){e.forward_page=t},setDbReference:function(e,t){e.db_reference=t},setDbCursor:function(e,t){e.db_cursor=t},setOnesignalPlayerID:function(e,t){e.onesignal_playerID=t},setSentBy:function(e,t){e.sent_by=t},setSubscribeAffiliateFriend:function(e,t){e.subscribe_affiliate_friend=t},setReference:function(e,t){e.reference=t},setSearchContacts:function(e,t){e.search_contacts=t},setContacts:function(e,t){e.contacts=t},setFriends:function(e,t){e.friends=t},setMembers:function(e,t){e.members=t},setFriendRequests:function(e,t){e.friend_requests=t},setMessageCount:function(e,t){e.message_count=t},setChatMessages:function(e,t){e.chat_messages=t},setTypingMessage:function(e,t){e.typing_message=t},setFriendStatus:function(e,t){e.friend_status=t},setBlockByFriend:function(e,t){e.block_by_friend=t},setUserDetails:function(e,t){e.user_details=t}},actions:(Cc={deleteOldAccount:function(e,t){e.commit;console.log("delete record",JSON.stringify(t))},checkUserExistsAmerica:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.dispatch,r=[],a=new Promise((function(e,n){nl.a.database().ref("users").orderByValue().on("value",(function(n){var i=n.val();for(var a in i)if(i[a].email===t.email){var o={};i[a].photo.includes("https://firebasestorage.googleapis.com/v0/b/penpalamerica.appspot.com/o/image_profile")?o.photoUpload=!0:o.photoUpload=!1,o.uid=i[a].uid,o.password=t.password,o.country=i[a].country,o.name=i[a].name,o.email=i[a].email,o.gender=i[a].gender,o.phonenumber=i[a].phonenumber,o.location=i[a].location,o.profileMessage=i[a].profileMessage,o.birthDate=i[a].birthDate,o.emailverified=!1,o.photo_url=i[a].photo,o.userType=i[a].userType,o.userStatus=i[a].userStatus,o.lastSeen=i[a].lastSeen,o.userToken=i[a].userToken,o.dateCreated=i[a].lastSeen,o.payout="0",o.pageSize=3,o.serviceExpiration=i[a].serviceExpiration,r.push(o);break}e(r)}))})),n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)})))()},sendLatestMessage:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s,l,c;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,a=nl.a.auth().currentUser.uid,o=t.userkey,s=t.friend.uid,t.friend.frd_key,l="",n.next=8,r("getUserMessageCount",t);case 8:if(null!=(c=n.sent)?isNaN(c)?c=0:c++:c=0,l=null!=t.img?"photo":t.msg,n.prev=11,null==l||null==s){n.next=15;break}return n.next=15,Pc.child(s).child(o).update({message_count:c,latest_message:l,uid:a});case 15:n.next=19;break;case 17:n.prev=17,n.t0=n.catch(11);case 19:case"end":return n.stop()}}),n,null,[[11,17]])})))()},getOnesignalPlayerID:function(e,t){var n=e.commit,r=t;nl.a.database().ref("oneSignal").child(r).once("value",(function(e){null!=e.val()&&null!=e.val()?n("setOnesignalPlayerID",e.val().playerID):n("setOnesignalPlayerID",null)}))},getFriendAffiliate:function(e,t){var n=e.commit,r=t;nl.a.database().ref("pay4me").child(r).once("value",(function(e){null!=e.val()&&null!=e.val()?n("setSubscribeAffiliateFriend",!0):n("setSubscribeAffiliateFriend",!1)}))},updateReadMessage:function(e,t){e.dispatch;var n=nl.a.auth().currentUser.uid,r=(t.userkey,t.uid);t.frd_key,nl.a.auth().currentUser;Oc.child(r).child(n).on("value",(function(e){var t=e.val();_.forEach(t,(function(e,t){try{Oc.child(r).child(n).child(t).update({read:"2"})}catch(e){console.log(e)}}))}))},resetMessageCount:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Tc()(e),r=nl.a.auth().currentUser.uid,a=t,console.log("blue",a,r,t),n.prev=4,n.next=7,Pc.child(r).child(a).update({message_count:0});case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(4),console.log(n.t0.message);case 12:case"end":return n.stop()}}),n,null,[[4,9]])})))()},getUserMessageCount:function(e,t){return Tc()(e),new Promise((function(e,n){var r=t.friend.uid,i=t.userkey;Pc.child(r).child(i).once("value",(function(t){t.val()?e(t.val().message_count):e("0")})).catch((function(e){n(e)}))}))},confirmFriendRequest:function(e,t){e.dispatch;try{Pc.child(nl.a.auth().currentUser.uid).push({uid:t.friend.uid,message_count:"0",latest_message:" "}),Pc.child(t.friend.uid).push({message_count:"0",latest_message:" ",uid:nl.a.auth().currentUser.uid})}catch(e){reject(err)}return"010220"},createFriendTables:function(e,t){e.dispatch;try{var n=Pc.child(nl.a.auth().currentUser.uid).push().key;Pc.child(nl.a.auth().currentUser.uid).child(n).update({uid:t.friend.uid,message_count:"0",latest_message:" "}),Pc.child(t.friend.uid).child(n).update({message_count:"0",latest_message:" ",uid:nl.a.auth().currentUser.uid})}catch(e){console.log(e)}return n},sendDownTypingMessage:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Tc()(e),r=nl.a.auth().currentUser.uid,a=t.uid,t.frd_key,n.prev=4,n.next=7,Nc.child(r).child(a).update({friend_name:nl.a.auth().currentUser.displayName,friend_photo_url:nl.a.auth().currentUser.photoURL,typingMessage:"1",timestamp:nl.a.database.ServerValue.TIMESTAMP});case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(4),console.log(n.t0.message);case 12:case"end":return n.stop()}}),n,null,[[4,9]])})))()},sendUpTypingMessage:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Tc()(e),r=t.uid,a=nl.a.auth().currentUser.uid,n.prev=3,n.next=6,Nc.child(a).child(r).update({friend_name:nl.a.auth().currentUser.displayName,friend_photo_url:nl.a.auth().currentUser.photoURL,typingMessage:"0",timestamp:nl.a.database.ServerValue.TIMESTAMP});case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(3),console.log(n.t0.message);case 11:case"end":return n.stop()}}),n,null,[[3,8]])})))()},getTypingMessages:function(e,t){var n=e.commit,r=t.uid,i=nl.a.auth().currentUser.uid;Nc.child(t.uid).child(i).on("value",(function(e){r==t.uid&&(n("setSentBy",t.uid),e.val()&&"1"==e.val().typingMessage&&r==t.uid?n("setTypingMessage","1"):n("setTypingMessage","0"))}))},getUserKey:function(e,t){return Tc()(e),new Promise((function(e,n){var r=t.friend.uid;Pc.child(r).orderByChild("uid").equalTo(nl.a.auth().currentUser.uid).once("value",(function(t){var n;for(var r in t.val())n=r;e(n)})).catch((function(e){n(e)}))}))},getUserMessageCount2:function(e,t){return Tc()(e),new Promise((function(e,n){var r=t.friend.uid,i=t.friend.userKey;Ac.child(r).child(i).orderByChild("uid").equalTo(nl.a.auth().currentUser.uid).on("value",(function(t){e(t.message_count)})).catch((function(e){n(e)}))}))},getChatMessages:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.dispatch,r=e.commit,a=nl.a.auth().currentUser,Oc.child(a.uid).child(t.uid).on("value",(function(e){var n=e.val();Oc.child(t.uid).child(a.uid).on("value",(function(e){var i=e.val(),o={};o=_.merge(n,i),o=_.sortBy(o,(function(e){return new Date(e.timestamp)})),_.forEach(o,(function(e){e.type=e.sentby==a.uid?"sent":"received",e.name=e.sentby==a.uid?a.displayName:t.name,e.date=Il()(e.timestamp).format("MMMM Do dddd"),e.smalldate=Il()(e.timestamp).format("LTS"),e.sentby==a.uid?e.status="1":e.status="0"}));var s=_.groupBy(o,"date");r("setChatMessages",s),r("setSentBy",t.uid)}))}));case 3:case"end":return n.stop()}}),n)})))()},getTotalMessage:function(e){var t=e.commit,n=nl.a.auth().currentUser.uid;Pc.child(n).on("value",(function(e){var n=0,r=e.val();_.forEach(r,(function(e){e.message_count>0&&(n+=Number(e.message_count))})),t("setTotalMessage",n)}))},confirmRequest:function(e,t){var n=e.dispatch;return new Promise((function(e,r){Pc.child(nl.a.auth().currentUser.uid).push({uid:t.uid}).then((function(){Pc.child(t.uid).push({uid:nl.a.auth().currentUser.uid})})).then((function(){n("deleteRequest",t).then((function(){e(!0)}))})).catch((function(e){r(e)}))}))},deleteRequest:function(e,t){return Tc()(e),new Promise((function(e,n){Lc.child(nl.a.auth().currentUser.uid).orderByChild("sender").equalTo(t.uid).once("value",(function(t){var r;for(var i in t.val())r=i;Lc.child(nl.a.auth().currentUser.uid).child(r).remove().then((function(){e(!0)})).catch((function(e){n(e)}))})).catch((function(e){n(e)}))}))},getMyRequests:function(e){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getAllUsers");case 3:a=t.sent,Lc.child(nl.a.auth().currentUser.uid).on("value",(function(e){var t=_.map(e.val(),"sender"),r=[];_.forEach(t,(function(e){var t=_.find(a,["uid",e]);r.push(t)})),n("setFriendRequests",r)}));case 5:case"end":return t.stop()}}),t)})))()},getUserDetails:function(e){var t=e.commit;nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).on("value",(function(e){t("setUserDetails",e.val())}))},getMyFriends:function(e,t){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getAllUsers");case 3:a=t.sent,Pc.child(nl.a.auth().currentUser.uid).on("value",(function(e){var t=e.val(),r=[];_.forEach(t,(function(e,t){var n=_.find(a,["uid",e.uid]);try{null!=n&&null!=n?null!=e.latest_message&&(n.latest_message=e.latest_message,n.message_count=e.message_count):null!=n&&null!=n&&(n.latest_message="",n.message_count=""),null!=n&&null!=n&&(n.frd_key=t,r.push(n))}catch(e){}})),n("setFriends",r)}));case 5:case"end":return t.stop()}}),t)})))()},getMyFriendsAI:function(e){return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,Pc.child(nl.a.auth().currentUser.uid).on("value",(function(e){if(null!=e.val()){var t=e.val(),r=[];_.forEach(t,(function(e,t){null==e&&null==e||Dc.child(e.uid).orderByChild("uid").once("value",(function(n){if(e.uid!=nl.a.auth().currentUser.uid){var i=n.val();null!=i&&null!=i&&(null!=e.latest_message?(i.latest_message=e.latest_message,i.message_count=e.message_count):null!=i&&null!=i&&(i.latest_message="",i.message_count="")),i.frd_key=t,r.push(i)}})).catch((function(e){reject(e)}))})),n("setFriends",r)}}));case 2:case"end":return t.stop()}}),t)})))()},sendMessage:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s,l,c;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.next=3,r("getUserKey",t);case 3:return a=n.sent,t.friend.userKey=a,(o=t).userkey=a,n.next=9,r("getMyFriendsList",t);case 9:if(!n.sent){n.next=14;break}r("sendLatestMessage",o),n.next=23;break;case 14:return n.next=16,r("createFriendTables",o);case 16:return s=n.sent,t.friend.userKey=s,o.userkey=s,o.frd_key=s,t.friend.frd_key=s,n.next=23,r("sendLatestMessage",o);case 23:return n.prev=23,n.next=26,Oc.child(nl.a.auth().currentUser.uid).child(t.friend.uid).push({sentby:nl.a.auth().currentUser.uid,text:t.msg,image:t.img,read:"1",timestamp:nl.a.database.ServerValue.TIMESTAMP});case 26:l=nl.a.auth().currentUser.uid,nl.a.database().ref("users/"+l).update({userStatus:"online"}),c=nl.a.auth().currentUser.uid,nl.a.database().ref("users/"+c).update({userStatus:"online",lastSeen:nl.a.database.ServerValue.TIMESTAMP}),n.next=36;break;case 33:n.prev=33,n.t0=n.catch(23),console.log(n.t0.message);case 36:case"end":return n.stop()}}),n,null,[[23,33]])})))()},sendNotification:function(e,t){Tc()(e);var r={app_id:"1bdd80c5-cabb-4296-9e59-ef5fa8638eed",contents:{en:"You have a new message from "+nl.a.auth().currentUser.displayName},include_player_ids:[t]},i={host:"onesignal.com",port:443,path:"/api/v1/notifications",method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"}},a=n(268).request(i,(function(e){e.on("data",(function(e){}))}));a.on("error",(function(e){console.log("ERROR:"),console.log(e)})),a.write(JSON.stringify(r)),a.end()},getMyFriendsList:function(e,t){return Tc()(e),new Promise((function(e,n){var r=t.friend.uid;Pc.child(r).orderByChild("uid").equalTo(nl.a.auth().currentUser.uid).once("value",(function(t){var n=null;for(var r in t.val())n=r;e(n)})).catch((function(e){n(e)}))}))},checkUserExists2:function(e,t){return Tc()(e),new Promise((function(e,n){nl.a.database().ref("appState").child(t).on("value",(function(t){null!=t.val()&&null!=t.val()?e("OK"):e("#")}))}))},checkUserExists:function(e,t){return Tc()(e),new Promise((function(e,n){nl.a.database().ref("users").orderByValue().on("value",(function(n){var r=n.val(),i=[];_.forEach(r,(function(e){e.country==t&&i.push(e)})),e(i)}))}))},getAllUsers:function(e){return o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,e.dispatch,[],r=new Promise((function(e,t){nl.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i=[];_.forEach(r,(function(e){nl.a.auth().currentUser.uid!==e.uid&&i.push(e)})),n("setContacts",i),e(i)}))})),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()},mergeMessages:function(e,t){return Tc()(e),new Promise((function(e,n){var r=nl.a.auth().currentUser;Oc.child(r.uid).child(t.uid).on("value",(function(t){e(t.val())}))}))},mergeMessagesFriend:function(e,t){return Tc()(e),new Promise((function(e,n){var r=nl.a.auth().currentUser;Oc.child(t.uid).child(r.uid).on("value",(function(t){e(t.val())}))}))},getMessageCount:function(e){e.commit;return new Promise((function(e,t){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(t){e(t.val().country)}))}))},checkUserInFriendList:function(e,t){var n=e.commit,r=nl.a.auth().currentUser.uid;if(null!=t.frd_key){var i=t.frd_key;return new Promise((function(e,t){Pc.child(r).child(i).once("value",(function(t){t.val()&&e(t.val().message_count)})).catch((function(e){t(e)}))}))}n("setAlertMessage","User not in your friend list")},blockUser:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=e.dispatch,n.next=3,a("checkUserInFriendList",t);case 3:if(null!=n.sent){n.next=8;break}r("setAlertMessage","User not in your friend list"),n.next=13;break;case 8:return o=nl.a.auth().currentUser.uid,s=t.uid,n.next=12,Rc.child(o).child(s).update({flag:"1"});case 12:r("setAlertMessage","User has been blocked");case 13:case"end":return n.stop()}}),n)})))()},unBlockUser:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=e.dispatch,n.next=3,a("checkUserInFriendList",t);case 3:if(null!=n.sent){n.next=8;break}r("setAlertMessage","User not in your friend list"),n.next=14;break;case 8:return o=nl.a.auth().currentUser.uid,s=t.uid,t.frd_key,n.next=13,Rc.child(o).child(s).update({flag:"0"});case 13:r("setAlertMessage","User has been unblocked");case 14:case"end":return n.stop()}}),n)})))()},checkUserBlocked:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,null!=t.frd_key){n.next=5;break}return"0",r("setFriendStatus","0"),n.abrupt("return","0");case 5:return a=nl.a.auth().currentUser.uid,o=t.uid,s=new Promise((function(e,t){Rc.child(a).child(o).once("value",(function(t){t.val()&&r("setFriendStatus",t.val().flag),e(t.val())})).catch((function(e){t(e)}))})),n.abrupt("return",s);case 9:case"end":return n.stop()}}),n)})))()},checkBlockByFriend:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,null!=t.frd_key){n.next=5;break}return"0",r("setBlockByFriend","0"),n.abrupt("return","0");case 5:return a=nl.a.auth().currentUser.uid,o=t.uid,s=new Promise((function(e,t){Rc.child(o).child(a).once("value",(function(t){t.val()&&r("setBlockByFriend",t.val().flag),e(t.val())})).catch((function(e){t(e)}))})),n.abrupt("return",s);case 9:case"end":return n.stop()}}),n)})))()},getAllUsersMigration:function(e){return o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,e.dispatch,console.log("getAllUserMigration"),[],0,r=new Promise((function(e,t){nl.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i=0;_.forEach(r,(function(e,t){if(null==e.userName)nl.a.database().ref("users/".concat(t,"/")).remove(),console.log("user deleted",t);else if(null==e.birthDate&&(n=null!=e.age?Il()().subtract(e.age,"years").format("YYYY-MM-DD"):Il()().subtract(20,"years").format("YYYY-MM-DD"),nl.a.database().ref("users").child(t).update({name:e.userName,uid:t,phonenumber:e.phone,birthDate:n,emailverified:!1,photo_url:e.photo,userType:"1",userStatus:"offline",lastSeen:nl.a.database.ServerValue.TIMESTAMP,userToken:"web",dateCreated:nl.a.database.ServerValue.TIMESTAMP,payout:"0",photoUpload:!1,pageSize:3,serviceExpiration:nl.a.database.ServerValue.TIMESTAMP}),i++,console.log("Number ",i+" "+t),i>100))return!1})),e(i)}))})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})))()},reportUserToAdmin:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s,l;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=e.dispatch,n.next=3,a("checkUserInFriendList",t);case 3:if(null!=n.sent){n.next=8;break}r("setAlertMessage","User not in your friend list"),n.next=14;break;case 8:return o=nl.a.auth().currentUser.uid,s=t.uid,l=t.report_id,n.next=13,Yc.child(o).child(s).update({report_flag:l});case 13:r("setAlertMessage","Your report has been submitted and will be reviewed by Admin");case 14:case"end":return n.stop()}}),n)})))()},editLocation:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.location.length<2)){n.next=4;break}return r("setAlertMessage","Your Location is too short"),n.abrupt("return");case 4:if(!(t.location.length>50)){n.next=7;break}return r("setAlertMessage","Your Location is too long"),n.abrupt("return");case 7:return a=nl.a.auth().currentUser.uid,n.next=10,nl.a.database().ref("users/"+a).update({location:t.location});case 10:r("setUserLocation",t.location),r("setAlertMessage","Your location has been updated.");case 12:case"end":return n.stop()}}),n)})))()},editPageSize:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.pageSize.length<1)){n.next=4;break}return r("setAlertMessage","Your Page Size is empty"),n.abrupt("return");case 4:if(!(t.pageSize.length>3)){n.next=7;break}return r("setAlertMessage","Your Page Size is too large"),n.abrupt("return");case 7:return a=nl.a.auth().currentUser.uid,n.next=10,nl.a.database().ref("users/"+a).update({pageSize:parseInt(t.pageSize,10)});case 10:r("setUserPageSize",t.pageSize),r("setAlertMessage","Your pageSize has been updated.");case 12:case"end":return n.stop()}}),n)})))()},editProfileMessage:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.profileMessage.length<10)){n.next=4;break}return r("setAlertMessage","profile message is too short"),n.abrupt("return");case 4:if(!(t.profileMessage.length>200)){n.next=7;break}return self.$store.commit("setAlertMessage","profile message is too long"),n.abrupt("return");case 7:return a=nl.a.auth().currentUser.uid,n.next=10,nl.a.database().ref("users/"+a).update({profileMessage:t.profileMessage});case 10:r("setProfileMessage",t.profileMessage),r("setAlertMessage","Your new Profile Message has been updated.");case 12:case"end":return n.stop()}}),n)})))()},getReference:function(e,t){var n=e.commit,r="";"100000"==t&&(r="1"),"300000"==t&&(r="3"),"500000"==t&&(r="5");for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a<10;a++)r+=i.charAt(Math.floor(Math.random()*i.length));n("setReference",r)},deleteAccount:function(e){return o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,e.dispatch,r=nl.a.auth().currentUser.uid,nl.a.database().ref("users/".concat(r,"/")).remove(),nl.a.auth().currentUser.delete(),nl.a.auth().signOut().then((function(){n("setSignedIn",!1)})),n("setAlertMessage","Your Account has been deleted");case 7:case"end":return t.stop()}}),t)})))()},addModerator:function(e,t){var n=e.commit;nl.a.database().ref("users/"+t).update({userType:"2"}),nl.a.database().ref("userProfile/"+t).update({userType:"2"}),n("setAlertMessage","User Account has been changed to Moderator")},removeModerator:function(e,t){var n=e.commit;nl.a.database().ref("users/"+t).update({userType:"1"}),nl.a.database().ref("userProfile/"+t).update({userType:"1"}),n("setAlertMessage","Moderator Profile has been removed from your Account")},getAllUsersNew:function(e){return o()(i.a.mark((function t(){var n,r,a,o,s,l;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,a=nl.a.database().ref("/users"),n("setDbReference",a),o=nl.a.auth().currentUser.uid,t.next=6,r("getUserPageSize");case 6:return s=t.sent,console.log(s),l=new Promise((function(e,t){(a=(a=a.orderByKey()).limitToFirst(s+1)).once("value").then((function(t){var r=[],i={};t.forEach((function(e){r.push(e.key),r.length!=s+1?e.key!=o&&(i[e.key]=e.val()):n("setDbCursor",e.key)})),n("setContacts",i),e(i)}))})),t.abrupt("return",l);case 10:case"end":return t.stop()}}),t)})))()},getAllUsersForward:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s,l,c;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,a=e.dispatch,console.log("ref",t.dbReference),o=t.dbReference,s=t.cursor,l=t.uid,c=t.pageSize,(o=(o=(o=o.orderByKey()).limitToFirst(c+1)).startAt(s)).once("value").then((function(e){var t,n=[],i={};if(!Object.keys(e.val()).length)return(t={}).ref=o,t.pageSize=c,t.uid=l,void a("gotoBottomPage",t);if(Object.keys(e.val()).length<c+1)return(t={}).ref=o,t.pageSize=c,t.uid=l,void a("gotoBottomPage",t);var s=0;e.forEach((function(e){console.log("3keyskeyseys****",e.key),n.push(e.key),n.length!=c+1?e.key!=l?i[e.key]=e.val():s=1:1==s?(i[e.key]=e.val(),r("setDbCursor",e.key)):r("setDbCursor",e.key)})),r("setTopPage",!0),r("setBottomPage",!0),r("setForwardPage",!0),r("setBackPage",!0),r("setContacts",i)}));case 10:case"end":return n.stop()}}),n)})))()},getAllUsersBackward:function(e,t){return o()(i.a.mark((function n(){var r,a,o,s,l,c;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,a=e.dispatch,o=t.dbReference,s=t.cursor,l=t.uid,c=t.pageSize,(o=(o=(o=o.orderByKey()).limitToLast(c+1)).endAt(s)).once("value").then((function(e){var t,n=[],i={};return Object.keys(e.val()).length?Object.keys(e.val()).length<c+1?((t={}).ref=o,t.pageSize=c,t.uid=l,void a("gotoTopPage",t)):(e.forEach((function(e){n.push(e.key),1!=n.length?e.key!=l&&(i[e.key]=e.val()):r("setDbCursor",e.key)})),r("setTopPage",!0),r("setBottomPage",!0),r("setBackPage",!0),r("setForwardPage",!0),void r("setContacts",i)):((t={}).ref=o,t.pageSize=c,t.uid=l,void a("gotoTopPage",t))}));case 9:case"end":return n.stop()}}),n)})))()},gotoTopPage:function(e,t){var n=e.commit;console.log("yes gotoTopPage");var r=t.pageSize,i=t.uid,a=nl.a.database().ref("/users");(a=(a=a.orderByKey()).limitToFirst(r+1)).once("value").then((function(e){var t=[],a={};Object.keys(e.val()).length&&(e.forEach((function(e){console.log("3keyskeyseys****",e.key),t.push(e.key),t.length!=r+1?e.key!=i&&(a[e.key]=e.val()):(console.log("cursor got",e.key),n("setDbCursor",e.key))})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",a))}))}},Z()(Cc,"gotoTopPage",(function(e,t){var n=e.commit;console.log("yes gotoTopPage");var r=t.pageSize,i=t.uid,a=nl.a.database().ref("/users");(a=(a=a.orderByChild("dateCreated")).limitToFirst(r+1)).once("value").then((function(e){var t=[],a={};Object.keys(e.val()).length&&(e.forEach((function(e){console.log("3keyskeyseys****",e.key),t.push(e.key),t.length!=r+1?e.key!=i&&(a[e.key]=e.val()):(console.log("cursor got",e.key),n("setDbCursor",e.key))})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",a))}))})),Z()(Cc,"gotoSearchUsers",(function(e,t){var n=e.commit;console.log("yes gotoTopPageOnline");t.pageSize;var r=t.uid,i=t.userStatus,a=nl.a.database().ref("/users");(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length&&(n("setUpdatePreloader",1),e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().userStatus==i&&(console.log("value****",e.key),console.log("value****",e.val().name),null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",!0)))})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",t))}))})),Z()(Cc,"searchUsersOnline",(function(e,t){var n=e.commit,r=t.uid,i=nl.a.database().ref("/users"),a=0;return(i=i.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&"online"==e.val().userStatus&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),a++)})),n("setSearchContacts",t),0===a&&n("setSearchResult",2)):n("setSearchResult",2)})),a})),Z()(Cc,"searchUsersName",(function(e,t){var n=e.commit,r=t.uid,i=t.name,a=nl.a.database().ref("/users"),o=0;return(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().name==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),Z()(Cc,"searchUsersLocation",(function(e,t){var n=e.commit,r=t.uid,i=t.location,a=nl.a.database().ref("/users"),o=0;return(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().location==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),Z()(Cc,"searchUsersCountry",(function(e,t){var n=e.commit,r=t.uid,i=t.country,a=nl.a.database().ref("/users"),o=0;return(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().country==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),Z()(Cc,"gotoBottomPage",(function(e,t){var n=e.commit;console.log("yes gotoBottompPage");var r=t.pageSize,i=t.uid;console.log("page size",r);var a=nl.a.database().ref("/users");(a=(a=a.orderByChild("dateCreated")).limitToLast(r+1)).once("value").then((function(e){var t=[],r={};Object.keys(e.val()).length&&(e.forEach((function(e){console.log("3keyskeyseys****",e.key),t.push(e.key),1!=t.length?e.key!=i&&(r[e.key]=e.val()):(console.log("cursor got",e.key),n("setDbCursor",e.key))})),n("setTopPage",!0),n("setBottomPage",!1),n("setForwardPage",!1),n("setBackPage",!0),n("setContacts",r))}))})),Z()(Cc,"getUserPageSize",(function(e){return Tc()(e),new Promise((function(e,t){var n=nl.a.auth().currentUser.uid;nl.a.database().ref("/users").child(n).on("value",(function(t){t.val()?e(t.val().pageSize):e(3)}))}))})),Z()(Cc,"getUserPhotoStatus",(function(e){return Tc()(e),new Promise((function(e,t){var n=nl.a.auth().currentUser.uid;nl.a.database().ref("/users").child(n).on("value",(function(t){t.val()?e(t.val().photoUpload):e(!1)}))}))})),Z()(Cc,"sendRequest",(function(e,t){e.commit;return new Promise((function(e,n){Lc.child(t.recipient).push({sender:t.sender}).then((function(){e({success:!0})})).catch((function(e){n(e)}))}))})),Cc)}),Hc={state:{advert_default:null,advert_country:null,user_payout:null,subscribe_affiliate:!1,user_country:null,chat_groups:null,group_members:null,friend_members:null,group_messages:null,chat_group_name:null,user_status:null,app_state:!0,ban_status:!1,typing_message_group:0,number_online:0,total_group_messages:0,user_notifications:[],post_chat_messages:[]},getters:{advert_country:function(e){return e.advert_country},advert_default:function(e){return e.advert_default},user_payout:function(e){return e.user_payout},subscribe_affiliate:function(e){return e.subscribe_affiliate},post_chat_messages:function(e){return e.post_chat_messages},friend_members:function(e){return e.friend_members},total_group_messages:function(e){return e.total_group_messages},chat_groups:function(e){return e.chat_groups},number_online:function(e){return e.number_online},group_members:function(e){return e.group_members},group_messages:function(e){return e.group_messages},chat_group_name:function(e){return e.chat_group_name},user_status:function(e){return e.user_status},app_state:function(e){return e.app_state},ban_status:function(e){return e.ban_status},typing_message_group:function(e){return e.typing_message_group},user_notifications:function(e){return e.user_notifications},user_country:function(e){return e.user_country}},mutations:{setAdvertDefault:function(e,t){e.advert_default=t},setAdvertCountry:function(e,t){e.advert_country=t},setUserPayout:function(e,t){e.user_payout=t},setSubscribeAffiliate:function(e,t){e.subscribe_affiliate=t},setPostChatMessages:function(e,t){e.post_chat_messages=t},setFriendMembers:function(e,t){e.friend_members=t},setNumberOnline:function(e,t){e.number_online=t},setTotalGroupMessages:function(e,t){e.total_group_messages=t},setChatGroups:function(e,t){e.chat_groups=t},setGroupMembers:function(e,t){e.group_members=t},setGroupMessages:function(e,t){e.group_messages=t},setChatGroupName:function(e,t){e.chat_group_name=t},setUserStatus:function(e,t){e.user_status=t},setAppState:function(e,t){e.app_state=t},setBanStatus:function(e,t){e.ban_status=t},setTypingMessageGroup:function(e,t){e.typing_message_group=t},setUserNotifications:function(e,t){e.user_notifications=t},setUserCountry:function(e,t){e.user_country=t}},actions:{sendLatestGroupMessage:function(e,t){return o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.dispatch;case 1:case"end":return t.stop()}}),t)})))()},placeAdvert:function(e,t){var n=e.commit,r={};r["/adverts/"+nl.a.database().ref().child("/adverts/").push().key]=t,nl.a.database().ref().update(r),n("setAlertMessage","Advert Placed successfully")},getGroupMessages:function(e){return o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,a=[],t.next=4,r("getUserCountry");case 4:a.country=t.sent,o=nl.a.auth().currentUser,Ic.child(a.country).child("msgboard").on("value",(function(e){var t=e.val(),r=[];_.forEach(t,(function(e){e.type=e.sentby==o.uid?"sent":"received",e.date=Il()(e.timestamp).format("MMMM Do dddd"),e.smalldate=Il()(e.timestamp).format("LTS"),r.push(e)}));var i=_.groupBy(r,"date");n("setGroupMessages",i)}),(function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},sendGroupMessage:function(e,t){return o()(i.a.mark((function n(){var r,a,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.dispatch;try{Ic.child(t.group_name).child("msgboard").push({club:userClub,sentby:nl.a.auth().currentUser.uid,displayName:nl.a.auth().currentUser.displayName,avatar:nl.a.auth().currentUser.photoURL,image:t.img,text:t.message,timestamp:nl.a.database.ServerValue.TIMESTAMP})}catch(e){console.log(e)}return n.prev=2,n.next=5,r("getTotalGroupMessages");case 5:if(-5==(a=n.sent)&&(a=1),!(null!=a&&a>0)){n.next=14;break}return a++,n.next=11,r("getUserCountry");case 11:return o=n.sent,n.next=14,nl.a.database().ref("/appStatistics").child(o).update({totalMessages:a});case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(2),console.log(n.t0);case 19:case"end":return n.stop()}}),n,null,[[2,16]])})))()},leaveGroup:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Tc()(e),n.prev=1,r="",n.next=5,Ic.child(nl.a.auth().currentUser.uid).child(t.group_name).once("value",(function(e){r=e.val().owner}));case 5:return n.next=7,Ic.child(r).child(t.group_name).child("members");case 7:return(a=n.sent).orderByChild("uid").equalTo(nl.a.auth().currentUser.uid).once("value",(function(e){var t;for(var n in e.val())t=n;a.child(t).remove()})),n.next=11,Ic.child(nl.a.auth().currentUser.uid).child(t.group_name).remove();case 11:return n.next=13,dispatch("getGroupMembers",t.group_name);case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(1),console.log(n.t0);case 18:case"end":return n.stop()}}),n,null,[[1,15]])})))()},getAdvertDefault:function(e){var t=e.commit;return new Promise((function(e,n){nl.a.database().ref("adverts").orderByValue().on("value",(function(n){var r=n.val(),i=[];_.forEach(r,(function(e){"Default"==e.country&&i.push(e)})),t("setAdvertDefault",i),e(i)}))}))},getAdvertCountry:function(e){return o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,a=[],t.next=4,r("getUserCountry");case 4:return a.country=t.sent,o=new Promise((function(e,t){nl.a.database().ref("adverts").orderByValue().on("value",(function(t){var r=t.val(),i=[];_.forEach(r,(function(e){e.country==a.country&&i.push(e)})),n("setAdvertCountry",i),e(i)}))})),t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)})))()},removeMember:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.prev=1,n.next=4,Ic.child(nl.a.auth().currentUser.uid).child(t.group_name).child("members");case 4:return(a=n.sent).orderByChild("uid").equalTo(t.member.uid).once("value",(function(e){var t;for(var n in e.val())t=n;a.child(t).remove()})),n.next=8,Ic.child(t.member.uid).child(t.group_name).remove();case 8:return n.next=10,r("getGroupMembers",t.group_name);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),console.log(n.t0);case 15:case"end":return n.stop()}}),n,null,[[1,12]])})))()},getGroupMembers:function(e,t){return o()(i.a.mark((function n(){var r,a,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a="",n.next=4,Ic.child(nl.a.auth().currentUser.uid).child(t).once("value",(function(e){a=e.val().owner}));case 4:return o=new Promise((function(e,n){Ic.child(a).child(t).once("value",(function(t){var n=t.val().members,i=[];for(var a in n)i.push(n[a]);e(n),r("setGroupMembers",i)}),(function(e){n(e)}))})),n.abrupt("return",o);case 6:case"end":return n.stop()}}),n)})))()},addMember:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.prev=1,n.next=4,Ic.child(nl.a.auth().currentUser.uid).child(t.group_name).child("members").push(t.newmember);case 4:return n.next=6,r("getGroupImage",t.group_name);case 6:return a=n.sent,n.next=9,Ic.child(t.newmember.uid).child(t.group_name).set({group_pic:a,msgboard:"",owner:nl.a.auth().currentUser.uid});case 9:r("getGroupMembers",t.group_name),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),console.log(n.t0);case 15:case"end":return n.stop()}}),n,null,[[1,12]])})))()},banUser:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Tc()(e),r=t.uid,a=t.comments,n.prev=3,n.next=6,nl.a.database().ref("/users/").child(r).update({userType:"0",BanReasons:a});case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(3),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[3,8]])})))()},unBanUser:function(e,t){return o()(i.a.mark((function n(){return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Tc()(e),n.prev=1,n.next=4,nl.a.database().ref("/users/").child(t).update({userType:"1"});case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(1),console.log(n.t0);case 9:case"end":return n.stop()}}),n,null,[[1,6]])})))()},closeAppState:function(e){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.prev=1,t.next=4,r("getUserCountry");case 4:return a=t.sent,t.next=7,nl.a.database().ref("/appState").child(a).update({appStateValue:"1"});case 7:n("setAppState",!1),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},openAppState:function(e){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.prev=1,t.next=4,r("getUserCountry");case 4:return a=t.sent,t.next=7,nl.a.database().ref("/appState").child(a).update({appStateValue:"0"});case 7:n("setAppState",!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},getGroupImage:function(e,t){return Tc()(e),new Promise((function(e,n){Ic.child(nl.a.auth().currentUser.uid).child(t).once("value",(function(t){var n=t.val().group_pic;e(n)})).catch((function(e){n(e)}))}))},getStaticGroupImage:function(e,t){Tc()(e);return new Promise((function(e,n){Ic.child("C0KUjyHioShrmY646lnmqgs3sFO2").child(t).once("value",(function(t){var n=t.val().group_pic;e(n)})).catch((function(e){n(e)}))}))},createGroup:function(e,t){return Tc()(e),new Promise((function(e,n){Ic.child(nl.a.auth().currentUser.uid).child(t.name).set({group_pic:t.pic,msgboard:"",owner:nl.a.auth().currentUser.uid}).then((function(t){e(!0)})).catch((function(e){n(e)}))}))},getUserDetails:function(e){e.commit;return new Promise((function(e,t){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(t){e(t.val())}))}))},getUserCountry:function(e){var t=e.commit;return new Promise((function(e,n){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(n){t("setUserCountry",n.val().country),e(n.val().country)}))}))},getUserEmail:function(e){e.commit;return new Promise((function(e,t){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(t){e(t.val().email)}))}))},getUserClub:function(e){e.commit;return new Promise((function(e,t){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(t){e(t.val().club)}))}))},getGroupName2:function(e){var t=e.commit;return new Promise((function(e,n){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(n){n.val();e(n.val().country),[].push(n.val()),t("setChatGroupName",n.val().country)}))}))},getBanUserStatus:function(e,t){var n=e.commit;return new Promise((function(e,r){nl.a.database().ref("users").child(t).once("value",(function(t){e(t.val().userType),"0"==t.val().userType?n("setBanStatus",!0):n("setBanStatus",!1)}))}))},getUserStatus:function(e){var t=e.commit;return new Promise((function(e,n){nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(n){e(n.val().userType),t("setUserStatus",n.val().userType)}))}))},getAppState:function(e){return o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return a=t.sent,o=new Promise((function(e,t){nl.a.database().ref("appState").child(a).once("value",(function(t){e(t.val().appStateValue),"1"==t.val().appStateValue?n("setAppState",!1):n("setAppState",!0)}))})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},getOnlineStatistics:function(e){return o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return a=t.sent,o=new Promise((function(e,t){nl.a.database().ref("/appStatistics").child(a).on("value",(function(t){n("setNumberOnline",t.val().online),e(t.val().online)}))})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},getTotalGroupMessages:function(e){return o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return a=t.sent,o=new Promise((function(e,t){nl.a.database().ref("/appStatistics").child(a).on("value",(function(t){-5==t.val().totalMessages?(n("setTotalGroupMessages",0),e(t.val().totalMessages)):(n("setTotalGroupMessages",t.val().totalMessages),e(t.val().totalMessages))}))})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},statisticsUsersOnline:function(e){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,n=e.dispatch,t.prev=1,t.next=4,n("getOnlineStatistics");case 4:return r=t.sent,r++,t.next=8,n("getUserCountry");case 8:return a=t.sent,t.next=11,nl.a.database().ref("/appStatistics").child(a).update({online:r}).catch((function(e){console.log(e)}));case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))()},statisticsUsersOnlineRemove:function(e){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.dispatch,t.prev=1,t.next=4,n("getOnlineStatistics");case 4:return(r=t.sent)>0&&r--,t.next=8,n("getUserCountry");case 8:return a=t.sent,t.next=11,nl.a.database().ref("/appStatistics").child(a).update({online:r});case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))()},pushNotifications:function(e,t){return o()(i.a.mark((function n(){var r,a,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,e.dispatch,a=nl.a.auth().currentUser.uid,o=Bc.child(a).push().key,n.next=5,Bc.child(o).update({title:t.title,message_details:t.message_details,uid:a,timestamp:nl.a.database.ServerValue.TIMESTAMP});case 5:r("setAlertMessage","Your broadcast message has been sent!");case 6:case"end":return n.stop()}}),n)})))()},getUserNotifications:function(e){return o()(i.a.mark((function t(){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,e.dispatch,Bc.on("value",(function(e){var t=_.groupBy(e.val(),"timestamp"),r=_.orderBy(t,"timestamp","desc");n("setUserNotifications",r)}));case 2:case"end":return t.stop()}}),t)})))()},getFriendMembers:function(e){return o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=new Promise((function(e,t){Pc.child(nl.a.auth().currentUser.uid).once("value",(function(t){var r=t.val(),i=[];for(var a in r)i.push(r[a]);e(r),n("setFriendMembers",i)}),(function(e){t(e)}))})),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})))()},sendMessageToFriends:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=e.dispatch,n.prev=1,n.next=4,r("getFriendMembers");case 4:a=n.sent,_.forEach(a,(function(e){nl.a.auth().currentUser.uid!=e.uid&&null!=e.uid&&null!=e.uid&&Oc.child(nl.a.auth().currentUser.uid).child(e.uid).push({sentby:nl.a.auth().currentUser.uid,text:"Post Message:<br>"+t.msg,image:t.img,timestamp:nl.a.database.ServerValue.TIMESTAMP})})),jc.child(nl.a.auth().currentUser.uid).push({sentby:nl.a.auth().currentUser.uid,text:"Post Message: "+t.msg,image:t.img,timestamp:nl.a.database.ServerValue.TIMESTAMP}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),console.log("loop error",n.t0);case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},getPostChatMessages:function(e){var t=e.commit,n=nl.a.auth().currentUser;jc.child(n.uid).on("value",(function(e){var r=e.val();_.forEach(r,(function(e){e.type=e.sentby==n.uid?"sent":"received",e.name=(e.sentby,n.uid,n.displayName),e.date=Il()(e.timestamp).format("MMMM Do dddd"),e.smalldate=Il()(e.timestamp).format("LTS")}));var i=_.groupBy(r,"date");t("setPostChatMessages",i)}))},getUserPayout:function(e){var t=e.commit;nl.a.database().ref("pay4me").child(nl.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()&&nl.a.database().ref("users").child(nl.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()&&t("setUserPayout",e.val().payout)}))}))},getUserAffiliate:function(e){var t=e.commit;nl.a.database().ref("pay4me").child(nl.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()?t("setSubscribeAffiliate",!0):t("setSubscribeAffiliate",!1)}))},deleteAffiliate:function(e){var t=e.commit,n=nl.a.auth().currentUser.uid;nl.a.database().ref("pay4me/".concat(n,"/")).remove(),t("setSubscribeAffiliate",!1),t("setAlertMessage","Your Pay4me Program has been deleted")},processModerator:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=nl.a.auth().currentUser.uid,n.prev=2,n.next=5,nl.a.database().ref("/beAModerator/").child(a).update({twitter_handle:t.twitter,instagram_IG:t.instagram,timestamp:nl.a.database.ServerValue.TIMESTAMP});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),r("setAlertMessage",n.t0);case 10:case"end":return n.stop()}}),n,null,[[2,7]])})))()},processAffiliate:function(e,t){return o()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=nl.a.auth().currentUser.uid,n.prev=2,n.next=5,nl.a.database().ref("/pay4me/").child(a).update({bank_name:t.bank_name,account_name:t.account_name,account_number:t.account_number,paypal:t.paypal});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),console.log(n.t0);case 10:r("setAlertMessage","Your account activated for Gift Program");case 11:case"end":return n.stop()}}),n,null,[[2,7]])})))()},getMyGroups:function(e){return o()(i.a.mark((function t(){var n,r,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:a=t.sent,Ic.once("value",(function(e){var t=[];if(null!=e.val()){var r=0,i=e.val();for(var o in i){if(o==a&&0==r){var s={name:o,pic:i[o].group_pic,owner:i[o].owner};r=1}t.push(s)}}n("setChatGroups",t)}));case 5:case"end":return t.stop()}}),t)})))()}}};s.default.use(kc.a);var Uc=new kc.a.Store({modules:{auth:xc,file:$c,chat:Fc,groupchat:Hc},state:{alert_message:null,show_tabbar:!0,quit_application:null},getters:{alert_message:function(e){return e.alert_message},quit_application:function(e){return e.quit_application},show_tabbar:function(e){return e.show_tabbar}},mutations:{setAlertMessage:function(e,t){e.alert_message=t},setQuitApplication:function(e,t){e.quit_application=t},setShowTabs:function(e,t){e.show_tabbar=t}}}),zc=n(20),Vc=n.n(zc);s.default.prototype.moment=Il.a,eo.use(el,Xl.a);var qc=null;Vc.a.auth().onAuthStateChanged(function(){var e=o()(i.a.mark((function e(t){var n,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=t&&(t.emailVerified?(n=Vc.a.auth().currentUser.uid,Vc.a.database().ref("users").child(n).once("value",(function(e){Uc.commit("setSignedIn",!0),Uc.commit("setDisplayName",t.displayName),Uc.commit("setPhotoURL",t.photoURL),Uc.commit("setUserLocation",e.val().location),Uc.commit("setUserPageSize",e.val().pageSize),Uc.commit("setProfileMessage",e.val().profileMessage),"web"==e.val().userToken&&window.hasOwnProperty("cordova")&&(cordova.plugins.firebase.messaging.getInstanceId().then((function(e){cordova.plugins.firebase.messaging.getToken().then((function(e){var t=Vc.a.auth().currentUser.uid;Vc.a.database().ref("users/"+t).update({userToken:e,lastSeen:Vc.a.database.ServerValue.TIMESTAMP})}))})),cordova.plugins.firebase.messaging.subscribe(e.val().country)),window.hasOwnProperty("cordova")&&(window.plugins.OneSignal.getIds((function(e){if(null!=e){var t=Vc.a.auth().currentUser.uid;Vc.a.database().ref("/oneSignal").child(t).update({playerID:e.userId,pushToken:e.pushToken}).catch((function(e){console.log("error",e)}))}})),cordova.plugins.firebase.messaging.onTokenRefresh((function(){cordova.plugins.firebase.messaging.getToken().then((function(e){var t=Vc.a.auth().currentUser.uid;Vc.a.database().ref("users/"+t).update({userToken:e,lastSeen:Vc.a.database.ServerValue.TIMESTAMP})}))})))})),r=Vc.a.auth().currentUser.uid,(a=Vc.a.database().ref("users/"+r)).update({userStatus:"online",lastSeen:Vc.a.database.ServerValue.TIMESTAMP}),a.onDisconnect().update({userStatus:"offline",lastSeen:Vc.a.database.ServerValue.TIMESTAMP})):Uc.commit("setSignedIn",!1)),s.default.filter("capitalize",(function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""})),s.default.filter("emptyReplace",(function(e){return e?(e=(e=e.toString()).replace("<b>",""),e=alue.replace("</b>","")):""})),qc||(qc=new s.default({el:"#app",render:function(e){return e(wc)},store:Uc,components:{app:wc},on:{init:function(e){}}}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());if(window.hasOwnProperty("cordova")){var Wc=function(){AdMob?AdMob.createBanner({adId:Gc.banner,position:AdMob.AD_POSITION.BOTTOM_CENTER,overlap:!1,offsetTopBar:!1,autoShow:!0,bgColor:"black"}):alert("admob plugin not ready")},Gc={};Gc=(/(android)/i.test(navigator.userAgent)||/(ipod|iphone|ipad)/i.test(navigator.userAgent),{banner:"ca-app-pub-3672658228483041/1754491371"}),window.hasOwnProperty("cordova")?document.addEventListener("deviceready",Wc,!1):Wc(),document.addEventListener("deviceready",(function(){window.plugins.OneSignal.startInit("1bdd80c5-cabb-4296-9e59-ef5fa8638eed").handleNotificationOpened((function(e){})).inFocusDisplaying(window.plugins.OneSignal.OSInFocusDisplayOption.Notification).endInit(),document.addEventListener("offline",(function(){Uc.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...")}),!1),document.addEventListener("backbutton",(function(){Uc.commit("setQuitApplication","1")}),!1);cordova.plugins.firebase.messaging.getBadge().then((function(e){cordova.plugins.firebase.messaging.setBadge(e++)})),cordova.plugins.firebase.messaging.setBadge(100),cordova.plugins.firebase.messaging.onBackgroundMessage((function(e){}))}))}}]);
//# sourceMappingURL=app.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit