(window.webpackJsonpweb=window.webpackJsonpweb||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(788)},function(e,t,n){"use strict";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}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t("number"===typeof e||e instanceof Number)&&isFinite(+e);function u(e,t){return l(e)?e:t}function c(e,t){return"undefined"===typeof e?t:e}const d=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,f=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function p(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function h(e,t,n,r){let i,o,l;if(a(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function S(e,t){return(w[t]||(w[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function O(e){return e.charAt(0).toUpperCase()+e.slice(1)}const T=e=>"undefined"!==typeof e,x=e=>"function"===typeof e,C=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function k(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}const A=Math.PI,R=2*A,I=R+A,N=Number.POSITIVE_INFINITY,P=A/180,D=A/2,L=A/4,M=2*A/3,j=Math.log10,F=Math.sign;function B(e){const t=Math.round(e);e=z(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(j(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function U(e){const t=[],n=Math.sqrt(e);let r;for(r=1;re-t).pop(),t}function H(e){return!isNaN(parseFloat(e))&&isFinite(e)}function z(e,t,n){return Math.abs(e-t)=e}function W(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&u3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ne(e,t,n){n=n||(n=>e[n]1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const re=(e,t,n,r)=>ne(e,n,r?r=>e[r][t]<=n:r=>e[r][t]ne(e,n,r=>e[r][t]>=n);function oe(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const n="_onData"+O(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(){for(var t=arguments.length,i=new Array(t),o=0;o{"function"===typeof e[n]&&e[n](...i)}),a}})}))}function le(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(ae.forEach(t=>{delete e[t]}),delete e._chartjs)}function ue(e){const t=new Set;let n,r;for(n=0,r=e.length;nArray.prototype.slice.call(e));let i=!1,o=[];return function(){for(var n=arguments.length,a=new Array(n),s=0;s{i=!1,e.apply(t,o)}))}}function fe(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o"start"===e?"left":"end"===e?"right":"center",he=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,me=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function ge(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:u,max:c,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(i=J(Math.min(re(s,a.axis,u).lo,n?r:re(t,l,a.getPixelForValue(u)).lo),0,r-1)),o=f?J(Math.max(re(s,a.axis,c,!0).hi+1,n?0:re(t,l,a.getPixelForValue(c),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function ve(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const be=e=>0===e||1===e,ye=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*R/n),_e=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*R/n)+1,Ee={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*D),easeOutSine:e=>Math.sin(e*D),easeInOutSine:e=>-.5*(Math.cos(A*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>be(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>be(e)?e:ye(e,.075,.3),easeOutElastic:e=>be(e)?e:_e(e,.075,.3),easeInOutElastic(e){const t=.1125;return be(e)?e:e<.5?.5*ye(2*e,t,.45):.5+.5*_e(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Ee.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Ee.easeInBounce(2*e):.5*Ee.easeOutBounce(2*e-1)+.5};function we(e){return e+.5|0}const Se=(e,t,n)=>Math.max(Math.min(e,n),t);function Oe(e){return Se(we(2.55*e),0,255)}function Te(e){return Se(we(255*e),0,255)}function xe(e){return Se(we(e/2.55)/100,0,1)}function Ce(e){return Se(we(100*e),0,100)}const ke={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ae=[..."0123456789ABCDEF"],Re=e=>Ae[15&e],Ie=e=>Ae[(240&e)>>4]+Ae[15&e],Ne=e=>(240&e)>>4===(15&e);function Pe(e){var t=(e=>Ne(e.r)&&Ne(e.g)&&Ne(e.b)&&Ne(e.a))(e)?Re:Ie;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const De=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Le(e,t,n){const r=t*Math.min(n,1-n),i=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function Me(e,t,n){const r=function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function je(e,t,n){const r=Le(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Fe(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=(i+o)/2;let s,l,u;return i!==o&&(u=i-o,l=a>.5?u/(2-i-o):u/(i+o),s=function(e,t,n,r,i){return e===i?(t-n)/r+(t>16&255,o>>8&255,255&o]}return e}(),Ge.transparent=[0,0,0,0]);const t=Ge[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Ye=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const $e=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Ke=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Xe(e,t,n){if(e){let r=Fe(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Ue(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Ze(e,t){return e?Object.assign(t||{},e):e}function Qe(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Te(e[3]))):(t=Ze(e,{r:0,g:0,b:0,a:1})).a=Te(t.a),t}function Je(e){return"r"===e.charAt(0)?function(e){const t=Ye.exec(e);let n,r,i,o=255;if(t){if(t[7]!==n){const e=+t[7];o=t[8]?Oe(e):Se(255*e,0,255)}return n=+t[1],r=+t[3],i=+t[5],n=255&(t[2]?Oe(n):Se(n,0,255)),r=255&(t[4]?Oe(r):Se(r,0,255)),i=255&(t[6]?Oe(i):Se(i,0,255)),{r:n,g:r,b:i,a:o}}}(e):ze(e)}class et{constructor(e){if(e instanceof et)return e;const t=typeof e;let n;"object"===t?n=Qe(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ke[e[1]],g:255&17*ke[e[2]],b:255&17*ke[e[3]],a:5===n?17*ke[e[4]]:255}:7!==n&&9!==n||(t={r:ke[e[1]]<<4|ke[e[2]],g:ke[e[3]]<<4|ke[e[4]],b:ke[e[5]]<<4|ke[e[6]],a:9===n?ke[e[7]]<<4|ke[e[8]]:255})),t}(e)||qe(e)||Je(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Ze(this._rgb);return e&&(e.a=xe(e.a)),e}set rgb(e){this._rgb=Qe(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(xe(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):void 0;var e}hexString(){return this._valid?Pe(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Fe(e),n=t[0],r=Ce(t[1]),i=Ce(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(xe(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let i;const o=t===i?.5:t,a=2*o-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=Ke(xe(e.r)),i=Ke(xe(e.g)),o=Ke(xe(e.b));return{r:Te($e(r+n*(Ke(xe(t.r))-r))),g:Te($e(i+n*(Ke(xe(t.g))-i))),b:Te($e(o+n*(Ke(xe(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new et(this.rgb)}alpha(e){return this._rgb.a=Te(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=we(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Xe(this._rgb,2,e),this}darken(e){return Xe(this._rgb,2,-e),this}saturate(e){return Xe(this._rgb,1,e),this}desaturate(e){return Xe(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Fe(e);n[0]=He(n[0]+t),n=Ue(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function tt(e){return new et(e)}function nt(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function rt(e){return nt(e)?e:tt(e)}function it(e){return nt(e)?e:tt(e).saturate(.5).darken(.1).hexString()}const ot=Object.create(null),at=Object.create(null);function st(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;re.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>it(t.backgroundColor),this.hoverBorderColor=(e,t)=>it(t.borderColor),this.hoverColor=(e,t)=>it(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return lt(this,e,t)}get(e){return st(this,e)}describe(e,t){return lt(at,e,t)}override(e,t){return lt(ot,e,t)}route(e,t,n,r){const i=st(this,e),o=st(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[r];return s(e)?Object.assign({},t,e):c(e,t)},set(e){this[a]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ct(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function dt(e,t,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const l=n.length;let u,c,d,f,p;for(u=0;un.length){for(u=0;u0&&e.stroke()}}function gt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y5&&void 0!==arguments[5]?arguments[5]:{};const l=a(t)?t:[t],u=s.strokeWidth>0&&""!==s.strokeColor;let c,d;for(e.save(),e.font=i.string,wt(e,s),c=0;cc(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of i)n[a]=+o(a)||0;return n}function At(e){return kt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Rt(e){return kt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function It(e){const t=At(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Nt(e,t){e=e||{},t=t||ut.font;let n=c(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let r=c(e.style,t.style);r&&!(""+r).match(xt)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:c(e.family,t.family),lineHeight:Ct(c(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:c(e.weight,t.weight),string:""};return i.string=function(e){return!e||o(e.size)||o(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function Pt(e,t,n,r){let i,o,s,l=!0;for(i=0,o=e.length;in&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Lt(e,t){return Object.assign(Object.create(e),t)}function Mt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];T(r)||(r=$t("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:i=>Mt([i,...e],t,n,r)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>Ht(n,r,()=>Yt(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Kt(e).includes(t),ownKeys:e=>Kt(e),set(e,t,n){const r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function jt(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ft(e,r),setContext:t=>jt(e,t,n,r),override:i=>jt(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Ht(e,t,()=>function(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:l}=e;let u=r[t];x(u)&&l.isScriptable(t)&&(u=function(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(o,a||r),s.delete(e),Ut(e,t)&&(t=Gt(i._scopes,i,e,t));return t}(t,u,e,n));a(u)&&u.length&&(u=function(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:l}=n;if(T(o.index)&&r(e))t=t[o.index%t.length];else if(s(t[0])){const n=t,r=i._scopes.filter(e=>e!==n);t=[];for(const s of n){const n=Gt(r,i,e,s);t.push(jt(n,o,a&&a[e],l))}}return t}(t,u,e,l.isIndexable));Ut(t,u)&&(u=jt(u,i,o&&o[t],l));return u}(e,t,n)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function Ft(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:x(n)?n:()=>n,isIndexable:x(r)?r:()=>r}}const Bt=(e,t)=>e?e+O(t):t,Ut=(e,t)=>s(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Ht(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function zt(e,t,n){return x(e)?e(t,n):e}const Vt=(e,t)=>!0===e?t:"string"===typeof e?S(t,e):void 0;function Wt(e,t,n,r,i){for(const o of t){const t=Vt(n,o);if(t){e.add(t);const o=zt(t._fallback,n,i);if(T(o)&&o!==n&&o!==r)return o}else if(!1===t&&T(r)&&n!==r)return null}return!1}function Gt(e,t,n,r){const i=t._rootScopes,o=zt(t._fallback,n,r),l=[...e,...i],u=new Set;u.add(r);let c=qt(u,l,n,o||n,r);return null!==c&&((!T(o)||o===n||(c=qt(u,l,o,c,r),null!==c))&&Mt(Array.from(u),[""],i,o,()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];if(a(i)&&s(n))return n;return i}(t,n,r)))}function qt(e,t,n,r,i){for(;n;)n=Wt(e,t,n,r,i);return n}function Yt(e,t,n,r){let i;for(const o of t)if(i=$t(Bt(o,e),n),T(i))return Ut(e,i)?Gt(n,r,e,i):i}function $t(e,t){for(const n of t){if(!n)continue;const t=n[e];if(T(t))return t}}function Kt(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function Xt(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,a=new Array(r);let s,l,u,c;for(s=0,l=r;st"x"===e?"y":"x";function en(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=K(o,i),l=K(a,o);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,f=r*c;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}}function tn(e,t,n){const r=e.length;let i,o,a,s,l,u=Qt(e,0);for(let c=0;c2&&void 0!==arguments[2]?arguments[2]:"x";const r=Jt(n),i=e.length;let o,a,s,l=Qt(e,0);for(let u=0;u!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=Jt(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,u=Qt(e,0);for(a=0;awindow.getComputedStyle(e,null);const cn=["top","right","bottom","left"];function dn(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=cn[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function fn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=un(n),o="border-box"===i.boxSizing,a=dn(i,"padding"),s=dn(i,"border","width"),{x:l,y:u,box:c}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(i,o,e.target))a=i,s=o;else{const e=t.getBoundingClientRect();a=r.clientX-e.left,s=r.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top);let{width:p,height:h}=t;return o&&(p-=a.width+s.width,h-=a.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((u-f)/h*n.height/r)}}const pn=e=>Math.round(10*e)/10;function hn(e,t,n,r){const i=un(e),o=dn(i,"margin"),a=ln(i.maxWidth,e,"clientWidth")||N,s=ln(i.maxHeight,e,"clientHeight")||N,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){const o=sn(e);if(o){const e=o.getBoundingClientRect(),a=un(o),s=dn(a,"border","width"),l=dn(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=ln(a.maxWidth,o,"clientWidth"),i=ln(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||N,maxHeight:i||N}}(e,t,n);let{width:u,height:c}=l;if("content-box"===i.boxSizing){const e=dn(i,"border","width"),t=dn(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?Math.floor(u/r):c-o.height),u=pn(Math.min(u,a,l.maxWidth)),c=pn(Math.min(c,s,l.maxHeight)),u&&!c&&(c=pn(u/2)),{width:u,height:c}}function mn(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=i/r,e.width=o/r;const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}const gn=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function vn(e,t){const n=function(e,t){return un(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function yn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function _n(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=bn(e,i,n),s=bn(i,o,n),l=bn(o,t,n),u=bn(a,s,n),c=bn(s,l,n);return bn(u,c,n)}const En=new Map;function wn(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=En.get(n);return r||(r=new Intl.NumberFormat(e,t),En.set(n,r)),r}(t,n).format(e)}function Sn(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function On(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Tn(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xn(e){return"angle"===e?{between:Q,compare:X,normalize:Z}:{between:te,compare:(e,t)=>e-t,normalize:e=>e}}function Cn(e){let{start:t,end:n,count:r,loop:i,style:o}=e;return{start:t%r,end:n%r,loop:i&&(n-t+1)%r===0,style:o}}function kn(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:u}=xn(r),{start:c,end:d,loop:f,style:p}=function(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=xn(r),l=t.length;let u,c,{start:d,end:f,loop:p}=e;if(p){for(d+=l,f+=l,u=0,c=l;ub||l(i,v,m)&&0!==s(i,v),E=()=>!b||0===s(o,m)||l(o,v,m);for(let w=c,S=c;w<=d;++w)g=t[w%a],g.skip||(m=u(g[r]),m!==v&&(b=l(m,i,o),null===y&&_()&&(y=0===s(m,i)?w:S),null!==y&&E()&&(h.push(Cn({start:y,end:w,loop:f,count:a,style:p})),y=null),S=w,v=m));return null!==y&&h.push(Cn({start:y,end:d,loop:f,count:a,style:p})),h}function An(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}(n,i,o,r);if(!0===r)return In(e,[{start:a,end:s,loop:o}],n,t);return In(e,function(e,t,n,r){const i=e.length,o=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:t%i,end:(a-1)%i,loop:r}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&o.push({start:t%i,end:s%i,loop:r}),o}(n,a,s{var n=e.hrefAttrs,r=e.onLayout,s=e.onMoveShouldSetResponder,p=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,_=e.onResponderGrant,E=e.onResponderMove,w=e.onResponderReject,S=e.onResponderRelease,O=e.onResponderStart,T=e.onResponderTerminate,x=e.onResponderTerminationRequest,C=e.onScrollShouldSetResponder,k=e.onScrollShouldSetResponderCapture,A=e.onSelectionChangeShouldSetResponder,R=e.onSelectionChangeShouldSetResponderCapture,I=e.onStartShouldSetResponder,N=e.onStartShouldSetResponderCapture,P=i()(e,g);var D=o.useContext(h.a),L=o.useRef(null),M=Object(m.c)().direction;Object(u.a)(L,r),Object(f.a)(L,{onMoveShouldSetResponder:s,onMoveShouldSetResponderCapture:p,onResponderEnd:b,onResponderGrant:_,onResponderMove:E,onResponderReject:w,onResponderRelease:S,onResponderStart:O,onResponderTerminate:T,onResponderTerminationRequest:x,onScrollShouldSetResponder:C,onScrollShouldSetResponderCapture:k,onSelectionChangeShouldSetResponder:A,onSelectionChangeShouldSetResponderCapture:R,onStartShouldSetResponder:I,onStartShouldSetResponderCapture:N});var j="div",F=null!=e.lang?Object(m.b)(e.lang):null,B=e.dir||F,U=B||M,H=(e=>Object(l.a)(e,v))(P);if(H.dir=B,H.style=[y.view$raw,D&&y.inline,e.style],null!=e.href&&(j="a",null!=n)){var z=n.download,V=n.rel,W=n.target;null!=z&&(H.download=z),null!=V&&(H.rel=V),"string"===typeof W&&(H.target="_"!==W.charAt(0)?"_"+W:W)}var G=Object(d.a)(H),q=Object(c.a)(L,G,t);return H.ref=q,Object(a.a)(j,H,{writingDirection:U})});b.displayName="View";var y=p.a.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});t.a=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(94);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i{i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}(e,d,s):d()}return Object(o.useLayoutEffect)(()=>{!function(){const e=f.current;g.current=e.className,e.className+=" "+h,e.addEventListener("animationend",b),e.addEventListener("animationcancel",b)}()},[]),Object(o.useEffect)(()=>{p||(c?y():function(){v.current=1;const e=f.current;e.className+=" "+m,e.addEventListener("animationend",y)}())},[p]),a.a.createElement(a.a.Fragment,null,l)}}function _(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const E={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},w=e=>{let{theme:t,type:n}=e,o=Object(i.a)(e,l);return a.a.createElement("svg",Object(r.a)({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-"+n+")"},o))},S={info:function(e){return a.a.createElement(w,Object(r.a)({},e),a.a.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return a.a.createElement(w,Object(r.a)({},e),a.a.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return a.a.createElement(w,Object(r.a)({},e),a.a.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return a.a.createElement(w,Object(r.a)({},e),a.a.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return a.a.createElement("div",{className:"Toastify__spinner"})}};function O(e){const[,t]=Object(o.useReducer)(e=>e+1,0),[n,r]=Object(o.useState)([]),a=Object(o.useRef)(null),s=Object(o.useRef)(new Map).current,l=e=>-1!==n.indexOf(e),v=Object(o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:e=>s.get(e)}).current;function b(e){let{containerId:t}=e;const{limit:n}=v.props;!n||t&&v.containerId!==t||(v.count-=v.queue.length,v.queue=[])}function y(e){r(t=>m(e)?t.filter(t=>t!==e):[])}function w(){const{toastContent:e,toastProps:t,staleId:n}=v.queue.shift();T(e,t,n)}function O(e,n){let{delay:r,staleId:l}=n,b=Object(i.a)(n,u);if(!g(e)||function(e){return!a.current||v.props.enableMultiContainer&&e.containerId!==v.props.containerId||s.has(e.toastId)&&null==e.updateId}(b))return;const{toastId:O,updateId:x,data:C}=b,{props:k}=v,A=()=>y(O),R=null==x;R&&v.count++;const I={toastId:O,updateId:x,data:C,containerId:b.containerId,isLoading:b.isLoading,theme:b.theme||k.theme,icon:null!=b.icon?b.icon:k.icon,isIn:!1,key:b.key||v.toastKey++,type:b.type,closeToast:A,closeButton:b.closeButton,rtl:k.rtl,position:b.position||k.position,transition:b.transition||k.transition,className:h(b.className||k.toastClassName),bodyClassName:h(b.bodyClassName||k.bodyClassName),style:b.style||k.toastStyle,bodyStyle:b.bodyStyle||k.bodyStyle,onClick:b.onClick||k.onClick,pauseOnHover:d(b.pauseOnHover)?b.pauseOnHover:k.pauseOnHover,pauseOnFocusLoss:d(b.pauseOnFocusLoss)?b.pauseOnFocusLoss:k.pauseOnFocusLoss,draggable:d(b.draggable)?b.draggable:k.draggable,draggablePercent:b.draggablePercent||k.draggablePercent,draggableDirection:b.draggableDirection||k.draggableDirection,closeOnClick:d(b.closeOnClick)?b.closeOnClick:k.closeOnClick,progressClassName:h(b.progressClassName||k.progressClassName),progressStyle:b.progressStyle||k.progressStyle,autoClose:!b.isLoading&&(N=b.autoClose,P=k.autoClose,!1===N||c(N)&&N>0?N:P),hideProgressBar:d(b.hideProgressBar)?b.hideProgressBar:k.hideProgressBar,progress:b.progress,role:b.role||k.role,deleteToast(){const e=_(s.get(O),"removed");s.delete(O),E.emit(4,e);const n=v.queue.length;if(v.count=m(O)?v.count-1:v.count-v.displayedToast,v.count<0&&(v.count=0),n>0){const e=m(O)?1:v.props.limit;if(1===n||1===e)v.displayedToast++,w();else{const t=e>n?n:e;v.displayedToast=t;for(let e=0;ee in S)(n)&&(a=S[n](s))),a}(I),p(b.onOpen)&&(I.onOpen=b.onOpen),p(b.onClose)&&(I.onClose=b.onClose),I.closeButton=k.closeButton,!1===b.closeButton||g(b.closeButton)?I.closeButton=b.closeButton:!0===b.closeButton&&(I.closeButton=!g(k.closeButton)||k.closeButton);let D=e;Object(o.isValidElement)(e)&&!f(e.type)?D=Object(o.cloneElement)(e,{closeToast:A,toastProps:I,data:C}):p(e)&&(D=e({closeToast:A,toastProps:I,data:C})),k.limit&&k.limit>0&&v.count>k.limit&&R?v.queue.push({toastContent:D,toastProps:I,staleId:l}):c(r)?setTimeout(()=>{T(D,I,l)},r):T(D,I,l)}function T(e,t,n){const{toastId:i}=t;n&&s.delete(n);const o={content:e,props:t};s.set(i,o),r(e=>[...e,i].filter(e=>e!==n)),E.emit(4,_(o,null==o.props.updateId?"added":"updated"))}return Object(o.useEffect)(()=>(v.containerId=e.containerId,E.cancelEmit(3).on(0,O).on(1,e=>a.current&&y(e)).on(5,b).emit(2,v),()=>E.emit(3,v)),[]),Object(o.useEffect)(()=>{v.props=e,v.isToastActive=l,v.displayedToast=n.length}),{getToastToRender:function(t){const n=new Map,r=Array.from(s.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:a,isToastActive:l}}function T(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function x(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function C(e){const[t,n]=Object(o.useState)(!1),[r,i]=Object(o.useState)(!1),a=Object(o.useRef)(null),s=Object(o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=Object(o.useRef)(e),{autoClose:u,pauseOnHover:c,closeToast:d,onClick:f,closeOnClick:h}=e;function m(t){if(e.draggable){s.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",_),document.addEventListener("touchmove",y),document.addEventListener("touchend",_);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=T(t.nativeEvent),s.y=x(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(){if(s.boundingRect){const{top:t,bottom:n,left:r,right:i}=s.boundingRect;e.pauseOnHover&&s.x>=r&&s.x<=i&&s.y>=t&&s.y<=n?b():v()}}function v(){n(!0)}function b(){n(!1)}function y(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&b(),s.x=T(n),s.y=x(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+s.delta+"px)",r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function _(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",_);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}Object(o.useEffect)(()=>{l.current=e}),Object(o.useEffect)(()=>(a.current&&a.current.addEventListener("d",v,{once:!0}),p(e.onOpen)&&e.onOpen(Object(o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;p(e.onClose)&&e.onClose(Object(o.isValidElement)(e.children)&&e.children.props)}),[]),Object(o.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",v),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const E={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return u&&c&&(E.onMouseEnter=b,E.onMouseLeave=v),h&&(E.onClick=e=>{f&&f(e),s.canCloseOnClick&&d()}),{playToast:v,pauseToast:b,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:E}}function k(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return a.a.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},a.a.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},a.a.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function A(e){let{delay:t,isRunning:n,closeToast:i,type:o,hide:l,className:u,style:c,controlledProgress:d,progress:f,rtl:h,isIn:m,theme:g}=e;const v=Object(r.a)(Object(r.a)({},c),{},{animationDuration:t+"ms",animationPlayState:n?"running":"paused",opacity:l?0:1});d&&(v.transform="scaleX("+f+")");const b=Object(s.a)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+g,"Toastify__progress-bar--"+o,{"Toastify__progress-bar--rtl":h}),y=p(u)?u({rtl:h,type:o,defaultClassName:b}):Object(s.a)(b,u);return a.a.createElement("div",{role:"progressbar","aria-hidden":l?"true":"false","aria-label":"notification timer",className:y,style:v,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{m&&i()}})}A.defaultProps={type:b.DEFAULT,hide:!1};const R=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:o}=C(e),{closeButton:l,children:u,autoClose:c,onClick:d,type:f,hideProgressBar:h,closeToast:m,transition:g,position:v,className:b,style:y,bodyClassName:_,bodyStyle:E,progressClassName:w,progressStyle:S,updateId:O,role:T,progress:x,rtl:R,toastId:I,deleteToast:N,isIn:P,isLoading:D,icon:L,theme:M}=e,j=Object(s.a)("Toastify__toast","Toastify__toast-theme--"+M,"Toastify__toast--"+f,{"Toastify__toast--rtl":R}),F=p(b)?b({rtl:R,position:v,type:f,defaultClassName:j}):Object(s.a)(j,b),B=!!x,U={closeToast:m,type:f,theme:M};let H=null;return!1===l||(H=p(l)?l(U):a.a.isValidElement(l)?a.a.cloneElement(l,U):k(U)),a.a.createElement(g,{isIn:P,done:N,position:v,preventExitTransition:n,nodeRef:i},a.a.createElement("div",Object(r.a)(Object(r.a)({id:I,onClick:d,className:F},o),{},{style:y,ref:i}),a.a.createElement("div",Object(r.a)(Object(r.a)({},P&&{role:T}),{},{className:p(_)?_({type:f}):Object(s.a)("Toastify__toast-body",_),style:E}),null!==L&&a.a.createElement("div",{className:Object(s.a)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},L),a.a.createElement("div",null,u)),H,(c||B)&&a.a.createElement(A,Object(r.a)(Object(r.a)({},O&&!B?{key:"pb-"+O}:{}),{},{rtl:R,theme:M,delay:c,isRunning:t,isIn:P,closeToast:m,hide:h,type:f,style:S,className:w,controlledProgress:B,progress:x}))))},I=y({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),N=(y({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),y({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),y({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"}),Object(o.forwardRef)((e,t)=>{const{getToastToRender:n,containerRef:i,isToastActive:l}=O(e),{className:u,style:c,rtl:d,containerId:f}=e;function m(e){const t=Object(s.a)("Toastify__toast-container","Toastify__toast-container--"+e,{"Toastify__toast-container--rtl":d});return p(u)?u({position:e,rtl:d,defaultClassName:t}):Object(s.a)(t,h(u))}return Object(o.useEffect)(()=>{t&&(t.current=i.current)},[]),a.a.createElement("div",{ref:i,className:"Toastify",id:f},n((e,t)=>{const n=t.length?Object(r.a)({},c):Object(r.a)(Object(r.a)({},c),{},{pointerEvents:"none"});return a.a.createElement("div",{className:m(e),style:n,key:"container-"+e},t.map((e,n)=>{let{content:i,props:o}=e;return a.a.createElement(R,Object(r.a)(Object(r.a)({},o),{},{isIn:l(o.toastId),style:Object(r.a)(Object(r.a)({},o.style),{},{"--nth":n+1,"--len":t.length}),key:"toast-"+o.key}),i)}))}))}));N.displayName="ToastContainer",N.defaultProps={position:v.TOP_RIGHT,transition:I,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:k,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let P,D=new Map,L=[];function M(){return Math.random().toString(36).substring(2,9)}function j(e){return e&&(f(e.toastId)||c(e.toastId))?e.toastId:M()}function F(e,t){return D.size>0?E.emit(0,e,t):L.push({content:e,options:t}),t.toastId}function B(e,t){return Object(r.a)(Object(r.a)({},t),{},{type:t&&t.type||e,toastId:j(t)})}function U(e){return(t,n)=>F(t,B(e,n))}function H(e,t){return F(e,B(b.DEFAULT,t))}H.loading=(e,t)=>F(e,B(b.DEFAULT,Object(r.a)({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t))),H.promise=function(e,t,n){let i,{pending:o,error:a,success:s}=t;o&&(i=f(o)?H.loading(o,n):H.loading(o.render,Object(r.a)(Object(r.a)({},n),o)));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},u=(e,t,o)=>{if(null==t)return void H.dismiss(i);const a=Object(r.a)(Object(r.a)(Object(r.a)({type:e},l),n),{},{data:o}),s=f(t)?{render:t}:t;return i?H.update(i,Object(r.a)(Object(r.a)({},a),s)):H(s.render,Object(r.a)(Object(r.a)({},a),s)),o},c=p(e)?e():e;return c.then(e=>u("success",s,e)).catch(e=>u("error",a,e)),c},H.success=U(b.SUCCESS),H.info=U(b.INFO),H.error=U(b.ERROR),H.warning=U(b.WARNING),H.warn=H.warning,H.dark=(e,t)=>F(e,B(b.DEFAULT,Object(r.a)({theme:"dark"},t))),H.dismiss=e=>E.emit(1,e),H.clearWaitingQueue=function(e){return void 0===e&&(e={}),E.emit(5,e)},H.isActive=e=>{let t=!1;return D.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},H.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{const n=function(e,t){let{containerId:n}=t;const r=D.get(n||P);return r?r.getToast(e):null}(e,t);if(n){const{props:i,content:o}=n,a=Object(r.a)(Object(r.a)(Object(r.a)({},i),t),{},{toastId:t.toastId||e,updateId:M()});a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,F(s,a)}},0)},H.done=e=>{H.update(e,{progress:1})},H.onChange=e=>(E.on(4,e),()=>{E.off(4,e)}),H.POSITION=v,H.TYPE=b,E.on(2,e=>{P=e.containerId||e,D.set(P,e),L.forEach(e=>{E.emit(0,e.content,e.options)}),L=[]}).on(3,e=>{D.delete(e.containerId||e),0===D.size&&E.off(0).off(1).off(5)})},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(33),a=n.n(o),s=n(128),l=n(35),u={},c=!l.a||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),d={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},f='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',p={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],marginHorizontal:["marginRight","marginLeft"],marginVertical:["marginTop","marginBottom"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],paddingHorizontal:["paddingRight","paddingLeft"],paddingVertical:["paddingTop","paddingBottom"]},h=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+Object(s.a)(n,t)+")"},m=e=>{var t=e.transform;return Array.isArray(e.transform)&&(t=e.transform.map(h).join(" ")),t},g=(e,t)=>{if(!e)return u;var n={};for(var r in e){var i=e[r];if(null!=i&&!d[r])if("aspectRatio"===r)n[r]=i.toString();else if("backgroundClip"===r)"text"===i&&(n.backgroundClip=i,n.WebkitBackgroundClip=i);else if("flex"===r)-1===i?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=i;else if("font"===r)n[r]=i.replace("System",f);else if("fontFamily"===r)if(i.indexOf("System")>-1){var o=i.split(/,\s*/);o[o.indexOf("System")]=f,n[r]=o.join(",")}else n[r]="monospace"===i?"monospace,monospace":i;else"fontVariant"===r?Array.isArray(i)&&i.length>0&&(n.fontVariant=i.join(" ")):"textAlignVertical"===r?n.verticalAlign="center"===i?"middle":i:"textDecorationLine"===r?c?n.textDecorationLine=i:n.textDecoration=i:"transform"===r||"transformMatrix"===r?n.transform=m(e):"writingDirection"===r?n.direction=i:function(){var i=Object(s.a)(e[r],r),o=p[r];t&&"margin"===r?(null==e.marginHorizontal&&(n.marginLeft=i,n.marginRight=i),null==e.marginVertical&&(n.marginTop=i,n.marginBottom=i)):t&&"padding"===r?(null==e.paddingHorizontal&&(n.paddingLeft=i,n.paddingRight=i),null==e.paddingVertical&&(n.paddingTop=i,n.paddingBottom=i)):o?o.forEach((t,r)=>{null==e[t]&&(n[t]=i)}):n[r]=Array.isArray(i)?i.join(","):i}()}return n};var v=e=>function(e,t){for(var n,r=e.length,i=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}(e,1).toString(36),b=/[A-Z]/g,y=/^ms-/,_={};function E(e){return"-"+e.toLowerCase()}var w=function(e){if(e in _)return _[e];var t=e.replace(b,E);return _[e]=y.test(t)?"-"+t:t},S=n(701),O=n.n(S),T=n(702),x=n.n(T),C=n(703),k=n.n(C),A=n(704),R=n.n(A),I=n(705),N=n.n(I),P=n(706),D=n.n(P),L=n(707),M=n.n(L),j=n(708),F=n.n(j),B=n(709),U=n.n(B),H=n(710),z=n.n(H),V=["Webkit"],W=["Webkit","ms"],G={plugins:[x.a,k.a,R.a,N.a,D.a,M.a,F.a,U.a,z.a],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:W,textEmphasis:W,textEmphasisStyle:W,textEmphasisColor:W,boxDecorationBreak:W,clipPath:V,maskImage:W,maskMode:W,maskRepeat:W,maskPosition:W,maskClip:W,maskOrigin:W,maskSize:W,maskComposite:W,mask:W,maskBorderSource:W,maskBorderMode:W,maskBorderSlice:W,maskBorderWidth:W,maskBorderOutset:W,maskBorderRepeat:W,maskBorder:W,maskType:W,textDecorationStyle:V,textDecorationSkip:V,textDecorationLine:V,textDecorationColor:V,filter:V,breakAfter:V,breakBefore:V,breakInside:V,columnCount:V,columnFill:V,columnGap:V,columnRule:V,columnRuleColor:V,columnRuleStyle:V,columnRuleWidth:V,columns:V,columnSpan:V,columnWidth:V,backdropFilter:V,hyphens:V,flowInto:V,flowFrom:V,regionFragment:V,textOrientation:V,tabSize:["Moz"],fontKerning:V,textSizeAdjust:V}},q=O()(G),Y=["animationKeyframes"],$=new Map,K={},X={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,marginHorizontal:2.1,marginVertical:2.1,paddingHorizontal:2.1,paddingVertical:2.1},Z={borderTopLeftRadius:"borderTopRightRadius",borderTopRightRadius:"borderTopLeftRadius",borderBottomLeftRadius:"borderBottomRightRadius",borderBottomRightRadius:"borderBottomLeftRadius",borderLeftColor:"borderRightColor",borderLeftStyle:"borderRightStyle",borderLeftWidth:"borderRightWidth",borderRightColor:"borderLeftColor",borderRightStyle:"borderLeftStyle",borderRightWidth:"borderLeftWidth",left:"right",marginLeft:"marginRight",marginRight:"marginLeft",paddingLeft:"paddingRight",paddingRight:"paddingLeft",right:"left"},Q={borderTopStartRadius:"borderTopLeftRadius",borderTopEndRadius:"borderTopRightRadius",borderBottomStartRadius:"borderBottomLeftRadius",borderBottomEndRadius:"borderBottomRightRadius",borderStartColor:"borderLeftColor",borderStartStyle:"borderLeftStyle",borderStartWidth:"borderLeftWidth",borderEndColor:"borderRightColor",borderEndStyle:"borderRightStyle",borderEndWidth:"borderRightWidth",end:"right",marginStart:"marginLeft",marginEnd:"marginRight",paddingStart:"paddingLeft",paddingEnd:"paddingRight",start:"left"},J=["clear","float","textAlign"];function ee(e){var t={$$css:!0},n=[];function r(e,t){var r,i=e+te(t,e),o=$.get(i);if(null!=o)r=o[0],n.push(o[1]);else{r=re("r",e,t);var a=X[e]||2.2,s=[function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=ie(n),a=o[0],s=o[1],l=ne({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var u=ne({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=ne({pointerEvents:"none"});r.push(i+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var f=ne({pointerEvents:"auto"});r.push(i+">*"+f)}var p=ne({pointerEvents:c});r.push(""+i+p);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var h=ne({scrollbarWidth:n});r.push(""+i+h);break;default:var m=ne({[t]:n});r.push(""+i+m)}return r}(r,e,t),a];n.push(s),$.set(i,[r,s])}return r}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(null!=i){var o;if(J.indexOf(n)>-1){var a=r(n,"left"),s=r(n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=Q[n];if(null!=l){var u=r(l,i),c=r(Z[l],i);o=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],f=[],p=0;p0){var m=[...d],g=[...d];f.forEach(e=>{var t=m[e];if("string"===typeof t){var i=Q[t],a=Z[i];m[e]=i,g[e]=a;var s=r(n,m),l=r(n,g);o=[s,l]}})}}null==o?o=r(n,i):t.$$css$localize=!0,t[n]=o}}),[t,n]}function te(e,t){var n=Object(s.a)(e,t);return"string"!==typeof n?JSON.stringify(n||""):n}function ne(e){var t=q(g(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=w(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function re(e,t,n){return e+"-"+v(t+te(n,t))}function ie(e){if("number"===typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"===typeof e)t.push(e);else{var r=function(e){var t=re("r","animation",e),n="{"+Object.keys(e).map(t=>""+t+ne(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}}),[t,n]}var oe=n(333),ae=n(700),se=n(323),le=n(699),ue=new WeakMap,ce=Object(oe.a)();function de(e){e.forEach(e=>{var t=e[0],n=e[1];null!=ce&&t.forEach(e=>{ce.insert(e,n)})})}function fe(e,t){var n=function(e,t){var n,r={$$css:!0},o=[],s=e.animationKeyframes,l=a()(e,Y),u=re("css",t,e),c="."+u;if(null!=s){var d=ie(s),f=d[0],p=d[1];n=f.join(","),o.push(...p)}var h=ne(i()(i()({},l),{},{animationName:n}));return o.push(""+c+h),r[u]=u,[r,[[o,1]]]}(e,t),r=n[0];return de(n[1]),r}var pe={position:"absolute",left:0,right:0,top:0,bottom:0},he=me({x:i()({},pe)}).x;function me(e){return Object.keys(e).forEach(t=>{var n,r=e[t];null!=r&&!0!==r.$$css&&(n=t.indexOf("$raw")>-1?fe(r,t.split("$raw")[0]):function(e){var t=ee(Object(se.b)(e)),n=t[0];return de(t[1]),n}(r),ue.set(r,n))}),e}function ge(e,t){var n=null!=t&&"rtl"===t.writingDirection,r=function(e,t){return le.styleq.factory({transform(e){var n=ue.get(e);return null!=n?Object(ae.localizeStyle)(n,t):e}})(e)}(e,n);return Array.isArray(r)&&null!=r[1]&&(r[1]=function(e,t){var n=e||K,r={},i={};for(var o in n){var a=n[o],s=o,l=a;if(Object.prototype.hasOwnProperty.call(n,o)&&null!=a){J.indexOf(o)>-1&&("start"===a?l=t?"right":"left":"end"===a&&(l=t?"left":"right"));var u=Q[o];null!=u&&(s=t?Z[u]:u),"transitionProperty"===o&&function(){var e=Array.isArray(a)?a:[a];e.forEach((n,r)=>{if("string"===typeof n){var i=Q[n];null!=i&&(e[r]=t?Z[i]:i)}})}(),r[s]||(i[s]=l),Q.hasOwnProperty(o)&&(r[s]=!0)}}return g(i,!0)}(Object(se.b)(r[1]),n)),r}ge.absoluteFill=he,ge.absoluteFillObject=pe,ge.create=me,ge.compose=function(e,t){return e&&t?[e,t]:e||t},ge.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}};t.a=r},,function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=n.n(o),s=n(139),l=n.n(s),u=n(1682),c=n(1741),d=n(554),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,f=void 0!==s&&s,p=t.name,h=Object(i.a)(t,["defaultTheme","withTheme","name"]);var m=p,g=Object(u.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:p||n.displayName,classNamePrefix:m},h)),v=a.a.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,u=Object(i.a)(e,["classes","innerRef"]),h=g(Object(r.a)({},n.defaultProps,e)),m=u;return("string"===typeof p||f)&&(s=Object(d.a)()||o,p&&(m=Object(c.a)({theme:s,name:p,props:u})),f&&!m.theme&&(m.theme=s)),a.a.createElement(n,Object(r.a)({ref:l||t,classes:h},m))}));return l()(v,n),v}},p=n(199);t.a=function(e,t){return f(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o{if(e instanceof f.a)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"===typeof e)for(var n in e)i(e[n],t.concat(n))};g()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]);var o=Object(h.a)(e);return null!=o&&r.forEach(e=>{p.a.API.addAnimatedEventToView(o,t,e)}),{detach(){null!=o&&r.forEach(e=>{p.a.API.removeAnimatedEventFromView(o,t,e.animatedValueTag)})}}}class b{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=Object(p.c)(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){g()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=v(e,t,this._argMapping)}__detach(e,t){g()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;if(this.__isNative)return this._callListeners;return function(){for(var t=arguments.length,n=new Array(t),r=0;r{if(e instanceof f.a)"number"===typeof t&&e.setValue(t);else if("object"===typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;ne(...t))}}var y=n(43),_=n(72);class E extends _.a{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof y.a&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];r instanceof y.a?t[n]=r.__getValue():t[n]=r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];r instanceof y.a?t[n]=r.__getAnimatedValue():t[n]=r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof y.a&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof y.a&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof y.a?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:p.a.transformDataType(r)})}}),p.a.validateTransform(e),{type:"transform",transforms:e}}}var w=E,S=n(9).a.flatten;class O extends _.a{constructor(e){super(),(e=S(e)||{}).transform&&(e=i()(i()({},e),{},{transform:new w(e.transform)})),this._style=e}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof y.a?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"===typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return this._walkStyleAndGetValues(this._style)}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof y.a?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"===typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof y.a&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof y.a&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof y.a&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof y.a){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return p.a.validateStyles(e),{type:"style",style:e}}}var T=O;class x extends y.a{constructor(e,t){super(),e.style&&(e=i()(i()({},e),{},{style:new T(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof y.a?(!n.__isNative||n instanceof T)&&(e[t]=n.__getValue()):e[t]=n instanceof b?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof y.a&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof y.a&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof y.a&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof y.a&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){g()(this.__isNative,'Expected node to be marked as "native"');var e=Object(h.a)(this._animatedView);g()(null!=e,"Unable to locate attached view in the native tree"),p.a.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){g()(this.__isNative,'Expected node to be marked as "native"');var e=Object(h.a)(this._animatedView);g()(null!=e,"Unable to locate attached view in the native tree"),p.a.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&p.a.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof y.a&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}}var C=x;var k=function(e){var t=e.getForwardedRef,n=e.setLocalRef;return function(e){var r=t();n(e),"function"===typeof r?r(e):"object"===typeof r&&null!=r&&(r.current=e)}},A=["style"],R=["style"],I=1;var N=function(e,t){g()("function"!==typeof e||e.prototype&&e.prototype.isReactComponent,"`createAnimatedComponent` does not support stateless functional components; use a class component instead.");class n extends l.Component{constructor(){super(...arguments),this._invokeAnimatedPropsCallbackOnMount=!1,this._eventDetachers=[],this._animatedComponentId=I+++":animatedComponent",this._isFabric=()=>{var e,t,n,r,i,o;return null!=this._component&&(null!=(null==(e=this._component._internalInstanceHandle)||null==(t=e.stateNode)?void 0:t.canonical)||null!=this._component.getNativeScrollRef&&null!=this._component.getNativeScrollRef()&&null!=(null==(n=this._component.getNativeScrollRef()._internalInstanceHandle)||null==(r=n.stateNode)?void 0:r.canonical)||null!=this._component.getScrollResponder&&null!=this._component.getScrollResponder()&&null!=this._component.getScrollResponder().getNativeScrollRef&&null!=this._component.getScrollResponder().getNativeScrollRef()&&null!=(null==(i=this._component.getScrollResponder().getNativeScrollRef()._internalInstanceHandle)||null==(o=i.stateNode)?void 0:o.canonical))},this._waitForUpdate=()=>{this._isFabric()&&p.a.API.setWaitingForIdentifier(this._animatedComponentId)},this._markUpdateComplete=()=>{this._isFabric()&&p.a.API.unsetWaitingForIdentifier(this._animatedComponentId)},this._animatedPropsCallback=()=>{if(null==this._component)this._invokeAnimatedPropsCallbackOnMount=!0;else if("function"!==typeof this._component.setNativeProps||this._isFabric())this.forceUpdate();else{if(this._propsAnimated.__isNative)throw new Error('Attempting to run JS driven animation on animated node that has been moved to "native" earlier by starting an animation with `useNativeDriver: true`');this._component.setNativeProps(this._propsAnimated.__getAnimatedValue())}},this._setComponentRef=k({getForwardedRef:()=>this.props.forwardedRef,setLocalRef:e=>{this._prevComponent=this._component,this._component=e,null!=e&&null==e.getNode&&(e.getNode=()=>{var t;return console.warn("%s: Calling `getNode()` on the ref of an Animated component is no longer necessary. You can now directly use the ref instead. This method will be removed in a future release.",null!==(t=e.constructor.name)&&void 0!==t?t:"<>"),e})}})}_attachNativeEvents(){var e,t=this,n=null!=(e=this._component)&&e.getScrollableNode?this._component.getScrollableNode():this._component,r=function(e){var r=t.props[e];r instanceof b&&r.__isNative&&(r.__attach(n,e),t._eventDetachers.push(()=>r.__detach(n,e)))};for(var i in this.props)r(i)}_detachNativeEvents(){this._eventDetachers.forEach(e=>e()),this._eventDetachers=[]}_attachProps(e){var t=this._propsAnimated;e!==t&&(this._propsAnimated=new C(e,this._animatedPropsCallback),t&&(t.__restoreDefaultValues(),t.__detach()))}render(){var t=this._propsAnimated.__getValue()||{},n=t.style,r=void 0===n?{}:n,o=d()(t,A),a=this.props.passthroughAnimatedPropExplicitValues||{},u=a.style,c=void 0===u?{}:u,f=d()(a,R),p=i()(i()({},r),c);return l.createElement(e,s()({},o,f,{style:p,ref:this._setComponentRef}))}UNSAFE_componentWillMount(){this._waitForUpdate(),this._attachProps(this.props)}componentDidMount(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents(),this._markUpdateComplete()}UNSAFE_componentWillReceiveProps(e){this._waitForUpdate(),this._attachProps(e)}componentDidUpdate(e){this._component!==this._prevComponent&&this._propsAnimated.setNativeView(this._component),this._component===this._prevComponent&&e===this.props||(this._detachNativeEvents(),this._attachNativeEvents()),this._markUpdateComplete()}componentWillUnmount(){this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents(),this._markUpdateComplete(),this._component=null,this._prevComponent=null}}return l.forwardRef((function(e,t){return l.createElement(n,s()({},e,null==t?null:{forwardedRef:t}))}))},P=N(l.forwardRef((e,t)=>l.createElement(u.a,s()({scrollEventThrottle:1e-4},e,{ref:t})))),D=N(n(51).a,{collapsable:!1}),L=n(44),M=N(l.forwardRef((e,t)=>l.createElement(L.a,s()({scrollEventThrottle:1e-4},e,{ref:t}))),{collapsable:!1}),j=n(384),F=N(l.forwardRef((e,t)=>l.createElement(j.a,s()({scrollEventThrottle:1e-4},e,{ref:t})))),B=N(n(18).a,{collapsable:!1}),U=N(n(5).a,{collapsable:!0}),H=n(79);class z extends _.a{constructor(e,t){super(),this._a="number"===typeof e?new f.a(e):e,this._b="number"===typeof t?new f.a(t):t}__makeNative(){this._a.__makeNative(),this._b.__makeNative(),super.__makeNative()}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new H.a(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var V=z;class W extends _.a{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(){this._a.__makeNative(),super.__makeNative()}interpolate(e){return new H.a(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}}var G=W;class q extends _.a{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof y.a&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"===typeof e?new f.a(e):e,this._b="number"===typeof t?new f.a(t):t}__makeNative(){this._a.__makeNative(),this._b.__makeNative(),super.__makeNative()}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new H.a(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var Y=q;class $ extends _.a{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(){this._a.__makeNative(),super.__makeNative()}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new H.a(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}}var K=$;class X extends _.a{constructor(e,t){super(),this._a="number"===typeof e?new f.a(e):e,this._b="number"===typeof t?new f.a(t):t}__makeNative(){this._a.__makeNative(),this._b.__makeNative(),super.__makeNative()}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new H.a(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var Z=X;class Q extends _.a{constructor(e,t){super(),this._a="number"===typeof e?new f.a(e):e,this._b="number"===typeof t?new f.a(t):t}__makeNative(){this._a.__makeNative(),this._b.__makeNative(),super.__makeNative()}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new H.a(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var J=Q;class ee extends y.a{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=Object(p.c)(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass(i()(i()({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass(i()(i()({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:Object(p.b)(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}var te=ee,ne=n(228),re=n(725),ie=n(547),oe=n(549),ae=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},se=function(e,t,n){if(e instanceof ne.a){var r=i()({},t),o=i()({},t);for(var a in t){var s=t[a],l=s.x,u=s.y;void 0!==l&&void 0!==u&&(r[a]=l,o[a]=u)}var c=n(e.x,r),d=n(e.y,o);return ce([c,d],{stopTogether:!1})}return null},le=function e(t,n){var r=function(e,t,n){n=ae(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof y.a?r.track(new te(r,t.toValue,oe.a,i,n)):r.animate(new oe.a(i),n)};return se(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var o=i()(i()({},n),{},{iterations:e});r(t,o)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},ue=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start((function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)}))},stop:function(){t{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},ce=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},de=function(e){return le(new f.a(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};var fe={Value:f.a,ValueXY:ne.a,Interpolation:H.a,Node:y.a,decay:function e(t,n){var r=function(e,t,n){n=ae(n,t);var r=e,i=t;r.stopTracking(),r.animate(new re.a(i),n)};return se(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var o=i()(i()({},n),{},{iterations:e});r(t,o)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:le,spring:function e(t,n){var r=function(e,t,n){n=ae(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof y.a?r.track(new te(r,t.toValue,ie.a,i,n)):r.animate(new ie.a(i),n)};return se(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var o=i()(i()({},n),{},{iterations:e});r(t,o)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new V(e,t)},subtract:function(e,t){return new J(e,t)},divide:function(e,t){return new Y(e,t)},multiply:function(e,t){return new Z(e,t)},modulo:function(e,t){return new K(e,t)},diffClamp:function(e,t,n){return new G(e,t,n)},delay:de,sequence:ue,parallel:ce,stagger:function(e,t){return ce(t.map((t,n)=>ue([de(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new b(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:N,attachNativeEvent:v,forkEvent:function(e,t){return e?e instanceof b?(e.__addListener(t),e):function(){"function"===typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof b&&e.__removeListener(t)},Event:b,__PropsOnlyForTests:C},pe={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},he={Value:f.a,ValueXY:ne.a,Interpolation:H.a,Node:y.a,decay:function(e,t){return pe},timing:function(e,t){var n=e;return i()(i()({},pe),{},{start:e=>{n.setValue(t.toValue),e&&e({finished:!0})}})},spring:function(e,t){var n=e;return i()(i()({},pe),{},{start:e=>{n.setValue(t.toValue),e&&e({finished:!0})}})},add:fe.add,subtract:fe.subtract,divide:fe.divide,multiply:fe.multiply,modulo:fe.modulo,diffClamp:fe.diffClamp,delay:function(e){return pe},sequence:function(e){return pe},parallel:function(e,t){return pe},stagger:function(e,t){return pe},loop:function(e,t){(void 0===t?{}:t).iterations;return pe},event:function(e,t){return null},createAnimatedComponent:N,attachNativeEvent:v,forkEvent:fe.forkEvent,unforkEvent:fe.unforkEvent,Event:b,__PropsOnlyForTests:C},me=o.a.isTesting?he:fe,ge=i()({FlatList:P,Image:D,ScrollView:M,SectionList:F,Text:B,View:U},me);t.a=ge},function(e,t,n){"use strict";var r=n(3),i=n(0),o=n.n(i),a=n(6),s=n(7),l=n(13),u=n(26),c=i.forwardRef((function(e,t){var n=e.children,o=e.classes,l=e.className,c=e.color,d=void 0===c?"inherit":c,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,m=void 0===h?"medium":h,g=e.htmlColor,v=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,_=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,Object(r.a)({className:Object(s.a)(o.root,l,"inherit"!==d&&o["color".concat(Object(u.a)(d))],"default"!==m&&"medium"!==m&&o["fontSize".concat(Object(u.a)(m))]),focusable:"false",viewBox:y,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},_),n,v?i.createElement("title",null,v):null)}));c.muiName="SvgIcon";var d=Object(l.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c);function f(e,t){var n=function(t,n){return o.a.createElement(d,Object(r.a)({ref:n},t),e)};return n.muiName=d.muiName,o.a.memo(o.a.forwardRef(n))}n.d(t,"a",(function(){return f}))},function(e,t,n){var r=n(568);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t{var n=e.hrefAttrs,r=e.numberOfLines,i=e.onClick,o=e.onLayout,u=e.onPress,m=e.onMoveShouldSetResponder,_=e.onMoveShouldSetResponderCapture,E=e.onResponderEnd,S=e.onResponderGrant,O=e.onResponderMove,T=e.onResponderReject,x=e.onResponderRelease,C=e.onResponderStart,k=e.onResponderTerminate,A=e.onResponderTerminationRequest,R=e.onScrollShouldSetResponder,I=e.onScrollShouldSetResponderCapture,N=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,D=e.onStartShouldSetResponder,L=e.onStartShouldSetResponderCapture,M=e.selectable,j=a()(e,b),F=s.useContext(g.a),B=s.useRef(null),U=Object(v.c)().direction;Object(d.a)(B,o),Object(h.a)(B,{onMoveShouldSetResponder:m,onMoveShouldSetResponderCapture:_,onResponderEnd:E,onResponderGrant:S,onResponderMove:O,onResponderReject:T,onResponderRelease:x,onResponderStart:C,onResponderTerminate:k,onResponderTerminationRequest:A,onScrollShouldSetResponder:R,onScrollShouldSetResponderCapture:I,onSelectionChangeShouldSetResponder:N,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:D,onStartShouldSetResponderCapture:L});var H=s.useCallback(e=>{null!=i?i(e):null!=u&&(e.stopPropagation(),u(e))},[i,u]),z=F?"span":"div",V=null!=e.lang?Object(v.b)(e.lang):null,W=e.dir||V,G=W||U,q=(e=>Object(c.a)(e,y))(j);if(q.dir=W,F||(q.dir=null!=W?W:"auto"),(i||u)&&(q.onClick=H),q.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===F?w.textHasAncestor$raw:w.text$raw,1===r&&w.textOneLine,null!=r&&r>1&&w.textMultiLine,e.style,!0===M&&w.selectable,!1===M&&w.notSelectable,u&&w.pressable],null!=e.href&&(z="a",null!=n)){var Y=n.download,$=n.rel,K=n.target;null!=Y&&(q.download=Y),null!=$&&(q.rel=$),"string"===typeof K&&(q.target="_"!==K.charAt(0)?"_"+K:K)}var X=Object(p.a)(q),Z=Object(f.a)(B,X,t);q.ref=Z;var Q=Object(l.a)(z,q,{writingDirection:G});return F?Q:s.createElement(g.a.Provider,{value:!0},Q)});_.displayName="Text";var E={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,textAlign:"inherit",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},w=m.a.create({text$raw:E,textHasAncestor$raw:i()(i()({},E),{},{color:"inherit",font:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});t.a=_},function(e,t,n){"use strict";var r=n(3),i=Object.prototype.hasOwnProperty;var o=function(e,t){return null!=e&&i.call(e,t)},a=n(406);var s=function(e,t){return null!=e&&Object(a.a)(e,t,o)},l=n(276);var u=function(e,t){return t="function"==typeof t?t:void 0,Object(l.a)(e,5,t)},c=n(88),d=n(202),f=n(149),p=n(116),h=n(106),m=n(50),g=n(75);var v=function(e){return"string"==typeof e||!Object(m.a)(e)&&Object(g.a)(e)&&"[object String]"==Object(h.a)(e)};var b=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},y=n(407),_=n(408);var E=function(e){return e.split("")},w=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var S=function(e){return w.test(e)},O="[\\ud800-\\udfff]",T="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",x="\\ud83c[\\udffb-\\udfff]",C="[^\\ud800-\\udfff]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",R="(?:"+T+"|"+x+")"+"?",I="[\\ufe0e\\ufe0f]?"+R+("(?:\\u200d(?:"+[C,k,A].join("|")+")[\\ufe0e\\ufe0f]?"+R+")*"),N="(?:"+[C+T+"?",T,k,A,O].join("|")+")",P=RegExp(x+"(?="+x+")|"+N+I,"g");var D=function(e){return e.match(P)||[]};var L=function(e){return S(e)?D(e):E(e)},M=n(203);var j=function(e,t){return Object(M.a)(t,(function(t){return e[t]}))},F=n(137);var B=function(e){return null==e?[]:j(e,Object(F.a)(e))},U=c.a?c.a.iterator:void 0;var H=function(e){if(!e)return[];if(Object(p.a)(e))return v(e)?L(e):Object(d.a)(e);if(U&&e[U])return b(e[U]());var t=Object(f.a)(e);return("[object Map]"==t?y.a:"[object Set]"==t?_.a:B)(e)},z=Object.prototype.toString,V=Error.prototype.toString,W=RegExp.prototype.toString,G="undefined"!==typeof Symbol?Symbol.prototype.toString:function(){return""},q=/^Symbol\((.*)\)(.*)$/;function Y(e,t){if(void 0===t&&(t=!1),null==e||!0===e||!1===e)return""+e;var n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'+e+'"':e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return G.call(e).replace(q,"Symbol($1)");var r=z.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+V.call(e)+"]":"RegExp"===r?W.call(e):null}function $(e,t){var n=Y(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){var r=Y(this[e],t);return null!==r?r:n}),2)}var K={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(e){var t=e.path,n=e.type,r=e.value,i=e.originalValue,o=null!=i&&i!==r,a=t+" must be a `"+n+"` type, but the final value was: `"+$(r,!0)+"`"+(o?" (cast from the value `"+$(i,!0)+"`).":".");return null===r&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},X={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Z={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",notEqual:"${path} must be not equal to ${notEqual}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Q={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},J={noUnknown:"${path} field has unspecified keys: ${unknown}"},ee={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items"},te=function(e){return e&&e.__isYupSchema__},ne=function(){function e(e,t){if(this.refs=e,"function"!==typeof t){if(!s(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var n=t.is,r=t.then,i=t.otherwise,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,se)}se.prototype=Object.create(Error.prototype),se.prototype.constructor=se,se.isError=function(e){return e&&"ValidationError"===e.name},se.formatError=function(e,t){"string"===typeof e&&(e=ae(e));var n=function(t){return t.path=t.label||t.path||"this","function"===typeof e?e(t):e};return 1===arguments.length?n:n(t)};var le=function(e){return e?ie.SynchronousPromise:Promise};function ue(e,t){return e?null:function(e){return t.push(e),e.value}}function ce(e){var t=e.validations,n=e.value,r=e.path,i=e.sync,o=e.errors,a=e.sort;return o=function(e){return void 0===e&&(e=[]),e.inner&&e.inner.length?e.inner:[].concat(e)}(o),function(e,t){var n=le(t);return n.all(e.map((function(e){return n.resolve(e).then((function(e){return{fulfilled:!0,value:e}}),(function(e){return{fulfilled:!1,value:e}}))})))}(t,i).then((function(e){var t=e.filter((function(e){return!e.fulfilled})).reduce((function(e,t){var n=t.value;if(!se.isError(n))throw n;return e.concat(n)}),[]);if(a&&t.sort(a),(o=t.concat(o)).length)throw new se(o,n,r);return n}))}function de(e){var t,n,r,i=e.endEarly,o=Object(re.a)(e,["endEarly"]);return i?(t=o.validations,n=o.value,r=o.sync,le(r).all(t).catch((function(e){throw"ValidationError"===e.name&&(e.value=n),e})).then((function(){return n}))):ce(o)}var fe=function(e){return"[object Object]"===Object.prototype.toString.call(e)};var pe=n(156),he=n(269),me=n(277);var ge=function(e,t){var n={};return t=Object(me.a)(t,3),Object(he.a)(e,(function(e,r,i){Object(pe.a)(n,r,t(e,r,i))})),n},ve=n(205),be="$",ye=".",_e=function(){function e(e,t){if(void 0===t&&(t={}),"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===be,this.isValue=this.key[0]===ye,this.isSibling=!this.isContext&&!this.isValue;var n=this.isContext?be:this.isValue?ye:"";this.path=this.key.slice(n.length),this.getter=this.path&&Object(ve.getter)(this.path,!0),this.map=t.map}var t=e.prototype;return t.getValue=function(e){var t=this.isContext?e.context:this.isValue?e.value:e.parent;return this.getter&&(t=this.getter(t||{})),this.map&&(t=this.map(t)),t},t.cast=function(e,t){return this.getValue(Object(r.a)({},t,{value:e}))},t.resolve=function(){return this},t.describe=function(){return{type:"ref",key:this.key}},t.toString=function(){return"Ref("+this.key+")"},e.isRef=function(e){return e&&e.__isYupRef},e}();_e.prototype.__isYupRef=!0;var Ee=se.formatError;function we(e){var t=e.value,n=e.label,i=e.resolve,o=e.originalValue,a=Object(re.a)(e,["value","label","resolve","originalValue"]);return function(e){var s=void 0===e?{}:e,l=s.path,u=void 0===l?a.path:l,c=s.message,d=void 0===c?a.message:c,f=s.type,p=void 0===f?a.name:f,h=s.params;return h=Object(r.a)({path:u,value:t,originalValue:o,label:n},function(e,t,n){return ge(Object(r.a)({},e,{},t),n)}(a.params,h,i)),Object(r.a)(new se(Ee(d,h),t,u,p),{params:h})}}function Se(e){var t=e.name,n=e.message,i=e.test,o=e.params;function a(e){var a=e.value,s=e.path,l=e.label,u=e.options,c=e.originalValue,d=e.sync,f=Object(re.a)(e,["value","path","label","options","originalValue","sync"]),p=u.parent,h=function(e){return _e.isRef(e)?e.getValue({value:a,parent:p,context:u.context}):e},m=we({message:n,path:s,value:a,originalValue:c,params:o,label:l,resolve:h,name:t}),g=Object(r.a)({path:s,parent:p,type:t,createError:m,resolve:h,options:u},f);return function(e,t,n,r){var i,o=e.call(t,n);if(!r)return Promise.resolve(o);if((i=o)&&"function"===typeof i.then&&"function"===typeof i.catch)throw new Error('Validation test of type: "'+t.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');return ie.SynchronousPromise.resolve(o)}(i,g,a,d).then((function(e){if(se.isError(e))throw e;if(!e)throw m()}))}return a.OPTIONS=e,a}function Oe(e,t,n,r){var i,o,a;return void 0===r&&(r=n),t?(Object(ve.forEach)(t,(function(s,l,u){var c=l?function(e){return e.substr(0,e.length-1).substr(1)}(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){var d=u?parseInt(c,10):0;if(n&&d>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+s+", in the path: "+t+". because there is no value at that index. ");i=n,n=n&&n[d],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error("The schema does not contain the path: "+t+". (failed at: "+a+' which is a type: "'+e._type+'")');i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s})),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}var Te=function(){function e(){this.list=new Set,this.refs=new Map}var t=e.prototype;return t.toArray=function(){return H(this.list).concat(H(this.refs.values()))},t.add=function(e){_e.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},t.delete=function(e){_e.isRef(e)?this.refs.delete(e.key):this.list.delete(e)},t.has=function(e,t){if(this.list.has(e))return!0;for(var n,r=this.refs.values();!(n=r.next()).done;)if(t(n.value)===e)return!0;return!1},t.clone=function(){var t=new e;return t.list=new Set(this.list),t.refs=new Map(this.refs),t},t.merge=function(e,t){var n=this.clone();return e.list.forEach((function(e){return n.add(e)})),e.refs.forEach((function(e){return n.add(e)})),t.list.forEach((function(e){return n.delete(e)})),t.refs.forEach((function(e){return n.delete(e)})),n},e}();function xe(e){var t=this;if(void 0===e&&(e={}),!(this instanceof xe))return new xe;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new Te,this._blacklist=new Te,this.tests=[],this.transforms=[],this.withMutation((function(){t.typeError(K.notType)})),s(e,"default")&&(this._defaultDefault=e.default),this.type=e.type||"mixed",this._type=e.type||"mixed"}for(var Ce=xe.prototype={__isYupSchema__:!0,constructor:xe,clone:function(){var e=this;return this._mutate?this:u(this,(function(t){if(te(t)&&t!==e)return t}))},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=Object(r.a)(t._meta||{},e),t},withMutation:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n},concat:function(e){if(!e||e===this)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=function e(t,n){for(var r in n)if(s(n,r)){var i=n[r],o=t[r];if(void 0===o)t[r]=i;else{if(o===i)continue;te(o)?te(i)&&(t[r]=i.concat(o)):fe(o)?fe(i)&&(t[r]=e(o,i)):Array.isArray(o)&&Array.isArray(i)&&(t[r]=i.concat(o))}}return t}(e.clone(),this);return s(e,"_default")&&(t._default=e._default),t.tests=this.tests,t._exclusive=this._exclusive,t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),t},isType:function(e){return!(!this._nullable||null!==e)||(!this._typeCheck||this._typeCheck(e))},resolve:function(e){var t=this;if(t._conditions.length){var n=t._conditions;(t=t.clone())._conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t},cast:function(e,t){void 0===t&&(t={});var n=this.resolve(Object(r.a)({},t,{value:e})),i=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(i)){var o=$(e),a=$(i);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+o+" \n"+(a!==o?"result of cast: "+a:""))}return i},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce((function(n,r){return r.call(t,n,e)}),e);return void 0===n&&s(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var i=e,o=null!=t.originalValue?t.originalValue:e,a=this._option("strict",t),s=this._option("abortEarly",t),l=t.sync,u=t.path,c=this._label;a||(i=this._cast(i,Object(r.a)({assert:!1},t)));var d={value:i,path:u,schema:this,options:t,label:c,originalValue:o,sync:l},f=[];return this._typeError&&f.push(this._typeError(d)),this._whitelistError&&f.push(this._whitelistError(d)),this._blacklistError&&f.push(this._blacklistError(d)),de({validations:f,endEarly:s,value:i,path:u,sync:l}).then((function(e){return de({path:u,sync:l,value:e,endEarly:s,validations:n.tests.map((function(e){return e(d)}))})}))},validate:function(e,t){return void 0===t&&(t={}),this.resolve(Object(r.a)({},t,{value:e}))._validate(e,t)},validateSync:function(e,t){var n,i;if(void 0===t&&(t={}),this.resolve(Object(r.a)({},t,{value:e}))._validate(e,Object(r.a)({},t,{sync:!0})).then((function(e){return n=e})).catch((function(e){return i=e})),i)throw i;return n},isValid:function(e,t){return this.validate(e,t).then((function(){return!0})).catch((function(e){if("ValidationError"===e.name)return!1;throw e}))},isValidSync:function(e,t){try{return this.validateSync(e,t),!0}catch(n){if("ValidationError"===n.name)return!1;throw n}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=s(this,"_default")?this._default:this._defaultDefault;return"function"===typeof t?t.call(this):u(t)}var n=this.clone();return n._default=e,n},strict:function(e){void 0===e&&(e=!0);var t=this.clone();return t._options.strict=e,t},_isPresent:function(e){return null!=e},required:function(e){return void 0===e&&(e=K.required),this.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e},nullable:function(e){void 0===e&&(e=!0);var t=this.clone();return t._nullable=e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){var e;if(void 0===(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=K.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=Se(e),r=e.exclusive||e.name&&!0===t._exclusive[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t._exclusive[e.name]=!!e.exclusive,t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t},when:function(e,t){1===arguments.length&&(t=e,e=".");var n=this.clone(),r=[].concat(e).map((function(e){return new _e(e)}));return r.forEach((function(e){e.isSibling&&n._deps.push(e.key)})),n._conditions.push(new ne(r,t)),n},typeError:function(e){var t=this.clone();return t._typeError=Se({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=K.oneOf);var n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=Se({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=K.notOneOf);var n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=Se({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return s(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone();return{type:e._type,meta:e._meta,label:e._label,tests:e.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))}},defined:function(e){return void 0===e&&(e=K.defined),this.nullable().test({message:e,name:"defined",exclusive:!0,test:function(e){return void 0!==e}})}},ke=function(){var e=Re[Ae];Ce[e+"At"]=function(t,n,i){void 0===i&&(i={});var o=Oe(this,t,n,i.context),a=o.parent,s=o.parentPath;return o.schema[e](a&&a[s],Object(r.a)({},i,{parent:a,path:t}))}},Ae=0,Re=["validate","validateSync"];Ae0},length:function(e,t){return void 0===t&&(t=X.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return Fe(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=X.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Fe(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=X.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return Fe(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,r,i=!1;return t&&("object"===typeof t?(i=t.excludeEmptyString,n=t.message,r=t.name):n=t),this.test({name:r||"matches",message:n||X.matches,params:{regex:e},test:function(t){return Fe(t)||""===t&&i||-1!==t.search(e)}})},email:function(e){return void 0===e&&(e=X.email),this.matches(Be,{name:"email",message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=X.url),this.matches(Ue,{name:"url",message:e,excludeEmptyString:!0})},ensure:function(){return this.default("").transform((function(e){return null===e?"":e}))},trim:function(e){return void 0===e&&(e=X.trim),this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:He})},lowercase:function(e){return void 0===e&&(e=X.lowercase),this.transform((function(e){return Fe(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return Fe(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=X.uppercase),this.transform((function(e){return Fe(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return Fe(e)||e===e.toUpperCase()}})}});function Ve(){var e=this;if(!(this instanceof Ve))return new Ve;xe.call(this,{type:"number"}),this.withMutation((function(){e.transform((function(e){var t=e;if("string"===typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}))}Le(Ve,xe,{_typeCheck:function(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!function(e){return e!=+e}(e)},min:function(e,t){return void 0===t&&(t=Z.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Fe(t)||t>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=Z.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return Fe(t)||t<=this.resolve(e)}})},lessThan:function(e,t){return void 0===t&&(t=Z.lessThan),this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return Fe(t)||tthis.resolve(e)}})},positive:function(e){return void 0===e&&(e=Z.positive),this.moreThan(0,e)},negative:function(e){return void 0===e&&(e=Z.negative),this.lessThan(0,e)},integer:function(e){return void 0===e&&(e=Z.integer),this.test({name:"integer",message:e,test:function(e){return Fe(e)||Number.isInteger(e)}})},truncate:function(){return this.transform((function(e){return Fe(e)?e:0|e}))},round:function(e){var t=["ceil","floor","round","trunc"];if("trunc"===(e=e&&e.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+t.join(", "));return this.transform((function(t){return Fe(t)?t:Math[e](t)}))}});var We=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;var Ge=new Date("");function qe(){var e=this;if(!(this instanceof qe))return new qe;xe.call(this,{type:"date"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=We.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?Ge:new Date(e))}))}))}function Ye(e,t){return t||(t=e.slice(0)),e.raw=t,e}Le(qe,xe,{_typeCheck:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t},min:function(e,t){void 0===t&&(t=Q.min);var n=e;if(!_e.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return Fe(e)||e>=this.resolve(n)}})},max:function(e,t){void 0===t&&(t=Q.max);var n=e;if(!_e.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return Fe(e)||e<=this.resolve(n)}})}});var $e=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:Ot(e,t,n)};var xt=function(e){return function(t){t=Object(Xe.a)(t);var n=S(t)?L(t):void 0,r=n?n[0]:t.charAt(0),i=n?Tt(n,1).join(""):t.slice(1);return r[e]()+i}}("toUpperCase");var Ct=function(e){return xt(Object(Xe.a)(e).toLowerCase())},kt=wt((function(e,t,n){return t=t.toLowerCase(),e+(n?Ct(t):t)}));var At=function(e,t){var n={};return t=Object(me.a)(t,3),Object(he.a)(e,(function(e,r,i){Object(pe.a)(n,t(e,r,i),e)})),n},Rt=n(728),It=n.n(Rt);function Nt(e,t){void 0===t&&(t=[]);var n=[],r=[];function i(e,i){var o=Object(ve.split)(e)[0];~r.indexOf(o)||r.push(o),~t.indexOf(i+"-"+o)||n.push([i,o])}for(var o in e)if(s(e,o)){var a=e[o];~r.indexOf(o)||r.push(o),_e.isRef(a)&&a.isSibling?i(a.path,o):te(a)&&a._deps&&a._deps.forEach((function(e){return i(e,o)}))}return It.a.array(r,n).reverse()}function Pt(e,t){var n=1/0;return e.some((function(e,r){if(-1!==t.path.indexOf(e))return n=r,!0})),n}function Dt(e){var t=Object.keys(e);return function(e,n){return Pt(t,e)-Pt(t,n)}}function Lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0},of:function(e){var t=this.clone();if(!1!==e&&!te(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+$(e));return t._subType=e,t.innerType=e,t},min:function(e,t){return t=t||ee.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Fe(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||ee.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return Fe(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default((function(){return[]})).transform((function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)}))},compact:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))},describe:function(){var e=xe.prototype.describe.call(this);return this.innerType&&(e.innerType=this.innerType.describe()),e}});var Gt=function(){function e(e){this._resolve=function(t,n){var r=e(t,n);if(!te(r))throw new TypeError("lazy() functions must return a valid schema");return r.resolve(n)}}var t=e.prototype;return t.resolve=function(e){return this._resolve(e.value,e)},t.cast=function(e,t){return this._resolve(e,t).cast(e,t)},t.validate=function(e,t){return this._resolve(e,t).validate(e,t)},t.validateSync=function(e,t){return this._resolve(e,t).validateSync(e,t)},t.validateAt=function(e,t,n){return this._resolve(t,n).validateAt(e,t,n)},t.validateSyncAt=function(e,t,n){return this._resolve(t,n).validateSyncAt(e,t,n)},e}();Gt.prototype.__isYupSchema__=!0;n.d(t,"b",(function(){return qt})),n.d(t,"e",(function(){return Yt})),n.d(t,"f",(function(){return ze})),n.d(t,"c",(function(){return Ve})),n.d(t,"d",(function(){return Ut})),n.d(t,"a",(function(){return Vt}));var qt=Me,Yt=function(e,t){return new _e(e,t)}},function(e,t,n){"use strict";e.exports=n(1398)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(846)),i=u(n(916)),o=u(n(938)),a=u(n(939)),s=u(n(940)),l=u(n(941));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";(function(e){function r(e,t,n){return(t=s(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=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(n.attributes=t),this.push(n))}},{key:"delete",value:function(e){return e<=0?this:this.push({delete:e})}},{key:"retain",value:function(e,t){if("number"===typeof e&&e<=0)return this;var n={retain:e};return null!=t&&"object"===l(t)&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}},{key:"push",value:function(e){var t=this.ops.length,n=this.ops[t-1];if(e=c(e),"object"===l(n)){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==l(n=this.ops[t-1])))return this.ops.unshift(e),this;if(d(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===l(e.attributes)&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===l(e.attributes)&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}},{key:"chop",value:function(){var e=this.ops[this.ops.length-1];return e&&"number"===typeof e.retain&&!e.attributes&&this.ops.pop(),this}},{key:"filter",value:function(e){return this.ops.filter(e)}},{key:"forEach",value:function(e){this.ops.forEach(e)}},{key:"map",value:function(e){return this.ops.map(e)}},{key:"partition",value:function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]}},{key:"reduce",value:function(e,t){return this.ops.reduce(e,t)}},{key:"changeLength",value:function(){return this.reduce((function(e,t){return t.insert?e+p.default.length(t):t.delete?e-t.delete:e}),0)}},{key:"length",value:function(){return this.reduce((function(e,t){return e+p.default.length(t)}),0)}},{key:"slice",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=[],i=new h.default(this.ops),o=0;o0&&o.next(s.retain-u)}for(var c=new e(a);n.hasNext()||o.hasNext();)if("insert"===o.peekType())c.push(o.next());else if("delete"===n.peekType())c.push(n.next());else{var p=Math.min(n.peekLength(),o.peekLength()),m=n.next(p),v=o.next(p);if(v.retain){var b={};if("number"===typeof m.retain)b.retain="number"===typeof v.retain?p:v.retain;else if("number"===typeof v.retain)null==m.retain?b.insert=m.insert:b.retain=m.retain;else{var y=null==m.retain?"insert":"retain",_=i(g(m[y],v.retain),3),E=_[0],w=_[1],S=_[2],O=e.getHandler(E);b[y]=r({},E,O.compose(w,S,"retain"===y))}var T=f.default.compose(m.attributes,v.attributes,"number"===typeof m.retain);if(T&&(b.attributes=T),c.push(b),!o.hasNext()&&d(c.ops[c.ops.length-1],b)){var x=new e(n.rest());return c.concat(x).chop()}}else"number"===typeof v.delete&&("number"===typeof m.retain||"object"===l(m.retain)&&null!==m.retain)&&c.push(v)}return c.chop()}},{key:"concat",value:function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n}},{key:"diff",value:function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:m;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),i=new e,o=u(r[0],r[1],n,!0),a=new h.default(this.ops),s=new h.default(t.ops);return o.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case u.INSERT:n=Math.min(s.peekLength(),t),i.push(s.next(n));break;case u.DELETE:n=Math.min(t,a.peekLength()),a.next(n),i.delete(n);break;case u.EQUAL:n=Math.min(a.peekLength(),s.peekLength(),t);var r=a.next(n),o=s.next(n);d(r.insert,o.insert)?i.retain(n,f.default.diff(r.attributes,o.attributes)):i.push(o).delete(n)}t-=n}})),i.chop()}},{key:"eachLine",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\n",r=new h.default(this.ops),i=new e,o=0;r.hasNext();){if("insert"!==r.peekType())return;var a=r.peek(),s=p.default.length(a)-r.peekLength(),l="string"===typeof a.insert?a.insert.indexOf(n,s)-s:-1;if(l<0)i.push(r.next());else if(l>0)i.push(r.next(l));else{if(!1===t(i,r.next(1).attributes||{},o))return;o+=1,i=new e}}i.length()>0&&t(i,{},o)}},{key:"invert",value:function(t){var n=new e;return this.reduce((function(o,a){if(a.insert)n.delete(p.default.length(a));else{if("number"===typeof a.retain&&null==a.attributes)return n.retain(a.retain),o+a.retain;if(a.delete||"number"===typeof a.retain){var s=a.delete||a.retain;return t.slice(o,o+s).forEach((function(e){a.delete?n.push(e):a.retain&&a.attributes&&n.retain(p.default.length(e),f.default.invert(a.attributes,e.attributes))})),o+s}if("object"===l(a.retain)&&null!==a.retain){var u=t.slice(o,o+1),c=new h.default(u.ops).next(),d=i(g(a.retain,c.insert),3),m=d[0],v=d[1],b=d[2],y=e.getHandler(m);return n.retain(r({},m,y.invert(v,b)),f.default.invert(a.attributes,c.attributes)),o+1}}return o}),0),n.chop()}},{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n=!!n,"number"===typeof t)return this.transformPosition(t,n);for(var i=t,o=new h.default(this.ops),a=new h.default(i.ops),s=new e;o.hasNext()||a.hasNext();)if("insert"!==o.peekType()||!n&&"insert"===a.peekType())if("insert"===a.peekType())s.push(a.next());else{var u=Math.min(o.peekLength(),a.peekLength()),c=o.next(u),d=a.next(u);if(c.delete)continue;if(d.delete)s.push(d);else{var m=c.retain,g=d.retain,v="object"===l(g)&&null!==g?g:u;if("object"===l(m)&&null!==m&&"object"===l(g)&&null!==g){var b=Object.keys(m)[0];if(b===Object.keys(g)[0]){var y=e.getHandler(b);y&&(v=r({},b,y.transform(m[b],g[b],n)))}}s.retain(v,f.default.transform(c.attributes,d.attributes,n))}}else s.retain(p.default.length(o.next()));return s.chop()}},{key:"transformPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!!t;for(var n=new h.default(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):f(e,t)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},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(t){console.error(t)}}}(),e.exports=n(789)},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement);t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5}},,function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(33),a=n.n(o),s=n(0),l=n(87),u=n(211),c=n(9),d=n(5),f=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function p(e,t){var n=e.activeOpacity,r=e.delayPressIn,o=e.delayPressOut,c=e.delayLongPress,p=e.disabled,m=e.focusable,g=e.onLongPress,v=e.onPress,b=e.onPressIn,y=e.onPressOut,_=e.rejectResponderTermination,E=e.style,w=a()(e,f),S=Object(s.useRef)(null),O=Object(l.a)(t,S),T=Object(s.useState)("0s"),x=T[0],C=T[1],k=Object(s.useState)(null),A=k[0],R=k[1],I=Object(s.useCallback)((e,t)=>{R(e),C(t?t/1e3+"s":"0s")},[R,C]),N=Object(s.useCallback)(e=>{I(null!==n&&void 0!==n?n:.2,e)},[n,I]),P=Object(s.useCallback)(e=>{I(null,e)},[I]),D=Object(s.useMemo)(()=>({cancelable:!_,disabled:p,delayLongPress:c,delayPressStart:r,delayPressEnd:o,onLongPress:g,onPress:v,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;N(t?0:150),null!=b&&b(e)},onPressEnd(e){P(250),null!=y&&y(e)}}),[c,r,o,p,g,v,b,y,_,N,P]),L=Object(u.a)(S,D);return s.createElement(d.a,i()({},w,L,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"none":void 0,ref:O,style:[h.root,!p&&h.actionable,E,null!=A&&{opacity:A},{transitionDuration:x}]}))}var h=c.a.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),m=s.memo(s.forwardRef(p));m.displayName="TouchableOpacity",t.a=m},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return w}));var r,i=n(724),o=n(723),a=n(417),s=n(11),l=n(14),u=n.n(l),c="ios"===s.a.OS&&e.RN$Bridgeless?o.a:i.a,d=1,f=1,p=new Set,h=!1,m=[],g={getValue:function(e,t){u()(c,"Native animated module is not available"),c.getValue&&c.getValue(e,t)},setWaitingForIdentifier:function(e){p.add(e),h=!0},unsetWaitingForIdentifier:function(e){p.delete(e),0===p.size&&(h=!1,g.disableQueue())},disableQueue:function(){u()(c,"Native animated module is not available"),"android"===s.a.OS&&c.startOperationBatch();for(var e=0,t=m.length;e{h?m.push(e):e()},createAnimatedNode:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.createAnimatedNode(e,t))},startListeningToAnimatedNodeValue:function(e){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.startListeningToAnimatedNodeValue(e))},stopListeningToAnimatedNodeValue:function(e){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.stopListeningToAnimatedNodeValue(e))},connectAnimatedNodes:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.connectAnimatedNodes(e,t))},disconnectAnimatedNodes:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.disconnectAnimatedNodes(e,t))},startAnimatingNode:function(e,t,n,r){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.startAnimatingNode(e,t,n,r))},stopAnimation:function(e){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.stopAnimation(e))},setAnimatedNodeValue:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.setAnimatedNodeValue(e,t))},setAnimatedNodeOffset:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.setAnimatedNodeOffset(e,t))},flattenAnimatedNodeOffset:function(e){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.flattenAnimatedNodeOffset(e))},extractAnimatedNodeOffset:function(e){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.extractAnimatedNodeOffset(e))},connectAnimatedNodeToView:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.connectAnimatedNodeToView(e,t))},disconnectAnimatedNodeFromView:function(e,t){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.disconnectAnimatedNodeFromView(e,t))},restoreDefaultValues:function(e){u()(c,"Native animated module is not available"),null!=c.restoreDefaultValues&&g.queueOperation(()=>c.restoreDefaultValues(e))},dropAnimatedNode:function(e){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.dropAnimatedNode(e))},addAnimatedEventToView:function(e,t,n){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.addAnimatedEventToView(e,t,n))},removeAnimatedEventFromView(e,t,n){u()(c,"Native animated module is not available"),g.queueOperation(()=>c.removeAnimatedEventFromView(e,t,n))}},v={opacity:!0,transform:!0,borderRadius:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},b={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},y={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function _(){return f++}var E=!1;function w(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||c?e.useNativeDriver||!1:(E||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),E=!0),!1)}t.a={API:g,addWhitelistedStyleProp:function(e){v[e]=!0},addWhitelistedTransformProp:function(e){b[e]=!0},addWhitelistedInterpolationParam:function(e){y[e]=!0},validateStyles:function(e){for(var t in e)if(!v.hasOwnProperty(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!b.hasOwnProperty(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!y.hasOwnProperty(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return d++},generateNewAnimationId:_,assertNativeAnimatedModule:function(){u()(c,"Native animated module is not available")},shouldUseNativeDriver:w,transformDataType:function(e){return"string"!==typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return r||(r=new a.a(c)),r}}}).call(this,n(54))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(115);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(14),i=n.n(r),o=n(35),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.a;function u(){if(o.a){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height),t=Math.round(r.width)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function c(){u(),Array.isArray(s.change)&&s.change.forEach(e=>e(a))}class d{static get(e){return l&&(l=!1,u()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.a?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter(e=>e!==t))}}o.a&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},function(e,t,n){"use strict";var r=n(39),i=n(14),o=n.n(i),a=r.a.API,s=1;t.a=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(r.a.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(s++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),a.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=r.a.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this._onAnimatedValueUpdateReceived(e.value)}))}_onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,a.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;r.a.assertNativeAnimatedModule(),o()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:r.a.generateNewNodeTag();return null==this.__nativeTag&&(this.__nativeTag=t,r.a.API.createAnimatedNode(t,this.__getNativeConfig()),this.__shouldUpdateListenersForNewNativeTag=!0),t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}}},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(31),a=n.n(o),s=n(33),l=n.n(s),u=n(711),c=n.n(u),d=n(388),f=n(14),p=n.n(f),h=n(390),m=n(42),g=n(105),v=n(11),b=n(142),y=n(63),_=n(712),E=n.n(_),w={},S={Mixin:{scrollResponderMixinGetInitialState:function(){return{isTouching:!1,lastMomentumScrollBeginTime:0,lastMomentumScrollEndTime:0,observedScrollSinceBecomingResponder:!1,becameResponderWhileAnimating:!1}},scrollResponderHandleScrollShouldSetResponder:function(){return this.state.isTouching},scrollResponderHandleStartShouldSetResponder:function(){return!1},scrollResponderHandleStartShouldSetResponderCapture:function(e){return this.scrollResponderIsAnimating()},scrollResponderHandleResponderReject:function(){E()(!1,"ScrollView doesn't take rejection well - scrolls anyway")},scrollResponderHandleTerminationRequest:function(){return!this.state.observedScrollSinceBecomingResponder},scrollResponderHandleTouchEnd:function(e){var t=e.nativeEvent;this.state.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},scrollResponderHandleResponderRelease:function(e){this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=b.a.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),b.a.blurTextInput(t))},scrollResponderHandleScroll:function(e){this.state.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},scrollResponderHandleResponderGrant:function(e){this.state.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.state.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},scrollResponderHandleScrollBeginDrag:function(e){this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},scrollResponderHandleScrollEndDrag:function(e){this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},scrollResponderHandleMomentumScrollBegin:function(e){this.state.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},scrollResponderHandleMomentumScrollEnd:function(e){this.state.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},scrollResponderHandleTouchStart:function(e){this.state.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},scrollResponderHandleTouchMove:function(e){this.props.onTouchMove&&this.props.onTouchMove(e)},scrollResponderIsAnimating:function(){return Date.now()-this.state.lastMomentumScrollEndTime<16||this.state.lastMomentumScrollEndTime{var n=e.onScroll,r=e.onTouchMove,i=e.onWheel,o=e.scrollEnabled,s=void 0===o||o,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,p=e.style,h=l()(e,A),m=O.useRef({isScrolling:!1,scrollLastTick:0}),g=O.useRef(null),v=O.useRef(null);function b(e){return t=>{s&&e&&e(t)}}function y(e){m.current.scrollLastTick=Date.now(),n&&n(R(e))}var _=!1===d||!1===f;return O.createElement(C.a,a()({},h,{onScroll:function(e){e.stopPropagation(),e.target===v.current&&(e.persist(),null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{!function(e){m.current.isScrolling=!1,n&&n(R(e))}(e)},100),m.current.isScrolling?function(e,t){var n=Date.now()-e;return t>0&&n>=t}(m.current.scrollLastTick,c)&&y(e):function(e){m.current.isScrolling=!0,y(e)}(e))},onTouchMove:b(r),onWheel:b(i),ref:Object(k.a)(v,t),style:[p,!s&&N.scrollDisabled,_&&N.hideScrollbar]}))}),N=x.a.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}}),P=I,D=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],L={},M=c()({displayName:"ScrollView",mixins:[S.Mixin],getInitialState(){return this.scrollResponderMixinGetInitialState()},flashScrollIndicators(){this.scrollResponderFlashScrollIndicators()},getScrollResponder(){return this},getScrollableNode(){return this._scrollNodeRef},getInnerViewRef(){return this._innerViewRef},getInnerViewNode(){return this._innerViewRef},getNativeScrollRef(){return this._scrollNodeRef},scrollTo(e,t,n){if("number"===typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||L;t=r.x,e=r.y,n=r.animated}this.getScrollResponder().scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},scrollToEnd(e){var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollResponder(),i=r.scrollResponderGetScrollableNode(),o=n?i.scrollWidth:0,a=n?0:i.scrollHeight;r.scrollResponderScrollTo({x:o,y:a,animated:t})},render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,r=e.onContentSizeChange,o=e.refreshControl,s=e.stickyHeaderIndices,u=e.pagingEnabled,c=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),d=l()(e,D),f={};r&&(f={onLayout:this._handleContentOnLayout});var h=!n&&Array.isArray(s),m=h||u?T.a.Children.map(this.props.children,(e,t)=>{var n=h&&s.indexOf(t)>-1;return null!=e&&(n||u)?T.a.createElement(C.a,{style:x.a.compose(n&&F.stickyHeader,u&&F.pagingEnabledChild)},e):e}):this.props.children,g=T.a.createElement(C.a,a()({},f,{children:m,collapsable:!1,ref:this._setInnerViewRef,style:[n&&F.contentContainerHorizontal,c&&F.contentContainerCenterContent,t]})),v=n?F.baseHorizontal:F.baseVertical,b=n?F.pagingEnabledHorizontal:F.pagingEnabledVertical,y=i()(i()({},d),{},{style:[v,u&&b,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),_=P;p()(void 0!==_,"ScrollViewClass must not be undefined");var E=T.a.createElement(_,a()({},y,{ref:this._setScrollNodeRef}),g);return o?T.a.cloneElement(o,{style:y.style},E):E},_handleContentOnLayout(e){var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},_handleScroll(e){"on-drag"===this.props.keyboardDismissMode&&Object(d.a)(),this.scrollResponderHandleScroll(e)},_setInnerViewRef(e){this._innerViewRef=e},_setScrollNodeRef(e){this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),Object(h.a)(this.props.forwardedRef)(e)}}),j={flexGrow:1,flexShrink:1,transform:[{translateZ:0}],WebkitOverflowScrolling:"touch"},F=x.a.create({baseVertical:i()(i()({},j),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:i()(i()({},j),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),B=T.a.forwardRef((e,t)=>T.a.createElement(M,a()({},e,{forwardedRef:t})));B.displayName="ScrollView";t.a=B},function(e,t,n){"use strict";var r=n(0),i=n(183),o=n.n(i),a=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)};var s="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function u(e,t,n){return e.concat(t).map((function(e){return l(e,n)}))}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=l(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=c(e[i],t[i],n):r[i]=l(t[i],n)})),r}(e,t,n):l(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var d=c,f=n(326),p=n(276);var h=function(e){return Object(p.a)(e,4)},m=n(203),g=n(202),v=n(50),b=n(158),y=n(433),_=n(159),E=n(138);var w=function(e){return Object(v.a)(e)?Object(m.a)(e,_.a):Object(b.a)(e)?[e]:Object(g.a)(Object(y.a)(Object(E.a)(e)))},S=n(107),O=n(139),T=n.n(O),x=n(729);function C(){return(C=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return K})),n.d(t,"b",(function(){return $}));var I=function(e){return Array.isArray(e)&&0===e.length},N=function(e){return"function"===typeof e},P=function(e){return null!==e&&"object"===typeof e},D=function(e){return String(Math.floor(Number(e)))===e},L=function(e){return"[object String]"===Object.prototype.toString.call(e)},M=function(e){return 0===r.Children.count(e)},j=function(e){return P(e)&&N(e.then)};function F(e,t,n,r){void 0===r&&(r=0);for(var i=w(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function U(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;F(t,a.path)||(t=B(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[g.validationSchema]),R=Object(r.useCallback)((function(e,t){return new Promise((function(n){return n(w.current[e].validate(t))}))}),[]),I=Object(r.useCallback)((function(e){var t=Object.keys(w.current).filter((function(e){return N(w.current[e].validate)})),n=t.length>0?t.map((function(t){return R(t,F(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=B(e,t[r],n)),e}),{})}))}),[R]),D=Object(r.useCallback)((function(e){return Promise.all([I(e),g.validationSchema?k(e):{},g.validate?x(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:X})}))}),[g.validate,g.validationSchema,I,x,k]),M=Q((function(e){return void 0===e&&(e=O.values),T({type:"SET_ISVALIDATING",payload:!0}),D(e).then((function(e){return E.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:e})),e}))}));Object(r.useEffect)((function(){l&&!0===E.current&&o()(v.current,g.initialValues)&&M(v.current)}),[l,M]);var U=Object(r.useCallback)((function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:b.current?b.current:g.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:g.initialTouched||{},i=e&&e.status?e.status:_.current?_.current:g.initialStatus;v.current=t,b.current=n,y.current=r,_.current=i;var o=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(g.onReset){var a=g.onReset(O.values,ce);j(a)?a.then(o):o()}else o()}),[g.initialErrors,g.initialStatus,g.initialTouched]);Object(r.useEffect)((function(){!0!==E.current||o()(v.current,g.initialValues)||(p&&(v.current=g.initialValues,U()),l&&M(v.current))}),[p,g.initialValues,U,l,M]),Object(r.useEffect)((function(){p&&!0===E.current&&!o()(b.current,g.initialErrors)&&(b.current=g.initialErrors||q,T({type:"SET_ERRORS",payload:g.initialErrors||q}))}),[p,g.initialErrors]),Object(r.useEffect)((function(){p&&!0===E.current&&!o()(y.current,g.initialTouched)&&(y.current=g.initialTouched||Y,T({type:"SET_TOUCHED",payload:g.initialTouched||Y}))}),[p,g.initialTouched]),Object(r.useEffect)((function(){p&&!0===E.current&&!o()(_.current,g.initialStatus)&&(_.current=g.initialStatus,T({type:"SET_STATUS",payload:g.initialStatus}))}),[p,g.initialStatus,g.initialTouched]);var H=Q((function(e){if(w.current[e]&&N(w.current[e].validate)){var t=F(O.values,e),n=w.current[e].validate(t);return j(n)?(T({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),T({type:"SET_ISVALIDATING",payload:!1})}))):(T({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(T({type:"SET_ISVALIDATING",payload:!0}),k(O.values,e).then((function(e){return e})).then((function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),T({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),z=Object(r.useCallback)((function(e,t){var n=t.validate;w.current[e]={validate:n}}),[]),V=Object(r.useCallback)((function(e){delete w.current[e]}),[]),W=Q((function(e,t){return T({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?M(O.values):Promise.resolve()})),$=Object(r.useCallback)((function(e){T({type:"SET_ERRORS",payload:e})}),[]),K=Q((function(e,t){var r=N(e)?e(O.values):e;return T({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?M(r):Promise.resolve()})),Z=Object(r.useCallback)((function(e,t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),J=Q((function(e,t,r){return T({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?M(B(O.values,e,t)):Promise.resolve()})),ee=Object(r.useCallback)((function(e,t){var n,r=t,i=e;if(!L(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||(s||l),i=/number|range/.test(a)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),i=o>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(F(O.values,r),c,u):d&&f?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):u}r&&J(r,i)}),[J,O.values]),te=Q((function(e){if(L(e))return function(t){return ee(t,e)};ee(e)})),ne=Q((function(e,t,n){return void 0===t&&(t=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?M(O.values):Promise.resolve()})),re=Object(r.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));ne(o,!0)}),[ne]),ie=Q((function(e){if(L(e))return function(t){return re(t,e)};re(e)})),oe=Object(r.useCallback)((function(e){N(e)?T({type:"SET_FORMIK_STATE",payload:e}):T({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),ae=Object(r.useCallback)((function(e){T({type:"SET_STATUS",payload:e})}),[]),se=Object(r.useCallback)((function(e){T({type:"SET_ISSUBMITTING",payload:e})}),[]),le=Q((function(){return T({type:"SUBMIT_ATTEMPT"}),M().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=de()))return}catch(r){throw r}return Promise.resolve(n).then((function(e){return E.current&&T({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(E.current)throw T({type:"SUBMIT_FAILURE"}),e}))}if(E.current&&(T({type:"SUBMIT_FAILURE"}),t))throw e}))})),ue=Q((function(e){e&&e.preventDefault&&N(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&N(e.stopPropagation)&&e.stopPropagation(),le().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),ce={resetForm:U,validateForm:M,validateField:H,setErrors:$,setFieldError:Z,setFieldTouched:ne,setFieldValue:J,setStatus:ae,setSubmitting:se,setTouched:W,setValues:K,setFormikState:oe,submitForm:le},de=Q((function(){return h(O.values,ce)})),fe=Q((function(e){e&&e.preventDefault&&N(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&N(e.stopPropagation)&&e.stopPropagation(),U()})),pe=Object(r.useCallback)((function(e){return{value:F(O.values,e),error:F(O.errors,e),touched:!!F(O.touched,e),initialValue:F(v.current,e),initialTouched:!!F(y.current,e),initialError:F(b.current,e)}}),[O.errors,O.touched,O.values]),he=Object(r.useCallback)((function(e){return{setValue:function(t,n){return J(e,t,n)},setTouched:function(t,n){return ne(e,t,n)},setError:function(t){return Z(e,t)}}}),[J,ne,Z]),me=Object(r.useCallback)((function(e){var t=P(e),n=t?e.name:e,r=F(O.values,n),i={name:n,value:r,onChange:te,onBlur:ie};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[ie,te,O.values]),ge=Object(r.useMemo)((function(){return!o()(v.current,O.values)}),[v.current,O.values]),ve=Object(r.useMemo)((function(){return"undefined"!==typeof u?ge?O.errors&&0===Object.keys(O.errors).length:!1!==u&&N(u)?u(g):u:O.errors&&0===Object.keys(O.errors).length}),[u,ge,O.errors,g]);return C({},O,{initialValues:v.current,initialErrors:b.current,initialTouched:y.current,initialStatus:_.current,handleBlur:ie,handleChange:te,handleReset:fe,handleSubmit:ue,resetForm:U,setErrors:$,setFormikState:oe,setFieldTouched:ne,setFieldValue:J,setFieldError:Z,setStatus:ae,setSubmitting:se,setTouched:W,setValues:K,submitForm:le,validateForm:M,validateField:H,isValid:ve,dirty:ge,unregisterField:V,registerField:z,getFieldProps:me,getFieldMeta:pe,getFieldHelpers:he,validateOnBlur:a,validateOnChange:n,validateOnMount:l})}function K(e){var t=$(e),n=e.component,i=e.children,o=e.render,a=e.innerRef;return Object(r.useImperativeHandle)(a,(function(){return t})),Object(r.createElement)(z,{value:t},n?Object(r.createElement)(n,t):o?o(t):i?N(i)?i(t):M(i)?null:r.Children.only(i):null)}function X(e,t,n){var r=e.slice();return t.forEach((function(t,i){if("undefined"===typeof r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=d(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var Z="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;function Q(e){var t=Object(r.useRef)(e);return Z((function(){t.current=e})),Object(r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;re?t:e}),0);return Array.from(C({},e,{length:t+1}))}return[]},ne=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i="function"===typeof r?r:e,a="function"===typeof t?t:e,s=B(n.values,o,e(F(n.values,o))),l=r?i(F(n.errors,o)):void 0,u=t?a(F(n.touched,o)):void 0;return I(l)&&(l=void 0),I(u)&&(u=void 0),C({},n,{values:s,errors:r?B(n.errors,o,l):n.errors,touched:t?B(n.touched,o,u):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(te(t),[Object(x.a)(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=te(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=te(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return ee(n,e,t)}),(function(t){return ee(t,e,null)}),(function(t){return ee(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=te(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(R(n)),n.pop=n.pop.bind(R(n)),n}k(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(F(e.formik.values,e.name),F(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?te(n):[];return t||(t=r[e]),N(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,o=t.children,a=t.name,s=C({},e,{form:A(t.formik,["validate","validationSchema"]),name:a});return n?Object(r.createElement)(n,s):i?i(s):o?"function"===typeof o?o(s):M(o)?null:r.Children.only(o):null},t}(r.Component);ne.defaultProps={validateOnChange:!0};r.Component,r.Component},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(66),i=n(34);function o(e){Object(i.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";n.r(t);const r="Navigation/BACK",i="Navigation/INIT";t.default={BACK:r,INIT:i,NAVIGATE:"Navigation/NAVIGATE",SET_PARAMS:"Navigation/SET_PARAMS",back:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:r,key:e.key,immediate:e.immediate}},init:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={type:i};return e.params&&(t.params=e.params),t},navigate:e=>{const t={type:"Navigation/NAVIGATE",routeName:e.routeName};return e.params&&(t.params=e.params),e.action&&(t.action=e.action),e.key&&(t.key=e.key),t},setParams:e=>({type:"Navigation/SET_PARAMS",key:e.key,params:e.params})}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=Array.isArray;t.a=r},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(31),a=n.n(o),s=n(33),l=n.n(s),u=n(0),c=n(68),d=[];function f(e){return d[e-1]}var p=n(323),h=/^data:/;class m{static has(e){var t=m._entries;return h.test(e)||Boolean(t[e])}static add(e){var t=m._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=m._entries;t[e]&&(t[e].refCount-=1),m._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=m._entries,r=Object.keys(n);r.length+1>m._maximumEntries&&(r.forEach(r=>{var i=n[r];(!t||i.lastUsedTimestampm.has(e),load(e,t,n){g+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"===typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,v[""+g]=r,g},prefetch:e=>new Promise((t,n)=>{b.load(e,()=>{m.add(e),m.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{m.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}},y=b,_=n(378),E=n(9),w=n(229),S=n(5),O=["accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],T=0,x=/^(data:image\/svg\+xml;utf8,)(.*)/;function C(e){var t=null;if("number"===typeof e){var n=f(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=_.a.get();r=n.scales.reduce((e,t)=>Math.abs(t-i){var n=e.accessibilityLabel,r=e.blurRadius,i=e.defaultSource,o=e.draggable,s=e.onError,d=e.onLayout,h=e.onLoad,m=e.onLoadEnd,g=e.onLoadStart,v=e.pointerEvents,b=e.source,_=e.style,x=l()(e,O);var k=u.useState(()=>{var e=C(b);if(null!=e&&y.has(e))return"LOADED";return"IDLE"}),A=k[0],N=k[1],P=u.useState({}),D=P[0],L=P[1],M=u.useContext(w.a),j=u.useRef(null),F=u.useRef(T++),B=u.useRef(null),U="LOADED"===A||"LOADING"===A&&null==i,H=function(e,t,n){var r=E.a.flatten(e),i=r.filter,o=r.resizeMode,a=r.shadowOffset,s=r.tintColor,l=[],u=null;if(i&&l.push(i),t&&l.push("blur("+t+"px)"),a){var c=Object(p.a)(r);c&&l.push("drop-shadow("+c+")")}return s&&null!=n&&l.push("url(#tint-"+n+")"),l.length>0&&(u=l.join(" ")),delete r.blurRadius,delete r.shadowColor,delete r.shadowOpacity,delete r.shadowOffset,delete r.shadowRadius,delete r.tintColor,delete r.overlayColor,delete r.resizeMode,[r,o,u,s]}(_,r,F.current),z=H[0],V=H[1],W=H[2],G=H[3],q=e.resizeMode||V||"cover",Y=U?b:i,$=C(Y),K=function(e){if("number"===typeof e){var t=f(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"===typeof e)return{height:e.height,width:e.width}}(Y),X=$?'url("'+$+'")':null,Z=function(){if(null!=j.current&&("center"===q||"repeat"===q)){var e=j.current,t=e.naturalHeight,n=e.naturalWidth,r=D.height,i=D.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t),a=Math.ceil(o*n),s=Math.ceil(o*t);return a+"px "+s+"px"}}}(),Q=$?Object(c.a)("img",{alt:n||"",style:R.accessibilityImage$raw,draggable:o||!1,ref:j,src:$}):null;var J=C(b);return u.useEffect(()=>{function e(){null!=B.current&&(y.abort(B.current),B.current=null)}return e(),null!=J&&(N("LOADING"),g&&g(),B.current=y.load(J,(function(e){N("LOADED"),h&&h(e),m&&m()}),(function(){N("ERRORED"),s&&s({nativeEvent:{error:"Failed to load resource "+J+" (404)"}}),m&&m()}))),e},[J,B,N,s,h,m,g]),u.createElement(S.a,a()({},x,{accessibilityLabel:n,onLayout:function(e){if("center"===q||"repeat"===q||d){var t=e.nativeEvent.layout;d&&d(e),L(t)}},pointerEvents:v,ref:t,style:[R.root,M&&R.inline,K,z]}),u.createElement(S.a,{style:[R.image,I[q],{backgroundImage:X,filter:W},null!=Z&&{backgroundSize:Z}],suppressHydrationWarning:!0}),Q,function(e,t){return e&&null!=t?u.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},u.createElement("defs",null,u.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},u.createElement("feFlood",{floodColor:""+e,key:e}),u.createElement("feComposite",{in2:"SourceAlpha",operator:"atop"})))):null}(G,F.current))});k.displayName="Image";var A=k;A.getSize=function(e,t,n){y.getSize(e,t,n)},A.prefetch=function(e){return y.prefetch(e)},A.queryCache=function(e){return y.queryCache(e)};var R=E.a.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},image:i()(i()({},E.a.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:i()(i()({},E.a.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),I=E.a.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});t.a=A},function(e,t,n){"use strict";var r=n(79),i=n(72),o=n(163),a=n(39).a.API;class s extends i.a{constructor(e){if(super(),"number"!==typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null}__detach(){this.__isNative&&a.getValue(this.__getNativeTag(),e=>{this._value=e}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&a.setAnimatedNodeValue(this.__getNativeTag(),e)}setOffset(e){this._offset=e,this.__isNative&&a.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&a.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&a.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&e(this.__getValue())}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue}_onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new r.a(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=o.a.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&o.a.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._value=e,t&&function(e){var t=new Set;!function e(n){"function"===typeof n.update?t.add(n):n.__getChildren().forEach(e)}(e),t.forEach(e=>e.update())}(this),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}}t.a=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return c}));var r={children:!0,dataSet:!0,nativeID:!0,ref:!0,suppressHydrationWarning:!0,testID:!0},i={accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0,dir:!0,focusable:!0},o={onClick:!0,onClickCapture:!0,onContextMenu:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={classList:!0,style:!0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(391);var i=n(261),o=n(392);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(168),i=n(156),o=n(155);var a=function(e,t,n){(void 0!==n&&!Object(o.a)(e[t],n)||void 0===n&&!(t in e))&&Object(i.a)(e,t,n)},s=n(438),l=n(400),u=n(401),c=n(202),d=n(436),f=n(233),p=n(50),h=n(116),m=n(75);var g=function(e){return Object(m.a)(e)&&Object(h.a)(e)},v=n(179),b=n(262),y=n(62),_=n(326),E=n(283);var w=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]},S=n(157),O=n(162);var T=function(e){return Object(S.a)(e,Object(O.a)(e))};var x=function(e,t,n,r,i,o,s){var h=w(e,n),m=w(t,n),S=s.get(m);if(S)a(e,n,S);else{var O=o?o(h,m,n+"",e,t,s):void 0,x=void 0===O;if(x){var C=Object(p.a)(m),k=!C&&Object(v.a)(m),A=!C&&!k&&Object(E.a)(m);O=m,C||k||A?Object(p.a)(h)?O=h:g(h)?O=Object(c.a)(h):k?(x=!1,O=Object(l.a)(m,!0)):A?(x=!1,O=Object(u.a)(m,!0)):O=[]:Object(_.a)(m)||Object(f.a)(m)?(O=h,Object(f.a)(h)?O=T(h):Object(y.a)(h)&&!Object(b.a)(h)||(O=Object(d.a)(m))):x=!1}x&&(s.set(m,O),i(O,m,r,o,s),s.delete(m)),a(e,n,O)}};var C=function e(t,n,i,o,l){t!==n&&Object(s.a)(n,(function(s,u){if(l||(l=new r.a),Object(y.a)(s))x(t,n,u,i,e,o,l);else{var c=o?o(w(t,u),s,u+"",t,n,l):void 0;void 0===c&&(c=s),a(t,u,c)}}),O.a)},k=n(201);var A=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},R=Math.max;var I=function(e,t,n){return t=R(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=R(r.length-t,0),a=Array(o);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(D);var j=function(e,t){return M(I(e,t,k.a),e+"")},F=n(264);var B=function(e,t,n){if(!Object(y.a)(n))return!1;var r=typeof t;return!!("number"==r?Object(h.a)(n)&&Object(F.a)(t,n.length):"string"==r&&t in n)&&Object(o.a)(n[t],e)};var U=function(e){return j((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&B(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r({isRTL:!1})};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ht})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return Nt})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return st})),n.d(t,"f",(function(){return N})),n.d(t,"g",(function(){return P})),n.d(t,"h",(function(){return L})),n.d(t,"i",(function(){return Tt})),n.d(t,"j",(function(){return D})),n.d(t,"k",(function(){return M})),n.d(t,"l",(function(){return Z})),n.d(t,"n",(function(){return $n}));var r=n(1),i=n(2);n.d(t,"m",(function(){return i.Eb}));var o=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const i=t.listeners[r],o=t.duration;i.forEach(r=>r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=i.Sb.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(e),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),i.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=i.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const a={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=Object(i.Db)(e||"transparent"),o=r.valid&&Object(i.Db)(t||"transparent");return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class s{constructor(e,t,n,r){const o=t[n];r=Object(i.C)([e.to,r,o,e.from]);const s=Object(i.C)([e.from,o,r]);this._active=!0,this._fn=e.fn||a[e.type||typeof s],this._easing=i.Fb[e.easing]||i.Fb.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Object(i.C)([e.to,t,r,e.from]),this._from=Object(i.C)([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let r=0;r"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),i.Eb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),i.Eb.describe("animations",{_fallback:"animation"}),i.Eb.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class u{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Object(i.Jb)(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const r=e[n];if(!Object(i.Jb)(r))return;const o={};for(const e of l)o[e]=r[e];(Object(i.Cb)(r.properties)&&r.properties||[n]).forEach(e=>{e!==n&&t.has(e)||t.set(e,o)})})}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let i=0;i{e.options=n},()=>{}),i}_createAnimations(e,t){const n=this._properties,r=[],i=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if("$"===u.charAt(0))continue;if("options"===u){r.push(...this._animateOptions(e,t));continue}const c=t[u];let d=i[u];const f=n.get(u);if(d){if(f&&d.active()){d.update(f,c,a);continue}d.cancel()}f&&f.duration?(i[u]=d=new s(f,e,u,c),r.push(d)):e[u]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(o.add(this._chart,n),!0):void 0}}function c(e,t){const n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function d(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i3&&void 0!==arguments[3]?arguments[3]:{};const o=e.keys,a="single"===r.mode;let s,l,u,c;if(null!==t){for(s=0,l=o.length;s0||!n&&t<0)return i.index}return null}function g(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,u=a.axis,c=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,a,r),d=t.length;let f;for(let p=0;pn[e].axis===t).shift()}function b(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n]}}}const y=e=>"reset"===e||"none"===e,_=(e,t)=>t?e:Object.assign({},e);class E{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=p(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&b(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=Object(i.Wb)(n.xAxisID,v(e,"x")),a=t.yAxisID=Object(i.Wb)(n.yAxisID,v(e,"y")),s=t.rAxisID=Object(i.Wb)(n.rAxisID,v(e,"r")),l=t.indexAxis,u=t.iAxisID=r(l,o,a,s),c=t.vAxisID=r(l,a,o,s);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(s),t.iScale=this.getScaleForId(u),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Object(i.Vb)(this._data,this),e._stacked&&b(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Object(i.Jb)(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=Object(i.Cb)(r[e])?this.parseArrayData(n,r,e,t):Object(i.Jb)(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===u[s]||f&&u[s]e&&!t.hidden&&t._stacked&&{keys:d(n,!0),values:null})(t,n,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=function(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(s);let p,h;function m(){h=r[p];const t=h[s.axis];return!Object(i.Hb)(h[e.axis])||c>t||f=0;--p)if(!m()){this.updateRangeFromParsed(u,e,h,l);break}return u}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,a;for(r=0,o=t.length;r=0&&e1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const r="active"===t,o=this._cachedDataOpts,a=e+"-"+t,s=o[a],l=this.enableOptionSharing&&Object(i.Kb)(n);if(s)return _(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),d=r?["".concat(e,"Hover"),"hover",e,""]:[e,""],f=u.getOptionScopes(this.getDataset(),c),p=Object.keys(i.Eb.elements[e]),h=u.resolveNamedOptions(f,p,()=>this.getContext(n,r),d);return h.$shared&&(h.$shared=l,o[a]=Object.freeze(_(h,l))),h}_resolveAnimations(e,t,n){const r=this.chart,i=this._cachedDataOpts,o="animation-".concat(t),a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(e,n,t))}const l=new u(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||y(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:o}}updateElement(e,t,n,r){y(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!y(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,s,l]of this._syncList)this[a](s,l);this._syncList=[];const r=n.length,i=t.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,e):i2&&void 0!==arguments[2])||arguments[2];const r=this._cachedMeta,i=r.data,o=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=o;a--)e[a]=e[a-t]};for(s(i),a=e;ae-t))}return e._cache.$bar}(t,e.type);let r,o,a,s,l=t._length;const u=()=>{32767!==a&&-32768!==a&&(Object(i.Kb)(s)&&(l=Math.min(l,Math.abs(a-s)||l)),s=a)};for(r=0,o=n.length;rMath.abs(s)&&(l=s,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function O(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let u,c,d,f;for(u=n,c=n+r;ue.x,n="left",r="right"):(t=e.basee.controller.options.grouped),o=n.options.stacked,a=[],s=e=>{const n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(Object(i.Lb)(r)||isNaN(r))return!0};for(const i of r)if((void 0===t||!s(i))&&((!1===o||-1===a.indexOf(i.stack)||void 0===o&&void 0===i.stack)&&a.push(i.stack),i.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let i,o;for(i=0,o=t.data.length;i=n?1:-1)}(d,t,a)*o,f===a&&(g-=d/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),r=Math.min(e,n),s=Math.max(e,n);g=Math.max(Math.min(g,s),r),c=g+d}if(g===t.getPixelForValue(a)){const e=Object(i.Tb)(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:c,center:c+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,a=Object(i.Wb)(r.maxBarThickness,1/0);let s,l;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,u="flex"===r.barThickness?function(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:n,yScale:r}=t,i=this.getParsed(e),o=n.getLabelForValue(i.x),a=r.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const i="reset"===r,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),u=o.axis,c=a.axis;for(let d=t;d""}}}};class N extends E{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,a,s=e=>+n[e];if(Object(i.Jb)(n[e])){const{key:e="value"}=this._parsing;s=t=>+Object(i.Gb)(n[t],e)}for(o=e,a=e+t;oObject(i.Qb)(e,l,u,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Object(i.Qb)(e,l,u,!0)?-1:Math.min(t,t*n,r,r*n),g=h(0,c,f),v=h(i.i,d,p),b=m(i.q,c,f),y=m(i.q+i.i,d,p);r=(g-b)/2,o=(v-y)/2,a=-(g+b)/2,s=-(v+y)/2}return{ratioX:r,ratioY:o,offsetX:a,offsetY:s}}(d,c,l),g=(n.width-a)/f,v=(n.height-a)/p,b=Math.max(Math.min(g,v)/2,0),y=Object(i.Ob)(this.options.radius,b),_=(y-Math.max(y*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=m*y,r.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*o/i.u)}updateElements(e,t,n,r){const i="reset"===r,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=i&&s.animateScale,d=c?0:this.innerRadius,f=c?0:this.outerRadius,{sharedOptions:p,includeOptions:h}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m0&&!isNaN(e)?i.u*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=Object(i.Pb)(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,i,o,a,s;if(!e)for(r=0,i=n.data.datasets.length;r"spacing"!==e,_indexable:e=>"spacing"!==e},N.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const n=": "+e.formattedValue;return Object(i.Cb)(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class P extends E{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,a=this.chart._animationsDisabled;let{start:s,count:l}=Object(i.Rb)(t,r,a);this._drawStart=s,this._drawCount=l,Object(i.Xb)(t)&&(s=0,l=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:u},e),this.updateElements(r,s,l,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(t,r),f=a.axis,p=s.axis,{spanGaps:h,segment:m}=this.options,g=Object(i.Yb)(h)?h:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let b=t>0&&this.getParsed(t-1);for(let y=t;y0&&Math.abs(n[f]-b[f])>g,m&&(h.parsed=n,h.raw=u.data[y]),d&&(h.options=c||this.resolveDataElementOptions(y,t.active?"active":r)),v||this.updateElement(t,y,h,r),b=n}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}P.id="line",P.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},P.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class D extends E{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=Object(i.Pb)(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}parseObjectData(e,t,n,r){return i.Zb.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,t,n,r){const o="reset"===r,a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,u=l.xCenter,c=l.yCenter,d=l.getIndexAngle(0)-.5*i.q;let f,p=d;const h=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Object(i.Ub)(this.resolveDataElementOptions(e,t).angle||n):0}}D.id="polarArea",D.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},D.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class L extends N{}L.id="pie",L.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class M extends E{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return i.Zb.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,o,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const i=this._cachedMeta.rScale,o="reset"===r;for(let a=t;a{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}}j.defaults={},j.defaultRoutes=void 0;const F={values:e=>Object(i.Cb)(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let o,a=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),a=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const s=Object(i.ac)(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),Object(i.Pb)(e,r,u)},logarithmic(e,t,n){if(0===e)return"0";const r=e/Math.pow(10,Math.floor(Object(i.ac)(e)));return 1===r||2===r||5===r?F.numeric.call(this,e,t,n):""}};var B={formatters:F};function U(e,t){const n=e.options.ticks,r=n.maxTicksLimit||function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),o=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;nr)return function(e,t,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;io)return e}return Math.max(o,1)}(o,t,r);if(a>0){let e,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(H(t,u,c,Object(i.Lb)(r)?0:s-r,s),e=0,n=a-1;et.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:B.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.Eb.route("scale.ticks","color","","color"),i.Eb.route("scale.grid","color","","borderColor"),i.Eb.route("scale.grid","borderColor","","borderColor"),i.Eb.route("scale.title","color","","color"),i.Eb.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),i.Eb.describe("scales",{_fallback:"scale"}),i.Eb.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const z=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function V(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+1e-6)))return l}function G(e){return e.drawTicks?e.tickLength:0}function q(e,t){if(!e.display)return 0;const n=Object(i.p)(e.font,t),r=Object(i.l)(e.padding);return(Object(i.Cb)(e.text)?e.text.length:1)*n.lineHeight+r.height}function Y(e,t,n){let r=Object(i.s)(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class $ extends j{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=Object(i.c)(e,Number.POSITIVE_INFINITY),t=Object(i.c)(t,Number.NEGATIVE_INFINITY),n=Object(i.c)(n,Number.POSITIVE_INFINITY),r=Object(i.c)(r,Number.NEGATIVE_INFINITY),{min:Object(i.c)(e,n),max:Object(i.c)(t,r),minDefined:Object(i.Hb)(e),maxDefined:Object(i.Hb)(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let i=0,l=s.length;ir?r:n,r=o&&n>r?n:r,{min:Object(i.c)(n,Object(i.c)(r,n)),max:Object(i.c)(r,Object(i.c)(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Object(i.d)(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Object(i.e)(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,p=Object(i.f)(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/n:p/(n-1),d+6>a&&(a=p/(n-(e.offset?.5:1)),s=this.maxHeight-G(e.grid)-t.padding-q(e.title,this.chart.options.font),l=Math.sqrt(d*d+f*f),u=Object(i.g)(Math.min(Math.asin(Object(i.f)((c.highest.height+6)/a,-1,1)),Math.asin(Object(i.f)(s/l,-1,1))-Math.asin(Object(i.f)(f/l,-1,1)))),u=Math.max(r,Math.min(o,u))),this.labelRotation=u}afterCalculateLabelRotation(){Object(i.d)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Object(i.d)(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=q(r,t.options.font);if(s?(e.width=this.maxWidth,e.height=G(o)+a):(e.height=this.maxHeight,e.width=G(o)+a),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:a}=this._getLabelSizes(),l=2*n.padding,u=Object(i.Ub)(this.labelRotation),c=Math.cos(u),d=Math.sin(u);if(s){const t=n.mirror?0:d*o.width+c*a.height;e.height=Math.min(this.maxHeight,e.height+t+l)}else{const t=n.mirror?0:c*o.width+d*a.height;e.width=Math.min(this.maxWidth,e.width+t+l)}this._calculatePadding(t,r,d,c)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;s?l?(c=r*e.width,d=n*t.height):(c=n*e.height,d=r*t.width):"start"===i?d=t.width:"end"===i?c=e.width:"inner"!==i&&(c=e.width/2,d=t.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-u+o)*this.width/(this.width-u),0)}else{let n=t.height/2,r=e.height/2;"start"===i?(n=0,r=e.height):"end"===i&&(n=t.height,r=0),this.paddingTop=n+o,this.paddingBottom=r+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Object(i.d)(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t{const n=e.gc,r=n.length/2;let i;if(r>t){for(i=0;i({width:o[e]||0,height:a[e]||0});return{first:w(0),last:w(t-1),widest:w(_),highest:w(E),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Object(i.j)(this._alignToPixels?Object(i.k)(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&es*r?s/n:l/r:l*r0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:a}=r,s=o.offset,l=this.isHorizontal(),u=this.ticks.length+(s?1:0),c=G(o),d=[],f=o.setContext(this.getContext()),p=f.drawBorder?f.borderWidth:0,h=p/2,m=function(e){return Object(i.k)(n,e,p)};let g,v,b,y,_,E,w,S,O,T,x,C;if("top"===a)g=m(this.bottom),E=this.bottom-c,S=g-h,T=m(e.top)+h,C=e.bottom;else if("bottom"===a)g=m(this.top),T=e.top,C=m(e.bottom)-h,E=g+h,S=this.top+c;else if("left"===a)g=m(this.right),_=this.right-c,w=g-h,O=m(e.left)+h,x=e.right;else if("right"===a)g=m(this.left),O=e.left,x=m(e.right)-h,_=g+h,w=this.left+c;else if("x"===t){if("center"===a)g=m((e.top+e.bottom)/2+.5);else if(Object(i.Jb)(a)){const e=Object.keys(a)[0],t=a[e];g=m(this.chart.scales[e].getPixelForValue(t))}T=e.top,C=e.bottom,E=g+h,S=E+c}else if("y"===t){if("center"===a)g=m((e.left+e.right)/2);else if(Object(i.Jb)(a)){const e=Object.keys(a)[0],t=a[e];g=m(this.chart.scales[e].getPixelForValue(t))}_=g-h,w=_-c,O=e.left,x=e.right}const k=Object(i.Wb)(r.ticks.maxTicksLimit,u),A=Math.max(1,Math.ceil(u/k));for(v=0;vt.value===e);if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,o;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,o=r.length;i{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=t.length;i{const r=n.split("."),o=r.pop(),a=[e].concat(r).join("."),s=t[n].split("."),l=s.pop(),u=s.join(".");i.Eb.route(a,o,u,l)})}(t,e.defaultRoutes);e.descriptors&&i.Eb.describe(t,e.descriptors)}(e,a,n),this.override&&i.Eb.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in i.Eb[r]&&(delete i.Eb[r][n],this.override&&delete i.v[n])}}var X=new class{constructor(){this.controllers=new K(E,"datasets",!0),this.elements=new K(j,"elements"),this.plugins=new K(Object,"plugins"),this.scales=new K($,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Object(i.r)(t,t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){const r=Object(i.x)(e);Object(i.d)(n["before"+r],[],n),t[e](n),Object(i.d)(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t0&&this.getParsed(t-1);for(let _=t;_0&&Math.abs(n[p]-y[p])>v,g&&(c.parsed=n,c.raw=u.data[_]),f&&(c.options=d||this.resolveDataElementOptions(_,t.active?"active":r)),b||this.updateElement(t,_,c,r),y=n}this.updateSharedOptions(d,r,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const i=t[0].size(this.resolveDataElementOptions(0)),o=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,o)/2}}Z.id="scatter",Z.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Z.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Q=Object.freeze({__proto__:null,BarController:R,BubbleController:I,DoughnutController:N,LineController:P,PolarAreaController:D,PieController:L,RadarController:M,ScatterController:Z});function J(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ee{constructor(e){this.options=e||{}}init(e){}formats(){return J()}parse(e,t){return J()}format(e,t){return J()}add(e,t,n){return J()}diff(e,t,n){return J()}startOf(e,t,n){return J()}endOf(e,t){return J()}}ee.override=function(e){Object.assign(ee.prototype,e)};var te={_date:ee};function ne(e,t,n,r){const{controller:o,data:a,_sorted:s}=e,l=o._cachedMeta.iScale;if(l&&t===l.axis&&"r"!==t&&s&&a.length){const e=l._reversePixels?i.z:i.A;if(!r)return e(a,t,n);if(o._sharedOptions){const r=a[0],i="function"===typeof r.getRange&&r.getRange(t);if(i){const r=e(a,t,n-i),o=e(a,t,n+i);return{lo:r.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function re(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{e[a](t[n],i)&&(o.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,i))}),r&&!s?[]:o}var le={evaluateInteractionItems:re,modes:{index(e,t,n,r){const o=Object(i.y)(t,e),a=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?ie(e,o,a,r,s):ae(e,o,a,!1,r,s),u=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=l[0].index,n=e.data[t];n&&!n.skip&&u.push({element:n,datasetIndex:e.index,index:t})}),u):[]},dataset(e,t,n,r){const o=Object(i.y)(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?ie(e,o,a,r,s):ae(e,o,a,!1,r,s);if(l.length>0){const t=l[0].datasetIndex,n=e.getDatasetMeta(t).data;l=[];for(let e=0;eie(e,Object(i.y)(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=Object(i.y)(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return ae(e,o,a,n.intersect,r,s)},x:(e,t,n,r)=>se(e,Object(i.y)(t,e),"x",n.intersect,r),y:(e,t,n,r)=>se(e,Object(i.y)(t,e),"y",n.intersect,r)}};const ue=["left","top","right","bottom"];function ce(e,t){return e.filter(e=>e.pos===t)}function de(e,t){return e.filter(e=>-1===ue.indexOf(e.pos)&&e.box.axis===t)}function fe(e,t){return e.sort((e,n)=>{const r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function pe(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:i}=n;if(!e||!ue.includes(r))continue;const o=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o{r[e]=Math.max(t[e],n[e])}),r}return r(e?["left","right"]:["top","bottom"])}function be(e,t,n,r){const i=[];let o,a,s,l,u,c;for(o=0,a=e.length,u=0;oe.box.fullSize),!0),r=fe(ce(t,"left"),!0),i=fe(ce(t,"right")),o=fe(ce(t,"top"),!0),a=fe(ce(t,"bottom")),s=de(t,"x"),l=de(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:ce(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),u=l.vertical,c=l.horizontal;Object(i.r)(e.boxes,e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()});const d=u.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/d,hBoxMaxHeight:s/2}),p=Object.assign({},o);me(p,Object(i.l)(r));const h=Object.assign({maxPadding:p,w:a,h:s,x:o.left,y:o.top},o),m=pe(u.concat(c),f);be(l.fullSize,h,f,m),be(u,h,f,m),be(c,h,f,m)&&be(u,h,f,m),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),_e(l.leftAndTop,h,f,m),h.x+=h.w,h.y+=h.h,_e(l.rightAndBottom,h,f,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Object(i.r)(l.chartArea,t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class we{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class Se extends we{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Oe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Te=e=>null===e||""===e;const xe=!!i.I&&{passive:!0};function Ce(e,t,n){e.canvas.removeEventListener(t,n,xe)}function ke(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ae(e,t,n){const r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(const n of e)t=t||ke(n.addedNodes,r),t=t&&!ke(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Re(e,t,n){const r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(const n of e)t=t||ke(n.removedNodes,r),t=t&&!ke(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ie=new Map;let Ne=0;function Pe(){const e=window.devicePixelRatio;e!==Ne&&(Ne=e,Ie.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function De(e,t,n){const r=e.canvas,o=r&&Object(i.F)(r);if(!o)return;const a=Object(i.H)((e,t)=>{const r=o.clientWidth;n(e,t),r{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)});return s.observe(o),function(e,t){Ie.size||window.addEventListener("resize",Pe),Ie.set(e,t)}(e,a),s}function Le(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Ie.delete(e),Ie.size||window.removeEventListener("resize",Pe)}(e)}function Me(e,t,n){const r=e.canvas,o=Object(i.H)(t=>{null!==e.ctx&&n(function(e,t){const n=Oe[e.type]||e.type,{x:r,y:o}=Object(i.y)(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))},e,e=>{const t=e[0];return[t,t.offsetX,t.offsetY]});return function(e,t,n){e.addEventListener(t,n,xe)}(r,t,o),o}class je extends we{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e.$chartjs={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Te(o)){const t=Object(i.G)(e,"width");void 0!==t&&(e.width=t)}if(Te(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Object(i.G)(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t.$chartjs)return!1;const n=t.$chartjs.initial;["height","width"].forEach(e=>{const r=n[e];Object(i.Lb)(r)?t.removeAttribute(e):t.setAttribute(e,r)});const r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t.$chartjs,!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),i={attach:Ae,detach:Re,resize:De}[t]||Me;r[t]=i(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:Le,detach:Le,resize:Le}[t]||Ce)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Object(i.E)(e,t,n,r)}isAttached(e){const t=Object(i.F)(e);return!(!t||!t.isConnected)}}class Fe{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=r?this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin,a=e[n],s=[t,r,o.options];if(!1===Object(i.d)(a,s,e)&&r.cancelable)return!1}return!0}invalidate(){Object(i.Lb)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=Object(i.Wb)(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(X.plugins.items);for(let o=0;oe.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Be(e,t){return t||!1!==e?!0===e?{}:e:null}function Ue(e,t,n,r){let{plugin:i,local:o}=t;const a=e.pluginScopeKeys(i),s=e.getOptionScopes(n,a);return o&&i.defaults&&s.push(i.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function He(e,t){const n=i.Eb.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function ze(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function Ve(e){const t=e.options||(e.options={});t.plugins=Object(i.Wb)(t.plugins,{}),t.scales=function(e,t){const n=i.v[e.type]||{scales:{}},r=t.scales||{},o=He(e.type,t),a=Object.create(null),s=Object.create(null);return Object.keys(r).forEach(e=>{const t=r[e];if(!Object(i.Jb)(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));const l=ze(e,t),u=function(e,t){return e===t?"_index_":"_value_"}(l,o),c=n.scales||{};a[l]=a[l]||e,s[e]=Object(i.eb)(Object.create(null),[{axis:l},t,c[l],c[u]])}),e.data.datasets.forEach(n=>{const o=n.type||e.type,l=n.indexAxis||He(o,t),u=(i.v[o]||{}).scales||{};Object.keys(u).forEach(e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,l),o=n[t+"AxisID"]||a[t]||t;s[o]=s[o]||Object.create(null),Object(i.eb)(s[o],[{axis:t},r[o],u[e]])})}),Object.keys(s).forEach(e=>{const t=s[e];Object(i.eb)(t,[i.Eb.scales[t.type],i.Eb.scale])}),s}(e,t)}function We(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Ge=new Map,qe=new Set;function Ye(e,t){let n=Ge.get(e);return n||(n=t(),Ge.set(e,n),qe.add(n)),n}const $e=(e,t,n)=>{const r=Object(i.Gb)(t,n);void 0!==r&&e.add(r)};class Ke{constructor(e){this._config=function(e){return(e=e||{}).data=We(e.data),Ve(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=We(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ve(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ye(e,()=>[["datasets.".concat(e),""]])}datasetAnimationScopeKeys(e,t){return Ye("".concat(e,".transition.").concat(t),()=>[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]])}datasetElementScopeKeys(e,t){return Ye("".concat(e,"-").concat(t),()=>[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]])}pluginScopeKeys(e){const t=e.id,n=this.type;return Ye("".concat(n,"-plugin-").concat(t),()=>[["plugins.".concat(t),...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,a=this._cachedScopes(e,n),s=a.get(t);if(s)return s;const l=new Set;t.forEach(t=>{e&&(l.add(e),t.forEach(t=>$e(l,e,t))),t.forEach(e=>$e(l,r,e)),t.forEach(e=>$e(l,i.v[o]||{},e)),t.forEach(e=>$e(l,i.Eb,e)),t.forEach(e=>$e(l,i.K,e))});const u=Array.from(l);return 0===u.length&&u.push(Object.create(null)),qe.has(t)&&a.set(t,u),u}chartOptionScopes(){const{options:e,type:t}=this;return[e,i.v[t]||{},i.Eb.datasets[t]||{},{type:t},i.Eb,i.K]}resolveNamedOptions(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const o={$shared:!0},{resolver:a,subPrefixes:s}=Xe(this._resolverCache,e,r);let l=a;if(function(e,t){const{isScriptable:n,isIndexable:r}=Object(i.db)(e);for(const o of t){const t=n(o),a=r(o),s=(a||t)&&e[o];if(t&&(Object(i.L)(s)||Ze(s))||a&&Object(i.Cb)(s))return!0}return!1}(a,t)){o.$shared=!1,n=Object(i.L)(n)?n():n;const t=this.createResolver(e,n,s);l=Object(i.M)(a,n,t)}for(const i of t)o[i]=l[i];return o}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0;const{resolver:o}=Xe(this._resolverCache,e,n);return Object(i.Jb)(t)?Object(i.M)(o,t,void 0,r):o}}function Xe(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let a=r.get(o);if(!a){a={resolver:Object(i.cb)(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes("hover"))},r.set(o,a)}return a}const Ze=e=>Object(i.Jb)(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Object(i.L)(e[n]),!1);const Qe=["top","bottom","left","right","chartArea"];function Je(e,t){return"top"===e||"bottom"===e||-1===Qe.indexOf(e)&&"x"===t}function et(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function tt(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Object(i.d)(n&&n.onComplete,[e],t)}function nt(e){const t=e.chart,n=t.options.animation;Object(i.d)(n&&n.onProgress,[e],t)}function rt(e){return Object(i.J)()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const it={},ot=e=>{const t=rt(e);return Object.values(it).filter(e=>e.canvas===t).pop()};function at(e,t,n){const r=Object.keys(e);for(const i of r){const r=+i;if(r>=t){const o=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=o)}}}class st{constructor(e,t){const n=this.config=new Ke(t),r=rt(e),a=ot(r);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!Object(i.J)()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Se:je}(r)),this.platform.updateConfig(n);const l=this.platform.acquireContext(r,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,d=u&&u.width;this.id=Object(i.fb)(),this.ctx=l,this.canvas=u,this.width=d,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Fe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(i.gb)(e=>this.update(e),s.resizeDelay||0),this._dataChanges=[],it[this.id]=this,l&&u?(o.listen(this,"complete",tt),o.listen(this,"progress",nt),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return Object(i.Lb)(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Object(i.hb)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Object(i.ib)(this.canvas,this.ctx),this}stop(){return o.stop(this),this}resize(e,t){o.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Object(i.hb)(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Object(i.d)(n.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Object(i.r)(e,(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{});let o=[];t&&(o=o.concat(Object.keys(t).map(e=>{const n=t[e],r=ze(e,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}}))),Object(i.r)(o,t=>{const o=t.options,a=o.id,s=ze(a,o),l=Object(i.Wb)(o.type,t.dtype);void 0!==o.position&&Je(o.position,s)===Je(t.dposition)||(o.position=t.dposition),r[a]=!0;let u=null;if(a in n&&n[a].type===l)u=n[a];else{u=new(X.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,e)}),Object(i.r)(r,(e,t)=>{e||delete n[t]}),Object(i.r)(n,e=>{Ee.configure(this,e,e.options),Ee.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let i=0,u=this.data.datasets.length;i{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(et("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Object(i.r)(this.scales,e=>{Ee.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Object(i.jb)(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of t){at(e,r,"_removeElements"===n?-i:i)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),r=n(0);for(let o=1;oe.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ee.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Object(i.r)(this.boxes,e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&Object(i.m)(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&Object(i.o)(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return Object(i.a)(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const i=le.modes[t];return"function"===typeof i?i(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Object(i.Ib)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),a=o.controller._resolveAnimations(void 0,r);Object(i.Kb)(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(o,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),o.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Object(i.r)(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){Object(i.r)(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Object(i.r)(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===t&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a{let{datasetIndex:t,index:n}=e;const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[n],index:n}});!Object(i.kb)(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,a=t,s=this._getActiveElements(e,r,n,a),l=Object(i.lb)(e),u=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,Object(i.d)(o.onHover,[e,s,this],this),l&&Object(i.d)(o.onClick,[e,s,this],this));const c=!Object(i.kb)(s,r);return(c||t)&&(this._active=s,this._updateHoverStyles(s,r,t)),this._lastEvent=u,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}const lt=()=>Object(i.r)(st.instances,e=>e._plugins.invalidate());function ut(e,t,n){const{startAngle:r,pixelMargin:o,x:a,y:s,outerRadius:l,innerRadius:u}=t;let c=o/l;e.beginPath(),e.arc(a,s,l,r-c,n+c),u>o?(c=o/u,e.arc(a,s,u,n+c,r-c,!0)):e.arc(a,s,o,n+i.i,r-i.i),e.closePath(),e.clip()}function ct(e,t,n,r){const o=(a=e.options.borderRadius,Object(i.nb)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const s=(n-t)/2,l=Math.min(s,r*t/2),u=e=>{const t=(n-Math.min(s,e))*r/2;return Object(i.f)(e,0,Math.min(s,t))};return{outerStart:u(o.outerStart),outerEnd:u(o.outerEnd),innerStart:Object(i.f)(o.innerStart,0,l),innerEnd:Object(i.f)(o.innerEnd,0,l)}}function dt(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ft(e,t,n,r,o,a){const{x:s,y:l,startAngle:u,pixelMargin:c,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-c,0),p=d>0?d+r+n+c:0;let h=0;const m=o-u;if(r){const e=((d>0?d-r:0)+(f>0?f-r:0))/2;h=(m-(0!==e?m*e/(e+r):m))/2}const g=(m-Math.max(.001,m*f-n/i.q)/f)/2,v=u+g+h,b=o-g-h,{outerStart:y,outerEnd:_,innerStart:E,innerEnd:w}=ct(t,p,f,b-v),S=f-y,O=f-_,T=v+y/S,x=b-_/O,C=p+E,k=p+w,A=v+E/C,R=b-w/k;if(e.beginPath(),a){if(e.arc(s,l,f,T,x),_>0){const t=dt(O,x,s,l);e.arc(t.x,t.y,_,x,b+i.i)}const t=dt(k,b,s,l);if(e.lineTo(t.x,t.y),w>0){const t=dt(k,R,s,l);e.arc(t.x,t.y,w,b+i.i,R+Math.PI)}if(e.arc(s,l,p,b-w/p,v+E/p,!0),E>0){const t=dt(C,A,s,l);e.arc(t.x,t.y,E,A+Math.PI,v-i.i)}const n=dt(S,v,s,l);if(e.lineTo(n.x,n.y),y>0){const t=dt(S,T,s,l);e.arc(t.x,t.y,y,v-i.i,T)}}else{e.moveTo(s,l);const t=Math.cos(T)*f+s,n=Math.sin(T)*f+l;e.lineTo(t,n);const r=Math.cos(x)*f+s,i=Math.sin(x)*f+l;e.lineTo(r,i)}e.closePath()}function pt(e,t,n,r,o,a){const{options:s}=t,{borderWidth:l,borderJoinStyle:u}=s,c="inner"===s.borderAlign;l&&(c?(e.lineWidth=2*l,e.lineJoin=u||"round"):(e.lineWidth=l,e.lineJoin=u||"bevel"),t.fullCircles&&function(e,t,n){const{x:r,y:o,startAngle:a,pixelMargin:s,fullCircles:l}=t,u=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;let d;for(n&&ut(e,t,a+i.u),e.beginPath(),e.arc(r,o,c,a+i.u,a,!0),d=0;d=i.u||Object(i.Qb)(o,s,l),h=Object(i.mb)(a,u+f,c+f);return p&&h}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,u=(r+i)/2,c=(o+a+l+s)/2;return{x:t+Math.cos(u)*c,y:n+Math.sin(u)*c}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/2,o=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>i.u?Math.floor(n/i.u):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();let s=0;if(r){s=r/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*s,Math.sin(t)*s),this.circumference>=i.q&&(s=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const l=function(e,t,n,r,o){const{fullCircles:a,startAngle:s,circumference:l}=t;let u=t.endAngle;if(a){ft(e,t,n,r,s+i.u,o);for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Object(i.Wb)(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Object(i.Wb)(n.borderDash,t.borderDash)),e.lineDashOffset=Object(i.Wb)(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Object(i.Wb)(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Object(i.Wb)(n.borderWidth,t.borderWidth),e.strokeStyle=Object(i.Wb)(n.borderColor,t.borderColor)}function gt(e,t,n){e.lineTo(n.x,n.y)}function vt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),u=Math.min(o,s),c=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:u(a+(u?s-e:e))%o,y=()=>{p!==h&&(e.lineTo(g,h),e.lineTo(g,p),e.lineTo(g,m))};for(l&&(d=i[b(0)],e.moveTo(d.x,d.y)),c=0;c<=s;++c){if(d=i[b(c)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===f?(nh&&(h=n),g=(v*g+t)/++v):(y(),e.lineTo(t,n),f=r,v=0,p=h=n),m=n}y()}function _t(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?yt:bt}ht.id="arc",ht.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ht.defaultRoutes={backgroundColor:"backgroundColor"};const Et="function"===typeof Path2D;function wt(e,t,n,r){Et&&!t.options.segment?function(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),mt(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){const{segments:i,options:o}=t,a=_t(t);for(const s of i)mt(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class St extends j{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;Object(i.ob)(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Object(i.pb)(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,a=Object(i.qb)(this,{property:t,start:r,end:r});if(!a.length)return;const s=[],l=function(e){return e.stepped?i.rb:e.tension||"monotone"===e.cubicInterpolationMode?i.sb:i.tb}(n);let u,c;for(u=0,c=a.length;u"borderDash"!==e&&"fill"!==e};class Tt extends j{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(e-i,2)+Math.pow(t-o,2)2&&void 0!==arguments[2]?arguments[2]:{};const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}Tt.id="point",Tt.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Tt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Nt extends j{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:a}=kt(this),s=(l=a.radius).topLeft||l.topRight||l.bottomLeft||l.bottomRight?i.xb:Rt;var l;e.save(),a.w===o.w&&a.h===o.h||(e.beginPath(),s(e,It(a,t,o)),e.clip(),s(e,It(o,-t,a)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),s(e,It(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return At(this,e,t,n)}inXRange(e,t){return At(this,e,null,t)}inYRange(e,t){return At(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Nt.id="bar",Nt.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Nt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Pt=Object.freeze({__proto__:null,ArcElement:ht,LineElement:St,PointElement:Tt,BarElement:Nt});function Dt(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function Lt(e){e.data.datasets.forEach(e=>{Dt(e)})}var Mt={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void Lt(e);const o=e.width;e.data.datasets.forEach((t,a)=>{const{_data:s,indexAxis:l}=t,u=e.getDatasetMeta(a),c=s||t.data;if("y"===Object(i.C)([l,e.options.indexAxis]))return;if(!u.controller.supportsDecimation)return;const d=e.scales[u.xAxisID];if("linear"!==d.type&&"time"!==d.type)return;if(e.options.parsing)return;let{start:f,count:p}=function(e,t){const n=t.length;let r,o=0;const{iScale:a}=e,{min:s,max:l,minDefined:u,maxDefined:c}=a.getUserBounds();return u&&(o=Object(i.f)(Object(i.A)(t,a.axis,s).lo,0,n-1)),r=c?Object(i.f)(Object(i.A)(t,a.axis,l).hi+1,o,n)-o:n-o,{start:o,count:r}}(u,c);if(p<=(n.threshold||4*o))return void Dt(t);let h;switch(Object(i.Lb)(s)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let l=0;const u=t+n-1;let c,d,f,p,h,m=t;for(a[l++]=e[m],c=0;cf&&(f=p,d=e[r],h=r);a[l++]=d,m=h}return a[l++]=e[u],a}(c,f,p,o,n);break;case"min-max":h=function(e,t,n,o){let a,s,l,u,c,d,f,p,h,m,g=0,v=0;const b=[],y=t+n-1,_=e[t].x,E=e[y].x-_;for(a=t;am&&(m=u,f=a),g=(v*g+s.x)/++v;else{const n=a-1;if(!Object(i.Lb)(d)&&!Object(i.Lb)(f)){const t=Math.min(d,f),i=Math.max(d,f);t!==p&&t!==n&&b.push(Object(r.a)(Object(r.a)({},e[t]),{},{x:g})),i!==p&&i!==n&&b.push(Object(r.a)(Object(r.a)({},e[i]),{},{x:g}))}a>0&&n!==p&&b.push(e[n]),b.push(s),c=t,v=0,h=m=u,d=f=p=a}}return b}(c,f,p,o);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h})},destroy(e){Lt(e)}};function jt(e,t,n,r){if(r)return;let o=t[e],a=n[e];return"angle"===e&&(o=Object(i.Bb)(o),a=Object(i.Bb)(a)),{property:e,start:o,end:a}}function Ft(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Bt(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Ut(e,t){let n=[],r=!1;return Object(i.Cb)(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(e=>{let{start:t,end:a}=e;a=Ft(t,a,i);const s=i[t],l=i[a];null!==r?(o.push({x:s.x,y:r}),o.push({x:l.x,y:r})):null!==n&&(o.push({x:n,y:s.y}),o.push({x:n,y:l.y}))}),o}(e,t),n.length?new St({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ht(e){return e&&!1!==e.fill}function zt(e,t,n){let r=e[t].fill;const o=[t];let a;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!Object(i.Hb)(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Vt(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=Object(i.Wb)(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(Object(i.Jb)(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return Object(i.Hb)(o)&&Math.floor(o)===o?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Wt(e,t,n){const r=[];for(let i=0;i=0;--a){const t=i[a].$filler;t&&(t.line.updateControlPoints(o,t.axis),r&&t.fill&&$t(e.ctx,t,o))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const t=r[i].$filler;Ht(t)&&$t(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;Ht(r)&&"beforeDatasetDraw"===n.drawTime&&$t(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const en=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class tn extends j{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Object(i.d)(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=Object(i.p)(n.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=en(n,o);let u,c;t.font=r.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,o,s,l)+10):(c=this.maxHeight,u=this._fitCols(a,o,s,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:i,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+a;let c=e;i.textAlign="left",i.textBaseline="middle";let d=-1,f=-u;return this.legendItems.forEach((e,p)=>{const h=n+t/2+i.measureText(e.text).width;(0===p||l[l.length-1]+h+2*a>o)&&(c+=u,l[l.length-(p>0?0:1)]=0,f+=u,d++),s[p]={left:0,top:f,row:d,width:h,height:r},l[l.length-1]+=h+a}),c}_fitCols(e,t,n,r){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=o-e;let c=a,d=0,f=0,p=0,h=0;return this.legendItems.forEach((e,o)=>{const m=n+t/2+i.measureText(e.text).width;o>0&&f+r+2*a>u&&(c+=d+a,l.push({width:d,height:f}),p+=d+a,h++,d=f=0),s[o]={left:p,top:f,col:h,width:m,height:r},d=Math.max(d,m),f+=r+a}),c+=d,l.push({width:d,height:f}),c}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,a=Object(i.N)(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=Object(i.t)(n,this.left+r,this.right-this.lineWidths[o]);for(const l of t)o!==l.row&&(o=l.row,s=Object(i.t)(n,this.left+r,this.right-this.lineWidths[o])),l.top+=this.top+e+r,l.left=a.leftForLtr(a.x(s),l.width),s+=l.width+r}else{let o=0,s=Object(i.t)(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const l of t)l.col!==o&&(o=l.col,s=Object(i.t)(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),l.top=s,l.left+=this.left+r,l.left=a.leftForLtr(a.x(l.left),l.width),s+=l.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Object(i.m)(e,this),this._draw(),Object(i.o)(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:a}=e,s=i.Eb.color,l=Object(i.N)(e.rtl,this.left,this.width),u=Object(i.p)(a.font),{color:c,padding:d}=a,f=u.size,p=f/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=u.string;const{boxWidth:m,boxHeight:g,itemHeight:v}=en(a,f),b=this.isHorizontal(),y=this._computeTitleHeight();h=b?{x:Object(i.t)(o,this.left+d,this.right-n[0]),y:this.top+d+y,line:0}:{x:this.left+d,y:Object(i.t)(o,this.top+y+d,this.bottom-t[0].height),line:0},Object(i.O)(this.ctx,e.textDirection);const _=v+d;this.legendItems.forEach((E,w)=>{r.strokeStyle=E.fontColor||c,r.fillStyle=E.fontColor||c;const S=r.measureText(E.text).width,O=l.textAlign(E.textAlign||(E.textAlign=a.textAlign)),T=m+p+S;let x=h.x,C=h.y;l.setWidth(this.width),b?w>0&&x+T+d>this.right&&(C=h.y+=_,h.line++,x=h.x=Object(i.t)(o,this.left+d,this.right-n[h.line])):w>0&&C+_>this.bottom&&(x=h.x=x+t[h.line].width+d,h.line++,C=h.y=Object(i.t)(o,this.top+y+d,this.bottom-t[h.line].height));!function(e,t,n){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;r.save();const o=Object(i.Wb)(n.lineWidth,1);if(r.fillStyle=Object(i.Wb)(n.fillStyle,s),r.lineCap=Object(i.Wb)(n.lineCap,"butt"),r.lineDashOffset=Object(i.Wb)(n.lineDashOffset,0),r.lineJoin=Object(i.Wb)(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=Object(i.Wb)(n.strokeStyle,s),r.setLineDash(Object(i.Wb)(n.lineDash,[])),a.usePointStyle){const s={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},u=l.xPlus(e,m/2),c=t+p;Object(i.R)(r,s,u,c,a.pointStyleWidth&&m)}else{const a=t+Math.max((f-g)/2,0),s=l.leftForLtr(e,m),u=Object(i.zb)(n.borderRadius);r.beginPath(),Object.values(u).some(e=>0!==e)?Object(i.xb)(r,{x:s,y:a,w:m,h:g,radius:u}):r.rect(s,a,m,g),r.fill(),0!==o&&r.stroke()}r.restore()}(l.x(x),C,E),x=Object(i.P)(O,x+m+p,b?x+T:this.right,e.rtl),function(e,t,n){Object(i.n)(r,n.text,e,t+v/2,u,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(x),C,E),b?h.x+=T+d:h.y+=_}),Object(i.Q)(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Object(i.p)(t.font),r=Object(i.l)(t.padding);if(!t.display)return;const o=Object(i.N)(e.rtl,this.left,this.width),a=this.ctx,s=t.position,l=n.size/2,u=r.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=Object(i.t)(e.align,d,this.right-f);else{const t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);c=u+Object(i.t)(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=Object(i.t)(s,d,d+f);a.textAlign=o.textAlign(Object(i.s)(s)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Object(i.n)(a,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=Object(i.p)(e.font),n=Object(i.l)(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(Object(i.mb)(e,this.left,this.right)&&Object(i.mb)(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;ne.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:a}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const s=e.controller.getStyle(n?0:void 0),l=Object(i.l)(s.borderWidth);return{text:t[e.index].label,fillStyle:s.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:s.borderColor,pointStyle:r||s.pointStyle,rotation:s.rotation,textAlign:o||s.textAlign,borderRadius:0,datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class rn extends j{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const r=Object(i.Cb)(n.text)?n.text.length:1;this._padding=Object(i.l)(n.padding);const o=r*Object(i.p)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:o,options:a}=this,s=a.align;let l,u,c,d=0;return this.isHorizontal()?(u=Object(i.t)(s,n,o),c=t+e,l=o-n):("left"===a.position?(u=n+e,c=Object(i.t)(s,r,t),d=-.5*i.q):(u=o-e,c=Object(i.t)(s,t,r),d=.5*i.q),l=r-t),{titleX:u,titleY:c,maxWidth:l,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Object(i.p)(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:l}=this._drawArgs(r);Object(i.n)(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:l,textAlign:Object(i.s)(t.align),textBaseline:"middle",translation:[o,a]})}}var on={id:"title",_element:rn,start(e,t,n){!function(e,t){const n=new rn({ctx:e.ctx,options:t,chart:e});Ee.configure(e,n,t),Ee.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;Ee.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Ee.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const an=new WeakMap;var sn={id:"subtitle",start(e,t,n){const r=new rn({ctx:e.ctx,options:n,chart:e});Ee.configure(e,r,n),Ee.addBox(e,r),an.set(e,r)},stop(e){Ee.removeBox(e,an.get(e)),an.delete(e)},beforeUpdate(e,t,n){const r=an.get(e);Ee.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ln={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t-1?e.split("\n"):e}function dn(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function fn(e,t){const n=e.chart.ctx,{body:r,footer:o,title:a}=e,{boxWidth:s,boxHeight:l}=t,u=Object(i.p)(t.bodyFont),c=Object(i.p)(t.titleFont),d=Object(i.p)(t.footerFont),f=a.length,p=o.length,h=r.length,m=Object(i.l)(t.padding);let g=m.height,v=0,b=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,f&&(g+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),b){g+=h*(t.displayColors?Math.max(l,u.lineHeight):u.lineHeight)+(b-h)*u.lineHeight+(b-1)*t.bodySpacing}p&&(g+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let y=0;const _=function(e){v=Math.max(v,n.measureText(e).width+y)};return n.save(),n.font=c.string,Object(i.r)(e.title,_),n.font=u.string,Object(i.r)(e.beforeBody.concat(e.afterBody),_),y=t.displayColors?s+2+t.boxPadding:0,Object(i.r)(r,e=>{Object(i.r)(e.before,_),Object(i.r)(e.lines,_),Object(i.r)(e.after,_)}),y=0,n.font=d.string,Object(i.r)(e.footer,_),n.restore(),v+=m.width,{width:v,height:g}}function pn(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let u="center";return"center"===r?u=i<=(s+l)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),function(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===e&&i+o+a>t.width||("right"===e&&i-o-a<0||void 0)}(u,e,t,n)&&(u="center"),u}function hn(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||pn(e,t,n,r),yAlign:r}}function mn(e,t,n,r){const{caretSize:o,caretPadding:a,cornerRadius:s}=e,{xAlign:l,yAlign:u}=n,c=o+a,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=Object(i.zb)(s);let m=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,l);const g=function(e,t,n){let{y:r,height:i}=e;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,u,c);return"center"===u?"left"===l?m+=c:"right"===l&&(m-=c):"left"===l?m-=Math.max(d,p)+o:"right"===l&&(m+=Math.max(f,h)+o),{x:Object(i.f)(m,0,r.width-t.width),y:Object(i.f)(g,0,r.height-t.height)}}function gn(e,t,n){const r=Object(i.l)(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function vn(e){return un([],cn(e))}function bn(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class yn extends j{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new u(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Object(i.Ib)(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=n.beforeTitle.apply(this,[e]),i=n.title.apply(this,[e]),o=n.afterTitle.apply(this,[e]);let a=[];return a=un(a,cn(r)),a=un(a,cn(i)),a=un(a,cn(o)),a}getBeforeBody(e,t){return vn(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:n}=t,r=[];return Object(i.r)(e,e=>{const t={before:[],lines:[],after:[]},i=bn(n,e);un(t.before,cn(i.beforeLabel.call(this,e))),un(t.lines,i.label.call(this,e)),un(t.after,cn(i.afterLabel.call(this,e))),r.push(t)}),r}getAfterBody(e,t){return vn(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:n}=t,r=n.beforeFooter.apply(this,[e]),i=n.footer.apply(this,[e]),o=n.afterFooter.apply(this,[e]);let a=[];return a=un(a,cn(r)),a=un(a,cn(i)),a=un(a,cn(o)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],a=[];let s,l,u=[];for(s=0,l=t.length;se.filter(t,r,i,n))),e.itemSort&&(u=u.sort((t,r)=>e.itemSort(t,r,n))),Object(i.r)(u,t=>{const n=bn(e.callbacks,t);r.push(n.labelColor.call(this,t)),o.push(n.labelPointStyle.call(this,t)),a.push(n.labelTextColor.call(this,t))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=u,u}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const e=ln[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const t=this._size=fn(this,n),a=Object.assign({},e,t),s=hn(this.chart,n,a),l=mn(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:a,cornerRadius:s}=n,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Object(i.zb)(s),{x:f,y:p}=e,{width:h,height:m}=t;let g,v,b,y,_,E;return"center"===o?(_=p+m/2,"left"===r?(g=f,v=g-a,y=_+a,E=_-a):(g=f+h,v=g+a,y=_-a,E=_+a),b=g):(v="left"===r?f+Math.max(l,c)+a:"right"===r?f+h-Math.max(u,d)-a:this.caretX,"top"===o?(y=p,_=y-a,g=v-a,b=v+a):(y=p+m,_=y+a,g=v+a,b=v-a),E=y),{x1:g,x2:v,x3:b,y1:y,y2:_,y3:E}}drawTitle(e,t,n){const r=this.title,o=r.length;let a,s,l;if(o){const u=Object(i.N)(n.rtl,this.x,this.width);for(e.x=gn(this,n.titleAlign,n),t.textAlign=u.textAlign(n.titleAlign),t.textBaseline="middle",a=Object(i.p)(n.titleFont),s=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,l=0;l0!==e)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Object(i.xb)(e,{x:t,y:m,w:u,h:l,radius:s}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Object(i.xb)(e,{x:n,y:m+1,w:u-2,h:l-2,radius:s}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,m,u,l),e.strokeRect(t,m,u,l),e.fillStyle=a.backgroundColor,e.fillRect(n,m+1,u-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=n,d=Object(i.p)(n.bodyFont);let f=d.lineHeight,p=0;const h=Object(i.N)(n.rtl,this.x,this.width),m=function(n){t.fillText(n,h.x(e.x+p),e.y+f/2),e.y+=f+o},g=h.textAlign(a);let v,b,y,_,E,w,S;for(t.textAlign=a,t.textBaseline="middle",t.font=d.string,e.x=gn(this,g,n),t.fillStyle=n.bodyColor,Object(i.r)(this.beforeBody,m),p=s&&"right"!==g?"center"===a?u/2+c:u+2+c:0,_=0,w=r.length;_0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=ln[e.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=fn(this,e),a=Object.assign({},n,this._size),s=hn(t,e,a),l=mn(e,a,s,t);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Object(i.l)(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),Object(i.O)(e,t.textDirection),o.y+=a.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),Object(i.Q)(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map(e=>{let{datasetIndex:t,index:n}=e;const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[n],index:n}}),o=!Object(i.kb)(n,r),a=this._positionChanged(r,t);(o||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],a=this._getActiveElements(e,o,t,n),s=this._positionChanged(a,e),l=t||!Object(i.kb)(a,o)||s;return l&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),l}_getActiveElements(e,t,n,r){const i=this.options;if("mouseout"===e.type)return[];if(!r)return t;const o=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(e,t){const{caretX:n,caretY:r,options:i}=this,o=ln[i.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}yn.positioners=ln;var _n={id:"tooltip",_element:yn,positioners:ln,afterInit(e,t,n){n&&(e.tooltip=new yn({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",n))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:i.S,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},En=Object.freeze({__proto__:null,Decimation:Mt,Filler:Jt,Legend:nn,SubTitle:sn,Title:on,Tooltip:_n});function wn(e,t,n,r){const i=e.indexOf(t);if(-1===i)return((e,t,n,r)=>("string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return i!==e.lastIndexOf(t)?n:i}class Sn extends ${constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Object(i.Lb)(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Object(i.f)(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:wn(n,e,Object(i.Wb)(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=e;o<=t;o++)r.push({value:o});return r}getLabelForValue(e){const t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function On(e,t,n){let{horizontal:r,minRotation:o}=n;const a=Object(i.Ub)(o),s=(r?Math.sin(a):Math.cos(a))||.001,l=.75*t*(""+e).length;return Math.min(t/s,l)}Sn.id="category",Sn.defaults={ticks:{callback:Sn.prototype.getLabelForValue}};class Tn extends ${constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Object(i.Lb)(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const a=e=>r=t?r:e,s=e=>o=n?o:e;if(e){const e=Object(i.Tb)(r),t=Object(i.Tb)(o);e<0&&t<0?s(0):e>0&&t>0&&a(0)}if(r===o){let t=1;(o>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*o)),s(o+t),e||a(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(e,t){const n=[],{bounds:r,step:o,min:a,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,p=o||1,h=c-1,{min:m,max:g}=t,v=!Object(i.Lb)(a),b=!Object(i.Lb)(s),y=!Object(i.Lb)(u),_=(g-m)/(d+1);let E,w,S,O,T=Object(i.V)((g-m)/h/p)*p;if(T<1e-14&&!v&&!b)return[{value:m},{value:g}];O=Math.ceil(g/T)-Math.floor(m/T),O>h&&(T=Object(i.V)(O*T/h/p)*p),Object(i.Lb)(l)||(E=Math.pow(10,l),T=Math.ceil(T*E)/E),"ticks"===r?(w=Math.floor(m/T)*T,S=Math.ceil(g/T)*T):(w=m,S=g),v&&b&&o&&Object(i.W)((s-a)/o,T/1e3)?(O=Math.round(Math.min((s-a)/T,c)),T=(s-a)/O,w=a,S=s):y?(w=v?a:w,S=b?s:S,O=u-1,T=(S-w)/O):(O=(S-w)/T,O=Object(i.X)(O,Math.round(O),T/1e3)?Math.round(O):Math.ceil(O));const x=Math.max(Object(i.Y)(T),Object(i.Y)(w));E=Math.pow(10,Object(i.Lb)(l)?x:l),w=Math.round(w*E)/E,S=Math.round(S*E)/E;let C=0;for(v&&(f&&w!==a?(n.push({value:a}),w0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Object(i.Hb)(e)?Math.max(0,e):null,this.max=Object(i.Hb)(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const o=t=>n=e?n:t,a=e=>r=t?r:e,s=(e,t)=>Math.pow(10,Math.floor(Object(i.ac)(e))+t);n===r&&(n<=0?(o(1),a(10)):(o(s(n,-1)),a(s(r,1)))),n<=0&&o(s(r,-1)),r<=0&&a(s(n,1)),this._zero&&this.min!==this._suggestedMin&&n===s(this.min,0)&&o(s(n,-1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=function(e,t){const n=Math.floor(Object(i.ac)(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),o=[];let a=Object(i.c)(e.min,Math.pow(10,Math.floor(Object(i.ac)(t.min)))),s=Math.floor(Object(i.ac)(a)),l=Math.floor(a/Math.pow(10,s)),u=s<0?Math.pow(10,Math.abs(s)):1;do{o.push({value:a,major:Cn(a)}),++l,10===l&&(l=1,++s,u=s>=0?1:u),a=Math.round(l*Math.pow(10,s)*u)/u}while(si?{start:t-n,end:t}:{start:t,end:t+n}}function In(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],a=e._pointLabels.length,s=e.options.pointLabels,l=s.centerPointLabels?i.q/a:0;for(let f=0;ft.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function Pn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Dn(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Ln(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function Mn(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,i.u);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let i=1;i{const n=Object(i.d)(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){const e=this.options;e.display&&e.pointLabels.display?In(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){const t=i.u/(this._pointLabels.length||1),n=this.options.startAngle||0;return Object(i.Bb)(e*t+Object(i.Ub)(n))}getDistanceFromCenterForValue(e){if(Object(i.Lb)(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Object(i.Lb)(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e2&&void 0!==arguments[2]?arguments[2]:0;const r=this.getIndexAngle(e)-i.i+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),Mn(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r}=t,o=this._pointLabels.length;let a,s,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const t=r.setContext(e.getPointLabelContext(o)),a=Object(i.p)(t.font),{x:s,y:l,textAlign:u,left:c,top:d,right:f,bottom:p}=e._pointLabelItems[o],{backdropColor:h}=t;if(!Object(i.Lb)(h)){const e=Object(i.zb)(t.borderRadius),r=Object(i.l)(t.backdropPadding);n.fillStyle=h;const o=c-r.left,a=d-r.top,s=f-c+r.width,l=p-d+r.height;Object.values(e).some(e=>0!==e)?(n.beginPath(),Object(i.xb)(n,{x:o,y:a,w:s,h:l,radius:e}),n.fill()):n.fillRect(o,a,s,l)}Object(i.n)(n,e._pointLabels[o],s,l+a.lineHeight/2,a,{color:t.color,textAlign:u,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach((e,t)=>{if(0!==t){s=this.getDistanceFromCenterForValue(e.value);!function(e,t,n,r){const i=e.ctx,o=t.circular,{color:a,lineWidth:s}=t;!o&&!r||!a||!s||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),Mn(e,n,o,r),i.closePath(),i.stroke(),i.restore())}(this,r.setContext(this.getContext(t-1)),s,o)}}),n.display){for(e.save(),a=o-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),{color:i,lineWidth:o}=r;o&&i&&(e.lineWidth=o,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((r,s)=>{if(0===s&&!t.reverse)return;const l=n.setContext(this.getContext(s)),u=Object(i.p)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),l.showLabelBackdrop){e.font=u.string,a=e.measureText(r.label).width,e.fillStyle=l.backdropColor;const t=Object(i.l)(l.backdropPadding);e.fillRect(-a/2-t.left,-o-u.size/2-t.top,a+t.width,u.size+t.height)}Object(i.n)(e,r.label,0,-o,u,{color:l.color})}),e.restore()}drawTitle(){}}jn.id="radialLinear",jn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:B.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},jn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},jn.descriptors={angleLines:{_fallback:"grid"}};const Fn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bn=Object.keys(Fn);function Un(e,t){return e-t}function Hn(e,t){if(Object(i.Lb)(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:a}=e._parseOpts;let s=t;return"function"===typeof r&&(s=r(s)),Object(i.Hb)(s)||(s="string"===typeof r?n.parse(s,r):n.parse(s)),null===s?null:(o&&(s="week"!==o||!Object(i.Yb)(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function zn(e,t,n,r){const i=Bn.length;for(let o=Bn.indexOf(e);o=t?n[r]:n[o]]=!0}}else e[t]=!0}function Wn(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a=0&&(t[l].major=!0);return t}(e,r,i,n):r}class Gn extends ${constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),r=this._adapter=new te._date(e.adapters.date);r.init(t),Object(i.eb)(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Hn(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(e){a||isNaN(e.min)||(r=Math.min(r,e.min)),s||isNaN(e.max)||(o=Math.max(o,e.max))}a&&s||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),r=Object(i.Hb)(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),o=Object(i.Hb)(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,a=this.max,s=Object(i.ab)(r,o,a);return this._unit=t.unit||(n.autoSkip?zn(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,i){for(let o=Bn.length-1;o>=Bn.indexOf(n);o--){const n=Bn[o];if(Fn[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return Bn[n?Bn.indexOf(n):0]}(this,s.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=Bn.indexOf(e)+1,n=Bn.length;t+e.value))}initOffsets(e){let t,n,r=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;r=Object(i.f)(r,0,a),o=Object(i.f)(o,0,a),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,o=r.time,a=o.unit||zn(o.minUnit,t,n,this._getLabelCapacity(t)),s=Object(i.Wb)(o.stepSize,1),l="week"===a&&o.isoWeekday,u=Object(i.Yb)(l)||!0===l,c={};let d,f,p=t;if(u&&(p=+e.startOf(p,"isoWeek",l)),p=+e.startOf(p,u?"day":a),e.diff(n,t,a)>1e5*s)throw new Error(t+" and "+n+" are too far apart with stepSize of "+s+" "+a);const h="data"===r.ticks.source&&this.getDataTimestamps();for(d=p,f=0;de-t).map(e=>+e)}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}_tickFormatFunction(e,t,n,r){const o=this.options,a=o.time.displayFormats,s=this._unit,l=this._majorUnit,u=s&&a[s],c=l&&a[l],d=n[t],f=l&&c&&d&&d.major,p=this._adapter.format(e,r||(f?c:u)),h=o.ticks.callback;return h?Object(i.d)(h,[p,t,n],this):p}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e=e[l].pos&&t<=e[u].pos&&({lo:l,hi:u}=Object(i.A)(e,"pos",t)),({pos:r,time:a}=e[l]),({pos:o,time:s}=e[u])):(t>=e[l].time&&t<=e[u].time&&({lo:l,hi:u}=Object(i.A)(e,"time",t)),({time:r,pos:a}=e[l]),({time:o,pos:s}=e[u]));const c=o-r;return c?a+(s-a)*(t-r)/c:a}Gn.id="time",Gn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Yn extends Gn{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=qn(t,this.min),this._tableRange=qn(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],i=[];let o,a,s,l,u;for(o=0,a=e.length;o=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o{o.forEach(t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]})});var a=i;var s=function(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"};var l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}},u=e=>{var t=Object(r.a)(e),n=t.x,i=t.y,o=t.top,a=t.left;return{x:n,y:i,width:e.offsetWidth,height:e.offsetHeight,top:o,left:a}},c=(e,t,n)=>{var i=t||e&&e.parentNode;e&&i&&setTimeout(()=>{var t=Object(r.a)(i),o=u(e),a=o.height,s=o.left,l=o.top,c=o.width,d=s-t.left,f=l-t.top;n(d,f,c,a,s,l)},0)},d={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},f={blur(e){try{e.blur()}catch(t){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==d[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(n){}},measure(e,t){c(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=u(e),r=n.height,i=n.left,o=n.top,a=n.width;t(i,o,a,r)},0)},measureLayout(e,t,n,r){c(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}};t.a=f},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>2,d=(3&o)<<4|s>>4,f=(15&s)<<2|u>>6,p=63&u;l||(p=64,a||(f=64)),r.push(n[c],n[d],n[f],n[p])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{o=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4;if(r.push(u),64!==s){var c=a<<4&240|s>>2;if(r.push(c),64!==l){var d=s<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},u=function(e){try{return l.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function c(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=c(e[n],t[n]));return e}var d=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function f(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function p(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(t){return!1}}var h=function(e){function t(n,r){var i=e.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,m.prototype.create),i}return r.__extends(t,e),t}(Error),m=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n"}))}var v=/\{\$([^}]+)}/g;function b(e){return JSON.parse(e)}var y=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=b(u(o[0])||""),n=b(u(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:t,claims:n,data:r,signature:i}};var _=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e>>31)}var o,a,s=this.chain_[0],l=this.chain_[1],u=this.chain_[2],c=this.chain_[3],d=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=c^l&(u^c),a=1518500249):(o=l^u^c,a=1859775393):r<60?(o=l&u|c&(l|u),a=2400959708):(o=l^u^c,a=3395469782);i=(s<<5|s>>>27)+o+d+a+n[r]&4294967295;d=c,c=u,u=4294967295&(l<<30|l>>>2),l=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();var E=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,r=t;n 4. Need to update it?")}var i=e+" failed: ";return i+=r+" argument "}t.CONSTANTS=i,t.Deferred=d,t.ErrorFactory=m,t.FirebaseError=h,t.MAX_VALUE_MILLIS=144e5,t.RANDOM_FACTOR=.5,t.Sha1=_,t.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},t.assert=o,t.assertionError=a,t.async=function(e,t){return function(){for(var n=[],r=0;r=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=f();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},t.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f())},t.isNode=p,t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},t.isSafari=function(){return!p()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},t.isUWP=function(){return f().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=y(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=y(e).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"===typeof t&&(t.hasOwnProperty("nbf")?r=t.nbf:t.hasOwnProperty("iat")&&(r=t.iat),i=t.hasOwnProperty("exp")?t.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},t.issuedAtTime=function(e){var t=y(e).claims;return"object"===typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=b,t.map=function(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEach((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r=55296&&i<=56319){var a=i-55296;r++,o(r>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,r){var i;if(rn&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(S(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(S(e,t,r)+"must be a valid context object.")},t.validateIndexedDBOpenable=function(){return new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(o){t(o)}}))},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(S(e,t,r)+"must be a valid firebase namespace.")}}).call(this,n(54))},function(e,t,n){"use strict";var r=n(0),i=n(68),o=n(53),a=n(197),s=n(258),l=n(176),u=n(87),c=n(198),d=n(279),f=n(126),p=n(9),h=n(142),m=Object.assign({},o.c,o.a,o.b,o.d,o.e,o.f,o.h,o.g,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0});var g=null,v=r.forwardRef((e,t)=>{var n,o,p=e.autoCapitalize,v=void 0===p?"sentences":p,y=e.autoComplete,_=e.autoCompleteType,E=e.autoCorrect,w=void 0===E||E,S=e.blurOnSubmit,O=e.clearTextOnFocus,T=e.dir,x=e.editable,C=void 0===x||x,k=e.keyboardType,A=void 0===k?"default":k,R=e.multiline,I=void 0!==R&&R,N=e.numberOfLines,P=void 0===N?1:N,D=e.onBlur,L=e.onChange,M=e.onChangeText,j=e.onContentSizeChange,F=e.onFocus,B=e.onKeyPress,U=e.onLayout,H=e.onMoveShouldSetResponder,z=e.onMoveShouldSetResponderCapture,V=e.onResponderEnd,W=e.onResponderGrant,G=e.onResponderMove,q=e.onResponderReject,Y=e.onResponderRelease,$=e.onResponderStart,K=e.onResponderTerminate,X=e.onResponderTerminationRequest,Z=e.onScrollShouldSetResponder,Q=e.onScrollShouldSetResponderCapture,J=e.onSelectionChange,ee=e.onSelectionChangeShouldSetResponder,te=e.onSelectionChangeShouldSetResponderCapture,ne=e.onStartShouldSetResponder,re=e.onStartShouldSetResponderCapture,ie=e.onSubmitEditing,oe=e.placeholderTextColor,ae=e.returnKeyType,se=e.secureTextEntry,le=void 0!==se&&se,ue=e.selection,ce=e.selectTextOnFocus,de=e.spellCheck;switch(A){case"email-address":n="email";break;case"number-pad":case"numeric":o="numeric";break;case"decimal-pad":o="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}le&&(n="password");var fe=r.useRef({height:null,width:null}),pe=r.useRef(null),he=r.useCallback(e=>{if(I&&j&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===fe.current.height&&n===fe.current.width||(fe.current.height=t,fe.current.width=n,j({nativeEvent:{contentSize:{height:fe.current.height,width:fe.current.width}}}))}},[I,j]),me=r.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&h.a.currentlyFocusedField()===e},he(e))},[he]);Object(l.a)(()=>{var e=pe.current;null!=e&&null!=ue&&((e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(i){}}})(e,ue),document.activeElement===e&&(h.a._currentlyFocusedNode=e)},[pe,ue]);var ge=I?"textarea":"input";Object(s.a)(pe,U),Object(d.a)(pe,{onMoveShouldSetResponder:H,onMoveShouldSetResponderCapture:z,onResponderEnd:V,onResponderGrant:W,onResponderMove:G,onResponderReject:q,onResponderRelease:Y,onResponderStart:$,onResponderTerminate:K,onResponderTerminationRequest:X,onScrollShouldSetResponder:Z,onScrollShouldSetResponderCapture:Q,onSelectionChangeShouldSetResponder:ee,onSelectionChangeShouldSetResponderCapture:te,onStartShouldSetResponder:ne,onStartShouldSetResponderCapture:re});var ve=Object(f.c)().direction,be=(e=>Object(a.a)(e,m))(e);be.autoCapitalize=v,be.autoComplete=y||_||"on",be.autoCorrect=w?"on":"off",be.dir=void 0!==T?T:"auto",be.enterKeyHint=ae,be.inputMode=o,be.onBlur=function(e){h.a._currentlyFocusedNode=null,D&&(e.nativeEvent.text=e.target.value,D(e))},be.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,he(t),L&&L(e),M&&M(n)},be.onFocus=function(e){var t=e.target;F&&(e.nativeEvent.text=t.value,F(e)),null!=t&&(h.a._currentlyFocusedNode=t,O&&(t.value=""),ce&&(null!=g&&clearTimeout(g),g=setTimeout(()=>{null!=t&&t.select()},0)))},be.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==S?!I:S,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);B&&B(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!S&&I||!ie||(e.preventDefault(),r.text=e.target.value,ie(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},be.onSelect=function(e){if(J)try{var t=e.target,n=t.selectionStart,r=t.selectionEnd;e.nativeEvent.selection={start:n,end:r},e.nativeEvent.text=e.target.value,J(e)}catch(e){}},be.readOnly=!C,be.rows=I?P:void 0,be.spellCheck=null!=de?de:w,be.style=[{"--placeholderTextColor":oe},b.textinput$raw,b.placeholder,e.style],be.type=I?void 0:n;var ye=Object(c.a)(be),_e=Object(u.a)(pe,ye,me,t);be.ref=_e;var Ee=null!=e.lang?Object(f.b)(e.lang):null,we=e.dir||Ee||ve;return Object(i.a)(ge,be,{writingDirection:we})});v.displayName="TextInput",v.State=h.a;var b=p.a.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"}});t.a=v},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(281),i=n(389),o=n(0),a=n.n(o),s=n(126);t.a=(e,t,n)=>{var o;e&&e.constructor===String&&(o=r.a.propsToAccessibilityComponent(t));var l=o||e,u=Object(i.a)(l,t,n),c=a.a.createElement(l,u);return u.dir?a.a.createElement(s.a,{children:c,direction:u.dir,locale:u.lang}):c}},function(e,t,n){"use strict";var r=n(144),i=n(145);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(146)).default)(o.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.default=a},function(e,t,n){"use strict";var r=n(144),i=n(145);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(146)).default)(o.createElement("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.default=a},function(e,t,n){"use strict";var r=n(399),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";var r=n(140),i=n.n(r),o=n(43),a=n(39);class s extends o.a{constructor(){super(),this._children=[]}__makeNative(){if(!this.__isNative){this.__isNative=!0;for(var e,t=i()(this._children);!(e=t()).done;){var n=e.value;n.__makeNative(),a.a.API.connectAnimatedNodes(this.__getNativeTag(),n.__getNativeTag())}}super.__makeNative()}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(),a.a.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&a.a.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=i()(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}}t.a=s},function(e,t,n){"use strict";n.r(t);var r=n(1);const i="Navigation/POP",o="Navigation/PUSH",a="Navigation/RESET";t.default={POP:i,POP_TO_TOP:"Navigation/POP_TO_TOP",PUSH:o,RESET:a,REPLACE:"Navigation/REPLACE",COMPLETE_TRANSITION:"Navigation/COMPLETE_TRANSITION",pop:e=>Object(r.a)({type:i},e),popToTop:e=>Object(r.a)({type:"Navigation/POP_TO_TOP"},e),push:e=>Object(r.a)({type:o},e),reset:e=>Object(r.a)({type:a},e),replace:e=>Object(r.a)({type:"Navigation/REPLACE"},e),completeTransition:e=>Object(r.a)({type:"Navigation/COMPLETE_TRANSITION"},e)}},function(e,t,n){"use strict";n.r(t);var r=n(68),i=n(105),o=n(377),a=n(30),s=n(333);function l(e,t,n){return Object(s.a)(t),Object(a.hydrate)(e,t,n)}function u(e,t,n){return Object(s.a)(t),Object(a.render)(e,t,n)}var c=a.unmountComponentAtNode,d=n(125),f=n(35);function p(){return new Promise((e,t)=>{e(!0)})}var h=f.a&&"function"===typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null;var m={},g={isScreenReaderEnabled:p,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!h||h.matches)})},fetch:p,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!h)return;var n=e=>{t(e.matches)};r=n,null!=h&&(null!=h.addEventListener?h.addEventListener("change",r):h.addListener(r)),m[t]=n}var r;return{remove:()=>g.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=m[t];if(!n||!h)return;r=n,null!=h&&(null!=h.removeEventListener?h.removeEventListener("change",r):h.removeListener(r))}var r}},v=g,b=n(251),y=n(15);var _=f.a&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,E=new WeakMap,w={getColorScheme:()=>_&&_.matches?"dark":"light",addChangeListener(e){var t=E.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},E.set(e,t)),_&&_.addListener(t),{remove:function(){var t=E.get(e);_&&t&&_.removeListener(t),E.delete(e)}}}},S=n(17),O=n.n(S),T=n(14),x=n.n(T),C=n(31),k=n.n(C),A=n(0),R=n.n(A),I=n(9),N=n(5),P=A.createContext(null);function D(e){var t=e.children,n=e.WrapperComponent,r=A.createElement(N.a,{children:t,key:1,pointerEvents:"box-none",style:L.appContainer});return n&&(r=A.createElement(n,null,r)),A.createElement(P.Provider,{value:e.rootTag},A.createElement(N.a,{pointerEvents:"box-none",style:L.appContainer},r))}var L=I.a.create({appContainer:{flex:1}});var M,j={},F={},B=e=>e();class U{static getAppKeys(){return Object.keys(F)}static getApplication(e,t){return x()(F[e]&&F[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),F[e].getApplication(t)}static registerComponent(e,t){return F[e]={getApplication:e=>{return n=B(t),r=e?e.initialProps:j,i=M&&M(e),{element:R.a.createElement(D,{WrapperComponent:i,rootTag:{}},R.a.createElement(n,r)),getStyleElement:e=>{var t=I.a.getSheet();return R.a.createElement("style",k()({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>function(e,t,n,r){var i=r.hydrate,o=r.initialProps,a=r.rootTag,s=i?l:u;x()(a,"Expect to have a valid rootTag, instead got ",a),s(R.a.createElement(D,{WrapperComponent:t,rootTag:a},R.a.createElement(e,o)),a,n)}(B(t),M&&M(e),e.callback,{hydrate:e.hydrate||!1,initialProps:e.initialProps||j,rootTag:e.rootTag})},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?U.registerRunnable(t,r):(x()(n,"No component provider passed in"),U.registerComponent(t,n))})}static registerRunnable(e,t){return F[e]={run:t},e}static runApplication(e,t){x()(F[e]&&F[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),F[e].run(t)}static setComponentProviderInstrumentationHook(e){B=e}static setWrapperComponentProvider(e){M=e}static unmountApplicationComponentAtRootTag(e){c(e)}}var H=n(432),z=f.a&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),V=["change","memoryWarning"],W=z?"webkitvisibilitychange":"visibilitychange",G=z?"webkitVisibilityState":"visibilityState",q="background",Y="active",$=null;class K{static get currentState(){if(!K.isAvailable)return Y;switch(document[G]){case"hidden":case"prerender":case"unloaded":return q;default:return Y}}static addEventListener(e,t){if(K.isAvailable&&(x()(-1!==V.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return $||($=new H.a,document.addEventListener(W,()=>{$&&$.emit("change",K.currentState)},!1)),$.addListener(e,t)}static removeEventListener(e,t){K.isAvailable&&(console.error("AppState.removeListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `AppState.addEventListener`."),x()(-1!==V.indexOf(e),'Trying to remove listener for unknown event: "%s"',e),"change"===e&&$&&$.removeListener(t))}}K.isAvailable=f.a&&document[G];var X,Z=n(381);class Q{static isAvailable(){return void 0===X&&(X="function"===typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),X}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(a){}i.removeAllRanges(),n.removeChild(r)}return t}}var J=n(42),ee={Dimensions:{get windowPhysicalPixels(){var e=J.a.get("window"),t=e.width,n=e.height,r=e.fontScale,i=e.scale;return{width:t*i,height:n*i,scale:i,fontScale:r}},get screenPhysicalPixels(){var e=J.a.get("screen"),t=e.width,n=e.height,r=e.fontScale,i=e.scale;return{width:t*i,height:n*i,scale:i,fontScale:r}}},get locale(){if(f.a)return navigator.languages?navigator.languages[0]:navigator.language},get totalMemory(){return f.a?navigator.deviceMemory:void 0},get userAgent(){return f.a?navigator.userAgent:""}},te=n(96),ne=n(59),re=n(227),ie=n(163),oe=n(11),ae=n(63);function se(e,t){oe.a.isTesting||ae.a.configureNextLayoutAnimation(e,null!==t&&void 0!==t?t:function(){},(function(){}))}function le(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var ue={easeInEaseOut:le(300,"easeInEaseOut","opacity"),linear:le(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}},ce={configureNext:se,create:le,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:ue,easeInEaseOut:se.bind(null,ue.easeInEaseOut),linear:se.bind(null,ue.linear),spring:se.bind(null,ue.spring)},de=n(148),fe=n(417).a,pe=n(196),he=n(378);var me=class{static share(e,t){return void 0===t&&(t={}),x()("object"===typeof e&&null!==e,"Content to share must be a valid object"),x()("string"===typeof e.url||"string"===typeof e.message,"At least one of URL and message is required"),x()("object"===typeof t&&null!==t,"Options must be a valid object"),x()(!e.title||"string"===typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}},ge=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)},ve={cancel(){ge(0)},vibrate(e){void 0===e&&(e=400),ge(e)}},be=n(154),ye=n(80),_e=n(33),Ee=n.n(_e),we=["accessibilityReadOnly","color","disabled","onChange","onValueChange","style","value"],Se=A.forwardRef((e,t)=>{var n=e.accessibilityReadOnly,i=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.style,u=e.value,c=Ee()(e,we);var d=A.createElement(N.a,{style:[Oe.fakeControl,u&&Oe.fakeControlChecked,u&&i&&{backgroundColor:i,borderColor:i},o&&Oe.fakeControlDisabled,u&&o&&Oe.fakeControlCheckedAndDisabled]}),f=Object(r.a)("input",{checked:u,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:n,ref:t,style:[Oe.nativeControl,Oe.cursorInherit],type:"checkbox"});return A.createElement(N.a,k()({},c,{accessibilityDisabled:o,accessibilityReadOnly:n,style:[Oe.root,l,o&&Oe.cursorDefault]}),d,f)});Se.displayName="CheckBox";var Oe=I.a.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:O()(O()({},I.a.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})}),Te=Se,xe=n(255),Ce=n(51),ke=["children","style","imageStyle","imageRef"],Ae={},Re=Object(A.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?Ae:r,o=e.imageStyle,a=e.imageRef,s=Ee()(e,ke),l=I.a.flatten(i),u=l.height,c=l.width;return A.createElement(N.a,{ref:t,style:i},A.createElement(Ce.a,k()({},s,{ref:a,style:[{width:c,height:u,zIndex:-1},I.a.absoluteFill,o]})),n)});Re.displayName="ImageBackground";var Ie=Re,Ne=n(253),Pe=n(383),De=n(87),Le=n(198);var Me=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],je=A.forwardRef((e,t)=>{var n=e.children,i=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,u=(e.itemStyle,e.mode,e.prompt,Ee()(e,Me)),c=A.useRef(null);var d=O()({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[Fe.initial,s],testID:l,value:a},u),f=Object(Le.a)(d),p=Object(De.a)(c,f,t);return d.ref=p,Object(r.a)("select",d)});je.Item=function(e){var t=e.color,n=e.label,i=e.testID,o=e.value,a={color:t};return Object(r.a)("option",{children:n,style:a,testID:i,value:o})};var Fe=I.a.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}}),Be=je,Ue=()=>{};var He=function(){var e=!1;if(f.a)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}();function ze(){return this.cancelBubble}function Ve(){return this.defaultPrevented}function We(e,t){var n=function(e){return null!=e&&(He?e:Boolean(e.capture))}(t);return function(t,r){if(null==t||"function"!==typeof t.addEventListener)throw new Error("createEventHandle: called on an invalid target.");var i=t;if(null!=r){var o=e=>{return r(((t=e).nativeEvent=t,t.persist=Ue,t.isDefaultPrevented=Ve,t.isPropagationStopped=ze,t));var t};return i.addEventListener(e,o,n),function(){null!=i&&i.removeEventListener(e,o,n)}}return Ue}}var Ge,qe,Ye="keyboard",$e="keyboard",Ke=!1,Xe=new Set,Ze={passive:!0},Qe={capture:!0,passive:!0},Je=We("blur",Ze),et=We("focus",Ze),tt=We("visibilitychange",Qe),nt=We("keydown",Qe),rt=We("pointerdown",Qe),it=We("pointermove",Qe),ot=We("contextmenu",Qe),at=We("mousedown",Qe),st=We("mousemove",Qe),lt=We("mouseup",Qe),ut=We("scroll",Qe),ct=We("selectionchange",Qe),dt=We("touchcancel",Qe),ft=We("touchmove",Qe),pt=We("touchstart",Qe);function ht(){null==Ge&&null==qe||(null!=Ge&&($e=Ge,Ge=null),null!=qe&&(Ye=qe,qe=null),gt())}function mt(e){var t=e.type;if("undefined"!==typeof window&&null!=window.PointerEvent){if("pointerdown"===t)return void(Ye!==e.pointerType&&($e=e.pointerType,Ye=e.pointerType,gt()));if("pointermove"===t)return void($e!==e.pointerType&&($e=e.pointerType,gt()))}else{if(Ke||("mousedown"===t&&"mouse"!==Ye&&($e="mouse",Ye="mouse",gt()),"mousemove"===t&&"mouse"!==$e&&($e="mouse",gt())),"touchstart"===t)return Ke=!0,e.touches&&e.touches.length>1&&(Ke=!1),void("touch"!==Ye&&($e="touch",Ye="touch",gt()));"contextmenu"!==t&&"mouseup"!==t&&"selectionchange"!==t&&"scroll"!==t&&"touchcancel"!==t&&"touchmove"!==t||(Ke=!1)}}function gt(){var e={activeModality:Ye,modality:$e};Xe.forEach(t=>{t(e)})}f.a&&(Je(window,(function(){Ge=$e,qe=Ye,Ye="keyboard",$e="keyboard",gt(),Ke=!1})),et(window,(function(){ht()})),nt(document,(function(e){e.metaKey||e.altKey||e.ctrlKey||"keyboard"!==$e&&($e="keyboard",Ye="keyboard",gt())})),rt(document,mt),it(document,mt),tt(document,(function(){"hidden"!==document.visibilityState&&ht()})),ot(document,mt),at(document,mt),st(document,mt),lt(document,mt),dt(document,mt),ft(document,mt),pt(document,mt),ct(document,mt),ut(document,mt));var vt=n(176),bt=n(324);function yt(e,t){var n=Object(bt.a)(()=>new Map),r=Object(bt.a)(()=>{var r=We(e,t);return(e,t)=>{var i=n.get(e);null!=i&&i(),null==t&&n.delete(e);var o=r(e,t);return n.set(e,o),o}});return Object(vt.a)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var _t={},Et={passive:!0};function wt(e,t,n){var r=document.createEvent("CustomEvent"),i=n||_t,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,u=i.detail;r.initCustomEvent(t,a,l,u),e.dispatchEvent(r)}function St(e){var t=e.pointerType;return null!=t?t:$e}function Ot(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"===typeof window||null==window.PointerEvent),u=yt(l?"pointermove":"mousemove",Et),c=yt(l?"pointerenter":"mouseenter",Et),d=yt(l?"pointerleave":"mouseleave",Et),f=yt("react-gui:hover:lock",Et),p=yt("react-gui:hover:unlock",Et);Object(vt.a)(()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),u(t,null),d(t,null)},h=function(t){var r=e.current;null!=r&&"touch"!==St(t)&&(n&&wt(r,"react-gui:hover:unlock"),l(t))},m=function(e){"touch"!==St(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},g=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&u(t,r?null:m),d(t,r?null:h)};c(t,r?null:function(t){var i=e.current;if(null!=i&&"touch"!==St(t)){n&&wt(i,"react-gui:hover:lock"),g(t);f(i,r?null:function(e){e.target!==i&&l(t)}),p(i,r?null:function(e){e.target!==i&&g(t)})}})}},[c,u,d,f,p,n,r,i,o,a,s,e])}var Tt=n(211),xt=["children","delayLongPress","delayPressIn","delayPressOut","disabled","focusable","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","testOnly_hovered","testOnly_pressed"];function Ct(e,t){var n=e.children,r=e.delayLongPress,i=e.delayPressIn,o=e.delayPressOut,a=e.disabled,s=e.focusable,l=e.onBlur,u=e.onContextMenu,c=e.onFocus,d=e.onHoverIn,f=e.onHoverOut,p=e.onKeyDown,h=e.onLongPress,m=e.onPress,g=e.onPressMove,v=e.onPressIn,b=e.onPressOut,y=e.style,_=e.testOnly_hovered,E=e.testOnly_pressed,w=Ee()(e,xt),S=kt(!0===_),O=S[0],T=S[1],x=kt(!1),C=x[0],R=x[1],I=kt(!0===E),P=I[0],D=I[1],L=Object(A.useRef)(null),M=Object(De.a)(t,L),j=Object(A.useMemo)(()=>({delayLongPress:r,delayPressStart:i,delayPressEnd:o,disabled:a,onLongPress:h,onPress:m,onPressChange:D,onPressStart:v,onPressMove:g,onPressEnd:b}),[r,i,o,a,h,m,v,g,b,D]),F=Object(Tt.a)(L,j),B=F.onContextMenu,U=F.onKeyDown;Ot(L,{contain:!0,disabled:a,onHoverChange:T,onHoverStart:d,onHoverEnd:f});var H={hovered:O,focused:C,pressed:P},z=A.useCallback(e=>{e.nativeEvent.target===L.current&&(R(!1),null!=l&&l(e))},[L,R,l]),V=A.useCallback(e=>{e.nativeEvent.target===L.current&&(R(!0),null!=c&&c(e))},[L,R,c]),W=A.useCallback(e=>{null!=B&&B(e),null!=u&&u(e)},[u,B]),G=A.useCallback(e=>{null!=U&&U(e),null!=p&&p(e)},[p,U]);return A.createElement(N.a,k()({},w,F,{accessibilityDisabled:a,focusable:!a&&!1!==s,onBlur:z,onContextMenu:W,onFocus:V,onKeyDown:G,pointerEvents:a?"none":w.pointerEvents,ref:M,style:[!a&&At.root,"function"===typeof y?y(H):y]}),"function"===typeof n?n(H):n)}function kt(e){var t=Object(A.useState)(!1);return[t[0]||e,t[1]]}var At=I.a.create({root:{cursor:"pointer",touchAction:"manipulation"}}),Rt=Object(A.memo)(Object(A.forwardRef)(Ct));Rt.displayName="Pressable";var It=Rt,Nt=["color","indeterminate","progress","trackColor","style"],Pt=A.forwardRef((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,u=void 0===l?"transparent":l,c=e.style,d=Ee()(e,Nt),f=100*s,p=o?"25%":f+"%";return A.createElement(N.a,k()({},d,{accessibilityRole:"progressbar",accessibilityValueMax:100,accessibilityValueMin:0,accessibilityValueNow:o?null:f,ref:t,style:[Dt.track,c,{backgroundColor:u}]}),A.createElement(N.a,{style:[{backgroundColor:r,width:p},Dt.progress,o&&Dt.animation]}))});Pt.displayName="ProgressBar";var Dt=I.a.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:[{translateX:"-100%"}]},"100%":{transform:[{translateX:"400%"}]}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}}),Lt=Pt,Mt=n(379),jt=n(192),Ft=n(44),Bt=n(384),Ut=n(380),Ht=n(385),zt=n(18),Vt=n(65),Wt=n(431),Gt=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function qt(e,t){return{child:{opacity:null!==e&&void 0!==e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function Yt(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function $t(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,a=e.delayLongPress,s=e.disabled,l=e.focusable,u=e.onHideUnderlay,c=e.onLongPress,d=e.onPress,f=e.onPressIn,p=e.onPressOut,h=e.onShowUnderlay,m=e.rejectResponderTermination,g=e.style,v=e.testOnly_pressed,b=e.underlayColor,y=Ee()(e,Gt),_=Object(A.useRef)(null),E=Object(De.a)(t,_),w=Object(A.useState)(!0===v?qt(n,b):null),S=w[0],O=w[1],T=Object(A.useCallback)(()=>{Yt(e)&&(O(qt(n,b)),null!=h&&h())},[n,h,e,b]),x=Object(A.useCallback)(()=>{!0!==v&&Yt(e)&&(O(null),null!=u&&u())},[u,e,v]),C=Object(A.useMemo)(()=>({cancelable:!m,disabled:s,delayLongPress:a,delayPressStart:i,delayPressEnd:o,onLongPress:c,onPress:d,onPressStart(e){T(),null!=f&&f(e)},onPressEnd(e){x(),null!=p&&p(e)}}),[a,i,o,s,c,d,f,p,m,T,x]),R=Object(Tt.a)(_,C),P=A.Children.only(r);return A.createElement(N.a,k()({},y,R,{accessibilityDisabled:s,focusable:!s&&!1!==l,pointerEvents:s?"none":void 0,ref:E,style:[Kt.root,g,!s&&Kt.actionable,S&&S.underlay]}),A.cloneElement(P,{style:I.a.compose(P.props.style,S&&S.child)}))}var Kt=I.a.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),Xt=A.memo(A.forwardRef($t));Xt.displayName="TouchableHighlight";var Zt=Xt,Qt=n(119),Jt=n(38),en=n(100),tn=n(280).a,nn=n(160);function rn(e){return R.a.createElement(nn.a,e)}rn.ignoreWarnings=()=>{};var on=rn,an={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}},sn=n(649),ln=nn.a,un=nn.a,cn=()=>Promise.resolve(!1),dn={PERMISSIONS:{},RESULTS:{},checkPermission:cn,check:cn,requestPermission:cn,request:cn,requestMultiple:cn},fn={},pn={},hn={},mn=n(216).a;function gn(){var e=A.useState(w.getColorScheme()),t=e[0],n=e[1];return A.useEffect(()=>w.addChangeListener((function(e){n(e.colorScheme)})).remove),t}var vn=n(126).c;function bn(){var e=Object(A.useState)(()=>J.a.get("window")),t=e[0],n=e[1];return Object(A.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return J.a.addEventListener("change",e),n(J.a.get("window")),()=>{J.a.removeEventListener("change",e)}},[]),t}n.d(t,"unstable_createElement",(function(){return r.a})),n.d(t,"findNodeHandle",(function(){return i.a})),n.d(t,"processColor",(function(){return o.a})),n.d(t,"render",(function(){return u})),n.d(t,"unmountComponentAtNode",(function(){return c})),n.d(t,"NativeModules",(function(){return d.a})),n.d(t,"AccessibilityInfo",(function(){return v})),n.d(t,"Alert",(function(){return b.a})),n.d(t,"Animated",(function(){return y.a})),n.d(t,"Appearance",(function(){return w})),n.d(t,"AppRegistry",(function(){return U})),n.d(t,"AppState",(function(){return K})),n.d(t,"BackHandler",(function(){return Z.a})),n.d(t,"Clipboard",(function(){return Q})),n.d(t,"DeviceInfo",(function(){return ee})),n.d(t,"Dimensions",(function(){return J.a})),n.d(t,"Easing",(function(){return te.a})),n.d(t,"I18nManager",(function(){return ne.a})),n.d(t,"Keyboard",(function(){return re.a})),n.d(t,"InteractionManager",(function(){return ie.a})),n.d(t,"LayoutAnimation",(function(){return ce})),n.d(t,"Linking",(function(){return de.a})),n.d(t,"NativeEventEmitter",(function(){return fe})),n.d(t,"PanResponder",(function(){return pe.a})),n.d(t,"PixelRatio",(function(){return he.a})),n.d(t,"Platform",(function(){return oe.a})),n.d(t,"Share",(function(){return me})),n.d(t,"StyleSheet",(function(){return I.a})),n.d(t,"UIManager",(function(){return ae.a})),n.d(t,"Vibration",(function(){return ve})),n.d(t,"ActivityIndicator",(function(){return be.a})),n.d(t,"Button",(function(){return ye.a})),n.d(t,"CheckBox",(function(){return Te})),n.d(t,"FlatList",(function(){return xe.a})),n.d(t,"Image",(function(){return Ce.a})),n.d(t,"ImageBackground",(function(){return Ie})),n.d(t,"KeyboardAvoidingView",(function(){return Ne.a})),n.d(t,"Modal",(function(){return Pe.a})),n.d(t,"Picker",(function(){return Be})),n.d(t,"Pressable",(function(){return It})),n.d(t,"ProgressBar",(function(){return Lt})),n.d(t,"RefreshControl",(function(){return Mt.a})),n.d(t,"SafeAreaView",(function(){return jt.a})),n.d(t,"ScrollView",(function(){return Ft.a})),n.d(t,"SectionList",(function(){return Bt.a})),n.d(t,"StatusBar",(function(){return Ut.a})),n.d(t,"Switch",(function(){return Ht.a})),n.d(t,"Text",(function(){return zt.a})),n.d(t,"TextInput",(function(){return Vt.a})),n.d(t,"Touchable",(function(){return Wt.a})),n.d(t,"TouchableHighlight",(function(){return Zt})),n.d(t,"TouchableNativeFeedback",(function(){return Qt.a})),n.d(t,"TouchableOpacity",(function(){return Jt.a})),n.d(t,"TouchableWithoutFeedback",(function(){return en.a})),n.d(t,"View",(function(){return N.a})),n.d(t,"VirtualizedList",(function(){return tn})),n.d(t,"YellowBox",(function(){return on})),n.d(t,"LogBox",(function(){return an})),n.d(t,"DrawerLayoutAndroid",(function(){return sn.a})),n.d(t,"InputAccessoryView",(function(){return ln})),n.d(t,"ToastAndroid",(function(){return un})),n.d(t,"PermissionsAndroid",(function(){return dn})),n.d(t,"Settings",(function(){return fn})),n.d(t,"Systrace",(function(){return pn})),n.d(t,"TVEventHandler",(function(){return hn})),n.d(t,"DeviceEventEmitter",(function(){return mn})),n.d(t,"useColorScheme",(function(){return gn})),n.d(t,"useLocaleContext",(function(){return vn})),n.d(t,"useWindowDimensions",(function(){return bn}))},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},D={};function L(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(D[e]=i),t&&(D[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(D[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function M(e,t){return e.isValid()?(t=j(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,i=e.match(I);for(t=0,n=i.length;t=0&&N.test(e);)e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var F={};function B(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function U(e){return"string"===typeof e?F[e]||F[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)a(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var z={};function V(e,t){z[e]=t}function W(e){return e%4===0&&e%100!==0||e%400===0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function Y(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ee(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,Q=/\d\d/,J=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){X[e]=C(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(X,e)?X[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ge,ve={};function be(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=q(e)}),r=e.length,n=0;n68?1900:2e3)};var Ne=Y("FullYear",!0);function Pe(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function De(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Le(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Me(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Le(e,r,i);return s<=0?a=Ie(o=e-1)+s:s>Ie(e)?(o=e+1,a=s-Ie(e)):(o=e,a=s),{year:o,dayOfYear:a}}function je(e,t,n){var r,i,o=Le(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Fe(i=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Fe(e,t,n){var r=Le(e,t,n),i=Le(e+1,t,n);return(Ie(e)-r+i)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),V("week",5),V("isoWeek",5),pe("w",ne),pe("ww",ne,Q),pe("W",ne),pe("WW",ne,Q),ye(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=q(e)})),L("d",0,"do","day"),L("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),L("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),L("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,r){t[r]=q(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=fe,We=fe,Ge=fe;function qe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null}function Ye(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){L(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,$e),L("k",["kk",2],0,(function(){return this.hours()||24})),L("hmm",0,0,(function(){return""+$e.apply(this)+R(this.minutes(),2)})),L("hmmss",0,0,(function(){return""+$e.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),L("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),L("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),B("hour","h"),V("hour",13),pe("a",Xe),pe("A",Xe),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,Q),pe("hh",ne,Q),pe("kk",ne,Q),pe("hmm",re),pe("hmmss",ie),pe("Hmm",re),pe("Hmmss",ie),be(["H","HH"],3),be(["k","kk"],(function(e,t,n){var r=q(e);t[3]=24===r?0:r})),be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),be(["h","hh"],(function(e,t,n){t[3]=q(e),h(n).bigHour=!0})),be("hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r)),h(n).bigHour=!0})),be("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(i)),h(n).bigHour=!0})),be("Hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r))})),be("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(i))}));var Ze,Qe=Y("Hours",!0),Je={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:ze,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ee(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,i,o,a,s=e._i,l=ut.exec(s)||ct.exec(s),u=ft.length,c=pt.length;if(l){for(h(e).iso=!0,t=0,n=u;t7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=je(Tt(),o,a),n=_t(t.gg,e._a[0],u.year),r=_t(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Fe(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Me(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[0],i[0]),(e._dayOfYear>Ie(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=De(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:Pe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function wt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,i,o,a,s,l,u=""+e._i,c=u.length,d=0;for(l=(i=j(e._f,e._locale).match(I)||[]).length,t=0;t0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),d+=n.length),D[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=c-d,u.length>0&&h(e).unusedInput.push(u),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Et(e),lt(e)}else yt(e);else vt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new _(lt(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()}));function kt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e(o=Fe(e,r,i))&&(t=o),un.call(this,e,t,n,r,i))}function un(e,t,n,r,i){var o=Me(e,t,n,r,i),a=De(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?h(n).era=i:h(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),be(["y","yy","yyy","yyyy"],0),be(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),L(0,["gg",2],0,(function(){return this.weekYear()%100})),L(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ne,Q),pe("gg",ne,Q),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=q(e)})),ye(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),L("Q",0,"Qo","quarter"),B("quarter","Q"),V("quarter",7),pe("Q",Z),be("Q",(function(e,t){t[1]=3*(q(e)-1)})),L("D",["DD",2],"Do","date"),B("date","D"),V("date",9),pe("D",ne),pe("DD",ne,Q),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),be(["D","DD"],2),be("Do",(function(e,t){t[2]=q(e.match(ne)[0])}));var cn=Y("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),V("dayOfYear",4),pe("DDD",oe),pe("DDDD",J),be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),L("m",["mm",2],0,"minute"),B("minute","m"),V("minute",14),pe("m",ne),pe("mm",ne,Q),be(["m","mm"],4);var dn=Y("Minutes",!1);L("s",["ss",2],0,"second"),B("second","s"),V("second",15),pe("s",ne),pe("ss",ne,Q),be(["s","ss"],5);var fn,pn,hn=Y("Seconds",!1);for(L("S",0,0,(function(){return~~(this.millisecond()/100)})),L(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),L(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),L(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),L(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),L(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),L(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),V("millisecond",16),pe("S",oe,Z),pe("SS",oe,Q),pe("SSS",oe,J),fn="SSSS";fn.length<=9;fn+="S")pe(fn,le);function mn(e,t){t[6]=q(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")be(fn,mn);pn=Y("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var gn=_.prototype;function vn(e){return e}gn.add=qt,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Tt(),i=Mt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(C(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Tt(n)))},gn.clone=function(){return new _(this)},gn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Mt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":o=Zt(this,r)/12;break;case"month":o=Zt(this,r);break;case"quarter":o=Zt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},gn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=M(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(E(e)&&e.isValid()||Tt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(Tt(),e)},gn.to=function(e,t){return this.isValid()&&(E(e)&&e.isValid()||Tt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(Tt(),e)},gn.get=function(e){return C(this[e=U(e)])?this[e]():this},gn.invalidAt=function(){return h(this).overflow},gn.isAfter=function(e,t){var n=E(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?M(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",M(n,"Z")):M(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=Ft,gn.isUTC=Ft,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=S("dates accessor is deprecated. Use date instead.",cn),gn.months=S("months accessor is deprecated. Use month instead",Ae),gn.years=S("years accessor is deprecated. Use year instead",Ne),gn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),gn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=St(t))._a?(e=t._isUTC?p(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var bn=A.prototype;function yn(e,t,n,r){var i=st(),o=p().set(r,t);return i[n](o,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return yn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=yn(e,r,n,"month");return i}function En(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return yn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=yn(t,(i+a)%7,r,"day");return s}bn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},bn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(e){return this._ordinal.replace("%d",e)},bn.preparse=vn,bn.postformat=vn,bn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return C(i)?i(e,t,n,r):i.replace(/%d/i,e)},bn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},bn.set=function(e){var t,n;for(n in e)a(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n=0)return l[r]},bn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},bn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},bn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},bn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},bn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},bn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},bn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=xe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(e){return je(e,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},bn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},bn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},bn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},bn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},bn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var wn=Math.abs;function Sn(e,t,n,r){var i=Ht(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function On(e){return e<0?Math.floor(e):Math.ceil(e)}function Tn(e){return 4800*e/146097}function xn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var kn=Cn("ms"),An=Cn("s"),Rn=Cn("m"),In=Cn("h"),Nn=Cn("d"),Pn=Cn("w"),Dn=Cn("M"),Ln=Cn("Q"),Mn=Cn("y");function jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=jn("milliseconds"),Bn=jn("seconds"),Un=jn("minutes"),Hn=jn("hours"),zn=jn("days"),Vn=jn("months"),Wn=jn("years"),Gn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Yn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var $n=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=$n(this._milliseconds)/1e3,u=$n(this._days),c=$n(this._months),d=this.asSeconds();return d?(e=G(l/60),t=G(e/60),l%=60,e%=60,n=G(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=Kn(this._months)!==Kn(d)?"-":"",a=Kn(this._days)!==Kn(d)?"-":"",s=Kn(this._milliseconds)!==Kn(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=Rt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Zn.add=function(e,t){return Sn(this,e,t,1)},Zn.subtract=function(e,t){return Sn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Tn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=kn,Zn.asSeconds=An,Zn.asMinutes=Rn,Zn.asHours=In,Zn.asDays=Nn,Zn.asWeeks=Pn,Zn.asMonths=Dn,Zn.asQuarters=Ln,Zn.asYears=Mn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*On(xn(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=G(o/1e3),l.seconds=e%60,t=G(e/60),l.minutes=t%60,n=G(t/60),l.hours=n%24,a+=G(n/24),i=G(Tn(a)),s+=i,a-=On(xn(i)),r=G(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Zn.clone=function(){return Ht(this)},Zn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Fn,Zn.seconds=Bn,Zn.minutes=Un,Zn.hours=Hn,Zn.days=zn,Zn.weeks=function(){return G(this.days()/7)},Zn.months=Vn,Zn.years=Wn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=qn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},qn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Ht(e).abs(),o=Gn(i.as("s")),a=Gn(i.as("m")),s=Gn(i.as("h")),l=Gn(i.as("d")),u=Gn(i.as("M")),c=Gn(i.as("w")),d=Gn(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,Yn.apply(null,f)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Xn,Zn.toString=Xn,Zn.toJSON=Xn,Zn.locale=Qt,Zn.localeData=en,Zn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Zn.lang=Jt,L("X",0,0,"unix"),L("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),be("x",(function(e,t,n){n._d=new Date(q(e))})),r.version="2.29.4",t=Tt,r.fn=gn,r.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Tt(1e3*e)},r.months=function(e,t){return _n(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=g,r.duration=Ht,r.isMoment=E,r.weekdays=function(e,t,n){return En(e,t,n,"weekdays")},r.parseZone=function(){return Tt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=It,r.monthsShort=function(e,t){return _n(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return En(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Je;null!=et[e]&&null!=et[e].parentLocale?et[e].set(k(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=k(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return O(et)},r.weekdaysShort=function(e,t,n){return En(e,t,n,"weekdaysShort")},r.normalizeUnits=U,r.relativeTimeRounding=function(e){return void 0===e?Gn:"function"===typeof e&&(Gn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=gn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(186)(e))},function(e,t,n){"use strict";e.exports=function(e){return e<-2}},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(72),a=n(39),s=n(14),l=n.n(s),u=n(259),c=n.n(u),d=e=>e;function f(e){if(e.outputRange&&"string"===typeof e.outputRange[0])return function(e){var t=e.outputRange;l()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(h,""),n=1;n[]);t.forEach(e=>{e.match(h).forEach((e,t)=>{n[t].push(+e)})});var r=t[0].match(h).map((t,r)=>f(i()(i()({},e),{},{outputRange:n[r]}))),o=(a=t[0],"string"===typeof a&&a.startsWith("rgb"));var a;return e=>{var n=0;return t[0].replace(h,()=>{var t=+r[n++](e);return o&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)})}}(e);var t=e.outputRange;m("outputRange",t);var n=e.inputRange;m("inputRange",n),function(e){l()(e.length>=2,"inputRange must have at least 2 elements");for(var t=1;t=e[t-1],"inputRange must be monotonically non-decreasing "+e)}(n),l()(n.length===t.length,"inputRange ("+n.length+") and outputRange ("+t.length+") must have the same length");var r=e.easing||d,o="extend";void 0!==e.extrapolateLeft?o=e.extrapolateLeft:void 0!==e.extrapolate&&(o=e.extrapolate);var a="extend";return void 0!==e.extrapolateRight?a=e.extrapolateRight:void 0!==e.extrapolate&&(a=e.extrapolate),e=>{l()("number"===typeof e,"Cannot interpolation an input which is not a number");var i=function(e,t){var n;for(n=1;n=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r;return l}(e,n[i],n[i+1],t[i],t[i+1],r,o,a)}}function p(e){var t=c()(e);return null===t||"number"!==typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var h=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function m(e,t){l()(t.length>=2,e+" must have at least 2 elements"),l()(2!==t.length||t[0]!==-1/0||t[1]!==1/0,e+"cannot be ]-infinity;+infinity[ "+t)}class g extends o.a{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=f(t)}__makeNative(){this._parent.__makeNative(),super.__makeNative()}__getValue(){var e=this._parent.__getValue();return l()("number"===typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new g(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(a.a.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}g.__createInterpolation=f,t.a=g},function(e,t,n){"use strict";var r=n(0),i=n(9),o=n(38),a=n(18),s=r.forwardRef((e,t)=>{var n=e.accessibilityLabel,i=e.color,s=e.disabled,u=e.onPress,c=e.testID,d=e.title;return r.createElement(o.a,{accessibilityLabel:n,accessibilityRole:"button",disabled:s,focusable:!s,onPress:u,ref:t,style:[l.button,i&&{backgroundColor:i},s&&l.buttonDisabled],testID:c},r.createElement(a.a,{style:[l.text,s&&l.textDisabled]},d))});s.displayName="Button";var l=i.a.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});t.a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(554),i=(n(0),n(199));function o(){return Object(r.a)()||i.a}},function(e,t,n){"use strict";var r=n(1),i=n(0),o=n.n(i),a=n(30),s=n.n(a),l=n(27);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{throw new Error("uSES not initialized!")};let k=C;var A=n(3),R=n(94),I=n(139),N=n.n(I),P=n(727);const D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function L(e,t,n,r,i){let o,a,s,l,u,{areStatesEqual:c,areOwnPropsEqual:d,areStatePropsEqual:f}=i,p=!1;function h(i,p){const h=!d(p,a),m=!c(i,o,p,a);return o=i,a=p,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a),u):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a),u):m?function(){const t=e(o,a),r=!f(t,s);return s=t,r&&(u=n(s,l,a)),u}():u}return function(i,c){return p?h(i,c):(o=i,a=c,s=e(o,a),l=t(r,a),u=n(s,l,a),p=!0,u)}}function M(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=Object(R.a)(t,D);return L(n(e,o),r(e,o),i(e,o),e,o)}function j(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function F(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function B(e,t){return function(t,n){let{displayName:r}=n;const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=F(e);let r=i(t,n);return"function"===typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=F(r),r=i(t,n)),r},i}}function U(e,t){return(n,r)=>{throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function H(e){return e&&"object"===typeof e?j(t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=function(){return t(i(...arguments))})}return n}(e,t)):e?"function"===typeof e?B(e):U(e,"mapDispatchToProps"):j(e=>({dispatch:e}))}function z(e){return e?"function"===typeof e?B(e):U(e,"mapStateToProps"):j(()=>({}))}function V(e,t,n){return Object(A.a)({},n,e,t)}function W(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:i,areMergedPropsEqual:o}=n,a=!1;return function(t,n,i){const s=e(t,n,i);return a?o(s,r)||(r=s):(a=!0,r=s),r}}}(e):U(e,"mergeProps"):()=>V}function G(){const e=w;let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const q={notify(){},get:()=>[]};function Y(e,t){let n,r=q,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=G())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=q)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return u}const $=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?i.useLayoutEffect:i.useEffect;function K(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function X(e,t){if(K(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;ie(...t),n)}function te(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function ne(e,t,n,r,i,o,a,s,l,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,i.current)}catch(h){p=h,f=h}p||(f=null),n===o.current?a.current||u():(o.current=n,l.current=n,a.current=!0,c())};n.onStateChange=p,n.trySubscribe(),p();return()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function re(e,t){return e===t}var ie=function(e,t,n){let{pure:r,areStatesEqual:o=re,areOwnPropsEqual:a=X,areStatePropsEqual:s=X,areMergedPropsEqual:l=X,forwardRef:u=!1,context:c=x}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=c,f=z(e),p=H(t),h=W(n),m=Boolean(e),g=e=>{const t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){const[n,o,a]=i.useMemo(()=>{const{reactReduxForwardedRef:e}=t,n=Object(R.a)(t,Z);return[t.context,e,n]},[t]),s=i.useMemo(()=>n&&n.Consumer&&Object(P.isContextConsumer)(i.createElement(n.Consumer,null))?n:d,[n,d]),l=i.useContext(s),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(l)&&Boolean(l.store);const f=u?t.store:l.store,p=c?l.getServerState:f.getState,h=i.useMemo(()=>M(f.dispatch,r),[f]),[g,v]=i.useMemo(()=>{if(!m)return J;const e=Y(f,u?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,u,l]),b=i.useMemo(()=>u?l:Object(A.a)({},l,{subscription:g}),[u,l,g]),y=i.useRef(),_=i.useRef(a),E=i.useRef(),w=i.useRef(!1),S=(i.useRef(!1),i.useRef(!1)),O=i.useRef();$(()=>(S.current=!0,()=>{S.current=!1}),[]);const T=i.useMemo(()=>()=>E.current&&a===_.current?E.current:h(f.getState(),a),[f,a]),x=i.useMemo(()=>e=>g?ne(m,f,g,h,_,y,w,S,E,v,e):()=>{},[g]);let C;ee(te,[_,y,w,a,E,v]);try{C=Q(x,T,p?()=>h(p(),a):T)}catch(I){throw O.current&&(I.message+="\nThe error may be correlated with this previous error:\n".concat(O.current.stack,"\n\n")),I}$(()=>{O.current=void 0,E.current=void 0,y.current=C});const k=i.useMemo(()=>i.createElement(e,Object(A.a)({},C,{ref:o})),[o,e,C]);return i.useMemo(()=>m?i.createElement(s.Provider,{value:b},k):k,[s,k,b])}const g=i.memo(c);if(g.WrappedComponent=e,g.displayName=c.displayName=n,u){const t=i.forwardRef((function(e,t){return i.createElement(g,Object(A.a)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,N()(t,e)}return N()(g,e)};return g};var oe=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",noopCheck:s="once"}=e;const l=i.useMemo(()=>{const e=Y(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,noopCheck:s}},[t,o,a,s]),u=i.useMemo(()=>t.getState(),[t]);$(()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[l,u]);const c=n||x;return i.createElement(c.Provider,{value:l},r)};var ae,se;function le(e,t){var n=Object(i.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(i.useRef)(!0),o=Object(i.useRef)(n),a=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n{Q=e})(_.useSyncExternalStore),se=a.unstable_batchedUpdates,w=se;var ue=le,ce=function(e,t){return le((function(){return e}),t)},de=n(322),fe=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},pe=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},he=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},me={top:0,right:0,bottom:0,left:0},ge=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?me:n,i=e.border,o=void 0===i?me:i,a=e.padding,s=void 0===a?me:a,l=fe(pe(t,r)),u=fe(he(t,o)),c=fe(he(u,s));return{marginBox:l,borderBox:fe(t),paddingBox:u,contentBox:c,margin:r,border:o,padding:s}},ve=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Object(de.a)(!1),n},be=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ge({borderBox:l,border:o,margin:a,padding:s})},ye=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),be(e,t)},_e=function(e,t){var n={top:ve(t.marginTop),right:ve(t.marginRight),bottom:ve(t.marginBottom),left:ve(t.marginLeft)},r={top:ve(t.paddingTop),right:ve(t.paddingRight),bottom:ve(t.paddingBottom),left:ve(t.paddingLeft)},i={top:ve(t.borderTopWidth),right:ve(t.borderRightWidth),bottom:ve(t.borderBottomWidth),left:ve(t.borderLeftWidth)};return ge({borderBox:e,margin:n,padding:r,border:i})},Ee=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return _e(t,n)},we=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Se(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=(o=n,a=t.options,Object(r.a)(Object(r.a)({},o),a));var o,a;return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}});return function(){i.forEach(e=>{e()})}}class Ae extends Error{}function Re(e,t){if(!e)throw new Ae("Invariant failed")}Ae.prototype.toString=function(){return this.message};class Ie extends o.a.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Ce,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof Ae&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=ke(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof Ae))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Ne=e=>e+1,Pe=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ne(e.index),i=Ne(t.index);return n?"\n You have moved the item from position ".concat(r,"\n to position ").concat(i,"\n "):"\n You have moved the item from position ".concat(r,"\n in list ").concat(e.droppableId,"\n to list ").concat(t.droppableId,"\n in position ").concat(i,"\n ")},De=(e,t,n)=>t.droppableId===n.droppableId?"\n The item ".concat(e,"\n has been combined with ").concat(n.draggableId):"\n The item ".concat(e,"\n in list ").concat(t.droppableId,"\n has been combined with ").concat(n.draggableId,"\n in list ").concat(n.droppableId,"\n "),Le=e=>"\n The item has returned to its starting position\n of ".concat(Ne(e.index),"\n");var Me={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>"\n You have lifted an item in position ".concat(Ne(e.source.index),"\n"),onDragUpdate:e=>{const t=e.destination;if(t)return Pe(e.source,t);const n=e.combine;return n?De(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return"\n Movement cancelled.\n ".concat(Le(e.source),"\n ");const t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n ".concat(Pe(e.source,t),"\n "):n?"\n You have dropped the item.\n ".concat(De(e.draggableId,e.source,n),"\n "):"\n The item has been dropped while not over a drop area.\n ".concat(Le(e.source),"\n ")}};const je={x:0,y:0},Fe=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Be=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Ue=(e,t)=>e.x===t.x&&e.y===t.y,He=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),ze=function(e,t,n){return void 0===n&&(n=0),"x"===e?{x:t,y:n}:{x:n,y:t}},Ve=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),We=(e,t)=>Math.min(...t.map(t=>Ve(e,t))),Ge=e=>t=>({x:e(t.x),y:e(t.y)});const qe=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Ye=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],$e=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=fe({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):fe(e);var Ke=e=>{let{page:t,withPlaceholder:n,axis:i,frame:o}=e;const a=((e,t,n)=>n&&n.increasedBy?Object(r.a)(Object(r.a)({},e),{},{[t.end]:e[t.end]+n.increasedBy[t.line]}):e)(((e,t)=>t?qe(e,t.scroll.diff.displacement):e)(t.marginBox,o),i,n);return{page:t,withPlaceholder:n,active:$e(a,o)}},Xe=(e,t)=>{e.frame||Re(!1);const n=e.frame,i=Be(t,n.scroll.initial),o=He(i),a=Object(r.a)(Object(r.a)({},n),{},{scroll:{initial:n.scroll.initial,current:t,diff:{value:i,displacement:o},max:n.scroll.max}}),s=Ke({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return Object(r.a)(Object(r.a)({},e),{},{frame:a,subject:s})};const Ze=Oe(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Qe=Oe(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Je=Oe(e=>Object.values(e)),et=Oe(e=>Object.values(e));var tt=Oe((e,t)=>et(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index));function nt(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function rt(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var it=Oe((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),ot=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const at={point:je,value:0},st={invisible:{},visible:{},all:[]};var lt={displaced:st,displacedBy:at,at:null},ut=(e,t)=>n=>e<=n&&n<=t,ct=e=>{const t=ut(e.top,e.bottom),n=ut(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const a=r.tope.bottom,s=r.lefte.right;if(a&&s)return!0;return a&&o||s&&i}},dt=e=>{const t=ut(e.top,e.bottom),n=ut(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const ft={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},pt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const ht=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:i,isVisibleThroughFrameFn:o}=e;const a=i?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:je;return qe(e,n)})(t,n):t;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(a,n,o)&&((e,t,n)=>n(t)(e))(a,r,o)},mt=e=>ht(Object(r.a)(Object(r.a)({},e),{},{isVisibleThroughFrameFn:dt}));function gt(e){let{afterDragging:t,destination:n,displacedBy:i,viewport:o,forceShouldAnimate:a,last:s}=e;return t.reduce((function(e,t){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return fe(pe(n,r))}(t,i),u=t.descriptor.id;e.all.push(u);var c;if(!(c={target:l,destination:n,viewport:o,withDroppableDisplacement:!0},ht(Object(r.a)(Object(r.a)({},c),{},{isVisibleThroughFrameFn:ct}))))return e.invisible[t.descriptor.id]=!0,e;const d={draggableId:u,shouldAnimate:((e,t,n)=>{if("boolean"===typeof n)return n;if(!t)return!0;const{invisible:r,visible:i}=t;if(r[e])return!1;const o=i[e];return!o||o.shouldAnimate})(u,s,a)};return e.visible[u]=d,e}),{all:[],visible:{},invisible:{}})}function vt(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:i}=e;const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:st,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function bt(e){let{draggable:t,insideDestination:n,destination:r,viewport:i,displacedBy:o,last:a,index:s,forceShouldAnimate:l}=e;const u=ot(t,r);if(null==s)return vt({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});const c=n.find(e=>e.descriptor.index===s);if(!c)return vt({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});const d=it(t,n),f=n.indexOf(c);return{displaced:gt({afterDragging:d.slice(f),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function yt(e,t){return Boolean(t.effected[e])}var _t=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:i,destination:o,insideDestination:a,previousImpact:s,viewport:l,afterCritical:u}=e;const c=s.at;if(c||Re(!1),"REORDER"===c.type){const e=(e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:i}=e;if(!r.length)return null;const o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a(n?l:l+1)?null:a})({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==e?null:bt({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:e})}const d=(e=>{let{isMovingForward:t,destination:n,draggables:r,combine:i,afterCritical:o}=e;if(!n.isCombineEnabled)return null;const a=i.draggableId,s=r[a].descriptor.index;return yt(a,o)?t?s:s-1:t?s+1:s})({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:c.combine,afterCritical:u});return null==d?null:bt({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})},Et=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const i=rt(n);i||Re(!1);const o=i.draggableId,a=r[o].page.borderBox.center,s=(e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:i}=e;const o=Boolean(t.visible[r]||t.invisible[r]);return yt(r,n)?o?je:He(i.point):o?i.point:je})({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Fe(a,s)};const wt=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,St=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,Ot=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return ze(t.line,n.marginBox[t.end]+wt(t,r),St(t,n.marginBox,r))},Tt=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return ze(t.line,n.marginBox[t.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(t,r),St(t,n.marginBox,r))};var xt=e=>{let{impact:t,draggable:n,draggables:r,droppable:i,afterCritical:o}=e;const a=tt(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return(e=>{let{axis:t,moveInto:n,isMoving:r}=e;return ze(t.line,n.contentBox[t.start]+wt(t,r),St(t,n.contentBox,r))})({axis:l,moveInto:i.page,isMoving:s});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const e=r[d];if(yt(d,o))return Tt({axis:l,moveRelativeTo:e.page,isMoving:s});const t=be(e.page,c.point);return Tt({axis:l,moveRelativeTo:t,isMoving:s})}const f=a[a.length-1];if(f.descriptor.id===n.descriptor.id)return s.borderBox.center;if(yt(f.descriptor.id,o)){const e=be(f.page,He(o.displacedBy.point));return Ot({axis:l,moveRelativeTo:e,isMoving:s})}return Ot({axis:l,moveRelativeTo:f.page,isMoving:s})},Ct=(e,t)=>{const n=e.frame;return n?Fe(t,n.scroll.diff.displacement):t};var kt=e=>{const t=(e=>{let{impact:t,draggable:n,droppable:r,draggables:i,afterCritical:o}=e;const a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?xt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):Et({impact:t,draggables:i,afterCritical:o}):a})(e),n=e.droppable;return n?Ct(n,t):t},At=(e,t)=>{const n=Be(t,e.scroll.initial),r=He(n);return{frame:fe({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Rt(e,t){return e.map(e=>t[e])}var It=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const i=((e,t)=>Fe(e.scroll.diff.displacement,t))(r,t),o=Be(i,n.page.borderBox.center);return Fe(n.client.borderBox.center,o)},Nt=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:i,viewport:o,withDroppableDisplacement:a,onlyOnMainAxis:s=!1}=e;const l=Be(i,t.page.borderBox.center),u={target:qe(t.page.borderBox,l),destination:n,withDroppableDisplacement:a,viewport:o};return s?(e=>{return ht(Object(r.a)(Object(r.a)({},e),{},{isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=ut(e.top,e.bottom),r=ut(e.left,e.right);return e=>t===ft?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})}));var t})(u):mt(u)},Pt=e=>{let{isMovingForward:t,draggable:n,destination:i,draggables:o,previousImpact:a,viewport:s,previousPageBorderBoxCenter:l,previousClientSelection:u,afterCritical:c}=e;if(!i.isEnabled)return null;const d=tt(i.descriptor.id,o),f=ot(n,i),p=(e=>{let{isMovingForward:t,draggable:n,destination:i,insideDestination:o,previousImpact:a}=e;if(!i.isCombineEnabled)return null;if(!nt(a))return null;function s(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:i.descriptor.id}};return Object(r.a)(Object(r.a)({},a),{},{at:t})}const l=a.displaced.all,u=l.length?l[0]:null;if(t)return u?s(u):null;const c=it(n,o);if(!u){if(!c.length)return null;return s(c[c.length-1].descriptor.id)}const d=c.findIndex(e=>e.descriptor.id===u);-1===d&&Re(!1);const f=d-1;if(f<0)return null;return s(c[f].descriptor.id)})({isMovingForward:t,draggable:n,destination:i,insideDestination:d,previousImpact:a})||_t({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:i,insideDestination:d,previousImpact:a,viewport:s,afterCritical:c});if(!p)return null;const h=kt({impact:p,draggable:n,droppable:i,draggables:o,afterCritical:c});if(Nt({draggable:n,destination:i,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:It({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null}}const m=Be(h,l);return{clientSelection:u,impact:(e=>{let{impact:t,viewport:n,destination:i,draggables:o,maxScrollChange:a}=e;const s=At(n,Fe(n.scroll.current,a)),l=i.frame?Xe(i,Fe(i.frame.scroll.current,a)):i,u=t.displaced,c=gt({afterDragging:Rt(u.all,o),destination:i,displacedBy:t.displacedBy,viewport:s.frame,last:u,forceShouldAnimate:!1}),d=gt({afterDragging:Rt(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),f={},p={},h=[u,c,d];u.all.forEach(e=>{const t=function(e,t){for(let n=0;n{const t=e.subject.active;return t||Re(!1),t};const Lt=(e,t)=>{const n=e.page.borderBox.center;return yt(e.descriptor.id,t)?Be(n,t.displacedBy.point):n},Mt=(e,t)=>{const n=e.page.borderBox;return yt(e.descriptor.id,t)?qe(n,He(t.displacedBy.point)):n};var jt=Oe((function(e,t){const n=t[e.line];return{value:n,point:ze(e.line,n)}}));const Ft=(e,t)=>Object(r.a)(Object(r.a)({},e),{},{scroll:Object(r.a)(Object(r.a)({},e.scroll),{},{max:t})}),Bt=(e,t,n)=>{const i=e.frame;ot(t,e)&&Re(!1),e.subject.withPlaceholder&&Re(!1);const o=jt(e.axis,t.displaceBy).point,a=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return ze(r.line,t[r.line]);const i=e.subject.page.contentBox[r.size],o=tt(e.descriptor.id,n).reduce((e,t)=>e+t.client.marginBox[r.size],0)+t[r.line]-i;return o<=0?null:ze(r.line,o)})(e,o,n),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const t=Ke({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return Object(r.a)(Object(r.a)({},e),{},{subject:t})}const l=a?Fe(i.scroll.max,a):i.scroll.max,u=Ft(i,l),c=Ke({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return Object(r.a)(Object(r.a)({},e),{},{subject:c,frame:u})};var Ut=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:i,draggables:o,droppables:a,viewport:s,afterCritical:l}=e;const u=(e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:i,viewport:o}=e;const a=r.subject.active;if(!a)return null;const s=r.axis,l=ut(a[s.start],a[s.end]),u=Je(i).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>ct(o.frame)(Dt(e))).filter(e=>{const n=Dt(e);return t?a[s.crossAxisEnd]{const t=Dt(e),n=ut(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])}).sort((e,n)=>{const r=Dt(e)[s.crossAxisStart],i=Dt(n)[s.crossAxisStart];return t?r-i:i-r}).filter((e,t,n)=>Dt(e)[s.crossAxisStart]===Dt(n[0])[s.crossAxisStart]);if(!u.length)return null;if(1===u.length)return u[0];const c=u.filter(e=>ut(Dt(e)[s.start],Dt(e)[s.end])(n[s.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>Dt(e)[s.start]-Dt(t)[s.start])[0]:u.sort((e,t)=>{const r=We(n,Ye(Dt(e))),i=We(n,Ye(Dt(t)));return r!==i?r-i:Dt(e)[s.start]-Dt(t)[s.start]})[0]})({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!u)return null;const c=tt(u.descriptor.id,o),d=(e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:i,draggables:o,destination:a,viewport:s,afterCritical:l}=e;if(!n){if(r.length)return null;const e={displaced:st,displacedBy:at,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},t=kt({impact:e,draggable:i,droppable:a,draggables:o,afterCritical:l}),n=ot(i,a)?a:Bt(a,i,o);return Nt({draggable:i,destination:n,newPageBorderBoxCenter:t,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const u=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),c=(()=>{const e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||u?e:e+1})(),d=jt(a.axis,i.displaceBy);return bt({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:d,last:st,index:c})})({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:o,moveRelativeTo:(e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:i,afterCritical:o}=e;return i.filter(e=>mt({target:Mt(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((e,n)=>{const i=Ve(t,Ct(r,Lt(e,o))),a=Ve(t,Ct(r,Lt(n,o)));return i{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var zt=e=>{let{state:t,type:n}=e;const r=((e,t)=>{const n=Ht(e);return n?t[n]:null})(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;const u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return l?Pt({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ut({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function Vt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Wt(e){const t=ut(e.top,e.bottom),n=ut(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Gt(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const i=Je(r).filter(e=>{if(!e.isEnabled)return!1;const n=e.subject.active;if(!n)return!1;if(i=n,!((r=t).lefti.left&&r.topi.top))return!1;var r,i;if(Wt(n)(t.center))return!0;const o=e.axis,a=n.center[o.crossAxisLine],s=t[o.crossAxisStart],l=t[o.crossAxisEnd],u=ut(n[o.crossAxisStart],n[o.crossAxisEnd]),c=u(s),d=u(l);return!c&&!d||(c?sa)});return i.length?1===i.length?i[0].descriptor.id:function(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const i=n.page.borderBox.center,o=r.map(e=>{const n=e.axis,r=ze(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Ve(i,r)}}).sort((e,t)=>t.distance-e.distance);return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}const qt=(e,t)=>fe(qe(e,t));function Yt(e){let{displaced:t,id:n}=e;return Boolean(t.visible[n]||t.invisible[n])}var $t=e=>{let{pageOffset:t,draggable:n,draggables:r,droppables:i,previousImpact:o,viewport:a,afterCritical:s}=e;const l=qt(n.page.borderBox,t),u=Gt({pageBorderBox:l,draggable:n,droppables:i});if(!u)return lt;const c=i[u],d=tt(c.descriptor.id,r),f=((e,t)=>{const n=e.frame;return n?qt(t,n.scroll.diff.value):t})(c,l);return(e=>{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:i,insideDestination:o,afterCritical:a}=e;if(!i.isCombineEnabled)return null;const s=i.axis,l=jt(i.axis,t.displaceBy),u=l.value,c=n[s.start],d=n[s.end],f=it(t,o).find(e=>{const t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/4,o=yt(t,a),l=Yt({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&dn[s.start]-u+i&&cn[s.start]+u+i&&dn[s.start]+i&&c{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:i,last:o,viewport:a,afterCritical:s}=e;const l=r.axis,u=jt(r.axis,n.displaceBy),c=u.value,d=t[l.start],f=t[l.end],p=function(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:it(n,i).find(e=>{const t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=yt(t,s),i=Yt({displaced:o,id:t});return r?i?f<=n:dObject(r.a)(Object(r.a)({},e),{},{[t.descriptor.id]:t});const Xt=e=>{let{previousImpact:t,impact:n,droppables:i}=e;const o=Ht(t),a=Ht(n);if(!o)return i;if(o===a)return i;const s=i[o];if(!s.subject.withPlaceholder)return i;const l=(e=>{const t=e.subject.withPlaceholder;t||Re(!1);const n=e.frame;if(!n){const t=Ke({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(r.a)(Object(r.a)({},e),{},{subject:t})}const i=t.oldFrameMaxScroll;i||Re(!1);const o=Ft(n,i),a=Ke({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return Object(r.a)(Object(r.a)({},e),{},{subject:a,frame:o})})(s);return Kt(i,l)};var Zt=e=>{let{state:t,clientSelection:n,dimensions:i,viewport:o,impact:a,scrollJumpRequest:s}=e;const l=o||t.viewport,u=i||t.dimensions,c=n||t.current.client.selection,d=Be(c,t.initial.client.selection),f={offset:d,selection:c,borderBoxCenter:Fe(t.initial.client.borderBoxCenter,d)},p={selection:Fe(f.selection,l.scroll.current),borderBoxCenter:Fe(f.borderBoxCenter,l.scroll.current),offset:Fe(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return Object(r.a)(Object(r.a)({},t),{},{dimensions:u,viewport:l,current:h});const m=u.draggables[t.critical.draggable.id],g=a||$t({pageOffset:p.offset,draggable:m,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=(e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:i,impact:o}=e;const a=Xt({previousImpact:i,impact:o,droppables:r}),s=Ht(o);if(!s)return a;const l=r[s];if(ot(t,l))return a;if(l.subject.withPlaceholder)return a;const u=Bt(l,t,n);return Kt(a,u)})({draggable:m,impact:g,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return Object(r.a)(Object(r.a)({},t),{},{current:h,dimensions:{draggables:u.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var Qt=e=>{let{impact:t,viewport:n,draggables:i,destination:o,forceShouldAnimate:a}=e;const s=t.displaced,l=gt({afterDragging:function(e,t){return e.map(e=>t[e])}(s.all,i),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return Object(r.a)(Object(r.a)({},t),{},{displaced:l})},Jt=e=>{let{impact:t,draggable:n,droppable:r,draggables:i,viewport:o,afterCritical:a}=e;const s=kt({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return It({pageBorderBoxCenter:s,draggable:n,viewport:o})},en=e=>{let{state:t,dimensions:n,viewport:r}=e;"SNAP"!==t.movementMode&&Re(!1);const i=t.impact,o=r||t.viewport,a=n||t.dimensions,{draggables:s,droppables:l}=a,u=s[t.critical.draggable.id],c=Ht(i);c||Re(!1);const d=l[c],f=Qt({impact:i,viewport:o,destination:d,draggables:s}),p=Jt({impact:f,draggable:u,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return Zt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})},tn=e=>{let{draggable:t,home:n,draggables:r,viewport:i}=e;const o=jt(n.axis,t.displaceBy),a=tt(n.descriptor.id,r),s=a.indexOf(t);-1===s&&Re(!1);const l=a.slice(s+1),u=l.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:u};var d;return{impact:{displaced:gt({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(d=t.descriptor,{index:d.index,droppableId:d.droppableId})}},afterCritical:c}};const nn=e=>{0},rn=e=>{0};var on=e=>{let{additions:t,updatedDroppables:n,viewport:i}=e;const o=i.scroll.diff.value;return t.map(e=>{const t=e.descriptor.droppableId,a=(e=>{const t=e.frame;return t||Re(!1),t})(n[t]).scroll.diff.value;return(e=>{let{draggable:t,offset:n,initialWindowScroll:i}=e;const o=be(t.client,n),a=ye(o,i);return Object(r.a)(Object(r.a)({},t),{},{placeholder:Object(r.a)(Object(r.a)({},t.placeholder),{},{client:o}),client:o,page:a})})({draggable:e,offset:Fe(o,a),initialWindowScroll:i.scroll.initial})})};const an=e=>"SNAP"===e.movementMode,sn=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Kt(e.droppables,t)}))(e.dimensions,t);return!an(e)||n?Zt({state:e,dimensions:r}):en({state:e,dimensions:r})};function ln(e){return e.isDragging&&"SNAP"===e.movementMode?Object(r.a)(Object(r.a)({},e),{},{scrollJumpRequest:null}):e}const un={phase:"IDLE",completed:null,shouldFlush:!1};var cn=function(e,t){if(void 0===e&&(e=un),"FLUSH"===t.type)return Object(r.a)(Object(r.a)({},un),{},{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Re(!1);const{critical:n,clientSelection:r,viewport:i,dimensions:o,movementMode:a}=t.payload,s=o.draggables[n.draggable.id],l=o.droppables[n.droppable.id],u={selection:r,borderBoxCenter:s.client.borderBox.center,offset:je},c={client:u,page:{selection:Fe(u.selection,i.scroll.initial),borderBoxCenter:Fe(u.selection,i.scroll.initial),offset:Fe(u.selection,i.scroll.diff.value)}},d=Je(o.droppables).every(e=>!e.isFixedOnPage),{impact:f,afterCritical:p}=tn({draggable:s,home:l,draggables:o.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:o,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Re(!1);return Object(r.a)(Object(r.a)({},e),{},{phase:"COLLECTING"})}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Re(!1),(e=>{let{state:t,published:n}=e;nn();const i=n.modified.map(e=>{const n=t.dimensions.droppables[e.droppableId];return Xe(n,e.scroll)}),o=Object(r.a)(Object(r.a)({},t.dimensions.droppables),Ze(i)),a=Qe(on({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=Object(r.a)(Object(r.a)({},t.dimensions.draggables),a);n.removals.forEach(e=>{delete s[e]});const l={droppables:o,draggables:s},u=Ht(t.impact),c=u?l.droppables[u]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],{impact:p,afterCritical:h}=tn({draggable:d,home:f,draggables:s,viewport:t.viewport}),m=c&&c.isCombineEnabled?t.impact:p,g=$t({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});rn();const v=Object(r.a)(Object(r.a)({},t),{},{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});if("COLLECTING"===t.phase)return v;return Object(r.a)(Object(r.a)({},v),{},{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Vt(e)||Re(!1);const{client:n}=t.payload;return Ue(n,e.current.client.selection)?e:Zt({state:e,clientSelection:n,impact:an(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return ln(e);if("COLLECTING"===e.phase)return ln(e);Vt(e)||Re(!1);const{id:n,newScroll:r}=t.payload,i=e.dimensions.droppables[n];if(!i)return e;const o=Xe(i,r);return sn(e,o,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Vt(e)||Re(!1);const{id:n,isEnabled:i}=t.payload,o=e.dimensions.droppables[n];o||Re(!1),o.isEnabled===i&&Re(!1);const a=Object(r.a)(Object(r.a)({},o),{},{isEnabled:i});return sn(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Vt(e)||Re(!1);const{id:n,isCombineEnabled:i}=t.payload,o=e.dimensions.droppables[n];o||Re(!1),o.isCombineEnabled===i&&Re(!1);const a=Object(r.a)(Object(r.a)({},o),{},{isCombineEnabled:i});return sn(e,a,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Vt(e)||Re(!1),e.isWindowScrollAllowed||Re(!1);const n=t.payload.newScroll;if(Ue(e.viewport.scroll.current,n))return ln(e);const r=At(e.viewport,n);return an(e)?en({state:e,viewport:r}):Zt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Vt(e))return e;const n=t.payload.maxScroll;if(Ue(n,e.viewport.scroll.max))return e;const i=Object(r.a)(Object(r.a)({},e.viewport),{},{scroll:Object(r.a)(Object(r.a)({},e.viewport.scroll),{},{max:n})});return Object(r.a)(Object(r.a)({},e),{},{viewport:i})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Re(!1);const n=zt({state:e,type:t.type});return n?Zt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;"COLLECTING"!==e.phase&&Re(!1);return Object(r.a)(Object(r.a)({},e),{},{phase:"DROP_PENDING",isWaiting:!0,reason:n})}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:i}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Re(!1);return{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:i,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const dn=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),fn=()=>({type:"COLLECTION_STARTING",payload:null}),pn=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),hn=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),mn=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),gn=e=>({type:"MOVE",payload:e}),vn=()=>({type:"MOVE_UP",payload:null}),bn=()=>({type:"MOVE_DOWN",payload:null}),yn=()=>({type:"MOVE_RIGHT",payload:null}),_n=()=>({type:"MOVE_LEFT",payload:null}),En=e=>({type:"DROP_COMPLETE",payload:e}),wn=e=>({type:"DROP",payload:e}),Sn=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const On="cubic-bezier(0.2, 0, 0, 1)",Tn="cubic-bezier(.2,1,.1,1)",xn={drop:0,combining:.7},Cn={drop:.75},kn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},An="".concat(kn.outOfTheWay,"s ").concat(On),Rn={fluid:"opacity ".concat(An),snap:"transform ".concat(An,", opacity ").concat(An),drop:e=>{const t="".concat(e,"s ").concat(Tn);return"transform ".concat(t,", opacity ").concat(t)},outOfTheWay:"transform ".concat(An),placeholder:"height ".concat(An,", width ").concat(An,", margin ").concat(An)},In=e=>Ue(e,je)?void 0:"translate(".concat(e.x,"px, ").concat(e.y,"px)"),Nn=In,Pn=(e,t)=>{const n=In(e);if(n)return t?"".concat(n," scale(").concat(Cn.drop,")"):n},{minDropTime:Dn,maxDropTime:Ln}=kn,Mn=Ln-Dn;var jn=e=>{let{getState:t,dispatch:n}=e;return e=>i=>{if("DROP"!==i.type)return void e(i);const o=t(),a=i.payload.reason;if("COLLECTING"===o.phase)return void n((e=>({type:"DROP_PENDING",payload:e}))({reason:a}));if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&Re(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Re(!1);const s=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:d}=(e=>{let{draggables:t,reason:n,lastImpact:i,home:o,viewport:a,onLiftImpact:s}=e;if(!i.at||"DROP"!==n){return{impact:Qt({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}if("REORDER"===i.at.type)return{impact:i,didDropInsideDroppable:!0};return{impact:Object(r.a)(Object(r.a)({},i),{},{displaced:st}),didDropInsideDroppable:!0}})({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d?nt(c):null,p=d?rt(c):null,h={index:s.draggable.index,droppableId:s.droppable.id},m={draggableId:u.descriptor.id,type:u.descriptor.type,source:h,reason:a,mode:o.movementMode,destination:f,combine:p},g=(e=>{let{impact:t,draggable:n,dimensions:r,viewport:i,afterCritical:o}=e;const{draggables:a,droppables:s}=r,l=Ht(t),u=l?s[l]:null,c=s[n.descriptor.droppableId],d=Jt({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:u||c,viewport:i});return Be(d,n.client.borderBox.center)})({impact:c,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:c};if(!(!Ue(o.current.client.offset,g)||Boolean(m.combine)))return void n(En({completed:v}));const b=(e=>{let{current:t,destination:n,reason:r}=e;const i=Ve(t,n);if(i<=0)return Dn;if(i>=1500)return Ln;const o=Dn+Mn*(i/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:g,reason:a});n((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:b,completed:v}))}},Fn=()=>({x:window.pageXOffset,y:window.pageYOffset});function Bn(e){let{onWindowScroll:t}=e;const n=Te((function(){t(Fn())})),r=(i=n,{eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{e.target!==window&&e.target!==window.document||i()}});var i;let o=Ce;function a(){return o!==Ce}return{start:function(){a()&&Re(!1),o=ke(window,[r])},stop:function(){a()||Re(!1),n.cancel(),o(),o=Ce},isActive:a}}var Un=e=>{const t=Bn({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}},Hn=()=>{const e=[];return{add:t=>{const n=setTimeout(()=>(t=>{const n=e.findIndex(e=>e.timerId===t);-1===n&&Re(!1);const[r]=e.splice(n,1);r.callback()})(n)),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const zn=(e,t)=>{nn(),t(),rn()},Vn=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Wn(e,t,n,r){if(!e)return void n(r(t));const i=(e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),i=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=()=>t,i})(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}var Gn=(e,t)=>{const n=((e,t)=>{const n=Hn();let i=null;const o=n=>{i||Re(!1),i=null,zn(0,()=>Wn(e().onDragEnd,n,t,Me.onDragEnd))};return{beforeCapture:(t,n)=>{i&&Re(!1),zn(0,()=>{const r=e().onBeforeCapture;if(r){r({draggableId:t,mode:n})}})},beforeStart:(t,n)=>{i&&Re(!1),zn(0,()=>{const r=e().onBeforeDragStart;r&&r(Vn(t,n))})},start:(r,o)=>{i&&Re(!1);const a=Vn(r,o);i={mode:o,lastCritical:r,lastLocation:a.source,lastCombine:null},n.add(()=>{zn(0,()=>Wn(e().onDragStart,a,t,Me.onDragStart))})},update:(o,a)=>{const s=nt(a),l=rt(a);i||Re(!1);const u=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,i.lastCritical);u&&(i.lastCritical=o);const c=(d=i.lastLocation,f=s,!(null==d&&null==f||null!=d&&null!=f&&d.droppableId===f.droppableId&&d.index===f.index));var d,f;c&&(i.lastLocation=s);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId))(i.lastCombine,l);if(p&&(i.lastCombine=l),!u&&!c&&!p)return;const h=Object(r.a)(Object(r.a)({},Vn(o,i.mode)),{},{combine:l,destination:s});n.add(()=>{zn(0,()=>Wn(e().onDragUpdate,h,t,Me.onDragUpdate))})},flush:()=>{i||Re(!1),n.flush()},drop:o,abort:()=>{if(!i)return;const e=Object(r.a)(Object(r.a)({},Vn(i.lastCritical,i.mode)),{},{combine:null,destination:null,reason:"CANCEL"});o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}};var qn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&Re(!1),e.dispatch(En({completed:r.completed}))};var Yn=e=>{let t=null,n=null;return r=>i=>{if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"!==i.type)return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(()=>{n=null,t=ke(window,[o])})}};var $n=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(wn({reason:r.reason})))};const Kn=y;var Xn=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:i,announce:o,autoScroller:a}=e;return g(cn,Kn(function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>t=>{"INITIAL_PUBLISH"===t.type&&s.dragging(),"DROP_ANIMATE"===t.type&&s.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||s.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(t),(e=>t=>{let{getState:n,dispatch:r}=t;return t=>i=>{if("LIFT"!==i.type)return void t(i);const{id:o,clientSelection:a,movementMode:s}=i.payload,l=n();"DROP_ANIMATING"===l.phase&&r(En({completed:l.completed})),"IDLE"!==n().phase&&Re(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:s}});const u={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:c,dimensions:d,viewport:f}=e.startPublishing(u);r((e=>({type:"INITIAL_PUBLISH",payload:e}))({critical:c,dimensions:d,clientSelection:a,movementMode:s,viewport:f}))}})(t),jn,qn,Yn,$n,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const i=t.getState();return"DRAGGING"!==i.phase&&Re(!1),void e.start(i)}n(r),e.scroll(t.getState())})(a),Un,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(n),Gn(i,o))));var s};var Zn=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:i}=e;const o=Be({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Qn=()=>{const e=document.documentElement;return e||Re(!1),e},Jn=()=>{const e=Qn();return Zn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},er=e=>{let{critical:t,scrollOptions:n,registry:r}=e;nn();const i=(()=>{const e=Fn(),t=Jn(),n=e.y,r=e.x,i=Qn(),o=i.clientWidth,a=i.clientHeight;return{frame:fe({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:je,displacement:je}}}})(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map(e=>e.callbacks.getDimensionAndWatchScroll(o,n)),l=r.draggable.getAllByType(t.draggable.type).map(e=>e.getDimension(o)),u={draggables:Qe(l),droppables:Ze(s)};rn();return{dimensions:u,critical:t,viewport:i}};function tr(e,t,n){if(n.descriptor.id===t.id)return!1;if(n.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var nr=(e,t)=>{let n=null;const r=function(e){let{registry:t,callbacks:n}=e,r={additions:{},removals:{},modified:{}},i=null;const o=()=>{i||(n.collectionStarting(),i=requestAnimationFrame(()=>{i=null,nn();const{additions:e,removals:o,modified:a}=r,s=Object.keys(e).map(e=>t.draggable.getById(e).getDimension(je)).sort((e,t)=>e.descriptor.index-t.descriptor.index),l=Object.keys(a).map(e=>({droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()})),u={additions:s,removals:Object.keys(o),modified:l};r={additions:{},removals:{},modified:{}},rn(),n.publish(u)}))};return{add:e=>{const t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:e=>{const t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:()=>{i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=t=>{n||Re(!1);const i=n.critical.draggable;"ADDITION"===t.type&&tr(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&tr(e,i,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:(r,i)=>{e.droppable.exists(r)||Re(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:(r,i)=>{n&&(e.droppable.exists(r)||Re(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,i)=>{n&&(e.droppable.exists(r)||Re(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:t=>{n&&Re(!1);const r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},er({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),n.unsubscribe(),n=null}}},rr=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),ir=e=>{window.scrollBy(e.x,e.y)};const or=Oe(e=>Je(e).filter(e=>!!e.isEnabled&&!!e.frame));var ar=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const e=r[n];return e.frame?e:null}return((e,t)=>or(t).find(t=>(t.frame||Re(!1),Wt(t.frame.pageMarginBox)(e)))||null)(t,r)};const sr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var lr=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const i=n-t;if(0===i)return 0;return(r-t)/i},ur=e=>{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=function(e,t,n){void 0===n&&(n=()=>sr);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const i=1-lr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)}(t,n,o);return 0===a?0:i?Math.max(((e,t,n)=>{const r=n(),i=r.durationDampening.accelerateAt,o=r.durationDampening.stopDampeningAt,a=t,s=o,l=Date.now()-a;if(l>=o)return e;if(l{let{container:t,distanceToEdges:n,dragStartTime:r,axis:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const s=function(e,t,n){void 0===n&&(n=()=>sr);const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}}(t,i,a);return n[i.end]0===e?0:e);var fr=e=>{let{dragStartTime:t,container:n,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},l=cr({container:n,distanceToEdges:s,dragStartTime:t,axis:ft,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),u=cr({container:n,distanceToEdges:s,dragStartTime:t,axis:pt,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),c=dr({x:u,y:l});if(Ue(c,je))return null;const d=(e=>{let{container:t,subject:n,proposedScroll:r}=e;const i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r})({container:n,subject:r,proposedScroll:c});return d?Ue(d,je)?null:d:null};const pr=Ge(e=>0===e?0:e>0?1:-1),hr=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return t=>{let{current:n,max:r,change:i}=t;const o=Fe(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return Ue(a,je)?null:a}})(),mr=e=>{let{max:t,current:n,change:r}=e;const i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=pr(r),a=hr({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},gr=(e,t)=>mr({current:e.scroll.current,max:e.scroll.max,change:t}),vr=(e,t)=>{const n=e.frame;return!!n&&mr({current:n.scroll.current,max:n.scroll.max,change:t})};var br=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:i,scrollDroppable:o,getAutoScrollerOptions:a}=e;const s=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const e=(e=>{let{viewport:t,subject:n,center:r,dragStartTime:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const s=fr({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return s&&gr(t,s)?s:null})({dragStartTime:n,viewport:t.viewport,subject:l,center:s,shouldUseTimeDampening:r,getAutoScrollerOptions:a});if(e)return void i(e)}const u=ar({center:s,destination:Ht(t.impact),droppables:t.dimensions.droppables});if(!u)return;const c=(e=>{let{droppable:t,subject:n,center:r,dragStartTime:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const s=t.frame;if(!s)return null;const l=fr({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&vr(t,l)?l:null})({dragStartTime:n,droppable:u,subject:l,center:s,shouldUseTimeDampening:r,getAutoScrollerOptions:a});c&&o(u.descriptor.id,c)},yr=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const i=(e,t)=>{if(!vr(e,t))return t;const r=((e,t)=>{const n=e.frame;return n&&vr(e,t)?hr({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,t);if(!r)return n(e.descriptor.id,t),null;const i=Be(t,r);n(e.descriptor.id,i);return Be(t,i)},o=(e,t,n)=>{if(!e)return n;if(!gr(t,n))return n;const i=((e,t)=>{if(!gr(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return hr({current:r,max:n,change:t})})(t,n);if(!i)return r(n),null;const o=Be(n,i);r(o);return Be(n,o)};return e=>{const n=e.scrollJumpRequest;if(!n)return;const r=Ht(e.impact);r||Re(!1);const a=i(e.dimensions.droppables[r],n);if(!a)return;const s=e.viewport,l=o(e.isWindowScrollAllowed,s,a);l&&((e,n)=>{const r=Fe(e.current.client.selection,n);t({client:r})})(e,l)}},_r=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:i}=e;const o=(e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=(()=>sr)}=e;const i=Te(t),o=Te(n);let a=null;const s=e=>{a||Re(!1);const{shouldUseTimeDampening:t,dragStartTime:n}=a;br({state:e,scrollWindow:i,scrollDroppable:o,dragStartTime:n,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{nn(),a&&Re(!1);const t=Date.now();let n=!1;const i=()=>{n=!0};br({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:r}),a={dragStartTime:t,shouldUseTimeDampening:n},rn(),n&&s(e)},stop:()=>{a&&(i.cancel(),o.cancel(),a=null)},scroll:s}})({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:i}),a=yr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:e=>{i().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}};const Er=(()=>{const e="".concat("data-rfd","-drag-handle");return{base:e,draggableId:"".concat(e,"-draggable-id"),contextId:"".concat(e,"-context-id")}})(),wr=(()=>{const e="".concat("data-rfd","-draggable");return{base:e,contextId:"".concat(e,"-context-id"),id:"".concat(e,"-id")}})(),Sr=(()=>{const e="".concat("data-rfd","-droppable");return{base:e,contextId:"".concat(e,"-context-id"),id:"".concat(e,"-id")}})(),Or={contextId:"".concat("data-rfd","-scroll-container-context-id")},Tr=(e,t)=>e.map(e=>{const n=e.styles[t];return n?"".concat(e.selector," { ").concat(n," }"):""}).join(" ");var xr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?i.useLayoutEffect:i.useEffect;const Cr=()=>{const e=document.querySelector("head");return e||Re(!1),e},kr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Ar(e,t){const n=ue(()=>(e=>{const t=(n=e,e=>"[".concat(e,'="').concat(n,'"]'));var n;const r=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Er.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),i=[(()=>{const e="\n transition: ".concat(Rn.outOfTheWay,";\n ");return{selector:t(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),r,{selector:t(Sr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Tr(i,"always"),resting:Tr(i,"resting"),dragging:Tr(i,"dragging"),dropAnimating:Tr(i,"dropAnimating"),userCancel:Tr(i,"userCancel")}})(e),[e]),r=Object(i.useRef)(null),o=Object(i.useRef)(null),a=ce(Oe(e=>{const t=o.current;t||Re(!1),t.textContent=e}),[]),s=ce(e=>{const t=r.current;t||Re(!1),t.textContent=e},[]);xr(()=>{(r.current||o.current)&&Re(!1);const i=kr(t),l=kr(t);return r.current=i,o.current=l,i.setAttribute("".concat("data-rfd","-always"),e),l.setAttribute("".concat("data-rfd","-dynamic"),e),Cr().appendChild(i),Cr().appendChild(l),s(n.always),a(n.resting),()=>{const e=e=>{const t=e.current;t||Re(!1),Cr().removeChild(t),e.current=null};e(r),e(o)}},[t,s,a,n.always,n.resting,e]);const l=ce(()=>a(n.dragging),[a,n.dragging]),u=ce(e=>{a("DROP"!==e?n.userCancel:n.dropAnimating)},[a,n.dropAnimating,n.userCancel]),c=ce(()=>{o.current&&a(n.resting)},[a,n.resting]);return ue(()=>({dragging:l,dropping:u,resting:c}),[l,u,c])}function Rr(e,t){return Array.from(e.querySelectorAll(t))}var Ir=e=>{var t;return(null===e||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||window};function Nr(e){return e instanceof Ir(e).HTMLElement}function Pr(e,t){const n="[".concat(Er.contextId,'="').concat(e,'"]'),r=Rr(document,n);if(!r.length)return null;const i=r.find(e=>e.getAttribute(Er.draggableId)===t);return i&&Nr(i)?i:null}function Dr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach(t=>t(e))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||Re(!1),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=i(e);return t||Re(!1),t},findById:i,exists:e=>Boolean(i(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Lr=o.a.createContext(null),Mr=()=>{const e=document.body;return e||Re(!1),e};var jr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};let Fr=0;const Br={separator:"::"};var Ur="useId"in o.a?function(e,t){void 0===t&&(t=Br);const n=o.a.useId();return ue(()=>"".concat(e).concat(t.separator).concat(n),[t.separator,e,n])}:function(e,t){return void 0===t&&(t=Br),ue(()=>"".concat(e).concat(t.separator).concat(Fr++),[t.separator,e])};var Hr=o.a.createContext(null);function zr(e){0}function Vr(e,t){zr()}function Wr(){Vr()}function Gr(e){const t=Object(i.useRef)(e);return Object(i.useEffect)(()=>{t.current=e}),t}function qr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Yr={13:!0,9:!0};var $r=e=>{Yr[e.keyCode]&&e.preventDefault()};var Kr=(()=>{const e="visibilitychange";if("undefined"===typeof document)return e;return[e,"ms".concat(e),"webkit".concat(e),"moz".concat(e),"o".concat(e)].find(e=>"on".concat(e)in document)||e})();const Xr={type:"IDLE"};function Zr(e){let{cancel:t,completed:n,getPhase:r,setPhase:i}=e;return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:n,clientY:o}=e;if(0!==t)return;const a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&Re(!1);const l=s.point;if(u=l,c=a,!(Math.abs(c.x-u.x)>=5||Math.abs(c.y-u.y)>=5))return;var u,c;e.preventDefault();const d=s.actions.fluidLift(a);i({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:e=>{const i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:e=>{"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:e=>{if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void $r(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:e=>{const n=r();"IDLE"===n.type&&Re(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Kr,fn:t}]}function Qr(){}const Jr={34:!0,33:!0,36:!0,35:!0};function ei(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Jr[r.keyCode]?r.preventDefault():$r(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Kr,fn:n}]}const ti={type:"IDLE"};const ni=["input","button","textarea","select","option","optgroup","video","audio"];function ri(e,t){const n=t.target;return!!Nr(n)&&function e(t,n){if(null==n)return!1;if(ni.includes(n.tagName.toLowerCase()))return!0;const r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var ii=e=>fe(e.getBoundingClientRect()).center;const oi=(()=>{if("undefined"===typeof document)return"matches";return["matches","msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||"matches"})();function ai(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[oi](n)?t:e(t.parentElement,n)}(e,t)}function si(e,t){const n=t.target;if(!((r=n)instanceof Ir(r).Element))return null;var r;const i=ai(n,function(e){return"[".concat(Er.contextId,'="').concat(e,'"]')}(e));return i&&Nr(i)?i:null}function li(e){e.preventDefault()}function ui(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:i}=e;return!!r()&&t===n}function ci(e){let{lockAPI:t,store:n,registry:r,draggableId:i}=e;if(t.isClaimed())return!1;const o=r.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!rr(n.getState(),i))}function di(e){let{lockAPI:t,contextId:n,store:i,registry:o,draggableId:a,forceSensorStop:s,sourceEvent:l}=e;if(!ci({lockAPI:t,store:i,registry:o,draggableId:a}))return null;const u=o.draggable.getById(a),c=function(e,t){const n="[".concat(wr.contextId,'="').concat(e,'"]'),r=Rr(document,n).find(e=>e.getAttribute(wr.id)===t);return r&&Nr(r)?r:null}(n,u.descriptor.id);if(!c)return null;if(l&&!u.options.canDragInteractiveElements&&ri(c,l))return null;const d=t.claim(s||Ce);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function h(){return t.isActive(d)}const m=function(e,t){ui({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&i.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,r){if(void 0===r&&(r={shouldBlockNextClick:!1}),e.cleanup(),r.shouldBlockNextClick){const e=ke(window,[{eventName:"click",fn:li,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),i.dispatch(wn({reason:t}))}return"PRE_DRAG"!==f&&(n(),Re(!1)),i.dispatch((e=>({type:"LIFT",payload:e}))(e.liftActionArgs)),f="DRAGGING",Object(r.a)({isActive:()=>ui({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e)},e.actions)}return{isActive:()=>ui({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:function(e){const t=Te(e=>{m(()=>gn({client:e}))}),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}});return Object(r.a)(Object(r.a)({},n),{},{move:t})},snapLift:function(){const e={moveUp:()=>m(vn),moveRight:()=>m(yn),moveDown:()=>m(bn),moveLeft:()=>m(_n)};return g({liftActionArgs:{id:a,clientSelection:ii(c),movementMode:"SNAP"},cleanup:Ce,actions:e})},abort:function(){ui({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}const fi=[function(e){const t=Object(i.useRef)(Xr),n=Object(i.useRef)(Ce),r=ue(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const r=e.findClosestDraggableId(t);if(!r)return;const i=e.tryGetLock(r,s,{sourceEvent:t});if(!i)return;t.preventDefault();const o={x:t.clientX,y:t.clientY};n.current(),c(i,o)}}),[e]),o=ue(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}),[e]),a=ce((function(){n.current=ke(window,[o,r],{passive:!1,capture:!0})}),[o,r]),s=ce(()=>{"IDLE"!==t.current.type&&(t.current=Xr,n.current(),a())},[a]),l=ce(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),u=ce((function(){const e=Zr({cancel:l,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});n.current=ke(window,e,{capture:!0,passive:!1})}),[l,s]),c=ce((function(e,n){"IDLE"!==t.current.type&&Re(!1),t.current={type:"PENDING",point:n,actions:e},u()}),[u]);xr((function(){return a(),function(){n.current()}}),[a])},function(e){const t=Object(i.useRef)(Qr),n=ue(()=>({eventName:"keydown",fn:function(n){if(n.defaultPrevented)return;if(32!==n.keyCode)return;const i=e.findClosestDraggableId(n);if(!i)return;const o=e.tryGetLock(i,l,{sourceEvent:n});if(!o)return;n.preventDefault();let a=!0;const s=o.snapLift();function l(){a||Re(!1),a=!1,t.current(),r()}t.current(),t.current=ke(window,ei(s,l),{capture:!0,passive:!1})}}),[e]),r=ce((function(){t.current=ke(window,[n],{passive:!1,capture:!0})}),[n]);xr((function(){return r(),function(){t.current()}}),[r])},function(e){const t=Object(i.useRef)(ti),n=Object(i.useRef)(Ce),r=ce((function(){return t.current}),[]),o=ce((function(e){t.current=e}),[]),a=ue(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const i=e.tryGetLock(r,l,{sourceEvent:t});if(!i)return;const o=t.touches[0],{clientX:a,clientY:s}=o,u={x:a,y:s};n.current(),f(i,u)}}),[e]),s=ce((function(){n.current=ke(window,[a],{capture:!0,passive:!1})}),[a]),l=ce(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(ti),n.current(),s())},[s,o]),u=ce(()=>{const e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),c=ce((function(){const e={capture:!0,passive:!1},t={cancel:u,completed:l,getPhase:r},i=ke(window,function(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:e=>{const n=r();if("DRAGGING"!==n.type)return void t();n.hasMoved=!0;const{clientX:i,clientY:o}=e.touches[0],a={x:i,y:o};e.preventDefault(),n.actions.move(a)}},{eventName:"touchend",fn:e=>{const i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:e=>{"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:e=>{const n=r();"IDLE"===n.type&&Re(!1);const i=e.touches[0];if(!i)return;if(!(i.force>=.15))return;const o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}},{eventName:Kr,fn:t}]}(t),e),o=ke(window,function(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:e=>{"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Kr,fn:t}]}(t),e);n.current=function(){i(),o()}}),[u,r,l]),d=ce((function(){const e=r();"PENDING"!==e.type&&Re(!1);const t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),f=ce((function(e,t){"IDLE"!==r().type&&Re(!1);const n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,o,d]);xr((function(){return s(),function(){n.current();const e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(ti))}}),[r,s,o]),xr((function(){return ke(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function pi(e){let{contextId:t,store:n,registry:r,customSensors:o,enableDefaultSensors:a}=e;const s=[...a?fi:[],...o||[]],l=Object(i.useState)(()=>function(){let e=null;function t(){e||Re(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Re(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],u=ce((function(e,t){qr(e)&&!qr(t)&&l.tryAbandon()}),[l]);xr((function(){let e=n.getState();return n.subscribe(()=>{const t=n.getState();u(e,t),e=t})}),[l,n,u]),xr(()=>l.tryAbandon,[l.tryAbandon]);const c=ce(e=>ci({lockAPI:l,registry:r,store:n,draggableId:e}),[l,r,n]),d=ce((e,i,o)=>di({lockAPI:l,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:i||null,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null}),[t,l,r,n]),f=ce(e=>function(e,t){const n=si(e,t);return n?n.getAttribute(Er.draggableId):null}(t,e),[t]),p=ce(e=>{const t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),h=ce((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[l,n]),m=ce(()=>l.isClaimed(),[l]),g=ue(()=>({canGetLock:c,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}),[c,d,f,p,h,m]);zr();for(let i=0;i(e=>({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};o.a.version.startsWith("16")||o.a.version.startsWith("17")?n():Object(a.flushSync)(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}))(d.current),[d]),p=ce(()=>(e=>Object(r.a)(Object(r.a)(Object(r.a)({},sr),e.autoScrollerOptions),{},{durationDampening:Object(r.a)(Object(r.a)({},sr.durationDampening),e.autoScrollerOptions)}))(d.current),[d]),h=function(e){const t=ue(()=>(e=>"rfd-announcement-".concat(e))(e),[e]),n=Object(i.useRef)(null);return Object(i.useEffect)((function(){const e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(A.a)(e.style,jr),Mr().appendChild(e),function(){setTimeout((function(){const t=Mr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),ce(e=>{const t=n.current;t&&(t.textContent=e)},[])}(t),m=function(e){let{contextId:t,text:n}=e;const r=Ur("hidden-text",{separator:"-"}),o=ue(()=>function(e){let{contextId:t,uniqueId:n}=e;return"rfd-hidden-text-".concat(t,"-").concat(n)}({contextId:t,uniqueId:r}),[r,t]);return Object(i.useEffect)((function(){const e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Mr().appendChild(e),function(){const t=Mr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:u}),g=Ar(t,l),v=ce(e=>{hi(c).dispatch(e)},[]),y=ue(()=>b({publishWhileDragging:dn,updateDroppableScroll:pn,updateDroppableIsEnabled:hn,updateDroppableIsCombineEnabled:mn,collectionStarting:fn},v),[v]),_=function(){const e=ue(Dr,[]);return Object(i.useEffect)(()=>function(){o.a.version.startsWith("16")||o.a.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}(),E=ue(()=>nr(_,y),[_,y]),w=ue(()=>_r(Object(r.a)({scrollWindow:ir,scrollDroppable:E.scrollDroppable,getAutoScrollerOptions:p},b({move:gn},v))),[E.scrollDroppable,v,p]),S=function(e){const t=Object(i.useRef)({}),n=Object(i.useRef)(null),r=Object(i.useRef)(null),o=Object(i.useRef)(!1),a=ce((function(e,n){const r={id:e,focus:n};return t.current[e]=r,function(){const n=t.current;n[e]!==r&&delete n[e]}}),[]),s=ce((function(t){const n=Pr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=ce((function(e,t){n.current===e&&(n.current=t)}),[]),u=ce((function(){r.current||o.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const e=n.current;e&&s(e)}))}),[s]),c=ce((function(e){n.current=null;const t=document.activeElement;t&&t.getAttribute(Er.draggableId)===e&&(n.current=e)}),[]);return xr(()=>(o.current=!0,function(){o.current=!1;const e=r.current;e&&cancelAnimationFrame(e)}),[]),ue(()=>({register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:l}),[a,c,u,l])}(t),O=ue(()=>Xn({announce:h,autoScroller:w,dimensionMarshal:E,focusMarshal:S,getResponders:f,styleMarshal:g}),[h,w,E,S,f,g]);c.current=O;const T=ce(()=>{const e=hi(c);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})},[]),x=ce(()=>{const e=hi(c).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);n(ue(()=>({isDragging:x,tryAbort:T}),[x,T]));const C=ce(e=>rr(hi(c).getState(),e),[]),k=ce(()=>Vt(hi(c).getState()),[]),R=ue(()=>({marshal:E,focus:S,contextId:t,canLift:C,isMovementAllowed:k,dragHandleUsageInstructionsId:m,registry:_}),[t,E,m,S,C,k,_]);return pi({contextId:t,store:O,registry:_,customSensors:s||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(i.useEffect)(()=>T,[T]),o.a.createElement(Hr.Provider,{value:R},o.a.createElement(oe,{context:Lr,store:O},e.children))}let gi=0;var vi="useId"in o.a?function(){return o.a.useId()}:function(){return ue(()=>"".concat(gi++),[])};function bi(e){const t=vi(),n=e.dragHandleUsageInstructions||Me.dragHandleUsageInstructions;return o.a.createElement(Ie,null,r=>o.a.createElement(mi,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const yi=5e3,_i=4500,Ei=(e,t)=>t?Rn.drop(t.duration):e?Rn.snap:Rn.fluid,wi=(e,t)=>{if(e)return t?xn.drop:xn.combining};function Si(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:i}=e,o=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(i),l=s?Pn(n,o):Nn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Ei(a,i),transform:l,opacity:wi(o,s),zIndex:s?_i:yi,pointerEvents:"none"}}(e):{transform:Nn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Oi(e){const t=Ur("draggable"),{descriptor:n,registry:r,getDraggableRef:o,canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}=e,u=ue(()=>({canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}),[a,l,s]),c=ce(e=>{const t=o();return t||Re(!1),function(e,t,n){void 0===n&&(n=je);const r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=_e(i,r),a=ye(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)},[n,o]),d=ue(()=>({uniqueId:t,descriptor:n,options:u,getDimension:c}),[n,c,u,t]),f=Object(i.useRef)(d),p=Object(i.useRef)(!0);xr(()=>(r.draggable.register(f.current),()=>r.draggable.unregister(f.current)),[r.draggable]),xr(()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,r.draggable.update(d,e)},[d,r.draggable])}var Ti=o.a.createContext(null);function xi(e){const t=Object(i.useContext)(e);return t||Re(!1),t}function Ci(e){e.preventDefault()}var ki=e=>{const t=Object(i.useRef)(null),n=ce((function(e){void 0===e&&(e=null),t.current=e}),[]),r=ce(()=>t.current,[]),{contextId:s,dragHandleUsageInstructionsId:l,registry:u}=xi(Hr),{type:c,droppableId:d}=xi(Ti),f=ue(()=>({id:e.draggableId,index:e.index,type:c,droppableId:d}),[e.draggableId,e.index,c,d]),{children:p,draggableId:h,isEnabled:m,shouldRespectForcePress:g,canDragInteractiveElements:v,isClone:b,mapped:y,dropAnimationFinished:_}=e;if(Vr(),zr(),!b){Oi(ue(()=>({descriptor:f,registry:u,getDraggableRef:r,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}),[f,u,r,v,g,m]))}const E=ue(()=>m?{tabIndex:0,role:"button","aria-describedby":l,"data-rfd-drag-handle-draggable-id":h,"data-rfd-drag-handle-context-id":s,draggable:!1,onDragStart:Ci}:null,[s,l,h,m]),w=ce(e=>{"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&(o.a.version.startsWith("16")||o.a.version.startsWith("17")?_():Object(a.flushSync)(_))},[_,y]),S=ue(()=>{const e=Si(y),t="DRAGGING"===y.type&&y.dropping?w:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":s,"data-rfd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:E}},[s,E,h,y,w,n]),O=ue(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return o.a.createElement(o.a.Fragment,null,p(S,y.snapshot,O))},Ai=(e,t)=>e===t,Ri=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function Ii(e){return void 0===e&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Ni={mapped:{type:"SECONDARY",offset:je,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ii(null)}};var Pi=ie(()=>{const e=function(){const e=Oe((e,t)=>({x:e,y:t})),t=Oe((function(e,t,n,r,i){return void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=null),{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Oe((function(e,n,r,i,o,a,s){return void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return(r,i)=>{if(qr(r)){if(r.critical.draggable.id!==i.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=Ht(r.impact),l=(o=r.impact).at&&"COMBINE"===o.at.type?o.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,i.isClone,s,l,u)}var o;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==i.draggableId)return null;const n=i.isClone,o=r.dimensions.draggables[i.draggableId],a=e.result,s=a.mode,l=Ri(a),u=(e=>e.combine?e.combine.draggableId:null)(a),c={duration:r.dropDuration,curve:Tn,moveTo:r.newHomeClientOffset,opacity:u?xn.drop:null,scale:u?Cn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:o,dropping:c,draggingOver:l,combineWith:u,mode:s,forceShouldAnimate:null,snapshot:t(s,n,l,u,c)}}}return null}}(),t=function(){const e=Oe((e,t)=>({x:e,y:t})),t=Oe(Ii),n=Oe((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=e=>e?n(je,e,!0):null,i=(t,i,o,a)=>{const s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),u=rt(o),c=u&&u.draggableId===t?i:null;if(!s){if(!l)return r(c);if(o.displaced.invisible[t])return null;const i=He(a.displacedBy.point),s=e(i.x,i.y);return n(s,c,!0)}if(l)return r(c);const d=o.displacedBy.point,f=e(d.x,d.y);return n(f,c,s.shouldAnimate)};return(e,t)=>{if(qr(e))return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||Ni},{dropAnimationFinished:Sn},null,{context:Lr,areStatePropsEqual:Ai})(ki);function Di(e){return xi(Ti).isUsingCloneFor!==e.draggableId||e.isClone?o.a.createElement(Pi,e):null}function Li(e){const t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o.a.createElement(Di,Object(A.a)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const Mi=e=>t=>e===t,ji=Mi("scroll"),Fi=Mi("auto"),Bi=(Mi("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),Ui=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Bi(n,ji)||Bi(n,Fi)},Hi=e=>null==e||e===document.body||e===document.documentElement?null:Ui(e)?e:Hi(e.parentElement);var zi=Hi,Vi=e=>({x:e.scrollLeft,y:e.scrollTop});const Wi=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||Wi(e.parentElement)};var Gi=e=>{let{ref:t,descriptor:n,env:r,windowScroll:i,direction:o,isDropDisabled:a,isCombineEnabled:s,shouldClipSubject:l}=e;const u=r.closestScrollable,c=((e,t)=>{const n=Ee(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=pe({top:r,right:a,bottom:o,left:i},n.border);return ge({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})})(t,u),d=ye(c,i),f=(()=>{if(!u)return null;const e=Ee(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:ye(e,i),scroll:Vi(u),scrollSize:t,shouldClipSubject:l}})();return(e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:i,direction:o,client:a,page:s,closest:l}=e;const u=(()=>{if(!l)return null;const{scrollSize:e,client:t}=l,n=Zn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:je,displacement:je}}}})(),c="vertical"===o?ft:pt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:c,isEnabled:n,client:a,page:s,frame:u,subject:Ke({page:s,withPlaceholder:null,axis:c,frame:u})}})({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:c,page:d,closest:f})};const qi={passive:!1},Yi={passive:!0};var $i=e=>e.shouldPublishImmediately?qi:Yi;const Ki=e=>e&&e.env.closestScrollable||null;function Xi(e){const t=Object(i.useRef)(null),n=xi(Hr),r=Ur("droppable"),{registry:o,marshal:a}=n,s=Gr(e),l=ue(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),u=Object(i.useRef)(l),c=ue(()=>Oe((e,n)=>{t.current||Re(!1);const r={x:e,y:n};a.updateDroppableScroll(l.id,r)}),[l.id,a]),d=ce(()=>{const e=t.current;return e&&e.env.closestScrollable?Vi(e.env.closestScrollable):je},[]),f=ce(()=>{const e=d();c(e.x,e.y)},[d,c]),p=ue(()=>Te(f),[f]),h=ce(()=>{const e=t.current,n=Ki(e);e&&n||Re(!1);e.scrollOptions.shouldPublishImmediately?f():p()},[p,f]),m=ce((e,r)=>{t.current&&Re(!1);const i=s.current,o=i.getDroppableRef();o||Re(!1);const a={closestScrollable:zi(u=o),isFixedOnPage:Wi(u)};var u;const c={ref:o,descriptor:l,env:a,scrollOptions:r};t.current=c;const d=Gi({ref:o,descriptor:l,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(Or.contextId,n.contextId),f.addEventListener("scroll",h,$i(c.scrollOptions))),d},[n.contextId,l,h,s]),g=ce(()=>{const e=t.current,n=Ki(e);return e&&n||Re(!1),Vi(n)},[]),v=ce(()=>{const e=t.current;e||Re(!1);const n=Ki(e);t.current=null,n&&(p.cancel(),n.removeAttribute(Or.contextId),n.removeEventListener("scroll",h,$i(e.scrollOptions)))},[h,p]),b=ce(e=>{const n=t.current;n||Re(!1);const r=Ki(n);r||Re(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x},[]),y=ue(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:b}),[v,m,g,b]),_=ue(()=>({uniqueId:r,descriptor:l,callbacks:y}),[y,l,r]);xr(()=>(u.current=_.descriptor,o.droppable.register(_),()=>{t.current&&v(),o.droppable.unregister(_)}),[y,l,v,_,a,o.droppable]),xr(()=>{t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),xr(()=>{t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function Zi(){}const Qi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Ji=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const i=(e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||"close"===r?Qi:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}})({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Rn.placeholder:null}};var eo=o.a.memo(e=>{const t=Object(i.useRef)(null),n=ce(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:a,onClose:s,contextId:l}=e,[u,c]=Object(i.useState)("open"===e.animate);Object(i.useEffect)(()=>u?"open"!==r?(n(),c(!1),Zi):t.current?Zi:(t.current=setTimeout(()=>{t.current=null,c(!1)}),n):Zi,[r,u,n]);const d=ce(e=>{"height"===e.propertyName&&(a(),"close"===r&&s())},[r,s,a]),f=Ji({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return o.a.createElement(e.placeholder.tagName,{style:f,"data-rfd-placeholder-context-id":l,onTransitionEnd:d,ref:e.innerRef})});class to extends o.a.PureComponent{constructor(){super(...arguments),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}var no=e=>{const t=Object(i.useContext)(Hr);t||Re(!1);const{contextId:n,isMovementAllowed:r}=t,a=Object(i.useRef)(null),l=Object(i.useRef)(null),{children:u,droppableId:c,type:d,mode:f,direction:p,ignoreContainerClipping:h,isDropDisabled:m,isCombineEnabled:g,snapshot:v,useClone:b,updateViewportMaxScroll:y,getContainerForClone:_}=e,E=ce(()=>a.current,[]),w=ce((function(e){void 0===e&&(e=null),a.current=e}),[]),S=(ce(()=>l.current,[]),ce((function(e){void 0===e&&(e=null),l.current=e}),[]));Vr();const O=ce(()=>{r()&&y({maxScroll:Jn()})},[r,y]);Xi({droppableId:c,type:d,mode:f,direction:p,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:h,getDroppableRef:E});const T=ue(()=>o.a.createElement(to,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},e=>{let{onClose:t,data:r,animate:i}=e;return o.a.createElement(eo,{placeholder:r,onClose:t,innerRef:S,animate:i,contextId:n,onTransitionEnd:O})}),[n,O,e.placeholder,e.shouldAnimatePlaceholder,S]),x=ue(()=>({innerRef:w,placeholder:T,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":n}}),[n,c,T,w]),C=b?b.dragging.draggableId:null,k=ue(()=>({droppableId:c,type:d,isUsingCloneFor:C}),[c,C,d]);return o.a.createElement(Ti.Provider,{value:k},u(x,v),function(){if(!b)return null;const{dragging:e,render:t}=b,n=o.a.createElement(Di,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(n,r)=>t(n,r,e));return s.a.createPortal(n,_())}())};const ro={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Re(!1),document.body}},io=e=>{let t,n=Object(r.a)({},e);for(t in ro)void 0===e[t]&&(n=Object(r.a)(Object(r.a)({},n),{},{[t]:ro[t]}));return n},oo=(e,t)=>e===t.droppable.type,ao=(e,t)=>t.draggables[e.draggable.id];var so=ie(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(r.a)(Object(r.a)({},e),{},{shouldAnimatePlaceholder:!1}),n=Oe(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),i=Oe((r,i,o,a,s,l)=>{const u=s.descriptor.id;if(s.descriptor.droppableId===r){const e=l?{render:l,dragging:n(s.descriptor)}:null,t={isDraggingOver:o,draggingOverWith:o?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!i)return t;if(!a)return e;const c={isDraggingOver:o,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:c,useClone:null}});return(n,r)=>{const o=io(r),a=o.droppableId,s=o.type,l=!o.isDropDisabled,u=o.renderClone;if(qr(n)){const e=n.critical;if(!oo(s,e))return t;const r=ao(e,n.dimensions),o=Ht(n.impact)===a;return i(a,l,o,o,r,u)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!oo(s,e.critical))return t;const r=ao(e.critical,n.dimensions);return i(a,l,Ri(e.result)===a,Ht(e.impact)===a,r,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!oo(s,r.critical))return t;const i=Ht(r.impact)===a,o=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),l=r.critical.droppable.id===a;return i?o?e:t:l?e:t}return t}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,n)=>Object(r.a)(Object(r.a)(Object(r.a)({},io(n)),e),t),{context:Lr,areStatePropsEqual:Ai})(no)},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(172);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){if(r(i))return e.enter(n),s(i);return t(i)};function s(i){return r(i)&&a++=0&&f.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var v=h.initializeApp;h.initializeApp=function(){for(var e=[],t=0;tObject(i.a)(...t),[...t])}},function(e,t,n){"use strict";var r=n(71).a.Symbol;t.a=r},function(e,t,n){e.exports={default:n(1480),__esModule:!0}},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 r,i=n(658),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(322);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,f(),_.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(_.entries[_.index]=r,d({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,n){"use strict";var r,i="function"===typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((o(t,n)*e+a(t,n))*e+s(t))*e}function u(e,t,n){return 3*o(t,n)*e*e+2*a(t,n)*e+s(t)}function c(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var o=i?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var a=0;a<11;++a)o[a]=l(.1*a,e,n);function s(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=.1;--i;var a=r+.1*((t-o[i])/(o[i+1]-o[i])),s=u(a,e,n);return s>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=u(i,n,r);if(0===a)return i;i-=(l(i,n,r)-e)/a}return i}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0,u=t,c=n;do{(o=l(a=u+(c-u)/2,r,i)-e)>0?c=a:u=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}return function(i){return e===t&&n===r?i:0===i?0:1===i?1:l(s(i),t,r)}}class d{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return r||(r=d.bezier(.42,0,1,1)),r(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return c(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}var f=d;t.a=f},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(658),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MAP="__SECRET_MAP_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.MARKER="__SECRET_MARKER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.MARKER_WITH_LABEL="__SECRET_MARKER_WITH_LABEL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.RECTANGLE="__SECRET_RECTANGLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.POLYLINE="__SECRET_POLYLINE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.POLYGON="__SECRET_POLYGON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.CIRCLE="__SECRET_CIRCLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.KML_LAYER="__SECRET_KML_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.DIRECTIONS_RENDERER="__SECRET_DIRECTIONS_RENDERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.HEATMAP_LAYER="__SECRET_HEATMAP_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.FUSION_TABLES_LAYER="__SECRET_FUSION_TABLES_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.ANCHOR="__SECRET_ANCHOR_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.INFO_WINDOW="__SECRET_INFO_WINDOW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.OVERLAY_VIEW="__SECRET_OVERLAY_VIEW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.GROUND_LAYER="__SECRET_GROUND_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.DRAWING_MANAGER="__SECRET_DRAWING_MANAGER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.SEARCH_BOX="__SECRET_SEARCH_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.MARKER_CLUSTERER="__SECRET_MARKER_CLUSTERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.INFO_BOX="__SECRET_INFO_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.TRAFFIC_LAYER="__SECRET_TRAFFIC_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.STREET_VIEW_PANORAMA="__SECRET_STREET_VIEW_PANORAMA_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",t.BICYCLING_LAYER="__SECRET_BICYCLING_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return f(e,l)},t.parseEndTime=function(e){return f(e,u)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.default,a=p(t);if(a&&i(a))return Promise.resolve(a);return new Promise((function(r,i){if(h[e])h[e].push({resolve:r,reject:i});else{h[e]=[{resolve:r,reject:i}];var a=function(t){h[e].forEach((function(e){return e.resolve(t)}))};if(n){var s=window[n];window[n]=function(){s&&s(),a(p(t))}}o(e,(function(r){r?(h[e].forEach((function(e){return e.reject(r)})),h[e]=null):n||a(p(t))}))}}))},t.getConfig=function(e,t){return(0,i.default)(t.config,e.config)},t.omit=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t};var r=o(n(1654)),i=o(n(689));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n({cancelable:!g,disabled:c,delayLongPress:u,delayPressStart:n,delayPressEnd:l,onLongPress:f,onPress:p,onPressStart:h,onPressEnd:m}),[c,n,l,u,f,p,h,m,g]),y=Object(a.a)(v,b),_=r.Children.only(e.children),E=[_.props.children],w=(e=>Object(i.a)(e,s))(e);w.accessibilityDisabled=c,w.focusable=!c&&!1!==d,w.ref=Object(o.a)(t,v,_.ref);var S=Object.assign(w,y);return r.cloneElement(_,S,...E)}var u=r.memo(r.forwardRef(l));u.displayName="TouchableWithoutFeedback",t.a=u},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(6),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,l=t.easing,u=void 0===l?i.easeInOut:l,c=t.delay,d=void 0===c?0:c;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(u," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(Object.is(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(var n,r=i(e);!(n=r()).done;){var o=n.value,a=o[0],s=o[1];if(!Object.is(s,t.get(a)))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(var l,u=i(e);!(l=u()).done;){var c=l.value;if(!t.has(c))return!1}return!0}var d=Object.keys(e);if(d.length!==Object.keys(t).length)return!1;for(var f=0,p=d;f{var t;try{t=Object(r.findDOMNode)(e)}catch(n){}return t}},function(e,t,n){"use strict";var r=n(88),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.a?r.a.toStringTag:void 0;var l=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i},u=Object.prototype.toString;var c=function(e){return u.call(e)},d=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?l(e):c(e)}},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},function(e,t,n){var r=n(571),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o=t.children||[],a=o.length,s=[],l=-1;for(;++l=o.length);l++){var u=s[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var c=o[i],d=n.tokenStack[c],f="string"===typeof u?u:u.content,p=t(r,c),h=f.indexOf(p);if(h>-1){++i;var m=f.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),v=f.substring(h+p.length),b=[];m&&b.push.apply(b,a([m])),b.push(g),v&&b.push.apply(b,a([v])),"string"===typeof u?s.splice.apply(s,[l,1].concat(b)):u.content=b}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(e)}e.exports=r,r.displayName="markupTemplating",r.aliases=[]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(262),i=n(263);t.a=function(e){return null!=e&&Object(i.a)(e.length)&&!Object(r.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return g}));var r=n(22),i=n(1),o=n(0),a=n.n(o),s=n(61);const l=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"];function u(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function c(e,t){e.labels=t}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";const r=[];e.datasets=t.map(t=>{const o=e.datasets.find(e=>e[n]===t[n]);return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):Object(i.a)({},t)})}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";const n={labels:[],datasets:[]};return c(n,e.labels),d(n,e.datasets,t),n}function p(e,t){let{height:n=150,width:p=300,redraw:h=!1,datasetIdKey:m,type:g,data:v,options:b,plugins:y=[],fallbackContent:_,updateMode:E}=e,w=Object(r.a)(e,l);const S=Object(o.useRef)(null),O=Object(o.useRef)(),T=()=>{S.current&&(O.current=new s.e(S.current,{type:g,data:f(v,m),options:b&&Object(i.a)({},b),plugins:y}),u(t,O.current))},x=()=>{u(t,null),O.current&&(O.current.destroy(),O.current=null)};return Object(o.useEffect)(()=>{var e,t;!h&&O.current&&b&&(e=O.current,t=b,Object.assign(e.options,t))},[h,b]),Object(o.useEffect)(()=>{!h&&O.current&&c(O.current.config.data,v.labels)},[h,v.labels]),Object(o.useEffect)(()=>{!h&&O.current&&v.datasets&&d(O.current.config.data,v.datasets,m)},[h,v.datasets]),Object(o.useEffect)(()=>{O.current&&(h?(x(),setTimeout(T)):O.current.update(E))},[h,b,v.labels,v.datasets,E]),Object(o.useEffect)(()=>{O.current&&(x(),setTimeout(T))},[g]),Object(o.useEffect)(()=>(T(),()=>x()),[]),a.a.createElement("canvas",Object.assign({ref:S,role:"img",height:n,width:p},w),_)}const h=Object(o.forwardRef)(p);function m(e,t){return s.e.register(t),Object(o.forwardRef)((t,n)=>a.a.createElement(h,Object.assign({},t,{ref:n,type:e})))}const g=m("line",s.g),v=m("bar",s.b),b=(s.k,m("doughnut",s.f));s.j,s.d,s.h,s.l},function(e,t,n){"use strict";var r=n(262),i=n(71).a["__core-js_shared__"],o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var a=function(e){return!!o&&o in e},s=n(62),l=n(182),u=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,f=c.toString,p=d.hasOwnProperty,h=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var m=function(e){return!(!Object(s.a)(e)||a(e))&&(Object(r.a)(e)?h:u).test(Object(l.a)(e))};var g=function(e,t){return null==e?void 0:e[t]};t.a=function(e,t){var n=g(e,t);return m(n)?n:void 0}},function(e,t,n){"use strict";var r=n(160);t.a=r.a},function(e,t,n){"use strict";var r=n(144),i=n(145);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(146)).default)(o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=a},function(e,t,n){"use strict";t.a=function(e){const{scene:t,scenes:n}=e,r=t.index,i=n.length-1;if(!n[i].isActive){const e=n.findIndex(e=>e===t),o=n.findIndex(e=>e.isActive),a=n[o].index,s=n[i].index;return r!==a&&e===i?{first:Math.min(a,r-1),last:r+1}:r===a&&e===o?{first:r-1,last:Math.max(s,r+1)}:r===a||e>o?null:{first:r-1,last:r+1}}return{first:r-1,last:r+1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0;var r=n(99);function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;oObject(r.a)({type:"Navigation/OPEN_DRAWER"},e),closeDrawer:e=>Object(r.a)({type:"Navigation/CLOSE_DRAWER"},e),toggleDrawer:e=>Object(r.a)({type:"Navigation/TOGGLE_DRAWER"},e)}},function(e,t,n){"use strict";var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!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,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach(e=>{i.forEach(t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]})});var o=r,a=n(434);n.d(t,"a",(function(){return l}));var s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!==typeof e?null!=t&&s[t]&&(n=Object(a.a)(e)):n=e+"px",n}},function(e,t,n){"use strict";function r(e){if("string"===typeof e||"number"===typeof e)return""+e;let t="";if(Array.isArray(e))for(let n,i=0;i=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(66),i=n(164);function o(e,t){if(t&&("object"==Object(r.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.a)(e)}},function(e,t,n){"use strict";var r=n(63),i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.a.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.a.blur(e))}};t.a=i},,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(342).default;function i(t,n){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=i=function(e,t){if(!t&&e&&e.__esModule)return e;var n,i,s={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return s;if(n=t?a:o){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?n(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(t,n)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(147)},function(e,t,n){"use strict";n.r(t);var r=n(26);n.d(t,"capitalize",(function(){return r.a}));var i=n(135);n.d(t,"createChainedFunction",(function(){return i.a}));var o=n(16);n.d(t,"createSvgIcon",(function(){return o.a}));var a=n(123);n.d(t,"debounce",(function(){return a.a}));var s=n(131);n.d(t,"deprecatedPropType",(function(){return s.a}));var l=n(200);n.d(t,"isMuiElement",(function(){return l.a}));var u=n(67);n.d(t,"ownerDocument",(function(){return u.a}));var c=n(194);n.d(t,"ownerWindow",(function(){return c.a}));var d=n(448);n.d(t,"requirePropFactory",(function(){return d.a}));var f=n(115);n.d(t,"setRef",(function(){return f.a}));var p=n(343);n.d(t,"unsupportedProp",(function(){return p.a}));var h=n(114);n.d(t,"useControlled",(function(){return h.a}));var m=n(60);n.d(t,"useEventCallback",(function(){return m.a}));var g=n(40);n.d(t,"useForkRef",(function(){return g.a}));var v=n(252);n.d(t,"unstable_useId",(function(){return v.a}));var b=n(193);n.d(t,"useIsFocusVisible",(function(){return b.a}))},function(e,t,n){"use strict";var r=n(14),i=n.n(r),o=n(35),a=o.a?window.location.href:"";var s=(e,t)=>{if(o.a){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}};t.a=new class{constructor(){this._eventCallbacks={},this.addEventListener=(e,t)=>{this._eventCallbacks[e]?this._eventCallbacks[e].push(t):this._eventCallbacks[e]=[t]},this.removeEventListener=(e,t)=>{var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{e(...n)})}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(a)}openURL(e,t){1===arguments.length&&(t="_blank");try{return s(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(n){return Promise.reject(n)}}_validateURL(e){i()("string"===typeof e,"Invalid URL: should be a string. Was: "+e),i()(e,"Invalid URL: cannot be empty")}}},function(e,t,n){"use strict";var r=n(118),i=n(71),o=Object(r.a)(i.a,"DataView"),a=n(213),s=Object(r.a)(i.a,"Promise"),l=Object(r.a)(i.a,"Set"),u=Object(r.a)(i.a,"WeakMap"),c=n(106),d=n(182),f=Object(d.a)(o),p=Object(d.a)(a.a),h=Object(d.a)(s),m=Object(d.a)(l),g=Object(d.a)(u),v=c.a;(o&&"[object DataView]"!=v(new o(new ArrayBuffer(1)))||a.a&&"[object Map]"!=v(new a.a)||s&&"[object Promise]"!=v(s.resolve())||l&&"[object Set]"!=v(new l)||u&&"[object WeakMap]"!=v(new u))&&(v=function(e){var t=Object(c.a)(e),n="[object Object]"==t?e.constructor:void 0,r=n?Object(d.a)(n):"";if(r)switch(r){case f:return"[object DataView]";case p:return"[object Map]";case h:return"[object Promise]";case m:return"[object Set]";case g:return"[object WeakMap]"}return t});t.a=v},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(314),i=n(47),o=n.n(i);function a(e,t){const n=e[t];if(!n)throw new Error("There is no route defined for key ".concat(t,".\n")+"Must be one of: ".concat(Object.keys(e).map(e=>"'".concat(e,"'")).join(",")));if(n.screen)return n.screen;if("function"===typeof n.getScreen){const e=n.getScreen();return o()(Object(r.isValidElementType)(e),"The getScreen defined for route '".concat(t," didn't return a valid ")+"screen or navigator.\n\nPlease pass it like this:\n"+"".concat(t,": {\n getScreen: () => require('./MyScreen').default\n}")),e}return n}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(497)("wks"),i=n(370),o=n(188).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){e.exports={get createStackNavigator(){return n(1633).default},get createUncontainedStackNavigator(){return n(521).default},get Header(){return n(535).default},get HeaderBackButton(){return n(526).default},get HeaderTitle(){return n(525).default},get HeaderStyleInterpolator(){return n(170).default},get StackView(){return n(522).default},get StackViewCard(){return n(523).default},get StackViewLayout(){return n(534).default},get StackViewStyleInterpolator(){return n(291).default},get StackViewTransitionConfigs(){return n(315).default},get createPointerEventsContainer(){return n(524).default},get Transitioner(){return n(527).default},get ScenesReducer(){return n(437).default}}},function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(33),a=n.n(o),s=n(0),l=n(9),u=n(5),c=["animating","color","hidesWhenStopped","size","style"],d=e=>s.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),f=s.forwardRef((e,t)=>{var n=e.animating,r=void 0===n||n,o=e.color,l=void 0===o?"#1976D2":o,f=e.hidesWhenStopped,m=void 0===f||f,g=e.size,v=void 0===g?"small":g,b=e.style,y=a()(e,c),_=s.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},d({stroke:l,opacity:.2}),d({stroke:l,strokeDasharray:80,strokeDashoffset:60}));return s.createElement(u.a,i()({},y,{accessibilityRole:"progressbar",accessibilityValueMax:1,accessibilityValueMin:0,ref:t,style:[p.container,b]}),s.createElement(u.a,{children:_,style:["number"===typeof v?{height:v,width:v}:h[v],p.animation,!r&&p.animationPause,!r&&m&&p.hidesWhenStopped]}))});f.displayName="ActivityIndicator";var p=l.a.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:[{rotate:"0deg"}]},"100%":{transform:[{rotate:"360deg"}]}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),h=l.a.create({small:{width:20,height:20},large:{width:36,height:36}});t.a=f},function(e,t,n){"use strict";t.a=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){"use strict";var r=n(288);t.a=function(e,t,n){"__proto__"==t&&r.a?Object(r.a)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";var r=n(403),i=n(156);t.a=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},s=o?window.cancelIdleCallback:function(e){clearTimeout(e)},l=a,u={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t,n=new Promise(n=>{t=l(()=>{e?n(e()):n()})});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{s(t)}}},createInteractionHandle:()=>1,clearInteractionHandle(e){i()(!!e,"Must provide a handle to clear.")},addListener:()=>{}};t.a=u},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=r.createContext();function o(){return r.useContext(i)}t.a=i},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h}));var r=n(743),i=n.n(r),o=n(0),a=n.n(o),s=n(15),l=n(5);let u=!0;function c(){return u}function d(e){return e&&e.__getValue&&e.addListener}function f(e){let t=e;return d(e)&&(t=e.__getValue()),!!t}class p extends a.a.Component{constructor(e){super(e),this.listenerId=null,this._addListener=e=>{if(this.listenerId)throw new Error("Screen: Attempting to observe an animated value while another value is already observed.");d(e)&&(this.listenerId=e.addListener(this._onAnimatedValueUpdated))},this._removeListener=e=>{d(e)&&(e.removeListener(this.listenerId),this.listenerId=null)},this._onAnimatedValueUpdated=e=>{let{value:t}=e;this._updateDisplay(!!t)},this._updateDisplay=e=>{void 0===e&&(e=f(this.props.active));const t=e?"flex":"none";this.setNativeProps({style:{display:t}})},this.setNativeProps=e=>{this._view&&this._view.setNativeProps(e)},this._setRef=e=>{this._view=e,this._updateDisplay()},this._onAnimatedValueUpdated=i()(this._onAnimatedValueUpdated,10),this._addListener(e.active)}componentWillUnmount(){this._removeListener(this.props.active)}shouldComponentUpdate(e){let{active:t}=e;const{active:n}=this.props;return t===n||(this._removeListener(n),this._addListener(t),this._updateDisplay(f(t)),!1)}render(){return a.a.createElement(s.a.View,Object.assign({},this.props,{ref:this._setRef}))}}p.defaultProps={active:!0};const h=l.a;l.a,l.a},function(e,t,n){"use strict";var r=n(210);var i=function(){this.__data__=new r.a,this.size=0};var o=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var a=function(e){return this.__data__.get(e)};var s=function(e){return this.__data__.has(e)},l=n(213),u=n(232);var c=function(e,t){var n=this.__data__;if(n instanceof r.a){var i=n.__data__;if(!l.a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new u.a(i)}return n.set(e,t),this.size=n.size,this};function d(e){var t=this.__data__=new r.a(e);this.size=t.size}d.prototype.clear=i,d.prototype.delete=o,d.prototype.get=a,d.prototype.has=s,d.prototype.set=c;t.a=d},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return R}));var i,o,a,s=n(1),l=n(0),u=n(11),c=n(105),d=n(125),f=n(431),p=n(722),h=n.n(p),m=n(217),g=n(36);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 b(e){return"web"===u.a.OS?e:Object(c.a)(e)}const{UIManager:y={}}=d.a,_={onGestureHandlerEvent:{registrationName:"onGestureHandlerEvent"},onGestureHandlerStateChange:{registrationName:"onGestureHandlerStateChange"}};y.genericDirectEventTypes=Object(s.a)(Object(s.a)({},y.genericDirectEventTypes),_);const E=null!==(i=null===(o=y.getViewManagerConfig)||void 0===o?void 0:o.call(y,"getConstants"))&&void 0!==i?i:null===(a=y.getConstants)||void 0===a?void 0:a.call(y);E&&(E.genericDirectEventTypes=Object(s.a)(Object(s.a)({},E.genericDirectEventTypes),_));const{setJSResponder:w=(()=>{}),clearJSResponder:S=(()=>{})}=y;y.setJSResponder=(e,t)=>{m.a.handleSetJSResponder(e,t),w(e,t)},y.clearJSResponder=()=>{m.a.handleClearJSResponder(),S()};let O=1;const T={};function x(e,t){return void 0!==e&&(e!==Object(e)||!("__isNative"in e))&&"onHandlerStateChange"!==t&&"onGestureEvent"!==t}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object(s.a)({},n);return t.forEach(t=>{if(x(e[t],t)){let n=e[t];"simultaneousHandlers"===t||"waitFor"===t?n=k(e[t]):"hitSlop"===t&&"object"!==typeof n&&(n={top:n,left:n,bottom:n,right:n}),r[t]=n}}),r}function k(e){return Array.isArray(e)||(e=[e]),"web"===u.a.OS?e.map(e=>{let{current:t}=e;return t}).filter(e=>e):e.map(e=>{var t;return T[e]||(null===(t=e.current)||void 0===t?void 0:t.handlerTag)||-1}).filter(e=>e>0)}const A={[g.a.UNDETERMINED]:void 0,[g.a.BEGAN]:"onBegan",[g.a.FAILED]:"onFailed",[g.a.CANCELLED]:"onCancelled",[g.a.ACTIVE]:"onActivated",[g.a.END]:"onEnded"};function R(t){let{name:n,allowedProps:i=[],config:o={},transformProps:a,customNativeProps:c=[]}=t;class d extends l.Component{constructor(e){if(super(e),v(this,"handlerTag",void 0),v(this,"config",void 0),v(this,"propsRef",void 0),v(this,"viewNode",void 0),v(this,"viewTag",void 0),v(this,"updateEnqueued",null),v(this,"onGestureHandlerEvent",e=>{var t,n,r,i;e.nativeEvent.handlerTag===this.handlerTag?null===(t=(n=this.props).onGestureEvent)||void 0===t||t.call(n,e):null===(r=(i=this.props).onGestureHandlerEvent)||void 0===r||r.call(i,e)}),v(this,"onGestureHandlerStateChange",e=>{if(e.nativeEvent.handlerTag===this.handlerTag){var t,n;null===(t=(n=this.props).onHandlerStateChange)||void 0===t||t.call(n,e);const r=e.nativeEvent.state,i=A[r],o=i&&this.props[i];o&&"function"===typeof o&&o(e)}else{var r,i;null===(r=(i=this.props).onGestureHandlerStateChange)||void 0===r||r.call(i,e)}}),v(this,"refHandler",e=>{this.viewNode=e;const t=l.Children.only(this.props.children),{ref:n}=t;null!==n&&("function"===typeof n?n(e):n.current=e)}),v(this,"createGestureHandler",e=>{this.config=e,m.a.createGestureHandler(n,this.handlerTag,e)}),v(this,"attachGestureHandler",e=>{this.viewTag=e,"web"===u.a.OS?m.a.attachGestureHandler(this.handlerTag,e,this.propsRef):m.a.attachGestureHandler(this.handlerTag,e)}),v(this,"updateGestureHandler",e=>{this.config=e,m.a.updateGestureHandler(this.handlerTag,e)}),this.handlerTag=O++,this.config={},this.propsRef=l.createRef(),e.id){if(void 0!==T[e.id])throw new Error('Handler with ID "'.concat(e.id,'" already registered'));T[e.id]=this.handlerTag}}componentDidMount(){(function(e){const t=e=>Array.isArray(e)?e.some(e=>e&&null===e.current):e&&null===e.current;return t(e.simultaneousHandlers)||t(e.waitFor)})(this.props)&&(this.updateEnqueued=e(()=>{this.updateEnqueued=null,this.update()})),this.createGestureHandler(C(a?a(this.props):this.props,[...i,...c],o)),this.attachGestureHandler(b(this.viewNode))}componentDidUpdate(){const e=b(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update()}componentWillUnmount(){m.a.dropGestureHandler(this.handlerTag),this.updateEnqueued&&r(this.updateEnqueued);const e=this.props.id;e&&delete T[e]}update(){const e=C(a?a(this.props):this.props,[...i,...c],o);h()(this.config,e)||this.updateGestureHandler(e)}setNativeProps(e){const t=Object(s.a)(Object(s.a)({},this.props),e),n=C(a?a(t):t,[...i,...c],o);this.updateGestureHandler(n)}render(){let e=this.onGestureHandlerEvent;const{onGestureEvent:t,onGestureHandlerEvent:n}=this.props;if(t&&"function"!==typeof t){if(n)throw new Error("Nesting touch handlers with native animated driver is not supported yet");e=t}else if(n&&"function"!==typeof n)throw new Error("Nesting touch handlers with native animated driver is not supported yet");let r=this.onGestureHandlerStateChange;const{onHandlerStateChange:i,onGestureHandlerStateChange:o}=this.props;if(i&&"function"!==typeof i){if(o)throw new Error("Nesting touch handlers with native animated driver is not supported yet");r=i}else if(o&&"function"!==typeof o)throw new Error("Nesting touch handlers with native animated driver is not supported yet");const a={onGestureHandlerEvent:e,onGestureHandlerStateChange:r};this.propsRef.current=a;const u=l.Children.only(this.props.children);let c=u.props.children;return f.a.TOUCH_TARGET_DEBUG&&u.type&&("RNGestureHandlerButton"===u.type||"View"===u.type.name||"View"===u.type.displayName)&&(c=l.Children.toArray(c),c.push(f.a.renderDebugView({color:"mediumspringgreen",hitSlop:u.props.hitSlop}))),l.cloneElement(u,Object(s.a)({ref:this.refHandler,collapsable:!1},a),c)}}return v(d,"displayName",n),d}}).call(this,n(647).setImmediate,n(647).clearImmediate)},function(e,t,n){"use strict";n.r(t);var r=n(42),i=n(59),o=n(121);function a(e){if(!e)return!0;const{descriptor:t}=e;return null!==t.options.header}const s=(e,t,n,r)=>({inputRange:[t,t+.001,n-.9,n-.2,n,r-.001,r],outputRange:[0,a(e[t])?0:1,a(e[t])?0:1,a(e[t])?.3:1,a(e[n])?1:0,a(e[r])?0:1,0]});const l=r.a.get("window").width/2-70-25;const u=r.a.get("window").width/2-70+25;const c=r.a.get("window").width;t.default={forLayout:function(e){const{layout:t,position:n,scene:s,scenes:l,mode:u}=e;if("float"!==u)return{};const c=function(e){return!e[e.length-1].isActive}(l),d=Object(o.a)(e);if(!d)return{};const{first:f,last:p}=d,h=s.index,m=t.initWidth||r.a.get("window").width;if(c&&!a(l[h])&&!a(l[p])||!c&&!a(l[f])&&!a(l[h]))return{transform:[{translateX:m}]};const g=i.a.isRTL?-1:1;return{transform:[{translateX:n.interpolate({inputRange:[f,h,p],outputRange:[g*(a(l[f])?0:m),g*(a(l[h])?0:c?m:-m),g*(a(l[p])?0:-m)]})}]}},forLeft:function(e){const{position:t,scene:n,scenes:r}=e,i=Object(o.a)(e);if(!i)return{opacity:0};const{first:a,last:l}=i,u=n.index;return{opacity:t.interpolate(s(r,a,u,l))}},forLeftButton:function(e){const{position:t,scene:n,scenes:r}=e,i=Object(o.a)(e);if(!i)return{opacity:0};const{first:s,last:l}=i,u=n.index,c=[s,s+.001,s+Math.abs(u-s)/2,u,l-Math.abs(l-u)/2,l-.001,l],d=[0,a(r[s])?0:1,a(r[s])?.1:1,a(r[u])?1:0,a(r[l])?.1:1,a(r[l])?0:1,0];return{opacity:t.interpolate({inputRange:c,outputRange:d})}},forLeftLabel:function(e){const{position:t,scene:n,scenes:r}=e,s=Object(o.a)(e);if(!s)return{opacity:0};const{first:u,last:c}=s,d=n.index,f=l;return{opacity:t.interpolate({inputRange:[u,u+.001,d-.35,d,d+.5,c-.001,c],outputRange:[0,a(r[u])?0:1,a(r[u])?0:1,a(r[d])?1:0,a(r[c])?.5:1,a(r[c])?0:1,0]}),transform:[{translateX:t.interpolate({inputRange:[u,u+.001,d,c-.001,c],outputRange:i.a.isRTL?[1.5*-f,a(r[u])?1.5*-f:0,0,a(r[c])?f:0,f]:[f,a(r[u])?f:0,0,a(r[c])?1.5*-f:0,1.5*-f]})}]}},forCenterFromLeft:function(e){const{position:t,scene:n,scenes:r}=e,s=Object(o.a)(e);if(!s)return{opacity:0};const{first:l,last:c}=s,d=n.index,f=u;return{opacity:t.interpolate({inputRange:[l,l+.001,d-.5,d,d+.7,c-.001,c],outputRange:[0,a(r[l])?0:1,a(r[l])?0:1,a(r[d])?1:0,a(r[c])?0:1,a(r[c])?0:1,0]}),transform:[{translateX:t.interpolate({inputRange:[l,l+.001,d,c-.001,c],outputRange:i.a.isRTL?[-f,a(r[l])?-f:0,0,a(r[c])?f:0,f]:[f,a(r[l])?f:0,0,a(r[c])?-f:0,-f]})}]}},forCenter:function(e){const{position:t,scene:n,scenes:r}=e,i=Object(o.a)(e);if(!i)return{opacity:0};const{first:a,last:l}=i,u=n.index;return{opacity:t.interpolate(s(r,a,u,l))}},forRight:function(e){const{position:t,scene:n,scenes:r}=e,i=Object(o.a)(e);if(!i)return{opacity:0};const{first:a,last:l}=i,u=n.index;return{opacity:t.interpolate(s(r,a,u,l))}},forBackground:function(){return null},forBackgroundWithTranslation:function(e){const{position:t,scene:n}=e,r=Object(o.a)(e);if(!r)return{opacity:0};const{first:a,last:s}=r,l=n.index,u=[c,0,-c];return{transform:[{translateX:t.interpolate({inputRange:[a,l,s],outputRange:i.a.isRTL?u.reverse():u})}]}}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},function(e,t,n){"use strict";var r=n(975);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s1?"after":c<-1?"before":"none",g=Math.max(0,f-.5*h),v=Math.max(0,p+.5*h);if(a(l-1).offset=e[u]&&(r[u]=a,o++,u===e.length-1))return i()(o===e.length,"bad offsets input, should be in increasing order: %s",JSON.stringify(e)),r;return r}([g,f,p,v],l,a),y=b[0],_=b[1],E=b[2],w=b[3];y=null==y?0:y,w=null==w?l-1:w;for(var S={first:_=null==_?Math.max(0,y):_,last:E=null==E?Math.min(w,_+n-1):E},O=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(o,S);!(_<=y&&E>=w);){var T=O>=n,x=_<=o.first||_>o.last,C=_>y&&(!T||!x),k=E>=o.last||E=_&&_>=0&&E=y&&E<=w&&_<=S.first&&E>=S.last))throw new Error("Bad window calculation "+JSON.stringify({first:_,last:E,itemCount:l,overscanFirst:y,overscanLast:w,visible:S}));return{first:_,last:E}}function a(e,t){return"object"===typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"===typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}},function(e,t,n){"use strict";var r=Function.prototype.toString;t.a=function(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){"use strict";var r=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!==typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var s,l,u,c=r(t),d=r(n);if(c&&d){if((l=t.length)!=n.length)return!1;for(s=l;0!==s--;)if(!e(t[s],n[s]))return!1;return!0}if(c!=d)return!1;var f=t instanceof Date,p=n instanceof Date;if(f!=p)return!1;if(f&&p)return t.getTime()==n.getTime();var h=t instanceof RegExp,m=n instanceof RegExp;if(h!=m)return!1;if(h&&m)return t.toString()==n.toString();var g=i(t);if((l=g.length)!==i(n).length)return!1;for(s=l;0!==s--;)if(!o.call(n,g[s]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(s=l;0!==s--;)if(("_owner"!==(u=g[s])||!t.$$typeof)&&!e(t[u],n[u]))return!1;return!0}return t!==t&&n!==n}(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(356);e.exports=function(e){return function(t){return e.test(r(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,n){var r=n(188),i=n(133),o=n(498),a=n(245),s=n(224),l=function(e,t,n){var u,c,d,f=e&l.F,p=e&l.G,h=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,b=p?i:i[t]||(i[t]={}),y=b.prototype,_=p?r:h?r[t]:(r[t]||{}).prototype;for(u in p&&(n=t),n)(c=!f&&_&&void 0!==_[u])&&s(b,u)||(d=c?_[u]:n[u],b[u]=p&&"function"!=typeof _[u]?n[u]:g&&c?o(d,r):v&&_[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[u]=d,e&l.R&&y&&!y[u]&&a(y,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r=n(246),i=n(656),o=n(499),a=Object.defineProperty;t.f=n(191)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}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(248)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(31),i=n.n(r),o=n(33),a=n.n(o),s=n(0),l=n(9),u=n(5),c=n(35),d=["style"],f=c.a&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",p=s.forwardRef((e,t)=>{var n=e.style,r=a()(e,d);return s.createElement(u.a,i()({},r,{ref:t,style:l.a.compose(h.root,n)}))});p.displayName="SafeAreaView";var h=l.a.create({root:{paddingTop:f+"(safe-area-inset-top)",paddingRight:f+"(safe-area-inset-right)",paddingBottom:f+"(safe-area-inset-bottom)",paddingLeft:f+"(safe-area-inset-left)"}});t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),i=n(30),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||("TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable)}(t)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:f,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(67);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(163),i={centroidDimension:function(e,t,n,r){var o=e.touchBank,a=0,s=0,l=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==l)l.touchActive&&l.currentTimeStamp>t&&(a+=r&&n?l.currentPageX:r&&!n?l.currentPageY:!r&&n?l.previousPageX:l.previousPageY,s=1);else for(var u=0;u=t){a+=r&&n?c.currentPageX:r&&!n?c.currentPageY:!r&&n?c.previousPageX:c.previousPageY,s++}}return s>0?a/s:i.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return i.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return i.centroidDimension(e,0,!1,!0)},noCentroid:-1},o=i,a=o.currentCentroidXOfTouchesChangedAfter,s=o.currentCentroidYOfTouchesChangedAfter,l=o.previousCentroidXOfTouchesChangedAfter,u=o.previousCentroidYOfTouchesChangedAfter,c=o.currentCentroidX,d=o.currentCentroidY,f={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=a(t,e._accountsForMovesUpTo),e.moveY=s(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=l(t,n),i=a(t,n),o=u(t,n),c=s(t,n),d=e.dx+(i-r),f=e.dy+(c-o),p=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(d-e.dx)/p,e.vy=(f-e.dy)/p,e.dx=d,e.dy=f,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&f._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(f._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:i=>(t.handle||(t.handle=r.a.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=c(i.touchHistory),n.y0=d(i.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(i,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(i,n)),onResponderReject(r){p(t,e.onPanResponderReject,r,n)},onResponderRelease(r){p(t,e.onPanResponderRelease,r,n),h(t),f._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(f._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,p(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){p(t,e.onPanResponderTerminate,r,n),h(t),f._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function p(e,t,n,i){e.handle&&(r.a.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,i)}function h(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}var m=f;t.a=m},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),i=n.n(r),o=n(63),a=n(389),s=n(324),l=n(0),u=!1,c={};function d(e){var t=e.pointerEvents,n=e.style,r=Object(l.useRef)(null),d=Object(l.useRef)(null);return d.current={pointerEvents:t,style:n},Object(s.a)(()=>e=>{null!=e&&(e.measure=t=>o.a.measure(e,t),e.measureLayout=(t,n,r)=>o.a.measureLayout(e,t,r,n),e.measureInWindow=t=>o.a.measureInWindow(e,t),e.setNativeProps=t=>{var n=d.current||c,s=n.style,l=n.pointerEvents;!function(e,t,n,r,s){if(u||(console.warn("setNativeProps is deprecated. Please update props using React state instead."),u=!0),null!=e&&t){var l=Object(a.a)(null,i()(i()({pointerEvents:n},t),{},{style:[r,t.style]})),c=l.style;if(null!=s.current)for(var d in null==l.style&&(l.style={}),s.current)null==l.style[d]&&(l.style[d]="");s.current=c,o.a.updateView(e,l)}}(e,t,l,s,r)})})}},function(e,t,n){"use strict";var r=n(755),i=Object(r.a)();t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";t.a=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var i=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),d=new r(512);function f(e){return u.get(e)||u.set(e,p(e).map((function(e){return e.replace(l,"$2")})))}function p(e){return e.match(i)||[""]}function h(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function m(e){return!h(e)&&(function(e){return e.match(a)&&!e.match(o)}(e)||function(e){return s.test(e)}(e))}e.exports={Cache:r,split:p,normalizePath:f,setter:function(e){var t=f(e);return c.get(e)||c.set(e,(function(e,n){for(var r=0,i=t.length,o=e;rt.slice(1).reduce((e,t,r)=>{const i=n[r];if(!i||i.asterisk)return e;const o=i.name;let a;try{a=decodeURIComponent(t)}catch(s){}return e[o]=a||t,e},Object(r.a)({},e)),d=(e,t)=>e[t.findIndex(e=>e.asterisk)+1],f=(e,t)=>{const n=e.match(/^(.*)\?(.*)$/),r=n?u.parse(n[2]):{},i=n?n[1]:e,o=t||"://";let a=i.split(o)[1];return void 0===a&&(a=i),"/"===a&&(a=""),"/"===a[a.length-1]&&(a=a.slice(0,-1)),{path:a,params:r}},p=(e,t,n)=>{let{paths:s={},disableRouteNamePaths:u}=n;const f={};let p=[];Object.keys(e).forEach(e=>{let n;n=void 0!==s[e]?s[e]:t[e].path,void 0===n&&(n=u?null:e),l()(null===n||"string"===typeof n,"Route path for ".concat(e," must be specified as a string, or null."));const r=null!==n,a=[],c=r?o()(n,a):null,d=[],p=""===n||!r,h=o()(p?"*":"".concat(n,"/*"),d);f[e]={exactRe:c,exactReKeys:a,extendedPathRe:h,extendedPathReKeys:d,isWildcard:p,toPath:null===n?()=>"":Object(i.compile)(n)}}),p=Object.entries(f);return{getActionForPathAndParams:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const[r,i]of p){const{exactRe:o,exactReKeys:s,extendedPathRe:l,extendedPathReKeys:u}=i,f=e[r],p=o&&o.exec(t);if(p&&p.length){const e=l&&l.exec(t);let i=null;if(e&&f){const t=d(e,u);i=f.getActionForPathAndParams(t,n)}return a.default.navigate({routeName:r,params:c(n,p,s),action:i})}}for(const[r,i]of p){const{extendedPathRe:o,extendedPathReKeys:s}=i,l=e[r],u=o&&o.exec(t);if(u&&u.length){const e=d(u,s);let t=null;if(l&&(t=l.getActionForPathAndParams(e,n)),!t)continue;return a.default.navigate({routeName:r,params:c(n,u,s),action:t})}}return null},getPathAndParamsForRoute:t=>{const{routeName:n,params:i}=t,o=e[n],{toPath:a,exactReKeys:s}=f[n],l=a(i),u={};if(i&&Object.keys(i).filter(e=>!s.find(t=>t.name===e)).forEach(e=>{u[e]=i[e]}),o){const e=o.getPathAndParamsForState(t);return{path:l?"".concat(l,"/").concat(e.path):e.path,params:e.params?Object(r.a)(Object(r.a)({},u),e.params):u}}return{path:l,params:u}}}};t.default={getParamsFromPath:c,createPathParser:p}},function(e,t,n){"use strict";var r=function(){this.__data__=[],this.size=0},i=n(155);var o=function(e,t){for(var n=e.length;n--;)if(Object(i.a)(e[n][0],t))return n;return-1},a=Array.prototype.splice;var s=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};var l=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]};var u=function(e){return o(this.__data__,e)>-1};var c=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t"RESPONDER_ACTIVE_PRESS_START"===e||"RESPONDER_ACTIVE_LONG_PRESS_START"===e,a=e=>"button"===e.getAttribute("role"),s=e=>"RESPONDER_INACTIVE_PRESS_START"===e||"RESPONDER_ACTIVE_PRESS_START"===e||"RESPONDER_ACTIVE_LONG_PRESS_START"===e,l=e=>{var t=e.key,n=e.target.getAttribute("role");return"Enter"===t||(" "===t||"Spacebar"===t)&&"button"===n};class u{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState="NOT_RESPONDER",this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState="NOT_RESPONDER",this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=c(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal("DELAY",e)},n):this._receiveSignal("DELAY",e);var r=c(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},r+n)},t=e=>{this._receiveSignal("RESPONDER_RELEASE",e)},n=e=>{var r=this._config.onPress,i=e.target;if("NOT_RESPONDER"!==this._touchState&&l(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),a=i.tagName.toLowerCase();null==r||("link"===o||"a"===a||"button"===a||"input"===a||"select"===a||"textarea"===a)||r(e)}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&a(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&l(t)){"NOT_RESPONDER"===this._touchState&&(e(t,!1),document.addEventListener("keyup",n));var a=o.getAttribute("role");(" "===i||"Spacebar"===i)&&("button"===a||"menuitem"===a)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=d(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal("RESPONDER_TERMINATED",e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?a(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?a(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,o=null;null!=i[n]&&(o=i[n][e]),"NOT_RESPONDER"===this._touchState&&"RESPONDER_RELEASE"===e||(null==o||o===r?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==o&&(this._performTransitionSideEffects(n,o,e,t),this._touchState=o))}_performTransitionSideEffects(e,t,n,r){if((e=>"RESPONDER_TERMINATED"===e||"RESPONDER_RELEASE"===e)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),s(e)&&"LONG_PRESS_DETECTED"===n){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=o(e),l=o(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),s(e)&&"RESPONDER_RELEASE"===n){var u=this._config,c=u.onLongPress;if(null!=u.onPress)null!=c&&"RESPONDER_ACTIVE_LONG_PRESS_START"===e||l||a||(this._activate(r),this._deactivate(r))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=d(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=c(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){"RESPONDER_ACTIVE_PRESS_START"!==this._touchState&&"RESPONDER_ACTIVE_LONG_PRESS_START"!==this._touchState||this._receiveSignal("LONG_PRESS_DETECTED",e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function c(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!==e&&void 0!==e?e:n)}function d(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var f=n(0);function p(e,t){var n=Object(f.useRef)(null);null==n.current&&(n.current=new u(t));var r=n.current;return Object(f.useEffect)(()=>{r.configure(t)},[t,r]),Object(f.useEffect)(()=>()=>{r.reset()},[r]),Object(f.useDebugValue)(t),r.getEventHandlers()}n.d(t,"a",(function(){return p}))},function(e,t,n){var r=n(814);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],b=n[5],y=n[6],_=n[7];l&&(r.push(l),l="");var E=null!=m&&null!=h&&h!==m,w="+"===y||"*"===y,S="?"===y||"*"===y,O=m||u,T=v||b,x=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:O,optional:S,repeat:w,partial:E,asterisk:!!_,pattern:T?c(T):_?".*":a(O,x)})}}return s-1?"[^"+u(e)+"]+?":u(t)+"|(?:(?!"+u(t)+")[^"+u(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;ie.routes.find(e=>e.key===t)||null,indexOf:(e,t)=>e.routes.findIndex(e=>e.key===t),has:(e,t)=>!!e.routes.some(e=>e.key===t),push(e,t){o()(-1===a.indexOf(e,t.key),"should not push route with duplicated key %s",t.key);const n=e.routes.slice();return n.push(t),Object(r.a)(Object(r.a)({},e),{},{index:n.length-1,routes:n})},pop(e){if(e.index<=0)return e;const t=e.routes.slice(0,-1);return Object(r.a)(Object(r.a)({},e),{},{index:t.length-1,routes:t})},jumpToIndex:(e,t)=>t===e.index?e:(o()(!!e.routes[t],"invalid index %s to jump to",t),Object(r.a)(Object(r.a)({},e),{},{index:t})),jumpTo(e,t){const n=a.indexOf(e,t);return a.jumpToIndex(e,n)},back(e){const t=e.index-1;return e.routes[t]?a.jumpToIndex(e,t):e},forward(e){const t=e.index+1;return e.routes[t]?a.jumpToIndex(e,t):e},replaceAndPrune(e,t,n){const i=a.indexOf(e,t),o=a.replaceAtIndex(e,i,n);return Object(r.a)(Object(r.a)({},o),{},{routes:o.routes.slice(0,i+1)})},replaceAt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=a.indexOf(e,t),o=r?e.index:i;let s=a.replaceAtIndex(e,i,n);return s.index=o,s},replaceAtIndex(e,t,n){if(o()(!!e.routes[t],"invalid index %s for replacing route %s",t,n.key),e.routes[t]===n&&t===e.index)return e;const i=e.routes.slice();return i[t]=n,Object(r.a)(Object(r.a)({},e),{},{index:t,routes:i})},reset(e,t,n){o()(t.length&&Array.isArray(t),"invalid routes to replace");const i=void 0===n?t.length-1:n;if(e.routes.length===t.length&&e.index===i){const n=(e,n)=>t[n]===e;if(e.routes.every(n))return e}return o()(!!t[i],"invalid index %s to reset",i),Object(r.a)(Object(r.a)({},e),{},{index:i,routes:t})}};t.default=a},function(e,t,n){"use strict";var r=n(432).a;t.a=new r},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t-1}var T=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){"compute"===e&&(e=this.compute()),m&&this.manager.element.style&&g[e]&&(this.manager.element.style[h]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return w(this.manager.recognizers,(function(t){S(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(O(e,"none"))return"none";var t=O(e,"pan-x"),n=O(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":O(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=O(r,"none")&&!g.none,o=O(r,"pan-y")&&!g["pan-y"],a=O(r,"pan-x")&&!g["pan-x"];if(i){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function x(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function C(e){var t=e.length;if(1===t)return{x:c(e[0].clientX),y:c(e[0].clientY)};for(var n=0,r=0,i=0;i=d(t)?e<0?2:4:t<0?8:16}function N(e,t,n){return{x:t/e||0,y:n/e||0}}function P(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=k(t)),i>1&&!n.firstMultiple?n.firstMultiple=k(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=C(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=R(s,l),t.distance=A(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=I(t.deltaX,t.deltaY);var u,c,p=N(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=d(p.x)>d(p.y)?p.x:p.y,t.scale=a?(u=a.pointers,A((c=r)[0],c[1],E)/A(u[0],u[1],E)):1,t.rotation=a?function(e,t){return R(t[1],t[0],E)+R(e[1],e[0],E)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!==t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,c=N(s,l,u);r=c.x,i=c.y,n=d(c.x)>d(c.y)?c.x:c.y,o=I(l,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var h,m=e.element,g=t.srcEvent;x(h=g.composedPath?g.composedPath()[0]:g.path?g.path[0]:g.target,m)&&(m=h),t.target=m}function D(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i===0,a=12&t&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,P(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function L(e){return e.trim().split(/\s+/g)}function M(e,t,n){w(L(t),(function(t){e.addEventListener(t,n,!1)}))}function j(e,t,n){w(L(t),(function(t){e.removeEventListener(t,n,!1)}))}function F(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var B=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){S(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(F(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&j(this.element,this.evEl,this.domHandler),this.evTarget&&j(this.target,this.evTarget,this.domHandler),this.evWin&&j(F(this.element),this.evWin,this.domHandler)},e}();function U(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}var $={touchstart:1,touchmove:2,touchend:4,touchcancel:8},K=function(e){function t(){var n;return t.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=e.apply(this,arguments)||this).targetIds={},n}return i(t,e),t.prototype.handler=function(e){var t=$[e.type],n=X.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})},t}(B);function X(e,t){var n,r,i=q(e.touches),o=this.targetIds;if(3&t&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=q(e.changedTouches),s=[],l=this.target;if(r=i.filter((function(e){return x(e.target,l)})),1===t)for(n=0;n-1&&r.splice(e,1)}),2500)}}function ee(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,J.call(this,t)):12&e&&J.call(this,t)}function te(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ae(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ae(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=32},t.canEmit=function(){for(var e=0;et.threshold&&i&t.direction},n.attrTest=function(e){return ue.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=ce(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}(ue),fe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,r({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},t))||this}i(t,e);var n=t.prototype;return n.getTouchAction=function(){return de.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n,r=this.options.direction;return 30&r?n=t.overallVelocity:6&r?n=t.overallVelocityX:24&r&&(n=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&d(n)>this.options.velocity&&4&t.eventType},n.emit=function(e){var t=ce(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(ue),pe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,r({event:"pinch",threshold:0,pointers:2},t))||this}i(t,e);var n=t.prototype;return n.getTouchAction=function(){return["none"]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},n.emit=function(t){if(1!==t.scale){var n=t.scale<1?"in":"out";t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}(ue),he=function(e){function t(t){return void 0===t&&(t={}),e.call(this,r({event:"rotate",threshold:0,pointers:2},t))||this}i(t,e);var n=t.prototype;return n.getTouchAction=function(){return["none"]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},t}(ue),me=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,r({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,n._input=null,n}i(t,e);var n=t.prototype;return n.getTouchAction=function(){return["auto"]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distancen.time;if(this._input=e,!i||!r||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.time);else if(4&e.eventType)return 8;return 32},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))},t}(se),ge={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ve=[[he,{enable:!1}],[pe,{enable:!1},["rotate"]],[fe,{direction:6}],[de,{direction:6},["swipe"]],[le],[le,{event:"doubletap",taps:2},["tap"]],[me]];function be(e,t){var n,r=e.element;r.style&&(w(e.options.cssProps,(function(i,o){n=p(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var ye=function(){function e(e,t){var n=this;this.options=s({},ge,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(b?G:y?K:v?ne:Q))(e,D)}(this),this.touchAction=new T(this,this.options.touchAction),be(this,!0),w(this.options.recognizers,(function(e){var t=n.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}var t=e.prototype;return t.set=function(e){return s(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(t.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),e.apply(this,arguments)}}var Oe=Se((function(e,t,n){for(var r=Object.keys(t),i=0;i{if(Array.isArray(this.config.waitFor))for(const e of this.config.waitFor)e.removePendingGesture(this.id)}),He(this,"destroy",()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null}),He(this,"isPointInView",e=>{let{x:t,y:n}=e;const r=this.view.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}),He(this,"sendEvent",e=>{const{onGestureHandlerEvent:t,onGestureHandlerStateChange:n}=this.propsRef.current,r=this.transformEventData(e);Ve(t,r),this.lastSentState!==r.nativeEvent.state&&(this.lastSentState=r.nativeEvent.state,Ve(n,r))}),He(this,"sync",()=>{const e=this.hammer.get(this.name);if(!e)return;const t=this.getHammerConfig();e.set(Object(Le.a)(Object(Le.a)({},t),{},{enable:(e,t)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!t||!e.options||"undefined"===typeof t.maxPointers)return this.shouldEnableGestureOnSetup;if(this.hasGestureFailed)return!1;if(!this.isDiscrete){if(this.isGestureRunning)return!0;if(this._stillWaiting=this._getPendingGestures(),this._stillWaiting.length){for(const e of this._stillWaiting)if(!e.isDiscrete&&e.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const n=null==this.initialRotation?0:t.rotation-this.initialRotation,{success:r,failed:i}=this.isGestureEnabledForEvent(this.getConfig(),e,Object(Le.a)(Object(Le.a)({},t),{},{deltaRotation:n}));return i&&(this.simulateCancelEvent(t),this.hasGestureFailed=!0),r}}))}),this.gestureInstance=ze++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(e){}removePendingGesture(e){delete this.pendingGestures[e]}addPendingGesture(e){this.pendingGestures[e.id]=e}isGestureEnabledForEvent(e,t,n){return{success:!0}}get NativeGestureClass(){throw new Error("Must override GestureHandler.NativeGestureClass")}updateHasCustomActivationCriteria(e){return!0}updateGestureConfig(e){let{enabled:t=!0}=e,n=Object(De.a)(e,Ue);if(this.clearSelfAsPending(),this.config=function(e){const t=Object(Le.a)({},e);"minDist"in e&&(t.minDist=e.minDist,t.minDistSq=t.minDist*t.minDist);"minVelocity"in e&&(t.minVelocity=e.minVelocity,t.minVelocitySq=t.minVelocity*t.minVelocity);"maxDist"in e&&(t.maxDist=e.maxDist,t.maxDistSq=e.maxDist*e.maxDist);t.waitFor="waitFor"in e?(n=e.waitFor,null==n?[]:Array.isArray(n)?n:[n]).map(e=>{let{handlerTag:t}=e;return Be(t)}).filter(e=>e):null;var n;return["minPointers","maxPointers","minDist","maxDist","maxDistSq","minVelocitySq","minDistSq","minVelocity","failOffsetXStart","failOffsetYStart","failOffsetXEnd","failOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","activeOffsetYStart","activeOffsetYEnd"].forEach(e=>{"undefined"===typeof t[e]&&(t[e]=Number.NaN)}),t}(Object(Le.a)({enabled:t},n)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const r of this.config.waitFor)r.addPendingGesture(this);return this.hammer&&this.sync(),this.config}getState(e){return 0==e?0:Ne[e]}transformEventData(e){const{eventType:t,maxPointers:n}=e,r=e.changedPointers[0],i=this.isPointInView({x:r.clientX,y:r.clientY}),o=this.getState(t);return o!==this.previousState&&(this.oldState=this.previousState,this.previousState=o),{nativeEvent:Object(Le.a)(Object(Le.a)({numberOfPointers:n,state:o,pointerInside:i},this.transformNativeEvent(e)),{},{handlerTag:this.handlerTag,target:this.ref,oldState:this.oldState}),timeStamp:Date.now()}}transformNativeEvent(e){return{}}cancelPendingGestures(e){for(const t of Object.values(this.pendingGestures))t&&t.isGestureRunning&&(t.hasGestureFailed=!0,t.cancelEvent(e))}notifyPendingGestures(){for(const e of Object.values(this.pendingGestures))e&&e.onWaitingEnded(this)}onGestureEnded(e){this.isGestureRunning=!1,this.cancelPendingGestures(e)}forceInvalidate(e){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(e))}cancelEvent(e){this.notifyPendingGestures(),this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(e)}onRawEvent(e){let{isFirst:t}=e;t&&(this.hasGestureFailed=!1)}setView(e,t){if(null==e)return this.destroy(),void(this.view=null);this.propsRef=t,this.ref=e,this.view=Object(je.a)(e),this.hammer=new Ae.Manager(this.view),this.oldState=Re.a.UNDETERMINED,this.previousState=Re.a.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:n}=this,r=new n(this.getHammerConfig());this.hammer.add(r),this.hammer.on("hammer.input",e=>{if(!this.config.enabled)return this.hasGestureFailed=!1,void(this.isGestureRunning=!1);this.onRawEvent(e),null===this.initialRotation&&0!==e.rotation&&(this.initialRotation=e.rotation),e.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on("".concat(this.name,"start"),e=>this.onStart(e)),this.hammer.on("".concat(this.name,"end ").concat(this.name,"cancel"),e=>{this.onGestureEnded(e)})),this.hammer.on(this.name,e=>this.onGestureActivated(e))}onStart(e){let{deltaX:t,deltaY:n,rotation:r}=e;this.oldState=Re.a.UNDETERMINED,this.previousState=Re.a.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=t,this.__initialY=n,this.initialRotation=r}onGestureActivated(e){this.sendEvent(e)}onSuccess(){}_getPendingGestures(){if(Array.isArray(this.config.waitFor)&&this.config.waitFor.length){return this.config.waitFor.filter(e=>{let{hasGestureFailed:t}=e;return!1===t})}return[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}simulateCancelEvent(e){}},Ge=n(378);var qe=class extends We{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent(e){let{deltaX:t,deltaY:n,velocityX:r,velocityY:i,center:{x:o,y:a}}=e;const s=this.view.getBoundingClientRect(),l=Ge.a.get();return{translationX:t-(this.__initialX||0),translationY:n-(this.__initialY||0),absoluteX:o,absoluteY:a,velocityX:r*l,velocityY:i*l,x:o-s.left,y:a-s.top}}};const Ye=e=>Number.isNaN(e),$e=e=>"number"===typeof e&&!Number.isNaN(e),Ke=(e,t)=>!Ye(t)&&(t<0&&e<=t||t>=0&&e>=t),Xe=function(){let{x:e=0,y:t=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e*e+t*t},Ze=(e,t)=>!Ye(t)&&(t<0&&e=0&&e>t);function Qe(e,t){return t?setTimeout(()=>e(),t):(e(),null)}const Je=["numberOfPointers","direction"];var et=class extends qe{get name(){return"swipe"}get NativeGestureClass(){return Ae.Swipe}onGestureActivated(e){this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_END,isFinal:!0}))}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed)if(e.isFinal)setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)});else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const t=[];return e&Pe.RIGHT&&t.push(Ae.DIRECTION_RIGHT),e&Pe.LEFT&&t.push(Ae.DIRECTION_LEFT),e&Pe.UP&&t.push(Ae.DIRECTION_UP),e&Pe.DOWN&&t.push(Ae.DIRECTION_DOWN),t}getDirection(){const{direction:e}=this.getConfig();let t=[];return e&Pe.RIGHT&&t.push(Ae.DIRECTION_HORIZONTAL),e&Pe.LEFT&&t.push(Ae.DIRECTION_HORIZONTAL),e&Pe.UP&&t.push(Ae.DIRECTION_VERTICAL),e&Pe.DOWN&&t.push(Ae.DIRECTION_VERTICAL),t=[...new Set(t)],0===t.length?Ae.DIRECTION_NONE:1===t.length?t[0]:Ae.DIRECTION_ALL}isGestureEnabledForEvent(e,t,n){let{numberOfPointers:r}=e,{maxPointers:i}=n;const o=i===r;return!o&&this.isGestureRunning?{failed:!0}:{success:o}}updateGestureConfig(e){let{numberOfPointers:t=1,direction:n}=e,r=Object(De.a)(e,Je);if(Ye(n)||"number"!==typeof n)throw new Me("direction",n,"number");return super.updateGestureConfig(Object(Le.a)({numberOfPointers:t,direction:n},r))}};var tt=class extends We{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria(e,t){let{x:n,y:r,deltaX:i,deltaY:o}=e,{maxDeltaX:a,maxDeltaY:s,maxDistSq:l,shouldCancelWhenOutside:u}=t;return!(!u||this.isPointInView({x:n,y:r}))||(Ze(Math.abs(i),a)||Ze(Math.abs(o),s)||Ze(Math.abs(o*o+i*i),l))}transformNativeEvent(e){let{center:{x:t,y:n}}=e;const r=this.view.getBoundingClientRect();return{absoluteX:t,absoluteY:n,x:t-r.left,y:n-r.top}}isGestureEnabledForEvent(e,t,n){let{minPointers:r,maxPointers:i,maxDeltaX:o,maxDeltaY:a,maxDistSq:s,shouldCancelWhenOutside:l}=e,{maxPointers:u,center:c,deltaX:d,deltaY:f}=n;const p=u>=r&&u<=i;return this.shouldFailUnderCustomCriteria(Object(Le.a)(Object(Le.a)({},c),{},{deltaX:d,deltaY:f}),{maxDeltaX:o,maxDeltaY:a,maxDistSq:s,shouldCancelWhenOutside:l})||!p&&this.isGestureRunning?{failed:!0}:{success:p}}};const nt=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=class extends tt{constructor(){super(...arguments),rt(this,"visualFeedbackTimer",void 0),rt(this,"initialEvent",null),rt(this,"shouldDelayTouches",!0)}get name(){return"press"}get minDurationMs(){return Ye(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return Ye(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return Ae.Press}simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria(e){let{shouldCancelWhenOutside:t,maxDistSq:n}=e;return t||!$e(n)}getState(e){return{[Ae.INPUT_START]:Re.a.BEGAN,[Ae.INPUT_MOVE]:Re.a.ACTIVE,[Ae.INPUT_END]:Re.a.END,[Ae.INPUT_CANCEL]:Re.a.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object(Le.a)(Object(Le.a)({},super.getHammerConfig()),{},{time:this.minDurationMs})}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent(e){let{pointerType:t}=e;return this.shouldDelayTouches&&"touch"===t}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=Qe(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&240)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_MOVE,isFirst:!0}))}forceInvalidate(e){super.forceInvalidate(e),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}onRawEvent(e){if(super.onRawEvent(e),this.isGestureRunning)if(e.isFinal){let t;this.visualFeedbackTimer&&(t=50,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),Qe(()=>{this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_END,isFinal:!0})),this.onGestureEnded()},t)}else this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_MOVE,isFinal:!1}))}updateGestureConfig(e){let{shouldActivateOnStart:t=!1,disallowInterruption:n=!1,shouldCancelWhenOutside:r=!0,minDurationMs:i=Number.NaN,maxDist:o=Number.NaN,minPointers:a=1,maxPointers:s=1}=e,l=Object(De.a)(e,nt);return super.updateGestureConfig(Object(Le.a)({shouldActivateOnStart:t,disallowInterruption:n,shouldCancelWhenOutside:r,minDurationMs:i,maxDist:o,minPointers:a,maxPointers:s},l))}};var ot=class extends it{get minDurationMs(){return Ye(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return Ye(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria(e){let{maxDistSq:t}=e;return!$e(t)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object(Le.a)(Object(Le.a)({},super.getHammerConfig()),{},{time:this.minDurationMs})}getState(e){return{[Ae.INPUT_START]:Re.a.ACTIVE,[Ae.INPUT_MOVE]:Re.a.ACTIVE,[Ae.INPUT_END]:Re.a.END,[Ae.INPUT_CANCEL]:Re.a.FAILED}[e]}};var at=class extends it{onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&Ke(Xe({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const t=Object.values(Object(Le.a)({},Fe)).filter(e=>{const{handlerTag:t,view:n,isGestureRunning:r}=e;return t!==this.handlerTag&&r&&e instanceof tt&&n&&this.view.contains(n)});for(const n of t)n.forceInvalidate(e)}}};var st=class extends qe{get name(){return"pan"}get NativeGestureClass(){return Ae.Pan}getHammerConfig(){return Object(Le.a)(Object(Le.a)({},super.getHammerConfig()),{},{direction:this.getDirection()})}getState(e){const t=super.getState(e);return this.previousState===Re.a.UNDETERMINED&&t===Re.a.ACTIVE?Re.a.BEGAN:t}getDirection(){const e=this.getConfig(),{activeOffsetXStart:t,activeOffsetXEnd:n,activeOffsetYStart:r,activeOffsetYEnd:i,minDist:o}=e;let a=[],s=[];if(!Ye(o))return Ae.DIRECTION_ALL;Ye(t)||s.push(Ae.DIRECTION_LEFT),Ye(n)||s.push(Ae.DIRECTION_RIGHT),2===s.length&&(s=[Ae.DIRECTION_HORIZONTAL]),a=a.concat(s);let l=[];return Ye(r)||l.push(Ae.DIRECTION_UP),Ye(i)||l.push(Ae.DIRECTION_DOWN),2===l.length&&(l=[Ae.DIRECTION_VERTICAL]),a=a.concat(l),a.length?a[0]===Ae.DIRECTION_HORIZONTAL&&a[1]===Ae.DIRECTION_VERTICAL||s.length&&l.length?Ae.DIRECTION_ALL:a[0]:Ae.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria(e,t){let{deltaX:n,deltaY:r}=e;return!Ye(t.failOffsetXStart)&&nt.failOffsetXEnd||!Ye(t.failOffsetYStart)&&rt.failOffsetYEnd}shouldActivateUnderCustomCriteria(e,t){let{deltaX:n,deltaY:r,velocity:i}=e;return!Ye(t.activeOffsetXStart)&&nt.activeOffsetXEnd||!Ye(t.activeOffsetYStart)&&rt.activeOffsetYEnd||Ke(Xe({x:n,y:r}),t.minDistSq)||Ke(i.x,t.minVelocityX)||Ke(i.y,t.minVelocityY)||Ke(Xe(i),t.minVelocitySq)}shouldMultiFingerPanFail(e){let{pointerLength:t,scale:n,deltaRotation:r}=e;if(t<=1)return!1;const i=Math.abs(n-1),o=Math.abs(r);return i>.1||o>7}updateHasCustomActivationCriteria(e){return $e(e.minDistSq)||$e(e.minVelocityX)||$e(e.minVelocityY)||$e(e.minVelocitySq)||$e(e.activeOffsetXStart)||$e(e.activeOffsetXEnd)||$e(e.activeOffsetYStart)||$e(e.activeOffsetYEnd)}isGestureEnabledForEvent(e,t,n){if(this.shouldFailUnderCustomCriteria(n,e))return{failed:!0};const r={x:n.velocityX,y:n.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:n.deltaX,deltaY:n.deltaY,velocity:r},e)?this.shouldMultiFingerPanFail({pointerLength:n.maxPointers,scale:n.scale,deltaRotation:n.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}};const lt=["minPointers","maxPointers"];var ut=class extends We{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig(e){let{minPointers:t=2,maxPointers:n=2}=e,r=Object(De.a)(e,lt);return super.updateGestureConfig(Object(Le.a)({minPointers:t,maxPointers:n},r))}isGestureEnabledForEvent(e,t,n){let{minPointers:r,maxPointers:i}=e,{maxPointers:o}=n;if(o>i)return{failed:!0};return{success:o>=r}}};var ct=class extends ut{get name(){return"pinch"}get NativeGestureClass(){return Ae.Pinch}transformNativeEvent(e){let{scale:t,velocity:n,center:r}=e;return{focalX:r.x,focalY:r.y,velocity:n,scale:t}}};var dt=class extends ut{get name(){return"rotate"}get NativeGestureClass(){return Ae.Rotate}transformNativeEvent(e){let{rotation:t,velocity:n,center:r}=e;var i;return{rotation:(t-(null!==(i=this.initialRotation)&&void 0!==i?i:0))*Ie,anchorX:r.x,anchorY:r.y,velocity:n}}};const ft=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ht={PanGestureHandler:st,RotationGestureHandler:dt,PinchGestureHandler:ct,TapGestureHandler:class extends tt{constructor(){super(...arguments),pt(this,"_shouldFireEndEvent",null),pt(this,"_timer",void 0),pt(this,"_multiTapTimer",void 0),pt(this,"onSuccessfulTap",e=>{this._getPendingGestures().length?this._shouldFireEndEvent=e:(e.eventType===Ae.INPUT_END&&this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{eventType:Ae.INPUT_MOVE})),this.sendEvent(Object(Le.a)(Object(Le.a)({},e),{},{isFinal:!0})),this.onGestureEnded(e))})}get name(){return"tap"}get NativeGestureClass(){return Ae.Tap}get maxDelayMs(){return Ye(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}if(e.isFinal&&e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),!this.hasGestureFailed)if(e.isFinal)e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),clearTimeout(this._timer),this._timer=setTimeout(()=>{this.hasGestureFailed=!0,this.cancelEvent(e)},this.maxDelayMs);else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return Object(Le.a)(Object(Le.a)({},super.getHammerConfig()),{},{event:this.name,taps:Ye(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:Ye(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}updateGestureConfig(e){let{shouldCancelWhenOutside:t=!0,maxDeltaX:n=Number.NaN,maxDeltaY:r=Number.NaN,numberOfTaps:i=1,minDurationMs:o=525,maxDelayMs:a=Number.NaN,maxDurationMs:s=Number.NaN,maxDist:l=2,minPointers:u=1,maxPointers:c=1}=e,d=Object(De.a)(e,ft);return super.updateGestureConfig(Object(Le.a)({shouldCancelWhenOutside:t,numberOfTaps:i,maxDeltaX:n,maxDeltaY:r,minDurationMs:o,maxDelayMs:a,maxDist:l,minPointers:u,maxPointers:c},d))}onGestureEnded(){clearTimeout(this._timer),super.onGestureEnded(...arguments)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}},NativeViewGestureHandler:at,LongPressGestureHandler:ot,FlingGestureHandler:et};t.a={Direction:Pe,handleSetJSResponder(e,t){console.warn("handleSetJSResponder: ",e,t)},handleClearJSResponder(){console.warn("handleClearJSResponder: ")},createGestureHandler(e,t,n){if(!(e in ht))throw new Error("react-native-gesture-handler: ".concat(e," is not supported on web."));!function(e,t){if(e in Fe)throw new Error("Handler with tag ".concat(e," already exists"));Fe[e]=t,Fe[e].handlerTag=e}(t,new(0,ht[e])),this.updateGestureHandler(t,n)},attachGestureHandler(e,t,n){Be(e).setView(t,n)},updateGestureHandler(e,t){Be(e).updateGestureConfig(t)},getGestureHandlerNode:e=>Be(e),dropGestureHandler(e){!function(e){Be(e).destroy(),delete Fe[e]}(e)}}},,,function(e,t,n){var r=n(294),i=n(848),o=n(849),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(872),i=n(875);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(298);e.exports=function(e){return r({},e)}},function(e,t,n){"use strict";function r(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=r,r.displayName="c",r.aliases=[]},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports={get createDrawerNavigator(){return n(1634).default},get DrawerRouter(){return n(529).default},get DrawerActions(){return n(127).default},get DrawerNavigatorItems(){return n(537).default},get DrawerSidebar(){return n(536).default},get DrawerView(){return n(530).default}}},function(e,t,n){"use strict";function r(){for(var e=0,t=0,n=arguments.length;t=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:o[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=a;r({remove:()=>{}}),dismiss(){Object(r.a)()},removeAllListeners(){},removeListener(){}};t.a=i},function(e,t,n){"use strict";var r=n(52),i=n(72),o=n(14),a=n.n(o),s=1;class l extends i.a{constructor(e){super();var t=e||{x:0,y:0};"number"===typeof t.x&&"number"===typeof t.y?(this.x=new r.a(t.x),this.y=new r.a(t.y)):(a()(t.x instanceof r.a&&t.y instanceof r.a,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(s++),n=t=>{t.value;e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}}t.a=l},function(e,t,n){"use strict";var r=n(0),i=Object(r.createContext)(!1);t.a=i},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){if(void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,()=>u[c++]))).name="Invariant Violation"}throw l.framesToPop=1,l}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(118),i=Object(r.a)(Object,"create");var o=function(){this.__data__=i?i(null):{},this.size=0};var a=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},s=Object.prototype.hasOwnProperty;var l=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0},u=Object.prototype.hasOwnProperty;var c=function(e){var t=this.__data__;return i?void 0!==t[e]:u.call(t,e)};var d=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=0||(i[n]=e[n]);return i}function s(e){var t=Object(r.useRef)(e),n=Object(r.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e0:e.buttons>0)&&p.current?h(d(p.current,e,g.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=v.current,i=c(p.current),o=n?i.addEventListener:i.removeEventListener;o(r?"touchmove":"mousemove",e),o(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=p.current;if(r&&(f(t),!function(e,t){return t&&!u(e)}(t,v.current)&&r)){if(u(t)){v.current=!0;var i=t.changedTouches||[];i.length&&(g.current=i[0].identifier)}r.focus(),h(d(r,t,g.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),m({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[m,h]),y=b[0],_=b[1],E=b[2];return Object(r.useEffect)((function(){return E}),[E]),i.a.createElement("div",o({},l,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:p,onKeyDown:_,tabIndex:0,role:"slider"}))})),h=function(e){return e.filter(Boolean).join(" ")},m=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,a=h(["react-colorful__pointer",e.className]);return i.a.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},i.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},g=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},v=(Math.PI,function(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}}),b=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:g(e.h),s:g(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:g(i/2),a:g(r,2)}},y=function(e){var t=b(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},_=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),u=o%6;return{r:g(255*[r,s,a,a,l,r][u]),g:g(255*[l,r,r,s,a,a][u]),b:g(255*[a,a,l,r,r,s][u]),a:g(i,2)}},E=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},w=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:g(60*(s<0?s+6:s)),s:g(o?a/o*100:0),v:g(o/255*100),a:i}},S=i.a.memo((function(e){var t=e.hue,n=e.onChange,r=h(["react-colorful__hue",e.className]);return i.a.createElement("div",{className:r},i.a.createElement(p,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:l(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":g(t)},i.a.createElement(m,{className:"react-colorful__hue-pointer",left:t/360,color:y({h:t,s:100,v:100,a:1})})))})),O=i.a.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:y({h:t.h,s:100,v:100,a:1})};return i.a.createElement("div",{className:"react-colorful__saturation",style:r},i.a.createElement(p,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:l(t.s+100*e.left,0,100),v:l(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+g(t.s)+"%, Brightness "+g(t.v)+"%"},i.a.createElement(m,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:y(t)})))})),T=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function x(e,t,n){var i=s(n),o=Object(r.useState)((function(){return e.toHsva(t)})),a=o[0],l=o[1],u=Object(r.useRef)({color:t,hsva:a});Object(r.useEffect)((function(){if(!e.equal(t,u.current.color)){var n=e.toHsva(t);u.current={hsva:n,color:t},l(n)}}),[t,e]),Object(r.useEffect)((function(){var t;T(a,u.current.hsva)||e.equal(t=e.fromHsva(a),u.current.color)||(u.current={hsva:a,color:t},i(t))}),[a,e,i]);var c=Object(r.useCallback)((function(e){l((function(t){return Object.assign({},t,e)}))}),[]);return[a,c]}var C,k="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,A=new Map,R=function(e){k((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!A.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',A.set(t,r);var i=C||n.nc;i&&r.setAttribute("nonce",i),t.head.appendChild(r)}}),[])},I=function(e){var t=e.className,n=e.colorModel,s=e.color,l=void 0===s?n.defaultColor:s,u=e.onChange,c=a(e,["className","colorModel","color","onChange"]),d=Object(r.useRef)(null);R(d);var f=x(n,l,u),p=f[0],m=f[1],g=h(["react-colorful",t]);return i.a.createElement("div",o({},c,{ref:d,className:g}),i.a.createElement(O,{hsva:p,onChange:m}),i.a.createElement(S,{hue:p.h,onChange:m,className:"react-colorful__last-control"}))},N={defaultColor:"000",toHsva:function(e){return w(v(e))},fromHsva:function(e){return n=(t=_(e)).g,r=t.b,"#"+E(t.r)+E(n)+E(r);var t,n,r},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||T(v(e),v(t))}},P=function(e){return i.a.createElement(I,o({},e,{colorModel:N}))},D=/^#?([0-9A-F]{3,8})$/i,L=function(e){var t=e.color,n=void 0===t?"":t,l=e.onChange,u=e.onBlur,c=e.escape,d=e.validate,f=e.format,p=e.process,h=a(e,["color","onChange","onBlur","escape","validate","format","process"]),m=Object(r.useState)((function(){return c(n)})),g=m[0],v=m[1],b=s(l),y=s(u),_=Object(r.useCallback)((function(e){var t=c(e.target.value);v(t),d(t)&&b(p?p(t):t)}),[c,p,d,b]),E=Object(r.useCallback)((function(e){d(e.target.value)||v(c(n)),y(e)}),[n,c,d,y]);return Object(r.useEffect)((function(){v(c(n))}),[n,c]),i.a.createElement("input",o({},h,{value:f?f(g):g,spellCheck:"false",onChange:_,onBlur:E}))},M=function(e){return"#"+e},j=function(e){var t=e.prefixed,n=e.alpha,s=a(e,["prefixed","alpha"]),l=Object(r.useCallback)((function(e){return e.replace(/([^0-9A-F]+)/gi,"").substr(0,n?8:6)}),[n]),u=Object(r.useCallback)((function(e){return function(e,t){var n=D.exec(e),r=n?n[1].length:0;return 3===r||6===r||!!t&&4===r||!!t&&8===r}(e,n)}),[n]);return i.a.createElement(L,o({},s,{escape:l,format:t?M:void 0,process:M,validate:u}))}},function(e,t,n){"use strict";var r=n(740);const i=n.n(r).a.bind({concatArrays:!0,ignoreUndefined:!0});function o(e,t){return new Promise((n,r)=>{try{const r=e();null===t||void 0===t||t(null,r),n(r)}catch(i){null===t||void 0===t||t(i),r(i)}})}function a(e,t,n){return Promise.all(e).then(e=>{var r;const i=null!==(r=null===n||void 0===n?void 0:n(e))&&void 0!==r?r:null;return null===t||void 0===t||t(null,i),Promise.resolve(i)},e=>(null===t||void 0===t||t(e),Promise.reject(e)))}const s={getItem:(e,t)=>o(()=>window.localStorage.getItem(e),t),setItem:(e,t,n)=>o(()=>window.localStorage.setItem(e,t),n),removeItem:(e,t)=>o(()=>window.localStorage.removeItem(e),t),mergeItem:(e,t,n)=>o(()=>function(e,t){const n=window.localStorage.getItem(e);if(n){const r=JSON.parse(n),o=JSON.parse(t),a=JSON.stringify(i(r,o));window.localStorage.setItem(e,a)}else window.localStorage.setItem(e,t)}(e,t),n),clear:e=>o(()=>window.localStorage.clear(),e),getAllKeys:e=>o(()=>{const e=window.localStorage.length,t=[];for(let n=0;n{},multiGet:(e,t)=>a(e.map(e=>s.getItem(e)),t,t=>t.map((t,n)=>[e[n],t])),multiSet:(e,t)=>a(e.map(e=>s.setItem(e[0],e[1])),t),multiRemove:(e,t)=>a(e.map(e=>s.removeItem(e)),t),multiMerge:(e,t)=>a(e.map(e=>s.mergeItem(e[0],e[1])),t)};var l=s;t.a=l},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"Attributor",(function(){return R})),n.d(r,"AttributorStore",(function(){return F})),n.d(r,"BlockBlot",(function(){return X})),n.d(r,"ClassAttributor",(function(){return L})),n.d(r,"ContainerBlot",(function(){return Q})),n.d(r,"EmbedBlot",(function(){return J})),n.d(r,"InlineBlot",(function(){return $})),n.d(r,"LeafBlot",(function(){return z})),n.d(r,"ParentBlot",(function(){return q})),n.d(r,"Registry",(function(){return P})),n.d(r,"Scope",(function(){return A})),n.d(r,"ScrollBlot",(function(){return ne})),n.d(r,"StyleAttributor",(function(){return j})),n.d(r,"TextBlot",(function(){return ie}));var i=n(0),o=n.n(i),a=n(278);var s=function(e,t){return Object(a.a)(e,t)},l=n(57);function u(e,t,n,r){var i=c(S(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(null,arguments)}function d(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:{};T(this,e),this.attrName=t,this.keyName=n;var i=A.TYPE&A.ATTRIBUTE;this.scope=null!=r.scope?r.scope&A.LEVEL|i:A.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}),[{key:"add",value:function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}},{key:"canAdd",value:function(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}},{key:"remove",value:function(e){e.removeAttribute(this.keyName)}},{key:"value",value:function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}],[{key:"keys",value:function(e){return Array.from(e.attributes).map((function(e){return e.name}))}}])}(),I=function(e){function t(e){var n;return T(this,t),(n=g(this,t,[e="[Parchment] "+e])).message=e,n.name=n.constructor.name,n}return b(t,e),C(t)}(y(Error)),N=function(){function e(){T(this,e),this.attributes={},this.classes={},this.tags={},this.types={}}return C(e,[{key:"create",value:function(t,n,r){var i=this.query(n);if(null==i)throw new I("Unable to create ".concat(n," blot"));var o=i,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),s=new o(t,a,r);return e.blots.set(s.domNode,s),s}},{key:"find",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.find(t,n)}},{key:"query",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.ANY;return"string"==typeof e?t=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?t=this.types.text:"number"==typeof e?e&A.LEVEL&A.BLOCK?t=this.types.block:e&A.LEVEL&A.INLINE&&(t=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some((function(e){return!!(t=n.classes[e])})),t=t||this.tags[e.tagName]),null==t?null:"scope"in t&&r&A.LEVEL&t.scope&&r&A.TYPE&t.scope?t:null}},{key:"register",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]&&arguments[1];if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){var n=null;try{n=e.parentNode}catch(r){return null}return this.find(n,t)}return null}}])}();N.blots=new WeakMap;var P=N;function D(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf("".concat(t,"-"))}))}var L=function(e){function t(){return T(this,t),g(this,t,arguments)}return b(t,e),C(t,[{key:"add",value:function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add("".concat(this.keyName,"-").concat(t)),!0)}},{key:"remove",value:function(e){D(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")}},{key:"value",value:function(e){var t=(D(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}],[{key:"keys",value:function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))}}])}(R);function M(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var j=function(e){function t(){return T(this,t),g(this,t,arguments)}return b(t,e),C(t,[{key:"add",value:function(e,t){return!!this.canAdd(e,t)&&(e.style[M(this.keyName)]=t,!0)}},{key:"remove",value:function(e){e.style[M(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}},{key:"value",value:function(e){var t=e.style[M(this.keyName)];return this.canAdd(e,t)?t:""}}],[{key:"keys",value:function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))}}])}(R),F=function(){return C((function e(t){T(this,e),this.attributes={},this.domNode=t,this.build()}),[{key:"attribute",value:function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}},{key:"build",value:function(){var e=this;this.attributes={};var t=P.find(this.domNode);if(null!=t){var n=R.keys(this.domNode),r=L.keys(this.domNode),i=j.keys(this.domNode);n.concat(r).concat(i).forEach((function(n){var r=t.scroll.query(n,A.ATTRIBUTE);r instanceof R&&(e.attributes[r.attrName]=r)}))}}},{key:"copy",value:function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))}},{key:"move",value:function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}}},{key:"values",value:function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})}}])}(),B=function(){return C((function e(t,n){T(this,e),this.scroll=t,this.domNode=n,P.blots.set(n,this),this.prev=null,this.next=null}),[{key:"statics",get:function(){return this.constructor}},{key:"attach",value:function(){}},{key:"clone",value:function(){var e=this.domNode.cloneNode(!1);return this.scroll.create(e)}},{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this),P.blots.delete(this.domNode)}},{key:"deleteAt",value:function(e,t){this.isolate(e,t).remove()}},{key:"formatAt",value:function(e,t,n,r){var i=this.isolate(e,t);if(null!=this.scroll.query(n,A.BLOT)&&r)i.wrap(n,r);else if(null!=this.scroll.query(n,A.ATTRIBUTE)){var o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,r)}}},{key:"insertAt",value:function(e,t,n){var r=null==n?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(r,i||void 0)}},{key:"isolate",value:function(e,t){var n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}},{key:"length",value:function(){return 1}},{key:"offset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}},{key:"optimize",value:function(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}},{key:"remove",value:function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}},{key:"replaceWith",value:function(e,t){var n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}},{key:"split",value:function(e,t){return 0===e?this:this.next}},{key:"update",value:function(e,t){}},{key:"wrap",value:function(e,t){var n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new I("Cannot wrap ".concat(e));return n.appendChild(this),n}}],[{key:"create",value:function(e){if(null==this.tagName)throw new I("Blot definition missing tagName");var t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}}])}();B.blotName="abstract";var U=B,H=function(e){function t(){return T(this,t),g(this,t,arguments)}return b(t,e),C(t,[{key:"index",value:function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}},{key:"position",value:function(e,t){var n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}},{key:"value",value:function(){return e={},t=this.statics.blotName,n=this.statics.value(this.domNode)||!0,(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}],[{key:"value",value:function(e){return!0}}])}(U);H.scope=A.INLINE_BLOT;var z=H,V=function(){return C((function e(){T(this,e),this.head=null,this.tail=null,this.length=0}),[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1){var r=t.slice(1);this.append.apply(this,p(r))}}},{key:"at",value:function(e){for(var t=this.iterator(),n=t();n&&e>0;)e-=1,n=t();return n}},{key:"contains",value:function(e){for(var t=this.iterator(),n=t();n;){if(n===e)return!0;n=t()}return!1}},{key:"indexOf",value:function(e){for(var t=this.iterator(),n=t(),r=0;n;){if(n===e)return r;r+=1,n=t()}return-1}},{key:"insertBefore",value:function(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}},{key:"offset",value:function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}},{key:"remove",value:function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}},{key:"iterator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.head;return function(){var t=e;return null!=e&&(e=e.next),t}}},{key:"find",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.iterator(),r=n();r;){var i=r.length();if(eo?n(s,e-o,Math.min(t,o+l-e)):n(s,0,Math.min(l,e+t-o)),o+=l,s=a()}}},{key:"map",value:function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])}},{key:"reduce",value:function(e,t){for(var n=this.iterator(),r=n();r;)t=e(t,r),r=n();return t}}])}();function W(e,t){var n=t.find(e);if(n)return n;try{return t.create(e)}catch(i){var r=t.create(A.INLINE);return Array.from(e.childNodes).forEach((function(e){r.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}var G=function(e){function t(e,n){var r;return T(this,t),(r=g(this,t,[e,n])).uiNode=null,r.build(),r}return b(t,e),C(t,[{key:"appendChild",value:function(e){this.insertBefore(e)}},{key:"attach",value:function(){u(t,"attach",this,3)([]),this.children.forEach((function(e){e.attach()}))}},{key:"attachUI",value:function(e){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=e,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}},{key:"build",value:function(){var e=this;this.children=new V,Array.from(this.domNode.childNodes).filter((function(t){return t!==e.uiNode})).reverse().forEach((function(t){try{var n=W(t,e.scroll);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof I)return;throw r}}))}},{key:"deleteAt",value:function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))}},{key:"descendant",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.children.find(n),i=f(r,2),o=i[0],a=i[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,a]:o instanceof t?o.descendant(e,a):[null,-1]}},{key:"descendants",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_VALUE,i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i}},{key:"detach",value:function(){this.children.forEach((function(e){e.detach()})),u(t,"detach",this,3)([])}},{key:"enforceAllowedChildren",value:function(){var e=this,n=!1;this.children.forEach((function(r){n||e.statics.allowedChildren.some((function(e){return r instanceof e}))||(r.statics.scope===A.BLOCK_BLOT?(null!=r.next&&e.splitAfter(r),null!=r.prev&&e.splitAfter(r.prev),r.parent.unwrap(),n=!0):r instanceof t?r.unwrap():r.remove())}))}},{key:"formatAt",value:function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))}},{key:"insertAt",value:function(e,t,n){var r=f(this.children.find(e),2),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var a=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(a)}}},{key:"insertBefore",value:function(e,t){null!=e.parent&&e.parent.children.remove(e);var n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}},{key:"length",value:function(){return this.children.reduce((function(e,t){return e+t.length()}),0)}},{key:"moveChildren",value:function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))}},{key:"optimize",value:function(e){if(u(t,"optimize",this,3)([e]),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){var n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}},{key:"path",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.children.find(e,n),i=f(r,2),o=i[0],a=i[1],s=[[this,e]];return o instanceof t?s.concat(o.path(a,n)):(null!=o&&s.push([o,a]),s)}},{key:"removeChild",value:function(e){this.children.remove(e)}},{key:"replaceWith",value:function(e,n){var r="string"==typeof e?this.scroll.create(e,n):e;return r instanceof t&&this.moveChildren(r),u(t,"replaceWith",this,3)([r])}},{key:"split",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(function(e,r,i){var o=e.split(r,t);null!=o&&n.appendChild(o)})),n}},{key:"splitAfter",value:function(e){for(var t=this.clone();null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}},{key:"unwrap",value:function(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}},{key:"update",value:function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,p(e.addedNodes)),i.push.apply(i,p(e.removedNodes)))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=n.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),r.filter((function(e){return e.parentNode===n.domNode&&e!==n.uiNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=n.scroll.find(e.nextSibling));var r=W(e,n.scroll);(r.next!==t||null==r.next)&&(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))})),this.enforceAllowedChildren()}}])}(U);G.uiClass="";var q=G;var Y=function(e){function t(e,n){var r;return T(this,t),(r=g(this,t,[e,n])).attributes=new F(r.domNode),r}return b(t,e),C(t,[{key:"format",value:function(e,n){var r=this;if(e!==this.statics.blotName||n){var i=this.scroll.query(e,A.INLINE);if(null==i)return;i instanceof R?this.attributes.attribute(i,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}else this.children.forEach((function(e){e instanceof t||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap()}},{key:"formats",value:function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}},{key:"formatAt",value:function(e,n,r,i){null!=this.formats()[r]||this.scroll.query(r,A.ATTRIBUTE)?this.isolate(e,n).format(r,i):u(t,"formatAt",this,3)([e,n,r,i])}},{key:"optimize",value:function(e){u(t,"optimize",this,3)([e]);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())}},{key:"replaceWith",value:function(e,n){var r=u(t,"replaceWith",this,3)([e,n]);return this.attributes.copy(r),r}},{key:"update",value:function(e,n){var r=this;u(t,"update",this,3)([e,n]),e.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()}},{key:"wrap",value:function(e,n){var r=u(t,"wrap",this,3)([e,n]);return r instanceof t&&this.attributes.move(r),r}}],[{key:"create",value:function(e){return u(t,"create",this,2)([e])}},{key:"formats",value:function(e,n){var r=n.query(t.blotName);if(null==r||e.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}}])}(q);Y.allowedChildren=[Y,z],Y.blotName="inline",Y.scope=A.INLINE_BLOT,Y.tagName="SPAN";var $=Y,K=function(e){function t(e,n){var r;return T(this,t),(r=g(this,t,[e,n])).attributes=new F(r.domNode),r}return b(t,e),C(t,[{key:"format",value:function(e,n){var r=this.scroll.query(e,A.BLOCK);null!=r&&(r instanceof R?this.attributes.attribute(r,n):e!==this.statics.blotName||n?n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n):this.replaceWith(t.blotName))}},{key:"formats",value:function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}},{key:"formatAt",value:function(e,n,r,i){null!=this.scroll.query(r,A.BLOCK)?this.format(r,i):u(t,"formatAt",this,3)([e,n,r,i])}},{key:"insertAt",value:function(e,n,r){if(null==r||null!=this.scroll.query(n,A.INLINE))u(t,"insertAt",this,3)([e,n,r]);else{var i=this.split(e);if(null==i)throw new Error("Attempt to insertAt after block boundaries");var o=this.scroll.create(n,r);i.parent.insertBefore(o,i)}}},{key:"replaceWith",value:function(e,n){var r=u(t,"replaceWith",this,3)([e,n]);return this.attributes.copy(r),r}},{key:"update",value:function(e,n){var r=this;u(t,"update",this,3)([e,n]),e.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()}}],[{key:"create",value:function(e){return u(t,"create",this,2)([e])}},{key:"formats",value:function(e,n){var r=n.query(t.blotName);if(null==r||e.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}}])}(q);K.blotName="block",K.scope=A.BLOCK_BLOT,K.tagName="P",K.allowedChildren=[$,K,z];var X=K,Z=function(e){function t(){return T(this,t),g(this,t,arguments)}return b(t,e),C(t,[{key:"checkMerge",value:function(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}},{key:"deleteAt",value:function(e,n){u(t,"deleteAt",this,3)([e,n]),this.enforceAllowedChildren()}},{key:"formatAt",value:function(e,n,r,i){u(t,"formatAt",this,3)([e,n,r,i]),this.enforceAllowedChildren()}},{key:"insertAt",value:function(e,n,r){u(t,"insertAt",this,3)([e,n,r]),this.enforceAllowedChildren()}},{key:"optimize",value:function(e){u(t,"optimize",this,3)([e]),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}}])}(q);Z.blotName="container",Z.scope=A.BLOCK_BLOT;var Q=Z,J=function(e){function t(){return T(this,t),g(this,t,arguments)}return b(t,e),C(t,[{key:"format",value:function(e,n){u(t,"formatAt",this,3)([0,this.length(),e,n])}},{key:"formatAt",value:function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):u(t,"formatAt",this,3)([e,n,r,i])}},{key:"formats",value:function(){return this.statics.formats(this.domNode,this.scroll)}}],[{key:"formats",value:function(e,t){}}])}(z),ee={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},te=function(e){function t(e,n){var r;return T(this,t),(r=g(this,t,[null,n])).registry=e,r.scroll=v(r),r.build(),r.observer=new MutationObserver((function(e){r.update(e)})),r.observer.observe(r.domNode,ee),r.attach(),r}return b(t,e),C(t,[{key:"create",value:function(e,t){return this.registry.create(this,e,t)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}},{key:"query",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.ANY;return this.registry.query(e,t)}},{key:"register",value:function(){var e;return(e=this.registry).register.apply(e,arguments)}},{key:"build",value:function(){null!=this.scroll&&u(t,"build",this,3)([])}},{key:"detach",value:function(){u(t,"detach",this,3)([]),this.observer.disconnect()}},{key:"deleteAt",value:function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(e){e.remove()})):u(t,"deleteAt",this,3)([e,n])}},{key:"formatAt",value:function(e,n,r,i){this.update(),u(t,"formatAt",this,3)([e,n,r,i])}},{key:"insertAt",value:function(e,n,r){this.update(),u(t,"insertAt",this,3)([e,n,r])}},{key:"optimize",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(t,"optimize",this,3)([r]);for(var i=r.mutationsMap||new WeakMap,o=Array.from(this.observer.takeRecords());o.length>0;)n.push(o.pop());for(var a=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null==t||t===e||null!=t.domNode.parentNode&&(i.has(t.domNode)||i.set(t.domNode,[]),n&&a(t.parent))},s=function(e){i.has(e.domNode)&&(e instanceof q&&e.children.forEach(s),i.delete(e.domNode),e.optimize(r))},l=n,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(t){var n=e.find(t.target,!0);null!=n&&(n.domNode===t.target&&("childList"===t.type?(a(e.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach((function(t){var n=e.find(t,!1);a(n,!1),n instanceof q&&n.children.forEach((function(e){a(e,!1)}))}))):"attributes"===t.type&&a(n.prev)),a(n))})),this.children.forEach(s),o=(l=Array.from(this.observer.takeRecords())).slice();o.length>0;)n.push(o.pop())}}},{key:"update",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e||this.observer.takeRecords();var i=new WeakMap;e.map((function(e){var t=n.find(e.target,!0);return null==t?null:i.has(t.domNode)?(i.get(t.domNode).push(e),null):(i.set(t.domNode,[e]),t)})).forEach((function(e){null!=e&&e!==n&&i.has(e.domNode)&&e.update(i.get(e.domNode)||[],r)})),r.mutationsMap=i,i.has(this.domNode)&&u(t,"update",this,3)([i.get(this.domNode),r]),this.optimize(e,r)}}])}(q);te.blotName="scroll",te.defaultChild=X,te.allowedChildren=[X,Q],te.scope=A.BLOCK_BLOT,te.tagName="DIV";var ne=te,re=function(e){function t(e,n){var r;return T(this,t),(r=g(this,t,[e,n])).text=r.statics.value(r.domNode),r}return b(t,e),C(t,[{key:"deleteAt",value:function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}},{key:"index",value:function(e,t){return this.domNode===e?t:-1}},{key:"insertAt",value:function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):u(t,"insertAt",this,3)([e,n,r])}},{key:"length",value:function(){return this.text.length}},{key:"optimize",value:function(e){u(t,"optimize",this,3)([e]),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}},{key:"position",value:function(e){return[this.domNode,e]}},{key:"split",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}},{key:"update",value:function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))}},{key:"value",value:function(){return this.text}}],[{key:"create",value:function(e){return document.createTextNode(e)}},{key:"value",value:function(e){return e.data}}])}(z);re.blotName="text",re.scope=A.INLINE_BLOT;var ie=re,oe=n(24),ae=n.n(oe),se=n(729);function le(e){return(le="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 ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){for(var n=0;n":">",'"':""","'":"'"};function Ce(e){return e.replace(/[&<>"']/g,(function(e){return xe[e]}))}function ke(e){return(ke="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 Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n=0||i>=0?r-i:e===n?0:e0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}])&&Re(n.prototype,r),i&&Re(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}($);Oe=Fe,Fe.allowedChildren=[Oe,ge,J,Te],Fe.order=["cursor","inline","link","underline","strike","italic","bold","script","code"];var Be=Fe;function Ue(e){return(Ue="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 He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=Ke(t,"split",this,3)([e,n]);return this.cache={},i}}])}(X);tt.blotName="block",tt.tagName="P",tt.defaultChild=ge,tt.allowedChildren=[ge,Be,J,Te];var nt=function(e){function t(){return We(this,t),$e(this,t,arguments)}return Je(t,e),qe(t,[{key:"attach",value:function(){Ke(t,"attach",this,3)([]),this.attributes=new F(this.domNode)}},{key:"delta",value:function(){return(new ae.a).insert(this.value(),ze(ze({},this.formats()),this.attributes.values()))}},{key:"format",value:function(e,t){var n=this.scroll.query(e,A.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){var i=this;if(null==r){var o=n.split("\n"),a=o.pop(),s=o.map((function(e){var t=i.scroll.create(tt.blotName);return t.insertAt(0,e),t})),l=this.split(e);s.forEach((function(e){i.parent.insertBefore(e,l)})),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}else Ke(t,"insertAt",this,3)([e,n,r])}}])}(J);function rt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.descendants(z).reduce((function(e,n){return 0===n.length()?e:e.insert(n.value(),it(n,{},t))}),new ae.a).insert("\n",it(e))}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==e?t:("formats"in e&&"function"===typeof e.formats&&(t=ze(ze({},t),e.formats()),n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope?t:it(e.parent,t,n))}function ot(e){return(ot="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 at(e,t){for(var n=0;n1?n-1:0),i=1;i1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=n}));function qt(e,t){try{t.parentNode}catch(n){return!1}return e.contains(t)}var Yt=function(){return Ht((function e(t,n){var r=this;Vt(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Gt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||r.composing||setTimeout(r.update.bind(r,Dt.sources.USER),1)})),this.emitter.on(Dt.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(Dt.events.SCROLL_UPDATE,(function(t,n){try{r.root.contains(e.start.node)&&r.root.contains(e.end.node)&&r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);var i=n.some((function(e){return"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===r.root}));r.update(i?Dt.sources.SILENT:t)}catch(o){}}))}})),this.emitter.on(Dt.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s),r.update(Dt.sources.SILENT)}})),this.update(Dt.sources.SILENT)}),[{key:"handleComposition",value:function(){var e=this;this.emitter.on(Dt.events.COMPOSITION_BEFORE_START,(function(){e.composing=!0})),this.emitter.on(Dt.events.COMPOSITION_END,(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(Dt.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,A.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=this.scroll.find(n.start.node,!1);if(null==r)return;if(r instanceof z){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();e=Math.min(e,r-1),n=Math.min(e+n,r-1)-e;var i=this.scroll.leaf(e),o=jt(i,2),a=o[0],s=o[1];if(null==a)return null;if(n>0&&s===a.length()){var l=this.scroll.leaf(e+1),u=jt(l,1),c=u[0];if(c){var d=this.scroll.line(e),f=jt(d,1),p=f[0],h=this.scroll.line(e+1),m=jt(h,1),g=m[0];p===g&&(a=c,s=0)}}var v=a.position(s,!0),b=jt(v,2);t=b[0],s=b[1];var y=document.createRange();if(n>0){y.setStart(t,s);var _=this.scroll.leaf(e+n),E=jt(_,2);if(a=E[0],s=E[1],null==a)return null;var w=a.position(s,!0),S=jt(w,2);return t=S[0],s=S[1],y.setEnd(t,s),y.getBoundingClientRect()}var O,T="left";if(t instanceof Text){if(!t.data.length)return null;s0&&(T="right")}return{bottom:O.top+O.height,height:O.height,left:O[T],right:O[T],top:O.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return Wt.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root||null!=document.activeElement&&qt(this.root,document.activeElement)}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=jt(e,2),r=n[0],i=n[1],o=t.scroll.find(r,!0),a=o.offset(t.scroll);return 0===i?a:o instanceof z?a+o.index(r,i):a+o.length()})),i=Math.min(Math.max.apply(Math,Mt(r)),this.scroll.length()-1),o=Math.min.apply(Math,[i].concat(Mt(r)));return new Gt(o,i-o)}},{key:"normalizeNative",value:function(e){if(!qt(this.root,e.startContainer)||!e.collapsed&&!qt(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=this.scroll.length(),r=function(e,r){e=Math.min(n-1,e);var i=jt(t.scroll.leaf(e),2),o=i[0],a=i[1];return o?o.position(a,r):[null,-1]};return[].concat(Mt(r(e.index,!1)),Mt(r(e.index+e.length,!0)))}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Wt.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});var a=this.getNativeRange()||{},s=a.native;if(null==s||i||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||r!==s.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),o.removeAllRanges(),o.addRange(l)}}else o.removeAllRanges(),this.root.blur()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dt.sources.API;if("string"===typeof t&&(n=t,t=!1),Wt.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,Mt(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dt.sources.USER,t=this.lastRange,n=this.getRange(),r=jt(n,2),i=r[0],o=r[1];if(this.lastRange=i,this.lastNative=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!s(t,this.lastRange)){var a;if(!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode){var l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}var u,c=[Dt.events.SELECTION_CHANGE,Object(se.a)(this.lastRange),Object(se.a)(t),e];if((a=this.emitter).emit.apply(a,[Dt.events.EDITOR_CHANGE].concat(c)),e!==Dt.sources.SILENT)(u=this.emitter).emit.apply(u,c)}}}])}();function $t(e){return rn(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tn(e)||en()}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n"):"").concat(ln([],t-1,n))}var i=$t(e),o=i[0],a=o.child,s=o.offset,l=o.length,u=o.indent,c=o.type,d=i.slice(1),f=Jt(dn(c),2),p=f[0],h=f[1];if(u>t)return n.push(c),u===t+1?"<".concat(p,">").concat(un(a,s,l)).concat(ln(d,u,n)):"<".concat(p,">
  • ").concat(ln(e,t+1,n));var m=n[n.length-1];if(u===t&&c===m)return"
  • ").concat(un(a,s,l)).concat(ln(d,u,n));var g=Jt(dn(n.pop()),1)[0];return"").concat(ln(e,t-1,n))}function un(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"===typeof e.html)return e.html(t,n);if(e instanceof Te){var i=Ce(e.value().slice(t,t+n));return i.replaceAll(" "," ")}if(e instanceof q){if("list-container"===e.statics.blotName){var o=[];return e.children.forEachAt(t,n,(function(e,t,n){var r="formats"in e&&"function"===typeof e.formats?e.formats():{};o.push({child:e,offset:t,length:n,indent:r.indent||0,type:r.list})})),ln(o,-1,[])}var a=[];if(e.children.forEachAt(t,n,(function(e,t,n){a.push(un(e,t,n))})),r||"list"===e.statics.blotName)return a.join("");var s=e.domNode,l=s.outerHTML,u=s.innerHTML,c=l.split(">".concat(u,"<")),d=Jt(c,2),f=d[0],p=d[1];return"'.concat(a.join(""),"<").concat(p):"".concat(f,">").concat(a.join(""),"<").concat(p)}return e.domNode instanceof Element?e.domNode.outerHTML:""}function cn(e,t){return Object.keys(t).reduce((function(n,r){if(null==e[r])return n;var i=t[r];return i===e[r]?n[r]=i:Array.isArray(i)?i.indexOf(e[r])<0?n[r]=i.concat([e[r]]):n[r]=i:n[r]=[i,e[r]],n}),{})}function dn(e){var t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function fn(e){return e.reduce((function(e,t){if("string"===typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new ae.a)}function pn(e,t){var n=e.index,r=e.length;return new Gt(n+t,r)}var hn=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()},(t=[{key:"applyDelta",value:function(e){var t=this;this.scroll.update();var n=this.scroll.length();this.scroll.batchStart();var r=fn(e),i=new ae.a;return function(e){var t=[];return e.forEach((function(e){"string"===typeof e.insert?e.insert.split("\n").forEach((function(n,r){r&&t.push({insert:"\n",attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})})):t.push(e)})),t}(r.ops.slice()).reduce((function(e,r){var o=oe.Op.length(r),a=r.attributes||{},s=!1,u=!1;if(null!=r.insert){if(i.retain(o),"string"===typeof r.insert){var c=r.insert;u=!c.endsWith("\n")&&(n<=e||!!t.scroll.descendant(nt,e)[0]),t.scroll.insertAt(e,c);var d=Jt(t.scroll.line(e),2),f=d[0],p=d[1],h=Object(l.a)({},it(f));if(f instanceof tt){var m=Jt(f.descendant(z,p),1)[0];m&&(h=Object(l.a)(h,it(m)))}a=oe.AttributeMap.diff(h,a)||{}}else if("object"===Qt(r.insert)){var g=Object.keys(r.insert)[0];if(null==g)return e;var v=null!=t.scroll.query(g,A.INLINE);if(v)(n<=e||t.scroll.descendant(nt,e)[0])&&(u=!0);else if(e>0){var b=Jt(t.scroll.descendant(z,e-1),2),y=b[0],_=b[1];y instanceof Te?"\n"!==y.value()[_]&&(s=!0):y instanceof J&&y.statics.scope===A.INLINE_BLOT&&(s=!0)}if(t.scroll.insertAt(e,g,r.insert[g]),v){var E=Jt(t.scroll.descendant(z,e),1)[0];if(E){var w=Object(l.a)({},it(E));a=oe.AttributeMap.diff(w,a)||{}}}}n+=o}else if(i.push(r),null!==r.retain&&"object"===Qt(r.retain)){var S=Object.keys(r.retain)[0];if(null==S)return e;t.scroll.updateEmbedAt(e,S,r.retain[S])}Object.keys(a).forEach((function(n){t.scroll.formatAt(e,o,n,a[n])}));var O=s?1:0,T=u?1:0;return n+=O+T,i.retain(O),i.delete(T),e+o+O+T}),0),i.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+oe.Op.length(n)}),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new ae.a).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach((function(i){n.scroll.lines(e,Math.max(t,1)).forEach((function(e){e.format(i,r[i])}))})),this.scroll.optimize();var i=(new ae.a).retain(e).retain(t,Object(se.a)(r));return this.update(i)}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])}));var i=(new ae.a).retain(e).retain(t,Object(se.a)(r));return this.update(i)}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new ae.a)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=Jt(e,1)[0];t instanceof tt?n.push(t):t instanceof z&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(z,e,t));var i=[n,r].map((function(e){var t=e.shift();if(null==t)return{};for(var n=it(t);Object.keys(n).length>0;){var r=e.shift();if(null==r)return n;n=cn(it(r),n)}return n})),o=Jt(i,2),a=o[0],s=o[1];return Xt(Xt({},a),s)}},{key:"getHTML",value:function(e,t){var n=Jt(this.scroll.line(e),2),r=n[0],i=n[1];if(r){var o=r.length();return r.length()>=i+t&&(0!==i||t!==o)?un(r,i,t,!0):un(this.scroll,e,t,!0)}return""}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertContents",value:function(e,t){var n=fn(t),r=(new ae.a).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(r)}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new ae.a).retain(e).insert(Zt({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new ae.a).retain(e).insert(t,Object(se.a)(r)))}},{key:"isBlank",value:function(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;if((null===e||void 0===e?void 0:e.statics.blotName)!==tt.blotName)return!1;var t=e;return!(t.children.length>1)&&t.children.head instanceof ge}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=Jt(this.scroll.line(e+t),2),i=r[0],o=r[1],a=0,s=new ae.a;null!=i&&(a=i.length()-o,s=i.delta().slice(o,o+a-1).insert("\n"));var l=this.getContents(e,t+a).diff((new ae.a).insert(n).concat(s)),u=(new ae.a).retain(e).concat(l);return this.applyDelta(u)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(sn)&&this.scroll.find(t[0].target)){var i=this.scroll.find(t[0].target),o=it(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(mt.CONTENTS,""),u=(new ae.a).insert(l),c=(new ae.a).insert(i.value()),d=n&&{oldRange:pn(n.oldRange,-a),newRange:pn(n.newRange,-a)},f=(new ae.a).retain(a).concat(u.diff(c,d));e=f.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new ae.a),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&s(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}])&&on(e.prototype,t),n&&on(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function mn(e){return(mn="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 gn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=n}));_n.DEFAULTS={};var En=_n;function wn(e){return(wn="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 Sn(e,t){for(var n=0;nr?0:er?t-e>r-n?e+i-n:t-r+o:0},Wn=function(e,t){for(var n,r=e.ownerDocument,i=t,o=e;o;){var a,s,l,u,c=o===r.body,d=c?{top:0,right:null!==(a=null===(s=window.visualViewport)||void 0===s?void 0:s.width)&&void 0!==a?a:r.documentElement.clientWidth,bottom:null!==(l=null===(u=window.visualViewport)||void 0===u?void 0:u.height)&&void 0!==l?l:r.documentElement.clientHeight,left:0}:Hn(o),f=getComputedStyle(o),p=Vn(i.left,i.right,d.left,d.right,zn(f.scrollPaddingLeft),zn(f.scrollPaddingRight)),h=Vn(i.top,i.bottom,d.top,d.bottom,zn(f.scrollPaddingTop),zn(f.scrollPaddingBottom));if(p||h)if(c){var m;null===(m=r.defaultView)||void 0===m||m.scrollBy(p,h)}else{var g=o,v=g.scrollLeft,b=g.scrollTop;h&&(o.scrollTop+=h),p&&(o.scrollLeft+=p);var y=o.scrollLeft-v,_=o.scrollTop-b;i={left:i.left-y,top:i.top-_,right:i.right-y,bottom:i.bottom-_}}o=c||"fixed"===f.position?null:(n=o).parentElement||n.getRootNode().host||null}},Gn=["block","break","cursor","inline","scroll","text"],qn=function(e,t,n){var r=new P;return Gn.forEach((function(e){var n=t.query(e);n&&r.register(n)})),e.forEach((function(e){var i=t.query(e);i||n.error('Cannot register "'.concat(e,'" specified in "formats" config. Are you sure it was registered?'));for(var o=0;i;){var a;if(r.register(i),i="blotName"in i&&null!==(a=i.requiredContainer)&&void 0!==a?a:null,(o+=1)>100){n.error('Cycle detected in registering blot requiredContainer: "'.concat(e,'"'));break}}})),r},Yn=["modules"],$n=["modules"];function Kn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=dr(t,r),this.container=this.options.container,null!=this.container){this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",vt.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Dt;var o=ne.blotName,a=this.options.registry.query(o);if(!a||!("blotName"in a))throw new Error('Cannot initialize Quill without "'.concat(o,'" blot'));if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new hn(this.scroll),this.selection=new Yt(this.scroll,this.emitter),this.composition=new Ln(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Dt.events.EDITOR_CHANGE,(function(e){e===Dt.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(Dt.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=er(n.selection.getRange(),1)[0],o=r&&i?{oldRange:r,newRange:i}:void 0;fr.call(n,(function(){return n.editor.update(null,t,o)}),e)})),this.emitter.on(Dt.events.SCROLL_EMBED_UPDATE,(function(t,r){var i=n.selection.lastRange,o=er(n.selection.getRange(),1)[0],a=i&&o?{oldRange:i,newRange:o}:void 0;fr.call(n,(function(){var e=(new ae.a).retain(t.offset(n)).retain(Jn({},t.statics.blotName,r));return n.editor.update(e,[],a)}),e.sources.USER)})),i){var s=this.clipboard.convert({html:"".concat(i,"


    "),text:"\n"});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}else or.error("Invalid Quill container",t)}return t=e,r=[{key:"debug",value:function(e){!0===e&&(e="log"),wt.level(e)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return vt.get(e)||ar.find(e,t)}},{key:"import",value:function(e){return null==this.imports[e]&&or.error("Cannot import ".concat(e,". Are you sure it was registered?")),this.imports[e]}},{key:"register",value:function(){var e=this;if("string"!==typeof(arguments.length<=0?void 0:arguments[0])){var t=arguments.length<=0?void 0:arguments[0],n=!!(arguments.length<=1?void 0:arguments[1]),r="attrName"in t?t.attrName:t.blotName;"string"===typeof r?this.register("formats/".concat(r),t,n):Object.keys(t).forEach((function(r){e.register(r,t[r],n)}))}else{var i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[i]||a||or.warn("Overwriting ".concat(i," with"),o),this.imports[i]=o,(i.startsWith("blots/")||i.startsWith("formats/"))&&o&&"boolean"!==typeof o&&"abstract"!==o.blotName&&ar.register(o),"function"===typeof o.register&&o.register(ar)}}}],(n=[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=er(pr(e,t,n),4);return e=i[0],t=i[1],n=i[3],fr.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(e){this.allowReadOnlyEdits=!0;var t=e();return this.allowReadOnlyEdits=!1,t}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dt.sources.API;return fr.call(this,(function(){var r=n.getSelection(!0),i=new ae.a;if(null==r)return i;if(n.scroll.query(e,A.BLOCK))i=n.editor.formatLine(r.index,r.length,Jn({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,Jn({},e,t))}return n.setSelection(r,Dt.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var o,a=this,s=er(pr(e,t,n,r,i),4);return e=s[0],t=s[1],o=s[2],i=s[3],fr.call(this,(function(){return a.editor.formatLine(e,t,o)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var o,a=this,s=er(pr(e,t,n,r,i),4);return e=s[0],t=s[1],o=s[2],i=s[3],fr.call(this,(function(){return a.editor.formatText(e,t,o)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(!(n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length)))return null;var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=pr(e,t),r=er(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;"number"===typeof e&&(t=null!==t&&void 0!==t?t:this.getLength()-e);var n=pr(e,t),r=er(n,2);return e=r[0],t=r[1],this.editor.getHTML(e,t)}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;"number"===typeof e&&(t=null!==t&&void 0!==t?t:this.getLength()-e);var n=pr(e,t),r=er(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return fr.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,i){var o,a=this,s=er(pr(e,0,n,r,i),4);return e=s[0],o=s[2],i=s[3],fr.call(this,(function(){return a.editor.insertText(e,t,o)}),i,e,t.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var e;return(e=this.emitter).off.apply(e,arguments)}},{key:"on",value:function(){var e;return(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;return(e=this.emitter).once.apply(e,arguments)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=er(pr(e,t,n),4);return e=i[0],t=i[1],n=i[3],fr.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollRectIntoView",value:function(e){Wn(this.root,e)}},{key:"scrollIntoView",value:function(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}},{key:"scrollSelectionIntoView",value:function(){var e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.sources.API;return fr.call(this,(function(){e=new ae.a(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.insertContents(0,e),o=t.editor.deleteText(t.getLength()-1,1);return r.compose(i).compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=er(pr(t,n,r),4);t=i[0],n=i[1],r=i[3],this.selection.setRange(new Gt(Math.max(0,t),n),r),r!==Dt.sources.SILENT&&this.scrollSelectionIntoView()}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.sources.API,n=(new ae.a).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dt.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.sources.API;return fr.call(this,(function(){return e=new ae.a(e),t.editor.applyDelta(e)}),n,!0)}}])&&rr(t.prototype,n),r&&rr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function lr(e){return"string"===typeof e?document.querySelector(e):e}function ur(e){return Object.entries(null!==e&&void 0!==e?e:{}).reduce((function(e,t){var n=er(t,2),r=n[0],i=n[1];return Zn(Zn({},e),{},Jn({},r,!0===i?{}:i))}),{})}function cr(e){return Object.fromEntries(Object.entries(e).filter((function(e){return void 0!==e[1]})))}function dr(e,t){var n=lr(e);if(!n)throw new Error("Invalid Quill container");var r=!t.theme||t.theme===sr.DEFAULTS.theme?Un:sr.import("themes/".concat(t.theme));if(!r)throw new Error("Invalid theme ".concat(t.theme,". Did you register it?"));var i=sr.DEFAULTS,o=i.modules,a=Kn(i,Yn),s=r.DEFAULTS,u=s.modules,c=Kn(s,$n),d=ur(t.modules);null!=d&&d.toolbar&&d.toolbar.constructor!==Object&&(d=Zn(Zn({},d),{},{toolbar:{container:d.toolbar}}));var f=Object(l.a)({},ur(o),ur(u),d),p=Zn(Zn(Zn({},a),cr(c)),cr(t)),h=t.registry;return h?t.formats&&or.warn('Ignoring "formats" option because "registry" is specified'):h=t.formats?qn(t.formats,p.registry,or):p.registry,Zn(Zn({},p),{},{registry:h,container:n,theme:r,modules:Object.entries(f).reduce((function(e,t){var n=er(t,2),r=n[0],i=n[1];if(!i)return e;var o=sr.import("modules/".concat(r));return null==o?(or.error("Cannot load ".concat(r," module. Are you sure you registered it?")),e):Zn(Zn({},e),{},Jn({},r,Object(l.a)({},o.DEFAULTS||{},i)))}),{}),bounds:lr(p.bounds)})}function fr(e,t,n,r){if(!this.isEnabled()&&t===Dt.sources.USER&&!this.allowReadOnlyEdits)return new ae.a;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=hr(i,a,t):0!==r&&(i=hr(i,n,r,t)),this.setSelection(i,Dt.sources.SILENT)),a.length()>0){var s,l,u=[Dt.events.TEXT_CHANGE,a,o,t];if((s=this.emitter).emit.apply(s,[Dt.events.EDITOR_CHANGE].concat(u)),t!==Dt.sources.SILENT)(l=this.emitter).emit.apply(l,u)}return a}function pr(e,t,n,r,i){var o={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(i=r,r=n,n=t,t=0),"object"===Qn(n)?(o=n,i=r):"string"===typeof n&&(null!=r?o[n]=r:i=n),[e,t,o,i=i||Dt.sources.API]}function hr(e,t,n,r){var i,o,a="number"===typeof n?n:0;if(null==e)return null;if(t&&"function"===typeof t.transformPosition){var s=er([e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==Dt.sources.USER)})),2);i=s[0],o=s[1]}else{var l=er([e.index,e.index+e.length].map((function(e){return e=0?e+a:Math.max(t,e+a)})),2);i=l[0],o=l[1]}return new Gt(i,o-i)}function mr(e){return(mr="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 gr(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0){if(i instanceof nt||a instanceof nt)return void this.optimize();var s=a.children.head instanceof ge?null:a.children.head;i.moveChildren(a,s),i.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}},{key:"formatAt",value:function(e,n,r,i){Ar(t,"formatAt",this,3)([e,n,r,i]),this.optimize()}},{key:"insertAt",value:function(e,n,r){if(e>=this.length())if(null==r||null==this.scroll.query(n,A.BLOCK)){var i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),null==r&&n.endsWith("\n")?i.insertAt(0,n.slice(0,-1),r):i.insertAt(0,n,r)}else{var o=this.scroll.create(n,r);this.appendChild(o)}else Ar(t,"insertAt",this,3)([e,n,r]);this.optimize()}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===A.INLINE_BLOT){var r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),Ar(t,"insertBefore",this,3)([r,n])}else Ar(t,"insertBefore",this,3)([e,n])}},{key:"insertContents",value:function(e,t){var n=this,r=this.deltaToRenderBlocks(t.concat((new ae.a).insert("\n"))),i=r.pop();if(null!=i){this.batchStart();var o,a,s,l=r.shift();if(l){var u="block"===l.type&&(0===l.delta.length()||!this.descendant(nt,e)[0]&&e0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function(e,t,r){var i=[],o=r;return e.children.forEachAt(t,r,(function(e,t,r){Dr(e)?i.push(e):e instanceof Q&&(i=i.concat(n(e,t,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(Ar(t,"optimize",this,3)([e,n]),e.length>0&&this.emitter.emit(Dt.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return Ar(t,"path",this,3)([e]).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(e){var n=this;if(this.batch)Array.isArray(e)&&(this.batch=this.batch.concat(e));else{var r=Dt.sources.USER;"string"===typeof e&&(r=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter((function(e){var t=e.target,r=n.find(t,!0);return r&&!Lr(r)}))).length>0&&this.emitter.emit(Dt.events.SCROLL_BEFORE_UPDATE,r,e),Ar(t,"update",this,3)([e.concat([])]),e.length>0&&this.emitter.emit(Dt.events.SCROLL_UPDATE,r,e)}}},{key:"updateEmbedAt",value:function(e,t,n){var r=Or(this.descendant((function(e){return e instanceof nt}),e),1)[0];r&&r.statics.blotName===t&&Lr(r)&&r.updateContent(n)}},{key:"handleDragStart",value:function(e){e.preventDefault()}},{key:"deltaToRenderBlocks",value:function(e){var t=this,n=[],r=new ae.a;return e.forEach((function(e){var i=null===e||void 0===e?void 0:e.insert;if(i)if("string"===typeof i){var o=i.split("\n");o.slice(0,-1).forEach((function(t){var i;r.insert(t,e.attributes),n.push({type:"block",delta:r,attributes:null!==(i=e.attributes)&&void 0!==i?i:{}}),r=new ae.a}));var a=o[o.length-1];a&&r.insert(a,e.attributes)}else{var s,l=Object.keys(i)[0];if(!l)return;if(t.query(l,A.INLINE))r.push(e);else r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new ae.a,n.push({type:"blockEmbed",key:l,value:i[l],attributes:null!==(s=e.attributes)&&void 0!==s?s:{}})}})),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}},{key:"createBlock",value:function(e,t){var n,r=this,i={};Object.entries(e).forEach((function(e){var t=Or(e,2),o=t[0],a=t[1];null!=r.query(o,A.BLOCK&A.BLOT)?n=o:i[o]=a}));var o=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(o,t||void 0);var a=o.length();return Object.entries(i).forEach((function(e){var t=Or(e,2),n=t[0],r=t[1];o.formatAt(0,a,n,r)})),o}}])}(ne);function jr(e,t,n){n.reduce((function(t,n){var r=oe.Op.length(n),i=n.attributes||{};if(null!=n.insert)if("string"===typeof n.insert){var o=n.insert;e.insertAt(t,o);var a=it(Or(e.descendant(z,t),1)[0]);i=oe.AttributeMap.diff(a,i)||{}}else if("object"===Sr(n.insert)){var s=Object.keys(n.insert)[0];if(null==s)return t;if(e.insertAt(t,s,n.insert[s]),null!=e.scroll.query(s,A.INLINE)){var l=it(Or(e.descendant(z,t),1)[0]);i=oe.AttributeMap.diff(l,i)||{}}}return Object.keys(i).forEach((function(n){e.formatAt(t,r,n,i[n])})),t+r}),t)}Mr.blotName="scroll",Mr.className="ql-editor",Mr.tagName="DIV",Mr.defaultChild=tt,Mr.allowedChildren=[tt,nt,wr];var Fr=Mr,Br={scope:A.BLOCK,whitelist:["right","center","justify"]},Ur=new R("align","align",Br),Hr=new L("align","ql-align",Br),zr=new j("align","text-align",Br);function Vr(e){return(Vr="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 Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(e,t){for(var n=0;n\n".concat(Ce(this.code(e,t)),"\n")}}],[{key:"create",value:function(e){var n=function(e,t,n,r){var i=ui(di(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}(t,"create",this,2)([e]);return n.setAttribute("spellcheck","false"),n}}])}(wr),mi=function(e){function t(){return ii(this,t),li(this,t,arguments)}return fi(t,e),ai(t,null,[{key:"register",value:function(){sr.register(hi)}}])}(tt);mi.TAB=" ";var gi=function(e){function t(){return ii(this,t),li(this,t,arguments)}return fi(t,e),ai(t)}(Be);gi.blotName="code",gi.tagName="CODE",mi.blotName="code-block",mi.className="ql-code-block",mi.tagName="DIV",hi.blotName="code-block-container",hi.className="ql-code-block-container",hi.tagName="DIV",hi.allowedChildren=[mi],mi.allowedChildren=[Te,ge,mt],mi.requiredContainer=hi;var vi={scope:A.BLOCK,whitelist:["rtl"]},bi=new R("direction","dir",vi),yi=new L("direction","ql-direction",vi),_i=new j("direction","direction",vi);function Ei(e){return(Ei="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 wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Si(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=eo(e);if(null!=i){"function"===typeof n&&(n={handler:n}),"function"===typeof r&&(r={handler:r});var o=Array.isArray(i.key)?i.key:[i.key];o.forEach((function(e){var o=Bi(Bi(Bi({},i),{},{key:e},n),r);t.bindings[o.key]=t.bindings[o.key]||[],t.bindings[o.key].push(o)}))}else qi.warn("Attempted to add invalid keyboard binding",i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented&&!n.isComposing&&(229!==n.keyCode||"Enter"!==n.key&&"Backspace"!==n.key)){var r=(e.bindings[n.key]||[]).concat(e.bindings[n.which]||[]).filter((function(e){return t.match(n,e)}));if(0!==r.length){var i=sr.find(n.target,!0);if(!i||i.scroll===e.quill.scroll){var o=e.quill.getSelection();if(null!=o&&e.quill.hasFocus()){var a=Mi(e.quill.getLine(o.index),2),l=a[0],u=a[1],c=Mi(e.quill.getLeaf(o.index),2),d=c[0],f=c[1],p=Mi(0===o.length?[d,f]:e.quill.getLeaf(o.index+o.length),2),h=p[0],m=p[1],g=d instanceof ie?d.value().slice(0,f):"",v=h instanceof ie?h.value().slice(m):"",b={collapsed:0===o.length,empty:0===o.length&&l.length()<=1,format:e.quill.getFormat(o),line:l,offset:u,prefix:g,suffix:v,event:n};r.some((function(t){if(null!=t.collapsed&&t.collapsed!==b.collapsed)return!1;if(null!=t.empty&&t.empty!==b.empty)return!1;if(null!=t.offset&&t.offset!==b.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==b.format[e]})))return!1}else if("object"===Li(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=b.format[e]:!1===t.format[e]?null==b.format[e]:s(t.format[e],b.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(b.prefix))&&!(null!=t.suffix&&!t.suffix.test(b.suffix))&&!0!==t.handler.call(e,o,b,t)}))&&n.preventDefault()}}}}}))}},{key:"handleBackspace",value:function(e,t){var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(!(0===e.index||this.quill.getLength()<=1)){var r={},i=Mi(this.quill.getLine(e.index),1)[0],o=(new ae.a).retain(e.index-n).delete(n);if(0===t.offset){var a=Mi(this.quill.getLine(e.index-1),1)[0];if(a&&!("block"===a.statics.blotName&&a.length()<=1)){var s=i.formats(),l=this.quill.getFormat(e.index-1,1);if(r=oe.AttributeMap.diff(s,l)||{},Object.keys(r).length>0){var u=(new ae.a).retain(e.index+i.length()-2).retain(1,r);o=o.compose(u)}}}this.quill.updateContents(o,sr.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=Mi(this.quill.getLine(e.index),1)[0],o=(new ae.a).retain(e.index).delete(n);if(t.offset>=i.length()-1){var a=Mi(this.quill.getLine(e.index+1),1)[0];if(a){var s=i.formats(),l=this.quill.getFormat(e.index,1);r=oe.AttributeMap.diff(s,l)||{},Object.keys(r).length>0&&(o=o.retain(a.length()-1).retain(1,r))}}this.quill.updateContents(o,sr.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(e){to({range:e,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(e,t){var n=this,r=Object.keys(t.format).reduce((function(e,r){return n.quill.scroll.query(r,A.BLOCK)&&!Array.isArray(t.format[r])&&(e[r]=t.format[r]),e}),{}),i=(new ae.a).retain(e.index).delete(e.length).insert("\n",r);this.quill.updateContents(i,sr.sources.USER),this.quill.setSelection(e.index+1,sr.sources.SILENT),this.quill.focus()}}])&&Hi(n.prototype,r),i&&Hi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(En),Ki={bindings:{bold:Qi("bold"),italic:Qi("italic"),underline:Qi("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler:function(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","+1",sr.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","-1",sr.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",sr.sources.USER):null!=t.format.list&&this.quill.format("list",!1,sr.sources.USER)}},"indent code-block":Xi(!0),"outdent code-block":Xi(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,sr.sources.USER)}},tab:{key:"Tab",handler:function(e,t){if(t.format.table)return!0;this.quill.history.cutoff();var n=(new ae.a).retain(e.index).delete(e.length).insert("\t");return this.quill.updateContents(n,sr.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,sr.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,sr.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler:function(e,t){var n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,sr.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler:function(e){var t=Mi(this.quill.getLine(e.index),2),n=t[0],r=t[1],i=Bi(Bi({},n.formats()),{},{list:"checked"}),o=(new ae.a).retain(e.index).insert("\n",i).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,sr.sources.USER),this.quill.setSelection(e.index+1,sr.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=Mi(this.quill.getLine(e.index),2),r=n[0],i=n[1],o=(new ae.a).retain(e.index).insert("\n",t.format).retain(r.length()-i-1).retain(1,{header:null});this.quill.updateContents(o,sr.sources.USER),this.quill.setSelection(e.index+1,sr.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler:function(e){var t=this.quill.getModule("table");if(t){var n=Mi(t.getTable(e),4),r=n[0],i=function(e,t,n,r){if(null==t.prev&&null==t.next)return null==n.prev&&null==n.next?0===r?-1:1:null==n.prev?-1:1;if(null==t.prev)return-1;if(null==t.next)return 1;return null}(0,n[1],n[2],n[3]);if(null==i)return;var o=r.offset();if(i<0){var a=(new ae.a).retain(o).insert("\n");this.quill.updateContents(a,sr.sources.USER),this.quill.setSelection(e.index+1,e.length,sr.sources.SILENT)}else if(i>0){o+=r.length();var s=(new ae.a).retain(o).insert("\n");this.quill.updateContents(s,sr.sources.USER),this.quill.setSelection(o,sr.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler:function(e,t){var n=t.event,r=t.line,i=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(i-1,sr.sources.USER):this.quill.setSelection(i+r.length(),sr.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){if(null==this.quill.scroll.query("list"))return!0;var n,r=t.prefix.length,i=Mi(this.quill.getLine(e.index),2),o=i[0],a=i[1];if(a>r)return!0;switch(t.prefix.trim()){case"[]":case"[ ]":n="unchecked";break;case"[x]":n="checked";break;case"-":case"*":n="bullet";break;default:n="ordered"}this.quill.insertText(e.index," ",sr.sources.USER),this.quill.history.cutoff();var s=(new ae.a).retain(e.index-a).delete(r+1).retain(o.length()-2-a).retain(1,{list:n});return this.quill.updateContents(s,sr.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,sr.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(e){for(var t=Mi(this.quill.getLine(e.index),2),n=t[0],r=t[1],i=2,o=n;null!=o&&o.length()<=1&&o.formats()["code-block"];)if(o=o.prev,(i-=1)<=0){var a=(new ae.a).retain(e.index+n.length()-r-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,sr.sources.USER),this.quill.setSelection(e.index-1,sr.sources.SILENT),!1}return!0}},"embed left":Zi("ArrowLeft",!1),"embed left shift":Zi("ArrowLeft",!0),"embed right":Zi("ArrowRight",!1),"embed right shift":Zi("ArrowRight",!0),"table down":Ji(!1),"table up":Ji(!0)}};function Xi(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler:function(t,n){var r=n.event,i=this.quill.scroll.query("code-block").TAB;if(0===t.length&&!r.shiftKey)return this.quill.insertText(t.index,i,sr.sources.USER),void this.quill.setSelection(t.index+i.length,sr.sources.SILENT);var o=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t),a=t.index,s=t.length;o.forEach((function(t,n){e?(t.insertAt(0,i),0===n?a+=i.length:s+=i.length):t.domNode.textContent.startsWith(i)&&(t.deleteAt(0,i.length),0===n?a-=i.length:s-=i.length)})),this.quill.update(sr.sources.USER),this.quill.setSelection(a,s,sr.sources.SILENT)}}}function Zi(e,t){return Ui(Ui({key:e,shiftKey:t,altKey:null},"ArrowLeft"===e?"prefix":"suffix",/^$/),"handler",(function(n){var r=n.index;return"ArrowRight"===e&&(r+=n.length+1),!(Mi(this.quill.getLeaf(r),1)[0]instanceof J)||("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,sr.sources.USER):this.quill.setSelection(n.index-1,sr.sources.USER):t?this.quill.setSelection(n.index,n.length+1,sr.sources.USER):this.quill.setSelection(n.index+n.length+1,sr.sources.USER),!1)}))}function Qi(e){return{key:e[0],shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],sr.sources.USER)}}}function Ji(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler:function(t,n){var r=e?"prev":"next",i=n.line,o=i.parent[r];if(null!=o){if("table-row"===o.statics.blotName){for(var a=o.children.head,s=i;null!=s.prev;)s=s.prev,a=a.next;var l=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(l,0,sr.sources.USER)}}else{var u=i.table()[r];null!=u&&(e?this.quill.setSelection(u.offset(this.quill.scroll)+u.length()-1,0,sr.sources.USER):this.quill.setSelection(u.offset(this.quill.scroll),0,sr.sources.USER))}return!1}}}function eo(e){if("string"===typeof e||"number"===typeof e)e={key:e};else{if("object"!==Li(e))return null;e=Object(se.a)(e)}return e.shortKey&&(e[Yi]=e.shortKey,delete e.shortKey),e}function to(e){var t=e.quill,n=e.range,r=t.getLines(n),i={};if(r.length>1){var o=r[0].formats(),a=r[r.length-1].formats();i=oe.AttributeMap.diff(a,o)||{}}t.deleteText(n,sr.sources.USER),Object.keys(i).length>0&&t.formatLine(n.index,1,i,sr.sources.USER),t.setSelection(n.index,sr.sources.SILENT)}function no(e){return function(e){if(Array.isArray(e))return ro(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ro(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ro(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&t.setAttribute("class","ql-indent-".concat(e.indent-1)),t.innerHTML=e.element.innerHTML,i.appendChild(t)}));var a=null===(e=t[0])||void 0===e?void 0:e.element,s=(null!==a&&void 0!==a?a:{}).parentNode;a&&(null===s||void 0===s||s.replaceChild(i,a)),t.slice(1).forEach((function(e){var t=e.element;null===s||void 0===s||s.removeChild(t)}))};o.length;)a()};var fo=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&co(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&(function(e){Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter((function(e){var t;return null===(t=e.getAttribute("style"))||void 0===t?void 0:t.match(io)})).forEach((function(t){var n,r=e.createDocumentFragment();r.append.apply(r,no(t.childNodes)),null===(n=t.parentNode)||void 0===n||n.replaceChild(r,t)}))}(e),function(e){Array.from(e.querySelectorAll("br")).filter((function(e){return ao(e.previousElementSibling)&&ao(e.nextElementSibling)})).forEach((function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}))}(e))}],po=function(e){e.documentElement&&fo.forEach((function(t){t(e)}))};function ho(e){return(ho="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 mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=700)&&(i.bold=!0);if(t=Object.entries(i).reduce((function(e,t){var r=bo(t,2);return Ro(e,r[0],r[1],n)}),t),parseFloat(o.textIndent||0)>0)return(new ae.a).insert("\t").concat(t);return t}],["li",function(e,t,n){var r=n.query(e);if(null==r||"list"!==r.blotName||!Io(t,"\n"))return t;var i=-1,o=e.parentNode;for(;null!=o;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?t:t.reduce((function(e,t){return t.insert?t.attributes&&"number"===typeof t.attributes.indent?e.push(t):e.insert(t.insert,go({indent:i},t.attributes||{})):e}),new ae.a)}],["ol, ul",function(e,t,n){var r=e,i="OL"===r.tagName?"ordered":"bullet",o=r.getAttribute("data-checked");o&&(i="true"===o?"checked":"unchecked");return Ro(t,"list",i,n)}],["pre",function(e,t,n){var r=n.query("code-block"),i=!r||!("formats"in r)||"function"!==typeof r.formats||r.formats(e,n);return Ro(t,"code-block",i,n)}],["tr",function(e,t,n){var r,i,o="TABLE"===(null===(r=e.parentElement)||void 0===r?void 0:r.tagName)?e.parentElement:null===(i=e.parentElement)||void 0===i?void 0:i.parentElement;if(null!=o){var a=Array.from(o.querySelectorAll("tr")).indexOf(e)+1;return Ro(t,"table",a,n)}return t}],["b",Lo("bold")],["i",Lo("italic")],["strike",Lo("strike")],["style",function(){return new ae.a}]],Co=[Ur,bi].reduce((function(e,t){return e[t.keyName]=t,e}),{}),ko=[zr,ni,ei,_i,Ni,Di].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Ao=function(e){function t(e,n){var r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=wo(this,t,[e,n])).quill.root.addEventListener("copy",(function(e){return i.onCaptureCopy(e,!1)})),i.quill.root.addEventListener("cut",(function(e){return i.onCaptureCopy(e,!0)})),i.quill.root.addEventListener("paste",i.onCapturePaste.bind(i)),i.matchers=[],xo.concat(null!==(r=i.options.matchers)&&void 0!==r?r:[]).forEach((function(e){var t=bo(e,2),n=t[0],r=t[1];i.addMatcher(n,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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oo(e,t)}(t,e),function(e,t,n){return t&&_o(e.prototype,t),n&&_o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){var t=e.html,n=e.text,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r[mi.blotName])return(new ae.a).insert(n||"",vo({},mi.blotName,r[mi.blotName]));if(!t)return(new ae.a).insert(n||"",r);var i=this.convertHTML(t);return Io(i,"\n")&&(null==i.ops[i.ops.length-1].attributes||r.table)?i.compose((new ae.a).retain(i.length()-1).delete(1)):i}},{key:"normalizeHTML",value:function(e){po(e)}},{key:"convertHTML",value:function(e){var t=(new DOMParser).parseFromString(e,"text/html");this.normalizeHTML(t);var n=t.body,r=new WeakMap,i=bo(this.prepareMatching(n,r),2),o=i[0],a=i[1];return Do(this.quill.scroll,n,o,a,r)}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sr.sources.API;if("string"===typeof e){var r=this.convert({html:e,text:""});this.quill.setContents(r,t),this.quill.setSelection(0,sr.sources.SILENT)}else{var i=this.convert({html:t,text:""});this.quill.updateContents((new ae.a).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),sr.sources.SILENT)}}},{key:"onCaptureCopy",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.defaultPrevented){e.preventDefault();var i=this.quill.selection.getRange(),o=bo(i,1),a=o[0];if(null!=a){var s=this.onCopy(a,r),l=s.html,u=s.text;null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",u),null===(n=e.clipboardData)||void 0===n||n.setData("text/html",l),r&&to({range:a,quill:this.quill})}}}},{key:"normalizeURIList",value:function(e){return e.split(/\r?\n/).filter((function(e){return"#"!==e[0]})).join("\n")}},{key:"onCapturePaste",value:function(e){var t,n,r;if(!e.defaultPrevented&&this.quill.isEnabled()){e.preventDefault();var i=this.quill.getSelection(!0);if(null!=i){var o=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/html"),a=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/plain");if(!o&&!a){var s,l=null===(s=e.clipboardData)||void 0===s?void 0:s.getData("text/uri-list");l&&(a=this.normalizeURIList(l))}var u=Array.from((null===(r=e.clipboardData)||void 0===r?void 0:r.files)||[]);if(!o&&u.length>0)this.quill.uploader.upload(i,u);else{if(o&&u.length>0){var c,d=(new DOMParser).parseFromString(o,"text/html");if(1===d.body.childElementCount&&"IMG"===(null===(c=d.body.firstElementChild)||void 0===c?void 0:c.tagName))return void this.quill.uploader.upload(i,u)}this.onPaste(i,{html:o,text:a})}}}}},{key:"onCopy",value:function(e){var t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}},{key:"onPaste",value:function(e,t){var n=t.text,r=t.html,i=this.quill.getFormat(e.index),o=this.convert({text:n,html:r},i);To.log("onPaste",o,{text:n,html:r});var a=(new ae.a).retain(e.index).delete(e.length).concat(o);this.quill.updateContents(a,sr.sources.USER),this.quill.setSelection(a.length()-e.length,sr.sources.SILENT),this.quill.scrollSelectionIntoView()}},{key:"prepareMatching",value:function(e,t){var n=[],r=[];return this.matchers.forEach((function(i){var o=bo(i,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:r.push(s);break;case Node.ELEMENT_NODE:n.push(s);break;default:Array.from(e.querySelectorAll(a)).forEach((function(e){if(t.has(e)){var n=t.get(e);null===n||void 0===n||n.push(s)}else t.set(e,[s])}))}})),[n,r]}}])}(En);function Ro(e,t,n,r){return r.query(t)?e.reduce((function(e,r){if(!r.insert)return e;if(r.attributes&&r.attributes[t])return e.push(r);var i=n?vo({},t,n):{};return e.insert(r.insert,go(go({},i),r.attributes))}),new ae.a):e}function Io(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling)for(var r=e.nextSibling;null!=r;){if(No(r,n))return t.insert("\n");var i=n.query(r);if(i&&i.prototype instanceof nt)return t.insert("\n");r=r.firstChild}}return t}function jo(e){return(jo="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 Fo(e,t){for(var n=0;ni&&this.stack.undo.length>0){var o=this.stack.undo.pop();o&&(n=n.compose(o.delta),r=o.range)}else this.lastRecorded=i;0!==n.length()&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){Wo(this.stack.undo,e),Wo(this.stack.redo,e)}},{key:"undo",value:function(){this.change("undo","redo")}},{key:"restoreSelection",value:function(e){if(e.range)this.quill.setSelection(e.range,sr.sources.USER);else{var t=function(e,t){var n=t.reduce((function(e,t){return e+(t.delete||0)}),0),r=t.length()-n;return function(e,t){var n=t.ops[t.ops.length-1];return null!=n&&(null!=n.insert?"string"===typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some((function(t){return null!=e.query(t,A.BLOCK)})))}(e,t)&&(r-=1),r}(this.quill.scroll,e.delta);this.quill.setSelection(t,sr.sources.USER)}}}])&&Fo(n.prototype,r),i&&Fo(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(En);function Wo(e,t){for(var n=t,r=e.length-1;r>=0;r-=1){var i=e[r];e[r]={delta:n.transform(i.delta,!0),range:i.range&&Go(i.range,n)},n=i.delta.transform(n),0===e[r].delta.length()&&e.splice(r,1)}}function Go(e,t){if(!e)return e;var n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}function qo(e){return(qo="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 Yo(e,t){for(var n=0;n0&&this.options.handler.call(this,e,r)}}])&&Yo(n.prototype,r),i&&Yo(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(En);Qo.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler:function(e,t){var n=this;if(this.quill.scroll.query("image")){var r=t.map((function(e){return new Promise((function(t){var n=new FileReader;n.onload=function(){t(n.result)},n.readAsDataURL(e)}))}));Promise.all(r).then((function(t){var r=t.reduce((function(e,t){return e.insert({image:t})}),(new ae.a).retain(e.index).delete(e.length));n.quill.updateContents(r,Dt.sources.USER),n.quill.setSelection(e.index+t.length,Dt.sources.SILENT)}))}}};var Jo=Qo;function ea(e){return(ea="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 ta(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){var n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new ae.a).retain(e.index).insert(t,n),sr.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,sr.sources.SILENT),!0}},{key:"handleBeforeInput",value:function(e){if(!this.quill.composition.isComposing&&!e.defaultPrevented&&aa.includes(e.inputType)){var t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(t&&!0!==t.collapsed){var n=function(e){var t;return"string"===typeof e.data?e.data:null!==(t=e.dataTransfer)&&void 0!==t&&t.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}(e);if(null!=n){var r=this.quill.selection.normalizeNative(t),i=r?this.quill.selection.normalizedToRange(r):null;i&&this.replaceText(i,n)&&e.preventDefault()}}}}},{key:"handleCompositionStart",value:function(){var e=this.quill.getSelection();e&&this.replaceText(e)}}])&&ta(n.prototype,r),i&&ta(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(En);function la(e){return(la="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 ua(e,t){for(var n=0;n-1}function Bs(e){return(Bs="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 Us(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hs(e,t){for(var n=0;n".concat(e,"")}}])&&gl(n.prototype,r),i&&gl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Rn);Sl.blotName="formula",Sl.className="ql-formula",Sl.tagName="SPAN";var Ol=Sl;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 xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cl(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):Rl(t,"format",this,3)([e,n])}}])&&Cl(n.prototype,r),i&&Cl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(J);Ml.blotName="image",Ml.tagName="IMG";var jl=Ml;function Fl(e){return(Fl="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 Bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ul(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):Vl(t,"format",this,3)([e,n])}},{key:"html",value:function(){var e=this.value().video;return'').concat(e,"")}}])&&Ul(n.prototype,r),i&&Ul(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(nt);Kl.blotName="video",Kl.className="ql-video",Kl.tagName="IFRAME";var Xl=Kl;function Zl(e){return(Zl="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 Ql(e,t,n){return(t=iu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var r=Array.from(this.domNode.childNodes).filter((function(e){return e!==t.uiNode})),i="".concat(r.map((function(e){return e.textContent})).join("\n"),"\n"),o=hu.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==i){if(i.trim().length>0||null==this.cachedText){var a=this.children.reduce((function(e,t){return e.concat(rt(t,!1))}),new ae.a),s=e(i,o);a.diff(s).reduce((function(e,n){var r=n.retain,i=n.attributes;return r?(i&&Object.keys(i).forEach((function(n){[hu.blotName,pu.blotName].includes(n)&&t.formatAt(e,r,n,i[n])})),e+r):e}),0)}this.cachedText=i,this.forceNext=!1}}}},{key:"html",value:function(e,t){var n=Jl(this.children.find(e),1)[0],r=n?hu.formats(n.domNode):"plain";return'
    \n').concat(Ce(this.code(e,t)),"\n
    ")}},{key:"optimize",value:function(e){if(lu(t,"optimize",this,3)([e]),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var n=hu.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}])}(hi);mu.allowedChildren=[hu],hu.requiredContainer=mu,hu.allowedChildren=[pu,mt,Te,ge];var gu=function(e,t,n){if("string"===typeof e.versionString){var r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value},vu=function(e){function t(e,n){var r;if(tu(this,t),null==(r=ou(this,t,[e,n])).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return r.languages=r.options.languages.reduce((function(e,t){return e[t.key]=!0,e}),{}),r.highlightBlot=r.highlightBlot.bind(r),r.initListener(),r.initTimer(),r}return au(t,e),ru(t,[{key:"initListener",value:function(){var e=this;this.quill.on(sr.events.SCROLL_BLOT_MOUNT,(function(t){if(t instanceof mu){var n=e.quill.root.ownerDocument.createElement("select");e.options.languages.forEach((function(e){var t=e.key,r=e.label,i=n.ownerDocument.createElement("option");i.textContent=r,i.setAttribute("value",t),n.appendChild(i)})),n.addEventListener("change",(function(){t.format(hu.blotName,n.value),e.quill.root.focus(),e.highlight(t,!0)})),null==t.uiNode&&(t.attachUI(n),t.children.head&&(n.value=hu.formats(t.children.head.domNode)))}}))}},{key:"initTimer",value:function(){var e=this,t=null;this.quill.on(sr.events.SCROLL_OPTIMIZE,(function(){t&&clearTimeout(t),t=setTimeout((function(){e.highlight(),t=null}),e.options.interval)}))}},{key:"highlight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(sr.sources.USER);var r=this.quill.getSelection(),i=null==t?this.quill.scroll.descendants(mu):[t];i.forEach((function(t){t.highlight(e.highlightBlot,n)})),this.quill.update(sr.sources.SILENT),null!=r&&this.quill.setSelection(r,sr.sources.SILENT)}}},{key:"highlightBlot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(t=this.languages[t]?t:"plain"))return Ce(e).split("\n").reduce((function(e,n,r){return 0!==r&&e.insert("\n",Ql({},mi.blotName,t)),e.insert(n)}),new ae.a);var n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(mi.className),n.innerHTML=gu(this.options.hljs,t,e),Do(this.quill.scroll,n,[function(e,t){var n=fu.value(e);return n?t.compose((new ae.a).retain(t.length(),Ql({},pu.blotName,n))):t}],[function(e,n){return e.data.split("\n").reduce((function(e,n,r){return 0!==r&&e.insert("\n",Ql({},mi.blotName,t)),e.insert(n)}),n)}],new WeakMap)}}],[{key:"register",value:function(){sr.register(pu,!0),sr.register(hu,!0),sr.register(mu,!0)}}])}(En);function bu(e){return(bu="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 yu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];var t=this.quill.getLine(e.index),n=Fu(t,2),r=n[0],i=n[1];if(null==r||r.statics.blotName!==Nu.blotName)return[null,null,null,-1];var o=r.parent,a=o.parent.parent;return[a,o,r,i]}},{key:"insertColumn",value:function(e){var t=this.quill.getSelection();if(t){var n=Fu(this.getTable(t),3),r=n[0],i=n[1],o=n[2];if(null!=o){var a=o.cellOffset();r.insertColumn(a+e),this.quill.update(sr.sources.USER);var s=i.rowOffset();0===e&&(s+=1),this.quill.setSelection(t.index+s,t.length,sr.sources.SILENT)}}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(e){var t=this.quill.getSelection();if(t){var n=Fu(this.getTable(t),3),r=n[0],i=n[1];if(null!=n[2]){var o=i.rowOffset();r.insertRow(o+e),this.quill.update(sr.sources.USER),e>0?this.quill.setSelection(t,sr.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,sr.sources.SILENT)}}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertTable",value:function(e,t){var n=this.quill.getSelection();if(null!=n){var r=new Array(e).fill(0).reduce((function(e){var n=new Array(t).fill("\n").join("");return e.insert(n,{table:Mu()})}),(new ae.a).retain(n.index));this.quill.updateContents(r,sr.sources.USER),this.quill.setSelection(n.index,sr.sources.SILENT),this.balanceTables()}}},{key:"listenBalanceCells",value:function(){var e=this;this.quill.on(sr.events.SCROLL_OPTIMIZE,(function(t){t.some((function(t){return!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(e.quill.once(sr.events.TEXT_CHANGE,(function(t,n,r){r===sr.sources.USER&&e.balanceTables()})),!0)}))}))}}])&&Hu(n.prototype,r),i&&Hu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(En);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 $u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ku(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ku(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n',center:'',right:'',justify:''},background:'',blockquote:'',bold:'',clean:'',code:oc,"code-block":oc,color:'',direction:{"":'',rtl:''},formula:'',header:{1:'',2:'',3:'',4:'',5:'',6:''},italic:'',image:'',indent:{"+1":'',"-1":''},link:'',list:{bullet:'',check:'',ordered:''},script:{sub:'',super:''},strike:'',table:'',underline:'',video:''};function sc(e){return(sc="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 lc(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}},{key:"update",value:function(){var e;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}])&&lc(e.prototype,t),n&&lc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function pc(e){return(pc="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 hc(e,t){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left="".concat(t+o,"px")),i.leftr.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top="".concat(n-s,"px"),this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}])&&Pc(e.prototype,t),n&&Pc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Mc(e){return(Mc="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 jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fc(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=this.textbox){null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");var n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-".concat(e))||""),this.root.setAttribute("data-mode",e)}}},{key:"restoreFocus",value:function(){this.quill.focus({preventScroll:!0})}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Dt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Dt.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return"".concat(t[1]||"https","://www.youtube.com/embed/").concat(t[2],"?showinfo=0");if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return"".concat(t[1]||"https","://player.vimeo.com/video/").concat(t[2],"/");return e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Dt.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",Dt.sources.USER),this.quill.setSelection(r+2,Dt.sources.USER)}}this.textbox.value="",this.hide()}}])}(Lc);function ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(t)),e.appendChild(r)}))}function td(e){return(td="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 nd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rd(e,t){for(var n=0;n0&&i===Dt.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width="".concat(r.root.offsetWidth,"px");var o=r.quill.getLines(t.index,t.length);if(1===o.length){var a=r.quill.getBounds(t);null!=a&&r.position(a)}else{var s=o[o.length-1],l=r.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),c=r.quill.getBounds(new Gt(l,u));null!=c&&r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return dd(t,e),id(t,[{key:"listen",value:function(){var e=this;sd(t,"listen",this,3)([]),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(Dt.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();if(null!=t){var n=e.quill.getBounds(t);null!=n&&e.position(n)}}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=sd(t,"position",this,3)([e]),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",0!==n&&(r.style.marginLeft="".concat(-1*n-r.offsetWidth/2,"px")),n}}])}(Jc);hd.TEMPLATE=['','
    ','','',"
    "].join("");var md=function(e){function t(e,n){var r;return nd(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=pd),(r=ad(this,t,[e,n])).quill.container.classList.add("ql-bubble"),r}return dd(t,e),id(t,[{key:"extendToolbar",value:function(e){this.tooltip=new hd(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),ac),this.buildPickers(e.container.querySelectorAll("select"),ac))}}])}(Qc);function gd(e){return(gd="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 vd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bd(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n','','',''].join("");var Nd=function(e){function t(e,n){var r;return yd(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=Rd),(r=Sd(this,t,[e,n])).quill.container.classList.add("ql-snow"),r}return kd(t,e),Ed(t,[{key:"extendToolbar",value:function(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),ac),this.buildPickers(e.container.querySelectorAll("select"),ac),this.tooltip=new Id(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)})))}}])}(Qc);Nd.DEFAULTS=Object(l.a)({},Qc.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0===t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:".concat(n)),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1,sr.sources.USER)}}}}});var Pd=Nd;ga.register({"attributors/attribute/direction":bi,"attributors/class/align":Hr,"attributors/class/background":ti,"attributors/class/color":Jr,"attributors/class/direction":yi,"attributors/class/font":Ii,"attributors/class/size":Pi,"attributors/style/align":zr,"attributors/style/background":ni,"attributors/style/color":ei,"attributors/style/direction":_i,"attributors/style/font":Ni,"attributors/style/size":Di},!0),ga.register({"formats/align":Hr,"formats/direction":yi,"formats/indent":Ca,"formats/background":ni,"formats/color":ei,"formats/font":Ii,"formats/size":Pi,"formats/blockquote":Ma,"formats/code-block":mi,"formats/header":Ga,"formats/list":os,"formats/bold":vs,"formats/code":gi,"formats/italic":xs,"formats/link":js,"formats/script":Ks,"formats/strike":il,"formats/underline":pl,"formats/formula":Ol,"formats/image":jl,"formats/video":Xl,"modules/syntax":vu,"modules/table":qu,"modules/toolbar":rc,"themes/bubble":md,"themes/snow":Pd,"ui/icons":ac,"ui/picker":fc,"ui/icon-picker":Ic,"ui/color-picker":wc,"ui/tooltip":Lc},!0);var Dd=ga;function Ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Md(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1)throw new Error("The Quill editing area can only be composed of a single React element.");if(o.a.Children.count(e.children)){var t=o.a.Children.only(e.children);if("textarea"===(null===t||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a