text: !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=218)}([function(e,t,n){"use strict";e.exports=n(394)},function(e,t,n){e.exports=n(398)()},function(e,t,n){var o=n(7),r=n(16),i=n(27),a=n(24),l=n(32),s=function(e,t,n){var u,c,f,d,p=e&s.F,h=e&s.G,m=e&s.S,v=e&s.P,g=e&s.B,y=h?o:m?o[t]||(o[t]={}):(o[t]||{}).prototype,b=h?r:r[t]||(r[t]={}),w=b.prototype||(b.prototype={});for(u in h&&(n=t),n)f=((c=!p&&y&&void 0!==y[u])?y:n)[u],d=g&&c?l(f,o):v&&"function"==typeof f?l(Function.call,f):f,y&&a(y,u,f,e&s.U),b[u]!=f&&i(b,u,d),v&&w[u]!=f&&(w[u]=f)};o.core=r,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(106),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(188),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,i.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(189),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},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)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(10);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports={default:n(503),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(526)),r=a(n(530)),i=a(n(189));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,r.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){var o=n(88)("wks"),r=n(52),i=n(7).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){var o=n(34),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(9),r=n(153),i=n(48),a=Object.defineProperty;t.f=n(17)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(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}},function(e,t,n){var o;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var l in o)n.call(o,l)&&o[l]&&e.push(l)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){var o=n(41);e.exports=function(e){return Object(o(e))}},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)},function(e,t,n){var o=n(137)("wks"),r=n(102),i=n(21).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(395)},function(e,t,n){var o=n(7),r=n(27),i=n(26),a=n(52)("src"),l=n(223),s=(""+l).split("toString");n(16).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||r(n,a,e[t]?""+e[t]:s.join(String(t)))),e===o?e[t]=n:l?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||l.call(this)})},function(e,t,n){var o=n(2),r=n(8),i=n(41),a=/"/g,l=function(e,t,n,o){var r=String(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(o).replace(a,"&quot;")+'"'),l+">"+r+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(l),o(o.P+o.F*r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(18),r=n(51);e.exports=n(17)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(76),r=n(41);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(21),r=n(15),i=n(70),a=n(61),l=n(62),s=function(e,t,n){var u,c,f,d=e&s.F,p=e&s.G,h=e&s.S,m=e&s.P,v=e&s.B,g=e&s.W,y=p?r:r[t]||(r[t]={}),b=y.prototype,w=p?o:h?o[t]:(o[t]||{}).prototype;for(u in p&&(n=t),n)(c=!d&&w&&void 0!==w[u])&&l(y,u)||(f=c?w[u]:n[u],y[u]=p&&"function"!=typeof w[u]?n[u]:v&&c?i(f,o):g&&w[u]==f?function(e){var t=function(t,n,o){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,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((y.virtual||(y.virtual={}))[u]=f,e&s.R&&b&&!b[u]&&a(b,u,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";var o=n(8);e.exports=function(e,t){return!!e&&o(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",o="hour",r="day",i="week",a="month",l="quarter",s="year",u=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,c=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},d={s:f,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+f(o,2,"0")+":"+f(r,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,a),r=t-o<0,i=e.clone().add(n+(r?-1:1),a);return Number(-(n+(t-o)/(r?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return{M:a,y:s,w:i,d:r,h:o,m:n,s:t,ms:e,Q:l}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h="en",m={};m[h]=p;var v=function(e){return e instanceof w},g=function(e,t,n){var o;if(!e)return h;if("string"==typeof e)m[e]&&(o=e),t&&(m[e]=t,o=e);else{var r=e.name;m[r]=e,o=r}return n||(h=o),o},y=function(e,t,n){if(v(e))return e.clone();var o=t?"string"==typeof t?{format:t,pl:n}:t:{};return o.date=e,new w(o)},b=d;b.l=g,b.i=v,b.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u})};var w=function(){function f(e){this.$L=this.$L||g(e.locale,null,!0),this.parse(e)}var d=f.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(u);if(o)return n?new Date(Date.UTC(o[1],o[2]-1,o[3]||1,o[4]||0,o[5]||0,o[6]||0,o[7]||0)):new Date(o[1],o[2]-1,o[3]||1,o[4]||0,o[5]||0,o[6]||0,o[7]||0)}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return y(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<y(e)},d.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},d.year=function(e){return this.$g(e,"$y",s)},d.month=function(e){return this.$g(e,"$M",a)},d.day=function(e){return this.$g(e,"$W",r)},d.date=function(e){return this.$g(e,"$D","date")},d.hour=function(e){return this.$g(e,"$H",o)},d.minute=function(e){return this.$g(e,"$m",n)},d.second=function(e){return this.$g(e,"$s",t)},d.millisecond=function(t){return this.$g(t,"$ms",e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,l){var u=this,c=!!b.u(l)||l,f=b.p(e),d=function(e,t){var n=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?n:n.endOf(r)},p=function(e,t){return b.w(u.toDate()[e].apply(u.toDate(),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},h=this.$W,m=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case s:return c?d(1,0):d(31,11);case a:return c?d(1,m):d(0,m+1);case i:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return d(c?v-w:v+(6-w),m);case r:case"date":return p(g+"Hours",0);case o:return p(g+"Minutes",1);case n:return p(g+"Seconds",2);case t:return p(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(i,l){var u,c=b.p(i),f="set"+(this.$u?"UTC":""),d=(u={},u[r]=f+"Date",u.date=f+"Date",u[a]=f+"Month",u[s]=f+"FullYear",u[o]=f+"Hours",u[n]=f+"Minutes",u[t]=f+"Seconds",u[e]=f+"Milliseconds",u)[c],p=c===r?this.$D+(l-this.$W):l;if(c===a||c===s){var h=this.clone().set("date",1);h.$d[d](p),h.init(),this.$d=h.set("date",Math.min(this.$D,h.daysInMonth())).toDate()}else d&&this.$d[d](p);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[b.p(e)]()},d.add=function(e,l){var u,c=this;e=Number(e);var f=b.p(l),d=function(t){var n=y(c);return b.w(n.date(n.date()+Math.round(t*e)),c)};if(f===a)return this.set(a,this.$M+e);if(f===s)return this.set(s,this.$y+e);if(f===r)return d(1);if(f===i)return d(7);var p=(u={},u[n]=6e4,u[o]=36e5,u[t]=1e3,u)[f]||1,h=this.valueOf()+e*p;return b.w(h,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),r=this.$locale(),i=this.$H,a=this.$m,l=this.$M,s=r.weekdays,u=r.months,f=function(e,o,r,i){return e&&(e[o]||e(t,n))||r[o].substr(0,i)},d=function(e){return b.s(i%12||12,e,"0")},p=r.meridiem||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:b.s(l+1,2,"0"),MMM:f(r.monthsShort,l,u,3),MMMM:u[l]||u(this,n),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,s,2),ddd:f(r.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:b.s(i,2,"0"),h:d(1),hh:d(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:b.s(a,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return n.replace(c,function(e,t){return t||h[e]||o.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(e,u,c){var f,d=b.p(u),p=y(e),h=6e4*(p.utcOffset()-this.utcOffset()),m=this-p,v=b.m(this,p);return v=(f={},f[s]=v/12,f[a]=v,f[l]=v/3,f[i]=(m-h)/6048e5,f[r]=(m-h)/864e5,f[o]=m/36e5,f[n]=m/6e4,f[t]=m/1e3,f)[d]||m,c?v:b.a(v)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return m[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var n=this.clone();return n.$L=g(e,t,!0),n},d.clone=function(){return b.w(this.toDate(),this)},d.toDate=function(){return new Date(this.$d)},d.toJSON=function(){return this.toISOString()},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},f}();return y.prototype=w.prototype,y.extend=function(e,t){return e(t,w,y),y},y.locale=g,y.isDayjs=v,y.unix=function(e){return y(1e3*e)},y.en=m[h],y.Ls=m,y}()},function(e,t,n){var o=n(33);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(77),r=n(51),i=n(28),a=n(48),l=n(26),s=n(153),u=Object.getOwnPropertyDescriptor;t.f=n(17)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(2),r=n(16),i=n(8);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(32),r=n(76),i=n(20),a=n(14),l=n(169);e.exports=function(e,t){var n=1==e,s=2==e,u=3==e,c=4==e,f=6==e,d=5==e||f,p=t||l;return function(t,l,h){for(var m,v,g=i(t),y=r(g),b=o(l,h,3),w=a(y.length),S=0,_=n?p(t,w):s?p(t,0):void 0;w>S;S++)if((d||S in y)&&(v=b(m=y[S],S,g),e))if(n)_[S]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:_.push(m)}else if(c)return!1;return f?-1:u||c?c:_}}},function(e,t,n){var o=n(50);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},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){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){"use strict";if(n(17)){var o=n(53),r=n(7),i=n(8),a=n(2),l=n(99),s=n(132),u=n(32),c=n(68),f=n(51),d=n(27),p=n(69),h=n(34),m=n(14),v=n(180),g=n(55),y=n(48),b=n(26),w=n(78),S=n(10),_=n(20),E=n(124),x=n(56),C=n(58),T=n(57).f,O=n(126),P=n(52),k=n(13),A=n(37),R=n(89),M=n(79),D=n(128),L=n(66),j=n(92),N=n(67),z=n(127),I=n(171),F=n(18),B=n(35),U=F.f,W=B.f,H=r.RangeError,V=r.TypeError,G=r.Uint8Array,q=Array.prototype,$=s.ArrayBuffer,Y=s.DataView,K=A(0),Z=A(2),Q=A(3),X=A(4),J=A(5),ee=A(6),te=R(!0),ne=R(!1),oe=D.values,re=D.keys,ie=D.entries,ae=q.lastIndexOf,le=q.reduce,se=q.reduceRight,ue=q.join,ce=q.sort,fe=q.slice,de=q.toString,pe=q.toLocaleString,he=k("iterator"),me=k("toStringTag"),ve=P("typed_constructor"),ge=P("def_constructor"),ye=l.CONSTR,be=l.TYPED,we=l.VIEW,Se=A(1,function(e,t){return Te(M(e,e[ge]),t)}),_e=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ee=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),xe=function(e,t){var n=h(e);if(n<0||n%t)throw H("Wrong offset!");return n},Ce=function(e){if(S(e)&&be in e)return e;throw V(e+" is not a typed array!")},Te=function(e,t){if(!(S(e)&&ve in e))throw V("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return Pe(M(e,e[ge]),t)},Pe=function(e,t){for(var n=0,o=t.length,r=Te(e,o);o>n;)r[n]=t[n++];return r},ke=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ae=function(e){var t,n,o,r,i,a,l=_(e),s=arguments.length,c=s>1?arguments[1]:void 0,f=void 0!==c,d=O(l);if(null!=d&&!E(d)){for(a=d.call(l),o=[],t=0;!(i=a.next()).done;t++)o.push(i.value);l=o}for(f&&s>2&&(c=u(c,arguments[2],2)),t=0,n=m(l.length),r=Te(this,n);n>t;t++)r[t]=f?c(l[t],t):l[t];return r},Re=function(){for(var e=0,t=arguments.length,n=Te(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!G&&i(function(){pe.call(new G(1))}),De=function(){return pe.apply(Me?fe.call(Ce(this)):Ce(this),arguments)},Le={copyWithin:function(e,t){return I.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return X(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return z.apply(Ce(this),arguments)},filter:function(e){return Oe(this,Z(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Ce(this),arguments)},lastIndexOf:function(e){return ae.apply(Ce(this),arguments)},map:function(e){return Se(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return le.apply(Ce(this),arguments)},reduceRight:function(e){return se.apply(Ce(this),arguments)},reverse:function(){for(var e,t=Ce(this).length,n=Math.floor(t/2),o=0;o<n;)e=this[o],this[o++]=this[--t],this[t]=e;return this},some:function(e){return Q(Ce(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ce.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),o=n.length,r=g(e,o);return new(M(n,n[ge]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===t?o:g(t,o))-r))}},je=function(e,t){return Oe(this,fe.call(Ce(this),e,t))},Ne=function(e){Ce(this);var t=xe(arguments[1],1),n=this.length,o=_(e),r=m(o.length),i=0;if(r+t>n)throw H("Wrong length!");for(;i<r;)this[t+i]=o[i++]},ze={entries:function(){return ie.call(Ce(this))},keys:function(){return re.call(Ce(this))},values:function(){return oe.call(Ce(this))}},Ie=function(e,t){return S(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Fe=function(e,t){return Ie(e,t=y(t,!0))?f(2,e[t]):W(e,t)},Be=function(e,t,n){return!(Ie(e,t=y(t,!0))&&S(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};ye||(B.f=Fe,F.f=Be),a(a.S+a.F*!ye,"Object",{getOwnPropertyDescriptor:Fe,defineProperty:Be}),i(function(){de.call({})})&&(de=pe=function(){return ue.call(this)});var Ue=p({},Le);p(Ue,ze),d(Ue,he,ze.values),p(Ue,{slice:je,set:Ne,constructor:function(){},toString:de,toLocaleString:De}),ke(Ue,"buffer","b"),ke(Ue,"byteOffset","o"),ke(Ue,"byteLength","l"),ke(Ue,"length","e"),U(Ue,me,{get:function(){return this[be]}}),e.exports=function(e,t,n,s){var u=e+((s=!!s)?"Clamped":"")+"Array",f="get"+e,p="set"+e,h=r[u],g=h||{},y=h&&C(h),b=!h||!l.ABV,_={},E=h&&h.prototype,O=function(e,n){U(e,n,{get:function(){return function(e,n){var o=e._d;return o.v[f](n*t+o.o,_e)}(this,n)},set:function(e){return function(e,n,o){var r=e._d;s&&(o=(o=Math.round(o))<0?0:o>255?255:255&o),r.v[p](n*t+r.o,o,_e)}(this,n,e)},enumerable:!0})};b?(h=n(function(e,n,o,r){c(e,h,u,"_d");var i,a,l,s,f=0,p=0;if(S(n)){if(!(n instanceof $||"ArrayBuffer"==(s=w(n))||"SharedArrayBuffer"==s))return be in n?Pe(h,n):Ae.call(h,n);i=n,p=xe(o,t);var g=n.byteLength;if(void 0===r){if(g%t)throw H("Wrong length!");if((a=g-p)<0)throw H("Wrong length!")}else if((a=m(r)*t)+p>g)throw H("Wrong length!");l=a/t}else l=v(n),i=new $(a=l*t);for(d(e,"_d",{b:i,o:p,l:a,e:l,v:new Y(i)});f<l;)O(e,f++)}),E=h.prototype=x(Ue),d(E,"constructor",h)):i(function(){h(1)})&&i(function(){new h(-1)})&&j(function(e){new h,new h(null),new h(1.5),new h(e)},!0)||(h=n(function(e,n,o,r){var i;return c(e,h,u),S(n)?n instanceof $||"ArrayBuffer"==(i=w(n))||"SharedArrayBuffer"==i?void 0!==r?new g(n,xe(o,t),r):void 0!==o?new g(n,xe(o,t)):new g(n):be in n?Pe(h,n):Ae.call(h,n):new g(v(n))}),K(y!==Function.prototype?T(g).concat(T(y)):T(g),function(e){e in h||d(h,e,g[e])}),h.prototype=E,o||(E.constructor=h));var P=E[he],k=!!P&&("values"==P.name||null==P.name),A=ze.values;d(h,ve,!0),d(E,be,u),d(E,we,!0),d(E,ge,h),(s?new h(1)[me]==u:me in E)||U(E,me,{get:function(){return u}}),_[u]=h,a(a.G+a.W+a.F*(h!=g),_),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*i(function(){g.of.call(h,1)}),u,{from:Ae,of:Re}),"BYTES_PER_ELEMENT"in E||d(E,"BYTES_PER_ELEMENT",t),a(a.P,u,Le),N(u),a(a.P+a.F*Ee,u,{set:Ne}),a(a.P+a.F*!k,u,ze),o||E.toString==de||(E.toString=de),a(a.P+a.F*i(function(){new h(1).slice()}),u,{slice:je}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!i(function(){E.toLocaleString.call([1,2])})),u,{toLocaleString:De}),L[u]=k?P:A,o||k||d(E,he,A)}}else e.exports=function(){}},function(e,t,n){var o=n(38),r=n(184),i=n(134),a=Object.defineProperty;t.f=n(44)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(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}},function(e,t,n){e.exports=!n(71)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,l],c=0;(s=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t,n){e.exports={default:n(536),__esModule:!0}},function(e,t,n){var o=n(10);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(52)("meta"),r=n(10),i=n(26),a=n(18).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(8)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},f=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&s(e)&&!i(e,o)&&c(e),e}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var o=n(155),r=n(111);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(34),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(9),r=n(156),i=n(111),a=n(110)("IE_PROTO"),l=function(){},s=function(){var e,t=n(108)("iframe"),o=i.length;for(t.style.display="none",n(112).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;o--;)delete s.prototype[i[o]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=o(e),n=new l,l.prototype=null,n[a]=e):n=s(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(155),r=n(111).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(26),r=n(20),i=n(110)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(13)("unscopables"),r=Array.prototype;null==r[o]&&n(27)(r,o,{}),e.exports=function(e){r[o][e]=!0}},function(e,t,n){var o=n(10);e.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var o=n(43),r=n(80);e.exports=n(44)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(193),r=n(135);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(18).f,r=n(26),i=n(13)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(2),r=n(41),i=n(8),a=n(114),l="["+a+"]",s=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),c=function(e,t,n){var r={},l=i(function(){return!!a[e]()||"​"!="​"[e]()}),s=r[e]=l?t(f):a[e];n&&(r[n]=s),o(o.P+o.F*l,"String",r)},f=c.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(u,"")),e};e.exports=c},function(e,t){e.exports={}},function(e,t,n){"use strict";var o=n(7),r=n(18),i=n(17),a=n(13)("species");e.exports=function(e){var t=o[e];i&&t&&!t[a]&&r.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(24);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(100);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(135);e.exports=function(e){return Object(o(e))}},function(e,t){e.exports={}},function(e,t,n){var o=n(402);e.exports=function(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var o=n(407),r=n(408),i=n(409);e.exports=function(e,t){return o(e)||r(e,t)||i()}},function(e,t,n){var o=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(40),r=n(13)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(9),r=n(33),i=n(13)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[i])?t:r(n)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=!0},function(e,t,n){"use strict";var o=n(509)(!0);n(190)(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=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(192),r=n(142);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(538);t.__esModule=!0,t.default=function(e){if((!r&&0!==r||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r};var r,i=o(n(539));e.exports=t.default},function(e,t){function n(e){return(n="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 o(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=o=function(e){return n(e)}:e.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(t)}e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(188),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var o=n(16),r=n(7),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(53)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var o=n(28),r=n(14),i=n(55);e.exports=function(e){return function(t,n,a){var l,s=o(t),u=r(s.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(40);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(13)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var o=n(9);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o=n(78),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";n(173);var o=n(24),r=n(27),i=n(8),a=n(41),l=n(13),s=n(129),u=l("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=l(e),p=!i(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),h=p?!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t}):void 0;if(!p||!h||"replace"===e&&!c||"split"===e&&!f){var m=/./[d],v=n(a,d,""[e],function(e,t,n,o,r){return t.exec===s?p&&!r?{done:!0,value:m.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),g=v[0],y=v[1];o(String.prototype,e,g),r(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){var o=n(32),r=n(168),i=n(124),a=n(9),l=n(14),s=n(126),u={},c={};(t=e.exports=function(e,t,n,f,d){var p,h,m,v,g=d?function(){return e}:s(e),y=o(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(p=l(e.length);p>b;b++)if((v=t?y(a(h=e[b])[0],h[1]):y(e[b]))===u||v===c)return v}else for(m=g.call(e);!(h=m.next()).done;)if((v=r(m,y,h.value,t))===u||v===c)return v}).BREAK=u,t.RETURN=c},function(e,t,n){var o=n(7).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){"use strict";var o=n(7),r=n(2),i=n(24),a=n(69),l=n(49),s=n(96),u=n(68),c=n(10),f=n(8),d=n(92),p=n(64),h=n(115);e.exports=function(e,t,n,m,v,g){var y=o[e],b=y,w=v?"set":"add",S=b&&b.prototype,_={},E=function(e){var t=S[e];i(S,e,"delete"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(g||S.forEach&&!f(function(){(new b).entries().next()}))){var x=new b,C=x[w](g?{}:-0,1)!=x,T=f(function(){x.has(1)}),O=d(function(e){new b(e)}),P=!g&&f(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});O||((b=t(function(t,n){u(t,b,e);var o=h(new y,t,b);return null!=n&&s(n,v,o[w],o),o})).prototype=S,S.constructor=b),(T||P)&&(E("delete"),E("has"),v&&E("get")),(P||C)&&E(w),g&&S.clear&&delete S.clear}else b=m.getConstructor(t,e,v,w),a(b.prototype,n),l.NEED=!0;return p(b,e),_[e]=b,r(r.G+r.W+r.F*(b!=y),_),g||m.setStrong(b,e,v),b}},function(e,t,n){for(var o,r=n(7),i=n(27),a=n(52),l=a("typed_array"),s=a("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(o=r[d[f++]])?(i(o.prototype,l,!0),i(o.prototype,s,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:l,VIEW:s}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},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){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){var o=n(43).f,r=n(62),i=n(22)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){n(514);for(var o=n(21),r=n(61),i=n(73),a=n(22)("toStringTag"),l="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(","),s=0;s<l.length;s++){var u=l[s],c=o[u],f=c&&c.prototype;f&&!f[a]&&r(f,a,u),i[u]=i.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){e.exports={default:n(533),__esModule:!0}},function(e,t,n){"use strict";(function(e){function o(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof self?self:e;var o,r,i="undefined"!=typeof document&&document.attachEvent;if(!i){var a=(r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},function(e){return r(e)}),l=(o=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout,function(e){return o(e)}),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=a(function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},c=!1,f="",d="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=document.createElement("fakeelement");if(void 0!==m.style.animationName&&(c=!0),!1===c)for(var v=0;v<p.length;v++)if(void 0!==m.style[p[v]+"AnimationName"]){f="-"+p[v].toLowerCase()+"-",d=h[v],c=!0;break}var g="resizeanim",y="@"+f+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",b=f+"animation: 1ms "+g+"; "}return{addResizeListener:function(e,o){if(i)e.attachEvent("onresize",o);else{if(!e.__resizeTriggers__){var r=e.ownerDocument,a=n.getComputedStyle(e);a&&"static"==a.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=e.head||e.getElementsByTagName("head")[0],r=e.createElement("style");r.id="detectElementResize",r.type="text/css",null!=t&&r.setAttribute("nonce",t),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(e.createTextNode(n)),o.appendChild(r)}}(r),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=r.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",u,!0),d&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==g&&s(e)},e.__resizeTriggers__.addEventListener(d,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}n.d(t,"a",function(){return o})}).call(this,n(101))},function(e,t,n){var o=n(10),r=n(7).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){t.f=n(13)},function(e,t,n){var o=n(88)("keys"),r=n(52);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(7).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(10),r=n(9),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(32)(Function.call,n(35).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t,n){var o=n(10),r=n(113).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&o(i)&&r&&r(e,i),e}},function(e,t,n){"use strict";var o=n(34),r=n(41);e.exports=function(e){var t=String(r(this)),n="",i=o(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var o=n(34),r=n(41);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(53),r=n(2),i=n(24),a=n(27),l=n(66),s=n(167),u=n(64),c=n(58),f=n(13)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,m,v,g){s(n,t,h);var y,b,w,S=function(e){if(!d&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",E="values"==m,x=!1,C=e.prototype,T=C[f]||C["@@iterator"]||m&&C[m],O=T||S(m),P=m?E?S("entries"):O:void 0,k="Array"==t&&C.entries||T;if(k&&(w=c(k.call(new e)))!==Object.prototype&&w.next&&(u(w,_,!0),o||"function"==typeof w[f]||a(w,f,p)),E&&T&&"values"!==T.name&&(x=!0,O=function(){return T.call(this)}),o&&!g||!d&&!x&&C[f]||a(C,f,O),l[t]=O,l[_]=p,m)if(y={values:E?O:S("values"),keys:v?O:S("keys"),entries:P},g)for(b in y)b in C||i(C,b,y[b]);else r(r.P+r.F*(d||x),t,y);return y}},function(e,t,n){var o=n(122),r=n(41);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){var o=n(10),r=n(40),i=n(13)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},function(e,t,n){var o=n(13)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(66),r=n(13)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){"use strict";var o=n(18),r=n(51);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(78),r=n(13)("iterator"),i=n(66);e.exports=n(16).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){"use strict";var o=n(20),r=n(55),i=n(14);e.exports=function(e){for(var t=o(this),n=i(t.length),a=arguments.length,l=r(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,u=void 0===s?n:r(s,n);u>l;)t[l++]=e;return t}},function(e,t,n){"use strict";var o=n(59),r=n(172),i=n(66),a=n(28);e.exports=n(120)(Array,"Array",function(e,t){this._t=a(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,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var o,r,i=n(93),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,u=(o=/a/,r=/b*/g,a.call(o,"a"),a.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(s=function(e){var t,n,o,r,s=this;return c&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),u&&(t=s.lastIndex),o=a.call(s,e),u&&o&&(s.lastIndex=s.global?o.index+o[0].length:t),c&&o&&o.length>1&&l.call(o[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)}),o}),e.exports=s},function(e,t,n){"use strict";var o=n(119)(!0);e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){var o,r,i,a=n(32),l=n(161),s=n(112),u=n(108),c=n(7),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,m=c.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)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){l("function"==typeof e?e:Function(e),t)},o(v),v},p=function(e){delete g[e]},"process"==n(40)(f)?o=function(e){f.nextTick(a(y,e,1))}:m&&m.now?o=function(e){m.now(a(y,e,1))}:h?(i=(r=new h).port2,r.port1.onmessage=b,o=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):o="onreadystatechange"in u("script")?function(e){s.appendChild(u("script")).onreadystatechange=function(){s.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},function(e,t,n){"use strict";var o=n(7),r=n(17),i=n(53),a=n(99),l=n(27),s=n(69),u=n(8),c=n(68),f=n(34),d=n(14),p=n(180),h=n(57).f,m=n(18).f,v=n(127),g=n(64),y="prototype",b="Wrong index!",w=o.ArrayBuffer,S=o.DataView,_=o.Math,E=o.RangeError,x=o.Infinity,C=w,T=_.abs,O=_.pow,P=_.floor,k=_.log,A=_.LN2,R=r?"_b":"buffer",M=r?"_l":"byteLength",D=r?"_o":"byteOffset";function L(e,t,n){var o,r,i,a=new Array(n),l=8*n-t-1,s=(1<<l)-1,u=s>>1,c=23===t?O(2,-24)-O(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===x?(r=e!=e?1:0,o=s):(o=P(k(e)/A),e*(i=O(2,-o))<1&&(o--,i*=2),(e+=o+u>=1?c/i:c*O(2,1-u))*i>=2&&(o++,i/=2),o+u>=s?(r=0,o=s):o+u>=1?(r=(e*i-1)*O(2,t),o+=u):(r=e*O(2,u-1)*O(2,t),o=0));t>=8;a[f++]=255&r,r/=256,t-=8);for(o=o<<t|r,l+=t;l>0;a[f++]=255&o,o/=256,l-=8);return a[--f]|=128*d,a}function j(e,t,n){var o,r=8*n-t-1,i=(1<<r)-1,a=i>>1,l=r-7,s=n-1,u=e[s--],c=127&u;for(u>>=7;l>0;c=256*c+e[s],s--,l-=8);for(o=c&(1<<-l)-1,c>>=-l,l+=t;l>0;o=256*o+e[s],s--,l-=8);if(0===c)c=1-a;else{if(c===i)return o?NaN:u?-x:x;o+=O(2,t),c-=a}return(u?-1:1)*o*O(2,c-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function I(e){return[255&e,e>>8&255]}function F(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function B(e){return L(e,52,8)}function U(e){return L(e,23,4)}function W(e,t,n){m(e[y],t,{get:function(){return this[n]}})}function H(e,t,n,o){var r=p(+n);if(r+t>e[M])throw E(b);var i=e[R]._b,a=r+e[D],l=i.slice(a,a+t);return o?l:l.reverse()}function V(e,t,n,o,r,i){var a=p(+n);if(a+t>e[M])throw E(b);for(var l=e[R]._b,s=a+e[D],u=o(+r),c=0;c<t;c++)l[s+c]=u[i?c:t-c-1]}if(a.ABV){if(!u(function(){w(1)})||!u(function(){new w(-1)})||u(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var G,q=(w=function(e){return c(this,w),new C(p(e))})[y]=C[y],$=h(C),Y=0;$.length>Y;)(G=$[Y++])in w||l(w,G,C[G]);i||(q.constructor=w)}var K=new S(new w(2)),Z=S[y].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(S[y],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else w=function(e){c(this,w,"ArrayBuffer");var t=p(e);this._b=v.call(new Array(t),0),this[M]=t},S=function(e,t,n){c(this,S,"DataView"),c(e,w,"DataView");var o=e[M],r=f(t);if(r<0||r>o)throw E("Wrong offset!");if(r+(n=void 0===n?o-r:d(n))>o)throw E("Wrong length!");this[R]=e,this[D]=r,this[M]=n},r&&(W(w,"byteLength","_l"),W(S,"buffer","_b"),W(S,"byteLength","_l"),W(S,"byteOffset","_o")),s(S[y],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return N(H(this,4,e,arguments[1]))},getUint32:function(e){return N(H(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return j(H(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return j(H(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){V(this,1,e,z,t)},setUint8:function(e,t){V(this,1,e,z,t)},setInt16:function(e,t){V(this,2,e,I,t,arguments[2])},setUint16:function(e,t){V(this,2,e,I,t,arguments[2])},setInt32:function(e,t){V(this,4,e,F,t,arguments[2])},setUint32:function(e,t){V(this,4,e,F,t,arguments[2])},setFloat32:function(e,t){V(this,4,e,U,t,arguments[2])},setFloat64:function(e,t){V(this,8,e,B,t,arguments[2])}});g(w,"ArrayBuffer"),g(S,"DataView"),l(S[y],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=S},function(e,t,n){var o=n(50),r=n(21).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(50);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var o=n(137)("keys"),r=n(102);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(15),r=n(21),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(81)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var o=n(29),r=n(15),i=n(71);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(38),r=n(511),i=n(142),a=n(136)("IE_PROTO"),l=function(){},s=function(){var e,t=n(133)("iframe"),o=i.length;for(t.style.display="none",n(194).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;o--;)delete s.prototype[i[o]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=o(e),n=new l,l.prototype=null,n[a]=e):n=s(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(139),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){t.f=n(22)},function(e,t,n){var o=n(21),r=n(15),i=n(81),a=n(143),l=n(43).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(105),r=n(80),i=n(63),a=n(134),l=n(62),s=n(184),u=Object.getOwnPropertyDescriptor;t.f=n(44)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(84),r=n(22)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(147),r=n(22)("iterator"),i=n(73);e.exports=n(15).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){"use strict";var o=n(100);function r(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=o(t),this.reject=o(n)}e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";e.exports=n(400)},function(e,t,n){"use strict";var o=n(150),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?a:l[e.$$typeof]||r}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=p(n);r&&r!==h&&e(t,r,o)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=s(t),m=s(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||o&&o[g]||m&&m[g]||l&&l[g])){var y=d(n,g);try{u(t,g,y)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";(function(e,o){var r,i=n(204);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:o;var a=Object(i.a)(r);t.a=a}).call(this,n(101),n(401)(e))},function(e,t,n){e.exports=!n(17)&&!n(8)(function(){return 7!=Object.defineProperty(n(108)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(7),r=n(16),i=n(53),a=n(109),l=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){var o=n(26),r=n(28),i=n(89)(!1),a=n(110)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var o=n(18),r=n(9),i=n(54);e.exports=n(17)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(28),r=n(57).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(17),r=n(54),i=n(90),a=n(77),l=n(20),s=n(76),u=Object.assign;e.exports=!u||n(8)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o})?function(e,t){for(var n=l(e),u=arguments.length,c=1,f=i.f,d=a.f;u>c;)for(var p,h=s(arguments[c++]),m=f?r(h).concat(f(h)):r(h),v=m.length,g=0;v>g;)p=m[g++],o&&!d.call(h,p)||(n[p]=h[p]);return n}:u},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(33),r=n(10),i=n(161),a=[].slice,l={},s=function(e,t,n){if(!(t in l)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";l[t]=Function("F,a","return new F("+o.join(",")+")")}return l[t](e,n)};e.exports=Function.bind||function(e){var t=o(this),n=a.call(arguments,1),l=function(){var o=n.concat(a.call(arguments));return this instanceof l?s(t,o.length,o):i(t,o,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?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)}},function(e,t,n){var o=n(7).parseInt,r=n(65).trim,i=n(114),a=/^[-+]?0[xX]/;e.exports=8!==o(i+"08")||22!==o(i+"0x16")?function(e,t){var n=r(String(e),3);return o(n,t>>>0||(a.test(n)?16:10))}:o},function(e,t,n){var o=n(7).parseFloat,r=n(65).trim;e.exports=1/o(n(114)+"-0")!=-1/0?function(e){var t=r(String(e),3),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},function(e,t,n){var o=n(40);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=o(e))throw TypeError(t);return+e}},function(e,t,n){var o=n(10),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var o=n(56),r=n(51),i=n(64),a={};n(27)(a,n(13)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(9);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(313);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,n){var o=n(33),r=n(20),i=n(76),a=n(14);e.exports=function(e,t,n,l,s){o(t);var u=r(e),c=i(u),f=a(u.length),d=s?f-1:0,p=s?-1:1;if(n<2)for(;;){if(d in c){l=c[d],d+=p;break}if(d+=p,s?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;s?d>=0:f>d;d+=p)d in c&&(l=t(l,c[d],d,u));return l}},function(e,t,n){"use strict";var o=n(20),r=n(55),i=n(14);e.exports=[].copyWithin||function(e,t){var n=o(this),a=i(n.length),l=r(e,a),s=r(t,a),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?a:r(u,a))-s,a-l),f=1;for(s<l&&l<s+c&&(f=-1,s+=c-1,l+=c-1);c-- >0;)s in n?n[l]=n[s]:delete n[l],l+=f,s+=f;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o=n(129);n(2)({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},function(e,t,n){n(17)&&"g"!=/./g.flags&&n(18).f(RegExp.prototype,"flags",{configurable:!0,get:n(93)})},function(e,t,n){"use strict";var o,r,i,a,l=n(53),s=n(7),u=n(32),c=n(78),f=n(2),d=n(10),p=n(33),h=n(68),m=n(96),v=n(79),g=n(131).set,y=n(333)(),b=n(176),w=n(334),S=n(97),_=n(177),E=s.TypeError,x=s.process,C=x&&x.versions,T=C&&C.v8||"",O=s.Promise,P="process"==c(x),k=function(){},A=r=b.f,R=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(13)("species")]=function(e){e(k,k)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(k)instanceof t&&0!==T.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t;return!(!d(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 o=e._v,r=1==e._s,i=0,a=function(t){var n,i,a,l=r?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{l?(r||(2==e._h&&N(e),e._h=1),!0===l?n=o:(c&&c.enter(),n=l(o),c&&(c.exit(),a=!0)),n===t.promise?u(E("Promise-chain cycle")):(i=M(n))?i.call(n,s,u):s(n)):u(o)}catch(e){c&&!a&&c.exit(),u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){g.call(s,function(){var t,n,o,r=e._v,i=j(e);if(i&&(t=w(function(){P?x.emit("unhandledRejection",r,e):(n=s.onunhandledrejection)?n({promise:e,reason:r}):(o=s.console)&&o.error&&o.error("Unhandled promise rejection",r)}),e._h=P||j(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){g.call(s,function(){var t;P?x.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=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))},I=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=M(e))?y(function(){var o={_w:n,_d:!1};try{t.call(e,u(I,o,1),u(z,o,1))}catch(e){z.call(o,e)}}):(n._v=e,n._s=1,D(n,!1))}catch(e){z.call({_w:n,_d:!1},e)}}};R||(O=function(e){h(this,O,"Promise","_h"),p(e),o.call(this);try{e(u(I,this,1),u(z,this,1))}catch(e){z.call(this,e)}},(o=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(69)(O.prototype,{then:function(e,t){var n=A(v(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?x.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)}}),i=function(){var e=new o;this.promise=e,this.resolve=u(I,e,1),this.reject=u(z,e,1)},b.f=A=function(e){return e===O||e===a?new i(e):r(e)}),f(f.G+f.W+f.F*!R,{Promise:O}),n(64)(O,"Promise"),n(67)("Promise"),a=n(16).Promise,f(f.S+f.F*!R,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(l||!R),"Promise",{resolve:function(e){return _(l&&this===a?O:this,e)}}),f(f.S+f.F*!(R&&n(92)(function(e){O.all(e).catch(k)})),"Promise",{all:function(e){var t=this,n=A(t),o=n.resolve,r=n.reject,i=w(function(){var n=[],i=0,a=1;m(e,!1,function(e){var l=i++,s=!1;n.push(void 0),a++,t.resolve(e).then(function(e){s||(s=!0,n[l]=e,--a||o(n))},r)}),--a||o(n)});return i.e&&r(i.v),n.promise},race:function(e){var t=this,n=A(t),o=n.reject,r=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},function(e,t,n){"use strict";var o=n(33);function r(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=o(t),this.reject=o(n)}e.exports.f=function(e){return new r(e)}},function(e,t,n){var o=n(9),r=n(10),i=n(176);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(18).f,r=n(56),i=n(69),a=n(32),l=n(68),s=n(96),u=n(120),c=n(172),f=n(67),d=n(17),p=n(49).fastKey,h=n(60),m=d?"_s":"size",v=function(e,t){var n,o=p(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,o){l(e,c,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,null!=o&&s(o,n,e[u],e)});return i(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,o=e._f;o;o=o.n)o.r=!0,o.p&&(o.p=o.p.n=void 0),delete n[o.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),o=v(n,e);if(o){var r=o.n,i=o.p;delete n._i[o.i],o.r=!0,i&&(i.n=r),r&&(r.p=i),n._f==o&&(n._f=r),n._l==o&&(n._l=i),n[m]--}return!!o},forEach:function(e){h(this,t);for(var n,o=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(o(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(h(this,t),e)}}),d&&o(c.prototype,"size",{get:function(){return h(this,t)[m]}}),c},def:function(e,t,n){var o,r,i=v(e,t);return i?i.v=n:(e._l=i={i:r=p(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=i),o&&(o.n=i),e[m]++,"F"!==r&&(e._i[r]=i)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var o=n(69),r=n(49).getWeak,i=n(9),a=n(10),l=n(68),s=n(96),u=n(37),c=n(26),f=n(60),d=u(5),p=u(6),h=0,m=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},g=function(e,t){return d(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var u=e(function(e,o){l(e,u,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=o&&s(o,n,e[i],e)});return o(u.prototype,{delete:function(e){if(!a(e))return!1;var n=r(e);return!0===n?m(f(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=r(e);return!0===n?m(f(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var o=r(i(t),!0);return!0===o?m(e).set(t,n):o[e._i]=n,e},ufstore:m}},function(e,t,n){var o=n(34),r=n(14);e.exports=function(e){if(void 0===e)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var o=n(57),r=n(90),i=n(9),a=n(7).Reflect;e.exports=a&&a.ownKeys||function(e){var t=o.f(i(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){var o=n(14),r=n(116),i=n(41);e.exports=function(e,t,n,a){var l=String(i(e)),s=l.length,u=void 0===n?" ":String(n),c=o(t);if(c<=s||""==u)return l;var f=c-s,d=r.call(u,Math.ceil(f/u.length));return d.length>f&&(d=d.slice(0,f)),a?d+l:l+d}},function(e,t,n){var o=n(17),r=n(54),i=n(28),a=n(77).f;e.exports=function(e){return function(t){for(var n,l=i(t),s=r(l),u=s.length,c=0,f=[];u>c;)n=s[c++],o&&!a.call(l,n)||f.push(e?[n,l[n]]:l[n]);return f}}},function(e,t,n){e.exports=!n(44)&&!n(71)(function(){return 7!=Object.defineProperty(n(133)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))r.call(n,c)&&(s[c]=n[c]);if(o){l=o(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){var o={"./ic-triangle.svg":412,"./ic_annotation_add_redact_black_24px.svg":413,"./ic_annotation_apply_redact_black_24px.svg":414,"./ic_annotation_area_black_24px.svg":415,"./ic_annotation_arrow_black_24px.svg":416,"./ic_annotation_callout_black_24px.svg":417,"./ic_annotation_circle_black_24px.svg":418,"./ic_annotation_cloud_black_24px.svg":419,"./ic_annotation_distance_black_24px.svg":420,"./ic_annotation_eraser_black_24px.svg":421,"./ic_annotation_free_highlight_black_24px.svg":422,"./ic_annotation_freehand_black_24px.svg":423,"./ic_annotation_freetext_black_24px.svg":424,"./ic_annotation_highlight_black_24px.svg":425,"./ic_annotation_image_black_24px.svg":426,"./ic_annotation_line_black_24px.svg":427,"./ic_annotation_perimeter_black_24px.svg":428,"./ic_annotation_polygon_black_24px.svg":429,"./ic_annotation_polyline_black_24px.svg":430,"./ic_annotation_redact_black_24px.svg":431,"./ic_annotation_ruler_black_24px.svg":432,"./ic_annotation_signature_black_24px.svg":433,"./ic_annotation_square_black_24px.svg":434,"./ic_annotation_squiggly_black_24px.svg":435,"./ic_annotation_stamp_black_24px.svg":436,"./ic_annotation_sticky_note_black_24px.svg":437,"./ic_annotation_strikeout_black_24px.svg":438,"./ic_annotation_underline_black_24px.svg":439,"./ic_annotations_black_24px.svg":440,"./ic_arrow_drop_down_black_24px.svg":441,"./ic_bookmarks_black_24px.svg":442,"./ic_check_black_24px.svg":443,"./ic_chevron_down_black_24px.svg":444,"./ic_chevron_left_black_24px.svg":445,"./ic_chevron_right_black_24px.svg":446,"./ic_chevron_up_black_24px.svg":447,"./ic_close_black_24px.svg":448,"./ic_comment_black_24px.svg":449,"./ic_copy_black_24px.svg":450,"./ic_delete_black_24px.svg":451,"./ic_edit_black_24px.svg":452,"./ic_fit_page_black_24px.svg":453,"./ic_fit_width_black_24px.svg":454,"./ic_font_size_black_24px.svg":455,"./ic_group_24px.svg":456,"./ic_left_sidebar_black_24px.svg":457,"./ic_list_black_24px.svg":458,"./ic_menu_black_24px.svg":459,"./ic_mode_day_black_24px.svg":460,"./ic_mode_night_black_24px.svg":461,"./ic_more_black_24px.svg":462,"./ic_outline_black_24px.svg":463,"./ic_overflow_black_24px.svg":464,"./ic_palette_black_24px.svg":465,"./ic_pan_black_24px.svg":466,"./ic_placeholder_black_24px.svg":467,"./ic_rotate_left_black_24px.svg":468,"./ic_rotate_right_black_24px.svg":469,"./ic_search_black_24px.svg":470,"./ic_select_black_24px.svg":471,"./ic_select_rectangular_black_24px.svg":472,"./ic_thumbnails_black_24px.svg":473,"./ic_thumbnails_grid_black_24px.svg":474,"./ic_ungroup_24px.svg":475,"./ic_view_mode_continuous_black_24px.svg":476,"./ic_view_mode_cover_black_24px.svg":477,"./ic_view_mode_facing_black_24px.svg":478,"./ic_view_mode_reflow_black_24px.svg":479,"./ic_view_mode_single_black_24px.svg":480,"./ic_viewer_settings_black_24px.svg":481,"./ic_zoom_in_black_24px.svg":482,"./ic_zoom_out_black_24px.svg":483,"./textselect_cursor.svg":484};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=186},function(e,t,n){var o=n(62),r=n(72),i=n(136)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){e.exports={default:n(505),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(507)),r=a(n(517)),i="function"==typeof r.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===i(o.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){"use strict";var o=n(81),r=n(29),i=n(191),a=n(61),l=n(73),s=n(510),u=n(103),c=n(187),f=n(22)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,m,v,g){s(n,t,h);var y,b,w,S=function(e){if(!d&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",E="values"==m,x=!1,C=e.prototype,T=C[f]||C["@@iterator"]||m&&C[m],O=T||S(m),P=m?E?S("entries"):O:void 0,k="Array"==t&&C.entries||T;if(k&&(w=c(k.call(new e)))!==Object.prototype&&w.next&&(u(w,_,!0),o||"function"==typeof w[f]||a(w,f,p)),E&&T&&"values"!==T.name&&(x=!0,O=function(){return T.call(this)}),o&&!g||!d&&!x&&C[f]||a(C,f,O),l[t]=O,l[_]=p,m)if(y={values:E?O:S("values"),keys:v?O:S("keys"),entries:P},g)for(b in y)b in C||i(C,b,y[b]);else r(r.P+r.F*(d||x),t,y);return y}},function(e,t,n){e.exports=n(61)},function(e,t,n){var o=n(62),r=n(63),i=n(512)(!1),a=n(136)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var o=n(84);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(21).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(192),r=n(142).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t){},function(e,t,n){var o=n(38);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(73),r=n(22)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){var o=n(38),r=n(100),i=n(22)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[i])?t:r(n)}},function(e,t,n){var o,r,i,a=n(70),l=n(544),s=n(194),u=n(133),c=n(21),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,m=c.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)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){l("function"==typeof e?e:Function(e),t)},o(v),v},p=function(e){delete g[e]},"process"==n(84)(f)?o=function(e){f.nextTick(a(y,e,1))}:m&&m.now?o=function(e){m.now(a(y,e,1))}:h?(i=(r=new h).port2,r.port1.onmessage=b,o=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):o="onreadystatechange"in u("script")?function(e){s.appendChild(u("script")).onreadystatechange=function(){s.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var o=n(38),r=n(50),i=n(149);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var o=n(22)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";function o(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return o})},function(e,t,n){e.exports={parse:n(403),stringify:n(406)}},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){function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}},function(e,t,n){(function(n){var o,r,i;r=[],void 0===(i="function"==typeof(o=function(){"use strict";function t(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){a(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function o(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,a){var l=i.URL||i.webkitURL,s=document.createElement("a");n=n||e.name||"download",s.download=n,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?r(s):o(s.href)?t(e,n,a):r(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){r(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(o(e))t(e,n,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){r(a)})}}:function(e,n,o,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,o);var a="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&l)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var c=i.URL||i.webkitURL,f=c.createObjectURL(e);r?r.location=f:top.location.href=f,r=null,setTimeout(function(){c.revokeObjectURL(f)},4e4)}});i.saveAs=a.saveAs=a,e.exports=a})?o.apply(t,r):o)||(e.exports=i)}).call(this,n(101))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2;var l=20,s=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function l(){n&&(n=!1,e()),o&&u()}function s(){i(l)}function u(){var e=Date.now();if(n){if(e-r<a)return;o=!0}else n=!0,o=!1,setTimeout(s,t);r=e}return u}(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},p=b(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var o=d(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=h(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=h(o.width),s=h(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=m(o,"left","right")+i),Math.round(s+a)!==n&&(s-=m(o,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(l+i)-t,c=Math.round(s+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return b(r.left,r.top,l,s)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?g(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):p}function b(e,t,n,o){return{x:e,y:t,width:n,height:o}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),S=function(e,t){var n,o,r,i,a,l,s,u=(o=(n=t).x,r=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),f(s,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),s);f(this,{target:e,contentRect:u})},_=function(){function e(e,t,o){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=o}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new S(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new _(t,n,this);E.set(this,o)};["observe","unobserve","disconnect"].forEach(function(e){x.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}});var C=void 0!==r.ResizeObserver?r.ResizeObserver:x;t.a=C}).call(this,n(101))},function(e,t){function n(e){void 0===e&&(e=128);var t=Math.log(e)/Math.log(2)|0,n=Math.pow(2,t),o=n-1;this.block_size=n,this.block_shift=t,this.block_mask=o,this.block_table=[],this._defaultSize=0,this._axisOffset=0,this._gap=0,this.removes=null,this.inserts=null,this._length=0,this._pendingLength=-1}function o(e,t,n){var o,r=e.sizes;for(n+=t;t<n;++t)if((o=r[t])===o)return!1;return!0}function r(e,t,n,o,r){for(var i=t<o,a=i?o:o+r-1,l=i?t:t+r-1,s=i?1:-1,u=e.sizes,c=n?n.sizes:null,f=NaN,d=NaN,p=0,h=0;r>0;)c&&(d=c[a]),d!==(f=u[l])&&(f!=f?h--:p-=f,d!=d?h++:p+=d,u[l]=d),a+=s,l+=s,r--;e.sizesSum+=p,e.defaultCount+=h}function i(e,t,n){var i=e<t;for(i||(e+=n-1,t+=n-1);n>0;){var a=e>>this.block_shift,l=e&this.block_mask,s=this.block_table[a],u=t>>this.block_shift,c=t&this.block_mask,d=this.block_table[u],p=i?Math.min(this.block_size-l,this.block_size-c):1+Math.min(l,c);p=Math.min(p,n);var h=i?l:l-p+1,m=i?c:c-p+1;if(d&&!s&&o(d,m,p)&&(s=new f(this.block_size),this.block_table[a]=s),s)if(r(s,h,d,m,p),s.defaultCount===this.block_size)((i?h+p===this.block_size:0===h)||n===p)&&(this.block_table[a]=null);e+=i?p:-p,t+=i?p:-p,n-=p}}function a(e,t){for(;e<=t;){var n=e>>this.block_shift,o=e&this.block_mask,i=this.block_table[n],a=this.block_size-o;a=Math.min(a,t-e+1),i&&(a===this.block_size?this.block_table[n]=null:(r(i,o,null,0,a),i.defaultCount===this.block_size&&(this.block_table[n]=null))),e+=a}}function l(e){var t=e.length;if(0!==t){e.reverse(),e.push(this.getLength());var n,o,r=e[0],a=0;do{var l=e[a+1],s=e[a+2];a+=2,o=s-(n=l+1),i.call(this,r,n,o),r+=o}while(a<t);this.setLength(r)}}function s(e,t){var n=e.length;if(0!==n){var o=this.getLength();this.setLength(t);for(var r=o-1,l=t-1,s=n-2;s>=0;){var u=e[s],c=e[s+1];s-=2;var f=c+1,d=l-f+1,p=r-d+1;i.call(this,f,p,d),f-=d,l=u-1,a.call(this,u,c)}}}function u(){var e;if(this.removes)e=this.removes,this.removes=null,this._pendingLength=-1,l.call(this,e);else if(this.inserts){e=this.inserts;var t=this._pendingLength;this.inserts=null,this._pendingLength=-1,s.call(this,e,t)}}function c(e){if(0===this._length||e<0)return-1;var t=this.getAxisOffset();if(e<t)return 0;for(var n=-1,o=null,r=this.block_size,i=this._defaultSize,a=this.getGap(),l=a*r,s=-1,u=this.block_table,c=u.length;++s<c;){var f=l+((o=u[s])?o.sizesSum+o.defaultCount*i:r*i);if(e===t||e>=t&&e<t+f){n=s<<this.block_shift;break}t+=f}if(-1===n||e===t)return n;if(o){for(var d=o.sizes,p=this.block_size-1,h=0;h<p;h++){var m=d[h];if((t+=a+(m!=m?this._defaultSize:m))>e)return n+h}return n+this.block_size-1}return n+Math.floor(Number(e-t)/Number(this._defaultSize+a))}function f(e){this.sizes=new Array(e),this.sizesSum=0,this.defaultCount=e;for(var t=-1;++t<e;)this.sizes[t]=NaN}e.exports=n,n.prototype.getLength=function(){return-1===this._pendingLength?this._length:this._pendingLength},n.prototype.setLength=function(e){if(u.call(this),e<this._length){var t=e>>this.block_shift,n=Math.min(t*this.block_size+this.block_size,this._length)-1;a.call(this,e,n)}this._length=e;var o=0==(this._length&this.block_mask)?0:1;this.block_table.length=(this._length>>this.block_shift)+o},n.prototype.getDefaultSize=function(){return this._defaultSize},n.prototype.setDefaultSize=function(e){this._defaultSize=e},n.prototype.getAxisOffset=function(){return this._axisOffset},n.prototype.setAxisOffset=function(e){this._axisOffset=e},n.prototype.getGap=function(){return this._gap},n.prototype.setGap=function(e){this._gap=e},n.prototype.getItemSize=function(e){u.call(this);var t=this.block_table[e>>this.block_shift];if(t){var n=t.sizes[e&this.block_mask];return n!=n?this._defaultSize:n}return this._defaultSize},n.prototype.setItemSize=function(e,t){if(u.call(this),e>=this.getLength())throw new Error("Invalid index and all that.");var n=e>>this.block_shift,o=this.block_table[n];o||(o=this.block_table[n]=new f(this.block_size));var r=e&this.block_mask,i=o.sizes,a=i[r];if(a===t)return;a!=a?(o.defaultCount-=1,o.sizesSum+=t):t!=t?(o.defaultCount+=1,o.sizesSum-=a):o.sizesSum+=t-a;i[r]=t},n.prototype.insert=function(e){this.removes&&u.call(this);if(this.inserts){var t=this.inserts.length-1,n=this.inserts[t];e===n+1?this.inserts[t]=e:e>n?(this.inserts.push(e),this.inserts.push(e)):u.call(this)}this._pendingLength=Math.max(this._length,e+1),this.inserts||(this.inserts=[],this.inserts.push(e),this.inserts.push(e))},n.prototype.remove=function(e){this.inserts&&u.call(this);if(e>=this.getLength())throw new Error("Invalid index and all that.");if(this.removes){var t=this.removes.length-1,n=this.removes[t];e===n-1?this.removes[t]=e:e<n?(this.removes.push(e),this.removes.push(e)):u.call(this)}this._pendingLength=-1===this._pendingLength?length-1:this._pendingLength-1,this.removes||(this.removes=[],this.removes.push(e),this.removes.push(e))},n.prototype.start=function(e){if(u.call(this),0===this._length||0===e)return this.getAxisOffset();if(e>=this._length)throw new Error("Invalid index and all that.");for(var t=this.getAxisOffset(),n=e>>this.block_shift,o=0;o<n;o++){var r=this.block_table[o];t+=r?r.sizesSum+r.defaultCount*this._defaultSize:this.block_size*this._defaultSize}var i=this.block_table[n],a=e&~this.block_mask,l=e-a;if(i){var s=i.sizes;for(o=0;o<l;o++){var c=s[o];t+=c!=c?this._defaultSize:c}}else t+=this._defaultSize*l;return t+=e*this.getGap()},n.prototype.end=function(e){return u.call(this),this.start(e)+this.getItemSize(e)},n.prototype.indexOf=function(e){u.call(this);var t=c.call(this,e);return t>=this._length?-1:t},n.prototype.clear=function(){this.removes=null,this.inserts=null,this._pendingLength=-1,this.setLength(0)},n.prototype.toString=function(){return"LinearLayoutVector { length: "+this._length+", size: "+this.end(this.getLength()-1)+", [blocks: "+this.block_table.length+"], gap: "+this._gap+", defaultSize: "+this._defaultSize+", pendingRemoves: "+(this.removes?this.removes.length:0)+", pendingInserts: "+(this.inserts?this.inserts.length:0)+" }"}},function(e,t,n){e.exports={default:n(540),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(551),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){e.exports={default:n(555),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var o=i(n(557)),r=i(n(560));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return function(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var l,s=(0,r.default)(e);!(o=(l=s.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var o,r,i;r=[e,n(1),n(0)],void 0===(i="function"==typeof(o=function(e,t,n){"use strict";var o=a(e),r=a(t),i=a(n);function a(e){return e&&e.__esModule?e:{default:e}}var l,s,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c={x:"clientWidth",y:"clientHeight"},f={x:"clientTop",y:"clientLeft"},d={x:"innerWidth",y:"innerHeight"},p={x:"offsetWidth",y:"offsetHeight"},h={x:"offsetLeft",y:"offsetTop"},m={x:"overflowX",y:"overflowY"},v={x:"scrollWidth",y:"scrollHeight"},g={x:"scrollLeft",y:"scrollTop"},y={x:"width",y:"height"},b=function(){},w=!!function(){if("undefined"==typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",b,{get passive(){return e=!0,!1}})}catch(e){}return e}()&&{passive:!0};o.default.exports=(s=l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=e.initialIndex,r=n.constrain(o,0,1,e),i=r.from,a=r.size;return n.state={from:i,size:a,itemsPerRow:1},n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Component),u(t,[{key:"componentWillReceiveProps",value:function(e){this.props.axis!==e.axis&&this.clearSizeCache();var t=this.state,n=t.from,o=t.size,r=t.itemsPerRow;this.maybeSetState(this.constrain(n,o,r,e),b)}},{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(){var e=this;if(!this.unstable){if(++this.updateCounter>50)return this.unstable=!0,console.error("ReactList failed to reach a stable state.");this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){e.updateCounter=0,delete e.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0}(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,w),this.scrollParent.removeEventListener("mousewheel",b,w)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[f[t]]||0,o=h[t];do{n+=e[o]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"==typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=g[t],o=e===window?document.body[n]||document.documentElement[n]:e[n],r=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),i=Math.max(0,Math.min(o,r)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+i-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[g[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,o=t.documentElement,r=v[this.props.axis];return e===window?Math.max(n[r],o[r]):e[r]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),o=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(o=Math.min(o,this.getSpaceBefore(this.props.length))),{start:n,end:o}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,o=this.state,r=o.itemSize,i=o.itemsPerRow;if(n&&r&&i)return{itemSize:r,itemsPerRow:i};var a=this.items.children;if(!a.length)return{};var l=a[0],s=l[p[t]],u=Math.abs(s-r);if((isNaN(u)||u>=1)&&(r=s),!r)return{};for(var c=h[t],f=l[c],d=a[i=1];d&&d[c]===f;d=a[i])++i;return{itemSize:r,itemsPerRow:i}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!=typeof e&&(e=b),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",b)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,w),this.scrollParent.addEventListener("mousewheel",b,w))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,o=0;if(n.length){var r=this.props.axis,i=n[0],a=n[n.length-1];o=this.getOffset(a)+a[p[r]]-this.getOffset(i)}if(o>t)return e();var l=this.props,s=l.pageSize,u=l.length,c=Math.min(this.state.size+s,u);this.maybeSetState({size:c},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,o=t.end,r=this.props,i=r.length,a=r.pageSize,l=0,s=0,u=0,c=i-1;s<c;){var f=this.getSizeOfItem(s);if(null==f||l+f>n)break;l+=f,++s}for(var d=i-s;u<d&&l<o;){var p=this.getSizeOfItem(s+u);if(null==p){u=Math.min(u+a,d);break}l+=p,++u}this.maybeSetState({from:s,size:u},e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,o=t.itemsPerRow;if(!n||!o)return e();var r=this.getStartAndEnd(),i=r.start,a=r.end,l=this.constrain(Math.floor(i/n)*o,(Math.ceil((a-i)/n)+1)*o,o,this.props),s=l.from,u=l.size;return this.maybeSetState({itemsPerRow:o,from:s,itemSize:n,size:u},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,o=n.itemSize,r=n.itemsPerRow;if(o)return t[e]=Math.floor(e/r)*o;for(var i=e;i>0&&null==t[--i];);for(var a=t[i]||0,l=i;l<e;++l){t[l]=a;var s=this.getSizeOfItem(l);if(null==s)break;a+=s}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,o=p[this.props.axis],r=0,i=n.length;r<i;++r)e[t+r]=n[r][o]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,o=this.props,r=o.axis,i=o.itemSizeGetter,a=o.itemSizeEstimator,l=o.type,s=this.state,u=s.from,c=s.itemSize,f=s.size;if(c)return c;if(i)return i(e);if(e in t)return t[e];if("simple"===l&&e>=u&&e<u+f&&n){var d=n.children[e-u];if(d)return d[p[r]]}return a?a(e,t):void 0}},{key:"constrain",value:function(e,t,n,o){var r=o.length,i=o.minSize,a=o.type,l=(t=Math.max(t,i))%n;return l&&(t+=n-l),t>r&&(t=r),(l=(e="simple"!==a&&e?Math.max(Math.min(e,r-t),0):0)%n)&&(e-=l,t+=l),{from:e,size:t}}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),o=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),r=Math.min(o,n),i=Math.max(o,n);return t<=r?this.setScroll(r):t>i?this.setScroll(i):void 0}},{key:"getVisibleRange",value:function(){for(var e=this.state,t=e.from,n=e.size,o=this.getStartAndEnd(0),r=o.start,i=o.end,a={},l=void 0,s=void 0,u=t;u<t+n;++u){var c=this.getSpaceBefore(u,a),f=c+this.getSizeOfItem(u);null==l&&f>r&&(l=u),null!=l&&c<i&&(s=u)}return[l,s]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,o=t.itemsRenderer,r=this.state,i=r.from,a=r.size,l=[],s=0;s<a;++s)l.push(n(i+s,s));return o(l,function(t){return e.items=t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.axis,o=t.length,r=t.type,a=t.useTranslate3d,l=this.state,s=l.from,u=l.itemsPerRow,c=this.renderItems();if("simple"===r)return c;var f={position:"relative"},d={},p=Math.ceil(o/u)*u,h=this.getSpaceBefore(p,d);h&&(f[y[n]]=h,"x"===n&&(f.overflowX="hidden"));var m=this.getSpaceBefore(s,d),v="x"===n?m:0,g="y"===n?m:0,b=a?"translate3d("+v+"px, "+g+"px, 0)":"translate("+v+"px, "+g+"px)",w={msTransform:b,WebkitTransform:b,transform:b};return i.default.createElement("div",{style:f,ref:function(t){return e.el=t}},i.default.createElement("div",{style:w},c))}}]),t}(),l.displayName="ReactList",l.propTypes={axis:r.default.oneOf(["x","y"]),initialIndex:r.default.number,itemRenderer:r.default.func,itemSizeEstimator:r.default.func,itemSizeGetter:r.default.func,itemsRenderer:r.default.func,length:r.default.number,minSize:r.default.number,pageSize:r.default.number,scrollParentGetter:r.default.func,scrollParentViewportSizeGetter:r.default.func,threshold:r.default.number,type:r.default.oneOf(["simple","variable","uniform"]),useStaticSize:r.default.bool,useTranslate3d:r.default.bool},l.defaultProps={axis:"y",itemRenderer:function(e,t){return i.default.createElement("div",{key:t},e)},itemsRenderer:function(e,t){return i.default.createElement("div",{ref:t},e)},length:0,minSize:1,pageSize:10,scrollParentGetter:function(e){for(var t=e.props.axis,n=e.getEl(),o=m[t];n=n.parentElement;)switch(window.getComputedStyle(n)[o]){case"auto":case"scroll":case"overlay":return n}return window},scrollParentViewportSizeGetter:function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[d[t]]:n[c[t]]},threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1},s)})?o.apply(t,r):o)||(e.exports=i)},function(e,t,n){t.hot=function(e){return e}},function(e){e.exports=JSON.parse('{"name":"webviewer-ui","author":"PDFTron Systems Inc.","version":"5.2.3","description":"WebViewer UI built in React","main":"src/index.js","scripts":{"download-webviewer":"npx @pdftron/webviewer-downloader --core-only --path ./lib","start":"babel-node ./dev-server.js","cypress:open":"cypress open --project ./test/cypress","lint":"eslint ./src/**/*.js","lint:fix":"eslint --fix ./src/**/*.js","clean":"rimraf build","bundle":"webpack --progress --config ./webpack.config.prod.js","build":"npm run clean && npm run bundle","translation":"node ./scripts/translate-i18n-files.js"},"dependencies":{"classnames":"^2.2.6","react-measure":"^2.3.0","react-onclickoutside":"^6.9.0","react-virtualized":"^9.21.1","autolinker":"^3.11.0","dayjs":"^1.7.5","file-saver":"git+https://github.com/ZhijieZhang/FileSaver.js.git","i18next":"^17.0.12","i18next-xhr-backend":"^3.1.2","node-sass":"^4.5.3","react":"^16.9.0","react-dom":"^16.9.0","react-hot-loader":"^4.12.11","react-i18next":"^10.12.2","react-list":"^0.8.8","react-redux":"^7.1","redux":"^4.0.0","redux-thunk":"^2.3.0"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/node":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-proposal-export-namespace-from":"^7.5.2","@babel/plugin-proposal-function-sent":"^7.5.0","@babel/plugin-proposal-numeric-separator":"^7.2.0","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-throw-expressions":"^7.2.0","@babel/polyfill":"^7.4.4","@babel/preset-env":"^7.5.5","@babel/preset-react":"^7.0.0","@google-cloud/translate":"^4.1.3","@hot-loader/react-dom":"^16.9.0","@pdftron/webviewer-downloader":"^1.1.0","babel-eslint":"^10.0.2","babel-loader":"8.0.6","body-parser":"^1.17.1","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.0.4","css-loader":"^3.2.0","cssnano":"^4.1.10","cypress":"^3.4.1","eslint":"^6.2.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-cypress":"^2.2.0","eslint-plugin-import":"^2.14.0","eslint-plugin-react":"^7.7.0","eslint-plugin-react-hooks":"^2.0.1","express":"^4.15.2","ip":"^1.1.5","mini-css-extract-plugin":"^0.8.0","opn":"^6.0.0","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","postcss-preset-env":"^6.6.0","prop-types":"^15.6.2","redux-logger":"^3.0.6","rimraf":"^3.0.0","sass-loader":"^7.3.1","style-loader":"^1.0.0","svg-inline-loader":"^0.8.0","webpack":"^4.39.2","webpack-bundle-analyzer":">=3.3.2","webpack-cli":"^3.3.7","webpack-dev-middleware":"^3.1.3","webpack-hot-middleware":"^2.18.0"}}')},function(e,t,n){n(219),e.exports=n(601)},function(e,t,n){"use strict";n(220);var o,r=(o=n(392))&&o.__esModule?o:{default:o};r.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),r.default._babelPolyfill=!0},function(e,t,n){"use strict";n(221),n(364),n(366),n(369),n(371),n(373),n(375),n(377),n(379),n(381),n(383),n(385),n(387),n(391)},function(e,t,n){n(222),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(303),n(304),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(128),n(327),n(173),n(328),n(174),n(329),n(330),n(331),n(332),n(175),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),e.exports=n(16)},function(e,t,n){"use strict";var o=n(7),r=n(26),i=n(17),a=n(2),l=n(24),s=n(49).KEY,u=n(8),c=n(88),f=n(64),d=n(52),p=n(13),h=n(109),m=n(154),v=n(224),g=n(91),y=n(9),b=n(10),w=n(20),S=n(28),_=n(48),E=n(51),x=n(56),C=n(157),T=n(35),O=n(90),P=n(18),k=n(54),A=T.f,R=P.f,M=C.f,D=o.Symbol,L=o.JSON,j=L&&L.stringify,N=p("_hidden"),z=p("toPrimitive"),I={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),U=c("op-symbols"),W=Object.prototype,H="function"==typeof D&&!!O.f,V=o.QObject,G=!V||!V.prototype||!V.prototype.findChild,q=i&&u(function(){return 7!=x(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=A(W,t);o&&delete W[t],R(e,t,n),o&&e!==W&&R(W,t,o)}:R,$=function(e){var t=B[e]=x(D.prototype);return t._k=e,t},Y=H&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,n){return e===W&&K(U,t,n),y(e),t=_(t,!0),y(n),r(B,t)?(n.enumerable?(r(e,N)&&e[N][t]&&(e[N][t]=!1),n=x(n,{enumerable:E(0,!1)})):(r(e,N)||R(e,N,E(1,{})),e[N][t]=!0),q(e,t,n)):R(e,t,n)},Z=function(e,t){y(e);for(var n,o=v(t=S(t)),r=0,i=o.length;i>r;)K(e,n=o[r++],t[n]);return e},Q=function(e){var t=I.call(this,e=_(e,!0));return!(this===W&&r(B,e)&&!r(U,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,N)&&this[N][e])||t)},X=function(e,t){if(e=S(e),t=_(t,!0),e!==W||!r(B,t)||r(U,t)){var n=A(e,t);return!n||!r(B,t)||r(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(S(e)),o=[],i=0;n.length>i;)r(B,t=n[i++])||t==N||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===W,o=M(n?U:S(e)),i=[],a=0;o.length>a;)!r(B,t=o[a++])||n&&!r(W,t)||i.push(B[t]);return i};H||(l((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(U,n),r(this,N)&&r(this[N],e)&&(this[N][e]=!1),q(this,e,E(1,n))};return i&&G&&q(W,e,{configurable:!0,set:t}),$(e)}).prototype,"toString",function(){return this._k}),T.f=X,P.f=K,n(57).f=C.f=J,n(77).f=Q,O.f=ee,i&&!n(53)&&l(W,"propertyIsEnumerable",Q,!0),h.f=function(e){return $(p(e))}),a(a.G+a.W+a.F*!H,{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 oe=k(p.store),re=0;oe.length>re;)m(oe[re++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?x(e):Z(x(e),t)},defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var ie=u(function(){O.f(1)});a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),L&&a(a.S+a.F*(!H||u(function(){var e=D();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(b(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),o[1]=t,j.apply(L,o)}}),D.prototype[z]||n(27)(D.prototype,z,D.prototype.valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){e.exports=n(88)("native-function-to-string",Function.toString)},function(e,t,n){var o=n(54),r=n(90),i=n(77);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){var o=n(2);o(o.S,"Object",{create:n(56)})},function(e,t,n){var o=n(2);o(o.S+o.F*!n(17),"Object",{defineProperty:n(18).f})},function(e,t,n){var o=n(2);o(o.S+o.F*!n(17),"Object",{defineProperties:n(156)})},function(e,t,n){var o=n(28),r=n(35).f;n(36)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(20),r=n(58);n(36)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(20),r=n(54);n(36)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){n(36)("getOwnPropertyNames",function(){return n(157).f})},function(e,t,n){var o=n(10),r=n(49).onFreeze;n(36)("freeze",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(10),r=n(49).onFreeze;n(36)("seal",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(10),r=n(49).onFreeze;n(36)("preventExtensions",function(e){return function(t){return e&&o(t)?e(r(t)):t}})},function(e,t,n){var o=n(10);n(36)("isFrozen",function(e){return function(t){return!o(t)||!!e&&e(t)}})},function(e,t,n){var o=n(10);n(36)("isSealed",function(e){return function(t){return!o(t)||!!e&&e(t)}})},function(e,t,n){var o=n(10);n(36)("isExtensible",function(e){return function(t){return!!o(t)&&(!e||e(t))}})},function(e,t,n){var o=n(2);o(o.S+o.F,"Object",{assign:n(158)})},function(e,t,n){var o=n(2);o(o.S,"Object",{is:n(159)})},function(e,t,n){var o=n(2);o(o.S,"Object",{setPrototypeOf:n(113).set})},function(e,t,n){"use strict";var o=n(78),r={};r[n(13)("toStringTag")]="z",r+""!="[object z]"&&n(24)(Object.prototype,"toString",function(){return"[object "+o(this)+"]"},!0)},function(e,t,n){var o=n(2);o(o.P,"Function",{bind:n(160)})},function(e,t,n){var o=n(18).f,r=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in r||n(17)&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(10),r=n(58),i=n(13)("hasInstance"),a=Function.prototype;i in a||n(18).f(a,i,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=r(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var o=n(2),r=n(162);o(o.G+o.F*(parseInt!=r),{parseInt:r})},function(e,t,n){var o=n(2),r=n(163);o(o.G+o.F*(parseFloat!=r),{parseFloat:r})},function(e,t,n){"use strict";var o=n(7),r=n(26),i=n(40),a=n(115),l=n(48),s=n(8),u=n(57).f,c=n(35).f,f=n(18).f,d=n(65).trim,p=o.Number,h=p,m=p.prototype,v="Number"==i(n(56)(m)),g="trim"in String.prototype,y=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){var n,o,r,i=(t=g?t.trim():d(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+t}for(var a,s=t.slice(2),u=0,c=s.length;u<c;u++)if((a=s.charCodeAt(u))<48||a>r)return NaN;return parseInt(s,o)}}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?s(function(){m.valueOf.call(n)}):"Number"!=i(n))?a(new h(y(t)),n,p):y(t)};for(var b,w=n(17)?u(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)r(h,b=w[S])&&!r(p,b)&&f(p,b,c(h,b));p.prototype=m,m.constructor=p,n(24)(o,"Number",p)}},function(e,t,n){"use strict";var o=n(2),r=n(34),i=n(164),a=n(116),l=1..toFixed,s=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*u[n],u[n]=o%1e7,o=s(o/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=s(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},h=function(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)};o(o.P+o.F*(!!l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(8)(function(){l.call({})})),"Number",{toFixed:function(e){var t,n,o,l,s=i(this,c),u=r(e),m="",v="0";if(u<0||u>20)throw RangeError(c);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(m="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*h(2,69,1))-69)<0?s*h(2,-t,1):s/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),o=u;o>=7;)f(1e7,0),o-=7;for(f(h(10,o,1),0),o=t-1;o>=23;)d(1<<23),o-=23;d(1<<o),f(1,1),d(2),v=p()}else f(0,n),f(1<<-t,0),v=p()+a.call("0",u);return v=u>0?m+((l=v.length)<=u?"0."+a.call("0",u-l)+v:v.slice(0,l-u)+"."+v.slice(l-u)):m+v}})},function(e,t,n){"use strict";var o=n(2),r=n(8),i=n(164),a=1..toPrecision;o(o.P+o.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var o=n(2);o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var o=n(2),r=n(7).isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},function(e,t,n){var o=n(2);o(o.S,"Number",{isInteger:n(165)})},function(e,t,n){var o=n(2);o(o.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var o=n(2),r=n(165),i=Math.abs;o(o.S,"Number",{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){var o=n(2);o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var o=n(2);o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var o=n(2),r=n(163);o(o.S+o.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(e,t,n){var o=n(2),r=n(162);o(o.S+o.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(e,t,n){var o=n(2),r=n(166),i=Math.sqrt,a=Math.acosh;o(o.S+o.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:r(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var o=n(2),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var o=n(2),r=Math.atanh;o(o.S+o.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var o=n(2),r=n(117);o(o.S,"Math",{cbrt:function(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var o=n(2);o(o.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var o=n(2),r=Math.exp;o(o.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},function(e,t,n){var o=n(2),r=n(118);o(o.S+o.F*(r!=Math.expm1),"Math",{expm1:r})},function(e,t,n){var o=n(2);o(o.S,"Math",{fround:n(267)})},function(e,t,n){var o=n(117),r=Math.pow,i=r(2,-52),a=r(2,-23),l=r(2,127)*(2-a),s=r(2,-126);e.exports=Math.fround||function(e){var t,n,r=Math.abs(e),u=o(e);return r<s?u*(r/s/a+1/i-1/i)*s*a:(n=(t=(1+a/i)*r)-(t-r))>l||n!=n?u*(1/0):u*n}},function(e,t,n){var o=n(2),r=Math.abs;o(o.S,"Math",{hypot:function(e,t){for(var n,o,i=0,a=0,l=arguments.length,s=0;a<l;)s<(n=r(arguments[a++]))?(i=i*(o=s/n)*o+1,s=n):i+=n>0?(o=n/s)*o:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var o=n(2),r=Math.imul;o(o.S+o.F*n(8)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(e,t){var n=+e,o=+t,r=65535&n,i=65535&o;return 0|r*i+((65535&n>>>16)*i+r*(65535&o>>>16)<<16>>>0)}})},function(e,t,n){var o=n(2);o(o.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var o=n(2);o(o.S,"Math",{log1p:n(166)})},function(e,t,n){var o=n(2);o(o.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var o=n(2);o(o.S,"Math",{sign:n(117)})},function(e,t,n){var o=n(2),r=n(118),i=Math.exp;o(o.S+o.F*n(8)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var o=n(2),r=n(118),i=Math.exp;o(o.S,"Math",{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var o=n(2);o(o.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var o=n(2),r=n(55),i=String.fromCharCode,a=String.fromCodePoint;o(o.S+o.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var o=n(2),r=n(28),i=n(14);o(o.S,"String",{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],l=0;n>l;)a.push(String(t[l++])),l<o&&a.push(String(arguments[l]));return a.join("")}})},function(e,t,n){"use strict";n(65)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var o=n(119)(!0);n(120)(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=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(2),r=n(119)(!1);o(o.P,"String",{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var o=n(2),r=n(14),i=n(121),a="".endsWith;o(o.P+o.F*n(123)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,o=r(t.length),l=void 0===n?o:Math.min(r(n),o),s=String(e);return a?a.call(t,s,l):t.slice(l-s.length,l)===s}})},function(e,t,n){"use strict";var o=n(2),r=n(121);o(o.P+o.F*n(123)("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(2);o(o.P,"String",{repeat:n(116)})},function(e,t,n){"use strict";var o=n(2),r=n(14),i=n(121),a="".startsWith;o(o.P+o.F*n(123)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return a?a.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";n(25)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){"use strict";n(25)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(25)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(25)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(25)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(25)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(25)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(25)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(25)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(25)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(25)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(25)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(25)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var o=n(2);o(o.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var o=n(2),r=n(20),i=n(48);o(o.P+o.F*n(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=r(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var o=n(2),r=n(302);o(o.P+o.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(e,t,n){"use strict";var o=n(8),r=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=o(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!o(function(){i.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),o=t<0?"-":t>9999?"+":"";return o+("00000"+Math.abs(t)).slice(o?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var o=Date.prototype,r=o.toString,i=o.getTime;new Date(NaN)+""!="Invalid Date"&&n(24)(o,"toString",function(){var e=i.call(this);return e==e?r.call(this):"Invalid Date"})},function(e,t,n){var o=n(13)("toPrimitive"),r=Date.prototype;o in r||n(27)(r,o,n(305))},function(e,t,n){"use strict";var o=n(9),r=n(48);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!=e)}},function(e,t,n){var o=n(2);o(o.S,"Array",{isArray:n(91)})},function(e,t,n){"use strict";var o=n(32),r=n(2),i=n(20),a=n(168),l=n(124),s=n(14),u=n(125),c=n(126);r(r.S+r.F*!n(92)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,y=c(d);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),null==y||p==Array&&l(y))for(n=new p(t=s(d.length));t>g;g++)u(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(r=f.next()).done;g++)u(n,g,v?a(f,m,[r.value,g],!0):r.value);return n.length=g,n}})},function(e,t,n){"use strict";var o=n(2),r=n(125);o(o.S+o.F*n(8)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var o=n(2),r=n(28),i=[].join;o(o.P+o.F*(n(76)!=Object||!n(30)(i)),"Array",{join:function(e){return i.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var o=n(2),r=n(112),i=n(40),a=n(55),l=n(14),s=[].slice;o(o.P+o.F*n(8)(function(){r&&s.call(r)}),"Array",{slice:function(e,t){var n=l(this.length),o=i(this);if(t=void 0===t?n:t,"Array"==o)return s.call(this,e,t);for(var r=a(e,n),u=a(t,n),c=l(u-r),f=new Array(c),d=0;d<c;d++)f[d]="String"==o?this.charAt(r+d):this[r+d];return f}})},function(e,t,n){"use strict";var o=n(2),r=n(33),i=n(20),a=n(8),l=[].sort,s=[1,2,3];o(o.P+o.F*(a(function(){s.sort(void 0)})||!a(function(){s.sort(null)})||!n(30)(l)),"Array",{sort:function(e){return void 0===e?l.call(i(this)):l.call(i(this),r(e))}})},function(e,t,n){"use strict";var o=n(2),r=n(37)(0),i=n(30)([].forEach,!0);o(o.P+o.F*!i,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var o=n(10),r=n(91),i=n(13)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),o(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var o=n(2),r=n(37)(1);o(o.P+o.F*!n(30)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(2),r=n(37)(2);o(o.P+o.F*!n(30)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(2),r=n(37)(3);o(o.P+o.F*!n(30)([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(2),r=n(37)(4);o(o.P+o.F*!n(30)([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(2),r=n(170);o(o.P+o.F*!n(30)([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var o=n(2),r=n(170);o(o.P+o.F*!n(30)([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var o=n(2),r=n(89)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;o(o.P+o.F*(a||!n(30)(i)),"Array",{indexOf:function(e){return a?i.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){"use strict";var o=n(2),r=n(28),i=n(34),a=n(14),l=[].lastIndexOf,s=!!l&&1/[1].lastIndexOf(1,-0)<0;o(o.P+o.F*(s||!n(30)(l)),"Array",{lastIndexOf:function(e){if(s)return l.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=Math.min(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}})},function(e,t,n){var o=n(2);o(o.P,"Array",{copyWithin:n(171)}),n(59)("copyWithin")},function(e,t,n){var o=n(2);o(o.P,"Array",{fill:n(127)}),n(59)("fill")},function(e,t,n){"use strict";var o=n(2),r=n(37)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(59)("find")},function(e,t,n){"use strict";var o=n(2),r=n(37)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),o(o.P+o.F*a,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(59)(i)},function(e,t,n){n(67)("Array")},function(e,t,n){var o=n(7),r=n(115),i=n(18).f,a=n(57).f,l=n(122),s=n(93),u=o.RegExp,c=u,f=u.prototype,d=/a/g,p=/a/g,h=new u(d)!==d;if(n(17)&&(!h||n(8)(function(){return p[n(13)("match")]=!1,u(d)!=d||u(p)==p||"/a/i"!=u(d,"i")}))){u=function(e,t){var n=this instanceof u,o=l(e),i=void 0===t;return!n&&o&&e.constructor===u&&i?e:r(h?new c(o&&!i?e.source:e,t):c((o=e instanceof u)?e.source:e,o&&i?s.call(e):t),n?this:f,u)};for(var m=function(e){e in u||i(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},v=a(c),g=0;v.length>g;)m(v[g++]);f.constructor=u,u.prototype=f,n(24)(o,"RegExp",u)}n(67)("RegExp")},function(e,t,n){"use strict";n(174);var o=n(9),r=n(93),i=n(17),a=/./.toString,l=function(e){n(24)(RegExp.prototype,"toString",e,!0)};n(8)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?l(function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?r.call(e):void 0)}):"toString"!=a.name&&l(function(){return a.call(this)})},function(e,t,n){"use strict";var o=n(9),r=n(14),i=n(130),a=n(94);n(95)("match",1,function(e,t,n,l){return[function(n){var o=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=l(n,e,this);if(t.done)return t.value;var s=o(e),u=String(this);if(!s.global)return a(s,u);var c=s.unicode;s.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(s,u));){var h=String(f[0]);d[p]=h,""===h&&(s.lastIndex=i(u,r(s.lastIndex),c)),p++}return 0===p?null:d}]})},function(e,t,n){"use strict";var o=n(9),r=n(20),i=n(14),a=n(34),l=n(130),s=n(94),u=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(95)("replace",2,function(e,t,n,h){return[function(o,r){var i=e(this),a=null==o?void 0:o[t];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(e,t){var r=h(n,e,this,t);if(r.done)return r.value;var f=o(e),d=String(this),p="function"==typeof t;p||(t=String(t));var v=f.global;if(v){var g=f.unicode;f.lastIndex=0}for(var y=[];;){var b=s(f,d);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(f.lastIndex=l(d,i(f.lastIndex),g))}for(var w,S="",_=0,E=0;E<y.length;E++){b=y[E];for(var x=String(b[0]),C=u(c(a(b.index),d.length),0),T=[],O=1;O<b.length;O++)T.push(void 0===(w=b[O])?w:String(w));var P=b.groups;if(p){var k=[x].concat(T,C,d);void 0!==P&&k.push(P);var A=String(t.apply(void 0,k))}else A=m(x,d,C,T,P,t);C>=_&&(S+=d.slice(_,C)+A,_=C+x.length)}return S+d.slice(_)}];function m(e,t,o,i,a,l){var s=o+e.length,u=i.length,c=p;return void 0!==a&&(a=r(a),c=d),n.call(l,c,function(n,r){var l;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(s);case"<":l=a[r.slice(1,-1)];break;default:var c=+r;if(0===c)return n;if(c>u){var d=f(c/10);return 0===d?n:d<=u?void 0===i[d-1]?r.charAt(1):i[d-1]+r.charAt(1):n}l=i[c-1]}return void 0===l?"":l})}})},function(e,t,n){"use strict";var o=n(9),r=n(159),i=n(94);n(95)("search",1,function(e,t,n,a){return[function(n){var o=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=a(n,e,this);if(t.done)return t.value;var l=o(e),s=String(this),u=l.lastIndex;r(u,0)||(l.lastIndex=0);var c=i(l,s);return r(l.lastIndex,u)||(l.lastIndex=u),null===c?-1:c.index}]})},function(e,t,n){"use strict";var o=n(122),r=n(9),i=n(79),a=n(130),l=n(14),s=n(94),u=n(129),c=n(8),f=Math.min,d=[].push,p=!c(function(){RegExp(4294967295,"y")});n(95)("split",2,function(e,t,n,c){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!o(e))return n.call(r,e,t);for(var i,a,l,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,c+"g");(i=u.call(h,r))&&!((a=h.lastIndex)>f&&(s.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&d.apply(s,i.slice(1)),l=i[0].length,f=a,s.length>=p));)h.lastIndex===i.index&&h.lastIndex++;return f===r.length?!l&&h.test("")||s.push(""):s.push(r.slice(f)),s.length>p?s.slice(0,p):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,o){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r,o):h.call(String(r),n,o)},function(e,t){var o=c(h,e,this,t,h!==n);if(o.done)return o.value;var u=r(e),d=String(this),m=i(u,RegExp),v=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(p?"y":"g"),y=new m(p?u:"^(?:"+u.source+")",g),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===d.length)return null===s(y,d)?[d]:[];for(var w=0,S=0,_=[];S<d.length;){y.lastIndex=p?S:0;var E,x=s(y,p?d:d.slice(S));if(null===x||(E=f(l(y.lastIndex+(p?0:S)),d.length))===w)S=a(d,S,v);else{if(_.push(d.slice(w,S)),_.length===b)return _;for(var C=1;C<=x.length-1;C++)if(_.push(x[C]),_.length===b)return _;S=w=E}}return _.push(d.slice(w)),_}]})},function(e,t,n){var o=n(7),r=n(131).set,i=o.MutationObserver||o.WebKitMutationObserver,a=o.process,l=o.Promise,s="process"==n(40)(a);e.exports=function(){var e,t,n,u=function(){var o,r;for(s&&(o=a.domain)&&o.exit();e;){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(s)n=function(){a.nextTick(u)};else if(!i||o.navigator&&o.navigator.standalone)if(l&&l.resolve){var c=l.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(o,u)};else{var f=!0,d=document.createTextNode("");new i(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(o){var r={fn:o,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){"use strict";var o=n(178),r=n(60);e.exports=n(98)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=o.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return o.def(r(this,"Map"),0===e?0:e,t)}},o,!0)},function(e,t,n){"use strict";var o=n(178),r=n(60);e.exports=n(98)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"Set"),e=0===e?0:e,e)}},o)},function(e,t,n){"use strict";var o,r=n(7),i=n(37)(0),a=n(24),l=n(49),s=n(158),u=n(179),c=n(10),f=n(60),d=n(60),p=!r.ActiveXObject&&"ActiveXObject"in r,h=l.getWeak,m=Object.isExtensible,v=u.ufstore,g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=h(e);return!0===t?v(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},b=e.exports=n(98)("WeakMap",g,y,u,!0,!0);d&&p&&(s((o=u.getConstructor(g,"WeakMap")).prototype,y),l.NEED=!0,i(["delete","has","get","set"],function(e){var t=b.prototype,n=t[e];a(t,e,function(t,r){if(c(t)&&!m(t)){this._f||(this._f=new o);var i=this._f[e](t,r);return"set"==e?this:i}return n.call(this,t,r)})}))},function(e,t,n){"use strict";var o=n(179),r=n(60);n(98)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"WeakSet"),e,!0)}},o,!1,!0)},function(e,t,n){"use strict";var o=n(2),r=n(99),i=n(132),a=n(9),l=n(55),s=n(14),u=n(10),c=n(7).ArrayBuffer,f=n(79),d=i.ArrayBuffer,p=i.DataView,h=r.ABV&&c.isView,m=d.prototype.slice,v=r.VIEW;o(o.G+o.W+o.F*(c!==d),{ArrayBuffer:d}),o(o.S+o.F*!r.CONSTR,"ArrayBuffer",{isView:function(e){return h&&h(e)||u(e)&&v in e}}),o(o.P+o.U+o.F*n(8)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);for(var n=a(this).byteLength,o=l(e,n),r=l(void 0===t?n:t,n),i=new(f(this,d))(s(r-o)),u=new p(this),c=new p(i),h=0;o<r;)c.setUint8(h++,u.getUint8(o++));return i}}),n(67)("ArrayBuffer")},function(e,t,n){var o=n(2);o(o.G+o.W+o.F*!n(99).ABV,{DataView:n(132).DataView})},function(e,t,n){n(42)("Int8",1,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Uint8",1,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Uint8",1,function(e){return function(t,n,o){return e(this,t,n,o)}},!0)},function(e,t,n){n(42)("Int16",2,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Uint16",2,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Int32",4,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Uint32",4,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Float32",4,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){n(42)("Float64",8,function(e){return function(t,n,o){return e(this,t,n,o)}})},function(e,t,n){var o=n(2),r=n(33),i=n(9),a=(n(7).Reflect||{}).apply,l=Function.apply;o(o.S+o.F*!n(8)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var o=r(e),s=i(n);return a?a(o,t,s):l.call(o,t,s)}})},function(e,t,n){var o=n(2),r=n(56),i=n(33),a=n(9),l=n(10),s=n(8),u=n(160),c=(n(7).Reflect||{}).construct,f=s(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),d=!s(function(){c(function(){})});o(o.S+o.F*(f||d),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!f)return c(e,t,n);if(e==n){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])}var o=[null];return o.push.apply(o,t),new(u.apply(e,o))}var s=n.prototype,p=r(l(s)?s:Object.prototype),h=Function.apply.call(e,p,t);return l(h)?h:p}})},function(e,t,n){var o=n(18),r=n(2),i=n(9),a=n(48);r(r.S+r.F*n(8)(function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){i(e),t=a(t,!0),i(n);try{return o.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var o=n(2),r=n(35).f,i=n(9);o(o.S,"Reflect",{deleteProperty:function(e,t){var n=r(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var o=n(2),r=n(9),i=function(e){this._t=r(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(167)(i,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),o(o.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var o=n(35),r=n(58),i=n(26),a=n(2),l=n(10),s=n(9);a(a.S,"Reflect",{get:function e(t,n){var a,u,c=arguments.length<3?t:arguments[2];return s(t)===c?t[n]:(a=o.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:l(u=r(t))?e(u,n,c):void 0}})},function(e,t,n){var o=n(35),r=n(2),i=n(9);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return o.f(i(e),t)}})},function(e,t,n){var o=n(2),r=n(58),i=n(9);o(o.S,"Reflect",{getPrototypeOf:function(e){return r(i(e))}})},function(e,t,n){var o=n(2);o(o.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var o=n(2),r=n(9),i=Object.isExtensible;o(o.S,"Reflect",{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){var o=n(2);o(o.S,"Reflect",{ownKeys:n(181)})},function(e,t,n){var o=n(2),r=n(9),i=Object.preventExtensions;o(o.S,"Reflect",{preventExtensions:function(e){r(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var o=n(18),r=n(35),i=n(58),a=n(26),l=n(2),s=n(51),u=n(9),c=n(10);l(l.S,"Reflect",{set:function e(t,n,l){var f,d,p=arguments.length<4?t:arguments[3],h=r.f(u(t),n);if(!h){if(c(d=i(t)))return e(d,n,l,p);h=s(0)}if(a(h,"value")){if(!1===h.writable||!c(p))return!1;if(f=r.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=l,o.f(p,n,f)}else o.f(p,n,s(0,l));return!0}return void 0!==h.set&&(h.set.call(p,l),!0)}})},function(e,t,n){var o=n(2),r=n(113);r&&o(o.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(365),e.exports=n(16).Array.includes},function(e,t,n){"use strict";var o=n(2),r=n(89)(!0);o(o.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(59)("includes")},function(e,t,n){n(367),e.exports=n(16).Array.flatMap},function(e,t,n){"use strict";var o=n(2),r=n(368),i=n(20),a=n(14),l=n(33),s=n(169);o(o.P,"Array",{flatMap:function(e){var t,n,o=i(this);return l(e),t=a(o.length),n=s(o,0),r(n,o,o,t,0,1,e,arguments[1]),n}}),n(59)("flatMap")},function(e,t,n){"use strict";var o=n(91),r=n(10),i=n(14),a=n(32),l=n(13)("isConcatSpreadable");e.exports=function e(t,n,s,u,c,f,d,p){for(var h,m,v=c,g=0,y=!!d&&a(d,p,3);g<u;){if(g in s){if(h=y?y(s[g],g,n):s[g],m=!1,r(h)&&(m=void 0!==(m=h[l])?!!m:o(h)),m&&f>0)v=e(t,n,h,i(h.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();t[v]=h}v++}g++}return v}},function(e,t,n){n(370),e.exports=n(16).String.padStart},function(e,t,n){"use strict";var o=n(2),r=n(182),i=n(97),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);o(o.P+o.F*a,"String",{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(372),e.exports=n(16).String.padEnd},function(e,t,n){"use strict";var o=n(2),r=n(182),i=n(97),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);o(o.P+o.F*a,"String",{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(374),e.exports=n(16).String.trimLeft},function(e,t,n){"use strict";n(65)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){n(376),e.exports=n(16).String.trimRight},function(e,t,n){"use strict";n(65)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){n(378),e.exports=n(109).f("asyncIterator")},function(e,t,n){n(154)("asyncIterator")},function(e,t,n){n(380),e.exports=n(16).Object.getOwnPropertyDescriptors},function(e,t,n){var o=n(2),r=n(181),i=n(28),a=n(35),l=n(125);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,o=i(e),s=a.f,u=r(o),c={},f=0;u.length>f;)void 0!==(n=s(o,t=u[f++]))&&l(c,t,n);return c}})},function(e,t,n){n(382),e.exports=n(16).Object.values},function(e,t,n){var o=n(2),r=n(183)(!1);o(o.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){n(384),e.exports=n(16).Object.entries},function(e,t,n){var o=n(2),r=n(183)(!0);o(o.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){"use strict";n(175),n(386),e.exports=n(16).Promise.finally},function(e,t,n){"use strict";var o=n(2),r=n(16),i=n(7),a=n(79),l=n(177);o(o.P+o.R,"Promise",{finally:function(e){var t=a(this,r.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){n(388),n(389),n(390),e.exports=n(16)},function(e,t,n){var o=n(7),r=n(2),i=n(97),a=[].slice,l=/MSIE .\./.test(i),s=function(e){return function(t,n){var o=arguments.length>2,r=!!o&&a.call(arguments,2);return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};r(r.G+r.B+r.F*l,{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},function(e,t,n){var o=n(2),r=n(131);o(o.G+o.B,{setImmediate:r.set,clearImmediate:r.clear})},function(e,t,n){for(var o=n(128),r=n(54),i=n(24),a=n(7),l=n(27),s=n(66),u=n(13),c=u("iterator"),f=u("toStringTag"),d=s.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},h=r(p),m=0;m<h.length;m++){var v,g=h[m],y=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[c]||l(w,c,d),w[f]||l(w,f,g),s[g]=d,y))for(v in o)w[v]||i(w,v,o[v],!0)}},function(e,t,n){var o=function(e){"use strict";var t,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n,o){var r=t&&t.prototype instanceof m?t:m,i=Object.create(r.prototype),a=new O(o||[]);return i._invoke=function(e,t,n){var o=c;return function(r,i){if(o===d)throw new Error("Generator is already running");if(o===p){if("throw"===r)throw i;return k()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=x(a,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===c)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=u(e,t,n);if("normal"===s.type){if(o=n.done?p:f,s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function m(){}function v(){}function g(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==n&&o.call(w,i)&&(y=w);var S=g.prototype=m.prototype=Object.create(y);function _(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function E(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var l=u(e[n],e,r);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,a)})}a(l.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function x(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=u(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function C(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return v.prototype=S.constructor=g,g.constructor=v,g[l]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},_(E.prototype),E.prototype[a]=function(){return this},e.AsyncIterator=E,e.async=function(t,n,o,r){var i=new E(s(t,n,o,r));return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},_(S),S[l]="Generator",S[i]=function(){return this},S.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 o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 n=this;function r(o,r){return l.type="throw",l.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){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(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),h},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),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:P(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=o}catch(e){Function("r","regeneratorRuntime = r")(o)}},function(e,t,n){n(393),e.exports=n(15).global},function(e,t,n){var o=n(29);o(o.G,{global:n(21)})},function(e,t,n){"use strict";
  /** @license React v16.9.0
   * react.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var o=n(185),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,l=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder");var g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function _(){}function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw y(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=S.prototype;var x=E.prototype=new _;x.constructor=E,o(x,S.prototype),x.isPureReactComponent=!0;var C={current:null},T={suspense:null},O={current:null},P=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var o=void 0,r={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,o)&&!k.hasOwnProperty(o)&&(r[o]=t[o]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===r[o]&&(r[o]=s[o]);return{$$typeof:i,type:e,key:a,ref:l,props:r,_owner:O.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var M=/\/+/g,D=[];function L(e,t,n,o){if(D.length){var r=D.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function N(e,t,n){return null==e?0:function e(t,n,o,r){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return o(r,t,""===n?"."+z(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+z(l=t[u],u);s+=e(l,c,o,r)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(l=t.next()).done;)s+=e(l=l.value,c=n+z(l,u++),o,r);else if("object"===l)throw o=""+t,y(Error(31),"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return s}(e,"",t,n)}function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,o,n,function(e){return e}):null!=e&&(R(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(M,"$&/")+"/")+n)),o.push(e))}function B(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(M,"$&/")+"/"),N(e,F,t=L(t,i,o,r)),j(t)}function U(){var e=C.current;if(null===e)throw y(Error(321));return e}var W={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return B(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;N(e,I,t=L(null,null,t,n)),j(t)},count:function(e){return N(e,function(){return null},null)},toArray:function(e){var t=[];return B(e,t,null,function(e){return e}),t},only:function(e){if(!R(e))throw y(Error(143));return e}},createRef:function(){return{current:null}},Component:S,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:l,Profiler:u,StrictMode:s,Suspense:p,unstable_SuspenseList:h,createElement:A,cloneElement:function(e,t,n){if(null==e)throw y(Error(267),e);var r=void 0,a=o({},e.props),l=e.key,s=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,u=O.current),void 0!==t.key&&(l=""+t.key);var c=void 0;for(r in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)P.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==c?c[r]:t[r])}if(1===(r=arguments.length-2))a.children=n;else if(1<r){c=Array(r);for(var f=0;f<r;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:e.type,key:l,ref:s,props:a,_owner:u}},createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},isValidElement:R,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var n=T.suspense;T.suspense=void 0===t?null:t;try{e()}finally{T.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:C,ReactCurrentBatchConfig:T,ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:o}},H={default:W},V=H&&W||H;e.exports=V.default||V},function(e,t,n){"use strict";
  /** @license React v16.9.0
   * react-dom.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var o=n(0),r=n(185),i=n(396);function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!o)throw a(Error(227));var l=null,s={};function u(){if(l)for(var e in s){var t=s[e],n=l.indexOf(e);if(!(-1<n))throw a(Error(96),e);if(!f[n]){if(!t.extractEvents)throw a(Error(97),e);for(var o in f[n]=t,n=t.eventTypes){var r=void 0,i=n[o],u=t,p=o;if(d.hasOwnProperty(p))throw a(Error(99),p);d[p]=i;var h=i.phasedRegistrationNames;if(h){for(r in h)h.hasOwnProperty(r)&&c(h[r],u,p);r=!0}else i.registrationName?(c(i.registrationName,u,p),r=!0):r=!1;if(!r)throw a(Error(98),o,e)}}}}function c(e,t,n){if(p[e])throw a(Error(100),e);p[e]=t,h[e]=t.eventTypes[n].dependencies}var f=[],d={},p={},h={};function m(e,t,n,o,r,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var v=!1,g=null,y=!1,b=null,w={onError:function(e){v=!0,g=e}};function S(e,t,n,o,r,i,a,l,s){v=!1,g=null,m.apply(w,arguments)}var _=null,E=null,x=null;function C(e,t,n){var o=e.type||"unknown-event";e.currentTarget=x(n),function(e,t,n,o,r,i,l,s,u){if(S.apply(this,arguments),v){if(!v)throw a(Error(198));var c=g;v=!1,g=null,y||(y=!0,b=c)}}(o,t,void 0,e),e.currentTarget=null}function T(e,t){if(null==t)throw a(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function O(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var P=null;function k(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)C(e,t[o],n[o]);else t&&C(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function A(e){if(null!==e&&(P=T(P,e)),e=P,P=null,e){if(O(e,k),P)throw a(Error(95));if(y)throw e=b,y=!1,b=null,e}}var R={injectEventPluginOrder:function(e){if(l)throw a(Error(101));l=Array.prototype.slice.call(e),u()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!s.hasOwnProperty(t)||s[t]!==o){if(s[t])throw a(Error(102),t);s[t]=o,n=!0}}n&&u()}};function M(e,t){var n=e.stateNode;if(!n)return null;var o=_(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw a(Error(231),t,typeof n);return n}var D=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+D,j="__reactEventHandlers$"+D;function N(e){if(e[L])return e[L];for(;!e[L];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[L]).tag||6===e.tag?e:null}function z(e){return!(e=e[L])||5!==e.tag&&6!==e.tag?null:e}function I(e){if(5===e.tag||6===e.tag)return e.stateNode;throw a(Error(33))}function F(e){return e[j]||null}function B(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function U(e,t,n){(t=M(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function W(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=B(t);for(t=n.length;0<t--;)U(n[t],"captured",e);for(t=0;t<n.length;t++)U(n[t],"bubbled",e)}}function H(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=M(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&H(e._targetInst,null,e)}function G(e){O(e,W)}var q=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function $(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Y={animationend:$("Animation","AnimationEnd"),animationiteration:$("Animation","AnimationIteration"),animationstart:$("Animation","AnimationStart"),transitionend:$("Transition","TransitionEnd")},K={},Z={};function Q(e){if(K[e])return K[e];if(!Y[e])return e;var t,n=Y[e];for(t in n)if(n.hasOwnProperty(t)&&t in Z)return K[e]=n[t];return e}q&&(Z=document.createElement("div").style,"AnimationEvent"in window||(delete Y.animationend.animation,delete Y.animationiteration.animation,delete Y.animationstart.animation),"TransitionEvent"in window||delete Y.transitionend.transition);var X=Q("animationend"),J=Q("animationiteration"),ee=Q("animationstart"),te=Q("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),oe=null,re=null,ie=null;function ae(){if(ie)return ie;var e,t,n=re,o=n.length,r="value"in oe?oe.value:oe.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[i-t];t++);return ie=r.slice(e,1<t?1-t:void 0)}function le(){return!0}function se(){return!1}function ue(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?le:se,this.isPropagationStopped=se,this}function ce(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function fe(e){if(!(e instanceof this))throw a(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=ce,e.release=fe}r(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,de(n),n},de(ue);var pe=ue.extend({data:null}),he=ue.extend({data:null}),me=[9,13,27,32],ve=q&&"CompositionEvent"in window,ge=null;q&&"documentMode"in document&&(ge=document.documentMode);var ye=q&&"TextEvent"in window&&!ge,be=q&&(!ve||ge&&8<ge&&11>=ge),we=String.fromCharCode(32),Se={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_e=!1;function Ee(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var Te={eventTypes:Se,extractEvents:function(e,t,n,o){var r=void 0,i=void 0;if(ve)e:{switch(e){case"compositionstart":r=Se.compositionStart;break e;case"compositionend":r=Se.compositionEnd;break e;case"compositionupdate":r=Se.compositionUpdate;break e}r=void 0}else Ce?Ee(e,n)&&(r=Se.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=Se.compositionStart);return r?(be&&"ko"!==n.locale&&(Ce||r!==Se.compositionStart?r===Se.compositionEnd&&Ce&&(i=ae()):(re="value"in(oe=o)?oe.value:oe.textContent,Ce=!0)),r=pe.getPooled(r,t,n,o),i?r.data=i:null!==(i=xe(n))&&(r.data=i),G(r),i=r):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return xe(t);case"keypress":return 32!==t.which?null:(_e=!0,we);case"textInput":return(e=t.data)===we&&_e?null:e;default:return null}}(e,n):function(e,t){if(Ce)return"compositionend"===e||!ve&&Ee(e,t)?(e=ae(),ie=re=oe=null,Ce=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=he.getPooled(Se.beforeInput,t,n,o)).data=e,G(t)):t=null,null===i?t:null===t?i:[i,t]}},Oe=null,Pe=null,ke=null;function Ae(e){if(e=E(e)){if("function"!=typeof Oe)throw a(Error(280));var t=_(e.stateNode);Oe(e.stateNode,e.type,t)}}function Re(e){Pe?ke?ke.push(e):ke=[e]:Pe=e}function Me(){if(Pe){var e=Pe,t=ke;if(ke=Pe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function De(e,t){return e(t)}function Le(e,t,n,o){return e(t,n,o)}function je(){}var Ne=De,ze=!1;function Ie(){null===Pe&&null===ke||(je(),Me())}var Fe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Be(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function Ue(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function We(e){if(!q)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function He(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ve(e){e._valueTracker||(e._valueTracker=function(e){var t=He(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=He(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}var qe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe.hasOwnProperty("ReactCurrentDispatcher")||(qe.ReactCurrentDispatcher={current:null}),qe.hasOwnProperty("ReactCurrentBatchConfig")||(qe.ReactCurrentBatchConfig={suspense:null});var $e=/^(.*)[\\\/]/,Ye="function"==typeof Symbol&&Symbol.for,Ke=Ye?Symbol.for("react.element"):60103,Ze=Ye?Symbol.for("react.portal"):60106,Qe=Ye?Symbol.for("react.fragment"):60107,Xe=Ye?Symbol.for("react.strict_mode"):60108,Je=Ye?Symbol.for("react.profiler"):60114,et=Ye?Symbol.for("react.provider"):60109,tt=Ye?Symbol.for("react.context"):60110,nt=Ye?Symbol.for("react.concurrent_mode"):60111,ot=Ye?Symbol.for("react.forward_ref"):60112,rt=Ye?Symbol.for("react.suspense"):60113,it=Ye?Symbol.for("react.suspense_list"):60120,at=Ye?Symbol.for("react.memo"):60115,lt=Ye?Symbol.for("react.lazy"):60116;Ye&&Symbol.for("react.fundamental"),Ye&&Symbol.for("react.responder");var st="function"==typeof Symbol&&Symbol.iterator;function ut(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=st&&e[st]||e["@@iterator"])?e:null}function ct(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Qe:return"Fragment";case Ze:return"Portal";case Je:return"Profiler";case Xe:return"StrictMode";case rt:return"Suspense";case it:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case ot:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case at:return ct(e.type);case lt:if(e=1===e._status?e._result:null)return ct(e)}return null}function ft(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=ct(e.type);n=null,o&&(n=ct(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace($e,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}var dt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pt=Object.prototype.hasOwnProperty,ht={},mt={};function vt(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new vt(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new vt(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new vt(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new vt(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){gt[e]=new vt(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){gt[e]=new vt(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){gt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1)});var yt=/[\-:]([a-z])/g;function bt(e){return e[1].toUpperCase()}function wt(e,t,n,o){var r=gt.hasOwnProperty(t)?gt[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!pt.call(mt,e)||!pt.call(ht,e)&&(dt.test(e)?mt[e]=!0:(ht[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function St(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _t(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Et(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=St(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xt(e,t){null!=(t=t.checked)&&wt(e,"checked",t,!1)}function Ct(e,t){xt(e,t);var n=St(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ot(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ot(e,t.type,St(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Tt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ot(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yt,bt);gt[t]=new vt(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yt,bt);gt[t]=new vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yt,bt);gt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1)}),gt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){gt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0)});var Pt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function kt(e,t,n){return(e=ue.getPooled(Pt.change,e,t,n)).type="change",Re(n),G(e),e}var At=null,Rt=null;function Mt(e){A(e)}function Dt(e){if(Ge(I(e)))return e}function Lt(e,t){if("change"===e)return t}var jt=!1;function Nt(){At&&(At.detachEvent("onpropertychange",zt),Rt=At=null)}function zt(e){if("value"===e.propertyName&&Dt(Rt))if(e=kt(Rt,e,Ue(e)),ze)A(e);else{ze=!0;try{De(Mt,e)}finally{ze=!1,Ie()}}}function It(e,t,n){"focus"===e?(Nt(),Rt=n,(At=t).attachEvent("onpropertychange",zt)):"blur"===e&&Nt()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Dt(Rt)}function Bt(e,t){if("click"===e)return Dt(t)}function Ut(e,t){if("input"===e||"change"===e)return Dt(t)}q&&(jt=We("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:Pt,_isInputEventSupported:jt,extractEvents:function(e,t,n,o){var r=t?I(t):window,i=void 0,a=void 0,l=r.nodeName&&r.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===r.type?i=Lt:Be(r)?jt?i=Ut:(i=Ft,a=It):(l=r.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(i=Bt),i&&(i=i(e,t)))return kt(i,n,o);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Ot(r,"number",r.value)}},Ht=ue.extend({view:null,detail:null}),Vt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Vt[e])&&!!t[e]}function qt(){return Gt}var $t=0,Yt=0,Kt=!1,Zt=!1,Qt=Ht.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:qt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=$t;return $t=e.screenX,Kt?"mousemove"===e.type?e.screenX-t:0:(Kt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Yt;return Yt=e.screenY,Zt?"mousemove"===e.type?e.screenY-t:0:(Zt=!0,0)}}),Xt=Qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},en={eventTypes:Jt,extractEvents:function(e,t,n,o){var r="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!i&&!r)return null;if(r=o.window===o?o:(r=o.ownerDocument)?r.defaultView||r.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?N(t):null):i=null,i===t)return null;var a=void 0,l=void 0,s=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=Qt,l=Jt.mouseLeave,s=Jt.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Xt,l=Jt.pointerLeave,s=Jt.pointerEnter,u="pointer");var c=null==i?r:I(i);if(r=null==t?r:I(t),(e=a.getPooled(l,i,n,o)).type=u+"leave",e.target=c,e.relatedTarget=r,(n=a.getPooled(s,t,n,o)).type=u+"enter",n.target=r,n.relatedTarget=c,o=t,i&&o)e:{for(r=o,u=0,a=t=i;a;a=B(a))u++;for(a=0,s=r;s;s=B(s))a++;for(;0<u-a;)t=B(t),u--;for(;0<a-u;)r=B(r),a--;for(;u--;){if(t===r||t===r.alternate)break e;t=B(t),r=B(r)}t=null}else t=null;for(r=t,t=[];i&&i!==r&&(null===(u=i.alternate)||u!==r);)t.push(i),i=B(i);for(i=[];o&&o!==r&&(null===(u=o.alternate)||u!==r);)i.push(o),o=B(o);for(o=0;o<t.length;o++)H(t[o],"bubbled",e);for(o=i.length;0<o--;)H(i[o],"captured",n);return[e,n]}};function tn(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var nn=Object.prototype.hasOwnProperty;function on(e,t){if(tn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!nn.call(t,n[o])||!tn(e[n[o]],t[n[o]]))return!1;return!0}function rn(e,t){return{responder:e,props:t}}function an(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function ln(e){if(2!==an(e))throw a(Error(188))}function sn(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=an(e)))throw a(Error(188));return 1===t?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return ln(r),e;if(i===o)return ln(r),t;i=i.sibling}throw a(Error(188))}if(n.return!==o.return)n=r,o=i;else{for(var l=!1,s=r.child;s;){if(s===n){l=!0,n=r,o=i;break}if(s===o){l=!0,o=r,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,o=r;break}if(s===o){l=!0,o=i,n=r;break}s=s.sibling}if(!l)throw a(Error(189))}}if(n.alternate!==o)throw a(Error(190))}if(3!==n.tag)throw a(Error(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}new Map,new Map,new Set,new Map;var un=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),cn=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fn=Ht.extend({relatedTarget:null});function dn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn=Ht.extend({key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=dn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:qt,charCode:function(e){return"keypress"===e.type?dn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?dn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),vn=Qt.extend({dataTransfer:null}),gn=Ht.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:qt}),yn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),bn=Qt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),wn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[X,"animationEnd",2],[J,"animationIteration",2],[ee,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[te,"transitionEnd",2],["waiting","waiting",2]],Sn={},_n={},En=0;En<wn.length;En++){var xn=wn[En],Cn=xn[0],Tn=xn[1],On=xn[2],Pn="on"+(Tn[0].toUpperCase()+Tn.slice(1)),kn={phasedRegistrationNames:{bubbled:Pn,captured:Pn+"Capture"},dependencies:[Cn],eventPriority:On};Sn[Tn]=kn,_n[Cn]=kn}var An={eventTypes:Sn,getEventPriority:function(e){return void 0!==(e=_n[e])?e.eventPriority:2},extractEvents:function(e,t,n,o){var r=_n[e];if(!r)return null;switch(e){case"keypress":if(0===dn(n))return null;case"keydown":case"keyup":e=mn;break;case"blur":case"focus":e=fn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gn;break;case X:case J:case ee:e=un;break;case te:e=yn;break;case"scroll":e=Ht;break;case"wheel":e=bn;break;case"copy":case"cut":case"paste":e=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Xt;break;default:e=ue}return G(t=e.getPooled(r,t,n,o)),t}},Rn=An.getEventPriority,Mn=[];function Dn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o;for(o=n;o.return;)o=o.return;if(!(o=3!==o.tag?null:o.stateNode.containerInfo))break;e.ancestors.push(n),n=N(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=Ue(e.nativeEvent);o=e.topLevelType;for(var i=e.nativeEvent,a=null,l=0;l<f.length;l++){var s=f[l];s&&(s=s.extractEvents(o,t,i,r))&&(a=T(a,s))}A(a)}}var Ln=!0;function jn(e,t){Nn(t,e,!1)}function Nn(e,t,n){switch(Rn(t)){case 0:var o=zn.bind(null,t,1);break;case 1:o=In.bind(null,t,1);break;default:o=Fn.bind(null,t,1)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function zn(e,t,n){ze||je();var o=Fn,r=ze;ze=!0;try{Le(o,e,t,n)}finally{(ze=r)||Ie()}}function In(e,t,n){Fn(e,t,n)}function Fn(e,t,n){if(Ln){if(null===(t=N(t=Ue(n)))||"number"!=typeof t.tag||2===an(t)||(t=null),Mn.length){var o=Mn.pop();o.topLevelType=e,o.nativeEvent=n,o.targetInst=t,e=o}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,ze)Dn(n);else{ze=!0;try{Ne(Dn,n,void 0)}finally{ze=!1,Ie()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Mn.length&&Mn.push(e)}}}var Bn=new("function"==typeof WeakMap?WeakMap:Map);function Un(e){var t=Bn.get(e);return void 0===t&&(t=new Set,Bn.set(e,t)),t}function Wn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vn(e,t){var n,o=Hn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Hn(o)}}function Gn(){for(var e=window,t=Wn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Wn((e=t.contentWindow).document)}return t}function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var $n=q&&"documentMode"in document&&11>=document.documentMode,Yn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Kn=null,Zn=null,Qn=null,Xn=!1;function Jn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xn||null==Kn||Kn!==Wn(n)?null:("selectionStart"in(n=Kn)&&qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Qn&&on(Qn,n)?null:(Qn=n,(e=ue.getPooled(Yn.select,Zn,e,t)).type="select",e.target=Kn,G(e),e))}var eo={eventTypes:Yn,extractEvents:function(e,t,n,o){var r,i=o.window===o?o.document:9===o.nodeType?o:o.ownerDocument;if(!(r=!i)){e:{i=Un(i),r=h.onSelect;for(var a=0;a<r.length;a++)if(!i.has(r[a])){i=!1;break e}i=!0}r=!i}if(r)return null;switch(i=t?I(t):window,e){case"focus":(Be(i)||"true"===i.contentEditable)&&(Kn=i,Zn=t,Qn=null);break;case"blur":Qn=Zn=Kn=null;break;case"mousedown":Xn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xn=!1,Jn(n,o);case"selectionchange":if($n)break;case"keydown":case"keyup":return Jn(n,o)}return null}};function to(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function no(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+St(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function oo(e,t){if(null!=t.dangerouslySetInnerHTML)throw a(Error(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ro(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw a(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw a(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:St(n)}}function io(e,t){var n=St(t.value),o=St(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ao(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}R.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_=F,E=z,x=I,R.injectEventPluginsByName({SimpleEventPlugin:An,EnterLeaveEventPlugin:en,ChangeEventPlugin:Wt,SelectEventPlugin:eo,BeforeInputEventPlugin:Te});var lo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function so(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function uo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?so(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var co=void 0,fo=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==lo.svg||"innerHTML"in e)e.innerHTML=t;else{for((co=co||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=co.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function po(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ho={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mo=["Webkit","ms","Moz","O"];function vo(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ho.hasOwnProperty(e)&&ho[e]?(""+t).trim():t+"px"}function go(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=vo(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(ho).forEach(function(e){mo.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ho[t]=ho[e]})});var yo=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bo(e,t){if(t){if(yo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw a(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw a(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw a(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw a(Error(62),"")}}function wo(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function So(e,t){var n=Un(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var o=0;o<t.length;o++){var r=t[o];if(!n.has(r)){switch(r){case"scroll":Nn(e,"scroll",!0);break;case"focus":case"blur":Nn(e,"focus",!0),Nn(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":We(r)&&Nn(e,r,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(r)&&jn(r,e)}n.add(r)}}}function _o(){}var Eo=null,xo=null;function Co(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function To(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Oo="function"==typeof setTimeout?setTimeout:void 0,Po="function"==typeof clearTimeout?clearTimeout:void 0;function ko(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Ao=[],Ro=-1;function Mo(e){0>Ro||(e.current=Ao[Ro],Ao[Ro]=null,Ro--)}function Do(e,t){Ao[++Ro]=e.current,e.current=t}var Lo={},jo={current:Lo},No={current:!1},zo=Lo;function Io(e,t){var n=e.type.contextTypes;if(!n)return Lo;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fo(e){return null!=(e=e.childContextTypes)}function Bo(e){Mo(No),Mo(jo)}function Uo(e){Mo(No),Mo(jo)}function Wo(e,t,n){if(jo.current!==Lo)throw a(Error(168));Do(jo,t),Do(No,n)}function Ho(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw a(Error(108),ct(t)||"Unknown",i);return r({},n,o)}function Vo(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Lo,zo=jo.current,Do(jo,t),Do(No,No.current),!0}function Go(e,t,n){var o=e.stateNode;if(!o)throw a(Error(169));n?(t=Ho(e,t,zo),o.__reactInternalMemoizedMergedChildContext=t,Mo(No),Mo(jo),Do(jo,t)):Mo(No),Do(No,n)}var qo=i.unstable_runWithPriority,$o=i.unstable_scheduleCallback,Yo=i.unstable_cancelCallback,Ko=i.unstable_shouldYield,Zo=i.unstable_requestPaint,Qo=i.unstable_now,Xo=i.unstable_getCurrentPriorityLevel,Jo=i.unstable_ImmediatePriority,er=i.unstable_UserBlockingPriority,tr=i.unstable_NormalPriority,nr=i.unstable_LowPriority,or=i.unstable_IdlePriority,rr={},ir=void 0!==Zo?Zo:function(){},ar=null,lr=null,sr=!1,ur=Qo(),cr=1e4>ur?Qo:function(){return Qo()-ur};function fr(){switch(Xo()){case Jo:return 99;case er:return 98;case tr:return 97;case nr:return 96;case or:return 95;default:throw a(Error(332))}}function dr(e){switch(e){case 99:return Jo;case 98:return er;case 97:return tr;case 96:return nr;case 95:return or;default:throw a(Error(332))}}function pr(e,t){return e=dr(e),qo(e,t)}function hr(e,t,n){return e=dr(e),$o(e,t,n)}function mr(e){return null===ar?(ar=[e],lr=$o(Jo,gr)):ar.push(e),rr}function vr(){null!==lr&&Yo(lr),gr()}function gr(){if(!sr&&null!==ar){sr=!0;var e=0;try{var t=ar;pr(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),ar=null}catch(t){throw null!==ar&&(ar=ar.slice(e+1)),$o(Jo,vr),t}finally{sr=!1}}}function yr(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function br(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var wr={current:null},Sr=null,_r=null,Er=null;function xr(){Er=_r=Sr=null}function Cr(e,t){var n=e.type._context;Do(wr,n._currentValue),n._currentValue=t}function Tr(e){var t=wr.current;Mo(wr),e.type._context._currentValue=t}function Or(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function Pr(e,t){Sr=e,Er=_r=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(fa=!0),e.firstContext=null)}function kr(e,t){if(Er!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Er=e,t=1073741823),t={context:e,observedBits:t,next:null},null===_r){if(null===Sr)throw a(Error(308));_r=t,Sr.dependencies={expirationTime:0,firstContext:t,responders:null}}else _r=_r.next=t;return e._currentValue}var Ar=!1;function Rr(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mr(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Dr(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Lr(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function jr(e,t){var n=e.alternate;if(null===n){var o=e.updateQueue,r=null;null===o&&(o=e.updateQueue=Rr(e.memoizedState))}else o=e.updateQueue,r=n.updateQueue,null===o?null===r?(o=e.updateQueue=Rr(e.memoizedState),r=n.updateQueue=Rr(n.memoizedState)):o=e.updateQueue=Mr(r):null===r&&(r=n.updateQueue=Mr(o));null===r||o===r?Lr(o,t):null===o.lastUpdate||null===r.lastUpdate?(Lr(o,t),Lr(r,t)):(Lr(o,t),r.lastUpdate=t)}function Nr(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Rr(e.memoizedState):zr(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function zr(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Mr(t)),t}function Ir(e,t,n,o,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,o,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,o,i):e))break;return r({},o,i);case 2:Ar=!0}return o}function Fr(e,t,n,o,r){Ar=!1;for(var i=(t=zr(e,t)).baseState,a=null,l=0,s=t.firstUpdate,u=i;null!==s;){var c=s.expirationTime;c<r?(null===a&&(a=s,i=u),l<c&&(l=c)):(Wl(c,s.suspenseConfig),u=Ir(e,0,s,u,n,o),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var f=s.expirationTime;f<r?(null===c&&(c=s,null===a&&(i=u)),l<f&&(l=f)):(u=Ir(e,0,s,u,n,o),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=u),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=l,e.memoizedState=u}function Br(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Ur(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Ur(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Ur(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var o=t;if("function"!=typeof n)throw a(Error(191),n);n.call(o)}e=e.nextEffect}}var Wr=qe.ReactCurrentBatchConfig,Hr=(new o.Component).refs;function Vr(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(o=e.updateQueue)&&0===e.expirationTime&&(o.baseState=n)}var Gr={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=kl(),r=Wr.suspense;(r=Dr(o=Al(o,e,r),r)).payload=t,null!=n&&(r.callback=n),jr(e,r),Ml(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=kl(),r=Wr.suspense;(r=Dr(o=Al(o,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),jr(e,r),Ml(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=kl(),o=Wr.suspense;(o=Dr(n=Al(n,e,o),o)).tag=2,null!=t&&(o.callback=t),jr(e,o),Ml(e,n)}};function qr(e,t,n,o,r,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!on(n,o)||!on(r,i))}function $r(e,t,n){var o=!1,r=Lo,i=t.contextType;return"object"==typeof i&&null!==i?i=kr(i):(r=Fo(t)?zo:jo.current,i=(o=null!=(o=t.contextTypes))?Io(e,r):Lo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Gr,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Yr(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Gr.enqueueReplaceState(t,t.state,null)}function Kr(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Hr;var i=t.contextType;"object"==typeof i&&null!==i?r.context=kr(i):(i=Fo(t)?zo:jo.current,r.context=Io(e,i)),null!==(i=e.updateQueue)&&(Fr(e,i,n,r,o),r.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Vr(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Gr.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(Fr(e,i,n,r,o),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Zr=Array.isArray;function Qr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var o=void 0;if(n){if(1!==n.tag)throw a(Error(309));o=n.stateNode}if(!o)throw a(Error(147),e);var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===Hr&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw a(Error(284));if(!n._owner)throw a(Error(290),e)}return e}function Xr(e,t){if("textarea"!==e.type)throw a(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Jr(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=is(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,o){return null===t||6!==t.tag?((t=ss(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Qr(e,t,n),o.return=e,o):((o=as(n.type,n.key,n.props,null,e.mode,o)).ref=Qr(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=us(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function f(e,t,n,o,i){return null===t||7!==t.tag?((t=ls(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ss(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ke:return(n=as(t.type,t.key,t.props,null,e.mode,n)).ref=Qr(e,null,t),n.return=e,n;case Ze:return(t=us(t,e.mode,n)).return=e,t}if(Zr(t)||ut(t))return(t=ls(t,e.mode,n,null)).return=e,t;Xr(e,t)}return null}function p(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:s(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ke:return n.key===r?n.type===Qe?f(e,t,n.props.children,o,r):u(e,t,n,o):null;case Ze:return n.key===r?c(e,t,n,o):null}if(Zr(n)||ut(n))return null!==r?null:f(e,t,n,o,null);Xr(e,n)}return null}function h(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return s(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case Ke:return e=e.get(null===o.key?n:o.key)||null,o.type===Qe?f(t,e,o.props.children,r,o.key):u(t,e,o,r);case Ze:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(Zr(o)||ut(o))return f(t,e=e.get(n)||null,o,r,null);Xr(t,o)}return null}function m(r,a,l,s){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(r,f,l[m],s);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(r,f),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(r,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(r,l[m],s))&&(a=i(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=o(r,f);m<l.length;m++)null!==(v=h(f,r,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(r,e)}),u}function v(r,l,s,u){var c=ut(s);if("function"!=typeof c)throw a(Error(150));if(null==(s=c.call(s)))throw a(Error(151));for(var f=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(r,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(r,m),l=i(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(r,m),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=d(r,y.value,u))&&(l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=o(r,m);!y.done;v++,y=s.next())null!==(y=h(m,r,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(r,e)}),c}return function(e,o,i,s){var u="object"==typeof i&&null!==i&&i.type===Qe&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case Ke:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){if(7===u.tag?i.type===Qe:u.elementType===i.type){n(e,u.sibling),(o=r(u,i.type===Qe?i.props.children:i.props)).ref=Qr(e,u,i),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===Qe?((o=ls(i.props.children,e.mode,s,i.key)).return=e,e=o):((s=as(i.type,i.key,i.props,null,e.mode,s)).ref=Qr(e,o,i),s.return=e,e=s)}return l(e);case Ze:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=us(i,e.mode,s)).return=e,e=o}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=ss(i,e.mode,s)).return=e,e=o),l(e);if(Zr(i))return m(e,o,i,s);if(ut(i))return v(e,o,i,s);if(c&&Xr(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,o)}}var ei=Jr(!0),ti=Jr(!1),ni={},oi={current:ni},ri={current:ni},ii={current:ni};function ai(e){if(e===ni)throw a(Error(174));return e}function li(e,t){Do(ii,t),Do(ri,e),Do(oi,ni);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uo(null,"");break;default:t=uo(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Mo(oi),Do(oi,t)}function si(e){Mo(oi),Mo(ri),Mo(ii)}function ui(e){ai(ii.current);var t=ai(oi.current),n=uo(t,e.type);t!==n&&(Do(ri,e),Do(oi,n))}function ci(e){ri.current===e&&(Mo(oi),Mo(ri))}var fi=1,di=1,pi=2,hi={current:0};function mi(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=0,gi=2,yi=4,bi=8,wi=16,Si=32,_i=64,Ei=128,xi=qe.ReactCurrentDispatcher,Ci=0,Ti=null,Oi=null,Pi=null,ki=null,Ai=null,Ri=null,Mi=0,Di=null,Li=0,ji=!1,Ni=null,zi=0;function Ii(){throw a(Error(321))}function Fi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function Bi(e,t,n,o,r,i){if(Ci=i,Ti=t,Pi=null!==e?e.memoizedState:null,xi.current=null===Pi?Ji:ea,t=n(o,r),ji){do{ji=!1,zi+=1,Pi=null!==e?e.memoizedState:null,Ri=ki,Di=Ai=Oi=null,xi.current=ea,t=n(o,r)}while(ji);Ni=null,zi=0}if(xi.current=Xi,(e=Ti).memoizedState=ki,e.expirationTime=Mi,e.updateQueue=Di,e.effectTag|=Li,e=null!==Oi&&null!==Oi.next,Ci=0,Ri=Ai=ki=Pi=Oi=Ti=null,Mi=0,Di=null,Li=0,e)throw a(Error(300));return t}function Ui(){xi.current=Xi,Ci=0,Ri=Ai=ki=Pi=Oi=Ti=null,Mi=0,Di=null,Li=0,ji=!1,Ni=null,zi=0}function Wi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Ai?ki=Ai=e:Ai=Ai.next=e,Ai}function Hi(){if(null!==Ri)Ri=(Ai=Ri).next,Pi=null!==(Oi=Pi)?Oi.next:null;else{if(null===Pi)throw a(Error(310));var e={memoizedState:(Oi=Pi).memoizedState,baseState:Oi.baseState,queue:Oi.queue,baseUpdate:Oi.baseUpdate,next:null};Ai=null===Ai?ki=e:Ai.next=e,Pi=Oi.next}return Ai}function Vi(e,t){return"function"==typeof t?t(e):t}function Gi(e){var t=Hi(),n=t.queue;if(null===n)throw a(Error(311));if(n.lastRenderedReducer=e,0<zi){var o=n.dispatch;if(null!==Ni){var r=Ni.get(n);if(void 0!==r){Ni.delete(n);var i=t.memoizedState;do{i=e(i,r.action),r=r.next}while(null!==r);return tn(i,t.memoizedState)||(fa=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,o]}}return[t.memoizedState,o]}o=n.last;var l=t.baseUpdate;if(i=t.baseState,null!==l?(null!==o&&(o.next=null),o=l.next):o=null!==o?o.next:null,null!==o){var s=r=null,u=o,c=!1;do{var f=u.expirationTime;f<Ci?(c||(c=!0,s=l,r=i),f>Mi&&(Mi=f)):(Wl(f,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action)),l=u,u=u.next}while(null!==u&&u!==o);c||(s=l,r=i),tn(i,t.memoizedState)||(fa=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=r,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function qi(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===Di?(Di={lastEffect:null}).lastEffect=e.next=e:null===(t=Di.lastEffect)?Di.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Di.lastEffect=e),e}function $i(e,t,n,o){var r=Wi();Li|=e,r.memoizedState=qi(t,n,void 0,void 0===o?null:o)}function Yi(e,t,n,o){var r=Hi();o=void 0===o?null:o;var i=void 0;if(null!==Oi){var a=Oi.memoizedState;if(i=a.destroy,null!==o&&Fi(o,a.deps))return void qi(vi,n,i,o)}Li|=e,r.memoizedState=qi(t,n,i,o)}function Ki(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Zi(){}function Qi(e,t,n){if(!(25>zi))throw a(Error(301));var o=e.alternate;if(e===Ti||null!==o&&o===Ti)if(ji=!0,e={expirationTime:Ci,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Ni&&(Ni=new Map),void 0===(n=Ni.get(t)))Ni.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var r=kl(),i=Wr.suspense;i={expirationTime:r=Al(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)i.next=i;else{var s=l.next;null!==s&&(i.next=s),l.next=i}if(t.last=i,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=o(u,n);if(i.eagerReducer=o,i.eagerState=c,tn(c,u))return}catch(e){}Ml(e,r)}}var Xi={readContext:kr,useCallback:Ii,useContext:Ii,useEffect:Ii,useImperativeHandle:Ii,useLayoutEffect:Ii,useMemo:Ii,useReducer:Ii,useRef:Ii,useState:Ii,useDebugValue:Ii,useResponder:Ii},Ji={readContext:kr,useCallback:function(e,t){return Wi().memoizedState=[e,void 0===t?null:t],e},useContext:kr,useEffect:function(e,t){return $i(516,Ei|_i,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4,yi|Si,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4,yi|Si,e,t)},useMemo:function(e,t){var n=Wi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Wi();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Qi.bind(null,Ti,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Wi().memoizedState=e},useState:function(e){var t=Wi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:e}).dispatch=Qi.bind(null,Ti,e),[t.memoizedState,e]},useDebugValue:Zi,useResponder:rn},ea={readContext:kr,useCallback:function(e,t){var n=Hi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Fi(t,o[1])?o[0]:(n.memoizedState=[e,t],e)},useContext:kr,useEffect:function(e,t){return Yi(516,Ei|_i,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Yi(4,yi|Si,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4,yi|Si,e,t)},useMemo:function(e,t){var n=Hi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Fi(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Gi,useRef:function(){return Hi().memoizedState},useState:function(e){return Gi(Vi)},useDebugValue:Zi,useResponder:rn},ta=null,na=null,oa=!1;function ra(e,t){var n=os(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ia(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function aa(e){if(oa){var t=na;if(t){var n=t;if(!ia(e,t)){if(!(t=ko(n.nextSibling))||!ia(e,t))return e.effectTag|=2,oa=!1,void(ta=e);ra(ta,n)}ta=e,na=ko(t.firstChild)}else e.effectTag|=2,oa=!1,ta=e}}function la(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ta=e}function sa(e){if(e!==ta)return!1;if(!oa)return la(e),oa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!To(t,e.memoizedProps))for(t=na;t;)ra(e,t),t=ko(t.nextSibling);return la(e),na=ta?ko(e.stateNode.nextSibling):null,!0}function ua(){na=ta=null,oa=!1}var ca=qe.ReactCurrentOwner,fa=!1;function da(e,t,n,o){t.child=null===e?ti(t,null,n,o):ei(t,e.child,n,o)}function pa(e,t,n,o,r){n=n.render;var i=t.ref;return Pr(t,r),o=Bi(e,t,n,o,i,r),null===e||fa?(t.effectTag|=1,da(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ca(e,t,r))}function ha(e,t,n,o,r,i){if(null===e){var a=n.type;return"function"!=typeof a||rs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=as(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ma(e,t,a,o,r,i))}return a=e.child,r<i&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:on)(r,o)&&e.ref===t.ref)?Ca(e,t,i):(t.effectTag|=1,(e=is(a,o)).ref=t.ref,e.return=t,t.child=e)}function ma(e,t,n,o,r,i){return null!==e&&on(e.memoizedProps,o)&&e.ref===t.ref&&(fa=!1,r<i)?Ca(e,t,i):ga(e,t,n,o,i)}function va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function ga(e,t,n,o,r){var i=Fo(n)?zo:jo.current;return i=Io(t,i),Pr(t,r),n=Bi(e,t,n,o,i,r),null===e||fa?(t.effectTag|=1,da(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ca(e,t,r))}function ya(e,t,n,o,r){if(Fo(n)){var i=!0;Vo(t)}else i=!1;if(Pr(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),$r(t,n,o),Kr(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=kr(u):u=Io(t,u=Fo(n)?zo:jo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==o||s!==u)&&Yr(t,a,o,u),Ar=!1;var d=t.memoizedState;s=a.state=d;var p=t.updateQueue;null!==p&&(Fr(t,p,o,a,r),s=t.memoizedState),l!==o||d!==s||No.current||Ar?("function"==typeof c&&(Vr(t,n,c,o),s=t.memoizedState),(l=Ar||qr(t,n,l,o,d,s,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=u,o=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),o=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:br(t.type,l),s=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=kr(u):u=Io(t,u=Fo(n)?zo:jo.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==o||s!==u)&&Yr(t,a,o,u),Ar=!1,s=t.memoizedState,d=a.state=s,null!==(p=t.updateQueue)&&(Fr(t,p,o,a,r),d=t.memoizedState),l!==o||s!==d||No.current||Ar?("function"==typeof c&&(Vr(t,n,c,o),d=t.memoizedState),(c=Ar||qr(t,n,l,o,s,d,u))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,d,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,d,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=d),a.props=o,a.state=d,a.context=u,o=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),o=!1);return ba(e,t,n,o,i,r)}function ba(e,t,n,o,r,i){va(e,t);var a=0!=(64&t.effectTag);if(!o&&!a)return r&&Go(t,n,!1),Ca(e,t,i);o=t.stateNode,ca.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&a?(t.child=ei(t,e.child,null,i),t.child=ei(t,null,l,i)):da(e,t,l,i),t.memoizedState=o.state,r&&Go(t,n,!0),t.child}function wa(e){var t=e.stateNode;t.pendingContext?Wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Wo(0,t.context,!1),li(e,t.containerInfo)}var Sa={};function _a(e,t,n){var o,r=t.mode,i=t.pendingProps,a=hi.current,l=null,s=!1;if((o=0!=(64&t.effectTag))||(o=0!=(a&pi)&&(null===e||null!==e.memoizedState)),o?(l=Sa,s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=di),Do(hi,a&=fi),null===e)if(s){if(i=i.fallback,(e=ls(null,r,0,null)).return=t,0==(2&t.mode))for(s=null!==t.memoizedState?t.child.child:t.child,e.child=s;null!==s;)s.return=e,s=s.sibling;(n=ls(i,r,n,null)).return=t,e.sibling=n,r=e}else r=n=ti(t,null,i.children,n);else{if(null!==e.memoizedState)if(r=(a=e.child).sibling,s){if(i=i.fallback,(n=is(a,a.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;(i=is(r,i,r.expirationTime)).return=t,n.sibling=i,r=n,n.childExpirationTime=0,n=i}else r=n=ei(t,a.child,i.children,n);else if(a=e.child,s){if(s=i.fallback,(i=ls(null,r,0,null)).return=t,i.child=a,null!==a&&(a.return=i),0==(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;(n=ls(s,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,r=i,i.childExpirationTime=0}else n=r=ei(t,a,i.children,n);t.stateNode=e.stateNode}return t.memoizedState=l,t.child=r,n}function Ea(e,t,n,o,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:o,tail:n,tailExpiration:0,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.last=o,i.tail=n,i.tailExpiration=0,i.tailMode=r)}function xa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(da(e,t,o.children,n),0!=((o=hi.current)&pi))o=o&fi|pi,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),Or(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=fi}if(Do(hi,o),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(o=n.alternate)&&null===mi(o)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ea(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(o=r.alternate)&&null===mi(o)){t.child=r;break}o=r.sibling,r.sibling=n,n=r,r=o}Ea(t,!0,n,null,i);break;case"together":Ea(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ca(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw a(Error(153));if(null!==t.child){for(n=is(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=is(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ta(e){e.effectTag|=4}var Oa=void 0,Pa=void 0,ka=void 0,Aa=void 0;function Ra(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ma(e){switch(e.tag){case 1:Fo(e.type)&&Bo();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(si(),Uo(),0!=(64&(t=e.effectTag)))throw a(Error(285));return e.effectTag=-2049&t|64,e;case 5:return ci(e),null;case 13:return Mo(hi),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Mo(hi),null;case 4:return si(),null;case 10:return Tr(e),null;default:return null}}function Da(e,t){return{value:e,source:t,stack:ft(t)}}Oa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pa=function(){},ka=function(e,t,n,o,i){var a=e.memoizedProps;if(a!==o){var l=t.stateNode;switch(ai(oi.current),e=null,n){case"input":a=_t(l,a),o=_t(l,o),e=[];break;case"option":a=to(l,a),o=to(l,o),e=[];break;case"select":a=r({},a,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":a=oo(l,a),o=oo(l,o),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof o.onClick&&(l.onclick=_o)}bo(n,o),l=n=void 0;var s=null;for(n in a)if(!o.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(l in u)u.hasOwnProperty(l)&&(s||(s={}),s[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(p.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in o){var c=o[n];if(u=null!=a?a[n]:void 0,o.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(s||(s={}),s[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(s||(s={}),s[l]=c[l])}else s||(e||(e=[]),e.push(n,s)),s=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(p.hasOwnProperty(n)?(null!=c&&So(i,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&Ta(t)}},Aa=function(e,t,n,o){n!==o&&Ta(t)};var La="function"==typeof WeakSet?WeakSet:Set;function ja(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=ft(n)),null!==n&&ct(n.type),t=t.value,null!==e&&1===e.tag&&ct(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function Na(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Zl(e,t)}else t.current=null}function za(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)!==vi){var r=o.destroy;o.destroy=void 0,void 0!==r&&r()}(o.tag&t)!==vi&&(r=o.create,o.destroy=r()),o=o.next}while(o!==n)}}function Ia(e,t){switch("function"==typeof ts&&ts(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var o=n.next;pr(97<t?97:t,function(){var t=o;do{var n=t.destroy;if(void 0!==n){var r=e;try{n()}catch(e){Zl(r,e)}}t=t.next}while(t!==o)})}break;case 1:Na(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Zl(e,t)}}(e,t);break;case 5:Na(e);break;case 4:Wa(e,t)}}function Fa(e,t){for(var n=e;;)if(Ia(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ba(e){return 5===e.tag||3===e.tag||4===e.tag}function Ua(e){e:{for(var t=e.return;null!==t;){if(Ba(t)){var n=t;break e}t=t.return}throw a(Error(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw a(Error(161))}16&n.effectTag&&(po(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ba(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){var i=5===r.tag||6===r.tag;if(i||20===r.tag){var l=i?r.stateNode:r.stateNode.instance;if(n)if(o){var s=l;l=n,8===(i=t).nodeType?i.parentNode.insertBefore(s,l):i.insertBefore(s,l)}else t.insertBefore(l,n);else o?(8===(s=t).nodeType?(i=s.parentNode).insertBefore(l,s):(i=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=_o)):t.appendChild(l)}else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Wa(e,t){for(var n=e,o=!1,r=void 0,i=void 0;;){if(!o){o=n.return;e:for(;;){if(null===o)throw a(Error(160));switch(r=o.stateNode,o.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}o=o.return}o=!0}if(5===n.tag||6===n.tag)if(Fa(n,t),i){var l=r,s=n.stateNode;8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)}else r.removeChild(n.stateNode);else if(20===n.tag)s=n.stateNode.instance,Fa(n,t),i?8===(l=r).nodeType?l.parentNode.removeChild(s):l.removeChild(s):r.removeChild(s);else if(4===n.tag){if(null!==n.child){r=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Ia(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;4===(n=n.return).tag&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function Ha(e,t){switch(t.tag){case 0:case 11:case 14:case 15:za(yi,bi,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[j]=o,"input"===e&&"radio"===o.type&&null!=o.name&&xt(n,o),wo(e,r),t=wo(e,o),r=0;r<i.length;r+=2){var l=i[r],s=i[r+1];"style"===l?go(n,s):"dangerouslySetInnerHTML"===l?fo(n,s):"children"===l?po(n,s):wt(n,l,s,t)}switch(e){case"input":Ct(n,o);break;case"textarea":io(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?no(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?no(n,!!o.multiple,o.defaultValue,!0):no(n,!!o.multiple,o.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw a(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,ml=cr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,o?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=vo("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Va(t);break;case 19:Va(t);break;case 17:case 20:break;default:throw a(Error(163))}}function Va(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new La),t.forEach(function(t){var o=Xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))})}}var Ga="function"==typeof WeakMap?WeakMap:Map;function qa(e,t,n){(n=Dr(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){yl||(yl=!0,bl=o),ja(e,t)},n}function $a(e,t,n){(n=Dr(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return ja(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===wl?wl=new Set([this]):wl.add(this),ja(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Ya=Math.ceil,Ka=qe.ReactCurrentDispatcher,Za=qe.ReactCurrentOwner,Qa=0,Xa=8,Ja=16,el=32,tl=0,nl=1,ol=2,rl=3,il=4,al=Qa,ll=null,sl=null,ul=0,cl=tl,fl=1073741823,dl=1073741823,pl=null,hl=!1,ml=0,vl=500,gl=null,yl=!1,bl=null,wl=null,Sl=!1,_l=null,El=90,xl=0,Cl=null,Tl=0,Ol=null,Pl=0;function kl(){return(al&(Ja|el))!==Qa?1073741821-(cr()/10|0):0!==Pl?Pl:Pl=1073741821-(cr()/10|0)}function Al(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var o=fr();if(0==(4&t))return 99===o?1073741823:1073741822;if((al&Ja)!==Qa)return ul;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(o){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw a(Error(326))}return null!==ll&&e===ul&&--e,e}var Rl=0;function Ml(e,t){if(50<Tl)throw Tl=0,Ol=null,a(Error(185));if(null!==(e=Dl(e,t))){e.pingTime=0;var n=fr();if(1073741823===t)if((al&Xa)!==Qa&&(al&(Ja|el))===Qa)for(var o=Ul(e,1073741823,!0);null!==o;)o=o(!0);else Ll(e,99,1073741823),al===Qa&&vr();else Ll(e,n,t);(4&al)===Qa||98!==n&&99!==n||(null===Cl?Cl=new Map([[e,t]]):(void 0===(n=Cl.get(e))||n>t)&&Cl.set(e,t))}}function Dl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return null!==r&&(t>r.firstPendingTime&&(r.firstPendingTime=t),0===(e=r.lastPendingTime)||t<e)&&(r.lastPendingTime=t),r}function Ll(e,t,n){if(e.callbackExpirationTime<n){var o=e.callbackNode;null!==o&&o!==rr&&Yo(o),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=mr(jl.bind(null,e,Ul.bind(null,e,n))):(o=null,1!==n&&(o={timeout:10*(1073741821-n)-cr()}),e.callbackNode=hr(t,jl.bind(null,e,Ul.bind(null,e,n)),o))}}function jl(e,t,n){var o=e.callbackNode,r=null;try{return null!==(r=t(n))?jl.bind(null,e,r):null}finally{null===r&&o===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Nl(){(al&(1|Ja|el))===Qa&&(function(){if(null!==Cl){var e=Cl;Cl=null,e.forEach(function(e,t){mr(Ul.bind(null,t,e))}),vr()}}(),$l())}function zl(e,t){var n=al;al|=1;try{return e(t)}finally{(al=n)===Qa&&vr()}}function Il(e,t,n,o){var r=al;al|=4;try{return pr(98,e.bind(null,t,n,o))}finally{(al=r)===Qa&&vr()}}function Fl(e,t){var n=al;al&=-2,al|=Xa;try{return e(t)}finally{(al=n)===Qa&&vr()}}function Bl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Po(n)),null!==sl)for(n=sl.return;null!==n;){var o=n;switch(o.tag){case 1:var r=o.type.childContextTypes;null!=r&&Bo();break;case 3:si(),Uo();break;case 5:ci(o);break;case 4:si();break;case 13:case 19:Mo(hi);break;case 10:Tr(o)}n=n.return}ll=e,sl=is(e.current,null),ul=t,cl=tl,dl=fl=1073741823,pl=null,hl=!1}function Ul(e,t,n){if((al&(Ja|el))!==Qa)throw a(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return Gl.bind(null,e);if($l(),e!==ll||t!==ul)Bl(e,t);else if(cl===rl)if(hl)Bl(e,t);else{var o=e.lastPendingTime;if(o<t)return Ul.bind(null,e,o)}if(null!==sl){o=al,al|=Ja;var r=Ka.current;if(null===r&&(r=Xi),Ka.current=Xi,n){if(1073741823!==t){var i=kl();if(i<t)return al=o,xr(),Ka.current=r,Ul.bind(null,e,i)}}else Pl=0;for(;;)try{if(n)for(;null!==sl;)sl=Hl(sl);else for(;null!==sl&&!Ko();)sl=Hl(sl);break}catch(n){if(xr(),Ui(),null===(i=sl)||null===i.return)throw Bl(e,t),al=o,n;e:{var l=e,s=i.return,u=i,c=n,f=ul;if(u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c,p=0!=(hi.current&di);c=s;do{var h;if((h=13===c.tag)&&(null!==c.memoizedState?h=!1:h=void 0!==(h=c.memoizedProps).fallback&&(!0!==h.unstable_avoidThisFallback||!p)),h){if(null===(s=c.updateQueue)?((s=new Set).add(d),c.updateQueue=s):s.add(d),0==(2&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((f=Dr(1073741823,null)).tag=2,jr(u,f))),u.expirationTime=1073741823;break e}u=l,l=f,null===(p=u.pingCache)?(p=u.pingCache=new Ga,s=new Set,p.set(d,s)):void 0===(s=p.get(d))&&(s=new Set,p.set(d,s)),s.has(l)||(s.add(l),u=Ql.bind(null,u,d,l),d.then(u,u)),c.effectTag|=2048,c.expirationTime=f;break e}c=c.return}while(null!==c);c=Error((ct(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ft(u))}cl!==il&&(cl=nl),c=Da(c,u),u=s;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=f,Nr(u,f=qa(u,c,f));break e;case 1:if(d=c,l=u.type,s=u.stateNode,0==(64&u.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==s&&"function"==typeof s.componentDidCatch&&(null===wl||!wl.has(s)))){u.effectTag|=2048,u.expirationTime=f,Nr(u,f=$a(u,d,f));break e}}u=u.return}while(null!==u)}sl=Vl(i)}if(al=o,xr(),Ka.current=r,null!==sl)return Ul.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(hr(97,function(){return n._onComplete(),null}),!0)}(e,t))return null;switch(ll=null,cl){case tl:throw a(Error(328));case nl:return(o=e.lastPendingTime)<t?Ul.bind(null,e,o):n?Gl.bind(null,e):(Bl(e,t),mr(Ul.bind(null,e,t)),null);case ol:return 1073741823===fl&&!n&&10<(n=ml+vl-cr())?hl?(Bl(e,t),Ul.bind(null,e,t)):(o=e.lastPendingTime)<t?Ul.bind(null,e,o):(e.timeoutHandle=Oo(Gl.bind(null,e),n),null):Gl.bind(null,e);case rl:if(!n){if(hl)return Bl(e,t),Ul.bind(null,e,t);if((n=e.lastPendingTime)<t)return Ul.bind(null,e,n);if(1073741823!==dl?n=10*(1073741821-dl)-cr():1073741823===fl?n=0:(n=10*(1073741821-fl)-5e3,0>(n=(o=cr())-n)&&(n=0),(t=10*(1073741821-t)-o)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ya(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Oo(Gl.bind(null,e),n),null}return Gl.bind(null,e);case il:return!n&&1073741823!==fl&&null!==pl&&(o=fl,0>=(t=0|(r=pl).busyMinDurationMs)?t=0:(n=0|r.busyDelayMs,t=(o=cr()-(10*(1073741821-o)-(0|r.timeoutMs||5e3)))<=n?0:n+t-o),10<t)?(e.timeoutHandle=Oo(Gl.bind(null,e),t),null):Gl.bind(null,e);default:throw a(Error(329))}}function Wl(e,t){e<fl&&1<e&&(fl=e),null!==t&&e<dl&&1<e&&(dl=e,pl=t)}function Hl(e){var t=Jl(e.alternate,e,ul);return e.memoizedProps=e.pendingProps,null===t&&(t=Vl(e)),Za.current=null,t}function Vl(e){sl=e;do{var t=sl.alternate;if(e=sl.return,0==(1024&sl.effectTag)){e:{var n=t,o=ul,i=(t=sl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Fo(t.type)&&Bo();break;case 3:si(),Uo(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==n&&null!==n.child||(sa(t),t.effectTag&=-3),Pa(t);break;case 5:ci(t),o=ai(ii.current);var l=t.type;if(null!==n&&null!=t.stateNode)ka(n,t,l,i,o),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=ai(oi.current);if(sa(t)){i=void 0,l=(n=t).stateNode;var u=n.type,c=n.memoizedProps;switch(l[L]=n,l[j]=c,u){case"iframe":case"object":case"embed":jn("load",l);break;case"video":case"audio":for(var f=0;f<ne.length;f++)jn(ne[f],l);break;case"source":jn("error",l);break;case"img":case"image":case"link":jn("error",l),jn("load",l);break;case"form":jn("reset",l),jn("submit",l);break;case"details":jn("toggle",l);break;case"input":Et(l,c),jn("invalid",l),So(o,"onChange");break;case"select":l._wrapperState={wasMultiple:!!c.multiple},jn("invalid",l),So(o,"onChange");break;case"textarea":ro(l,c),jn("invalid",l),So(o,"onChange")}for(i in bo(u,c),f=null,c)c.hasOwnProperty(i)&&(s=c[i],"children"===i?"string"==typeof s?l.textContent!==s&&(f=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(f=["children",""+s]):p.hasOwnProperty(i)&&null!=s&&So(o,i));switch(u){case"input":Ve(l),Tt(l,c,!0);break;case"textarea":Ve(l),ao(l);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(l.onclick=_o)}o=f,n.updateQueue=o,null!==o&&Ta(t)}else{c=l,n=i,u=t,f=9===o.nodeType?o:o.ownerDocument,s===lo.html&&(s=so(c)),s===lo.html?"script"===c?((c=f.createElement("div")).innerHTML="<script><\/script>",f=c.removeChild(c.firstChild)):"string"==typeof n.is?f=f.createElement(c,{is:n.is}):(f=f.createElement(c),"select"===c&&(c=f,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):f=f.createElementNS(s,c),(c=f)[L]=u,c[j]=n,Oa(n=c,t,!1,!1),u=n;var d=o,h=wo(l,i);switch(l){case"iframe":case"object":case"embed":jn("load",u),o=i;break;case"video":case"audio":for(o=0;o<ne.length;o++)jn(ne[o],u);o=i;break;case"source":jn("error",u),o=i;break;case"img":case"image":case"link":jn("error",u),jn("load",u),o=i;break;case"form":jn("reset",u),jn("submit",u),o=i;break;case"details":jn("toggle",u),o=i;break;case"input":Et(u,i),o=_t(u,i),jn("invalid",u),So(d,"onChange");break;case"option":o=to(u,i);break;case"select":u._wrapperState={wasMultiple:!!i.multiple},o=r({},i,{value:void 0}),jn("invalid",u),So(d,"onChange");break;case"textarea":ro(u,i),o=oo(u,i),jn("invalid",u),So(d,"onChange");break;default:o=i}bo(l,o),c=void 0,f=l,s=u;var m=o;for(c in m)if(m.hasOwnProperty(c)){var v=m[c];"style"===c?go(s,v):"dangerouslySetInnerHTML"===c?null!=(v=v?v.__html:void 0)&&fo(s,v):"children"===c?"string"==typeof v?("textarea"!==f||""!==v)&&po(s,v):"number"==typeof v&&po(s,""+v):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(p.hasOwnProperty(c)?null!=v&&So(d,c):null!=v&&wt(s,c,v,h))}switch(l){case"input":Ve(u),Tt(u,i,!1);break;case"textarea":Ve(u),ao(u);break;case"option":null!=i.value&&u.setAttribute("value",""+St(i.value));break;case"select":o=u,u=i,o.multiple=!!u.multiple,null!=(c=u.value)?no(o,!!u.multiple,c,!1):null!=u.defaultValue&&no(o,!!u.multiple,u.defaultValue,!0);break;default:"function"==typeof o.onClick&&(u.onclick=_o)}Co(l,i)&&Ta(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw a(Error(166));break;case 6:if(n&&null!=t.stateNode)Aa(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw a(Error(166));n=ai(ii.current),ai(oi.current),sa(t)?(o=t.stateNode,n=t.memoizedProps,o[L]=t,o.nodeValue!==n&&Ta(t)):(o=t,(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[L]=t,o.stateNode=n)}break;case 11:break;case 13:if(Mo(hi),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o;break e}o=null!==i,i=!1,null===n?sa(t):(i=null!==(l=n.memoizedState),o||null===l||null!==(l=n.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=l,l.nextEffect=u):(t.firstEffect=t.lastEffect=l,l.nextEffect=null),l.effectTag=8)),o&&!i&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(hi.current&di)?cl===tl&&(cl=ol):cl!==tl&&cl!==ol||(cl=rl)),(o||i)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:si(),Pa(t);break;case 10:Tr(t);break;case 9:case 14:break;case 17:Fo(t.type)&&Bo();break;case 18:break;case 19:if(Mo(hi),null===(i=t.memoizedState))break;if(l=0!=(64&t.effectTag),null===(u=i.rendering)){if(l)Ra(i,!1);else if(cl!==tl||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(u=mi(n))){for(t.effectTag|=64,Ra(i,!1),null!==(n=u.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)l=o,(i=n).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(u=i.alternate)?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=u.childExpirationTime,i.expirationTime=u.expirationTime,i.child=u.child,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,l=u.dependencies,i.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;Do(hi,hi.current&fi|pi),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=mi(u))){if(t.effectTag|=64,l=!0,Ra(i,!0),null===i.tail&&"hidden"===i.tailMode){null!==(o=n.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else cr()>i.tailExpiration&&1<o&&(t.effectTag|=64,l=!0,Ra(i,!1),t.expirationTime=t.childExpirationTime=o-1);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(o=i.last)?o.sibling=u:t.child=u,i.last=u)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=cr()+500),o=i.tail,i.rendering=o,i.tail=o.sibling,i.lastEffect=t.lastEffect,o.sibling=null,n=hi.current,Do(hi,n=l?n&fi|pi:n&fi),t=o;break e}break;case 20:break;default:throw a(Error(156))}t=null}if(o=sl,1===ul||1!==o.childExpirationTime){for(n=0,i=o.child;null!==i;)(l=i.expirationTime)>n&&(n=l),(u=i.childExpirationTime)>n&&(n=u),i=i.sibling;o.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=sl.firstEffect),null!==sl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=sl.firstEffect),e.lastEffect=sl.lastEffect),1<sl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=sl:e.firstEffect=sl,e.lastEffect=sl))}else{if(null!==(t=Ma(sl)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=sl.sibling))return t;sl=e}while(null!==sl);return cl===tl&&(cl=il),null}function Gl(e){var t=fr();return pr(99,ql.bind(null,e,t)),null!==_l&&hr(97,function(){return $l(),null}),null}function ql(e,t){if($l(),(al&(Ja|el))!==Qa)throw a(Error(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw a(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var r=n.expirationTime,i=n.childExpirationTime;if(r=i>r?i:r,e.firstPendingTime=r,r<e.lastPendingTime&&(e.lastPendingTime=r),e===ll&&(sl=ll=null,ul=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){i=al,al|=el,Za.current=null,Eo=Ln;var l=Gn();if(qn(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var u=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(u&&0!==u.rangeCount){s=u.anchorNode;var c=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{s.nodeType,f.nodeType}catch(e){s=null;break e}var d=0,p=-1,h=-1,m=0,v=0,g=l,y=null;t:for(;;){for(var b;g!==s||0!==c&&3!==g.nodeType||(p=d+c),g!==f||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===l)break t;if(y===s&&++m===c&&(p=d),y===f&&++v===u&&(h=d),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}s=-1===p||-1===h?null:{start:p,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;xo={focusedElem:l,selectionRange:s},Ln=!1,gl=r;do{try{for(;null!==gl;){if(0!=(256&gl.effectTag)){var w=gl.alternate;switch((l=gl).tag){case 0:case 11:case 15:za(gi,vi,l);break;case 1:if(256&l.effectTag&&null!==w){var S=w.memoizedProps,_=w.memoizedState,E=l.stateNode,x=E.getSnapshotBeforeUpdate(l.elementType===l.type?S:br(l.type,S),_);E.__reactInternalSnapshotBeforeUpdate=x}break;case 3:case 5:case 6:case 4:case 17:break;default:throw a(Error(163))}}gl=gl.nextEffect}}catch(e){if(null===gl)throw a(Error(330));Zl(gl,e),gl=gl.nextEffect}}while(null!==gl);gl=r;do{try{for(w=t;null!==gl;){var C=gl.effectTag;if(16&C&&po(gl.stateNode,""),128&C){var T=gl.alternate;if(null!==T){var O=T.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(14&C){case 2:Ua(gl),gl.effectTag&=-3;break;case 6:Ua(gl),gl.effectTag&=-3,Ha(gl.alternate,gl);break;case 4:Ha(gl.alternate,gl);break;case 8:Wa(S=gl,w),S.return=null,S.child=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null;var P=S.alternate;null!==P&&(P.return=null,P.child=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null)}gl=gl.nextEffect}}catch(e){if(null===gl)throw a(Error(330));Zl(gl,e),gl=gl.nextEffect}}while(null!==gl);if(O=xo,T=Gn(),C=O.focusedElem,w=O.selectionRange,T!==C&&C&&C.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(C.ownerDocument.documentElement,C)){null!==w&&qn(C)&&(T=w.start,void 0===(O=w.end)&&(O=T),"selectionStart"in C?(C.selectionStart=T,C.selectionEnd=Math.min(O,C.value.length)):(O=(T=C.ownerDocument||document)&&T.defaultView||window).getSelection&&(O=O.getSelection(),S=C.textContent.length,P=Math.min(w.start,S),w=void 0===w.end?P:Math.min(w.end,S),!O.extend&&P>w&&(S=w,w=P,P=S),S=Vn(C,P),_=Vn(C,w),S&&_&&(1!==O.rangeCount||O.anchorNode!==S.node||O.anchorOffset!==S.offset||O.focusNode!==_.node||O.focusOffset!==_.offset)&&((T=T.createRange()).setStart(S.node,S.offset),O.removeAllRanges(),P>w?(O.addRange(T),O.extend(_.node,_.offset)):(T.setEnd(_.node,_.offset),O.addRange(T))))),T=[];for(O=C;O=O.parentNode;)1===O.nodeType&&T.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<T.length;C++)(O=T[C]).element.scrollLeft=O.left,O.element.scrollTop=O.top}xo=null,Ln=!!Eo,Eo=null,e.current=n,gl=r;do{try{for(C=o;null!==gl;){var k=gl.effectTag;if(36&k){var A=gl.alternate;switch(O=C,(T=gl).tag){case 0:case 11:case 15:za(wi,Si,T);break;case 1:var R=T.stateNode;if(4&T.effectTag)if(null===A)R.componentDidMount();else{var M=T.elementType===T.type?A.memoizedProps:br(T.type,A.memoizedProps);R.componentDidUpdate(M,A.memoizedState,R.__reactInternalSnapshotBeforeUpdate)}var D=T.updateQueue;null!==D&&Br(0,D,R);break;case 3:var L=T.updateQueue;if(null!==L){if(P=null,null!==T.child)switch(T.child.tag){case 5:P=T.child.stateNode;break;case 1:P=T.child.stateNode}Br(0,L,P)}break;case 5:var j=T.stateNode;null===A&&4&T.effectTag&&(O=j,Co(T.type,T.memoizedProps)&&O.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw a(Error(163))}}if(128&k){var N=gl.ref;if(null!==N){var z=gl.stateNode;switch(gl.tag){case 5:var I=z;break;default:I=z}"function"==typeof N?N(I):N.current=I}}512&k&&(Sl=!0),gl=gl.nextEffect}}catch(e){if(null===gl)throw a(Error(330));Zl(gl,e),gl=gl.nextEffect}}while(null!==gl);gl=null,ir(),al=i}else e.current=n;if(Sl)Sl=!1,_l=e,xl=o,El=t;else for(gl=r;null!==gl;)t=gl.nextEffect,gl.nextEffect=null,gl=t;if(0!==(t=e.firstPendingTime)?Ll(e,k=yr(k=kl(),t),t):wl=null,"function"==typeof es&&es(n.stateNode,o),1073741823===t?e===Ol?Tl++:(Tl=0,Ol=e):Tl=0,yl)throw yl=!1,e=bl,bl=null,e;return(al&Xa)!==Qa?null:(vr(),null)}function $l(){if(null===_l)return!1;var e=_l,t=xl,n=El;return _l=null,xl=0,El=90,pr(97<n?97:n,Yl.bind(null,e,t))}function Yl(e){if((al&(Ja|el))!==Qa)throw a(Error(331));var t=al;for(al|=el,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:za(Ei,vi,n),za(vi,_i,n)}}catch(t){if(null===e)throw a(Error(330));Zl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return al=t,vr(),!0}function Kl(e,t,n){jr(e,t=qa(e,t=Da(n,t),1073741823)),null!==(e=Dl(e,1073741823))&&Ll(e,99,1073741823)}function Zl(e,t){if(3===e.tag)Kl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Kl(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===wl||!wl.has(o))){jr(n,e=$a(n,e=Da(t,e),1073741823)),null!==(n=Dl(n,1073741823))&&Ll(n,99,1073741823);break}}n=n.return}}function Ql(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),ll===e&&ul===n?cl===rl||cl===ol&&1073741823===fl&&cr()-ml<vl?Bl(e,ul):hl=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),Ll(e,t=yr(t=kl(),n),n)))}function Xl(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=yr(n=kl(),t=Al(n,e,null)),null!==(e=Dl(e,t))&&Ll(e,n,t)}var Jl=void 0;Jl=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||No.current)fa=!0;else if(o<n){switch(fa=!1,t.tag){case 3:wa(t),ua();break;case 5:if(ui(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Fo(t.type)&&Vo(t);break;case 4:li(t,t.stateNode.containerInfo);break;case 10:Cr(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?_a(e,t,n):(Do(hi,hi.current&fi),null!==(t=Ca(e,t,n))?t.sibling:null);Do(hi,hi.current&fi);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return xa(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),Do(hi,hi.current),!o)return null}return Ca(e,t,n)}}else fa=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=Io(t,jo.current),Pr(t,n),r=Bi(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,Ui(),Fo(o)){var i=!0;Vo(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var l=o.getDerivedStateFromProps;"function"==typeof l&&Vr(t,o,l,e),r.updater=Gr,t.stateNode=r,r._reactInternalFiber=t,Kr(t,o,e,n),t=ba(null,t,o,!0,i,n)}else t.tag=0,da(null,t,r,n),t=t.child;return t;case 16:switch(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(r),t.type=r,i=t.tag=function(e){if("function"==typeof e)return rs(e)?1:0;if(null!=e){if((e=e.$$typeof)===ot)return 11;if(e===at)return 14}return 2}(r),e=br(r,e),i){case 0:t=ga(null,t,r,e,n);break;case 1:t=ya(null,t,r,e,n);break;case 11:t=pa(null,t,r,e,n);break;case 14:t=ha(null,t,r,br(r.type,e),o,n);break;default:throw a(Error(306),r,"")}return t;case 0:return o=t.type,r=t.pendingProps,ga(e,t,o,r=t.elementType===o?r:br(o,r),n);case 1:return o=t.type,r=t.pendingProps,ya(e,t,o,r=t.elementType===o?r:br(o,r),n);case 3:if(wa(t),null===(o=t.updateQueue))throw a(Error(282));return r=null!==(r=t.memoizedState)?r.element:null,Fr(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(ua(),t=Ca(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(na=ko(t.stateNode.containerInfo.firstChild),ta=t,r=oa=!0),r?(t.effectTag|=2,t.child=ti(t,null,o,n)):(da(e,t,o,n),ua()),t=t.child),t;case 5:return ui(t),null===e&&aa(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,l=r.children,To(o,r)?l=null:null!==i&&To(o,i)&&(t.effectTag|=16),va(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(da(e,t,l,n),t=t.child),t;case 6:return null===e&&aa(t),null;case 13:return _a(e,t,n);case 4:return li(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ei(t,null,o,n):da(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,pa(e,t,o,r=t.elementType===o?r:br(o,r),n);case 7:return da(e,t,t.pendingProps,n),t.child;case 8:case 12:return da(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,l=t.memoizedProps,Cr(t,i=r.value),null!==l){var s=l.value;if(0===(i=tn(s,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(s,i):1073741823))){if(l.children===r.children&&!No.current){t=Ca(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===o&&0!=(c.observedBits&i)){1===s.tag&&((c=Dr(n,null)).tag=2,jr(s,c)),s.expirationTime<n&&(s.expirationTime=n),null!==(c=s.alternate)&&c.expirationTime<n&&(c.expirationTime=n),Or(s.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}}da(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,Pr(t,n),o=o(r=kr(r,i.unstable_observedBits)),t.effectTag|=1,da(e,t,o,n),t.child;case 14:return i=br(r=t.type,t.pendingProps),ha(e,t,r,i=br(r.type,i),o,n);case 15:return ma(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:br(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Fo(o)?(e=!0,Vo(t)):e=!1,Pr(t,n),$r(t,o,r),Kr(t,o,r,n),ba(null,t,o,!0,e,n);case 19:return xa(e,t,n)}throw a(Error(156))};var es=null,ts=null;function ns(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function os(e,t,n,o){return new ns(e,t,n,o)}function rs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function is(e,t){var n=e.alternate;return null===n?((n=os(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function as(e,t,n,o,r,i){var l=2;if(o=e,"function"==typeof e)rs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Qe:return ls(n.children,r,i,t);case nt:l=8,r|=7;break;case Xe:l=8,r|=1;break;case Je:return(e=os(12,n,t,8|r)).elementType=Je,e.type=Je,e.expirationTime=i,e;case rt:return(e=os(13,n,t,r)).type=rt,e.elementType=rt,e.expirationTime=i,e;case it:return(e=os(19,n,t,r)).elementType=it,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:l=10;break e;case tt:l=9;break e;case ot:l=11;break e;case at:l=14;break e;case lt:l=16,o=null;break e}throw a(Error(130),null==e?e:typeof e,"")}return(t=os(l,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function ls(e,t,n,o){return(e=os(7,e,o,t)).expirationTime=n,e}function ss(e,t,n){return(e=os(6,e,null,t)).expirationTime=n,e}function us(e,t,n){return(t=os(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cs(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function fs(e,t,n){return e=new cs(e,t,n),t=os(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function ds(e,t,n,o,r,i){var l=t.current;e:if(n){t:{if(2!==an(n=n._reactInternalFiber)||1!==n.tag)throw a(Error(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Fo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw a(Error(171))}if(1===n.tag){var u=n.type;if(Fo(u)){n=Ho(n,u,s);break e}}n=s}else n=Lo;return null===t.context?t.context=n:t.pendingContext=n,t=i,(r=Dr(o,r)).payload={element:e},null!==(t=void 0===t?null:t)&&(r.callback=t),jr(l,r),Ml(l,o),o}function ps(e,t,n,o){var r=t.current,i=kl(),a=Wr.suspense;return ds(e,t,n,r=Al(i,r,a),a,o)}function hs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ms(e){var t=1073741821-25*(1+((1073741821-kl()+500)/25|0));t<=Rl&&--t,this._expirationTime=Rl=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function vs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function gs(e,t,n){this._internalRoot=fs(e,t,n)}function ys(e,t){this._internalRoot=fs(e,2,t)}function bs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ws(e,t,n,o,r){var i=n._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"==typeof r){var l=r;r=function(){var e=hs(a);l.call(e)}}ps(t,a,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new gs(e,0,t)}(n,o),a=i._internalRoot,"function"==typeof r){var s=r;r=function(){var e=hs(a);s.call(e)}}Fl(function(){ps(t,a,e,r)})}return hs(a)}function Ss(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!bs(t))throw a(Error(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ze,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Oe=function(e,t,n){switch(t){case"input":if(Ct(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=F(o);if(!r)throw a(Error(90));Ge(o),Ct(o,r)}}}break;case"textarea":io(e,n);break;case"select":null!=(t=n.value)&&no(e,!!n.multiple,t,!1)}},ms.prototype.render=function(e){if(!this._defer)throw a(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,o=new vs;return ds(e,t,null,n,null,o._onCommit),o},ms.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ms.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw a(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var o=null,r=t;r!==this;)o=r,r=r._next;if(null===o)throw a(Error(251));o._next=r._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(al&(Ja|el))!==Qa)throw a(Error(253));mr(Ul.bind(null,e,t)),vr(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},ms.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},vs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},vs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)throw a(Error(191),n);n()}}},ys.prototype.render=gs.prototype.render=function(e,t){var n=this._internalRoot,o=new vs;return null!==(t=void 0===t?null:t)&&o.then(t),ps(e,n,null,o._onCommit),o},ys.prototype.unmount=gs.prototype.unmount=function(e){var t=this._internalRoot,n=new vs;return null!==(e=void 0===e?null:e)&&n.then(e),ps(null,t,null,n._onCommit),n},ys.prototype.createBatch=function(){var e=new ms(this),t=e._expirationTime,n=this._internalRoot,o=n.firstBatch;if(null===o)n.firstBatch=e,e._next=null;else{for(n=null;null!==o&&o._expirationTime>=t;)n=o,o=o._next;e._next=o,null!==n&&(n._next=e)}return e},De=zl,Le=Il,je=Nl,Ne=function(e,t){var n=al;al|=2;try{return e(t)}finally{(al=n)===Qa&&vr()}};var _s,Es,xs={createPortal:Ss,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw a(Error(188));throw a(Error(268),Object.keys(e))}e=null===(e=sn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!bs(t))throw a(Error(200));return ws(null,e,t,!0,n)},render:function(e,t,n){if(!bs(t))throw a(Error(200));return ws(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){if(!bs(n))throw a(Error(200));if(null==e||void 0===e._reactInternalFiber)throw a(Error(38));return ws(e,t,n,!1,o)},unmountComponentAtNode:function(e){if(!bs(e))throw a(Error(40));return!!e._reactRootContainer&&(Fl(function(){ws(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ss.apply(void 0,arguments)},unstable_batchedUpdates:zl,unstable_interactiveUpdates:function(e,t,n,o){return Nl(),Il(e,t,n,o)},unstable_discreteUpdates:Il,unstable_flushDiscreteUpdates:Nl,flushSync:function(e,t){if((al&(Ja|el))!==Qa)throw a(Error(187));var n=al;al|=1;try{return pr(99,e.bind(null,t))}finally{al=n,vr()}},unstable_createRoot:function(e,t){if(!bs(e))throw a(Error(299),"unstable_createRoot");return new ys(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!bs(e))throw a(Error(299),"unstable_createRoot");return new gs(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=al;al|=1;try{pr(99,e)}finally{(al=t)===Qa&&vr()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[z,I,F,R.injectEventPluginsByName,d,G,function(e){O(e,V)},Re,Me,Fn,A,$l,{current:!1}]}};Es=(_s={findFiberByHostInstance:N,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);es=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},ts=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},_s,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Es?Es(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var Cs={default:xs},Ts=Cs&&xs||Cs;e.exports=Ts.default||Ts},function(e,t,n){"use strict";e.exports=n(397)},function(e,t,n){"use strict";
  /** @license React v0.15.0
   * scheduler.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,r=void 0,i=void 0,a=void 0,l=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}};t.unstable_now=function(){return Date.now()},o=function(e){null!==s?setTimeout(o,0,e):(s=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout,m=window.requestAnimationFrame,v=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"==typeof f&&"function"==typeof f.now?function(){return f.now()}:function(){return d.now()};var g=!1,y=null,b=-1,w=-1,S=33.33,_=-1,E=-1,x=0,C=!1;a=function(){return t.unstable_now()>=x},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(S=Math.floor(1e3/e),C=!0):(S=33.33,C=!1)};var T=function(){if(null!==y){var e=t.unstable_now(),n=0<x-e;try{y(n,e)||(y=null)}catch(e){throw P.postMessage(null),e}}},O=new MessageChannel,P=O.port2;O.port1.onmessage=T;var k=function(e){if(null===y)E=_=-1,g=!1;else{g=!0,m(function(e){h(b),k(e)});var n=function(){x=t.unstable_now()+S/2,T(),b=p(n,3*S)};if(b=p(n,3*S),-1!==_&&.1<e-_){var o=e-_;!C&&-1!==E&&o<S&&E<S&&(8.33>(S=o<E?E:o)&&(S=8.33)),E=o}_=e,x=e+S,P.postMessage(null)}};o=function(e){y=e,g||(g=!0,m(function(e){k(e)}))},r=function(e,n){w=p(function(){e(t.unstable_now())},n)},i=function(){h(w),w=-1}}var A=null,R=null,M=null,D=3,L=!1,j=!1,N=!1;function z(e,t){var n=e.next;if(n===e)A=null;else{e===A&&(A=n);var o=e.previous;o.next=n,n.previous=o}e.next=e.previous=null,n=e.callback,o=D;var r=M;D=e.priorityLevel,M=e;try{var i=e.expirationTime<=t;switch(D){case 1:var a=n(i);break;case 2:case 3:case 4:a=n(i);break;case 5:a=n(i)}}catch(e){throw e}finally{D=o,M=r}if("function"==typeof a)if(t=e.expirationTime,e.callback=a,null===A)A=e.next=e.previous=e;else{a=null,i=A;do{if(t<=i.expirationTime){a=i;break}i=i.next}while(i!==A);null===a?a=A:a===A&&(A=e),(t=a.previous).next=a.previous=e,e.next=a,e.previous=t}}function I(e){if(null!==R&&R.startTime<=e)do{var t=R,n=t.next;if(t===n)R=null;else{R=n;var o=t.previous;o.next=n,n.previous=o}t.next=t.previous=null,W(t,t.expirationTime)}while(null!==R&&R.startTime<=e)}function F(e){N=!1,I(e),j||(null!==A?(j=!0,o(B)):null!==R&&r(F,R.startTime-e))}function B(e,n){j=!1,N&&(N=!1,i()),I(n),L=!0;try{if(e){if(null!==A)do{z(A,n),I(n=t.unstable_now())}while(null!==A&&!a())}else for(;null!==A&&A.expirationTime<=n;)z(A,n),I(n=t.unstable_now());return null!==A||(null!==R&&r(F,R.startTime-n),!1)}finally{L=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function W(e,t){if(null===A)A=e.next=e.previous=e;else{var n=null,o=A;do{if(t<o.expirationTime){n=o;break}o=o.next}while(o!==A);null===n?n=A:n===A&&(A=e),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}}var H=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?l+s:l,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),s=l;if(e={callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,next:null,previous:null},s>l){if(a=s,null===R)R=e.next=e.previous=e;else{n=null;var u=R;do{if(a<u.startTime){n=u;break}u=u.next}while(u!==R);null===n?n=R:n===R&&(R=e),(a=n.previous).next=n.previous=e,e.next=n,e.previous=a}null===A&&R===e&&(N?i():N=!0,r(F,s-l))}else W(e,a),j||L||(j=!0,o(B));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===A?A=null:e===R&&(R=null);else{e===A?A=t:e===R&&(R=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_shouldYield=function(){var e=t.unstable_now();return I(e),null!==M&&null!==A&&A.startTime<=e&&A.expirationTime<M.expirationTime||a()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){j||L||(j=!0,o(B))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return A}},function(e,t,n){"use strict";var o=n(399);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
  /** @license React v16.8.6
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case f:case d:case a:case s:case l:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case u:return e;default:return t}}case v:case m:case i:return t}}}function y(e){return g(e)===d}t.typeOf=g,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||g(e)===f},t.isConcurrentMode=y,t.isContextConsumer=function(e){return g(e)===c},t.isContextProvider=function(e){return g(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===p},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===v},t.isMemo=function(e){return g(e)===m},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===l},t.isSuspense=function(e){return g(e)===h}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){var o=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,r=n(404),i=Object.create?Object.create(null):{};function a(e,t,n,o,r){var i=t.indexOf("<",o),a=t.slice(o,-1===i?void 0:i);/^\s*$/.test(a)&&(a=" "),(!r&&i>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=i);var n,l=[],s=-1,u=[],c={},f=!1;return e.replace(o,function(o,i){if(f){if(o!=="</"+n.name+">")return;f=!1}var d,p="/"!==o.charAt(1),h=0===o.indexOf("\x3c!--"),m=i+o.length,v=e.charAt(m);p&&!h&&(s++,"tag"===(n=r(o)).type&&t.components[n.name]&&(n.type="component",f=!0),n.voidElement||f||!v||"<"===v||a(n.children,e,s,m,t.ignoreWhitespace),c[n.tagName]=n,0===s&&l.push(n),(d=u[s-1])&&d.children.push(n),u[s]=n),(h||!p||n.voidElement)&&(h||s--,!f&&"<"!==v&&v&&a(d=-1===s?l:u[s].children,e,s,m,t.ignoreWhitespace))}),!l.length&&e.length&&a(l,e,0,0,t.ignoreWhitespace),l}},function(e,t,n){var o=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,r=n(405);e.exports=function(e){var t,n=0,i=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(o,function(o){if("="===o)return i=!0,void n++;i?0===n?((r[o]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=o):(a.attrs[t]=o.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=o),n++,i=!1}),a}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(n,"")+"</"+t.name+">"}}e.exports=function(e){return e.reduce(function(e,t){return e+n("",t)},"")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){},function(e,t,n){},function(e,t){e.exports='<svg viewBox="-10 -15 51 49" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Triangle</title><desc>Created with Sketch.</desc><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Artboard" transform="translate(0.000000, -3.000000)" fill="#000000"><polygon id="Triangle" transform="translate(12.000000, 12.000000) scale(1, -1) translate(-12.000000, -12.000000) " points="12 3 24 21 0 21"></polygon></g></g></svg>'},function(e,t){e.exports='<svg version="1.1" id="Layer_11" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><style type="text/css"> .st0{fill-rule:evenodd;clip-rule:evenodd;} </style><g><g><rect x="74.6" y="63.7" class="st0" width="104" height="20.4"></rect></g><g><rect x="74.6" y="114.4" class="st0" width="104" height="20.4"></rect></g><g><rect x="74.6" y="169.3" class="st0" width="39" height="20.4"></rect></g></g><path class="st0" d="M186.6,29.7h-120c-9.9,0-18,8.1-18,18v158c0,9.9,8.1,18,18,18h120c9.9,0,18-8.1,18-18v-158 C204.6,37.8,196.5,29.7,186.6,29.7z M104.3,206.9H69.5c-3.3,0-6-2.7-6-6V52.6c0-3.3,2.7-6,6-6h114.2c3.3,0,6,2.7,6,6v61.8h-85.4 C104.3,114.4,104.3,206.9,104.3,206.9z M177.8,204.6l-23.4-23.4l-23.3,23.3l-12-11.9l23.3-23.3l-23.2-23.2l12-12l23.2,23.2 l23.3-23.3l11.9,12l-23.3,23.3l23.4,23.4L177.8,204.6z"></path></svg>'},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"><image id="image0" width="24" height="24" x="0" y="0" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN RQfjAgwEFzfWJaYRAAAAiUlEQVQ4y+3Suw2DMBSF4d8OQ7inRYrZIfIMcXqWRBmCBehBYodQ8DAi 2L59chq7+I6u/IB/ojHb5ibidxo0PYAWcR+cEvAXijetrGDxR54rfPF04YKHW9I8KRhyHIp1raix QJfmYcKIoqRiYkjx48P1e8XE+fnQjgcfiPPz11imJPhVHE6OfyQzAWIf5W+O+OsAAAAldEVYdGRh dGU6Y3JlYXRlADIwMTktMDItMTJUMTE6MjM6NTUtMDc6MDACNDWIAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDE5LTAyLTEyVDExOjIzOjU1LTA3OjAwc2mNNAAAAABJRU5ErkJggg=="></image></svg>'},function(e,t){e.exports='<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon><path d="M16.7375649,4 L21.236068,11.9970061 L16.7348397,19.9994626 L7.5018203,20.0006467 L3,11.9970061 L7.49832909,4.0003479 L16.7375649,4 Z M8.73606798,5.99700608 L7.63018536,7.88746878 L13.4671162,17.9973295 L15.5,17.9970061 L16.5126451,16.2389926 L10.5994314,5.99700608 L8.73606798,5.99700608 Z M6.6434864,9.58428881 L5.23606798,11.9970061 L8.73606798,17.9970061 L11.5579671,17.9970061 L6.6434864,9.58428881 Z M17.5249398,14.5298193 L19,11.9970061 L15.5,5.99700608 L12.5985178,5.99700608 L17.5249398,14.5298193 Z" id="Shape" fill="#000000" fill-rule="nonzero"></path></g></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m16.9739609 5.6099999h-2.5857864v-2h4 2v6h-2v-2.58578644l-13.36396104 13.36396104-1.41421356-1.4142136z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m16 12.5v5h-2v-5h-8.5c-.82842712 0-1.5-.6715729-1.5-1.5v-7c0-.82842712.67157288-1.5 1.5-1.5h13c.8284271 0 1.5.67157288 1.5 1.5v7c0 .8284271-.6715729 1.5-1.5 1.5zm-6.97914442 5.0009132h6.97914442v1.9999808h-6.82261926l1.75017416 1.7501741-1.41421359 1.4142136-4.24264068-4.2426407 4.24264068-4.2426407 1.41421359 1.4142136z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m12 21c-4.97056275 0-9-4.0294373-9-9 0-4.97056275 4.02943725-9 9-9 4.9705627 0 9 4.02943725 9 9 0 4.9705627-4.0294373 9-9 9zm0-2c3.8659932 0 7-3.1340068 7-7 0-3.86599325-3.1340068-7-7-7-3.86599325 0-7 3.13400675-7 7 0 3.8659932 3.13400675 7 7 7z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m19.35 10.04c-.68-3.45-3.71-6.04-7.35-6.04-2.89 0-5.4 1.64-6.65 4.04-3.01.32-5.35 2.87-5.35 5.96 0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zm-.35 7.96h-13c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71c.66-2.31 2.77-4 5.29-4 3.04 0 5.5 2.46 5.5 5.5v.5h1.5c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none"><g id="ic_annotation_line_black_24px"><path d="M18,7.41421354 L7.41421357,18 L10,18 L10,20 L4.00000003,20 L4,14 L6,14 L6,16.5857864 L16.5857864,6 L14,6 L14,4 L20,4 L20,9.99999997 L18,9.99999997 L18,7.41421354 Z" id="Combined-Shape" fill="#000000"></path></g></g></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m22 20.7c-4.8 0-9.7 0-14.5 0-.2 0-.3 0-.4-.2-1.7-1.7-3.3-3.3-5-5 0 0-.1-.1-.1-.1l.2-.2c4-4 7.9-7.9 11.9-11.9.1-.1.2-.1.4 0 2.5 2.5 4.9 4.9 7.4 7.4 0 0 .1.1.2.1-2.7 2.7-5.4 5.4-8.1 8.1h8.1c-.1.7-.1 1.2-.1 1.8zm-17.5-5.2 3.5 3.5h.2 3.1c.1 0 .2 0 .3-.1.9-.9 1.7-1.7 2.6-2.6 0 0 .1-.1.1-.1-1.8-1.8-3.5-3.5-5.2-5.2-1.6 1.4-3.1 2.9-4.6 4.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m10.0940522 17.9587003-3.74999998-3.75 9.91620028-9.9162003c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41zm-1.06066015 1.0606602-.98298815.9829881h-5.02538467c-.56610249 0-1.02501923-.4589167-1.02501923-1.0250192 0-.2718674.10800496-.5325985.30025253-.7248294l2.98313952-2.9831395z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m9.66172796 8.5226409 4.24264064-4.24264069 7.0710679 7.07106779-4.2426407 4.2426407c-.3905243.3905243-1.0236893.3905243-1.4142136 0l-5.65685424-5.65685424c-.3905243-.39052429-.3905243-1.02368927 0-1.41421356zm-.70710679 2.1213203 5.65685423 5.6568543-5.01218758 2.5060938c-.38498866.1924943-.84996012.1170398-1.15432038-.1873204l-1.80911966-1.8091197c-.30436026-.3043602-.37981474-.7693317-.18732041-1.1543204zm-2.82842712 7.0710679 1.41421356 1.4142135c-1.31993275 1.0370899-2.14489066 1.3906433-2.47487373 1.0606602-.32998308-.3299831.02357031-1.154941 1.06066017-2.4748737z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m14 17h2v2h-7v-2h2v-9h-3v2h-2v-2-3h13v3 2h-2v-2h-3z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2v-14c0-1.1.9-2 2-2zm-4.9471874 12.3412499.7890625 2.34375h2.4921875l-4.2578125-11.37499996h-2.171875l-4.23437502 11.37499996h2.4921875l.78125-2.34375zm-3.4765625-1.8984375 1.4140625-4.25781246 1.4296875 4.25781246z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m21 19v-14c0-1.1-.9-2-2-2h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-12.5-5.5 2.5 3.01 3.5-4.51 4.5 6h-14z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m2 11h20v2h-20z" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -4.970563 12)"></path></svg>'},function(e,t){e.exports='<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="ic_annotation_polyline_black_24px"><polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon><path d="M11.2229827,11.7207264 L11.5361061,13.6977095 L9.59932057,14.0850666 L9.00384592,15.156921 L7.27155933,14.1567849 L8.30016792,12.3052894 L11.2229827,11.7207264 Z M13.1857389,11.3281752 L15.3713261,10.8910577 L16.1895264,9.41882416 L17.9218087,10.4189578 L16.670298,12.6708712 L13.4988623,13.3051583 L13.1857389,11.3281752 Z M6.30014126,15.9053374 L8.03242783,16.9054735 L6.2883676,20.0447819 L4.54005311,19.0734961 L6.30014126,15.9053374 Z M17.1612077,7.67042358 L18.6851109,4.92837923 L20.4332779,5.89993073 L18.89349,8.67055726 L17.1612077,7.67042358 Z" id="Combined-Shape" fill="#000000"></path></g></g></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m16.7375649 4 4.4985031 7.9970061-4.5012283 8.0024565-9.2330194.0011841-4.5018203-8.0036406 4.49832909-7.9966582zm-8.00149692 1.99700608-3.5 6.00000002 3.5 6h6.76393202l3.5-6-3.5-6.00000002z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m2.75941257 13.4482295-.54944226-1.9230478 7.44464759-2.12704222 6.0000767 4.00005112 6.5594501-1.8730507.5491501 1.9231314-7.4486065 2.1269493-5.99992332-3.9999489z" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -5.172166 12.486647)"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m10.0940522 17.9587003-3.74999998-3.75 9.91620028-9.9162003c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41zm-1.06066015 1.0606602-.98298815.9829881h-5.02538467c-.56610249 0-1.02501923-.4589167-1.02501923-1.0250192 0-.2718674.10800496-.5325985.30025253-.7248294l2.98313952-2.9831395zm3.26686045-1.0193605h9v2h-11z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m17.5030483 9.00304833v1.99999997h1v-1.99999997h2v2.99999997h1v-2.99999997h1c.5522848 0 1 .44771525 1 .99999997v4c0 .5522848-.4477152 1-1 1h-20.99999997c-.55228475 0-1-.4477152-1-1v-4c0-.55228472.44771525-.99999997 1-.99999997h1v2.99999997h1v-2.99999997h2v1.99999997h1v-1.99999997h2v1.99999997h1v-1.99999997h1.99999997v2.99999997h1v-2.99999997h2v1.99999997h1v-1.99999997z" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -4.971825 12.003048)"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m9.70864175 17.0129114h12.29135825v2h-12.14119637c-.00132452.0293711-.00277091.0589835-.00433457.0888699-.11198252 2.140328-1.54526173 3.4612105-3.2460842 3.1445917-1.4379189-.2676777-2.36548818-1.5917777-2.25554648-3.2334616h-2.35283838v-2h2.85101727c.48375742-1.3216041 1.16546925-2.3853848 2.02795171-3.2480075-.18264567-.7591819-.33094514-1.4552523-.44245747-2.1059993-.9997212.2428217-2.08194563.3540068-3.23651146.3540068v-2c1.10093119 0 2.10387085-.11329307 3.00514278-.36403478-.067061-1.39749009.10114233-2.64169381.54012175-3.99140074.87824528-2.70029457 2.67433987-4.143459 4.41683292-3.50917134 1.7190901.62576874 2.1426897 2.84674853 1.0095184 5.01231865-.9488917 1.8133989-2.24059781 3.04654081-3.81728229 3.81582451.06790982.4503952.1575239.9279247.26809133 1.4410646.1343057-.0803068.27128125-.1579953.41089297-.2331767.0955675-.0514634.17416199-.0940935.35123288-.1903527.03012452-.0163737.03012452-.0163737.06032177-.0327821 2.53273324-1.3760604 3.63912134-1.7128543 4.87690454-.7320646.4256558.3372795.6993633.7334951.8408663 1.1649785.1573732-.1151393.3108908-.221996.4636277-.3224267 1.5449353-1.015857 2.9140936-1.2813901 4.0466138-.3145683 1.3543316 1.15618 1.1007616 2.8053072-.3680178 4.5663418l-1.535906-1.2810123c.8571484-1.0277023.9280413-1.4887639.6053709-1.7642245-.2529064-.2159039-.7655734-.1164778-1.6492414.4645694-.3820124.2511885-.7916868.5675309-1.2936989.9899347-.1417474.1192693-1.1521636.9929139-1.4170698 1.2079504-.9360832.7598614-2.1683444-.4799627-1.4027696-1.4113791.6859267-.8345146.7958988-1.4729018.4681355-1.7326135-.2727291-.216104-.9839554.0003993-2.6800163.9218869-.0299657.0162827-.0299657.0162827-.0600012.032608-.1779933.0967622-.2593885.1409114-.35809563.1940655-.30441957.163931-.59162724.3413674-.86158259.5349668.28483671 1.1242685.47243846 1.9072203.58864967 2.5326976zm-2.69257941 0h.65153892c-.05070864-.2442087-.11255084-.5178056-.18713872-.8311195-.16893029.2580643-.32374025.5344537-.4644002.8311195zm.84029009 2h-1.49615156c-.10563245.7406814.19047954 1.1883605.61420846 1.2672403.43307507.0806197.82635111-.279308.8819431-1.2672403zm2.54320537-12.77954768c.6348876-1.21331479.4730078-2.0620683.0784308-2.20569892-.4476461-.16294835-1.25839789.48849183-1.83079041 2.24839701-.26955538.82878773-.41470838 1.62140209-.44392294 2.47338461.88768275-.59409074 1.6219516-1.41849581 2.19628255-2.5160827z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m4 4h16v16h-16zm2 2v12h12v-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m13.9776924 14.3214286h-4.62417584l-.87912088 2.6785714h-2.8043956l4.76483512-13h2.4439561l4.7912088 13h-2.8043956zm-3.9120879-2.1696429h3.2l-1.6087912-4.86607141zm-5.0656045 7.0964872 1.12111398-.9965458c.64744475.7283754 1.1743348 1.0482729 1.53944301 1.0482729.13613334 0 .23785292-.0714786.52575258-.3969304.0283085-.0320322.0283085-.0320322.05777173-.0653362.51294587-.5789528.87737768-.8377334 1.51647569-.8377334.66218591 0 1.01074831.2517395 1.60110261.8912899.3096457.3354496.4110833.4087101.4988974.4087101.087814 0 .1892516-.0732605.4988974-.4087101.5903542-.6395504.9389166-.8912899 1.6011026-.8912899.6621859 0 1.0107483.2517395 1.6011026.8912899.3096457.3354496.4110833.4087101.4988974.4087101.0585427 0 .4615748-.3494243 1.2090963-1.0482729l1.0623779.9965458c-.6113281.6604372-1.6092883 1.5517271-2.2714742 1.5517271-.662186 0-1.0107484-.2517395-1.6011026-.8912899-.3096458-.3354496-.4110834-.4087101-.4988974-.4087101-.0878141 0-.1892517.0732605-.4988974.4087101-.5903543.6395504-.9389167.8912899-1.6011026.8912899-.662186 0-1.0107484-.2517395-1.6011026-.8912899-.30964576-.3354496-.41108337-.4087101-.49889741-.4087101-.06976189 0-.1491155.0563485-.39374653.3324591-.02787011.0315035-.02787011.0315035-.05700605.0644713-.55406463.6263339-.94788076.9030696-1.64924742.9030696-.87606826 0-1.75627761-.5344128-2.66055699-1.5517271z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m13.5 15h4.5c1.1045695 0 2 .8954305 2 2v1h-16v-1c0-1.1045695.8954305-2 2-2h4.5v-5.33681558c-1.18247367-.56173197-2-1.76698644-2-3.16318442 0-1.93299662 1.5670034-3.5 3.5-3.5s3.5 1.56700338 3.5 3.5c0 1.39619798-.8175263 2.60145245-2 3.16318442zm-8.5 4h14v2h-14z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m20 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2v-12c0-1.1-.9-2-2-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m9.52134855 16-.71695295 3h-2.8043956l1.02103611-3zm-1.13893097-4 2.38241762-7h2.443956l2.3956044 7h-2.3895877l-1.2279947-3.71428571-1.2145741 3.71428571zm8.59089482 4 1.0266876 3h-2.8043956l-.7241225-3zm-11.9733124-3h14v2h-14z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m14.3076923 14.3214286h-4.62417582l-.87912088 2.6785714h-2.8043956l4.7648352-13h2.443956l4.7912088 13h-2.8043956zm-3.9120879-2.1696429h3.2l-1.6087912-4.86607141zm-5.3956044 6.3482143h14v2h-14z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m21 6h-2v9h-13v2c0 .55.45 1 1 1h11l4 4v-15c0-.55-.45-1-1-1zm-4 6v-9c0-.55-.45-1-1-1h-13c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m7 10 5 5 5-5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m17 3h-10c-1.1 0-1.99.9-1.99 2l-.01 16 7-5 7 5v-16c0-1.1-.9-2-2-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m9 16.17-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m16.59 8.59-4.59 4.58-4.59-4.58-1.41 1.41 6 6 6-6z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m15.41 7.41-1.41-1.41-6 6 6 6 1.41-1.41-4.58-4.59z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m10 6-1.41 1.41 4.58 4.59-4.58 4.59 1.41 1.41 6-6z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m12 8-6 6 1.41 1.41 4.59-4.58 4.59 4.58 1.41-1.41z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m19 6.41-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m20 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2v-12c0-1.1-.9-2-2-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m16 1h-12c-1.1 0-2 .9-2 2v14h2v-14h12zm3 4h-11c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2zm0 16h-11v-14h11z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-12h-12zm13-15h-3.5l-1-1h-5l-1 1h-3.5v2h14z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m3 17.25v3.75h3.75l11.06-11.06-3.75-3.75zm17.71-10.21c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m5 2h10l6 6 .0001221 12.0010986v.0001221c-.0000674 1.1045695-.8955526 1.9999454-2.0001221 1.9998779l-13.99502837-.0016511c-1.10430609-.0000674-1.99957281-.8951416-1.99987782-1.9994476l-.00509381-15.9999999c0-1.1.9-2 2-2zm0 2v16h14v-11l-5-5zm1.5 8.5v-6h6l-2.3 2.3 1.8 1.7900002-1.4099998 1.4099998-1.7900002-1.8zm10.9999998-1.0000002v6h-6l2.3-2.3-1.7999998-1.79 1.4099998-1.4099998 1.79 1.7999998z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m17 5v-3l4 4-4 4v-3h-4v-2zm-10 2v3l-4-4 4-4v3h4v2zm-2 5h10l6 6v4.0010986l-17.9950284-.0010986.0050284-8c0-1.1.89-2 1.99-2zm0 2v8h14v-3l-5-5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m9 4v3h5v12h3v-12h5v-3zm-6 8h3v7h3v-7h3v-3h-9z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m21 4c1.1 0 2 .9 2 2v13c0 1.1-.9 2-2 2h-18c-1.1 0-2-.9-2-2v-13c0-1.1.9-2 2-2zm0 15v-13h-12v13zm-18-8.5v1.5h4v-1.5zm0-2.5v1.5h4v-1.5zm0 5v1.5h4v-1.5zm0 2.5v1.5h4v-1.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zm3 2.5h14v-2h-14zm0-6h14v-2h-14zm0-8v2h14v-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m3 6h18v2h-18zm0 5h18v2h-18zm0 7v-2h18v2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m6.76 5.30958904-1.8-1.79817351-1.41 1.41643835 1.79 1.79817352zm-2.76 5.68584476h-3v2h3zm9-9.9954338h-2v3h2zm7.45 3.92785388-1.41-1.41643835-1.79 1.79817351 1.41 1.41643836zm-3.21 13.76255712 1.79 1.8082191 1.41-1.4164383-1.8-1.7981735zm2.76-7.6949772v2h3v-2zm-8-4.9954338c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 17h2v-3h-2zm-7.45-3.9278539 1.41 1.4164384 1.79-1.8082192-1.41-1.4164384z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m5 21.3703923c3.79666787-1.4187361 6.5-5.0788657 6.5-9.3703923 0-4.29152662-2.70333213-7.95165619-6.5-9.37039231 1.08933646-.40706247 2.26867912-.62960769 3.5-.62960769 5.5228475 0 10 4.4771525 10 10s-4.4771525 10-10 10c-1.23132088 0-2.41066354-.2225452-3.5-.6296077z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m3 13v-2h14v2zm4 4v-2h14v2zm0 4v-2h14v2zm0-14h14v2h-14zm-4-4h14v2h-14z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5h1.77c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm3-4c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm3 4c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m23 5.5v14.5c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19l-7.85-7.98s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46v-11.91c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v7h1v-9.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v9.5h1v-8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v8.5h1v-5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m12 4c-4.41333333 0-8 3.58666667-8 8 0 4.4133333 3.58666667 8 8 8 4.4133333 0 8-3.5866667 8-8 0-4.41333333-3.5866667-8-8-8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m7.11 8.53-1.41-1.42c-.9 1.16-1.46 2.5-1.63 3.89h2.02c.14-.87.49-1.72 1.02-2.47zm-1.02 4.47h-2.02c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61v-2.03c-.87-.15-1.71-.49-2.46-1.03zm5.9-14.25v-3.07l-4.55 4.55 4.55 4.45v-3.91c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m15.55 5.55-4.55-4.55v3.07c-3.94.49-7 3.85-7 7.93s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91v3.91zm4.38 5.45c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zm-6.93 6.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m15.5 14h-.79l-.28-.27c.98-1.14 1.57-2.62 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 2.91-6.5 6.5 2.91 6.5 6.5 6.5c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99 1.49-1.49zm-6 0c-2.49 0-4.5-2.01-4.5-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m10.314997 14.1097181-3.10191769-.0150391c-.14580656-.0010433-.28962115-.0339596-.42136544-.0964422-.49900706-.2366652-.71167717-.8330454-.475012-1.3320524l4.78752513-10.09446718c.0995136-.20982395.2689515-.37847202.4792381-.47700427.5001074-.23433112 1.0954874-.01887692 1.3298186.48123043l4.7618949 10.16279272c.0632461.1349793.0955164.2823905.0944499.4314488-.0039515.5522706-.4548585.9967711-1.0071292.9928196l-3.1442014-.0153416v7.5319189c0 .5515432-.4454773.9970205-.9970206.9970205h-1.3092597c-.5515433 0-.9970206-.4454773-.9970206-.9970205z" transform="matrix(.93969262 -.34202014 .34202014 .93969262 -3.496571 4.846563)"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m18 18v-3h2v3h3v2h-3v3h-2v-3h-3v-2zm-14 2v-2h2v2zm0-3.5v-2h2v2zm0-3.5v-2h2v2zm0-3.5v-2h2v2zm0-3.5v-2h2v2zm3.5 0v-2h2v2zm3.5 0v-2h2v2zm0 14v-2h2v2zm3.5-14v-2h2v2zm3.5 0v-2h2v2zm0 7v-2h2v2zm0-3.5v-2h2v2zm-10.5 10.5v-2h2v2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m6 2h12c1.1000004 0 2 .9000001 2 2v16c0 1.1-.9 2-2 2h-12.01c-1.1 0-1.99-.9-1.99-2v-16c0-1.1.9-2 2-2zm1 15v1.5h10v-1.5zm0-4v1.5h10v-1.5zm7-4v1.5h3v-1.5zm0-3.5v1.5h3v-1.5zm-7 0v5h4.5v-5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m4 8h4v-4h-4zm6 12h4v-4h-4zm-6 0h4v-4h-4zm0-6h4v-4h-4zm6 0h4v-4h-4zm6-10v4h4v-4zm-6 4h4v-4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><defs><path id="a" d="M0 0h24v24H0z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 2.89 2.87L15 21h6z"></path><path clip-path="url(#b)" fill="none" d="M0 0h24v24H0z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m6 12c-1.1 0-1.99.9-1.99 2l-.00501159 8h15.99501159v-4l-6-6zm7 7v-5.5l5.5 5.5zm-8.99628724-17h15.99628724v6c0 1.1-.9 2-2 2h-12.01c-1.1 0-1.99-.9-1.99-2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m14.25 5.75c-.6875 0-1.24375.5625-1.24375 1.25l-.00625 10c0 .6875.55625 1.25 1.24375 1.25h7.50625c.6875 0 1.25-.5625 1.25-1.25v-7.5l-3.75-3.75zm-5.56977981 1.43022019.91575059.91575059-.9375.9375-.91575059-.91575059zm-.88388348-.88388348-.9375.9375-.23383671-.23383671h-4.375v10h7.5v-6.875l-.20764574-.20764574.93750004-.9375.5201457.52014574v.625h-1.25v1.25h1.25v1.25h-1.25v1.25h1.25v1.25h-1.25v1.25h1.25v.625c0 .6875-.5625 1.25-1.25 1.25h-.625v-1.25h-1.25v1.25h-1.25v-1.25h-1.25v1.25h-1.25v-1.25h-1.25v1.25h-.63125c-.6875 0-1.24375-.5625-1.24375-1.25l.00039063-.625h1.24960937v-1.25h-1.24882812l.00078124-1.25h1.24804688v-1.25h-1.24726563l.00078125-1.25h1.24648438v-1.25h-1.24570313l.00078125-1.25h1.24492188v-1.25h-1.24414063l.00039063-.625c0-.6875.55625-1.25 1.24375-1.25h.625v1.25h1.25v-1.25h1.25v1.25h1.25v-1.25h.625zm10.82866329 3.82866329v-3.4375l3.4375 3.4375z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m2.25 5.75h5l3.75 3.75v7.5c0 .6875-.5625 1.25-1.25 1.25h-7.50625c-.6875 0-1.24375-.5625-1.24375-1.25l.00625-10c0-.6875.55625-1.25 1.24375-1.25zm4.375 4.375h3.4375l-3.4375-3.4375zm7.625-4.375h5l3.75 3.75v7.5c0 .6875-.5625 1.25-1.25 1.25h-7.50625c-.6875 0-1.24375-.5625-1.24375-1.25l.00625-10c0-.6875.55625-1.25 1.24375-1.25zm4.375 4.375h3.4375l-3.4375-3.4375z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m4 19h12v-2h-12zm0-4h16v-2h-16zm0-4h16v-2h-16zm0-4h16v-2h-16z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m6 2c-1.1 0-1.99.9-1.99 2l-.01 16c0 1.1.89 2 1.99 2h12.01c1.1 0 2-.9 2-2v-12l-6-6zm7 7v-5.5l5.5 5.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65c-.03-.24-.24-.42-.49-.42h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64zm-7.43 2.52c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m13 7h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-1-5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m0 0h24v24h-24z" fill="none"></path><path d="m7 11v2h10v-2zm5-9c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></svg>'},function(e,t){e.exports='<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><g><g><path d="M320,42.667h10.667c5.891,0,10.667-4.776,10.667-10.667V10.667C341.333,4.775,336.557,0,330.667,0H320 c-25.458,0-48.354,12.188-64,31.469C240.354,12.188,217.458,0,192,0h-10.667c-5.891,0-10.667,4.775-10.667,10.667V32 c0,5.891,4.776,10.667,10.667,10.667H192c23.521,0,42.667,22.469,42.667,50.083v141.917h-32c-5.891,0-10.667,4.775-10.667,10.667 v21.333c0,5.891,4.776,10.667,10.667,10.667h32V419.25c0,27.615-19.146,50.083-42.667,50.083h-10.667 c-5.891,0-10.667,4.775-10.667,10.667v21.333c0,5.891,4.776,10.667,10.667,10.667H192c25.458,0,48.354-12.188,64-31.469 C271.646,499.813,294.542,512,320,512h10.667c5.891,0,10.667-4.776,10.667-10.667V480c0-5.892-4.776-10.667-10.667-10.667H320 c-23.521,0-42.667-22.469-42.667-50.083V277.333h32c5.891,0,10.667-4.776,10.667-10.667v-21.333 c0-5.892-4.776-10.667-10.667-10.667h-32V92.75C277.333,65.135,296.479,42.667,320,42.667z"></path></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg>'},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){n(504),e.exports=n(15).Object.getPrototypeOf},function(e,t,n){var o=n(72),r=n(187);n(138)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){n(506);var o=n(15).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(29);o(o.S+o.F*!n(44),"Object",{defineProperty:n(43).f})},function(e,t,n){e.exports={default:n(508),__esModule:!0}},function(e,t,n){n(82),n(104),e.exports=n(143).f("iterator")},function(e,t,n){var o=n(139),r=n(135);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(140),r=n(80),i=n(103),a={};n(61)(a,n(22)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(43),r=n(38),i=n(83);e.exports=n(44)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(63),r=n(141),i=n(513);e.exports=function(e){return function(t,n,a){var l,s=o(t),u=r(s.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(139),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){"use strict";var o=n(515),r=n(516),i=n(73),a=n(63);e.exports=n(190)(Array,"Array",function(e,t){this._t=a(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,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(518),__esModule:!0}},function(e,t,n){n(519),n(196),n(524),n(525),e.exports=n(15).Symbol},function(e,t,n){"use strict";var o=n(21),r=n(62),i=n(44),a=n(29),l=n(191),s=n(520).KEY,u=n(71),c=n(137),f=n(103),d=n(102),p=n(22),h=n(143),m=n(144),v=n(521),g=n(522),y=n(38),b=n(50),w=n(72),S=n(63),_=n(134),E=n(80),x=n(140),C=n(523),T=n(146),O=n(145),P=n(43),k=n(83),A=T.f,R=P.f,M=C.f,D=o.Symbol,L=o.JSON,j=L&&L.stringify,N=p("_hidden"),z=p("toPrimitive"),I={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),U=c("op-symbols"),W=Object.prototype,H="function"==typeof D&&!!O.f,V=o.QObject,G=!V||!V.prototype||!V.prototype.findChild,q=i&&u(function(){return 7!=x(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=A(W,t);o&&delete W[t],R(e,t,n),o&&e!==W&&R(W,t,o)}:R,$=function(e){var t=B[e]=x(D.prototype);return t._k=e,t},Y=H&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,n){return e===W&&K(U,t,n),y(e),t=_(t,!0),y(n),r(B,t)?(n.enumerable?(r(e,N)&&e[N][t]&&(e[N][t]=!1),n=x(n,{enumerable:E(0,!1)})):(r(e,N)||R(e,N,E(1,{})),e[N][t]=!0),q(e,t,n)):R(e,t,n)},Z=function(e,t){y(e);for(var n,o=v(t=S(t)),r=0,i=o.length;i>r;)K(e,n=o[r++],t[n]);return e},Q=function(e){var t=I.call(this,e=_(e,!0));return!(this===W&&r(B,e)&&!r(U,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,N)&&this[N][e])||t)},X=function(e,t){if(e=S(e),t=_(t,!0),e!==W||!r(B,t)||r(U,t)){var n=A(e,t);return!n||!r(B,t)||r(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(S(e)),o=[],i=0;n.length>i;)r(B,t=n[i++])||t==N||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===W,o=M(n?U:S(e)),i=[],a=0;o.length>a;)!r(B,t=o[a++])||n&&!r(W,t)||i.push(B[t]);return i};H||(l((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(U,n),r(this,N)&&r(this[N],e)&&(this[N][e]=!1),q(this,e,E(1,n))};return i&&G&&q(W,e,{configurable:!0,set:t}),$(e)}).prototype,"toString",function(){return this._k}),T.f=X,P.f=K,n(195).f=C.f=J,n(105).f=Q,O.f=ee,i&&!n(81)&&l(W,"propertyIsEnumerable",Q,!0),h.f=function(e){return $(p(e))}),a(a.G+a.W+a.F*!H,{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 oe=k(p.store),re=0;oe.length>re;)m(oe[re++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?x(e):Z(x(e),t)},defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var ie=u(function(){O.f(1)});a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),L&&a(a.S+a.F*(!H||u(function(){var e=D();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(b(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),o[1]=t,j.apply(L,o)}}),D.prototype[z]||n(61)(D.prototype,z,D.prototype.valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){var o=n(102)("meta"),r=n(50),i=n(62),a=n(43).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(71)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},f=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&s(e)&&!i(e,o)&&c(e),e}}},function(e,t,n){var o=n(83),r=n(145),i=n(105);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){var o=n(84);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(63),r=n(195).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(o(e))}},function(e,t,n){n(144)("asyncIterator")},function(e,t,n){n(144)("observable")},function(e,t,n){e.exports={default:n(527),__esModule:!0}},function(e,t,n){n(528),e.exports=n(15).Object.setPrototypeOf},function(e,t,n){var o=n(29);o(o.S,"Object",{setPrototypeOf:n(529).set})},function(e,t,n){var o=n(50),r=n(38),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(70)(Function.call,n(146).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(531),__esModule:!0}},function(e,t,n){n(532);var o=n(15).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(29);o(o.S,"Object",{create:n(140)})},function(e,t,n){n(534),e.exports=n(15).Object.assign},function(e,t,n){var o=n(29);o(o.S+o.F,"Object",{assign:n(535)})},function(e,t,n){"use strict";var o=n(44),r=n(83),i=n(145),a=n(105),l=n(72),s=n(193),u=Object.assign;e.exports=!u||n(71)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o})?function(e,t){for(var n=l(e),u=arguments.length,c=1,f=i.f,d=a.f;u>c;)for(var p,h=s(arguments[c++]),m=f?r(h).concat(f(h)):r(h),v=m.length,g=0;v>g;)p=m[g++],o&&!d.call(h,p)||(n[p]=h[p]);return n}:u},function(e,t,n){n(537),e.exports=n(15).Object.keys},function(e,t,n){var o=n(72),r=n(83);n(138)("keys",function(){return function(e){return r(o(e))}})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},function(e,t,n){n(196),n(82),n(104),n(541),n(549),n(550),e.exports=n(15).Promise},function(e,t,n){"use strict";var o,r,i,a,l=n(81),s=n(21),u=n(70),c=n(147),f=n(29),d=n(50),p=n(100),h=n(542),m=n(543),v=n(199),g=n(200).set,y=n(545)(),b=n(149),w=n(201),S=n(546),_=n(202),E=s.TypeError,x=s.process,C=x&&x.versions,T=C&&C.v8||"",O=s.Promise,P="process"==c(x),k=function(){},A=r=b.f,R=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(22)("species")]=function(e){e(k,k)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(k)instanceof t&&0!==T.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t;return!(!d(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 o=e._v,r=1==e._s,i=0,a=function(t){var n,i,a,l=r?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{l?(r||(2==e._h&&N(e),e._h=1),!0===l?n=o:(c&&c.enter(),n=l(o),c&&(c.exit(),a=!0)),n===t.promise?u(E("Promise-chain cycle")):(i=M(n))?i.call(n,s,u):s(n)):u(o)}catch(e){c&&!a&&c.exit(),u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){g.call(s,function(){var t,n,o,r=e._v,i=j(e);if(i&&(t=w(function(){P?x.emit("unhandledRejection",r,e):(n=s.onunhandledrejection)?n({promise:e,reason:r}):(o=s.console)&&o.error&&o.error("Unhandled promise rejection",r)}),e._h=P||j(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){g.call(s,function(){var t;P?x.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=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))},I=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=M(e))?y(function(){var o={_w:n,_d:!1};try{t.call(e,u(I,o,1),u(z,o,1))}catch(e){z.call(o,e)}}):(n._v=e,n._s=1,D(n,!1))}catch(e){z.call({_w:n,_d:!1},e)}}};R||(O=function(e){h(this,O,"Promise","_h"),p(e),o.call(this);try{e(u(I,this,1),u(z,this,1))}catch(e){z.call(this,e)}},(o=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(547)(O.prototype,{then:function(e,t){var n=A(v(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?x.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)}}),i=function(){var e=new o;this.promise=e,this.resolve=u(I,e,1),this.reject=u(z,e,1)},b.f=A=function(e){return e===O||e===a?new i(e):r(e)}),f(f.G+f.W+f.F*!R,{Promise:O}),n(103)(O,"Promise"),n(548)("Promise"),a=n(15).Promise,f(f.S+f.F*!R,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(l||!R),"Promise",{resolve:function(e){return _(l&&this===a?O:this,e)}}),f(f.S+f.F*!(R&&n(203)(function(e){O.all(e).catch(k)})),"Promise",{all:function(e){var t=this,n=A(t),o=n.resolve,r=n.reject,i=w(function(){var n=[],i=0,a=1;m(e,!1,function(e){var l=i++,s=!1;n.push(void 0),a++,t.resolve(e).then(function(e){s||(s=!0,n[l]=e,--a||o(n))},r)}),--a||o(n)});return i.e&&r(i.v),n.promise},race:function(e){var t=this,n=A(t),o=n.reject,r=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(70),r=n(197),i=n(198),a=n(38),l=n(141),s=n(148),u={},c={};(t=e.exports=function(e,t,n,f,d){var p,h,m,v,g=d?function(){return e}:s(e),y=o(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(p=l(e.length);p>b;b++)if((v=t?y(a(h=e[b])[0],h[1]):y(e[b]))===u||v===c)return v}else for(m=g.call(e);!(h=m.next()).done;)if((v=r(m,y,h.value,t))===u||v===c)return v}).BREAK=u,t.RETURN=c},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?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)}},function(e,t,n){var o=n(21),r=n(200).set,i=o.MutationObserver||o.WebKitMutationObserver,a=o.process,l=o.Promise,s="process"==n(84)(a);e.exports=function(){var e,t,n,u=function(){var o,r;for(s&&(o=a.domain)&&o.exit();e;){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(s)n=function(){a.nextTick(u)};else if(!i||o.navigator&&o.navigator.standalone)if(l&&l.resolve){var c=l.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(o,u)};else{var f=!0,d=document.createTextNode("");new i(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(o){var r={fn:o,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){var o=n(21).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){var o=n(61);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:o(e,r,t[r]);return e}},function(e,t,n){"use strict";var o=n(21),r=n(15),i=n(43),a=n(44),l=n(22)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:o[e];a&&t&&!t[l]&&i.f(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var o=n(29),r=n(15),i=n(21),a=n(199),l=n(202);o(o.P+o.R,"Promise",{finally:function(e){var t=a(this,r.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var o=n(29),r=n(149),i=n(201);o(o.S,"Promise",{try:function(e){var t=r.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){e.exports={default:n(552),__esModule:!0}},function(e,t,n){n(82),n(553),e.exports=n(15).Array.from},function(e,t,n){"use strict";var o=n(70),r=n(29),i=n(72),a=n(197),l=n(198),s=n(141),u=n(554),c=n(148);r(r.S+r.F*!n(203)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,y=c(d);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),null==y||p==Array&&l(y))for(n=new p(t=s(d.length));t>g;g++)u(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(r=f.next()).done;g++)u(n,g,v?a(f,m,[r.value,g],!0):r.value);return n.length=g,n}})},function(e,t,n){"use strict";var o=n(43),r=n(80);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){n(556);var o=n(15).Object;e.exports=function(e,t){return o.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var o=n(63),r=n(146).f;n(138)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){e.exports={default:n(558),__esModule:!0}},function(e,t,n){n(104),n(82),e.exports=n(559)},function(e,t,n){var o=n(147),r=n(22)("iterator"),i=n(73);e.exports=n(15).isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||i.hasOwnProperty(o(t))}},function(e,t,n){e.exports={default:n(561),__esModule:!0}},function(e,t,n){n(104),n(82),e.exports=n(562)},function(e,t,n){var o=n(38),r=n(148);e.exports=n(15).getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(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,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){"use strict";n.r(t);var o={};n.r(o),n.d(o,"enableAllElements",function(){return pn}),n.d(o,"openElement",function(){return hn}),n.d(o,"openElements",function(){return mn}),n.d(o,"closeElement",function(){return vn}),n.d(o,"closeElements",function(){return gn}),n.d(o,"toggleElement",function(){return yn}),n.d(o,"setActiveHeaderGroup",function(){return bn}),n.d(o,"setActiveLeftPanel",function(){return wn}),n.d(o,"setSortStrategy",function(){return Sn}),n.d(o,"setSortNotesBy",function(){return _n}),n.d(o,"setNoteDateFormat",function(){return En}),n.d(o,"setCustomPanel",function(){return xn}),n.d(o,"setPageLabels",function(){return Cn}),n.d(o,"setCursorOverlay",function(){return Tn}),n.d(o,"setSwipeOrientation",function(){return On}),n.d(o,"showWarningMessage",function(){return Pn}),n.d(o,"showErrorMessage",function(){return kn}),n.d(o,"setCustomNoteFilter",function(){return An}),n.d(o,"setZoomList",function(){return Rn}),n.d(o,"useEmbeddedPrint",function(){return Mn}),n.d(o,"setMaxSignaturesCount",function(){return Dn});var r={};n.r(r),n.d(r,"isElementDisabled",function(){return Bn}),n.d(r,"isFeatureDisabled",function(){return Un}),n.d(r,"isElementOpen",function(){return Wn}),n.d(r,"isElementActive",function(){return Hn}),n.d(r,"getActiveHeaderItems",function(){return Vn}),n.d(r,"getDisabledElementPriority",function(){return Gn}),n.d(r,"getToolButtonObjects",function(){return qn}),n.d(r,"getToolButtonDataElements",function(){return $n}),n.d(r,"getToolButtonObject",function(){return Yn}),n.d(r,"getToolButtonDataElement",function(){return Kn}),n.d(r,"getToolNamesByGroup",function(){return Zn}),n.d(r,"getToolNameByDataElement",function(){return Qn}),n.d(r,"getActiveToolName",function(){return Xn}),n.d(r,"getActiveToolStyles",function(){return Jn}),n.d(r,"getActiveLeftPanel",function(){return eo}),n.d(r,"getActiveToolGroup",function(){return to}),n.d(r,"getLeftPanelWidth",function(){return no}),n.d(r,"getNotePopupId",function(){return oo}),n.d(r,"getFitMode",function(){return ro}),n.d(r,"getZoom",function(){return io}),n.d(r,"getDisplayMode",function(){return ao}),n.d(r,"getCurrentPage",function(){return lo}),n.d(r,"getSortStrategy",function(){return so}),n.d(r,"getRotation",function(){return uo}),n.d(r,"getNoteDateFormat",function(){return co}),n.d(r,"isFullScreen",function(){return fo}),n.d(r,"doesDocumentAutoLoad",function(){return po}),n.d(r,"isDocumentLoaded",function(){return ho}),n.d(r,"isDocumentReadOnly",function(){return mo}),n.d(r,"getCustomPanels",function(){return vo}),n.d(r,"getPageLabels",function(){return go}),n.d(r,"getDisabledCustomPanelTabs",function(){return yo}),n.d(r,"isEmbedPrintSupported",function(){return bo}),n.d(r,"getColorMap",function(){return wo}),n.d(r,"getCursorOverlayData",function(){return So}),n.d(r,"getOpenElements",function(){return _o}),n.d(r,"getCurrentPalette",function(){return Eo}),n.d(r,"getIconColor",function(){return xo}),n.d(r,"getCustomNoteFilter",function(){return Co}),n.d(r,"getZoomList",function(){return To}),n.d(r,"getMeasurementUnits",function(){return Oo}),n.d(r,"getIsNoteEditing",function(){return Po}),n.d(r,"getMaxSignaturesCount",function(){return ko}),n.d(r,"getWarningMessage",function(){return Ao}),n.d(r,"getWarningTitle",function(){return Ro}),n.d(r,"getWarningConfirmEvent",function(){return Mo}),n.d(r,"getWarningConfirmBtnText",function(){return Do}),n.d(r,"getWarningCancelEvent",function(){return Lo}),n.d(r,"getErrorMessage",function(){return jo}),n.d(r,"getDocument",function(){return No}),n.d(r,"getDocumentId",function(){return zo}),n.d(r,"getDocumentPath",function(){return Io}),n.d(r,"getDocumentFile",function(){return Fo}),n.d(r,"hasPath",function(){return Bo}),n.d(r,"getDocumentType",function(){return Uo}),n.d(r,"getCheckPasswordFunction",function(){return Wo}),n.d(r,"getPasswordAttempts",function(){return Ho}),n.d(r,"getPrintQuality",function(){return Vo}),n.d(r,"getTotalPages",function(){return Go}),n.d(r,"getOutlines",function(){return qo}),n.d(r,"getLoadingProgress",function(){return $o}),n.d(r,"getUploadProgress",function(){return Yo}),n.d(r,"isUploading",function(){return Ko}),n.d(r,"getUserName",function(){return Zo}),n.d(r,"getAdvanced",function(){return Qo}),n.d(r,"getServerUrl",function(){return Xo}),n.d(r,"getSearchListeners",function(){return Jo}),n.d(r,"getSearchValue",function(){return er}),n.d(r,"getActiveResult",function(){return tr}),n.d(r,"getActiveResultIndex",function(){return nr}),n.d(r,"getResults",function(){return or}),n.d(r,"isCaseSensitive",function(){return rr}),n.d(r,"isWholeWord",function(){return ir}),n.d(r,"isWildcard",function(){return ar}),n.d(r,"isSearchUp",function(){return lr}),n.d(r,"isAmbientString",function(){return sr}),n.d(r,"isRegex",function(){return ur}),n.d(r,"isSearching",function(){return cr}),n.d(r,"isNoResult",function(){return fr}),n.d(r,"isProgrammaticSearch",function(){return dr}),n.d(r,"isProgrammaticSearchFull",function(){return pr});var i={};n.r(i),n.d(i,"disableElement",function(){return wr}),n.d(i,"disableElements",function(){return Sr}),n.d(i,"enableElement",function(){return _r}),n.d(i,"enableElements",function(){return Er}),n.d(i,"setActiveToolNameAndStyle",function(){return xr}),n.d(i,"setActiveToolStyles",function(){return Cr}),n.d(i,"setActiveToolGroup",function(){return Tr}),n.d(i,"setNotePopupId",function(){return Or}),n.d(i,"triggerNoteEditing",function(){return Pr}),n.d(i,"finishNoteEditing",function(){return kr}),n.d(i,"setFitMode",function(){return Ar}),n.d(i,"setZoom",function(){return Rr}),n.d(i,"setRotation",function(){return Mr}),n.d(i,"setDisplayMode",function(){return Dr}),n.d(i,"setCurrentPage",function(){return Lr}),n.d(i,"setFullScreen",function(){return jr}),n.d(i,"setDocumentLoaded",function(){return Nr}),n.d(i,"setReadOnly",function(){return zr}),n.d(i,"registerTool",function(){return Ir}),n.d(i,"unregisterTool",function(){return Fr}),n.d(i,"setToolButtonObjects",function(){return Br}),n.d(i,"setIsNoteEditing",function(){return Ur}),n.d(i,"setHeaderItems",function(){return Wr}),n.d(i,"setColorPalette",function(){return Hr}),n.d(i,"setIconColor",function(){return Vr}),n.d(i,"setColorMap",function(){return Gr}),n.d(i,"setLeftPanelWidth",function(){return qr}),n.d(i,"setDocumentId",function(){return $r}),n.d(i,"setDocumentPath",function(){return Yr}),n.d(i,"setDocumentFile",function(){return Kr}),n.d(i,"setDocumentType",function(){return Zr}),n.d(i,"setPDFDoc",function(){return Qr}),n.d(i,"setFilename",function(){return Xr}),n.d(i,"setExtension",function(){return Jr}),n.d(i,"setTotalPages",function(){return ei}),n.d(i,"setOutlines",function(){return ti}),n.d(i,"setCheckPasswordFunction",function(){return ni}),n.d(i,"setPasswordAttempts",function(){return oi}),n.d(i,"setPrintQuality",function(){return ri}),n.d(i,"setDocumentLoadingProgress",function(){return ii}),n.d(i,"setWorkerLoadingProgress",function(){return ai}),n.d(i,"resetLoadingProgress",function(){return li}),n.d(i,"setPassword",function(){return si}),n.d(i,"setCacheKey",function(){return ui}),n.d(i,"setIsUploading",function(){return ci}),n.d(i,"setUploadProgress",function(){return fi}),n.d(i,"resetUploadProgress",function(){return di}),n.d(i,"setUserName",function(){return pi}),n.d(i,"setAdminUser",function(){return hi}),n.d(i,"setStreaming",function(){return mi}),n.d(i,"setDecryptFunction",function(){return vi}),n.d(i,"setDecryptOptions",function(){return gi}),n.d(i,"setEngineType",function(){return yi}),n.d(i,"setCustomHeaders",function(){return bi}),n.d(i,"setWithCredentials",function(){return wi}),n.d(i,"searchText",function(){return Si}),n.d(i,"searchTextFull",function(){return _i}),n.d(i,"addSearchListener",function(){return Ei}),n.d(i,"removeSearchListener",function(){return xi}),n.d(i,"setSearchValue",function(){return Ci}),n.d(i,"setActiveResult",function(){return Ti}),n.d(i,"setActiveResultIndex",function(){return Oi}),n.d(i,"addResult",function(){return Pi}),n.d(i,"setCaseSensitive",function(){return ki}),n.d(i,"setWholeWord",function(){return Ai}),n.d(i,"setIsSearching",function(){return Ri}),n.d(i,"setNoResult",function(){return Mi}),n.d(i,"resetSearch",function(){return Di}),n.d(i,"setIsProgrammaticSearch",function(){return Li}),n.d(i,"setIsProgrammaticSearchFull",function(){return ji});var a=n(0),l=n.n(a),s=n(23),u=n.n(s),c=n(152),f=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+f()}};function p(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function m(e,t){return function(){return t(e.apply(this,arguments))}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var E=n(1),x=n.n(E),C=l.a.createContext(null);var T=function(e){e()},O=function(){return T},P=null,k={notify:function(){}};var A=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=k,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t,n;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=(e=O(),t=[],n=[],{clear:function(){n=P,t=P},notify:function(){var o=t=n;e(function(){for(var e=0;e<o.length;e++)o[e]()})},get:function(){return n},subscribe:function(e){var o=!0;return n===t&&(n=t.slice()),n.push(e),function(){o&&t!==P&&(o=!1,n===t&&(n=t.slice()),n.splice(n.indexOf(e),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=k)},e}(),R=function(e){function t(t){var n;n=e.call(this,t)||this;var o=t.store;n.notifySubscribers=n.notifySubscribers.bind(w(n));var r=new A(o);return r.onStateChange=n.notifySubscribers,n.state={store:o,subscription:r},n.previousState=o.getState(),n}S(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.state.subscription.trySubscribe(),this.previousState!==this.props.store.getState()&&this.state.subscription.notifyNestedSubs()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this.state.subscription.tryUnsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){if(this.props.store!==e.store){this.state.subscription.tryUnsubscribe();var t=new A(this.props.store);t.onStateChange=this.notifySubscribers,this.setState({store:this.props.store,subscription:t})}},n.notifySubscribers=function(){this.state.subscription.notifyNestedSubs()},n.render=function(){var e=this.props.context||C;return l.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(a.Component);R.propTypes={store:x.a.shape({subscribe:x.a.func.isRequired,dispatch:x.a.func.isRequired,getState:x.a.func.isRequired}),context:x.a.object,children:x.a.any};var M=R;function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function L(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var j=n(151),N=n.n(j),z=n(45),I=n.n(z),F=n(150),B=[],U=[null,null];function W(e,t){var n=e[1];return[t.payload,n+1]}var H=function(){return[null,0]},V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function G(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,r=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,i=n.methodName,s=void 0===i?"connectAdvanced":i,u=n.renderCountProp,c=void 0===u?void 0:u,f=n.shouldHandleStateChanges,d=void 0===f||f,p=n.storeKey,h=void 0===p?"store":p,m=n.withRef,v=void 0!==m&&m,g=n.forwardRef,y=void 0!==g&&g,b=n.context,w=void 0===b?C:b,S=L(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);I()(void 0===c,"renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension"),I()(!v,"withRef is removed. To access the wrapped instance, use a ref on the connected component");I()("store"===h,"storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect");var _=w;return function(t){var n=t.displayName||t.name||"Component",o=r(n),i=D({},S,{getDisplayName:r,methodName:s,renderCountProp:c,shouldHandleStateChanges:d,storeKey:h,displayName:o,wrappedComponentName:n,WrappedComponent:t}),u=S.pure;var f=u?a.useMemo:function(e){return e()};function p(n){var r=Object(a.useMemo)(function(){var e=n.forwardedRef,t=L(n,["forwardedRef"]);return[n.context,e,t]},[n]),s=r[0],u=r[1],c=r[2],p=Object(a.useMemo)(function(){return s&&s.Consumer&&Object(F.isContextConsumer)(l.a.createElement(s.Consumer,null))?s:_},[s,_]),h=Object(a.useContext)(p),m=Boolean(n.store),v=Boolean(h)&&Boolean(h.store);I()(m||v,'Could not find "store" in the context of "'+o+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+o+" in connect options.");var g=n.store||h.store,y=Object(a.useMemo)(function(){return function(t){return e(t.dispatch,i)}(g)},[g]),b=Object(a.useMemo)(function(){if(!d)return U;var e=new A(g,m?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[g,m,h]),w=b[0],S=b[1],E=Object(a.useMemo)(function(){return m?h:D({},h,{subscription:w})},[m,h,w]),x=Object(a.useReducer)(W,B,H),C=x[0][0],T=x[1];if(C&&C.error)throw C.error;var O=Object(a.useRef)(),P=Object(a.useRef)(c),k=Object(a.useRef)(),R=Object(a.useRef)(!1),M=f(function(){return k.current&&c===P.current?k.current:y(g.getState(),c)},[g,C,c]);V(function(){P.current=c,O.current=M,R.current=!1,k.current&&(k.current=null,S())}),V(function(){if(d){var e=!1,t=null,n=function(){if(!e){var n,o,r=g.getState();try{n=y(r,P.current)}catch(e){o=e,t=e}o||(t=null),n===O.current?R.current||S():(O.current=n,k.current=n,R.current=!0,T({type:"STORE_UPDATED",payload:{latestStoreState:r,error:o}}))}};w.onStateChange=n,w.trySubscribe(),n();return function(){if(e=!0,w.tryUnsubscribe(),t)throw t}}},[g,w,y]);var j=Object(a.useMemo)(function(){return l.a.createElement(t,D({},M,{ref:u}))},[u,t,M]);return Object(a.useMemo)(function(){return d?l.a.createElement(p.Provider,{value:E},j):j},[p,j,E])}var m=u?l.a.memo(p):p;if(m.WrappedComponent=t,m.displayName=o,y){var v=l.a.forwardRef(function(e,t){return l.a.createElement(m,D({},e,{forwardedRef:t}))});return v.displayName=o,v.WrappedComponent=t,N()(v,t)}return N()(m,t)}}var q=Object.prototype.hasOwnProperty;function Y(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function K(e,t){if(Y(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!q.call(t,n[r])||!Y(e[n[r]],t[n[r]]))return!1;return!0}function Z(e){return function(t,n){var o=e(t,n);function r(){return o}return r.dependsOnOwnProps=!1,r}}function Q(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function X(e,t){return function(t,n){n.displayName;var o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=Q(e);var r=o(t,n);return"function"==typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=Q(r),r=o(t,n)),r},o}}var J=[function(e){return"function"==typeof e?X(e):void 0},function(e){return e?void 0:Z(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?Z(function(t){return function(e,t){if("function"==typeof e)return m(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var o in e){var r=e[o];"function"==typeof r&&(n[o]=m(r,t))}return n}(e,t)}):void 0}];var ee=[function(e){return"function"==typeof e?X(e):void 0},function(e){return e?void 0:Z(function(){return{}})}];function te(e,t,n){return D({},n,e,t)}var ne=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var o,r=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?r&&i(s,o)||(o=s):(a=!0,o=s),o}}}(e):void 0},function(e){return e?void 0:function(){return te}}];function oe(e,t,n,o){return function(r,i){return n(e(r,i),t(o,i),i)}}function re(e,t,n,o,r){var i,a,l,s,u,c=r.areStatesEqual,f=r.areOwnPropsEqual,d=r.areStatePropsEqual,p=!1;function h(r,p){var h,m,v=!f(p,a),g=!c(r,i);return i=r,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(s=t(o,a)),u=n(l,s,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(o,a)),u=n(l,s,a)):g?(h=e(i,a),m=!d(h,l),l=h,m&&(u=n(l,s,a)),u):u}return function(r,c){return p?h(r,c):(l=e(i=r,a=c),s=t(o,a),u=n(l,s,a),p=!0,u)}}function ie(e,t){var n=t.initMapStateToProps,o=t.initMapDispatchToProps,r=t.initMergeProps,i=L(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=o(e,i),s=r(e,i);return(i.pure?re:oe)(a,l,s,e,i)}function ae(e,t,n){for(var o=t.length-1;o>=0;o--){var r=t[o](e);if(r)return r}return function(t,o){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function le(e,t){return e===t}var se,ue,ce,fe,de,pe,he,me,ve,ge,ye,be,we=(ce=(ue=void 0===se?{}:se).connectHOC,fe=void 0===ce?G:ce,de=ue.mapStateToPropsFactories,pe=void 0===de?ee:de,he=ue.mapDispatchToPropsFactories,me=void 0===he?J:he,ve=ue.mergePropsFactories,ge=void 0===ve?ne:ve,ye=ue.selectorFactory,be=void 0===ye?ie:ye,function(e,t,n,o){void 0===o&&(o={});var r=o,i=r.pure,a=void 0===i||i,l=r.areStatesEqual,s=void 0===l?le:l,u=r.areOwnPropsEqual,c=void 0===u?K:u,f=r.areStatePropsEqual,d=void 0===f?K:f,p=r.areMergedPropsEqual,h=void 0===p?K:p,m=L(r,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=ae(e,pe,"mapStateToProps"),g=ae(t,me,"mapDispatchToProps"),y=ae(n,ge,"mergeProps");return fe(be,D({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:g,initMergeProps:y,pure:a,areStatesEqual:s,areOwnPropsEqual:c,areStatePropsEqual:d,areMergedPropsEqual:h},m))});function Se(){var e=Object(a.useContext)(C);return I()(e,"could not find react-redux context value; please ensure the component is wrapped in a <Provider>"),e}function _e(){return Se().store}function Ee(){return _e().dispatch}var xe,Ce="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Te=function(e,t){return e===t};function Oe(e,t){void 0===t&&(t=Te),I()(e,"You must pass a selector to useSelectors");var n,o=Se(),r=o.store,i=o.subscription,l=Object(a.useReducer)(function(e){return e+1},0)[1],s=Object(a.useMemo)(function(){return new A(r,i)},[r,i]),u=Object(a.useRef)(),c=Object(a.useRef)(),f=Object(a.useRef)();try{n=e!==c.current||u.current?e(r.getState()):f.current}catch(e){var d="An error occured while selecting the store state: "+e.message+".";throw u.current&&(d+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\nOriginal stack trace:"),new Error(d)}return Ce(function(){c.current=e,f.current=n,u.current=void 0}),Ce(function(){function e(){try{var e=c.current(r.getState());if(t(e,f.current))return;f.current=e}catch(e){u.current=e}l({})}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}},[r,s]),n}xe=s.unstable_batchedUpdates,T=xe;n(74);var Pe=n(39),ke=n.n(Pe),Ae=(n(86),n(205),n(206)),Re=n.n(Ae),Me=n(207),De=n.n(Me);var Le,je,Ne={bindI18n:"languageChanging languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},ze=l.a.createContext();function Ie(){return je}function Fe(){return Ne}var Be=function(){function e(){Re()(this,e),this.usedNamespaces={}}return De()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Ue(){return Le}function We(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var He={};function Ve(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&He[t[0]]||("string"==typeof t[0]&&(He[t[0]]=new Date),We.apply(void 0,t))}function Ge(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),n()})}})}function qe(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var $e=n(75),Ye=n.n($e);function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=Ie()&&Object(a.useContext)(ze)||{},r=o.i18n,i=o.defaultNS,l=n||r||Ue();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new Be),!l){Ve("You will need pass in an i18next instance by using initReactI18next");var s=[function(e){return e},{},!1];return s.t=function(e){return e},s.i18n={},s.ready=!1,s}var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(n,!0).forEach(function(t){ke()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Fe(),{},l.options.react),c=t.useSuspense,f=void 0===c?u.useSuspense:c,d=e||i||l.options&&l.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(d);var p=(l.isInitialized||l.initializedStoreOnce)&&d.every(function(e){return function(e,t){if(!t.languages||!t.languages.length)return Ve("i18n.languages were undefined or empty",t.languages),!0;var n=t.languages[0],o=!!t.options&&t.options.fallbackLng,r=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};return!!t.hasResourceBundle(n,e)||(!t.services.backendConnector.backend||!(!i(n,e)||o&&!i(r,e)))}(e,l)});function h(){return{t:l.getFixedT(null,"fallback"===u.nsMode?d:d[0])}}var m=Object(a.useState)(h()),v=Ye()(m,2),g=v[0],y=v[1];Object(a.useEffect)(function(){var e=!0,t=u.bindI18n,n=u.bindI18nStore;function o(){e&&y(h())}return p||f||Ge(l,d,function(){e&&y(h())}),t&&l&&l.on(t,o),n&&l&&l.store.on(n,o),function(){e=!1,t&&l&&t.split(" ").forEach(function(e){return l.off(e,o)}),n&&l&&n.split(" ").forEach(function(e){return l.store.off(e,o)})}},[d.join()]);var b=[g.t,l,p];if(b.t=g.t,b.i18n=l,b.ready=p,p)return b;if(!p&&!f)return b;throw new Promise(function(e){Ge(l,d,function(){y(h()),e()})})}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function o(o,r){var i=Ze(e,o),a=Ye()(i,3),s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(n,!0).forEach(function(t){ke()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},o,{t:a[0],i18n:a[1],tReady:a[2]});return t.withRef&&r&&(s.ref=r),l.a.createElement(n,s)}return o.displayName="withI18nextTranslation(".concat(qe(n),")"),o.WrappedComponent=n,t.withRef?l.a.forwardRef(o):o}}function Je(e){var t=e.i18n,n=e.defaultNS,o=e.children;return je=!0,l.a.createElement(ze.Provider,{value:{i18n:t,defaultNS:n}},o)}function et(e){return(et="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 tt(e){return(tt="function"==typeof Symbol&&"symbol"===et(Symbol.iterator)?function(e){return et(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":et(e)})(e)}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}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){nt(e,t,n[t])})}return e}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function at(e,t,n){return t&&it(e.prototype,t),n&&it(e,n),e}function lt(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?w(e):t}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ct(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&&ut(e,t)}function ft(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")}()}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var pt={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,ft(t))}},ht=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rt(this,e),this.init(t,n)}return at(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||pt,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,ot({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),mt=function(){function e(){rt(this,e),this.observers={}}return at(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var o=n.observers[e].indexOf(t);o>-1&&n.observers[e].splice(o,1)}else delete n.observers[e]})}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach(function(e){e.apply(void 0,n)})}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach(function(t){t.apply(t,[e].concat(n))})}}}]),e}();function vt(){var e,t,n=new Promise(function(n,o){e=n,t=o});return n.resolve=e,n.reject=t,n}function gt(e){return null==e?"":""+e}function yt(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return r()?{}:{obj:e,k:o(i.shift())}}function bt(e,t,n){var o=yt(e,t,Object);o.obj[o.k]=n}function wt(e,t){var n=yt(e,t),o=n.obj,r=n.k;if(o)return o[r]}function St(e,t,n){for(var o in t)o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):St(e[o],t[o],n):e[o]=t[o];return e}function _t(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function xt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return Et[e]}):e}var Ct=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return rt(this,t),n=lt(this,st(t).call(this)),mt.call(w(n)),n.data=e||{},n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return ct(t,mt),at(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split(".")),wt(this.data,i)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=t,t=(a=e.split("."))[1]),this.addNamespaces(t),bt(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(o=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=wt(this.data,a)||{};o?St(l,n,r):l=ot({},l,n),bt(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?ot({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),Tt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))}),t}},Ot=function(e){function t(e){var n,o,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rt(this,t),n=lt(this,st(t).call(this)),mt.call(w(n)),o=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat"],r=e,i=w(n),o.forEach(function(e){r[e]&&(i[e]=r[e])}),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=ht.create("translator"),n}return ct(t,mt),at(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(i[0])>-1)&&(r=i.shift()),e=i.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t){var n=this;if("object"!==tt(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=this.extractFromKey(e[e.length-1],t),i=r.key,a=r.namespaces,l=a[a.length-1],s=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(u){var c=t.nsSeparator||this.options.nsSeparator;return l+c+i}return i}var f=this.resolve(e,t),d=f&&f.res,p=f&&f.usedKey||i,h=f&&f.exactUsedKey||i,m=Object.prototype.toString.apply(d),v=["[object Number]","[object Function]","[object RegExp]"],g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(y&&d&&b&&v.indexOf(m)<0&&("string"!=typeof g||"[object Array]"!==m)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,t):"key '".concat(i," (").concat(this.language,")' returned an object instead of string.");if(o){var w="[object Array]"===m,S=w?[]:{},_=w?h:p;for(var E in d)if(Object.prototype.hasOwnProperty.call(d,E)){var x="".concat(_).concat(o).concat(E);S[E]=this.translate(x,ot({},t,{joinArrays:!1,ns:a})),S[E]===x&&(S[E]=d[E])}d=S}}else if(y&&"string"==typeof g&&"[object Array]"===m)(d=d.join(g))&&(d=this.extendTranslation(d,e,t));else{var C=!1,T=!1;if(!this.isValidLookup(d)&&void 0!==t.defaultValue){if(C=!0,void 0!==t.count){var O=this.pluralResolver.getSuffix(s,t.count);d=t["defaultValue".concat(O)]}d||(d=t.defaultValue)}this.isValidLookup(d)||(T=!0,d=i);var P=t.defaultValue&&t.defaultValue!==d&&this.options.updateMissing;if(T||C||P){this.logger.log(P?"updateKey":"missingKey",s,l,i,P?t.defaultValue:d);var k=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var R=0;R<A.length;R++)k.push(A[R]);else"all"===this.options.saveMissingTo?k=this.languageUtils.toResolveHierarchy(t.lng||this.language):k.push(t.lng||this.language);var M=function(e,o){n.options.missingKeyHandler?n.options.missingKeyHandler(e,l,o,P?t.defaultValue:d,P,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,l,o,P?t.defaultValue:d,P,t),n.emit("missingKey",e,l,o,d)};if(this.options.saveMissing){var D=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&D?k.forEach(function(e){n.pluralResolver.getPluralFormsOfKey(e,i).forEach(function(t){return M([e],t)})}):M(k,i)}}d=this.extendTranslation(d,e,t,f),T&&d===i&&this.options.appendNamespaceToMissingKey&&(d="".concat(l,":").concat(i)),T&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(d))}return d}},{key:"extendTranslation",value:function(e,t,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(ot({},n,{interpolation:ot({},this.options.interpolation,n.interpolation)}));var i=n.replace&&"string"!=typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(i=ot({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,n.lng||this.language,n),!1!==n.nest&&(e=this.interpolator.nest(e,function(){return r.translate.apply(r,arguments)},n)),n.interpolation&&this.interpolator.reset()}var a=n.postProcess||this.options.postProcess,l="string"==typeof a?[a]:a;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=Tt.handle(l,e,t,n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),u=s.key;n=u;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=void 0!==l.context&&"string"==typeof l.context&&""!==l.context,p=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach(function(e){a.isValidLookup(t)||(i=e,p.forEach(function(n){if(!a.isValidLookup(t)){r=n;var i,s,c=u,p=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,u,n,e,l);else f&&(i=a.pluralResolver.getSuffix(n,l.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(l.context)),f&&p.push(c+=i);for(;s=p.pop();)a.isValidLookup(t)||(o=s,t=a.getResource(n,e,s,l))}}))})}}),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}]),t}();function Pt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var kt=function(){function e(t){rt(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=ht.create("languageUtils")}return at(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pt(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Pt(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isWhitelisted(e)?r.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),o.forEach(function(e){r.indexOf(e)<0&&i(n.formatLanguageCode(e))}),r}}]),e}(),At=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],Rt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}};var Mt=function(){function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rt(this,e),this.languageUtils=t,this.options=o,this.logger=ht.create("pluralResolver"),this.rules=(n={},At.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:Rt[e.fc]}})}),n)}return at(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,o=[],r=this.getRule(e);return r?(r.numbers.forEach(function(r){var i=n.getSuffix(e,r);o.push("".concat(t).concat(i))}),o):o}},{key:"getSuffix",value:function(e,t){var n=this,o=this.getRule(e);if(o){var r=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),i=o.numbers[r];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};rt(this,e),this.logger=ht.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return at(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:xt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?_t(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?_t(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?_t(t.nestingPrefix):t.nestingPrefixEscaped||_t("$t("),this.nestingSuffix=t.nestingSuffix?_t(t.nestingSuffix):t.nestingSuffixEscaped||_t(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,l=this;function s(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(l.formatSeparator)<0)return wt(t,e);var o=e.split(l.formatSeparator),r=o.shift().trim(),i=o.join(l.formatSeparator).trim();return l.format(wt(t,r),i,n)};this.resetRegExp();var c=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=u(r[1].trim())))if("function"==typeof c){var f=c(e,r,o);i="string"==typeof f?f:""}else this.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=gt(i));if(e=e.replace(r[0],s(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=u(r[1].trim())))if("function"==typeof c){var d=c(e,r,o);i="string"==typeof d?d:""}else this.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=gt(i));if(i=this.escapeValue?s(this.escape(i)):s(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=ot({},r);function a(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var o=n.join(",");o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),t&&(i=ot({},t,i))}catch(t){this.logger.error("failed parsing options string in nesting for key ".concat(e),t)}return e}for(i.applyPostProcessor=!1;n=this.nestingRegexp.exec(e);){if((o=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=gt(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();var Lt=function(e){function t(e,n,o){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return rt(this,t),r=lt(this,st(t).call(this)),mt.call(w(r)),r.backend=e,r.store=n,r.languageUtils=o.languageUtils,r.options=i,r.logger=ht.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,i.backend,i),r}return ct(t,mt),at(t,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i=[],a=[],l=[],s=[];return e.forEach(function(e){var o=!0;t.forEach(function(t){var l="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[l]=2:r.state[l]<0||(1===r.state[l]?a.indexOf(l)<0&&a.push(l):(r.state[l]=1,o=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),s.indexOf(t)<0&&s.push(t)))}),o||l.push(e)}),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:o}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var o=dt(e.split("|"),2),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var o,l,s,u,c,f;o=n.loaded,l=i,u=yt(o,[r],Object),c=u.obj,f=u.k,c[f]=c[f]||[],s&&(c[f]=c[f].concat(l)),s||c[f].push(l),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){a[e].indexOf(t)<0&&a[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(l,s){l&&s&&r<5?setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i):a(l,s)}):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=dt(o,2),i=r[0],a=r[1];this.read(i,a,"read",null,null,function(o,r){o&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(i," failed"),o),!o&&r&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(i),r),t.loaded(e,o,r)})}},{key:"saveMissing",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,ot({},i,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o)}}]),t}();function jt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===tt(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===tt(e[2])||"object"===tt(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function Nt(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function zt(){}var It=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(rt(this,t),e=lt(this,st(t).call(this)),mt.call(w(e)),e.options=Nt(n),e.services={},e.logger=ht,e.modules={external:[]},o&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,o),lt(e,w(e));setTimeout(function(){e.init(n,o)},0)}return e}return ct(t,mt),at(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),this.options=ot({},jt(),this.options,Nt(t)),this.format=this.options.interpolation.format,n||(n=zt),!this.options.isClone){this.modules.logger?ht.init(o(this.modules.logger),this.options):ht.init(null,this.options);var r=new kt(this.options);this.store=new Ct(this.options.resources,this.options);var i=this.services;i.logger=ht,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new Mt(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Dt(this.options),i.backendConnector=new Lt(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Ot(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}var a=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];a.forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});var l=vt(),s=function(){e.changeLanguage(e.options.lng,function(t,o){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(o),n(t,o)})};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),l}},{key:"loadResources",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],o=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){n.indexOf(e)<0&&n.push(e)})};if(this.language)o(this.language);else{var r=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);r.forEach(function(e){return o(e)})}this.options.preload&&this.options.preload.forEach(function(e){return o(e)}),this.services.backendConnector.load(n,this.options.ns,t)}else t(null)}},{key:"reloadResources",value:function(e,t,n){var o=vt();return e||(e=this.languages),t||(t=this.options.ns),n||(n=zt),this.services.backendConnector.reload(e,t,function(e){o.resolve(),n(e)}),o}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Tt.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this,o=vt();this.emit("languageChanging",e);var r=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(function(r){!function(e,r){n.translator.changeLanguage(r),r&&(n.emit("languageChanged",r),n.logger.log("languageChanged",r)),o.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(r,e)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var r=ot({},o);if("object"!==tt(o)){for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];r=n.options.overloadTranslationOptionHandler([t,o].concat(a))}return r.lng=r.lng||e.lng,r.lngs=r.lngs||e.lngs,r.ns=r.ns||e.ns,n.t(t,r)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"loadNamespaces",value:function(e,t){var n=this,o=vt();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=vt();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter(function(e){return o.indexOf(e)<0});return r.length?(this.options.preload=o.concat(r),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zt,r=ot({},this.options,n,{isClone:!0}),i=new t(r),a=["store","services","language"];return a.forEach(function(t){i[t]=e[t]}),i.translator=new Ot(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.emit.apply(i,[e].concat(n))}),i.init(r,o),i.translator.options=i.options,i}}]),t}());function Ft(e){return function(t){var n=t.dispatch,o=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,o,e):t(r)}}}}var Bt=Ft();Bt.withExtraArgument=Ft;var Ut=Bt,Wt=function(e,t){return Ht(e)||Vt(e,t)},Ht=function(e){return["notesPanel","thumbnailsPanel","outlinesPanel"].includes(e)},Vt=function(e,t){return t.viewer.customPanels.map(function(e){return e.panel.dataElement}).includes(e)},Gt=function(){return window.innerWidth>900},qt=function(){return window.innerWidth<=900},$t=function(){return window.innerWidth<640},Yt=navigator.userAgent.indexOf("Edge")>-1,Kt=navigator.userAgent.indexOf("Trident/7.0")>-1,Zt=Yt||Kt,Qt=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/i),Xt=window.navigator.userAgent.match(/Android/i),Jt=Qt||Xt||window.navigator.userAgent.match(/webOS|BlackBerry|IEMobile|Opera Mini/i),en=navigator.appVersion.indexOf("Mac")>-1,tn=function(e,t){var n;CustomEvent&&!Kt?n=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0}):((n=document.createEvent("Event")).initEvent(e,!0,!0),n.detail=t),window.dispatchEvent(n)},nn=tn,on=function(e){tn("loaderror",e)},rn=.05,an=99.99,ln=function(){return rn},sn=function(){return an},un={.075:[null,.8],.25:[.8,1.5],1:[1.5,3.5],2:[3.5,8],4:[8,32],8:[32,64],16:[64,null]},cn=function(e){rn=e},fn=function(e){an=e};function dn(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")}()}var pn=function(){return{type:"ENABLE_ALL_ELEMENTS",payload:{}}},hn=function(e){return function(t,n){var o=n(),r=o.viewer.disabledElements[e]&&o.viewer.disabledElements[e].disabled,i=o.viewer.openElements.leftPanel,a=Wt(e,o)?i&&o.viewer.activeLeftPanel===e:o.viewer.openElements[e];r||a||(Wt(e,o)?(i||(t({type:"OPEN_ELEMENT",payload:{dataElement:"leftPanel"}}),nn("visibilityChanged",{element:"leftPanel",isVisible:!0})),t(wn(e))):(t({type:"OPEN_ELEMENT",payload:{dataElement:e}}),nn("visibilityChanged",{element:e,isVisible:!0}),"leftPanel"!==e||i||nn("visibilityChanged",{element:o.viewer.activeLeftPanel,isVisible:!0})))}},mn=function(e){return function(t){"string"==typeof e?t(hn(e)):e.forEach(function(e){t(hn(e))})}},vn=function(e){return function(t,n){var o=n(),r=o.viewer.disabledElements[e]&&o.viewer.disabledElements[e].disabled,i=Wt(e,o)?o.viewer.activeLeftPanel!==e:!o.viewer.openElements[e];r||i||(Wt(e,o)&&o.viewer.openElements.leftPanel?(t({type:"CLOSE_ELEMENT",payload:{dataElement:"leftPanel"}}),nn("visibilityChanged",{element:"leftPanel",isVisible:!1})):(t({type:"CLOSE_ELEMENT",payload:{dataElement:e}}),nn("visibilityChanged",{element:e,isVisible:!1}),"leftPanel"===e&&o.viewer.openElements.leftPanel&&nn("visibilityChanged",{element:o.viewer.activeLeftPanel,isVisible:!1})))}},gn=function(e){return function(t){"string"==typeof e?t(vn(e)):e.forEach(function(e){t(vn(e))})}},yn=function(e){return function(t,n){var o=n();o.viewer.disabledElements[e]&&o.viewer.disabledElements[e].disabled||(o.viewer.openElements[e]?t(vn(e)):t(hn(e)))}},bn=function(e){return{type:"SET_ACTIVE_HEADER_GROUP",payload:{headerGroup:e}}},wn=function(e){return function(t,n){var o=n();if(Wt(e,o))o.viewer.activeLeftPanel!==e&&(t({type:"CLOSE_ELEMENT",payload:{dataElement:o.viewer.activeLeftPanel}}),nn("visibilityChanged",{element:o.viewer.activeLeftPanel,isVisible:!1}),t({type:"SET_ACTIVE_LEFT_PANEL",payload:{dataElement:e}}),nn("visibilityChanged",{element:e,isVisible:!0}));else{var r=[].concat(dn(o.viewer.customPanels.map(function(e){return e.panel.dataElement})),["thumbnailsPanel","outlinesPanel","notesPanel"]).join(", ");console.warn("".concat(e," is not recognized by the left panel. Please use one of the following options: ").concat(r))}}},Sn=function(e){return{type:"SET_SORT_STRATEGY",payload:{sortStrategy:e}}},_n=function(e){return console.warn("setSortNotesBy is deprecated, please use setSortStrategy instead"),Sn(e)},En=function(e){return{type:"SET_NOTE_DATE_FORMAT",payload:{noteDateFormat:e}}},xn=function(e){return{type:"SET_CUSTOM_PANEL",payload:{newPanel:e}}},Cn=function(e){return function(t){e.length===Bi.getTotalPages()?t({type:"SET_PAGE_LABELS",payload:{pageLabels:e.map(String)}}):console.warn("Number of page labels do not match with the total pages.")}},Tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SET_CURSOR_OVERLAY",payload:{data:e}}},On=function(e){return{type:"SET_SWIPE_ORIENTATION",payload:{swipeOrientation:e}}},Pn=function(e){return function(t){t({type:"SET_WARNING_MESSAGE",payload:e}),t(hn("warningModal"))}},kn=function(e){return function(t){t({type:"SET_ERROR_MESSAGE",payload:{message:e}}),t(hn("errorModal"))}},An=function(e){return{type:"SET_CUSTOM_NOTE_FILTER",payload:{customNoteFilter:e}}},Rn=function(e){return function(t){var n=ln(),o=sn(),r=e.filter(function(e){return e>=n&&e<=o});if(r.length!==e.length){var i=e.filter(function(e){return!r.includes(e)});console.warn("\n      ".concat(i.join(", ")," are not allowed zoom levels in the UI. \n      Valid zoom levels should be in the range of ").concat(n,"-").concat(o,".\n      You can use setMinZoomLevel or setMaxZoomLevel APIs to change the range.\n      See https://www.pdftron.com/documentation/web/guides/ui/apis for more information.\n    "))}t({type:"SET_ZOOM_LIST",payload:{zoomList:r}})}},Mn=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"USE_EMBEDDED_PRINT",payload:{useEmbeddedPrint:e}}},Dn=function(e){return{type:"SET_MAX_SIGNATURES_COUNT",payload:{maxSignaturesCount:e}}},Ln={UNIVERSAL:"universal",PDFNETJS:"pdfnetjs",PDFTRON_SERVER:"pdftronServer",AUTO:null},jn="pdf",Nn="office",zn="blackbox",In="xod",Fn="all",Bn=function(e,t){var n;return null===(n=e.viewer.disabledElements[t])||void 0===n?void 0:n.disabled},Un=function(e,t){return e.viewer.disabledFeatures[t]},Wn=function(e,t){var n;return e.viewer.openElements[t]&&!(null===(n=e.viewer.disabledElements[t])||void 0===n?void 0:n.disabled)},Hn=function(e,t){var n=e.viewer,o=n.activeToolName,r=n.headers.tools,i=void 0===r?[]:r,a=t.element,l=t.dataElement;return Wn(e,a)||i.some(function(e){return e.dataElement===l&&e.toolName===o})},Vn=function(e){return e.viewer.headers[e.viewer.activeHeaderGroup]},Gn=function(e,t){var n;return null===(n=e.viewer.disabledElements[t])||void 0===n?void 0:n.priority},qn=function(e){return e.viewer.toolButtonObjects},$n=function(e,t){return t.map(function(t){return e.viewer.toolButtonObjects[t].dataElement})},Yn=function(e,t){return e.viewer.toolButtonObjects[t]},Kn=function(e,t){return e.viewer.toolButtonObjects[t].dataElement},Zn=function(e,t){return Object.keys(e.viewer.toolButtonObjects).filter(function(n){return e.viewer.toolButtonObjects[n].group===t})},Qn=function(e,t){return Object.keys(e.viewer.toolButtonObjects).find(function(n){return e.viewer.toolButtonObjects[n].dataElement===t})},Xn=function(e){return e.viewer.activeToolName},Jn=function(e){return e.viewer.activeToolStyles},eo=function(e){return e.viewer.activeLeftPanel},to=function(e){return e.viewer.activeToolGroup},no=function(e){return e.viewer.leftPanelWidth},oo=function(e){return e.viewer.notePopupId},ro=function(e){return e.viewer.fitMode},io=function(e){return e.viewer.zoom},ao=function(e){return e.viewer.displayMode},lo=function(e){return e.viewer.currentPage},so=function(e){return e.viewer.sortStrategy},uo=function(e){return e.viewer.rotation},co=function(e){return e.viewer.noteDateFormat},fo=function(e){return e.viewer.isFullScreen},po=function(e){return e.viewer.doesAutoLoad},ho=function(e){return e.viewer.isDocumentLoaded},mo=function(e){return e.viewer.isReadOnly},vo=function(e){return e.viewer.customPanels},go=function(e){return e.viewer.pageLabels},yo=function(e){return e.viewer.customPanels.reduce(function(t,n){var o,r=n.tab;return(null===(o=e.viewer.disabledElements[r.dataElement])||void 0===o?void 0:o.disabled)&&t.push(r.dataElement),t},[])},bo=function(e){var t=window.navigator.userAgent.indexOf("Chrome")>-1&&-1===window.navigator.userAgent.indexOf("Edge");return Uo(e)===jn&&t&&e.viewer.useEmbeddedPrint},wo=function(e){return e.viewer.colorMap},So=function(e){return e.viewer.cursorOverlay},_o=function(e){return e.viewer.openElements},Eo=function(e,t){var n;return null===(n=e.viewer.colorMap[t])||void 0===n?void 0:n.currentPalette},xo=function(e,t){var n;return null===(n=e.viewer.colorMap[t])||void 0===n?void 0:n.iconColor},Co=function(e){return e.viewer.customNoteFilter},To=function(e){return e.viewer.zoomList},Oo=function(e){return e.viewer.measurementUnits},Po=function(e){return e.viewer.isNoteEditing},ko=function(e){return e.viewer.maxSignaturesCount},Ao=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.message)||""},Ro=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.title)||""},Mo=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onConfirm},Do=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.confirmBtnText},Lo=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onCancel},jo=function(e){return e.viewer.errorMessage||""},No=function(e){return e.document},zo=function(e){return e.document.id},Io=function(e){return e.document.path||e.document.initialDoc},Fo=function(e){return e.document.file},Bo=function(e){return!(!e.document.initialDoc&&!e.advanced.externalPath)},Uo=function(e){return e.document.type},Wo=function(e){return e.document.checkPassword},Ho=function(e){return e.document.passwordAttempts},Vo=function(e){return e.document.printQuality},Go=function(e){return e.document.totalPages},qo=function(e){return e.document.outlines},$o=function(e){return(e.document.documentLoadingProgress+e.document.workerLoadingProgress)/2},Yo=function(e){return e.document.uploadProgress},Ko=function(e){return e.document.isUploading},Zo=function(e){return e.user.name},Qo=function(e){return e.advanced},Xo=function(e){return e.advanced.serverUrl},Jo=function(e){return e.search.listeners},er=function(e){return e.search.value},tr=function(e){return e.search.activeResult},nr=function(e){return e.search.activeResultIndex},or=function(e){return e.search.results},rr=function(e){return e.search.isCaseSensitive},ir=function(e){return e.search.isWholeWord},ar=function(e){return e.search.isWildcard},lr=function(e){return e.search.isSearchUp},sr=function(e){return e.search.isAmbientString},ur=function(e){return e.search.isRegex},cr=function(e){return e.search.isSearching},fr=function(e){return e.search.noResult},dr=function(e){return e.search.isProgrammaticSearch},pr=function(e){return e.search.isProgrammaticSearchFull},hr=r;function mr(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")}()}var vr=function(e,t,n){return t.reduce(function(t,o){var r=hr.getDisabledElementPriority(e,o);return!r||n>=r?[].concat(mr(t),[o]):t},[])};function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gr(n,!0).forEach(function(t){br(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wr=function(e,t){return function(n,o){if("leftPanel"===e)n(Sr(["leftPanel","leftPanelButton"],t));else if("stylePopup"===e)n(Sr(["toolStylePopup","annotationStylePopup"],t));else{var r=hr.getDisabledElementPriority(o(),e);(!r||t>=r)&&n({type:"DISABLE_ELEMENT",payload:{dataElement:e,priority:t}})}}},Sr=function(e,t){return function(n,o){n({type:"DISABLE_ELEMENTS",payload:{dataElements:vr(o(),e,t),priority:t}})}},_r=function(e,t){return function(n,o){if("leftPanel"===e)n(Er(["leftPanel","leftPanelButton"],t));else if("stylePopup"===e)n(Er(["toolStylePopup","annotationStylePopup"],t));else{var r=hr.getDisabledElementPriority(o(),e);(!r||t>=r)&&n({type:"ENABLE_ELEMENT",payload:{dataElement:e,priority:t}})}}},Er=function(e,t){return function(n,o){var r=vr(o(),e,t);Bi.isCreateRedactionEnabled()||(r=r.filter(function(e){return"redactionButton"!==e})),n({type:"ENABLE_ELEMENTS",payload:{dataElements:r,priority:t}})}},xr=function(e){return function(t,n){var o,r=n();o=Qt||Xt?e.name:"TextSelect"===e.name?"AnnotationEdit":e.name,r.viewer.activeToolName!==o&&t({type:"SET_ACTIVE_TOOL_NAME_AND_STYLES",payload:{toolName:o,toolStyles:e.defaults||{}}})}},Cr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SET_ACTIVE_TOOL_STYLES",payload:{toolStyles:e}}},Tr=function(e){return{type:"SET_ACTIVE_TOOL_GROUP",payload:{toolGroup:e}}},Or=function(e){return{type:"SET_NOTE_POPUP_ID",payload:{id:e}}},Pr=function(){return{type:"SET_NOTE_EDITING",payload:{isNoteEditing:!0}}},kr=function(){return{type:"SET_NOTE_EDITING",payload:{isNoteEditing:!1}}},Ar=function(e){return{type:"SET_FIT_MODE",payload:{fitMode:e}}},Rr=function(e){return{type:"SET_ZOOM",payload:{zoom:e}}},Mr=function(e){return{type:"SET_ROTATION",payload:{rotation:e}}},Dr=function(e){return{type:"SET_DISPLAY_MODE",payload:{displayMode:e}}},Lr=function(e){return{type:"SET_CURRENT_PAGE",payload:{currentPage:e}}},jr=function(e){return{type:"SET_FULL_SCREEN",payload:{isFullScreen:e}}},Nr=function(e){return{type:"SET_DOCUMENT_LOADED",payload:{isDocumentLoaded:e}}},zr=function(e){return{type:"SET_READ_ONLY",payload:{isReadOnly:e}}},Ir=function(e){return{type:"REGISTER_TOOL",payload:yr({},e)}},Fr=function(e){return{type:"UNREGISTER_TOOL",payload:{toolName:e}}},Br=function(e){return{type:"SET_TOOL_BUTTON_OBJECTS",payload:{toolButtonObjects:e}}},Ur=function(e){return function(t,n){n().viewer.isNoteEditing!==e&&t({type:"SET_IS_NOTE_EDITING",payload:{isNoteEditing:e}})}},Wr=function(e,t){return{type:"SET_HEADER_ITEMS",payload:{header:e,headerItems:t}}},Hr=function(e,t){return{type:"SET_COLOR_PALETTE",payload:{colorMapKey:e,colorPalette:t}}},Vr=function(e,t){return{type:"SET_ICON_COLOR",payload:{colorMapKey:e,color:t}}},Gr=function(e){return{type:"SET_COLOR_MAP",payload:{colorMap:e}}},qr=function(e){return{type:"SET_LEFT_PANEL_WIDTH",payload:{width:e}}},$r=function(e){return{type:"SET_DOCUMENT_ID",payload:{documentId:e}}},Yr=function(e){return{type:"SET_DOCUMENT_PATH",payload:{documentPath:e}}},Kr=function(e){return{type:"SET_DOCUMENT_FILE",payload:{documentFile:e}}},Zr=function(e){return{type:"SET_DOCUMENT_TYPE",payload:{type:e}}},Qr=function(e){return{type:"SET_PDF_DOC",payload:{pdfDoc:e}}},Xr=function(e){return{type:"SET_FILENAME",payload:{filename:e}}},Jr=function(e){return{type:"SET_EXTENSION",payload:{extension:e}}},ei=function(e){return{type:"SET_TOTAL_PAGES",payload:{totalPages:e}}},ti=function(e){return{type:"SET_OUTLINES",payload:{outlines:e}}},ni=function(e){return{type:"SET_CHECKPASSWORD",payload:{func:e}}},oi=function(e){return{type:"SET_PASSWORD_ATTEMPTS",payload:{attempt:e}}},ri=function(e){return{type:"SET_PRINT_QUALITY",payload:{quality:e}}},ii=function(e){return{type:"SET_DOCUMENT_LOADING_PROGRESS",payload:{documentLoadingProgress:e}}},ai=function(e){return{type:"SET_WORKER_LOADING_PROGRESS",payload:{workerLoadingProgress:e}}},li=function(){return{type:"RESET_LOADING_PROGRESS"}},si=function(e){return{type:"SET_PASSWORD",payload:{password:e}}},ui=function(e){return{type:"SET_CACHE_KEY",payload:{cacheKey:e}}},ci=function(e){return{type:"SET_IS_UPLOADING",payload:{isUploading:e}}},fi=function(e){return{type:"SET_UPLOAD_PROGRESS",payload:{progress:e}}},di=function(){return fi(0)},pi=function(e){return{type:"SET_USER_NAME",payload:{userName:e}}},hi=function(e){return{type:"SET_ADMIN_USER",payload:{isAdminUser:e}}},mi=function(e){return{type:"SET_STREAMING",payload:{streaming:e}}},vi=function(e){return{type:"SET_DECRYPT_FUNCTION",payload:{decryptFunction:e}}},gi=function(e){return{type:"SET_DECRYPT_OPTIONS",payload:{decryptOptions:e}}},yi=function(e){return{type:"SET_ENGINE_TYPE",payload:{type:e}}},bi=function(e){return{type:"SET_CUSTOM_HEADERS",payload:{customHeaders:e}}},wi=function(e){return{type:"SET_WITH_CREDENTIALS",payload:{withCredentials:e}}},Si=function(e,t){return{type:"SEARCH_TEXT",payload:{searchValue:e,options:t}}},_i=function(e,t){return{type:"SEARCH_TEXT_FULL",payload:{searchValue:e,options:t}}},Ei=function(e){return{type:"ADD_SEARCH_LISTENER",payload:{func:e}}},xi=function(e){return{type:"REMOVE_SEARCH_LISTENER",payload:{func:e}}},Ci=function(e){return{type:"SET_SEARCH_VALUE",payload:{value:e}}},Ti=function(e){return{type:"SET_ACTIVE_RESULT",payload:{activeResult:e}}},Oi=function(e){return{type:"SET_ACTIVE_RESULT_INDEX",payload:{index:e}}},Pi=function(e){return{type:"ADD_RESULT",payload:{result:e}}},ki=function(e){return{type:"SET_CASE_SENSITIVE",payload:{isCaseSensitive:e}}},Ai=function(e){return{type:"SET_WHOLE_WORD",payload:{isWholeWord:e}}},Ri=function(e){return{type:"SET_IS_SEARCHING",payload:{isSearching:e}}},Mi=function(e){return{type:"SET_NO_RESULT",payload:{noResult:e}}},Di=function(){return{type:"RESET_SEARCH",payload:{}}},Li=function(e){return{type:"SET_IS_PROG_SEARCH",payload:{isProgrammaticSearch:e}}},ji=function(e){return{type:"SET_IS_PROG_SEARCH_FULL",payload:{isProgrammaticSearchFull:e}}};function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ii=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(n,!0).forEach(function(t){zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},o,{},i),Fi=function(){var e=window.docViewer.getAnnotationManager();return{annotationsLoaded:window.docViewer,changePage:window.docViewer,click:window.docViewer,dblClick:window.docViewer,displayPageLocation:window.docViewer,keyDown:window.docViewer,keyUp:window.docViewer,mouseEnter:window.docViewer,mouseLeave:window.docViewer,mouseLeftDown:window.docViewer,mouseLeftUp:window.docViewer,mouseMove:window.docViewer,mouseRightDown:window.docViewer,mouseRightUp:window.docViewer,pageComplete:window.docViewer,searchInProgress:window.docViewer,textSelected:window.docViewer,beginRendering:window.docViewer,finishedRendering:window.docViewer,beforeDocumentLoaded:window.docViewer,displayModeUpdated:window.docViewer,documentLoaded:window.docViewer,documentUnloaded:window.docViewer,fitModeUpdated:window.docViewer,rotationUpdated:window.docViewer,toolUpdated:window.docViewer,toolModeUpdated:window.docViewer,zoomUpdated:window.docViewer,pageNumberUpdated:window.docViewer,layoutChanged:window.docViewer,"fitModeUpdated.fitbutton":window.docViewer,annotationSelected:e,annotationChanged:e,updateAnnotationPermission:e,addReply:e,deleteReply:e,annotationHidden:e,annotationDoubleClicked:e,annotationFiltered:e,annotationToggled:e,fieldChanged:e,notify:e,setNoteText:e}},Bi={setToolMode:function(e){var t=window.docViewer.getTool(e);t&&t.disabled?console.warn("".concat(e," has been disabled.")):window.docViewer.setToolMode(t)},getToolMode:function(){return window.docViewer.getToolMode()},getTool:function(e){return window.docViewer.getTool(e)},setDisplayMode:function(e){var t=new window.CoreControls.DisplayMode(window.docViewer,e);window.docViewer.getDisplayModeManager().setDisplayMode(t)},getDisplayMode:function(){return window.docViewer.getDisplayModeManager().getDisplayMode().mode},rotateClockwise:function(){window.docViewer.rotateClockwise()},rotateCounterClockwise:function(){window.docViewer.rotateCounterClockwise()},getFitMode:function(){return window.docViewer.getFitMode()},fitToPage:function(){window.docViewer.setFitMode(window.docViewer.FitMode.FitPage)},fitToWidth:function(){window.docViewer.setFitMode(window.docViewer.FitMode.FitWidth)},fitToHeight:function(){window.docViewer.setFitMode(window.docViewer.FitMode.FitHeight)},fitToZoom:function(){window.docViewer.setFitMode(window.docViewer.FitMode.Zoom)},zoomToMouse:function(e){window.docViewer.zoomToMouse(e,0,0)},getZoom:function(){return window.docViewer.getZoom()},zoomTo:function(e,t,n){window.docViewer.zoomTo(e,t,n)},getDocumentViewer:function(){return window.docViewer},getAnnotationManager:function(){return window.docViewer.getAnnotationManager()},getTotalPages:function(){return window.docViewer.getPageCount()},getCurrentPage:function(){return window.docViewer.getCurrentPage()},setCurrentPage:function(e){window.docViewer.setCurrentPage(e)},getType:function(){return window.docViewer.getDocument().getType()},isWebViewerServerDocument:function(){return window.docViewer.getDocument().isWebViewerServerDocument()},getSelectedText:function(){return window.docViewer.getSelectedText()},clearSelection:function(){window.docViewer.clearSelection()},setOptions:function(e){window.docViewer.setOptions(e)},closeDocument:function(e){return e(Ii.closeElement("passwordModal")),window.docViewer.closeDocument()},getToolModeMap:function(){return window.docViewer.getToolModeMap()},getCurrentUser:function(){return window.docViewer.getAnnotationManager().getCurrentUser()},getIsAdminUser:function(){return window.docViewer.getAnnotationManager().getIsAdminUser()},setIsAdminUser:function(e){window.docViewer.getAnnotationManager().setIsAdminUser(e)},exportAnnotations:function(){return window.docViewer.getAnnotationManager().exportAnnotations()},setCurrentUser:function(e){window.docViewer.getAnnotationManager().setCurrentUser(e)},setReadOnly:function(e){window.docViewer.getAnnotationManager().setReadOnly(e)},setScrollViewElement:function(e){window.docViewer.setScrollViewElement(e)},setViewerElement:function(e){window.docViewer.setViewerElement(e)},isContinuousDisplayMode:function(){return window.docViewer.getDisplayModeManager().getDisplayMode().isContinuous()},scrollViewUpdated:function(){window.docViewer.scrollViewUpdated()},canModify:function(e){return window.docViewer.getAnnotationManager().canModify(e)},deleteAnnotations:function(e){window.docViewer.getAnnotationManager().deleteAnnotations(e)},getDisplayAuthor:function(e){return window.docViewer.getAnnotationManager().getDisplayAuthor(e)},getDocument:function(){return window.docViewer.getDocument()},getCompleteRotation:function(e){return window.docViewer.getCompleteRotation(e)},getRotation:function(e){return window.docViewer.getRotation(e)},getPageInfo:function(e){return window.docViewer.getDocument().getPageInfo(e)},clearSearchResults:function(){window.docViewer.clearSearchResults()},displayAdditionalSearchResult:function(e){window.docViewer.displayAdditionalSearchResult(e)},setActiveSearchResult:function(e){window.docViewer.setActiveSearchResult(e)},textSearchInit:function(e,t,n,o){window.docViewer.textSearchInit(e,t,n,o)},displaySearchResult:function(e){window.docViewer.displaySearchResult(e)},getSearchMode:function(){return window.docViewer.SearchMode},getPageWidth:function(e){return window.docViewer.getPageWidth(e)},getPageHeight:function(e){return window.docViewer.getPageHeight(e)},drawAnnotations:function(e,t,n,o){return window.docViewer.getAnnotationManager().drawAnnotations(e,t,n,o)},getOutlines:function(e){window.docViewer.getDocument().getBookmarks().then(function(t){e(t)})},getSelectedAnnotations:function(){return window.docViewer.getAnnotationManager().getSelectedAnnotations()},updateCopiedAnnotations:function(){window.docViewer.getAnnotationManager().updateCopiedAnnotations()},pasteCopiedAnnotations:function(){window.docViewer.getAnnotationManager().pasteCopiedAnnotations()},selectAnnotation:function(e){window.docViewer.getAnnotationManager().selectAnnotation(e)},selectAnnotations:function(e){window.docViewer.getAnnotationManager().selectAnnotations(e)},addAnnotations:function(e){window.docViewer.getAnnotationManager().addAnnotations(e)},applyRedactions:function(e){return window.docViewer.getAnnotationManager().applyRedactions(e)},isCreateRedactionEnabled:function(){return window.docViewer.getAnnotationManager().isCreateRedactionEnabled()},isApplyRedactionEnabled:function(){return window.docViewer.getAnnotationManager().isApplyRedactionEnabled()},isAnnotationRedactable:function(e){return window.docViewer.getAnnotationManager().isAnnotationRedactable(e)},enableRedaction:function(e){window.docViewer.getAnnotationManager().enableRedaction(e)},drawAnnotationsFromList:function(e){window.docViewer.getAnnotationManager().drawAnnotationsFromList(e)},setInternalAnnotationsTransform:function(e){window.docViewer.setInternalAnnotationsTransform(e)},setPagesUpdatedInternalAnnotationsTransform:function(e){window.docViewer.setPagesUpdatedInternalAnnotationsTransform(e)},loadThumbnailAsync:function(e,t){return window.docViewer.getDocument().loadThumbnailAsync(e,function(e){t(e)})},loadAsync:function(e,t){window.docViewer.loadAsync(e,t)},getSelectedTextQuads:function(){return window.docViewer.getSelectedTextQuads()},getDisplayModeObject:function(){return window.docViewer.getDisplayModeManager().getDisplayMode()},getScrollViewElement:function(){return window.docViewer.getScrollViewElement()},getAnnotationById:function(e){return window.docViewer.getAnnotationManager().getAnnotationById(e)},isFullPDFEnabled:function(){return window.CoreControls.isFullPDFEnabled()},isAnnotationSelected:function(e){return window.docViewer.getAnnotationManager().isAnnotationSelected(e)},setAnnotationStyles:function(e,t){window.docViewer.getAnnotationManager().setAnnotationStyles(e,t)},deselectAnnotation:function(e){window.docViewer.getAnnotationManager().deselectAnnotation(e)},deselectAllAnnotations:function(){window.docViewer.getAnnotationManager().deselectAllAnnotations()},jumpToAnnotation:function(e){window.docViewer.getAnnotationManager().jumpToAnnotation(e)},createAnnotationReply:function(e,t){window.docViewer.getAnnotationManager().createAnnotationReply(e,t)},setNoteContents:function(e,t){window.docViewer.getAnnotationManager().setNoteContents(e,t)},getAnnotationsList:function(){return window.docViewer.getAnnotationManager().getAnnotationsList()},getAnnotationsLoadedPromise:function(){return window.docViewer.getAnnotationsLoadedPromise()},getPrintablePDF:function(){return window.docViewer.getDocument().getPrintablePDF()},addEventListener:function(e,t){Fi()[e].on(e,t)},removeEventListener:function(e,t){Fi()[e].off(e,t)},getIsReadOnly:function(){return window.docViewer.getAnnotationManager().getReadOnly()},cancelLoadThumbnail:function(e){window.docViewer.getDocument().cancelLoadThumbnail(e)},showAnnotations:function(e){return window.docViewer.getAnnotationManager().showAnnotations(e)},hideAnnotations:function(e){return window.docViewer.getAnnotationManager().hideAnnotations(e)},goToOutline:function(e){window.docViewer.displayBookmark(e)},getViewerElement:function(){return window.docViewer.getViewerElement()}},Ui=n(216),Wi=n(19),Hi=n.n(Wi);n(410);function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(n,!0).forEach(function(t){qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Yi={children:x.a.element.isRequired,content:x.a.string},Ki=function(e){var t=e.content,n=void 0===t?"":t,o=e.children,r=Object(a.useRef)(null),i=Object(a.useRef)(null),s=Object(a.useRef)(null),c=$i(Object(a.useState)(!1),2),f=c[0],d=c[1],p=$i(Object(a.useState)(0),2),h=p[0],m=p[1],v=$i(Object(a.useState)({top:0,left:0}),2),g=v[0],y=v[1],b=$i(Object(a.useState)("bottom"),2),w=b[0],S=b[1],_=$i(Ze(),1)[0];Object(a.useEffect)(function(){var e,t,n,o=function(){clearTimeout(r.current),d(!1)};null===(e=i.current)||void 0===e||e.addEventListener("mouseenter",function(){r.current=setTimeout(function(){d(!0)},650)}),null===(t=i.current)||void 0===t||t.addEventListener("mouseleave",o),null===(n=i.current)||void 0===n||n.addEventListener("click",o)},[]),Object(a.useLayoutEffect)(function(){var e,t,n,o,r,a,l,u=i.current,c=s.current;f&&u&&c?(e=u.getBoundingClientRect(),t=c.getBoundingClientRect(),n={bottom:{top:e.bottom,left:e.left+e.width/2-t.width/2},left:{top:e.top+e.height/2-t.height/2,left:e.left-t.width},right:{top:e.top+e.height/2-t.height/2,left:e.right},top:{top:e.top-t.height,left:e.left+e.width/2-t.width/2}},o=Object.keys(n).find(function(e){var o=n[e],r=o.top,i=o.left;return r>0&&r+t.height<window.innerHeight&&i>0&&i+t.width<window.innerWidth}),a=(r=n[o]).top,l=r.left,y({top:a,left:l}),S(o),setTimeout(function(){m(1)},50)):m(0)},[f]);var E=Qt||Xt,x=l.a.cloneElement(o,{ref:i}),C=_(n),T=-1===_("shortcut.".concat(n.split(".")[1])).indexOf("."),O=_("shortcut.".concat(n.split(".")[1]));return en&&(O=O.replace("Ctrl","Cmd")),l.a.createElement(l.a.Fragment,null,x,f&&C&&!E&&u.a.createPortal(l.a.createElement("div",{className:"tooltip--".concat(w),style:Gi({opacity:h},g),ref:s},l.a.createElement("div",{className:"tooltip__content"},C,T&&l.a.createElement("span",{className:"tooltip__shortcut"},O))),document.getElementById("app")))};Ki.propTypes=Yi;var Zi=Ki;n(411);function Qi(e){return(Qi="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 Xi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ji(e,t){return!t||"object"!==Qi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ea(e){return(ea=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ta(e,t){return(ta=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var na,oa,ra,ia=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Ji(this,ea(t).call(this))).icon=l.a.createRef(),e}var o,r,i;return 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&&ta(e,t)}(t,l.a.PureComponent),o=t,(r=[{key:"componentDidMount",value:function(){this.updateSvg()}},{key:"componentDidUpdate",value:function(e){this.props.glyph!==e.glyph&&this.updateSvg()}},{key:"updateSvg",value:function(){if(this.isInlineSvg()){for(var e=this.icon.current;e.firstChild;)e.removeChild(e.firstChild);var t=(new DOMParser).parseFromString(this.props.glyph,"image/svg+xml").querySelector("svg");e.appendChild(t)}}},{key:"isInlineSvg",value:function(){var e=this.props.glyph;return e&&0===e.indexOf("<svg")}},{key:"render",value:function(){var e=this.props,t=e.className,o=void 0===t?"":t,r=e.color,i=e.glyph,a=!r||"rgba(255, 255, 255, 1)"!==r&&"rgb(255, 255, 255)"!==r?void 0:"drop-shadow(0 0 .5px #333)",s=this.isInlineSvg()?i:n(186)("./".concat(this.props.glyph,".svg"));return l.a.createElement("div",{ref:this.icon,className:"Icon ".concat(o),style:{color:"rgba(0, 0, 0, 0)"===r?"#808080":r,filter:a},dangerouslySetInnerHTML:{__html:s}})}}])&&Xi(o.prototype,r),i&&Xi(o,i),t}();na=ia,oa="propTypes",ra={className:x.a.string,color:x.a.string,glyph:x.a.string.isRequired},oa in na?Object.defineProperty(na,oa,{value:ra,enumerable:!0,configurable:!0,writable:!0}):na[oa]=ra;var aa=ia;n(485);function la(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ua={disable:x.a.bool,isActive:x.a.bool,mediaQueryClassName:x.a.string,img:x.a.string,label:x.a.oneOfType([x.a.string,x.a.number]),title:x.a.string,color:x.a.string,dataElement:x.a.string,className:x.a.string,onClick:x.a.func.isRequired},ca=function(e){var t,n,o=e.isActive,r=e.mediaQueryClassName,i=e.img,a=e.label,s=e.color,u=e.dataElement,c=e.onClick,f=void 0===c?function(){}:c,d=e.className,p=e.title,h=sa(Oe(function(e){return[hr.isElementDisabled(e,u)]}),1)[0],m=Hi()((la(t={Button:!0,active:o},r,r),la(t,d,d),t)),v=i&&0===i.trim().indexOf("data:");i&&!v&&(-1===i.indexOf(".")||0===i.indexOf("<svg"))?n=l.a.createElement(aa,{glyph:i,color:s}):i?n=l.a.createElement("img",{src:i}):a&&(n=l.a.createElement("p",null,a));var g=l.a.createElement("div",{className:m,"data-element":u,onClick:f},n);return h?null:p?l.a.createElement(Zi,{content:p},g):g};ca.propTypes=ua;var fa=l.a.memo(ca),da=function(e){var t=Bi.getTool(e);return!!t&&!!t.defaults},pa=function(e){return Bi.getTool(e).defaults};function ha(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")}()}var ma={signature:{icon:"ic_annotation_signature_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateSignature"],annotationCheck:function(e){return e instanceof window.Annotations.FreeHandAnnotation&&e.Subject===It.t("annotation.signature")}},freeHand:{icon:"ic_annotation_freehand_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateFreeHand","AnnotationCreateFreeHand2","AnnotationCreateFreeHand3","AnnotationCreateFreeHand4"],annotationCheck:function(e){return e instanceof window.Annotations.FreeHandAnnotation}},freeText:{icon:"ic_annotation_freetext_black_24px",iconColor:"TextColor",currentPalette:"TextColor",availablePalettes:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateFreeText"],annotationCheck:function(e){return e instanceof window.Annotations.FreeTextAnnotation&&e.getIntent()===window.Annotations.FreeTextAnnotation.Intent.FreeText}},distanceMeasurement:{icon:"ic_annotation_distance_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateDistanceMeasurement"],annotationCheck:function(e){return e instanceof window.Annotations.LineAnnotation&&"LineDimension"===e.IT&&e.Measure}},perimeterMeasurement:{icon:"ic_annotation_perimeter_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreatePerimeterMeasurement"],annotationCheck:function(e){return e instanceof window.Annotations.PolylineAnnotation&&"PolyLineDimension"===e.IT&&e.Measure}},areaMeasurement:{icon:"ic_annotation_area_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor","FillColor"],toolNames:["AnnotationCreateAreaMeasurement"],annotationCheck:function(e){return e instanceof window.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure}},callout:{icon:"ic_annotation_callout_black_24px",iconColor:"TextColor",currentPalette:"TextColor",availablePalettes:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateCallout"],annotationCheck:function(e){return e instanceof window.Annotations.FreeTextAnnotation&&e.getIntent()===window.Annotations.FreeTextAnnotation.Intent.FreeTextCallout}},line:{icon:"ic_annotation_line_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateLine"],annotationCheck:function(e){return e instanceof window.Annotations.LineAnnotation&&"None"===e.getStartStyle()&&"None"===e.getEndStyle()}},arrow:{icon:"ic_annotation_arrow_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateArrow"],annotationCheck:function(e){return e instanceof window.Annotations.LineAnnotation&&("None"!==e.getStartStyle()||"None"!==e.getEndStyle())}},polygon:{icon:"ic_annotation_polygon_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor","FillColor"],toolNames:["AnnotationCreatePolygon"],annotationCheck:function(e){return e instanceof window.Annotations.PolygonAnnotation&&"cloudy"!==e.Style}},cloud:{icon:"ic_annotation_cloud_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor","FillColor"],toolNames:["AnnotationCreatePolygonCloud"],annotationCheck:function(e){return e instanceof window.Annotations.PolygonAnnotation&&"cloudy"===e.Style}},highlight:{icon:"ic_annotation_highlight_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateTextHighlight","AnnotationCreateTextHighlight2","AnnotationCreateTextHighlight3","AnnotationCreateTextHighlight4"],annotationCheck:function(e){return e instanceof window.Annotations.TextHighlightAnnotation}},underline:{icon:"ic_annotation_underline_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateTextUnderline"],annotationCheck:function(e){return e instanceof window.Annotations.TextUnderlineAnnotation}},squiggly:{icon:"ic_annotation_squiggly_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateTextSquiggly"],annotationCheck:function(e){return e instanceof window.Annotations.TextSquigglyAnnotation}},strikeout:{icon:"ic_annotation_strikeout_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateTextStrikeout"],annotationCheck:function(e){return e instanceof window.Annotations.TextStrikeoutAnnotation}},redaction:{icon:"ic_annotation_redact_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor","FillColor"],toolNames:["AnnotationCreateRedaction"],annotationCheck:function(e){return e instanceof window.Annotations.RedactionAnnotation}},rectangle:{icon:"ic_annotation_square_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor","FillColor"],toolNames:["AnnotationCreateRectangle"],annotationCheck:function(e){return e instanceof window.Annotations.RectangleAnnotation}},ellipse:{icon:"ic_annotation_circle_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor","FillColor"],toolNames:["AnnotationCreateEllipse"],annotationCheck:function(e){return e instanceof window.Annotations.EllipseAnnotation}},polyline:{icon:"ic_annotation_polyline_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreatePolyline"],annotationCheck:function(e){return e instanceof window.Annotations.PolylineAnnotation}},stickyNote:{icon:"ic_annotation_sticky_note_black_24px",iconColor:"StrokeColor",currentPalette:"StrokeColor",availablePalettes:["StrokeColor"],toolNames:["AnnotationCreateSticky"],annotationCheck:function(e){return e instanceof window.Annotations.StickyAnnotation}},stamp:{icon:"ic_annotation_stamp_black_24px",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["AnnotationCreateStamp"],annotationCheck:function(e){return e instanceof window.Annotations.StampAnnotation}},edit:{icon:"ic_select_black_24px",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["AnnotationEdit"],annotationCheck:null},pan:{icon:"ic_pan_black_24px",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["Pan"],annotationCheck:null},textSelect:{icon:"textselect_cursor",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["TextSelect"],annotationCheck:null},marqueeZoomTool:{icon:null,iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["MarqueeZoomTool"],annotationCheck:null},eraser:{icon:"ic_annotation_eraser_black_24px",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["AnnotationEraserTool"],annotationCheck:null}},va=function(e){return Object.keys(ma).find(function(t){return ma[t].toolNames.includes(e)})},ga=function(e){return Object.keys(ma).find(function(t){var n=ma[t].annotationCheck;return n&&n(e)})},ya=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object.keys(ma).reduce(function(e,n){return e[n]={},t.forEach(function(t){e[n][t]=ma[n][t]}),e},{})},ba=function(e){return ma[e]||{}},wa=function(){var e=Object.values(ma).reduce(function(e,t){var n=t.toolNames;return t.annotationCheck?[].concat(ha(e),ha(n)):e},[]);return e.push("AnnotationEraserTool"),e};n(486);function Sa(){return(Sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function _a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ea(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var xa={toolName:x.a.string.isRequired,group:x.a.string},Ca=function(e){var t,n,o,r=e.toolName,i=Ea(e,["toolName"]),a=_a(Oe(function(e){return[hr.getActiveToolName(e)===r,hr.getIconColor(e,va(r)),hr.getToolButtonObject(e,r)]},K),3),s=a[0],u=a[1],c=a[2],f=c.group,d=void 0===f?"":f,p=c.showColor,h=Ea(c,["group","showColor"]),m=Ee(),v=pa(r),g="";("always"===p||"active"===p&&s)&&(g=null===(n=v[u])||void 0===n?void 0:null===(o=n.toHexString)||void 0===o?void 0:o.call(n));return(null===(t=Bi.getTool(r))||void 0===t?void 0:t.disabled)?null:l.a.createElement(fa,Sa({className:Hi()({ToolButton:!0,hasStyles:da(r)}),onClick:function(){s?da(r)&&m(Ii.toggleElement("toolStylePopup")):(Bi.setToolMode(r),m(Ii.setActiveToolGroup(d)),m(Ii.closeElement("toolStylePopup")))},isActive:s,color:g},i,h))};Ca.propTypes=xa;var Ta=Ca,Oa=Qt||Xt?"Pan":"AnnotationEdit";function Pa(e){return(Pa="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 ka(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Aa(e){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ra(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ma(e,t){return(Ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var La=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Pa(t)&&"function"!=typeof t?Ra(e):t}(this,Aa(t).call(this,e)),Da(Ra(n),"onClick",function(){var e=n.props,t=e.setActiveToolGroup,o=e.isActive,r=e.closeElement,i=e.toggleElement,a=e.openElement,l=e.toolGroup,s=n.state.toolName;t(l),r("toolStylePopup"),o?i("toolsOverlay"):(n.setToolMode(s),a("toolsOverlay"))}),Da(Ra(n),"setToolMode",function(e){"miscTools"===n.props.toolGroup?Bi.setToolMode(Oa):Bi.setToolMode(e)}),n.state={toolName:e.toolNames[0]},n}var n,o,r;return 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&&Ma(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=e.activeToolName!==this.props.activeToolName,n=e.toolNames.indexOf(e.activeToolName)>-1,o=this.props.toolNames.indexOf(this.props.activeToolName)>-1,r=e.toolNames.length!==this.props.toolNames.length;t&&o&&this.setState({toolName:this.props.activeToolName}),r&&!this.props.toolNames.includes(this.state.toolName)&&this.setState({toolName:this.props.toolNames[0]}),r&&!n&&o&&(this.setState({toolName:this.props.activeToolName}),this.props.setActiveToolGroup(this.props.toolGroup))}},{key:"render",value:function(){var e=this.props,t=e.mediaQueryClassName,n=e.dataElement,o=e.toolButtonObjects,r=e.isActive,i=e.toolNames,a=e.iconColor,s=e.title,u=i.every(function(e){return Bi.getTool(e).disabled}),c=this.state.toolName,f=this.props.img?this.props.img:o[c].img,d=r&&!this.props.img&&a?pa(c)[a]&&pa(c)[a].toHexString():"",p=["ToolGroupButton",void 0===this.props.img?"down-arrow":""].join(" ").trim();return u?null:l.a.createElement(fa,{title:s,className:p,mediaQueryClassName:t,isActive:r,onClick:this.onClick,dataElement:n,img:f,color:d})}}])&&ka(n.prototype,o),r&&ka(n,r),t}();Da(La,"propTypes",{activeToolName:x.a.string.isRequired,toolGroup:x.a.string.isRequired,mediaQueryClassName:x.a.string.isRequired,dataElement:x.a.string.isRequired,img:x.a.string,title:x.a.string,toolNames:x.a.arrayOf(x.a.string),toolButtonObjects:x.a.object,openElement:x.a.func.isRequired,toggleElement:x.a.func.isRequired,closeElement:x.a.func.isRequired,setActiveToolGroup:x.a.func.isRequired,isActive:x.a.bool.isRequired,iconColor:x.a.oneOf(["TextColor","StrokeColor","FillColor"])});var ja=we(function(e,t){return{isActive:hr.getActiveToolGroup(e)===t.toolGroup,activeToolName:hr.getActiveToolName(e),toolNames:hr.getToolNamesByGroup(e,t.toolGroup),toolButtonObjects:hr.getToolButtonObjects(e),iconColor:hr.getIconColor(e,va(hr.getActiveToolName(e)))}},{openElement:Ii.openElement,toggleElement:Ii.toggleElement,closeElement:Ii.closeElement,setActiveToolGroup:Ii.setActiveToolGroup})(La),Na=we(function(e,t){return{className:t.className||"ToggleElementButton",isActive:hr.isElementActive(e,t)}},function(e,t){return{onClick:function(){e(Ii.toggleElement(t.element))}}})(fa),za=we(function(){return{className:"ActionButton"}},function(e,t){return{onClick:function(){t.onClick(e)}}})(fa);function Ia(e){return(Ia="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 Fa(){return(Fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Va(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ga=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ia(t)&&"function"!=typeof t?Wa(e):t}(this,Ua(t).call(this,e)),Va(Wa(n),"update",function(e){e?n.setState({activeState:e}):n.forceUpdate()}),Va(Wa(n),"onClick",function(){var e=n.state.activeState,t=n.props,o=t.states,r=t.dispatch;n.props.states[e].onClick(n.update,o[e],r)}),n.state={activeState:n.props.initialState},n}var n,o,r;return 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&&Ha(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props.mount;e&&e(this.update)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.didUpdate,r=n.states;o&&o(e,this.props,r[t.activeState],r[this.state.activeState],this.update)}},{key:"componentWillUnmount",value:function(){var e=this.props.unmount;e&&e()}},{key:"render",value:function(){var e=this.state.activeState,t=this.props.states,n=t[e],o=n.title,r=n.img,i=n.getContent,a=n.isActive,s=i?i(t[e]):"",u=["StatefulButton",t[e].className?t[e].className:""].join(" ").trim();return l.a.createElement(fa,Fa({},this.props,{title:o,className:u,isActive:a&&a(this.props),img:r,label:s,onClick:this.onClick}))}}])&&Ba(n.prototype,o),r&&Ba(n,r),t}();Va(Ga,"propTypes",{dispatch:x.a.func,initialState:x.a.string.isRequired,mount:x.a.func.isRequired,unmount:x.a.func,didUpdate:x.a.func,states:x.a.shape({activeState:x.a.shape({img:x.a.string,label:x.a.string,onClick:x.a.func.isRequired,title:x.a.string.isRequired,getContent:x.a.func.isRequired}),AnotherState:x.a.shape({img:x.a.string,label:x.a.string,onClick:x.a.func.isRequired,title:x.a.string.isRequired,getContent:x.a.func.isRequired})})});var qa=we(function(e,t){return{isOpen:hr.isElementOpen(e,t.dataElement),openElements:hr.getOpenElements(e)}})(Ga);n(487);function $a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ya(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ka={className:x.a.string,dataElement:x.a.string,display:x.a.string,render:x.a.func.isRequired,mediaQueryClassName:x.a.string},Za=function(e){var t,n=e.className,o=void 0===n?"CustomElement":n,r=e.dataElement,i=e.display,s=e.render,u=e.mediaQueryClassName,c=Ya(Object(a.useState)(null),2),f=c[0],d=c[1],p=Object(a.useRef)(),h=Oe(function(e){return hr.isElementDisabled(e,r)});return Object(a.useEffect)(function(){if(!h){var e=s();!function(e){try{return e instanceof window.Element||e instanceof window.parent.Element}catch(e){return!1}}(e)?!function(e){return l.a.isValidElement(e)}(e)?console.warn("The object returned by the render function does not seem to be either a DOM element or a React Component"):d(e):p.current.appendChild(e)}},[h,s]),h?null:l.a.createElement("div",{className:Hi()((t={},$a(t,o,!!o),$a(t,u,!!u),t)),ref:p,"data-element":r,style:{display:i}},f)};Za.propTypes=Ka;var Qa=Za,Xa={signatureToolButton:{initialState:"newSignature",mount:function(e){var t=Bi.getTool("AnnotationCreateSignature");t.on("saveDefault.sigTool",function(){e("defaultSignature")}),t.on("noDefaultSignatures",function(){e("newSignature")})},didUpdate:function(e,t,n,o,r){e.openElements!==t.openElements&&r()},unmount:function(){var e=Bi.getTool("AnnotationCreateSignature");e.off("saveDefault.sigTool"),e.off("noDefaultSignatures")},states:{newSignature:{img:"ic_annotation_signature_black_24px",onClick:function(e,t,n){n(Ii.openElement("signatureModal"))},title:"annotation.signature",isActive:function(e){var t=e.openElements;return t.signatureModal||t.signatureOverlay}},defaultSignature:{img:"ic_annotation_signature_black_24px",onClick:function(e,t,n){n(Ii.toggleElement("signatureOverlay"))},title:"annotation.signature",isActive:function(e){return e.openElements.signatureOverlay},className:"down-arrow"}}}};n(488);function Ja(e){return(Ja="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 el(){return(el=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function tl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nl(e,t){return!t||"object"!==Ja(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ol(e){return(ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rl(e,t){return(rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var il=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nl(this,ol(t).apply(this,arguments))}var n,o,r;return 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&&rl(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){return l.a.createElement("div",{className:"HeaderItems"},this.props.items.map(function(e,t){var n=e.type,o=e.dataElement,r=e.hidden,i=r?r.map(function(e){return"hide-in-".concat(e)}).join(" "):"".concat(e.className||""),a="".concat(n,"-").concat(o||t);switch(n){case"toolButton":return l.a.createElement(Ta,el({key:a,mediaQueryClassName:i},e));case"toolGroupButton":return l.a.createElement(ja,el({key:a,mediaQueryClassName:i},e));case"toggleElementButton":return l.a.createElement(Na,el({key:a,mediaQueryClassName:i},e));case"actionButton":return l.a.createElement(za,el({key:a,mediaQueryClassName:i},e));case"statefulButton":var s=Xa[o]||{};return l.a.createElement(qa,el({key:a,mediaQueryClassName:i},e,s));case"customElement":return l.a.createElement(Qa,el({key:a,mediaQueryClassName:i},e));case"spacer":case"divider":return l.a.createElement("div",{key:a,className:"".concat(n," ").concat(i)})}}))}}])&&tl(n.prototype,o),r&&tl(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(il,"propTypes",{items:x.a.arrayOf(x.a.object).isRequired});var al=il,ll=function(e,t){return[e,t.isOpen?"open":"closed"].join(" ").trim()};n(489);function sl(e){return(sl="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 ul(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function cl(e,t){return!t||"object"!==sl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fl(e){return(fl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dl(e,t){return(dl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cl(this,fl(t).apply(this,arguments))}var n,o,r;return 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&&dl(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.activeHeaderItems,o=ll("Header",this.props);return t?null:l.a.createElement("div",{className:o,"data-element":"header"},l.a.createElement(al,{items:n}))}}])&&ul(n.prototype,o),r&&ul(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(pl,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,activeHeaderItems:x.a.array.isRequired});var hl=we(function(e){return{isDisabled:hr.isElementDisabled(e,"header"),isOpen:hr.isElementOpen(e,"header"),activeHeaderItems:hr.getActiveHeaderItems(e)}})(pl);function ml(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var vl=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};var gl,yl,bl=(void 0===gl&&(gl=0),function(){return++gl}),wl={},Sl={},_l=["touchstart","touchmove"],El="ignore-react-onclickoutside";function xl(e,t){var n=null;return-1!==_l.indexOf(t)&&yl&&(n={passive:!e.props.preventDefault}),n}var Cl=function(e,t){var n,o,r=e.displayName||e.name||"Component";return o=n=function(n){var o,i;function l(e){var o;return(o=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof o.__clickOutsideHandlerProp){var t=o.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else o.__clickOutsideHandlerProp(e)},o.__getComponentNode=function(){var e=o.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(s.findDOMNode)(e)},o.enableOnClickOutside=function(){if("undefined"!=typeof document&&!Sl[o._uid]){void 0===yl&&(yl=vl()),Sl[o._uid]=!0;var e=o.props.eventTypes;e.forEach||(e=[e]),wl[o._uid]=function(e){var t;null!==o.componentNode&&(o.props.preventDefault&&e.preventDefault(),o.props.stopPropagation&&e.stopPropagation(),o.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(ml(e,t,n))return!0;e=e.parentNode}return e}(e.target,o.componentNode,o.props.outsideClickIgnoreClass)===document&&o.__outsideClickHandler(e))},e.forEach(function(e){document.addEventListener(e,wl[o._uid],xl(o,e))})}},o.disableOnClickOutside=function(){delete Sl[o._uid];var e=wl[o._uid];if(e&&"undefined"!=typeof document){var t=o.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,xl(o,t))}),delete wl[o._uid]}},o.getRef=function(e){return o.instanceRef=e},o._uid=bl(),o}i=n,(o=l).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var u=l.prototype;return u.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},u.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},u.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},u.componentWillUnmount=function(){this.disableOnClickOutside()},u.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(a.createElement)(e,n)},l}(a.Component),n.displayName="OnClickOutside("+r+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:El,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o};n(490);function Tl(e){return(Tl="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 Ol(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Pl(e,t){return!t||"object"!==Tl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kl(e){return(kl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Al(e,t){return(Al=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pl(this,kl(t).apply(this,arguments))}var n,o,r;return 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&&Al(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.className,o=e.dataElement,r=e.children;return t?null:l.a.createElement("div",{className:n,"data-element":o},r)}}])&&Ol(n.prototype,o),r&&Ol(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Rl,"propTypes",{isDisabled:x.a.bool,className:x.a.string.isRequired,dataElement:x.a.string.isRequired,children:x.a.node});var Ml=we(function(e,t){return{isDisabled:hr.isElementDisabled(e,t.dataElement)}})(Rl),Dl=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",o=document.querySelector("[data-element=".concat(e,"]")),r=0,i="auto";if(!o)return{left:-9999,right:i};var a=o.getBoundingClientRect(),l=a.left,s=a.right,u=a.width,c=t.current.getBoundingClientRect(),f=c.width;if("left"===n)if(l+f>window.innerWidth){var d=16;r="auto",i=d}else r=l,i="auto";else if("center"===n)if(l+(f+u)/2>window.innerWidth){var p=16;r="auto",i=p}else r=l+u/2-f/2,i="auto";else if(s-f<0){var h=16;i="auto",r=h}else i="auto",r=l-(f-u);return{left:r,right:i}},Ll=function(){var e=Bi.getZoom();if(e!==sn()){var t=e+Nl(e);Il(Math.min(t,sn()))}},jl=function(){var e=Bi.getZoom();if(e!==ln()){var t=e-Nl(e);Il(Math.max(t,ln()))}},Nl=function(e){var t=Object.keys(un).find(function(t){return zl(e,un[t])});return parseFloat(t)},zl=function(e,t){return null===t[0]?e<=t[1]:null===t[1]?e>=t[0]:e>=t[0]&&e<=t[1]},Il=function(e){var t=Bi.getZoom(),n=Fl(e/t),o=n.x,r=n.y;Bi.zoomTo(e,o,r)},Fl=function(e){var t=document.getElementsByClassName("DocumentContainer")[0],n=document.getElementsByClassName("document")[0],o=window.innerWidth/2,r=window.innerHeight/2;return{x:(o+t.scrollLeft-n.offsetLeft)*e-o+t.offsetLeft,y:(r+t.scrollTop-n.offsetTop)*e-r+t.offsetTop}},Bl=[{displayMode:"Single",pageTransition:"default",layout:"single"},{displayMode:"Continuous",pageTransition:"continuous",layout:"single"},{displayMode:"Facing",pageTransition:"default",layout:"double"},{displayMode:"FacingContinuous",pageTransition:"continuous",layout:"double"},{displayMode:"CoverFacing",pageTransition:"default",layout:"cover"},{displayMode:"Cover",pageTransition:"continuous",layout:"cover"}];n(491);function Ul(e){return(Ul="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 Wl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Hl(e){return(Hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gl(e,t){return(Gl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $l=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==Ul(t)&&"function"!=typeof t?Vl(e):t}(this,(e=Hl(t)).call.apply(e,[this].concat(r))),ql(Vl(n),"overlay",l.a.createRef()),ql(Vl(n),"state",{left:0,right:"auto"}),ql(Vl(n),"handleWindowResize",function(){n.setState(Dl("viewControlsButton",n.overlay))}),ql(Vl(n),"handleClickOutside",function(e){"viewControlsButton"===e.target.getAttribute("data-element")||n.props.closeElements(["viewControlsOverlay"])}),ql(Vl(n),"handleClick",function(e,t){var n=Bl.find(function(n){return n.pageTransition===e&&n.layout===t});Bi.setDisplayMode(n.displayMode)}),n}var n,o,r;return 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&&Gl(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&(this.props.closeElements(["groupOverlay","searchOverlay","menuOverlay","toolsOverlay","toolStylePopup","signatureOverlay","zoomOverlay","redactionOverlay"]),this.setState(Dl("viewControlsButton",this.overlay)))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isDisabled,o=t.displayMode,r=t.fitMode,i=t.totalPages,a=t.t,s=this.state,u=s.left,c=s.right,f=Bl.find(function(e){return e.displayMode===o}),d=f.pageTransition,p=f.layout,h=ll("Overlay ViewControlsOverlay",this.props);return n?null:l.a.createElement("div",{className:h,"data-element":"viewControlsOverlay",style:{left:u,right:c},ref:this.overlay},i<1e3&&l.a.createElement(Ml,{className:"row",dataElement:"pageTransitionButtons"},l.a.createElement("div",{className:"type"},a("option.displayMode.pageTransition")),l.a.createElement(fa,{title:"option.pageTransition.default",dataElement:"defaultPageTransitionButton",img:"ic_view_mode_single_black_24px",onClick:function(){return e.handleClick("default",p)},isActive:"default"===d}),l.a.createElement(fa,{title:"option.pageTransition.continuous",dataElement:"continuousPageTransitionButton",img:"ic_view_mode_continuous_black_24px",onClick:function(){return e.handleClick("continuous",p)},isActive:"continuous"===d})),l.a.createElement(Ml,{className:"row",dataElement:"layoutButtons"},l.a.createElement("div",{className:"type"},a("option.displayMode.layout")),l.a.createElement(fa,{title:"option.layout.single",dataElement:"singleLayoutButton",img:"ic_view_mode_single_black_24px",onClick:function(){return e.handleClick(d,"single")},isActive:"single"===p}),l.a.createElement(fa,{title:"option.layout.double",dataElement:"doubleLayoutButton",img:"ic_view_mode_facing_black_24px",onClick:function(){return e.handleClick(d,"double")},isActive:"double"===p}),l.a.createElement(fa,{title:"option.layout.cover",dataElement:"coverLayoutButton",img:"ic_view_mode_cover_black_24px",onClick:function(){return e.handleClick(d,"cover")},isActive:"cover"===p})),l.a.createElement(Ml,{className:"row",dataElement:"rotateButtons"},l.a.createElement("div",{className:"type"},a("action.rotate")),l.a.createElement(za,{dataElement:"rotateCounterClockwiseButton",title:"action.rotateCounterClockwise",img:"ic_rotate_left_black_24px",onClick:Bi.rotateCounterClockwise}),l.a.createElement(za,{dataElement:"rotateClockwiseButton",title:"action.rotateClockwise",img:"ic_rotate_right_black_24px",onClick:Bi.rotateClockwise})),l.a.createElement(Ml,{className:"row hide-in-desktop hide-in-tablet",dataElement:"fitButtons"},l.a.createElement("div",{className:"type"},a("action.fit")),l.a.createElement(fa,{title:"action.fitToWidth",dataElement:"fitToWidthButton",img:"ic_fit_width_black_24px",onClick:Bi.fitToWidth,isActive:"fitWidth"===r}),l.a.createElement(fa,{title:"action.fitToPage",dataElement:"fitToPageButton",img:"ic_fit_page_black_24px",onClick:Bi.fitToPage,isActive:"fitPage"===r})),l.a.createElement(Ml,{className:"row hide-in-desktop hide-in-tablet",dataElement:"zoomButtons"},l.a.createElement("div",{className:"type"},a("action.zoom")),l.a.createElement(za,{dataElement:"zoomInButton",title:"action.zoomIn",img:"ic_zoom_in_black_24px",onClick:Ll}),l.a.createElement(za,{dataElement:"zoomOutButton",title:"action.zoomOut",img:"ic_zoom_out_black_24px",onClick:jl})))}}])&&Wl(n.prototype,o),r&&Wl(n,r),t}();ql($l,"propTypes",{totalPages:x.a.number.isRequired,displayMode:x.a.string.isRequired,fitMode:x.a.string.isRequired,isDisabled:x.a.bool,isOpen:x.a.bool,closeElements:x.a.func.isRequired,t:x.a.func.isRequired});var Yl=we(function(e){return{totalPages:hr.getTotalPages(e),displayMode:hr.getDisplayMode(e),fitMode:hr.getFitMode(e),isDisabled:hr.isElementDisabled(e,"viewControlsOverlay"),isOpen:hr.isElementOpen(e,"viewControlsOverlay")}},{closeElements:Ii.closeElements})(Xe()(Cl($l)));n(492);function Kl(e){return(Kl="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 Zl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ql(e,t){return!t||"object"!==Kl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xl(e){return(Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jl(e,t){return(Jl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var es=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Ql(this,Xl(t).call(this))).inputRef=l.a.createRef(),e}var n,o,r;return 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&&Jl(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.type,o=e.name,r=e.defaultChecked,i=e.onChange,a=e.label;return l.a.createElement(l.a.Fragment,null,l.a.createElement("input",{className:"Input",id:t,ref:this.inputRef,type:n,name:o,onChange:i,defaultChecked:r}),l.a.createElement("label",{className:"Input",htmlFor:t},a))}},{key:"checked",get:function(){return this.inputRef.current.checked},set:function(e){this.inputRef.current.checked=e}}])&&Zl(n.prototype,o),r&&Zl(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(es,"propTypes",{id:x.a.string.isRequired,type:x.a.string.isRequired,name:x.a.string,defaultChecked:x.a.bool,onChange:x.a.func,label:x.a.oneOfType([x.a.string,x.a.object]).isRequired});var ts=es;n(493);function ns(e){return(ns="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 os(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rs(e){return(rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function as(e,t){return(as=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ss=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==ns(t)&&"function"!=typeof t?is(e):t}(this,rs(t).call(this)),ls(is(e),"handleClickOutside",function(t){var n=e.props,o=n.closeElements,r=n.isSearchPanelOpen,i="searchButton"===t.target.getAttribute("data-element");r||i||o(["searchOverlay"])}),ls(is(e),"clearSearchResults",function(){Bi.clearSearchResults(),e.props.resetSearch()}),ls(is(e),"executeFullSearch",function(){var t=e.props,n=t.searchValue,o=t.addResult,r=t.setIsSearching,i=t.setNoResult,a=t.setActiveResultIndex,l=e.getSearchMode(!0),s=-1,u=!0,c=!0;r(!0),Bi.textSearchInit(n,l,!0,function(t){var n=t.resultCode===window.XODText.ResultCode.e_found,l=t.resultCode===window.XODText.ResultCode.e_done;n&&(s++,c=!1,o(t),Bi.displayAdditionalSearchResult(t),u&&e.isActiveResult(t)&&(u=!1,a(s),Bi.setActiveSearchResult(t))),l&&(r(!1),i(c),e.runSearchListeners())})}),ls(is(e),"getSearchMode",function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.props,o=n.isCaseSensitive,r=n.isWholeWord,i=n.isWildcard,a=n.isRegex,l=n.isSearchUp,s=n.isAmbientString,u=Bi.getSearchMode(),c=u.e_case_sensitive,f=u.e_whole_word,d=u.e_wild_card,p=u.e_regex,h=u.e_page_stop,m=u.e_highlight,v=u.e_search_up,g=u.e_ambient_string,y=h|m;return o&&(y|=c),r&&(y|=f),i&&(y|=d),a&&(y|=p),l&&!t&&(y|=v),(s||t)&&(y|=g),y}),ls(is(e),"isActiveResult",function(t){var n=e.props.activeResult;if(!n)return!0;var o=n.page_num===t.page_num,r=Object.values(n.quads[0]).toString()===Object.values(t.quads[0]).toString();return o&&r}),ls(is(e),"executeSingleSearch",function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.props,o=n.searchValue,r=n.setActiveResult,i=n.setIsSearching,a=n.addResult,l=n.resetSearch,s=t?e.getSearchMode()|Bi.getSearchMode().e_search_up:e.getSearchMode(),u=!1;l();var c=function(t){var n=t.resultCode===window.XODText.ResultCode.e_found,o=t.resultCode===window.XODText.ResultCode.e_done;n&&(a(t),Bi.displaySearchResult(t),r(t),e.runSearchListeners()),o&&Bi.getDocumentViewer().trigger("endOfDocumentResult",!0),i(!1)};i(!0),Bi.textSearchInit(o,s,u,c)}),ls(is(e),"runSearchListeners",function(){var t=e.props,n=t.searchValue,o=t.searchListeners,r=t.isCaseSensitive,i=t.isWholeWord,a=t.isWildcard,l=t.isRegex,s=t.isAmbientString,u=t.isSearchUp,c=t.results;o.forEach(function(e){e(n,{caseSensitive:r,wholeWord:i,wildcard:a,regex:l,searchUp:u,ambientString:s},c)})}),ls(is(e),"onTransitionEnd",function(){e.props.isOpen&&e.searchTextInput.current.focus()}),ls(is(e),"onChange",function(t){var n=e.props,o=n.isSearchPanelOpen,r=n.setSearchValue,i=t.target.value;r(i),i.trim()?o?(e.clearSearchResults(),e.executeDebouncedFullSearch()):e.executeDebouncedSingleSearch():e.clearSearchResults()}),ls(is(e),"onKeyDown",function(t){var n=!e.props.isSearchPanelDisabled&&(t.metaKey||t.ctrlKey)&&13===t.which;t.shiftKey&&13===t.which?e.onClickPrevious(t):n?e.onClickOverflow(t):13===t.which&&e.onClickNext(t)}),ls(is(e),"onClickNext",function(t){t.preventDefault();var n=e.props,o=n.isSearchPanelOpen,r=n.activeResultIndex,i=n.results,a=n.setActiveResultIndex;if(o){if(0===i.length)return;var l=r===i.length-1?0:r+1;a(l),Bi.setActiveSearchResult(i[l])}else e.executeSingleSearch()}),ls(is(e),"onClickPrevious",function(t){t.preventDefault();var n=e.props,o=n.isSearchPanelOpen,r=n.activeResultIndex,i=n.results,a=n.setActiveResultIndex;if(o){if(0===i.length)return;var l=0===r?i.length-1:r-1;a(l),Bi.setActiveSearchResult(i[l])}else{e.executeSingleSearch(!0)}}),ls(is(e),"onClickOverflow",function(){var t=e.props,n=t.activeResult,o=t.openElement,r=t.setActiveResult;o("searchPanel"),e.clearSearchResults(),r(n),e.executeFullSearch()}),ls(is(e),"onChangeCaseSensitive",function(t){e.props.setCaseSensitive(t.target.checked),e.clearSearchResults(),e.executeDebouncedFullSearch()}),ls(is(e),"onChangeWholeWord",function(t){e.props.setWholeWord(t.target.checked),e.clearSearchResults(),e.executeDebouncedFullSearch()}),e.searchTextInput=l.a.createRef(),e.wholeWordInput=l.a.createRef(),e.caseSensitiveInput=l.a.createRef(),e.executeDebouncedSingleSearch=_.debounce(e.executeSingleSearch,300),e.executeDebouncedFullSearch=_.debounce(e.executeFullSearch,300),e}var n,o,r;return 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&&as(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){this.props.isProgrammaticSearch?(this.props.isSearchPanelOpen&&this.props.closeElement("searchPanel"),this.props.openElement("searchOverlay"),this.clearSearchResults(),this.executeSingleSearch(),this.props.setIsProgrammaticSearch(!1)):this.props.isProgrammaticSearchFull&&(this.props.openElements(["searchOverlay","searchPanel"]),this.caseSensitiveInput.current.checked=this.props.isCaseSensitive,this.wholeWordInput.current.checked=this.props.isWholeWord,this.clearSearchResults(),this.executeFullSearch(),this.props.setIsProgrammaticSearchFull(!1)),!e.isOpen&&this.props.isOpen&&(this.props.closeElements(["toolsOverlay","viewControlsOverlay","menuOverlay","toolStylePopup","signatureOverlay","zoomOverlay","redactionOverlay"]),this.searchTextInput.current.focus(),Bi.setToolMode(Oa)),e.isOpen&&!this.props.isOpen&&(this.props.closeElement("searchPanel"),this.clearSearchResults())}},{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.t,o=e.isSearchPanelOpen,r=e.isSearchPanelDisabled,i=e.results,a=e.searchValue,s=e.activeResultIndex;if(t)return null;var u=ll("Overlay SearchOverlay ".concat(o?"transformed":""),this.props);return l.a.createElement("div",{className:u,"data-element":"searchOverlay",onTransitionEnd:this.onTransitionEnd},l.a.createElement("div",{className:"wrapper"},l.a.createElement("div",{className:"main"},l.a.createElement("div",{className:"input-wrapper"},l.a.createElement("input",{ref:this.searchTextInput,type:"text",autoComplete:"off",onChange:this.onChange,onKeyDown:this.onKeyDown,value:a})),l.a.createElement("div",{className:"number-of-results"},o&&l.a.createElement("div",null,"".concat(s+1," / ").concat(i.length))),l.a.createElement("div",{className:"button previous",onClick:this.onClickPrevious},l.a.createElement(aa,{glyph:"ic_chevron_left_black_24px"})),l.a.createElement("div",{className:"button next",onClick:this.onClickNext},l.a.createElement(aa,{glyph:"ic_chevron_right_black_24px"})),l.a.createElement(Zi,{content:"action.showMoreResults"},l.a.createElement("div",{className:"advanced ".concat(o||r?"hidden":""),onClick:this.onClickOverflow},l.a.createElement(aa,{glyph:"ic_overflow_black_24px"})))),l.a.createElement("div",{className:"options ".concat(o?"visible":"")},l.a.createElement(ts,{id:"case-sensitive-option",type:"checkbox",ref:this.caseSensitiveInput,onChange:this.onChangeCaseSensitive,label:n("option.searchPanel.caseSensitive")}),l.a.createElement(ts,{id:"whole-word-option",type:"checkbox",ref:this.wholeWordInput,onChange:this.onChangeWholeWord,label:n("option.searchPanel.wholeWordOnly")}))))}}])&&os(n.prototype,o),r&&os(n,r),t}();ls(ss,"propTypes",{isOpen:x.a.bool,isDisabled:x.a.bool,isSearchPanelOpen:x.a.bool,isSearchPanelDisabled:x.a.bool,searchValue:x.a.string,isCaseSensitive:x.a.bool,isWholeWord:x.a.bool,isSearchUp:x.a.bool,isAmbientString:x.a.bool,isWildcard:x.a.bool,isRegex:x.a.bool,results:x.a.arrayOf(x.a.object),activeResult:x.a.object,activeResultIndex:x.a.number,isProgrammaticSearch:x.a.bool,isProgrammaticSearchFull:x.a.bool,searchListeners:x.a.arrayOf(x.a.func),openElement:x.a.func.isRequired,openElements:x.a.func.isRequired,closeElement:x.a.func.isRequired,closeElements:x.a.func.isRequired,setSearchValue:x.a.func.isRequired,setActiveResult:x.a.func.isRequired,setActiveResultIndex:x.a.func.isRequired,setIsSearching:x.a.func.isRequired,resetSearch:x.a.func.isRequired,addResult:x.a.func.isRequired,setCaseSensitive:x.a.func.isRequired,setWholeWord:x.a.func.isRequired,setNoResult:x.a.func.isRequired,setIsProgrammaticSearch:x.a.func.isRequired,setIsProgrammaticSearchFull:x.a.func.isRequired,t:x.a.func.isRequired});var us=we(function(e){return{isSearchPanelOpen:hr.isElementOpen(e,"searchPanel"),isSearchPanelDisabled:hr.isElementDisabled(e,"searchPanel"),searchValue:hr.getSearchValue(e),isCaseSensitive:hr.isCaseSensitive(e),isWholeWord:hr.isWholeWord(e),isAmbientString:hr.isAmbientString(e),isSearchUp:hr.isSearchUp(e),isWildcard:hr.isWildcard(e),isRegex:hr.isRegex(e),results:hr.getResults(e),activeResult:hr.getActiveResult(e),activeResultIndex:hr.getActiveResultIndex(e),isProgrammaticSearch:hr.isProgrammaticSearch(e),isProgrammaticSearchFull:hr.isProgrammaticSearchFull(e),searchListeners:hr.getSearchListeners(e),isDisabled:hr.isElementDisabled(e,"searchOverlay"),isOpen:hr.isElementOpen(e,"searchOverlay")}},{openElement:Ii.openElement,openElements:Ii.openElements,closeElement:Ii.closeElement,closeElements:Ii.closeElements,setSearchValue:Ii.setSearchValue,setActiveResult:Ii.setActiveResult,setActiveResultIndex:Ii.setActiveResultIndex,setIsSearching:Ii.setIsSearching,resetSearch:Ii.resetSearch,addResult:Ii.addResult,setCaseSensitive:Ii.setCaseSensitive,setWholeWord:Ii.setWholeWord,setNoResult:Ii.setNoResult,setIsProgrammaticSearch:Ii.setIsProgrammaticSearch,setIsProgrammaticSearchFull:Ii.setIsProgrammaticSearchFull})(Xe()(Cl(ss))),cs=function(e,t){var n=Bi.getPrintablePDF();if(n){var o=window.open("","_blank");o.document.write(It.t("message.preparingToPrint")),n.then(function(e){o.location.href=e.url})}else t?(e(Ii.openElement("loadingModal")),fs().then(function(){e(Ii.closeElement("loadingModal"))})):e(Ii.openElement("printModal"))},fs=function(){var e=Bi.exportAnnotations();return new Promise(function(t){Bi.getDocument().getFileData({xfdfString:e,printDocument:!0}).then(function(e){var n=new Uint8Array(e),o=new Blob([n],{type:"application/pdf"});document.getElementById("print-handler").src=URL.createObjectURL(o),t()})})},ds=function(){document.getElementById("file-picker")?document.getElementById("file-picker").click():console.warn("File picker has been disabled.")},ps=function(){if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&(e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT),setTimeout(function(){document.webkitCurrentFullScreenElement||e.webkitRequestFullScreen()},200))}},hs=n(208),ms=function(e,t){var n=t.documentPath,o=void 0===n?"document":n,r=t.filename,i=t.includeAnnotations,a=void 0===i||i,l=t.xfdfData,s=t.externalURL;return new Promise(function(t){var n,i={downloadType:"pdf"},u=Bi.getTool("AnnotationCreateFreeHand").complete(),c=a?Bi.getAnnotationsLoadedPromise():Promise.resolve();Promise.all([c,u]).then(function(){a&&(i.xfdfString=l||Bi.exportAnnotations());e(Ii.openElement("loadingModal"));var u=function(e,t){return e&&e.slice(-t.length).toLowerCase()!==t&&(e+=t),e}(r||o.split("/").slice(-1)[0],".pdf"),c=Bi.getDocument(),f=s?Promise.resolve({url:s}):c.getDownloadLink({filename:u});if(f){var d=document.getElementById("download-iframe")||document.createElement("iframe");d.width=0,d.height=0,d.id="download-iframe",d.src=null,document.body.appendChild(d),f.then(function(t){d.src=t.url,e(Ii.closeElement("loadingModal")),$(document).trigger("finishedSavingPDF")})}else c.getFileData(i).then(function(o){var r=new Uint8Array(o);n=Zt?new Blob([r],{type:"application/pdf"}):new File([r],u,{type:"application/pdf"}),Object(hs.saveAs)(n,u),e(Ii.closeElement("loadingModal")),$(document).trigger("finishedSavingPDF"),t()},function(t){throw e(Ii.closeElement("loadingModal")),new Error(t.message)})})})};n(494);function vs(e){return(vs="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 gs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ws(e,t){return(ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _s=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==vs(t)&&"function"!=typeof t?bs(e):t}(this,ys(t).call(this)),Ss(bs(e),"handlePrintButtonClick",function(){var t=e.props,n=t.dispatch,o=t.isEmbedPrintSupported;cs(n,o)}),Ss(bs(e),"handleClickOutside",function(t){"menuButton"===t.target.getAttribute("data-element")||e.props.closeElements(["menuOverlay"])}),Ss(bs(e),"downloadDocument",function(){var t=e.props,n=t.dispatch,o=t.documentPath,r=t.documentFilename;ms(n,{documentPath:o,filename:r})}),e.overlay=l.a.createRef(),e.state={left:0,right:"auto"},e}var n,o,r;return 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&&ws(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&(this.props.closeElements(["toolsOverlay","viewControlsOverlay","searchOverlay","toolStylePopup","signatureOverlay","zoomOverlay","redactionOverlay"]),this.setState(Dl("menuButton",this.overlay)))}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.right,o=this.props,r=o.isDisabled,i=o.isDownloadable,a=o.isFullScreen,s=o.t;if(r)return null;var u=ll("Overlay MenuOverlay",this.props);return l.a.createElement("div",{className:u,"data-element":"menuOverlay",style:{left:t,right:n},ref:this.overlay},l.a.createElement(za,{dataElement:"filePickerButton",label:s("action.openFile"),onClick:ds}),!Qt&&l.a.createElement(za,{dataElement:"fullScreenButton",label:s(a?"action.exitFullscreen":"action.enterFullscreen"),onClick:ps}),i&&l.a.createElement(za,{dataElement:"downloadButton",label:s("action.download"),onClick:this.downloadDocument}),l.a.createElement(za,{dataElement:"printButton",label:s("action.print"),onClick:this.handlePrintButtonClick,hidden:["mobile"]}))}}])&&gs(n.prototype,o),r&&gs(n,r),t}();Ss(_s,"propTypes",{documentPath:x.a.string,documentFilename:x.a.string,isDownloadable:x.a.bool,isEmbedPrintSupported:x.a.bool,isFullScreen:x.a.bool,isDisabled:x.a.bool,isOpen:x.a.bool,closeElements:x.a.func.isRequired,dispatch:x.a.func.isRequired,t:x.a.func.isRequired});var Es=we(function(e){return{documentPath:hr.getDocumentPath(e),documentFilename:e.document.filename,isDownloadable:hr.getDocumentType(e)!==In,isEmbedPrintSupported:hr.isEmbedPrintSupported(e),isFullScreen:hr.isFullScreen(e),isDisabled:hr.isElementDisabled(e,"menuOverlay"),isOpen:hr.isElementOpen(e,"menuOverlay")}},function(e){return{dispatch:e,closeElements:function(t){return e(Ii.closeElements(t))}}})(Xe()(Cl(_s))),xs=function(e){return function(t){return Bi.isWebViewerServerDocument()?Cs(e,t):Ts(e,t)}},Cs=function(e,t){return Bi.applyRedactions(e).then(function(e){if(e&&e.url)return ms(t,{filename:"redacted.pdf",includeAnnotations:!0,externalURL:e.url});console.warn("WebViewer Server did not return a valid result")})},Ts=function(e,t){var n={message:It.t("option.redaction.warningPopupMessage"),title:It.t("option.redaction.warningPopupTitle"),confirmBtnText:It.t("action.apply"),onConfirm:function(){return Bi.applyRedactions(e).catch(function(e){return on(e)}),Promise.resolve()}};return t(Ii.showWarningMessage(n))};n(495);function Os(e){return(Os="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 Ps(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ks(e){return(ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function As(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rs(e,t){return(Rs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ds=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Os(t)&&"function"!=typeof t?As(e):t}(this,ks(t).call(this)),Ms(As(e),"handleClickOutside",function(t){var n=document.querySelector('[data-element="toolStylePopup"]'),o=document.querySelector('[data-element="header"]'),r=null==n?void 0:n.contains(t.target),i=null==o?void 0:o.contains(t.target);!Gt()||r||i||e.props.closeElements(["redactionOverlay"])}),Ms(As(e),"handleApplyButtonClick",function(){var t=e.props,n=t.closeElements,o=t.applyRedactions;n(["redactionOverlay"]),o()}),Ms(As(e),"handleCloseClick",function(){Bi.setToolMode(Oa),e.props.closeElements(["toolStylePopup","redactionOverlay"])}),e.overlay=l.a.createRef(),e.state={left:0,right:"auto"},e}var n,o,r;return 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&&Rs(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){if(!e.isOpen&&this.props.isOpen){var t=this.props,n=t.closeElements,o=t.setActiveToolGroup;n(["menuOverlay","toolsOverlay","viewControlsOverlay","searchOverlay","toolStylePopup"]),Bi.setToolMode("AnnotationCreateRedaction"),o("redactTools"),this.overlay&&this.overlay.current&&this.setState(Dl("redactionButton",this.overlay))}}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.right,o=this.props,r=o.isDisabled,i=o.isOpen;if(r||!i||!Bi.isCreateRedactionEnabled())return null;var a=Bi.isApplyRedactionEnabled(),s=ll("Overlay RedactionOverlay",this.props);return l.a.createElement("div",{className:s,ref:this.overlay,style:{left:t,right:n},"data-element":"redactionOverlay"},l.a.createElement(Ta,{toolName:"AnnotationCreateRedaction"}),a&&l.a.createElement(za,{dataElement:"applyAllButton",title:"action.applyAll",img:"ic_check_black_24px",onClick:this.handleApplyButtonClick}),l.a.createElement("div",{className:"spacer hide-in-desktop"}),l.a.createElement(fa,{className:"close hide-in-desktop",dataElement:"toolsOverlayCloseButton",img:"ic_check_black_24px",onClick:this.handleCloseClick}))}}])&&Ps(n.prototype,o),r&&Ps(n,r),t}();Ms(Ds,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,closeElements:x.a.func.isRequired,applyRedactions:x.a.func.isRequired,setActiveToolGroup:x.a.func.isRequired});var Ls=we(function(e){return{isDisabled:hr.isElementDisabled(e,"redactionOverlay"),isOpen:hr.isElementOpen(e,"redactionOverlay")}},function(e){return{dispatch:e,setActiveToolGroup:function(t){return e(Ii.setActiveToolGroup(t))},applyRedactions:function(){return e(xs())},closeElements:function(t){return e(Ii.closeElements(t))},openElements:function(t){return e(Ii.openElements(t))}}})(Xe()(Cl(Ds)));n(496);function js(e){return(js="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 Ns(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function zs(e){return(zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fs(e,t){return(Fs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Us=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==js(t)&&"function"!=typeof t?Is(e):t}(this,zs(t).call(this,e)),Bs(Is(n),"setInputWidth",function(){n.textInput.current.style.width="".concat(11.5*n.props.totalPages.toString().length,"px")}),Bs(Is(n),"onClick",function(){Qt?setTimeout(function(){n.textInput.current.setSelectionRange(0,9999)},0):n.textInput.current.select()}),Bs(Is(n),"onChange",function(e){e.target.value.length>n.props.totalPages.toString().length||n.setState({input:e.target.value})}),Bs(Is(n),"onSubmit",function(e){e.preventDefault();var t=n.state.input;if(""===t||n.props.pageLabels.includes(t)){var o=n.props.pageLabels.indexOf(t)+1;Bi.setCurrentPage(o)}else n.textInput.current.blur()}),Bs(Is(n),"onBlur",function(){var e=n.props,t=e.currentPage,o=e.pageLabels;n.setState({input:o[t-1]})}),n.textInput=l.a.createRef(),n.state={input:"",isCustomPageLabels:!1},n}var n,o,r;return 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&&Fs(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){if(e.pageLabels!==this.props.pageLabels){var t=this.props.pageLabels.some(function(e,t){return e!=="".concat(t+1)});this.setState({isCustomPageLabels:t})}e.currentPage===this.props.currentPage&&e.pageLabels===this.props.pageLabels||this.setState({input:this.props.pageLabels[this.props.currentPage-1]}),e.totalPages===this.props.totalPages||this.props.isDisabled||this.setInputWidth(),e.isDisabled&&!this.props.isDisabled&&this.setInputWidth()}},{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.isLeftPanelOpen,o=e.isLeftPanelDisabled,r=e.currentPage,i=e.totalPages;if(t)return null;var a=ll("Overlay PageNavOverlay ".concat(n&&!o?"shifted":""),this.props);return l.a.createElement("div",{className:a,"data-element":"pageNavOverlay",onClick:this.onClick},l.a.createElement("form",{onSubmit:this.onSubmit,onBlur:this.onBlur},l.a.createElement("input",{ref:this.textInput,type:"text",value:this.state.input,onChange:this.onChange}),this.state.isCustomPageLabels?" (".concat(r,"/").concat(i,")"):" / ".concat(i)))}}])&&Ns(n.prototype,o),r&&Ns(n,r),t}();Bs(Us,"propTypes",{isLeftPanelDisabled:x.a.bool,isLeftPanelOpen:x.a.bool,isDisabled:x.a.bool,isOpen:x.a.bool,currentPage:x.a.number,totalPages:x.a.number,pageLabels:x.a.array.isRequired});var Ws=we(function(e){return{isLeftPanelDisabled:hr.isElementDisabled(e,"leftPanel"),isLeftPanelOpen:hr.isElementOpen(e,"leftPanel"),isDisabled:hr.isElementDisabled(e,"pageNavOverlay"),isOpen:hr.isElementOpen(e,"pageNavOverlay"),currentPage:hr.getCurrentPage(e),totalPages:hr.getTotalPages(e),pageLabels:hr.getPageLabels(e)}})(Us);n(497);function Hs(e){return(Hs="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 Vs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gs(e){return(Gs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $s(e,t){return($s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ks=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Hs(t)&&"function"!=typeof t?qs(e):t}(this,Gs(t).call(this)),Ys(qs(e),"handleWindowResize",function(){e.setOverlayPosition()}),Ys(qs(e),"handleClickOutside",function(t){var n=document.querySelector('[data-element="toolStylePopup"]'),o=document.querySelector('[data-element="header"]'),r=null==n?void 0:n.contains(t.target),i=null==o?void 0:o.contains(t.target);!Gt()||r||i||e.props.closeElements(["toolsOverlay"])}),Ys(qs(e),"setOverlayPosition",function(){var t=e.props,n=t.activeToolGroup,o=t.activeHeaderItems.find(function(e){return e.toolGroup===n});o&&e.setState(Dl(o.dataElement,e.overlay))}),Ys(qs(e),"handleCloseClick",function(){var t=e.props,n=t.setActiveToolGroup,o=t.closeElements;Bi.setToolMode(Oa),n(""),o(["toolStylePopup","toolsOverlay"])}),e.overlay=l.a.createRef(),e.state={left:0,right:"auto"},e}var n,o,r;return 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&&$s(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize),this.props.isOpen&&this.setOverlayPosition()}},{key:"componentDidUpdate",value:function(e){var t=e.activeToolGroup!==this.props.activeToolGroup;!e.isOpen&&this.props.isOpen&&(this.props.closeElements(["viewControlsOverlay","searchOverlay","menuOverlay","toolStylePopup","signatureOverlay","zoomOverlay","redactionOverlay"]),this.setOverlayPosition()),t&&this.setOverlayPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.right,o=this.props,r=o.isDisabled,i=o.isOpen,a=o.toolButtonObjects,s=o.activeToolGroup;if(r||!s)return null;var u=Object.keys(a).filter(function(e){return a[e].group===s}),c=ll("Overlay ToolsOverlay",{isOpen:i});return l.a.createElement("div",{className:c,ref:this.overlay,style:{left:t,right:n},"data-element":"toolsOverlay"},u.map(function(e,t){return l.a.createElement(Ta,{key:"".concat(e,"-").concat(t),toolName:e})}),l.a.createElement("div",{className:"spacer hide-in-desktop"}),l.a.createElement(fa,{className:"close hide-in-desktop",dataElement:"toolsOverlayCloseButton",img:"ic_check_black_24px",onClick:this.handleCloseClick}))}}])&&Vs(n.prototype,o),r&&Vs(n,r),t}();Ys(Ks,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,toolButtonObjects:x.a.object,activeHeaderItems:x.a.arrayOf(x.a.object),activeToolGroup:x.a.string,closeElements:x.a.func.isRequired,setActiveToolGroup:x.a.func.isRequired});var Zs=we(function(e){return{isDisabled:hr.isElementDisabled(e,"toolsOverlay"),isOpen:hr.isElementOpen(e,"toolsOverlay"),toolButtonObjects:hr.getToolButtonObjects(e),activeHeaderItems:hr.getActiveHeaderItems(e),activeToolGroup:hr.getActiveToolGroup(e)}},{closeElements:Ii.closeElements,setActiveToolGroup:Ii.setActiveToolGroup})(Cl(Ks)),Qs=function(e){var t={};return["FillColor","StrokeColor","TextColor","Opacity","StrokeThickness","FontSize","Precision","Scale"].forEach(function(n){var o=e[n];null!=o&&(t[n]=e[n])}),"highlight"===e.elementName&&(t.Opacity=null),t},Xs=function(e){for(var t=[],n=0;n<e.length;n++)t.push([]);for(var o=0;o<e.length;o++)for(var r=0;r<e[o].length;r++)t[o][r]=new window.Annotations.Point(e[o][r].x,e[o][r].y);return t};n(498);function Js(e){return(Js="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 eu(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")}()}function tu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nu(e){return(nu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ou(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ru(e,t){return(ru=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var au=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Js(t)&&"function"!=typeof t?ou(e):t}(this,nu(t).call(this,e)),iu(ou(n),"handleClickOutside",function(e){"signatureToolButton"===e.target.getAttribute("data-element")||n.props.closeElement("signatureOverlay")}),iu(ou(n),"handleWindowResize",function(){n.setOverlayPosition()}),iu(ou(n),"setOverlayPosition",function(){var e=Dl("signatureToolButton",n.overlay),t=e.left,o=e.right;n.setState({left:-9999===t?window.innerWidth/2-95:t-95,right:o})}),iu(ou(n),"onSaveDefault",function(e,t,o){var r=eu(n.state.defaultSignatures);r.length<=n.props.maxSignaturesCount&&r.unshift();var i={imgSrc:document.querySelector(".signature-canvas").toDataURL(),paths:Xs(t),styles:Qs(o)};r.push(i),n.setState({defaultSignatures:r})}),iu(ou(n),"onAnnotationChanged",function(e,t,o){if("modify"===o&&1===t.length&&"signature"===ga(t[0])){var r=Qs(t[0]),i=n.state.defaultSignatures.map(function(e){var t=e.paths;return n.signatureTool.initAnnot(),n.signatureTool.setUpSignature(t,r),n.signatureTool.drawAnnot(),{imgSrc:document.querySelector(".signature-canvas").toDataURL(),paths:t,styles:r}});n.setState({defaultSignatures:i})}}),iu(ou(n),"setUpSignature",function(e){n.currentSignatureIndex=e;var t=n.props,o=t.setCursorOverlay,r=t.closeElement,i=t.openElement,a=n.state.defaultSignatures[n.currentSignatureIndex],l=a.paths,s=a.styles;if(Bi.setToolMode("AnnotationCreateSignature"),n.signatureTool.initAnnot(),n.signatureTool.setUpSignature(l,s),r("signatureOverlay"),n.signatureTool.hasLocation())n.signatureTool.addSignature();else{var u=n.signatureTool.getSignaturePreview();o({imgSrc:u.imgSrc,width:u.width,height:u.height}),i("cursorOverlay")}}),iu(ou(n),"deleteDefaultSignature",function(e){var t=n.props,o=t.closeElement,r=t.setCursorOverlay,i=eu(n.state.defaultSignatures),a=n.currentSignatureIndex===e;i.splice(e,1),a&&(n.signatureTool.freeHandAnnot.emptyPaths(),r({}),o("cursorOverlay"),n.currentSignatureIndex=-1),i.length||n.signatureTool.trigger("noDefaultSignatures"),n.setState({defaultSignatures:i})}),iu(ou(n),"openSignatureModal",function(){var e=n.state.defaultSignatures,t=n.props,o=t.openElement,r=t.closeElement,i=t.maxSignaturesCount;e.length<i&&(o("signatureModal"),r("signatureOverlay"))}),n.signatureTool=Bi.getTool("AnnotationCreateSignature"),n.overlay=l.a.createRef(),n.currentSignatureIndex=-1,n.state={defaultSignatures:[],left:0,right:"auto"},n}var n,o,r;return 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&&ru(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){this.signatureTool.on("saveDefault",this.onSaveDefault),Bi.addEventListener("annotationChanged",this.onAnnotationChanged),window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&(this.props.closeElements(["viewControlsOverlay","searchOverlay","menuOverlay","toolsOverlay","zoomOverlay","toolStylePopup"]),this.setOverlayPosition());var t=this.signatureTool.freeHandAnnot;!e.isOpen||this.props.isOpen||this.props.isSignatureModalOpen||!t||t.getPaths().length||this.signatureTool.clearLocation()}},{key:"componentWillUnmount",value:function(){this.signatureTool.off("saveDefault",this.onSaveDefault),Bi.removeEventListener("annotationChanged",this.onAnnotationChanged),window.removeEventListener("resize",this.handleWindowResize)}},{key:"render",value:function(){var e=this,t=this.state,n=t.left,o=t.right,r=t.defaultSignatures,i=this.props,a=i.t,s=i.isDisabled,u=i.maxSignaturesCount,c=ll("Overlay SignatureOverlay",this.props);return s?null:l.a.createElement("div",{className:c,ref:this.overlay,style:{left:n,right:o}},l.a.createElement("div",{className:"default-signatures-container"},r.map(function(t,n){var o=t.imgSrc;return l.a.createElement("div",{className:"default-signature",key:n},l.a.createElement("div",{className:"signature-image",onClick:function(){return e.setUpSignature(n)}},l.a.createElement("img",{src:o})),l.a.createElement(za,{dataElement:"defaultSignatureDeleteButton",img:"ic_delete_black_24px",onClick:function(){return e.deleteDefaultSignature(n)}}))}),l.a.createElement("div",{className:"add-signature".concat(r.length>=u?" disabled":" enabled"),onClick:this.openSignatureModal},a("option.signatureOverlay.addSignature"))))}}])&&tu(n.prototype,o),r&&tu(n,r),t}();iu(au,"propTypes",{isOpen:x.a.bool,isDisabled:x.a.bool,isSignatureModalOpen:x.a.bool,closeElements:x.a.func.isRequired,closeElement:x.a.func.isRequired,openElement:x.a.func.isRequired,setCursorOverlay:x.a.func.isRequired,t:x.a.func.isRequired,maxSignaturesCount:x.a.number.isRequired});var lu=we(function(e){return{isDisabled:hr.isElementDisabled(e,"signatureOverlay"),isOpen:hr.isElementOpen(e,"signatureOverlay"),isSignatureModalOpen:hr.isElementOpen(e,"signatureModal"),maxSignaturesCount:hr.getMaxSignaturesCount(e)}},{closeElements:Ii.closeElements,closeElement:Ii.closeElement,openElement:Ii.openElement,setCursorOverlay:Ii.setCursorOverlay})(Xe()(Cl(au)));n(499);function su(e){return(su="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 uu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function cu(e){return(cu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function du(e,t){return(du=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hu=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==su(t)&&"function"!=typeof t?fu(e):t}(this,cu(t).call(this,e)),pu(fu(n),"bindEventListener",function(e){e.addEventListener("mousemove",n.handleMouseMove),e.addEventListener("mouseleave",n.handleMouseLeave)}),pu(fu(n),"handleMouseMove",function(e){var t=e.clientX,o=e.clientY;if(n.props.isOpen){var r,i,a=n.props.data;if(a)i=t-a.width/2,r=o-a.height/2;else{i=t+10,r=o}n.setState({left:i,top:r})}}),pu(fu(n),"handleMouseLeave",function(){n.setState({left:-9999,top:-9999})}),n.overlay=l.a.createRef(),n.state={top:0,left:0},n}var n,o,r;return 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&&du(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){var e=this,t=Bi.getViewerElement();t?this.bindEventListener(t):Bi.addEventListener("documentLoaded",function(){return e.bindEventListener(Bi.getViewerElement())})}},{key:"componentDidUpdate",value:function(e){"AnnotationCreateSignature"===e.activeToolName&&"AnnotationCreateSignature"!==this.props.activeToolName&&this.props.closeElement("cursorOverlay")}},{key:"render",value:function(){var e=this.state,t=e.top,n=e.left,o=this.props,r=o.isDisabled,i=o.data,a=i.imgSrc,s=i.width,u=i.height,c=ll("Overlay CursorOverlay",this.props);return r||Jt?null:l.a.createElement("div",{className:c,"data-element":"cursorOverlay",style:{touchAction:"none",top:t,left:n,width:s,height:u},ref:this.overlay},a&&l.a.createElement("img",{className:"cursor-image",src:a}))}}])&&uu(n.prototype,o),r&&uu(n,r),t}();pu(hu,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,data:x.a.shape({imgSrc:x.a.string,width:x.a.number,height:x.a.number}),activeToolName:x.a.string,closeElement:x.a.func.isRequired});var mu=we(function(e){return{isDisabled:hr.isElementDisabled(e,"cursorOverlay"),isOpen:hr.isElementOpen(e,"cursorOverlay"),data:hr.getCursorOverlayData(e),activeToolName:hr.getActiveToolName(e)}},{closeElement:Ii.closeElement})(hu);n(500);function vu(e){return(vu="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 gu(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")}()}function yu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function bu(e){return(bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Su(e,t){return(Su=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eu=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==vu(t)&&"function"!=typeof t?wu(e):t}(this,bu(t).call(this,e)),_u(wu(n),"onMouseMove",function(){var e=n.props,t=e.activeToolName,o=e.openElement,r=Bi.getTool(t);n.state.annotation?n.forceUpdate():n.isMeasurementTool(t)&&r.annotation&&n.shouldShowInfo(r.annotation)&&(o("measurementOverlay"),n.setState({annotation:r.annotation}))}),_u(wu(n),"onAnnotationSelected",function(e,t,o){var r=n.props,i=r.openElement,a=r.closeElement;"selected"===o&&1===t.length&&n.isMeasurementAnnotation(t[0])?(n.setState({annotation:t[0]}),i("measurementOverlay")):"deselected"!==o||Bi.isAnnotationSelected(n.state.annotation)||a("measurementOverlay")}),_u(wu(n),"onAnnotationChanged",function(e,t,o){"add"===o&&1===t.length&&t[0]===n.state.annotation&&n.props.closeElement("measurementOverlay"),"modify"===o&&1===t.length&&t[0]===n.state.annotation&&(n.state.annotation.adjustRect(),n.forceUpdate())}),_u(wu(n),"isMeasurementAnnotation",function(e){return["distanceMeasurement","perimeterMeasurement","areaMeasurement"].includes(ga(e))}),_u(wu(n),"isMeasurementTool",function(e){return["distanceMeasurement","perimeterMeasurement","areaMeasurement"].includes(va(e))}),_u(wu(n),"shouldShowInfo",function(e){var t,n=ga(e);return"perimeterMeasurement"===n||"areaMeasurement"===n?t=e.getPath().length>1:"distanceMeasurement"===n&&(t=!0),t}),_u(wu(n),"getAngleInRadians",function(e,t,n){var o;if(e&&t)if(n){var r=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),i=Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)),a=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2));o=Math.acos((i*i+r*r-a*a)/(2*i*r))}else o=Math.atan2(t.y-e.y,t.x-e.x),o=(o=Math.abs(o))>Math.PI/2?Math.PI-o:o;return o}),_u(wu(n),"getNumberOfDecimalPlaces",function(e){return 1===e.Precision?0:e.Precision.toString().split(".")[1].length}),_u(wu(n),"renderTitle",function(){var e=n.props.t,t=ga(n.state.annotation),o=ba(t).icon,r={distanceMeasurement:e("option.measurementOverlay.distanceMeasurement"),perimeterMeasurement:e("option.measurementOverlay.perimeterMeasurement"),areaMeasurement:e("option.measurementOverlay.areaMeasurement")};return l.a.createElement("div",{className:"measurement__title"},o&&l.a.createElement(aa,{className:"measurement__icon",glyph:o}),r[t])}),_u(wu(n),"renderValue",function(){var e=n.state.annotation,t=n.props.t,o=ga(e),r={distanceMeasurement:t("option.measurementOverlay.distance"),perimeterMeasurement:t("option.measurementOverlay.perimeter"),areaMeasurement:t("option.measurementOverlay.area")};return l.a.createElement("div",{className:"measurement__value"},r[o],": ",e.getContents())}),_u(wu(n),"renderDeltas",function(){var e=n.state.annotation,t=n.getAngleInRadians(e.Start,e.End),o=e.Scale[1][1],r=n.getNumberOfDecimalPlaces(e),i=parseFloat(e.getContents()),a=Math.abs(i*Math.cos(t)).toFixed(r),s=Math.abs(i*Math.sin(t)).toFixed(r);return l.a.createElement("div",{className:"measurement__deltas"},l.a.createElement("div",{className:"measurement__deltas--X"},"ΔX: ",a," ",o),l.a.createElement("div",{className:"measurement__deltas--Y"},"ΔY: ",s," ",o))}),_u(wu(n),"renderAngle",function(){var e,t=n.state.annotation,o=function(e){var t=e.getPath(),n=t.length;return[t[n-3],t[n-2],t[n-1]]},r={distanceMeasurement:function(e){return[e.Start,e.End]},perimeterMeasurement:o,areaMeasurement:o}[ga(t)](t).filter(function(e){return!!e}),i=(e=n).getAngleInRadians.apply(e,gu(r));if(i){var a=n.getNumberOfDecimalPlaces(t);i=(i/Math.PI*180).toFixed(a)}return void 0!==i&&l.a.createElement("div",{className:"measurement__angle"},n.props.t("option.measurementOverlay.angle"),": ",i,"°")}),n.state={annotation:null},n}var n,o,r;return 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&&Su(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){Bi.addEventListener("mouseMove",this.onMouseMove),Bi.addEventListener("annotationSelected",this.onAnnotationSelected),Bi.addEventListener("annotationChanged",this.onAnnotationChanged)}},{key:"componentDidUpdate",value:function(e){if(e.activeToolName!==this.props.activeToolName){var t=this.props,n=t.openElement,o=t.closeElement;this.isMeasurementTool(this.props.activeToolName)?n("measurementOverlay"):o("measurementOverlay")}e.isOpen&&!this.props.isOpen&&this.setState({annotation:null})}},{key:"componentWillUnmount",value:function(){Bi.removeEventListener("mouseMove",this.onMouseMove),Bi.removeEventListener("annotationSelected",this.onAnnotationSelected),Bi.removeEventListener("annotationChanged",this.onAnnotationChanged)}},{key:"render",value:function(){var e=this.state.annotation,t=this.props,n=t.isDisabled,o=t.t,r=ll("Overlay MeasurementOverlay",this.props),i=ga(e);return n||!e?null:l.a.createElement("div",{className:r,"data-element":"measurementOverlay"},this.renderTitle(),l.a.createElement("div",{className:"measurement__scale"},o("option.measurementOverlay.scale"),": ",e.Measure.scale),l.a.createElement("div",{className:"measurement__precision"},o("option.shared.precision"),": ",e.Precision),this.renderValue(),"distanceMeasurement"===i&&this.renderDeltas(),this.renderAngle())}}])&&yu(n.prototype,o),r&&yu(n,r),t}();_u(Eu,"propTypes",{isOpen:x.a.bool,isDisabled:x.a.bool,openElement:x.a.func.isRequired,closeElement:x.a.func.isRequired,activeToolName:x.a.string.isRequired,t:x.a.func.isRequired});var xu=we(function(e){return{isOpen:hr.isElementOpen(e,"measurementOverlay"),isDisabled:hr.isElementDisabled(e,"measurementOverlay"),activeToolName:hr.getActiveToolName(e)}},{openElement:Ii.openElement,closeElement:Ii.closeElement})(Xe()(Eu)),Cu=function(e,t){var n=parseInt(window.getComputedStyle(t).width,10);if(Yt&&(t.style.width="".concat(n+e,"px")),Kt){t.style.width="".concat(n+e+17,"px")}},Tu=function(e,t){var n=parseInt(window.getComputedStyle(t).width,10);if(Yt&&(t.style.width="".concat(n-e,"px")),Kt){t.style.width="".concat(n-e+17,"px")}},Ou=function(e,t){var n=e.isLeftPanelOpen,o=e.isRightPanelOpen,r=e.leftPanelWidth,i=void 0===r?300:r,a=window.innerWidth;n&&(a-=i),o&&(a-=300),t.style.width="".concat(a,"px")},Pu=function(e){return"auto"===e||"wait"===e?window.CoreControls.getDefaultBackendType():Promise.resolve(e)};function ku(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")}()}var Au=["pdf","jpg","jpeg","png"],Ru=["docx","xlsx","pptx","md"],Mu=["xod"].concat(Au,Ru),Du=[].concat(ku(Mu),["doc","xls","csv","ppt","htm","html","tif","tiff","jp2","txt","rtf","odf","odt","odg","odp","ods","dwg","dgn","dxf"]),Lu=[].concat(ku(Mu),ku(Du));function ju(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Nu=function(e,t){Bi.closeDocument(t).then(function(){zu(e).then(function(n){Promise.all([Iu(e,n,t),Fu(e,t,n)]).then(function(e){var n=e[0],o=e[1];n.on&&(n._isBlackboxLocalFile||n.on("documentLoadingProgress",function(e,n,o){t(Ii.setDocumentLoadingProgress(n/o))}),n.on("error",function(e,t,n){on(n)})),n.setErrorCallback&&n.setErrorCallback(on),t(Ii.openElement("progressModal")),Bi.loadAsync(n,o)}).catch(function(e){on(e),console.error(e)})})})},zu=function(e){var t=e.advanced.streaming;return new Promise(function(n){Bu(e)!==Ln.UNIVERSAL||e.document.isOffline||e.document.file||t?n(t):$.ajax({url:window.location.href,cache:!1,headers:{Range:"bytes=0-0"},success:function(e,o,r){206!==r.status&&(t=!0,console.warn("HTTP range requests not supported. Switching to streaming mode.")),n(t)},error:function(){n(t=!0)}})})},Iu=function(e,t,n){var o=e.document,r=o.path,i=o.initialDoc,a=o.file,l=o.isOffline,s=o.pdfDoc,u=o.ext,c=e.document.filename,f=e.advanced,d=f.azureWorkaround,p=f.customHeaders,h=f.decrypt,m=f.decryptOptions,v=f.externalPath,g=f.pdftronServer,y=f.disableWebsockets,b=f.useDownloader,w=f.withCredentials,S=f.singleServerMode,_=f.cacheKey,E=r||i,x=Bu(e);return u&&!c&&(c=Hu(i,u)),new Promise(function(e){var o;if(x===Ln.PDFNETJS)s?("PDFDoc",o=s):a?("LocalPdfPartRetriever",o=new window.CoreControls.PartRetrievers.LocalPdfPartRetriever(a)):("ExternalPdfPartRetriever",o=new window.CoreControls.PartRetrievers.ExternalPdfPartRetriever(E,{useDownloader:b,withCredentials:w,filename:c}));else if(x===Ln.PDFTRON_SERVER){"BlackBoxPartRetriever";var r={disableWebsockets:y,singleServerMode:S,cacheKey:_},i=a&&a.name;i&&(E=null,r.uploadData={fileHandle:a,loadCallback:function(){},onProgress:function(e){n(Ii.setUploadProgress(e.loaded/e.total))},extension:a.name.split(".").pop()},r.filename=a.name,n(Ii.setIsUploading(!0))),o=new window.CoreControls.PartRetrievers.BlackBoxPartRetriever(E,g,r),i&&(o._isBlackboxLocalFile=!0)}else if(x===Ln.UNIVERSAL){var u=window.CoreControls.PartRetrievers.CacheHinting.NO_HINT;a?("LocalPartRetriever",o=new window.CoreControls.PartRetrievers.LocalPartRetriever(a,h,m)):l?("WebDBPartRetriever",o=new window.CoreControls.PartRetrievers.WebDBPartRetriever(null,h,m)):window.utils.windowsApp?("WinRTPartRetriever",o=new window.CoreControls.PartRetrievers.WinRTPartRetriever(E,u,h,m)):E&&0===E.indexOf("iosrange://")?("IOSPartRetriever",o=new window.CoreControls.PartRetrievers.IOSPartRetriever(E,u,h,m)):E&&0===E.indexOf("content://")?("AndroidContentPartRetriever",o=new window.CoreControls.PartRetrievers.AndroidContentPartRetriever(E,u,h,m)):v?("ExternalHttpPartRetriever",o=new window.CoreControls.PartRetrievers.ExternalHttpPartRetriever(null,v)):t?("StreamingPartRetriever",o=new window.CoreControls.PartRetrievers.StreamingPartRetriever(E,u,h,m)):d?("AzurePartRetriever",o=new window.CoreControls.PartRetrievers.AzurePartRetriever(E,u,h,m)):("HttpPartRetriever",o=new window.CoreControls.PartRetrievers.HttpPartRetriever(E,u,h,m))}p&&o.setCustomHeaders&&o.setCustomHeaders(p),w&&o.setWithCredentials&&o.setWithCredentials(w),e(o)})},Fu=function(e,t,n){var o=e.document,r=o.id,i=o.officeType,a=o.pdfType,l=o.password,s=Bu(e);return new Promise(function(o){if(s===Ln.UNIVERSAL)t(Ii.setDocumentType(In)),o(r);else{var u=e.advanced,c=u.pdfWorkerTransportPromise,f=u.officeWorkerTransportPromise,d=u.forceClientSideInit;Promise.all([Pu(a),Pu(i)]).then(function(i){var a=ju(i,2),u=a[0],p=a[1],h=!1,m=0,v={workerLoadingProgress:function(e){t(Ii.setWorkerLoadingProgress(e))}},g=Wu(e),y=Vu({docName:g,pdfBackendType:u,officeBackendType:p,engineType:s,workerHandlers:v,pdfWorkerTransportPromise:c,officeWorkerTransportPromise:f,forceClientSideInit:d}),b=y.type,w=y.extension,S=y.workerTransportPromise;S&&S.catch(function(e){var t="string"==typeof e?e:e.message;on(t),console.error(t)}),t(Ii.setDocumentType(b)),o({docId:r,pdfBackendType:u,officeBackendType:p,extension:w,getPassword:function(e){t(Ii.setPasswordAttempts(m++)),l&&!h?(e(l),h=!0):(h&&console.error("Wrong password has been passed as an argument. WebViewer will open password modal."),t(Ii.setCheckPasswordFunction(e)),t(Ii.openElement("passwordModal")))},onError:function(e){on(e),console.error(e)},streaming:n,type:b,workerHandlers:v,workerTransportPromise:S,forceClientSideInit:d})})}})},Bu=function(e){var t=Wu(e),n=Uu(t),o=e.advanced.pdftronServer,r=e.advanced.engineType;return r===Ln.AUTO&&("xod"===n?r=Ln.UNIVERSAL:o?r=Ln.PDFTRON_SERVER:(t&&!n&&console.warn("File extension cannot be determined from ".concat(t,". Falling back to pdf")),r=Ln.PDFNETJS)),n&&(Lu.includes(n)?r===Ln.PDFNETJS&&!Mu.includes(n)&&Du.includes(n)&&console.error("File extension ".concat(n," from ").concat(t," is only supported by using WebViewer with WebViewer Server. See https://www.pdftron.com/documentation/web/guides/file-format-support for a full list of file formats supported by WebViewer. Visit https://www.pdftron.com/documentation/web/guides/wv-server-deployment for more information about WebViewer Server")):console.error("File extension ".concat(n," from ").concat(t," is not supported. Please see https://www.pdftron.com/documentation/web/guides/file-format-support for a full list of file formats supported by WebViewer"))),r},Uu=function(e){var t="";if(e){var n=/\.([a-zA-Z]+)(&|$|\?|#)/.exec(e);t=n&&n[1].toLowerCase()}return t},Wu=function(e){var t=e.document,n=t.path,o=t.filename,r=t.initialDoc,i=t.ext;return i&&!o&&(o=Hu(n||r,i)),o||n||r},Hu=function(e,t){return"".concat(e.replace(/^.*[\\\/]/,""),".").concat(t.replace(/^\./,""))},Vu=function(e){var t,n,o=e.docName,r=e.pdfBackendType,i=e.officeBackendType,a=e.engineType,l=e.workerHandlers,s=e.pdfWorkerTransportPromise,u=e.officeWorkerTransportPromise,c=Uu(o),f=c;if(a===Ln.PDFTRON_SERVER)t=zn;else{var d=-1!==Ru.indexOf(c);d&&!u?(t=Nn,n=window.CoreControls.initOfficeWorkerTransports(i,l,window.sampleL)):d||s?d?(t=Nn,n=u):(t=jn,n=s):(t=jn,-1===Au.indexOf(c)&&(f="pdf"),n=window.CoreControls.initPDFWorkerTransports(r,l,window.sampleL))}return{type:t,extension:f,workerTransportPromise:n}},Gu=function(e){return{Single:1,Facing:2,CoverFacing:2}[e]},qu={initialize:function(e,t){this.document=e,this.container=t,this.allowHorizontalSwipe=!0,this.allowVerticalSwipe=!1,this.verticalMomentum=0,this.horziontalMomentum=0,this.verticalLock=!1,this.horziontalLock=!1,this.enableTouchScrollLock=!0,this.startingScrollLeft=null,this.startingScrollTop=null,this.touch={clientX:0,clientY:0,distance:0,horizontalDistance:0,verticalDistance:0,scale:1,zoom:1,type:""},this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.handleTouchCancel=this.handleTouchCancel.bind(this),this.container.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),this.container.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.container.addEventListener("touchend",this.handleTouchEnd,{passive:!1}),this.container.addEventListener("touchcancel",this.handleTouchCancel,{passive:!1})},terminate:function(){this.container.removeEventListener("touchstart",this.handleTouchStart),this.container.removeEventListener("touchmove",this.handleTouchMove),this.container.removeEventListener("touchend",this.handleTouchEnd),this.container.removeEventListener("touchcancel",this.handleTouchCancel)},handleTouchStart:function(e){switch(e.touches.length){case 1:var t=e.touches[0],n=this.container.clientWidth,o=this.document.clientWidth,r="tap"===this.touch.type&&this.getDistance(this.touch,t)<=10;this.touch={clientX:t.clientX,clientY:t.clientY,distance:0,scale:n/o,zoom:Bi.getZoom(),type:r?"doubleTap":"tap",touchStartTimeStamp:Date.now(),stopMomentumScroll:!0,touchMoveCount:0},this.startingScrollLeft=this.container.scrollLeft,this.startingScrollTop=this.container.scrollTop,clearTimeout(this.doubleTapTimeout);break;case 2:e.preventDefault();var i=e.touches[0],a=e.touches[1],l=(i.clientX+a.clientX)/2,s=(i.clientY+a.clientY)/2,u=l-this.document.offsetLeft+this.container.scrollLeft,c=s-this.document.offsetTop+this.container.scrollTop;this.touch={marginLeft:this.document.offsetLeft,marginTop:parseFloat(window.getComputedStyle(this.document).marginTop),clientX:l,clientY:s,docX:u,docY:c,distance:this.getDistance(i,a),scale:1,zoom:Bi.getZoom(),type:"pinch",touchStartTimeStamp:Date.now(),stopMomentumScroll:!0},Qt||(this.document.style.transformOrigin="".concat(u,"px ").concat(c,"px"))}},axisLockThreshold:8,isScrollingVertically:function(){return Math.abs(this.verticalMomentum)>0&&0===this.horziontalMomentum||Math.abs(this.touch.verticalDistance)>this.axisLockThreshold*Math.abs(this.touch.horizontalDistance)},isScrollingHorziontally:function(){return Math.abs(this.horziontalMomentum)>0&&0===this.verticalMomentum||Math.abs(this.touch.horizontalDistance)>this.axisLockThreshold*Math.abs(this.touch.verticalDistance)},canLockScrolling:function(){var e=this.container,t=this.document,n=t.clientWidth<e.clientWidth||t.clientHeight<e.clientHeight,o=this.verticalLock||this.horziontalLock;return!n&&this.enableTouchScrollLock&&this.touch.touchMoveCount<6&&!o},handleTouchMove:function(e){switch(e.preventDefault(),e.touches.length){case 1:var t=e.touches[0];this.touch.horizontalDistance=this.touch.clientX-t.clientX,this.touch.verticalDistance=this.touch.clientY-t.clientY,this.canLockScrolling()&&(this.verticalLock=this.isScrollingVertically(),this.horziontalLock=this.isScrollingHorziontally()),this.getDistance(this.touch,t)>10&&(this.touch.type="swipe"),this.enableTouchScrollLock&&(this.verticalLock&&(this.container.scrollTo(this.startingScrollLeft,this.container.scrollTop),this.touch.horizontalDistance=0),this.horziontalLock&&(this.container.scrollTo(this.container.scrollLeft,this.startingScrollTop),this.touch.verticalDistance=0)),this.touch.touchMoveCount++;break;case 2:var n=e.touches[0],o=e.touches[1];if(this.touch.scale=this.getDistance(n,o)/this.touch.distance,this.touch.scale*this.touch.zoom<ln()?this.touch.scale=ln()/this.touch.zoom:this.touch.scale*this.touch.zoom>sn()&&(this.touch.scale=sn()/this.touch.zoom),Qt){var r=(this.touch.marginLeft+(1-this.touch.scale)*this.touch.docX)/this.touch.scale,i=(this.touch.marginTop+(1-this.touch.scale)*this.touch.docY)/this.touch.scale;this.document.style.marginLeft="".concat(r,"px"),this.document.style.marginTop="".concat(i,"px"),this.document.style.zoom=this.touch.scale}else this.document.style.transform="scale(".concat(this.touch.scale,")")}},handleTouchEnd:function(){var e=this;switch(this.touch.type){case"tap":this.doubleTapTimeout=setTimeout(function(){e.touch.type=""},300),this.horziontalLock=!1,this.verticalLock=!1;break;case"swipe":if(this.isUsingAnnotationTools()||Bi.getSelectedText().length||Bi.getSelectedAnnotations().length)return;var t=this.reachedBoundary(),n=t.reachedLeft,o=t.reachedTop,r=t.reachedRight,i=t.reachedBottom,a=.35*this.container.clientWidth,l=i&&this.touch.verticalDistance>a,s=o&&this.touch.verticalDistance<-a,u=r&&this.touch.horizontalDistance>a,c=n&&this.touch.horizontalDistance<-a,f=Bi.getCurrentPage(),d=Bi.getTotalPages(),p=Bi.getDisplayMode(),h=Gu(p),m=1===f,v=f===d,g=!Bi.isContinuousDisplayMode(),y=g&&!m&&(c&&this.allowHorizontalSwipe||s&&this.allowVerticalSwipe),b=g&&!v&&(u&&this.allowHorizontalSwipe||l&&this.allowVerticalSwipe);if(y)Bi.setCurrentPage(Math.max(1,f-h));else if(b)Bi.setCurrentPage(Math.min(d,f+h));else{var w=(Date.now()-this.touch.touchStartTimeStamp)/1e3;w<.2?(this.touch.stopMomentumScroll=!1,this.startMomentumScroll(w)):(this.horziontalLock=!1,this.verticalLock=!1)}break;case"doubleTap":if(this.isUsingAnnotationTools()){var S=Bi.getToolMode();S.finish&&S.finish()}else{this.oldZoom?(this.touch.scale=Math.max(this.oldZoom/this.touch.zoom,ln()/this.touch.zoom),this.oldZoom=null):(this.touch.scale=Math.min(3,sn()/this.touch.zoom),this.oldZoom=this.touch.zoom);var _=Bi.getZoom()*this.touch.scale,E=this.getPointAfterScale(),x=E.x,C=E.y;Bi.zoomTo(_,x,C)}break;case"pinch":Qt?(this.document.style.zoom=1,this.document.style.margin="auto"):this.document.style.transform="none";var T=Bi.getZoom()*this.touch.scale,O=this.getPointAfterScale(),P=O.x,k=O.y;Bi.zoomTo(T,P,k)}this.touch.touchMoveCount=0,this.verticalMomentum=0,this.horziontalMomentum=0},handleTouchCancel:function(e){this.handleTouchEnd(e)},startMomentumScroll:function(e){var t=this,n=1,o=this.container.scrollLeft,r=this.container.scrollTop,i=this.touch.horizontalDistance/e/1.85,a=this.touch.verticalDistance/e/1.85;requestAnimationFrame(function e(){var l=t.easeOutQuad(n,o,i,70),s=t.easeOutQuad(n,r,a,70);t.verticalMomentum=a,t.horziontalMomentum=i;var u=!t.touch.touchMoveCount,c=t.container.scrollLeft-l,f=t.container.scrollTop-s,d=Math.abs(c)<1&&Math.abs(f)<1;t.container.scrollLeft=l,t.container.scrollTop=s,u&&d&&(t.horziontalLock=!1,t.verticalLock=!1),n<70&&!t.touch.stopMomentumScroll&&(n++,requestAnimationFrame(e)),u&&70===n&&(t.horziontalLock=!1,t.verticalLock=!1,t.verticalMomentum=0,t.horziontalMomentum=0)})},easeOutQuad:function(e,t,n,o){return-n*(e/=o)*(e-2)+t},reachedBoundary:function(){var e=this.container,t=e.clientHeight,n=e.clientWidth,o=e.scrollLeft,r=e.scrollTop,i=this.document;return{reachedLeft:o<=0,reachedTop:r<=0,reachedBottom:t+r>=i.clientHeight,reachedRight:n+o>=i.clientWidth}},getDistance:function(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointAfterScale:function(){return{x:(this.touch.clientX+this.container.scrollLeft-this.document.offsetLeft)*this.touch.scale-this.touch.clientX+this.container.offsetLeft,y:(this.touch.clientY+this.container.scrollTop-this.document.offsetTop)*this.touch.scale-this.touch.clientY+this.container.offsetTop}},isUsingAnnotationTools:function(){var e=Bi.getToolMode();return ba(va(e.name)).annotationCheck}},$u=Object.create(qu);n(501);function Yu(e){return(Yu="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 Ku(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Zu(e){return(Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xu(e,t){return(Xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ju(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ec=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Yu(t)&&"function"!=typeof t?Qu(e):t}(this,Zu(t).call(this,e)),Ju(Qu(n),"onKeyDown",function(e){var t=n.props,o=t.currentPage,r=t.totalPages,i=n.container.current,a=i.scrollTop,l=i.clientHeight,s=i.scrollHeight,u=0===a,c=Math.abs(a+l-s)<=1;("ArrowUp"===e.key||38===e.which)&&u&&o>1?n.pageUp():("ArrowDown"===e.key||40===e.which)&&c&&o<r&&n.pageDown()}),Ju(Qu(n),"handleWindowResize",function(){Ou(n.props,n.container.current)}),Ju(Qu(n),"onWheel",function(e){e.metaKey||e.ctrlKey?(e.preventDefault(),n.wheelToZoom(e)):Bi.isContinuousDisplayMode()||n.wheelToNavigatePages(e)}),Ju(Qu(n),"wheelToNavigatePages",function(e){var t=n.props,o=t.currentPage,r=t.totalPages,i=n.container.current,a=i.scrollTop,l=i.scrollHeight,s=i.clientHeight,u=0===a,c=Math.abs(a+s-l)<=1;e.deltaY<0&&u&&o>1?n.pageUp():e.deltaY>0&&c&&o<r&&n.pageDown()}),Ju(Qu(n),"pageUp",function(){var e=n.props,t=e.currentPage,o=e.displayMode,r=n.container.current,i=r.scrollHeight,a=r.clientHeight,l=t-Gu(o);Bi.setCurrentPage(Math.max(l,1)),n.container.current.scrollTop=i-a}),Ju(Qu(n),"pageDown",function(){var e=n.props,t=e.currentPage,o=e.displayMode,r=e.totalPages,i=t+Gu(o);Bi.setCurrentPage(Math.min(i,r))}),Ju(Qu(n),"wheelToZoom",function(e){var t,o=n.props.zoom,r=o;e.deltaY<0?(t=1.25,r=Math.min(o*t,sn())):e.deltaY>0&&(t=.8,r=Math.max(o*t,ln())),Bi.zoomToMouse(r)}),Ju(Qu(n),"onTransitionEnd",function(){Bi.scrollViewUpdated()}),Ju(Qu(n),"handleScroll",function(){n.props.closeElements(["annotationPopup","contextMenuPopup","textPopup"])}),Ju(Qu(n),"getClassName",function(e){return["DocumentContainer",e.isLeftPanelOpen?"left-panel":"",e.isRightPanelOpen?"right-panel":"",e.isHeaderOpen?"":"no-header",e.isSearchOverlayOpen?"search-overlay":""].join(" ").trim()}),n.document=l.a.createRef(),n.container=l.a.createRef(),n.wheelToNavigatePages=_.throttle(n.wheelToNavigatePages.bind(Qu(n)),300,{trailing:!1}),n.wheelToZoom=_.throttle(n.wheelToZoom.bind(Qu(n)),30,{trailing:!1}),n}var n,o,r;return 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&&Xu(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){Zt&&function(e,t,n){var o=t.leftPanelWidth,r=void 0===o?300:o;e.isLeftPanelOpen&&!t.isLeftPanelOpen&&(Cu(r,n),n.style.marginLeft="0px"),e.isRightPanelOpen&&!t.isRightPanelOpen&&Cu(300,n),!e.isLeftPanelOpen&&t.isLeftPanelOpen&&(Tu(r,n),n.style.marginLeft="".concat(r,"px")),t.isLeftPanelOpen&&e.leftPanelWidth!==t.leftPanelWidth&&(n.style.width="".concat(window.innerWidth-r,"px"),n.style.marginLeft="".concat(r,"px")),!e.isRightPanelOpen&&t.isRightPanelOpen&&Tu(300,n)}(e,this.props,this.container.current)}},{key:"componentDidMount",value:function(){$u.initialize(this.document.current,this.container.current),Bi.setScrollViewElement(this.container.current),Bi.setViewerElement(this.document.current);var e=this.props,t=e.hasPath,n=e.doesDocumentAutoLoad,o=e.document,r=e.advanced,i=e.dispatch;(t&&n||o.isOffline)&&Nu({document:o,advanced:r},i),Zt&&window.addEventListener("resize",this.handleWindowResize),this.container.current.addEventListener("wheel",this.onWheel,{passive:!1}),window.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){$u.terminate(),Zt&&window.removeEventListener("resize",this.handleWindowResize),this.container.current.removeEventListener("wheel",this.onWheel,{passive:!1}),window.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var e;return e=Zt?function(e){return["DocumentContainer",e.isHeaderOpen?"full-height":"",e.isSearchOverlayOpen?"search-overlay":""].join(" ").trim()}(this.props):this.getClassName(this.props),l.a.createElement("div",{className:e,ref:this.container,"data-element":"documentContainer",onScroll:this.handleScroll,onTransitionEnd:this.onTransitionEnd},l.a.createElement("div",{className:"document",ref:this.document}))}}])&&Ku(n.prototype,o),r&&Ku(n,r),t}();Ju(ec,"propTypes",{document:x.a.object.isRequired,advanced:x.a.object.isRequired,isLeftPanelOpen:x.a.bool,isRightPanelOpen:x.a.bool,isSearchOverlayOpen:x.a.bool,hasPath:x.a.bool,doesDocumentAutoLoad:x.a.bool,zoom:x.a.number.isRequired,currentPage:x.a.number,totalPages:x.a.number,isHeaderOpen:x.a.bool,dispatch:x.a.func.isRequired,openElement:x.a.func.isRequired,closeElements:x.a.func.isRequired,displayMode:x.a.string.isRequired,leftPanelWidth:x.a.number});var tc=we(function(e){return{document:hr.getDocument(e),advanced:hr.getAdvanced(e),isLeftPanelOpen:hr.isElementOpen(e,"leftPanel"),isRightPanelOpen:hr.isElementOpen(e,"searchPanel"),isSearchOverlayOpen:hr.isElementOpen(e,"searchOverlay"),hasPath:hr.hasPath(e),doesDocumentAutoLoad:hr.doesDocumentAutoLoad(e),zoom:hr.getZoom(e),currentPage:hr.getCurrentPage(e),isHeaderOpen:hr.isElementOpen(e,"header")&&!hr.isElementDisabled(e,"header"),displayMode:hr.getDisplayMode(e),totalPages:hr.getTotalPages(e),leftPanelWidth:hr.getLeftPanelWidth(e)}},function(e){return{dispatch:e,openElement:function(t){return e(Ii.openElement(t))},closeElements:function(t){return e(Ii.closeElements(t))}}})(ec);n(502);function nc(e){return(nc="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 oc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rc(e){return(rc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ic(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ac(e,t){return(ac=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sc=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==nc(t)&&"function"!=typeof t?ic(e):t}(this,(e=rc(t)).call.apply(e,[this].concat(r))),lc(ic(n),"isActive",function(e){return n.props.activePanel===e}),n}var n,o,r;return 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&&ac(e,t)}(t,l.a.Component),n=t,(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.customPanels,o=t.isLeftPanelTabsDisabled,r=t.setActiveLeftPanel;return o?null:l.a.createElement(Ml,{className:"LeftPanelTabs",dataElement:"leftPanelTabs"},l.a.createElement(fa,{isActive:this.isActive("thumbnailsPanel"),dataElement:"thumbnailsPanelButton",img:"ic_thumbnails_black_24px",onClick:function(){return r("thumbnailsPanel")},title:"component.thumbnailsPanel"}),l.a.createElement(fa,{isActive:this.isActive("outlinesPanel"),dataElement:"outlinesPanelButton",img:"ic_outline_black_24px",onClick:function(){return r("outlinesPanel")},title:"component.outlinesPanel"}),l.a.createElement(fa,{isActive:this.isActive("notesPanel"),dataElement:"notesPanelButton",img:"ic_annotations_black_24px",onClick:function(){return r("notesPanel")},title:"component.notesPanel"}),n.map(function(t,n){var o=t.panel,i=t.tab;return l.a.createElement(fa,{key:i.dataElement||n,isActive:e.isActive(o.dataElement),dataElement:i.dataElement,img:i.img,onClick:function(){return r(o.dataElement)},title:i.title})}))}}])&&oc(n.prototype,o),r&&oc(n,r),t}();lc(sc,"propTypes",{activePanel:x.a.string.isRequired,disabledCustomPanelTabs:x.a.array.isRequired,customPanels:x.a.array.isRequired,isLeftPanelTabsDisabled:x.a.bool,setActiveLeftPanel:x.a.func.isRequired,t:x.a.func.isRequired});var uc=we(function(e){return{activePanel:hr.getActiveLeftPanel(e),customPanels:hr.getCustomPanels(e),disabledCustomPanelTabs:hr.getDisabledCustomPanelTabs(e),isLeftPanelTabsDisabled:hr.isElementDisabled(e,"leftPanelTabs")}},{setActiveLeftPanel:Ii.setActiveLeftPanel})(Xe()(sc)),cc=n(209),fc=["client","offset","scroll","bounds","margin"];function dc(e){var t=[];return fc.forEach(function(n){e[n]&&t.push(n)}),t}function pc(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var o=e.getBoundingClientRect();n.bounds={top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height}}if(t.indexOf("margin")>-1){var r=getComputedStyle(e);n.margin={top:r?parseInt(r.marginTop):0,right:r?parseInt(r.marginRight):0,bottom:r?parseInt(r.marginBottom):0,left:r?parseInt(r.marginLeft):0}}return n}var hc,mc=function(e){var t,n;return n=t=function(t){function n(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},e._animationFrameID=null,e._resizeObserver=null,e._node=null,e.measure=function(t){var n=pc(e._node,hc||dc(e.props));t&&(n.entry=t[0].contentRect),e._animationFrameID=window.requestAnimationFrame(function(){null!==e._resizeObserver&&(e.setState({contentRect:n}),"function"==typeof e.props.onResize&&e.props.onResize(n))})},e._handleRef=function(t){null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.unobserve(e._node),e._node=t,null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.observe(e._node);var n=e.props.innerRef;n&&("function"==typeof n?n(e._node):n.current=e._node)},e}S(n,t);var o=n.prototype;return o.componentDidMount=function(){this._resizeObserver=new cc.a(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(pc(this._node,hc||dc(this.props))))},o.componentWillUnmount=function(){null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null),window.cancelAnimationFrame(this._animationFrameID)},o.render=function(){var t=this.props,n=(t.innerRef,t.onResize,L(t,["innerRef","onResize"]));return Object(a.createElement)(e,D({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},n}(a.Component),t.propTypes={client:x.a.bool,offset:x.a.bool,scroll:x.a.bool,bounds:x.a.bool,margin:x.a.bool,innerRef:x.a.oneOfType([x.a.object,x.a.func]),onResize:x.a.func},n}(function(e){var t=e.measure,n=e.measureRef,o=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:o})});mc.displayName="Measure",mc.propTypes.children=x.a.func;var vc=mc,gc=n(11),yc=n.n(gc),bc=n(4),wc=n.n(bc),Sc=n(5),_c=n.n(Sc),Ec=n(6),xc=n.n(Ec),Cc=n(12),Tc=n.n(Cc);function Oc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Pc(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function kc(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function Ac(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,r=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==r){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==o?"\n  "+o:"")+(null!==r?"\n  "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Oc,t.componentWillReceiveProps=Pc),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=kc;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,o)}}return e}Oc.__suppressDeprecationWarning=!0,Pc.__suppressDeprecationWarning=!0,kc.__suppressDeprecationWarning=!0;var Rc=n(106),Mc=n.n(Rc),Dc=n(3),Lc=n.n(Dc);function jc(e){var t,n,o="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=jc(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(n=jc(t))&&(o&&(o+=" "),o+=n);else"boolean"==typeof e||e.call||(o&&(o+=" "),o+=e);return o}var Nc=function(){for(var e,t=0,n="";t<arguments.length;)(e=jc(arguments[t++]))&&(n&&(n+=" "),n+=e);return n};function zc(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}var Ic=n(46),Fc=n.n(Ic),Bc=n(210),Uc=n.n(Bc),Wc=function(){function e(t){var n=t.cellCount,o=t.cellSizeGetter,r=t.estimatedCellSize;wc()(this,e),this._lastMeasuredIndex=-1,this._cellSizeGetter=o,this._cellCount=n,this._estimatedCellSize=r,this._layoutVector=new Uc.a,this._layoutVector.setLength(n),this._layoutVector.setDefaultSize(r)}return _c()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,o=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=o,this._layoutVector.setLength(t),this._layoutVector.setDefaultSize(n)}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);var t=this._layoutVector;if(e>this._lastMeasuredIndex){for(var n={index:this._lastMeasuredIndex+1},o=n.index;o<=e;n.index=++o){var r=this._cellSizeGetter(n);if(void 0===r||r!=r)throw Error("Invalid size returned for cell "+o+" of value "+r);null!==r&&t.setItemSize(o,r)}this._lastMeasuredIndex=Math.min(e,this._cellCount-1)}return{offset:t.start(e),size:t.getItemSize(e)}}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){var e=this._lastMeasuredIndex;if(e<=0)return{offset:0,size:0};var t=this._layoutVector;return{offset:t.start(e),size:t.getItemSize(e)}}},{key:"getTotalSize",value:function(){var e=this._cellCount-1;return e>=0?this._layoutVector.end(e):0}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(0===this.getTotalSize())return{};var t=e.containerSize,n=e.offset,o=n+t-1;return{start:this._findNearestCell(n),stop:this._findNearestCell(o)}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset "+e+" specified");for(var t=this._layoutVector,n=this._cellCount-1,o=Math.max(0,Math.min(e,t.start(n))),r=t.indexOf(o);r>this._lastMeasuredIndex;){if(this.getSizeAndPositionOfCell(r),r===n)return r;-1===(r=t.indexOf(o))&&(r=this._lastMeasuredIndex,this._lastMeasuredIndex=r-1,o=Math.max(0,Math.min(e,t.start(n))))}return r}}]),e}(),Hc=function(){return"undefined"!=typeof window&&window.chrome&&window.chrome.webstore?16777100:15e5},Vc=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?Hc():n,r=Fc()(t,["maxScrollSize"]);wc()(this,e),this._cellSizeAndPositionManager=new Wc(r),this._maxScrollSize=o}return _c()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}(),Gc=n(47),qc=n.n(Gc);function $c(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,i=qc()(r),a=!e||i.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),l=i.length!==qc()(t).length||i.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,a&&l&&o(r)}}var Yc=1;function Kc(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=c>=0&&c<h;m&&(f!==l||d||!r||"number"==typeof t&&t!==r||u!==i||c!==a)?p(c):!m&&h>0&&(f<l||h<o)&&s>n.getTotalSize()-f&&p(h-1)}var Zc=n(85),Qc=n.n(Zc),Xc=n(211),Jc=n.n(Xc),ef=void 0,tf=(ef="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||ef.webkitRequestAnimationFrame||ef.mozRequestAnimationFrame||ef.oRequestAnimationFrame||ef.msRequestAnimationFrame||function(e){return ef.setTimeout(e,1e3/60)},nf=ef.cancelAnimationFrame||ef.webkitCancelAnimationFrame||ef.mozCancelAnimationFrame||ef.oCancelAnimationFrame||ef.msCancelAnimationFrame||function(e){ef.clearTimeout(e)},of=tf,rf=nf,af=function(e){return rf(e.id)},lf=function(e,t){var n=void 0;Jc.a.resolve().then(function(){n=Date.now()});var o={id:of(function r(){Date.now()-n>=t?e.call():o.id=of(r)})};return o},sf="observed",uf="requested",cf=function(e){function t(e){wc()(this,t);var n=xc()(this,(t.__proto__||yc()(t)).call(this,e));n._onGridRenderedMemoizer=$c(),n._onScrollMemoizer=$c(!1),n._deferredInvalidateColumnIndex=null,n._deferredInvalidateRowIndex=null,n._recomputeScrollLeftFlag=!1,n._recomputeScrollTopFlag=!1,n._horizontalScrollBarSize=0,n._verticalScrollBarSize=0,n._scrollbarPresenceChanged=!1,n._renderedColumnStartIndex=0,n._renderedColumnStopIndex=0,n._renderedRowStartIndex=0,n._renderedRowStopIndex=0,n._styleCache={},n._cellCache={},n._debounceScrollEndedCallback=function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})},n._invokeOnGridRenderedHelper=function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})},n._setScrollingContainerRef=function(e){n._scrollingContainer=e},n._onScroll=function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)};var o=new Vc({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new Vc({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:o,rowSizeAndPositionManager:r,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,prevScrollLeft:e.scrollLeft,prevScrollTop:e.scrollTop,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:Yc,scrollDirectionVertical:Yc,scrollLeft:e.scrollLeft||0,scrollTop:e.scrollTop||0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return Tc()(t,e),_c()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,o=e.columnIndex,r=void 0===o?this.props.scrollToColumn:o,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,l=Lc()({},this.props,{scrollToAlignment:n,scrollToColumn:r,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,o=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,l=i.autoWidth,s=i.height,u=i.width,c=this.state.instanceProps,f=c.scrollbarSize,d=c.rowSizeAndPositionManager.getTotalSize(),p=c.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-u+f),n),m=Math.min(Math.max(0,d-s+f),r);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var v={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?Yc:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?Yc:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:sf};a||(v.scrollTop=m),l||(v.scrollLeft=h),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:d})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,o=this.state.instanceProps;o.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),o.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(n),s.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===Yc?n<=a:n>=a),this._recomputeScrollTopFlag=l>=0&&(this.state.scrollDirectionVertical===Yc?r<=l:r>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,r=this.props;o>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(Lc()({},r,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(Lc()({},r,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,o=e.height,r=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,l=e.scrollToRow,s=e.width,u=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),u.scrollbarSizeMeasured||this.setState(function(e){var t=Lc()({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof r&&r>=0||"number"==typeof a&&a>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:a});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var f=o>0&&s>0;i>=0&&f&&this._updateScrollLeftForScrollToColumn(),l>=0&&f&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:a||0,totalColumnsWidth:u.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:u.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,o=this.props,r=o.autoHeight,i=o.autoWidth,a=o.columnCount,l=o.height,s=o.rowCount,u=o.scrollToAlignment,c=o.scrollToColumn,f=o.scrollToRow,d=o.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,v=p.scrollTop,g=p.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||s>0&&0===e.rowCount;m===uf&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=h),!r&&v>=0&&(v!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=v));var b=(0===e.width||0===e.height)&&l>0&&d>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Kc({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:d,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Kc({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:f,size:l,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var w=g.rowSizeAndPositionManager.getTotalSize(),S=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:S,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&af(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.autoWidth,r=e.className,i=e.containerProps,l=e.containerRole,s=e.containerStyle,u=e.height,c=e.id,f=e.noContentRenderer,d=e.role,p=e.style,h=e.tabIndex,m=e.width,v=this.state,g=v.instanceProps,y=v.needToResetStyleCache,b=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:n?"auto":u,position:"relative",width:o?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var S=g.columnSizeAndPositionManager.getTotalSize(),_=g.rowSizeAndPositionManager.getTotalSize(),E=_>u?g.scrollbarSize:0,x=S>m?g.scrollbarSize:0;x===this._horizontalScrollBarSize&&E===this._verticalScrollBarSize||(this._horizontalScrollBarSize=x,this._verticalScrollBarSize=E,this._scrollbarPresenceChanged=!0),w.overflowX=S+E<=m?"hidden":"auto",w.overflowY=_+x<=u?"hidden":"auto";var C=this._childrenToDisplay,T=0===C.length&&u>0&&m>0;return a.createElement("div",Lc()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Nc("ReactVirtualized__Grid",r),id:c,onScroll:this._onScroll,role:d,style:Lc()({},w,p),tabIndex:h}),C.length>0&&a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:Lc()({width:t?"auto":S,height:_,maxWidth:S,maxHeight:_,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},s)},C),T&&f())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,f=e.width,d=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:g}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),S=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:g}),_=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var E=s({direction:"horizontal",cellCount:r,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),x=s({direction:"vertical",cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),C=E.overscanStartIndex,T=E.overscanStopIndex,O=x.overscanStartIndex,P=x.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var k=O;k<=P;k++)if(!i.has(k,0)){C=0,T=r-1;break}if(!i.hasFixedWidth())for(var A=C;A<=T;A++)if(!i.has(0,A)){O=0,P=c-1;break}}this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:C,columnStopIndex:T,deferredMeasurementCache:i,horizontalOffsetAdjustment:S,isScrolling:y,isScrollingOptOut:d,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:P,scrollLeft:g,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:_,visibleColumnIndices:b,visibleRowIndices:w}),this._columnStartIndex=C,this._columnStopIndex=T,this._rowStartIndex=O,this._rowStopIndex=P}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&af(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=lf(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,o=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:o});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=t._getScrollLeftForScrollToColumnStateUpdate(e,n);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var o=this._rowStartIndex;o<=this._rowStopIndex;o++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i=o+"-"+r;this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=t._getScrollTopForScrollToRowStateUpdate(e,n);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var o={},r=n.instanceProps;0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(o.scrollLeft=0,o.scrollTop=0):(e.scrollLeft!==r.prevScrollLeft&&e.scrollToColumn<0||e.scrollTop!==r.prevScrollTop&&e.scrollToRow<0)&&Mc()(o,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop})),o.needToResetStyleCache=!1,e.columnWidth===r.prevColumnWidth&&e.rowHeight===r.prevRowHeight||(o.needToResetStyleCache=!0),r.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),r.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==r.prevColumnCount&&0!==r.prevRowCount||(r.prevColumnCount=0,r.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===r.prevIsScrolling&&Mc()(o,{isScrolling:!1});var i=void 0,a=void 0;return zc({cellCount:r.prevColumnCount,cellSize:"number"==typeof r.prevColumnWidth?r.prevColumnWidth:null,computeMetadataCallback:function(){return r.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:r.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),zc({cellCount:r.prevRowCount,cellSize:"number"==typeof r.prevRowHeight?r.prevRowHeight:null,computeMetadataCallback:function(){return r.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:r.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){a=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),r.prevColumnCount=e.columnCount,r.prevColumnWidth=e.columnWidth,r.prevIsScrolling=!0===e.isScrolling,r.prevRowCount=e.rowCount,r.prevRowHeight=e.rowHeight,r.prevScrollToColumn=e.scrollToColumn,r.prevScrollToRow=e.scrollToRow,r.prevScrollLeft=e.scrollLeft,r.prevScrollTop=e.scrollTop,r.scrollbarSize=e.getScrollbarSize(),void 0===r.scrollbarSize?(r.scrollbarSizeMeasured=!1,r.scrollbarSize=0):r.scrollbarSizeMeasured=!0,o.instanceProps=r,Lc()({},o,i,a)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:uf};return"number"==typeof n&&n>=0&&(r.scrollDirectionHorizontal=n>t.scrollLeft?Yc:-1,r.scrollLeft=n),"number"==typeof o&&o>=0&&(r.scrollDirectionVertical=o>t.scrollTop?Yc:-1,r.scrollTop=o),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof o&&o>=0&&o!==t.scrollTop?r:null}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft,s=t.instanceProps;if(n>0){var u=n-1,c=i<0?u:Math.min(u,i),f=s.rowSizeAndPositionManager.getTotalSize(),d=s.scrollbarSizeMeasured&&f>o?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-d,currentOffset:l,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var o=n.scrollLeft,r=t._getCalculatedScrollLeft(e,n);return"number"==typeof r&&r>=0&&o!==r?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:r,scrollTop:-1}):null}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop,s=t.instanceProps;if(o>0){var u=o-1,c=i<0?u:Math.min(u,i),f=s.columnSizeAndPositionManager.getTotalSize(),d=s.scrollbarSizeMeasured&&f>a?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-d,currentOffset:l,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var o=n.scrollTop,r=t._getCalculatedScrollTop(e,n);return"number"==typeof r&&r>=0&&o!==r?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:r}):null}}]),t}(a.PureComponent);cf.defaultProps={"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.isScrollingOptOut,c=e.parent,f=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,g=e.visibleRowIndices,y=[],b=o.areOffsetsAdjusted()||f.areOffsetsAdjusted(),w=!s&&!b,S=d;S<=p;S++)for(var _=f.getSizeAndPositionOfCell(S),E=r;E<=i;E++){var x=o.getSizeAndPositionOfCell(E),C=E>=v.start&&E<=v.stop&&S>=g.start&&S<=g.stop,T=S+"-"+E,O=void 0;w&&h[T]?O=h[T]:a&&!a.has(S,E)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:_.size,left:x.offset+l,position:"absolute",top:_.offset+m,width:x.size},h[T]=O);var P={columnIndex:E,isScrolling:s,isVisible:C,key:T,parent:c,rowIndex:S,style:O},k=void 0;!u&&!s||l||m?k=n(P):(t[T]||(t[T]=n(P)),k=t[T]),null!=k&&!1!==k&&y.push(k)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Qc.a,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o===Yc?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,r-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1},cf.propTypes=null,Ac(cf);var ff=cf,df=1;function pf(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),o===df?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,r-n),overscanStopIndex:Math.min(t-1,i+1)}}var hf=function(e){function t(){var e,n,o,r;wc()(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(a))),o.state={scrollToColumn:0,scrollToRow:0},o._columnStartIndex=0,o._columnStopIndex=0,o._rowStartIndex=0,o._rowStopIndex=0,o._onKeyDown=function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,a=t.rowCount;if(!r){var l=o._getScrollState(),s=l.scrollToColumn,u=l.scrollToRow,c=o._getScrollState(),f=c.scrollToColumn,d=c.scrollToRow;switch(e.key){case"ArrowDown":d="cells"===i?Math.min(d+1,a-1):Math.min(o._rowStopIndex+1,a-1);break;case"ArrowLeft":f="cells"===i?Math.max(f-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":f="cells"===i?Math.min(f+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":d="cells"===i?Math.max(d-1,0):Math.max(o._rowStartIndex-1,0)}f===s&&d===u||(e.preventDefault(),o._updateScrollState({scrollToColumn:f,scrollToRow:d}))}},o._onSectionRendered=function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i},r=n,xc()(o,r)}return Tc()(t,e),_c()(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,o=this._getScrollState(),r=o.scrollToColumn,i=o.scrollToRow;return a.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,o=this.props,r=o.isControlled,i=o.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),r||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?null:e.scrollToColumn!==t.scrollToColumn||e.scrollToRow!==t.scrollToRow?{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow}:null}}]),t}(a.PureComponent);hf.defaultProps={disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0},hf.propTypes=null,Ac(hf);var mf=n(107),vf=function(e){function t(){var e,n,o,r;wc()(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(a))),o.state={height:o.props.defaultHeight||0,width:o.props.defaultWidth||0},o._onResize=function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,a=o._parentNode.offsetWidth||0,l=window.getComputedStyle(o._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,u=parseInt(l.paddingRight,10)||0,c=parseInt(l.paddingTop,10)||0,f=parseInt(l.paddingBottom,10)||0,d=i-c-f,p=a-s-u;(!t&&o.state.height!==d||!n&&o.state.width!==p)&&(o.setState({height:i-c-f,width:a-s-u}),r({height:i,width:a}))}},o._setRef=function(e){o._autoSizer=e},r=n,xc()(o,r)}return Tc()(t,e),_c()(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Object(mf.a)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.disableHeight,r=e.disableWidth,i=e.style,l=this.state,s=l.height,u=l.width,c={overflow:"visible"},f={};return o||(c.height=0,f.height=s),r||(c.width=0,f.width=u),a.createElement("div",{className:n,ref:this._setRef,style:Lc()({},c,i)},t(f))}}]),t}(a.PureComponent);vf.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},vf.propTypes=null;var gf=function(e){function t(){var e,n,o,r;wc()(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(a))),o._measure=function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,a=e.rowIndex,l=void 0===a?o.props.index||0:a,s=o._getCellMeasurements(),u=s.height,c=s.width;u===t.getHeight(l,r)&&c===t.getWidth(l,r)||(t.set(l,r,c,u),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:l}))},r=n,xc()(o,r)}return Tc()(t,e),_c()(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=Object(s.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,o=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),o&&(t.style.height=o),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,o=void 0===n?0:n,r=e.parent,i=e.rowIndex,a=void 0===i?this.props.index||0:i;if(!t.has(a,o)){var l=this._getCellMeasurements(),s=l.height,u=l.width;t.set(a,o,u,s),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:o,rowIndex:a})}}}]),t}(a.PureComponent);gf.__internalCellMeasurerFlag=!1,gf.propTypes=null;var yf=gf;var bf=30,wf=100,Sf=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};wc()(this,e),this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._columnCount=0,this._rowCount=0,this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var o=n.defaultHeight,r=n.defaultWidth,i=n.fixedHeight,a=n.fixedWidth,l=n.keyMapper,s=n.minHeight,u=n.minWidth;this._hasFixedHeight=!0===i,this._hasFixedWidth=!0===a,this._minHeight=s||0,this._minWidth=u||0,this._keyMapper=l||_f,this._defaultHeight=Math.max(this._minHeight,"number"==typeof o?o:bf),this._defaultWidth=Math.max(this._minWidth,"number"==typeof r?r:wf)}return _c()(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,o=0;o<this._rowCount;o++)n=Math.max(n,this.getWidth(o,t));var r=this._keyMapper(0,t);this._columnWidthCache[r]=n}if(!this._hasFixedHeight){for(var i=0,a=0;a<this._columnCount;a++)i=Math.max(i,this.getHeight(e,a));var l=this._keyMapper(e,0);this._rowHeightCache[l]=i}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function _f(e,t){return e+"-"+t}var Ef={OBSERVED:"observed",REQUESTED:"requested"},xf=function(e){function t(){var e;wc()(this,t);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];var i=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(o)));return i.state={isScrolling:!1,scrollLeft:0,scrollTop:0},i._calculateSizeAndPositionDataOnNextUpdate=!1,i._onSectionRenderedMemoizer=$c(),i._onScrollMemoizer=$c(!1),i._invokeOnSectionRenderedHelper=function(){var e=i.props,t=e.cellLayoutManager,n=e.onSectionRendered;i._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})},i._setScrollingContainerRef=function(e){i._scrollingContainer=e},i._updateScrollPositionForScrollToCell=function(){var e=i.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,a=e.width,l=i.state,s=l.scrollLeft,u=l.scrollTop;if(r>=0){var c=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:s,scrollTop:u,width:a});c.scrollLeft===s&&c.scrollTop===u||i._setScrollPosition(c)}},i._onScroll=function(e){if(e.target===i._scrollingContainer){i._enablePointerEventsAfterDelay();var t=i.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,a=t.width,l=i._scrollbarSize,s=n.getTotalSize(),u=s.height,c=s.width,f=Math.max(0,Math.min(c-a+l,e.target.scrollLeft)),d=Math.max(0,Math.min(u-o+l,e.target.scrollTop));if(i.state.scrollLeft!==f||i.state.scrollTop!==d){var p=e.cancelable?Ef.OBSERVED:Ef.REQUESTED;i.state.isScrolling||r(!0),i.setState({isScrolling:!0,scrollLeft:f,scrollPositionChangeReason:p,scrollTop:d})}i._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:d,totalWidth:c,totalHeight:u})}},i._scrollbarSize=Qc()(),void 0===i._scrollbarSize?(i._scrollbarSizeMeasured=!1,i._scrollbarSize=0):i._scrollbarSizeMeasured=!0,i}return Tc()(t,e),_c()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,o=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Qc()(),this._scrollbarSizeMeasured=!0,this.setState({})),o>=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===Ef.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,r=e.className,i=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,f=e.verticalOverscanSize,d=e.width,p=this.state,h=p.isScrolling,m=p.scrollLeft,v=p.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==o||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=o,this._calculateSizeAndPositionDataOnNextUpdate=!1,o.calculateSizeAndPositionData());var g=o.getTotalSize(),y=g.height,b=g.width,w=Math.max(0,m-l),S=Math.max(0,v-f),_=Math.min(b,m+d+l),E=Math.min(y,v+i+f),x=i>0&&d>0?o.cellRenderers({height:E-S,isScrolling:h,width:_-w,x:w,y:S}):[],C={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},T=y>i?this._scrollbarSize:0,O=b>d?this._scrollbarSize:0;return C.overflowX=b+T<=d?"hidden":"auto",C.overflowY=y+O<=i?"hidden":"auto",a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Nc("ReactVirtualized__Collection",r),id:s,onScroll:this._onScroll,role:"grid",style:Lc()({},C,c),tabIndex:0},n>0&&a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:b,overflow:"hidden",pointerEvents:h?"none":"",width:b}},x),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:Ef.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop}:null:{scrollLeft:0,scrollTop:0}}}]),t}(a.PureComponent);xf.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},xf.propTypes={},Ac(xf);var Cf=xf,Tf=function(){function e(t){var n=t.height,o=t.width,r=t.x,i=t.y;wc()(this,e),this.height=n,this.width=o,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return _c()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}(),Of=100,Pf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Of;wc()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return _c()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,r=e.y,i={};return this.getSections({height:t,width:n,x:o,y:r}).forEach(function(e){return e.getCellIndices().forEach(function(e){i[e]=e})}),qc()(i).map(function(e){return i[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),u=[],c=i;c<=a;c++)for(var f=l;f<=s;f++){var d=c+"."+f;this._sections[d]||(this._sections[d]=new Tf({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:f*this._sectionSize})),u.push(this._sections[d])}return u}},{key:"getTotalSectionCount",value:function(){return qc()(this._sections).length}},{key:"toString",value:function(){var e=this;return qc()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();function kf(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}var Af=function(e){function t(e,n){wc()(this,t);var o=xc()(this,(t.__proto__||yc()(t)).call(this,e,n));return o._cellMetadata=[],o._lastRenderedCellIndices=[],o._cellCache=[],o._isScrollingChange=o._isScrollingChange.bind(o),o._setCollectionViewRef=o._setCollectionViewRef.bind(o),o}return Tc()(t,e),_c()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=Fc()(this.props,[]);return a.createElement(Cf,Lc()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,r=[],i=new Pf(o),a=0,l=0,s=0;s<t;s++){var u=n({index:s});if(null==u.height||isNaN(u.height)||null==u.width||isNaN(u.width)||null==u.x||isNaN(u.x)||null==u.y||isNaN(u.y))throw Error("Invalid metadata returned for cell "+s+":\n        x:"+u.x+", y:"+u.y+", width:"+u.width+", height:"+u.height);a=Math.max(a,u.y+u.height),l=Math.max(l,u.x+u.width),r[s]=u,i.registerCell({cellMetadatum:u,index:s})}return{cellMetadata:r,height:a,sectionManager:i,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,o=e.height,r=e.scrollLeft,i=e.scrollTop,a=e.width,l=this.props.cellCount;if(n>=0&&n<l){var s=this._cellMetadata[n];r=kf({align:t,cellOffset:s.x,cellSize:s.width,containerSize:a,currentOffset:r,targetIndex:n}),i=kf({align:t,cellOffset:s.y,cellSize:s.height,containerSize:o,currentOffset:i,targetIndex:n})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,o=e.isScrolling,r=e.width,i=e.x,a=e.y,l=this.props,s=l.cellGroupRenderer,u=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:r,x:i,y:a}),s({cellCache:this._cellCache,cellRenderer:u,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:o})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(a.PureComponent);Af.defaultProps={"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,o=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map(function(e){var r=o({index:e}),a={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=n(a)),t[e]):n(a)}).filter(function(e){return!!e})}};Af.propTypes={};var Rf=function(e){function t(e,n){wc()(this,t);var o=xc()(this,(t.__proto__||yc()(t)).call(this,e,n));return o._registerChild=o._registerChild.bind(o),o}return Tc()(t,e),_c()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,o=t.columnMinWidth,r=t.columnCount,i=t.width;n===e.columnMaxWidth&&o===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,o=e.columnMinWidth,r=e.columnCount,i=e.width,a=o||1,l=n?Math.min(n,i):i,s=i/r;return s=Math.max(a,s),s=Math.min(l,s),s=Math.floor(s),t({adjustedWidth:Math.min(i,s*r),columnWidth:s,getColumnWidth:function(){return s},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(a.PureComponent);Rf.propTypes={};var Mf=n(212),Df=n.n(Mf),Lf=function(e){function t(e,n){wc()(this,t);var o=xc()(this,(t.__proto__||yc()(t)).call(this,e,n));return o._loadMoreRowsMemoizer=$c(),o._onRowsRendered=o._onRowsRendered.bind(o),o._registerChild=o._registerChild.bind(o),o}return Tc()(t,e),_c()(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=$c(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var o=n(e);o&&o.then(function(){var n,o,r,i,a;n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},o=n.lastRenderedStartIndex,r=n.lastRenderedStopIndex,i=n.startIndex,a=n.stopIndex,i>r||a<o||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,o=this,r=this.props,i=r.isRowLoaded,a=r.minimumBatchSize,l=r.rowCount,s=r.threshold,u=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,o=e.rowCount,r=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,u=r;u<=i;u++){t({index:u})?null!==s&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=u,null===l&&(l=u))}if(null!==s){for(var c=Math.min(Math.max(s,l+n-1),o-1),f=s+1;f<=c&&!t({index:f});f++)s=f;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var d=a[0];d.stopIndex-d.startIndex+1<n&&d.startIndex>0;){var p=d.startIndex-1;if(t({index:p}))break;d.startIndex=p}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-s),stopIndex:Math.min(l-1,t+s)}),c=(n=[]).concat.apply(n,Df()(u.map(function(e){return[e.startIndex,e.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){o._loadUnloadedRanges(u)},indices:{squashedUnloadedRanges:c}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(a.PureComponent);Lf.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15};Lf.propTypes={};var jf=n(213),Nf=n.n(jf),zf=function(e){function t(){var e,n,o,r;wc()(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(a))),o._cellRenderer=function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,a=e.isVisible,l=e.key,s=o.props.rowRenderer;return Nf()(r,"width").writable&&(r.width="100%"),s({index:n,style:r,isScrolling:i,isVisible:a,key:l,parent:t})},o._setRef=function(e){o.Grid=e},o._onScroll=function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})},o._onSectionRendered=function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})},r=n,xc()(o,r)}return Tc()(t,e),_c()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=Nc("ReactVirtualized__List",t);return a.createElement(ff,Lc()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}}]),t}(a.PureComponent);zf.defaultProps={autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:pf,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}},zf.propTypes=null;var If=zf,Ff=n(87),Bf=n.n(Ff),Uf=n(214),Wf=n.n(Uf);var Hf={ge:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=n+1;t<=n;){var a=t+n>>>1;r(e[a],o)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=n+1;t<=n;){var i=t+n>>>1;e[i]>=o?(r=i,n=i-1):t=i+1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},gt:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=n+1;t<=n;){var a=t+n>>>1;r(e[a],o)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=n+1;t<=n;){var i=t+n>>>1;e[i]>o?(r=i,n=i-1):t=i+1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},lt:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=t-1;t<=n;){var a=t+n>>>1;r(e[a],o)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=t-1;t<=n;){var i=t+n>>>1;e[i]<o?(r=i,t=i+1):n=i-1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},le:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=t-1;t<=n;){var a=t+n>>>1;r(e[a],o)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=t-1;t<=n;){var i=t+n>>>1;e[i]<=o?(r=i,t=i+1):n=i-1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},eq:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(;t<=n;){var i=t+n>>>1,a=r(e[i],o);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(;t<=n;){var r=t+n>>>1,i=e[r];if(i===o)return r;i<=o?t=r+1:n=r-1}return-1}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)}},Vf=0,Gf=1;function qf(e,t,n,o,r){this.mid=e,this.left=t,this.right=n,this.leftPoints=o,this.rightPoints=r,this.count=(t?t.count:0)+(n?n.count:0)+o.length}var $f=qf.prototype;function Yf(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Kf(e,t){var n=rd(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Zf(e,t){var n=e.intervals([]);n.push(t),Kf(e,n)}function Qf(e,t){var n=e.intervals([]),o=n.indexOf(t);return o<0?Vf:(n.splice(o,1),Kf(e,n),Gf)}function Xf(e,t,n){for(var o=0;o<e.length&&e[o][0]<=t;++o){var r=n(e[o]);if(r)return r}}function Jf(e,t,n){for(var o=e.length-1;o>=0&&e[o][1]>=t;--o){var r=n(e[o]);if(r)return r}}function ed(e,t){for(var n=0;n<e.length;++n){var o=t(e[n]);if(o)return o}}function td(e,t){return e-t}function nd(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function od(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function rd(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(td);var o=t[t.length>>1],r=[],i=[],a=[];for(n=0;n<e.length;++n){var l=e[n];l[1]<o?r.push(l):o<l[0]?i.push(l):a.push(l)}var s=a,u=a.slice();return s.sort(nd),u.sort(od),new qf(o,rd(r),rd(i),s,u)}function id(e){this.root=e}$f.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},$f.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Zf(this,e):this.left.insert(e):this.left=rd([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Zf(this,e):this.right.insert(e):this.right=rd([e]);else{var n=Hf.ge(this.leftPoints,e,nd),o=Hf.ge(this.rightPoints,e,od);this.leftPoints.splice(n,0,e),this.rightPoints.splice(o,0,e)}},$f.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Qf(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,Gf):(i===Gf&&(this.count-=1),i):Vf;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Qf(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,Gf):(i===Gf&&(this.count-=1),i):Vf;if(1===this.count)return this.leftPoints[0]===e?2:Vf;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,o=this.left;o.right;)n=o,o=o.right;if(n===this)o.right=this.right;else{var r=this.left,i=this.right;n.count-=o.count,n.right=o.left,o.left=r,o.right=i}Yf(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Yf(this,this.left):Yf(this,this.right);return Gf}for(r=Hf.ge(this.leftPoints,e,nd);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=Hf.ge(this.rightPoints,e,od);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),Gf}return Vf},$f.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return Xf(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return Jf(this.rightPoints,e,t)}return ed(this.leftPoints,t)},$f.queryInterval=function(e,t,n){var o;if(e<this.mid&&this.left&&(o=this.left.queryInterval(e,t,n)))return o;if(t>this.mid&&this.right&&(o=this.right.queryInterval(e,t,n)))return o;return t<this.mid?Xf(this.leftPoints,t,n):e>this.mid?Jf(this.rightPoints,e,n):ed(this.leftPoints,n)};var ad=id.prototype;ad.insert=function(e){this.root?this.root.insert(e):this.root=new qf(e[0],null,null,[e],[e])},ad.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==Vf}return!1},ad.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},ad.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(ad,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(ad,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var ld=function(){function e(){var t;wc()(this,e),this._columnSizeMap={},this._intervalTree=t&&0!==t.length?new id(rd(t)):new id(null),this._leftMap={}}return _c()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var o=e-this.count;return this.tallestColumnSize+Math.ceil(o/t)*n}},{key:"range",value:function(e,t,n){var o=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=Wf()(e,3),r=t[0],i=(t[1],t[2]);return n(i,o._leftMap[i],r)})}},{key:"setPosition",value:function(e,t,n,o){this._intervalTree.insert([n,n+o,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?n+o:Math.max(i,n+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var o=e[n];t=0===t?o:Math.min(t,o)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var o=e[n];t=Math.max(t,o)}return t}}]),e}(),sd=function(e){function t(){var e,n,o,r;wc()(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(a))),o.state={isScrolling:!1,scrollTop:0},o._invalidateOnUpdateStartIndex=null,o._invalidateOnUpdateStopIndex=null,o._positionCache=new ld,o._startIndex=null,o._startIndexMemoized=null,o._stopIndex=null,o._stopIndexMemoized=null,o._debounceResetIsScrollingCallback=function(){o.setState({isScrolling:!1})},o._setScrollingContainerRef=function(e){o._scrollingContainer=e},o._onScroll=function(e){var t=o.props.height,n=e.target.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))},r=n,xc()(o,r)}return Tc()(t,e),_c()(t,[{key:"clearCellPositions",value:function(){this._positionCache=new ld,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new ld,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&af(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoHeight,o=t.cellCount,r=t.cellMeasurerCache,i=t.cellRenderer,l=t.className,s=t.height,u=t.id,c=t.keyMapper,f=t.overscanByPixels,d=t.role,p=t.style,h=t.tabIndex,m=t.width,v=t.rowDirection,g=this.state,y=g.isScrolling,b=g.scrollTop,w=[],S=this._getEstimatedTotalHeight(),_=this._positionCache.shortestColumnSize,E=this._positionCache.count,x=0,C=void 0;if(this._positionCache.range(Math.max(0,b-f),s+2*f,function(t,n,o){var a;void 0===C?(x=t,C=t):(x=Math.min(x,t),C=Math.max(C,t)),w.push(i({index:t,isScrolling:y,key:c(t),parent:e,style:(a={height:r.getHeight(t)},Bf()(a,"ltr"===v?"left":"right",n),Bf()(a,"position","absolute"),Bf()(a,"top",o),Bf()(a,"width",r.getWidth(t)),a)}))}),_<b+s+f&&E<o)for(var T=Math.min(o-E,Math.ceil((b+s+f-_)/r.defaultHeight*m/r.defaultWidth)),O=E;O<E+T;O++)C=O,w.push(i({index:O,isScrolling:y,key:c(O),parent:this,style:{width:r.getWidth(O)}}));return this._startIndex=x,this._stopIndex=C,a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Nc("ReactVirtualized__Masonry",l),id:u,onScroll:this._onScroll,role:d,style:Lc()({boxSizing:"border-box",direction:"ltr",height:n?"auto":s,overflowX:"hidden",overflowY:S<s?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:h},a.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:S,maxWidth:"100%",maxHeight:S,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"}},w))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&af(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=lf(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,o=e.width,r=Math.max(1,Math.floor(o/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,o=this.state.scrollTop;this._onScrollMemoized!==o&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:o}),this._onScrollMemoized=o)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,o=n.cellMeasurerCache,r=n.cellPositioner,i=e;i<=t;i++){var a=r(i),l=a.left,s=a.top;this._positionCache.setPosition(i,l,s,o.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(a.PureComponent);function ud(){}sd.defaultProps={autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:ud,onScroll:ud,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"},sd.propTypes=null;Ac(sd);var cd=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};wc()(this,e),this.columnWidth=function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})},this.rowHeight=function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})};var o=n.cellMeasurerCache,r=n.columnIndexOffset,i=void 0===r?0:r,a=n.rowIndexOffset,l=void 0===a?0:a;this._cellMeasurerCache=o,this._columnIndexOffset=i,this._rowIndexOffset=l}return _c()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,o){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,o)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}(),fd=function(e){function t(e,n){wc()(this,t);var o=xc()(this,(t.__proto__||yc()(t)).call(this,e,n));dd.call(o);var r=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return o._maybeCalculateCachedStyles(!0),r&&(o._deferredMeasurementCacheBottomLeftGrid=a>0?new cd({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:a}):r,o._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new cd({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:a}):r,o._deferredMeasurementCacheTopRightGrid=i>0?new cd({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),o}return Tc()(t,e),_c()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var o={};t>0&&(o.scrollLeft=t),n>0&&(o.scrollTop=n),this.setState(o)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=Fc()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,s=l.scrollLeft,u=l.scrollTop;return a.createElement("div",{style:this._containerOuterStyle},a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Lc()({},i,{onScroll:t,scrollLeft:s}))),a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Lc()({},i,{onScroll:t,scrollTop:u})),this._renderBottomRightGrid(Lc()({},i,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:o,scrollToRow:r,scrollTop:u}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r<t;r++)o+=n({index:r});this._leftGridWidth=o}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var o=0,r=0;r<t;r++)o+=n({index:r});this._topGridHeight=o}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,o=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,l=t.fixedRowCount,s=t.rowHeight,u=t.style,c=t.styleBottomLeftGrid,f=t.styleBottomRightGrid,d=t.styleTopLeftGrid,p=t.styleTopRightGrid,h=t.width,m=e||i!==this._lastRenderedHeight||h!==this._lastRenderedWidth,v=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,g=e||l!==this._lastRenderedFixedRowCount||s!==this._lastRenderedRowHeight;(e||m||u!==this._lastRenderedStyle)&&(this._containerOuterStyle=Lc()({height:i,overflow:"visible",width:h},u)),(e||m||g)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:h},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:h}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Lc()({left:0,overflowX:"hidden",overflowY:o?"auto":"hidden",position:"absolute"},c)),(e||v||f!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Lc()({left:this._getLeftGridWidth(this.props),position:"absolute"},f)),(e||d!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Lc()({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},d)),(e||v||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Lc()({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=s,this._lastRenderedStyle=u,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=f,this._lastRenderedStyleTopLeftGrid=d,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=h}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,o=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!n)return null;var s=l?1:0,u=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),f=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=i?c+f:c,p=a.createElement(ff,Lc()({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:u,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-o)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return i?a.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Lc()({},this._bottomLeftGridStyle,{height:u,width:c,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,o=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,l=e.scrollToRow;return a.createElement(ff,Lc()({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,r-o),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-n,scrollToRow:l-o,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?a.createElement(ff,Lc()({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,l=e.hideTopRightGridScrollbar,s=this.state,u=s.showHorizontalScrollbar,c=s.scrollbarSize;if(!r)return null;var f=u?1:0,d=this._getTopGridHeight(e),p=this._getRightGridWidth(e),h=u?c:0,m=d,v=this._topRightGridStyle;l&&(m=d+h,v=Lc()({},this._topRightGridStyle,{left:0}));var g=a.createElement(ff,Lc()({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-o)+f,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:v,tabIndex:null,width:p}));return l?a.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Lc()({},this._topRightGridStyle,{height:d,width:p,overflowX:"hidden"})},g):g}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(a.PureComponent);fd.defaultProps={classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1};var dd=function(){var e=this;this.state={scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1},this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this._bottomLeftGridRef=function(t){e._bottomLeftGrid=t},this._bottomRightGridRef=function(t){e._bottomRightGrid=t},this._cellRendererBottomLeftGrid=function(t){var n=t.rowIndex,o=Fc()(t,["rowIndex"]),r=e.props,i=r.cellRenderer,l=r.fixedRowCount;return n===r.rowCount-l?a.createElement("div",{key:o.key,style:Lc()({},o.style,{height:20})}):i(Lc()({},o,{parent:e,rowIndex:n+l}))},this._cellRendererBottomRightGrid=function(t){var n=t.columnIndex,o=t.rowIndex,r=Fc()(t,["columnIndex","rowIndex"]),i=e.props,a=i.cellRenderer,l=i.fixedColumnCount,s=i.fixedRowCount;return a(Lc()({},r,{columnIndex:n+l,parent:e,rowIndex:o+s}))},this._cellRendererTopRightGrid=function(t){var n=t.columnIndex,o=Fc()(t,["columnIndex"]),r=e.props,i=r.cellRenderer,l=r.columnCount,s=r.fixedColumnCount;return n===l-s?a.createElement("div",{key:o.key,style:Lc()({},o.style,{width:20})}):i(Lc()({},o,{columnIndex:n+s,parent:e}))},this._columnWidthRightGrid=function(t){var n=t.index,o=e.props,r=o.columnCount,i=o.fixedColumnCount,a=o.columnWidth,l=e.state,s=l.scrollbarSize;return l.showHorizontalScrollbar&&n===r-i?s:"function"==typeof a?a({index:n+i}):a},this._onScroll=function(t){var n=t.scrollLeft,o=t.scrollTop;e.setState({scrollLeft:n,scrollTop:o});var r=e.props.onScroll;r&&r(t)},this._onScrollbarPresenceChange=function(t){var n=t.horizontal,o=t.size,r=t.vertical,i=e.state,a=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(n!==a||r!==l){e.setState({scrollbarSize:o,showHorizontalScrollbar:n,showVerticalScrollbar:r});var s=e.props.onScrollbarPresenceChange;"function"==typeof s&&s({horizontal:n,size:o,vertical:r})}},this._onScrollLeft=function(t){var n=t.scrollLeft;e._onScroll({scrollLeft:n,scrollTop:e.state.scrollTop})},this._onScrollTop=function(t){var n=t.scrollTop;e._onScroll({scrollTop:n,scrollLeft:e.state.scrollLeft})},this._rowHeightBottomGrid=function(t){var n=t.index,o=e.props,r=o.fixedRowCount,i=o.rowCount,a=o.rowHeight,l=e.state,s=l.scrollbarSize;return l.showVerticalScrollbar&&n===i-r?s:"function"==typeof a?a({index:n+r}):a},this._topLeftGridRef=function(t){e._topLeftGrid=t},this._topRightGridRef=function(t){e._topRightGrid=t}};fd.propTypes={},Ac(fd);var pd=function(e){function t(e,n){wc()(this,t);var o=xc()(this,(t.__proto__||yc()(t)).call(this,e,n));return o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(o),o}return Tc()(t,e),_c()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,o=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,l=t.scrollWidth;return e({clientHeight:n,clientWidth:o,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:a,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,o=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:o,scrollLeft:r,scrollTop:i,scrollWidth:a})}}]),t}(a.PureComponent);pd.propTypes={};function hd(e){var t=e.className,n=e.columns,o=e.style;return a.createElement("div",{className:t,role:"row",style:o},n)}hd.propTypes=null;var md={ASC:"ASC",DESC:"DESC"};function vd(e){var t=e.sortDirection,n=Nc("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===md.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===md.DESC});return a.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===md.ASC?a.createElement("path",{d:"M7 14l5-5 5 5z"}):a.createElement("path",{d:"M7 10l5 5 5-5z"}),a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function gd(e){var t=e.dataKey,n=e.label,o=e.sortBy,r=e.sortDirection,i=o===t,l=[a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return i&&l.push(a.createElement(vd,{key:"SortIndicator",sortDirection:r})),l}function yd(e){var t=e.className,n=e.columns,o=e.index,r=e.key,i=e.onRowClick,l=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,f=e.rowData,d=e.style,p={"aria-rowindex":o+1};return(i||l||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:o,rowData:f})}),l&&(p.onDoubleClick=function(e){return l({event:e,index:o,rowData:f})}),s&&(p.onMouseOut=function(e){return s({event:e,index:o,rowData:f})}),u&&(p.onMouseOver=function(e){return u({event:e,index:o,rowData:f})}),c&&(p.onContextMenu=function(e){return c({event:e,index:o,rowData:f})})),a.createElement("div",Lc()({},p,{className:t,key:r,role:"row",style:d}),n)}vd.propTypes={},gd.propTypes=null,yd.propTypes=null;var bd=function(e){function t(){return wc()(this,t),xc()(this,(t.__proto__||yc()(t)).apply(this,arguments))}return Tc()(t,e),t}(a.Component);bd.defaultProps={cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:md.ASC,flexGrow:0,flexShrink:1,headerRenderer:gd,style:{}};bd.propTypes={};var wd=function(e){function t(e){wc()(this,t);var n=xc()(this,(t.__proto__||yc()(t)).call(this,e));return n.state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(n),n._createRow=n._createRow.bind(n),n._onScroll=n._onScroll.bind(n),n._onSectionRendered=n._onSectionRendered.bind(n),n._setRef=n._setRef.bind(n),n}return Tc()(t,e),_c()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,r=t.disableHeader,i=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,f=t.id,d=t.noRowsRenderer,p=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,v=t.style,g=t.width,y=this.state.scrollbarWidth,b=r?c:c-s,w="function"==typeof p?p({index:-1}):p,S="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=Lc()({},o,{overflow:"hidden"})}),a.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":a.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:Nc("ReactVirtualized__Table",o),id:f,role:"grid",style:v},!r&&u({className:Nc("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:Lc()({height:s,overflow:"hidden",paddingRight:y,width:g},S)}),a.createElement(ff,Lc()({},this.props,{autoContainerWidth:!0,className:Nc("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:b,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Lc()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,l=e.rowIndex,s=this.props.onColumnClick,u=t.props,c=u.cellDataGetter,f=u.cellRenderer,d=u.className,p=u.columnData,h=u.dataKey,m=u.id,v=f({cellData:c({columnData:p,dataKey:h,rowData:i}),columnData:p,columnIndex:n,dataKey:h,isScrolling:o,parent:r,rowData:i,rowIndex:l}),g=this._cachedColumnStyles[n],y="string"==typeof v?v:null;return a.createElement("div",{"aria-colindex":n+1,"aria-describedby":m,className:Nc("ReactVirtualized__Table__rowColumn",d),key:"Row"+l+"-Col"+n,onClick:function(e){s&&s({columnData:p,dataKey:h,event:e})},role:"gridcell",style:g,title:y},v)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,r=o.headerClassName,i=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,f=t.props,d=f.columnData,p=f.dataKey,h=f.defaultSortDirection,m=f.disableSort,v=f.headerRenderer,g=f.id,y=f.label,b=!m&&s,w=Nc("ReactVirtualized__Table__headerColumn",r,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),S=this._getFlexStyleForColumn(t,Lc()({},i,t.props.headerStyle)),_=v({columnData:d,dataKey:p,disableSort:m,label:y,sortBy:u,sortDirection:c}),E=void 0,x=void 0,C=void 0,T=void 0,O=void 0;if(b||l){var P=u!==p?h:c===md.DESC?md.ASC:md.DESC,k=function(e){b&&s({defaultSortDirection:h,event:e,sortBy:p,sortDirection:P}),l&&l({columnData:d,dataKey:p,event:e})};O=t.props["aria-label"]||y||p,T="none",C=0,E=k,x=function(e){"Enter"!==e.key&&" "!==e.key||k(e)}}return u===p&&(T=c===md.ASC?"ascending":"descending"),a.createElement("div",{"aria-label":O,"aria-sort":T,className:w,id:g,key:"Header-Col"+n,onClick:E,onKeyDown:x,role:"columnheader",style:S,tabIndex:C},_)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,r=e.key,i=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,f=s.onRowDoubleClick,d=s.onRowRightClick,p=s.onRowMouseOver,h=s.onRowMouseOut,m=s.rowClassName,v=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,b=this.state.scrollbarWidth,w="function"==typeof m?m({index:n}):m,S="function"==typeof y?y({index:n}):y,_=v({index:n}),E=a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:i,rowData:_,rowIndex:n,scrollbarWidth:b})}),x=Nc("ReactVirtualized__Table__row",w),C=Lc()({},l,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},S);return g({className:x,columns:E,index:n,isScrolling:o,key:r,onRowClick:c,onRowDoubleClick:f,onRowRightClick:d,onRowMouseOver:p,onRowMouseOut:h,rowData:_,style:C})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=Lc()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){if(this.Grid){var e=Object(s.findDOMNode)(this.Grid),t=e.clientWidth||0,n=(e.offsetWidth||0)-t;this.setState({scrollbarWidth:n})}}}]),t}(a.PureComponent);wd.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:pf,overscanRowCount:10,rowRenderer:yd,headerRowRenderer:hd,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}};wd.propTypes={};var Sd=[],_d=null,Ed=null;function xd(){Ed&&(Ed=null,document.body&&null!=_d&&(document.body.style.pointerEvents=_d),_d=null)}function Cd(){xd(),Sd.forEach(function(e){return e.__resetIsScrolling()})}function Td(e){e.currentTarget===window&&null==_d&&document.body&&(_d=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Ed&&af(Ed);var e=0;Sd.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Ed=lf(Cd,e)}(),Sd.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function Od(e,t){Sd.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",Td),Sd.push(e)}function Pd(e,t){(Sd=Sd.filter(function(t){return t!==e})).length||(t.removeEventListener("scroll",Td),Ed&&(af(Ed),xd()))}var kd=function(e){return e===window},Ad=function(e){return e.getBoundingClientRect()};function Rd(e,t){if(e){if(kd(e)){var n=window,o=n.innerHeight,r=n.innerWidth;return{height:"number"==typeof o?o:0,width:"number"==typeof r?r:0}}return Ad(e)}return{height:t.serverHeight,width:t.serverWidth}}function Md(e,t){if(kd(t)&&document.documentElement){var n=document.documentElement,o=Ad(e),r=Ad(n);return{top:o.top-r.top,left:o.left-r.left}}var i=Dd(t),a=Ad(e),l=Ad(t);return{top:a.top+i.top-l.top,left:a.left+i.left-l.left}}function Dd(e){return kd(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}var Ld=function(){return"undefined"!=typeof window?window:void 0},jd=function(e){function t(){var e,n,o,r;wc()(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=xc()(this,(e=t.__proto__||yc()(t)).call.apply(e,[this].concat(a))),o._window=Ld(),o._isMounted=!1,o._positionFromTop=0,o._positionFromLeft=0,o.state=Lc()({},Rd(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0}),o._registerChild=function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),o._child=e,o.updatePosition()},o._onChildScroll=function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}},o._registerResizeListener=function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)},o._unregisterResizeListener=function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)},o._onResize=function(){o.updatePosition()},o.__handleWindowScrollEvent=function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=Dd(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}},o.__resetIsScrolling=function(){o.setState({isScrolling:!1})},r=n,xc()(o,r)}return Tc()(t,e),_c()(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,o=n.height,r=n.width,i=this._child||s.findDOMNode(this);if(i instanceof Element&&e){var a=Md(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=Rd(e,this.props);o===l.height&&r===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(mf.a)(),this.updatePosition(e),e&&(Od(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,o=e.scrollElement;o!==n&&null!=o&&null!=n&&(this.updatePosition(n),Pd(this,o),Od(this,n),this._unregisterResizeListener(o),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Pd(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop,r=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:r,scrollTop:o,width:a})}}]),t}(a.PureComponent);jd.defaultProps={onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Ld(),serverHeight:0,serverWidth:0},jd.propTypes=null;n(563);function Nd(e){return(Nd="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 zd(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Id(e){return(Id=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bd(e,t){return(Bd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Nd(t)&&"function"!=typeof t?Fd(e):t}(this,Id(t).call(this)),Ud(Fd(e),"toggleDropdown",function(){e.setState(function(e){return{isOpen:!e.isOpen}})}),Ud(Fd(e),"handleDisplayItemChange",function(t,n){t.stopPropagation(),e.props.setSortStrategy(n),e.setState({isOpen:!1})}),Ud(Fd(e),"getTranslatedContent",function(t){return e.props.t(e.sortStrategyToTranslationMap[t])||t}),Ud(Fd(e),"renderDropdownItems",function(){var t=e.props,n=t.sortStrategy;return t.items.filter(function(e){return e!==n}).map(function(t){return l.a.createElement("div",{key:t,className:"dropdown-item",onClick:function(n){return e.handleDisplayItemChange(n,t)}},e.getTranslatedContent(t))})}),e.state={isOpen:!1},e.sortStrategyToTranslationMap={position:"option.notesPanel.orderPosition",time:"option.notesPanel.orderTime"},e}var n,o,r;return 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&&Bd(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.sortStrategy;return t?null:l.a.createElement("div",{className:"Dropdown","data-element":"dropdown",onClick:this.toggleDropdown},l.a.createElement("div",{className:"items"},l.a.createElement("div",{className:"display-item"},this.getTranslatedContent(n)),l.a.createElement("div",{className:"dropdown-items ".concat(this.state.isOpen?"show":"hide")},this.renderDropdownItems())))}}])&&zd(n.prototype,o),r&&zd(n,r),t}();Ud(Wd,"propTypes",{isDisabled:x.a.bool,sortStrategy:x.a.string.isRequired,setSortStrategy:x.a.func.isRequired,items:x.a.array.isRequired,t:x.a.func.isRequired});var Hd=we(function(e){return{isDisabled:hr.isElementDisabled(e,"dropdown"),sortStrategy:hr.getSortStrategy(e)}},{setSortStrategy:Ii.setSortStrategy})(Xe()(Wd)),Vd=l.a.createContext(),Gd={value:x.a.string,placeholder:x.a.string,onChange:x.a.func.isRequired,onBlur:x.a.func,onFocus:x.a.func,onSubmit:x.a.func},qd=l.a.forwardRef(function(e,t){var n=e.value,o=void 0===n?"":n,r=e.onChange,i=e.onSubmit,s=void 0===i?function(){}:i,u=e.onBlur,c=void 0===u?function(){}:u,f=e.onFocus,d=void 0===f?function(){}:f,p=e.placeholder,h=void 0===p?"":p,m=Object(a.useContext)(Vd).resize,v=Object(a.useRef)(),g=Object(a.useRef)();Object(a.useLayoutEffect)(function(){g.current.style.height="30px";var e=g.current.scrollHeight+2;2!==e&&(g.current.style.height="".concat(e,"px"),v.current&&v.current===e||m(),v.current=e)},[m,o]);return l.a.createElement("textarea",{ref:function(e){g.current=e,t(e)},onChange:function(e){r(e.target.value)},onKeyDown:function(e){(e.metaKey||e.ctrlKey)&&13===e.which&&s(e)},onFocus:d,onBlur:c,value:o,placeholder:h})});qd.propTypes=Gd;var $d=qd;function Yd(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Kd(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function Zd(e){throw new Error("Unhandled case for value: '"+e+"'")}var Qd=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),o=this.whitespaceRegex,r=n?n.split(o):[],i=e.split(o);t=i.shift();)-1===Yd(r,t)&&r.push(t);return this.getAttrs().class=r.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),o=this.whitespaceRegex,r=n?n.split(o):[],i=e.split(o);r.length&&(t=i.shift());){var a=Yd(r,t);-1!==a&&r.splice(a,1)}return this.getAttrs().class=r.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var Xd=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new Qd({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],o=e.getCssClassSuffixes(),r=0,i=o.length;r<i;r++)n.push(t+"-"+o[r]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,o=t.location;return"smart"===o?function(e,t,n){var o,r;null==n?(n="&hellip;",r=3,o=8):(r=n.length,o=n.length);var i=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var o=t/2,r=Math.ceil(o),i=-1*Math.floor(o),a="";return i<0&&(a=e.substr(i)),e.substr(0,r)+n+a};if(e.length<=t)return e;var l=t-r,s=function(e){var t={},n=e,o=n.match(/^([a-z]+):\/\//i);return o&&(t.scheme=o[1],n=n.substr(o[0].length)),(o=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=o[1],n=n.substr(o[0].length)),(o=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=o[1],n=n.substr(o[0].length)),(o=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=o[1],n=n.substr(o[0].length)),(o=n.match(/^#(.*?)$/i))&&(t.fragment=o[1]),t}(e);if(s.query){var u=s.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(s.query=s.query.substr(0,u[1].length),e=i(s))}if(e.length<=t)return e;if(s.host&&(s.host=s.host.replace(/^www\./,""),e=i(s)),e.length<=t)return e;var c="";if(s.host&&(c+=s.host),c.length>=l)return s.host.length==t?(s.host.substr(0,t-r)+n).substr(0,l+o):a(c,l).substr(0,l+o);var f="";if(s.path&&(f+="/"+s.path),s.query&&(f+="?"+s.query),f){if((c+f).length>=l)return(c+f).length==t?(c+f).substr(0,t):(c+a(f,l-c.length)).substr(0,l+o);c+=f}if(s.fragment){var d="#"+s.fragment;if((c+d).length>=l)return(c+d).length==t?(c+d).substr(0,t):(c+a(d,l-c.length)).substr(0,l+o);c+=d}if(s.scheme&&s.host){var p=s.scheme+"://";if((c+p).length<l)return(p+c).substr(0,t)}if(c.length<=t)return c;var h="";return l>0&&(h=c.substr(-1*Math.floor(l/2))),(c.substr(0,Math.ceil(l/2))+n+h).substr(0,l+o)}(e,n):"middle"===o?function(e,t,n){if(e.length<=t)return e;var o,r;null==n?(n="&hellip;",o=8,r=3):(o=n.length,r=n.length);var i=t-r,a="";return i>0&&(a=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+n+a).substr(0,i+o)}(e,n):function(e,t,n){return function(e,t,n){var o;return e.length>t&&(null==n?(n="&hellip;",o=3):o=n.length,e=e.substring(0,t-o)+n),e}(e,t,n)}(e,n)},e}(),Jd=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),ep=function(e,t){return(ep=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 tp(e,t){function n(){this.constructor=e}ep(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var np=function(){return(np=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};var op=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return tp(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(Jd),rp=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return tp(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(Jd),ip=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return tp(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(Jd),ap=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return tp(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(Jd),lp=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return tp(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}},t}(Jd),sp=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},up=/[A-Za-z]/,cp=/[0-9]/,fp=/\s/,dp=/['"]/,pp=/[\x00-\x1F\x7F]/,hp=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,mp=hp+/\u00a9\u00ae\u2000-\u3300\ud83c\ud000-\udfff\ud83d\ud000-\udfff\ud83e\ud000-\udfff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,vp=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,gp=mp+vp,yp=mp+vp,bp="(?:["+vp+"]{1,3}\\.){3}["+vp+"]{1,3}",wp="["+yp+"](?:["+yp+"\\-]{0,61}["+yp+"])?",Sp=function(e){return"(?=("+wp+"))\\"+e},_p=function(e){return"(?:"+Sp(e)+"(?:\\."+Sp(e+1)+"){0,126}|"+bp+")"},Ep=(new RegExp("["+yp+".\\-]*["+yp+"\\-]"),new RegExp("["+yp+"]")),xp=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,Cp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=new RegExp("["+yp+"!#$%&'*+/=?^_`{|}~-]"),t.strictTldRegex=new RegExp("^"+xp.source+"$"),t}return tp(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,o=this.strictTldRegex,r=[],i=e.length,a=new Tp,l={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},s=0,u=0,c=a;s<i;){var f=e.charAt(s);switch(u){case 0:d(f);break;case 1:p(e.charAt(s-1),f);break;case 2:h(f);break;case 3:m(f);break;case 4:v(f);break;case 5:g(f);break;case 6:y(f);break;case 7:b(f);break;default:Zd(u)}s++}return _(),r;function d(e){"m"===e?w(1):n.test(e)&&w()}function p(e,t){":"===e?n.test(t)?(u=2,c=new Tp(np({},c,{hasMailtoPrefix:!0}))):S():l[e]===t||(n.test(t)?u=2:"."===t?u=3:"@"===t?u=4:S())}function h(e){"."===e?u=3:"@"===e?u=4:n.test(e)||S()}function m(e){"."===e?S():"@"===e?S():n.test(e)?u=2:S()}function v(e){Ep.test(e)?u=5:S()}function g(e){"."===e?u=7:"-"===e?u=6:Ep.test(e)||_()}function y(e){"-"===e||"."===e?_():Ep.test(e)?u=5:_()}function b(e){"."===e||"-"===e?_():Ep.test(e)?(u=5,c=new Tp(np({},c,{hasDomainDot:!0}))):_()}function w(e){void 0===e&&(e=2),u=e,c=new Tp({idx:s})}function S(){u=0,c=a}function _(){if(c.hasDomainDot){var n=e.slice(c.idx,s);/[-.]$/.test(n)&&(n=n.slice(0,-1));var i=c.hasMailtoPrefix?n.slice("mailto:".length):n;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return o.test(t)})(i)&&r.push(new op({tagBuilder:t,matchedText:n,offset:c.idx,email:i}))}S()}},t}(sp),Tp=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},Op=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+hp+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),Pp=function(e){function t(t){var n,o=e.call(this,t)||this;return o.stripPrefix={scheme:!0,www:!0},o.stripTrailingSlash=!0,o.decodePercentEncoding=!0,o.matcherRegex=(n=new RegExp("[/?#](?:["+yp+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+yp+"\\-+&@#/%=~_()|'$*\\[\\]✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,_p(2),")","|","(","(//)?",/(?:www\.)/.source,_p(6),")","|","(","(//)?",_p(10)+"\\.",xp.source,"(?![-"+gp+"])",")",")","(?::[0-9]+)?","(?:"+n.source+")?"].join(""),"gi")),o.wordCharRegExp=new RegExp("["+yp+"]"),o.stripPrefix=t.stripPrefix,o.stripTrailingSlash=t.stripTrailingSlash,o.decodePercentEncoding=t.decodePercentEncoding,o}return tp(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.stripPrefix,r=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,l=[],s=function(){var n=t[0],s=t[1],c=t[4],f=t[5],d=t[9],p=t.index,h=f||d,m=e.charAt(p-1);if(!Op.isValid(n,s))return"continue";if(p>0&&"@"===m)return"continue";if(p>0&&h&&u.wordCharRegExp.test(m))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),u.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var v=u.matchHasInvalidCharAfterTld(n,s);v>-1&&(n=n.substr(0,v))}var g=["http://","https://"].find(function(e){return!!s&&-1!==s.indexOf(e)});if(g){var y=n.indexOf(g);n=n.substr(y),s=s.substr(y),p+=y}var b=s?"scheme":c?"www":"tld",w=!!s;l.push(new lp({tagBuilder:a,matchedText:n,offset:p,urlMatchType:b,url:n,protocolUrlMatch:w,protocolRelativeMatch:!!h,stripPrefix:o,stripTrailingSlash:r,decodePercentEncoding:i}))},u=this;null!==(t=n.exec(e));)s();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else{if("]"!==n)return!1;t="["}for(var o=0,r=0,i=e.length-1;r<i;r++){var a=e.charAt(r);a===t?o++:a===n&&(o=Math.max(o-1,0))}return 0===o},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var o=new RegExp("^((.?//)?[-."+yp+"]*[-"+yp+"]\\.[-"+yp+"]+)").exec(e);return null===o?-1:(n+=o[1].length,e=e.slice(o[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(sp),kp=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegex=new RegExp("#[_"+yp+"]{1,139}(?![_"+yp+"])","g"),n.nonWordCharRegex=new RegExp("[^"+yp+"]"),n.serviceName=t.serviceName,n}return tp(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.nonWordCharRegex,r=this.serviceName,i=this.tagBuilder,a=[];null!==(t=n.exec(e));){var l=t.index,s=e.charAt(l-1);if(0===l||o.test(s)){var u=t[0],c=t[0].slice(1);a.push(new rp({tagBuilder:i,matchedText:u,offset:l,serviceName:r,hashtag:c}))}}return a},t}(sp),Ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/g,t}return tp(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.tagBuilder,r=[];null!==(t=n.exec(e));){var i=t[0],a=i.replace(/[^0-9,;#]/g,""),l=!(!t[1]&&!t[2]),s=0==t.index?"":e.substr(t.index-1,1),u=e.substr(t.index+i.length,1),c=!s.match(/\d/)&&!u.match(/\d/);this.testMatch(t[3])&&this.testMatch(i)&&c&&r.push(new ap({tagBuilder:o,matchedText:i,offset:t.index,number:a,plusSign:l}))}return r},t.prototype.testMatch=function(e){return/\D/.test(e)},t}(sp),Rp=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:new RegExp("@[_"+yp+"]{1,50}(?![_"+yp+"])","g"),instagram:new RegExp("@[_."+yp+"]{1,30}(?![_"+yp+"])","g"),soundcloud:new RegExp("@[-_."+yp+"]{1,50}(?![-_"+yp+"])","g")},n.nonWordCharRegex=new RegExp("[^"+yp+"]"),n.serviceName=t.serviceName,n}return tp(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,o=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,i=this.tagBuilder,a=[];if(!o)return a;for(;null!==(t=o.exec(e));){var l=t.index,s=e.charAt(l-1);if(0===l||r.test(s)){var u=t[0].replace(/\.+$/g,""),c=u.slice(1);a.push(new ip({tagBuilder:i,matchedText:u,offset:l,serviceName:n,mention:c}))}}return a},t}(sp);function Mp(e,t){for(var n,o=t.onOpenTag,r=t.onCloseTag,i=t.onText,a=t.onComment,l=t.onDoctype,s=new Dp,u=0,c=e.length,f=0,d=0,p=s;u<c;){var h=e.charAt(u);switch(f){case 0:m(h);break;case 1:v(h);break;case 2:y(h);break;case 3:g(h);break;case 4:b(h);break;case 5:w(h);break;case 6:S(h);break;case 7:_(h);break;case 8:E(h);break;case 9:x(h);break;case 10:C(h);break;case 11:T(h);break;case 12:O(h);break;case 13:P(h);break;case 14:k(h);break;case 15:A(h);break;case 16:R(h);break;case 17:M(h);break;case 18:D(h);break;case 19:L(h);break;case 20:j(h);break;default:Zd(f)}u++}function m(e){"<"===e&&z()}function v(e){"!"===e?f=13:"/"===e?(f=2,p=new Dp(np({},p,{isClosing:!0}))):"<"===e?z():up.test(e)?(f=3,p=new Dp(np({},p,{isOpening:!0}))):(f=0,p=s)}function g(e){fp.test(e)?(p=new Dp(np({},p,{name:F()})),f=4):"<"===e?z():"/"===e?(p=new Dp(np({},p,{name:F()})),f=12):">"===e?(p=new Dp(np({},p,{name:F()})),I()):up.test(e)||cp.test(e)||":"===e||N()}function y(e){">"===e?N():up.test(e)?f=3:N()}function b(e){fp.test(e)||("/"===e?f=12:">"===e?I():"<"===e?z():"="===e||dp.test(e)||pp.test(e)?N():f=5)}function w(e){fp.test(e)?f=6:"/"===e?f=12:"="===e?f=7:">"===e?I():"<"===e?z():dp.test(e)&&N()}function S(e){fp.test(e)||("/"===e?f=12:"="===e?f=7:">"===e?I():"<"===e?z():dp.test(e)?N():f=5)}function _(e){fp.test(e)||('"'===e?f=8:"'"===e?f=9:/[>=`]/.test(e)?N():"<"===e?z():f=10)}function E(e){'"'===e&&(f=11)}function x(e){"'"===e&&(f=11)}function C(e){fp.test(e)?f=4:">"===e?I():"<"===e&&z()}function T(e){fp.test(e)?f=4:"/"===e?f=12:">"===e?I():"<"===e?z():(f=4,u--)}function O(e){">"===e?(p=new Dp(np({},p,{isClosing:!0})),I()):f=4}function P(t){"--"===e.substr(u,2)?(u+=2,p=new Dp(np({},p,{type:"comment"})),f=14):"DOCTYPE"===e.substr(u,7).toUpperCase()?(u+=7,p=new Dp(np({},p,{type:"doctype"})),f=20):N()}function k(e){"-"===e?f=15:">"===e?N():f=16}function A(e){"-"===e?f=18:">"===e?N():f=16}function R(e){"-"===e&&(f=17)}function M(e){f="-"===e?18:16}function D(e){">"===e?I():"!"===e?f=19:"-"===e||(f=16)}function L(e){"-"===e?f=17:">"===e?I():f=16}function j(e){">"===e?I():"<"===e&&z()}function N(){f=0,p=s}function z(){f=1,p=new Dp({idx:u})}function I(){var t=e.slice(d,p.idx);t&&i(t,d),"comment"===p.type?a(p.idx):"doctype"===p.type?l(p.idx):(p.isOpening&&o(p.name,p.idx),p.isClosing&&r(p.name,p.idx)),N(),d=u+1}function F(){var t=p.idx+(p.isClosing?2:1);return e.slice(t,u).toLowerCase()}d<u&&(n=e.slice(d,u),i(n,d),d=u+1)}var Dp=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},Lp=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding;var n=this.mention;if(!1!==n&&"twitter"!==n&&"instagram"!==n&&"soundcloud"!==n)throw new Error("invalid `mention` cfg - see docs");var o=this.hashtag;if(!1!==o&&"twitter"!==o&&"facebook"!==o&&"instagram"!==o)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],o=0,r=[];return Mp(e,{onOpenTag:function(e){n.indexOf(e)>=0&&o++},onText:function(e,n){if(0===o){var i=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,o=[],r=0;n=t.exec(e);)o.push(e.substring(r,n.index)),o.push(n[0]),r=n.index+n[0].length;return o.push(e.substring(r)),o}(e,/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=n;i.forEach(function(e,n){if(n%2==0){var o=t.parseText(e,a);r.push.apply(r,o)}a+=e.length})}},onCloseTag:function(e){n.indexOf(e)>=0&&(o=Math.max(o-1,0))},onComment:function(e){},onDoctype:function(e){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},e.prototype.compactMatches=function(e){e.sort(function(e,t){return e.getOffset()-t.getOffset()});for(var t=0;t<e.length-1;t++){var n=e[t],o=n.getOffset(),r=n.getMatchedText().length,i=o+r;if(t+1<e.length){if(e[t+1].getOffset()===o){var a=e[t+1].getMatchedText().length>r?t:t+1;e.splice(a,1);continue}e[t+1].getOffset()<i&&e.splice(t+1,1)}}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||Kd(e,function(e){return"hashtag"===e.getType()}),this.email||Kd(e,function(e){return"email"===e.getType()}),this.phone||Kd(e,function(e){return"phone"===e.getType()}),this.mention||Kd(e,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||Kd(e,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||Kd(e,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||Kd(e,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),o=[],r=0,i=n.length;r<i;r++){for(var a=n[r].parseMatches(e),l=0,s=a.length;l<s;l++)a[l].setOffset(t+a[l].getOffset());o.push.apply(o,a)}return o},e.prototype.link=function(e){if(!e)return"";for(var t=this.parse(e),n=[],o=0,r=0,i=t.length;r<i;r++){var a=t[r];n.push(e.substring(o,a.getOffset())),n.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(o)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof Qd?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new kp({tagBuilder:e,serviceName:this.hashtag}),new Cp({tagBuilder:e}),new Ap({tagBuilder:e}),new Rp({tagBuilder:e,serviceName:this.mention}),new Pp({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new Xd({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.11.0",e.AnchorTagBuilder=Xd,e.HtmlTag=Qd,e.matcher={Email:Cp,Hashtag:kp,Matcher:sp,Mention:Rp,Phone:Ap,Url:Pp},e.match={Email:op,Hashtag:rp,Match:Jd,Mention:ip,Phone:ap,Url:lp},e}(),jp=n(31),Np=n.n(jp);n(564);function zp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ip={annotation:x.a.object.isRequired,setIsEditing:x.a.func.isRequired},Fp=function(e){var t=e.annotation,n=e.setIsEditing,o=zp(Oe(function(e){return[hr.getNotePopupId(e),hr.isElementDisabled(e,"notePopup"),hr.isElementDisabled(e,"notePopupEdit"),hr.isElementDisabled(e,"notePopupDelete")]},K),4),r=o[0],i=o[1],s=o[2],u=o[3],c=zp(Object(a.useState)(Bi.canModify(t)),2),f=c[0],d=c[1],p=zp(Ze(),1)[0],h=Ee(),m=r===t.Id;Object(a.useEffect)(function(){var e=function(){d(Bi.canModify(t))};return Bi.addEventListener("updateAnnotationPermission",e),function(){return Bi.removeEventListener("updateAnnotationPermission",e)}},[t]);var v=function(){h(Ii.setNotePopupId(""))};return!f||i?null:l.a.createElement("div",{className:"NotePopup","data-element":"notePopup",onMouseDown:function(e){return e.stopPropagation()}},l.a.createElement("div",{className:"overflow",onClick:function(){m?v():h(Ii.setNotePopupId(t.Id))}},l.a.createElement(aa,{glyph:"ic_overflow_black_24px"})),m&&l.a.createElement("div",{className:"options",onClick:v},!s&&l.a.createElement("div",{"data-element":"notePopupEdit",onClick:function(){n(!0)}},p("action.edit")),!u&&l.a.createElement("div",{"data-element":"notePopupDelete",onClick:function(){Bi.deleteAnnotations([t])}},p("action.delete"))))};Fp.propTypes=Ip;var Bp=Fp,Up={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},Wp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0,n=Object(a.useRef)(!1);Object(a.useEffect)(function(){if(n.current)return e();n.current=!0},t)};n(565);function Hp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vp={annotation:x.a.object.isRequired},Gp=function(e){var t=e.annotation,n=Hp(Oe(function(e){return[hr.getSortStrategy(e),hr.getNoteDateFormat(e),hr.getIconColor(e,ga(t)),hr.getIsNoteEditing(e)]},K),4),o=n[0],r=n[1],i=n[2],s=n[3],u=Object(a.useContext)(Vd),c=u.isSelected,f=u.searchInput,d=u.resize,p=u.isContentEditable,h=Hp(Object(a.useState)(!1),2),m=h[0],v=h[1],g=Ee(),y=t.isReply();Wp(function(){m||g(Ii.finishNoteEditing()),d()},[m]),Object(a.useEffect)(function(){s&&c&&p&&v(!0)},[p,s,c]);var b,w=function(e){var t=Bi.getDisplayAuthor(e);return t?l.a.createElement("span",{dangerouslySetInnerHTML:{__html:S(t)}}):"(no name)"},S=function(e){return f.trim()?e.replace(new RegExp("(".concat(f,")"),"gi"),'<span class="highlight">$1</span>'):e};if(y)b=l.a.createElement("div",{className:"title"},w(t),l.a.createElement("span",{className:"spacer"}),l.a.createElement("span",{className:"time"}," ".concat(Np()(t.DateCreated).format(r))),c&&l.a.createElement(Bp,{annotation:t,setIsEditing:v}));else{var _,E,x=ba(ga(t)).icon,C=null===(_=t[i])||void 0===_?void 0:null===(E=_.toHexString)||void 0===E?void 0:E.call(_),T=t.getReplies().length;b=l.a.createElement("div",{className:"title"},l.a.createElement("div",{className:"type"},x?l.a.createElement(aa,{className:"icon",glyph:x,color:C}):t.Subject),w(t),("time"!==o||c||T>0)&&l.a.createElement("span",{className:"spacer"}),l.a.createElement("div",{className:"time"},("time"!==o||c)&&Np()(t.DateCreated||new Date).format(r),T>0&&" (".concat(T,")")),c&&l.a.createElement(Bp,{annotation:t,setIsEditing:v}))}var O=t.getContents();return l.a.createElement("div",{className:"NoteContent",onMouseDown:function(e){return e.preventDefault()}},b,l.a.createElement("div",{className:"content-container",onMouseDown:function(e){c&&e.stopPropagation()}},m?l.a.createElement($p,{annotation:t,setIsEditing:v}):O&&l.a.createElement("div",{className:"container"},function(e){var t;(e=String(e).replace(/[&<>"'`=\/]/g,function(e){return Up[e]}),-1!==Lp.link(e).indexOf("<a"))?t=Lp.link(e,{stripPrefix:!1}).replace(/>(.+)</i,function(e,t){return">".concat(S(t),"<")}):t=S(e);return l.a.createElement("span",{className:"contents",dangerouslySetInnerHTML:{__html:t}})}(O))))};Gp.propTypes=Vp;var qp=Gp,$p=function(e){var t=e.annotation,n=e.setIsEditing,o=t.getContents(),r=Hp(Object(a.useState)(o),2),i=r[0],s=r[1],u=Hp(Ze(),1)[0],c=Object(a.useRef)();Object(a.useEffect)(function(){if(c.current){c.current.focus();var e=c.current.value.length;c.current.setSelectionRange(e,e)}},[]);var f=function(e){e.preventDefault(),i!==o&&(Bi.setNoteContents(t,i),t instanceof window.Annotations.FreeTextAnnotation&&Bi.drawAnnotationsFromList([t]),n(!1))},d=Hi()({disabled:i===o});return l.a.createElement("div",{className:"edit-content"},l.a.createElement($d,{ref:function(e){c.current=e},value:i,onChange:function(e){return s(e)},onBlur:function(){return n(!1)},onSubmit:function(e){return f(e)},placeholder:"".concat(u("action.comment"),"...")}),l.a.createElement("span",{className:"buttons"},l.a.createElement("button",{className:d,onMouseDown:f},u("action.save")),l.a.createElement("button",{onMouseDown:function(){return n(!1)}},u("action.cancel"))))};$p.propTypes={annotation:x.a.object.isRequired,setIsEditing:x.a.func.isRequired};var Yp=qp;n(566);function Kp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Zp={annotation:x.a.object.isRequired},Qp=function(e){var t=e.annotation,n=Object(a.useContext)(Vd),o=n.isSelected,r=n.resize,i=Object(a.useRef)(),s=Object(a.useRef)();Object(a.useEffect)(function(){var e=s.current,t=window.getComputedStyle(i.current).height;e&&e===t||(s.current=t,r())});var u=Hi()({Note:!0,expanded:o}),c=Hi()({replies:!0,hidden:!o}),f=t.getReplies().sort(function(e,t){return e.DateCreated-t.DateCreated});return l.a.createElement("div",{ref:i,className:u,onMouseDown:function(e){e.stopPropagation(),o?Bi.deselectAnnotation(t):(Bi.deselectAllAnnotations(),Bi.selectAnnotation(t),Bi.jumpToAnnotation(t))}},l.a.createElement(Yp,{annotation:t}),l.a.createElement("div",{className:c},f.map(function(e){return l.a.createElement(Yp,{key:e.Id,annotation:e})}),l.a.createElement(Jp,{annotation:t})))};Qp.propTypes=Zp;var Xp=Qp,Jp=function(e){var t=e.annotation,n=Kp(Oe(function(e){return[hr.isDocumentReadOnly(e),hr.isElementDisabled(e,"noteReply"),hr.getIsNoteEditing(e)]},K),3),o=n[0],r=n[1],i=n[2],s=Object(a.useContext)(Vd),u=s.resize,c=s.isContentEditable,f=s.isSelected,d=Kp(Object(a.useState)(!1),2),p=d[0],h=d[1],m=Kp(Object(a.useState)(""),2),v=m[0],g=m[1],y=Kp(Ze(),1)[0],b=Ee(),w=Object(a.useRef)();Wp(function(){p||b(Ii.finishNoteEditing()),u()},[p]),Object(a.useEffect)(function(){i&&f&&!c&&w.current.focus()},[c,i,f]);var S=function(e){e.preventDefault(),v&&(Bi.createAnnotationReply(t,v),g(""))},_=Hi()({disabled:!v});return o||r?null:l.a.createElement("div",{className:"reply-container",onMouseDown:function(e){return e.stopPropagation()}},l.a.createElement($d,{ref:function(e){w.current=e},value:v,onChange:function(e){return g(e)},onSubmit:function(e){return S(e)},onBlur:function(){return h(!1)},onFocus:function(){return h(!0)},placeholder:"".concat(y("action.reply"),"...")}),p&&l.a.createElement("div",{className:"buttons"},l.a.createElement("button",{className:_,onMouseDown:S},y("action.reply")),l.a.createElement("button",{onMouseDown:function(){g(""),w.current.blur()}},y("action.cancel"))))};Jp.propTypes={annotation:x.a.object.isRequired};var eh=Xp;n(567);function th(e){return(th="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 nh(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function oh(e,t){return!t||"object"!==th(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rh(e){return(rh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ih(e,t){return(ih=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ah=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),oh(this,rh(t).apply(this,arguments))}var n,o,r;return 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&&ih(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){return l.a.createElement("div",{className:"ListSeparator"},this.props.renderContent())}}])&&nh(n.prototype,o),r&&nh(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(ah,"propTypes",{renderContent:x.a.func.isRequired});var lh=ah;function sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uh=new function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sh(this,"getDocumentCenter",function(e){var t=Bi.getPageInfo(e-1);return{x:t.width/2,y:t.height/2}}),sh(this,"getRotationRad",function(e){return(4-Bi.getRotation(e))*(Math.PI/2)}),sh(this,"getRotationDeg",function(e){return 90*(4-Bi.getRotation(e))})},ch=function(e,t,n,o,r){var i=Math.sin(r),a=Math.cos(r);return{x:a*(n-e)+i*(o-t)+e,y:a*(o-t)-i*(n-e)+t}},fh=function(e){var t=e.getReplies().reduce(function(e,t){var n=t.DateModified||t.DateCreated;return n&&new Date(n)>new Date(e)?n:e},0);return t||(e.DateModified?e.DateModified:e.DateCreated?e.DateCreated:new Date)},dh={position:{getSortedNotes:function(e){return e.sort(function(e,t){if(e.PageNumber===t.PageNumber){var n=uh.getRotationRad(e.PageNumber),o=uh.getDocumentCenter(e.PageNumber),r=[ch(o.x,o.y,e.X,e.Y,n),ch(o.x,o.y,e.X+e.Width,e.Y+e.Height,n)],i=[ch(o.x,o.y,t.X,t.Y,n),ch(o.x,o.y,t.X+t.Width,t.Y+t.Height,n)];return r.reduce(function(e,t){return t.y<e?t.y:e},Number.MAX_SAFE_INTEGER)-i.reduce(function(e,t){return t.y<e?t.y:e},Number.MAX_SAFE_INTEGER)}return e.PageNumber-t.PageNumber})},shouldRenderSeparator:function(e,t){return t.PageNumber!==e.PageNumber},getSeparatorContent:function(e,t,n){var o=n.pageLabels;return"".concat(It.t("option.shared.page")," ").concat(o[t.PageNumber-1])}},time:{getSortedNotes:function(e){return e.sort(function(e,t){return fh(t)-fh(e)})},shouldRenderSeparator:function(e,t){return Np()(fh(e)).format("MMM D, YYYY")!==Np()(fh(t)).format("MMM D, YYYY")},getSeparatorContent:function(e,t){var n=Np()(new Date).format("MMM D, YYYY"),o=Np()(new Date(new Date-864e5)).format("MMM D, YYYY"),r=Np()(fh(t)).format("MMM D, YYYY");return r===n?It.t("option.notesPanel.separator.today"):r===o?It.t("option.notesPanel.separator.yesterday"):r}}},ph=function(){return dh};n(568);function hh(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")}()}function mh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var vh={display:x.a.string.isRequired},gh=function(e){var t=e.display,n=mh(Oe(function(e){return[hr.getSortStrategy(e),hr.isElementDisabled(e,"notesPanel"),hr.getPageLabels(e),hr.getCustomNoteFilter(e)]},K),4),o=n[0],r=n[1],i=n[2],s=n[3],u=mh(Object(a.useState)([]),2),c=u[0],f=u[1],d=mh(Object(a.useState)({}),2),p=d[0],h=d[1],m=mh(Object(a.useState)(""),2),v=m[0],g=m[1],y=mh(Ze(),1)[0],b=Object(a.useRef)(),w=Object(a.useRef)(0);Object(a.useEffect)(function(){var e=function(){f([]),h({}),g("")};return Bi.addEventListener("documentUnloaded",e),function(){return Bi.removeEventListener("documentUnloaded",e)}},[]),Object(a.useEffect)(function(){var e=function(){f(Bi.getAnnotationsList().filter(function(e){return e.Listable&&!e.isReply()&&!e.Hidden&&!e.isGrouped()}))};return Bi.addEventListener("annotationChanged",e),Bi.addEventListener("annotationHidden",e),function(){Bi.addEventListener("annotationChanged",e),Bi.removeEventListener("annotationHidden",e)}},[]),Object(a.useEffect)(function(){var e=function(){var e={};Bi.getSelectedAnnotations().forEach(function(t){e[t.Id]=!0}),h(e)};return Bi.addEventListener("annotationSelected",e),function(){return Bi.removeEventListener("annotationSelected",e)}},[]);var S=-1;Object(a.useEffect)(function(){var e;Object.keys(p).length&&-1!==S&&(null===(e=b.current)||void 0===e||e.scrollToRow(S))},[p]),Object(a.useEffect)(function(){"flex"===t&&b.current&&w.current&&b.current.scrollToPosition(w.current)},[t]);var E=function(e){e&&(w.current=e)},x=function(e,t){return!!e&&-1!==e.search(new RegExp(t,"i"))},C=_.debounce(function(e){Bi.deselectAllAnnotations(),g(e)},500),T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=null,a=ph()[o],s=a.shouldRenderSeparator,u=a.getSeparatorContent,c=0===t?null:e[t-1],f=e[t];s&&u&&(!c||s(c,f))&&(r=l.a.createElement(lh,{renderContent:function(){return u(c,f,{pageLabels:i})}}));var d={searchInput:v,resize:n,isSelected:p[f.Id],isContentEditable:Bi.canModify(f)&&!f.getContents()};return l.a.createElement(l.a.Fragment,null,r,l.a.createElement(Vd.Provider,{value:d},l.a.createElement(eh,{annotation:f})))},O=ph()[o].getSortedNotes(c).filter(function(e){var t=!0;if(s&&(t=t&&s(e)),v){var n=e.getReplies(),o=[e].concat(hh(n));t=t&&o.some(function(e){var t=e.getContents(),n=Bi.getDisplayAuthor(e);return x(t,v)||x(n,v)})}return t}),P=Object.keys(p);return 1===P.length&&(S=O.findIndex(function(e){return e.Id===P[0]})),r||"none"===t?null:l.a.createElement("div",{className:"Panel NotesPanel","data-element":"notesPanel",onMouseDown:Bi.deselectAllAnnotations},0===c.length?l.a.createElement("div",{className:"no-annotations"},y("message.noAnnotations")):l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"header"},l.a.createElement("input",{type:"text",placeholder:y("message.searchPlaceholder"),onChange:function(e){C(e.target.value)}}),l.a.createElement(Hd,{items:Object.keys(ph())})),0===O.length?l.a.createElement("div",{className:"no-results"},y("message.noResults")):O.length<=300?l.a.createElement(_h,{ref:b,notes:O,onScroll:E,initialScrollTop:w.current},T):l.a.createElement(Sh,{ref:b,notes:O,onScroll:E,initialScrollTop:w.current},T)))};gh.propTypes=vh;var yh=gh,bh={notes:x.a.array.isRequired,children:x.a.func.isRequired,onScroll:x.a.func.isRequired,initialScrollTop:x.a.number.isRequired},wh=new Sf({defaultHeight:50,fixedWidth:!0}),Sh=l.a.forwardRef(function(e,t){var n=e.notes,o=e.children,r=e.onScroll,i=e.initialScrollTop,s=Object(a.useRef)(),u=mh(Object(a.useState)({width:0,height:0}),2),c=u[0],f=u[1];Object(a.useImperativeHandle)(t,function(){return{scrollToPosition:function(e){s.current.scrollToPosition(e)},scrollToRow:function(e){s.current.scrollToRow(e)}}}),Object(a.useEffect)(function(){s.current.scrollToPosition(i)},[i]);var d=function(e){var t=e.scrollTop;r(t)},p=function(e){var t=e.index,r=e.key,i=e.parent,a=e.style,u=n[t];return l.a.createElement(yf,{key:"".concat(r).concat(u.Id),cache:wh,columnIndex:0,parent:i,rowIndex:t},l.a.createElement("div",{style:a},o(n,t,function(){return function(e){var t;wh.clear(e),null===(t=s.current)||void 0===t||t.recomputeRowHeights(e)}(t)})))};return l.a.createElement(vc,{bounds:!0,onResize:function(e){var t=e.bounds;return f(t)}},function(e){var t=e.measureRef;return l.a.createElement("div",{ref:t,className:"virtualized-notes-container"},l.a.createElement(If,{deferredMeasurementCache:wh,style:{outline:"none"},height:c.height,width:c.width,overscanRowCount:10,ref:s,rowCount:n.length,rowHeight:wh.rowHeight,rowRenderer:p,onScroll:d}))})});Sh.propTypes=bh;var _h=l.a.forwardRef(function(e,t){var n=e.notes,o=e.children,r=e.onScroll,i=e.initialScrollTop,s=Object(a.useRef)();Object(a.useImperativeHandle)(t,function(){return{scrollToPosition:function(e){s.current.scrollTop=e},scrollToRow:function(e){var t=s.current,n=t.children[e],o=t.getBoundingClientRect(),r=n.getBoundingClientRect();r.top>=o.top&&r.top<=o.top+t.clientHeight||(t.scrollTop=r.top+t.scrollTop-o.top)}}}),Object(a.useEffect)(function(){s.current.scrollTop=i},[i]);return l.a.createElement("div",{ref:s,className:"normal-notes-container",onScroll:function(e){r(e.target.scrollTop)}},n.map(function(e,t){return l.a.createElement(l.a.Fragment,{key:"".concat(t).concat(e.Id)},o(n,t))}))});_h.propTypes=bh;var Eh=yh,xh=n(215),Ch=n.n(xh);n(569);function Th(e){return(Th="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 Oh(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ph(e){return(Ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ah(e,t){return(Ah=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mh=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Th(t)&&"function"!=typeof t?kh(e):t}(this,Ph(t).call(this,e)),Rh(kh(n),"handleClick",function(){var e=n.props,t=e.index,o=e.closeElement;Bi.setCurrentPage(t+1),$t()&&o("leftPanel")}),n.thumbContainer=l.a.createRef(),n.onLayoutChangedHandler=n.onLayoutChanged.bind(kh(n)),n}var n,o,r;return 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&&Ah(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props;(0,e.onLoad)(e.index,this.thumbContainer.current),Bi.addEventListener("layoutChanged",this.onLayoutChangedHandler)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.onLoad,o=t.onCancel,r=t.index;!e.canLoad&&this.props.canLoad&&n(r,this.thumbContainer.current),e.canLoad&&!this.props.canLoad&&o(r)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onRemove,n=e.index;Bi.removeEventListener("layoutChanged",this.onLayoutChangedHandler),t(n)}},{key:"onLayoutChanged",value:function(e,t){var n=this,o=t.contentChanged,r=this.props.index,i=r+1;if(o.some(function(e){return"".concat(i)===e})){var a=this.thumbContainer.current;Bi.loadThumbnailAsync(r,function(e){e.className="page-image",a.removeChild(a.querySelector(".page-image")),a.appendChild(e),n.props.updateAnnotations&&n.props.updateAnnotations(r,e)})}}},{key:"render",value:function(){var e=this.props,t=e.index,n=e.currentPage===t+1,o=e.pageLabels[t];return l.a.createElement("div",{className:"Thumbnail ".concat(n?"active":"")},l.a.createElement("div",{className:"container",ref:this.thumbContainer,onClick:this.handleClick}),l.a.createElement("div",{className:"page-label"},o))}}])&&Oh(n.prototype,o),r&&Oh(n,r),t}();Rh(Mh,"propTypes",{index:x.a.number.isRequired,currentPage:x.a.number,pageLabels:x.a.array.isRequired,canLoad:x.a.bool.isRequired,onLoad:x.a.func.isRequired,onCancel:x.a.func.isRequired,onRemove:x.a.func.isRequired,updateAnnotations:x.a.func,closeElement:x.a.func.isRequired});var Dh=we(function(e){return{currentPage:hr.getCurrentPage(e),pageLabels:hr.getPageLabels(e)}},{closeElement:Ii.closeElement})(Mh);n(570);function Lh(e){return(Lh="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 jh(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nh(e){return(Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ih(e,t){return(Ih=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Lh(t)&&"function"!=typeof t?zh(e):t}(this,Nh(t).call(this)),Fh(zh(e),"onBeginRendering",function(){e.setState({canLoad:!1})}),Fh(zh(e),"onFinishedRendering",function(t,n){n||e.setState({canLoad:!0})}),Fh(zh(e),"onAnnotationChanged",function(t,n){var o=[];n.forEach(function(t){var n=t.PageNumber-1;!t.Listable||o.indexOf(n)>-1||(o.push(n),e.updateAnnotations(n))})}),Fh(zh(e),"onWindowResize",function(){e.setState({numberOfColumns:e.getNumberOfColumns()})}),Fh(zh(e),"getNumberOfColumns",function(){var e=window.innerWidth;return e>=640?1:e>=540?3:e>=360?2:1}),Fh(zh(e),"updateAnnotations",function(t){var n=e.thumbs[t]&&e.thumbs[t].element;if(n){var o=Bi.getPageWidth(t),r=Bi.getPageHeight(t),i=t+1,a=e.getThumbnailSize(o,r),l=a.width,s=a.height,u=n.querySelector(".annotation-image")||document.createElement("canvas");u.className="annotation-image";var c=u.getContext("2d"),f=1,d=null,p=Bi.getCompleteRotation(i)-Bi.getRotation(i);p<0&&(p+=4);var h=window.utils.getCanvasMultiplier();p%2==0?(u.width=l,u.height=s,f=u.width/o,f/=h,d=window.GetPageMatrix(f,p,{width:u.width,height:u.height}),0===p?c.setTransform(d.m_a,d.m_b,d.m_c,d.m_d,0,0):c.setTransform(d.m_a,d.m_b,d.m_c,d.m_d,u.width,u.height)):(u.width=s,u.height=l,f=u.height/o,f/=h,d=window.GetPageMatrix(f,p,{width:u.width,height:u.height}),1===p?c.setTransform(d.m_a,d.m_b,d.m_c,d.m_d,u.width,0):c.setTransform(d.m_a,d.m_b,d.m_c,d.m_d,0,u.height)),n.appendChild(u),Bi.drawAnnotations({pageNumber:i,overrideCanvas:u,namespace:"thumbnails"})}}),Fh(zh(e),"getThumbnailSize",function(e,t){var n,o,r;return e>t?(r=e/150,n=150,o=Math.round(t/r)):(r=t/150,n=Math.round(e/r),o=150),{width:n,height:o}}),Fh(zh(e),"onLoad",function(t,n){if(!e.thumbIsLoaded(t)&&!e.thumbIsPending(t)){e.thumbs[t]={element:n,loaded:!1};var o=Bi.loadThumbnailAsync(t,function(n){n.className="page-image",e.thumbs[t]&&(e.thumbs[t].element.appendChild(n),e.thumbs[t].loaded=!0,e.thumbs[t].updateAnnotationHandler=e.updateAnnotations.bind(zh(e)),e.removeFromPendingThumbs(t),e.updateAnnotations(t))});e.pendingThumbs.push({pageIndex:t,id:o})}}),Fh(zh(e),"removeFromPendingThumbs",function(t){var n=e.getPendingThumbIndex(t);-1!==n&&e.pendingThumbs.splice(n,1)}),Fh(zh(e),"thumbIsLoaded",function(t){var n;return null===(n=e.thumbs[t])||void 0===n?void 0:n.loaded}),Fh(zh(e),"thumbIsPending",function(t){return-1!==e.getPendingThumbIndex(t)}),Fh(zh(e),"onCancel",function(t){var n=e.getPendingThumbIndex(t);-1!==n&&(Bi.cancelLoadThumbnail(e.pendingThumbs[n].id),e.pendingThumbs.splice(n,1))}),Fh(zh(e),"getPendingThumbIndex",function(t){return e.pendingThumbs.findIndex(function(e){return e.pageIndex===t})}),Fh(zh(e),"onRemove",function(t){e.onCancel(t),e.thumbs[t]=null}),Fh(zh(e),"renderThumbnails",function(t){var n=e.state,o=n.numberOfColumns,r=n.canLoad,i=zh(e).thumbs;return l.a.createElement("div",{className:"row",key:t},new Array(o).fill().map(function(n,a){var s=t*o+a,u=i&&i[s]?i[s].updateAnnotationHandler:null;return s<e.props.totalPages?l.a.createElement(Dh,{key:s,index:s,canLoad:r,onLoad:e.onLoad,onCancel:e.onCancel,onRemove:e.onRemove,updateAnnotations:u}):null}))}),e.pendingThumbs=[],e.thumbs=[],e.state={numberOfColumns:e.getNumberOfColumns(),canLoad:!0},e}var n,o,r;return 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&&Ih(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){Bi.addEventListener("beginRendering",this.onBeginRendering),Bi.addEventListener("finishedRendering",this.onFinishedRendering),Bi.addEventListener("annotationChanged",this.onAnnotationChanged),Bi.addEventListener("annotationHidden",this.onAnnotationChanged),window.addEventListener("resize",this.onWindowResize)}},{key:"componentWillUnmount",value:function(){Bi.removeEventListener("beginRendering",this.onBeginRendering),Bi.removeEventListener("finishedRendering",this.onFinishedRendering),Bi.removeEventListener("annotationChanged",this.onAnnotationChanged),Bi.removeEventListener("annotationHidden",this.onAnnotationChanged),window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.totalPages,o=e.display;return t?null:l.a.createElement("div",{className:"Panel ThumbnailsPanel",style:{display:o},"data-element":"thumbnailsPanel"},l.a.createElement("div",{className:"thumbs"},l.a.createElement(Ch.a,{key:"panel",itemRenderer:this.renderThumbnails,length:n/this.state.numberOfColumns,type:"uniform",useStaticSize:!0})))}}])&&jh(n.prototype,o),r&&jh(n,r),t}();Fh(Bh,"propTypes",{isDisabled:x.a.bool,totalPages:x.a.number,display:x.a.string.isRequired});var Uh=we(function(e){return{isDisabled:hr.isElementDisabled(e,"thumbnailsPanel"),totalPages:hr.getTotalPages(e)}})(Bh);n(571);function Wh(e){return(Wh="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 Hh(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Vh(e){return(Vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qh(e,t){return(qh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yh=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==Wh(t)&&"function"!=typeof t?Gh(e):t}(this,(e=Vh(t)).call.apply(e,[this].concat(r))),$h(Gh(n),"state",{isExpanded:!1}),$h(Gh(n),"onClickExpand",function(){n.setState(function(e){return{isExpanded:!e.isExpanded}})}),$h(Gh(n),"onClickOutline",function(){var e=n.props,t=e.outline,o=e.closeElement;Bi.goToOutline(t),$t()&&o("leftPanel")}),n}var n,o,r;return 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&&qh(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,n=e.outline,o=e.isVisible,r=e.closeElement,i=this.state.isExpanded;return l.a.createElement("div",{className:"Outline ".concat(o?"visible":"hidden")},l.a.createElement("div",{className:"padding"},n.children.length>0&&l.a.createElement("div",{className:"arrow ".concat(i?"expanded":"collapsed"),onClick:this.onClickExpand},l.a.createElement(aa,{glyph:"ic_chevron_right_black_24px"}))),l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title",onClick:this.onClickOutline},n.name),n.children.map(function(e,n){return l.a.createElement(t,{outline:e,key:n,isVisible:i,closeElement:r})})))}}])&&Hh(n.prototype,o),r&&Hh(n,r),t}();$h(Yh,"propTypes",{outline:x.a.object.isRequired,closeElement:x.a.func.isRequired,isVisible:x.a.bool.isRequired});var Kh=we(null,{closeElement:Ii.closeElement})(Yh);n(572);function Zh(e){return(Zh="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 Qh(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xh(e,t){return!t||"object"!==Zh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jh(e){return(Jh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function em(e,t){return(em=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tm=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xh(this,Jh(t).apply(this,arguments))}var n,o,r;return 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&&em(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.outlines,o=e.t,r=e.display;if(t)return null;var i=ll("Panel OutlinesPanel",this.props);return l.a.createElement("div",{className:i,style:{display:r},"data-element":"outlinesPanel"},0===n.length&&l.a.createElement("div",{className:"no-outlines"},o("message.noOutlines")),n.map(function(e,t){return l.a.createElement(Kh,{key:t,outline:e,isVisible:!0})}))}}])&&Qh(n.prototype,o),r&&Qh(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(tm,"propTypes",{outlines:x.a.arrayOf(x.a.object),display:x.a.string.isRequired,isDisabled:x.a.bool,t:x.a.func.isRequired});var nm=we(function(e){return{outlines:hr.getOutlines(e),isDisabled:hr.isElementDisabled(e,"outlinePanel")}})(Xe()(tm));n(573);function om(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var rm=function(){var e=om(Oe(function(e){return[hr.isElementDisabled(e,"leftPanel"),hr.isElementOpen(e,"leftPanel"),hr.getActiveLeftPanel(e),hr.getCustomPanels(e),hr.getLeftPanelWidth(e)]},K),5),t=e[0],n=e[1],o=e[2],r=e[3],i=e[4],s=Ee();Object(a.useEffect)(function(){n&&qt()&&s(Ii.closeElement("searchPanel"))},[s,n]);var u=function(e){return e===o?"flex":"none"},c=Kt&&i?{width:i}:{};return t?null:l.a.createElement("div",{className:Hi()({Panel:!0,LeftPanel:!0,open:n,closed:!n}),"data-element":"leftPanel",style:c},l.a.createElement("div",{className:"left-panel-header"},l.a.createElement("div",{className:"close-btn hide-in-desktop",onClick:function(){return s(Ii.closeElement("leftPanel"))}},l.a.createElement(aa,{glyph:"ic_close_black_24px"})),l.a.createElement(uc,null)),l.a.createElement(im,null),l.a.createElement(Eh,{display:u("notesPanel")}),l.a.createElement(Uh,{display:u("thumbnailsPanel")}),l.a.createElement(nm,{display:u("outlinesPanel")}),r.map(function(e,t){var n=e.panel;return l.a.createElement(Qa,{key:n.dataElement||t,className:"Panel ".concat(n.dataElement),display:u(n.dataElement),dataElement:n.dataElement,render:n.render})}))},im=function(){var e=Object(a.useRef)(!1),t=Ee();return Object(a.useEffect)(function(){var n=_.throttle(function(n){var o=n.clientX;e.current&&o>215&&o<900&&(Zt&&t(Ii.setLeftPanelWidth(o)),document.body.style.setProperty("--left-panel-width","".concat(o,"px")))},50);return document.addEventListener("mousemove",n),function(){return document.removeEventListener("mousemove",n)}},[]),Object(a.useEffect)(function(){var t=function(){e.current=!1};return document.addEventListener("mouseup",t),function(){return document.removeEventListener("mouseup",t)}},[]),l.a.createElement("div",{className:"resize-bar",onMouseDown:function(){e.current=!0}})},am=rm;n(574);function lm(e){return(lm="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 sm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function um(e){return(um=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fm(e,t){return(fm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pm=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==lm(t)&&"function"!=typeof t?cm(e):t}(this,(e=um(t)).call.apply(e,[this].concat(r))),dm(cm(n),"onClick",function(){var e=n.props;(0,e.onClickResult)(e.index,e.result)}),dm(cm(n),"renderContent",function(){var e=n.props.result,t=e.ambient_str,o=e.result_str_start,r=e.result_str_end,i=t.slice(0,o),a=t.slice(o,r),s=t.slice(r);return l.a.createElement(l.a.Fragment,null,i,l.a.createElement("span",{className:"search-value"},a),s)}),n}var n,o,r;return 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&&fm(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.activeResultIndex,n=e.index;return l.a.createElement("div",{className:"SearchResult ".concat(n===t?"selected":""),onClick:this.onClick},this.renderContent())}}])&&sm(n.prototype,o),r&&sm(n,r),t}();dm(pm,"propTypes",{index:x.a.number.isRequired,result:x.a.object.isRequired,activeResultIndex:x.a.number.isRequired,onClickResult:x.a.func.isRequired});var hm=we(function(e){return{activeResultIndex:hr.getActiveResultIndex(e)}})(pm);n(575);function mm(e){return(mm="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 vm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gm(e){return(gm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ym(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bm(e,t){return(bm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sm=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==mm(t)&&"function"!=typeof t?ym(e):t}(this,(e=gm(t)).call.apply(e,[this].concat(r))),wm(ym(n),"onClickResult",function(e,t){var o=n.props,r=o.setActiveResultIndex,i=o.closeElement;r(e),Bi.setActiveSearchResult(t),$t()&&i("searchPanel")}),wm(ym(n),"onClickClose",function(){n.props.closeElement("searchPanel")}),wm(ym(n),"renderListSeparator",function(e,t){var o=e===t,r=e.page_num!==t.page_num;return o||r?l.a.createElement(lh,{renderContent:function(){return"".concat(n.props.t("option.shared.page")," ").concat(t.page_num+1)}}):null}),n}var n,o,r;return 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&&bm(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&qt()&&this.props.closeElement("leftPanel")}},{key:"render",value:function(){var e=this,t=this.props,n=t.isDisabled,o=t.t,r=t.results,i=t.isSearching,a=t.noResult;if(n)return null;var s=ll("Panel SearchPanel",this.props);return l.a.createElement("div",{className:s,"data-element":"searchPanel"},l.a.createElement(fa,{className:"close-btn hide-in-desktop hide-in-tablet",dataElement:"searchPanelCloseButton",img:"ic_close_black_24px",onClick:this.onClickClose}),l.a.createElement("div",{className:"results"},i&&l.a.createElement("div",{className:"info"},o("message.searching")),a&&l.a.createElement("div",{className:"info"},o("message.noResults")),r.map(function(t,n){var o=0===n?r[0]:r[n-1];return l.a.createElement(l.a.Fragment,{key:n},e.renderListSeparator(o,t),l.a.createElement(hm,{result:t,index:n,onClickResult:e.onClickResult}))})))}}])&&vm(n.prototype,o),r&&vm(n,r),t}();wm(Sm,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,results:x.a.arrayOf(x.a.object),isSearching:x.a.bool,noResult:x.a.bool,setActiveResultIndex:x.a.func.isRequired,closeElement:x.a.func.isRequired,t:x.a.func.isRequired});var _m=we(function(e){return{isDisabled:hr.isElementDisabled(e,"searchPanel"),isOpen:hr.isElementOpen(e,"searchPanel"),results:hr.getResults(e),isSearching:hr.isSearching(e),noResult:hr.isNoResult(e)}},{setActiveResultIndex:Ii.setActiveResultIndex,closeElement:Ii.closeElement})(Xe()(Sm)),Em=function(e){return 1-(.299*e.R+.587*e.G+.114*e.B)/255<.15||null===e.toHexString()?"dark":"bright"};n(576);function xm(e){return(xm="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 Cm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tm(e){return(Tm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Om(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pm(e,t){return(Pm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function km(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Am=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==xm(t)&&"function"!=typeof t?Om(e):t}(this,(e=Tm(t)).call.apply(e,[this].concat(r))),km(Om(n),"setColorPalette",function(e){var t=n.props;(0,t.setColorPalette)(t.colorMapKey,e)}),km(Om(n),"renderTextColorIcon",function(){var e=n.props,t=e.style.TextColor,o=e.colorPalette;return l.a.createElement(Zi,{content:"option.annotationColor.TextColor"},l.a.createElement("div",{className:"TextColor"===o?"text selected":"text",style:{color:t.toHexString()},onClick:function(){return n.setColorPalette("TextColor")}},"Aa"))}),km(Om(n),"renderBorderColorIcon",function(){var e,t=n.props,o=t.style.StrokeColor,r=t.colorPalette;return l.a.createElement(Zi,{content:"option.annotationColor.StrokeColor"},l.a.createElement("div",{className:"StrokeColor"===r?"border selected":"border",onClick:function(){return n.setColorPalette("StrokeColor")}},l.a.createElement("div",{className:"border-icon ".concat(Em(o),"}"),style:{backgroundColor:o.toHexString()}},(e="dark"===Em(o)?"#bfbfbf":"none",l.a.createElement("svg",{height:"100%",width:"100%"},l.a.createElement("circle",{cx:"50%",cy:"50%",r:"4.5",strokeWidth:"1",stroke:e,fill:"#fafafa"}))))))}),km(Om(n),"renderFillColorIcon",function(){var e=n.props,t=e.style.FillColor,o=e.colorPalette,r=null===t.toHexString();return l.a.createElement(Zi,{content:"option.annotationColor.FillColor"},l.a.createElement("div",{className:"FillColor"===o?"fill selected":"fill",onClick:function(){return n.setColorPalette("FillColor")}},l.a.createElement("div",{className:"fill-icon ".concat(Em(t)," ").concat(r?"transparency":""),style:{backgroundColor:t.toHexString()}},r&&l.a.createElement("svg",{width:"100%",height:"100%"},l.a.createElement("line",{x1:"0%",y1:"100%",x2:"100%",y2:"0%",strokeWidth:"1",stroke:"#e44234",strokeLinecap:"square"})))))}),n}var n,o,r;return 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&&Pm(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.t,n=e.colorPalette,o=e.colorMapKey,r=ba(o).availablePalettes;return r.length<2?null:l.a.createElement("div",{className:"stylePopup-title"},l.a.createElement("div",{className:"palette-title"},t("option.annotationColor.".concat(n))),l.a.createElement("div",{className:"palette"},r.includes("TextColor")&&this.renderTextColorIcon(),r.includes("StrokeColor")&&this.renderBorderColorIcon(),r.includes("FillColor")&&this.renderFillColorIcon()))}}])&&Cm(n.prototype,o),r&&Cm(n,r),t}();km(Am,"propTypes",{style:x.a.object.isRequired,colorPalette:x.a.oneOf(["TextColor","StrokeColor","FillColor"]),colorMapKey:x.a.string.isRequired,setColorPalette:x.a.func.isRequired,t:x.a.func.isRequired});var Rm=we(null,{setColorPalette:Ii.setColorPalette})(Xe(null,{wait:!1})(Am));n(577);function Mm(e){return(Mm="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 Dm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Lm(e){return(Lm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nm(e,t){return(Nm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Im=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Mm(t)&&"function"!=typeof t?jm(e):t}(this,Lm(t).call(this,e)),zm(jm(n),"setColor",function(e){var t=n.props,o=t.property,r=t.onStyleChange,i=e.target.style.backgroundColor,a=i?i.slice(i.indexOf("(")+1,-1).split(","):[0,0,0,0];r(o,new window.Annotations.Color(a[0],a[1],a[2],a[3]))}),zm(jm(n),"renderTransparencyCell",function(e,t){var o=n.props.property;if("TextColor"===o||"StrokeColor"===o)return l.a.createElement("div",{className:"dummy-cell",key:t});var r=l.a.createElement("svg",{width:"100%",height:"100%",style:{position:"absolute",top:"0px",left:"0px"}},l.a.createElement("line",{x1:"0%",y1:"100%",x2:"100%",y2:"0%",strokeWidth:"1",stroke:"#e44234",strokeLinecap:"square"}));return l.a.createElement("div",{className:"cell",key:t,onClick:n.setColor},n.renderCheckMark(e),r)}),zm(jm(n),"renderColorCell",function(e,t){return l.a.createElement("div",{className:"cell",key:t,style:{backgroundColor:e},onClick:n.setColor},n.renderCheckMark(e))}),zm(jm(n),"renderCheckMark",function(e){var t=n.props.color;return t.toHexString()===e?l.a.createElement(aa,{className:"check-mark ".concat(Em(t)),glyph:"ic_check_black_24px"}):null}),n.palette=[["#F1A099","#FFC67B","#FFE6A2","#80E5B1","#92E8E8","#A6A1E6","#E2A1E6"],["#E44234","#FF8D00","#FFCD45","#00CC63","#25D2D1","#4E7DE9","#C544CE"],["#88271F","#B54800","#F69A00","#007A3B","#167E7D","#2E4B8B","#76287B"],[null,"#FFFFFF","#CDCDCD","#9C9C9C","#696969","#373737","#000000"]],n}var n,o,r;return 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&&Nm(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"ColorPalette","data-element":"colorPalette"},this.palette.map(function(t,n){return l.a.createElement("div",{className:"row",key:n},t.map(function(t,o){return 3===n&&0===o?e.renderTransparencyCell(t,o):e.renderColorCell(t,o)}))}))}}])&&Dm(n.prototype,o),r&&Dm(n,r),t}();zm(Im,"propTypes",{property:x.a.string.isRequired,color:x.a.object.isRequired,onStyleChange:x.a.func.isRequired});var Fm=Im,Bm=21,Um=6.5;n(578);function Wm(e){return(Wm="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 Hm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Vm(e){return(Vm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qm(e,t){return(qm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ym=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Wm(t)&&"function"!=typeof t?Gm(e):t}(this,Vm(t).call(this,e)),$m(Gm(n),"updateSvg",function(){n.setLineLength(),n.forceUpdate()}),$m(Gm(n),"setLineLength",function(){n.lineLength=.94*n.sliderSvg.current.getBoundingClientRect().width-2*Um}),$m(Gm(n),"onMouseDown",function(e){n.isMouseDown=!0,n.onMove(e.nativeEvent)}),$m(Gm(n),"onMouseUp",function(){n.isMouseDown=!1}),$m(Gm(n),"onTouchStart",function(e){n.onMove(e)}),$m(Gm(n),"onMove",function(e){if(!!e.touches||n.isMouseDown){e.preventDefault();var t=n.props,o=t.property;(0,t.onStyleChange)(o,(0,t.convertRelativeCirclePositionToValue)(n.getRelativeCirclePosition(e)))}}),$m(Gm(n),"getRelativeCirclePosition",function(e){var t,o=!e.touches,r=Um,i=r+n.lineLength,a=n.sliderSvg.current.getBoundingClientRect().left;return(t=o?e.pageX-a:e.touches[0].pageX-a)<r?t=r:t>i&&(t=i),(t-r)/n.lineLength}),$m(Gm(n),"renderSlider",function(){var e=n.props,t=e.displayProperty,o=e.displayValue,r=e.getCirclePosition,i=e.t,a=r(n.lineLength);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"slider__property"},i("option.slider.".concat(t))),l.a.createElement("svg",{width:"100%",height:Bm,onMouseDown:n.onMouseDown,onTouchStart:n.onTouchStart,ref:n.sliderSvg},l.a.createElement("line",{x1:Um,y1:"50%",x2:a,y2:"50%",strokeWidth:"2",stroke:"#00a5e4",strokeLinecap:"round"}),l.a.createElement("line",{x1:a,y1:"50%",x2:n.lineLength+Um,y2:"50%",strokeWidth:"2",stroke:"#e0e0e0",strokeLinecap:"round"}),l.a.createElement("circle",{cx:a,cy:"50%",r:Um,fill:"#00a5e4"})),l.a.createElement("div",{className:"slider__value"},o))}),n.isMouseDown=!1,n.sliderSvg=l.a.createRef(),n.lineLength=0,n}var n,o,r;return 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&&qm(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("orientationchange",this.updateSvg),window.addEventListener("resize",this.updateSvg),this.sliderSvg.current.addEventListener("touchmove",this.onMove,{passive:!1}),this.updateSvg()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("orientationchange",this.updateSvg),window.removeEventListener("resize",this.updateSvg),this.sliderSvg.current.removeEventListener("touchmove",this.onMove,{passive:!1})}},{key:"render",value:function(){return Kt?l.a.createElement("div",{className:"slider"},this.renderSlider()):this.renderSlider()}}])&&Hm(n.prototype,o),r&&Hm(n,r),t}();$m(Ym,"propTypes",{property:x.a.string.isRequired,value:x.a.oneOfType([x.a.number,x.a.string]),displayProperty:x.a.string.isRequired,displayValue:x.a.oneOfType([x.a.number,x.a.string]),getCirclePosition:x.a.func.isRequired,convertRelativeCirclePositionToValue:x.a.func.isRequired,onStyleChange:x.a.func.isRequired,t:x.a.func.isRequired});var Km=Xe(null,{wait:!1})(Ym);n(579);function Zm(e){return(Zm="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 Qm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xm(e){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ev(e,t){return(ev=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nv=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==Zm(t)&&"function"!=typeof t?Jm(e):t}(this,(e=Xm(t)).call.apply(e,[this].concat(r))),tv(Jm(n),"onClick",function(e){n.props.onClick(e)}),n}var n,o,r;return 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&&ev(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props.isSelected;return l.a.createElement("div",{className:["MeasurementsDropdownItem",e?"selected":""].join(" ").trim(),onClick:this.onClick},l.a.createElement("div",{className:"Content"},this.props.content))}}])&&Qm(n.prototype,o),r&&Qm(n,r),t}();tv(nv,"propTypes",{onClick:x.a.func,isSelected:x.a.bool,content:x.a.oneOfType([x.a.string,x.a.number])});var ov=nv;function rv(e){return(rv="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 iv(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function av(e){return(av=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sv(e,t){return(sv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cv=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==rv(t)&&"function"!=typeof t?lv(e):t}(this,(e=av(t)).call.apply(e,[this].concat(r))),uv(lv(n),"onClick",function(e,t){e.stopPropagation(),n.setState({selectedItem:t}),n.props.onClick(t)}),n}var n,o,r;return 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&&sv(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e,t=this,n=this.props,o=n.dropdownList,r=n.selectedItem,i=this.props.isDropdownOpen;return e=window.innerWidth<640?o.filter(function(e){return e!==r}).concat([r]):[r].concat(o.filter(function(e){return e!==r})),l.a.createElement("div",{className:"MeasurementsDropdown"},!i&&l.a.createElement(ov,{onClick:function(e){e.stopPropagation(),t.props.onDropdownChange()},content:r}),i&&e.map(function(e,n){return l.a.createElement(ov,{key:n,content:e,onClick:function(n){return t.onClick(n,e)}})}))}}])&&iv(n.prototype,o),r&&iv(n,r),t}();uv(cv,"propTypes",{onClick:x.a.func,dropdownList:x.a.array,selectedItem:x.a.oneOfType([x.a.string,x.a.number]),isDropdownOpen:x.a.bool,onDropdownChange:x.a.func});var fv=cv;n(580);function dv(e){return(dv="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 pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function hv(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function mv(e){return(mv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gv(e,t){return(gv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bv=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==dv(t)&&"function"!=typeof t?vv(e):t}(this,(e=mv(t)).call.apply(e,[this].concat(r))),yv(vv(n),"scaleFromRef",l.a.createRef()),yv(vv(n),"scaleToRef",l.a.createRef()),yv(vv(n),"onScaleChange",function(e){var t=pv(e,2),o=pv(t[0],2),r=o[0],i=o[1],a=pv(t[1],2),l=a[0],s=a[1],u=n.props.scale;r=r||u[0][0],i=i||u[0][1],l=l||u[1][0],s=s||u[1][1],n.props.onStyleChange("Scale",[[r,i],[l,s]]),n.props.onOpenDropdownChange(-1)}),yv(vv(n),"onPrecisionChange",function(e){n.props.onStyleChange("Precision",e),n.props.onOpenDropdownChange(-1)}),yv(vv(n),"onBlur",function(){var e=n.scaleFromRef.current.value,t=n.scaleToRef.current.value,o=pv(n.props.scale,2),r=pv(o[0],1)[0],i=pv(o[1],1)[0];""===e?n.scaleFromRef.current.value=r:""===t&&(n.scaleToRef.current.value=i)}),n}var n,o,r;return 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&&gv(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.scale,o=t.precision,r=t.measurementUnits,i=t.openMeasurementDropdown,a=t.onOpenDropdownChange,s=t.t,u=pv(n,2),c=pv(u[0],2),f=c[0],d=c[1],p=pv(u[1],2),h=p[0],m=p[1],v=r.from,g=r.to;return l.a.createElement("div",{className:"MeasurementOption",onClick:function(){return a(-1)}},l.a.createElement("div",{className:"Scale"},l.a.createElement("div",{className:"LayoutTitle"},s("option.measurementOption.scale")),l.a.createElement("div",{className:"Layout"},l.a.createElement("input",{className:"textarea",type:"text",ref:this.scaleFromRef,defaultValue:f,onChange:function(t){return t.target.value&&e.onScaleChange([[Number(t.target.value)],[]])},onBlur:this.onBlur}),l.a.createElement("div",{className:["ScaleDropdown",0===i?"open":""].join(" ").trim()},l.a.createElement(fv,{onClick:function(t){return e.onScaleChange([[void 0,t],[]])},onDropdownChange:function(){return a(0)},dropdownList:v,selectedItem:d,isDropdownOpen:0===i})),"=",l.a.createElement("input",{className:"textarea",type:"text",ref:this.scaleToRef,defaultValue:h,onChange:function(t){return t.target.value&&e.onScaleChange([[],[Number(t.target.value)]])},onBlur:this.onBlur}),l.a.createElement("div",{className:["ScaleDropdown",1===i?"open":""].join(" ").trim()},l.a.createElement(fv,{onClick:function(t){return e.onScaleChange([[],[void 0,t]])},onDropdownChange:function(){return a(1)},dropdownList:g,selectedItem:m,isDropdownOpen:1===i})))),l.a.createElement("div",{className:"Precision"},l.a.createElement("div",{className:"LayoutTitle"},s("option.shared.precision")),l.a.createElement("div",{className:"Layout"},l.a.createElement("div",{className:["PrecisionDropdown",2===i?"open":""].join(" ").trim()},l.a.createElement(fv,{onClick:this.onPrecisionChange,onDropdownChange:function(){return a(2)},dropdownList:[.1,.01,.001,1e-4],selectedItem:o,isDropdownOpen:2===i})))))}}])&&hv(n.prototype,o),r&&hv(n,r),t}();yv(bv,"propTypes",{scale:x.a.arrayOf(x.a.array).isRequired,precision:x.a.number.isRequired,t:x.a.func.isRequired,measurementUnits:x.a.shape({from:x.a.array,to:x.a.array}).isRequired,onStyleChange:x.a.func.isRequired,onOpenDropdownChange:x.a.func.isRequired,openMeasurementDropdown:x.a.number});var wv=we(function(e){return{measurementUnits:hr.getMeasurementUnits(e)}})(Xe()(bv));n(581);function Sv(e){return(Sv="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 _v(){return(_v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Ev(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xv(e){return(xv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tv(e,t){return(Tv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ov(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pv=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==Sv(t)&&"function"!=typeof t?Cv(e):t}(this,(e=xv(t)).call.apply(e,[this].concat(r))),Ov(Cv(n),"state",{openMeasurementDropdown:-1}),Ov(Cv(n),"onOpenDropdownChange",function(e){n.setState({openMeasurementDropdown:e})}),Ov(Cv(n),"renderColorPalette",function(){var e=n.props,t=e.style,o=e.onStyleChange,r=e.currentPalette;return l.a.createElement(Fm,{color:t[r],property:r,onStyleChange:o})}),Ov(Cv(n),"renderSliders",function(){var e=n.props,t=e.style,o=t.Opacity,r=t.StrokeThickness,i=t.FontSize,a=e.onStyleChange,s=e.isFreeText,u=Um,c=[{property:"Opacity",displayProperty:"opacity",value:o,displayValue:"".concat(Math.round(100*o),"%"),getCirclePosition:function(e){return o*e+u},convertRelativeCirclePositionToValue:function(e){return e}},{property:"StrokeThickness",displayProperty:"thickness",value:r,displayValue:"".concat(Math.round(r),"pt"),getCirclePosition:function(e){return s?r/20*e+u:(r-1)/19*e+u},convertRelativeCirclePositionToValue:function(e){return s?20*e:19*e+1}},{property:"FontSize",displayProperty:"text",value:i,displayValue:"".concat(Math.round(parseInt(i,10)),"pt"),getCirclePosition:function(e){return(parseInt(i,10)-5)/40*e+u},convertRelativeCirclePositionToValue:function(e){return"".concat(40*e+5,"pt")}}];return[o,r,i].map(function(e,t){if(null==e)return null;var n=c[t],o=n.property;return l.a.createElement(Km,_v({},n,{key:o,onStyleChange:a}))})}),n}var n,o,r;return 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&&Tv(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.currentPalette,o=t.style,r=t.colorMapKey,i=t.onStyleChange,a=this.state.openMeasurementDropdown,s=o.Scale,u=o.Precision;return l.a.createElement("div",{className:"Popup StylePopup","data-element":"stylePopup"},n&&l.a.createElement("div",{className:"colors-container"},l.a.createElement("div",{className:"inner-wrapper"},l.a.createElement(Rm,{colorPalette:n,colorMapKey:r,style:o}),this.renderColorPalette())),l.a.createElement("div",{className:"sliders-container",onMouseDown:function(e){return e.preventDefault()},onClick:function(){return e.onOpenDropdownChange(-1)}},l.a.createElement("div",{className:"sliders"},!this.props.hideSlider&&this.renderSliders())),s&&u&&l.a.createElement(wv,{scale:s,precision:u,onOpenDropdownChange:this.onOpenDropdownChange,openMeasurementDropdown:a,onStyleChange:i}))}}])&&Ev(n.prototype,o),r&&Ev(n,r),t}();Ov(Pv,"propTypes",{style:x.a.object.isRequired,onStyleChange:x.a.func.isRequired,isFreeText:x.a.bool.isRequired,hideSlider:x.a.bool,colorMapKey:x.a.string.isRequired,currentPalette:x.a.oneOf(["TextColor","StrokeColor","FillColor"])});var kv=we(function(e,t){var n=t.colorMapKey;return{currentPalette:hr.getCurrentPalette(e,n)}})(Pv);function Av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mv=["AnnotationCreateDistanceMeasurement","AnnotationCreatePerimeterMeasurement","AnnotationCreateAreaMeasurement"],Dv=function(e,t,n){var o=[];if(Mv.includes(e))o=Mv.map(Bi.getTool);else{var r=Bi.getTool(e);r&&o.push(r)}o.forEach(function(e){e.setStyles(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(n,!0).forEach(function(t){Rv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,Rv({},t,n))})})};n(582);function Lv(e){return(Lv="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 jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Nv(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function zv(e){return(zv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Iv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fv(e,t){return(Fv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uv=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==Lv(t)&&"function"!=typeof t?Iv(e):t}(this,(e=zv(t)).call.apply(e,[this].concat(r))),Bv(Iv(n),"handleStyleChange",function(e,t){var o=n.props.annotation;Bi.setAnnotationStyles(o,function(n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jv(n,!0).forEach(function(t){Bv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n,Bv({},e,t))}),Dv(o.ToolName,e,t)}),Bv(Iv(n),"handleClick",function(e){$t()&&e.target===e.currentTarget&&n.props.closeElement("annotationPopup")}),n}var n,o,r;return 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&&Fv(e,t)}(t,l.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.annotation,o=e.style,r=n instanceof window.Annotations.FreeTextAnnotation&&n.getIntent()===window.Annotations.FreeTextAnnotation.Intent.FreeText,i=ll("Popup AnnotationStylePopup",this.props),a=n instanceof window.Annotations.RedactionAnnotation,s=ga(n);return t?null:l.a.createElement("div",{className:i,"data-element":"annotationStylePopup",onClick:this.handleClick},l.a.createElement(kv,{colorMapKey:s,style:o,isFreeText:r,onStyleChange:this.handleStyleChange,hideSlider:a}))}}])&&Nv(n.prototype,o),r&&Nv(n,r),t}();Bv(Uv,"propTypes",{isDisabled:x.a.bool,annotation:x.a.object.isRequired,style:x.a.object.isRequired,closeElement:x.a.func.isRequired});var Wv=we(function(e){return{isDisabled:hr.isElementDisabled(e,"annotationStylePopup")}},{closeElement:Ii.closeElement})(Uv);function Hv(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")}()}var Vv=function(e,t){var n=Jv(qv(e),Xv(t));return{left:n.left,top:n.top}},Gv=function(e,t){var n=eg(Yv(e),Xv(t));return{left:n.left,top:n.top}},qv=function(e){var t=$v(e),n=t.left,o=t.top,r=t.right,i=t.bottom,a=e.getPageNumber()-1;return{topLeft:Qv(n,o,a),bottomRight:Qv(r,i,a)}},$v=function(e){var t=e.getRect(),n=t.x1,o=t.y1,r=t.x2,i=t.y2,a=e instanceof window.Annotations.StickyAnnotation,l=e.Width,s=Bi.getCompleteRotation(e.PageNumber);if(1===s){var u=[i,o];o=u[0],i=u[1],a&&(o-=l,i-=l)}else if(2===s){var c=[r,n];n=c[0],r=c[1];var f=[i,o];o=f[0],i=f[1],a&&(o-=l,i-=l,n-=l,r-=l)}else if(3===s){var d=[r,n];n=d[0],r=d[1],a&&(n-=l,r-=l)}return{left:n,top:o,right:r,bottom:i}},Yv=function(e){var t=Kv(e),n=t.startPageIndex,o=t.endPageIndex,r=Zv(e,n,o),i=r.left,a=r.right,l=r.top,s=r.bottom,u=Qv(i,l,n),c=Qv(a,s,o);if(Bi.getRotation()>1){var f=u;u=c,c=f}return{topLeft:u,bottomRight:c}},Kv=function(e){var t=Object.keys(e).map(function(e){return Number(e)});return{startPageIndex:Math.min.apply(Math,Hv(t)),endPageIndex:Math.max.apply(Math,Hv(t))}},Zv=function(e,t,n){var o=function(){var o=e[t][0].y3,r=e[n];return{top:o,bottom:r[r.length-1].y1}}(),r=o.top,i=o.bottom,a=function(){var t,n;return Object.keys(e).forEach(function(o){e[o].forEach(function(e){var o=e.x1,r=e.x2;(!t||o<t)&&(t=o),(!n||r>n)&&(n=r)})}),{left:t,right:n}}();return{left:a.left,top:r,bottom:i,right:a.right}},Qv=function(e,t,n){return Bi.getDisplayModeObject().pageToWindow({x:e,y:t},n)},Xv=function(e){var t=e.current.getBoundingClientRect();return{width:t.width,height:t.height}},Jv=function(e,t){var n=ng(e,t,300);return{left:tg(e,t),top:n}},eg=function(e,t){var n=ng(e,t,150);return{left:tg(e,t),top:n}},tg=function(e,t){var n=e.topLeft,o=e.bottomRight,r=t.width,i=Bi.getScrollViewElement().scrollLeft,a=(n.x+o.x)/2-i-r/2;return a<0?a=0:a+r>window.innerWidth&&(a=window.innerWidth-r),Math.round(a)},ng=function(e,t,n){var o=e.topLeft,r=e.bottomRight,i=t.height,a=Bi.getScrollViewElement(),l=a.scrollTop,s=a.clientHeight,u=n-60,c=o.y-l-10,f=r.y,d=r.y-c;return c>=n?c-=i:f-l>s-u?c+=(d-252)/2:c=r.y-l+17,Math.round(c)};n(583);function og(e){return(og="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 rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ig(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ag(e){return(ag=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sg(e,t){return(sg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ug(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==og(t)&&"function"!=typeof t?lg(e):t}(this,ag(t).call(this)),ug(lg(e),"close",function(){e.props.closeElement("annotationPopup"),e.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rg(n,!0).forEach(function(t){ug(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.initialState))}),ug(lg(e),"onMouseLeftUp",function(t,n){var o=e.state.firstAnnotation;o&&(Bi.getAnnotationManager().getAnnotationByMouseEvent(n)!==o||e.props.isDisabled||(e.positionAnnotationPopup(),e.props.openElement("annotationPopup")))}),ug(lg(e),"onDocumentUnloaded",function(){e.close()}),ug(lg(e),"handleClickOutside",function(){e.props.closeElement("annotationPopup")}),ug(lg(e),"onAnnotationSelected",function(t,n,o){if("selected"===o){if(n.length>0){var r=n[0];e.setState({firstAnnotation:r})}}else e.close()}),ug(lg(e),"onAnnotationChanged",function(t,n,o){"modify"===o&&Bi.isAnnotationSelected(e.state.firstAnnotation)&&!e.props.isDisabled&&(e.positionAnnotationPopup(),e.props.openElement("annotationPopup"),e.forceUpdate())}),ug(lg(e),"onUpdateAnnotationPermission",function(){e.forceUpdate()}),ug(lg(e),"positionAnnotationPopup",function(){var t=Vv(e.state.firstAnnotation,e.popup),n=t.left,o=t.top;e.setState({left:n,top:o})}),ug(lg(e),"commentOnAnnotation",function(){var t=e.state.firstAnnotation;t instanceof window.Annotations.FreeTextAnnotation?Bi.getAnnotationManager().trigger("annotationDoubleClicked",t):e.props.isLeftPanelOpen?(e.props.setActiveLeftPanel("notesPanel"),e.props.triggerNoteEditing()):(e.props.openElement("notesPanel"),setTimeout(function(){e.props.triggerNoteEditing()},400)),e.props.closeElement("annotationPopup")}),ug(lg(e),"openStylePopup",function(){e.setState({isStylePopupOpen:!0})}),ug(lg(e),"deleteAnnotations",function(){Bi.deleteAnnotations(Bi.getSelectedAnnotations()),e.props.closeElement("annotationPopup")}),ug(lg(e),"redactAnnotation",function(){e.props.applyRedactions(e.state.firstAnnotation),e.props.closeElement("annotationPopup")}),ug(lg(e),"groupAnnotations",function(){var e=Bi.getAnnotationManager(),t=Bi.getSelectedAnnotations(),n=t.find(function(e){return!e.InReplyTo});e.groupAnnotations(n,t)}),ug(lg(e),"ungroupAnnotations",function(){var t=Bi.getAnnotationManager(),n=Bi.getSelectedAnnotations();t.ungroupAnnotations(n),e.forceUpdate()}),e.popup=l.a.createRef(),e.initialState={firstAnnotation:null,left:0,top:0,isStylePopupOpen:!1},e.state=e.initialState,e}var n,o,r;return 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&&sg(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){Bi.addEventListener("mouseLeftUp",this.onMouseLeftUp),Bi.addEventListener("annotationSelected",this.onAnnotationSelected),Bi.addEventListener("annotationChanged",this.onAnnotationChanged),Bi.addEventListener("updateAnnotationPermission",this.onUpdateAnnotationPermission),Bi.addEventListener("documentUnloaded",this.onDocumentUnloaded),window.addEventListener("resize",this.close)}},{key:"componentDidUpdate",value:function(e,t){var n=!t.firstAnnotation&&this.state.firstAnnotation,o=!t.isStylePopupOpen&&this.state.isStylePopupOpen,r=e.isLeftPanelOpen!==this.props.isLeftPanelOpen||e.isRightPanelOpen!==this.props.isRightPanelOpen;(n&&!this.props.isDisabled||o)&&(this.positionAnnotationPopup(),this.props.openElement("annotationPopup")),r&&this.props.closeElement("annotationPopup")}},{key:"componentWillUnmount",value:function(){Bi.removeEventListener("mouseLeftUp",this.onMouseLeftUp),Bi.removeEventListener("annotationSelected",this.onAnnotationSelected),Bi.removeEventListener("annotationChanged",this.onAnnotationChanged),Bi.removeEventListener("updateAnnotationPermission",this.onUpdateAnnotationPermission),Bi.removeEventListener("documentUnloaded",this.onDocumentUnloaded),window.removeEventListener("resize",this.close)}},{key:"render",value:function(){var e=this.state,t=e.firstAnnotation,n=e.left,o=e.top,r=e.isStylePopupOpen,i=this.props,a=i.isNotesPanelDisabled,s=i.isDisabled,u=i.isOpen,c=i.isAnnotationStylePopupDisabled;if(s||!t)return null;var f=Qs(t),d=Object.keys(f).length>0,p=Bi.isAnnotationRedactable(t),h=Bi.canModify(t),m=Bi.getSelectedAnnotations(),v=m.length,g=Bi.getAnnotationManager().getNumberOfGroups(m),y=g>1,b=1===g&&v>1,w=v>1;return l.a.createElement("div",{className:Hi()({Popup:!0,AnnotationPopup:!0,open:u,closed:!u,stylePopupOpen:r}),ref:this.popup,"data-element":"annotationPopup",style:{left:n,top:o}},r?l.a.createElement(Wv,{annotation:t,style:f,isOpen:u}):l.a.createElement(l.a.Fragment,null,!a&&!w&&l.a.createElement(za,{dataElement:"annotationCommentButton",title:"action.comment",img:"ic_comment_black_24px",onClick:this.commentOnAnnotation}),h&&d&&!c&&!w&&l.a.createElement(za,{dataElement:"annotationStyleEditButton",title:"action.style",img:"ic_palette_black_24px",onClick:this.openStylePopup}),p&&!w&&l.a.createElement(za,{dataElement:"annotationRedactButton",title:"action.apply",img:"ic_check_black_24px",onClick:this.redactAnnotation}),h&&l.a.createElement(za,{dataElement:"annotationDeleteButton",title:"action.delete",img:"ic_delete_black_24px",onClick:this.deleteAnnotations}),y&&l.a.createElement(za,{dataElement:"annotationGroupButton",title:"action.group",img:"ic_group_24px",onClick:this.groupAnnotations}),b&&l.a.createElement(za,{dataElement:"annotationUngroupButton",title:"action.ungroup",img:"ic_ungroup_24px",onClick:this.ungroupAnnotations})))}}])&&ig(n.prototype,o),r&&ig(n,r),t}();ug(cg,"propTypes",{isNotesPanelDisabled:x.a.bool,isDisabled:x.a.bool,isOpen:x.a.bool,isLeftPanelOpen:x.a.bool,isRightPanelOpen:x.a.bool,isAnnotationStylePopupDisabled:x.a.bool,applyRedactions:x.a.func.isRequired,openElement:x.a.func.isRequired,closeElement:x.a.func.isRequired,triggerNoteEditing:x.a.func.isRequired,setActiveLeftPanel:x.a.func.isRequired});var fg=we(function(e){return{isNotesPanelDisabled:hr.isElementDisabled(e,"notesPanel"),isDisabled:hr.isElementDisabled(e,"annotationPopup"),isAnnotationStylePopupDisabled:hr.isElementDisabled(e,"annotationStylePopup"),isOpen:hr.isElementOpen(e,"annotationPopup"),isLeftPanelOpen:hr.isElementOpen(e,"leftPanel"),isRightPanelOpen:hr.isElementOpen(e,"searchPanel")}},{applyRedactions:xs,openElement:Ii.openElement,closeElement:Ii.closeElement,triggerNoteEditing:Ii.triggerNoteEditing,setActiveLeftPanel:Ii.setActiveLeftPanel})(Cl(cg)),dg=function(e,t){var n=pg(t);Bi.clearSelection(),Bi.addAnnotations(n),Bi.selectAnnotations(n),e(Ii.closeElement("textPopup"))},pg=function(e){var t=[],n=Bi.getSelectedTextQuads();return Object.keys(n).forEach(function(o){var r=parseInt(o,10)+1,i=hg(e,r,n);!window.Tools.TextAnnotationCreateTool.AUTO_SET_TEXT||i instanceof window.Annotations.RedactionAnnotation||i.setContents(Bi.getSelectedText(r)),i instanceof window.Annotations.RedactionAnnotation&&vg(i),mg(i),t.push(i)}),t},hg=function(e,t,n){var o=new e;return o.PageNumber=t,o.Quads=n[t-1],o.Author=Bi.getCurrentUser(),o},mg=function(e){var t=function(e){return ma[ga(e)].toolNames[0]}(e);if(t){var n=pa(t).StrokeColor;e.StrokeColor=n}},vg=function(e){var t=Bi.getToolModeMap().AnnotationCreateRedaction.defaults,n=void 0===t?{}:t;if(n){if(n.StrokeColor){var o=n.StrokeColor;e.StrokeColor=new window.Annotations.Color(o.R,o.G,o.B,o.A)}if(n.StrokeThickness&&(e.StrokeThickness=n.StrokeThickness),n.FillColor){var r=n.FillColor;e.FillColor=new window.Annotations.Color(r.R,r.G,r.B,r.A)}}},gg=function(){if(window.clipboardData)window.clipboardData.setData("Text",Bi.getSelectedText());else{var e=document.getElementById("copy-textarea");e.value=Bi.getSelectedText(),e.select(),e.setSelectionRange(0,99999);try{document.execCommand("copy"),e.blur()}catch(e){console.error("Copy is not supported by browser. ".concat(e))}}};n(584);function yg(e){return(yg="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 bg(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wg(e){return(wg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _g(e,t){return(_g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==yg(t)&&"function"!=typeof t?Sg(e):t}(this,wg(t).call(this)),Eg(Sg(e),"handleClickOutside",function(){e.props.closeElement("textPopup")}),Eg(Sg(e),"onSelectionComplete",function(t,n,o){var r=e.props,i=r.isDisabled,a=r.openElement;i||(e.positionTextPopup(o),a("textPopup"))}),Eg(Sg(e),"positionTextPopup",function(t){var n=Gv(t,e.popup),o=n.left,r=n.top;e.setState({left:o,top:r})}),Eg(Sg(e),"onClickCopy",function(){gg(),e.props.closeElement("textPopup")}),e.popup=l.a.createRef(),e.state={left:0,top:0},e}var n,o,r;return 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&&_g(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){this.highlightText=dg.bind(this,this.props.dispatch,window.Annotations.TextHighlightAnnotation),this.underlineText=dg.bind(this,this.props.dispatch,window.Annotations.TextUnderlineAnnotation),this.squigglyText=dg.bind(this,this.props.dispatch,window.Annotations.TextSquigglyAnnotation),this.strikeoutText=dg.bind(this,this.props.dispatch,window.Annotations.TextStrikeoutAnnotation),this.redactText=dg.bind(this,this.props.dispatch,window.Annotations.RedactionAnnotation),Bi.getTool("TextSelect").on("selectionComplete",this.onSelectionComplete)}},{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&this.props.closeElements(["annotationPopup","contextMenuPopup"])}},{key:"componentWillUnmount",value:function(){Bi.getTool("TextSelect").off("selectionComplete",this.onSelectionComplete)}},{key:"render",value:function(){if(this.props.isDisabled)return null;var e=this.state,t=e.left,n=e.top,o=ll("Popup TextPopup",this.props),r=Bi.isCreateRedactionEnabled();return l.a.createElement("div",{className:o,"data-element":"textPopup",ref:this.popup,style:{left:t,top:n}},l.a.createElement(za,{dataElement:"copyTextButton",title:"action.copy",img:"ic_copy_black_24px",onClick:this.onClickCopy}),this.props.isAnnotationToolsEnabled&&l.a.createElement(l.a.Fragment,null,l.a.createElement(za,{dataElement:"textHighlightToolButton",title:"annotation.highlight",img:"ic_annotation_highlight_black_24px",onClick:this.highlightText}),l.a.createElement(za,{dataElement:"textUnderlineToolButton",title:"annotation.underline",img:"ic_annotation_underline_black_24px",onClick:this.underlineText}),l.a.createElement(za,{dataElement:"textSquigglyToolButton",title:"annotation.squiggly",img:"ic_annotation_squiggly_black_24px",onClick:this.squigglyText}),l.a.createElement(za,{dataElement:"textStrikeoutToolButton",title:"annotation.strikeout",img:"ic_annotation_strikeout_black_24px",onClick:this.strikeoutText}),r&&l.a.createElement(za,{dataElement:"textRedactToolButton",title:"option.redaction.markForRedaction",img:"ic_annotation_add_redact_black_24px",onClick:this.redactText})))}}])&&bg(n.prototype,o),r&&bg(n,r),t}();Eg(xg,"propTypes",{isAnnotationToolsEnabled:x.a.bool,isDisabled:x.a.bool,isOpen:x.a.bool,dispatch:x.a.func.isRequired,openElement:x.a.func.isRequired,closeElement:x.a.func.isRequired,closeElements:x.a.func.isRequired});var Cg=we(function(e){return{isAnnotationToolsEnabled:!hr.isElementDisabled(e,"annotations")&&!hr.isDocumentReadOnly(e),isDisabled:hr.isElementDisabled(e,"textPopup"),isOpen:hr.isElementOpen(e,"textPopup")}},function(e){return{dispatch:e,openElement:function(t){return e(Ii.openElement(t))},closeElement:function(t){return e(Ii.closeElement(t))},closeElements:function(t){return e(Ii.closeElements(t))}}})(Cl(xg)),Tg=function(e,t,n){Bi.getIsReadOnly()||Bi.getTool(t).disabled?console.warn("".concat(t," has been disabled.")):(e(n?Ii.openElement("toolsOverlay"):Ii.closeElement("toolsOverlay")),Bi.getToolMode().name===t&&da(t)?e(Ii.toggleElement("toolStylePopup")):(window.innerWidth<=900&&"Pan"!==t&&"AnnotationEdit"!==t&&e(Ii.setActiveHeaderGroup("tools")),e(Ii.closeElement("toolStylePopup")),Bi.setToolMode(t),e(Ii.setActiveToolGroup(n))))};n(585);function Og(e){return(Og="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 Pg(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function kg(e){return(kg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ag(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rg(e,t){return(Rg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Og(t)&&"function"!=typeof t?Ag(e):t}(this,kg(t).call(this)),Mg(Ag(e),"onContextMenu",function(t){var n=t.target.tagName,o="INPUT"===n,r="TEXTAREA"===n;if(!document.querySelector(".DocumentContainer").contains(t.target)||o||r)e.props.closeElement("contextMenuPopup");else{t.preventDefault();var i=e.getPopupPosition(t),a=i.left,l=i.top;e.setState({left:a,top:l}),e.props.openElement("contextMenuPopup")}}),Mg(Ag(e),"getPopupPosition",function(t){var n=t.pageX,o=t.pageY;if(e.popup.current){var r=e.popup.current.getBoundingClientRect(),i=r.width,a=r.height,l=document.getElementsByClassName("DocumentContainer")[0].getBoundingClientRect();n<l.left&&(n=l.left+2),n+i>l.right&&(n=l.right-i-2),o<l.top&&(o=l.top+2),o+a>l.bottom&&(o=l.bottom-a-2)}return{left:n,top:o}}),Mg(Ag(e),"handleClickOutside",function(){e.props.closeElement("contextMenuPopup")}),Mg(Ag(e),"handleClick",function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.props,r=o.dispatch,i=o.closeElement;Tg(r,t,n),i("contextMenuPopup")}),e.popup=l.a.createRef(),e.state={left:0,top:0},e}var n,o,r;return 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&&Rg(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){document.addEventListener("contextmenu",this.onContextMenu)}},{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&this.props.closeElements(["annotationPopup","textPopup"])}},{key:"componentWillUnmount",value:function(){document.removeEventListener("contextmenu",this.onContextMenu)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isDisabled,o=t.isAnnotationToolsEnabled;if(n)return null;var r=this.state,i=r.left,a=r.top,s=ll("Popup ContextMenuPopup",this.props);return l.a.createElement("div",{className:s,ref:this.popup,"data-element":"contextMenuPopup",style:{left:i,top:a}},l.a.createElement(za,{dataElement:"panToolButton",title:"tool.pan",img:"ic_pan_black_24px",onClick:function(){return e.handleClick("Pan")}}),o&&l.a.createElement(l.a.Fragment,null,l.a.createElement(za,{dataElement:"stickyToolButton",title:"annotation.stickyNote",img:"ic_annotation_sticky_note_black_24px",onClick:function(){return e.handleClick("AnnotationCreateSticky")}}),l.a.createElement(za,{dataElement:"highlightToolButton",title:"annotation.highlight",img:"ic_annotation_highlight_black_24px",onClick:function(){return e.handleClick("AnnotationCreateTextHighlight","textTools")}}),l.a.createElement(za,{dataElement:"freeHandToolButton",title:"annotation.freehand",img:"ic_annotation_freehand_black_24px",onClick:function(){return e.handleClick("AnnotationCreateFreeHand","freeHandTools")}}),l.a.createElement(za,{dataElement:"freeTextToolButton",title:"annotation.freetext",img:"ic_annotation_freetext_black_24px",onClick:function(){return e.handleClick("AnnotationCreateFreeText")}})))}}])&&Pg(n.prototype,o),r&&Pg(n,r),t}();Mg(Dg,"propTypes",{isAnnotationToolsEnabled:x.a.bool,isOpen:x.a.bool,isDisabled:x.a.bool,dispatch:x.a.func.isRequired,openElement:x.a.func.isRequired,closeElement:x.a.func.isRequired,closeElements:x.a.func.isRequired});var Lg=we(function(e){return{isAnnotationToolsEnabled:!hr.isElementDisabled(e,"annotations")&&!hr.isDocumentReadOnly(e),isOpen:hr.isElementOpen(e,"contextMenuPopup"),isDisabled:hr.isElementDisabled(e,"contextMenuPopup")}},function(e){return{dispatch:e,openElement:function(t){return e(Ii.openElement(t))},closeElement:function(t){return e(Ii.closeElement(t))},closeElements:function(t){return e(Ii.closeElements(t))}}})(Cl(Dg));n(586);function jg(e){return(jg="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 Ng(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function zg(e){return(zg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ig(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fg(e,t){return(Fg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ug=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==jg(t)&&"function"!=typeof t?Ig(e):t}(this,zg(t).call(this,e)),Bg(Ig(n),"handleClick",function(e){$t()&&e.target===e.currentTarget&&n.props.closeElement("toolStylePopup")}),Bg(Ig(n),"handleClickOutside",function(e){var t=document.querySelector('[data-element="toolsOverlay"]'),o=document.querySelector('[data-element="header"]'),r=null==t?void 0:t.contains(e.target),i=null==o?void 0:o.contains(e.target);r||i||n.close()}),Bg(Ig(n),"close",function(){n.props.closeElement("toolStylePopup")}),Bg(Ig(n),"handleStyleChange",function(e,t){Dv(n.props.activeToolName,e,t)}),Bg(Ig(n),"positionToolStylePopup",function(){var e=n.props,t=e.toolButtonObjects[e.activeToolName].dataElement,o=document.querySelectorAll(".Header [data-element=".concat(t,"], .ToolsOverlay [data-element=").concat(t,"]"))[0];if(o){var r=n.getToolStylePopupPositionBasedOn(o,n.popup),i=r.left,a=r.top;n.setState({left:i,top:a})}}),Bg(Ig(n),"getToolStylePopupPositionBasedOn",function(e,t){var n=e.getBoundingClientRect(),o=t.current.getBoundingClientRect(),r=(n.left+n.right)/2,i=n.bottom+1,a=r-o.width/2;return{left:a=(a=r+o.width/2>window.innerWidth?window.innerWidth-o.width-12:a)<0?0:a,top:i}}),n.popup=l.a.createRef(),n.state={left:0,top:0},n}var n,o,r;return 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&&Fg(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.close)}},{key:"componentDidUpdate",value:function(e){e.isOpen||!this.props.isOpen||this.props.isDisabled||(this.props.closeElements(["viewControlsOverlay","searchOverlay","menuOverlay","signatureOverlay","zoomOverlay","redactionOverlay"]),this.positionToolStylePopup()),e.activeToolName!==this.props.activeToolName&&!this.props.isDisabled&&this.positionToolStylePopup()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.close)}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.top,o=this.props,r=o.isDisabled,i=o.activeToolName,a=o.activeToolStyle,s="AnnotationCreateFreeText"===i,u=ll("Popup ToolStylePopup",this.props),c=va(i);if(r)return null;var f="AnnotationCreateRedaction"===i;return l.a.createElement("div",{className:u,"data-element":"toolStylePopup",style:{top:n,left:t},ref:this.popup,onClick:this.handleClick},l.a.createElement(kv,{key:i,colorMapKey:c,style:a,isFreeText:s,hideSlider:f,onStyleChange:this.handleStyleChange}))}}])&&Ng(n.prototype,o),r&&Ng(n,r),t}();Bg(Ug,"propTypes",{activeToolName:x.a.string,activeToolStyle:x.a.object,isDisabled:x.a.bool,isOpen:x.a.bool,toolButtonObjects:x.a.object.isRequired,colorMapKey:x.a.string,closeElement:x.a.func.isRequired,closeElements:x.a.func.isRequired});var Wg=we(function(e){return{activeToolName:hr.getActiveToolName(e),activeToolStyle:hr.getActiveToolStyles(e),isDisabled:hr.isElementDisabled(e,"toolStylePopup"),isOpen:hr.isElementOpen(e,"toolStylePopup"),toolButtonObjects:hr.getToolButtonObjects(e)}},{closeElement:Ii.closeElement,closeElements:Ii.closeElements})(Cl(Ug));n(587);function Hg(e){return(Hg="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 Vg(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gg(e){return(Gg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $g(e,t){return($g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kg=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Hg(t)&&"function"!=typeof t?qg(e):t}(this,Gg(t).call(this,e)),Yg(qg(n),"setUpSignatureCanvas",function(){if(n.canvas.current){var e=n.canvas.current;if(n.canvas.current){n.signatureTool.setSignatureCanvas($(e)),n.signatureTool.drawBackground=function(){};var t=window.utils.getCanvasMultiplier();e.getContext("2d").scale(t,t),e.addEventListener("mouseup",n.handleFinishDrawing),e.addEventListener("touchend",n.handleFinishDrawing),n.setSignatureCanvasSize(),n.isCanvasReady=!0}}}),Yg(qg(n),"setSignatureCanvasSize",function(){if(n.canvas.current){var e=n.canvas.current,t=e.getBoundingClientRect(),o=t.width,r=t.height;e.width=o,e.height=r}}),Yg(qg(n),"handleFinishDrawing",function(e){e.target!==e.currentTarget||n.signatureTool.isEmptySignature()||(n.setState({canClear:!0}),n.props.isSaveSignatureDisabled||n.setState({saveSignature:!0}))}),Yg(qg(n),"closeModal",function(){n.clearCanvas(),n.signatureTool.clearLocation(),n.props.closeElement("signatureModal"),Bi.setToolMode(Oa)}),Yg(qg(n),"clearCanvas",function(){n.signatureTool.clearSignatureCanvas(),n.setState(n.initialState)}),Yg(qg(n),"handleSaveSignatureChange",function(){n.setState(function(e){return{saveSignature:!e.saveSignature}})}),Yg(qg(n),"createSignature",function(){var e=n.props,t=e.closeElement,o=e.openElement,r=e.setCursorOverlay;if(!n.signatureTool.isEmptySignature()){if(n.state.saveSignature&&n.signatureTool.saveDefaultSignature(),n.signatureTool.hasLocation())n.signatureTool.addSignature();else{var i=n.signatureTool.getSignaturePreview();r({imgSrc:i.imgSrc,width:i.width,height:i.height}),o("cursorOverlay")}t("signatureModal")}}),n.canvas=l.a.createRef(),n.signatureTool=Bi.getTool("AnnotationCreateSignature"),n.initialState={saveSignature:!1,canClear:!1},n.state=n.initialState,n}var n,o,r;return 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&&$g(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){this.setUpSignatureCanvas(),window.addEventListener("resize",this.setSignatureCanvasSize),window.addEventListener("orientationchange",this.setSignatureCanvasSize)}},{key:"componentDidUpdate",value:function(e){!e.isDisabled||this.props.isDisabled||this.isCanvasReady||this.setUpSignatureCanvas(),!e.isOpen&&this.props.isOpen&&(Bi.setToolMode("AnnotationCreateSignature"),this.setState(this.initialState),this.signatureTool.clearSignatureCanvas(),this.signatureTool.openSignature(),this.props.closeElements(["printModal","loadingModal","progressModal","errorModal"]))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.setSignatureCanvasSize),window.removeEventListener("orientationchange",this.setSignatureCanvasSize)}},{key:"render",value:function(){var e=this.state.canClear,t=this.props,n=t.isDisabled,o=t.isSaveSignatureDisabled,r=t.t,i=ll("Modal SignatureModal",this.props);return n?null:l.a.createElement("div",{className:i,onClick:this.closeModal},l.a.createElement("div",{className:"container",onClick:function(e){return e.stopPropagation()},onMouseUp:this.handleFinishDrawing},l.a.createElement("div",{className:"header"},l.a.createElement(za,{dataElement:"signatureModalCloseButton",title:"action.close",img:"ic_close_black_24px",onClick:this.closeModal})),l.a.createElement("div",{className:"signature"},l.a.createElement("canvas",{className:"signature-canvas",ref:this.canvas}),l.a.createElement("div",{className:"signature-background"},l.a.createElement("div",{className:"signature-sign-here"},r("message.signHere")),l.a.createElement("div",{className:"signature-clear ".concat(e?"active":null),onClick:this.clearCanvas},r("action.clear")))),l.a.createElement("div",{className:"footer",style:{justifyContent:o?"flex-end":"space-between"}},!o&&l.a.createElement("div",{className:"signature-save","data-element":"saveSignatureButton"},l.a.createElement("input",{id:"default-signature",type:"checkbox",checked:this.state.saveSignature,onChange:this.handleSaveSignatureChange}),l.a.createElement("label",{htmlFor:"default-signature"},r("action.saveSignature"))),l.a.createElement("div",{className:"signature-create",onClick:this.createSignature},r("action.create")))))}}])&&Vg(n.prototype,o),r&&Vg(n,r),t}();Yg(Kg,"propTypes",{isDisabled:x.a.bool,isSaveSignatureDisabled:x.a.bool,isOpen:x.a.bool,t:x.a.func.isRequired,openElement:x.a.func.isRequired,setCursorOverlay:x.a.func.isRequired,closeElement:x.a.func.isRequired,closeElements:x.a.func.isRequired});var Zg=we(function(e){return{isDisabled:hr.isElementDisabled(e,"signatureModal"),isSaveSignatureDisabled:hr.isElementDisabled(e,"saveSignatureButton"),isOpen:hr.isElementOpen(e,"signatureModal")}},{openElement:Ii.openElement,setCursorOverlay:Ii.setCursorOverlay,closeElement:Ii.closeElement,closeElements:Ii.closeElements})(Xe()(Kg)),Qg=function(e,t){var n=Bi.getTotalPages(),o=[];if(!e){for(var r=1;r<=n;r++)o.push(r);return o}return e.split(",").forEach(function(e){var n=e.split("-"),r=1===n.length,i=2===n.length;if(r){var a=Jg(n[0],t);o.push(a)}else i&&Xg(o,n,t)}),o.filter(function(e,t,o){return o.indexOf(e)===t&&(e>0&&e<=n)}).sort(function(e,t){return e-t})},Xg=function(e,t,n){var o,r=Jg(t[0],n);o=""===t[1]?Bi.getTotalPages():Jg(t[1],n);for(var i=r;i<=o;i++)e.push(i)},Jg=function(e,t){var n,o=t.indexOf(e);return-1===o?console.warn("".concat(e," is not a valid page label")):n=o+1,n};n(588);function ey(e){return(ey="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 ty(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ny(e){return(ny=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ry(e,t){return(ry=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ay=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==ey(t)&&"function"!=typeof t?oy(e):t}(this,ny(t).call(this)),iy(oy(e),"onChange",function(){var t=e.props,n=t.currentPage,o=t.pageLabels,r=[];if(e.allPages.current.checked)for(var i=1;i<=Bi.getTotalPages();i++)r.push(i);else if(e.currentPage.current.checked)r.push(n);else if(e.customPages.current.checked){var a=e.customInput.current.value.replace(/\s+/g,"");r=Qg(a,o)}e.setState({pagesToPrint:r})}),iy(oy(e),"onFocus",function(){e.customPages.current.checked=!0,e.onChange()}),iy(oy(e),"createPagesAndPrint",function(t){if(t.preventDefault(),!(e.state.pagesToPrint.length<1)){e.setState({count:0}),e.setPrintQuality();var n=e.creatingPages();Promise.all(n).then(function(t){e.printPages(t),e.resetPrintQuality()}).catch(function(e){console.error(e)})}}),iy(oy(e),"setPrintQuality",function(){window.utils.setCanvasMultiplier(e.props.printQuality)}),iy(oy(e),"creatingPages",function(){var t=[];return e.pendingCanvases=[],e.state.pagesToPrint.forEach(function(n){t.push(e.creatingImage(n));var o=e.getPrintableAnnotations(n);if(e.includeComments.current.checked&&o.length){var r=ph()[e.props.sortStrategy].getSortedNotes(o);t.push(e.creatingNotesPage(r,n))}}),t}),iy(oy(e),"creatingImage",function(t){return new Promise(function(n){var o=t-1,r=e.getPrintRotation(o),i=Bi.getDocument().loadCanvasAsync(o,1,r,function(r){e.pendingCanvases=e.pendingCanvases.filter(function(e){return e!==i}),e.positionCanvas(r,o),e.drawAnnotationsOnCanvas(r,t).then(function(){var t=document.createElement("img");t.src=r.toDataURL(),t.onload=function(){e.setState(function(e){var t=e.count;return{count:t<0?-1:t+1}}),n(t)}})});e.pendingCanvases.push(i)})}),iy(oy(e),"getPrintRotation",function(t){var n=Bi.getPageInfo(t),o=n.width,r=n.height,i=(4-e.getDocumentRotation(t))%4;return i%2==0&&o>r?i++:i%2==1&&r>o&&i--,i}),iy(oy(e),"positionCanvas",function(t,n){var o=Bi.getPageInfo(n),r=o.width,i=o.height,a=e.getDocumentRotation(n),l=t.getContext("2d");switch(a){case 1:l.translate(r,0);break;case 2:l.translate(r,i);break;case 3:l.translate(0,i)}l.rotate(90*a*Math.PI/180)}),iy(oy(e),"getDocumentRotation",function(e){var t=e+1;return(Bi.getCompleteRotation(t)-Bi.getRotation(t)+4)%4}),iy(oy(e),"drawAnnotationsOnCanvas",function(t,n){if(0===Bi.getAnnotationsList().filter(function(e){return e.PageNumber===n&&e instanceof window.Annotations.WidgetAnnotation}).length)return Bi.drawAnnotations(n,t);var o=$(e.createWidgetContainer(n-1));return Bi.drawAnnotations(n,t,!0,o).then(function(){return document.body.appendChild(o[0]),window.html2canvas(o[0],{canvas:t,backgroundColor:null,scale:1,logging:!1}).then(function(){document.body.removeChild(o[0])})})}),iy(oy(e),"createWidgetContainer",function(e){var t=Bi.getPageInfo(e),n=t.width,o=t.height,r=document.createElement("div");return r.id="printWidgetContainer",r.style.width=n,r.style.height=o,r.style.position="relative",r.style.top="-10000px",r}),iy(oy(e),"getPrintableAnnotations",function(e){return Bi.getAnnotationsList().filter(function(t){return t.Listable&&t.PageNumber===e&&!t.isReply()&&t.Printable})}),iy(oy(e),"creatingNotesPage",function(t,n){return new Promise(function(o){var r=document.createElement("div");r.className="page__container";var i=document.createElement("div");i.className="page__header",i.innerHTML="Page ".concat(n),r.appendChild(i),t.forEach(function(t){var n=e.getNote(t);r.appendChild(n)}),o(r)})}),iy(oy(e),"getNote",function(t){var n=document.createElement("div");n.className="note";var o=document.createElement("div");o.className="note__root";var r=document.createElement("div");r.className="note__info--with-icon";var i=e.getNoteIcon(t);return r.appendChild(i),r.appendChild(e.getNoteInfo(t)),o.appendChild(r),o.appendChild(e.getNoteContent(t)),n.appendChild(o),t.getReplies().forEach(function(t){var o=document.createElement("div");o.className="note__reply",o.appendChild(e.getNoteInfo(t)),o.appendChild(e.getNoteContent(t)),n.appendChild(o)}),n}),iy(oy(e),"getNoteIcon",function(t){var o,r=e.props.colorMap,i=ga(t),a=r[i]&&r[i].iconColor,l=ba(i).icon;if(l&&0===l.trim().indexOf("data:"))(o=document.createElement("img")).src=l;else{var s;if(l)s=0===l.indexOf("<svg")?l:n(186)("./".concat(l,".svg"));else s=t.Subject;(o=document.createElement("div")).innerHTML=s}return o.className="note__icon",o.style.color=a&&t[a].toHexString(),o}),iy(oy(e),"getNoteInfo",function(e){var t=document.createElement("div");return t.className="note__info",t.innerHTML="\n      Author: ".concat(e.Author||""," &nbsp;&nbsp;\n      Subject: ").concat(e.Subject," &nbsp;&nbsp;\n      Date: ").concat(Np()(e.DateCreated).format("D/MM/YYYY h:mm:ss A"),"\n    "),t}),iy(oy(e),"getNoteContent",function(e){var t=document.createElement("div"),n=e.getContents();return t.className="note__content",n&&(t.innerHTML="".concat(n)),t}),iy(oy(e),"printPages",function(t){var n=document.getElementById("print-handler");n.innerHTML="";var o=document.createDocumentFragment();t.forEach(function(e){o.appendChild(e)}),n.appendChild(o),window.print(),e.closePrintModal()}),iy(oy(e),"resetPrintQuality",function(){window.utils.unsetCanvasMultiplier()}),iy(oy(e),"closePrintModal",function(){e.setState({count:-1}),e.props.closeElement("printModal")}),iy(oy(e),"cancelPrint",function(){var t=Bi.getDocument();e.pendingCanvases.forEach(function(e){return t.cancelLoadCanvas(e)}),e.setState({count:-1})}),e.allPages=l.a.createRef(),e.currentPage=l.a.createRef(),e.customPages=l.a.createRef(),e.customInput=l.a.createRef(),e.includeComments=l.a.createRef(),e.pendingCanvases=[],e.state={count:-1,pagesToPrint:[]},e}var o,r,i;return 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&&ry(e,t)}(t,l.a.PureComponent),o=t,(r=[{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&(this.onChange(),this.props.closeElements(["signatureModal","loadingModal","progressModal","errorModal"]))}},{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.t;if(t)return null;var o=this.state,r=o.count,i=o.pagesToPrint,a=ll("Modal PrintModal",this.props),s=l.a.createElement("input",{ref:this.customInput,type:"text",placeholder:n("message.customPrintPlaceholder"),onFocus:this.onFocus}),u=r>=0;return l.a.createElement("div",{className:a,"data-element":"printModal",onClick:this.closePrintModal},l.a.createElement("div",{className:"container",onClick:function(e){return e.stopPropagation()}},l.a.createElement("div",{className:"settings"},l.a.createElement("div",{className:"col"},"".concat(n("option.print.pages"),":")),l.a.createElement("form",{className:"col",onChange:this.onChange,onSubmit:this.createPagesAndPrint},l.a.createElement(ts,{ref:this.allPages,id:"all-pages",name:"pages",type:"radio",label:n("option.print.all"),defaultChecked:!0}),l.a.createElement(ts,{ref:this.currentPage,id:"current-page",name:"pages",type:"radio",label:n("option.print.current")}),l.a.createElement(ts,{ref:this.customPages,id:"custom-pages",name:"pages",type:"radio",label:s}),l.a.createElement(ts,{ref:this.includeComments,id:"include-comments",name:"comments",type:"checkbox",label:n("option.print.includeComments")}))),l.a.createElement("div",{className:"total"},u?l.a.createElement("div",null,"".concat(n("message.processing")," ").concat(r,"/").concat(i.length)):l.a.createElement("div",null,n("message.printTotalPageCount",{count:i.length}))),l.a.createElement("div",{className:"buttons"},l.a.createElement("div",{className:"button",onClick:this.createPagesAndPrint,disabled:r>-1},n("action.print")),u?l.a.createElement("div",{className:"button",onClick:this.cancelPrint},n("action.cancel")):l.a.createElement("div",{className:"button",onClick:this.closePrintModal},n("action.close")))))}}])&&ty(o.prototype,r),i&&ty(o,i),t}();iy(ay,"propTypes",{isEmbedPrintSupported:x.a.bool,isDisabled:x.a.bool,isOpen:x.a.bool,currentPage:x.a.number,printQuality:x.a.number.isRequired,pageLabels:x.a.array.isRequired,closeElement:x.a.func.isRequired,dispatch:x.a.func.isRequired,closeElements:x.a.func.isRequired,t:x.a.func.isRequired,sortStrategy:x.a.string.isRequired,colorMap:x.a.object.isRequired});var ly=we(function(e){return{isEmbedPrintSupported:hr.isEmbedPrintSupported(e),isDisabled:hr.isElementDisabled(e,"printModal"),isOpen:hr.isElementOpen(e,"printModal"),currentPage:hr.getCurrentPage(e),printQuality:hr.getPrintQuality(e),pageLabels:hr.getPageLabels(e),sortStrategy:hr.getSortStrategy(e),colorMap:hr.getColorMap(e)}},function(e){return{dispatch:e,closeElement:function(t){return e(Ii.closeElement(t))},closeElements:function(t){return e(Ii.closeElements(t))}}})(Xe()(ay));n(589);function sy(e){return(sy="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 uy(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function cy(e,t){return!t||"object"!==sy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fy(e){return(fy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dy(e,t){return(dy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var py=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cy(this,fy(t).apply(this,arguments))}var n,o,r;return 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&&dy(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&this.props.closeElements(["signatureModal","printModal","errorModal"])}},{key:"render",value:function(){if(this.props.isDisabled)return null;var e=ll("Modal LoadingModal",this.props);return l.a.createElement("div",{className:e,"data-element":"loadingModal"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"inner-wrapper"})))}}])&&uy(n.prototype,o),r&&uy(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(py,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,closeElements:x.a.func.isRequired});var hy=we(function(e){return{isDisabled:hr.isElementDisabled(e,"loadingModal"),isOpen:hr.isElementOpen(e,"loadingModal"),loadingProgress:hr.getLoadingProgress(e)}},{closeElements:Ii.closeElements})(py);n(590);function my(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var vy=function(){var e=my(Oe(function(e){return[hr.getErrorMessage(e),hr.isElementDisabled(e,"errorModal"),hr.isElementOpen(e,"errorModal"),hr.getDocumentPath(e)]},K),4),t=e[0],n=e[1],o=e[2],r=e[3],i=Ee(),s=my(Ze(),1)[0];return Object(a.useEffect)(function(){o&&i(Ii.closeElements(["signatureModal","printModal","loadingModal","progressModal"]))},[i,o]),Object(a.useEffect)(function(){var e=function(e){var t,n;r.indexOf("file:///")>-1&&console.error("WebViewer doesn't have access to file URLs because of browser security restrictions. Please see https://www.pdftron.com/documentation/web/guides/basics/troubleshooting-document-loading#not-allowed-to-load-local-resource:-file:"),"string"==typeof(e=e.detail||e.message)?(n=e).indexOf("File does not exist")>-1&&(n=s("message.notSupported")):"InvalidPDF"===(null===(t=e)||void 0===t?void 0:t.type)&&(n=s("message.badDocument")),n&&i(Ii.showErrorMessage(n))};return window.addEventListener("loaderror",e),function(){return window.removeEventListener("loaderror",e)}},[i,r,s]),n?null:l.a.createElement("div",{className:Hi()({Modal:!0,ErrorModal:!0,open:o,closed:!o}),"data-element":"errorModal"},l.a.createElement("div",{className:"container"},t))};n(591);function gy(e){return(gy="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 yy(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function by(e){return(by=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sy(e,t){return(Sy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ey=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=function(e,t){return!t||"object"!==gy(t)&&"function"!=typeof t?wy(e):t}(this,(e=by(t)).call.apply(e,[this].concat(r))),_y(wy(n),"onCancel",function(){n.props.onCancel?n.props.onCancel().then(function(){n.props.closeElement("warningModal")}):n.props.closeElement("warningModal")}),_y(wy(n),"onConfirm",function(){n.props.onConfirm().then(function(){n.props.closeElement("warningModal")})}),n}var n,o,r;return 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&&Sy(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){if(!e.isOpen&&this.props.isOpen){var t=["viewControlsOverlay","searchOverlay","menuOverlay","searchPanel","leftPanel","redactionOverlay","toolsOverlay","toolStylePopup"].filter(function(e){return"warningModal"!==e});this.props.closeElements(t)}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.message,o=e.confirmBtnText;if(this.props.isDisabled)return null;var r=ll("Modal WarningModal",this.props),i=o||It.t("action.ok"),a=It.t("action.cancel");return l.a.createElement("div",{className:r},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"header"},t),l.a.createElement("div",{className:"body"},n),l.a.createElement("div",{className:"footer"},l.a.createElement(fa,{dataElement:"WarningModalClearButton",label:a,onClick:this.onCancel}),l.a.createElement(fa,{className:"warningMessageConfirm",dataElement:"WarningModalSignButton",label:i,onClick:this.onConfirm}))))}}])&&yy(n.prototype,o),r&&yy(n,r),t}();_y(Ey,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,closeElement:x.a.func.isRequired,closeElements:x.a.func.isRequired,confirmBtnText:x.a.string,title:x.a.string,message:x.a.string,onConfirm:x.a.func,onCancel:x.a.func});var xy=we(function(e){return{title:hr.getWarningTitle(e)||"",message:hr.getWarningMessage(e),onConfirm:hr.getWarningConfirmEvent(e),confirmBtnText:hr.getWarningConfirmBtnText(e),onCancel:hr.getWarningCancelEvent(e),isDisabled:hr.isElementDisabled(e,"warningModal"),isOpen:hr.isElementOpen(e,"warningModal")}},{closeElement:Ii.closeElement,closeElements:Ii.closeElements})(Ey);n(592);function Cy(e){return(Cy="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 Ty(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Oy(e){return(Oy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Py(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ky(e,t){return(ky=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ay(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ry=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Cy(t)&&"function"!=typeof t?Py(e):t}(this,Oy(t).call(this)),Ay(Py(e),"handleInputChange",function(t){e.setState({password:t.target.value})}),Ay(Py(e),"handleSubmit",function(t){t.preventDefault(),e.props.checkPassword(e.state.password)}),Ay(Py(e),"handleCancel",function(){e.setState({userCanceled:!0})}),Ay(Py(e),"renderContent",function(){return e.props.attempt===e.maxAttempts?e.renderMaxAttemptsContent():e.state.userCanceled?e.renderUserCancelContent():e.renderEnterPasswordContent()}),Ay(Py(e),"renderMaxAttemptsContent",function(){return l.a.createElement("p",null,e.props.t("message.encryptedAttemptsExceeded"))}),Ay(Py(e),"renderUserCancelContent",function(){return l.a.createElement("p",null,e.props.t("message.encryptedUserCancelled"))}),Ay(Py(e),"renderEnterPasswordContent",function(){var t=e.props.t,n=0!==e.props.attempt;return l.a.createElement("div",{className:"wrapper"},l.a.createElement("div",{className:"header"},t("message.passwordRequired")),l.a.createElement("form",{onSubmit:e.handleSubmit},l.a.createElement("div",{className:"enter"},l.a.createElement("div",null,t("message.enterPassword")),l.a.createElement("input",{className:"".concat(n?"wrong":"correct"),type:"password",ref:e.passwordInput,value:e.state.password,onChange:e.handleInputChange})),n&&l.a.createElement("div",{className:"incorrect-password"},t("message.incorrectPassword",{remainingAttempts:e.maxAttempts-e.props.attempt})),l.a.createElement("div",{className:"buttons"},l.a.createElement(fa,{dataElement:"passwordSubmitButton",label:t("action.submit"),onClick:e.handleSubmit}),l.a.createElement(fa,{dataElement:"passwordCancelButton",label:t("action.cancel"),onClick:e.handleCancel}))))}),e.maxAttempts=3,e.passwordInput=l.a.createRef(),e.initialState={password:"",userCanceled:!1},e.state=e.initialState,e}var n,o,r;return 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&&ky(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&this.props.closeElement("progressModal"),e.isOpen&&!this.props.isOpen&&this.setState(this.initialState),this.passwordInput.current&&this.passwordInput.current.focus()}},{key:"render",value:function(){var e=ll("Modal PasswordModal",this.props);return l.a.createElement("div",{className:e,"data-element":"passwordModal"},l.a.createElement("div",{className:"container"},this.renderContent()))}}])&&Ty(n.prototype,o),r&&Ty(n,r),t}();Ay(Ry,"propTypes",{isOpen:x.a.bool,attempt:x.a.number.isRequired,checkPassword:x.a.func,setPasswordAttempts:x.a.func.isRequired,t:x.a.func.isRequired,closeElement:x.a.func.isRequired});var My=we(function(e){return{isOpen:hr.isElementOpen(e,"passwordModal"),checkPassword:hr.getCheckPasswordFunction(e),attempt:hr.getPasswordAttempts(e)}},{setPasswordAttempts:Ii.setPasswordAttempts,closeElement:Ii.closeElement})(Xe()(Ry));n(593);function Dy(e){return(Dy="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 Ly(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function jy(e,t){return!t||"object"!==Dy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ny(e){return(Ny=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zy(e,t){return(zy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Iy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jy(this,Ny(t).apply(this,arguments))}var n,o,r;return 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&&zy(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&this.props.closeElements(["signatureModal","printModal","errorModal","loadingModal"])}},{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.loadingProgress,o=e.isUploading,r=e.uploadProgress;if(this.props.isDisabled)return null;if(t)return null;var i=o?r:n,a=ll("Modal ProgressModal",this.props);return l.a.createElement("div",{className:a,"data-element":"progressModal"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"progress-bar-wrapper"},l.a.createElement("div",{className:"progress-bar",style:{transform:"translateX(".concat(100*-(1-i),"%"),transition:i?"transform 0.5s ease":"none"}}))))}}])&&Ly(n.prototype,o),r&&Ly(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Iy,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,closeElements:x.a.func.isRequired,loadingProgress:x.a.number,isUploading:x.a.bool,uploadProgress:x.a.number});var Fy=we(function(e){return{isDisabled:hr.isElementDisabled(e,"progressModal"),isOpen:hr.isElementOpen(e,"progressModal"),loadingProgress:hr.getLoadingProgress(e),isUploading:hr.isUploading(e),uploadProgress:hr.getUploadProgress(e)}},{closeElements:Ii.closeElements})(Iy);n(594);function By(e){return(By="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 Uy(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Wy(e){return(Wy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vy(e,t){return(Vy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==By(t)&&"function"!=typeof t?Hy(e):t}(this,Wy(t).call(this)),Gy(Hy(e),"openDocument",function(t){var n=t.target.files[0];n&&(e.props.setDocumentFile(n),e.props.openElement("progressModal"),e.props.closeElement("menuOverlay"),Bi.closeDocument(e.props.dispatch).then(function(){Nu({document:e.props.document,advanced:e.props.advanced},e.props.dispatch)}))}),e.accepted=[Au.map(function(e){return".".concat(e)}),Ru.map(function(e){return".".concat(e)}),".xod"].join(", "),e}var n,o,r;return 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&&Vy(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){return this.props.isDisabled?null:l.a.createElement("div",{className:"FilePickerHandler"},l.a.createElement("input",{id:"file-picker",type:"file",accept:this.accepted,onChange:this.openDocument}))}}])&&Uy(n.prototype,o),r&&Uy(n,r),t}();Gy(qy,"propTypes",{document:x.a.object.isRequired,advanced:x.a.object.isRequired,isDisabled:x.a.bool,dispatch:x.a.func.isRequired,setDocumentFile:x.a.func.isRequired,openElement:x.a.func.isRequired,closeElement:x.a.func.isRequired});var $y=we(function(e){return{document:hr.getDocument(e),advanced:hr.getAdvanced(e),isDisabled:hr.isElementDisabled(e,"filePickerHandler")}},function(e){return{dispatch:e,setDocumentFile:function(t){return e(Ii.setDocumentFile(t))},openElement:function(t){return e(Ii.openElement(t))},closeElement:function(t){return e(Ii.closeElement(t))}}})(qy);n(595);function Yy(e){return(Yy="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 Ky(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Zy(e,t){return!t||"object"!==Yy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qy(e){return(Qy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xy(e,t){return(Xy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zy(this,Qy(t).apply(this,arguments))}var n,o,r;return 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&&Xy(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){return l.a.createElement("div",{className:"CopyTextHandler"},l.a.createElement("textarea",{id:"copy-textarea"}))}}])&&Ky(n.prototype,o),r&&Ky(n,r),t}();n(596);function eb(e){return(eb="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 tb(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nb(e,t){return!t||"object"!==eb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ob(e){return(ob=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rb(e,t){return(rb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ib=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nb(this,ob(t).apply(this,arguments))}var n,o,r;return 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&&rb(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){return this.props.isDisabled?null:l.a.createElement("div",{className:"PrintHandler"},this.props.isEmbedPrintSupported?l.a.createElement("embed",{id:"print-handler",type:"application/pdf"}):l.a.createElement("div",{id:"print-handler"}))}}])&&tb(n.prototype,o),r&&tb(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(ib,"propTypes",{isDisabled:x.a.bool,isEmbedPrintSupported:x.a.bool});var ab=we(function(e){return{isDisabled:hr.isElementDisabled(e,"printHandler"),isEmbedPrintSupported:hr.isEmbedPrintSupported(e)}})(ib);n(597);function lb(e){return(lb="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 sb(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ub(e,t){return!t||"object"!==lb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cb(e){return(cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fb(e,t){return(fb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var db=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ub(this,cb(t).apply(this,arguments))}var n,o,r;return 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&&fb(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"render",value:function(){var e=this.props.buttonName;return l.a.createElement("div",{className:"OverlayItem",onClick:this.props.onClick},l.a.createElement("div",{className:"ButtonText"},e))}}])&&sb(n.prototype,o),r&&sb(n,r),t}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(db,"propTypes",{onClick:x.a.func,buttonName:x.a.string});var pb=db;n(598);function hb(e){return(hb="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 mb(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function vb(e){return(vb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yb(e,t){return(yb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wb=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==hb(t)&&"function"!=typeof t?gb(e):t}(this,vb(t).call(this,e)),bb(gb(n),"handleClickOutside",function(e){var t=document.querySelector('[data-element="zoomOverlayButton"]');(null==t?void 0:t.contains(e.target))||n.props.closeElements("zoomOverlay")}),bb(gb(n),"handleWindowResize",function(){var e=Dl("zoomOverlayButton",n.dropdown),t=e.left,o=e.right;n.setState({left:t-20,right:o})}),n.dropdown=l.a.createRef(),n.state={left:0,right:"auto"},n}var n,o,r;return 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&&yb(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(e){if(!e.isOpen&&this.props.isOpen){this.props.closeElements(["viewControlsOverlay","toolsOverlay","searchOverlay","menuOverlay","toolStylePopup"]);var t=Dl("zoomOverlayButton",this.dropdown),n=t.left,o=t.right;this.setState({left:n-20,right:o})}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"render",value:function(){var e=this.props,t=e.isOpen,n=e.isDisabled,o=e.t,r=e.closeElements,i=e.zoomList,a=["ZoomOverlay",t?"open":"closed"].join(" ").trim(),s=this.state,u=s.left,c=s.right;return n?null:l.a.createElement("div",{className:a,"data-element":"zoomOverlay",style:{left:u,right:c},ref:this.dropdown,onClick:function(){return r(["zoomOverlay"])}},l.a.createElement(pb,{onClick:Bi.fitToWidth,buttonName:o("action.fitToWidth")}),l.a.createElement(pb,{onClick:Bi.fitToPage,buttonName:o("action.fitToPage")}),l.a.createElement("div",{className:"spacer"}),i.map(function(e,t){return l.a.createElement(pb,{key:t,onClick:function(){return Il(e)},buttonName:"".concat(100*e,"%")})}),l.a.createElement("div",{className:"spacer"}),l.a.createElement(Ta,{toolName:"MarqueeZoomTool",label:o("tool.Marquee")}))}}])&&mb(n.prototype,o),r&&mb(n,r),t}();bb(wb,"propTypes",{isDisabled:x.a.bool,isOpen:x.a.bool,closeElements:x.a.func.isRequired,t:x.a.func.isRequired,zoomList:x.a.arrayOf(x.a.number)});var Sb=we(function(e){return{isDisabled:hr.isElementDisabled(e,"zoomOverlay"),isOpen:hr.isElementOpen(e,"zoomOverlay"),zoomList:hr.getZoomList(e)}},{closeElements:Ii.closeElements})(Xe()(Cl(wb))),_b={Single:"Single",Continuous:"Continuous",Facing:"Facing",FacingContinuous:"FacingContinuous",FacingCover:"CoverFacing",FacingCoverContinuous:"Cover"},Eb={FitPage:"FitPage",FitWidth:"FitWidth",Zoom:"Zoom"};function xb(e){return(xb="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)}var Cb=function(e,t){var n=xb(t),o=Tb().split("&").reduce(function(e,t){var n=t.split("=");return e[decodeURIComponent(n[0])]=decodeURIComponent(n[1]),e},{});if("boolean"===n&&!Ob(o[e])){var r=o[e];if("true"===r||"1"===r)return!0;if("false"===r||"0"===r)return!1}return o[e]||t},Tb=function(){var e=window.location.href,t=e.indexOf("#");return t>=0?e.substring(t+1):""},Ob=function(e){return void 0===e},Pb=function(e){return function(t){e.dispatch(Ii.addSearchListener(t))}},kb=function(e){return function(t){t.name?(!function(e){var t=e.name,n=e.getSortedNotes,o=e.shouldRenderSeparator,r=e.getSeparatorContent;dh[t]={getSortedNotes:n,shouldRenderSeparator:o,getSeparatorContent:r}}(t),e.dispatch(Ii.setSortStrategy(t.name))):console.warn('The argument for addSortStrategy must have a "name" property, see https://www.pdftron.com/documentation/web/guides/ui/apis#addsortstrategy')}},Ab=function(e){var t=e.dispatch;return function(){return Bi.closeDocument(t)}},Rb=function(e){return function(t){e.dispatch(Ii.closeElement(t))}},Mb=function(e){return function(t){e.dispatch(Ii.closeElements(t))}},Db=function(e){var t=["textUnderlineToolButton","textHighlightToolButton","textSquigglyToolButton","textStrikeoutToolButton","annotationCommentButton","toolsButton"],n=Bi.getToolModeMap();return Object.keys(n).forEach(function(o){var r=n[o];if(r instanceof window.Tools.GenericAnnotationCreateTool||r instanceof window.Tools.TextAnnotationCreateTool||r.defaults){var i=e.viewer.toolButtonObjects[r.name];if(i){var a=i.dataElement;t.push(a)}}}),t};function Lb(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")}()}var jb=function(e){return function(){var t=["notesPanel","notesPanelButton"].concat(Lb(Db(e.getState())));wa().forEach(function(e){Bi.getTool(e).disabled=!0}),e.dispatch(Ii.disableElements(t,1)),Bi.hideAnnotations(Bi.getAnnotationsList())}},Nb=function(e){return function(t){Array.isArray(t)||(t=[t]),e.dispatch({type:"DISABLE_FEATURES",payload:t});var n=[];t.forEach(function(e){"download"===e&&(n=n.concat(["downloadButton"])),"copyText"===e&&(n=n.concat(["copyTextButton"]))}),e.dispatch(Ii.disableElements(n,1))}},zb=function(e){return function(){Nb(e)(["download"])}},Ib=function(e){return function(t){e.dispatch(Ii.disableElement(t,3))}},Fb=function(e){return function(t){"string"==typeof t&&e.dispatch(Ii.disableElement(t,3)),e.dispatch(Ii.disableElements(t,3))}},Bb=function(e){return function(){e.dispatch(Ii.disableElements(["filePickerHandler","filePickerButton"],1))}};function Ub(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Wb=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.localStorageEnabled=!0}var t,n,o;return t=e,(n=[{key:"enableLocalStorage",value:function(){this.localStorageEnabled=!0}},{key:"disableLocalStorage",value:function(){this.localStorageEnabled=!1}},{key:"isLocalStorageEnabled",value:function(){return this.localStorageEnabled}}])&&Ub(t.prototype,n),o&&Ub(t,o),e}()),Hb=function(){Wb.disableLocalStorage()},Vb=function(e){return function(){e.dispatch(Ii.disableElements(["measurementToolGroupButton","measurementOverlay","distanceMeasurementToolButton","perimeterMeasurementToolButton","areaMeasurementToolButton"],1));["AnnotationCreateDistanceMeasurement","AnnotationCreatePerimeterMeasurement","AnnotationCreateAreaMeasurement"].forEach(function(e){Bi.getTool(e).disabled=!0}),Bi.setToolMode("AnnotationEdit")}},Gb=function(e){return function(){e.dispatch(Ii.disableElements(["annotationCommentButton","notesPanelButton","notesPanel"],2)),e.dispatch(Ii.setActiveLeftPanel("thumbnailsPanel"))}},qb=function(e){return function(){e.dispatch(Ii.disableElements(["printButton","printModal"],1))}},$b=function(e){return function(){e.dispatch(Ii.disableElement("redactionButton",1)),Bi.enableRedaction(!1),Bi.setToolMode("AnnotationEdit")}},Yb=function(e){return function(){Bi.clearSelection(),Bi.setToolMode(Oa),e.dispatch(Ii.closeElement("textPopup")),e.dispatch(Ii.disableElements(["textPopup","textSelectButton"],1)),window.Tools.Tool.ENABLE_TEXT_SELECTION=!1}},Kb=function(e){return function(t){var n=hr.getToolButtonDataElement(e.getState(),t);Bi.getTool(t).disabled=!0,e.dispatch(Ii.disableElement(n,1))}},Zb=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa(),n="string"==typeof t?[t]:t,o=hr.getToolButtonDataElements(e.getState(),n);n.forEach(function(e){Bi.getTool(e).disabled=!0}),e.dispatch(Ii.disableElements(o,1))}},Qb=function(){$u.enableTouchScrollLock=!1},Xb=function(e){return function(t){var n=e.getState();if(hr.isFeatureDisabled(n,"download"))console.warn("Download has been disabled.");else{var o=hr.getDocumentType(n);o===jn||o===Nn||o===zn?ms(e.dispatch,{documentPath:hr.getDocumentPath(n),filename:n.document.filename,includeAnnotations:t}):console.warn("Document type is not PDF. Cannot be downloaded.")}}},Jb=function(e){return function(){e.dispatch(Ii.enableAllElements())}};function ew(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")}()}var tw=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=["notesPanel","notesPanelButton"].concat(ew(Db(e.getState())));t?(wa().forEach(function(e){Bi.getTool(e).disabled=!1}),e.dispatch(Ii.enableElements(n,1)),Bi.showAnnotations(Bi.getAnnotationsList())):(console.warn("enableAnnotations(false) is deprecated, please use disableAnnotations() instead"),jb(e)())}},nw=function(e){return function(t){Array.isArray(t)||(t=[t]),e.dispatch({type:"ENABLE_FEATURES",payload:t});var n=[];t.forEach(function(e){"download"===e&&(n=n.concat(["downloadButton"])),"copyText"===e&&(n=n.concat(["copyTextButton"]))}),e.dispatch(Ii.enableElements(n,1))}},ow=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?nw(e)(["download"]):(console.warn("enableDownload(false) is deprecated, please use disableDownload() instead"),Nb(e)(["download"]))}},rw=function(e){return function(t){e.dispatch(Ii.enableElement(t,3))}},iw=function(e){return function(t){return"string"==typeof t?e.dispatch(Ii.enableElement(t,3)):e.dispatch(Ii.enableElements(t,3))}},aw=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?e.dispatch(Ii.enableElements(["filePickerHandler","filePickerButton"],1)):(console.warn("enableFilePicker(false) is deprecated, please use disableFilePicker() instead"),Bb(e)())}},lw=function(){Wb.enableLocalStorage()},sw=function(e){return function(){e.dispatch(Ii.enableElements(["measurementToolGroupButton","measurementOverlay","distanceMeasurementToolButton","perimeterMeasurementToolButton","areaMeasurementToolButton"],1));["AnnotationCreateDistanceMeasurement","AnnotationCreatePerimeterMeasurement","AnnotationCreateAreaMeasurement"].forEach(function(e){Bi.getTool(e).disabled=!1})}},uw=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(e.dispatch(Ii.enableElements(["annotationCommentButton","notesPanelButton","notesPanel"],2)),e.dispatch(Ii.setActiveLeftPanel("notesPanel"))):(console.warn("enableNotesPanel(false) is deprecated, please use disableNotesPanel() instead"),Gb(e)())}},cw=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=["printButton","printModal"];t?e.dispatch(Ii.enableElements(n,1)):(console.warn("enablePrint(false) is deprecated, please use disablePrint() instead"),qb(e)())}},fw=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(e.dispatch(Ii.enableElement("redactionButton",1)),Bi.enableRedaction(!0),Bi.isFullPDFEnabled()||console.warn("Full api is not enabled, applying redactions is disabled")):$b(e)()}},dw=function(e){return function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?e.dispatch(Ii.enableElements(["textPopup","textSelectButton"],1)):(console.warn("enableTextSelection(false) is deprecated, please use disableTextSelection() instead"),Yb(e)()),window.Tools.Tool.ENABLE_TEXT_SELECTION=t}},pw=function(e){return function(t){var n=hr.getToolButtonDataElement(e.getState(),t);Bi.getTool(t).disabled=!1,e.dispatch(Ii.enableElement(n,1))}},hw=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa(),n="string"==typeof t?[t]:t,o=hr.getToolButtonDataElements(e.getState(),n);n.forEach(function(e){Bi.getTool(e).disabled=!1}),e.dispatch(Ii.enableElements(o,1))}},mw=function(){$u.enableTouchScrollLock=!0},vw=function(e){return function(t){var n=e.getState(),o=Bi.getAnnotationById(t);hr.isElementOpen(n,"leftPanel")?(Bi.isAnnotationSelected(o)||Bi.selectAnnotation(o),e.dispatch(Ii.setActiveLeftPanel("notesPanel")),e.dispatch(Ii.triggerNoteEditing())):(e.dispatch(Ii.openElement("notesPanel")),setTimeout(function(){Bi.isAnnotationSelected(o)||Bi.selectAnnotation(o),e.dispatch(Ii.triggerNoteEditing())},400))}},gw=function(){return Bi.getCurrentUser()},yw=function(e){return function(){if(!window.bbAnnotManager){var t=e.getState().advanced.pdftronServer;window.bbAnnotManager=new window.CoreControls.BlackBoxAnnotationManager(t,window.docViewer)}return window.bbAnnotManager}},bw=function(e){return function(){return hr.getCurrentPage(e.getState())}},ww=function(e){return function(){return hr.getFitMode(e.getState())}},Sw=function(e){return function(){return hr.getDisplayMode(e.getState())}},_w=function(e){return function(){return hr.getTotalPages(e.getState())}},Ew=function(e){return xw(e)},xw=function(e){return Object.keys(hr).reduce(function(t,n){return t[n]=function(){for(var t=e.getState(),o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return hr[n].apply(hr,[t].concat(r))},t},{})},Cw=function(e){return function(){return!!hr.isElementOpen(e.getState(),"leftPanel")}},Tw=function(e){return function(){return Cw(e)()}},Ow=function(){return Bi.getToolMode()},Pw=function(e){return function(){return hr.getZoom(e.getState())}},kw=function(){Bi.setCurrentPage(1)},Aw=function(e){return function(){Bi.setCurrentPage(hr.getTotalPages(e.getState()))}},Rw=function(e){return function(){var t=e.getState(),n=hr.getCurrentPage(t);if(n===hr.getTotalPages(t))console.warn("you are at the last page");else{var o=n+1;Bi.setCurrentPage(o)}}},Mw=function(e){return function(){var t=hr.getCurrentPage(e.getState());if(1===t)console.warn("You are at the first page");else{var n=t-1;Bi.setCurrentPage(n)}}},Dw=function(){return!!Bi.getIsAdminUser()},Lw=function(e){return function(t){return!!hr.isElementDisabled(e.getState(),t)}},jw=function(e){return function(t){return!!hr.isElementOpen(e.getState(),t)}},Nw=function(){return!(zw()||!(0===Iw()&&navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Touch/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/Silk/i)))},zw=function(){var e=navigator.userAgent.toLowerCase(),t=/(msie) ([\w.]+)/.exec(e)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(e);return t?parseInt(t[2],10):t},Iw=function(){var e=document.createElement("div");e.style.cssText="width:100px;height:100px;overflow:scroll !important;position:absolute;top:-9999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},Fw=function(){return!!Bi.getIsReadOnly()},Bw=function(e){return!!Bi.getTool(e).disabled};function Uw(e){return(Uw="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)}var Ww=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.documentId,r=void 0===o?null:o,i=n.streaming,a=void 0!==i&&i,l=n.filename,s=void 0===l?null:l,u=n.extension,c=void 0===u?null:u,f=n.decrypt,d=void 0===f?null:f,p=n.decryptOptions,h=void 0===p?{}:p,m=n.customHeaders,v=void 0===m?{}:m,g=n.withCredentials,y=void 0!==g&&g,b=n.cacheKey,w=void 0===b?null:b,S=n.password,_=void 0===S?"":S;e.dispatch(Ii.setDocumentId(r)),e.dispatch(Ii.setStreaming(a)),e.dispatch(Ii.setDecryptFunction(d)),e.dispatch(Ii.setDecryptOptions(h)),e.dispatch(Ii.setFilename(s)),e.dispatch(Ii.setExtension(c)),e.dispatch(Ii.setCustomHeaders(v)),e.dispatch(Ii.setWithCredentials(y)),e.dispatch(Ii.setPassword(_)),e.dispatch(Ii.setCacheKey(w)),window.CoreControls.isFullPDFEnabled()&&t instanceof window.PDFNet.PDFDoc?e.dispatch(Ii.setPDFDoc(t)):"object"===Uw(t)?e.dispatch(Ii.setDocumentFile(t)):e.dispatch(Ii.setDocumentPath(t)),Nu(e.getState(),e.dispatch)}},Hw=function(e){return function(t){e.dispatch(Ii.openElement(t))}},Vw=function(e){return function(t){e.dispatch(Ii.openElements(t))}},Gw=function(e){return function(){cs(e.dispatch,hr.isEmbedPrintSupported(e.getState()))}},qw=function(e){return function(t,n){Yw(t),$w(e,t),function(e,t){var n=e.toolName,o=e.buttonImage,r=e.toolObject,i=n,a=["TextColor","StrokeColor","FillColor"].filter(function(e){return r.defaults&&r.defaults[e]});ma[i]={icon:o,iconColor:a[0],currentPalette:a[0],availablePalettes:a,toolNames:[n],annotationCheck:t?function(e){return e instanceof t}:null}}(t,n),Kw(e)}},$w=function(e,t){e.dispatch(Ii.registerTool(t))},Yw=function(e){var t=e.toolObject,n=e.toolName,o=Bi.getToolModeMap();o[n]=t,o[n].name=n},Kw=function(e){e.dispatch(Ii.setColorMap(ya("iconColor","currentPalette")))},Zw=function(e){return function(t){e.dispatch(Ii.removeSearchListener(t))}},Qw=function(){Bi.rotateClockwise()},Xw=function(){Bi.rotateCounterClockwise()};function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jw(n,!0).forEach(function(t){tS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nS=function(e){return function(){return new Promise(function(t,n){var o=e.getState(),r=o.document.id,i=o.advanced,a=i.serverUrl,l=i.serverUrlHeaders,s=r?{did:r}:{};if(!a)return console.warn("serverUrl option is not defined. Please pass this option in WebViewer constructor to save/load annotations. See https://www.pdftron.com/documentation/web/guides/annotations/saving-loading-annotations for details."),void n();$.ajax({type:"POST",url:a,headers:l,data:eS({},s,{data:Bi.exportAnnotations()}),success:function(){t()},error:function(e){n(e)}})})}},oS=function(e){return function(t,n){var o={};"string"==typeof n?n.split(",").forEach(function(e){o[rS(e)]=!0}):o=n;e.dispatch(Ii.searchText(t,o))}},rS=function(e){return"".concat(e.charAt(0).toLowerCase()).concat(e.slice(1))},iS=function(e){return function(t,n){e.dispatch(Ii.searchTextFull(t,n))}},aS=function(e){return function(t){e.dispatch(Ii.setActiveHeaderGroup(t))}},lS=function(e){return function(t){e.dispatch(Ii.setActiveLeftPanel(t))}},sS=function(e){Bi.setIsAdminUser(e)},uS=function(e){Bi.setCurrentUser(e)},cS={border:"StrokeColor",fill:"FillColor",text:"TextColor"},fS={StrokeColor:"border",FillColor:"fill",TextColor:"text"},dS=function(e){return function(t,n){var o=ba(va(t)).availablePalettes,r=cS[n];o.includes(r)?e.dispatch(Ii.setColorPalette(va(t),r)):console.warn("".concat(t," does not have ").concat(n," color, available colors are: ").concat(o.map(function(e){return fS[e]}).join(", ")," "))}},pS=function(e){Bi.setCurrentPage(e)},hS=function(e){return function(t){e.dispatch(Ii.setCursorOverlay(t))}},mS=function(e){return function(t){e.dispatch(Ii.setCustomNoteFilter(t))}},vS=function(e){return function(t){e.dispatch(Ii.setCustomPanel(t))}},gS=function(e){return function(t){e.dispatch(Ii.setEngineType(t))}};function yS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bS=function(e){var t,n=(yS(t={},Eb.FitWidth,Bi.fitToWidth),yS(t,Eb.FitPage,Bi.fitToPage),yS(t,Eb.Zoom,Bi.fitToZoom),t)[e];n?n():console.warn("Unsupported fit mode: ".concat(e))};function wS(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")}()}var SS=function(e){return function(t){var n=e.getState(),o=Object.keys(n.viewer.headers),r=Object.create(_S).initialize(n.viewer,o);t(r),o.forEach(function(t){e.dispatch(Ii.setHeaderItems(t,wS(r.headers[t])))})}},_S={initialize:function(e){return this.headers=e.headers,this.toolButtonObjects=e.toolButtonObjects,this.headerGroup="default",this.index=-1,this},get:function(e){var t=this;if(-1!==this.index){var n=this.headers[this.headerGroup][this.index];Object.keys(n).forEach(function(e){delete t[e]})}if(this._setIndex(e),-1===this.index)console.warn("".concat(e," does not exist in ").concat(this.headerGroup," header"));else{var o=this.headers[this.headerGroup][this.index];Object.keys(o).forEach(function(e){t[e]=o[e]})}return this},getItems:function(){return this.headers[this.headerGroup]},getHeader:function(e){var t=Object.keys(this.headers);return t.includes(e)?(this.headerGroup=e,this._resetIndex()):console.warn("Header must be one of: ".concat(t.join(" or "),".")),this},insertBefore:function(e){return-1===this.index?console.warn("Please use .get(dataElement) first before using insertBefore"):this.headers[this.headerGroup].splice(this.index,0,e),this},insertAfter:function(e){return-1===this.index?console.warn("Please use .get(dataElement) first before using insertAfter"):(this.index++,this.headers[this.headerGroup].splice(this.index,0,e)),this},delete:function(e){var t,n=this;"number"==typeof e?t=e:"string"==typeof e?-1===this._getIndexOfElement(e)?console.warn("".concat(e," does not exist in ").concat(this.headerGroup," header")):t=this._getIndexOfElement(e):void 0===e?-1===this.index?console.warn("Please use .get(dataElement) first before using delete()"):t=this.index:Array.isArray(e)?e.forEach(function(e){"number"!=typeof e&&"string"!=typeof e||n.delete(e)}):console.warn("Argument must be empty, a number, a string or an array"),t&&(this.headers[this.headerGroup].splice(t,1),this._resetIndex())},shift:function(){return this.headers[this.headerGroup].shift(),this},unshift:function(){var e;return(e=this.headers[this.headerGroup]).unshift.apply(e,arguments),this},push:function(){var e;return(e=this.headers[this.headerGroup]).push.apply(e,arguments),this},pop:function(){return this.headers[this.headerGroup].pop(),this},update:function(e){return Array.isArray(e)?this._updateItems(e):console.warn("Argument must be an array"),this},_updateItems:function(e){return this.headers[this.headerGroup]=e,this},_setIndex:function(e){this.index=this._getIndexOfElement(e)},_getIndexOfElement:function(e){var t=this;return this.headers[this.headerGroup].findIndex(function(n){return("toolButton"===n.type?t.toolButtonObjects[n.toolName].dataElement:n.dataElement)===e})},_resetIndex:function(){this.index=-1}},ES=function(e){return function(t,n){var o=ba(va(t)).availablePalettes,r=cS[n];o.includes(r)?e.dispatch(Ii.setIconColor(va(t),r)):console.warn("".concat(t," does not have ").concat(n," color, available colors are: ").concat(o.map(function(e){return fS[e]}).join(", ")," "))}},xS=function(e){It.changeLanguage(e)},CS=function(e){Bi.setDisplayMode(e)},TS=function(e){var t;"string"==typeof e?(t=Number.parseFloat(e)/100,e.indexOf("%")===e.length-1&&console.warn("Zoom level in string format will be treated as percentage, ".concat(e," will be converted to ").concat(t))):"number"==typeof e&&(t=e);return t},OS=function(e){return function(t){t=TS(t);var n=hr.getZoomList(e.getState()).filter(function(e){return e<=t});if(t){fn(t),e.dispatch(Ii.setZoomList(n));try{window.Tools.MarqueeZoomTool.setMaxZoomLevel(t)}catch(e){console.warn("Tools.MarqueeZoomTool.setMaxZoomLevel is not a function. To fix this issue, download the latest package from http://www.pdftron.com/downloads/WebViewer.zip and replace your CoreControls.js with the one in the package")}}else console.warn("Type of the argument for setMaxZoomLevel must be either string or number")}},PS=function(e){return function(t){t=TS(t);var n=hr.getZoomList(e.getState()).filter(function(e){return e>=t});if(t){cn(t),e.dispatch(Ii.setZoomList(n));try{window.Tools.MarqueeZoomTool.setMinZoomLevel(t)}catch(e){console.warn("Tools.MarqueeZoomTool.setMinZoomLevel is not a function. To fix this issue, download the latest package from http://www.pdftron.com/downloads/WebViewer.zip and replace your CoreControls.js with the one in the package")}}else console.warn("Type of the argument for setMinZoomLevel must be either string or number")}},kS=function(e){return function(t){e.dispatch(Ii.setNoteDateFormat(t))}},AS=function(e){return function(t){kb(e)(t),console.warn("setNotesPanelSort is deprecated, please use addSortStrategy instead")}},RS=function(e){return function(t){e.dispatch(Ii.setPageLabels(t))}},MS=function(e){return function(t){e.dispatch(Ii.setPrintQuality(t))}},DS=function(e){Bi.setReadOnly(e)},LS=function(e){return function(t){t?e.dispatch(Ii.openElement("leftPanel")):e.dispatch(Ii.closeElement("leftPanel"))}},jS=function(e){return function(t){LS(e)(t)}},NS=function(e){return function(t){e.dispatch(Ii.setSortNotesBy(t))}},zS=function(e){return function(t){e.dispatch(Ii.setSortStrategy(t))}},IS=function(e){"both"===e?($u.allowVerticalSwipe=!0,$u.allowHorizontalSwipe=!0):"vertical"===e?($u.allowVerticalSwipe=!0,$u.allowHorizontalSwipe=!1):"horizontal"===e?($u.allowVerticalSwipe=!1,$u.allowHorizontalSwipe=!0):console.warn("".concat(e," is not a valid orientation. Try 'vertical,' 'horizontal,' or 'both."))};function FS(e){return(FS="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)}var BS=function(e){var t="string"==typeof e,n="object"===FS(e);t?US(e):n&&WS(e)},US=function(e){var t={default:{primary:"#FFFFFF",secondary:"#F5F5F5",border:"#E0E0E0",buttonHover:"#F6F6F6",buttonActive:"#F0F0F0",text:"#333333",icon:"#757575",iconActive:"#757575"},dark:{primary:"#2C2B3A",secondary:"#4D4C5F",border:"#555555",buttonHover:"#686880",buttonActive:"#686880",text:"#FFFFFF",icon:"#FFFFFF",iconActive:"#FFFFFF"}};t[e]?WS(t[e]):console.warn("".concat(e," is not one of: default, dark"))},WS=function(e){var t={primary:"--primary-color",secondary:"--secondary-color",border:"--border-color",buttonHover:"--button-hover-color",buttonActive:"--button-active-color",text:"--text-color",icon:"--icon-color",iconActive:"--icon-active-color"};Object.keys(e).forEach(function(n){var o=t[n];if(o){var r=e[n];document.body.style.setProperty(o,r)}else console.warn("".concat(n," is not valid, please make sure properties are a subset of:")),console.warn("primary, secondary, text, buttonHover, buttonActive and icon")})},HS=function(e){return function(t){var n=e.getState().viewer.toolButtonObjects[t].group;Bi.setToolMode(t),VS(e,n)}},VS=function(e,t){t?(e.dispatch(Ii.setActiveToolGroup(t)),e.dispatch(Ii.openElement("toolsOverlay"))):(e.dispatch(Ii.setActiveToolGroup("")),e.dispatch(Ii.closeElement("toolsOverlay")))},GS=function(e){(e=TS(e))?Bi.zoomTo(e):console.warn("Type of the argument for setZoomLevel must be either string or number")},qS=function(e){return function(t){e.dispatch(Ii.setZoomList(t))}},$S=function(e){return function(t){e.dispatch(Ii.showErrorMessage(t))}},YS=function(e){return function(t){e.dispatch(Ii.showWarningMessage(t))}},KS=function(e){return function(t){e.dispatch(Ii.toggleElement(t))}},ZS=function(){ps()},QS=function(e){return function(t){XS(e,t),JS(e,t),e_(t)}},XS=function(e,t){var n=e.getState();Object.keys(n.viewer.headers).forEach(function(o){var r=n.viewer.headers[o].filter(function(e){return e.toolName!==t});e.dispatch(Ii.setHeaderItems(o,r))})},JS=function(e,t){e.dispatch(Ii.unregisterTool(t))},e_=function(e){delete Bi.getToolModeMap()[e]},t_=function(e){return function(){Bi.getOutlines(function(t){e.dispatch(Ii.setOutlines(t))})}},n_=function(e){return function(t,n){e.dispatch({type:"UPDATE_TOOL",payload:{toolName:t,properties:n}})}},o_=function(e){return function(t){e.dispatch(Ii.useEmbeddedPrint(t))}},r_=function(e){return function(t){var n=t.from,o=t.to,r=e.getState().viewer.measurementUnits;n||(n=r.from),o||(o=r.to),e.dispatch({type:"SET_MEASUREMENT_UNITS",payload:{from:n,to:o}})}},i_=function(e){return function(t){e.dispatch(Ii.setMaxSignaturesCount(t))}},a_=(n(599),{removeEventHandlers:x.a.func.isRequired}),l_=function(e){var t=e.removeEventHandlers,n=_e();return Object(a.useEffect)(function(){return function(e){window.readerControl={docViewer:window.docViewer,FitMode:Eb,LayoutMode:_b,loadedFromServer:!1,serverFailed:!1,i18n:It,constants:{engineTypes:Ln},addSearchListener:Pb(e),addSortStrategy:kb(e),closeDocument:Ab(e),closeElement:Rb(e),closeElements:Mb(e),disableAnnotations:jb(e),disableDownload:zb(e),disableElement:Ib(e),disableElements:Fb(e),disableFeatures:Nb(e),disableFilePicker:Bb(e),disableLocalStorage:Hb,disableMeasurement:Vb(e),disableNotesPanel:Gb(e),disablePrint:qb(e),disableRedaction:$b(e),disableTextSelection:Yb(e),disableTool:Kb(e),disableTools:Zb(e),disableTouchScrollLock:Qb,downloadPdf:Xb(e),enableAllElements:Jb(e),enableAnnotations:tw(e),enableDownload:ow(e),enableElement:rw(e),enableElements:iw(e),enableFeatures:nw(e),enableFilePicker:aw(e),enableLocalStorage:lw,enableMeasurement:sw(e),enableNotesPanel:uw(e),enablePrint:cw(e),enableRedaction:fw(e),enableTextSelection:dw(e),enableTool:pw(e),enableTools:hw(e),enableTouchScrollLock:mw,focusNote:vw(e),getAnnotationUser:gw,getBBAnnotManager:yw(e),getCurrentPageNumber:bw(e),getFitMode:ww(e),getLayoutMode:Sw(e),getPageCount:_w(e),getShowSideWindow:Tw(e),getSideWindowVisibility:Cw(e),getToolMode:Ow,getZoomLevel:Pw(e),goToFirstPage:kw,goToLastPage:Aw(e),goToNextPage:Rw(e),goToPrevPage:Mw(e),isAdminUser:Dw,isElementDisabled:Lw(e),isElementOpen:jw(e),isMobileDevice:Nw,isReadOnly:Fw,isToolDisabled:Bw,loadDocument:Ww(e),openElement:Hw(e),openElements:Vw(e),print:Gw(e),registerTool:qw(e),removeSearchListener:Zw(e),rotateClockwise:Qw,rotateCounterClockwise:Xw,saveAnnotations:nS(e),searchText:oS(e),searchTextFull:iS(e),selectors:Ew(e),setActiveHeaderGroup:aS(e),setActiveLeftPanel:lS(e),setAdminUser:sS,setAnnotationUser:uS,setColorPalette:dS(e),setCurrentPageNumber:pS,setCursorOverlay:hS(e),setCustomNoteFilter:mS(e),setCustomPanel:vS(e),setEngineType:gS(e),setFitMode:bS,setHeaderItems:SS(e),setIconColor:ES(e),setLanguage:xS,setLayoutMode:CS,setMaxZoomLevel:OS(e),setMinZoomLevel:PS(e),setNoteDateFormat:kS(e),setNotesPanelSort:AS(e),setMeasurementUnits:r_(e),setPageLabels:RS(e),setPrintQuality:MS(e),setReadOnly:DS,setShowSideWindow:jS(e),setSideWindowVisibility:LS(e),setSortNotesBy:NS(e),setSortStrategy:zS(e),setSwipeOrientation:IS,setTheme:BS,setToolMode:HS(e),setZoomLevel:GS,setZoomList:qS(e),showErrorMessage:$S(e),showWarningMessage:YS(e),toggleElement:KS(e),toggleFullScreen:ZS,unregisterTool:QS(e),updateOutlines:t_(e),updateTool:n_(e),useEmbeddedPrint:o_(e),setMaxSignaturesCount:i_(e),getCustomData:function(){return Cb("custom",null)}}}(n),window.ControlUtils={getCustomData:function(){return console.warn("ControlUtils.getCustomData is deprecated, use instance.getCustomData instead"),window.readerControl.getCustomData()}},$(document).trigger("viewerLoaded"),t},[t,n]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"App"},l.a.createElement(hl,null),l.a.createElement(am,null),l.a.createElement(_m,null),l.a.createElement(tc,null),l.a.createElement(us,null),l.a.createElement(Yl,null),l.a.createElement(Ls,null),l.a.createElement(Es,null),l.a.createElement(Zs,null),l.a.createElement(lu,null),l.a.createElement(mu,null),l.a.createElement(Ws,null),l.a.createElement(Sb,null),l.a.createElement(xu,null),l.a.createElement(fg,null),l.a.createElement(Cg,null),l.a.createElement(Lg,null),l.a.createElement(Wg,null),l.a.createElement(Zg,null),l.a.createElement(ly,null),l.a.createElement(hy,null),l.a.createElement(vy,null),l.a.createElement(xy,null),l.a.createElement(My,null),l.a.createElement(Fy,null)),l.a.createElement(ab,null),l.a.createElement($y,null),l.a.createElement(Jy,null))};l_.propTypes=a_;var s_=Object(Ui.hot)(l_),u_=function(e,t){return new Promise(function(n){if(!e)return n();var o=document.createElement("script");o.type="text/javascript",o.onload=function(){n()},o.onerror=function(){t&&console.warn(t),n()},o.src=e,document.getElementsByTagName("head")[0].appendChild(o)})},c_=u_,f_=function(e){var t=e.map(function(e){return new Promise(function(t,n){var o="".concat(window.CoreControls.getWorkerPath(),"assets/mime-types/test.").concat(e);fetch(o).then(function(o){404===o.status?n(e):t()})})});return Promise.all(t)},d_=function(e){var t,n;n=e,-1!==Ru.indexOf(n)&&(t="Failed to find Office worker files. This project is not set up to work with Office files."),function(e){return-1!==Au.indexOf(e)}(e)&&(t="Failed to find PDF worker files. This project is not set up to work with PDF files."),on(t),console.error(t)},p_=function(e){on("Your server does not have a MIME type set for extension ".concat(e,". Open developer console to see the link for correct MIME type setup")),console.error("Your server does not have a MIME type set for extension ".concat(e,". Please see https://www.pdftron.com/documentation/web/guides/basics/troubleshooting-document-loading/#mime-types for more information."))},h_=function(e){return new Array(e).fill().map(function(e,t){return"".concat(t+1)})},m_=!0,v_=function(e,t){try{localStorage.setItem("toolData-".concat(e),JSON.stringify(t))}catch(e){console.warn("localStorage could not be accessed. ".concat(e.message))}},g_=function(e){e.forEach(function(e){Bi.deleteAnnotations(e.getReplies())})},y_=function(){var e=document.activeElement;return e instanceof window.HTMLInputElement||e instanceof window.HTMLTextAreaElement};function b_(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")}()}var w_=function(e){var t=e.dispatch,n=function(e){return function(){e(Ii.closeElement("passwordModal"));var t=Bi.getTotalPages();Qt?(window.CoreControls.SetCachingLevel(8),window.CoreControls.SetPreRenderLevel(2)):t>500&&Bi.setDisplayMode(window.CoreControls.DisplayModes.Single),e(Ii.setPageLabels(h_(t))),e(Ii.setTotalPages(t));var n=Bi.getCurrentPage();e(Ii.setCurrentPage(n))}}(t),o=function(e){return function(){e(Ii.closeElements(["annotationPopup","textPopup","contextMenuPopup"])),e(Ii.setDisplayMode(Bi.getDisplayMode())),$(document).trigger("layoutModeChanged",[window.docViewer.getDisplayModeManager().getDisplayMode()])}}(t),r=function(e){return function(){e(Ii.setDocumentLoaded(!0)),e(Ii.openElement("pageNavOverlay")),e(Ii.setDocumentLoadingProgress(1)),e(Ii.setWorkerLoadingProgress(1)),setTimeout(function(){e(Ii.closeElement("progressModal")),e(Ii.resetLoadingProgress()),e(Ii.resetUploadProgress()),e(Ii.setIsUploading(!1))},300),m_&&(m_=!1,Bi.enableRedaction(Cb("enableRedaction",!1)||Bi.isCreateRedactionEnabled()),Bi.isCreateRedactionEnabled()?e(Ii.enableElement("redactionButton",1)):e(Ii.disableElement("redactionButton",1))),Bi.setOptions({enableAnnotations:Cb("a",!1)}),Bi.getOutlines(function(t){e(Ii.setOutlines(t))}),window.readerControl.loadedFromServer=!1,window.readerControl.serverFailed=!1,$(document).trigger("documentLoaded")}}(t),i=function(e){return function(){e(Ii.setDocumentLoaded(!1)),e(Ii.closeElements(["pageNavOverlay","searchOverlay","leftPanel"])),e(Ii.setOutlines([])),e(Ii.setTotalPages(0))}}(t),a=function(e){return function(t,n){var o=Bi.getDocumentViewer();n===o.FitMode.Zoom?e(Ii.setFitMode("Zoom")):n===o.FitMode.FitWidth?e(Ii.setFitMode("FitWidth")):n===o.FitMode.FitPage&&(Xt&&Bi.fitToZoom(),e(Ii.setFitMode("FitPage"))),$(document).trigger("fitModeChanged",[n])}}(t),l=function(e){return function(t,n){e(Ii.setRotation(n)),$(document).trigger("rotationChanged",[n])}}(t),s=function(e){return function(t,n){var o=n.name,r=n.defaults;r&&Wb.isLocalStorageEnabled()&&v_(o,r);var i=Bi.getToolMode();i&&i.name===o&&e(Ii.setActiveToolStyles(r))}}(t),u=function(e){return function(t,n,o){o&&"TextSelect"===o.name&&(Bi.clearSelection(),e(Ii.closeElement("textPopup"))),n&&n.name===Oa&&(e(Ii.setActiveToolGroup("")),e(Ii.closeElement("toolsOverlay"))),e(Ii.setActiveToolNameAndStyle(n)),$(document).trigger("toolModeChanged",[n,o])}}(t),c=function(e){return function(t,n){e(Ii.setZoom(n)),$(document).trigger("zoomChanged",[n])}}(t),f=function(e){return function(t,n){e(Ii.setCurrentPage(n)),$(document).trigger("pageChanged",[n])}}(t),d=function(e){var t=e.dispatch,n=e.getState;return function(){var e=Bi.getIsReadOnly(),o=["annotationPopup"].concat(b_(Db(n())));e?(wa().forEach(function(e){Bi.getTool(e).disabled=!0}),t(Ii.disableElements(o,1)),Bi.setToolMode(Oa)):(wa().forEach(function(e){Bi.getTool(e).disabled=!1}),t(Ii.enableElements(o,1))),t(Ii.setReadOnly(Bi.getIsReadOnly())),t(Ii.setAdminUser(Bi.getIsAdminUser())),t(Ii.setUserName(Bi.getCurrentUser())),Bi.drawAnnotationsFromList(Bi.getSelectedAnnotations())}}(e),p=function(e,t,n){"delete"===n&&g_(t)},h=function(){Bi.setToolMode(Oa)},m=function(e){return function(t,n){Bi.setToolMode(Oa),e(Ii.closeElement("cursorOverlay")),setTimeout(function(){Bi.selectAnnotation(n)},0)}}(t),v=function(e){var t=e.dispatch,n=e.getState;return function(e,o){var r=n(),i=hr.isElementDisabled(r,"notesPanel"),a=hr.isElementOpen(r,"leftPanel");Bi.setToolMode(Oa),i||(a?(Bi.selectAnnotation(o),t(Ii.setActiveLeftPanel("notesPanel")),t(Ii.setIsNoteEditing(!0))):(t(Ii.openElement("notesPanel")),setTimeout(function(){Bi.selectAnnotation(o),t(Ii.setIsNoteEditing(!0))},400)))}}(e),g=function(e){return function(t){var n=e.dispatch,o=(0,e.getState)(),r=Bi.getSelectedText(),i=window.getSelection().toString();if(t.metaKey||t.ctrlKey){if("z"!==t.key&&90!==t.which||(t.shiftKey?window.docViewer.getAnnotationHistoryManager().redo():window.docViewer.getAnnotationHistoryManager().undo()),t.shiftKey)"+"===t.key||"="===t.key||"Add"===t.key||187===t.which?(t.preventDefault(),Bi.rotateClockwise()):"-"!==t.key&&"Subtract"!==t.key&&189!==t.which||(t.preventDefault(),Bi.rotateCounterClockwise());else if("c"===t.key||67===t.which)r&&!hr.isFeatureDisabled(o,"copyText")?(gg(),n(Ii.closeElement("textPopup"))):Bi.getSelectedAnnotations().length>0&&!i&&Bi.updateCopiedAnnotations();else if("v"===t.key||86===t.which)y_()||(t.preventDefault(),Bi.pasteCopiedAnnotations());else if("o"===t.key||79===t.which)t.preventDefault(),ds();else if("f"===t.key||70===t.which)t.preventDefault(),n(Ii.openElement("searchOverlay"));else if("+"===t.key||"="===t.key||"Add"===t.key||187===t.which)t.preventDefault(),Ll();else if("-"===t.key||"Subtract"===t.key||189===t.which)t.preventDefault(),jl();else if("0"===t.key||48===t.which)t.preventDefault(),window.innerWidth>640?Bi.fitToPage():Bi.fitToWidth();else if("P"===t.key||80===t.which){t.preventDefault(),hr.isElementDisabled(o,"printModal")?console.warn("Print has been disabled."):cs(n,hr.isEmbedPrintSupported(o))}}else if("PageUp"===t.key||33===t.which)t.preventDefault(),Bi.getCurrentPage()>1&&Bi.setCurrentPage(Bi.getCurrentPage()-1);else if("PageDown"===t.key||34===t.which)t.preventDefault(),Bi.getCurrentPage()<Bi.getTotalPages()&&Bi.setCurrentPage(Bi.getCurrentPage()+1);else if("Escape"===t.key||27===t.which)t.preventDefault(),Tg(n,"AnnotationEdit",""),n(Ii.closeElements(["annotationPopup","textPopup","contextMenuPopup","toolStylePopup","annotationStylePopup","signatureModal","printModal","searchOverlay"]));else if(r)r&&("g"!==t.key&&71!==t.which||Bi.getTool("AnnotationCreateTextSquiggly").disabled?"h"!==t.key&&72!==t.which||Bi.getTool("AnnotationCreateTextHighlight").disabled?"k"!==t.key&&75!==t.which||Bi.getTool("AnnotationCreateTextStrikeout").disabled?"u"!==t.key&&85!==t.which||Bi.getTool("AnnotationCreateTextUnderline").disabled||dg(n,window.Annotations.TextUnderlineAnnotation):dg(n,window.Annotations.TextStrikeoutAnnotation):dg(n,window.Annotations.TextHighlightAnnotation):dg(n,window.Annotations.TextSquigglyAnnotation));else{if(y_())return;if("p"===t.key||80===t.which)Tg(n,"Pan","");else if(t.which>64&&t.which<91)if("a"===t.key||65===t.which)Tg(n,"AnnotationCreateArrow","shapeTools");else if("c"===t.key||67===t.which)Tg(n,"AnnotationCreateCallout","miscTools");else if("e"===t.key||69===t.which)Tg(n,"AnnotationEraserTool","");else if("f"===t.key||70===t.which)Tg(n,"AnnotationCreateFreeHand","freeHandTools");else if("g"===t.key||71===t.which)Tg(n,"AnnotationCreateTextSquiggly","textTools");else if("h"===t.key||72===t.which)Tg(n,"AnnotationCreateTextHighlight","textTools");else if("i"===t.key||73===t.which)Tg(n,"AnnotationCreateStamp","miscTools");else if("k"===t.key||75===t.which)Tg(n,"AnnotationCreateTextStrikeout","textTools");else if("l"===t.key||76===t.which)Tg(n,"AnnotationCreateLine","shapeTools");else if("n"===t.key||78===t.which)Tg(n,"AnnotationCreateSticky","");else if("o"===t.key||79===t.which)Tg(n,"AnnotationCreateEllipse","shapeTools");else if("r"===t.key||82===t.which)Tg(n,"AnnotationCreateRectangle","shapeTools");else if("s"===t.key||83===t.which){var a=document.querySelector('[data-element="signatureToolButton"]');a&&a.click()}else"t"===t.key||84===t.which?Tg(n,"AnnotationCreateFreeText",""):"u"!==t.key&&85!==t.which||Tg(n,"AnnotationCreateTextUnderline","textTools")}}}(e),y=function(e){var t=e.dispatch,n=e.getState;return function(){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;if(e=!!e,hr.isEmbedPrintSupported(n())&&e){var o=document.getElementById("print-handler");(null==o?void 0:o.src)&&(o.src="")}t(Ii.setFullScreen(e))}}(e),b=function(e){return function(t,n){var o=n.added,r=n.removed;if(o.length||r.length){var i=Bi.getTotalPages();e(Ii.setTotalPages(i)),setTimeout(function(){e(Ii.setPageLabels(h_(i)))},0)}}}(t),w=function(e){return function(){var t=Bi.getTool("AnnotationCreateSignature");if(t.freeHandAnnot&&t.freeHandAnnot.getPaths().length)t.addSignature();else if(document.querySelector('[data-element="signatureToolButton"]'))setTimeout(function(){document.querySelector('[data-element="signatureToolButton"]').click()},0);else{var n=document.querySelector(".default-signature"),o=hr.isElementDisabled(e.getState(),"signatureOverlay");n&&!o?setTimeout(function(){e.dispatch(Ii.openElement("signatureOverlay"))},0):e.dispatch(Ii.openElement("signatureModal"))}}}(e);return{addEventHandlers:function(){Bi.addEventListener("beforeDocumentLoaded",n),Bi.addEventListener("displayModeUpdated",o),Bi.addEventListener("documentLoaded",r),Bi.addEventListener("documentUnloaded",i),Bi.addEventListener("fitModeUpdated",a),Bi.addEventListener("rotationUpdated",l),Bi.addEventListener("toolUpdated",s),Bi.addEventListener("toolModeUpdated",u),Bi.addEventListener("zoomUpdated",c),Bi.addEventListener("pageNumberUpdated",f),Bi.addEventListener("layoutChanged",b),Bi.addEventListener("updateAnnotationPermission",d),Bi.addEventListener("annotationChanged",p),Bi.getTool("AnnotationCreateStamp").on("annotationAdded",h),Bi.getTool("AnnotationCreateSticky").on("annotationAdded",v),Bi.getTool("AnnotationCreateSignature").on("locationSelected",w),Bi.getTool("AnnotationCreateSignature").on("annotationAdded",m),document.addEventListener("keydown",g),document.addEventListener("fullscreenchange",y),document.addEventListener("mozfullscreenchange",y),document.addEventListener("webkitfullscreenchange",y),document.addEventListener("MSFullscreenChange",y)},removeEventHandlers:function(){Bi.removeEventListener("beforeDocumentLoaded",n),Bi.removeEventListener("displayModeUpdated",o),Bi.removeEventListener("documentLoaded",r),Bi.removeEventListener("documentUnloaded",i),Bi.removeEventListener("fitModeUpdated",a),Bi.removeEventListener("rotationUpdated",l),Bi.removeEventListener("toolUpdated",s),Bi.removeEventListener("toolModeUpdated",u),Bi.removeEventListener("zoomUpdated",c),Bi.removeEventListener("pageNumberUpdated",f),Bi.removeEventListener("layoutChanged",b),Bi.removeEventListener("updateAnnotationPermission",d),Bi.removeEventListener("annotationChanged",p),Bi.getTool("AnnotationCreateStamp").off("annotationAdded",h),Bi.getTool("AnnotationCreateSticky").off("annotationAdded",v),Bi.getTool("AnnotationCreateSignature").off("locationSelected",w),document.removeEventListener("keydown",g),document.removeEventListener("fullscreenchange",y),document.removeEventListener("mozfullscreenchange",y),document.removeEventListener("webkitfullscreenchange",y),document.removeEventListener("MSFullscreenChange",y)}}},S_=[],__=S_.forEach,E_=S_.slice;function x_(e){return __.call(E_.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}function C_(e,t){if(t&&"object"===tt(t)){var n="",o=encodeURIComponent;for(var r in t)n+="&"+o(r)+"="+o(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e}function T_(e,t,n,o,r){o&&"object"===tt(o)&&(r||(o._t=new Date),o=C_("",o).slice(1)),t.queryStringParams&&(e=C_(e,t.queryStringParams));try{var i;(i=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o?"POST":"GET",e,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,o&&i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a="function"==typeof a?a():a)for(var l in a)i.setRequestHeader(l,a[l]);i.onreadystatechange=function(){i.readyState>3&&n&&n(i.responseText,i)},i.send(o)}catch(e){console&&console.log(e)}}function O_(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:T_}}var P_=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rt(this,e),this.init(t,n),this.type="backend"}return at(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=x_(t,this.options||{},O_())}},{key:"readMulti",value:function(e,t,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath(e,t));var r=this.services.interpolator.interpolate(o,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(r,n)}},{key:"read",value:function(e,t,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath([e],[t]));var r=this.services.interpolator.interpolate(o,{lng:e,ns:t});this.loadUrl(r,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,function(o,r){if(r.status>=500&&r.status<600)return t("failed loading "+e,!0);if(r.status>=400&&r.status<500)return t("failed loading "+e,!1);var i,a;try{i=n.options.parse(o,e)}catch(t){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,i)})}},{key:"create",value:function(e,t,n,o){var r=this;"string"==typeof e&&(e=[e]);var i={};i[n]=o||"",e.forEach(function(e){var n=r.services.interpolator.interpolate(r.options.addPath,{lng:e,ns:t});r.options.ajax(n,r.options,function(e,t){},i)})}}]),e}();P_.type="backend";var k_=P_;function A_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function R_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M_=function(e){var t={fallbackLng:"en",react:{useSuspense:!1,wait:!0}},n=function(e,t){window.Annotations.Utilities.setAnnotationSubjectHandler(function(e){return t("annotation.".concat(e))}),window.Tools.SignatureCreateTool.setTextHandler(function(){return t("message.signHere")}),window.Tools.FreeTextCreateTool.setTextHandler(function(){return t("message.insertTextHere")})};e.advanced.disableI18n?It.init(t,n):It.use(k_).init(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A_(n,!0).forEach(function(t){R_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A_(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{backend:{loadPath:"./i18n/{{ns}}-{{lng}}.json"}}),n)};function D_(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")}()}var L_=function(e,t){if(e.advanced.defaultDisabledElements){var n=e.advanced.defaultDisabledElements.split(",");t(Ii.disableElements(n,3))}},j_=function(e,t){if(e.viewer.isReadOnly){var n=["annotationPopup"].concat(D_(Db(e)));t(Ii.disableElements(n,1))}},N_=function(e,t){if(!Cb("a",!1)){var n=["notesPanel","notesPanelButton"].concat(D_(Db(e)));t(Ii.disableElements(n,1))}},z_=function(e){if(!Cb("filepicker",!1)){e(Ii.disableElements(["filePickerHandler","filePickerButton"],1))}},I_=function(e){if(Cb("hideAnnotationPanel",!1)){e(Ii.disableElements(["notesPanel","notesPanelButton","annotationCommentButton"],1))}},F_=function(e){!Cb("toolbar",!0)&&e(Ii.disableElement("header",1))},B_=function(e){!Cb("enableMeasurement",!1)&&e(Ii.disableElements(["measurementToolGroupButton","measurementOverlay"],1))},U_=function(e){!(Cb("enableRedaction",!1)||Bi.isCreateRedactionEnabled())&&e(Ii.disableElement("redactionButton",1))},W_=function(e){Jt||e(Ii.disableElement("textSelectButton",3))},H_=function(e){Jt&&e(Ii.disableElement("marqueeToolButton",3))},V_=function(e){var t=Bi.getToolModeMap();t.AnnotationCreateTextHighlight2=new window.Tools.TextHighlightCreateTool(e,"AnnotationCreateTextHighlight2"),t.AnnotationCreateTextHighlight3=new window.Tools.TextHighlightCreateTool(e,"AnnotationCreateTextHighlight3"),t.AnnotationCreateTextHighlight4=new window.Tools.TextHighlightCreateTool(e,"AnnotationCreateTextHighlight4"),t.AnnotationCreateFreeHand2=new window.Tools.FreeHandCreateTool(e,"AnnotationCreateFreeHand2"),t.AnnotationCreateFreeHand3=new window.Tools.FreeHandCreateTool(e,"AnnotationCreateFreeHand3"),t.AnnotationCreateFreeHand4=new window.Tools.FreeHandCreateTool(e,"AnnotationCreateFreeHand4")},G_=function(){var e=Bi.getDocumentViewer();e.DEFAULT_MARGIN=10,V_(e)},q_={AnnotationCreateFreeHand:{StrokeColor:{R:228,G:66,B:52,A:1}},AnnotationCreateFreeHand2:{StrokeColor:{R:0,G:204,B:99,A:1}},AnnotationCreateFreeHand3:{StrokeColor:{R:78,G:125,B:233,A:1}},AnnotationCreateFreeHand4:{StrokeColor:{R:0,G:0,B:0,A:1}},AnnotationCreateTextHighlight:{StrokeColor:{R:255,G:230,B:162,A:1}},AnnotationCreateTextHighlight2:{StrokeColor:{R:146,G:232,B:232,A:1}},AnnotationCreateTextHighlight3:{StrokeColor:{R:128,G:229,B:177,A:1}},AnnotationCreateTextHighlight4:{StrokeColor:{R:241,G:160,B:153,A:1}},AnnotationCreateTextUnderline:{StrokeColor:{R:228,G:66,B:52,A:1}},AnnotationCreateTextSquiggly:{StrokeColor:{R:228,G:66,B:52,A:1}},AnnotationCreateTextStrikeout:{StrokeColor:{R:228,G:66,B:52,A:1}},AnnotationCreateFreeText:{TextColor:{R:228,G:66,B:52,A:1}},AnnotationCreateSticky:{StrokeColor:{R:255,G:230,B:162,A:1}}};function $_(e){return($_="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 Y_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Z_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q_=function(e){return JSON.parse(e,function(e,t){return Object.entries(t).forEach(function(e){var n=Y_(e,2),o=n[0],r=n[1];X_(o)&&"object"===$_(r)&&(t[o]=new window.Annotations.Color(r.R,r.G,r.B,r.A))}),t})},X_=function(e){return["TextColor","StrokeColor","FillColor"].includes(e)},J_=function(){var e=Bi.getToolModeMap();Object.keys(e).forEach(function(t){var n=null;try{n=localStorage.getItem("toolData-".concat(t))}catch(e){console.warn("localStorage could not be accessed. ".concat(e.message))}if(!n&&q_[t]&&(n=JSON.stringify(q_[t])),n){var o=e[t];n=Q_(n),o.setStyles(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K_(n,!0).forEach(function(t){Z_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{},n)})}})},eE=n(217);function tE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n(600);function nE(e){return(nE="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 oE(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rE(e){return(rE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aE(e,t){return(aE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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}var sE=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==nE(t)&&"function"!=typeof t?iE(e):t}(this,rE(t).call(this,e)),lE(iE(n),"onDocumentLoaded",function(){n.setState({value:Math.ceil(100*Bi.getZoom()).toString()})}),lE(iE(n),"onZoomUpdated",function(){n.setState({value:Math.ceil(100*Bi.getZoom()).toString()})}),lE(iE(n),"onKeyPress",function(e){if("Enter"===e.nativeEvent.key||13===e.nativeEvent.keyCode){var t=Math.ceil(100*Bi.getZoom()).toString();if(e.target.value===t)return;""===e.target.value?n.setState({value:t}):Il(Number(e.target.value)/100)}}),lE(iE(n),"onChange",function(e){(/^(\d){0,4}$/.test(e.target.value)||""===e.target.value)&&n.setState({value:e.target.value})}),lE(iE(n),"onBlur",function(e){var t=Math.ceil(100*Bi.getZoom()).toString();e.target.value!==t&&(""===e.target.value||isNaN(Number(e.target.value))?n.setState({value:t}):(n.setState({value:Number(e.target.value).toString()}),Il(e.target.value/100)))}),n.state={value:"100"},n}var n,o,r;return 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&&aE(e,t)}(t,l.a.PureComponent),n=t,(o=[{key:"componentDidMount",value:function(){Bi.addEventListener("documentLoaded",this.onDocumentLoaded),Bi.addEventListener("zoomUpdated",this.onZoomUpdated)}},{key:"componentWillUnmount",value:function(){Bi.removeEventListener("documentLoaded",this.onDocumentLoaded),Bi.removeEventListener("zoomUpdated",this.onZoomUpdated)}},{key:"render",value:function(){var e=this.props,t=e.isActive,n=e.onClick;return l.a.createElement("div",{className:"ToggleElementOverlay"},l.a.createElement("div",{className:["OverlayContainer",t?"active":""].join(" ").trim()},l.a.createElement("div",{className:"OverlayText",onClick:n},l.a.createElement("input",{type:"text",className:"textarea",value:this.state.value,onChange:this.onChange,onKeyPress:this.onKeyPress,onBlur:this.onBlur}),l.a.createElement("span",null,"%")),l.a.createElement(Na,{className:"OverlayButton",img:"ic-triangle",element:"zoomOverlay",dataElement:"zoomOverlay"})))}}])&&oE(n.prototype,o),r&&oE(n,r),t}();lE(sE,"propTypes",{onClick:x.a.func.isRequired,isActive:x.a.bool});var uE,cE=we(function(e){return{isActive:hr.isElementOpen(e,"zoomOverlay")}},function(e){return{onClick:function(){e(Ii.toggleElement("zoomOverlay"))}}})(sE),fE={viewer:{disabledElements:{},disabledFeatures:{},openElements:{header:!0},headers:{default:[{type:"toggleElementButton",img:"ic_left_sidebar_black_24px",element:"leftPanel",dataElement:"leftPanelButton",title:"component.leftPanel"},{type:"divider",hidden:["tablet","mobile"]},{type:"toggleElementButton",img:"ic_viewer_settings_black_24px",element:"viewControlsOverlay",dataElement:"viewControlsButton",title:"component.viewControlsOverlay"},{type:"toolButton",toolName:"Pan"},{type:"toolButton",toolName:"TextSelect"},{type:"toolButton",toolName:"AnnotationEdit",hidden:["tablet","mobile"]},{type:"actionButton",img:"ic_zoom_out_black_24px",onClick:jl,title:"action.zoomOut",dataElement:"zoomOutButton",hidden:["mobile"]},{type:"actionButton",img:"ic_zoom_in_black_24px",onClick:Ll,title:"action.zoomIn",dataElement:"zoomInButton",hidden:["mobile"]},{type:"customElement",render:function(){return l.a.createElement(cE,null)},dataElement:"zoomOverlayButton",hidden:["mobile"],element:"zoomOverlay"},{type:"spacer"},{type:"toolGroupButton",toolGroup:"measurementTools",dataElement:"measurementToolGroupButton",title:"component.measurementToolsButton",hidden:["tablet","mobile"]},{type:"toolGroupButton",toolGroup:"freeHandTools",dataElement:"freeHandToolGroupButton",title:"component.freehandToolsButton",hidden:["tablet","mobile"]},{type:"toolGroupButton",toolGroup:"textTools",dataElement:"textToolGroupButton",title:"component.textToolsButton",hidden:["tablet","mobile"]},{type:"toolGroupButton",toolGroup:"shapeTools",dataElement:"shapeToolGroupButton",title:"component.shapeToolsButton",hidden:["tablet","mobile"]},{type:"toolButton",img:"ic_annotation_eraser_black_24px",toolName:"AnnotationEraserTool",dataElement:"eraserToolButton",title:"annotation.eraser"},{type:"statefulButton",dataElement:"signatureToolButton",hidden:["tablet","mobile"]},{type:"toggleElementButton",toolName:"AnnotationCreateRedaction",className:"redactHeader",dataElement:"redactionButton",element:"redactionOverlay",img:"ic_annotation_add_redact_black_24px",title:"component.redaction",hidden:["tablet","mobile"]},{type:"toolButton",toolName:"AnnotationCreateFreeText",hidden:["tablet","mobile"]},{type:"toolButton",toolName:"AnnotationCreateSticky",hidden:["tablet","mobile"]},{type:"toolGroupButton",toolGroup:"miscTools",img:"ic_more_black_24px",dataElement:"miscToolGroupButton",title:"component.miscToolsButton",hidden:["tablet","mobile"]},{type:"actionButton",img:"ic_edit_black_24px",onClick:function(e){e(Ii.setActiveHeaderGroup("tools")),Bi.setToolMode(Oa),e(Ii.closeElements(["viewControlsOverlay","searchOverlay","menuOverlay","searchPanel","leftPanel","zoomOverlay","redactionOverlay"]))},dataElement:"toolsButton",title:"component.toolsButton",hidden:["desktop"]},{type:"divider",hidden:["tablet","mobile"]},{type:"toggleElementButton",dataElement:"searchButton",element:"searchOverlay",img:"ic_search_black_24px",title:"component.searchOverlay"},{type:"toggleElementButton",dataElement:"menuButton",element:"menuOverlay",img:"ic_overflow_black_24px",title:"component.menuOverlay"}],tools:[{type:"toolGroupButton",toolGroup:"freeHandTools",dataElement:"freeHandToolGroupButton",title:"component.freehandToolsButton"},{type:"toolGroupButton",toolGroup:"textTools",dataElement:"textToolGroupButton",title:"component.textToolsButton"},{type:"toolGroupButton",toolGroup:"shapeTools",dataElement:"shapeToolGroupButton",title:"component.shapeToolsButton"},{type:"statefulButton",dataElement:"signatureToolButton"},{type:"toolGroupButton",toolGroup:"measurementTools",dataElement:"measurementToolGroupButton",title:"component.measurementToolsButton"},{type:"toggleElementButton",toolName:"AnnotationCreateRedaction",className:"redactHeader",dataElement:"redactionButton",element:"redactionOverlay",img:"ic_annotation_add_redact_black_24px",title:"component.redaction"},{type:"toolButton",toolName:"AnnotationCreateFreeText"},{type:"toolButton",toolName:"AnnotationCreateSticky"},{type:"toolGroupButton",toolGroup:"miscTools",img:"ic_more_black_24px",dataElement:"miscToolGroupButton",title:"component.miscToolsButton"},{type:"spacer"},{type:"actionButton",dataElement:"defaultHeaderButton",titile:"action.close",img:"ic_close_black_24px",onClick:function(e){e(Ii.setActiveHeaderGroup("default")),Bi.setToolMode(Oa),e(Ii.closeElements(["viewControlsOverlay","searchOverlay","menuOverlay","searchPanel","leftPanel","redactionOverlay"]))}}]},toolButtonObjects:{AnnotationCreateDistanceMeasurement:{dataElement:"distanceMeasurementToolButton",title:"annotation.distanceMeasurement",img:"ic_annotation_distance_black_24px",group:"measurementTools",showColor:"active"},AnnotationCreatePerimeterMeasurement:{dataElement:"perimeterMeasurementToolButton",title:"annotation.perimeterMeasurement",img:"ic_annotation_perimeter_black_24px",group:"measurementTools",showColor:"active"},AnnotationCreateAreaMeasurement:{dataElement:"areaMeasurementToolButton",title:"annotation.areaMeasurement",img:"ic_annotation_area_black_24px",group:"measurementTools",showColor:"active"},AnnotationCreateFreeHand:{dataElement:"freeHandToolButton",title:"annotation.freehand",img:"ic_annotation_freehand_black_24px",group:"freeHandTools",showColor:"always"},AnnotationCreateFreeHand2:{dataElement:"freeHandToolButton2",title:"annotation.freehand2",img:"ic_annotation_freehand_black_24px",group:"freeHandTools",showColor:"always"},AnnotationCreateFreeHand3:{dataElement:"freeHandToolButton3",title:"annotation.freehand2",img:"ic_annotation_freehand_black_24px",group:"freeHandTools",showColor:"always"},AnnotationCreateFreeHand4:{dataElement:"freeHandToolButton4",title:"annotation.freehand2",img:"ic_annotation_freehand_black_24px",group:"freeHandTools",showColor:"always"},AnnotationCreateTextHighlight:{dataElement:"highlightToolButton",title:"annotation.highlight",img:"ic_annotation_highlight_black_24px",group:"textTools",showColor:"always"},AnnotationCreateTextHighlight2:{dataElement:"highlightToolButton2",title:"annotation.highlight2",img:"ic_annotation_highlight_black_24px",group:"textTools",showColor:"always"},AnnotationCreateTextHighlight3:{dataElement:"highlightToolButton3",title:"annotation.highlight2",img:"ic_annotation_highlight_black_24px",group:"textTools",showColor:"always"},AnnotationCreateTextHighlight4:{dataElement:"highlightToolButton4",title:"annotation.highlight2",img:"ic_annotation_highlight_black_24px",group:"textTools",showColor:"always"},AnnotationCreateTextUnderline:{dataElement:"underlineToolButton",title:"annotation.underline",img:"ic_annotation_underline_black_24px",group:"textTools",showColor:"active"},AnnotationCreateTextSquiggly:{dataElement:"squigglyToolButton",title:"annotation.squiggly",img:"ic_annotation_squiggly_black_24px",group:"textTools",showColor:"active"},AnnotationCreateTextStrikeout:{dataElement:"strikeoutToolButton",title:"annotation.strikeout",img:"ic_annotation_strikeout_black_24px",group:"textTools",showColor:"active"},AnnotationCreateRectangle:{dataElement:"rectangleToolButton",title:"annotation.rectangle",img:"ic_annotation_square_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreateEllipse:{dataElement:"ellipseToolButton",title:"annotation.ellipse",img:"ic_annotation_circle_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreateLine:{dataElement:"lineToolButton",title:"annotation.line",img:"ic_annotation_line_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreateArrow:{dataElement:"arrowToolButton",title:"annotation.arrow",img:"ic_annotation_arrow_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreatePolyline:{dataElement:"polylineToolButton",title:"annotation.polyline",img:"ic_annotation_polyline_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreatePolygon:{dataElement:"polygonToolButton",title:"annotation.polygon",img:"ic_annotation_polygon_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreatePolygonCloud:{dataElement:"cloudToolButton",title:"annotation.polygonCloud",img:"ic_annotation_cloud_black_24px",group:"shapeTools",showColor:"active"},AnnotationCreateRedaction:{dataElement:"redactionButton",title:"option.redaction.markForRedaction",img:"ic_annotation_add_redact_black_24px",showColor:"never"},AnnotationCreateSignature:{dataElement:"signatureToolButton",title:"annotation.signature",img:"ic_annotation_signature_black_24px",showColor:"active"},AnnotationCreateFreeText:{dataElement:"freeTextToolButton",title:"annotation.freetext",img:"ic_annotation_freetext_black_24px",showColor:"active"},AnnotationCreateSticky:{dataElement:"stickyToolButton",title:"annotation.stickyNote",img:"ic_annotation_sticky_note_black_24px",showColor:"active"},AnnotationCreateCallout:{dataElement:"calloutToolButton",title:"annotation.callout",img:"ic_annotation_callout_black_24px",group:"miscTools",showColor:"active"},AnnotationCreateStamp:{dataElement:"stampToolButton",title:"annotation.stamp",img:"ic_annotation_image_black_24px",group:"miscTools",showColor:"active"},Pan:{dataElement:"panToolButton",title:"tool.pan",img:"ic_pan_black_24px",showColor:"never"},AnnotationEdit:{dataElement:"selectToolButton",title:"tool.select",img:"ic_select_black_24px",showColor:"never"},TextSelect:{dataElement:"textSelectButton",img:"textselect_cursor",showColor:"never"},MarqueeZoomTool:{dataElement:"marqueeToolButton",showColor:"never"},AnnotationEraserTool:{dataElement:"eraserToolButton",title:"annotation.eraser",img:"ic_annotation_eraser_black_24px",showColor:"never"}},activeHeaderGroup:"default",activeToolName:"AnnotationEdit",activeToolStyles:{},activeLeftPanel:Cb("hideAnnotationPanel",!1)||!Cb("a",!1)||Cb("readonly",!1)?"thumbnailsPanel":"notesPanel",activeToolGroup:"",notePopupId:"",isNoteEditing:!1,fitMode:"",zoom:1,rotation:0,displayMode:"Single",currentPage:1,sortStrategy:"position",isFullScreen:!1,doesAutoLoad:Cb("auto_load",!0),isDocumentLoaded:!1,isReadOnly:Cb("readonly",!1),customPanels:[],useEmbeddedPrint:!0,pageLabels:[],noteDateFormat:"MMM D, h:mma",colorMap:ya("currentPalette","iconColor"),cursorOverlay:{},warning:{},customNoteFilter:null,zoomList:[.1,.25,.5,1,1.25,1.5,2,4,8,16,64],measurementUnits:{from:["in","mm","cm","pt"],to:["in","mm","cm","pt","ft","m","yd","km","mi"]},maxSignaturesCount:2,leftPanelWidth:300},search:{listeners:[],value:"",isCaseSensitive:!1,isWholeWord:!1,isWildcard:!1,isRegex:!1,isSearchUp:!1,isAmbientString:!1,activeResult:null,activeResultIndex:-1,results:[],isSearching:!1,noResult:!1,isProgrammaticSearch:!1,isProgrammaticSearchFull:!1},document:{id:Cb("did",null),initialDoc:Cb("initialDoc",Cb("d","")),path:null,ext:Cb("extension",null),filename:Cb("filename",null),file:null,type:null,pdfDoc:null,pdfType:Cb("pdf","auto"),officeType:Cb("office","auto"),isOffline:Cb("startOffline",!1),totalPages:0,outlines:[],checkPassword:null,password:"",printQuality:1,passwordAttempts:-1,documentLoadingProgress:0,workerLoadingProgress:0,isUploading:!1,uploadProgress:0},user:{name:Cb("user","Guest"),isAdmin:Cb("admin",!1)},advanced:{azureWorkaround:Cb("azureWorkaround",!1),customCSS:Cb("css",null),customHeaders:{},defaultDisabledElements:Cb("disabledElements",""),externalPath:Cb("p",""),engineType:(Cb("preloadWorker"),uE=Cb("pdftronServer",""),uE?Ln.PDFTRON_SERVER:Ln.AUTO),fullAPI:Cb("pdfnet",!1),pdftronServer:Cb("pdftronServer",""),singleServerMode:Cb("singleServerMode",!1),forceClientSideInit:Cb("forceClientSideInit",!1),disableWebsockets:Cb("disableWebsockets",!1),preloadWorker:Cb("preloadWorker",!1),serverUrl:Cb("server_url",""),serverUrlHeaders:JSON.parse(Cb("serverUrlHeaders","{}")),cacheKey:JSON.parse(Cb("cacheKey",null)),streaming:Cb("streaming",!1),subzero:Cb("subzero",!1),useDownloader:Cb("useDownloader",!0),useSharedWorker:Cb("useSharedWorker",!1),disableI18n:Cb("disableI18n",!1),pdfWorkerTransportPromise:null,officeWorkerTransportPromise:null,decrypt:null,decryptOptions:{},withCredentials:!1}};function dE(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")}()}function pE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function hE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pE(n,!0).forEach(function(t){mE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pE(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return 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){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")}()}function gE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function yE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gE(n,!0).forEach(function(t){bE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gE(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function SE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wE(n,!0).forEach(function(t){_E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function xE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EE(n,!0).forEach(function(t){CE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EE(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function OE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TE(n,!0).forEach(function(t){PE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TE(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kE=function e(t,n,o){var r;if("function"==typeof n&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof n&&void 0===o&&(o=n,n=void 0),void 0!==o){if("function"!=typeof o)throw new Error("Expected the enhancer to be a function.");return o(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var i=t,a=n,l=[],s=l,u=!1;function f(){s===l&&(s=l.slice())}function h(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return f(),s.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,f();var n=s.indexOf(e);s.splice(n,1)}}}function v(e){if(!p(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=i(a,e)}finally{u=!1}for(var t=l=s,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:d.INIT}),(r={dispatch:v,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,v({type:d.REPLACE})}})[c.a]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[c.a]=function(){return this},e},r}(function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var r=t[o];0,"function"==typeof e[r]&&(n[r]=e[r])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:d.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:d.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var o=!1,r={},l=0;l<a.length;l++){var s=a[l],u=n[s],c=e[s],f=u(c,t);if(void 0===f){var d=h(s,t);throw new Error(d)}r[s]=f,o=o||f!==c}return o?r:e}}({viewer:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0,o=n.type,r=n.payload;switch(o){case"DISABLE_ELEMENT":return hE({},t,{disabledElements:hE({},t.disabledElements,mE({},r.dataElement,{disabled:!0,priority:r.priority}))});case"DISABLE_ELEMENTS":var i={};return r.dataElements.forEach(function(e){i[e]={},i[e].disabled=!0,i[e].priority=r.priority}),hE({},t,{disabledElements:hE({},t.disabledElements,{},i)});case"DISABLE_FEATURES":var a={};return r.forEach(function(e){a[e]=!0}),hE({},t,{disabledFeatures:hE({},t.disabledFeatures,{},a)});case"ENABLE_ELEMENT":return hE({},t,{disabledElements:hE({},t.disabledElements,mE({},r.dataElement,{disabled:!1,priority:r.priority}))});case"ENABLE_ELEMENTS":var l={};return r.dataElements.forEach(function(e){l[e]={},l[e].disabled=!1,l[e].priority=r.priority}),hE({},t,{disabledElements:hE({},t.disabledElements,{},l)});case"ENABLE_ALL_ELEMENTS":return hE({},t,{disabledElements:hE({},e.disabledElements)});case"ENABLE_FEATURES":var s={};return r.forEach(function(e){s[e]=!1}),hE({},t,{disabledFeatures:hE({},t.disabledFeatures,{},s)});case"OPEN_ELEMENT":return hE({},t,{openElements:hE({},t.openElements,mE({},r.dataElement,!0))});case"CLOSE_ELEMENT":return hE({},t,{openElements:hE({},t.openElements,mE({},r.dataElement,!1))});case"SET_ACTIVE_HEADER_GROUP":return hE({},t,{activeHeaderGroup:r.headerGroup});case"SET_ACTIVE_TOOL_NAME":return hE({},t,{activeToolName:r.toolName});case"SET_ACTIVE_TOOL_STYLES":return hE({},t,{activeToolStyles:hE({},r.toolStyles)});case"SET_ACTIVE_TOOL_NAME_AND_STYLES":return hE({},t,{activeToolName:r.toolName,activeToolStyles:r.toolStyles});case"SET_ACTIVE_LEFT_PANEL":return hE({},t,{activeLeftPanel:r.dataElement});case"SET_ACTIVE_TOOL_GROUP":return hE({},t,{activeToolGroup:r.toolGroup});case"SET_NOTE_POPUP_ID":return hE({},t,{notePopupId:r.id});case"SET_NOTE_EDITING":return hE({},t,{isNoteEditing:r.isNoteEditing});case"SET_FIT_MODE":return hE({},t,{fitMode:r.fitMode});case"SET_ZOOM":return hE({},t,{zoom:r.zoom});case"SET_ROTATION":return hE({},t,{rotation:r.rotation});case"SET_DISPLAY_MODE":return hE({},t,{displayMode:r.displayMode});case"SET_CURRENT_PAGE":return hE({},t,{currentPage:r.currentPage});case"SET_SORT_STRATEGY":return hE({},t,{sortStrategy:r.sortStrategy});case"SET_NOTE_DATE_FORMAT":return hE({},t,{noteDateFormat:r.noteDateFormat});case"SET_FULL_SCREEN":return hE({},t,{isFullScreen:r.isFullScreen});case"SET_HEADER_ITEMS":return hE({},t,{headers:hE({},t.headers,mE({},r.header,r.headerItems))});case"REGISTER_TOOL":return hE({},t,{toolButtonObjects:hE({},t.toolButtonObjects,mE({},r.toolName,{dataElement:r.buttonName,title:r.tooltip,group:r.buttonGroup,img:r.buttonImage,showColor:"active"}))});case"UNREGISTER_TOOL":var u=hE({},t.toolButtonObjects);return delete u[r.toolName],hE({},t,{toolButtonObjects:u});case"UPDATE_TOOL":var c=r.toolName,f=r.properties,d=f.buttonName,p=f.tooltip,h=f.buttonGroup,m=f.buttonImage;return hE({},t,{toolButtonObjects:hE({},t.toolButtonObjects,mE({},c,hE({},t.toolButtonObjects[c],{dataElement:d||t.toolButtonObjects[c].dataElement,title:p||t.toolButtonObjects[c].title,group:void 0!==h?h:t.toolButtonObjects[c].group,img:m||t.toolButtonObjects[c].img})))});case"SET_TOOL_BUTTON_OBJECTS":return hE({},t,{toolButtonObjects:hE({},r.toolButtonObjects)});case"SET_DOCUMENT_LOADED":return hE({},t,{isDocumentLoaded:r.isDocumentLoaded});case"SET_READ_ONLY":return hE({},t,{isReadOnly:r.isReadOnly});case"SET_CUSTOM_PANEL":return hE({},t,{customPanels:[].concat(dE(t.customPanels),[r.newPanel])});case"USE_EMBEDDED_PRINT":return hE({},t,{useEmbeddedPrint:r.useEmbeddedPrint});case"SET_PAGE_LABELS":return hE({},t,{pageLabels:dE(r.pageLabels)});case"SET_COLOR_PALETTE":var v=r.colorMapKey,g=r.colorPalette;return hE({},t,{colorMap:hE({},t.colorMap,mE({},v,hE({},t.colorMap[v],{currentPalette:g})))});case"SET_ICON_COLOR":var y=r.colorMapKey,b=r.color;return hE({},t,{colorMap:hE({},t.colorMap,mE({},y,hE({},t.colorMap[y],{iconColor:b})))});case"SET_COLOR_MAP":return hE({},t,{colorMap:r.colorMap});case"SET_CURSOR_OVERLAY":var w=r.data,S=w.imgSrc,_=w.width,E=w.height;return hE({},t,{cursorOverlay:{imgSrc:S,width:_,height:E}});case"SET_WARNING_MESSAGE":return hE({},t,{warning:r});case"SET_ERROR_MESSAGE":return hE({},t,{errorMessage:r.message});case"SET_CUSTOM_NOTE_FILTER":return hE({},t,{customNoteFilter:r.customNoteFilter});case"SET_ZOOM_LIST":return hE({},t,{zoomList:r.zoomList});case"SET_MEASUREMENT_UNITS":return hE({},t,{measurementUnits:r});case"SET_LEFT_PANEL_WIDTH":return hE({},t,{leftPanelWidth:r.width});case"SET_MAX_SIGNATURES_COUNT":return hE({},t,{maxSignaturesCount:r.maxSignaturesCount});default:return t}}}(fE.viewer),search:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0,o=n.type,r=n.payload;switch(o){case"SEARCH_TEXT":var i=r.searchValue,a=r.options,l=void 0===a?{}:a,s=l.caseSensitive,u=l.wholeWord,c=l.wildcard,f=l.regex,d=l.searchUp,p=l.ambientString;return yE({},t,{value:i,isCaseSensitive:s,isWholeWord:u,isWildcard:c,isRegex:f,isSearchUp:d,isAmbientString:p,isProgrammaticSearch:!0});case"SEARCH_TEXT_FULL":var h=r.searchValue,m=r.options,v=void 0===m?{}:m,g=v.caseSensitive,y=v.wholeWord,b=v.wildcard,w=v.regex;return yE({},t,{value:h,isCaseSensitive:g,isWholeWord:y,isWildcard:b,isRegex:w,isSearchUp:!1,isAmbientString:!0,isProgrammaticSearchFull:!0});case"ADD_SEARCH_LISTENER":var S=r.func,_=t.listeners;return yE({},t,{listeners:[].concat(vE(_),[S])});case"REMOVE_SEARCH_LISTENER":var E=r.func,x=t.listeners;return yE({},t,{listeners:vE(x=x.filter(function(e){return e!==E}))});case"SET_SEARCH_VALUE":return yE({},t,{value:r.value});case"SET_IS_PROG_SEARCH":return yE({},t,{isProgrammaticSearch:r.isProgrammaticSearch});case"SET_IS_PROG_SEARCH_FULL":return yE({},t,{isProgrammaticSearchFull:r.isProgrammaticSearchFull});case"SET_ACTIVE_RESULT":return yE({},t,{activeResult:r.activeResult});case"SET_ACTIVE_RESULT_INDEX":return yE({},t,{activeResultIndex:r.index});case"ADD_RESULT":return yE({},t,{results:[].concat(vE(t.results),[r.result])});case"SET_CASE_SENSITIVE":return yE({},t,{isCaseSensitive:r.isCaseSensitive});case"SET_WHOLE_WORD":return yE({},t,{isWholeWord:r.isWholeWord});case"SET_IS_SEARCHING":return yE({},t,{isSearching:r.isSearching});case"SET_NO_RESULT":return yE({},t,{noResult:r.noResult});case"RESET_SEARCH":return yE({},e,{listeners:t.listeners,value:t.value,isCaseSensitive:t.isCaseSensitive,isWholeWord:t.isWholeWord});default:return t}}}(fE.search),user:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0,o=n.type,r=n.payload;switch(o){case"SET_USER_NAME":return SE({},t,{name:r.userName});case"SET_ADMIN_USER":return SE({},t,{isAdmin:r.isAdminUser});default:return t}}}(fE.user),document:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0,o=n.type,r=n.payload;switch(o){case"SET_DOCUMENT_ID":return xE({},t,{id:r.documentId});case"SET_DOCUMENT_PATH":return xE({},t,{path:r.documentPath,file:null,pdfDoc:null});case"SET_DOCUMENT_FILE":return xE({},t,{file:r.documentFile,path:r.documentFile.name,pdfDoc:null});case"SET_DOCUMENT_TYPE":return xE({},t,{type:r.type});case"SET_PDF_DOC":return xE({},t,{pdfDoc:r.pdfDoc,file:null});case"SET_PAGE_NUMBER":return xE({},t,{pageNumber:r.documentPageNumber});case"SET_FILENAME":return xE({},t,{filename:r.filename});case"SET_EXTENSION":return xE({},t,{ext:r.extension});case"SET_TOTAL_PAGES":return xE({},t,{totalPages:r.totalPages});case"SET_OUTLINES":return xE({},t,{outlines:r.outlines});case"SET_CHECKPASSWORD":return xE({},t,{checkPassword:r.func});case"SET_PASSWORD_ATTEMPTS":return xE({},t,{passwordAttempts:r.attempt});case"SET_PASSWORD":return xE({},t,{password:r.password});case"SET_PRINT_QUALITY":return xE({},t,{printQuality:r.quality});case"SET_DOCUMENT_LOADING_PROGRESS":return xE({},t,{documentLoadingProgress:r.documentLoadingProgress});case"SET_WORKER_LOADING_PROGRESS":return xE({},t,{workerLoadingProgress:r.workerLoadingProgress});case"RESET_LOADING_PROGRESS":return xE({},t,{documentLoadingProgress:0,workerLoadingProgress:0});case"SET_IS_UPLOADING":return xE({},t,{isUploading:r.isUploading});case"SET_UPLOAD_PROGRESS":return xE({},t,{uploadProgress:r.progress});default:return t}}}(fE.document),advanced:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0,o=n.type,r=n.payload;switch(o){case"SET_STREAMING":return OE({},t,{streaming:r.streaming});case"SET_DECRYPT_FUNCTION":return OE({},t,{decrypt:r.decryptFunction});case"SET_DECRYPT_OPTIONS":return OE({},t,{decryptOptions:r.decryptOptions});case"SET_ENGINE_TYPE":return OE({},t,{engineType:r.type});case"SET_CUSTOM_HEADERS":return OE({},t,{customHeaders:r.customHeaders});case"SET_CACHE_KEY":return OE({},t,{cacheKey:r.cacheKey});case"SET_WITH_CREDENTIALS":return OE({},t,{withCredentials:r.withCredentials});default:return t}}}(fE.advanced)}),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},i=t.map(function(e){return e(r)});return y({},n,{dispatch:o=b.apply(void 0,i)(n.dispatch)})}}}.apply(void 0,[Ut]));if(window.CanvasRenderingContext2D){var AE=Promise.resolve(),RE=kE.getState();$.ajaxSetup({cache:!0}),RE.advanced.fullAPI&&(window.CoreControls.enableFullPDF(!0),AE=c_("../../core/pdf/PDFNet.js")),window.CoreControls.enableSubzero(RE.advanced.subzero),window.CoreControls.setWorkerPath("../../core"),window.CoreControls.setResourcesPath("../../core/assets");try{if(RE.advanced.useSharedWorker&&window.parent.WebViewer){var ME=window.parent.WebViewer.workerTransportPromise(window.frameElement);ME.pdf||ME.office?window.CoreControls.setWorkerTransportPromise(ME):window.CoreControls.setWorkerTransportPromise({pdf:ME})}}catch(e){console.warn(e),"SecurityError"===e.name&&console.warn("workerTransportPromise option cannot be used with CORS")}var DE=RE.advanced.preloadWorker,LE=Nn,jE=Fn;DE&&(DE!==jn&&DE!==jE||Pu(RE.document.pdfType).then(function(e){window.CoreControls.initPDFWorkerTransports(e,{workerLoadingProgress:function(e){kE.dispatch(Ii.setWorkerLoadingProgress(e))}},window.sampleL)}),DE!==LE&&DE!==jE||Pu(RE.document.officeType).then(function(e){window.CoreControls.initOfficeWorkerTransports(e,{workerLoadingProgress:function(e){kE.dispatch(Ii.setWorkerLoadingProgress(e))}},window.sampleL)})),function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}}(RE.advanced.customCSS),function(e){var t=e.pdftronServer,n=e.fullAPI,o=window.CoreControls.DocumentViewer.prototype.version,r=eE.version;if(o&&r){var i=tE(o.split(".").map(function(e){return parseInt(e,10)}),2),a=i[0],l=i[1],s=tE(r.split(".").map(function(e){return parseInt(e,10)}),2),u=s[0],c=s[1];console.log("[WebViewer] UI version: ".concat(r,", Core version: ").concat(o," WebViewer Server: ").concat(!!t," Full API: ").concat(!!n)),a<u?console.error("[WebViewer] Version Mismatch: UI requires Core version ".concat(r," and above.")):l<c&&console.warn("[WebViewer] Version Mismatch: UI requires Core version ".concat(r," and above."))}}(RE.advanced),AE.then(function(){return new Promise(function(e){window.parent===window?e():(window.addEventListener("message",function t(n){"responseConfig"===n.data.type&&u_(n.data.value,"Config script could not be loaded").then(function(){window.removeEventListener("message",t),e()})}),window.parent.postMessage("requestConfig","*"))})}).then(function(){var e,t,n=w_(kE),o=n.addEventHandlers,r=n.removeEventHandlers,i=new window.CoreControls.DocumentViewer;window.docViewer=i,window.PDFTron={},window.PDFTron.WebViewer={},window.PDFTron.WebViewer.LayoutMode=_b,window.PDFTron.WebViewer.FitMode=Eb,G_(),M_(RE),e=kE,window.addEventListener("error",function(e){var t=e.target.src;t&&(t.endsWith("nmf")&&f_(["nmf"]).catch(p_),t.endsWith("pexe")&&f_(["pexe"]).catch(p_))},!0),window.addEventListener("loaderror",function(t){var n=t.detail,o=Uu(Wu(e.getState()));"string"==typeof n&&n.startsWith("Error retrieving file:")&&n.includes(".xod")&&f_(["xod"]).catch(p_),"The worker has encountered an error"===n&&f_(["mem","wasm"]).then(function(){return d_(o)}).catch(p_),"Couldn't fetch resource file."===n&&f_(["res"]).then(function(){return d_(o)}).catch(p_)}),t=RE,Bi.setCurrentUser(t.user.name),Bi.setIsAdminUser(t.user.isAdmin),Bi.setReadOnly(t.viewer.isReadOnly),(Qt||Xt)&&(window.Tools.Tool.ENABLE_AUTO_SWITCH=!1),function(e){var t=e.dispatch,n=(0,e.getState)();L_(n,t),j_(n,t),N_(n,t),z_(t),I_(t),F_(t),B_(t),U_(t),W_(t),H_(t)}(kE),function(e){var t=e.getState().advanced,n=t.serverUrl,o=t.serverUrlHeaders;if(n){var r=function(t,r){var i=e.getState().document.id;if(window.readerControl.serverFailed)r(t);else if(window.readerControl.loadedFromServer)r("");else{var a={};i&&(a.did=i),$.ajax({url:n,cache:!1,data:a,headers:o,success:function(e){null!=e?(window.readerControl.loadedFromServer=!0,r(e)):(window.readerControl.serverFailed=!0,r(t))},error:function(e,n,o){window.readerControl.serverFailed=!0,console.warn("Error ".concat(e.status," ").concat(o,": Annotations could not be loaded from the server.")),r(t)},dataType:"xml"})}};Bi.setInternalAnnotationsTransform(r),Bi.setPagesUpdatedInternalAnnotationsTransform(function(e,t,n){r(e,n)}),Bi.addEventListener("documentLoaded",function(){window.docViewer.getDocument().getType()===Nn&&r(null,function(e){window.docViewer.getAnnotationManager().importAnnotationsAsync(e)})})}}(kE),o(),J_(),Bi.setToolMode(Oa),u.a.render(l.a.createElement(M,{store:kE},l.a.createElement(Je,{i18n:It},l.a.createElement(s_,{removeEventHandlers:r}))),document.getElementById("app"))})}window.addEventListener("hashchange",function(){window.location.reload()})}]);